/* ============================================================
   2026 WC Sweepstake — Styles
   Brand: MM green (#19754C), Brandon Grotesque
   ============================================================ */

@font-face {
  font-family: 'Brandon Grotesque';
  src: url('fonts/BrandonGrotesque-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('fonts/BrandonGrotesque-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('fonts/BrandonGrotesque-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('fonts/BrandonGrotesque-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('fonts/BrandonGrotesque-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('fonts/BrandonGrotesque-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f5f4;
  --surface: #ffffff;
  --surface-2: #f8faf8;
  --ink: #0a2818;
  --ink-2: #2a4234;
  --ink-3: #6b7d72;
  --line: #e3e8e4;
  --line-2: #eef2ee;
  --brand: #19754C;
  --brand-dark: #0f5638;
  --brand-deep: #0a3d27;
  --brand-light: #2f9166;
  --pot-bg: linear-gradient(135deg, #0a3d27 0%, #19754C 70%, #2f9166 100%);
  --gold: #f4c14a;
  --accent: #f4c14a;
  --navy: #0a2818;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 40, 24, 0.04), 0 1px 3px rgba(10, 40, 24, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 40, 24, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Brandon Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

/* Headings and bold text use Black weight */
h1, h2, h3, h4, h5, h6, strong, b { font-weight: 900; letter-spacing: -0.01em; }

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ---------- Top bar / hero ---------- */
.topbar {
  background: var(--pot-bg);
  color: white;
  padding: 22px 32px 28px;
  position: relative;
  overflow: hidden;
}
.topbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% -30%, rgba(255, 203, 5, 0.18), transparent 55%);
  pointer-events: none;
}
.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.brand-text .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 600;
}
.brand-text h1 {
  margin: 2px 0 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pot {
  display: flex;
  gap: 24px;
  align-items: center;
}
.pot-stat {
  text-align: right;
}
.pot-stat .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
}
.pot-stat .value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pot-stat.total .value { color: var(--gold); }
.pot-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 0 32px;
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.tab {
  background: none;
  border: none;
  padding: 16px 4px;
  margin-right: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 120ms;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tab:hover { color: var(--ink-2); }
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.tab .count {
  background: var(--line-2);
  color: var(--ink-2);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}
.tab.active .count {
  background: var(--ink);
  color: white;
}

/* ---------- Main content ---------- */
.content {
  padding: 28px 32px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- Filters bar (fixtures) ---------- */
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 120ms;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-chip:hover { border-color: var(--ink-3); }
.filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.filter-chip .swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.filter-label {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 6px;
}

/* ---------- Day groups ---------- */
.day-group {
  margin-bottom: 32px;
}
.day-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.day-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.day-header .day-sub {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.day-header .matchday-tag {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}

/* ---------- Match card ---------- */
.match {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 90px 1fr 200px 1fr 90px;
  align-items: center;
  padding: 14px 18px;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 120ms, transform 120ms;
}
.match:hover { border-color: #cfd6e1; }
.match.dimmed { opacity: 0.35; }
.match.completed { background: var(--surface-2); }

.match-time {
  text-align: left;
}
.match-time .kick {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.match-time .late {
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}
.match-time .group-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  background: var(--line-2);
  padding: 2px 7px;
  border-radius: 4px;
}

.team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.team.home { justify-content: flex-end; }
.team.away { justify-content: flex-start; }
.team .info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.team.home .info { align-items: flex-end; text-align: right; }
.team .name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team .owner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 2px;
}
.team .owner-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.team .flag {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}

/* color strip on the side of each team's flag matching owner */
.team-strip {
  width: 4px;
  height: 32px;
  border-radius: 2px;
  flex-shrink: 0;
}

.score-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.score-input {
  width: 44px;
  height: 44px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 120ms, background 120ms;
  -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input:focus { border-color: var(--ink); background: white; }
.score-input.filled { background: var(--ink); color: white; border-color: var(--ink); }
.score-dash {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-3);
}

.match-meta {
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
  font-weight: 500;
  line-height: 1.3;
}
.match-meta .venue { display: block; }
.match-meta .status {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
  font-size: 10px;
}
.status.ft { color: var(--brand-deep); }
.status.upcoming { color: #6b7689; }

/* ---------- Leaderboard ---------- */
.leaderboard-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1100px) {
  .leaderboard-grid { grid-template-columns: 1fr; }
}

.standings {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.standings table {
  width: 100%;
  border-collapse: collapse;
}
.standings thead {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.standings th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  padding: 12px 14px;
}
.standings th.num { text-align: right; }
.standings td {
  padding: 14px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  vertical-align: middle;
}
.standings tr:last-child td { border-bottom: none; }
.standings tr.first td { background: linear-gradient(90deg, rgba(255, 203, 5, 0.12), transparent 60%); }
.standings tr.second td { background: linear-gradient(90deg, rgba(180, 196, 222, 0.18), transparent 60%); }
.standings tr.spoon td { background: linear-gradient(90deg, rgba(230, 57, 70, 0.08), transparent 60%); }
.standings td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.standings td.pts {
  font-weight: 800;
  font-size: 16px;
}
.rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: var(--line-2);
  color: var(--ink-2);
}
.rank.gold { background: var(--gold); color: var(--brand-deep); }
.rank.silver { background: #c8d2e0; color: var(--brand-deep); }
.rank.spoon { background: #ffd9dd; color: #b3132f; }
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person-swatch {
  width: 16px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}
.person-cell .pname {
  font-weight: 700;
  font-size: 14px;
}
.prize-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.prize-badge.gold { background: var(--gold); color: var(--brand-deep); }
.prize-badge.silver { background: #c8d2e0; color: var(--brand-deep); }
.prize-badge.spoon { background: #ffd9dd; color: #b3132f; }

/* ---------- Prize sidebar ---------- */
.prize-panel {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.prize-panel::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255, 203, 5, 0.18), transparent 70%);
  pointer-events: none;
}
.prize-panel h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.prize-panel .sub {
  font-size: 12px;
  opacity: 0.65;
  margin-bottom: 18px;
}
.prize-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.prize-row:last-child { padding-bottom: 0; }
.prize-row .place {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.prize-row.first .place { background: var(--gold); color: var(--brand-deep); }
.prize-row.second .place { background: #c8d2e0; color: var(--brand-deep); }
.prize-row.spoon .place { background: #ff5973; color: white; }
.prize-row .label {
  font-size: 13px;
  font-weight: 600;
}
.prize-row .label .name {
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
  display: block;
}
.prize-row .label .leader-empty { opacity: 0.55; font-weight: 500; font-style: italic; }
.prize-row .amt {
  margin-left: auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- People grid ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.person-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.person-card .accent-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
}
.person-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-left: 8px;
  margin-bottom: 14px;
}
.person-card-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.person-card-header .pts {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.person-card-header .pts-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-top: 2px;
  text-align: right;
}
.person-card .teams-list {
  padding-left: 8px;
}
.team-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
}
.team-row:first-child { border-top: none; padding-top: 4px; }
.team-row .tflag { font-size: 18px; line-height: 1; }
.team-row .tname { font-weight: 600; }
.team-row .tgroup {
  background: var(--line-2);
  color: var(--ink-3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.team-row .trecord {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Reset / utilities ---------- */
.empty-msg {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-3);
  font-size: 14px;
}

.reset-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.reset-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* Responsive */
@media (max-width: 900px) {
  .topbar { padding: 18px 18px 22px; }
  .content { padding: 20px 16px 60px; }
  .tabs { padding: 0 16px; overflow-x: auto; }
  .match {
    grid-template-columns: 70px 1fr 140px 1fr;
    gap: 8px;
    padding: 12px;
  }
  .match-meta { display: none; }
  .team .name { font-size: 14px; }
  .team .flag { font-size: 22px; }
  .score-input { width: 38px; height: 38px; font-size: 18px; }
  .pot-stat .value { font-size: 22px; }
  .brand-text h1 { font-size: 20px; }
}

/* ============================================================
   TV / Dashboard View
   ============================================================ */

.tv-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- Three big prize callouts at top ---- */
.tv-prize-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tv-prize {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tv-prize.first::before,
.tv-prize.second::before,
.tv-prize.spoon::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.22;
}
.tv-prize.first::before { background: radial-gradient(circle, var(--gold), transparent 70%); }
.tv-prize.second::before { background: radial-gradient(circle, #c8d2e0, transparent 70%); }
.tv-prize.spoon::before { background: radial-gradient(circle, #ff5973, transparent 70%); }
.tv-prize-place {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}
.tv-prize-name {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 4px 0 2px;
}
.tv-prize-name .dim { opacity: 0.4; font-weight: 700; font-style: italic; font-size: 32px; }
.tv-prize-team {
  font-size: 15px;
  opacity: 0.85;
  font-weight: 600;
}
.tv-prize-team .dim { opacity: 0.45; font-style: italic; font-weight: 500; }
.tv-prize-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.tv-prize-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}
.tv-prize-amt {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-left: auto;
}
.tv-prize.first .tv-prize-amt { color: var(--gold); }
.tv-prize.spoon .tv-prize-amt { color: #ff8b9d; }
.tv-prize-pts {
  font-size: 12px;
  opacity: 0.6;
  font-weight: 600;
}

/* ---- Final picker (compact inline above grid) ---- */
.tv-final-picker-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}
.final-picker {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.final-picker.compact { gap: 24px; }
.final-picker-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.final-picker-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.final-picker-field select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  min-width: 200px;
}
.final-picker-field select:hover { border-color: var(--ink-3); }
.final-picker-field select:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.final-picker-owner {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
/* Inside dark prize panel, lighten labels */
.prize-panel .final-picker {
  margin: 8px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-direction: column;
  gap: 10px;
}
.prize-panel .final-picker-field {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.prize-panel .final-picker-field label {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
}
.prize-panel .final-picker-field select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: white;
}
.prize-panel .final-picker-owner { align-self: flex-start; }

/* ---- Two-column grid: standings + up next ---- */
.tv-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 1200px) {
  .tv-grid { grid-template-columns: 1fr; }
}
.tv-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tv-panel-head {
  padding: 16px 20px 12px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.tv-panel-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tv-panel-sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}

/* TV standings table */
.tv-table {
  width: 100%;
  border-collapse: collapse;
}
.tv-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.tv-table th.num { text-align: right; }
.tv-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  vertical-align: middle;
}
.tv-table tr:last-child td { border-bottom: none; }
.tv-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.tv-table td.tv-pts { font-weight: 800; font-size: 16px; }
.tv-table tr.first td { background: linear-gradient(90deg, rgba(255, 203, 5, 0.16), transparent 60%); }
.tv-table tr.second td { background: linear-gradient(90deg, rgba(180, 196, 222, 0.22), transparent 60%); }
.tv-table tr.spoon td { background: linear-gradient(90deg, rgba(230, 57, 70, 0.10), transparent 60%); }
.tv-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--line-2);
  color: var(--ink-2);
}
.tv-rank.gold { background: var(--gold); color: var(--brand-deep); }
.tv-rank.silver { background: #c8d2e0; color: var(--brand-deep); }
.tv-rank.spoonR { background: #ffd9dd; color: #b3132f; }
.tv-person { display: flex; align-items: center; gap: 10px; }
.tv-person-strip { width: 5px; height: 22px; border-radius: 2px; flex-shrink: 0; }
.tv-person-name { font-weight: 700; font-size: 14px; }

/* Up-next match rows */
.tv-match {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line-2);
}
.tv-match:last-child { border-bottom: none; }
.tv-match-when {
  width: 90px;
  flex-shrink: 0;
}
.tv-match-day {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tv-match-time {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.tv-match-group {
  display: inline-block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  background: var(--line-2);
  padding: 1px 6px;
  border-radius: 3px;
}
.tv-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  flex: 1;
}
.tv-match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tv-match-team:first-child { justify-content: flex-end; }
.tv-match-strip { width: 4px; height: 28px; border-radius: 2px; flex-shrink: 0; }
.tv-match-flag { font-size: 22px; line-height: 1; }
.tv-match-tname {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tv-match-tname.right { align-items: flex-start; }
.tv-match-team:first-child .tv-match-tname { align-items: flex-end; text-align: right; }
.tv-match-tname > div:first-child {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.tv-match-owner {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 2px;
}
.tv-match-score {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tv-score-input {
  width: 38px;
  height: 38px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
}
.tv-score-input::-webkit-outer-spin-button,
.tv-score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tv-score-input:focus { border-color: var(--ink); }
.tv-score-input.filled { background: var(--ink); color: white; border-color: var(--ink); }
.tv-score-dash { font-size: 14px; font-weight: 700; color: var(--ink-3); }

/* ---- Bottom row: 12 person cards in a strip ---- */
.tv-people {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 1200px) {
  .tv-people { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 800px) {
  .tv-people { grid-template-columns: repeat(2, 1fr); }
}
.tv-person-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tv-person-card-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.tv-person-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-left: 4px;
}
.tv-person-card-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.tv-person-card-pts {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tv-person-card-pts span {
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 3px;
}
.tv-person-card-teams {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 4px;
}
.tv-person-card-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-2);
}
.tv-person-card-team > span:first-child { font-size: 13px; line-height: 1; }
.tv-person-card-tname {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ---- Standings (Leaderboard tab) head ---- */
.standings-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.standings-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.standings-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.prize-row .label .team-line {
  display: block;
  font-size: 11px;
  opacity: 0.6;
  font-weight: 500;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .tv-prize-row { grid-template-columns: 1fr; }
  .tv-prize-name { font-size: 28px; }
  .tv-match { flex-direction: column; align-items: stretch; gap: 10px; }
  .tv-match-when { width: auto; display: flex; align-items: center; gap: 10px; }
  .tv-match-time { font-size: 18px; }
}


/* ============================================================
   KNOCKOUT VIEW
   ============================================================ */

.ko-pending { max-width: 1200px; margin: 0 auto; }

.ko-pending-card {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ko-pending-card::after {
  content: '🏆';
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 220px;
  opacity: 0.06;
  transform: rotate(-15deg);
}
.ko-pending-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 700;
}
.ko-pending-head h2 {
  margin: 6px 0 8px;
  font-size: 28px;
  font-weight: 900;
}
.ko-pending-head p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
  max-width: 50ch;
}
.ko-progress { min-width: 260px; }
.ko-progress-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.ko-progress-num {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ko-progress-num span { opacity: 0.45; font-size: 22px; }
.ko-progress-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.7;
}
.ko-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  overflow: hidden;
}
.ko-progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width 400ms ease;
}

.ko-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ko-section-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}
.ko-section-head .sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}

/* ---- Group standings grid (12 mini tables) ---- */
.ko-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 1200px) { .ko-groups-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .ko-groups-grid { grid-template-columns: 1fr; } }

.ko-group-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ko-group-head {
  font-weight: 900;
  font-size: 13px;
  padding: 9px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.ko-group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ko-group-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 4px;
  text-align: right;
}
.ko-group-table th:first-child,
.ko-group-table th:nth-child(2) { text-align: left; }
.ko-group-table td {
  padding: 6px 4px;
  border-top: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 600;
}
.ko-group-pos {
  width: 22px;
  font-weight: 900 !important;
  color: var(--ink-3);
  text-align: center !important;
}
.ko-group-row.qual1 .ko-group-pos { background: var(--brand); color: white; }
.ko-group-row.qual2 .ko-group-pos { background: var(--brand-light); color: white; }
.ko-group-row.qual3 .ko-group-pos { background: #d4af37; color: white; }
.ko-group-row.out   .ko-group-pos { background: var(--line-2); color: var(--ink-3); }
.ko-group-team {
  display: flex; align-items: center; gap: 6px;
  text-align: left !important;
  padding-left: 8px !important;
}
.ko-group-strip { width: 3px; height: 18px; border-radius: 2px; flex-shrink: 0; }
.ko-group-flag { font-size: 14px; }
.ko-group-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.ko-group-pts { font-weight: 900 !important; font-size: 13px; color: var(--ink); }

/* ---- Champion banner ---- */
.ko-champion-banner {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, var(--brand-light) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 61, 39, 0.25);
}
.ko-champion-banner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(244, 193, 74, 0.3), transparent 70%);
  pointer-events: none;
}
.ko-champion-trophy {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  position: relative;
}
.ko-champion-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 700;
}
.ko-champion-team {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 4px 0 6px;
  line-height: 1.05;
}
.ko-champion-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.ko-champion-owner strong { font-weight: 900; }
.ko-champion-swatch {
  width: 14px; height: 14px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
  display: inline-block;
}
.ko-runnerup {
  margin-left: auto;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.18);
  position: relative;
}
.ko-runnerup-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  font-weight: 700;
}
.ko-runnerup-team {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 4px 0;
}
.ko-runnerup-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: 0.9;
}

/* ---- Toolbar ---- */
.ko-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ko-page-tabs {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.ko-page-tab {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.ko-page-tab:hover { background: white; }
.ko-page-tab.active { background: var(--brand); color: white; }
.ko-toggle {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.ko-toggle:hover { border-color: var(--ink-3); }
.ko-toggle.active { background: var(--ink); color: white; border-color: var(--ink); }

/* ---- Split early-rounds layout ---- */
.bracket-early {
  display: flex;
  gap: 20px;
  align-items: stretch;
  min-width: 900px;
}
.bracket-half {
  display: flex;
  gap: 14px;
  flex: 1;
  align-items: stretch;
}
.bracket-half-divider {
  width: 1px;
  background: var(--line);
  flex-shrink: 0;
  align-self: stretch;
}

/* ---- Bracket grid ---- */
.bracket-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.bracket {
  display: flex;
  gap: 14px;
  align-items: stretch;
  min-width: 600px;
}
.bracket-col {
  flex: 1 1 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
}
.bracket-col.bracket-final { min-width: 240px; }
.bracket-col-head {
  text-align: center;
  margin-bottom: 14px;
}
.bracket-col-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.bracket-col-dates {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 2px;
}
.bracket-col-matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  gap: 8px;
}
.bracket-final-wrap { gap: 16px; justify-content: center; }
.bracket-final-label {
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: -4px;
}
.bracket-final-label.small { color: var(--ink-3); font-size: 10px; margin-top: 6px; }

/* Match card */
.ko-match-num {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.ko-match {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 120ms, border-color 120ms;
}
.ko-match.filled { background: white; border-color: var(--line); }
.ko-match.dim { opacity: 0.55; background: white; border-style: dashed; }
.bracket-final .ko-match { padding: 10px 12px; gap: 6px; }
.bracket-final .ko-match.dim { padding: 10px 12px; }

.ko-team {
  display: grid;
  grid-template-columns: 4px 18px 1fr auto;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}
.bracket-final .ko-team { font-size: 14px; grid-template-columns: 4px 22px 1fr auto; }
.ko-strip { width: 4px; height: 22px; border-radius: 2px; }
.ko-flag { font-size: 14px; line-height: 1; }
.bracket-final .ko-flag { font-size: 20px; }
.ko-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.bracket-final .ko-name { max-width: 130px; font-size: 15px; }
.ko-owner {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: none;
}
.bracket-final .ko-owner { display: inline-block; font-size: 10px; margin-left: 4px; }
.ko-tbd {
  grid-column: 2 / 4;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  font-style: italic;
}
.ko-team-win .ko-name { color: var(--brand); }
.ko-team-loss { opacity: 0.55; }
.ko-team-loss .ko-name { text-decoration: line-through; text-decoration-thickness: 1px; }

.ko-score {
  width: 28px;
  height: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
  font-family: inherit;
}
.bracket-final .ko-score { width: 36px; height: 30px; font-size: 16px; }
.ko-score::-webkit-outer-spin-button,
.ko-score::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ko-score:focus { border-color: var(--brand); }
.ko-score.filled { background: var(--brand); color: white; border-color: var(--brand); }
.ko-score:disabled { opacity: 0.3; cursor: not-allowed; }

.ko-pen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}
.ko-pen-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}
.ko-pen-btn {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
}
.ko-pen-btn:hover { border-color: var(--brand); }
.ko-pen-btn.active { background: var(--brand); color: white; border-color: var(--brand); }
.ko-pen-btn:disabled { opacity: 0.3; cursor: not-allowed; }

@media (max-width: 900px) {
  .ko-pending-card { grid-template-columns: 1fr; }
  .ko-champion-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ko-runnerup { margin-left: 0; padding-left: 0; border-left: 0; }
}

.bracket-driven-note {
  background: rgba(244, 193, 74, 0.15);
  border: 1px solid rgba(244, 193, 74, 0.4);
  color: var(--gold);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin: 8px 0 16px;
}




/* ============================================================
   TV DASHBOARD — landscape 1920×1080 wallchart
   Layout: 60 header + 690 body + 240 strip + 90 key = 1080
   ============================================================ */

.tv-mode .topbar { display: none; }
.tv-mode .content { padding: 0; max-width: none; }
.tv-mode .tabs { padding: 0 16px; }

.tv-canvas-wrap {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #f6f8f6 0%, #eaf0ec 100%);
  overflow: hidden;
}
.tv-canvas {
  position: absolute;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top center;
  background: linear-gradient(135deg, #f6f8f6 0%, #e8efea 100%);
  display: grid;
  grid-template-rows: 60px 690px 240px 90px;
  font-family: 'Brandon Grotesque', 'Inter', sans-serif;
}

/* ---- Header ---- */
.tv-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 24px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand) 70%, var(--brand-light));
  color: white;
  position: relative;
  z-index: 2;
}
.tv-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% -50%, rgba(244,193,74,0.25), transparent 50%);
  pointer-events: none;
}
.tv-header-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.tv-header-title { position: relative; }
.tv-header-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.78;
  font-weight: 700;
}
.tv-header-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Countdown badge (pre-tournament) */
.tv-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  position: relative;
  margin-left: 18px;
}
.tv-countdown-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
}
.tv-countdown-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 150px;
}

