/* Highlight Zone — "stadium at night" theme.
   Display: Lilita One (chunky + friendly). Labels: Barlow Condensed (broadcast lower-thirds).
   Body: Nunito. Gold is the one action color; turf green means done, hot pink means new. */
:root {
  --bg: #060a18;
  --surface: #0f1630;
  --surface-2: #172042;
  --line: #24305a;
  --text: #f5f7ff;
  --muted: #8f9bc4;
  --gold: #ffc83d;
  --gold-ink: #241900;
  --turf: #34e39a;
  --sky: #45c4ff;
  --hot: #ff4f7b;
  --radius: 24px;
  --display: 'Lilita One', 'Nunito', system-ui, sans-serif;
  --label: 'Barlow Condensed', 'Nunito', system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 84px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  min-height: 100vh;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  background:
    radial-gradient(55% 38% at 6% -6%, rgba(130, 175, 255, 0.24), transparent 70%),
    radial-gradient(45% 32% at 96% -8%, rgba(255, 200, 61, 0.16), transparent 70%),
    linear-gradient(180deg, #0c1533 0%, var(--bg) 60%);
  background-attachment: fixed;
}
/* Faint yard lines, fading out down the page like a field under the lights. */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 140px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; -webkit-touch-callout: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.3px; margin: 0; }

#app {
  max-width: 1240px; margin: 0 auto;
  padding: calc(var(--safe-top) + 12px) 20px calc(var(--safe-bottom) + var(--tabbar-h) + 40px);
}
.no-tabs #app { padding-bottom: calc(var(--safe-bottom) + 30px); }

/* ---------- App bar + page heads ---------- */
.appbar { display: flex; align-items: center; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 4px 12px rgba(255, 200, 61, 0.35)); }
.appbar .brand { border-radius: 14px; transition: transform 0.1s; }
.appbar .brand:active { transform: scale(0.96); }
.brand-name { display: inline-flex; align-items: center; font-family: var(--display); font-size: 24px; line-height: 1; text-transform: uppercase; letter-spacing: 0.6px; transform: skewX(-9deg); }
.bn-zone {
  margin-left: 7px; padding: 5px 9px 3px; border-radius: 7px; color: var(--gold-ink);
  background: linear-gradient(135deg, #ffe066, #ff9f1c); box-shadow: 0 4px 14px rgba(255, 159, 28, 0.35);
}

.kicker {
  font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 6px;
}
.page-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 20px; }
.page-head h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1; margin-top: 4px; }
.icon-btn {
  width: 54px; height: 54px; border-radius: 18px; background: var(--surface); font-size: 24px; flex: none;
  display: grid; place-items: center; border: 2px solid var(--line); transition: transform 0.1s;
}
.icon-btn:active { transform: scale(0.92); }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bottom) + 12px);
  width: min(480px, calc(100% - 24px)); height: var(--tabbar-h); padding: 8px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: rgba(15, 22, 48, 0.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 30px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 22px;
  color: var(--muted); transition: background 0.2s, color 0.2s, transform 0.1s;
}
.tab-ico { font-size: 26px; line-height: 1; transition: transform 0.2s; }
.tab-lbl { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; }
.tab.on { background: var(--gold); color: var(--gold-ink); }
.tab.on .tab-ico { transform: translateY(-1px) scale(1.08); }
.tab:active { transform: scale(0.94); }

/* ---------- Sections ---------- */
.section { margin: 30px 0 34px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sec-head h2 { font-size: 28px; }
.sec-head .sub { font-family: var(--label); font-weight: 600; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.see-all {
  margin-left: auto; font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--sky); padding: 10px 14px; border-radius: 999px; background: rgba(69, 196, 255, 0.1);
}
.team-chip {
  display: flex; align-items: center; gap: 12px; padding: 6px 22px 6px 6px; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 85%, #000) 0%, color-mix(in srgb, var(--tc) 35%, transparent) 70%, transparent 100%);
}
.team-chip .logo-badge { width: 52px; height: 52px; }
.team-chip span { font-family: var(--display); font-size: 26px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }

.row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 14px; margin: 0 -20px; scrollbar-width: none; scroll-padding: 20px; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; flex: none; width: min(340px, 80vw); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }

