/* Offside — night match, dark glass */
:root {
  --bg: #071a12;
  --bg-2: #0b2a1c;
  --ink: #eef6f1;
  --ink-2: #b9cfc3;
  --ink-3: #7f9a8c;
  --line: rgba(238, 246, 241, 0.1);
  --lime: #c6ff3d;
  --off: #ff4d6d;
  --on: #3ddc84;
  --close: #ffc247;
  --blue: #6ab7ff;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--body); color: var(--ink); background: var(--bg); min-height: 100svh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #0b2a1c; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- background */
.pitch-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict;
  background: radial-gradient(120% 80% at 50% -10%, #11402a 0%, var(--bg-2) 40%, var(--bg) 100%); }
.pitch-bg .glow { position: absolute; inset: -20%; background: radial-gradient(40% 30% at 20% 20%, rgba(198,255,61,.08), transparent 60%),
  radial-gradient(35% 30% at 85% 75%, rgba(106,183,255,.07), transparent 60%); }
.pitch-bg .grid { position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(238,246,241,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(238,246,241,.05) 1px, transparent 1px);
  background-size: 96px 96px; mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); }

/* ---------------------------------------------------------------- glass */
.glass { position: relative; isolation: isolate; border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 24px 60px -30px rgba(0,0,0,.7); }
.glass.pad { padding: 22px; }
@media (max-width: 600px) { .glass.pad { padding: 16px; } :root { --r-xl: 20px; } }

/* ---------------------------------------------------------------- nav */
.nav-wrap { position: sticky; top: 0; z-index: 20; padding: 12px 16px 0; }
.nav { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 18px; border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); background: rgba(7,26,18,.55); }
.brand { font: 700 19px/1 var(--display); display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.flag { width: 14px; height: 18px; background: linear-gradient(90deg, var(--ink) 0 3px, transparent 3px), var(--lime); clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%); display: inline-block; border-radius: 1px; }
.flag.sm { width: 10px; height: 13px; }
.nav-links { display: flex; gap: 4px; margin-left: 6px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.nav-links a:hover { background: rgba(255,255,255,.07); color: var(--ink); }
.nav .btn { margin-left: auto; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  padding: 12px 20px; font-weight: 600; cursor: pointer; background: rgba(255,255,255,.08); color: var(--ink); transition: transform .12s, background .15s; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.14); }
.btn:active { transform: translateY(1px); }
.btn.lime { background: var(--lime); color: #0b2a1c; border-color: transparent; }
.btn.lime:hover { background: #d7ff6e; }
.btn.sm { padding: 9px 16px; font-size: 14.5px; }
.btn.lg { padding: 15px 26px; font-size: 17px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; }
.chip.active { background: rgba(198,255,61,.14); border-color: rgba(198,255,61,.5); color: #e6ffb0; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------------------------------------------------------------- layout */
main { max-width: 1120px; margin: 0 auto; padding: 28px 16px 80px; }
section { margin: 40px 0; scroll-margin-top: 90px; }
h1 { font: 800 clamp(34px, 6vw, 64px)/1.02 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
h2 { font: 700 clamp(24px, 3.4vw, 34px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 10px; }
h3 { font: 600 18px/1.25 var(--display); margin: 0 0 6px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin: 0 0 22px; }
.hero { padding-top: 34px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.hero .kicker { color: var(--lime); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; margin-bottom: 14px; display: inline-flex; gap: 8px; align-items: center; }
.hero .kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198,255,61,.18); display: inline-block; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { border-radius: var(--r-lg); padding: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.card .n { font: 600 13px var(--mono); color: var(--lime); margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
table.stats { width: 100%; border-collapse: collapse; font-size: 15px; }
table.stats th, table.stats td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.stats th { color: var(--ink-3); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
table.stats td.num { font-family: var(--mono); white-space: nowrap; }

/* ---------------------------------------------------------------- verdict */
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center; padding: 18px 22px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.verdict .word { font: 800 clamp(30px, 5vw, 46px)/1 var(--display); letter-spacing: -.03em; padding: 6px 14px; border-radius: 12px; }
.verdict.off .word { background: var(--off); color: #fff; }
.verdict.on .word { background: var(--on); color: #05291a; }
.verdict.close .word { background: var(--close); color: #2b1d00; }
.verdict.none .word { background: rgba(255,255,255,.12); color: var(--ink); }
.verdict .detail { display: flex; flex-direction: column; gap: 3px; }
.verdict .detail b { font: 600 22px/1.1 var(--display); }
.verdict .detail span { color: var(--ink-2); font-size: 14.5px; }
.verdict .sigma { font-family: var(--mono); color: var(--ink-2); }
@media (max-width: 560px) { .verdict { grid-template-columns: 1fr; } }

.result-media { display: grid; grid-template-columns: 1fr 300px; gap: 14px; margin-top: 14px; }
.result-media .frame { border-radius: var(--r-lg); overflow: hidden; background: #000; position: relative; }
.result-media .frame img { width: 100%; }
.result-media .side { display: flex; flex-direction: column; gap: 12px; }
.result-media .side img { border-radius: var(--r-md); border: 1px solid var(--line); background: #0b2a1c; width: 100%; }
.result-media .side .mm { padding: 8px; background: rgba(255,255,255,.04); border-radius: var(--r-md); }
.result-media .side .mm img { border: 0; }
@media (max-width: 860px) { .result-media { grid-template-columns: 1fr; } .result-media .side { flex-direction: row; } .result-media .side > * { flex: 1; } }
.tabs { display: flex; gap: 6px; position: absolute; top: 10px; left: 10px; z-index: 2; }
.tabs .chip { background: rgba(7,26,18,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.kv div { padding: 10px 12px; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.kv div span { display: block; color: var(--ink-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.kv div b { font: 600 17px var(--display); }
.kv .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(255,255,255,.3); }
details.people { margin-top: 14px; }
details.people summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
details.people table { margin-top: 10px; font-size: 14px; }
.notes { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }

/* ---------------------------------------------------------------- player + timeline */
.player { border-radius: var(--r-lg); overflow: hidden; background: #000; position: relative; }
.player video { width: 100%; aspect-ratio: 16/9; }
.timeline { margin-top: 12px; }
.tl-track { position: relative; height: 44px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); cursor: pointer; overflow: hidden; }
.tl-track .played { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(198,255,61,.12); pointer-events: none; }
.tl-track .cand { position: absolute; top: 6px; bottom: 6px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--blue); opacity: .55; transition: opacity .15s, transform .15s; }
.tl-track .cand.top { background: var(--lime); opacity: .9; }
.tl-track .cand.done { background: var(--off); opacity: .95; }
.tl-track .cand.done.on { background: var(--on); }
.tl-track .cand:hover { opacity: 1; transform: scaleX(2); }
.tl-track .head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.tl-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tl-row .time { font: 600 18px var(--mono); min-width: 120px; }
.tl-row .frame { color: var(--ink-3); font-family: var(--mono); font-size: 13px; }
.tl-row .spacer { flex: 1; }
.step { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.06); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; }
.step:hover { background: rgba(255,255,255,.12); }
.cands { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.opts { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.opts label { color: var(--ink-2); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.opts select { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); }
.results-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------------------------------------------------------------- progress / upload */
.progress { margin-top: 14px; }
.progress .bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), #8df0b0); transition: width .5s; border-radius: 999px; }
.progress .msg { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }
.drop { border: 1.5px dashed rgba(255,255,255,.22); border-radius: var(--r-lg); padding: 38px 20px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { background: rgba(198,255,61,.06); border-color: rgba(198,255,61,.6); }
.drop b { display: block; font: 600 20px var(--display); margin-bottom: 6px; }
.drop span { color: var(--ink-2); font-size: 14.5px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field input { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); width: 100%; }
.field label { color: var(--ink-2); font-size: 14px; }
.quota { color: var(--ink-3); font-size: 13.5px; margin-top: 12px; }
.err { background: rgba(255,77,109,.12); border: 1px solid rgba(255,77,109,.4); color: #ffd3dc; padding: 12px 14px; border-radius: var(--r-md); margin-top: 14px; font-size: 14.5px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #10331f; border: 1px solid rgba(255,255,255,.14); color: var(--ink); padding: 12px 18px; border-radius: 999px; z-index: 50; box-shadow: 0 16px 40px -20px #000; font-size: 14.5px; }
.foot { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.share { font-family: var(--mono); font-size: 13px; color: var(--ink-2); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; user-select: all; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); background-size: 200% 100%; animation: sh 1.4s infinite; border-radius: var(--r-lg); aspect-ratio: 16/9; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
