/* ===================================================
   World Cup 2026 — Shared Stylesheet
   =================================================== */

:root {
  --ink: #16110D;
  --ink-soft: #6E6258;
  --ink-faint: #9C9085;
  --bg: #FAF2E8;
  --surface: #FFFFFF;
  --surface-2: #FFF9F1;
  --line: rgba(22,17,13,0.09);
  --line-strong: rgba(22,17,13,0.16);

  --pink: #FF1D68;
  --orange: #FF7A1A;
  --yellow: #FFC23D;
  --teal: #00BFA6;
  --blue: #2B6BFF;
  --green: #12A150;
  --live: #FF2740;

  --grad: linear-gradient(100deg, #FF1D68 0%, #FF5A1E 55%, #FF9E1B 100%);
  --grad-cool: linear-gradient(120deg, #2B6BFF, #00BFA6);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;

  --shadow-sm: 0 1px 2px rgba(22,17,13,.06), 0 2px 6px rgba(22,17,13,.05);
  --shadow-md: 0 6px 20px rgba(22,17,13,.08), 0 2px 6px rgba(22,17,13,.05);
  --shadow-lg: 0 24px 60px rgba(255,40,80,.22), 0 8px 24px rgba(22,17,13,.14);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; }
.root { min-height: 100vh; }

/* Ambient gradients */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -8%, rgba(255,122,26,.10), transparent 60%),
    radial-gradient(800px 500px at -5% 8%, rgba(43,107,255,.07), transparent 55%);
}

/* ===================================================
   Ticker
   =================================================== */
.ticker {
  position: relative; z-index: 5;
  background: var(--ink); color: #fff;
  overflow: hidden; height: 40px; display: flex; align-items: center;
}
.ticker::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0;
  width: 40px; background: linear-gradient(to right, transparent, var(--ink));
  pointer-events: none; z-index: 1;
}
.ticker-label {
  flex: 0 0 auto; height: 100%; display: flex; align-items: center; gap: 7px;
  padding: 0 16px; background: var(--live);
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 800; letter-spacing: .06em; font-size: 15px; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  position: relative; z-index: 2;
}
.ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.ticker-track { display: flex; align-items: center; gap: 30px; white-space: nowrap; animation: marquee 42s linear infinite; padding-left: 24px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.ticker-item .t-flag { font-size: 15px; }
.ticker-item .t-flag.flag-img-fb { height: 15px; width: auto; border-radius: 2px; font-size: 0; vertical-align: middle; }
.ticker-item .t-score { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: 16px; color: #fff; letter-spacing: .02em; }
.ticker-item .t-min { color: var(--yellow); font-weight: 700; font-size: 11px; }
.ticker-item.up .t-score { color: rgba(255,255,255,.55); }
.ticker-item .t-sep { color: rgba(255,255,255,.25); font-size: 12px; }

/* ===================================================
   Header
   =================================================== */
header.site {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 44px);
  background: rgba(250,242,232,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px; background: var(--grad);
  display: grid; place-items: center; color: #fff;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 800; font-size: 21px; box-shadow: 0 6px 16px rgba(255,40,80,.32);
  transform: rotate(-4deg); flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: .96; }
.brand-text b { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: .02em; }
.brand-text span { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; color: var(--ink-faint); text-transform: uppercase; }
nav.site { display: flex; gap: 4px; }
nav.site a {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 9px 15px; border-radius: 10px; transition: .15s;
}
nav.site a:hover { background: rgba(22,17,13,.05); color: var(--ink); }
nav.site a.active { color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.host-flags { display: flex; align-items: center; gap: 6px; font-size: 19px; }
.host-flags .flag-img-static { height: 19px; width: auto; border-radius: 2px; vertical-align: middle; }
.host-flags .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: var(--ink-faint); text-transform: uppercase; }

/* ===================================================
   Page layout
   =================================================== */
main.page {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding: clamp(20px,3.5vw,38px) clamp(16px,4vw,44px) 80px;
}

.page-header { margin-bottom: 32px; }
.page-header h1 {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 800; font-size: clamp(32px,5vw,52px); letter-spacing: .02em;
  margin: 0 0 6px; text-transform: uppercase;
}
.page-header p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.rank-status { font-size: 12px; font-weight: 600; }
.rank-status.loading { color: var(--ink-faint); }
.rank-status.live    { color: var(--green); }
.rank-status.cached  { color: var(--ink-soft); }

.section-title { display: flex; align-items: center; gap: 11px; margin: 30px 0 15px; }
.section-title h2 {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 800; font-size: 24px; letter-spacing: .02em; margin: 0; text-transform: uppercase;
}
.section-title .bar { width: 5px; height: 22px; border-radius: 3px; background: var(--grad); }
.section-title.live .bar { background: var(--live); }
.section-title .count { font-size: 13px; font-weight: 600; color: var(--ink-faint); white-space: nowrap; }

/* ===================================================
   Shared chips & pills
   =================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.chip-live { background: var(--live); color: #fff; }
.chip-line { background: rgba(22,17,13,.06); color: var(--ink-soft); border: 1px solid var(--line); }
.chip-dark { background: rgba(255,255,255,.1); color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.16); }
.chip-live .dot,
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.3s infinite; }

/* ===================================================
   Footer
   =================================================== */
footer.site {
  position: relative; z-index: 1; text-align: center;
  padding: 30px; color: var(--ink-faint); font-size: 12.5px;
  border-top: 1px solid var(--line);
}
footer.site code { font-size: 11px; background: rgba(22,17,13,.06); padding: 2px 6px; border-radius: 5px; }

/* ===================================================
   Grid
   =================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* ===================================================
   Filter bar
   =================================================== */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dates-wrap { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.dates-wrap::before,
.dates-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 52px;
  pointer-events: none; z-index: 2; opacity: 0; transition: opacity .2s;
}
.dates-wrap::before { left: 0; background: linear-gradient(to right, var(--bg) 15%, transparent); }
.dates-wrap::after  { right: 0; background: linear-gradient(to left,  var(--bg) 15%, transparent); }
.dates-wrap.left-fade::before  { opacity: 1; }
.dates-wrap.right-fade::after  { opacity: 1; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dates::-webkit-scrollbar { display: none; }
.date-tab {
  flex: 0 0 auto; min-width: 58px; padding: 9px 14px; border-radius: 13px; background: var(--surface);
  border: 1px solid var(--line); text-align: center; transition: .15s; color: var(--ink-soft);
}
.date-tab:hover { border-color: var(--line-strong); }
.date-tab .dmo { display: block; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1px; }
.date-tab .dow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.date-tab .dnum { display: block; font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.05; color: var(--ink); }
.date-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.date-tab.active .dnum { color: #fff; }
.date-tab.active .dow { color: var(--yellow); }
.date-tab.active .dmo { color: var(--yellow); }

.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 4px; gap: 2px; box-shadow: var(--shadow-sm); }
.seg { padding: 8px 15px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: .14s; display: flex; align-items: center; gap: 7px; }
.seg:hover { color: var(--ink); }
.seg.active { background: var(--ink); color: #fff; }
.seg .cnt { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: rgba(22,17,13,.08); color: var(--ink-soft); }
.seg.active .cnt { background: rgba(255,255,255,.2); color: #fff; }
.seg .livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

.search-wrap { position: relative; }
.search-wrap input {
  padding: 10px 16px 10px 40px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--surface); font-family: inherit; font-size: 14px; color: var(--ink);
  width: 240px; transition: .15s; box-shadow: var(--shadow-sm);
}
.search-wrap input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,107,255,.12); }
.search-wrap .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .4; pointer-events: none; }

/* ===================================================
   Hero (Matches page)
   =================================================== */
.hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  margin-bottom: 34px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 18% 120%, rgba(255,29,104,.55), transparent 60%),
    radial-gradient(700px 460px at 88% -20%, rgba(255,158,27,.45), transparent 60%),
    linear-gradient(180deg, #1c1410, #16110d);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 46px);
}
.hero-inner { position: relative; padding: clamp(22px,3.2vw,40px); }
.hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: clamp(18px,3vw,34px); }
.hero-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(10px,3vw,30px); }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hero-flag { font-size: clamp(52px, 8vw, 92px); line-height: 1; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.hero-flag.flag-img-fb { height: clamp(52px,8vw,92px); width: auto; max-width: 150px; border-radius: 5px; font-size: 0; }
.hero-team .tname { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: clamp(22px,3vw,38px); letter-spacing: .01em; }
.hero-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-score {
  font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800;
  font-size: clamp(46px,8vw,90px); line-height: .9; letter-spacing: .02em;
  display: flex; align-items: center; gap: clamp(8px,2vw,22px);
}
.hero-score .sep { font-size: .5em; opacity: .4; font-weight: 600; }
.hero-min { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--yellow); text-transform: uppercase; }
.hero-vs { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 700; font-size: clamp(30px,5vw,52px); opacity: .5; }
.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(20px,3vw,34px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-meta { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.hero-meta .v { font-weight: 700; font-size: 15px; line-height: 1.3; }
.hero-meta .s { font-size: 12.5px; color: rgba(255,255,255,.6); line-height: 1.3; }
.btn-watch {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 13px; background: #fff; color: var(--ink);
  font-weight: 700; font-size: 15px; transition: .16s; box-shadow: 0 8px 22px rgba(0,0,0,.3);
}
.btn-watch:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.36); }
.btn-watch .play { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex-shrink: 0; }
.btn-watch .play svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }

