:root { --bg:#0f1420; --card:#171e2e; --card2:#1f2839; --line:#2a3550; --text:#e6e9f0; --muted:#8b94a7;
  --home:#4f8ef7; --away:#f7734f; --market:#a78bfa; --ok:#34d399; --warn:#fbbf24; --bad:#f87171; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; }
a { color:inherit; text-decoration:none; }
header { display:flex; align-items:center; gap:24px; padding:14px 24px; border-bottom:1px solid var(--line); position:sticky; top:0; background:rgba(15,20,32,.92); backdrop-filter:blur(8px); z-index:5; }
header .brand { font-weight:700; letter-spacing:.3px; }
header nav a { color:var(--muted); margin-right:16px; padding:6px 0; border-bottom:2px solid transparent; }
header nav a.active { color:var(--text); border-color:var(--home); }
header .status { margin-left:auto; color:var(--muted); font-size:13px; }
header .status.stale { color:var(--bad); }
main { max-width:1180px; margin:0 auto; padding:20px 24px 60px; }
h1 { font-size:22px; margin:0 0 6px; } h2 { font-size:17px; margin:26px 0 10px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.6px; }
.sub { color:var(--muted); margin:0 0 18px; }
.controls { display:flex; gap:8px; margin:0 0 16px; }
.btn { background:var(--card2); border:1px solid var(--line); color:var(--text); border-radius:8px; padding:6px 12px; cursor:pointer; font:inherit; }
.btn.active { border-color:var(--home); color:#fff; background:#223052; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:14px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px 16px; }
.card-head { display:flex; justify-content:space-between; color:var(--muted); font-size:13px; margin-bottom:8px; }
.badge { padding:2px 8px; border-radius:999px; font-size:12px; background:var(--card2); }
.badge.live { background:#3b2b1a; color:var(--warn); } .badge.final { background:#1b3a2f; color:var(--ok); }
.teams { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px; }
.teams .t { font-weight:700; font-size:17px; } .teams .t small { display:block; font-weight:400; color:var(--muted); font-size:12px; }
.teams .t.away { text-align:right; }
.prow { display:grid; grid-template-columns:110px 1fr; gap:10px; align-items:center; margin:6px 0; font-size:13px; }
.prow .lbl { color:var(--muted); }
.bar { display:flex; height:22px; border-radius:6px; overflow:hidden; background:var(--card2); font-size:12px; font-weight:600; }
.bar span { display:flex; align-items:center; padding:0 8px; white-space:nowrap; overflow:hidden; }
.bar .h { background:var(--home); color:#08131f; } .bar .a { background:var(--away); color:#1f0d05; justify-content:flex-end; }
.bar.market .h { background:#7c66d6; color:#fff; } .bar.market .a { background:#5b4aa8; color:#fff; }
.bar.elo .h { background:#3b6fc4; color:#fff; } .bar.elo .a { background:#c45c3b; color:#fff; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.chip { background:var(--card2); border-radius:8px; padding:4px 8px; font-size:12px; }
.chip b { color:var(--text); } .chip.mk { border:1px solid var(--market); }
.why { color:var(--muted); font-size:12px; margin-top:6px; line-height:1.6; }
.why b { color:var(--text); font-weight:600; }
.more { margin-top:8px; } .details { margin-top:10px; border-top:1px solid var(--line); padding-top:10px; }
.heat { display:grid; gap:2px; font-size:11px; }
.heat div { aspect-ratio:1.6; display:flex; align-items:center; justify-content:center; border-radius:3px; color:#cbd5e1; }
.heat .hd { color:var(--muted); background:transparent; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); }
th { color:var(--muted); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.4px; cursor:pointer; user-select:none; }
td.num, th.num { text-align:right; font-variant-numeric:tabular-nums; }
.pos { color:var(--ok); } .neg { color:var(--bad); }
.chart { position:relative; height:320px; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:12px; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:14px; } @media (max-width:900px) { .two { grid-template-columns:1fr; } }
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin-bottom:14px; }
.kpi { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
.kpi .v { font-size:22px; font-weight:700; } .kpi .l { color:var(--muted); font-size:12px; }
.empty { color:var(--muted); padding:40px; text-align:center; border:1px dashed var(--line); border-radius:14px; }
footer { color:var(--muted); font-size:12px; text-align:center; padding:20px; border-top:1px solid var(--line); }
.leaguebar { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.leaguebar .tab { background:var(--card2); border:1px solid var(--line); color:var(--muted); border-radius:999px; padding:4px 10px; font-size:13px; cursor:pointer; text-decoration:none; }
.leaguebar .tab.active { color:#fff; border-color:var(--home); background:#223052; }
.leaguebar .tab.off { opacity:.45; cursor:not-allowed; }
.leaguebar select { background:var(--card2); border:1px solid var(--line); color:var(--text); border-radius:999px; padding:4px 8px; font:inherit; font-size:13px; }
.bar .d { background:#4b5563; color:#e5e7eb; justify-content:center; }
.section { margin:22px 0 8px; display:flex; align-items:baseline; gap:12px; }
.section h2 { margin:0; } .section .cnt { color:var(--muted); font-size:13px; } .section a { color:var(--home); font-size:13px; margin-left:auto; }
.nextlist { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:8px; }
.nextlist .row { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:8px 12px; display:flex; justify-content:space-between; font-size:14px; }
.nextlist .row .when { color:var(--muted); font-size:12px; }
.hint { color:var(--muted); font-size:12px; margin:6px 0 0; }
.badge.warn { background:#3b2b1a; color:var(--warn); }