/* Cards rise in one after another when a screen opens. */
.row > *, .grid > *, .spotlight, .teams-grid > * { animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.row > :nth-child(2), .grid > :nth-child(2) { animation-delay: 0.05s; }
.row > :nth-child(3), .grid > :nth-child(3) { animation-delay: 0.1s; }
.row > :nth-child(4), .grid > :nth-child(4) { animation-delay: 0.15s; }
.row > :nth-child(5), .grid > :nth-child(5) { animation-delay: 0.2s; }
.row > :nth-child(n + 6), .grid > :nth-child(n + 6) { animation-delay: 0.25s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Tags + badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55); color: #fff;
}
.tag[style*='--lc']::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lc); }
.tag.ghost { box-shadow: none; background: rgba(255, 255, 255, 0.14); }
.badge {
  font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); white-space: nowrap;
}
.badge.new { background: var(--hot); color: #fff; animation: pulse 2.4s ease-in-out infinite; }
.badge.watched { background: var(--turf); color: #002616; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 79, 123, 0.18), 0 4px 12px rgba(0, 0, 0, 0.4); } }

/* ---------- Logo badge ---------- */
.logo-badge {
  width: 80px; height: 80px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 8px 18px rgba(0, 0, 0, 0.45);
}
.logo-badge img { width: 74%; height: 74%; object-fit: contain; }
.logo-badge .abbr { color: #111; font-family: var(--display); font-size: 22px; }
.logo-badge.xl { width: 128px; height: 128px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2), 0 14px 30px rgba(0, 0, 0, 0.5); }

/* ---------- Game card (matchup) ---------- */
.game-card {
  position: relative; isolation: isolate; overflow: hidden; text-align: left; min-height: 212px;
  display: flex; flex-direction: column; border-radius: var(--radius);
  background: linear-gradient(118deg, var(--c1) 0 49.6%, var(--c2) 50.4% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s;
}
/* Stripe texture + bottom shade so white text always reads on any team color. */
.game-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.72) 100%);
}
.game-card:active { transform: scale(0.97); }
.game-card.fav { box-shadow: inset 0 0 0 3px var(--gold), 0 0 0 1px rgba(255, 200, 61, 0.3), 0 10px 30px rgba(255, 200, 61, 0.18); }
.gc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 14px 0; }
.gc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; padding: 10px 10px 6px; }
.gc-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.gc-team .name { font-family: var(--display); font-size: 21px; line-height: 1.05; text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.gc-team .score { font-family: var(--display); font-size: 28px; line-height: 1; padding: 3px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.55); }
.gc-team .score.win { color: var(--gold); }
.gc-vs {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-top: -26px;
  font-family: var(--label); font-weight: 700; font-size: 16px; letter-spacing: 1px;
  background: #0b1020; border: 2px solid rgba(255, 255, 255, 0.25);
}
.gc-foot { display: flex; align-items: center; gap: 8px; padding: 6px 14px 14px; margin-top: auto; }
.gc-when { font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.gc-note { font-family: var(--label); font-size: 14px; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-play {
  margin-left: auto; height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--gold-ink); font-family: var(--label); font-weight: 700; font-size: 17px; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); white-space: nowrap;
}
.gc-play.soon { background: rgba(255, 255, 255, 0.18); color: #fff; box-shadow: none; }
.game-card.not-ready { cursor: default; filter: saturate(0.55) brightness(0.85); }
.game-card.is-watched .gc-teams { opacity: 0.8; }

/* Inside a day section the heading already says the day. */
.day-section .gc-when { display: none; }

/* ---------- Clip card ---------- */
.clip-card {
  position: relative; text-align: left; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.3); transition: transform 0.12s;
  display: flex; flex-direction: column;
}
.clip-card:active { transform: scale(0.97); }
.clip-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.clip-card:hover .clip-thumb img { transform: scale(1.04); }
.clip-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55)); }
.clip-thumb .dur {
  position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.75);
  font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
}
.clip-thumb .play-dot {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255, 200, 61, 0.95); color: var(--gold-ink); display: grid; place-items: center; font-size: 24px; padding-left: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); transition: transform 0.15s;
}
.clip-card:active .play-dot { transform: translate(-50%, -50%) scale(0.9); }
.clip-thumb .badge { position: absolute; z-index: 1; top: 10px; left: 10px; }
.clip-thumb.spoiler img { filter: blur(16px) saturate(1.3); transform: scale(1.25); }
.clip-card:hover .clip-thumb.spoiler img { transform: scale(1.25); }
.spoiler-tag {
  position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.6);
  font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.clip-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.clip-body .tag { align-self: flex-start; background: var(--surface-2); height: 24px; font-size: 13px; }