/* ===================================================
   Match card (Matches page)
   =================================================== */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 18px 14px; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s, border-color .18s;
  position: relative; overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
.card.live { padding-top: 18px; border-color: rgba(255,39,64,.32); box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255,39,64,.06), 0 8px 28px rgba(255,39,64,.12); }
.card.live::before { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: auto; width: 100%; height: 3px; background: linear-gradient(90deg, var(--live), var(--orange)); border-radius: var(--r-md) var(--r-md) 0 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-faint); letter-spacing: .03em; }
.grp { padding: 3px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); text-transform: uppercase; font-size: 11px; font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.status-pill.live { color: var(--live); }
.status-pill.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.3s infinite; }
.status-pill.up { color: var(--blue); }
.status-pill.ft { color: var(--ink-faint); }
.status-pill.ht { color: var(--orange); }

.rows { display: flex; flex-direction: column; gap: 9px; }
.trow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.trow .tflag { font-size: 27px; line-height: 1; width: 32px; text-align: center; }
.trow .tn { display: flex; flex-direction: column; line-height: 1.05; }
.trow .tn b { font-size: 15.5px; font-weight: 700; }
.trow .tn small { font-size: 11px; font-weight: 600; color: var(--ink-faint); }
.trow .tg { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: 26px; min-width: 22px; text-align: right; color: var(--ink); }
.trow.win .tg { color: var(--green); }
.trow.loss b, .trow.loss .tflag { opacity: .55; }
.trow.loss .tg { color: var(--ink-faint); }
.trow .tg.dash { color: var(--ink-faint); opacity: .5; }

