/* =====================================================================
   Football Today — "Floodlight" design system
   Dark-first, electric lime accent, bento layout, mono scoreboards.
   ===================================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url(../fonts/bricolage-latin.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url(../fonts/geist-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geistmono-latin.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --f-display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --lime: #C8FF3A; --lime-2: #A6E01C; --lime-ink: #06110B;
  --live: #FF4D3D; --win: #2FD07A; --draw: #F2B33D; --loss: #FF5A5A;
  --z-ucl: #4F8BFF; --z-uel: #FF9F43; --z-uecl: #2EC4B6; --z-promo: #2FD07A; --z-playoff: #F2B33D; --z-releg: #FF5A5A; --z-split: #A78BFA;

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --gap: 16px; --wrap: 1260px;
  --ease: cubic-bezier(.2,.8,.2,1);

  color-scheme: dark;
  --bg: #06110B; --bg-2: #08160F;
  --surface: #0C1D15; --surface-2: #11281C; --surface-3: #173426;
  --line: rgba(205,255,220,.08); --line-2: rgba(205,255,220,.15);
  --text: #EAF2EC; --text-2: #B0C4B8; --muted: #7C958A;
  --accent: #C8FF3A; --accent-soft: rgba(200,255,58,.12);
  --glass: rgba(6,17,11,.72);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -24px rgba(0,0,0,.6);
  --glow: radial-gradient(1200px 520px at 78% -12%, rgba(200,255,58,.10), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(47,208,122,.07), transparent 60%);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F5EE; --bg-2: #EBF0E5;
  --surface: #FFFFFF; --surface-2: #F3F6EF; --surface-3: #E8EEE2;
  --line: rgba(6,17,11,.08); --line-2: rgba(6,17,11,.14);
  --text: #0A1911; --text-2: #3A4F43; --muted: #66796E;
  --accent: #3D6B00; --accent-soft: rgba(110,170,0,.13);
  --glass: rgba(242,245,238,.8);
  --shadow: 0 1px 2px rgba(6,17,11,.04), 0 16px 40px -24px rgba(6,17,11,.25);
  --glow: radial-gradient(1200px 520px at 78% -12%, rgba(166,224,28,.22), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(47,208,122,.10), transparent 60%);
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); background-image: var(--glow); background-repeat: no-repeat;
  color: var(--text); font: 400 15px/1.55 var(--f-ui); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.lite { font-family: ui-sans-serif, system-ui, sans-serif; background-image: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p a, .prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--lime-ink); }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(30px, 4.6vw, 54px); }
h2 { font-size: clamp(20px, 2.3vw, 26px); }
h3 { font-size: 18px; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.ico { flex: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -.04em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand b { color: var(--accent); font-weight: 800; }
.brand .mark { transition: transform .5s var(--ease); }
.brand:hover .mark { transform: rotate(-12deg) scale(1.05); }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 14px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .live-dot { width: 7px; height: 7px; }
.top__tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.searchbtn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 12px; min-width: 230px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 14px; }
.searchbtn:hover { border-color: var(--accent); color: var(--text-2); }
.searchbtn kbd { margin-left: auto; font: 600 11px var(--f-mono); padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.iconbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); }
.iconbtn:hover { color: var(--accent); border-color: var(--accent); }
.iconbtn[aria-pressed="true"] { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }
[data-theme="light"] .t-moon, :root:not([data-theme="light"]) .t-sun { display: none; }

/* sub nav: competitions */
.compbar { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.compbar__in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.compbar__in::-webkit-scrollbar { display: none; }
.compbar a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface); }
.compbar a:hover, .compbar a[aria-current="page"] { border-color: var(--accent); color: var(--text); }
.compbar img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; background: #fff; padding: 2px; }
.compbar .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--lime)); margin-left: 4px; }

/* live ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ticker__in { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 0; }
.ticker__in::-webkit-scrollbar { display: none; }
.tick { scroll-snap-align: start; flex: none; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; min-width: 190px; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.tick:hover { border-color: var(--line-2); color: var(--text); }
.tick__st { grid-row: span 2; font: 600 11px var(--f-mono); color: var(--muted); min-width: 38px; }
.tick[data-state="live"] .tick__st { color: var(--live); }
.tick__t { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tick__s { font: 700 13px var(--f-mono); text-align: right; }

/* ------------------------------------------------------------- page scaffolding */
main { padding: 26px 0 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }

.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); padding: clamp(22px, 4vw, 44px); background:
  radial-gradient(600px 300px at 85% 0%, color-mix(in srgb, var(--c, var(--lime)) 22%, transparent), transparent 70%),
  linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: var(--shadow); margin-bottom: 22px; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border: 1.5px solid var(--line-2); }
