/* KOZTS 2026/27 */
:root {
  color-scheme: dark;
  --bg: #08162b;
  --panel: #0d203b;
  --panel-raised: #122947;
  --stroke: #263b56;
  --text: #eef3fb;
  --muted: #99aac1;
  --accent: #d9bb77;
  --accent-soft: #d9bb7714;
  --accent-2: #e9d39e;
  --danger: #f08b87;
  --shadow: none;
  --card-bg: #112641;
  --card-border: #2b405c;
  --card-shadow: none;
  --card-glow-start: transparent;
}
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { background: var(--bg); color: var(--text); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { transition: background .18s, color .18s, border-color .18s; }
button:hover { transform: none; box-shadow: none; }
:is(button, a, input, select, [role="button"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a { color: inherit; }
a:hover { text-decoration: none; }
::selection { background: #d9bb7750; color: var(--text); }
.bg-shapes { background: radial-gradient(ellipse at 80% 0, #16345c66, transparent 45%); filter: none; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 20px; border-radius: 6px; background: var(--accent); color: #08162b; }
.skip-link:focus { top: 12px; }

/* Masthead */
.topbar { position: relative; z-index: 5; display: block; padding: 0 32px; background: #09182ef0; border-bottom: 1px solid var(--stroke); box-shadow: none; backdrop-filter: blur(14px); }
.topbar-inner { max-width: 1320px; min-height: 72px; margin: auto; display: flex; align-items: center; gap: 30px; }
.brand-home-link, body.theme-light .brand-home-link { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text); }
.brand-home-link:hover { transform: none; background: none; }
.brand-mark, body.theme-light .brand-mark { width: 37px; height: 43px; padding: 0; flex: none; background: transparent; color: var(--accent); box-shadow: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-copy strong { font-family: "Barlow Condensed", sans-serif; font-size: 29px; letter-spacing: .025em; font-weight: 700; }
.brand-dot, .site-footer strong span { color: var(--accent); }
.brand-copy small { font-size: 7px; letter-spacing: .16em; font-weight: 600; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 22px; width: auto; margin-left: auto; }
.source-link { font-size: 11px; font-weight: 500; color: var(--muted); }
.source-link:hover { color: var(--text); }
.source-link span { color: var(--accent); margin-left: 7px; font-size: 15px; }
.theme-toggle, body.theme-light .theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--stroke); border-radius: 8px; background: transparent; box-shadow: none; color: var(--accent); font-size: 18px; }
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }

/* A compact season banner. The competition stays above the fold. */
.layout { max-width: 1384px; margin: auto; padding: 24px 32px 56px; gap: 0; }
.layout > * { min-width: 0; max-width: 100%; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 104px; padding: 0; gap: 0; overflow: hidden; border: 1px solid #355074; border-radius: 12px; background: radial-gradient(ellipse at 85% 120%, #235487 0, transparent 55%), linear-gradient(105deg, #0f2849, #15385e); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .1; background-image: repeating-linear-gradient(115deg, transparent 0 8px, #b6c5dc55 8px 9px); pointer-events: none; }
.hero::after { content: ""; position: absolute; top: 29px; bottom: 29px; left: 0; width: 3px; background: linear-gradient(transparent, #d9bb77, transparent); }
.hero-copy { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 24px 30px; }
.hero-eyebrow, .section-kicker { margin: 0; font-size: 9px; font-weight: 700; letter-spacing: .17em; color: var(--accent); }
.hero-eyebrow { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: #b3c5dc; font-size: 8px; white-space: nowrap; }
.hero-eyebrow strong { color: #e5ca8d; font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-weight: 500; letter-spacing: .04em; }
.hero h1 { margin: 0; color: #f4f6fb; font-family: "Barlow Condensed", sans-serif; font-size: 38px; font-weight: 600; letter-spacing: -.012em; line-height: 1; }

/* One place to select and navigate a league. */
.league-hub { position: relative; z-index: 3; margin-top: 22px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--panel); }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 24px 17px; }
.league-control { width: min(100%, 360px); min-width: 0; }
.league-control label { display: block; margin: 0 0 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.league-picker { position: relative; width: 100%; }
.league-toggle, body.theme-light .league-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 7px 13px; border: 1px solid #536080; border-radius: 6px; background: var(--panel-raised); color: var(--text); box-shadow: none; font-size: 17px; line-height: 1.35; font-weight: 600; text-align: left; }
.league-toggle:hover, .league-picker.open .league-toggle { border-color: var(--accent); }
.league-toggle .chevron { color: var(--accent); font-size: 21px; line-height: 1; transition: transform .18s; }
.league-picker.open .chevron { transform: rotate(180deg); }
.league-menu { width: 100%; max-height: 370px; margin-top: 7px; padding: 5px; overflow-y: auto; border: 1px solid var(--stroke); border-radius: 8px; background: var(--panel-raised); box-shadow: 0 16px 40px #0005; z-index: 20; }
.league-picker.open .league-menu { display: block; }
.league-option, body.theme-light .league-option { padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--text); }
.league-option button { display: block; width: 100%; min-height: 40px; padding: 9px 12px; border: 0; background: transparent; color: inherit; text-align: left; box-shadow: none; font-size: 12px; font-weight: 500; }
.league-option:hover, .league-option.active, body.theme-light .league-option.active { color: var(--accent); background: var(--accent-soft); }
.league-option.disabled { opacity: .48; }
.snapshot { display: flex; align-items: center; margin: 0; }
.snapshot-item { display: flex; flex-direction: column; align-items: flex-start; padding: 0 30px; border-left: 1px solid var(--stroke); }
.snapshot-item:last-child { padding-right: 0; }
.snapshot-item strong { font-family: "Barlow Condensed", sans-serif; font-size: 31px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.snapshot-item:first-child strong { color: var(--accent); }
.snapshot-item small { margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.snapshot-refresh strong { font-size: 26px; }
.tabs { display: flex; flex-wrap: nowrap; gap: 32px; width: 100%; padding: 0 24px; border: 0; border-top: 1px solid var(--stroke); border-radius: 0; background: transparent; }
.tab-button, body.theme-light .tab-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; margin: 0; min-height: 50px; padding: 13px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tab-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.tab-label-short { display: none; }
.tab-button:hover { color: var(--text); }
.tab-button.active, body.theme-light .tab-button.active { color: var(--accent); border: 0; background: transparent; }
.tab-button.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); }
.feed-status { display: flex; align-items: center; gap: 7px; margin: 10px 1px 0; color: var(--muted); font-size: 10px; }
.feed-status-dot { display: block; flex: none; width: 5px; height: 5px; border-radius: 50%; background: #879fbd; }
.feed-status .status, body.theme-light .status { color: var(--muted); font-size: 10px; font-weight: 400; }
.league-note { margin: 0 0 0 auto; font-size: 10px; white-space: nowrap; }
.league-note a { margin-left: 3px; color: var(--accent); }
.season-warning { padding: 12px 15px; margin: 12px 0 0; border: 1px solid #ac8550; border-radius: 6px; color: var(--accent); background: var(--accent-soft); font-size: 12px; }
.season-warning[hidden] { display: none; }

/* Scoreboards */
.panel, body.theme-light .glass { box-shadow: none; }
.tab-panel { gap: 0; padding: 21px 0 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; }
.view-toggle { display: inline-flex; margin: 0; gap: 2px; flex-wrap: nowrap; border: 1px solid var(--stroke); border-radius: 6px; padding: 3px; background: var(--panel); }
.view-btn, body.theme-light .view-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 10px; box-shadow: none; }
.view-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.view-btn.active, body.theme-light .view-btn.active { background: var(--panel-raised); color: var(--accent); box-shadow: none; }
.schedule-block { margin: 0 0 20px; padding: 20px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--panel); box-shadow: none; backdrop-filter: none; }
.schedule-block:last-child { margin-bottom: 0; }
.schedule-block .panel-head, .tab-panel .panel-head { margin: 0 0 15px; }
.section-title { display: flex; align-items: center; gap: 9px; }
.section-indicator { width: 7px; height: 7px; border: 1px solid #82a5d5; border-radius: 50%; }
.section-indicator.finished { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.panel-head h2 { font-family: "Barlow Condensed", sans-serif; font-size: 25px; font-weight: 600; letter-spacing: .005em; line-height: 1.15; }
.section-index { color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .13em; }
.recent-period { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--stroke); }
.section-kicker { margin-bottom: 4px; font-size: 8px; }
.filters { width: auto; gap: 8px; margin: 0; justify-content: flex-end; }
select, input[type="search"] { min-width: 0; min-height: 39px; padding: 8px 11px; border: 1px solid var(--stroke); border-radius: 5px; background: var(--bg); box-shadow: none; color: var(--text); font-size: 11px; }
select, .round-filter { flex: 0 0 165px; }
input[type="search"] { flex: 0 1 210px; }
input::placeholder { color: var(--muted); opacity: 1; }
select:focus, input[type="search"]:focus { border-color: var(--accent); }
.grid, .schedule-block .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.match-card, body.theme-light .match-card { min-height: 174px; gap: 0; padding: 16px; border: 1px solid var(--card-border); border-radius: 7px; background: var(--card-bg); box-shadow: none; cursor: default; }
.match-card::before, body.theme-light .match-card::before { content: none; }
.match-card:hover, .match-row:hover { transform: none; border-color: var(--card-border); box-shadow: none; }
.match-card[role="button"], .match-row[role="button"] { cursor: pointer; }
.match-card[role="button"]:hover, .match-row[role="button"]:hover { border-color: #a68f60; background: var(--panel-raised); transform: translateY(-2px); }
.match-card.small { padding: 16px; gap: 0; }
.match-top { justify-content: space-between; align-items: center; gap: 7px; margin-bottom: 14px; }
.match-tag, body.theme-light .match-tag { padding: 3px 7px; border: 1px solid #7299ce33; border-radius: 3px; background: #769bca12; color: #acc4e3; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.match-top-date { color: var(--muted); font-size: 10px; font-weight: 400; }
.match-line { display: flex; align-items: center; gap: 12px; min-height: 30px; padding-bottom: 4px; }
.match-home, .match-away { display: block; flex: 1; min-width: 0; color: var(--text); font-size: 13px; font-weight: 500; text-shadow: none; text-align: left; line-height: 1.45; overflow-wrap: anywhere; }
.match-score, body.theme-light .match-card .match-score { flex: none; min-width: 29px; text-align: center; color: var(--accent); font-family: "Barlow Condensed", sans-serif; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.match-score.match-pending, body.theme-light .match-card .match-score.match-pending { color: var(--muted); opacity: .5; font-size: 21px; }
.match-meta { gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 9px; line-height: 1.3; }
.match-meta .match-date { color: var(--muted); }
.match-state { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--muted); font-size: 9px; }
.match-state.completed { color: var(--accent); }
.match-state.completed::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.match-vs { display: none; }
.match-status-note { padding: 2px 5px; border-radius: 3px; font-size: 9px; }
.match-row, body.theme-light .match-row { grid-template-columns: 48px minmax(0, 1fr) 70px minmax(110px, .3fr); padding: 12px 15px; border: 1px solid var(--card-border); border-radius: 6px; background: var(--card-bg); box-shadow: none; cursor: default; }
.match-row-team { color: var(--text); text-shadow: none; font-size: 12px; font-weight: 500; }
.match-row-vs { color: var(--muted); font-size: 9px; font-weight: 400; margin: 0 4px; }
.match-row-score { color: var(--accent); font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-variant-numeric: tabular-nums; }
.match-row-meta { color: var(--muted); font-size: 10px; }
.match-list { gap: 8px; }
@media (min-width: 801px) {
  #recent.grid:has(> .match-card:only-child) { grid-template-columns: 1fr; }
  #recent.grid > .match-card:only-child { display: grid; grid-template-columns: 155px minmax(0, 1fr) minmax(0, 1fr) 125px; align-items: center; min-height: 104px; gap: 24px; padding: 20px 24px; background: linear-gradient(105deg, var(--card-bg), var(--panel-raised)); }
  #recent.grid > .match-card:only-child .match-top { align-items: flex-start; flex-direction: column; justify-content: center; margin: 0; gap: 10px; }
  #recent.grid > .match-card:only-child .match-line { position: relative; padding: 0; gap: 22px; }
  #recent.grid > .match-card:only-child .match-home { text-align: right; }
  #recent.grid > .match-card:only-child .match-line:nth-child(3) { flex-direction: row-reverse; }
  #recent.grid > .match-card:only-child .match-line:nth-child(2)::after { content: ":"; position: absolute; right: -16px; top: 50%; transform: translateY(-56%); color: var(--muted); font-family: "Barlow Condensed", sans-serif; font-size: 27px; }
  #recent.grid > .match-card:only-child .match-score { font-size: 38px; }
  #recent.grid > .match-card:only-child .match-meta { align-items: flex-end; justify-content: center; flex-direction: column; border: 0; border-left: 1px solid var(--stroke); padding: 6px 0 6px 12px; margin: 0; min-height: 45px; }
  #recent.grid > .match-card:only-child .match-state { margin: 0; }
}
.empty-state { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 16px; border: 1px dashed var(--stroke); border-radius: 6px; color: var(--muted); font-size: 12px; }
.empty-state::before { content: "◷"; color: var(--accent); font-size: 23px; }

/* Tables, club details, and match sheets share the same materials. */
.tab-panel[data-tab-panel="table"], .tab-panel[data-tab-panel="ranking"], .tab-panel[data-tab-panel="team"] { margin-top: 21px; padding: 24px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--panel); }
.eyebrow { margin-bottom: 4px; color: var(--accent); font-size: 9px; letter-spacing: .12em; }
.table, body.theme-light .table { background: transparent; font-variant-numeric: tabular-nums; }
.table thead th, body.theme-light .table thead th { padding: 12px 10px; border-bottom: 1px solid var(--stroke); border-radius: 0; background: var(--panel-raised); color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.table td, body.theme-light .table td { padding: 14px 10px; border-bottom: 1px solid var(--stroke); color: var(--text); font-size: 12px; }
.table tbody tr[data-team-id] td:nth-child(2) { font-weight: 600; }
.table tbody tr[data-team-id] td:nth-child(4) { color: var(--accent); font-weight: 700; }
.table tbody tr[data-team-id]::before { background: var(--accent-soft); border-radius: 0; }
.table tbody tr[data-team-id]:hover { transform: none; }
.table-group-row td { color: var(--accent) !important; background: var(--accent-soft) !important; }
.player-link { color: var(--accent); box-shadow: none; font-weight: 600; }
.player-link:hover { color: var(--text); }
.two-col { gap: 20px; }
.two-col h3 { font-family: "Barlow Condensed", sans-serif; font-size: 25px; font-weight: 600; }
.pill, body.theme-light .pill { border: 1px solid var(--stroke); border-radius: 5px; background: var(--panel-raised); color: var(--text); box-shadow: none; }
.modal-dialog, body.theme-light .modal-dialog { max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid var(--stroke); border-radius: 12px; background: var(--panel); box-shadow: 0 30px 100px #0005; }
.modal-close, body.theme-light .modal-close { background: var(--panel-raised); border-color: var(--stroke); box-shadow: none; color: var(--text); }
.player-match-card, body.theme-light .player-match-card { background: var(--card-bg); border-color: var(--stroke); box-shadow: none; }
.match-modal-score { color: var(--accent); }
#toast { background: var(--panel-raised); color: var(--text); border: 1px solid var(--stroke); }
.site-footer { position: relative; max-width: 1320px; margin: 0 auto; padding: 25px 0 36px; border-top: 1px solid var(--stroke); display: flex; align-items: center; gap: 32px; justify-content: space-between; }
.site-footer > div { max-width: 470px; }
.site-footer strong { font-family: "Barlow Condensed", sans-serif; font-size: 26px; line-height: 1; }
.site-footer p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.site-footer a { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }

/* Paper white, navy type, and antique gold in the alternative theme. */
body.theme-light { color-scheme: light; --bg: #f1f3f7; --panel: #ffffff; --panel-raised: #edf1f7; --stroke: #d8dfe9; --text: #142a49; --muted: #60718a; --accent: #85641f; --accent-soft: #a7812810; --accent-2: #85641f; --card-bg: #fafbfd; --card-border: #d8e0eb; --card-shadow: none; background: var(--bg); }
body.theme-light .bg-shapes { background: radial-gradient(ellipse at 80% 0, #dce5f580, transparent 45%); }
body.theme-light .topbar { background: #fffffff0; border-color: var(--stroke); }
body.theme-light .hero { box-shadow: 0 6px 20px #142a4910; }
body.theme-light .match-tag { color: #496992; background: #e9eff8; border-color: #cbd7e7; }
body.theme-light .league-toggle { border-color: #b3bfd1; }
body.theme-light .match-card[role="button"]:hover, body.theme-light .match-row[role="button"]:hover { background: #fff; }

@media (max-width: 1100px) {
  .snapshot-item { padding: 0 22px; }
  .grid, .schedule-block .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .snapshot-item { padding: 0 16px; }
  .snapshot-refresh { display: none; }
  .league-control { width: min(100%, 330px); }
  .tabs { gap: 24px; }
  .tab-button { font-size: 11px; }
  .tab-button svg { width: 15px; }
  .schedule-toolbar { flex-wrap: wrap; }
  .filters { flex-wrap: wrap; }
  .site-footer { margin: 0 32px; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .topbar-inner { min-height: 62px; gap: 15px; }
  .brand-mark, body.theme-light .brand-mark { width: 30px; height: 35px; }
  .brand-copy strong { font-size: 25px; }
  .brand-copy small { font-size: 6px; }
  .top-actions { width: auto; gap: 13px; }
  .source-link { font-size: 9px; }
  .source-link span { margin-left: 3px; }
  .theme-toggle, body.theme-light .theme-toggle { width: 32px; height: 32px; }
  .layout { padding: 14px 14px 32px; }
  .hero { min-height: 86px; border-radius: 9px; }
  .hero-copy { gap: 12px; padding: 20px 17px; }
  .hero-eyebrow { font-size: 7px; letter-spacing: .11em; }
  .hero-eyebrow strong { font-size: 18px; }
  .hero h1 { font-size: clamp(25px, 7vw, 32px); }
  .league-hub { margin-top: 14px; border-radius: 8px; }
  .workspace-head { flex-wrap: wrap; gap: 14px; padding: 15px 15px 12px; }
  .league-control { width: 100%; }
  .league-control label { font-size: 8px; margin-bottom: 6px; }
  .league-toggle, body.theme-light .league-toggle { min-height: 43px; font-size: 15px; }
  .snapshot { width: 100%; gap: 0; justify-content: space-between; }
  .snapshot-item { flex-direction: row; align-items: baseline; gap: 5px; padding: 0; border: 0; }
  .snapshot-item strong { font-size: 20px; }
  .snapshot-item small { margin: 0; font-size: 9px; }
  .snapshot-refresh { display: flex; }
  .snapshot-refresh strong { font-size: 16px; color: var(--muted); }
  .snapshot-refresh small { font-size: 0; }
  .snapshot-refresh small::after { content: "aktualizacja"; font-size: 8px; }
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 12px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-button, body.theme-light .tab-button { min-height: 46px; padding: 12px 0; font-size: 11px; gap: 6px; }
  .tab-button svg { width: 14px; height: 14px; }
  .tab-label-full { display: none; }
  .tab-label-short { display: inline; }
  .feed-status { margin-top: 9px; align-items: flex-start; gap: 5px; }
  .feed-status-dot { margin-top: 5px; }
  .feed-status .status, body.theme-light .status { font-size: 9px; line-height: 1.4; }
  .league-note { display: none; }
  .tab-panel { padding-top: 18px; }
  .view-btn, body.theme-light .view-btn { font-size: 9px; gap: 4px; padding: 4px 7px; }
  .view-btn svg { width: 10px; }
  .schedule-block { margin-bottom: 14px; padding: 15px 12px 12px; border-radius: 8px; }
  .panel-head { flex-direction: row; align-items: center; gap: 8px; }
  .panel-head h2 { font-size: 23px; }
  .section-index { font-size: 7px; letter-spacing: .07em; }
  .section-title { gap: 8px; }
  .recent-period { display: none; }
  .section-indicator { width: 6px; height: 6px; }
  .grid, .schedule-block .grid { grid-template-columns: 1fr; gap: 9px; }
  .match-card, .match-card.small, body.theme-light .match-card { min-height: 171px; padding: 15px; }
  .match-home, .match-away { font-size: 12px; }
  .match-line { min-height: 30px; }
  .match-top-date { font-size: 9px; }
  .match-meta { font-size: 9px; }
  .schedule-toolbar { align-items: flex-start; gap: 14px; }
  .filters { width: 100%; justify-content: stretch; flex-wrap: wrap; }
  select, .round-filter, input[type="search"] { flex: 1 1 120px; width: 100%; }
  .match-row, body.theme-light .match-row { grid-template-columns: 1fr 50px; gap: 7px; }
  .match-row-chip { grid-column: 1; }
  .match-row-teams { grid-column: 1; grid-row: 2; flex-direction: column; gap: 4px; }
  .match-row-vs { display: none; }
  .match-row-score { grid-column: 2; grid-row: 2; text-align: right; }
  .match-row-meta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 10px; text-align: left; }
  .tab-panel[data-tab-panel="table"], .tab-panel[data-tab-panel="ranking"], .tab-panel[data-tab-panel="team"] { padding: 16px 12px; margin-top: 18px; }
  .tab-panel:not([data-tab-panel="schedule"]) > .panel-head { flex-wrap: wrap; }
  .table td { font-size: 11px; }
  .site-footer { margin: 0 14px; padding: 23px 2px 30px; display: block; }
  .site-footer a { display: inline-block; margin-top: 15px; }
  .modal-dialog { width: calc(100vw - 20px); padding: 24px 12px; }
}
@media (max-width: 360px) {
  .tab-button svg { display: none; }
  .source-link { display: none; }
  .hero-copy { padding-left: 16px; }
  .snapshot-refresh { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