.card-foot { margin-top: 0; padding-top: 11px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.foot-info { font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.foot-info .ch { font-weight: 700; color: var(--ink); white-space: nowrap; }
.foot-info svg { width: 13px; height: 13px; flex: 0 0 auto; opacity: .5; }
.btn-card {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px;
  border-radius: 10px; font-size: 13px; font-weight: 700; transition: .15s; white-space: nowrap;
}
.btn-card.go { background: var(--grad); color: #fff; box-shadow: 0 5px 14px rgba(255,40,80,.32); }
.btn-card.go:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(255,40,80,.4); }
.btn-card.soon { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.btn-card.soon:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-card.soon .cd { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 800; }
.btn-card.replay { background: var(--ink); color: #fff; }
.btn-card.replay:hover { transform: translateY(-1px); opacity: .88; }
.btn-card.highlights { background: rgba(255,29,104,.10); color: var(--pink); border: 1px solid rgba(255,29,104,.30); }
.btn-card.highlights:hover { background: rgba(255,29,104,.16); border-color: var(--pink); transform: translateY(-1px); }

/* ── Highlights modal ── */
.hl-overlay {
  position: fixed; inset: 0; z-index: 400; background: rgba(10,7,5,.82);
  backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px;
  animation: hl-fade .15s ease;
}
@keyframes hl-fade { from { opacity: 0; } to { opacity: 1; } }
.hl-modal {
  width: min(880px, 100%); background: var(--surface); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hl-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.hl-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.hl-close {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; font-size: 15px;
  background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line);
  transition: .15s;
}
.hl-close:hover { color: var(--ink); border-color: var(--line-strong); }
.hl-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.hl-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.hl-msg {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 13px; padding: 20px;
  text-align: center; color: #fff; font-size: 14px; font-weight: 600;
  background: rgba(0,0,0,.6); pointer-events: none;
}
.hl-msg .ico { font-size: 34px; }
.hl-msg .spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2); border-top-color: var(--pink);
  animation: spin .7s linear infinite;
}
.hl-msg a {
  color: #fff; pointer-events: auto; font-weight: 700; font-size: 13px;
  background: var(--pink); padding: 8px 16px; border-radius: 9px; text-decoration: none;
}
.hl-msg a:hover { filter: brightness(1.08); }

/* ===================================================
   Match card — matchup layout
   =================================================== */
.card-matchup {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px; padding: 16px 0 14px;
}
.card-team {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; text-align: center; min-width: 0;
}
.card-flag { font-size: 40px; line-height: 1; transition: transform .18s; }
.card-flag.flag-img-fb { height: 40px; width: auto; max-width: 64px; border-radius: 3px; font-size: 0; }
.card:hover .card-flag { transform: scale(1.06); }
.card-team-name {
  font-weight: 700; font-size: 13px; line-height: 1.2;
  color: var(--ink); word-break: break-word;
}
.card-team-code {
  font-size: 10px; font-weight: 700; color: var(--ink-faint);
  letter-spacing: .1em; text-transform: uppercase;
}
.card-team.loss .card-flag { opacity: .4; filter: grayscale(.4); }
.card-team.loss .card-team-name,
.card-team.loss .card-team-code { opacity: .38; }
.card-team.win .card-team-name { color: var(--green); font-weight: 800; }
.card-center {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0 6px;
}
.card-score {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 800; font-size: 42px; line-height: 1;
  display: flex; align-items: center; gap: 7px;
  letter-spacing: -.01em; color: var(--ink);
}
.card-score-sep { font-size: .42em; opacity: .25; font-weight: 600; }
.card-score-win { color: var(--green); }
.card-vs {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 700; font-size: 20px; opacity: .2;
  line-height: 1; letter-spacing: .1em;
}

/* ===================================================
   Player Modal (Matches page)
   =================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(10,7,5,.82); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: clamp(12px,3vw,40px);
  opacity: 0; animation: fade .22s forwards;
}
.player {
  width: min(960px, 100%); background: #0E0B09; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08);
  transform: scale(.96); animation: pop .26s cubic-bezier(.2,.9,.3,1) forwards;
  max-height: calc(100dvh - 2 * clamp(12px, 3vw, 40px));
  display: flex; flex-direction: column;
}
.player-stage { position: relative; aspect-ratio: 16/9; background: #07140C; overflow: hidden; flex-shrink: 0; }
.player-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.pitch {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(255,255,255,.06), transparent 50%),
    repeating-linear-gradient(90deg, #0c2a17 0 10%, #0e3019 10% 20%),
    linear-gradient(180deg, #103a20, #0a2413);
}
.pitch::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.22); }
.pitch::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.22); border-radius: 50%; transform: translate(-50%,-50%); }
.stage-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 28%, transparent 62%, rgba(0,0,0,.72)); pointer-events: none; }
.stage-top { position: absolute; top: 0; left: 0; right: 0; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; z-index: 3; }
.stage-live { display: inline-flex; align-items: center; gap: 8px; background: var(--live); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .05em; }
.stage-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.3s infinite; }
.stage-controls { display: flex; align-items: center; gap: 8px; }
.stage-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; font-size: 18px; transition: .15s; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.12); }
.stage-btn:hover { background: rgba(0,0,0,.75); }
.stage-btn svg { width: 16px; height: 16px; }
.stage-loader { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; background: rgba(0,0,0,.35); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--live); animation: spin .8s linear infinite; }
.stage-error { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; color: #fff; text-align: center; background: rgba(7,20,12,.92); }
.stage-error .ico { font-size: 36px; margin-bottom: 10px; }
.stage-error .msg { font-weight: 700; font-size: 16px; }
.stage-error .sub { font-size: 12px; opacity: .55; margin-top: 4px; }
.scorebar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px 18px; display: flex; align-items: center; justify-content: center;
  gap: clamp(14px,3vw,40px); z-index: 3;
}
.sb-min { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 11px; padding: 3px 10px; border-radius: 999px; letter-spacing: .08em; white-space: nowrap; }
.sb-team { display: flex; align-items: center; gap: 11px; color: #fff; }
.sb-team.right { flex-direction: row-reverse; }
.sb-team .f { font-size: 28px; }
.sb-team .c { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: clamp(18px,2.4vw,26px); letter-spacing: .03em; }
.sb-score { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: clamp(30px,4vw,46px); color: #fff; display: flex; gap: 14px; align-items: center; }
.sb-score .sep { opacity: .4; font-size: .6em; }
.notice { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; z-index: 2; }
.notice-inner { max-width: 420px; }
.notice-icon { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; margin: 0 auto 18px; }
.notice-icon svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 2; }
.notice h3 { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: clamp(26px,4vw,38px); color: #fff; margin: 0 0 8px; letter-spacing: .02em; }
.notice p { color: rgba(255,255,255,.6); font-size: 14px; margin: 0 0 22px; }
.countdown { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.cd-cell { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 4px; min-width: 74px; text-align: center; }
.cd-cell .n { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: 38px; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-cell .l { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--yellow); text-transform: uppercase; margin-top: 6px; }
.btn-remind { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; transition: .16s; }
.btn-remind:hover { transform: translateY(-2px); }
.btn-remind.set { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.player-foot { display: flex; flex-direction: column; gap: 0; background: #0E0B09; flex-shrink: 0; overflow-y: auto; }
.pf-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; flex-wrap: wrap; }
.pf-server-strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 18px 12px; border-top: 1px solid rgba(255,255,255,.06); }
.pf-srv-lbl { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.28); white-space: nowrap; margin-right: 2px; }
.pf-srv-btn { padding: 4px 10px; border-radius: 7px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.55); cursor: pointer; transition: .13s; }
.pf-srv-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.pf-srv-btn.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.pf-left { color: rgba(255,255,255,.85); min-width: 0; flex: 1 1 auto; }
.pf-left b { display: block; font-weight: 700; font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-left span { font-size: 12.5px; color: rgba(255,255,255,.55); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tabs { display: flex; gap: 6px; flex-shrink: 0; }
.pf-tab { padding: 8px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.7); background: rgba(255,255,255,.07); transition: .15s; }
.pf-tab:hover { background: rgba(255,255,255,.14); color: #fff; }
.pf-tab.active { background: #fff; color: var(--ink); }
.panel { padding: 0 18px 16px; background: #0E0B09; overflow-y: auto; flex-shrink: 0; }
.panel-empty { color: rgba(255,255,255,.4); font-size: 13px; padding: 0 18px 20px; background: #0E0B09; flex-shrink: 0; }
.stats-grid { display: grid; gap: 10px; }
.stat-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-size: 13px; }
.stat-row .lv { text-align: right; font-weight: 700; color: #fff; }
.stat-row .label { text-align: center; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .07em; }
.stat-row .rv { font-weight: 700; color: #fff; }
.stat-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; margin-top: 6px; }
.stat-bar-fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--grad); }
.commentary-feed { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.commentary-feed::-webkit-scrollbar { width: 4px; }
.commentary-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }
.comm-item { display: flex; gap: 10px; align-items: flex-start; }
.comm-min { font-size: 11px; font-weight: 800; color: var(--yellow); min-width: 28px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.comm-text { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.4; }
.comm-text.goal { color: #fff; font-weight: 700; }

/* ===================================================
   Groups page
   =================================================== */
.group-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: .18s; }
.group-block:hover { box-shadow: var(--shadow-md); }
.group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.group-head h3 {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 800; font-size: 22px; letter-spacing: .04em; margin: 0; text-transform: uppercase;
}
.group-head .stage { font-size: 11.5px; font-weight: 700; color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; }
.standings-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.standings-table th {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; color: var(--ink-faint);
  text-transform: uppercase; padding: 8px 10px 8px 18px; text-align: left; border-bottom: 1px solid var(--line);
}
.standings-table th:nth-child(1)        { width: 28px; }
.standings-table th:nth-child(3),
.standings-table th:nth-child(4),
.standings-table th:nth-child(5),
.standings-table th:nth-child(6)        { width: 36px; }
.standings-table th:nth-child(7),
.standings-table th:nth-child(8)        { width: 42px; }
.standings-table th:not(:nth-child(2)) { text-align: center; }
.standings-table td { padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table td:not(:nth-child(2)) { text-align: center; }
.standings-table tbody tr:hover { background: rgba(22,17,13,.02); }
.st-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-team .flag { font-size: 22px; line-height: 1; flex-shrink: 0; }
.st-team .flag.flag-img-fb { height: 22px; width: auto; border-radius: 2px; font-size: 0; vertical-align: middle; }
.st-team .name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-team .code { font-size: 11px; font-weight: 600; color: var(--ink-faint); margin-left: 3px; flex-shrink: 0; }
.st-pos { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: 18px; color: var(--ink-soft); min-width: 22px; }
.st-num { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.st-pts { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); }
.st-gd.pos { color: var(--green); }
.st-gd.neg { color: var(--live); }
.qual-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.qual-dot.q1 { background: var(--green); }
.qual-dot.q2 { background: var(--blue); }
.qual-dot.qout { background: transparent; }
.row-qualify td:first-child { border-left: 3px solid var(--green); }
.row-qualify-2 td:first-child { border-left: 3px solid var(--blue); }

/* ===================================================
   Teams page
   =================================================== */
/* ── Team Card ─── */
.team-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 16px 14px; box-shadow: var(--shadow-sm); transition: .18s; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  position: relative; overflow: hidden;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
.team-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  opacity: 1; transition: height .18s;
}
.team-card:hover::before { height: 5px; }
.team-card.fed-uefa::before    { background: #2B6BFF; }
.team-card.fed-conmebol::before { background: #E8A000; }
.team-card.fed-concacaf::before { background: #00BFA6; }
.team-card.fed-caf::before     { background: #12A150; }
.team-card.fed-afc::before     { background: #FF2740; }
.team-card.fed-ofc::before     { background: #888; }

.tc-header { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 4px; }
.tc-fed {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 99px;
}
.tc-fed.fed-conmebol { background: rgba(255,193,61,.12); color: #9a6800; border: 1px solid rgba(255,193,61,.3); }
.tc-fed.fed-uefa     { background: rgba(43,107,255,.1);  color: var(--blue); border: 1px solid rgba(43,107,255,.2); }
.tc-fed.fed-concacaf { background: rgba(0,191,166,.1);   color: #008c7a; border: 1px solid rgba(0,191,166,.2); }
.tc-fed.fed-caf      { background: rgba(18,161,80,.1);   color: var(--green); border: 1px solid rgba(18,161,80,.2); }
.tc-fed.fed-afc      { background: rgba(255,40,80,.1);   color: var(--live); border: 1px solid rgba(255,40,80,.2); }
.tc-fed.fed-ofc      { background: rgba(22,17,13,.06);   color: var(--ink-soft); border: 1px solid var(--line); }
.tc-rank {
  font-family: 'Barlow Condensed', system-ui; font-weight: 800; font-size: 22px;
  color: var(--ink-faint); letter-spacing: -.01em; line-height: 1;
}
.team-card .tc-flag { font-size: 60px; line-height: 1; }
.team-card .tc-flag.flag-img-fb { height: 60px; width: auto; max-width: 90px; border-radius: 4px; font-size: 0; }
.team-card .tc-name {
  font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800;
  font-size: 20px; letter-spacing: .01em; line-height: 1.1; margin-top: 4px;
}
.team-card .tc-code { font-size: 11px; font-weight: 700; color: var(--ink-faint); letter-spacing: .1em; }
.tc-foot { margin-top: 6px; }
.tc-grp {
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft);
}

/* Legacy badge class kept for any external use */
.tc-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); }

/* ── Team Modal ─── */
.team-modal {
  width: min(580px, 100%); background: var(--surface); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transform: scale(.96); animation: pop .26s cubic-bezier(.2,.9,.3,1) forwards;
}
.tm-banner {
  min-height: 140px; display: flex; align-items: center; gap: 22px;
  padding: 24px 28px; color: #fff; position: relative;
}
.tm-close { position: absolute; top: 14px; right: 16px; }
.tm-flag { font-size: 72px; line-height: 1; filter: drop-shadow(0 4px 16px rgba(0,0,0,.45)); flex-shrink: 0; }
.tm-flag.flag-img-fb { height: 72px; width: auto; max-width: 110px; border-radius: 5px; font-size: 0; }
.tm-info { flex: 1; min-width: 0; }
.tm-fed-label {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 99px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9); margin-bottom: 7px;
}
.tm-name {
  font-family: 'Barlow Condensed', system-ui; font-weight: 800; font-size: 36px;
  letter-spacing: .02em; line-height: 1;
}
.tm-meta { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tm-pill {
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 99px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22); color: #fff;
}
.tm-body { padding: 20px 24px 26px; }
.tm-section-title {
  font-family: 'Barlow Condensed', system-ui; font-weight: 800; font-size: 17px;
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; color: var(--ink-soft);
}
.tm-empty { color: var(--ink-faint); font-size: 14px; margin: 0; }
.tm-fixture {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tm-fixture:last-child { border-bottom: none; }
.tm-result {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: 12px; flex-shrink: 0; color: #fff;
}
.tm-result.res-w { background: var(--green); }
.tm-result.res-l { background: var(--live); }
.tm-result.res-d { background: var(--ink-soft); }
.tm-result.res-pending { background: var(--surface-2); border: 1px solid var(--line); color: transparent; }
.tm-result.res-live { background: var(--live); animation: pulse 1.4s ease-in-out infinite; }
.tm-opp-flag { font-size: 26px; flex-shrink: 0; line-height: 1; }
.tm-opp-flag.flag-img-fb { height: 26px; width: auto; border-radius: 2px; font-size: 0; }
.tm-opp-info { flex: 1; min-width: 0; }
.tm-opp-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-opp-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.tm-score { flex-shrink: 0; text-align: right; }
.score-final { font-family: 'Barlow Condensed', system-ui; font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.score-live { font-family: 'Barlow Condensed', system-ui; font-weight: 800; font-size: 24px; letter-spacing: -.01em; color: var(--live); }
.score-upcoming {
  font-size: 11px; font-weight: 700; color: var(--blue); padding: 3px 8px; border-radius: 99px;
  background: rgba(43,107,255,.1); border: 1px solid rgba(43,107,255,.2);
}

/* ===================================================
   Venues page
   =================================================== */
.venue-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .18s;
}
.venue-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
.venue-banner {
  height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative; overflow: hidden;
}
.venue-banner.usa { background: linear-gradient(135deg, #1a3a8f, #2b6bff 60%, #00bfa6); }
.venue-banner.can { background: linear-gradient(135deg, #8B0000, #d80621 60%, #FF4444); }
.venue-banner.mex { background: linear-gradient(135deg, #0B6B3A, #1a9a55 60%, #FFC23D); }
.venue-body { padding: 16px 18px 18px; }
.venue-body h3 { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .01em; margin: 0 0 4px; }
.venue-city { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; display: flex; align-items: center; gap: 5px; }
.venue-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.venue-stat { display: flex; flex-direction: column; gap: 2px; }
.venue-stat .vl { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: 20px; line-height: 1; }
.venue-stat .vk { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--ink-faint); text-transform: uppercase; }
.venue-tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.venue-tag.final { background: rgba(255,29,104,.1); color: var(--pink); border: 1px solid rgba(255,29,104,.2); }
.venue-tag.semi { background: rgba(255,122,26,.1); color: var(--orange); border: 1px solid rgba(255,122,26,.2); }
.venue-tag.qf { background: rgba(43,107,255,.1); color: var(--blue); border: 1px solid rgba(43,107,255,.2); }
.venue-tag.group { background: rgba(22,17,13,.06); color: var(--ink-soft); border: 1px solid var(--line); }

/* Host-nation filter pills */
.nation-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.nation-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 12px;
  font-size: 13.5px; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-soft); transition: .15s; box-shadow: var(--shadow-sm);
}
.nation-pill:hover { border-color: var(--line-strong); color: var(--ink); }
.nation-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-faint); }
.empty .big { font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 800; font-size: 26px; color: var(--ink-soft); margin-bottom: 6px; }

/* ===================================================
   Animations
   =================================================== */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.35; transform:scale(.7); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { to { transform: scale(1); } }

/* ===================================================
   Hamburger button
   =================================================== */
.hb-btn {
  display: none;
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: .15s;
}
.hb-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.hb-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===================================================
   Navigation drawer
   =================================================== */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(22,17,13,.52); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(300px, 82vw); background: var(--surface);
  box-shadow: -12px 0 48px rgba(22,17,13,.18);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.22,.9,.3,1);
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden;
}
.nav-drawer.open { transform: none; visibility: visible; }

.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.drawer-close {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 17px; color: var(--ink-soft); cursor: pointer; transition: .15s;
}
.drawer-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.drawer-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.drawer-item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; transition: .15s;
}
.drawer-item svg { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; opacity: .55; transition: .15s; }
.drawer-item:hover { background: var(--surface-2); color: var(--ink); }
.drawer-item:hover svg { opacity: 1; }
.drawer-item.active { background: var(--ink); color: #fff; font-weight: 700; }
.drawer-item.active svg { opacity: 1; stroke: #fff; }

.drawer-footer {
  padding: 16px 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-faint); text-align: center; flex-shrink: 0;
}
.drawer-flags { display: flex; justify-content: center; gap: 8px; font-size: 22px; margin-bottom: 6px; }
body.no-scroll { overflow: hidden; }

/* ===================================================
   Mobile bottom navigation
   =================================================== */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,242,232,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 4px max(8px, env(safe-area-inset-bottom));
  justify-content: space-around; align-items: flex-start;
}
.mn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 4px; border-radius: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; transition: color .15s;
}
.mn-item svg { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; fill: none; }
.mn-item.active { color: var(--pink); }
.mn-item:hover  { color: var(--ink); }

/* ===================================================
   Responsive — 768 px (tablet)
   =================================================== */
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ===================================================
   Responsive — 640 px (mobile)
   =================================================== */
@media (max-width: 640px) {
  /* Nav replaced by bottom bar on mobile */
  nav.site { display: none; }
  .host-flags .lbl { display: none; }
  .host-flags { display: none; }
  .hb-btn { display: none; }
  .mobile-nav { display: flex; }

  /* Push page content above the nav bar */
  main.page    { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  footer.site  { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  /* Single-column grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Filter bar — sticky below header, both rows contained + scrollable */
  .filter-bar {
    flex-direction: column; align-items: stretch; gap: 8px;
    position: sticky; top: 80px; z-index: 3;
    background: var(--bg);
    /* extend flush to page edges so the bg covers the gradient */
    margin-left: calc(-1 * clamp(16px,4vw,44px));
    margin-right: calc(-1 * clamp(16px,4vw,44px));
    padding: 10px clamp(16px,4vw,44px) 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
  }
  /* dates wrapper + scroll strip: full width on mobile */
  .dates-wrap { flex: none; width: 100%; }
  .dates {
    flex: none; width: 100%; min-width: 0;
    -webkit-overflow-scrolling: touch;
  }
  /* segmented: full-width scrollable strip */
  .segmented {
    display: flex; overflow-x: auto; scrollbar-width: none;
    min-width: 0; width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .segmented::-webkit-scrollbar { display: none; }
  .seg { flex-shrink: 0; }
  .date-tab { min-width: 48px; padding: 7px 10px; }

  /* Search */
  .search-wrap       { width: 100%; }
  .search-wrap input { width: 100%; }

  /* Hero */
  .hero-foot { flex-direction: column; gap: 14px; }
  .btn-watch { width: 100%; justify-content: center; }

  /* Upcoming notice */
  .player-stage.is-pre { aspect-ratio: auto; min-height: 320px; }
  .notice { padding: 16px; }
  .notice-inner { width: 100%; max-width: 100%; }
  .notice-icon { width: 52px; height: 52px; margin-bottom: 12px; }
  .notice-icon svg { width: 24px; height: 24px; }
  .notice p { font-size: 13px; margin-bottom: 16px; }
  .btn-remind { width: 100%; justify-content: center; padding: 12px 16px; }

  /* Countdown */
  .countdown { gap: 8px; margin-bottom: 16px; }
  .cd-cell   { min-width: 0; flex: 1; padding: 10px 4px; border-radius: 10px; }
  .cd-cell .n { font-size: 28px; }
  .cd-cell .l { font-size: 9.5px; }

  /* Player modal: show tabs as scrollable strip */
  .pf-tabs { display: flex; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
  .pf-tabs::-webkit-scrollbar { display: none; }
  .pf-tab  { flex-shrink: 0; }
  .pf-main { padding: 12px 14px; gap: 10px; }
  .pf-server-strip { padding: 6px 14px 10px; gap: 5px; }
  .pf-left b   { font-size: 14px; }
  .pf-left span { font-size: 11.5px; }

  /* Card footer: keep readable at 375px */
  .foot-info { max-width: calc(100% - 120px); }

  /* Standings table — compact columns so the team cell never overflows
     into the numbers (the wide paddings + fixed widths left it ~0px). */
  .standings-table th { padding: 8px 4px 8px 10px; }
  .standings-table td { padding: 10px 4px 10px 10px; }
  .standings-table th:nth-child(1) { width: 24px; }
  .standings-table th:nth-child(3),
  .standings-table th:nth-child(4),
  .standings-table th:nth-child(5),
  .standings-table th:nth-child(6) { width: 26px; }
  .standings-table th:nth-child(7),
  .standings-table th:nth-child(8) { width: 34px; }
  .standings-table td:nth-child(2) { overflow: hidden; }
  /* Show the short code as the team label; hide the full name */
  .st-team { gap: 7px; }
  .st-team .flag { font-size: 19px; }
  .st-team .flag.flag-img-fb { height: 19px; }
  .st-team .name { display: none; }
  .st-team .code { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-left: 0; }
  .st-pos { min-width: 0; font-size: 16px; }
  .st-num { font-size: 15px; }
  .st-pts { font-size: 16px; }
}

/* ===================================================
   Responsive — 360 px (small phones)
   =================================================== */
@media (max-width: 360px) {
  .brand-text b    { font-size: 16px; }
  .brand-text span { font-size: 9px; letter-spacing: .14em; }
  .brand { gap: 8px; }
  .host-flags { font-size: 17px; gap: 4px; }

  /* Upcoming notice — very small phones */
  .player-stage.is-pre { min-height: 300px; }
  .notice { padding: 12px; }
  .notice-icon { width: 44px; height: 44px; }
  .cd-cell .n { font-size: 22px; }
  .cd-cell .l { letter-spacing: .08em; }
}

/* ===================================================
   Shared player modal (channels page + match player)
   =================================================== */
/* Channel player overlay */
.ch-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,8,6,.88);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
  padding: 16px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ch-player-box {
  width: 100%; max-width: 880px;
  background: #0f0f0f;
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.ch-player-box:fullscreen,
.ch-player-box:-webkit-full-screen {
  max-width: 100vw; border-radius: 0;
}
.ch-player-box:fullscreen .ch-player-video-wrap,
.ch-player-box:-webkit-full-screen .ch-player-video-wrap {
  aspect-ratio: auto; flex: 1; min-height: 0;
}
.ch-player-top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.ch-player-logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.1); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ch-player-logo img { width: 100%; height: 100%; object-fit: cover; }
.ch-player-name {
  flex: 1; font-size: 15px; font-weight: 700; color: #fff;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.title-flag { font-size: 15px; line-height: 1; vertical-align: middle; }
.title-flag.flag-img-fb { height: 15px; width: auto; border-radius: 2px; font-size: 0; vertical-align: middle; }
.ch-player-btn {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  display: grid; place-items: center; color: rgba(255,255,255,.8);
  cursor: pointer; transition: .15s;
}
.ch-player-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.ch-player-btn svg { width: 16px; height: 16px; }
.ch-player-video-wrap {
  flex-shrink: 0;
  aspect-ratio: 16/9;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; background: #000;
  overflow: hidden;
}
.ch-player-video-wrap video {
  width: 100%; height: 100%; object-fit: contain;
}
.ch-player-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: rgba(0,0,0,.72);
}
.ch-player-loader .spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.2); border-top-color: var(--pink);
  animation: spin .7s linear infinite;
}
.ch-loader-msg { color: #fff; font-size: 15px; font-weight: 700; }
.ch-loader-sub {
  color: rgba(255,255,255,.6); font-size: 12px; font-weight: 500;
  text-align: center; padding: 0 24px; max-width: 320px; line-height: 1.4;
}
.ch-player-error {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.88);
}
.ch-player-error .ico { font-size: 40px; }
.ch-player-error .msg { font-size: 15px; font-weight: 600; }
.ch-player-error .sub { font-size: 12px; color: rgba(255,255,255,.4); }
.ch-player-controls {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
/* Controls overlaid on the video (player-controller style) */
.ch-controls-ov {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  border-top: none;
  padding: 34px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.32) 55%, transparent);
}
.ch-controls-ov .ch-player-btn {
  background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.22);
}
.ch-controls-ov .ch-player-btn:hover { background: rgba(0,0,0,.65); }
.ch-controls-ov .ch-q-btn { background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.22); }
.ch-controls-ov .ch-q-btn:hover, .ch-controls-ov .ch-q-btn.open { background: rgba(0,0,0,.65); }
/* Mute button — icon only when playing; icon + "Tap to unmute" label when muted */
.ch-mute-btn {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  height: 34px; width: 34px; padding: 0; justify-content: center;
  border-radius: 9px; cursor: pointer; transition: .15s;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: 13px; font-weight: 700;
}
.ch-mute-btn:hover { background: rgba(0,0,0,.65); }
.ch-mute-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.ch-mute-btn.muted {
  width: auto; padding: 0 13px;
  background: var(--pink); border-color: var(--pink);
}
.ch-mute-btn.muted:hover { background: var(--pink); filter: brightness(1.05); }
.ch-player-mute {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: 9px; cursor: pointer; transition: .15s;
}
.ch-player-mute:hover { background: rgba(255,255,255,.2); }
.ch-player-mute svg { width: 15px; height: 15px; }

/* Adaptive-quality selector */
.ch-quality { position: relative; }
.ch-q-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: 9px; cursor: pointer; transition: .15s;
}
.ch-q-btn:hover, .ch-q-btn.open { background: rgba(255,255,255,.2); }
.ch-q-btn svg { width: 15px; height: 15px; }
.ch-q-backdrop { position: fixed; inset: 0; z-index: 20; }
.ch-q-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 21;
  min-width: 132px; padding: 6px;
  background: #1b1b22; border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px; box-shadow: 0 12px 34px rgba(0,0,0,.5);
  animation: fadeIn .14s ease;
}
.ch-q-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 11px; border: none; background: transparent;
  color: rgba(255,255,255,.78); font-size: 13px; font-weight: 600;
  border-radius: 7px; cursor: pointer; transition: .12s; text-align: left;
}
.ch-q-opt:hover { background: rgba(255,255,255,.1); color: #fff; }
.ch-q-opt.active { background: var(--pink); color: #fff; }
.ch-q-sub { font-size: 11px; font-weight: 700; opacity: .7; }
.ch-live-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,29,104,.2); border: 1px solid rgba(255,29,104,.4);
  color: var(--pink); font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 6px; letter-spacing: .06em;
}
.ch-live-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--pink);
  animation: pulse 1.2s ease-in-out infinite;
}
.ch-hint { font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: .03em; }