.hero::before { width: 300px; height: 300px; border-radius: 50%; right: -60px; top: 50%; translate: 0 -50%; }
.hero::after { right: 89px; top: -10px; bottom: -10px; width: 0; border-width: 0 0 0 1.5px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 12px; }
.hero__eyebrow img { width: 22px; height: 22px; border-radius: 5px; background: #fff; padding: 2px; }
.hero h1 { max-width: 20ch; }
.hero__lede { margin-top: 14px; max-width: 70ch; color: var(--text-2); font-size: 16px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero--compact h1 { font-size: clamp(26px, 3.6vw, 40px); }

.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 0; background: none; padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.tabs a:hover, .tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--lime-ink); background: var(--lime); }
.tabs [aria-current="page"]:hover, .tabs [aria-selected="true"]:hover { color: var(--lime-ink); background: var(--lime); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.s-12 { grid-column: span 12; } .s-8 { grid-column: span 8; } .s-7 { grid-column: span 7; } .s-6 { grid-column: span 6; } .s-5 { grid-column: span 5; } .s-4 { grid-column: span 4; } .s-3 { grid-column: span 3; }
.stack { display: grid; gap: var(--gap); align-content: start; }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card--accent { background: linear-gradient(160deg, color-mix(in srgb, var(--lime) 16%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--lime) 30%, var(--line)); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card--flush .card__head { padding: 16px 18px 0; }
.card__head h2, .card__head h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.card__head h2 img { width: 24px; height: 24px; border-radius: 6px; background: #fff; padding: 2px; }
.card__more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.card__more:hover { gap: 8px; transition: gap .2s var(--ease); }
.card__foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.kicker { font: 600 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 14px; background: var(--lime); color: var(--lime-ink); transition: transform .15s var(--ease), box-shadow .2s; }
.btn:hover { color: var(--lime-ink); transform: translateY(-1px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--lime) 60%, transparent); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--text); border-color: var(--accent); box-shadow: none; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.chip--lime { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip--live { background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live); border-color: transparent; font-weight: 700; }
a.chip:hover { border-color: var(--accent); color: var(--text); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,77,61,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,61,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,77,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,61,0); } }

/* crests */
.crest { width: var(--s, 28px); height: var(--s, 28px); object-fit: contain; flex: none; }
.crest--txt { display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font: 700 calc(var(--s, 28px) * .36) var(--f-ui); letter-spacing: -.02em; }

