/* ============================================================
   THE WC26 PROGRAMME — vintage match-day programme aesthetic
   paper + ink + pitch green, condensed display type, hard edges
   ============================================================ */
:root {
  --paper: #f3eee2;
  --paper-hi: #faf7ef;
  --ink: #181511;
  --ink-soft: #5a5346;
  --hairline: rgba(24, 21, 17, 0.22);
  --pitch: #1c6b40;
  --red: #cf3527;
  --gold: #d9920f;
  --led-bg: #131110;
  --led: #ffb52e;
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--pitch); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---------- LED ticker ---------- */
.ticker {
  background: var(--led-bg); overflow: hidden; white-space: nowrap;
  border-bottom: 3px solid var(--ink);
  padding: 0.32rem 0;
}
.ticker-track {
  display: inline-block; white-space: nowrap;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em;
  color: var(--led); text-shadow: 0 0 6px rgba(255, 181, 46, 0.6);
  animation: ticker 40s linear infinite;
}
.ticker-track .sep { color: #6b5a32; margin: 0 1.2rem; }
.ticker-track .live { color: #ff4b3a; text-shadow: 0 0 6px rgba(255, 75, 58, 0.7); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- masthead ---------- */
.masthead {
  text-align: center;
  padding: 1.1rem 1.4rem 1.3rem;
  border-bottom: 4px solid var(--ink);
  position: relative;
}
.mast-row {
  display: flex; justify-content: space-between; max-width: 1280px; margin: 0 auto 0.5rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--ink-soft);
}
.mast-grid { max-width: 1280px; margin: 0 auto; }
.masthead h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}
.mast-sub {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  max-width: 760px; margin: 0.7rem auto 0;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--ink-soft);
}
.mast-sub .rule { flex: 1; border-top: 1px solid var(--ink); position: relative; }
.mast-sub .rule::after { content: ""; position: absolute; top: 2px; left: 0; right: 0; border-top: 1px solid var(--hairline); }

@media (min-width: 1000px) {
  .mast-grid {
    display: grid; grid-template-columns: 1fr minmax(420px, 520px); gap: 2.5rem;
    align-items: center; text-align: left;
  }
  .mast-grid .mast-sub { margin-left: 0; justify-content: flex-start; }
  .mast-grid .settings-line { text-align: left; }
  .mast-grid .onair { margin: 0; }
}

/* on-air board */
.onair {
  max-width: 620px; margin: 1.2rem auto 0;
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1rem 1.2rem 1.2rem;
}
.onair.is-live { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--red); }
.onair-label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.3em; color: var(--ink-soft);
}
.onair.is-live .onair-label { color: #ff6b5c; }
.onair-match {
  font-family: var(--display); font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin-top: 0.3rem; line-height: 1.1; text-transform: uppercase;
}
.onair-match img { width: 34px; height: 24px; object-fit: cover; vertical-align: -3px; border: 1px solid var(--ink); margin: 0 0.45rem; }
.onair.is-live .onair-match img { border-color: var(--paper); }
.onair-match .v { font-size: 0.55em; color: var(--ink-soft); margin: 0 0.2rem; }
.onair.is-live .onair-match .v { color: #8d8475; }
.onair-clock {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.08em; margin-top: 0.35rem; font-variant-numeric: tabular-nums;
}
.onair-action { margin-top: 0.8rem; }

.settings-line {
  margin-top: 0.9rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--ink-soft);
}
.settings-line strong { color: var(--pitch); }
.region-pick {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em;
  background: transparent; color: var(--ink);
  border: none; border-bottom: 2px solid var(--ink);
  padding: 0.1rem 0.2rem; cursor: pointer;
}

/* ---------- nav ---------- */
.navbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 0.55rem 1.4rem;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between;
}
.nav-tabs { display: flex; flex-wrap: wrap; gap: 0.15rem; }
.tab {
  font-family: var(--body); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: transparent; color: var(--ink);
  border: 2px solid transparent; padding: 0.35rem 0.8rem; cursor: pointer;
  transition: none;
}
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-filters { display: flex; gap: 0.45rem; align-items: center; }
.nav-filters select, .clear-btn {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em;
  background: var(--paper-hi); color: var(--ink);
  border: 1.5px solid var(--ink); padding: 0.32rem 0.5rem; cursor: pointer;
}
.clear-btn:hover { background: var(--ink); color: var(--paper); }

