/* sportswiki (sportswikii.com) — light live-score layout, design.md.
 * Pattern of the foreign category leaders (three columns, competition-grouped
 * two-line match rows, status filters, date strip, white panels on a grey page).
 * Palette chosen 24.11.2026 (variant D): black masthead and footer, orange for
 * "active", red for "live"; Rubik throughout.
 * The site is always light: no reaction to the OS dark theme.
 */

@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin-ext.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	color-scheme: only light;

	--color-page:     #f2f2f0;
	--color-panel:    #ffffff;
	--color-panel-2:  #f7f7f5;   /* group heads, hover */
	--color-panel-3:  #ebebe7;   /* pressed, bars */
	--color-ink:      #161616;
	--color-ink-2:    #5e5e5a;   /* secondary text */
	--color-ink-3:    #9d9d98;   /* placeholders, chevrons */
	--color-line:     #e7e7e3;   /* hairlines */
	--color-brand:    #111111;   /* masthead, footer */
	--color-brand-2:  #242424;   /* masthead hover */
	--color-brand-ink: #ffffff;
	--color-brand-mut: #b3b3ad;
	--color-accent:   #ff6a00;   /* orange: active underline, marks */
	--color-accent-t: #c75000;   /* orange as text on white (4.6:1) */
	--color-accent-bg: #fff0e5;
	--color-live:     #e8302a;   /* live red */
	--color-live-bg:  #fdeceb;
	--color-win:      oklch(52% 0.13 150);
	--color-draw:     #a3a39e;
	--color-loss:     oklch(57% 0.19 27);
	--color-card-y:   oklch(84% 0.16 92);
	--color-card-y-edge: oklch(64% 0.13 85);
	--color-focus:    #ff6a00;
	--crest-l: 92%;
	--crest-c: 0.03;

	--font-body: "Rubik", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--space-3xs: 0.25rem; --space-2xs: 0.5rem; --space-xs: 0.75rem;
	--space-sm: 1rem;     --space-md: 1.5rem;  --space-lg: 2rem; --space-xl: 3rem;

	--radius: 12px;
	--radius-s: 8px;
	--shadow: 0 1px 2px oklch(18% 0 0 / 0.06);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-fast: 120ms;

	--wrap: 82rem;
	--left: 15rem;
	--right: 20rem;
	--gap: 0.875rem;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--color-page); }
body {
	margin: 0; background: var(--color-page); color: var(--color-ink);
	font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.45;
	font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
	display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-style: normal; overflow-wrap: anywhere; min-width: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-sm); top: -4rem; z-index: 60; background: var(--color-ink); color: var(--color-panel); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-s); font-weight: 600; }
.skip:focus { top: var(--space-2xs); }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--space-xs); }
@media (min-width: 768px) { .wrap { padding-inline: var(--space-sm); } }
.site-main { padding-block: var(--gap) var(--space-xl); }

.hscroll { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }

