:root {
  color-scheme: light;
  --ink:#12262a; --muted:#526767; --line:#dce6e3; --paper:#f0f5f3; --green:#096a55; --bright:#a6f4c4;
  font-family: "Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;
}
* { box-sizing:border-box }
[hidden] { display:none !important }
body { margin:0; color:var(--ink); background:var(--paper); font-size:14px }
a { color:var(--green); text-decoration:none }
a:hover { text-decoration:underline }
button,input,select { font:inherit }
button { cursor:pointer }
button:disabled { cursor:default; opacity:.55 }
:focus-visible { outline:3px solid #1eb997; outline-offset:3px }
.wrap { width:min(1200px,calc(100% - 64px)); margin-inline:auto }
.masthead { background:#091b22; color:#effbf9; border-bottom:1px solid #20343c }
.header-inner,.header-meta,.brand,.statusbar,.data-actions,.tabs,.heading,.card-head,footer { display:flex; align-items:center }
.header-inner { min-height:65px; justify-content:space-between }
.brand { gap:12px; color:#fff; font-weight:800; font-size:17px; letter-spacing:.045em }
.brand:hover { text-decoration:none }
.brand b { background:var(--bright); color:#0b392c; font:italic 900 17px/1 system-ui,sans-serif; padding:8px 10px; border-radius:6px }
.header-meta { gap:24px; color:#b8cacd; font-size:12px }
.header-meta strong { font-size:11px; color:#a6f4c4 }
.header-meta a { color:#fff }
.hero { position:relative; isolation:isolate; min-height:286px; border-radius:22px; margin-top:26px; overflow:hidden; color:#fff; background:#0a202b url("assets/stadium.webp") center 56%/cover no-repeat; display:flex; align-items:end; justify-content:space-between; padding:30px 36px }
.hero::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#031520ee,#05202a90 48%,#03152018),linear-gradient(0deg,#061e24cc,transparent 65%) }
.hero-copy p { font-size:11px; color:var(--bright); font-weight:750; letter-spacing:.2em; margin:0 0 12px }
.hero h1 { font-size:clamp(42px,5.2vw,68px); letter-spacing:-.075em; line-height:1.02; margin:0 0 24px; font-weight:850 }
.hero h1 span { color:var(--bright); margin-left:.08em }
.season-label { display:inline-flex; align-items:center; color:#d5e8e6; background:#071d26b3; border:1px solid #ffffff4d; border-radius:8px; padding:0 9px 0 11px; gap:8px; font-size:12px }
.season-label select { color:#fff; background:transparent; border:0; padding:8px 2px; font-weight:750; min-width:65px }
.season-label option { color:#15282a }
.hero-stats { display:flex; gap:0; margin:0; padding:12px 0; background:#061c24b8; border:1px solid #ffffff3d; border-radius:11px; backdrop-filter:blur(8px) }
.hero-stats div { padding:0 23px }
.hero-stats div + div { border-left:1px solid #ffffff38 }
.hero-stats dt { color:#b8cfcc; font-size:12px; white-space:nowrap }
.hero-stats dd { margin:3px 0 0; font-size:29px; font-weight:800; font-variant-numeric:tabular-nums; color:#fff }
.statusbar { justify-content:space-between; gap:8px; margin:13px 0 }
.connection { margin:0; color:var(--muted); font-size:12px; display:flex; align-items:center; gap:7px }
.connection::before { content:""; background:#a77523; width:7px; height:7px; flex:none; border-radius:50% }
.connection.online::before { background:#08876a; box-shadow:0 0 0 3px #0c8d651c }
.data-actions { gap:12px; flex:none }
.auto,.follow-filter { white-space:nowrap; color:var(--muted); font-size:12px }
input[type=checkbox] { accent-color:var(--green); vertical-align:middle }
.button { border:1px solid #d1dfdb; border-radius:8px; background:#fff; color:#174d41; padding:8px 11px; font-weight:700; white-space:nowrap; font-size:12px }
.button:hover,.clear:hover { background:#e8f5ee }
.tabs { gap:12px; border-bottom:1px solid #d3dfdc; margin-bottom:18px }
.tabs button { border:0; border-bottom:3px solid transparent; background:transparent; color:#526767; padding:9px 15px 13px; font-weight:750; white-space:nowrap }
.tabs button[aria-current] { color:var(--green); border-color:var(--green) }
.layout { display:grid; grid-template-columns:minmax(0,1fr) 302px; gap:18px; align-items:start }
.layout.full { grid-template-columns:minmax(0,1fr) }
.panel { min-width:0; background:#fff; border:1px solid var(--line); border-radius:15px; overflow:hidden; box-shadow:0 8px 20px #14292106 }
.heading { padding:20px 19px 15px; gap:10px; justify-content:space-between }
h2,h3 { margin:0; line-height:1.3 }
h2 { font-size:23px; letter-spacing:-.055em }
h3 { font-size:16px }
.heading p,.muted { margin:5px 0 0; color:var(--muted); font-size:12px }
.filters { display:flex; align-items:end; flex-wrap:wrap; gap:9px; padding:0 19px 15px }
.filters label:not(.follow-filter) { display:grid; gap:4px; font-size:11px; font-weight:700; color:var(--muted) }
#searchField { flex:1 1 150px }
.filters input:not([type=checkbox]),.filters select { width:100%; min-height:35px; background:#f6f9f8; border:1px solid var(--line); border-radius:7px; padding:5px 8px; color:var(--ink); min-width:0; font-size:12px }
.follow-filter { padding:8px 0; align-self:end }
.clear { border:0; background:transparent; padding:7px; color:var(--green); border-radius:6px; font-size:12px; font-weight:700 }
.empty { padding:32px 20px; color:var(--muted); border-top:1px solid var(--line) }
.day { background:#edf5f1; padding:8px 19px; color:#34554d; font-size:12px; font-weight:750; border-top:1px solid var(--line) }
.match { display:grid; grid-template-columns:78px minmax(0,1fr) auto; align-items:center; border-top:1px solid #edf1ef; padding:8px 15px; min-height:60px; gap:5px }
.match:last-child { padding-bottom:11px }
.match-info { display:grid; gap:3px; justify-items:start; font-variant-numeric:tabular-nums; color:var(--muted); font-size:11px }
.pill { border-radius:5px; background:#edf2f0; color:#46635a; line-height:1.55; padding:1px 5px; font-size:10px; white-space:nowrap }
.pill.live { background:#e5faf1; color:#006b4c; font-weight:800 }
.match-link { display:grid; grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr); align-items:center; gap:7px; color:var(--ink); text-align:center; width:100%; border:0; border-radius:7px; background:transparent; padding:7px 2px; font-weight:750 }
.match-link:hover,.row-link:hover { background:#ebf7f1 }
.team-slot,.team-name { display:flex; align-items:center; gap:7px; min-width:0 }
.team-slot.home { flex-direction:row-reverse; text-align:right }
.team-slot.away { text-align:left }
.badge { display:inline-grid; place-items:center; width:24px; height:24px; flex:none; color:#627c74; font-size:11px; position:relative }
.badge img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:white; border-radius:3px; visibility:hidden }
.badge img.ready { visibility:visible }
.score { font-size:17px; font-weight:850; letter-spacing:.02em; padding:4px; border-radius:5px; background:#eef4f1; font-variant-numeric:tabular-nums }
.star { background:transparent; border:0; color:#607b71; border-radius:6px; font-size:19px; line-height:1.1; min-width:30px; min-height:34px }
.star[aria-pressed=true] { color:#8d6011; background:#fff3d8 }
.sidebar { display:grid; gap:14px }
.card-head { justify-content:space-between; padding:13px 14px; border-bottom:1px solid var(--line) }
.mini-row { display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:7px; padding:8px 14px; border-bottom:1px solid #edf1ef; font-size:12px }
.mini-row:last-child { border-bottom:0 }
.mini-row .badge { width:19px; height:19px }
.mini-row strong { font-variant-numeric:tabular-nums }
.rank { color:#526767; font-weight:800; font-size:12px }
.table-wrap { overflow:auto }
table { border-collapse:collapse; width:100%; text-align:right; font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums }
th,td { border-top:1px solid #e7eeeb; padding:8px 9px }
th { background:#edf5f1; font-size:11px; color:#355b51 }
th:first-child,td:first-child { padding-left:19px }
th:last-child,td:last-child { padding-right:19px }
th:nth-child(2),td:nth-child(2) { text-align:left }
td.points { color:#076750; font-weight:800 }
.row-link { color:var(--ink); padding:4px; border:0; background:transparent; border-radius:6px; font-weight:700 }
.row-link small { display:block; color:var(--muted); text-align:left; font-weight:500 }
.pagination { display:flex; justify-content:center; align-items:center; gap:10px; padding:12px; border-top:1px solid var(--line); color:var(--muted); font-size:12px }
footer { justify-content:space-between; gap:10px; padding:18px 0 24px; color:var(--muted); font-size:12px }
dialog { color:var(--ink); width:min(640px,calc(100% - 24px)); max-height:86vh; padding:0; border:1px solid var(--line); border-radius:14px; box-shadow:0 24px 100px #04181677 }
dialog::backdrop { background:#04151b8c }
.dialog-header { position:sticky; top:0; z-index:1; display:flex; justify-content:space-between; align-items:center; gap:10px; background:white; border-bottom:1px solid var(--line); padding:12px 17px }
#detailBody { padding:16px 17px 21px }
.detail-score { display:flex; justify-content:center; align-items:center; gap:18px; padding:12px 0; text-align:center; font-weight:800 }
.detail-score .score { min-width:65px }
.detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0 }
.detail-grid div { background:#eef5f1; padding:8px; border-radius:6px }
.detail-grid dt { color:var(--muted); font-size:11px }
.detail-grid dd { margin:4px 0 0; font-weight:750; overflow-wrap:anywhere }
@media(max-width:940px) {
  .layout { grid-template-columns:minmax(0,1fr) 244px }
  .wrap { width:calc(100% - 38px) }
}
@media(max-width:740px) {
  .layout,.layout.full { grid-template-columns:minmax(0,1fr) }
  .sidebar { grid-template-columns:1fr 1fr }
  .wrap { width:calc(100% - 26px) }
  .hero { margin-top:14px; border-radius:14px; min-height:262px; padding:22px; flex-wrap:wrap; gap:15px; background-position:60% center }
  .hero h1 { margin-bottom:13px }
  .hero-stats div { padding:0 13px }
  .hero-stats dd { font-size:21px }
  .header-inner { min-height:54px }
}
@media(max-width:420px) {
  .header-meta { gap:8px }
  .header-meta strong { display:none }
  .statusbar { align-items:start }
  .data-actions { gap:5px }
  .auto { font-size:11px }
  .tabs { gap:1px; justify-content:space-between }
  .tabs button { padding-inline:4px; font-size:12px }
  .heading { padding-inline:12px }
  .filters { padding-inline:12px }
  .match { padding-inline:8px; grid-template-columns:47px minmax(0,1fr) 27px }
  .match-link { gap:4px; grid-template-columns:minmax(0,1fr) 41px minmax(0,1fr); font-size:11px }
  .match-link .badge { width:17px; height:17px }
  .team-slot { gap:3px }
  .score { font-size:13px }
  .star { min-width:25px }
  .sidebar { grid-template-columns:1fr }
  footer { align-items:start }
}