/* Wooden spoon — matches the countdown style (translucent inline badge) */
.tv-header-spoon {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 6px 14px;
  position: relative;
}
.tv-spoon-emoji {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.78;
}
.tv-spoon-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tv-spoon-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.78;
}
.tv-spoon-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.tv-spoon-team-name {
  font-size: 17px;
  white-space: nowrap;
}
.tv-spoon-team.tv-spoon-empty {
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  opacity: 0.7;
}
.tv-spoon-owner {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* ---- Body: groups | bracket | groups ---- */
.tv-body {
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  gap: 14px;
  padding: 12px 18px;
  overflow: hidden;
}

.tv-groups-col {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 6px;
  min-height: 0;
}

/* Group card */
.tvg-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(10,40,24,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tvg-head {
  padding: 4px 10px 5px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  flex-shrink: 0;
  background: var(--brand);
}
.tvg-letter {
  text-transform: uppercase;
  font-size: 13px;
}
.tvg-cols {
  display: grid;
  grid-template-columns: repeat(5, 22px);
  gap: 2px;
  font-size: 9px;
  text-align: right;
  font-weight: 800;
  opacity: 0.85;
}
.tvg-cols span { display: block; }
.tvg-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tvg-row {
  display: grid;
  grid-template-columns: 18px 18px 1fr repeat(5, 22px);
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 12px;
  border-top: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
  flex: 1;
  min-height: 0;
  position: relative;
  background: color-mix(in oklch, var(--owner) 28%, white);
}
.tvg-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--owner);
}
.tvg-pos {
  font-weight: 900;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: white;
  box-shadow: 0 0 0 1px var(--line);
}
.tvg-qual .tvg-pos { background: var(--brand); color: white; box-shadow: none; }
.tvg-third .tvg-pos { background: #e8b842; color: white; box-shadow: none; }
.tvg-flag { height: 14px; width: auto; vertical-align: middle; }
.tvg-name {
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  text-shadow: 0 0 6px rgba(255,255,255,0.65);
}
.tvg-num {
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  color: var(--ink-2);
}
.tvg-pts {
  font-weight: 900;
  color: var(--brand-deep);
  font-size: 13px;
}

/* ---- Bracket centre ---- */
.tv-bracket-col {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10,40,24,0.08);
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.tvbr {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tvbr-page-tabs {
  display: flex;
  gap: 0;
  background: var(--line);
  border-radius: 8px;
  padding: 2px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.tvbr-page-tab {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.tvbr-page-tab:hover { color: var(--ink); }
.tvbr-page-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.tvbr-titles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.tvbr-titles-early { grid-template-columns: 1fr 1fr 8px 1fr 1fr; }
.tvbr-titles-late  { grid-template-columns: repeat(3, 1fr); }

.tvbr-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  min-height: 0;
  position: relative;
}
.tvbr-grid-early { grid-template-columns: 1fr 1fr 8px 1fr 1fr; }
.tvbr-grid-late  { grid-template-columns: repeat(3, 1fr); }
.tvbr-half-divider {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  align-self: stretch;
}
.tvbr-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 3px;
  min-height: 0;
}
.tvbr-final-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex: 1;
}
.tvbr-final-label {
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.tvbr-third-label {
  color: var(--ink-3);
  margin-top: 14px;
  font-size: 10px;
}

/* Match cards — horizontal layout */
.tvbr-match {
  background: var(--surface-2);
  border-radius: 5px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tvbr-match.filled { background: white; }
.tvbr-match.tvbr-projected { border-style: dashed; opacity: 0.82; }
.tvbr-match.tvbr-projected .tvbr-name { color: var(--ink-2); font-style: italic; }

.tvbr-info {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  opacity: 0.8;
  padding: 2px 6px 0;
}

.tvbr-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 28px;
}

.tvbr-side {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  background: color-mix(in oklch, var(--owner) 18%, white);
  min-width: 0;
  overflow: hidden;
}
.tvbr-home { border-left: 3px solid var(--owner); }
.tvbr-away {
  border-right: 3px solid var(--owner);
  justify-content: flex-end;
}
.tvbr-side.loss { opacity: 0.45; }
.tvbr-side.win .tvbr-name { color: var(--brand); font-weight: 900; }

.tvbr-flag { height: 15px; width: auto; flex-shrink: 0; }
.tvbr-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  color: var(--ink);
}

.tvbr-scorebox {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  background: white;
  flex-shrink: 0;
}
.tvbr-score {
  font-weight: 900;
  font-size: 12px;
  min-width: 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.tvbr-score.win { color: var(--brand); }
.tvbr-score.loss { color: var(--ink-3); }
.tvbr-sep {
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 600;
}

.tvbr-projected-badge {
  font-size: 7px;
  font-weight: 500;
  color: var(--ink-3);
  font-style: italic;
  letter-spacing: 0.03em;
}

/* Size variants */
.tvbr-sm .tvbr-name  { font-size: 11px; }
.tvbr-sm .tvbr-flag  { height: 15px; }
.tvbr-sm .tvbr-score { font-size: 12px; }
.tvbr-sm .tvbr-row   { min-height: 28px; }

.tvbr-md .tvbr-name  { font-size: 12px; }
.tvbr-md .tvbr-flag  { height: 16px; }
.tvbr-md .tvbr-score { font-size: 13px; }
.tvbr-md .tvbr-row   { min-height: 32px; }
.tvbr-md .tvbr-side  { padding: 5px 8px; }
.tvbr-md .tvbr-scorebox { padding: 0 8px; gap: 4px; }

.tvbr-lg {
  border-color: var(--gold);
  border-width: 1.5px;
  background: linear-gradient(135deg, #fff8e1, #fffdf0);
}
.tvbr-lg .tvbr-name  { font-size: 14px; }
.tvbr-lg .tvbr-flag  { height: 20px; }
.tvbr-lg .tvbr-score { font-size: 17px; }
.tvbr-lg .tvbr-row   { min-height: 38px; }
.tvbr-lg .tvbr-side  { padding: 6px 10px; }
.tvbr-lg .tvbr-scorebox { padding: 0 12px; gap: 6px; }
.tvbr-lg .tvbr-info  { font-size: 9px; color: #b3892a; opacity: 1; }

.tvbr-champion {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: white;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(10,40,24,0.25);
  font-weight: 900;
  font-size: 13px;
  z-index: 2;
}
.tvbr-champion-trophy { font-size: 18px; }
.tvbr-champion-team { font-size: 15px; }
.tvbr-champion-owner {
  padding: 3px 10px;
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 900;
}

/* ---- 3-day fixture strip ---- */
.tv-three-day {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 1fr 32px;
  gap: 12px;
  padding: 10px 18px 12px;
  background: white;
  border-top: 2px solid var(--brand);
  min-height: 0;
}
.tv-three-day-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv-day-nav {
  background: var(--brand);
  border: none;
  color: white;
  width: 32px;
  height: 80px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.tv-nav-chevron {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.tv-day-nav:disabled .tv-nav-chevron { opacity: 0.4; }
.tv-day-nav:hover:not(:disabled) { background: var(--brand-light); }
.tv-day-nav:disabled {
  background: var(--line);
  color: var(--ink-3);
  cursor: not-allowed;
}

.tv-day-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.tv-day-head {
  padding: 4px 12px;
  background: var(--brand);
  color: white;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.tv-day-col.is-today .tv-day-head {
  background: var(--gold);
  color: var(--brand-deep);
}
.tv-day-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.tv-day-date {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.92;
}
.tv-day-matches {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  padding: 2px;
  min-height: 0;
}
.tv-day-empty {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  padding: 16px 0;
  font-style: italic;
}
/* ---- SVG flag image sizes ---- */
.tv-flag-img { display: inline-block; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
.tv-flag-xs  { height: 14px; width: auto; }
.tv-flag-sm  { height: 18px; width: auto; }
.tv-flag-md  { height: 24px; width: auto; }
.tv-flag-lg  { height: 30px; width: auto; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.tv-flag-gd  { height: 36px; width: auto; border-radius: 3px; }

/* ---- Match game box (TVThreeDay) ---- */
.tv-day-match {
  display: grid;
  grid-template-columns: 165px auto 165px;
  background: white;
  border-radius: 5px;
  border: 1px solid var(--line);
  overflow: hidden;
  height: 50px;
}
.tv-day-match.filled { border-color: var(--brand-light); }

.tv-match-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  gap: 8px;
  background: color-mix(in oklch, var(--owner) 28%, white);
  min-width: 0;
  overflow: hidden;
}
.tv-match-home { border-left: 4px solid var(--owner); }
.tv-match-away { border-right: 4px solid var(--owner); }

.tv-match-team-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.tv-match-tname {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.tv-match-center {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: white;
}
.tv-match-center .tv-day-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 18px;
  height: 100%;
  padding: 0 10px;
}
.tv-match-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tv-match-date-row {
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tv-match-scores {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 1px 0;
}
.tv-match-venue-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 10px;
  align-items: flex-start;
}
.tv-match-stadium {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  text-align: left;
}
.tv-match-city {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  text-align: left;
}

.tv-day-time {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}
.tv-day-group {
  font-size: 10px;
  font-weight: 800;
  background: var(--ink);
  color: white;
  padding: 2px 0;
  border-radius: 3px;
  text-align: center;
  width: 20px;
}
.tv-day-score {
  width: 24px;
  height: 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  background: white;
  color: var(--ink);
  font-family: inherit;
  -moz-appearance: textfield;
  outline: none;
}
.tv-day-score::-webkit-outer-spin-button,
.tv-day-score::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tv-day-score:focus { border-color: var(--brand); }
.tv-day-vs {
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-3);
}

/* ---- People key strip (bottom) ---- */
.tv-people-key {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 6px 18px 8px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand) 100%);
  color: white;
  align-items: center;
}
.tv-people-key-label {
  display: none;
}
.tv-people-key-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.tv-people-key-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 3px;
}
.tv-people-key-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}
.tv-pk-card {
  background: white;
  border-radius: 8px;
  padding: 7px 10px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  color: var(--ink);
}
.tv-pk-swatch {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 7px;
}
.tv-pk-info { padding-left: 4px; }
.tv-pk-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.tv-pk-teams {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}
.tv-pk-flag {
  height: 18px;
  width: auto;
  vertical-align: middle;
  border-radius: 2px;
}
.tv-pk-pts {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}


/* Fullscreen button */
.tv-fullscreen-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: background 120ms;
}
.tv-fullscreen-btn:hover { background: rgba(255,255,255,0.25); }
.tv-fullscreen-btn svg { display: block; }

/* When fullscreen, hide the page chrome (top tabs) so the canvas truly fills */
:fullscreen .tabs,
:-webkit-full-screen .tabs { display: none !important; }
:fullscreen .topbar,
:-webkit-full-screen .topbar { display: none !important; }
:fullscreen .tv-canvas-wrap,
:-webkit-full-screen .tv-canvas-wrap {
  height: 100vh;
}


/* ---- View switcher (Group Stage / Knockout) ---- */
.tv-view-switch {
  display: flex;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  position: relative;
}
.tv-view-pill {
  background: none;
  border: none;
  color: white;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.7;
  transition: all 120ms;
}
.tv-view-pill:hover { opacity: 1; }
.tv-view-pill.active {
  background: white;
  color: var(--brand-deep);
  opacity: 1;
}

/* ---- Group-stage centre: 4×3 grid ---- */
.tv-gs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}
.tv-gs-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.tv-gs-head {
  padding: 3px 10px 4px;
  background: var(--brand);
  color: white;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.tv-gs-fixtures {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.tv-gs-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--line-2);
  font-size: 11px;
}
.tv-gs-row.filled { background: rgba(244, 193, 74, 0.08); }

.tv-gs-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  height: 100%;
  flex-shrink: 0;
}

