/* Data+ Live viewer, after the owner's concept (events-canli-sehife-konsept.png). Ink ground, Archivo, amber = Live
   accent, gold = current fight, red/blue only for corners and the on-air dot, green only for the winner tick.
   No external resources (strict CSP). */
@font-face { font-family:"Archivo"; font-style:normal; font-weight:100 900; font-stretch:62% 125%; font-display:swap;
  src:url(/fonts/archivo-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Archivo"; font-style:normal; font-weight:100 900; font-stretch:62% 125%; font-display:swap;
  src:url(/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ink:#0B1B2B; --ink-0:#081626; --card:#0E2134; --pill:#172A3F; --pill-h:#20364E; --line:rgba(255,255,255,.07); --line-2:rgba(255,255,255,.13);
  --paper:#FFFFFF; --mist:#F3F6F9; --fog:#A9BACB; --fog-2:#7C90A5; --slate:#46586B;
  --red:#E2322F; --blue:#2E63F0; --plus:#19C37D; --gold:#E7B84A; --amber:#F5A524; --black:#000000;
  --font:"Archivo", "Helvetica Neue", Arial, sans-serif; --gut:40px;
  color-scheme:dark;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; min-height:100vh; display:flex; flex-direction:column; background:var(--ink-0); color:var(--mist);
       font:400 16px/1.45 var(--font); font-variant-numeric:tabular-nums; -webkit-font-smoothing:antialiased; }
[hidden] { display:none !important; }
button { font:inherit; color:inherit; cursor:pointer; }
:focus-visible { outline:2px solid var(--amber); outline-offset:2px; }
svg { display:block; }
.card { background:var(--card); border:1px solid var(--line); border-radius:20px; }

/* ---- Header ---------------------------------------------------------------------------------------------------- */
.top { border-bottom:1px solid var(--line); background:var(--ink-0); padding-top:env(safe-area-inset-top, 0px); }
.top-in { display:flex; align-items:center; gap:14px 28px; max-width:1840px; margin:0 auto; min-height:80px;
          padding:12px max(var(--gut), env(safe-area-inset-right, 0px)) 12px max(var(--gut), env(safe-area-inset-left, 0px)); }
.logo { display:flex; align-items:center; gap:12px; text-decoration:none; flex:none; }
.logo .mark { width:46px; height:46px; }
.logo .word { display:flex; flex-direction:column; gap:6px; }
.logo .word b { font-weight:850; font-stretch:118%; font-size:25px; line-height:.85; letter-spacing:-.01em; color:var(--paper); }
.logo .word i { font-style:normal; color:var(--amber); }
.logo .word > span { font-weight:600; font-size:11px; line-height:1; letter-spacing:.42em; color:var(--fog); }
.crumb { margin:0; min-width:0; flex:1; font-size:18px; color:var(--fog); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.crumb b { font-weight:700; color:var(--paper); }
.crumb b::before { content:" · "; font-weight:400; color:var(--fog); }
.demo { flex:none; font-weight:700; font-size:11px; letter-spacing:.2em; padding:5px 9px; border-radius:6px; border:1px dashed var(--fog-2); color:var(--fog); }

.rings { flex:none; min-width:0; max-width:60%; }
.rings-in { display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; padding:2px; }
.rings-in::-webkit-scrollbar { display:none; }
.tab { flex:none; display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 18px; border:0; border-radius:999px;
       background:var(--pill); color:var(--fog); font-weight:700; font-size:16px; }
.tab:hover { background:var(--pill-h); color:var(--paper); }
.tab[aria-selected="true"] { background:var(--paper); color:var(--ink); }
.tab .dot { width:7px; height:7px; border-radius:50%; background:var(--red); }

/* ---- Event list (/watch) --------------------------------------------------------------------------------------- */
.events { flex:1; }
.wrap { max-width:1180px; margin:0 auto; padding:56px var(--gut) 72px; }
.title { margin:0 0 26px; font-weight:850; font-stretch:118%; font-size:clamp(28px, 4.6vw, 46px); line-height:.95; text-transform:uppercase; letter-spacing:-.01em; }
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap:18px; }
.ev-card { display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:24px; min-height:200px; text-decoration:none; color:inherit;
           transition:border-color .15s, transform .15s; }
.ev-card:hover { border-color:rgba(245,165,36,.55); transform:translateY(-2px); }
.ev-name { font-weight:800; font-size:23px; line-height:1.15; color:var(--paper); }
.ev-sub { color:var(--fog); font-size:15px; }
.ev-go { margin-top:auto; display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--amber); }
.arrow { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.empty-card { display:flex; flex-direction:column; align-items:center; gap:6px; padding:56px 24px; text-align:center; }
.empty-card img { width:64px; height:64px; margin-bottom:12px; }

/* ---- Watch layout ---------------------------------------------------------------------------------------------- */
.layout { flex:1; display:grid; grid-template-columns:minmax(0, 1fr) 520px; gap:28px; align-items:start;
          width:100%; max-width:1840px; margin:0 auto; padding:28px var(--gut) 40px; }
.player { padding:24px; min-width:0; display:flex; flex-direction:column; gap:0; }
.stage { position:relative; aspect-ratio:16 / 9; border-radius:14px; overflow:hidden; background:var(--black); }
.stage video { position:absolute; inset:0; width:100%; height:100%; display:block; background:var(--black); }
.stage:fullscreen { border-radius:0; aspect-ratio:auto; }

/* Idle: the ring in perspective with a soft glow (no black box). */
.idle { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding:0 5% 4%;
        background:radial-gradient(70% 70% at 50% 58%, #1B3A5C 0%, #10253B 45%, #0A1828 100%); }
.ring-art { position:absolute; left:7%; right:7%; bottom:8%; width:86%; height:auto; overflow:visible; }
.rope { fill:none; stroke-linejoin:round; }
.r1 { stroke:#3A5F86; stroke-width:4; }
.r2 { stroke:#2E4E70; stroke-width:3.5; }
.r3 { stroke:#25415F; stroke-width:3; }
.post { fill:#AFBDCB; }
.post.red { fill:var(--red); }
.post.blue { fill:var(--blue); }
.idle-copy { position:absolute; left:0; right:0; top:50%; transform:translateY(-10%); text-align:center; padding:0 20px; }
.idle-title { margin:0; font-weight:800; font-size:clamp(17px, 2vw, 26px); line-height:1.2; color:var(--paper); }
.idle-text { margin:6px auto 0; max-width:46ch; font-size:clamp(13px, 1.2vw, 16px); color:var(--fog); }

.chips { position:absolute; left:20px; top:20px; right:200px; z-index:2; display:flex; flex-wrap:wrap; gap:10px; pointer-events:none; }
.state { display:inline-flex; align-items:center; gap:7px; height:32px; padding:0 12px; border-radius:7px; flex:none;
         font-weight:800; font-size:14px; letter-spacing:.04em; background:#33465A; color:var(--paper); }
.state i { width:7px; height:7px; border-radius:50%; background:var(--fog); }
.state[data-s="live"] { background:var(--red); }
.state[data-s="live"] i { background:var(--paper); animation:blink 1.6s ease-in-out infinite; }
.state[data-s="pause"] i { background:var(--amber); }
@keyframes blink { 50% { opacity:.35; } }
.chip { display:inline-flex; align-items:center; height:32px; padding:0 12px; border-radius:7px; background:rgba(0,0,0,.82); color:var(--paper);
        font-weight:700; font-size:15px; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.ctrl { position:absolute; right:20px; top:20px; z-index:2; display:flex; gap:8px; }
.pill { display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 16px; border:0; border-radius:9px;
        background:var(--paper); color:var(--ink); font-weight:700; font-size:16px; box-shadow:0 4px 18px rgba(0,0,0,.25); }
.pill svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.pill .f { fill:currentColor; stroke:none; }
.pill.dark { background:rgba(0,0,0,.7); color:var(--paper); }
.pill.dark:hover { background:rgba(0,0,0,.85); }
.pill.sq { width:40px; padding:0; justify-content:center; }
#live { background:var(--amber); color:var(--ink); }
#snd .i-off, #snd.muted .i-on { display:none; }
#snd.muted .i-off { display:block; }

.go { position:absolute; inset:0; margin:auto; width:max-content; height:max-content; z-index:3; display:flex; flex-direction:column; align-items:center; gap:10px;
      border:0; background:transparent; color:var(--paper); font-weight:700; font-size:16px; }
.go svg { width:84px; height:84px; padding:22px 18px 22px 26px; border-radius:50%; background:var(--paper); fill:var(--ink); box-shadow:0 10px 40px rgba(0,0,0,.45); }

/* Score strip: names only (the page has no live score or clock; nothing is invented). */
.strip { display:grid; grid-template-columns:minmax(0, 1fr) 200px minmax(0, 1fr); margin-top:14px; border-radius:10px; overflow:hidden; min-height:72px; }
.strip-side { display:flex; align-items:center; min-width:0; padding:0 22px; }
.strip-side.red { background:var(--red); }
.strip-side.blue { background:var(--blue); justify-content:flex-end; text-align:right; }
.strip-side b { font-weight:850; font-stretch:110%; font-size:24px; letter-spacing:.01em; text-transform:uppercase; color:var(--paper);
                white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.strip-mid { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; background:#050B12; }
.strip-mid b { font-weight:800; font-size:26px; line-height:1; color:var(--paper); }
.strip-mid span { font-weight:700; font-size:12px; letter-spacing:.22em; padding-left:.22em; color:var(--gold); }
.strip.is-next { opacity:.85; }
.strip.is-next .strip-mid span { color:var(--fog); }

/* Right column */
.side { display:flex; flex-direction:column; gap:14px; min-width:0; }
.list { padding:22px 22px 10px; }
.list h2 { margin:0 0 10px; font-weight:700; font-size:22px; color:var(--paper); }
.rows { list-style:none; margin:0; padding:0; }
.row { display:grid; grid-template-columns:62px minmax(0, 1fr) auto; align-items:center; gap:14px; padding:12px 0; border-top:1px solid var(--line); position:relative; }
.rows .row:first-child { border-top:0; }
.row-no { font-size:16px; color:var(--fog); }
.row-mid { display:flex; flex-direction:column; min-width:0; }
.row-names { font-size:17px; color:var(--mist); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-names .nm { display:inline-flex; align-items:center; gap:5px; }
.dash { color:var(--fog-2); }
.row-cat { font-size:13px; color:var(--fog-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-tag { font-size:13px; font-weight:700; color:var(--fog); }
.row.current { margin:0 -22px; padding-left:22px; padding-right:22px; background:linear-gradient(90deg, rgba(231,184,74,.16), rgba(231,184,74,.03)); }
.row.current::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--gold); }
.row.current .row-no, .row.current .row-tag, .row.current .row-cat { color:var(--gold); }
.row.current .row-names { font-weight:700; color:var(--paper); }
.row.current + .row { border-top-color:transparent; }
.row.finished .nm { color:var(--fog-2); }
.row.finished .nm.won { color:var(--paper); font-weight:700; }
.tick { width:15px; height:15px; fill:none; stroke:var(--plus); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.empty { margin:0; padding:6px 0 14px; color:var(--fog); }
.done { border-top:1px solid var(--line); margin-top:4px; }
.done summary { display:flex; align-items:center; justify-content:space-between; padding:14px 0 12px; list-style:none; cursor:pointer;
                font-weight:700; font-size:15px; color:var(--fog); }
.done summary::-webkit-details-marker { display:none; }
.done summary svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; transition:transform .15s; }
.done[open] summary svg { transform:rotate(180deg); }
.done summary:hover { color:var(--paper); }
.note { margin:0 4px; color:var(--fog-2); font-size:13px; }

/* ---- Footer ---------------------------------------------------------------------------------------------------- */
.foot { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 18px; padding:22px var(--gut) calc(22px + env(safe-area-inset-bottom, 0px));
        border-top:1px solid var(--line); color:var(--fog-2); font-size:13px; text-align:center; }
.foot a { color:var(--fog); text-decoration:none; font-weight:600; }
.foot a:hover { color:var(--paper); text-decoration:underline; text-underline-offset:3px; }

/* ---- Narrower screens ------------------------------------------------------------------------------------------ */
@media (max-width:1400px) { .layout { grid-template-columns:minmax(0, 1fr) 420px; } }
@media (max-width:1100px) {
  :root { --gut:24px; }
  .layout { grid-template-columns:minmax(0, 1fr) 340px; gap:20px; }
  .strip { grid-template-columns:minmax(0, 1fr) 140px minmax(0, 1fr); }
  .strip-side b { font-size:20px; }
}
@media (max-width:900px) {
  :root { --gut:16px; }
  .top-in { flex-wrap:wrap; min-height:0; gap:10px 14px; }
  .crumb { flex-basis:calc(100% - 200px); font-size:15px; }
  .rings { order:5; flex-basis:100%; max-width:none; margin:0 calc(-1 * var(--gut)); }
  .rings-in { padding:2px var(--gut); }
  .tab { height:36px; padding:0 15px; font-size:15px; }
  .logo .mark { width:40px; height:40px; }
  .logo .word b { font-size:21px; }
  .layout { grid-template-columns:1fr; padding:16px var(--gut) 28px; gap:16px; }
  .player { padding:10px; border-radius:16px; }
  .stage { border-radius:10px; }
}
@media (max-width:560px) {
  .crumb { flex-basis:100%; order:4; }
  .chips { left:10px; top:10px; right:110px; gap:6px; }
  .state, .chip { height:26px; font-size:12px; padding:0 9px; border-radius:6px; }
  .ctrl { right:10px; top:10px; gap:6px; }
  .pill { height:32px; padding:0 11px; font-size:14px; }
  .pill.sq { width:32px; }
  .pill svg { width:18px; height:18px; }
  #sndText { display:none; }
  #snd { width:32px; padding:0; justify-content:center; }
  .strip { min-height:54px; margin-top:10px; }
  .strip { grid-template-columns:minmax(0, 1fr) 64px minmax(0, 1fr); }
  .strip-side { padding:6px 10px; }
  .strip-side b { font-size:13.5px; line-height:1.15; white-space:normal; overflow-wrap:anywhere; }
  .idle-copy { top:38%; }
  .idle-title { font-size:15px; }
  .idle-text { font-size:12px; max-width:28ch; }
  .ring-art { opacity:.7; }
  .strip-mid b { font-size:17px; }
  .strip-mid span { font-size:9px; letter-spacing:.16em; }
  .list { padding:18px 16px 6px; }
  .list h2 { font-size:18px; }
  .row { grid-template-columns:48px minmax(0, 1fr) auto; gap:10px; }
  .row.current { margin:0 -16px; padding-left:16px; padding-right:16px; }
  .row-names { font-size:15px; }
  .row-no, .row-tag { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) { .state i { animation:none !important; } .ev-card, .done summary svg { transition:none; } }
