/* 공통 */
/* .lineup-wrapper {
  width: min(1100px, 96%);
  margin: 20px auto 60px;
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  color: #222;
} */

.lineup-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  /* margin-bottom: 12px; */
  margin-top: 30px;
}

.lineup-title1 {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

/* 팀/로고 줄 */
.lineup-info-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 10px 0 30px;
  flex-wrap: wrap;
}

.lineup-team-logo {
  height: 60px;
  max-width: 180px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.lineup-team-logo:hover {
  transform: scale(1.1);
}

.lineup-team-name {
  font-weight: 800;
  font-size: 18px;
  color: #333;
}

.lineup-vs {
  font-weight: 900;
  color: #0B3D91;
  font-size: 20px;
}

/* 라인업 박스 */
.lineup-table {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  /* 데스크톱에서도 줄바꿈 허용 */
}

.lineup-team {
  flex: 1 1 420px;
  /* 넓으면 2열, 좁으면 1열 */
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.lineup-team+.lineup-team {
  margin-top: 0;
}

.lineup-team-name {
  display: block;
  color: #fff;
  padding: 12px 14px;
  font-size: 17px;
  text-align: center;
  margin: 0;
  /* h2 기본 margin 제거 */
  border-radius: 12px 12px 0 0;
  /* 위쪽 모서리만 둥글게 */
}

/* 표 래퍼: 작은 화면에서 가로 스크롤 허용 */
.lineup-team table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-radius: 0;
  /* 테이블 자체 둥근 모서리 제거 */
}

.lineup-team thead th {
  background: #f7f8fa;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 6px;
  border-bottom: 1px solid #eaecef;
}

.lineup-team tbody td {
  padding: 11px 6px;
  font-size: 15px;
  text-align: center;
  border-bottom: 1px solid #f0f2f5;
  word-break: keep-all;
}

.lineup-team tbody tr:nth-child(even) {
  background: #fafbfc;
}

/* 가운데 VS */
.lineup-table>.lineup-vs {
  align-self: center;
  font-size: 18px;
  font-weight: 800;
  color: #444;
  margin: 6px 4px;
}

@media (max-width: 768px) {
  .lineup-title {
    font-size: 18px;
  }

  /* 모바일에서 기본 로고 영역 숨김 */
  .lineup-info-box {
    display: none;
  }

  .lineup-team {
    flex: 1 1 100%;
    position: relative;
    margin-bottom: 20px;
  }

  /* 각 팀 표 위에 로고 배치 */
  .lineup-team::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* 홈팀에 로고 추가 (첫 번째 .lineup-team) */
  .lineup-team:first-child::before {
    background-image: var(--home-logo);
  }

  /* 원정팀에 로고 추가 (두 번째 .lineup-team) */
  .lineup-team:nth-child(3)::before {
    background-image: var(--away-logo);
  }

  .lineup-table {
    gap: 14px;
    flex-direction: column;
    align-items: center;
  }

  /* ✅ VS 중앙 고정 */
  .lineup-table>.lineup-vs {
    order: 0;
    /* ← 기존 order:2 제거 */
    width: 100%;
    text-align: center;
    font-size: 18px;
    margin: 10px 0;
  }

  .lineup-team thead th {
    font-size: 13px;
    padding: 8px 4px;
  }

  .lineup-team tbody td {
    font-size: 14px;
    padding: 9px 4px;
  }

  .lineup-team tbody td:nth-child(2) {
    word-break: break-all;
  }

  .lineup_maintitle {
    font-size: 28px;
    font-weight: bold;
    /* margin-top: 28px; */
  }

  .line1_lineup {
    margin-top: 10px;
    border-top: 3px solid #000080;
    margin-bottom: 10px;

  }

  .lineup-wrapper {
    /* width: min(1100px, 96%); */
    margin: 20px 20px 20px 20px;
    font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
    color: #222;
  }
}


/* --------- 큰 화면(데스크톱) --------- */
@media (min-width: 769px) {

  .lineup-wrapper {
    width: min(1100px, 96%);
    /* margin: 20px auto 60px; */
    font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
    color: #222;
  }

  .lineup_maintitle {
    font-size: 28px;
    font-weight: bold;
    margin-top: 28px;
  }

  .line1_lineup {
    margin-top: 10px;
    border-top: 3px solid #000080;
    margin-bottom: 10px;

  }

  /* 상단 기본 로고 영역 숨김 */
  .lineup-info-box {
    display: none;
  }

  /* 각 팀 표 위에 로고 배치 */
  .lineup-team::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* 홈팀에 로고 추가 (첫 번째 .lineup-team) */
  .lineup-team:first-child::before {
    background-image: var(--home-logo);
  }

  /* 원정팀에 로고 추가 (세 번째 .lineup-team - VS 다음) */
  .lineup-team:nth-child(3)::before {
    background-image: var(--away-logo);
  }

  /* 라인업 표 레이아웃 */
  .lineup-table {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 40px;
  }

  /* VS 스타일 */
  .lineup-table>.lineup-vs {
    align-self: center;
    font-size: 24px;
    font-weight: 900;
    color: #0B3D91;
    margin: 0 20px;
    margin-top: 60px;
    /* 로고 공간만큼 아래로 */
  }
}