:root {
  --brand-red: #d72924;
  --brand-blue: #0059bf;
  --ink: #404040;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --nba: #ED6F00;
  --nfl: #ED2700;
  --mlb: #2FC24A;
  --nba-league-pass: #1d428a;
  --dazn: #0a0a0a;
  --espn: #d72924;
  --positive: #0f8a2d;
  --danger: #ef233c;
  --accent: #0059bf;
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-button: 0 14px 24px rgba(15, 23, 42, 0.14);
  --radius-lg: 22px;
  --radius-xl: 28px;
  color-scheme: light;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 70% 0%, rgba(215, 41, 36, 0.04), transparent 32%), #fff;
}

button, a { font: inherit; }

.page-shell {
  min-height: 100vh;
  padding: 24px clamp(20px, 6vw, 88px) 48px;
}

.site-header {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 210px;
  height: auto;
  display: block;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  margin: 5px 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  max-width: 620px;
  margin-bottom: 42px;
}

.eyebrow {
  color: var(--brand-red);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.hero p,
.helper,
.section-subtitle,
.footer-note {
  color: var(--muted);
}

.hero p {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
}

.league-section {
  margin-bottom: 42px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.helper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
  font-size: 18px;
}

.helper-arrow {
  font-size: 28px;
  line-height: 1;
}

.league-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.league-card {
  min-height: 100px;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-button);
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, outline 160ms ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.league-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}

.league-card:hover,
.league-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  outline: 4px solid rgba(0, 89, 191, 0.18);
}

.league-card[aria-pressed="true"] {
  outline: 4px solid rgba(215, 41, 36, 0.22);
}

.league-card span {
  z-index: 1;
  color: #fff;
  font-weight: 900;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-align: center;
}

.league-card[data-league="nba"] { background: linear-gradient(145deg, #FF8C1A, var(--nba)); }
.league-card[data-league="nfl"] { background: linear-gradient(145deg, #FF4520, var(--nfl)); }
.league-card[data-league="mlb"] { background: linear-gradient(145deg, #40D860, var(--mlb)); }

.games-section {
  margin-top: 14px;
}

.section-subtitle {
  margin: 8px 0 16px;
  font-size: 17px;
}

.games-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GAME ROW — Shows matchup with VOD streaming logo
   ═══════════════════════════════════════════════════════════════════════════ */
.game-row {
  display: grid;
  grid-template-columns: 60px 1fr 40px 1fr 1px 140px 80px;
  align-items: center;
  min-height: 88px;
  padding: 20px 24px;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}

.game-row:hover {
  background: #fafbfd;
}

.game-row:last-child { border-bottom: 0; }

.vod-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
}

.vod-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-left: -12px;
  padding-top: 8px;
}

.game-row-label {
  display: grid;
  grid-template-columns: 60px 1fr 40px 1fr 1px 140px 80px;
  align-items: center;
  padding: 8px 24px;
  gap: 12px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
}

.game-row-label-text {
  text-align: right;
}

.league-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
}

.league-pill.nba { background: var(--nba); }
.league-pill.nfl { background: var(--nfl); }
.league-pill.mlb { background: var(--mlb); }

.team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-name {
  display: inline;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: var(--ink);
}

.team-badge {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.22);
  flex-shrink: 0;
  align-self: center;
}

.vs {
  text-align: center;
  color: #94a3b8;
  font-weight: 800;
  font-size: 13px;
  text-transform: lowercase;
}

.vertical-rule {
  height: 44px;
  width: 1px;
  background: var(--border);
}

.game-time {
  padding-left: 16px;
}

.game-time .date {
  color: var(--brand-red);
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.game-time .time {
  display: block;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VOD STREAMING LOGO — Clickable link to watch
   ═══════════════════════════════════════════════════════════════════════════ */
.vod-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  text-decoration: none;
}

a.vod-link:hover {
  background: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(215, 41, 36, 0.15);
  transform: translateY(-2px);
}

.vod-logo {
  height: 32px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

.footer-note {
  margin: 28px 0 0;
  font-size: 15px;
}

.ss-sc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: color 0.12s ease;
}

.ss-sc-back:hover {
  color: var(--ink);
}

.ss-sc-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

.league-card-flag {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .page-shell { padding: 22px 20px 40px; }
  .site-header { margin-bottom: 28px; }
  .menu-button { display: none; }

  .hero {
    margin-bottom: 28px;
  }
  h1 { font-size: clamp(40px, 11vw, 56px); line-height: 1.02; white-space: normal; }
  .hero p { font-size: 17px; }

  .league-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .league-card { min-height: 80px; padding: 16px 10px; border-radius: 18px; gap: 8px; }
  .league-card span { font-size: clamp(28px, 8.5vw, 40px); }
  .league-card .league-card-flag { font-size: 12px; padding: 3px 9px; }

  .games-section { margin-top: 4px; }
  .section-subtitle { font-size: 16px; }
  .team-name { display: none; }

  .game-row {
    grid-template-columns: auto 1fr auto 1fr 1px auto 60px;
    align-items: center;
    gap: 8px;
    padding: 16px 14px;
    min-height: 76px;
  }
  .league-pill { min-width: 40px; height: 24px; padding: 0 8px; font-size: 11px; }

  body.has-league .game-row {
    grid-template-columns: 1fr auto 1fr 1px auto 60px;
    padding: 16px;
  }
  body.has-league .game-row .league-pill { display: none; }

  .vod-label {
    font-size: 9px;
  }

  .team-badge { width: 40px; height: 40px; font-size: 14px; }
  .vs { font-size: 12px; }
  .vertical-rule { height: 32px; }
  .game-time { padding-left: 8px; }
  .game-time .date { font-size: 11px; }
  .game-time .time { font-size: 13px; white-space: nowrap; }

  .vod-link { padding: 6px 8px; }
  .vod-logo { height: 24px; max-width: 48px; }
}

@media (max-width: 480px) {
  .page-shell { padding: 20px 16px 34px; }
  .ss-sc-page .brand-name { font-size: 23px; }
  .ss-sc-page .brand-mark svg { height: 30px; }

  .league-grid { gap: 9px; }
  .league-card { min-height: 70px; padding: 12px 8px; gap: 6px; }
  .league-card span { font-size: clamp(24px, 8vw, 34px); }

  .game-row { padding: 14px 12px; gap: 6px; min-height: 68px; }
  .team-badge { width: 36px; height: 36px; font-size: 13px; }
  .game-time { padding-left: 6px; }
  .game-time .time { font-size: 12px; }

  .vod-link { padding: 5px 6px; border-radius: 8px; }
  .vod-logo { height: 20px; max-width: 40px; }
}
