/* =========================================
   INDEX.CSS — Today's Games Main Page
   Light Theme
   ========================================= */

/* ── Date Nav ──────────────────────────── */
.date-nav-wrap {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 0 0;
  margin-bottom: 24px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.date-nav::-webkit-scrollbar { display: none; }

.date-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  flex-shrink: 0;
  color: var(--text-mid);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.date-arrow:hover {
  background: var(--blue-light);
  color: var(--blue-accent);
}

.date-chips {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0 0;
}

.date-chips::-webkit-scrollbar { display: none; }

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
  padding: 6px 10px 12px;
  border-radius: 10px 10px 0 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.date-chip .day-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.date-chip .day-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-mid);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.date-chip:hover .day-num { color: var(--blue-accent); }

.date-chip.active {
  background: var(--blue-light);
  border-bottom-color: var(--blue-accent);
}

.date-chip.active .day-name,
.date-chip.active .day-num { color: var(--blue-accent); }

/* ── Page Header ───────────────────────── */
.games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.games-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.games-title h1 {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.games-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--blue-accent);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
}

.games-filters { display: flex; gap: 5px; align-items: center; }

/* ── Section Title ─────────────────────── */
.section-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

/* ── Ranking Header ────────────────────── */
.ranking-header {
  margin-bottom: 16px;
}

.ranking-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.ranking-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: linear-gradient(135deg, #1e3a8a, #3b6fd4);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  border-radius: 4px;
}

.ranking-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1;
}

.ranking-title em {
  font-style: normal;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ranking-season-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #3b6fd4;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.5px;
}

.ranking-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin: 0 0 10px;
}

.ranking-desc-box {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #f8faff;
  border: 1px solid #e0e9ff;
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 12px;
  color: #4a5568;
  line-height: 1.65;
}

.ranking-desc-box svg {
  color: #3b6fd4;
  margin-top: 1px;
}

.ranking-desc-box strong {
  color: #1e3a8a;
  font-weight: 700;
}

/* ── (구) section-label / section-sub 유지 ─ */
.section-label {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}

/* ── Ranking Description ───────────────── */
.ranking-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: -6px 0 14px;
}

/* ── Rankings Section ──────────────────── */
.rankings-section {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 40px;
}

.rankings-left {
  flex: 0 0 60%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 0;
}

.rankings-tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.rankings-tab {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}

.rankings-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.rankings-tab:not(.active):hover {
  background: var(--bg-hover);
  color: var(--navy);
}