.dot { display: inline-block; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--color-live); flex: none; }
@media (prefers-reduced-motion: no-preference) { .dot { animation: pulse 1.6s var(--ease-out) infinite; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ------------------------------------------------------------------ masthead */

.hd { position: relative; z-index: 40; }
@media (min-width: 900px) { .hd { position: sticky; top: 0; } }
.hd__top { background: var(--color-brand); color: var(--color-brand-ink); }
.hd__bar { position: relative; display: flex; align-items: center; gap: var(--space-md); height: 3.5rem; }
.brand { display: inline-flex; align-items: center; flex: none; font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.015em; color: var(--color-brand-ink); }
.brand::before { content: ""; width: 1.625rem; height: 1.625rem; border-radius: 7px; background: var(--color-accent) url("../img/mark.svg") center / 100% no-repeat; flex: none; margin-right: 0.5rem; }
.brand span { color: var(--color-accent); }
.hd__sports { display: flex; gap: 0.25rem; min-width: 0; flex: 1; align-self: stretch; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); padding-right: 2rem; }
.hd__sports a { display: inline-flex; align-items: center; padding: 0 0.625rem; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-brand-mut); white-space: nowrap; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.hd__sports a:hover { color: var(--color-brand-ink); background: var(--color-brand-2); }
.hd__sports a[aria-current="page"] { color: var(--color-brand-ink); border-bottom-color: var(--color-accent); }

.search { position: relative; display: flex; align-items: center; gap: var(--space-2xs); flex: none; width: 15rem; height: 2.25rem; padding: 0 var(--space-xs); border-radius: 999px; background: var(--color-brand-2); color: var(--color-brand-ink); }
.search svg { width: 1rem; height: 1rem; flex: none; opacity: 0.8; }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; font-size: 0.9375rem; color: var(--color-brand-ink); outline: none; }
.search:focus-within { outline: 2px solid var(--color-accent); }
.search input::placeholder { color: var(--color-brand-mut); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; background: var(--color-panel); color: var(--color-ink); border-radius: var(--radius-s); box-shadow: 0 8px 24px oklch(18% 0 0 / 0.18); overflow: hidden; display: none; }
.suggest.is-open { display: block; }
.suggest a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-xs); padding: 0.625rem var(--space-xs); border-bottom: 1px solid var(--color-line); font-weight: 600; }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.is-active { background: var(--color-panel-2); }
.suggest small { color: var(--color-ink-2); font-weight: 400; font-size: 0.8125rem; white-space: nowrap; }
.search-btn { display: none; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--color-brand-2); color: var(--color-brand-ink); flex: none; }
.search-btn svg { width: 1.125rem; height: 1.125rem; }

@media (max-width: 899px) {
	.hd__bar { gap: var(--space-xs); }
	.search-btn { display: grid; margin-left: auto; }
	.search { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); width: auto; height: 2.75rem; background: var(--color-brand); box-shadow: 0 6px 18px oklch(18% 0 0 / 0.25); }
	.search.is-open { display: flex; }
	.hd__sports { display: none; }
}

.hd__sub { background: var(--color-panel); border-bottom: 1px solid var(--color-line); }
.hd__subin { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.nav { display: flex; gap: 0.25rem; min-width: 0; }
.nav a { display: inline-flex; align-items: center; gap: 0.375rem; height: 2.75rem; padding: 0 0.75rem; font-weight: 600; font-size: 0.875rem; color: var(--color-ink-2); white-space: nowrap; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.nav a:hover { color: var(--color-ink); }
.nav a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.hd__meta { flex: none; display: flex; gap: var(--space-sm); font-size: 0.8125rem; color: var(--color-ink-2); white-space: nowrap; }
.hd__live { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--color-live); font-weight: 600; }
@media (max-width: 899px) { .hd__meta { display: none; } }

/* Sports line: shown under the masthead on phones (the dark bar hides them there). */
.rail { background: var(--color-panel); border-bottom: 1px solid var(--color-line); }
.rail__in { display: flex; gap: 0.25rem; }
.rail a { padding: 0.5rem 0.625rem; font-size: 0.8125rem; font-weight: 600; color: var(--color-ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.rail a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-accent); }
@media (min-width: 900px) { .rail { display: none; } }

/* ------------------------------------------------------------------ layout */

.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
.cols > .side-l { order: 3; }
@media (min-width: 1024px) {
	.cols--two, .cols--three { grid-template-columns: minmax(0, 1fr) var(--right); }
	.cols--three > .side-l { display: none; }
}
@media (min-width: 1240px) {
	.cols--three { grid-template-columns: var(--left) minmax(0, 1fr) var(--right); }
	.cols--three > .side-l { display: flex; order: 0; }
}
.stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
@media (min-width: 1024px) { aside.stack { position: sticky; top: 7rem; } }
@media (min-width: 1024px) and (max-height: 900px) { aside.stack { position: static; } }

/* Panels */
.box { background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.box__hd { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: 3rem; padding: 0.5rem var(--space-sm); border-bottom: 1px solid var(--color-line); }
.box__hd h2, .box__hd h3 { font-size: 0.9375rem; font-weight: 700; line-height: 1.25; }
.box__hd h2 a:hover { color: var(--color-accent-t); }
.box__hd .more, .box__hd .kicker { flex: none; font-size: 0.8125rem; font-weight: 600; color: var(--color-accent-t); white-space: nowrap; }
.box__hd .kicker { color: var(--color-ink-2); }
.box__hd .more:hover { text-decoration: underline; }
.box > .more { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding-inline: var(--space-sm); border-top: 1px solid var(--color-line); font-size: 0.875rem; font-weight: 600; color: var(--color-accent-t); }
.box > .more:hover { background: var(--color-panel-2); }
.box__bd { padding: var(--space-xs) var(--space-sm); }
.box__bd--flush { padding: 0; }
.box > .tbl-scroll, .box > .list, .box > .news-mini, .box > .facts, .box > .timeline, .box > .stat, .box > ul, .box > dl { padding-inline: var(--space-sm); }
.box > .tbl-scroll { padding-inline: 0; }
.subhead { padding: var(--space-xs) var(--space-sm) var(--space-3xs); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-ink-2); }
.box__bd > .subhead { padding-inline: 0; }
.sec-title { font-size: 1.0625rem; font-weight: 700; margin: var(--space-md) 0 var(--space-xs); }

.empty { padding: var(--space-md) var(--space-sm); font-size: 0.875rem; color: var(--color-ink-2); text-align: center; }
.empty b { display: block; margin-bottom: var(--space-3xs); font-size: 0.9375rem; color: var(--color-ink); }
.empty a { color: var(--color-accent-t); font-weight: 600; }
.tzline { margin-top: var(--space-2xs); font-size: 0.75rem; color: var(--color-ink-2); }

/* ------------------------------------------------------------------ page heads */

.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-3xs) var(--space-2xs); padding: 0 0 var(--space-xs); font-size: 0.8125rem; color: var(--color-ink-2); }
.crumbs a:hover { color: var(--color-accent-t); text-decoration: underline; }
.crumbs [aria-current] { color: var(--color-ink); }