.tv-gs-tname {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  padding: 0 5px;
}
.tv-gs-tname-home { justify-content: flex-end; text-align: right; }
.tv-gs-tname-away { justify-content: flex-start; text-align: left; }

.tv-gs-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  gap: 4px;
}
.tv-gs-when {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.tv-gs-time {
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.tv-gs-date {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tv-gs-score-input {
  width: 18px;
  height: 14px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 900;
  background: white;
  color: var(--ink);
  font-family: inherit;
  -moz-appearance: textfield;
  outline: none;
  padding: 0;
}
.tv-gs-score-input::-webkit-outer-spin-button,
.tv-gs-score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tv-gs-score-input:focus { border-color: var(--brand); }

/* ============================================================
   RESPONSIVE: show TV on desktop, mobile on small screens
   ============================================================ */
.tv-mode  { display: block; }
.mob-mode { display: none; }

@media (max-width: 768px) {
  .tv-mode  { display: none; }
  .mob-mode { display: block; }
}

/* ============================================================
   MOBILE DASHBOARD
   ============================================================ */
.mob-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--bg);
  font-family: 'Brandon Grotesque', sans-serif;
  color: var(--ink);
  overflow: hidden;
}

/* Header */
.mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand);
  padding: 10px 14px;
  flex-shrink: 0;
  gap: 10px;
}
.mob-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mob-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}
.mob-header-text { min-width: 0; }
.mob-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.mob-title {
  font-size: 16px;
  font-weight: 900;
  color: white;
  white-space: nowrap;
}