/* ------------------------------------------------------------- fixtures */
.comp-group + .comp-group { margin-top: 10px; }
.comp-group__head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-weight: 600; font-size: 14px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.comp-group:first-child .comp-group__head { border-top: 0; }
.comp-group__head img { width: 22px; height: 22px; border-radius: 5px; background: #fff; padding: 2px; }
.comp-group__head .bar { width: 4px; height: 18px; border-radius: 4px; background: var(--c, var(--lime)); }
.comp-group__head a:hover { color: var(--accent); }
.comp-group__head .chip { margin-left: auto; }

.fx { position: relative; display: grid; grid-template-columns: 62px minmax(0,1fr) 74px minmax(0,1fr) 28px; align-items: center; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--line); transition: background .15s; }
.fx:first-child { border-top: 0; }
.fx:hover { background: var(--surface-2); }
.fx > a.fx__link { position: absolute; inset: 0; z-index: 1; }
.fx__st { font: 600 12px var(--f-mono); color: var(--muted); }
.fx__st small { display: block; font: 500 11px var(--f-ui); color: var(--muted); }
.fx[data-state="live"] .fx__st { color: var(--live); }
.fx__team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.fx__team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx__team--h { justify-content: flex-end; text-align: right; }
.fx__team.is-win span { font-weight: 700; }
.fx__score { display: flex; justify-content: center; align-items: center; gap: 6px; font: 700 16px var(--f-mono); }
.fx__score b { min-width: 24px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); }
.fx[data-state="live"] .fx__score b { background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live); }
.fx__score .vs { font: 600 12px var(--f-mono); color: var(--muted); padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--line-2); }
.fx__res { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; font: 700 11px var(--f-mono); justify-self: end; }
.fx__res--W { background: var(--win); color: #04140A; } .fx__res--D { background: var(--draw); color: #1A1200; } .fx__res--L { background: var(--loss); color: #1A0505; }
.fx__fav { position: relative; z-index: 2; justify-self: end; width: 26px; height: 26px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; opacity: .0; }
.fx:hover .fx__fav { opacity: 1; }
.fx .comp-mini { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.fx--compact { grid-template-columns: 52px minmax(0,1fr) 64px minmax(0,1fr) 0; padding: 9px 14px; }
.empty { padding: 32px 18px; text-align: center; color: var(--muted); }
.empty .ico { margin: 0 auto 10px; opacity: .6; }
.day-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px 8px; font: 600 12px var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; border-top: 1px solid var(--line); }
.day-head:first-child { border-top: 0; }

/* date strip */
.datestrip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding: 2px; }
.datestrip::-webkit-scrollbar { display: none; }
.datestrip a { flex: none; display: grid; place-items: center; gap: 0; width: 64px; height: 64px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); line-height: 1.15; }
.datestrip a small { font: 600 10.5px var(--f-mono); text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.datestrip a b { font: 700 20px var(--f-display); }
.datestrip a:hover { border-color: var(--accent); }
.datestrip a[aria-current="page"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.datestrip a[aria-current="page"] small { color: var(--lime-ink); opacity: .7; }

/* ------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; text-align: left; font: 600 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; } .tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl .pos { width: 44px; font: 700 13px var(--f-mono); position: relative; }
.tbl .pos::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--zc, transparent); }
.tbl .team { display: flex; align-items: center; gap: 10px; font-weight: 500; min-width: 150px; }
.tbl .team a:hover { color: var(--accent); }
.tbl .pts { font: 700 14px var(--f-mono); }
.tbl .n { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--text-2); }
.tbl tr.is-hl { background: var(--accent-soft); }
.tbl tr.is-hl td:first-child { box-shadow: inset 3px 0 var(--lime); }
.tbl tr.is-mine td .team::after { content: "★"; color: var(--lime); font-size: 12px; }
.zone-ucl { --zc: var(--z-ucl); } .zone-uel { --zc: var(--z-uel); } .zone-uecl { --zc: var(--z-uecl); } .zone-promo { --zc: var(--z-promo); } .zone-playoff { --zc: var(--z-playoff); } .zone-releg { --zc: var(--z-releg); } .zone-split-top { --zc: var(--z-promo); } .zone-split-low { --zc: var(--z-split); } .zone-other { --zc: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 18px; font-size: 12.5px; color: var(--text-2); border-top: 1px solid var(--line); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--zc); margin-right: 6px; vertical-align: -1px; }
.mv { font: 600 11px var(--f-mono); } .mv--up { color: var(--win); } .mv--down { color: var(--loss); }
.hide-sm { }

/* form pills */
.form { display: inline-flex; gap: 3px; }
.form__p { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font: 700 10.5px var(--f-mono); font-style: normal; }
.form__p--w { background: var(--win); color: #04140A; } .form__p--d { background: var(--draw); color: #1A1200; } .form__p--l { background: var(--loss); color: #1A0505; }
.form--lg .form__p { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }

/* ------------------------------------------------------------- match page */
.scoreboard { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); padding: clamp(18px, 3vw, 30px); background:
  radial-gradient(500px 260px at 50% -20%, color-mix(in srgb, var(--lime) 20%, transparent), transparent 70%),
  linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: var(--shadow); isolation: isolate; margin-bottom: 18px; }
.scoreboard::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 240px; height: 240px; translate: -50% -50%; border-radius: 50%; border: 1.5px solid var(--line-2); }
.scoreboard::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; bottom: 0; border-left: 1.5px solid var(--line-2); }
.sb__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.sb__meta a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--text); }
.sb__meta a img { width: 22px; height: 22px; border-radius: 5px; background: #fff; padding: 2px; }
.sb__main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 22px 0 8px; }
.sb__team { display: grid; justify-items: center; gap: 10px; text-align: center; }
.sb__team a { font: 800 clamp(17px, 2.4vw, 26px)/1.1 var(--f-display); letter-spacing: -.02em; }
.sb__team .crest { filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.sb__score { display: grid; justify-items: center; gap: 8px; }
.sb__digits { display: flex; align-items: center; gap: 12px; font: 700 clamp(46px, 8vw, 84px)/1 var(--f-mono); letter-spacing: -.04em; }
.sb__digits span { opacity: .4; font-weight: 500; }
.sb__ko { font: 700 clamp(34px, 6vw, 58px)/1 var(--f-mono); letter-spacing: -.04em; }
.sb__status { display: inline-flex; gap: 8px; align-items: center; }
.sb__sub { font-size: 13px; color: var(--muted); text-align: center; }
.countdown { display: flex; gap: 6px; justify-content: center; }
.countdown div { display: grid; justify-items: center; min-width: 52px; padding: 6px 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.countdown b { font: 700 20px var(--f-mono); }
.countdown small { font: 600 9.5px var(--f-mono); text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.scorers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.scorers ul:first-child { text-align: right; }

.prob { display: grid; gap: 10px; }
.prob__bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; }
.prob__bar span { display: block; height: 100%; border-radius: 999px; transition: flex-basis .8s var(--ease); }
.prob__bar .h { background: var(--lime); } .prob__bar .d { background: var(--muted); } .prob__bar .a { background: #5AA9FF; }
.prob__lbl { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 13px; }
.prob__lbl b { display: block; font: 700 24px var(--f-mono); letter-spacing: -.03em; }
.prob__lbl > :nth-child(2) { text-align: center; } .prob__lbl > :last-child { text-align: right; }
.xg { display: flex; gap: 8px; flex-wrap: wrap; }

.statrow { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.statrow__l { text-align: center; color: var(--text-2); grid-column: 1 / -1; font-size: 12.5px; margin-bottom: -4px; }
.statrow b { font: 700 14px var(--f-mono); } .statrow b:last-child { text-align: right; }
.statbar { display: flex; height: 8px; gap: 3px; }
.statbar span { border-radius: 999px; background: var(--surface-3); }
.statbar .h.lead { background: var(--lime); } .statbar .a.lead { background: #5AA9FF; }

.timeline { position: relative; height: 120px; margin: 8px 0 4px; }
.timeline__axis { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line-2); border-radius: 2px; }
.timeline__ht { position: absolute; top: 18%; bottom: 18%; border-left: 1px dashed var(--line-2); }
.timeline__ev { position: absolute; translate: -50% 0; display: grid; justify-items: center; gap: 2px; font: 600 10px var(--f-mono); color: var(--muted); }
.timeline__ev i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 11px; background: var(--surface-3); border: 2px solid var(--surface); }
.timeline__ev--goal i { background: var(--lime); color: var(--lime-ink); }
.timeline__ev--yellow i { background: #FFD43B; width: 14px; height: 18px; border-radius: 3px; }
.timeline__ev--red i { background: var(--loss); width: 14px; height: 18px; border-radius: 3px; }
.timeline__ev--home { bottom: 52%; } .timeline__ev--away { top: 52%; flex-direction: column-reverse; }
.timeline__ev--away { display: flex; flex-direction: column-reverse; align-items: center; }
.timeline__lbl { position: absolute; font: 600 10px var(--f-mono); color: var(--muted); top: 50%; translate: 0 8px; }

.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.events li:first-child { border-top: 0; }
.events .min { text-align: center; font: 700 12px var(--f-mono); color: var(--text-2); }
.events .h { text-align: right; } .events small { color: var(--muted); display: block; font-size: 12px; }
.ev-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; vertical-align: -4px; margin: 0 4px; font-size: 12px; }
.ev-card { display: inline-block; width: 10px; height: 14px; border-radius: 2px; vertical-align: -2px; margin: 0 6px; }
.ev-card--y { background: #FFD43B; } .ev-card--r { background: var(--loss); }

/* pitch */
.pitch { position: relative; aspect-ratio: 68 / 100; border-radius: 20px; overflow: hidden; background:
  repeating-linear-gradient(180deg, #0F3D24 0 10%, #11452A 10% 20%); border: 1px solid rgba(255,255,255,.08); }
[data-theme="light"] .pitch { background: repeating-linear-gradient(180deg, #2F8F4E 0 10%, #349955 10% 20%); }
.pitch::before { content: ""; position: absolute; inset: 4%; border: 2px solid rgba(255,255,255,.22); border-radius: 4px; background:
  linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) center / 100% 2px no-repeat; }
.pitch__circle { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; translate: -50% -50%; border: 2px solid rgba(255,255,255,.22); border-radius: 50%; }
.pitch__box { position: absolute; left: 50%; translate: -50% 0; width: 44%; height: 14%; border: 2px solid rgba(255,255,255,.22); }
.pitch__box--t { top: 4%; border-top: 0; } .pitch__box--b { bottom: 4%; border-bottom: 0; }
.pl { position: absolute; translate: -50% -50%; display: grid; justify-items: center; gap: 3px; width: 22%; text-align: center; }
.pl__n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font: 700 12px var(--f-mono); background: #fff; color: #0A1911; box-shadow: 0 4px 12px rgba(0,0,0,.35); position: relative; }
.pl--away .pl__n { background: #5AA9FF; color: #04101F; }
.pl--home .pl__n { background: var(--lime); color: var(--lime-ink); }
.pl__name { font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pl__r { position: absolute; top: -6px; right: -12px; font: 700 9.5px var(--f-mono); padding: 1px 4px; border-radius: 6px; background: #0A1911; color: #fff; }
.pl__r.hi { background: var(--win); color: #04140A; }
.lineup-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.subs { columns: 2; column-gap: 18px; font-size: 13px; color: var(--text-2); margin-top: 12px; }
.subs div { break-inside: avoid; padding: 3px 0; }

.takeaways { display: grid; gap: 10px; }
.takeaway { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.takeaway__i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.takeaway b { display: block; font-size: 14px; }
.takeaway p { margin: 2px 0 0; font-size: 13.5px; color: var(--text-2); }

.ratings { display: grid; gap: 8px; }
.rating { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; }
.rating img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.rating small { display: block; color: var(--muted); font-size: 12px; }
.rating > b { font: 700 14px var(--f-mono); padding: 4px 8px; border-radius: 8px; background: var(--surface-2); }
.rating > b.hi { background: var(--win); color: #04140A; }

.h2h-sum { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; gap: 8px; margin-bottom: 12px; }
.h2h-sum div { padding: 12px 6px; border-radius: 14px; background: var(--surface-2); }
.h2h-sum b { display: block; font: 700 28px var(--f-mono); letter-spacing: -.04em; }
.h2h-sum small { color: var(--muted); font-size: 12px; }

.prose { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.prose p:first-child { color: var(--text); font-size: 17px; }
.prose h2 { margin: 1.4em 0 .5em; color: var(--text); font-size: 24px; }
.prose h3 { margin: 1.2em 0 .4em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .3em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 3px solid var(--lime); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; } .prose th, .prose td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.ai-note { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }

.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 18px var(--f-mono); color: var(--accent); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }

/* ------------------------------------------------------------- team page */
.club-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.club-hero .crest { filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.kpi b { display: block; font: 700 26px var(--f-mono); letter-spacing: -.04em; }
.kpi small { color: var(--muted); font-size: 12px; }
.spark { width: 100%; height: 80px; }
.spark .bar-w { fill: var(--win); } .spark .bar-d { fill: var(--draw); } .spark .bar-l { fill: var(--loss); }
.nextcard { display: grid; gap: 14px; }
.nextcard__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; font-weight: 700; }
.nextcard__teams > div { display: grid; justify-items: center; gap: 8px; }
.subscribe { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.subscribe__i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); }

/* ------------------------------------------------------------- simulator / tools */
.heat td.h { font: 600 10.5px var(--f-mono); text-align: center; min-width: 28px; padding: 6px 2px; color: var(--text); background: color-mix(in srgb, var(--lime) calc(var(--p) * 100%), transparent); }
[data-theme="light"] .heat td.h { background: color-mix(in srgb, #7DBF00 calc(var(--p) * 100%), transparent); }
.heat td.h.z { color: transparent; }
.meter { position: relative; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; min-width: 70px; }
.meter span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--lime); }
.meter--bad span { background: var(--loss); }
.pcell { display: grid; gap: 4px; min-width: 86px; }
.pcell b { font: 700 13px var(--f-mono); }

.fdr { display: inline-grid; place-items: center; min-width: 54px; height: 40px; padding: 0 6px; border-radius: 10px; font-size: 11.5px; font-weight: 700; line-height: 1.05; text-align: center; }
.fdr small { display: block; font: 600 9.5px var(--f-mono); opacity: .8; }
.fdr-1 { background: #0E7A3E; color: #E6FFF0; } .fdr-2 { background: #2FD07A; color: #04140A; } .fdr-3 { background: #CBD5CF; color: #102018; } .fdr-4 { background: #FF8A65; color: #2A0A00; } .fdr-5 { background: #C62828; color: #FFECEC; }
.fdr-row { display: flex; gap: 4px; }

.wi-fx { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.wi-fx:first-child { border-top: 0; }
.wi-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; font-weight: 500; }
.wi-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-team--h { justify-content: flex-end; text-align: right; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; width: 36px; height: 30px; border-radius: 8px; font: 700 12px var(--f-mono); color: var(--text-2); }
.seg button:hover { background: var(--surface-3); }
.seg button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.wi-round { padding: 10px 14px; font: 600 11px var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; background: color-mix(in srgb, var(--surface-2) 60%, transparent); border-top: 1px solid var(--line); }
.flash { animation: flash .8s var(--ease); }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }

/* derbies, news, lists */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.tile { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); color: var(--text); }
.tile__crests { display: flex; align-items: center; gap: 10px; }
.tile__crests .vs { font: 700 12px var(--f-mono); color: var(--muted); }
.tile h3 { font-size: 20px; }
.tile p { margin: 0; color: var(--text-2); font-size: 14px; }
.tile__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.article-card { display: grid; gap: 10px; }
.article-card__img { aspect-ratio: 16/9; border-radius: 16px; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); overflow: hidden; display: grid; place-items: center; }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; }
.article-card h3 { font-size: 19px; line-height: 1.2; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-top: 1px solid var(--line); } .list-plain li:first-child { border-top: 0; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.club-grid a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 500; }
.club-grid a:hover { border-color: var(--accent); color: var(--text); }
.scorer { display: grid; grid-template-columns: 26px 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.scorer:first-child { border-top: 0; }
.scorer img.ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.scorer small { display: block; color: var(--muted); font-size: 12px; }
.scorer .g { font: 700 22px var(--f-mono); letter-spacing: -.03em; text-align: right; }
.scorer .g small { font: 500 11px var(--f-ui); }
.scorer .rk { font: 700 13px var(--f-mono); color: var(--muted); }
.scorer:first-child .rk { color: var(--lime); }
.hbar { height: 6px; border-radius: 99px; background: var(--surface-3); margin-top: 6px; overflow: hidden; } .hbar span { display: block; height: 100%; background: var(--lime); border-radius: 99px; }

/* newsletter / promo */
.promo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; }
.field { display: flex; gap: 8px; }
.field input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; }
.field input:focus { outline: none; border-color: var(--accent); }

/* ask */
.chat { display: grid; gap: 12px; min-height: 280px; align-content: start; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); white-space: pre-wrap; font-size: 14.5px; }
.msg--me { justify-self: end; background: var(--lime); color: var(--lime-ink); border-color: var(--lime); border-bottom-right-radius: 6px; }
.msg--bot { border-bottom-left-radius: 6px; }
.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* ------------------------------------------------------------- command palette */
.cmdk { position: fixed; inset: 0; z-index: 90; display: none; place-items: start center; padding: 10vh 16px 16px; background: rgba(2,8,5,.6); backdrop-filter: blur(6px); }
.cmdk.open { display: grid; }
.cmdk__box { width: min(640px, 100%); border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -20px rgba(0,0,0,.7); overflow: hidden; animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.cmdk__in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk__in input { flex: 1; height: 58px; border: 0; background: none; color: var(--text); font: 500 17px var(--f-ui); outline: none; }
.cmdk__list { max-height: 56vh; overflow-y: auto; padding: 8px; }
.cmdk__item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
.cmdk__item img, .cmdk__item .ph { width: 28px; height: 28px; object-fit: contain; border-radius: 8px; }
.cmdk__item .ph { display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.cmdk__item small { color: var(--muted); font-size: 12px; }
.cmdk__item[aria-selected="true"], .cmdk__item:hover { background: var(--surface-2); color: var(--text); }
.cmdk__hint { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 14px; }

/* ------------------------------------------------------------- footer, bottom nav, consent */
.foot { border-top: 1px solid var(--line); padding: 44px 0 110px; background: var(--bg-2); color: var(--text-2); font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.foot h4 { font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: var(--accent); }
.foot__base { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.badge-nobet { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--text-2); margin-top: 14px; }

.bnav { display: none; }
.consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); display: none; }
.consent.show { display: block; animation: pop .3s var(--ease); }
.consent p { font-size: 13.5px; color: var(--text-2); margin: 6px 0 14px; }
.toast { position: fixed; z-index: 95; left: 50%; bottom: 90px; translate: -50% 20px; opacity: 0; padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; transition: .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }
.ad { display: grid; place-items: center; min-height: 120px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); font-size: 12px; }

/* widget page */
.widget-body { background: var(--surface); padding: 0; }

/* ------------------------------------------------------------- reveal motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .searchbtn { min-width: 0; }
  .s-8, .s-7, .s-6, .s-5, .s-4 { grid-column: span 12; }
  .s-3 { grid-column: span 6; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .searchbtn span, .searchbtn kbd { display: none; }
  .searchbtn { width: 38px; padding: 0; justify-content: center; }
  .top__in { gap: 10px; }
  .brand { font-size: 19px; }
  .s-3 { grid-column: span 12; }
  .fx { grid-template-columns: 46px minmax(0,1fr) 62px minmax(0,1fr) 0; gap: 8px; padding: 10px 12px; }
  .fx__team .crest { --s: 22px !important; width: 22px; height: 22px; }
  .fx__fav, .fx__res { display: none; }
  .fx__score { font-size: 14px; } .fx__score b { min-width: 22px; height: 28px; }
  .tbl .hide-sm { display: none; }
  .club-hero { grid-template-columns: auto 1fr; }
  .club-hero > :last-child { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .scorers { font-size: 12px; }
  .msg { max-width: 92%; }
  .hero::before { width: 200px; height: 200px; right: -90px; }
  .hero::after { right: 9px; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 10px; right: 10px; bottom: 10px; padding: 6px; border-radius: 20px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); padding-bottom: calc(6px + env(safe-area-inset-bottom) / 2); }
  .bnav a, .bnav button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 14px; border: 0; background: none; font-size: 10.5px; font-weight: 600; color: var(--text-2); }
  .bnav [aria-current="page"] { color: var(--lime-ink); background: var(--lime); }
  .consent { bottom: 90px; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media print { .top, .compbar, .ticker, .bnav, .foot, .consent, .cmdk { display: none !important; } body { background: #fff; color: #000; } }

/* ---------------------------------------------------------- live match engine */
.sb__pulse { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 8px; }
.scoreboard[data-state="live"] .sb__pulse::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); animation: pulse-ring 1.6s infinite; }
@keyframes pulse-ring { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
[data-goal-alerts][aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .scoreboard[data-state="live"] .sb__pulse::before { animation: none; } }

/* ---------------------------------------------------------- articles */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #5AA9FF); transition: width .1s linear; }
.prose h2 { position: relative; scroll-margin-top: 90px; }
.prose .h-anchor { position: absolute; left: -1.1em; opacity: 0; color: var(--muted); text-decoration: none; transition: opacity .15s; }
.prose h2:hover .h-anchor, .prose .h-anchor:focus { opacity: 1; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.toc li:first-child a { border-top: 0; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 600 12px var(--f-mono); color: var(--muted); padding-top: 2px; }
.toc a.on, .toc a:hover { color: var(--text); }
.toc a.on::before { color: var(--accent); }
.tools-list a { display: block; } .tools-list small { display: block; font-size: 12.5px; margin-top: 2px; }
@media (min-width: 1000px) { .toc { position: sticky; top: 88px; } }
/* Newsletter card inside a narrow sidebar column: stack everything. */
aside .promo, .s-4 .promo { grid-template-columns: 1fr; }
aside .promo .field, .s-4 .promo .field { flex-wrap: wrap; }
aside .promo .field input, .s-4 .promo .field input { flex: 1 1 100%; min-width: 0; }
aside .promo .field .btn, .s-4 .promo .field .btn { flex: 1 1 100%; justify-content: center; }

/* ---------------------------------------------------------- external headlines */
.hl { list-style: none; margin: 0; padding: 0; }
.hl__item { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.hl__item:first-child { border-top: 0; padding-top: 4px; }
.hl__item:has(.hl__img) { grid-template-columns: 160px 1fr; }
.hl__img { display: block; aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.hl__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.hl__item:hover .hl__img img { transform: scale(1.04); }
.hl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.hl__src { font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.hl__src::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--src, var(--muted)); }
.hl__src--bbc { --src: #F5C400; } .hl__src--guardian { --src: #3D7DD8; } .hl__src--sky { --src: #E10A1C; }
.hl__src--record { --src: #D9232E; } .hl__src--scotsman { --src: #1B5BA8; } .hl__src--flondon { --src: #7B2CBF; }
.hl__src--mirror { --src: #E4002B; } .hl__src--men { --src: #00A3E0; }
.hl__meta time::before { content: "·"; margin-right: 8px; }
.hl__live { height: 20px; padding: 0 7px; font-size: 10.5px; }
.hl__title { display: block; font: 700 16.5px/1.32 var(--f-display); letter-spacing: -.01em; color: var(--text); text-wrap: pretty; }
.hl__title:hover { color: var(--accent); }
.hl__title::after { content: " ↗"; font-size: .75em; color: var(--muted); }
.hl__sum { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 9px; font-size: 12.5px; }
.hl__team { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; }
.hl__team:hover { border-color: var(--accent); color: var(--text); }
.hl__team .crest { width: 16px; height: 16px; }
.hl__also { color: var(--muted); } .hl__also a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); }
.hl--compact .hl__item { padding: 11px 0; gap: 0; }
.hl--compact .hl__item:first-child { padding-top: 2px; }
.hl--compact .hl__title { font-size: 14.5px; }
.hl-cols { display: grid; gap: 0 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hl-cols { grid-template-columns: 1fr 1fr; } }

.news-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.news-tabs > a { height: 36px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text-2); }
.news-tabs > a:hover { color: var(--text); border-color: var(--accent); }
.news-tabs > a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #06110B; }
.news-search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); min-width: min(100%, 260px); color: var(--muted); }
.news-search:focus-within { border-color: var(--accent); }
.news-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; outline: none; }
@media (max-width: 700px) { .news-search { margin-left: 0; flex: 1 1 100%; } }

.topstories { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 980px) { .topstories { grid-template-columns: 1.55fr 1fr; } }
.ts-lead { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-height: 360px; display: flex; align-items: flex-end; isolation: isolate; }
.ts-lead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ts-lead:has(.ts-lead__img)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,12,8,0) 25%, rgba(4,12,8,.72) 58%, rgba(4,12,8,.96)); }
.ts-lead__body { padding: 26px; }
.ts-lead:has(.ts-lead__img) .ts-lead__body, .ts-lead:has(.ts-lead__img) .ts-lead__body a:not(.hl__team) { color: #F2F7F3; }
.ts-lead:has(.ts-lead__img) .hl__meta, .ts-lead:has(.ts-lead__img) .hl__src, .ts-lead:has(.ts-lead__img) p { color: rgba(242,247,243,.82); }
.ts-lead h3 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.12; margin: 6px 0 8px; text-wrap: balance; }
.ts-lead h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ts-lead p { margin: 0; font-size: 15px; max-width: 62ch; }
.ts-lead .kicker { color: var(--accent); }
.ts-rest { padding-top: 14px; }

.trend { list-style: none; margin: 0; padding: 0; counter-reset: tr; }
.trend a { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; font-weight: 600; }
.trend small { color: var(--muted); font-weight: 500; font-size: 12px; }
.trend i { position: absolute; left: 32px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); opacity: .55; max-width: calc(100% - 32px); }
.fresh .live-dot { width: 6px; height: 6px; }
.news-new { cursor: pointer; animation: flash .8s var(--ease); }
@media (max-width: 560px) {
  .hl__item:has(.hl__img) { grid-template-columns: 96px 1fr; gap: 12px; }
  .hl__sum { display: none; }
  .ts-lead { min-height: 300px; } .ts-lead__body { padding: 18px; }
}
.news-tabs > a[aria-current="page"] { color: var(--surface); }
.ts-lead:has(.ts-lead__img) .kicker { color: #C8FF3A; }
.ts-lead:not(:has(.ts-lead__img)) { min-height: 0; }
.news-mix { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .news-mix { grid-template-columns: minmax(240px, 300px) 1fr; } .news-mix--solo { grid-template-columns: 1fr; } }
.news-mix__own { display: grid; gap: 14px; align-content: start; }
.news-mix__own .article-card h3 { font-size: 17px; }
.own-mini { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
.own-mini:first-of-type { border-top: 0; padding-top: 2px; }
.own-mini img { width: 100%; height: auto; border-radius: var(--r-sm); margin-bottom: 10px; display: block; }
.own-mini b { display: block; font: 800 17px/1.2 var(--f-display); margin-top: 4px; }
.own-mini:hover b { color: var(--accent); }

/* ---------------------------------------------------------- redirect interstitial */
.go { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; padding: clamp(22px, 4vw, 40px); max-width: 920px; margin: 8px auto 0; }
@media (min-width: 720px) { .go { grid-template-columns: 120px 1fr; } }
.go__ring { position: relative; width: 120px; height: 120px; }
.go__ring svg { transform: rotate(-90deg); display: block; }
.go__track { fill: none; stroke: var(--surface-3); stroke-width: 8; }
.go__arc { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.go__ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 40px var(--f-display); font-variant-numeric: tabular-nums; }
.go h1 { font-size: clamp(22px, 3vw, 32px); line-height: 1.15; margin: 6px 0 0; text-wrap: balance; }
.go__sum { margin: 10px 0 0; color: var(--text-2); font-size: 15.5px; max-width: 64ch; }
.go__bar { height: 4px; border-radius: 4px; background: var(--surface-3); margin-top: 18px; overflow: hidden; }
.go__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.go__note { font-size: 12.5px; margin: 14px 0 0; }
.go.is-paused .go__arc, .go.is-paused .go__bar span { stroke: var(--muted); background: var(--muted); }
@media (prefers-reduced-motion: reduce) { .go__arc, .go__bar span { transition: none; } }
.go + .card { max-width: 920px; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------- competitions by region */
.comp-section { margin-top: 28px; scroll-margin-top: 90px; }
.comp-section__h { font-size: 22px; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.comp-section__h::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.compbar__sep { flex: 0 0 1px; align-self: stretch; margin: 6px 4px; background: var(--line-2); }

/* ---------------------------------------------------------- fixtures tier: folded competitions */
.more-comps { margin-top: 18px; }
.more-comps__h { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 4px 0 10px; color: var(--text-2); }
.comp-group--fold > summary { cursor: pointer; list-style: none; user-select: none; }
.comp-group--fold > summary::-webkit-details-marker { display: none; }
.comp-group--fold > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); flex: 0 0 auto; }
.comp-group--fold[open] > summary::after { transform: rotate(-135deg); }
.comp-group--fold > summary small { font-size: 12px; font-weight: 500; }
.comp-group--fold > summary .chip:last-of-type { margin-left: auto; }
.comp-group--fold > summary .chip + .chip { margin-left: 0; }
.comp-group--fold:not([open]) { padding-bottom: 0; }
.comp-group--fold > summary { display: flex; align-items: center; gap: 10px; } .comp-group--fold > summary > .chip:not(.chip--live) { margin-left: auto; } .comp-group--fold > summary > .chip--live + .chip { margin-left: 8px; } .comp-group--fold > summary > .chip--live { margin-left: auto; }
