﻿:root {
  --bg: #0b0d0e;
  --panel: #15181a;
  --panel-2: #1c2023;
  --line: #23282c;
  --text: #f1f3f4;
  --muted: #8b9399;
  --accent: #00d26a;
  --accent-ink: #00170b;
  --live: #ff3b3b;
  --win: #ffffff;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.4 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
.muted { color: var(--muted); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: #000; border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1280px; margin: 0 auto; height: 60px; padding: 0 16px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.4px; flex-shrink: 0; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { stroke: #000; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sports { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.sports::-webkit-scrollbar { display: none; }
.sports a { padding: 8px 14px; border-radius: 6px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sports a:hover { color: var(--text); }
.sports a.on { color: var(--accent-ink); background: var(--accent); }
.search { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border-radius: 8px; padding: 0 14px; height: 38px; width: 280px; flex-shrink: 0; }
.search svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; flex-shrink: 0; }
.search input { background: none; border: 0; outline: 0; color: var(--text); width: 100%; font: inherit; }

/* Layout */
.layout { max-width: 1280px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.panel { background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.panel + .panel { margin-top: 16px; }
.panel-h { padding: 14px 16px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.side-left, .side-right { position: sticky; top: 76px; }

.comp-list a { display: flex; flex-direction: column; padding: 9px 16px; border-top: 1px solid var(--line); }
.comp-list a:hover, .comp-list a.on { background: var(--panel-2); }
.comp-list a.on { box-shadow: inset 3px 0 var(--accent); }
.comp-list b { font-weight: 600; }
.comp-list small { color: var(--muted); font-size: 12px; }

/* Date strip */
.datebar { display: flex; align-items: center; gap: 6px; background: var(--panel); border-radius: var(--radius); padding: 8px; margin-bottom: 16px; }
.datebar .days { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.datebar .days::-webkit-scrollbar { display: none; }
.day { flex: 1; min-width: 64px; padding: 6px 4px; border-radius: 8px; text-align: center; color: var(--muted); }
.day b { display: block; font-size: 12px; text-transform: uppercase; font-weight: 700; }
.day span { font-size: 12px; }
.day:hover { color: var(--text); background: var(--panel-2); }
.day.on { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px var(--accent); }
.livepill { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; font-weight: 800; font-size: 12px; background: var(--panel-2); color: var(--muted); flex-shrink: 0; }
.livepill.on { background: var(--live); color: #fff; }
.livepill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.livepill.on i { animation: blink 1.2s infinite; }
.livepill em { font-style: normal; background: rgba(0,0,0,.25); padding: 0 6px; border-radius: 4px; }
.cal { position: relative; flex-shrink: 0; width: 38px; height: 38px; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; }
.cal svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 2; }
.cal input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cal input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
@keyframes blink { 50% { opacity: .2; } }

/* Match list */
.league { background: var(--panel); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.league-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.league-h img { width: 22px; height: 22px; object-fit: contain; }
.league-h .ln { flex: 1; min-width: 0; }
.league-h .ln b { display: block; font-weight: 700; }
.league-h .ln small { color: var(--muted); font-size: 12px; }
.league-h .more { color: var(--muted); font-size: 12px; font-weight: 600; }
.league-h .more:hover { color: var(--accent); }

.row { display: grid; grid-template-columns: 58px 1fr auto 40px; align-items: center; border-top: 1px solid var(--line); min-height: 64px; }
.row:hover { background: var(--panel-2); }
.row .st { text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; padding: 0 4px; }
.row.live .st { color: var(--live); font-weight: 700; }
.row .tm { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; min-width: 0; }
.row .t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row .t img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.row .t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t.lose span { color: var(--muted); }
.row .t.win span { font-weight: 700; }
.row .rc { display: inline-block; width: 8px; height: 11px; border-radius: 1.5px; background: var(--live); margin-left: 2px; flex-shrink: 0; }
.row .sc { display: flex; flex-direction: column; gap: 6px; text-align: right; font-weight: 700; padding: 0 6px; min-width: 32px; }
.row.live .sc { color: var(--accent); }
.row .sc small { color: var(--muted); font-weight: 500; font-size: 11px; }
.fav { width: 40px; height: 64px; display: grid; place-items: center; color: #4a5258; }
.fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav:hover { color: var(--text); }
.fav.on { color: #ffc400; }
.fav.on svg { fill: currentColor; }

.empty { background: var(--panel); border-radius: var(--radius); padding: 48px 16px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
.skel { height: 64px; border-top: 1px solid var(--line); background: linear-gradient(90deg, var(--panel) 0, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* Right column */
.feat { padding: 4px 16px 18px; display: block; }
.feat .fl { color: var(--muted); font-size: 12px; text-align: center; margin-bottom: 12px; }
.feat .fx { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.feat img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 8px; }
.feat .fn { font-weight: 600; font-size: 13px; }
.feat .fs { font-size: 26px; font-weight: 800; }
.feat .fst { font-size: 12px; color: var(--muted); margin-top: 2px; }
.feat.live .fst { color: var(--live); font-weight: 700; }
.tip { padding: 4px 16px 16px; color: var(--muted); font-size: 13px; }
.tip p { margin: 0 0 8px; }
.tip p:last-child { margin: 0; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table td { padding: 7px 10px; border-top: 1px solid var(--line); }
.mini-table td:first-child { color: var(--muted); width: 28px; text-align: center; }
.mini-table td:last-child { text-align: right; font-weight: 700; }

/* Match page */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.back:hover { color: var(--text); }
.mh { background: var(--panel); border-radius: var(--radius); padding: 18px 16px 0; margin-bottom: 12px; }
.mh .comp { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.mh .comp a:hover { color: var(--accent); }
.mh .vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; text-align: center; }
.mh .vs img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; }
.mh .vs .nm { font-weight: 700; font-size: 15px; }
.mh .score { font-size: 38px; font-weight: 800; letter-spacing: 2px; white-space: nowrap; }
.mh .stt { font-size: 13px; color: var(--muted); font-weight: 600; }
.mh.live .stt { color: var(--live); }
.mh.live .score { color: var(--accent); }
.mh .scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.mh .scorers div:first-child { text-align: right; }
.tabs { display: flex; gap: 4px; margin-top: 18px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 13px 14px; color: var(--muted); font-weight: 600; white-space: nowrap; box-shadow: inset 0 -2px transparent; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); box-shadow: inset 0 -2px var(--accent); }
.card { background: var(--panel); border-radius: var(--radius); padding: 8px 0; margin-bottom: 12px; }
.card-h { padding: 10px 16px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

.tl-row { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; padding: 8px 16px; min-height: 42px; }
.tl-row .min { text-align: center; font-weight: 700; color: var(--muted); font-size: 12px; }
.tl-row .h { text-align: right; }
.tl-ev { display: inline-flex; align-items: center; gap: 8px; }
.tl-ev small { display: block; color: var(--muted); font-size: 12px; }
.tl-sep { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; padding: 8px; background: var(--panel-2); margin: 4px 0; }
.ico { width: 18px; height: 18px; flex-shrink: 0; display: inline-grid; place-items: center; font-size: 13px; }
.ico.yc::before, .ico.rc::before { content: ''; width: 11px; height: 15px; border-radius: 2px; background: #ffd400; }
.ico.rc::before { background: var(--live); }
.ico.goal::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--text); box-shadow: inset 0 0 0 3px var(--panel), inset 0 0 0 5px var(--text); }
.ico.sub::before { content: '\21C4'; color: var(--accent); font-weight: 800; }

.stat { padding: 10px 16px; }
.stat .sl { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.stat .sl span:nth-child(2) { color: var(--muted); font-weight: 500; font-size: 13px; }
.stat .bars { display: flex; gap: 6px; }
.stat .bars div { flex: 1; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; display: flex; }
.stat .bars div:first-child { justify-content: flex-end; }
.stat .bars i { display: block; height: 100%; background: var(--muted); }
.stat .bars i.lead { background: var(--accent); }

.lineups { display: grid; grid-template-columns: 1fr 1fr; }
.lineups > div + div { border-left: 1px solid var(--line); }
.lu-h { padding: 10px 16px; display: flex; justify-content: space-between; font-weight: 700; }
.lu-h small { color: var(--muted); font-weight: 600; }
.pl { display: flex; gap: 10px; align-items: center; padding: 7px 16px; border-top: 1px solid var(--line); }
.pl .no { width: 22px; text-align: center; color: var(--muted); font-weight: 700; font-size: 12px; }
.pl .pn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .pp { color: var(--muted); font-size: 12px; }
.pl .sub-in { color: var(--accent); font-size: 11px; }
.pl .sub-out { color: var(--live); font-size: 11px; }

.table-wrap { overflow-x: auto; }
table.st { width: 100%; border-collapse: collapse; font-size: 13px; }
table.st th { color: var(--muted); font-weight: 600; font-size: 12px; padding: 8px 6px; text-align: center; }
table.st th.tn, table.st td.tn { text-align: left; }
table.st td { padding: 9px 6px; border-top: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.st td.pos { width: 34px; color: var(--muted); font-weight: 700; box-shadow: inset 3px 0 var(--q, transparent); }
table.st td.tn { width: 100%; }
table.st td.tn a { display: inline-flex; align-items: center; gap: 8px; }
table.st td.tn img { width: 18px; height: 18px; object-fit: contain; }
table.st td.pts { font-weight: 800; }
table.st tr.hl td { background: var(--panel-2); }
.legend { padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }

.ls-table { width: 100%; border-collapse: collapse; }
.ls-table th, .ls-table td { padding: 9px 10px; text-align: center; border-top: 1px solid var(--line); }
.ls-table th { color: var(--muted); font-size: 12px; font-weight: 600; border-top: 0; }
.ls-table td:first-child, .ls-table th:first-child { text-align: left; }
.ls-table td:last-child { font-weight: 800; }

.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.info div { padding: 10px 16px; }
.info small { display: block; color: var(--muted); font-size: 12px; }

.h2h-row { display: grid; grid-template-columns: 80px 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.h2h-row .d { color: var(--muted); font-size: 12px; }
.h2h-row .r { text-align: right; }
.h2h-row b { padding: 2px 8px; background: var(--panel-2); border-radius: 6px; }

.lg-head { display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: var(--radius); padding: 16px 16px 0; margin-bottom: 12px; flex-wrap: wrap; }
.lg-head img { width: 48px; height: 48px; object-fit: contain; }
.lg-head h1 { margin: 0; font-size: 20px; }
.lg-head .tabs { flex-basis: 100%; margin-top: 8px; }

.err { color: var(--muted); padding: 24px 16px; text-align: center; }

/* Collapsible "all competitions" groups */
.sec-h { margin: 22px 4px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.sec-h span { background: var(--panel-2); color: var(--text); padding: 1px 8px; border-radius: 4px; margin-left: 6px; }
details.league { margin-bottom: 6px; }
details.league > summary { list-style: none; cursor: pointer; user-select: none; }
details.league > summary::-webkit-details-marker { display: none; }
details.league > summary:hover { background: var(--panel-2); }
details.league .cnt { color: var(--muted); font-size: 12px; font-weight: 600; min-width: 20px; text-align: right; }
details.league .lc { color: var(--live); font-size: 11px; font-weight: 800; text-transform: uppercase; }
details.league .chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 4px 6px; transition: transform .15s; }
details.league[open] .chev { transform: rotate(-135deg); margin-bottom: -2px; }
details.league .league-h img { width: 20px; height: 20px; }
.league-more { border-top: 1px solid var(--line); padding: 10px 16px; text-align: right; }

/* Extra event icons */
.ico.miss::before { content: '\2715'; color: var(--live); font-weight: 800; }
.ico.var::before { content: 'VAR'; font-size: 8px; font-weight: 800; border: 1.5px solid var(--muted); color: var(--muted); border-radius: 3px; padding: 1px 2px; }

/* Pitch line-ups */
.pitch-card { padding: 0; overflow: hidden; }
.pitch-h { display: flex; justify-content: space-between; padding: 12px 16px; font-weight: 700; }
.pitch-h small { color: var(--muted); }
.pitch { background: repeating-linear-gradient(180deg, #17402a 0 44px, #153b27 44px 88px); position: relative; }
.pitch .half { display: flex; flex-direction: column; justify-content: space-around; min-height: 330px; padding: 12px 6px; position: relative; }
.pitch .half + .half { border-top: 2px solid rgba(255,255,255,.18); }
.pitch .half::before { content: ''; position: absolute; left: 30%; right: 30%; height: 54px; border: 2px solid rgba(255,255,255,.18); }
.pitch .half:first-child::before { top: 0; border-top: 0; }
.pitch .half + .half::before { bottom: 0; border-bottom: 0; }
.pitch .half + .half::after { content: ''; position: absolute; top: -40px; left: 50%; width: 76px; height: 76px; margin-left: -38px; border: 2px solid rgba(255,255,255,.18); border-radius: 50%; clip-path: inset(40px 0 0 0); }
.pitch .half:first-child::after { content: ''; position: absolute; bottom: -38px; left: 50%; width: 76px; height: 76px; margin-left: -38px; border: 2px solid rgba(255,255,255,.18); border-radius: 50%; clip-path: inset(0 0 38px 0); }
.prow { display: flex; justify-content: space-around; position: relative; z-index: 1; }
.pp { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; text-align: center; }
.shirt { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.pnm { font-size: 11px; font-weight: 600; line-height: 1.2; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.mks { position: absolute; top: -4px; right: -10px; display: flex; gap: 1px; }
.mk { display: inline-block; width: 10px; height: 10px; vertical-align: middle; }
.mk.goal { border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #222, inset 0 0 0 3px #fff; }
.mk.yc, .mk.rc { width: 7px; height: 10px; border-radius: 1.5px; background: #ffd400; }
.mk.rc { background: var(--live); }
.mk.off::before { content: '\25BC'; color: var(--live); font-size: 9px; line-height: 10px; display: block; }
.mk.on::before { content: '\25B2'; color: var(--accent); font-size: 9px; line-height: 10px; display: block; }
.pl .pn .mk { margin-left: 3px; }

/* Table form chips */
table.st td.form { white-space: nowrap; }
table.st td.form i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 2px; border-radius: 4px; font-style: normal; font-size: 10px; font-weight: 800; background: var(--muted); color: #000; }
table.st td.form i.fW { background: var(--accent); }
table.st td.form i.fL { background: var(--live); color: #fff; }

/* H2H summary */
.h2h-sum { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 8px 0; }
.h2h-sum b { display: block; font-size: 26px; font-weight: 800; }
.h2h-sum small { color: var(--muted); font-size: 12px; }
a.h2h-row:hover { background: var(--panel-2); }

/* Terms / privacy pages */
.legal { max-width: 720px; margin: 0 auto; padding: 24px 16px 8px; font-size: 15px; line-height: 1.65; }
.legal h1 { font-size: 28px; line-height: 1.2; margin: 4px 0 4px; letter-spacing: -.3px; }
.legal h2 { font-size: 17px; margin: 28px 0 6px; }
.legal p, .legal ul { margin: 0 0 12px; color: #c9cfd3; }
.legal ul { padding-left: 20px; }
.legal a:not(.back) { color: var(--accent); }
.flink { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.flink:hover { color: var(--text); }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-in { max-width: 1280px; margin: 0 auto; padding: 24px 16px 40px; display: grid; gap: 6px; font-size: 13px; }

/* Responsive */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  .side-right { display: none; }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 12px 0; }
  .side-left { display: none; }
  .main { padding: 0 8px; }
  .topbar-in { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .sports { order: 3; flex-basis: 100%; }
  .search { width: auto; flex: 1; }
  .brand-name { font-size: 18px; }
  .mh .score { font-size: 30px; }
  .mh .vs img { width: 48px; height: 48px; }
  .lineups { grid-template-columns: 1fr; }
  .lineups > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .h2h-row { grid-template-columns: 64px 1fr auto 1fr; font-size: 13px; }
  .tl-row { padding: 8px 10px; grid-template-columns: 1fr 44px 1fr; font-size: 13px; }
}