#layout {
  max-width: 1280px; margin: 0 auto; padding: 0.5rem 1.4rem 2rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3.5rem;
  position: relative; z-index: 2;
}
@media (min-width: 1100px) {
  #layout { grid-template-columns: minmax(0, 1fr) 330px; }
}
main { min-width: 0; }

/* ---------- right rail ---------- */
#rail { display: none; }
@media (min-width: 1100px) {
  #rail { display: block; padding-top: 2.2rem; align-self: start; position: sticky; top: 3.6rem; }
}
.rail-box { margin-bottom: 2rem; }
.rail-head {
  font-family: var(--display); font-size: 1rem; text-transform: uppercase;
  border-bottom: 3px solid var(--ink); padding-bottom: 0.2rem; margin-bottom: 0.6rem;
}
.rail-tv-row {
  display: grid; grid-template-columns: 3.2rem 1fr auto;
  gap: 0.5rem; align-items: center;
  padding: 0.45rem 0.1rem; border-bottom: 1px solid var(--hairline);
  font-size: 0.8rem; cursor: pointer;
}
.rail-tv-row:hover { background: var(--ink); color: var(--paper); }
.rail-tv-row .t { font-family: var(--mono); font-weight: 700; font-size: 0.74rem; }
.rail-tv-row .t .live-tag { display: block; color: var(--red); font-size: 0.58rem; animation: blink 1.3s steps(2) infinite; }
.rail-tv-row .who { font-weight: 600; line-height: 1.3; }
.rail-tv-row .ch { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--pitch); text-align: right; }
.rail-tv-row:hover .ch { color: var(--gold); }
.rail-odds-row {
  display: grid; grid-template-columns: 24px 1fr minmax(2.6rem, 38%) 2.6rem;
  gap: 0.5rem; align-items: center;
  padding: 0.34rem 0.1rem; border-bottom: 1px solid var(--hairline);
  font-size: 0.8rem;
}
.rail-odds-row img.flag { width: 24px; height: 17px; }
.rail-odds-row .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-odds-row .bar { height: 9px; border: 1px solid var(--ink); background: var(--paper-hi); }
.rail-odds-row .bar span { display: block; height: 100%; background: var(--pitch); }
.rail-odds-row .p { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-align: right; }
.rail-more {
  width: 100%; margin-top: 0.7rem; padding: 0.45rem;
  background: transparent; border: 1.5px solid var(--ink); color: var(--ink);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; cursor: pointer;
}
.rail-more:hover { background: var(--ink); color: var(--paper); }
.rail-empty { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-soft); letter-spacing: 0.1em; padding: 0.5rem 0; }

/* earlier-days toggle */
.past-toggle {
  width: 100%; margin: 1.6rem 0 -0.6rem; padding: 0.5rem;
  background: var(--paper-hi); border: 1.5px dashed var(--ink); color: var(--ink-soft);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; cursor: pointer;
}
.past-toggle:hover { color: var(--ink); border-style: solid; }

/* ---------- fixtures ---------- */
.day-block { margin-top: 2.2rem; }
.day-header {
  display: flex; align-items: baseline; gap: 0.9rem;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 0.2rem;
}
.day-header .daynum {
  font-family: var(--display); font-size: 3rem; line-height: 0.9; color: var(--pitch);
}
.day-header.is-today .daynum { color: var(--red); }
.day-header .dayname {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em; color: var(--ink-soft);
  text-transform: uppercase;
}
.day-header .today-stamp {
  margin-left: auto; align-self: center;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em;
  border: 1.5px solid var(--red); color: var(--red);
  padding: 0.12rem 0.5rem; transform: rotate(-3deg);
}

