:root {
  --bg: #0B0F1A;
  --surface: #121829;
  --surface-2: #182036;
  --surface-3: #1F2840;
  --head: #151C2F;
  --line: #242D45;
  --line-2: #2E3854;
  --text: #EEF1F7;
  --text-2: #C9D0DE;
  --muted: #A3ACBF;
  --faint: #7C869C;
  --accent: #FCD116;
  --live: #D21F2F;
  --live-soft: #FF8A93;
  --win: #6EE7A0;
  --court: #163E70;
  --link: #8FB4FF;
  --ro-blue: #002B7F;
  --ro-yellow: #FCD116;
  --ro-red: #CE1126;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: #C2D6FF; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.stripe { display: flex; height: 4px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1), .mark i:nth-child(1) { background: var(--ro-blue); }
.stripe i:nth-child(2), .mark i:nth-child(2) { background: var(--ro-yellow); }
.stripe i:nth-child(3), .mark i:nth-child(3) { background: var(--ro-red); }

/* Header */
.top { height: 72px; padding: 0 32px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--text); }
.mark { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; display: flex; flex-shrink: 0; }
.mark i { flex: 1; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.brand-name b { color: var(--accent); font-weight: 700; }
.brand-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 600; }
.topnav a { color: var(--text-2); text-decoration: none; }
.topnav a:hover { color: var(--text); }
.livepill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #1A1F2E; border: 1px solid #3A2230; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.livepill:hover { color: var(--text); border-color: #5A2A3A; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #FF4D5E; flex-shrink: 0; }
.livepill .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .livepill .dot { animation: none; } html { scroll-behavior: auto; } }