.rankings-team-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.rtf-chip {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.rtf-chip:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.rtf-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.rankings-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rankings-table th {
  padding: 9px 10px;
  background: var(--bg-elevated);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.rankings-table th:nth-child(-n+3) { text-align: left; }
.rankings-table th[data-sort] { cursor: pointer; user-select: none; transition: color 0.15s; }
.rankings-table th[data-sort]:hover { color: var(--text); }
.rankings-table th.sort-active { color: var(--accent, #3B82F6); }
.sort-indicator { font-size: 9px; margin-left: 2px; }

.rankings-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  color: var(--text-mid);
  white-space: nowrap;
}

.rankings-table td:nth-child(-n+3) { text-align: left; }
.rankings-table tbody tr:hover { background: var(--bg-hover); }

/* 순위 배지 */
.rank-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.rank-1 { background: var(--gold-light); color: var(--gold); }
.rank-2 { background: #F1F5F9; color: #64748B; }
.rank-3 { background: #FEF3C7; color: #B45309; }
.rank-n { background: transparent; color: var(--text-soft); font-weight: 600; }

.rank-change { font-size: 10px; font-weight: 700; }
.rank-up   { color: #16A34A; }
.rank-down { color: var(--red-live); }
.rank-same { color: var(--text-disabled); }

/* 선수 셀 */
.td-player-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.td-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.td-avatar-fallback {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.td-player-name { font-weight: 700; color: var(--navy); font-size: 12px; }
.td-total { font-weight: 800; color: var(--navy) !important; }

/* 수직 구분선 */
.rankings-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* 우측 HOT/COLD */
.rankings-right {
  flex: 0 0 40%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hot-cold-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

.hot-cold-block:last-child { border-bottom: none; }

.hot-cold-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  flex-shrink: 0;
}

.hot-header  { background: linear-gradient(135deg, #1a0505 0%, #7f1d1d 100%); }
.cold-header { background: linear-gradient(135deg, #0a0f1a 0%, #1e3a5f 100%); }

.hot-cold-header span:first-child {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.03em;
}

.hc-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.hot-cold-players {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── 스탯 카드 ────────────────────────────── */
.hc-stat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  flex: 1;
}
.hc-stat-card:last-child { border-bottom: none; }
.hc-stat-card:hover { background: var(--bg-hover); }

.hc-sc-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.hc-sc-accent--hot  { background: linear-gradient(180deg, #EF4444, #991B1B); }
.hc-sc-accent--cold { background: linear-gradient(180deg, #3B82F6, #1D4ED8); }

.hc-sc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 6px 14px;
}

.hc-sc-rank {
  font-size: 12px;
  font-weight: 900;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.hc-rank-1 { color: #F59E0B; }
.hc-rank-2 { color: #94A3B8; }
.hc-rank-3 { color: #B45309; }
.hc-rank-n { color: var(--text-muted); }

.hc-avatar {
  width: 36px; height: 36px;
  border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid var(--border);
}
.hc-avatar-fallback {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff; flex-shrink: 0;
}

.hc-sc-meta { flex: 1; min-width: 0; }
.hc-sc-name {
  font-size: 13px; font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hc-sc-team { font-size: 10px; color: var(--text-soft); margin-top: 1px; font-weight: 600; }

.hc-sc-badge {
  font-size: 9px; font-weight: 800;
  white-space: nowrap; padding: 2px 6px;
  border-radius: 20px; flex-shrink: 0;
}
.hc-sc-badge--hot  { background: rgba(220,38,38,0.1);  color: #DC2626; }
.hc-sc-badge--cold { background: rgba(37,99,235,0.1);  color: #2563EB; }

/* ── 핵심 지표 그리드 ─────────────────────── */
.hc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 12px 8px 14px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.hc-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 2px 4px;
  border-right: 1px solid var(--border);
}
.hc-kpi:last-child { border-right: none; }
.hc-kval {
  font-size: 11px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1; letter-spacing: -0.03em;
}
.hc-klabel {
  font-size: 8px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
  white-space: nowrap;
}

.hc-empty {
  padding: 16px; font-size: 12px;
  color: var(--text-soft); text-align: center;
}

/* ── Game Cards Grid ───────────────────── */
.games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── Game Card ─────────────────────────── */
.game-card {
  flex: 0 0 calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* 팀 컬러 그라데이션 상단 바 제거 */
.game-card::before { display: none; }

.game-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Card meta row */
.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.game-card-meta .badge {
  background: var(--bg-elevated);
  color: var(--text-mid);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
}

.badge-ended {
  background: rgba(220,38,38,0.85) !important;
  border-color: rgba(220,38,38,0.5) !important;
  color: #fff !important;
  margin-left: 6px;
}

.badge-cancel {
  background: rgba(100,116,139,0.7) !important;
  border-color: rgba(100,116,139,0.4) !important;
  color: #fff !important;
  margin-left: 6px;
}

.badge-live {
  background: rgba(34,197,94,0.85) !important;
  border-color: rgba(34,197,94,0.5) !important;
  color: #fff !important;
  margin-left: 6px;
  animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

.game-card-cancelled {
  opacity: 0.45;
  filter: grayscale(60%);
  pointer-events: none;
}

.game-cancel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10,20,40,0.55);
  border-radius: inherit;
  z-index: 10;
  pointer-events: none;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.game-venue {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}

.game-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

/* Teams Row */
.game-teams {
  display: flex;
  align-items: center;
  padding: 18px 16px 14px;
}

.game-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
}

/* 로고 래퍼 — 팀컬러 글로우 링 */
.game-team-logo-wrap {
  position: relative;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--team-color, #ccc), transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--team-color, #888) 40%, transparent);
}

.logo-wrap--favored {
  padding: 3px;
  box-shadow: 0 0 0 3px var(--team-color, #888),
              0 0 22px color-mix(in srgb, var(--team-color, #888) 60%, transparent);
  animation: favored-pulse 2s ease-in-out infinite;
}

@keyframes favored-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--team-color, #888), 0 0 22px color-mix(in srgb, var(--team-color, #888) 60%, transparent); }
  50%       { box-shadow: 0 0 0 3px var(--team-color, #888), 0 0 36px color-mix(in srgb, var(--team-color, #888) 80%, transparent); }
}

.favored-crown {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  border-radius: 8px;
  padding: 2px 7px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.game-team--favored .game-team-logo {
  width: 68px;
  height: 68px;
}

.team-name--favored {
  font-size: 17px !important;
}

.game-team-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 2px solid var(--bg-card);
}

.game-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

/* Fallback gradient circles (used when img fails) */
.game-team-logo-fb {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.game-team-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.game-team-starter-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.starter-badge {
  font-size: 9px;
  font-weight: 800;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.game-team-starter {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* VS / Score */
.game-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  flex-shrink: 0;
}

.game-vs-text {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-soft);
  letter-spacing: 0.1em;
}

.game-score {
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
}

.game-vs:has(.game-score) {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.game-vs:has(.game-score) .game-vs-text {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

.game-score .score-divider {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 400;
}

/* Probability — Diagonal Split */
.game-prob-split {
  position: relative;
  height: 78px;
  overflow: hidden;
  flex-shrink: 0;
}

.gps-away,
.gps-home {
  position: absolute;
  inset: 0;
}

.gps-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events: none;
}

.gps-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.gps-side--home { align-items: flex-end; }

.gps-pct {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  font-variant-numeric: tabular-nums;
}

.gps-crown {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.gps-divider-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

/* Prediction row */
.game-prediction-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-soft);
}

.game-prediction-row strong {
  color: var(--navy);
  font-weight: 800;
}

/* Key factor row */
.game-key-factor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 11px 16px 10px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border-top: 1px solid var(--border);
}

.game-key-factor-main {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: #1a3a6e;
  letter-spacing: 0.01em;
}

.game-key-factor-main svg {
  flex-shrink: 0;
  color: #3b6fd4;
}

.game-key-factor-sub {
  font-size: 11px;
  font-weight: 500;
  color: #5a7ab0;
  text-align: center;
  line-height: 1.4;
}

/* Divergence row */
.game-divergence {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.divergence-label {
  color: var(--text-soft);
  font-weight: 500;
}

.divergence-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.divergence-value.pos     { color: var(--green-field); }
.divergence-value.neg     { color: var(--red-live); }
.divergence-value.neutral { color: var(--text-soft); }

/* PFF Grade section */
.game-grades {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.team-grade-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.team-grade-item.right { flex-direction: row-reverse; }

.grade-ring {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.grade-ring svg { transform: rotate(-90deg); }

.grade-ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.grade-info { display: flex; flex-direction: column; gap: 1px; }
.grade-info .grade-team { font-size: 11px; font-weight: 700; color: var(--navy); }
.grade-info .grade-tier { font-size: 10px; font-weight: 700; letter-spacing: 0.03em; }

.grade-tier.elite  { color: var(--gold); }
.grade-tier.good   { color: var(--green-field); }
.grade-tier.avg    { color: var(--text-soft); }
.grade-tier.poor   { color: var(--red-live); }

.grade-vs-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  margin: 0 6px;
  overflow: hidden;
}

.grade-vs-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #94A3B8, var(--blue-accent));
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}

/* ── 예상 득점 (game card) ─────────────── */
.grade-score-pred {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 4px;
}

.gsp-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.gsp-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.gsp-num {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.gsp-colon {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-soft);
  line-height: 1;
}

.gsp-total {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* No games */
.no-games {
  width: 100%;
  text-align: center;
  padding: 60px 24px;
}

.no-games svg { margin: 0 auto 14px; color: var(--text-soft); opacity: 0.5; }
.no-games h3 { font-size: 16px; font-weight: 700; color: var(--text-mid); margin-bottom: 4px; }
.no-games p  { font-size: 13px; color: var(--text-soft); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1100px) {
  .game-card { flex: 0 0 calc(50% - 7px); max-width: calc(50% - 7px); }
  .rankings-section { flex-direction: column; }
  .rankings-left  { flex: none; width: 100%; border-bottom: 1px solid var(--border); }
  .rankings-right { flex: none; width: 100%; flex-direction: row; }
  .rankings-divider { display: none; }
  .hot-cold-block { border-bottom: none; border-right: 1px solid var(--border); }
  .hot-cold-block:last-child { border-right: none; }
}

@media (max-width: 680px) {
  .game-card { flex: 0 0 100%; max-width: 100%; }
  .rankings-right { flex-direction: column; }
  .hot-cold-block { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── 배트맨 배당 ────────────────────────── */
.game-odds-row {
  border-top: 1px solid var(--border);
  padding: 10px 14px 12px;
}

.game-odds-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.game-odds-source {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-odds-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.game-odds-badge--live {
  background: #DCFCE7;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.game-odds-badge--none {
  background: var(--bg-elevated);
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.game-odds-body {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.odds-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 10px 8px;
  gap: 1px;
  transition: background 0.15s;
}

.odds-chip:hover {
  background: var(--bg-hover);
}

.odds-chip--right {
  border-left: 1px solid var(--border);
}

.odds-chip-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.odds-chip-team {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.odds-chip-num {
  font-size: 20px;
  font-weight: 900;
  color: #D97706;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.game-odds-empty {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.45;
  text-align: center;
  padding: 4px 0;
}

/* ═══════════════════════════════════════════
   YouTube Highlights Section
   ═══════════════════════════════════════════ */
.hl-section {
  margin-top: 56px;
  margin-bottom: 48px;
}

/* ── TVING TOP 5 Featured ──────────────────── */
.hl-featured-wrap {
  margin-bottom: 32px;
}

.hl-featured-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hl-tving-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FF0000;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
}

.hl-featured {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* 랭크 뱃지 */
.hl-rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  z-index: 2;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  letter-spacing: -0.5px;
}
.hl-rank-badge.rank-1 { background: #FF0000; font-size: 15px; width: 32px; height: 32px; }
.hl-rank-badge.rank-2 { background: linear-gradient(135deg, #FF4500, #FF6B35); }
.hl-rank-badge.rank-3 { background: linear-gradient(135deg, #FF6B35, #FF8C00); }
.hl-rank-badge.rank-4 { background: linear-gradient(135deg, #64748B, #475569); }
.hl-rank-badge.rank-5 { background: linear-gradient(135deg, #64748B, #475569); }

/* featured 카드는 position:relative 필요 */
.hl-featured .hl-card {
  position: relative;
}

/* featured 카드 썸네일 비율 약간 다르게 */
.hl-featured .hl-thumb-wrap {
  aspect-ratio: 16/9;
}

/* 팀 선택 시 — 1개만 표시, 적당한 크기로 제한 */
.hl-featured.hl-featured-single {
  display: block;
  max-width: 360px;
}

@media (max-width: 900px) {
  .hl-featured { grid-template-columns: repeat(3, 1fr); }
  .hl-featured .hl-card:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
  .hl-featured { grid-template-columns: repeat(2, 1fr); }
  .hl-featured .hl-card:nth-child(n+3) { display: none; }
}

.hl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hl-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FF0000;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
}

.hl-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy, #0F172A);
  letter-spacing: -0.3px;
  margin: 0;
}

.hl-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hl-search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-elevated, #F8FAFC);
  border: 1.5px solid var(--border, #E2E8F0);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.hl-search-wrap:focus-within { border-color: #FF0000; }

.hl-search-input {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--navy, #0F172A);
  width: 200px;
  outline: none;
}
.hl-search-input::placeholder { color: var(--text-muted, #94A3B8); }

.hl-search-btn {
  border: none;
  background: #FF0000;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.hl-search-btn:hover { background: #cc0000; }

.hl-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hl-chip {
  border: 1.5px solid var(--border, #E2E8F0);
  background: var(--bg-elevated, #F8FAFC);
  color: var(--text-mid, #475569);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
/* 팀 색상 있는 칩 — 비활성: 테두리+글자만 팀 색 */
.hl-chip[data-color]:not([data-color=""]):not(.active) {
  border-color: var(--chip-color);
  color: var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 8%, transparent);
}
.hl-chip[data-color]:not([data-color=""]):not(.active):hover {
  background: color-mix(in srgb, var(--chip-color) 18%, transparent);
}
/* 전체 칩 hover */
.hl-chip[data-color=""]:hover { border-color: #FF0000; color: #FF0000; }
/* 활성 상태는 JS에서 인라인으로 팀 색 적용, 전체 칩은 CSS 기본값 */
.hl-chip.active { background: #FF0000; border-color: #FF0000; color: #fff; }

/* Grid */
.hl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hl-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px;
  color: var(--text-muted, #94A3B8);
  font-size: 14px;
}

.hl-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted, #94A3B8);
  font-size: 14px;
}

.hl-no-key {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 24px;
  background: var(--bg-elevated, #F8FAFC);
  border: 1.5px dashed var(--border, #E2E8F0);
  border-radius: 16px;
  text-align: center;
}
.hl-no-key svg { opacity: 0.35; }
.hl-no-key p { margin: 0; font-size: 14px; color: var(--text-mid, #475569); }
.hl-no-key code { font-size: 12px; background: var(--bg-card, #fff); padding: 2px 8px; border-radius: 5px; border: 1px solid var(--border, #E2E8F0); }

/* Card */
.hl-card {
  background: var(--bg-elevated, #F8FAFC);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.hl-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.10); }
.hl-card:hover .hl-thumb-overlay { opacity: 1; }

.hl-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.hl-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.hl-card:hover .hl-thumb { transform: scale(1.04); }

.hl-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.hl-play-btn {
  width: 52px;
  height: 52px;
  background: rgba(255,0,0,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,0,0,0.5);
}

.hl-duration {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.hl-card-body {
  padding: 11px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.hl-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy, #0F172A);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hl-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.hl-channel {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mid, #475569);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.hl-date {
  font-size: 10px;
  color: var(--text-muted, #94A3B8);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Modal */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.yt-modal.open {
  opacity: 1;
  pointer-events: all;
}

.yt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.yt-modal-wrap {
  position: relative;
  width: min(860px, 95vw);
  background: #0F172A;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.yt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.yt-modal-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-modal-close {
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.yt-modal-close:hover { background: rgba(255,255,255,0.2); }

.yt-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.yt-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 1100px) { .hl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .hl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .hl-grid { grid-template-columns: 1fr; } }