.head { background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-sm); }
.h1 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.lede { margin-top: 0.375rem; max-width: 70ch; font-size: 0.875rem; color: var(--color-ink-2); }
.dateline { margin-top: 0.25rem; font-size: 0.875rem; color: var(--color-ink-2); }
.dateline a { color: var(--color-accent-t); font-weight: 600; }

/* Entity header card */
.ehd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); padding: var(--space-sm); margin-bottom: var(--gap); background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.ehd h1 { font-size: 1.625rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.ehd__body { min-width: 0; }
.ehd__meta { display: flex; flex-wrap: wrap; gap: 0.25rem var(--space-sm); margin-top: var(--space-2xs); font-size: 0.875rem; color: var(--color-ink-2); }
.ehd__meta b, .ehd__meta a { color: var(--color-ink); font-weight: 600; }
.ehd__meta a:hover { color: var(--color-accent-t); }
.ehd__meta .form { vertical-align: -0.3em; margin-left: 0.25rem; }
.ehd__aside { text-align: right; padding-left: var(--space-sm); border-left: 1px solid var(--color-line); }
@media (max-width: 639px) {
	.ehd { grid-template-columns: auto minmax(0, 1fr); }
	.ehd h1 { font-size: 1.375rem; }
	.ehd__aside { grid-column: 1 / -1; text-align: left; border-left: 0; padding: var(--space-xs) 0 0; border-top: 1px solid var(--color-line); }
	.ehd .crest--lg, .ehd .mono-crest.crest--lg { width: 3.5rem; height: 3.5rem; }
	.ehd .photo--xl, .ehd .mono-crest.crest--xl { width: 4rem; height: 5rem; }
}

.bignum { display: block; font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.bignum small { display: block; margin-top: 0.25rem; font-size: 0.75rem; font-weight: 500; color: var(--color-ink-2); letter-spacing: 0; }
.bignum--live { color: var(--color-live); }

/* Tabs: underline style as on the leaders' match and team pages. */
.tabs { display: flex; gap: 0.25rem; padding: 0 var(--space-2xs); background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.wrap > .tabs { margin-bottom: var(--gap); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; height: 2.75rem; padding: 0 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--color-ink-2); white-space: nowrap; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.tabs a:hover { color: var(--color-ink); }
.tabs a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-accent); }
/* A tab line under a header card joins it, as on the leaders' team and match pages. */
.ehd:has(+ .tabs), .head:has(+ .tabs) { border-radius: var(--radius) var(--radius) 0 0; }
.ehd + .tabs, .head + .tabs { margin-top: calc(-1 * var(--gap)); border-radius: 0 0 var(--radius) var(--radius); border-top: 1px solid var(--color-line); }
.wrap > .head { margin-bottom: var(--gap); }
.stack > .empty, .wrap > .empty { background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ crests */

.crest, .photo { flex: none; width: 1.125rem; height: 1.125rem; object-fit: contain; }
.photo { object-fit: cover; object-position: 50% 20%; background: var(--color-panel-2); border-radius: 50%; }
.crest--md, .photo--md { width: 1.75rem; height: 1.75rem; }
.crest--lg, .photo--lg { width: 4rem; height: 4rem; }
.crest--xl { width: 5rem; height: 5rem; }
.photo--xl { width: 5.5rem; height: 5.5rem; border-radius: 50%; }
.mono-crest {
	flex: none; display: inline-grid; place-items: center; width: 1.125rem; height: 1.125rem; border-radius: 50%;
	background: oklch(var(--crest-l) var(--crest-c) var(--h, 220)); color: var(--color-ink);
	font-size: 0.5rem; font-weight: 700; line-height: 1;
}
.mono-crest.crest--md { width: 1.75rem; height: 1.75rem; font-size: 0.6875rem; }
.mono-crest.crest--lg { width: 4rem; height: 4rem; font-size: 1.375rem; }
.mono-crest.crest--xl { width: 5rem; height: 5rem; font-size: 1.75rem; }

/* ------------------------------------------------------------------ match list */

.mgroup + .mgroup { border-top: 1px solid var(--color-line); }
.mgroup__hd { display: flex; align-items: center; gap: var(--space-2xs); min-height: 2.25rem; padding: 0.375rem var(--space-sm); background: var(--color-panel-2); border-bottom: 1px solid var(--color-line); font-size: 0.8125rem; }
.mgroup__hd a, .mgroup__hd b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mgroup__hd a:hover { color: var(--color-accent-t); text-decoration: underline; }
.mgroup__hd small { order: -1; flex: none; font-size: 0.75rem; font-weight: 500; color: var(--color-ink-2); text-transform: uppercase; letter-spacing: 0.02em; }
.mgroup__hd small::after { content: ":"; }
.mgroup__hd .crest, .mgroup__hd .mono-crest { order: -2; }
.mgroup__tbl { margin-left: auto; flex: none; font-size: 0.75rem; font-weight: 600; color: var(--color-accent-t); }
.mgroup__tbl:hover { text-decoration: underline; }

.mrow { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto 0.75rem; align-items: center; gap: 0.625rem; min-height: 3.25rem; padding: 0.375rem var(--space-sm) 0.375rem var(--space-xs); border-bottom: 1px solid var(--color-line); transition: background-color var(--dur-fast) var(--ease-out); }
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: var(--color-panel-2); }
.mrow__link { position: absolute; inset: 0; z-index: 1; }
.mrow__link:focus-visible { outline-offset: -2px; border-radius: 4px; }
.mrow__t { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 0.8125rem; line-height: 1.2; color: var(--color-ink-2); }
.mrow__date { font-size: 0.6875rem; color: var(--color-ink-3); }
.mrow.is-live .mrow__t { color: var(--color-live); font-weight: 700; }
.mrow__teams { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.mrow__side { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.875rem; line-height: 1.25; }
.mrow__side > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__side.is-win { font-weight: 700; }
.mrow__side.is-loss { color: var(--color-ink-2); }
.mrow__sc { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-end; min-width: 1.5rem; font-size: 0.875rem; font-weight: 700; line-height: 1.25; }
.mrow__sc b { font-weight: inherit; min-height: 1.25em; }
.mrow__sc b.is-loss { font-weight: 500; color: var(--color-ink-2); }
.mrow.is-live .mrow__sc { color: var(--color-live); }
.mrow__go { color: var(--color-ink-3); font-size: 1.125rem; line-height: 1; }
.mrow[hidden], .mgroup[hidden], [data-sport-box][hidden] { display: none; }
@media (max-width: 479px) {
	.mrow { grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 0.5rem; padding-right: var(--space-xs); }
	.mrow__go { display: none; }
}

/* ------------------------------------------------------------------ filters, dates */

.filter-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs); padding: var(--space-2xs) var(--space-xs); background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); }