/* Spoon in header */
.mob-spoon {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.18);
  border-radius: 20px;
  padding: 4px 10px 4px 8px;
  flex-shrink: 0;
}
.mob-spoon-icon {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.mob-spoon-info {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mob-spoon-name {
  font-size: 11px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Body / scrollable content */
.mob-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
.mob-tab-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tab bar */
.mob-tab-bar {
  display: flex;
  background: white;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mob-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-3);
  font-family: inherit;
  transition: color 0.15s;
}
.mob-tab-btn.active { color: var(--brand); }
.mob-tab-icon { font-size: 20px; line-height: 1; }
.mob-tab-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Date navigation (schedule) ---- */
.mob-date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.mob-nav-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.15s;
}
.mob-nav-btn:disabled .tv-nav-chevron { opacity: 0.4; }
.mob-nav-btn:hover:not(:disabled) { background: var(--brand-light); }
.mob-nav-btn:disabled { opacity: 0.3; cursor: default; }
.mob-date-info {
  flex: 1;
  text-align: center;
}
.mob-date-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.mob-date-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 1px;
}
.mob-empty {
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  padding: 30px 0;
  font-weight: 700;
}

/* ---- Match card ---- */
.mob-matches-list { display: flex; flex-direction: column; gap: 8px; }
.mob-match {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.mob-match.is-ko { box-shadow: 0 2px 8px rgba(25,117,76,0.12), 0 1px 3px rgba(0,0,0,0.06); }
.mob-match-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 52px;
}
.mob-team {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: color-mix(in oklch, var(--owner) 14%, white);
  border-left: 4px solid var(--owner);
  min-width: 0;
}
.mob-team-r {
  justify-content: flex-end;
  border-left: none;
  border-right: 4px solid var(--owner);
}
.mob-tname {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.mob-tname-r {
  text-align: right;
}
.mob-tbd-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}
.mob-score-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: white;
  flex-shrink: 0;
}
.mob-score-in {
  width: 40px;
  height: 40px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface-2);
  -moz-appearance: textfield;
  outline: none;
  padding: 0;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.mob-score-in::-webkit-outer-spin-button,