.match {
  display: grid;
  grid-template-columns: 5rem 1fr minmax(1.4rem, auto) 1fr 13rem 1.4rem;
  align-items: center; gap: 0.7rem;
  padding: 0.72rem 0.4rem;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  position: relative;
}
.match:hover { background: var(--ink); color: var(--paper); }
.match:hover .meta, .match:hover .vs, .match:hover .time small { color: #b6ad9c; }
.match:hover .arrow { color: var(--gold); transform: translateX(3px); }
.match.is-live { border-left: 5px solid var(--red); padding-left: 0.6rem; }
.match.is-done { opacity: 0.45; }

.match .time {
  font-family: var(--mono); font-weight: 700; font-size: 0.92rem;
  font-variant-numeric: tabular-nums; line-height: 1.25;
}
.match .time small { display: block; font-size: 0.58rem; letter-spacing: 0.14em; color: var(--ink-soft); }
.match .time .live-tag { color: var(--red); animation: blink 1.3s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.match:hover .time .live-tag { color: #ff6b5c; }

.match .team { display: flex; align-items: center; gap: 0.55rem; min-width: 0; font-weight: 600; font-size: 0.98rem; }
.match .team.home { justify-content: flex-end; text-align: right; }
.match .team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .vs { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-soft); text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.match .pct {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  color: var(--pitch); font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.match .vs .pct { color: var(--ink-soft); font-weight: 400; }
.match .vs.score { font-size: 1.05rem; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.match .vs.score.is-live { color: var(--red); }
.match:hover .vs.score { color: var(--paper); }
.t-bigscore { font-family: var(--display); font-size: 1.9rem; color: var(--ink); }
.rail-tv-row .who b { font-family: var(--mono); }
.match:hover .pct { color: var(--gold); }
.match:hover .vs .pct { color: #b6ad9c; }
img.flag { width: 27px; height: 19px; object-fit: cover; border: 1px solid rgba(24,21,17,0.5); flex-shrink: 0; }
.match:hover img.flag { border-color: var(--paper); }
.flag-ph {
  width: 27px; height: 19px; flex-shrink: 0; border: 1px solid rgba(24,21,17,0.4);
  background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(24,21,17,0.25) 3px, rgba(24,21,17,0.25) 6px);
}
.match .meta {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em;
  color: var(--ink-soft); text-align: right; line-height: 1.5; text-transform: uppercase;
}
.match .meta .ch { color: var(--pitch); font-weight: 700; }
.match:hover .meta .ch { color: var(--gold); }
.match .arrow { font-family: var(--mono); color: var(--ink-soft); transition: transform 0.12s; }

/* ---------- wall chart ---------- */
#bracket { display: flex; gap: 1.6rem; overflow-x: auto; padding: 2rem 0.2rem; align-items: flex-start; }
.round-col { min-width: 250px; flex-shrink: 0; }
.round-col h3 {
  font-family: var(--display); font-size: 1.15rem; text-transform: uppercase;
  border-bottom: 3px solid var(--ink); margin-bottom: 0.8rem; padding-bottom: 0.15rem;
}
.round-col h3 small { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.2em; color: var(--ink-soft); display: block; }
.b-match {
  border: 1.5px solid var(--ink); background: var(--paper-hi);
  padding: 0.55rem 0.7rem; margin-bottom: 0.6rem; font-size: 0.85rem; cursor: pointer;
}
.b-match:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.b-match .b-team { display: flex; align-items: center; gap: 0.45rem; padding: 0.1rem 0; font-weight: 600; }
.b-match .b-team img, .b-match .b-team .flag-ph { width: 21px; height: 15px; }
.b-match .b-meta { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 0.3rem; text-transform: uppercase; }
.round-col.final .b-match { border-width: 3px; box-shadow: 5px 5px 0 var(--gold); }
.round-col.final .b-match:hover { transform: none; }

/* ---------- groups ---------- */
#group-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.group-card {
  border: 2px solid var(--ink); background: var(--paper-hi);
  padding: 0.9rem 1rem; position: relative; overflow: hidden;
}
.group-card .g-water {
  position: absolute; right: -0.5rem; top: -1.6rem;
  font-family: var(--display); font-size: 6.5rem; color: rgba(28, 107, 64, 0.12);
  pointer-events: none;
}
.group-card h3 { font-family: var(--display); font-size: 1.1rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.group-card table { width: 100%; border-collapse: collapse; font-size: 0.9rem; position: relative; }
.group-card td { padding: 0.34rem 0.25rem; border-top: 1px solid var(--hairline); font-weight: 600; }
.group-card td:first-child { width: 32px; }

/* ---------- ticket modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(24, 21, 17, 0.66);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  animation: fadein 0.16s ease;
}
@keyframes fadein { from { opacity: 0; } }

.ticket {
  position: relative; width: 100%; max-width: 430px; max-height: 92vh; overflow-y: auto; overflow-x: hidden;
  background: var(--paper-hi); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(24, 21, 17, 0.85);
  animation: ticketin 0.25s cubic-bezier(0.2, 1.3, 0.4, 1);
}
@keyframes ticketin { from { transform: translateY(18px) rotate(1.5deg); opacity: 0; } }
.ticket-close {
  position: absolute; top: 0.55rem; right: 0.55rem; z-index: 2;
  background: var(--paper-hi); color: var(--ink); border: 1.5px solid var(--ink);
  width: 1.8rem; height: 1.8rem; cursor: pointer; font-size: 0.8rem;
}
.ticket-close:hover { background: var(--ink); color: var(--paper); }

.t-head {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.26em;
  padding: 0.55rem 1.1rem; display: flex; justify-content: space-between;
}
.t-head .no { color: var(--gold); }
.t-stage {
  text-align: center; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.3em; color: var(--ink-soft); margin-top: 1rem; text-transform: uppercase;
}
.t-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem; padding: 0.9rem 1.2rem 0.2rem; }
.t-team { text-align: center; }
.t-team img, .t-team .flag-ph { width: 72px; height: 51px; object-fit: cover; border: 1.5px solid var(--ink); display: inline-block; }
.t-team .name { font-family: var(--display); text-transform: uppercase; font-size: 1.02rem; margin-top: 0.45rem; line-height: 1.1; }
.t-vs { font-family: var(--display); font-size: 1.3rem; color: var(--ink-soft); }
.t-when { text-align: center; font-weight: 700; margin-top: 0.5rem; font-size: 1rem; }
.t-count { text-align: center; font-family: var(--mono); font-weight: 700; font-size: 0.85rem; color: var(--pitch); margin-top: 0.1rem; font-variant-numeric: tabular-nums; }
.t-count.is-live { color: var(--red); animation: blink 1.3s steps(2) infinite; }
.t-venue { text-align: center; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--ink-soft); margin-top: 0.3rem; text-transform: uppercase; }

/* perforation */
.t-perf {
  position: relative; margin: 1.1rem 0 0; border-top: 2px dashed rgba(24, 21, 17, 0.45);
}
.t-perf::before, .t-perf::after {
  content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(24, 21, 17, 0.66); border: 2px solid var(--ink);
}
.t-perf::before { left: -12px; }
.t-perf::after { right: -12px; }

.t-stub { padding: 1rem 1.2rem 1.2rem; }
.t-stub h4 { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.28em; color: var(--ink-soft); margin-bottom: 0.6rem; }
.watch-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin-bottom: 0.45rem; padding: 0.68rem 0.9rem;
  border: 1.5px solid var(--ink); background: var(--paper);
  color: var(--ink); font-weight: 700; font-size: 0.92rem; text-decoration: none;
}
.watch-btn:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.watch-btn.primary { background: var(--pitch); color: var(--paper-hi); border-color: var(--pitch); }
.watch-btn.primary:hover { box-shadow: 3px 3px 0 var(--ink); }
.watch-btn.live { background: var(--red); border-color: var(--red); color: #fff; }
.watch-btn .note { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; opacity: 0.75; text-transform: uppercase; }

.t-cal { display: flex; gap: 0.45rem; margin-top: 0.8rem; }
.cal-btn {
  flex: 1; text-align: center; padding: 0.5rem;
  background: transparent; color: var(--ink-soft);
  border: 1.5px solid var(--hairline);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  cursor: pointer; text-decoration: none; text-transform: uppercase;
}
.cal-btn:hover { border-color: var(--ink); color: var(--ink); }

.t-barcode {
  margin-top: 1rem; height: 38px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px,
    var(--ink) 9px 12px, transparent 12px 14px, var(--ink) 14px 15px, transparent 15px 19px);
}
.t-barcode-label { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.4em; text-align: center; color: var(--ink-soft); margin-top: 0.25rem; }

/* free-to-air stamp */
.t-stamp {
  position: absolute; top: 4.2rem; right: 0.8rem; z-index: 1;
  font-family: var(--mono); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--red); border: 2px solid var(--red); border-radius: 50%;
  width: 74px; height: 74px; display: flex; align-items: center; justify-content: center;
  text-align: center; transform: rotate(12deg); opacity: 0.8; padding: 0.4rem;
  pointer-events: none;
}

/* ---------- odds board ---------- */
#odds-board { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem 2.5rem; }
.board-head {
  font-family: var(--display); font-size: 1.4rem; text-transform: uppercase;
  border-bottom: 3px solid var(--ink); padding-bottom: 0.2rem; margin-bottom: 0.9rem;
}
.board-head small { display: block; font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.2em; color: var(--ink-soft); margin-top: 0.15rem; }
.board-row {
  display: grid; grid-template-columns: 1.6rem 27px 1fr minmax(4rem, 38%) 3rem;
  align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.2rem; border-bottom: 1px solid var(--hairline);
}
.board-row.person { grid-template-columns: 1.6rem 1fr minmax(4rem, 38%) 3rem; }
.board-row .rank { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-soft); }
.board-row .b-name { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .b-bar { height: 12px; border: 1px solid var(--ink); background: var(--paper-hi); }
.board-row .b-bar span { display: block; height: 100%; background: var(--pitch); }
.board-row:nth-child(2) .b-bar span { background: var(--gold); }
.board-row .b-pct { font-family: var(--mono); font-weight: 700; font-size: 0.85rem; text-align: right; font-variant-numeric: tabular-nums; }
.board-credit { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; color: var(--ink-soft); text-align: center; }
.board-credit a { color: var(--pitch); }

/* odds strip on ticket */
.t-odds { padding: 0.9rem 1.2rem 0; }
.t-odds h5 { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.28em; color: var(--ink-soft); text-align: center; margin-bottom: 0.5rem; }
.odds-cells { display: flex; gap: 0.6rem; }
.odds-cell { flex: 1; text-align: center; }
.odds-pct { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.odds-bar { height: 8px; border: 1px solid var(--ink); background: var(--paper); margin: 0.25rem 0; }
.odds-bar span { display: block; height: 100%; background: var(--pitch); }
.odds-cell:nth-child(2) .odds-bar span { background: var(--ink-soft); }
.odds-cell:last-child .odds-bar span { background: var(--red); }
.odds-lbl { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; color: var(--ink-soft); }

/* group odds column */
.g-odds-head { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.14em; color: var(--ink-soft); text-align: right; margin-bottom: -0.2rem; }
.group-card td.g-odds { text-align: right; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: var(--pitch); width: 3.2rem; }

/* highlights reel */
.t-reel { position: relative; padding-top: 56.25%; border: 1.5px solid var(--ink); margin-bottom: 0.9rem; background: var(--ink); }
.t-reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-family: var(--body); font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 2px solid var(--ink); padding: 0.45rem 1.1rem; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.onair.is-live .btn { background: var(--red); border-color: var(--red); color: #fff; }
.onair.is-live .btn:hover { background: #fff; color: var(--red); }

/* ---------- footer ---------- */
footer { max-width: 860px; margin: 3rem auto 0; padding: 0 1.2rem 3rem; }
.foot-head {
  font-family: var(--display); font-size: 1.3rem; text-align: center;
  border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 0.4rem 0; margin-bottom: 1rem; text-transform: uppercase;
}
.broadcasters { display: grid; gap: 0.5rem; font-size: 0.88rem; }
.broadcasters strong { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; margin-right: 0.5rem; }
.footnote { margin-top: 1.4rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.04em; color: var(--ink-soft); line-height: 1.7; }

.hidden { display: none !important; }
.empty-state { text-align: center; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-soft); padding: 3.5rem 1rem; }

@media (max-width: 620px) {
  .match { grid-template-columns: 3.6rem 1fr minmax(1.1rem, auto) 1fr; }
  .match .meta, .match .arrow { display: none; }
  .masthead h1 { font-size: 3.4rem; }
  .nav-filters { width: 100%; justify-content: center; }
  .t-stamp { display: none; }
}