/* Server strip inside the channel player */
.ch-server-strip {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 8px 14px 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.ch-srv-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3); align-self: center; white-space: nowrap; margin-right: 2px;
}
.ch-srv-btn {
  padding: 5px 11px; border-radius: 7px; font-size: 11.5px; font-weight: 700;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6); cursor: pointer; transition: .14s;
}
.ch-srv-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.ch-srv-btn.active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* Muted tap-to-unmute overlay */
.ch-unmute-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 99px; cursor: pointer;
  backdrop-filter: blur(8px); transition: background .15s;
  pointer-events: all; z-index: 10;
  animation: fadeIn .3s ease;
}
.ch-unmute-hint:hover { background: rgba(255,29,104,.7); border-color: var(--pink); }

/* Error: try other servers */
.ch-player-error .ch-server-strip { background: transparent; border: none; padding: 12px 0 0; justify-content: center; }
.ch-player-error .ch-srv-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.85); }

@media (max-width: 640px) {
  .ch-overlay { padding: 0; }
  .ch-player-box { border-radius: 0; }
  .ch-hint { display: none; }
  .ch-server-strip { padding: 8px 10px; }
  /* Mobile: icon-only mute button, hide the "Tap to unmute" label */
  .ch-mute-btn.muted { width: 34px; padding: 0; }
  .ch-mute-btn span { display: none; }
}