.mob-score-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mob-score-in:focus { border-color: var(--brand); }
.mob-score-in:disabled { opacity: 0.35; }
.mob-sep {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink-3);
}

/* Penalty selector */
.mob-pen-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #fffbe8;
  border-top: 1px solid #f0e5a0;
}
.mob-pen-label {
  font-size: 11px;
  font-weight: 700;
  color: #9a7a00;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.mob-pen-btn {
  flex: 1;
  padding: 5px 8px;
  background: white;
  border: 1.5px solid #d4be5c;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #9a7a00;
  cursor: pointer;
  font-family: inherit;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 120px;
}
.mob-pen-btn.active {
  background: var(--gold);
  border-color: #c9a800;
  color: #3d2e00;
}

/* Match meta line */
.mob-match-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 6px;
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.mob-meta-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}
.mob-meta-venue {
  font-size: 11px;
  color: var(--ink-3);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mob-meta-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.mob-ko-tag {
  background: color-mix(in oklch, var(--brand) 10%, white);
  border-color: color-mix(in oklch, var(--brand) 25%, white);
  color: var(--brand);
}

/* ---- Groups tab ---- */
.mob-groups-list { gap: 12px; }
.mob-group-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.mob-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand);
  color: white;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.mob-group-cols {
  font-size: 10px;
  opacity: 0.75;
  font-weight: 600;
}
.mob-gr-row {
  display: grid;
  grid-template-columns: 18px 20px 1fr 22px 22px 22px 28px 28px;
  align-items: center;
  gap: 2px;
  padding: 6px 10px 6px 14px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12px;
  position: relative;
  background: color-mix(in oklch, var(--owner) 22%, white);
}
.mob-gr-row:last-child { border-bottom: none; }
.mob-gr-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--owner);
}
.mob-gr-pos {
  font-size: 10px;
  font-weight: 900;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: white;
  box-shadow: 0 0 0 1.5px var(--line);
}
.mob-gr-qual .mob-gr-pos { background: var(--brand); color: white; box-shadow: none; }
.mob-gr-third .mob-gr-pos { background: #e8b842; color: white; box-shadow: none; }
.mob-gr-name {
  font-weight: 800;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(255,255,255,0.7);
}
.mob-gr-num {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.mob-gr-pts {
  font-weight: 900;
  color: var(--brand-deep);
  font-size: 13px;
}

/* ---- Knockout tab ---- */
.mob-ko-page-tabs {
  display: flex;
  gap: 0;
  background: var(--line);
  border-radius: 20px;
  padding: 2px;
  margin-bottom: 12px;
  align-self: center;
}
.mob-ko-page-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mob-ko-page-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.mob-ko-round { display: flex; flex-direction: column; gap: 8px; }
.mob-ko-round-head {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 6px 2px 2px;
  border-bottom: 2px solid var(--brand);
}
.mob-ko-item { display: flex; flex-direction: column; gap: 3px; }
.mob-ko-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  padding: 0 2px;
}

/* ---- Table tab ---- */
.mob-table-list { gap: 6px; }
.mob-table-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
  padding: 0 2px 4px;
  font-weight: 600;
}
.mob-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mob-table-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.mob-table-row.is-spoon {
  background: #fff8f0;
  border: 1px solid #f0d0a0;
}
.mob-tr-pos {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-3);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.mob-tr-swatch {
  width: 6px;
  height: 36px;
  border-radius: 3px;
  flex-shrink: 0;
}
.mob-tr-info { flex: 1; min-width: 0; }
.mob-tr-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}
.mob-tr-teams {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}
.mob-tr-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.mob-tr-pts {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}
.mob-tr-pts-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  margin-left: 2px;
}
.mob-tr-record {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 3px;
}

/* ---- Channel badge (BBC / ITV logos) ---- */
.tv-channel-badge {
  display: block;
  width: 34px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Mobile channel badge */
.mob-channel-badge {
  display: inline-block;
  width: 38px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
}
.mob-channel-bbc { background: none; }
.mob-channel-itv { background: none; }

/* ============================================================
   Live match cycling panel
   ============================================================ */

@keyframes tv-panel-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tv-live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.tv-center-panel-wrap {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tv-center-panel-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  animation: tv-panel-fadein 0.45s ease;
  display: flex;
  flex-direction: column;
}

/* LIVE badge */
.tv-live-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #d94f4f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 3px;
  z-index: 20;
  animation: tv-live-pulse 1.6s ease-in-out infinite;
}

/* Panel indicator dots */
.tv-panel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 3px 0 2px;
  flex-shrink: 0;
}
.tv-panel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s;
}
.tv-panel-dot.active { background: var(--brand); }

/* ---- Live line-up panel ---- */
.tv-live-lineup {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 4px 10px 0;
}
.tv-live-panel-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  flex-shrink: 0;
}
.tv-live-team-header {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tv-live-team-header-r { justify-content: flex-end; }
.tv-live-th-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-1);
}
.tv-live-formation {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--line);
  padding: 1px 5px;
  border-radius: 3px;
}
.tv-live-panel-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}
.tv-live-lineup-cols {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 6px;
  min-height: 0;
  overflow: hidden;
}
.tv-live-lineup-divider { background: var(--line); }
.tv-live-lineup-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.tv-live-player {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  border-radius: 3px;
  background: color-mix(in oklch, var(--owner) 10%, white);
  border-left: 2px solid var(--owner);
}
.tv-live-player-away {
  flex-direction: row-reverse;
  border-left: none;
  border-right: 2px solid var(--owner);
}
.tv-live-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--owner);
  min-width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.tv-live-pname {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Live stats panel ---- */
.tv-live-stats {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 6px;
  gap: 8px;
}
.tv-live-score-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.tv-live-score-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.tv-live-score-side-r { align-items: flex-end; }
.tv-live-hero-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
}
.tv-live-hero-owner {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}
.tv-live-score-center { text-align: center; }
.tv-live-score-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--ink-1);
  line-height: 1;
  letter-spacing: -0.02em;
}
.tv-live-score-sep { color: var(--ink-3); font-weight: 400; }
.tv-live-minute {
  font-size: 12px;
  font-weight: 700;
  color: #d94f4f;
  margin-top: 2px;
}
.tv-live-stats-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}
.tv-stat-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
}
.tv-stat-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-1);
}
.tv-stat-home { text-align: right; }
.tv-stat-away { text-align: left; }
.tv-stat-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tv-stat-bar-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  text-align: center;
}
.tv-stat-bar-track {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  background: var(--line);
}
.tv-stat-bar-h,
.tv-stat-bar-a {
  height: 100%;
  transition: width 0.6s ease;
}

