/* ============================================================
   WORLD CUP 2026 — MASTER REPORT
   Dark-first design. Sticky nav. Tables built for density.
   Built for a Vienna-based smart fan.
   ============================================================ */

:root {
  --bg: #0b1020;
  --bg-elev: #131a30;
  --bg-elev-2: #1a2342;
  --fg: #e8ecf5;
  --fg-dim: #99a3bd;
  --fg-muted: #6b7596;
  --accent: #21d4fd;
  --accent-warm: #ffd166;
  --accent-hot: #ef476f;
  --accent-good: #06d6a0;
  --border: #243056;
  --border-hi: #3a4a82;
  --hi-row: rgba(33, 212, 253, 0.06);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);

  /* Confidence pill colors */
  --conf-confirmed: #06d6a0;
  --conf-likely: #21d4fd;
  --conf-estimated: #ffd166;
  --conf-speculative: #ef476f;

  /* Country flags for tinting rows */
  --flag-MEX: #006847;
  --flag-USA: #1d4789;
  --flag-CAN: #d52b1e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #070a18 0%, #0b1020 600px);
  color: var(--fg);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ====== TOP BAR ====== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Burger button — hidden on desktop, shown on mobile */
.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.burger:active { background: var(--bg-elev); }
.burger svg { display: block; }

/* Backdrop behind slide-in nav */
.sidenav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.2s;
}
body.nav-open .sidenav-backdrop {
  display: block;
  opacity: 1;
}
.topbar h1 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}
.topbar h1 .accent { color: var(--accent); }
.topbar .live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 0 0 var(--accent-hot);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 71, 111, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(239, 71, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 71, 111, 0); }
}
.topbar .meta {
  margin-left: auto;
  color: var(--fg-dim);
  font-size: 0.85rem;
  display: flex;
  gap: 1rem;
}
.topbar .meta span { white-space: nowrap; }

/* ====== LAYOUT: SIDE NAV + MAIN ====== */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: 1700px;
  margin: 0 auto;
}
.sidenav {
  position: sticky;
  top: 3.25rem;
  align-self: start;
  padding: 1.5rem 0.5rem 2rem 1.25rem;
  height: calc(100vh - 3.25rem);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  font-size: 0.85rem;
}
.sidenav .group-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin: 1rem 0 0.4rem 0.5rem;
  letter-spacing: 0.1em;
}
.sidenav a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--fg-dim);
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.sidenav a:hover { color: var(--fg); background: var(--bg-elev); }
.sidenav a.active {
  color: var(--fg);
  background: var(--bg-elev);
  border-left-color: var(--accent);
}

main {
  padding: 1.5rem 2rem 6rem;
  min-width: 0;
}

/* ====== SECTIONS ====== */
section.report-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 4.5rem;
}
section.report-section > h2 {
  font-size: 1.8rem;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
section.report-section > h2 .section-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}
section.report-section > .lede {
  color: var(--fg-dim);
  font-size: 1rem;
  margin: 0.5rem 0 1.5rem;
  max-width: 65ch;
}