.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; height: 2rem; padding: 0 0.75rem; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-panel); font-size: 0.8125rem; font-weight: 600; color: var(--color-ink); white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out); }
.chip:hover { background: var(--color-panel-2); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-panel); }
.chip .n { font-size: 0.75rem; font-weight: 500; opacity: 0.7; }
.chip--live .dot { width: 0.375rem; height: 0.375rem; }
.chips--bar { margin-block: var(--gap); }

.days { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days a { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3.5rem; height: 2.75rem; padding: 0 0.5rem; border-radius: var(--radius-s); line-height: 1.15; }
.days a:hover { background: var(--color-panel-2); }
.days b { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.days small { font-size: 0.75rem; color: var(--color-ink-2); white-space: nowrap; }
.days a[aria-current="page"] { background: var(--color-accent-bg); color: var(--color-accent-t); }
.days a[aria-current="page"] small { color: var(--color-accent-t); }
.stack > .days { padding: 0.25rem; background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 2.75rem; padding: 0 var(--space-md); border-radius: 999px; background: var(--color-ink); color: var(--color-panel); font-weight: 600; white-space: nowrap; border: 1px solid var(--color-ink); }
.btn:hover { background: var(--color-brand-2); }
.btn--ghost { background: var(--color-panel); color: var(--color-ink); border-color: var(--color-line); }
.btn--ghost:hover { background: var(--color-panel-2); }
.btns { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }

.az { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: var(--space-2xs); margin-bottom: var(--gap); background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.az a { display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; border-radius: var(--radius-s); font-weight: 600; font-size: 0.875rem; color: var(--color-ink-2); }
.az a:hover { background: var(--color-panel-2); color: var(--color-ink); }
.az a[aria-current="page"] { background: var(--color-ink); color: var(--color-panel); }

.pager { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: var(--gap); }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.5rem; border-radius: var(--radius-s); background: var(--color-panel); box-shadow: var(--shadow); font-weight: 600; }
.pager a:hover { background: var(--color-panel-2); }
.pager span[aria-current] { background: var(--color-ink); color: var(--color-panel); }

/* ------------------------------------------------------------------ tables */

.tbl-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.tbl th { padding: 0.5rem 0.375rem; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; color: var(--color-ink-2); text-align: center; white-space: nowrap; border-bottom: 1px solid var(--color-line); }
.tbl td { padding: 0.4375rem 0.375rem; border-bottom: 1px solid var(--color-line); text-align: center; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: var(--space-sm); }
.tbl th:last-child, .tbl td:last-child { padding-right: var(--space-sm); }
.tbl .l { text-align: left; }
.tbl td.l { white-space: normal; }
.tbl .pos { width: 2.25rem; }
.tbl td.pos { font-weight: 600; color: var(--color-ink-2); }
.tbl .pts { font-weight: 700; }
.tbl tbody tr:hover td { background: var(--color-panel-2); }
.tbl tr.is-me td { background: var(--color-accent-bg); font-weight: 600; }
.tbl .team { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.tbl .team a:hover { color: var(--color-accent-t); text-decoration: underline; }
.tbl small { color: var(--color-ink-2); }
.tbl--mini td { padding-block: 0.375rem; }
.tbl-group { padding: var(--space-xs) var(--space-sm) var(--space-3xs); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--color-ink-2); background: var(--color-panel-2); }
@media (max-width: 599px) { .hide-s { display: none; } }

.form { display: inline-flex; gap: 3px; }
.form i { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 4px; font-style: normal; font-size: 0.6875rem; font-weight: 700; line-height: 1; color: var(--color-panel); }
.form .W { background: var(--color-win); }
.form .D { background: var(--color-draw); }
.form .L { background: var(--color-loss); }

/* ------------------------------------------------------------------ lists */

.list li a { display: flex; align-items: center; gap: 0.625rem; min-height: 2.5rem; padding: 0.375rem 0; border-bottom: 1px solid var(--color-line); font-size: 0.875rem; }
.list li:last-child a { border-bottom: 0; }
.list li a[href]:hover { color: var(--color-accent-t); }
.list li a small { margin-left: auto; padding-left: var(--space-xs); font-size: 0.75rem; color: var(--color-ink-2); text-align: right; }
.list--compact li a { min-height: 2.25rem; font-size: 0.8125rem; }
.side-l .list li a { border-bottom: 0; min-height: 2.25rem; padding-block: 0.25rem; }
.side-l .list li a.is-on { color: var(--color-accent-t); font-weight: 700; }

.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.5rem; }
.grid-list a { display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; padding: 0.5rem 0.75rem; background: var(--color-panel); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.grid-list a:hover { background: var(--color-panel-2); }
.grid-list a > span { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: 0.875rem; line-height: 1.3; }
.grid-list small { font-weight: 400; font-size: 0.75rem; color: var(--color-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box__bd .grid-list a { box-shadow: none; background: var(--color-panel-2); }
.box__bd .grid-list a:hover { background: var(--color-panel-3); }
.box__bd .grid-list + .subhead { margin-top: var(--space-2xs); }

.news-mini li { padding-block: 0.625rem; border-bottom: 1px solid var(--color-line); }
.news-mini li:last-child { border-bottom: 0; }
.news-mini a { display: block; font-weight: 600; font-size: 0.875rem; line-height: 1.35; }
.news-mini a:hover { color: var(--color-accent-t); }
.news-mini time { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--color-ink-2); }

.facts > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-xs); padding-block: 0.5rem; border-bottom: 1px solid var(--color-line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.8125rem; color: var(--color-ink-2); }
.facts dd { font-size: 0.875rem; font-weight: 600; overflow-wrap: anywhere; }
.facts dd a { color: var(--color-accent-t); }

/* ------------------------------------------------------------------ top matches (right rail) */

.leads { display: flex; flex-direction: column; }
.lead { display: block; padding: var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--color-line); }
.lead:last-child { border-bottom: 0; }
.lead:hover { background: var(--color-panel-2); }
.lead__comp { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--color-ink-2); }
.lead__comp span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead__line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; }
.lead__line + .lead__line { margin-top: 0.375rem; }
.lead__line.is-loss { color: var(--color-ink-2); }
.lead__name { font-size: 0.9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lead__sc { font-size: 1.0625rem; font-weight: 700; }
.lead__st { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--color-ink-2); }
.lead.is-live .lead__st, .lead.is-live .lead__sc { color: var(--color-live); }
.lead--big .crest--md, .lead--big .mono-crest.crest--md, .lead .crest--md, .lead .mono-crest.crest--md { width: 1.5rem; height: 1.5rem; }