.conn { background: #3A2230; color: #FFD2D7; text-align: center; font-size: 13px; padding: 6px 12px; }

/* Segmented control */
.seg { display: flex; gap: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.seg button { border: 0; background: transparent; color: var(--text-2); padding: 10px 18px; min-height: 40px; border-radius: 9px; font-size: 14px; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.seg-mobile { display: none; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 32px; padding: 32px; max-width: 1440px; margin: 0 auto; align-items: start; }
main { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.sec-head h2 { font-size: 28px; }
.sec-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* Badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.badge:empty { display: none; }
.b-live { background: var(--live); color: #fff; }
.b-next { background: var(--accent); color: var(--bg); }
.b-done { background: var(--surface-3); color: var(--text-2); }
.b-tba { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px #3A4666; }
.b-sched { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Hero */
.hero-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-head h1 { font-size: 36px; }
.hero-meta { font-size: 14px; color: var(--muted); }
.hero-switch { margin-left: auto; display: flex; gap: 6px; }
.hero-switch button { border: 1px solid var(--line-2); background: transparent; color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; min-height: 36px; }
.hero-switch button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.hero { display: flex; overflow: hidden; }
.hero-media { width: 56%; flex-shrink: 0; aspect-ratio: 16 / 9; position: relative; background: var(--court); overflow: hidden; }
.hero-score { flex: 1; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-shade { position: absolute; inset: 0; background: rgba(8, 12, 22, .55); }
.court-lines { position: absolute; left: 8%; top: 10%; width: 84%; height: 80%; }
.media-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; }
.media-tags { position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; z-index: 2; }
.tag { padding: 4px 8px; border-radius: 6px; background: rgba(11, 15, 26, .75); color: var(--text); font-size: 11px; font-weight: 600; }
.flags-vs { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--text-2); }
.cta-white { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; background: #fff; color: var(--bg); font-weight: 700; font-size: 15px; text-decoration: none; border: 0; }
.cta-white:hover { color: var(--bg); background: #E8ECF4; }
.media-note { font-size: 12px; color: #D6DEEC; max-width: 400px; line-height: 1.5; }
.hero-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.flag { width: 30px; height: 20px; border-radius: 3px; object-fit: cover; background: var(--surface-3); flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.flag.lg { width: 48px; height: 32px; border-radius: 4px; }
.flag.sm { width: 24px; height: 16px; border-radius: 2px; }
.flag.xs { width: 21px; height: 14px; border-radius: 2px; }

.tiebar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.tiebar .side { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--display); font-size: 20px; font-weight: 700; min-width: 0; text-align: center; }
.tiebar .side span { max-width: 100%; overflow-wrap: anywhere; line-height: 1.05; }
.tiebar .big { font-family: var(--display); font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.tiebar .big i { font-style: normal; color: var(--faint); padding: 0 8px; }
.tie-sub { font-size: 12px; color: var(--muted); text-align: center; margin-top: -6px; }

.curbox { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.curbox-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.curbox-head b { color: var(--live-soft); letter-spacing: .04em; }
.curbox-head b.next { color: var(--accent); }
.sgrid { display: grid; gap: 6px 10px; align-items: center; font-size: 14px; }
.sgrid .h { font-size: 11px; color: var(--faint); text-align: center; }
.sgrid .pl { font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sgrid .pl.op { color: var(--text-2); font-weight: 500; }
.sgrid .n { font-family: var(--display); font-size: 24px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.sgrid .n.dim { color: var(--faint); }
.sgrid .pt { font-family: var(--display); font-size: 24px; font-weight: 700; text-align: center; background: var(--bg); border-radius: 6px; color: var(--accent); }
.serve { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.mrows { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.mrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 32px; gap: 10px; align-items: center; }
.mrow .k { color: var(--faint); }
.mrow .p { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .s { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.res { text-align: center; padding: 2px 0; border-radius: 5px; font-size: 11px; font-weight: 700; }
.res-V { background: rgba(74, 222, 128, .14); color: var(--win); }
.res-Î { background: rgba(239, 51, 64, .16); color: var(--live-soft); }
.res-LIVE { background: var(--live); color: #fff; font-size: 10px; }
.res-none { visibility: hidden; }
.src-note { margin-top: auto; font-size: 11px; color: var(--faint); }

/* Streams */
.streams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.scard { overflow: hidden; display: flex; flex-direction: column; }
.sthumb { aspect-ratio: 16 / 9; position: relative; background: var(--court); display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; }
.sthumb .badge { position: absolute; left: 10px; top: 10px; font-size: 11px; letter-spacing: .04em; padding: 3px 8px; z-index: 2; }
.sthumb .tag { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.sthumb .flags-vs { position: relative; font-size: 16px; gap: 10px; }
.sbody { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.stitle { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.1; }
.slabel { font-size: 12px; color: var(--muted); }
.sextra { font-size: 12px; color: var(--text-2); }
.schan { font-size: 11px; color: var(--faint); margin-top: 2px; }
.scta { margin-top: auto; padding-top: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; border: 0; }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { color: var(--bg); background: #FFE04D; }
.btn-dark { background: var(--surface-3); color: var(--text); }
.btn-dark:hover { color: var(--text); background: #28324E; }
.empty { padding: 18px; border-radius: 12px; border: 1px dashed #3A4666; background: var(--surface); color: var(--text-2); font-size: 14px; line-height: 1.5; }

/* Program */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 12px 16px; min-height: 44px; font-size: 14px; font-weight: 700; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--muted); white-space: nowrap; }
.tabs button span { font-size: 12px; font-weight: 500; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.ties { display: flex; flex-direction: column; gap: 14px; }
.tie { overflow: hidden; }
.tie-head { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto 100px; grid-template-areas: "time info vs badge"; gap: 16px; align-items: center; padding: 14px 18px; background: var(--head); }
.tie-head .tie-time { grid-area: time; } .tie-head .tie-info { grid-area: info; } .tie-head .tie-vs { grid-area: vs; } .tie-head .badge { grid-area: badge; }
.tie-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tie-time { font-family: var(--display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pillcat { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.tie-meta { font-size: 13px; color: var(--muted); }
.tie-vs { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; white-space: nowrap; }
.tie-vs .sc { font-size: 24px; padding: 0 6px; font-variant-numeric: tabular-nums; }
.tie-vs .sc.on { color: var(--accent); }
.tie-vs .sc.off { color: var(--faint); }
.tie-head .badge { justify-self: end; font-size: 11px; letter-spacing: .05em; }
.m { display: grid; grid-template-columns: 70px minmax(0, 1fr) 150px minmax(0, 1fr) 52px; gap: 16px; align-items: center; padding: 11px 18px; border-top: 1px solid #1E2640; font-size: 14px; }
.m .k { color: var(--faint); font-size: 13px; }
.m .ro { font-weight: 600; }
.m .op { color: var(--muted); }
.m .sc { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; }
.m .sc small { color: var(--accent); font-weight: 700; }
.tie-empty { padding: 12px 18px; border-top: 1px solid #1E2640; font-size: 13px; color: var(--muted); }

/* Drumul spre Doha */
.doha { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.doha-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doha-head h2 { font-size: 24px; }
.doha-head span { font-size: 12px; color: var(--muted); }
#roads { display: flex; flex-direction: column; gap: 12px; }
.road { display: grid; grid-template-columns: 150px repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.road-cat { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.road-cat b { font-size: 15px; }
.road-cat span { font-size: 12px; color: var(--muted); }
.step { padding: 10px 12px; border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.step .k { font-size: 11px; font-weight: 700; letter-spacing: .05em; opacity: .85; }
.step .v { font-size: 14px; font-weight: 700; }
.st-win { background: rgba(74, 222, 128, .10); color: #9FF0C0; box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .35); }
.st-loss { background: rgba(239, 51, 64, .10); color: #FFB3BA; box-shadow: inset 0 0 0 1px rgba(239, 51, 64, .35); }
.st-live { background: rgba(210, 31, 47, .16); color: #FFB3BA; box-shadow: inset 0 0 0 1px rgba(255, 77, 94, .5); }
.st-next { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.st-later { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }

.foot { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); line-height: 1.6; }
.foot .warn { color: #FFB86B; }

/* Chat */
.chat { position: sticky; top: 20px; height: calc(100vh - 40px); max-height: 1180px; min-height: 520px; display: flex; flex-direction: column; overflow: hidden; }
.chat-head { padding: 18px 18px 0; display: flex; align-items: center; justify-content: space-between; }
.chat-head h2 { font-size: 24px; }
.online { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.online .dot { background: #4ADE80; }
.chat-sub { margin: 6px 0 0; padding: 0 18px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; gap: 3px; }
.msg-h { display: flex; align-items: baseline; gap: 8px; }
.msg-n { font-size: 13px; font-weight: 700; }
.msg-t { font-size: 11px; color: var(--faint); }
.msg-x { font-size: 14px; line-height: 1.45; color: #E2E6EF; overflow-wrap: anywhere; }
.msg.me .msg-n { color: var(--accent) !important; }
.sys { align-self: center; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #1A2236; font-size: 12px; color: var(--text-2); text-align: center; max-width: 100%; }
.sys::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.newmsgs { align-self: center; margin: -52px 0 12px; position: relative; z-index: 2; border: 0; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 12px; border-radius: 999px; padding: 8px 14px; }
.chat-form { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.chat-me { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.chat-me strong { color: var(--accent); }
.linkbtn { border: 0; background: transparent; color: var(--link); font-size: 12px; font-weight: 600; padding: 4px 0; }
.nick-row { display: flex; flex-direction: column; gap: 6px; }
.nick-row label { font-size: 12px; color: var(--muted); }
.chat-row { display: flex; gap: 8px; }
.chat input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 15px; }
.chat input::placeholder { color: var(--faint); }
.chat input:disabled { opacity: .5; }
.send { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 10px; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.send:disabled { opacity: .5; }
.chat-hint { font-size: 11px; color: var(--faint); min-height: 16px; }
.chat-hint.err { color: var(--live-soft); font-weight: 600; }

/* Player */
.player { position: fixed; inset: 0; z-index: 40; background: rgba(5, 8, 15, .85); display: flex; align-items: center; justify-content: center; padding: 24px; }
.player[hidden] { display: none; }
.player-box { width: min(1100px, 100%); position: relative; }
.player-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-close { position: absolute; right: 0; top: -52px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--text); display: flex; align-items: center; justify-content: center; }


/* Grile de scor (n = seturi, p = coloană de puncte) */
.sg0 { grid-template-columns: minmax(0, 1fr); }
.sg1 { grid-template-columns: minmax(0, 1fr) 40px; }
.sg2 { grid-template-columns: minmax(0, 1fr) repeat(2, 40px); }
.sg3 { grid-template-columns: minmax(0, 1fr) repeat(3, 40px); }
.sg4 { grid-template-columns: minmax(0, 1fr) repeat(4, 36px); }
.sg5 { grid-template-columns: minmax(0, 1fr) repeat(5, 32px); }
.sg1p { grid-template-columns: minmax(0, 1fr) 40px 44px; }
.sg2p { grid-template-columns: minmax(0, 1fr) repeat(2, 40px) 44px; }
.sg3p { grid-template-columns: minmax(0, 1fr) repeat(3, 40px) 44px; }
.sg4p { grid-template-columns: minmax(0, 1fr) repeat(4, 36px) 44px; }
.sg5p { grid-template-columns: minmax(0, 1fr) repeat(5, 32px) 44px; }
.mrow .vs { color: var(--faint); }
.sthumb .b-done { background: rgba(11, 15, 26, .78); color: var(--text); }
.nc0 { color: #FF8A93; } .nc1 { color: #8FB4FF; } .nc2 { color: #6EE7A0; } .nc3 { color: #C4A7FF; }
.nc4 { color: #FFB86B; } .nc5 { color: #7FD8F0; } .nc6 { color: #F9A8D4; } .nc7 { color: #BEF264; }

/* Tab bar (mobil) */
.tabbar { display: none; }
.unread { position: absolute; top: 6px; left: calc(50% + 6px); padding: 1px 6px; border-radius: 999px; background: var(--live); color: #fff; font-size: 10px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .streams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topnav { display: none; }
  .livepill { margin-left: auto; }
}
@media (max-width: 1100px) {
  .hero { flex-direction: column; }
  .hero-media { width: 100%; }
}
@media (max-width: 960px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .top { height: 56px; padding: 0 12px; gap: 10px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 20px; overflow: hidden; text-overflow: ellipsis; }
  .brand { flex: 1; }
  .mark { width: 28px; height: 28px; border-radius: 8px; }
  .livepill { display: none !important; }
  .seg-mobile { display: flex; margin-left: auto; padding: 3px; gap: 2px; border-radius: 9px; }
  .seg-mobile button { padding: 6px 10px; min-height: 36px; font-size: 12px; border-radius: 7px; }
  .seg-desktop { display: none; }
  .layout { display: block; padding: 12px; }
  main { gap: 28px; }
  body[data-view="live"] .v-program, body[data-view="live"] .v-chat,
  body[data-view="program"] .v-live, body[data-view="program"] .v-chat,
  body[data-view="chat"] main { display: none !important; }
  body[data-view="chat"] .layout { padding: 0; }
  .chat { position: static; height: calc(100dvh - 60px - 64px - env(safe-area-inset-bottom)); max-height: none; min-height: 0; border-radius: 0; border-left: 0; border-right: 0; }
  .hero-head { gap: 10px; margin-bottom: 12px; }
  .hero-head h1 { font-size: 26px; }
  .hero-switch { margin-left: 0; }
  .hero-score { padding: 16px; }
  .tiebar .side { font-size: 17px; gap: 6px; }
  .tiebar .big { font-size: 34px; }
  .streams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stitle { font-size: 17px; }
  .sbody { padding: 10px; }
  .sec-head h2 { font-size: 24px; }
  .tie-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time badge" "vs vs" "info info"; gap: 8px 12px; padding: 12px 14px; }
  .tie-time { font-size: 22px; }
  .tie-info { gap: 8px; }
  .pillcat { padding: 2px 8px; font-size: 11px; }
  .tie-meta { font-size: 12px; }
  .tie-vs { font-size: 18px; gap: 8px; min-width: 0; }
  .tie-vs .sc { font-size: 22px; padding: 0 2px; }
  .m { grid-template-columns: minmax(0, 1fr) auto 40px; grid-template-areas: "ro sc res" "op sc res"; gap: 2px 10px; padding: 10px 14px; font-size: 13px; }
  .m .k { display: none; }
  .m .ro { grid-area: ro; } .m .op { grid-area: op; } .m .sc { grid-area: sc; } .m .res { grid-area: res; }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road-cat { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 8px; align-items: baseline; }
  .doha { padding: 16px; }
  .foot { flex-direction: column; gap: 6px; }
  .tabbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #0E1322; border-top: 1px solid var(--line); z-index: 30; }
  .tabbar button { position: relative; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; }
  .tabbar button[aria-current="page"] { color: var(--accent); }
  .player { padding: 12px; }
  .player-close { top: -52px; }
}
@media (max-width: 420px) {
  .streams { grid-template-columns: minmax(0, 1fr); }
  .sthumb { aspect-ratio: 21 / 9; }
}