/* ====== COLLAPSIBLES ====== */
details.box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  margin: 1rem 0;
  overflow: hidden;
}
details.box > summary {
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::before {
  content: "▸";
  color: var(--accent);
  transition: transform 0.2s;
  display: inline-block;
}
details.box[open] > summary::before { transform: rotate(90deg); }
details.box > summary:hover { background: var(--bg-elev-2); }
details.box .content { padding: 0 1.1rem 1.1rem; }

/* ====== TABLES ====== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th, td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  position: sticky;
  top: 0;
  background: var(--bg-elev-2);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border-hi);
  white-space: nowrap;
  cursor: pointer;
}
thead th.sort-asc::after  { content: " ▲"; color: var(--accent); }
thead th.sort-desc::after { content: " ▼"; color: var(--accent); }
tbody tr:hover { background: var(--hi-row); }
tbody tr.vienna-friendly { box-shadow: inset 3px 0 0 var(--accent-good); }
tbody tr.vienna-nightmare { box-shadow: inset 3px 0 0 var(--accent-hot); opacity: 0.85; }
tbody tr.is-today {
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.10), transparent);
  font-weight: 600;
}

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono       { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ====== PILL BADGES ====== */
.pill {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill-CONFIRMED  { background: rgba(6, 214, 160, 0.15); color: var(--conf-confirmed); border-color: rgba(6, 214, 160, 0.4); }
.pill-LIKELY     { background: rgba(33, 212, 253, 0.15); color: var(--conf-likely); border-color: rgba(33, 212, 253, 0.4); }
.pill-ESTIMATED  { background: rgba(255, 209, 102, 0.15); color: var(--conf-estimated); border-color: rgba(255, 209, 102, 0.4); }
.pill-SPECULATIVE{ background: rgba(239, 71, 111, 0.15); color: var(--conf-speculative); border-color: rgba(239, 71, 111, 0.4); }
.pill-MODERATE   { background: rgba(255, 209, 102, 0.15); color: var(--conf-estimated); border-color: rgba(255, 209, 102, 0.4); }
.pill-STRONG     { background: rgba(6, 214, 160, 0.18); color: var(--conf-confirmed); border-color: rgba(6, 214, 160, 0.5); }

.stage-pill {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.stage-Group  { background: #2a3556; color: #c5cce0; }
.stage-R32    { background: #2c2e57; color: #b8baf2; }
.stage-R16    { background: #3a2c57; color: #d4baf2; }
.stage-QF     { background: #57342c; color: #f2c6ba; }
.stage-SF     { background: #573f2c; color: #f2d8ba; }
.stage-3rd    { background: #574f2c; color: #f2eaba; }
.stage-Final  { background: #573a2c; color: #ffd166; border: 1px solid #ffd166; }

.country-MEX { color: #06d6a0; }
.country-USA { color: #21d4fd; }
.country-CAN { color: #ef476f; }

/* ====== SCHEDULE TOOLBAR ====== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  align-items: center;
}
.toolbar input[type="search"],
.toolbar select {
  background: var(--bg-elev);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
}
.toolbar input[type="search"]:focus,
.toolbar select:focus {
  outline: none;
  border-color: var(--accent);
}
.toolbar .chip {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  color: var(--fg-dim);
  cursor: pointer;
  user-select: none;
}
.toolbar .chip.active {
  border-color: var(--accent);
  color: var(--fg);
  background: rgba(33, 212, 253, 0.08);
}
.toolbar .count {
  color: var(--fg-muted);
  font-size: 0.8rem;
  margin-left: auto;
}

/* ====== TODAY BANNER ====== */
.today-banner {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.10), rgba(239, 71, 111, 0.10));
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.today-banner .label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-warm);
  font-weight: 700;
}
.today-banner .match-line {
  font-size: 1.1rem;
  font-weight: 600;
}
.today-banner .kickoff {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

/* ====== KPI CARDS ====== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.kpi {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}
.kpi .label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.kpi .value {
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 0.2rem;
  color: var(--fg);
}
.kpi .sub {
  font-size: 0.78rem;
  color: var(--fg-dim);
  margin-top: 0.1rem;
}

/* ====== CARDS / INSIGHTS ====== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.card h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.card .meta { font-size: 0.75rem; color: var(--fg-muted); margin-bottom: 0.5rem; }
.card p { margin: 0.4rem 0; color: var(--fg-dim); font-size: 0.9rem; }

.insight-card { border-left: 3px solid var(--accent); }
.insight-card.cat-betting { border-left-color: var(--accent-good); }
.insight-card.cat-weather { border-left-color: var(--accent-warm); }
.insight-card.cat-hype    { border-left-color: var(--accent-hot); }

/* ====== BRACKET ====== */
.bracket-wrap {
  overflow-x: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}
.bracket-svg { display: block; min-width: 1100px; }

/* ====== HEATMAP ====== */
.heatmap {
  display: grid;
  gap: 2px;
  margin: 1rem 0;
}
.heatmap .cell {
  padding: 0.4rem 0.3rem;
  border-radius: 3px;
  font-size: 0.7rem;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.heatmap .h-header {
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

/* ====== ODDS BARS ====== */
.odds-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.85rem;
}
.odds-row .bar {
  background: var(--bg-elev-2);
  border-radius: 4px;
  height: 18px;
  overflow: hidden;
  position: relative;
}
.odds-row .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-good));
  border-radius: 4px;
}
.odds-row .bar-fill-edge { background: linear-gradient(90deg, var(--accent-warm), var(--accent-hot)); }
.odds-row .val { text-align: right; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ====== MAP ====== */
.host-map { width: 100%; max-width: 900px; margin: 1rem 0; display: block; }
.host-map circle { cursor: pointer; transition: r 0.15s, fill 0.15s; }
.host-map circle:hover { r: 11; }
.host-map text { fill: var(--fg-dim); font-size: 10px; font-family: inherit; }

/* ====== TYPOGRAPHY ====== */
h3 { font-size: 1.25rem; margin: 2rem 0 0.6rem; color: var(--fg); }
h4 { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; color: var(--fg); }
p  { margin: 0.5rem 0 1rem; }
a  { color: var(--accent); }
a:hover { color: var(--accent-good); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }

ul.tight li { margin-bottom: 0.25rem; }
ul.split { columns: 2; column-gap: 2rem; }

blockquote.callout {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent-warm);
  background: rgba(255, 209, 102, 0.06);
  color: var(--fg);
  border-radius: 0 6px 6px 0;
}

hr.sep {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ====== FOOTER ====== */
footer.report-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ====== RESPONSIVE — TABLET ====== */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }

  /* Burger appears, side-nav becomes a slide-in panel */
  .burger { display: inline-flex; }
  .sidenav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    z-index: 45;
    background: var(--bg-elev);
    border-right: 1px solid var(--border);
    border-bottom: none;
    padding: 4rem 0.75rem 2rem 1.25rem;
    padding-top: calc(4rem + env(safe-area-inset-top));
    padding-left: max(1.25rem, env(safe-area-inset-left));
    transform: translateX(-105%);
    transition: transform 0.25s ease-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open .sidenav { transform: translateX(0); }
  .sidenav a { padding: 0.65rem 0.75rem; font-size: 0.95rem; }

  main {
    padding: 1rem 1rem 4rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(4rem, env(safe-area-inset-bottom));
  }

  .topbar h1 { font-size: 0.95rem; }
  .topbar .meta { font-size: 0.7rem; flex-direction: column; gap: 0.05rem; align-items: flex-end; }
  ul.split { columns: 1; }
}

/* ====== RESPONSIVE — PHONE ====== */
@media (max-width: 640px) {
  body { font-size: 14px; }

  /* Tighter section spacing */
  section.report-section { margin-bottom: 2.5rem; }
  section.report-section > h2 { font-size: 1.4rem; flex-wrap: wrap; gap: 0.4rem; }
  section.report-section > h2 .section-num { font-size: 0.75rem; }
  h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
  h4 { font-size: 0.98rem; }

  /* Today banner stacks */
  .today-banner {
    padding: 1rem 1.1rem;
    gap: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .today-banner > div:nth-child(2) {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem !important;
    width: 100%;
  }
  .today-banner > div:nth-child(3) {
    margin-left: 0 !important;
    text-align: left !important;
  }

  /* Tables — compress + drop low-value columns */
  th, td { padding: 0.4rem 0.5rem; font-size: 0.78rem; }
  thead th { font-size: 0.7rem; }

  /* Schedule table (cols: # Date KO Stage Match Result Status City) —
     keep Date, KO, Match, Result on phone; hide #, Stage, Status, City. */
  #schedule-table th:nth-child(1),  #schedule-table td:nth-child(1),
  #schedule-table th:nth-child(4),  #schedule-table td:nth-child(4),
  #schedule-table th:nth-child(7),  #schedule-table td:nth-child(7),
  #schedule-table th:nth-child(8),  #schedule-table td:nth-child(8) {
    display: none;
  }
  /* Match column gets the love */
  #schedule-table td:nth-child(5) { white-space: normal; }
  /* Compress date for mobile */
  #schedule-table td:nth-child(2) { font-size: 0.74rem; white-space: nowrap; }

  /* Standings: single column on phone */
  .standings-grid { grid-template-columns: 1fr !important; }
  .follow-bar { flex-wrap: wrap; }
  .follow-next { width: 100%; }

  /* Squad-value + must-watch tables: hide a few low-priority columns */
  #values-root table th:nth-child(5),  #values-root table td:nth-child(5),
  #values-root table th:nth-child(6),  #values-root table td:nth-child(6),
  #values-root table th:nth-child(7),  #values-root table td:nth-child(7),
  #values-root table th:nth-child(8),  #values-root table td:nth-child(8),
  #values-root table th:nth-child(9),  #values-root table td:nth-child(9) {
    display: none;
  }
  #mustwatch-root table th:nth-child(6), #mustwatch-root table td:nth-child(6),
  #mustwatch-root table th:nth-child(7), #mustwatch-root table td:nth-child(7) {
    display: none;
  }

  /* Odds tournament-winner table: keep team + 2 books + edge */
  #odds-root table:first-of-type th:nth-child(4), #odds-root table:first-of-type td:nth-child(4),
  #odds-root table:first-of-type th:nth-child(5), #odds-root table:first-of-type td:nth-child(5),
  #odds-root table:first-of-type th:nth-child(6), #odds-root table:first-of-type td:nth-child(6) {
    display: none;
  }

  /* Toolbar — chips wrap on their own line; selects full-width */
  .toolbar input[type="search"] { width: 100%; }
  .toolbar select { flex: 1 1 auto; min-width: 0; }
  .toolbar .count { width: 100%; margin-left: 0; margin-top: 0.25rem; }

  /* KPI grid — denser */
  .kpi-grid { gap: 0.5rem; grid-template-columns: repeat(2, 1fr); }
  .kpi { padding: 0.65rem 0.8rem; }
  .kpi .value { font-size: 1.25rem; }

  /* Card grid stacks */
  .card-grid { grid-template-columns: 1fr; }

  /* Details/summary tighter */
  details.box > summary { padding: 0.7rem 0.9rem; font-size: 0.92rem; flex-wrap: wrap; }
  details.box > summary > span:last-child { font-size: 0.7rem !important; }
  details.box .content { padding: 0 0.9rem 0.9rem; }
  /* Team profiles: stack the two-column grid */
  #teams-root details.box .content { grid-template-columns: 1fr !important; }
  #cities-root details.box .content { grid-template-columns: 1fr !important; }

  /* Heatmap: smaller cells, hour labels every 3 hours only */
  .heatmap .cell { padding: 0.25rem 0.15rem; font-size: 0.6rem; }
  .heatmap .h-header:nth-child(odd) { color: transparent; }

  /* Bracket SVG keeps its min-width and scrolls — that's fine */
  .bracket-wrap { padding: 0.5rem; }

  /* Topbar tighter */
  .topbar { padding: 0.6rem 0.9rem; gap: 0.6rem; }
  .topbar h1 { font-size: 0.85rem; }
  .topbar .live-dot { width: 7px; height: 7px; }
  .topbar .meta { display: none; }    /* Save horizontal space; date is in the banner anyway */

  /* Footer */
  footer.report-footer { font-size: 0.78rem; padding: 1.5rem 0; }
}

/* Touch-friendly tap targets everywhere */
@media (hover: none) and (pointer: coarse) {
  .sidenav a, .toolbar .chip, .toolbar select, details.box > summary {
    min-height: 44px;
  }
  .sidenav a { display: flex; align-items: center; }
}

/* ====== PRINT ====== */
@media print {
  body { background: white; color: black; font-size: 11px; }
  .topbar, .sidenav, .toolbar { display: none; }
  .layout { display: block; }
  main { padding: 0; max-width: none; }
  .pill { border: 1px solid #999; }
  details.box { break-inside: avoid; }
  details.box[open] > summary { background: #f0f0f0; }
  details.box { background: white; border-color: #ccc; }
  .table-wrap, .kpi, .card, .bracket-wrap { background: white; border-color: #ccc; }
  thead th { background: #eee; color: black; border-bottom-color: #999; }
}

/* ====== MATCH-CENTER COMPONENTS ====== */

/* Hero upgrades */
.hero-match { font-size: 0.95rem; margin-top: 0.35rem; display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.hero-score { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: var(--accent-warm); font-size: 1.05rem; }
.hero-city { color: var(--fg-muted); font-size: 0.8rem; }
.hero-next { border-left: 1px solid var(--border); padding-left: 1.5rem; }
.hero-next .label { color: var(--accent-warm); }
.hero-day { margin-left: auto; text-align: right; }
.hero-day .day-n { font-size: 1.6rem; font-weight: 700; }
.hero-day .day-n span { color: var(--fg-muted); font-size: 1rem; }
.hero-stamp { flex-basis: 100%; border-top: 1px solid var(--border); padding-top: 0.55rem; margin-top: 0.25rem; font-size: 0.78rem; color: var(--fg-muted); letter-spacing: 0.02em; }
.hero-stamp strong { color: var(--accent); }

/* Follow bar */
.follow-bar { display: flex; align-items: center; gap: 0.75rem; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 1rem; margin: 0 0 2rem; }
.follow-bar label { font-size: 0.85rem; color: var(--fg-dim); font-weight: 600; white-space: nowrap; }
.follow-bar select { background: var(--bg-elev-2); color: var(--fg); border: 1px solid var(--border); border-radius: 6px; padding: 0.35rem 0.6rem; font: inherit; font-size: 0.85rem; }
.follow-bar select:focus { outline: none; border-color: var(--accent); }
.follow-next { font-size: 0.85rem; color: var(--fg-dim); }

/* Standings */
.standings-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.8rem; color: var(--fg-dim); margin: 0.25rem 0 1rem; }
.standings-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.standings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.standings-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem 0.75rem 0.75rem; }
.standings-card h4 { margin: 0.25rem 0 0.5rem 0.25rem; font-size: 0.95rem; color: var(--accent); }
.standings-table { font-size: 0.82rem; }
.standings-table th { font-size: 0.66rem; padding: 0.3rem 0.4rem; background: transparent; border-bottom: 1px solid var(--border); position: static; text-transform: none; letter-spacing: 0; color: var(--fg-muted); cursor: default; }
.standings-table td { padding: 0.32rem 0.4rem; border-bottom: 1px solid rgba(36, 48, 86, 0.5); }
.standings-table td.pos { color: var(--fg-muted); white-space: nowrap; }
.standings-table td.tname { white-space: nowrap; }
.standings-table td.pts { color: var(--fg); }
.standings-table tr.q-adv { background: rgba(6, 214, 160, 0.06); }
.standings-table tr.q-third { background: rgba(33, 212, 253, 0.05); }
.q-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.4rem; background: var(--fg-muted); vertical-align: middle; }
.q-dot.q-1 { background: var(--accent-good); }
.q-dot.q-3 { background: var(--accent); }

/* Schedule result + status */
.st-pill { display: inline-block; padding: 0.08rem 0.45rem; border-radius: 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }
.st-ft { background: rgba(6, 214, 160, 0.15); color: var(--accent-good); }
.st-live { background: rgba(239, 71, 111, 0.18); color: var(--accent-hot); }
.st-up { background: var(--bg-elev-2); color: var(--fg-dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.res { font-weight: 700; color: var(--accent-warm); font-size: 0.95rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.res-dash { color: var(--fg-muted); margin: 0 0.1rem; }
.res-empty { color: var(--fg-muted); }
.m-cell { white-space: nowrap; }
.m-cell .wn { color: var(--fg); font-weight: 700; }

/* Golden Boot */
.goal-count { display: inline-block; min-width: 1.6rem; text-align: center; background: rgba(255, 209, 102, 0.15); color: var(--accent-warm); font-weight: 700; border-radius: 4px; padding: 0.05rem 0.4rem; }
.scorer-note { font-size: 0.8rem; color: var(--fg-dim); }

/* Title-odds compare */
.odds-cmp-wrap { display: grid; gap: 0.4rem; margin: 0.75rem 0; max-width: 640px; }
.odds-cmp { display: grid; grid-template-columns: 120px 1fr 150px; gap: 0.75rem; align-items: center; padding: 0.15rem 0.35rem; border-radius: 4px; }
.odds-cmp-team { font-size: 0.9rem; }
.odds-cmp-bar { background: var(--bg-elev-2); border-radius: 4px; height: 16px; overflow: hidden; }
.odds-cmp-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-good)); border-radius: 4px; }
.odds-cmp-nums { text-align: right; font-size: 0.85rem; display: flex; gap: 0.4rem; justify-content: flex-end; align-items: center; }
.odds-cmp-nums .pre { color: var(--fg-muted); }
.odds-cmp-nums .now { color: var(--fg); font-weight: 700; }
.mv { font-size: 0.8rem; }
.mv-shorten { color: var(--accent-good); }
.mv-drift { color: var(--accent-hot); }
.mv-flat { color: var(--fg-muted); }

/* Follow highlight */
.team-hl { background: rgba(255, 209, 102, 0.12) !important; }
tr.team-hl > td:first-child { box-shadow: inset 3px 0 0 var(--accent-warm); }
.odds-cmp.team-hl { box-shadow: inset 3px 0 0 var(--accent-warm); }

/* Footer update box */
.update-box { max-width: 560px; margin: 0 auto 1.5rem; text-align: left; background: var(--bg-elev); border: 1px solid rgba(255, 209, 102, 0.35); border-radius: 12px; padding: 1.1rem 1.25rem; }
.update-head { font-size: 0.9rem; color: var(--fg); margin-bottom: 0.75rem; }
.update-head strong { color: var(--accent-warm); }
.update-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-warm); font-weight: 700; margin-bottom: 0.4rem; }
.update-list { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; color: var(--fg-dim); }
.update-list li { padding: 0.25rem 0; border-bottom: 1px solid rgba(36, 48, 86, 0.5); }
.update-list li:last-child { border-bottom: none; }
.up-when { display: inline-block; min-width: 56px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; margin-right: 0.5rem; }
