/* FootProspects — own visual identity: deep forest + gold, compact data-first layout. */
:root {
  --ink: #0b2a21;          /* header / table heads */
  --ink-2: #0f3a2d;
  --ink-3: #164b3b;
  --gold: #e9b23a;         /* brand accent */
  --gold-soft: #fbf1d8;
  --grass: #1f7a4c;
  --link: #0d6b4f;
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-2: #f7f9f6;
  --line: #e1e6df;
  --text: #17201c;
  --muted: #5f6d66;
  --row-alt: #f6f8f5;
  --hl-col: #fbf5e4;
  --win: #1f8a4c; --draw: #8a949a; --loss: #c33a32;
  --z-up: #1f8a4c; --z-po-up: #7cc39b; --z-down: #c33a32; --z-po-down: #e8a19b; --z-champ: #e9b23a;
  --portrait-bg: #dfe8e2; --portrait-fg: #b8c9bf;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 42, 33, .06), 0 2px 8px rgba(11, 42, 33, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-num: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #071c16; --ink-2: #0b261e; --ink-3: #12382c; --link: #6fd3a8; --bg: #0d1512; --surface: #131d19; --surface-2: #17231e;
    --line: #24332d; --text: #e6ece8; --muted: #97a59e; --row-alt: #16211c; --hl-col: #2a2616; --gold-soft: #2c2614;
    --portrait-bg: #1b2a24; --portrait-fg: #2f443b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #071c16; --ink-2: #0b261e; --ink-3: #12382c; --link: #6fd3a8; --bg: #0d1512; --surface: #131d19; --surface-2: #17231e;
  --line: #24332d; --text: #e6ece8; --muted: #97a59e; --row-alt: #16211c; --hl-col: #2a2616; --gold-soft: #2c2614;
  --portrait-bg: #1b2a24; --portrait-fg: #2f443b; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
small { font-size: .85em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ---------- header */
.site-header { background: var(--ink); color: #fff; }
.bar { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--gold); font-weight: 800; }
.site-footer .logo { color: var(--text); }
.main-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav > a, .main-nav .nav-top { color: #d7e4dd; padding: 8px 12px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.main-nav > a:hover, .main-nav > a[aria-current], .main-nav .nav-top:hover, .main-nav .nav-top[aria-current] { background: var(--ink-3); color: #fff; text-decoration: none; }
.bar-tools { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #3a5b50; border-radius: 999px; font-weight: 600; font-size: 13px; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--text); list-style: none; margin: 0; padding: 6px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.2); min-width: 170px; z-index: 30; }
.lang li a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text); }
.lang li a:hover, .lang li a[aria-current] { background: var(--surface-2); text-decoration: none; }
.lang li a[aria-current] { font-weight: 700; }
.theme-btn { background: transparent; border: 1px solid #3a5b50; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.search-strip { background: var(--ink-2); padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); }
.search-row { display: flex; align-items: center; gap: 18px; }
.search { position: relative; display: flex; align-items: center; flex: 1; background: #fff; border-radius: 10px; padding: 4px 4px 4px 12px; gap: 8px; color: #5f6d66; }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 8px 0; background: transparent; color: #17201c; min-width: 0; }
.search button { background: var(--gold); color: #1d1606; border: 0; border-radius: 8px; padding: 9px 18px; font-weight: 700; cursor: pointer; }
.strip-link { color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) { .strip-link { display: none; } .bar { gap: 12px; } }
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--text); list-style: none; margin: 0; padding: 6px; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.25); z-index: 40; max-height: 70vh; overflow: auto; }
.ac li a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 6px; color: var(--text); }
.ac li a:hover, .ac li[aria-selected="true"] a { background: var(--surface-2); text-decoration: none; }
.ac .ac-type { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 64px; }
.locale-banner { background: var(--gold-soft); border-bottom: 1px solid var(--line); padding: 8px 0; }
.locale-banner .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding-top: 20px; padding-bottom: 40px; }
.sidebar { min-width: 0; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.layout.layout-full { grid-template-columns: minmax(0, 1fr); }
.content { min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- panels & widgets */
.panel, .widget { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.panel > :not(.panel-h):not(.tbl-wrap):not(table):not(.mlist):not(.tabs):not(.pitch) { margin-left: 14px; margin-right: 14px; }
.panel-h, .widget-h { background: var(--ink); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; padding: 10px 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-h a, .widget-h a { color: #fff; }
.panel-h small, .widget-h span { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .75; }
.panel-more, .widget-more { display: block; text-align: center; padding: 10px; font-weight: 700; border-top: 1px solid var(--line); background: var(--surface-2); }
.widget > p { margin: 10px 14px; }
.db-stats { padding: 4px 0; }
.page-h { font-size: 26px; margin: 4px 0 14px; }
.intro { margin: 0 0 16px; }
.intro h1 { font-size: 26px; letter-spacing: -.02em; }
.lead { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.note { color: var(--muted); font-size: 12px; margin: 10px 14px 14px; }
.empty { color: var(--muted); padding: 16px 14px; margin: 0; }
.empty-state { padding: 30px; text-align: center; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.tag, .pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: #6b4d00; vertical-align: middle; }
:root[data-theme="dark"] .tag, :root[data-theme="dark"] .pill { color: var(--gold); }
.btn { display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.btn:hover { text-decoration: none; background: var(--ink-3); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* ---------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; }
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--gold); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs-pill { border: 0; background: var(--surface); padding: 6px; border-radius: var(--radius); box-shadow: var(--shadow); }
.tabs-pill a { border: 0; border-radius: 8px; margin: 0; text-transform: none; font-size: 14px; }
.tabs-pill a[aria-current] { background: var(--gold-soft); }

/* ---------- tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 7px 10px; text-align: left; white-space: nowrap; }
.tbl thead th { background: var(--ink-3); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; position: sticky; top: 0; }
.tbl tbody tr:nth-child(even) { background: var(--row-alt); }
.tbl tbody tr:hover { background: var(--gold-soft); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.hl, .tbl th.hl { background: var(--hl-col); }
.tbl thead th.hl { background: #a37a17; }
.tbl tfoot th, .tbl tfoot td { border-top: 2px solid var(--ink-3); font-weight: 700; background: var(--surface-2); }
.tbl-compact th, .tbl-compact td { padding: 5px 8px; }
.tbl .team a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.tbl-standings td.pos { font-weight: 700; border-left: 4px solid transparent; }
.tbl-standings tr.z-up td.pos { border-left-color: var(--z-up); }
.tbl-standings tr.z-po-up td.pos { border-left-color: var(--z-po-up); }
.tbl-standings tr.z-down td.pos { border-left-color: var(--z-down); }
.tbl-standings tr.z-po-down td.pos { border-left-color: var(--z-po-down); }
.tbl-standings tr.z-champ td.pos { border-left-color: var(--z-champ); }
.tbl tr.is-hl td { font-weight: 700; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; padding: 10px 14px; margin: 0; font-size: 12px; color: var(--muted); }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend .z-up::before { background: var(--z-up); } .legend .z-po-up::before { background: var(--z-po-up); }
.legend .z-down::before { background: var(--z-down); } .legend .z-po-down::before { background: var(--z-po-down); }
.group-row th { background: #d6e6dc !important; color: var(--ink) !important; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
:root[data-theme="dark"] .group-row th { background: #1d3229 !important; color: var(--text) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .group-row th { background: #1d3229 !important; color: var(--text) !important; } }
.tbl-career tr.season-start td { border-top: 1px solid var(--line); }
.tbl-career td.season { font-weight: 700; color: var(--muted); }
.loan { color: var(--grass); font-weight: 700; font-size: 11px; }
.tbl-foot { background: var(--ink); color: #fff; margin: 0 !important; padding: 8px 14px; font-size: 12px; font-weight: 600; }
.partial { color: #b06a00; text-decoration: none; cursor: help; }

/* chips */
.chip { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; margin-right: 2px; }
.chip-W { background: var(--win); } .chip-D { background: var(--draw); } .chip-L { background: var(--loss); }

/* flags & crests */
.flag { display: inline-block; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); margin-right: 4px; flex: none; }
.flag-emoji, .flag-svg { width: 20px; height: 15px; line-height: 15px; font-size: 14px; text-align: center; overflow: hidden; }
.flag-emoji { font-family: "Noto Color Emoji","Apple Color Emoji","Segoe UI Emoji",sans-serif; }
.page-h .flag { width: 26px; height: 18px; vertical-align: -3px; }

.flag-txt { font-size: 9px; font-weight: 800; background: var(--surface-2); color: var(--muted); padding: 1px 3px; box-shadow: 0 0 0 1px var(--line); }
.crest { display: inline-grid; place-items: center; flex: none; object-fit: contain; }
.crest-mono { border-radius: 50%; color: #fff; font-weight: 800; background: hsl(var(--h) 45% 32%); box-shadow: inset 0 0 0 2px hsl(var(--h) 50% 55% / .6); letter-spacing: -.03em; }
.crest-xs { width: 20px; height: 20px; font-size: 9px; }
.crest-sm { width: 32px; height: 32px; font-size: 12px; }
.crest-md { width: 48px; height: 48px; font-size: 17px; }
.crest-lg { width: 84px; height: 84px; font-size: 28px; }
.crest-xl { width: 128px; height: 128px; font-size: 42px; }

/* lists */
.link-grid { list-style: none; margin: 0; padding: 8px 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.link-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .link-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-grid li { padding: 4px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-grid a { display: inline-flex; align-items: center; gap: 6px; }
.mini-results { list-style: none; margin: 0; padding: 4px 0; }
.mini-results a { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 6px 14px; color: var(--text); font-size: 13px; }
.mini-results a span:first-child { text-align: right; }
.mini-results a:hover { background: var(--surface-2); text-decoration: none; }
.result-list { list-style: none; margin: 0; padding: 4px 0; }
.result-list a { display: block; padding: 8px 14px; border-bottom: 1px solid var(--line); }

/* match rows */
.mlist { display: flex; flex-direction: column; }
.mrow { display: grid; grid-template-columns: 90px minmax(0, 1fr) 56px minmax(0, 1fr) 24px; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.mrow:has(.mrow-comp) { grid-template-columns: 90px 120px minmax(0, 1fr) 56px minmax(0, 1fr) 24px; }
.mrow:hover { background: var(--gold-soft); text-decoration: none; }
.mrow-date { color: var(--muted); font-size: 12px; }
.mrow-comp { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-team { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; font-weight: 600; }
.mrow-team.home { justify-content: flex-end; text-align: right; }
.mrow-score { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--ink); color: #fff; border-radius: 6px; padding: 3px 0; }
.mrow-score.is-fixture { background: var(--surface-2); color: var(--muted); font-weight: 600; }
@media (max-width: 720px) {
  .mrow, .mrow:has(.mrow-comp) { grid-template-columns: 54px minmax(0, 1fr) 46px minmax(0, 1fr) 20px; gap: 6px; padding: 8px 10px; font-size: 13px; }
  .mrow-comp { display: none; }
  .mrow .crest { display: none; }
}
.mrow-wrap { position: relative; }
.mrow-badges { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* events */
.ev { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; margin-left: 4px; }
.ev small { font-size: 10px; color: var(--muted); }
.ev-yellow, .ev-yellow2, .ev-red { width: 9px; height: 12px; border-radius: 2px; background: #f2c200; }
.ev-yellow2 { background: linear-gradient(135deg, #f2c200 50%, #d0312d 50%); }
.ev-red { background: #d0312d; }
.ev-off { color: var(--loss); font-size: 11px; font-weight: 700; }
.ev-on { color: var(--win); font-size: 11px; font-weight: 700; }

/* ---------- heroes */
.hero { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.hero h1 { font-size: 28px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.hero h1 .flag { width: 26px; height: 18px; }
.hero-main { flex: 1; min-width: 220px; }
.hero-sub { margin: 6px 0 0; color: #cfe0d7; }
.hero-sub a { color: var(--gold); }
.hero-sub.big { font-size: 17px; font-weight: 700; color: #fff; }
.aka { margin: 2px 0 0; color: #a9c8b9; }
.hero-card { background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.25); position: relative; }
.portrait svg, .portrait img { display: block; width: 140px; height: 175px; border-radius: 6px; object-fit: cover; }
.portrait-crest { position: absolute; right: -10px; bottom: -10px; background: #fff; border-radius: 50%; padding: 3px; }
.season-select { display: flex; align-items: center; gap: 8px; }
.season-select select { font: inherit; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-width: 180px; }
.hero .season-select label { color: #cfe0d7; }
.season-bar { padding: 12px 0; }
.season-bar > * { margin: 0 14px; }
.summary { margin-top: 8px !important; }
.season-comps { list-style: none; padding: 0; margin-top: 8px !important; display: grid; gap: 4px; }
.season-comps li { line-height: 1.45; }
.season-comps .muted { margin-left: 6px; }
.mini-box { border-collapse: collapse; background: #fff; color: #17201c; border-radius: 8px; overflow: hidden; font-size: 12px; min-width: 220px; }
.mini-box caption { caption-side: top; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 4px; color: #cfe0d7; }
.mini-box th, .mini-box td { padding: 5px 10px; text-align: right; border-bottom: 1px solid #e8ece8; }
.mini-box th:first-child { text-align: left; }
.mini-box thead th { background: #eef2ee; }
.form-strip { display: flex; gap: 8px; list-style: none; margin: 0; padding: 10px; border: 1px solid #2f5246; border-radius: 10px; background: var(--ink-2); }
.form-strip a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 11px; min-width: 52px; }
.form-strip a:hover { text-decoration: none; }
.fs-top { border-radius: 999px; padding: 2px 7px; font-weight: 800; font-size: 11px; color: #fff; }
.fs-top.is-next { background: #000; }
.fs-date { color: #a9c8b9; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0 !important; }
.facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .facts-2 { grid-template-columns: minmax(0, 1fr); } }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.facts-2 > div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* league columns */
.league-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 20px; padding: 12px 14px; }
.league-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--loss); margin: 8px 0 4px; display: flex; align-items: center; gap: 4px; }
.league-col ul { list-style: none; margin: 0; padding: 0; }
.league-col li { padding: 3px 0; }

/* ---------- match page */
.match-hero { background: radial-gradient(120% 140% at 50% 0%, var(--ink-3), var(--ink) 60%); color: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.match-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; padding: 12px 20px; font-size: 13px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.match-meta a { color: var(--gold); }
.match-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 28px 20px 12px; }
.mb-team { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; color: #fff; }
.mb-team .crest { grid-row: span 2; }
.mb-team.away { grid-template-columns: 1fr auto; text-align: right; }
.mb-team.away .crest { grid-column: 2; grid-row: 1 / span 2; }
.mb-team.away .mb-label, .mb-team.away .mb-name { grid-column: 1; }
.mb-team:hover { text-decoration: none; }
.mb-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #a9c8b9; align-self: end; }
.mb-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; align-self: start; }
.mb-score { text-align: center; }
.mb-score .score { display: block; font-size: 64px; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mb-score .score.is-fixture { font-size: 34px; }
.mb-score .ht { display: block; margin-top: 6px; color: #cfe0d7; font-size: 13px; font-weight: 600; }
.mb-scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 140px; padding: 0 20px 14px; font-size: 13px; color: #e4efe9; }
.mb-scorers .away { text-align: right; }
.mb-scorers small { color: #a9c8b9; }
.match-strip { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.18); }
.match-strip > div { padding: 10px 18px; border-right: 1px solid rgba(255,255,255,.08); }
.match-strip dt { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #a9c8b9; font-weight: 700; }
.match-strip dd { margin: 2px 0 0; font-weight: 700; }
.match-strip a { color: #fff; }
@media (max-width: 720px) {
  .match-board { grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 18px 12px 8px; }
  .mb-team, .mb-team.away { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .mb-team .crest, .mb-team.away .crest { grid-row: auto; grid-column: auto; width: 52px; height: 52px; font-size: 18px; }
  .mb-team.away .mb-label, .mb-team.away .mb-name { grid-column: auto; }
  .mb-name { font-size: 15px; }
  .mb-score .score { font-size: 40px; }
  .mb-scorers { gap: 16px; }
}
.lineup { list-style: none; margin: 0 !important; padding: 0; }
.lineup li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.lineup li > span:nth-child(2) { display: flex; flex-direction: column; }
.lineup .no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); font-weight: 800; font-size: 12px; color: var(--muted); }
.lineup .unused { opacity: .6; }
.lineup .badges { display: flex; justify-content: flex-end; flex-wrap: wrap; }
.cap { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: #000; font-size: 10px; font-weight: 800; text-decoration: none; margin-left: 4px; }
.sub-h { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px 4px; }
.view-toggle { margin-left: auto; display: inline-flex; background: rgba(255,255,255,.12); border-radius: 8px; padding: 2px; }
.view-toggle button { background: transparent; border: 0; color: #fff; padding: 4px 10px; border-radius: 6px; font: inherit; font-size: 12px; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.pitch { margin: 14px; border-radius: 12px; padding: 18px 8px; display: flex; flex-direction: column; gap: 26px; justify-content: space-between; min-height: 420px;
  background: repeating-linear-gradient(0deg, #2b8a55 0 40px, #2f925b 40px 80px); box-shadow: inset 0 0 0 3px rgba(255,255,255,.55); position: relative; }
.pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; border: 2px solid rgba(255,255,255,.5); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-row { display: flex; justify-content: space-around; position: relative; z-index: 1; }
.pitch-player { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; width: 90px; text-align: center; }
.pitch-player:hover { text-decoration: none; }
.shirt { width: 38px; height: 38px; border-radius: 10px 10px 14px 14px; background: var(--ink); border: 2px solid #fff; display: grid; place-items: center; font-weight: 800; }
.pname { background: rgba(0,0,0,.65); padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbadges .ev small { color: #fff; }
.report p { font-size: 15px; line-height: 1.65; }
.milestones { background: var(--surface-2); border-radius: 8px; padding: 10px 14px 10px 30px; margin: 0 14px 10px; }
.timeline { list-style: none; margin: 0 !important; padding: 8px 0; }
.timeline li { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; padding: 5px 14px; }
.tl-min { grid-column: 2; text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-home .tl-ev { grid-column: 1; grid-row: 1; text-align: right; }
.tl-away .tl-ev { grid-column: 3; grid-row: 1; }
.ev-goal::before, .ev-penaltygoal::before { content: "⚽"; }
.ev-owngoal::before { content: "⚽"; filter: grayscale(1); }
.ev-sub::before { content: "⇄"; color: var(--win); font-weight: 800; }
.tab-panel { scroll-margin-top: 16px; }

/* ---------- footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0 12px; }
.foot-grid { display: grid; grid-template-columns: 2fr 2fr 1.5fr; gap: 24px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.foot-langs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 4px 14px; justify-content: start; }
.foot-bottom { color: var(--muted); font-size: 12px; padding-top: 18px; }

/* ---------- admin */
.admin-body { background: var(--bg); }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-nav a { color: #d7e4dd; padding: 6px 10px; border-radius: 6px; font-weight: 600; }
.admin-nav a[aria-current] { background: var(--ink-3); color: #fff; }
.admin-wrap { padding: 20px 16px 40px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 16px; padding: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 12px; color: var(--muted); }
.form-grid input, .form-grid select, .form-grid textarea, .admin-wrap input[type=text], .admin-wrap input[type=search], .admin-wrap select, .admin-wrap textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.stat-card b { display: block; font-size: 24px; }
.status { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.status-done { background: #dff3e7; color: #1a6b3e; } .status-failed { background: #fde2e0; color: #9b2a23; } .status-running { background: var(--gold-soft); color: #6b4d00; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: var(--gold-soft); }
.alert-error { background: #fde2e0; color: #9b2a23; }
pre.log { background: #0b1712; color: #cfe0d7; padding: 14px; margin: 0; overflow: auto; max-height: 420px; font-size: 12px; }

/* fixes after visual review */
.widget .tbl td, .widget .tbl th { white-space: normal; }
.widget .tbl small { display: block; }
.panel-h .muted, .widget-h .muted { color: inherit; }
.lineup .no:empty { visibility: hidden; }
.mini-results a { font-size: 12px; }
.ev-og::before { content: "⚽"; filter: grayscale(1); }
.ev-secondyellow { width: 9px; height: 12px; border-radius: 2px; background: linear-gradient(135deg, #f2c200 50%, #d0312d 50%); }

/* ---------- club season page (cs-*) */
.cs-hero { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); color: #fff; border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.cs-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px 0; }
.cs-hero-club { display: flex; align-items: center; gap: 14px; }
.cs-hero-club img.crest { background: #fff; border-radius: 50%; padding: 6px; }
.cs-hero h1 { font-size: 26px; letter-spacing: -.02em; }
.cs-hero-sub { margin: 4px 0 0; color: #cfe0d7; display: flex; align-items: center; gap: 6px; }
.cs-season-select label { color: #cfe0d7; }
.cs-season-select select { min-width: 110px; }
.cs-hero-big { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; padding: 18px 22px 20px; }
.cs-big { display: flex; flex-direction: column; gap: 2px; }
.cs-big small { color: #cfe0d7; font-size: 12px; }
.cs-big-center { text-align: center; align-items: center; }
.cs-big-right { text-align: right; align-items: flex-end; }
.cs-big-num { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cs-big-year { font-size: 64px; line-height: .95; font-weight: 800; letter-spacing: -.04em; color: var(--gold); }
.cs-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--grass); }
.cs-hero .cs-eyebrow { color: var(--gold); }
.cs-hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; border-top: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.15); }
.cs-hero-facts > div { padding: 10px 14px; border-right: 1px solid rgba(255,255,255,.08); }
.cs-hero-facts dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #a9c2b6; font-weight: 700; }
.cs-hero-facts dd { margin: 3px 0 0; font-weight: 700; font-size: 13px; }
.cs-hero-facts a { color: #fff; }
.cs-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.cs-count { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--gold-soft); color: var(--ink); font-size: 11px; font-weight: 700; }
.cs-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 14px; }
.cs-sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cs-sec-head h2 { font-size: 22px; letter-spacing: -.02em; margin-top: 2px; }
.cs-sec-head h2 a { color: inherit; }
.cs-lead { color: var(--muted); margin: 0 0 14px; max-width: 70ch; }
.cs-seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.cs-seg a { padding: 5px 12px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 13px; }
.cs-seg a:hover { text-decoration: none; color: var(--text); }
.cs-seg a[aria-current] { background: var(--ink); color: #fff; }
.cs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cs-card { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; margin-right: -1px; margin-bottom: -1px; }
.cs-card > span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.cs-card strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cs-card strong.cs-card-name { font-size: 15px; line-height: 1.3; margin-top: 6px; }
.cs-card small { color: var(--muted); font-size: 12px; }
.cs-comps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--line); }
.cs-comp { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 4px 0; border-right: 1px solid var(--line); color: var(--text); }
.cs-comp + .cs-comp { padding-left: 14px; }
.cs-comp:hover { text-decoration: none; background: var(--surface-2); }
.cs-comp strong { font-size: 16px; }
.cs-comp-res { color: var(--link); font-weight: 700; font-size: 15px; }
.cs-comp small { color: var(--muted); }
.cs-split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 900px) { .cs-split { grid-template-columns: 1fr; } }
.cs-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cs-key { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--text); background: var(--surface); }
.cs-key:hover { text-decoration: none; box-shadow: var(--shadow); border-color: var(--grass); }
.cs-key-top { position: relative; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); color: #fff; padding: 14px 14px 10px; }
.cs-key-label { position: absolute; top: 10px; right: 10px; background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 10px; }
.cs-key-crests { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 0 8px; }
.cs-key-crests span { font-weight: 800; color: #a9c2b6; font-size: 13px; }
.cs-key-meta { font-size: 12px; color: #cfe0d7; }
.cs-key-meta b { color: #fff; }
.cs-key-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; font-size: 13px; }
.cs-key-score span:last-child { text-align: right; }
.cs-key-score strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cs-key-score .res-W { color: var(--win); } .cs-key-score .res-L { color: var(--loss); } .cs-key-score .res-D { color: var(--draw); }
.cs-key-foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12px; }
.cs-league-pos { text-align: right; }
.cs-league-pos strong { display: block; font-size: 44px; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
:root[data-theme="dark"] .cs-league-pos strong { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs-league-pos strong { color: var(--gold); } }
.cs-league-pos small { color: var(--muted); font-size: 11px; }
.cs-league-facts { margin: 0 0 12px; }
.cs-league-facts > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cs-league-facts dt { color: var(--muted); } .cs-league-facts dd { margin: 0; font-weight: 700; }
.cs-sub { font-size: 13px; margin: 6px 0 6px; }
.cs-mini-table { width: 100%; }
.cs-mini-table tr.is-hl td { background: var(--gold-soft); font-weight: 700; }
.cs-more { text-align: right; margin: 8px 0 0; font-weight: 600; }
.cs-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
@media (max-width: 900px) { .cs-cols3 { grid-template-columns: 1fr; } }
.cs-col { padding: 0 16px; border-left: 1px solid var(--line); }
.cs-col:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 900px) { .cs-col { padding: 12px 0 0; border-left: 0; } }
.cs-col-h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cs-list { list-style: none; margin: 0; padding: 0; }
.cs-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cs-list li .flag { margin-top: 3px; }
.cs-list li div { display: flex; flex-direction: column; }
.cs-list li a { font-weight: 600; }
.cs-list small { color: var(--muted); font-size: 12px; }
.cs-tr { margin: 0; }
.cs-tr > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cs-tr dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding-top: 2px; }
.cs-tr dd { margin: 0; text-align: right; font-weight: 700; font-size: 16px; display: flex; flex-direction: column; align-items: flex-end; }
.cs-tr dd small { color: var(--muted); font-weight: 500; font-size: 12px; }
.cs-tr dd strong { font-size: 20px; }
.cs-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.cs-role { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cs-role a { font-weight: 600; }
.cs-dir { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 8px; }
.cs-dir-in { background: #e2f3e9; color: var(--win); } .cs-dir-out { background: #f8e3e1; color: var(--loss); }
@media (max-width: 720px) {
  .cs-hero-big { grid-template-columns: 1fr 1fr; }
  .cs-big-center { grid-column: 1 / -1; order: -1; }
  .cs-big-year { font-size: 52px; }
  .cs-big-num { font-size: 34px; }
  .cs-big-right { text-align: right; }
}
:root[data-theme="dark"] .cs-count { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs-count { color: var(--gold); } }

/* ---- country / city pages, location links */
.cs-hero-sub a { color: var(--gold); text-decoration: none; }
.cs-hero-sub a:hover { text-decoration: underline; }
.geo-list { list-style: none; margin: 0; padding: 6px 14px 12px; columns: 2 260px; column-gap: 24px; }
.geo-list li { padding: 5px 0; break-inside: avoid; }
.geo-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 14px; }
.geo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; background: var(--surface); }
.geo-chip small { color: var(--muted); font-weight: 600; }
.geo-chip:hover { border-color: var(--gold); }
.geo-clubs { list-style: none; margin: 0; padding: 6px 14px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 20px; }
.geo-clubs li { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--line); }
.geo-clubs li > a { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: inherit; }
.geo-clubs li > small { padding-left: 32px; }
.tbl-roster tr.is-left td { opacity: .85; }
.admin-crest { display: flex; align-items: center; gap: 12px; }
.admin-crest img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; border: 1px solid #ddd; }

/* ---------- admin list filters + bulk edit */
.admin-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-bottom: 12px; }
.admin-filters label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.admin-filters label.chk { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; }
.admin-filters input[type=number], .admin-filters input[type=date] { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); width: 9em; }
.admin-filters select { max-width: 220px; }
.admin-filters-btns { display: flex; gap: 6px; padding-bottom: 2px; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 10px 14px; margin-bottom: 12px; border-radius: 8px; background: var(--gold-soft); }
.bulk-bar label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bulk-bar select { max-width: 220px; }
.bulk-bar strong { padding-bottom: 8px; }
.tbl .chk-col { width: 28px; text-align: center; }
.tbl tbody tr.is-selected { background: var(--gold-soft); }
.pager { display: flex; gap: 12px; align-items: center; }

/* ---------- main menu (6 items incl. Stadiums mega) + mobile hamburger — 2026-11-20 */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.nav-burger { display: none; }
.main-nav > a[aria-current], .main-nav .nav-top[aria-current], .nav-mega.is-active > .nav-top { box-shadow: inset 0 -3px 0 var(--gold); }
@media (max-width: 960px) {
  .bar { position: relative; }
  .nav-burger { display: grid; place-items: center; margin-left: auto; width: 40px; height: 36px; border: 1px solid #3a5b50; border-radius: 8px; cursor: pointer; color: #fff; }
  .nav-burger:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; gap: 2px; background: var(--ink); padding: 8px 16px 14px; z-index: 40; box-shadow: 0 10px 24px rgba(0,0,0,.25); overflow: visible; }
  .main-nav > a, .main-nav .nav-top { padding: 12px; font-size: 16px; }
  .main-nav > a[aria-current], .main-nav .nav-top[aria-current], .nav-mega.is-active > .nav-top { box-shadow: inset 4px 0 0 var(--gold); }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .nav-toggle:checked + .nav-burger { background: var(--ink-3); }
}
.foot-grid { grid-template-columns: 2fr 1.4fr 1.1fr 1.5fr; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px 14px; }
.panel.filter-bar > * { margin-left: 0; margin-right: 0; }
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; flex: 1 1 180px; }
.filter-bar input, .filter-bar select { font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.filter-actions { display: flex; align-items: center; gap: 12px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; }
.az a { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; color: var(--text); }
.az a:hover, .az a[aria-current] { background: var(--ink); color: #fff; text-decoration: none; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 0 0 16px; }
.country-grid { list-style: none; margin: 0; padding: 6px 14px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 20px; }
.country-grid li { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--line); }
.country-grid li > a { display: flex; align-items: center; gap: 8px; font-weight: 600; color: inherit; }
.country-grid li > small { padding-left: 30px; }

/* ---------- stadiums (list + stadium page) */
.stadium-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:end;padding:1rem}
.stadium-filters label{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.stadium-filters input,.stadium-filters select{box-sizing:border-box;width:100%;min-width:0;font:inherit}
.stadium-filters fieldset{min-width:0;border:0;padding:0;margin:0}
.stadium-filters legend{margin-bottom:.35rem}
.stadium-range{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.stadium-wide{grid-column:1/-1}
@media(max-width:600px){.stadium-filters{grid-template-columns:minmax(0,1fr)}}
.nowrap{white-space:nowrap}
.show-sm{display:none}
.st-list td{vertical-align:middle}
.st-list .st-name{font-weight:600;min-width:12rem}
.st-list .st-name .flag{margin-right:.35rem;vertical-align:-2px}
.st-list .st-country{display:block;font-size:.8em}
.st-list .st-homes a{display:flex;align-items:center;gap:.35rem;white-space:nowrap}
.st-list .st-homes a + a{margin-top:.2rem}
.st-list tr.st-unnamed td{opacity:.7}
.st-list tr.st-unnamed .st-name{font-weight:400}
.st-list .group-row th{background:var(--surface-2);color:var(--muted);text-align:left;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;padding:.55rem .75rem}
@media(max-width:900px){.hide-md{display:none}}
@media(max-width:640px){.st-list .show-sm{display:block;font-weight:400;font-size:.8em}}

.st-hero{position:relative;display:flex;flex-wrap:wrap;gap:1rem 2rem;align-items:flex-end;justify-content:space-between;overflow:hidden}
.st-hero[style*="--st-bg"]::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,28,22,.92) 0%,rgba(7,28,22,.75) 55%,rgba(7,28,22,.45) 100%),var(--st-bg) center/cover no-repeat;z-index:0}
.st-hero > *{position:relative;z-index:1}
.st-hero h1 .flag{width:28px;height:21px;vertical-align:-1px;margin-right:.25rem}
.st-hero-homes a{display:inline-flex;align-items:center;gap:.3rem}
.st-hero-stats{display:flex;gap:.6rem;flex-wrap:wrap}
.st-hero-stats > div{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius);padding:.55rem .9rem;min-width:7.5rem}
.st-hero-stats b{display:block;font-size:1.35rem;font-family:var(--font-num);color:var(--gold);line-height:1.2}
.st-hero-stats span{font-size:.75rem;opacity:.85;text-transform:uppercase;letter-spacing:.04em}

.st-top{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:1rem;align-items:start}
.st-top > .panel{margin-bottom:0}
.st-top + *{margin-top:1rem}
@media(max-width:900px){.st-top{grid-template-columns:minmax(0,1fr)}}
.st-facts .facts .st-span{grid-column:1/-1}
.st-homes-list{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.st-homes-list li{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .6rem}
.st-homes-list a{display:inline-flex;align-items:center;gap:.4rem;font-weight:600}

.st-gallery{list-style:none;margin:0;padding:.75rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.st-gallery li{aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:var(--surface-2)}
.st-thumb{display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in}
.st-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.st-thumb:hover img,.st-thumb:focus-visible img{transform:scale(1.05)}
.st-thumb:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.st-gallery-empty li{border:2px dashed var(--line);background:transparent}
.st-gallery-empty + .empty{margin-top:0}
@media(max-width:480px){.st-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

.st-lightbox{border:0;padding:0;background:transparent;max-width:min(96vw,1400px);max-height:94vh;overflow:visible}
.st-lightbox::backdrop{background:rgba(5,12,10,.88)}
.st-lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:.5rem}
.st-lightbox img{max-width:min(96vw,1400px);max-height:84vh;object-fit:contain;border-radius:6px;background:#000}
.st-lightbox figcaption{color:#e6ece8;text-align:center;font-size:.95rem}
.st-lightbox figcaption .muted{color:#a9b6b0}
.st-lb-count{margin-left:.5rem}
.st-lb-btn{position:fixed;border:0;border-radius:50%;width:2.75rem;height:2.75rem;font-size:1.8rem;line-height:1;background:rgba(255,255,255,.14);color:#fff;cursor:pointer}
.st-lb-btn:hover,.st-lb-btn:focus-visible{background:var(--gold);color:var(--ink)}
.st-lb-close{top:1rem;right:1rem}
.st-lb-prev{left:1rem;top:50%;transform:translateY(-50%)}
.st-lb-next{right:1rem;top:50%;transform:translateY(-50%)}

.st-more{margin:0;border-top:1px solid var(--line)}
.st-more summary{cursor:pointer;padding:.7rem 1rem;color:var(--link);font-weight:600}

.st-records{margin-top:1.5rem}
.st-rec-h{margin-bottom:.15rem}
.st-rec-note{margin:0 0 .9rem}
.st-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}
.st-card{background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:var(--radius);box-shadow:var(--shadow);padding:.75rem .9rem;display:flex;flex-direction:column;gap:.2rem;min-width:0}
.st-card > span{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.st-card strong{font-size:1.6rem;font-family:var(--font-num);line-height:1.15}
.st-card small{font-size:.8rem;overflow-wrap:anywhere}
@media(max-width:640px){.st-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.st-split{display:flex;height:14px;border-radius:7px;overflow:hidden;margin:1rem 1rem .6rem}
.st-split-w{background:var(--win)} .st-split-d{background:var(--draw)} .st-split-l{background:var(--loss)}
.st-split-legend{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;margin:0;padding:0 1rem 1rem}
.st-split-legend i{display:inline-block;width:.75rem;height:.75rem;border-radius:3px;margin-right:.35rem;vertical-align:-1px}
.st-rec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
.st-rec-grid > .panel{margin-bottom:0}
.st-rec-grid + .panel{margin-top:1rem}
@media(max-width:800px){.st-rec-grid{grid-template-columns:minmax(0,1fr)}}
.st-rec td small{display:block}
.st-comps{list-style:none;margin:0;padding:.5rem 1rem 1rem;display:grid;gap:.35rem}
.st-comps li{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px dashed var(--line);padding-bottom:.3rem}
.st-comps b{font-family:var(--font-num)}
.st-source{margin:.5rem 1rem 1rem;font-size:.85rem}
.st-source a{font-weight:600}
.st-gh-intro{margin:.75rem 1rem .5rem}

/* ---------- stadium mega menu + continent cards — 2026-11-20 */
.site-header { position: relative; }
.nav-mega { display: flex; align-items: center; position: static; }
.mega-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.mega-btn { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; border-radius: 8px; color: #d7e4dd; cursor: pointer; font-size: 14px; line-height: 1; }
.mega-btn:hover, .mega-btn:focus-visible { background: var(--ink-3); color: #fff; outline: none; }
.mega-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mega-panel { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--surface); color: var(--text); box-shadow: 0 16px 40px rgba(0,0,0,.28); z-index: 45; padding: 18px 0 22px; border-top: 1px solid var(--line); }
.mega-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 20px; }
.mega-col { min-width: 0; }
.mega-head { display: block; font-weight: 800; color: var(--ink); letter-spacing: .01em; margin-bottom: 2px; }
.mega-head:hover { color: var(--ink); text-decoration: underline; }
.mega-sub { font-size: 11px; color: var(--muted); margin: 0 0 8px; line-height: 1.3; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-col li a { display: flex; align-items: center; gap: 6px; padding: 4px 0; color: var(--text); font-weight: 600; font-size: 13px; border-radius: 0; white-space: normal; }
.mega-col li a:hover { background: transparent; color: var(--ink); text-decoration: underline; }
@media (min-width: 961px) {
  .nav-mega:hover .mega-panel,
  .nav-mega:focus-within .mega-panel,
  .mega-toggle:checked ~ .mega-panel { display: block; }
}
@media (max-width: 960px) {
  /* Keep the panel on its own full-width row. Without flex-basis: 100% it stays
     on the same flex line as the Stadiums label (basis auto, ~half the screen)
     and align-items: center vertically centers the toggle in the tall list. */
  .nav-mega { flex-wrap: wrap; width: 100%; align-items: center; }
  .nav-mega > .nav-top { flex: 1 1 auto; min-width: 0; }
  .mega-panel { position: static; inset: auto; box-shadow: none; padding: 0 0 10px 16px; background: transparent; color: #d7e4dd; border-top: 0; display: none; flex: 1 1 100%; width: 100%; max-width: 100%; z-index: auto; }
  .mega-toggle:checked ~ .mega-panel { display: block; }
  .mega-cols { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .mega-head { color: #9db0a8; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
  .mega-head:hover { color: #fff; }
  .mega-sub { color: #9db0a8; }
  .mega-col li a { color: #d7e4dd; font-weight: 700; font-size: 14px; gap: 8px; padding: 4px 0; }
  .mega-col li a:hover { color: #fff; }
}
.continent-card-list { list-style: none; margin: 0; padding: 8px 14px 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.continent-card-list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: inherit; font-weight: 700; }
.continent-card-list a:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 900px) { .continent-card-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .continent-card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- clubs mega menu — 2026-11-20 */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.clubs-mega { display: grid; grid-template-columns: 220px minmax(280px, 1fr) 220px; gap: 8px 28px; align-items: start; position: relative; min-height: 380px; }
.cm-home { grid-column: 2; grid-row: 1; }
.cm-promoted { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; align-items: start; }
.cm-top-leagues a { display: flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; padding: 4px 0; }
.cm-left { display: flex; flex-direction: column; gap: 0; grid-column: 1; grid-row: 1; }
.cm-right { grid-column: 3; grid-row: 1; }
.cm-row { position: static; }
.cm-acc { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.cm-head { display: flex; align-items: center; gap: 4px; }
.cm-country { display: flex; align-items: center; gap: 8px; flex: 1; padding: 7px 8px; border-radius: 8px; color: inherit; font-weight: 700; font-size: 14px; }
.cm-country:hover, .cm-row:hover > .cm-head .cm-country, .cm-row:focus-within > .cm-head .cm-country { background: var(--surface-2); text-decoration: none; color: inherit; }
.cm-acc-lab { display: none; }
.cm-mid { display: none; }
.cm-label { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.cm-leagues { margin-bottom: 16px; }
.cm-leagues ul, .cm-clubs ul, .cm-continents { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cm-leagues a, .cm-continents a, .cm-all { font-weight: 700; color: inherit; padding: 4px 0; }
.cm-leagues a:hover, .cm-continents a:hover, .cm-all:hover, .cm-clubs a:hover { text-decoration: underline; }
.cm-clubs a { display: flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; padding: 5px 0; }
.cm-clubs img, .cm-clubs svg { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.cm-search { margin: 16px 0 14px; display: grid; gap: 8px; }
.cm-search label { display: grid; gap: 4px; }
.cm-search label span { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cm-search input[type="search"] { width: 100%; }
.cm-search .btn { justify-self: start; }
.cm-all { display: inline-block; font-weight: 800; }
.geo-clubs.clubs-by-league .clubs-league-h { grid-column: 1 / -1; display: block; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 12px 0 6px; margin-top: 8px; border-bottom: 2px solid var(--line); }
.geo-clubs.clubs-by-league .clubs-league-h:first-child { margin-top: 0; padding-top: 4px; }
.geo-clubs.clubs-by-league .clubs-league-h a { font-weight: 800; color: var(--ink); }
@media (min-width: 961px) {
  .cm-mid { position: absolute; left: 248px; right: 248px; top: 0; bottom: 0; }
  .cm-row:hover .cm-mid, .cm-row:focus-within .cm-mid { display: block; }
  .clubs-mega:has(.cm-row:hover) .cm-home,
  .clubs-mega:has(.cm-row:focus-within) .cm-home { visibility: hidden; }
}
@media (max-width: 960px) {
  .clubs-mega { display: block; min-height: 0; }
  .cm-home { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .cm-promoted { grid-template-columns: 1fr 1fr; }
  .cm-top-leagues a { color: #d7e4dd; }
  .cm-top-leagues a:hover { color: #fff; }
  .cm-right { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
  .cm-acc-lab { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #d7e4dd; cursor: pointer; flex-shrink: 0; }
  .cm-acc-lab:hover, .cm-acc-lab:focus-visible { background: var(--ink-3); color: #fff; outline: none; }
  .cm-acc-lab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .cm-country { color: #d7e4dd; padding: 8px 4px; }
  .cm-country:hover, .cm-row:hover > .cm-head .cm-country, .cm-row:focus-within > .cm-head .cm-country { background: transparent; color: #fff; }
  .cm-mid { position: static; display: none; padding: 4px 8px 10px 28px; }
  .cm-acc:checked ~ .cm-mid { display: block; }
  .cm-label, .cm-search label span { color: #9db0a8; }
  .cm-leagues a, .cm-clubs a, .cm-continents a, .cm-all { color: #d7e4dd; }
  .cm-leagues a:hover, .cm-clubs a:hover, .cm-continents a:hover, .cm-all:hover { color: #fff; }
  .cm-search input[type="search"] { background: #fff; color: #111; }
}