.clip-title { font-size: 17px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }

/* ---------- Spotlight (Watch next) ---------- */
.spotlight {
  position: relative; isolation: isolate; overflow: hidden; width: 100%; text-align: left; border-radius: 30px;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 20px; padding: 30px 32px; min-height: 260px;
  background: linear-gradient(118deg, var(--c1) 0 52%, var(--c2) 52.4% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s;
}
.spotlight::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 0% 50%, rgba(0, 0, 0, 0.75), transparent 70%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 16px);
}
.spotlight:active { transform: scale(0.985); }
.sp-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sp-title { font-family: var(--display); font-size: clamp(34px, 5.4vw, 54px); line-height: 0.98; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55); }
.sp-title em { font-style: normal; color: var(--gold); font-size: 0.6em; vertical-align: middle; margin: 0 4px; }
.sp-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-cta {
  margin-top: 6px; height: 58px; padding: 0 28px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--gold-ink); font-family: var(--display); font-size: 24px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.sp-logos { display: flex; justify-content: center; align-items: center; }
.sp-logos .logo-badge:last-child { margin-left: -22px; transform: translateY(26px); }
.sp-logos .logo-badge:first-child { transform: translateY(-14px) rotate(-4deg); }

/* ---------- Banner (sport + team pages) ---------- */
.banner {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 18px;
  margin: 12px 0 8px; padding: 22px; border-radius: 30px; min-height: 150px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--lc) 92%, #000) 0%, color-mix(in srgb, var(--lc) 55%, #060a18) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.4);
}
.banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 18px);
}
.banner .icon-btn { background: rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.2); align-self: flex-start; }
.banner-emoji { font-size: 76px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)); }
.banner h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1; text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45); }
.banner .kicker { color: rgba(255, 255, 255, 0.85); }
.banner .grow { flex: 1; min-width: 0; }
.star-btn {
  height: 56px; padding: 0 22px; border-radius: 999px; flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 20px; background: rgba(0, 0, 0, 0.35); border: 2px solid rgba(255, 255, 255, 0.3);
}
.star-btn.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* ---------- Settings gear (top right) ---------- */
.appbar .gear { margin-left: auto; width: 48px; height: 48px; font-size: 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); }