/* ============================================================
   Match info modal
   ============================================================ */

@keyframes tv-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.tv-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-modal {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 700px;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: tv-modal-in 0.25s ease;
}

.tv-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--line);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  z-index: 10;
  line-height: 1;
}
.tv-modal-close:hover { background: #ddd; }

/* Header */
.tv-modal-header {
  padding: 16px 20px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.tv-modal-live-badge {
  display: inline-block;
  background: #d94f4f;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
  animation: tv-live-pulse 1.6s ease-in-out infinite;
}
.tv-modal-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.tv-modal-team {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tv-modal-team-r { justify-content: flex-end; }
.tv-modal-tbd-box {
  width: 28px;
  height: 20px;
  background: var(--line);
  border-radius: 3px;
  flex-shrink: 0;
}
.tv-modal-team-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tv-modal-team-txt-r { align-items: flex-end; }
.tv-modal-tname {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-1);
}
.tv-modal-owner-pill {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-block;
}
.tv-modal-score-col {
  text-align: center;
}
.tv-modal-score {
  font-size: 32px;
  font-weight: 900;
  color: var(--ink-1);
  display: block;
  letter-spacing: -0.02em;
}
.tv-modal-vs {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-3);
}
.tv-modal-ft {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
/* Meta row */
.tv-modal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 10px;
  color: var(--ink-2);
  font-weight: 600;
}
.tv-modal-dot { color: var(--ink-4); }
.tv-modal-tag {
  background: var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}
.tv-modal-channel {
  width: 28px;
  height: auto;
  margin-left: 4px;
  vertical-align: middle;
}

/* Body */
.tv-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Stats in modal */
.tv-modal-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tv-modal-stat-row {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
}
.tv-modal-stat-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-1);
  text-align: center;
}
.tv-modal-stat-mid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tv-modal-stat-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  text-align: center;
}
.tv-modal-stat-track {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  background: var(--line);
}

/* Lineup in modal */
.tv-modal-lineup {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.tv-modal-lineup-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 5px;
  text-align: center;
}
.tv-modal-lineup-title {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 9px;
}
.tv-modal-lineup-cols {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 6px;
}
.tv-modal-lineup-div { background: var(--line); }
.tv-modal-lineup-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tv-modal-player {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 3px;
  background: color-mix(in oklch, var(--owner) 8%, white);
  border-left: 2px solid var(--owner);
}
.tv-modal-player-a {
  flex-direction: row-reverse;
  border-left: none;
  border-right: 2px solid var(--owner);
}
.tv-modal-num {
  font-size: 9px;
  font-weight: 800;
  color: var(--owner);
  min-width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.tv-modal-pname {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Upcoming / TBD */
.tv-modal-upcoming {
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tv-modal-upcoming-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.tv-modal-owners {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tv-modal-owner-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-1);
}

/* Highlight currently live match in the schedule strip */
.tv-day-match.is-live-now {
  outline: 2px solid #d94f4f;
  outline-offset: -2px;
}
.tv-day-match.is-live-now::after {
  content: "● LIVE";
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 8px;
  font-weight: 800;
  color: #d94f4f;
  letter-spacing: 0.05em;
  animation: tv-live-pulse 1.6s ease-in-out infinite;
}
.tv-day-match { position: relative; }

/* ============================================================
   Game View — match picker + inline detail
   ============================================================ */

/* Picker bar */
.tv-gv {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Date nav header */
.tv-gv-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 12px;
  flex-shrink: 0;
}
.tv-gv-header .tv-day-nav {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.tv-gv-header .tv-day-nav .tv-nav-chevron {
  width: 8px;
  height: 8px;
}
.tv-gv-date-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  min-width: 150px;
  text-align: center;
}

/* Match cards row */
.tv-gv-cards {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  flex-shrink: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.tv-gv-none {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  padding: 4px 0;
  align-self: center;
}

/* Individual match card */
.tv-gv-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 10px;
  min-width: 170px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.tv-gv-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(26,77,46,0.1);
}
.tv-gv-card.active {
  border-color: var(--brand);
  background: color-mix(in oklch, var(--brand) 8%, white);
}
.tv-gv-card.live { border-color: #d94f4f; }
.tv-gv-card.live.active { background: color-mix(in oklch, #d94f4f 8%, white); }

.tv-gv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.tv-gv-card-time {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-3);
}
.tv-gv-card-live-badge {
  font-size: 9px;
  font-weight: 800;
  color: #d94f4f;
  animation: tv-live-pulse 1.6s ease-in-out infinite;
}
.tv-gv-card-channel { height: 13px; width: auto; display: block; }
.tv-gv-card-ch-bbc  { height: 13px; }
.tv-gv-card-ch-itv  { height: 11px; margin-top: 1px; }

.tv-gv-card-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
}
.tv-gv-card-team {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.tv-gv-card-team-r {
  flex-direction: row-reverse;
}
.tv-gv-card-tname {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tv-gv-card-score {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink-1);
  text-align: center;
  padding: 0 3px;
  white-space: nowrap;
}

/* Game detail */
.tv-gd {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 12px 12px;
}

/* Stats + pitch side by side */
.tv-gd-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

/* Left panel: match info + stats */
.tv-gd-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 12px 0;
}

/* Stat rows expand to fill remaining vertical space */
.tv-gd-stats-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

/* Teams + score row inside the panel */
.tv-gd-match-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  flex-shrink: 0;
}
.tv-gd-team {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.tv-gd-team-r { align-items: flex-end; }
.tv-gd-tbd {
  width: 24px; height: 17px;
  background: var(--line);
  border-radius: 3px;
  flex-shrink: 0;
}
.tv-gd-team-txt { display: flex; flex-direction: column; gap: 2px; }
.tv-gd-team-txt-r { align-items: flex-end; }
.tv-gd-tname { font-size: 13px; font-weight: 700; color: var(--ink-1); }
.tv-gd-owner {
  font-size: 8px; font-weight: 700; color: #fff;
  padding: 1px 5px; border-radius: 3px; display: inline-block;
}
.tv-gd-score-col { text-align: center; flex-shrink: 0; }
.tv-gd-live-badge {
  display: inline-block;
  background: #d94f4f; color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: 0.07em;
  padding: 2px 7px; border-radius: 3px; margin-bottom: 2px;
  animation: tv-live-pulse 1.6s ease-in-out infinite;
}
.tv-gd-score {
  font-size: 32px; font-weight: 900; color: var(--ink-1);
  line-height: 1; letter-spacing: -0.02em;
}
.tv-gd-ft { font-size: 10px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.05em; margin-top: 1px; }
.tv-gd-kickoff { font-size: 11px; font-weight: 700; color: var(--ink-3); margin-top: 3px; }

/* Scorer names row */
.tv-gd-scorers-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex-shrink: 0;
}
.tv-gd-scorers-home {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.tv-gd-scorers-away {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}
.tv-gd-scorer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px; font-weight: 600; color: var(--ink-2);
}
.tv-gd-scorer-icon {
  width: 11px; height: 11px;
  flex-shrink: 0;
}

/* Meta + channel inline */
.tv-gd-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tv-gd-meta { font-size: 9px; color: var(--ink-3); font-weight: 600; flex: 1; }

/* Thin divider between info and stats */
.tv-gd-divider {
  height: 1px;
  background: var(--line);
  flex-shrink: 0;
  margin: 4px 0;
}

/* Stats rows */
.tv-gd-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}
.tv-gd-stat-row {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 6px;
}
.tv-gd-stat-val { font-size: 12px; font-weight: 700; color: var(--ink-1); text-align: center; }
.tv-gd-stat-mid { display: flex; flex-direction: column; gap: 2px; }
.tv-gd-stat-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-3); text-align: center;
}
.tv-gd-stat-track {
  height: 7px; border-radius: 4px; overflow: hidden;
  display: flex; background: var(--line);
}