/* ------------------------------------------------------------------ match page */

.board { background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-sm) var(--space-sm) var(--space-md); }
.board__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem var(--space-md); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--color-line); font-size: 0.8125rem; color: var(--color-ink-2); }
.board__top a { color: var(--color-ink); font-weight: 600; }
.board__top a:hover { color: var(--color-accent-t); }
.board__main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: var(--space-sm); margin-top: var(--space-md); }
.board__team { display: flex; flex-direction: column; align-items: center; gap: 0.625rem; text-align: center; min-width: 0; }
.board__team a { font-size: clamp(0.9375rem, 0.8rem + 0.6vw, 1.25rem); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; max-width: 100%; }
.board__team a[href]:hover { color: var(--color-accent-t); }
.board__score { text-align: center; padding-top: 0.75rem; }
.board__score .s { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.board__score .when { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 700; line-height: 1; }
.board__score .st { display: inline-flex; justify-content: center; align-items: center; gap: 0.375rem; margin-top: 0.5rem; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--color-panel-2); font-size: 0.75rem; font-weight: 700; color: var(--color-ink-2); }
.board__score .st.is-live { background: var(--color-live-bg); color: var(--color-live); }
.board.is-live .s { color: var(--color-live); }
.board__periods { margin-top: var(--space-sm); text-align: center; font-size: 0.8125rem; color: var(--color-ink-2); white-space: pre-wrap; }
@media (max-width: 479px) { .board__team .crest--lg, .board__team .mono-crest.crest--lg { width: 3rem; height: 3rem; } }
.cols--match { margin-top: var(--gap); }