/* ---------- League filter chips (Home + Top Plays) ---------- */
.filters {
  position: sticky; top: 0; z-index: 15; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: -6px -20px 6px; padding: calc(var(--safe-top) + 10px) 20px 12px;
  background: linear-gradient(180deg, rgba(8, 13, 32, 0.96) 70%, rgba(8, 13, 32, 0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.filters::-webkit-scrollbar { display: none; }
.fchip {
  flex: none; height: 46px; padding: 0 18px; border-radius: 999px; white-space: nowrap; transition: transform 0.1s;
  background: var(--surface); border: 2px solid var(--line);
  font-family: var(--label); font-weight: 700; font-size: 17px; letter-spacing: 1.1px; text-transform: uppercase;
}
.fchip:active { transform: scale(0.95); }
.fchip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.more-wrap { display: flex; justify-content: center; margin: 10px 0 20px; }

/* ---------- My Teams grid ---------- */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.team-card {
  position: relative; isolation: isolate; overflow: hidden; min-height: 230px; padding: 22px 16px 18px; border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: transform 0.12s;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 95%, #fff 5%) 0%, color-mix(in srgb, var(--tc) 55%, #060a18) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 30px rgba(0, 0, 0, 0.35);
}
.team-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 16px); }
.team-card:active { transform: scale(0.96); }
.team-card .badge { position: absolute; top: 12px; right: 12px; }
.team-card .logo-badge.lg { width: 104px; height: 104px; margin-bottom: 6px; }
.tc-name { font-family: var(--display); font-size: 26px; line-height: 1.05; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.tc-meta { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.tc-last { font-size: 14px; color: rgba(255, 255, 255, 0.75); margin-top: auto; }
.team-card.add { background: transparent; border: 3px dashed var(--line); box-shadow: none; justify-content: center; color: var(--muted); }
.team-card.add::before { display: none; }
.team-card.add .plus { font-size: 54px; color: var(--gold); line-height: 1; }

/* ---------- Empty / loading ---------- */
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); font-size: 18px; }
.empty-state .big { font-size: 68px; margin-bottom: 10px; }
.empty-state h3 { color: var(--text); font-size: 28px; margin: 6px 0 8px; }
.empty-state p { margin: 0 0 6px; }
.empty-state .big-btn { margin-top: 18px; }
.mini-empty { padding: 22px; border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 17px; border: 2px dashed var(--line); }
.skeleton {
  border-radius: var(--radius); min-height: 212px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.big-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 30px;
  border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-family: var(--display); font-size: 23px;
  box-shadow: 0 10px 26px rgba(255, 200, 61, 0.25); transition: transform 0.1s;
}
.big-btn:active { transform: scale(0.95); }
.big-btn.secondary { background: var(--surface); color: var(--text); box-shadow: none; border: 2px solid var(--line); }
.big-btn[disabled] { opacity: 0.4; }
.google-btn { background: #fff; color: #1f1f1f; gap: 12px; }
.google-btn .g-logo { width: 26px; height: 26px; flex: none; }

/* ---------- Sign-in landing ---------- */
.signin {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px;
  min-height: calc(100vh - 80px); padding: 24px 12px;
}
.si-copy { display: flex; flex-direction: column; align-items: flex-start; }
.si-copy .brand { margin-bottom: 34px; }
.si-copy h1 { font-size: clamp(44px, 6.2vw, 74px); line-height: 0.96; margin: 12px 0 18px; }
.si-hl { color: var(--gold); }
.si-lead { margin: 0; max-width: 520px; color: #c4cceb; font-size: 20px; line-height: 1.45; font-weight: 600; }
.si-points { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 16px; }
.si-points li { display: flex; align-items: flex-start; gap: 14px; }
.si-ico {
  width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.si-points b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; }
.si-points span { color: var(--muted); font-size: 16px; font-weight: 600; }
.si-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 470px; }
.si-cta .fine-print, .si-why { text-align: left; }
.si-why { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.45; }

/* Right side: a mock of the player, plus everything it never shows. */
.si-show { display: flex; flex-direction: column; gap: 22px; animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.si-card {
  padding: 14px; border-radius: 30px; background: rgba(15, 22, 48, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.5); transform: rotate(1.5deg);
}
.si-frame {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px;
  background: linear-gradient(118deg, #c9082a 0 49.6%, #0b3d91 50.4% 100%);
}
.si-frame::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
}
.si-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.si-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 6px; font-size: 30px; background: var(--gold); color: var(--gold-ink);
  box-shadow: 0 0 0 10px rgba(255, 200, 61, 0.2), 0 12px 30px rgba(0, 0, 0, 0.5);
}
.si-scrub { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); }
.si-scrub i { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--gold); }
.si-nevers { padding: 8px 8px 2px; }
.si-never { display: flex; align-items: center; gap: 12px; min-height: 52px; font-size: 17px; }
.si-never + .si-never { border-top: 1px solid var(--line); }
.si-off { margin-left: auto; font-family: var(--label); font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.si-never .switch { margin-left: 0; width: 52px; height: 30px; }
.si-never .switch::after { width: 22px; height: 22px; }
.si-leagues .sub { display: block; margin-bottom: 10px; font-family: var(--label); font-size: 14px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.si-leagues div { display: flex; flex-wrap: wrap; gap: 8px; }
.si-league {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 14px;
  background: color-mix(in srgb, var(--lc) 30%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lc) 60%, transparent);
}

@media (max-width: 900px) {
  .signin { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 12px 0 0; }
  .si-copy .brand { margin-bottom: 24px; }
  .si-card { transform: none; }
}
@media (max-width: 640px) {
  .si-lead { font-size: 18px; }
  .si-cta, .si-cta .big-btn { width: 100%; }
}

/* ---------- Setup / pickers ---------- */
.hero { text-align: center; padding: 26px 10px 6px; }
.hero .brand { justify-content: center; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; margin: 8px 0 10px; }
.hero p { color: var(--muted); font-size: 19px; margin: 0; }
.nav { display: flex; gap: 10px; overflow-x: auto; padding: 14px 20px 6px; margin: 0 -20px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--line); white-space: nowrap; transition: transform 0.1s;
  font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: 1.2px; text-transform: uppercase;
}
.pill .e { font-size: 22px; }
.pill:active { transform: scale(0.95); }
.pill.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 24px 0; }
.sport-tile {
  position: relative; aspect-ratio: 1.1; border-radius: 26px; background: var(--surface); border: 3px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform 0.1s;
}
.sport-tile .e { font-size: 52px; }
.sport-tile .n { font-family: var(--display); font-size: 21px; text-align: center; padding: 0 6px; line-height: 1.05; }
.sport-tile .s { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.sport-tile.on { border-color: var(--turf); background: linear-gradient(160deg, rgba(52, 227, 154, 0.22), var(--surface) 70%); }
.sport-tile.on::after {
  content: '✓'; position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--turf); color: #002616; display: grid; place-items: center; font-size: 19px; animation: pop 0.3s;
}
.sport-tile:active { transform: scale(0.95); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.team-tile {
  position: relative; border-radius: 24px; background: var(--surface); border: 3px solid var(--line); padding: 16px 8px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform 0.1s;
}
.team-tile .logo-badge { width: 72px; height: 72px; }
.team-tile .n { font-size: 15px; text-align: center; line-height: 1.2; }
.team-tile.on { border-color: var(--gold); background: linear-gradient(160deg, rgba(255, 200, 61, 0.22), var(--surface) 70%); }
.team-tile.on::after { content: '⭐'; position: absolute; top: 4px; right: 6px; font-size: 22px; animation: pop 0.3s; }
.team-tile:active { transform: scale(0.94); }
@keyframes pop { 0% { transform: scale(0.2); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }

.search {
  width: 100%; height: 60px; margin-top: 12px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 19px; padding: 0 22px; outline: none;
}
.search:focus { border-color: var(--sky); }
.sticky-foot {
  position: sticky; bottom: 0; padding: 18px 0 calc(var(--safe-bottom) + 16px); display: flex; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, transparent, var(--bg) 45%);
}

.sticky-foot.stack { flex-direction: column; align-items: center; }
.fine-print { margin: 0; max-width: 460px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.fine-print a, .about a { color: var(--text); }
.about p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }

.site-foot { margin: 44px 0 0; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.site-foot a { color: var(--text); }

/* ---------- Settings ---------- */
.panel { background: var(--surface); border-radius: var(--radius); padding: 22px; margin: 16px 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.panel h3 { margin: 0 0 14px; font-size: 24px; }
.panel .hint { color: var(--muted); font-size: 15px; margin: -6px 0 14px; }
.fav-list { display: flex; flex-wrap: wrap; gap: 10px; }
.fav-chip { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 999px; padding: 6px 8px 6px 6px; }
.fav-chip .logo-badge { width: 42px; height: 42px; box-shadow: none; }
.fav-chip.off { opacity: 0.45; }
.fav-chip .sub { display: block; color: var(--muted); font-size: 13px; line-height: 1.1; margin-top: 1px; }
.fav-chip .x { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 15px; }
.toggle-row { display: flex; align-items: center; gap: 14px; min-height: 64px; width: 100%; text-align: left; font-size: 18px; }
.toggle-row .desc { color: var(--muted); font-size: 14px; display: block; margin-top: 2px; }
.switch { margin-left: auto; width: 64px; height: 36px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); position: relative; flex: none; transition: background 0.15s; }
.switch::after { content: ''; position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch.on { background: var(--turf); }
.switch.on::after { transform: translateX(28px); }

/* ---------- Player ---------- */
.player {
  position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 10px) 14px calc(var(--safe-bottom) + 12px);
}
.player[hidden] { display: none; }
.player-top { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.back-btn { min-height: 56px; padding: 0 22px; font-size: 20px; }
.player-title { font-family: var(--display); font-size: 22px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-source { flex: none; font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.player-stage { flex: 1; display: grid; place-items: center; min-height: 0; padding: 10px 0; }
.player-frame { position: relative; width: min(100%, calc((100vh - 220px) * 16 / 9)); aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; }
.player-frame iframe, #yt-host { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.shield-cover { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 0.2s; }
.shield-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; border-radius: 50%;
  background: var(--gold); color: var(--gold-ink); font-size: 54px; padding-left: 10px; display: none; box-shadow: 0 10px 40px #0009;
}
.shield-msg { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 20px; }
.shield-msg h2 { margin: 0; font-size: clamp(26px, 4vw, 40px); }
.shield-msg p { margin: 0; color: var(--muted); font-size: 18px; }
.shield-msg .btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.up-next { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 20px; padding: 10px 18px 10px 10px; text-align: left; max-width: 520px; border: 3px solid var(--gold); }
.up-next img { width: 140px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.up-next .lbl { color: var(--gold); font-size: 14px; }
.up-next .t { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Shield states */
.player.paused .shield-cover { opacity: 0.88; }
.player.paused .shield-play { display: grid; place-items: center; }
.player.message .shield-cover { opacity: 0.97; }
.player.message .shield-msg { display: flex; }
.player.message .shield-play { display: none; }
/* Tap-to-start (when the browser blocks autoplay): let taps through to YouTube's own
   play button in the middle, but keep the title/logo edges covered. */
.player.tap-start .shield { pointer-events: none; }
.player.tap-start .shield::before, .player.tap-start .shield::after { content: ''; position: absolute; left: 0; right: 0; height: 26%; background: #000; pointer-events: auto; }
.player.tap-start .shield::before { top: 0; }
.player.tap-start .shield::after { bottom: 0; }
.player.tap-start .shield-msg { display: flex; justify-content: flex-end; pointer-events: none; z-index: 3; padding-bottom: 6%; }

.player-controls { display: flex; align-items: center; gap: 12px; padding: 6px 4px 0; }
.ctl { width: 64px; height: 64px; border-radius: 50%; background: #ffffff1f; font-size: 28px; display: grid; place-items: center; position: relative; flex: none; }
.ctl small { position: absolute; font-size: 11px; bottom: 12px; }
.ctl-main { width: 76px; height: 76px; background: var(--gold); color: var(--gold-ink); font-size: 32px; }
.ctl:active { transform: scale(0.92); }
.ctl-small { font-size: 20px; font-family: var(--display); }
.ctl-small.on { background: var(--sky); color: #002233; }

/* Big mode: video fills the screen, buttons float on top and fade while playing. */
.player.big { padding: 0; }
.player.big .player-stage { padding: 0; position: absolute; inset: 0; }
.player.big .player-frame { width: min(100vw, calc(100vh * 16 / 9)); max-height: 100vh; border-radius: 0; }
.player.big .player-top {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: calc(var(--safe-top) + 12px) 16px 30px;
  background: linear-gradient(#000b, transparent); transition: opacity 0.35s;
}
.player.big .player-controls {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 40px 18px calc(var(--safe-bottom) + 16px);
  background: linear-gradient(transparent, #000c); transition: opacity 0.35s;
}
.player.big.idle .player-top, .player.big.idle .player-controls { opacity: 0; pointer-events: none; }
.player.big.idle { cursor: none; }
/* While paused or showing a message, keep everything visible. */
.player.big.paused .player-top, .player.big.paused .player-controls,
.player.big.message .player-top, .player.big.message .player-controls { opacity: 1; pointer-events: auto; }
.scrub { flex: 1; height: 44px; position: relative; cursor: pointer; touch-action: none; }
.scrub::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px; border-radius: 999px; background: #ffffff2b; }
.scrub-fill { position: absolute; left: 0; top: 50%; height: 12px; margin-top: -6px; border-radius: 999px; background: var(--gold); width: 0; }
.scrub-knob { position: absolute; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; left: 0; box-shadow: 0 2px 8px #0008; }
.time { font-size: 16px; min-width: 96px; text-align: center; color: var(--muted); }

@media (max-width: 640px) {
  #app { padding-left: 16px; padding-right: 16px; }
  .row, .nav { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 21px; }
  .page-head h1 { font-size: 38px; }
  .sec-head h2 { font-size: 24px; }
  .team-chip span { font-size: 22px; }
  .spotlight { grid-template-columns: 1fr; padding: 24px 22px 26px; gap: 6px; }
  .sp-logos { order: -1; justify-content: flex-start; }
  .sp-logos .logo-badge.xl { width: 92px; height: 92px; }
  .sp-logos .logo-badge:last-child { transform: translateY(10px); }
  .sp-logos .logo-badge:first-child { transform: none; }
  .banner { padding: 18px; gap: 14px; min-height: 120px; flex-wrap: wrap; }
  .banner-emoji { font-size: 54px; }
  .banner .logo-badge.xl { width: 88px; height: 88px; }
  .filters { margin: -6px -16px 6px; padding-left: 16px; padding-right: 16px; }
  .teams-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .team-card { min-height: 200px; padding: 18px 10px 14px; }
  .team-card .logo-badge.lg { width: 80px; height: 80px; }
  .tc-name { font-size: 21px; }
  .sport-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sport-tile .e { font-size: 44px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .team-tile .logo-badge { width: 60px; height: 60px; }
  .tab-lbl { font-size: 12px; letter-spacing: 1px; }
  .tab-ico { font-size: 24px; }
  .ctl { width: 54px; height: 54px; font-size: 24px; }
  .ctl-main { width: 64px; height: 64px; }
  .time { display: none; }
  .ctl-small { width: 46px; height: 46px; font-size: 16px; }
  .ctl[data-action="back10"], .ctl[data-action="fwd10"] { width: 46px; height: 46px; font-size: 20px; }
  .player-controls { gap: 8px; }
  .player-frame { width: 100%; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .player-top { min-height: 48px; }
  .back-btn { min-height: 44px; }
  .player-frame { width: min(100%, calc((100vh - 150px) * 16 / 9)); }
}

/* ---------- Team page: Highlights / Season switch ---------- */
.seg { display: inline-flex; gap: 4px; padding: 5px; margin: 14px 0 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); }
.seg button {
  height: 46px; padding: 0 20px; border-radius: 999px; white-space: nowrap;
  font-family: var(--label); font-weight: 700; font-size: 17px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted);
}
.seg button.on { background: var(--gold); color: var(--gold-ink); }

/* ---------- Season list + Coming up ---------- */
.season-sum {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 20px 0 6px; padding: 18px 22px;
  border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ss-stat { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.ss-stat b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.ss-stat b.turf { color: var(--turf); }
.ss-stat b.hot { color: var(--hot); }
.ss-stat span, .ss-next > span:last-child { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.ss-next { display: flex; flex-direction: column; gap: 2px; margin-left: auto; text-align: right; }
.ss-next b { font-size: 19px; }
.season-filters { margin-top: 0; }

.sched-day { margin: 0 0 18px; }
.sched-day h3 { font-family: var(--label); font-weight: 700; font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.sched-list { display: flex; flex-direction: column; gap: 8px; }
.sched-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 8px 12px 8px 16px; border-radius: 18px; text-align: left; width: 100%;
  background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); border-left: 5px solid transparent;
}
.sched-row.is-watched { border-left-color: var(--turf); }
.sched-row.missed { border-left-color: var(--hot); }
.sched-row.upcoming { background: color-mix(in srgb, var(--surface) 70%, transparent); }
button.sched-row { grid-template-columns: 92px minmax(0, 1fr) auto; }
button.sched-row:active { transform: scale(0.99); }
.sr-date { display: flex; flex-direction: column; line-height: 1.1; }
.sr-date b { font-size: 17px; white-space: nowrap; }
.sr-date small, .sr-time, .sr-off { font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.sr-time { color: var(--text); white-space: nowrap; }
.sr-match { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sr-match .tag { height: 24px; font-size: 12px; }
.sr-name { font-family: var(--display); font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sr-at { font-family: var(--label); font-weight: 700; font-size: 15px; color: var(--muted); text-transform: uppercase; width: 22px; text-align: center; flex: none; }
.logo-badge.sm { width: 40px; height: 40px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15); }
.logo-badge.sm .abbr { font-size: 13px; }
.sr-score { font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: 0.5px; white-space: nowrap; }
.sr-score.W { color: var(--turf); }
.sr-score.L { color: var(--hot); }
.live { color: var(--hot); font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; }
.sr-actions { display: flex; gap: 8px; justify-content: flex-end; }
.sr-play, .sr-mark {
  height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 1.1px; text-transform: uppercase;
}
.sr-play { background: var(--gold); color: var(--gold-ink); }
.sr-mark { border: 2px solid var(--line); color: var(--muted); }
.sr-mark.on { background: var(--turf); border-color: var(--turf); color: #002616; }
.sr-play:active, .sr-mark:active { transform: scale(0.95); }

@media (max-width: 640px) {
  .seg { display: flex; }
  .seg button { flex: 1; padding: 0 10px; }
  .ss-next { margin-left: 0; text-align: left; width: 100%; }
  .sched-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding-left: 12px; }
  .sr-date b { font-size: 16px; }
  .sched-row .sr-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 66px; }
  .sched-row .sr-actions.none { display: none; }
  button.sched-row { grid-template-columns: 70px minmax(0, 1fr); }
  button.sched-row .sr-tags { display: none; }
  .sr-name { font-size: 18px; }
  .sr-match .tag { display: none; }
}