/* Lineup column */
.tv-gd-lineup {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.tv-gd-lineup-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  font-size: 10px; font-weight: 700; color: var(--ink-3);
  margin-bottom: 5px; flex-shrink: 0;
}
.tv-gd-lineup-title {
  text-transform: uppercase; letter-spacing: 0.07em; font-size: 9px;
}
.tv-gd-lineup-cols {
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: 0 6px; flex: 1; overflow: hidden;
}
.tv-gd-lineup-div { background: var(--line); }
.tv-gd-lineup-col {
  display: flex; flex-direction: column; gap: 2px; overflow: hidden;
}
.tv-gd-player {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 5px; border-radius: 3px;
  background: color-mix(in oklch, var(--owner) 10%, white);
  border-left: 2px solid var(--owner);
}
.tv-gd-player-a {
  flex-direction: row-reverse; border-left: none;
  border-right: 2px solid var(--owner);
}
.tv-gd-num {
  font-size: 10px; font-weight: 800; color: var(--owner);
  min-width: 16px; text-align: center; flex-shrink: 0;
}
.tv-gd-pname {
  font-size: 11px; font-weight: 600; color: var(--ink-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Channel badge inline with meta */
.tv-gd-channel-img { display: block; width: auto; flex-shrink: 0; }
.tv-gd-channel-bbc { height: 16px; }
.tv-gd-channel-itv { height: 13px; }

/* Pitch formation column */
.tv-gd-pitch-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  min-height: 0;
}
.tv-gd-pitch-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr;
  gap: 2px;
  flex: 1;
  min-height: 0;
}

/* Squad lists either side of pitch */
.tv-squad-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  min-width: 0;
}
.tv-squad-list::-webkit-scrollbar { display: none; }
.tv-squad-section-label {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 3px 0 1px;
  flex-shrink: 0;
}
.tv-squad-home .tv-squad-section-label { text-align: right; }
.tv-squad-away .tv-squad-section-label { text-align: left; }
.tv-squad-section-subs {
  border-top: 1px solid var(--line);
  padding-top: 2px;
}
.tv-squad-player {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--ink-2);
  min-width: 0;
}
.tv-squad-home { padding-right: 14px; }
.tv-squad-away { padding-left: 14px; }
.tv-squad-home .tv-squad-player { justify-content: flex-end; }
.tv-squad-away .tv-squad-player { justify-content: flex-start; }
.tv-squad-player.tv-squad-scored { color: var(--ink-1); font-weight: 700; }
.tv-squad-num {
  font-size: 10px; font-weight: 800;
  color: var(--sc, var(--ink-3));
  min-width: 16px; text-align: center;
  flex-shrink: 0;
}
.tv-squad-name {
  font-size: 10px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.tv-squad-home .tv-squad-name { text-align: right; }
.tv-squad-away .tv-squad-name { text-align: left; }
.tv-squad-goal-icon {
  width: 9px; height: 9px;
  flex-shrink: 0;
}
.tv-gd-pitch-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}
.tv-gd-pitch-title {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
}