.timeline li { display: grid; grid-template-columns: minmax(0, 1fr) 3.25rem minmax(0, 1fr); align-items: center; min-height: 2.5rem; padding-block: 0.375rem; border-bottom: 1px solid var(--color-line); font-size: 0.875rem; }
.timeline li:last-child { border-bottom: 0; }
.timeline .h { display: flex; justify-content: flex-end; text-align: right; }
.timeline .min { justify-self: center; display: inline-grid; place-items: center; min-width: 2.5rem; height: 1.5rem; border-radius: 999px; background: var(--color-panel-2); font-size: 0.75rem; font-weight: 700; color: var(--color-ink-2); }
.timeline .ev { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.timeline .h .ev { flex-direction: row-reverse; }
.timeline small { color: var(--color-ink-2); font-size: 0.75rem; }
.ico { flex: none; display: inline-block; }
.ico--goal { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--color-ink); box-shadow: 0 0 0 2px var(--color-panel), 0 0 0 3px var(--color-ink); }
.ico--yellow, .ico--red { width: 0.5625rem; height: 0.8125rem; border-radius: 2px; background: var(--color-card-y); box-shadow: inset 0 0 0 1px var(--color-card-y-edge); }
.ico--red { background: var(--color-live); box-shadow: none; }
.ico--sub::before { content: "⇅"; font-size: 0.875rem; color: var(--color-win); font-weight: 700; }
.ico--var::before { content: "VAR"; font-size: 0.5625rem; font-weight: 700; padding: 1px 3px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--color-ink-2); color: var(--color-ink-2); }

