:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    background: #101214;
    color: #f5f5f5;
    --accent: #f9be20;
    --panel: #181b1e;
    --panel-alt: #202428;
    --line: #383d42;
    --muted: #a8afb5;
}

* { box-sizing: border-box; }
body { margin: 0; background: #101214; color: #f5f5f5; }
.tournament-header { border-bottom: 1px solid var(--line); background: #15181a; }
.header-inner, main, footer { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 0; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 46px); letter-spacing: 0; }
.event-date { margin: 9px 0 0; color: var(--muted); }
.live-state { display: grid; grid-template-columns: 10px auto; gap: 2px 10px; align-items: center; min-width: 145px; padding: 15px 18px; border: 1px solid var(--line); background: var(--panel); }
.live-state > span { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: #31b76a; box-shadow: 0 0 0 5px rgba(49,183,106,.12); }
.live-state strong { font-size: 23px; }
.live-state small { color: var(--muted); }
main { padding: 34px 0 50px; }
section + section { margin-top: 46px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.standing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr)); gap: 18px; }
.standing-card { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); }
.standing-card h3 { margin: 0; padding: 15px 17px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 17px; }
.standing-row { display: grid; grid-template-columns: 38px minmax(150px, 1fr) 38px 90px 50px 40px; align-items: center; min-width: 440px; min-height: 43px; padding: 0 12px; border-bottom: 1px solid #2c3034; font-size: 14px; }
.standing-row:nth-child(odd) { background: var(--panel-alt); }
.standing-row.head { min-height: 37px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.standing-row > :not(:nth-child(2)) { text-align: center; }
.match-points { color: var(--accent); }
.phase-title { margin: 28px 0 10px; color: var(--accent); font-size: 18px; }
.match-list { display: grid; gap: 8px; }
.match { border-left: 4px solid #656b70; background: var(--panel); }
.match.complete { border-left-color: #31b76a; }
.match-meta { display: flex; justify-content: space-between; gap: 15px; padding: 10px 15px 0; color: var(--muted); font-size: 12px; }
.match-score { display: grid; grid-template-columns: minmax(100px,1fr) 75px minmax(100px,1fr); align-items: center; gap: 15px; padding: 13px 16px 15px; }
.match-score strong:last-child { text-align: right; }
.match-score b { color: var(--accent); font-size: 24px; text-align: center; }
.innings { display: flex; flex-wrap: wrap; gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.innings span { min-width: 90px; padding: 8px 12px; background: var(--panel-alt); text-align: center; }
.innings small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.empty { padding: 28px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
footer { padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.error-page { display: grid; place-items: center; min-height: 100vh; text-align: center; }
.error-page strong { color: var(--accent); font-size: 56px; }.error-page h1 { margin-top: 8px; }.error-page p { color: var(--muted); }

@media (max-width: 680px) {
    .header-inner, .section-head { align-items: flex-start; flex-direction: column; }
    .live-state { width: 100%; }
    .section-head { gap: 6px; }
    .match-meta { flex-direction: column; gap: 3px; }
    .match-score { grid-template-columns: 1fr 55px 1fr; gap: 8px; font-size: 13px; }
    .match-score b { font-size: 20px; }
}