/* ===================================================
   Knockout Bracket (Groups & Standings page)
   =================================================== */
.bracket-section { margin-top: 44px; }
.bracket-head { margin-bottom: 18px; }
.bracket-head h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .2px;
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
}
.bracket-head p { margin: 2px 0 0; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.bracket-hint {
  display: none; /* revealed only where the bracket is wider than the viewport */
  margin-top: 8px;
  font: 700 11.5px/1 "Archivo", sans-serif;
  letter-spacing: .3px;
  color: var(--ink-faint);
}

/* The bracket renders at its full, comfortable size and scrolls inside its
   own container — never shrunk to fit. On narrow screens you pan across it. */
.bracket-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 8px 2px 18px;
  scrollbar-width: thin;
}
.bracket-scroll::-webkit-scrollbar { height: 9px; }
.bracket-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}
.bracket {
  display: flex;
  align-items: stretch;
  gap: 40px;
  width: max-content;
  margin: 0 auto;
  min-height: 720px;
}

/* ── Columns ── */
.bkt-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding-top: 34px;
  flex: none;
  width: 122px;
}
.bkt-col-label {
  position: absolute;
  top: 0; left: 0; right: 0;
  text-align: center;
  font: 800 12px/1 "Archivo", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.bkt-pair {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1 1 0;
}

/* ── Match box ── */
.bkt-match {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  z-index: 2;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.bkt-match:hover { box-shadow: var(--shadow-md, var(--shadow-sm)); border-color: var(--line-strong); }
.bkt-team {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  height: 40px;
  font: 700 15px/1 "Archivo", sans-serif;
  color: var(--ink);
}
.bkt-team + .bkt-team { border-top: 1px solid var(--line); }
.bkt-team.win { background: rgba(18,161,80,.10); }
.bkt-team.win .bkt-code { color: var(--green); }
.bkt-team.tbd { justify-content: center; color: var(--ink-faint); }
.bkt-flag {
  width: 26px; height: 18px;
  border-radius: 3px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 18px;
  line-height: 18px;
  text-align: center;
}
.bkt-code { letter-spacing: .4px; }
.bkt-score {
  margin-left: auto;
  font: 800 15px/1 "Archivo", sans-serif;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.bkt-team.win .bkt-score { color: var(--green); }
.bkt-pen { font-size: 9px; font-weight: 800; color: var(--ink-faint); margin-left: 1px; top: -.5em; }
.bkt-q { font-weight: 800; font-size: 16px; color: var(--ink-faint); }

/* ── Connectors (elbow lines drawn in the gaps) ──
   Left side points inward (right); right side mirrors (left). */
.bkt-side-l .bkt-match::after,
.bkt-side-l .bkt-pair::before,
.bkt-side-l .bkt-pair::after,
.bkt-side-r .bkt-match::after,
.bkt-side-r .bkt-pair::before,
.bkt-side-r .bkt-pair::after {
  content: "";
  position: absolute;
  background: var(--line-strong);
  z-index: 1;
}
/* horizontal stub from each match toward the bus (mid-gap = 20px) */
.bkt-side-l .bkt-match::after { left: 100%; top: 50%; width: 20px; height: 2px; }
.bkt-side-r .bkt-match::after { right: 100%; top: 50%; width: 20px; height: 2px; }
/* vertical bus joining the two matches of a pair */
.bkt-side-l .bkt-pair::after { left: 100%; margin-left: 20px; top: 25%; bottom: 25%; width: 2px; }
.bkt-side-r .bkt-pair::after { right: 100%; margin-right: 20px; top: 25%; bottom: 25%; width: 2px; }
/* horizontal from bus to the next inner column */
.bkt-side-l .bkt-pair::before { left: 100%; margin-left: 20px; top: 50%; width: 20px; height: 2px; }
.bkt-side-r .bkt-pair::before { right: 100%; margin-right: 20px; top: 50%; width: 20px; height: 2px; }
/* the lone semifinal box reaches across the gap toward the centre */
.bkt-side-l .bkt-match.bkt-sf::after { width: 40px; }
.bkt-side-r .bkt-match.bkt-sf::after { width: 40px; }

/* ── Centre: champion + bronze ── */
.bkt-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 34px;
  flex: none;
  width: 196px;
}
.bkt-champ {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 20px 22px 18px;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
}
.bkt-champ-label {
  font: 800 12px/1 "Archivo", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .92;
}
.bkt-trophy { font-size: 42px; line-height: 1.1; }
.bkt-champ-q { font: 800 38px/1 "Barlow Condensed", sans-serif; }
.bkt-champ-team {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 800 30px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .5px;
}
.bkt-champ-team .bkt-flag {
  width: 34px; height: 23px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5);
}
.bkt-final-meta {
  font: 700 11px/1.3 "Archivo", sans-serif;
  opacity: .9;
  text-align: center;
}
.bkt-bronze {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
}
.bkt-bronze-label {
  font: 800 9.5px/1 "Archivo", sans-serif;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.bkt-bronze-teams { display: flex; align-items: center; gap: 8px; }
.bkt-bronze-teams .bkt-team { padding: 0; height: auto; }
.bkt-bronze-v { font-size: 11px; color: var(--ink-faint); font-weight: 700; }

/* The full bracket is ~1570px wide; reveal the scroll hint wherever it
   can't fit on screen. */
@media (max-width: 1620px) {
  .bracket-hint { display: inline-block; }
}
@media (max-width: 760px) {
  .bracket-head h2 { font-size: 24px; }
  /* Slightly tighter on phones so more of the tree is visible per pan. */
  .bracket { gap: 34px; min-height: 660px; }
  .bkt-side-l .bkt-match::after, .bkt-side-r .bkt-match::after,
  .bkt-side-l .bkt-pair::before, .bkt-side-r .bkt-pair::before { width: 17px; }
  .bkt-side-l .bkt-pair::after { margin-left: 17px; }
  .bkt-side-r .bkt-pair::after { margin-right: 17px; }
  .bkt-side-l .bkt-pair::before { margin-left: 17px; }
  .bkt-side-r .bkt-pair::before { margin-right: 17px; }
  .bkt-side-l .bkt-match.bkt-sf::after, .bkt-side-r .bkt-match.bkt-sf::after { width: 34px; }
}