.lineups { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding: var(--space-xs) var(--space-sm) var(--space-sm); }
@media (min-width: 600px) { .lineups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lineups h3 { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-line); font-size: 0.9375rem; font-weight: 700; }
.lineups h4 { padding: var(--space-xs) 0 0.25rem; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-ink-2); }
.lineups li { display: flex; align-items: baseline; gap: 0.625rem; padding-block: 0.3125rem; border-bottom: 1px solid var(--color-line); font-size: 0.875rem; }
.lineups li a:hover { color: var(--color-accent-t); }
.lineups .no { flex: none; width: 1.5rem; text-align: right; font-size: 0.8125rem; color: var(--color-ink-2); }
.lineups .pos { margin-left: auto; padding-left: var(--space-xs); font-size: 0.75rem; color: var(--color-ink-2); }

.stat { padding: 0.5rem var(--space-sm); border-bottom: 1px solid var(--color-line); }
.stat:last-child { border-bottom: 0; }
.stat__row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) 4rem; align-items: baseline; gap: 0.5rem; font-size: 0.875rem; }
.stat__row span:first-child { font-weight: 700; }
.stat__row span:nth-child(2) { text-align: center; font-size: 0.8125rem; color: var(--color-ink-2); }
.stat__row span:last-child { text-align: right; font-weight: 700; }
.stat__bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 0.375rem; }
.stat__bars i { display: flex; height: 0.375rem; border-radius: 999px; background: var(--color-panel-3); overflow: hidden; }
.stat__bars i:first-child { justify-content: flex-end; }
.stat__bars b { display: block; height: 100%; border-radius: 999px; background: var(--color-brand); }
.stat__bars i:last-child b { background: var(--color-accent); }

.mv { padding-block: 0.5rem; border-bottom: 1px solid var(--color-line); }
.mv:last-child { border-bottom: 0; }
.mv .stat__row { grid-template-columns: minmax(0, 1fr) auto; }
.mv .stat__row span:first-child { font-weight: 400; color: var(--color-ink-2); font-size: 0.8125rem; }
.bar { height: 0.375rem; margin-top: 0.375rem; border-radius: 999px; background: var(--color-panel-3); overflow: hidden; }
.bar b { display: block; height: 100%; border-radius: 999px; background: var(--color-accent); }

.prob { display: flex; gap: 3px; height: 2rem; font-size: 0.8125rem; font-weight: 700; border-radius: var(--radius-s); overflow: hidden; }
.prob > div { display: grid; place-items: center; min-width: 2.5rem; }
.prob .ph { background: var(--color-brand); color: var(--color-brand-ink); }
.prob .pd { background: var(--color-panel-3); color: var(--color-ink); }
.prob .pa { background: var(--color-accent-t); color: var(--color-brand-ink); }
.prob-l { display: flex; justify-content: space-between; gap: var(--space-xs); margin-top: 0.375rem; font-size: 0.75rem; color: var(--color-ink-2); }