/* Pitch container */
.tv-pitch-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv-pitch {
  position: relative;
  height: 100%;
  aspect-ratio: 68 / 105;
  max-width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #2d7a3a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

/* Pitch line markings — all pointer-events: none */
.tv-pitch-outline {
  position: absolute;
  inset: 3% 6%;
  border: 1.5px solid rgba(255,255,255,0.65);
  pointer-events: none;
}
.tv-pitch-midline {
  position: absolute;
  left: 6%; right: 6%;
  top: 50%;
  height: 1.5px;
  background: rgba(255,255,255,0.65);
  pointer-events: none;
}
.tv-pitch-center-circle {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 24%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(255,255,255,0.65);
  border-radius: 50%;
  pointer-events: none;
}
.tv-pitch-center-dot {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  pointer-events: none;
}
/* Penalty boxes — home at bottom, away at top */
.tv-pitch-box-bottom {
  position: absolute;
  bottom: 3%; left: 50%; transform: translateX(-50%);
  width: 58%; height: 16%;
  border: 1.5px solid rgba(255,255,255,0.65);
  border-bottom: none;
  pointer-events: none;
}
.tv-pitch-box-top {
  position: absolute;
  top: 3%; left: 50%; transform: translateX(-50%);
  width: 58%; height: 16%;
  border: 1.5px solid rgba(255,255,255,0.65);
  border-top: none;
  pointer-events: none;
}
.tv-pitch-goal-bottom {
  position: absolute;
  bottom: 3%; left: 50%; transform: translateX(-50%);
  width: 26%; height: 5.5%;
  border: 1.5px solid rgba(255,255,255,0.65);
  border-bottom: none;
  pointer-events: none;
}
.tv-pitch-goal-top {
  position: absolute;
  top: 3%; left: 50%; transform: translateX(-50%);
  width: 26%; height: 5.5%;
  border: 1.5px solid rgba(255,255,255,0.65);
  border-top: none;
  pointer-events: none;
}

/* Player dots on pitch */
.tv-pitch-player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  z-index: 1;
}
.tv-pitch-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900;
  background: white;
  border: 2px solid var(--dot-color, rgba(255,255,255,0.6));
  color: var(--dot-color, #333);
  box-shadow: 0 1px 4px rgba(0,0,0,0.55);
  flex-shrink: 0;
}
.tv-pitch-name-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.tv-pitch-goal-icon {
  width: 8px; height: 8px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.tv-pitch-pname {
  font-size: 11px; font-weight: 700;
  color: white;
  white-space: nowrap;
  line-height: 1;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Pre-match / no-data state */
.tv-gd-prematch {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv-gd-upcoming {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.tv-gd-upcoming-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  color: var(--ink-3); text-transform: uppercase;
}
.tv-gd-owner-cards {
  display: flex; gap: 16px;
}
.tv-gd-owner-card {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-1);
  padding: 6px 12px; border-radius: 6px;
  background: color-mix(in oklch, var(--owner) 12%, white);
  border-left: 4px solid var(--owner);
}
.tv-gd-tbd-label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tv-gd-ft-info { font-size: 12px; font-weight: 600; color: var(--ink-3); }

/* ============================================================
   Mobile Game View
   ============================================================ */

.mob-game-tab {
  gap: 0;
  padding: 0;
}
.mob-game-tab > .mob-date-nav {
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

/* Horizontal match card scroller */
.mob-game-cards {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

/* Individual match card */
.mob-gc {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 10px;
  min-width: 150px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.mob-gc:active { opacity: 0.8; }
.mob-gc.active {
  border-color: var(--brand);
  background: color-mix(in oklch, var(--brand) 8%, white);
}
.mob-gc.live { border-color: #d94f4f; }
.mob-gc.live.active { background: color-mix(in oklch, #d94f4f 8%, white); }
.mob-gc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.mob-gc-time { font-size: 10px; font-weight: 800; color: var(--ink-3); }
.mob-gc-live {
  font-size: 9px; font-weight: 800; color: #d94f4f;
  animation: tv-live-pulse 1.6s ease-in-out infinite;
}
.mob-gc-channel { height: 12px; width: auto; display: block; }
.mob-gc-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3px;
}
.mob-gc-team {
  display: flex; align-items: center; gap: 3px; overflow: hidden;
}
.mob-gc-team-r { flex-direction: row-reverse; }
.mob-gc-tname {
  font-size: 10px; font-weight: 700; color: var(--ink-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mob-gc-score {
  font-size: 11px; font-weight: 900; color: var(--ink-1);
  padding: 0 2px; white-space: nowrap;
}

/* Mobile game detail */
.mob-gd {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

/* Stats panel: teams + score + meta + stat bars */
.mob-gd-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 1px 4px rgba(10,40,24,0.07);
}

/* Teams + score inside panel */
.mob-gd-match-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 6px;
}
.mob-gd-team {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.mob-gd-team-r { align-items: flex-end; }
.mob-gd-tbd {
  width: 24px; height: 16px; background: var(--line); border-radius: 3px;
}
.mob-gd-tname { font-size: 13px; font-weight: 800; color: var(--ink-1); }
.mob-gd-owner {
  font-size: 8px; font-weight: 700; color: #fff;
  padding: 1px 5px; border-radius: 3px; display: inline-block;
}
.mob-gd-score-col { text-align: center; flex-shrink: 0; }
.mob-gd-live-badge {
  display: inline-block;
  background: #d94f4f; color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: 0.07em;
  padding: 2px 6px; border-radius: 3px; margin-bottom: 2px;
  animation: tv-live-pulse 1.6s ease-in-out infinite;
}
.mob-gd-score {
  font-size: 30px; font-weight: 900; color: var(--ink-1);
  line-height: 1; letter-spacing: -0.02em;
}
.mob-gd-ft { font-size: 10px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.05em; margin-top: 1px; }
.mob-gd-kickoff { font-size: 18px; font-weight: 800; color: var(--ink-2); }

/* Scorers row */
.mob-gd-scorers-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mob-gd-scorers-home { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.mob-gd-scorers-away { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.mob-gd-scorer {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--ink-2);
}
.mob-gd-scorer-icon { width: 11px; height: 11px; flex-shrink: 0; }

/* Meta + channel inline */
.mob-gd-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mob-gd-meta { font-size: 9px; color: var(--ink-3); font-weight: 600; flex: 1; }
.mob-gd-channel-img { display: block; width: auto; flex-shrink: 0; }
.mob-gd-ch-bbc { height: 14px; }
.mob-gd-ch-itv { height: 11px; }

/* Divider */
.mob-gd-divider {
  height: 1px;
  background: var(--line);
  margin: 2px 0;
}

/* Stats */
.mob-gd-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mob-gd-stat-row {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 6px;
}
.mob-gd-stat-val { font-size: 11px; font-weight: 700; color: var(--ink-1); text-align: center; }
.mob-gd-stat-mid { display: flex; flex-direction: column; gap: 2px; }
.mob-gd-stat-label {
  font-size: 8px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-3); text-align: center;
}
.mob-gd-stat-track {
  height: 6px; border-radius: 4px; overflow: hidden;
  display: flex; background: var(--line);
}

/* Pitch section */
.mob-gd-pitch-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mob-gd-pitch-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  font-size: 10px; font-weight: 700;
  align-items: center; gap: 4px;
}
.mob-gd-pitch-title {
  text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 8px; color: var(--ink-3); text-align: center;
}

/* Override tv-pitch-wrap for mobile scrolling context */
.mob-gd-pitch-section .tv-pitch-wrap {
  flex: none;
  align-items: stretch;
}
.mob-gd-pitch-section .tv-pitch {
  width: 100%;
  height: auto;
}

/* aspect-ratio fallback: older Safari/browsers — use padding-top trick */
@supports not (aspect-ratio: 1) {
  .mob-gd-pitch-section .tv-pitch-wrap {
    position: relative;
    width: 100%;
    padding-top: 154.4%; /* 105/68 * 100 */
    height: 0;
  }
  .mob-gd-pitch-section .tv-pitch {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }
  /* TV pitch fallback: give the auto grid column an explicit width */
  .tv-gd-pitch-row {
    grid-template-columns: 1fr 258px 1fr;
  }
  .tv-gd-pitch-row .tv-pitch-wrap {
    width: 258px;
    align-items: stretch;
  }
  .tv-gd-pitch-row .tv-pitch {
    width: 258px;
    height: 400px;
    max-width: none;
  }
}

/* ============================================================
   BETTING ODDS
   ============================================================ */

/* ---- Shared MatchOdds strip (TV game detail + mobile) ---- */
.match-odds-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  margin: 6px 0 2px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.match-odds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.match-odds-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
  opacity: .7;
}
.match-odds-all-btn {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--brand);
  background: none;
  border: 1px solid var(--brand);
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.match-odds-all-btn:hover {
  background: var(--brand);
  color: #fff;
}
.match-odds-cells {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.match-odds-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 54px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
}
.match-odds-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: .01em;
}
.match-odds-lbl {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  opacity: .8;
}
.match-odds-book {
  font-size: 7px;
  color: var(--muted);
  opacity: .6;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

/* ---- All bookmakers table ---- */
.bookie-table-wrap {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-top: 2px;
}
.bookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.bookie-table thead tr {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bookie-table th {
  padding: 5px 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}
.bookie-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background .1s;
}
.bookie-table tbody tr:last-child { border-bottom: none; }
.bookie-table tbody tr:hover { background: rgba(0,0,0,0.03); }
.bookie-table td {
  padding: 5px 8px;
  color: var(--fg);
  white-space: nowrap;
}
.bookie-col-name {
  text-align: left;
  font-weight: 600;
  color: var(--muted) !important;
  font-size: 10px;
  min-width: 110px;
}
.bookie-col-odds {
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  min-width: 48px;
}
.bookie-best {
  color: #2a9e5f !important;
  font-weight: 800 !important;
  position: relative;
}
.bookie-best::after {
  content: "★";
  font-size: 7px;
  position: absolute;
  top: 2px;
  right: -1px;
  color: #2a9e5f;
}

/* ---- Stats / Bet mode switch (TV game view header) ---- */
.tv-gv-mode-switch {
  display: flex;
  gap: 0;
  background: var(--line);
  border-radius: 8px;
  padding: 2px;
  margin-left: auto;
}
.tv-gv-mode-pill {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.tv-gv-mode-pill.active {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* ---- Stats / Bet mode switch (mobile) ---- */
.mob-mode-switch {
  display: flex;
  gap: 0;
  background: var(--line);
  border-radius: 20px;
  padding: 2px;
  margin: 0 12px 8px;
  align-self: center;
}
.mob-mode-pill {
  flex: 1;
  background: none;
  border: none;
  border-radius: 18px;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mob-mode-pill.active {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* ---- Bet Mode panel ---- */
.tv-bet-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px 14px;
  overflow-y: auto;
  height: 100%;
}
.tv-bet-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.tv-bet-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tv-bet-section-title {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  opacity: .7;
}

/* Best odds hero cards */
.tv-bet-hero {
  display: flex;
  gap: 8px;
}
.tv-bet-hero-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 10px;
  border-top-color: var(--oc, var(--brand));
  transition: border-color .2s;
}
.tv-bet-hero-draw {
  border-top-color: #aaa;
}
.tv-bet-hero-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--fg);
  letter-spacing: -.01em;
}
.tv-bet-hero-team {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.tv-bet-hero-book {
  font-size: 8px;
  color: var(--muted);
  opacity: .6;
  text-align: center;
}
.tv-bet-hero-return {
  font-size: 9px;
  font-weight: 700;
  color: #2a9d5c;
  text-align: center;
  margin-top: 2px;
  background: rgba(42,157,92,.1);
  border-radius: 4px;
  padding: 1px 4px;
}

/* Page tabs */
.tv-bet-page-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 0 2px;
}
.tv-bet-page-tab {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #f5f5f5;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.tv-bet-page-tab:hover { background: #eee; color: var(--text); }
.tv-bet-page-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tv-bet-page-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Hero sub-label */
.tv-bet-hero-sub {
  font-size: 8px;
  color: var(--muted);
  text-align: center;
  margin-top: 1px;
}

/* Alternate totals grid */
.tv-bet-alt-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tv-bet-alt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(0,0,0,.025);
  border-radius: 6px;
  font-size: 10px;
}
.tv-bet-alt-label {
  font-weight: 700;
  color: var(--muted);
  min-width: 52px;
  text-align: right;
}
.tv-bet-alt-cell {
  flex: 1;
  font-weight: 700;
  font-size: 10px;
  text-align: center;
}
.tv-bet-alt-over  { color: #2a9d5c; }
.tv-bet-alt-under { color: #e07b54; }
.tv-bet-alt-return {
  font-size: 9px;
  font-weight: 600;
  opacity: .75;
}

/* Stake calculator row */
.tv-bet-stake-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,.03);
  border-radius: 8px;
  margin-bottom: 2px;
}
.tv-bet-stake-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tv-bet-stake-prefix {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.tv-bet-stake-input {
  width: 60px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 2px 6px;
  text-align: right;
  outline: none;
  background: #fff;
  color: var(--text);
}
.tv-bet-stake-input:focus { border-color: var(--brand); }
.tv-bet-stake-hint {
  font-size: 9px;
  color: var(--muted);
  opacity: .7;
}

/* Returns column in bookmaker table */
.bookie-col-return {
  color: #2a9d5c;
  font-weight: 700;
}

/* Implied probability bar */
.tv-bet-prob-bar {
  display: flex;
  height: 26px;
  border-radius: 6px;
  overflow: hidden;
  gap: 1px;
  background: #ddd;
}
.tv-bet-prob-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width .4s ease;
  min-width: 24px;
}
.tv-bet-prob-d { background: #bbb; }
.tv-bet-prob-pct {
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  white-space: nowrap;
}
.tv-bet-prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 2px;
}

/* Table section */
.tv-bet-section-table {
  flex: 1;
  min-height: 0;
}
.tv-bet-section-table .bookie-table-wrap {
  max-height: 260px;
  overflow-y: auto;
}

/* ---- Compact odds row in TV 3-day schedule strip ---- */
.tv-day-odds {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid var(--line);
}
.tv-day-odds-item {
  font-size: 8px;
  font-weight: 700;
  color: var(--muted);
  opacity: .85;
  letter-spacing: .02em;
}
.tv-day-odds-sep {
  font-size: 7px;
  color: var(--line);
  opacity: .6;
}

/* Squad lists side by side below pitch on mobile */
.mob-gd-squads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
/* On mobile both squad lists read left-to-right, override TV alignment */
.mob-gd-squads .tv-squad-list {
  justify-content: flex-start;
  gap: 2px;
  padding: 0;
}
.mob-gd-squads .tv-squad-home .tv-squad-player { justify-content: flex-start; }
.mob-gd-squads .tv-squad-home .tv-squad-name  { text-align: left; }
.mob-gd-squads .tv-squad-home .tv-squad-section-label { text-align: left; }