.video { position: relative; aspect-ratio: 16 / 9; background: var(--color-brand); border-radius: var(--radius-s); overflow: hidden; }
.video button, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { background-color: var(--color-brand); background-size: cover; background-position: center; }
.video button span { position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; border-radius: 50%; background: var(--color-panel); box-shadow: 0 4px 16px oklch(0% 0 0 / 0.3); }
.video button span::after { content: ""; position: absolute; left: 1.6rem; top: 1.25rem; border-style: solid; border-width: 0.75rem 0 0.75rem 1.2rem; border-color: transparent transparent transparent var(--color-ink); }
.video button:hover span { background: var(--color-accent); }

.next { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-sm); padding: var(--space-sm); }
.next:hover { background: var(--color-panel-2); }
.next__team { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; font-weight: 700; font-size: 0.9375rem; line-height: 1.2; overflow-wrap: anywhere; min-width: 0; }
.next__mid { text-align: center; }
.next__mid .when { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.next__mid small { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--color-ink-2); }

/* ------------------------------------------------------------------ news, prose */

.article { min-width: 0; background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-md) var(--space-md) var(--space-lg); }
@media (max-width: 599px) { .article { padding: var(--space-sm); } }
.article h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.article .meta { margin-top: var(--space-xs); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-line); font-size: 0.8125rem; color: var(--color-ink-2); }
.article .meta a { color: var(--color-accent-t); font-weight: 600; }
.article .prose { margin-top: var(--space-md); }
.page-text { max-width: 50rem; }
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.375rem; line-height: 1.25; margin-top: 1.5em; }
.prose h3 { font-size: 1.125rem; margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--color-accent-t); font-weight: 600; text-decoration: underline; text-underline-offset: 0.15em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.prose th, .prose td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--color-line); text-align: left; }
.prose th { font-size: 0.75rem; text-transform: uppercase; color: var(--color-ink-2); }
.about-text { font-size: 0.875rem; line-height: 1.6; color: var(--color-ink-2); }
.about-text p + p { margin-top: 0.75em; }
.about-text h2 { font-size: 1rem; color: var(--color-ink); margin-bottom: 0.5em; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--gap); margin-top: var(--gap); }
.card { display: flex; flex-direction: column; padding: var(--space-sm); background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card h2, .card h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.card h2 a:hover, .card h3 a:hover { color: var(--color-accent-t); }
.card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-ink-2); }
.card .meta, .card time { margin-top: auto; padding-top: var(--space-xs); font-size: 0.75rem; font-weight: 600; color: var(--color-ink-2); }
@media (min-width: 700px) {
	.cards--lead > .card:first-child { grid-column: 1 / -1; padding: var(--space-md); }
	.cards--lead > .card:first-child h2 { font-size: 1.625rem; line-height: 1.2; }
	.cards--lead > .card:first-child p { font-size: 1rem; max-width: 70ch; }
}

.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--gap); margin-top: var(--gap); }

.notfound { max-width: 40rem; margin: var(--space-xl) auto; padding: var(--space-lg); background: var(--color-panel); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.notfound .btns { justify-content: center; }

/* ------------------------------------------------------------------ footer */

.ft { margin-top: var(--space-lg); background: var(--color-brand); color: var(--color-brand-mut); padding-block: var(--space-lg) var(--space-md); }
.ft .brand { font-size: 1.25rem; }
.ft__note { margin-top: var(--space-xs); max-width: 64ch; font-size: 0.8125rem; }
.ft__rows { margin-top: var(--space-md); }
.ft__rows > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-sm); padding-block: 0.625rem; border-top: 1px solid var(--color-brand-2); }
.ft__rows dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-brand-ink); line-height: 1.9; }
.ft__rows dd { display: flex; flex-wrap: wrap; gap: 0.25rem var(--space-sm); }
.ft__rows a { font-size: 0.875rem; white-space: nowrap; padding-block: 2px; }
.ft__rows a:hover { color: var(--color-brand-ink); text-decoration: underline; }
.ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem var(--space-md); margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--color-brand-2); font-size: 0.75rem; }
@media (max-width: 559px) { .ft__rows > div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
