/* Czcionki na własnym serwerze (bez Google Fonts) – licencja SIL OFL */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/oswald-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/oswald-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/oswald-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/oswald-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/oswald-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   KKS Gaudium Łężyny – barwy biało-niebieskie
   ========================================================= */
:root {
  --navy: #0b1f4b;
  --navy-2: #102a63;
  --navy-3: #071537;
  --club: #1a4fb5;
  --club-2: #2563d4;
  --sky: #7fb3ff;
  --bg: #f2f4f8;
  --surface: #ffffff;
  --ink: #101828;
  --muted: #5b6475;
  --line: #e1e5ec;
  --row: #f7f8fb;
  --highlight: #e8f0ff;
  --mark: #1a4fb5;
  --win: #1f9d55;
  --draw: #8b93a1;
  --loss: #d64545;
  --focus: #2563d4;
  --radius: 4px;
  --h: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --b: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1224; --surface: #111b31; --ink: #e9eef7; --muted: #9aa6bd; --line: #223050; --row: #0e1830;
    --highlight: #18294f; --mark: #7fb3ff; --navy-3: #050d22;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1224; --surface: #111b31; --ink: #e9eef7; --muted: #9aa6bd; --line: #223050; --row: #0e1830;
  --highlight: #18294f; --mark: #7fb3ff; --navy-3: #050d22;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.dim { color: var(--muted); }
h1, h2, h3 { font-family: var(--h); font-weight: 600; line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 30px; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 20px; margin-top: 30px; text-transform: uppercase; letter-spacing: .02em; }
h3.first { margin-top: 0; }
.note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.note a, .more { color: var(--club); font-weight: 700; text-decoration: none; font-family: var(--h); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.note a:hover, .more:hover { text-decoration: underline; }
.prose p { margin: 0 0 14px; line-height: 1.7; max-width: 72ch; }
.prose a { color: var(--club); }

/* ---------- Pasek górny i nagłówek ---------- */
.topbar { background: var(--navy-3); color: rgba(255,255,255,.8); font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.social { display: flex; gap: 14px; }
.social a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; }
.social a:hover { color: #fff; }
.season { font: 600 13px/1 var(--b); color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); height: 26px; padding: 0 6px; cursor: pointer; }
.season option { color: #101828; }

.site-head { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(4,12,32,.25); }
.head { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.crest { width: 52px; height: 52px; position: relative; display: grid; place-items: center; flex: none;
  background: #fff; color: var(--club); font: 700 26px/1 var(--h); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.crest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--navy); }
.crest:has(img) { clip-path: none; background: none; }
.brand-small { display: block; font: 500 12px/1 var(--h); letter-spacing: .25em; color: var(--sky); }
.brand-name { display: block; font: 700 24px/1.05 var(--h); text-transform: uppercase; letter-spacing: .02em; }
.tabs { display: flex; margin-left: auto; align-self: stretch; }
.tabs a { display: flex; align-items: center; padding: 0 13px; text-decoration: none; font: 500 15px/1 var(--h); text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.82); border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: #fff; background: rgba(255,255,255,.05); }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--sky); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: var(--radius); font: 500 14px/1 var(--h); text-transform: uppercase; letter-spacing: .08em; padding: 9px 14px; cursor: pointer; }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .tabs { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-2); flex-direction: column; padding: 6px 0 12px; }
  .tabs.open { display: flex; }
  .tabs a { padding: 13px 20px; border: 0; border-left: 3px solid transparent; }
  .tabs a[aria-current="page"] { border-left-color: var(--sky); background: rgba(255,255,255,.05); }
  .head { min-height: 64px; }
  .brand-name { font-size: 20px; }
  .crest { width: 44px; height: 44px; font-size: 22px; }
}
@media (max-width: 520px) { .topbar-league { display: none; } .topbar-in { justify-content: flex-end; } }

main { outline: none; }
.page { padding-top: 32px; padding-bottom: 56px; }
.crumb { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--h); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--club); }

/* ---------- Tytuły sekcji ---------- */
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 44px 0 16px; border-bottom: 2px solid var(--line); }
.sh h2 { margin: 0; padding: 0 0 10px; font-size: 26px; position: relative; }
.sh h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--club); }
.sh .more { padding-bottom: 12px; }
.sh.first { margin-top: 0; }
h2.sec { font-size: 26px; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); box-shadow: inset 0 -2px 0 0 transparent; }

/* ---------- Herby ---------- */
.cr { width: 28px; height: 28px; object-fit: contain; flex: none; display: inline-grid; place-items: center; vertical-align: middle; }
.cr-empty { background: var(--club); color: #fff; font: 600 13px/1 var(--h); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.cr.xs { width: 20px; height: 20px; font-size: 11px; margin-right: 8px; }
.cr.sm { width: 24px; height: 24px; font-size: 12px; }
.cr.md { width: 40px; height: 40px; font-size: 19px; }
.cr.lg { width: 64px; height: 64px; font-size: 28px; }
.cr.xl { width: 96px; height: 96px; font-size: 42px; }
.tcell { display: inline-flex; align-items: center; gap: 10px; }
.tlink { text-decoration: none; }
.tlink:hover { color: var(--club); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Strona główna: centrum meczowe ---------- */
.hero { margin: -32px calc(50% - 50vw) 0; padding: 34px 0 40px; color: #fff; position: relative;
  background: linear-gradient(180deg, rgba(7,21,55,.86), rgba(11,31,75,.94)), var(--hero-img, none) center / cover no-repeat, var(--navy); }
.hero-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1.45fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } .hero-in .mc-side:first-child { order: 2; } }
.mc { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; padding: 18px 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.mc:hover { background: rgba(255,255,255,.08); }
.mc-label { font: 500 13px/1 var(--h); text-transform: uppercase; letter-spacing: .14em; color: var(--sky); }
.mc-date { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.75); }
.mc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: 100%; margin: 14px 0 10px; }
.mc-team { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 500 15px/1.15 var(--h); text-transform: uppercase; letter-spacing: .02em; }
.mc-score { font: 700 44px/1 var(--h); letter-spacing: .02em; white-space: nowrap; }
.mc-score small { display: block; font: 500 22px/1 var(--h); }
.mc-foot { font-size: 13px; color: rgba(255,255,255,.65); }
.mc.main { background: #fff; color: var(--ink); border: 0; padding: 22px 18px 20px; }
.mc.main .mc-label { color: var(--club); }
.mc.main .mc-date, .mc.main .mc-foot { color: var(--muted); }
.mc.main .mc-team { font-size: 18px; }
.mc.main .mc-score { font-size: 56px; color: var(--navy); }
.mc.main .cr-empty { background: var(--club); }
.mc-cta { margin-top: 12px; display: inline-block; background: var(--club); color: #fff; font: 500 14px/1 var(--h); text-transform: uppercase; letter-spacing: .08em; padding: 11px 18px; }
.mc .res { margin-top: 4px; }
.hero .cr-empty { background: #fff; color: var(--navy); }
.hero .mc.main .cr-empty { background: var(--club); color: #fff; }

/* ---------- Pasek faktów ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); margin: 0 0 8px; }
.fact { padding: 16px 18px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { display: block; font: 600 32px/1 var(--h); color: var(--navy); }
.fact span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.fact b .res { color: #fff; }
.facts-tight { margin-top: 16px; }
@media (max-width: 560px) { .fact + .fact { border-left: 0; } .fact { border-top: 1px solid var(--line); } }
:root[data-theme="dark"] .fact b, :root:not([data-theme="light"]) .fact b { color: inherit; }

/* ---------- Wyniki W/R/P ---------- */
.res { display: inline-grid; place-items: center; width: 24px; height: 24px; font: 600 13px/1 var(--h); color: #fff; border-radius: 2px; }
.res.W { background: var(--win); } .res.R { background: var(--draw); } .res.P { background: var(--loss); }
.mini-form { display: inline-flex; gap: 3px; }
.mini-form .res { width: 20px; height: 20px; font-size: 11px; }
.fact b .res { width: 26px; height: 26px; font-size: 14px; margin-right: 3px; vertical-align: middle; }

/* ---------- Tabele ---------- */
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 10px; text-align: center; white-space: nowrap; }
thead th { background: var(--navy); color: #fff; font: 500 13px/1 var(--h); text-transform: uppercase; letter-spacing: .06em; }
tbody tr:nth-child(even) td { background: var(--row); }
tbody td { border-top: 1px solid var(--line); }
th.l, td.l { text-align: left; }
td.team { font-weight: 600; white-space: normal; min-width: 170px; }
td.pts { font: 600 18px/1 var(--h); }
td.pos { width: 44px; font: 500 16px/1 var(--h); color: var(--muted); }
tr.us td { background: var(--highlight) !important; }
tr.us td.pos { box-shadow: inset 4px 0 0 var(--mark); color: var(--ink); }
.compact .opt { display: none; }
.compact td.team { min-width: 0; }
@media (max-width: 640px) { .opt { display: none; } th, td { padding: 10px 6px; } td.team { min-width: 0; } }
@media (max-width: 560px) { .fcol { display: none; } }
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--ink); padding: 10px 16px; cursor: pointer; font: 500 14px/1 var(--h); text-transform: uppercase; letter-spacing: .06em; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.card { display: inline-block; width: 11px; height: 15px; border-radius: 1px; vertical-align: middle; }
.card.y { background: #f2c500; } .card.r { background: #d0242b; }

/* ---------- Listy meczów ---------- */
.rlist, .matches { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); }
.rlist li + li, .matches li + li { border-top: 1px solid var(--line); }
.rrow { display: grid; grid-template-columns: 58px 1fr 54px 1fr; gap: 10px; align-items: center; padding: 11px 14px; text-decoration: none; font-size: 15px; }
.rrow:hover { background: var(--highlight); }
.rrow.ours { font-weight: 700; }
.rwhen { font-size: 12px; color: var(--muted); line-height: 1.25; font-weight: 400; }
.rteam { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rteam span { overflow-wrap: break-word; line-height: 1.2; min-width: 0; }
.rteam.home { justify-content: flex-end; text-align: right; }
.rscore { text-align: center; font: 600 18px/1 var(--h); background: var(--navy); color: #fff; padding: 6px 0; }
@media (max-width: 480px) { .rrow { grid-template-columns: 1fr 48px 1fr; } .rwhen { grid-column: 1 / -1; } }
.match { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.match-when { font-size: 13px; color: var(--muted); line-height: 1.3; text-decoration: none; }
.match-when b { display: block; color: var(--ink); font: 600 16px/1.1 var(--h); text-transform: uppercase; }
a.match-when:hover b { color: var(--club); }
.match-teams { line-height: 1.5; }
.match-teams .us { font-weight: 700; }
.match-teams .cr { margin-right: 8px; }
.match-score { display: flex; align-items: center; gap: 10px; }
.score-link { text-decoration: none; font: 600 20px/1 var(--h); background: var(--navy); color: #fff; padding: 7px 10px; min-width: 58px; text-align: center; }
.score-link:hover { background: var(--club); }
.match-score sup { font-size: 10px; }
.tbd { font: 500 13px/1 var(--h); text-transform: uppercase; letter-spacing: .06em; color: var(--club); text-decoration: none; border: 1px solid var(--line); padding: 7px 10px; }
.round-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.round-nav button, .round-nav select { font: 500 15px/1 var(--h); color: var(--ink); background: var(--surface); border: 1px solid var(--line); height: 40px; }
.round-nav button { width: 40px; font-size: 22px; cursor: pointer; }
.round-nav button:disabled { opacity: .35; cursor: default; }
.round-nav select { padding: 0 10px; text-transform: uppercase; }

/* ---------- Siatki ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.duo.wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .duo, .duo.wide-right { grid-template-columns: 1fr; } }

/* ---------- Aktualności ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.news.lead { grid-template-columns: 1.6fr 1fr 1fr; }
.news.lead .news-card:first-child { grid-row: span 2; }
.news.lead .news-card:first-child b { font-size: 28px; }
@media (max-width: 900px) { .news.lead { grid-template-columns: 1fr 1fr; } .news.lead .news-card:first-child { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 560px) { .news.lead { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.news-card > img, .news-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .3s; }
.news.lead .news-card:first-child > img, .news.lead .news-card:first-child .news-noimg { aspect-ratio: auto; flex: 1; min-height: 220px; }
.news-card:hover > img { transform: scale(1.03); }
.news-noimg { background: linear-gradient(135deg, var(--navy), var(--club)); }
.news-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.news-body time, .article time { font: 500 12px/1 var(--h); text-transform: uppercase; letter-spacing: .08em; color: var(--club); }
.news-body b { font: 600 20px/1.2 var(--h); }
.news-card:hover .news-body b { color: var(--club); }
.news-lead { font-size: 14px; color: var(--muted); line-height: 1.45; }
.article { max-width: 820px; }
.article h2 { font-size: clamp(30px, 5vw, 44px); text-transform: none; margin-top: 8px; }
.article-img { width: 100%; margin: 6px 0 20px; display: block; }
@media (prefers-reduced-motion: reduce) { .news-card img { transition: none; } }

/* ---------- Kadra ---------- */
.ph { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--navy-2); }
.ph-empty { display: grid; place-items: center; color: rgba(255,255,255,.9); font: 600 46px/1 var(--h); background: linear-gradient(170deg, var(--club), var(--navy)); }
.ph.xs { width: 28px; height: 28px; aspect-ratio: 1; border-radius: 50%; font-size: 12px; flex: none; }
.squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.player { position: relative; text-decoration: none; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.player:hover { border-color: var(--club); }
.player .num { position: absolute; top: 8px; left: 10px; font: 700 34px/1 var(--h); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.player-name { padding: 10px 12px 12px; line-height: 1.15; border-top: 3px solid var(--club); }
.player-name b { display: block; font: 600 20px/1.1 var(--h); text-transform: uppercase; }
.player-name small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.squad-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.strip-item { flex: 0 0 140px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.strip-item span { display: block; padding: 8px 10px; font: 600 15px/1.1 var(--h); text-transform: uppercase; border-top: 3px solid var(--club); }
.profile { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 32px; align-items: start; }
.profile-photo { position: relative; }
.profile-photo .num.big { position: absolute; top: 10px; left: 14px; font: 700 64px/1 var(--h); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.profile h2 { font-size: 40px; text-transform: uppercase; }
.profile h2 small { display: block; font-size: 18px; color: var(--muted); }
@media (max-width: 680px) { .profile { grid-template-columns: 1fr; } .profile-photo { max-width: 280px; } }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); }
.info div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.info dt { font: 500 12px/1 var(--h); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info dd { margin: 6px 0 0; font-weight: 700; }
.goals { padding-left: 20px; margin: 0; }
.goals li { margin: 4px 0; }

/* ---------- Drużyny ---------- */
.teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.team-item { display: grid; grid-template-columns: 30px 44px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.team-item:hover { border-color: var(--club); }
.team-item.us { border-left: 4px solid var(--club); }
.team-pos { font: 600 18px/1 var(--h); color: var(--muted); }
.team-name { font: 600 17px/1.15 var(--h); text-transform: uppercase; }
.team-name small { display: block; font: 400 13px/1.3 var(--b); text-transform: none; color: var(--muted); margin-top: 3px; }
.team-pts { text-align: right; font: 700 26px/1 var(--h); color: var(--navy); }
.team-pts small { display: block; font: 400 11px/1.4 var(--b); color: var(--muted); text-transform: uppercase; }
.club-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.club-head h2 { margin: 0; font-size: 36px; }
.team-banner { margin: -32px calc(50% - 50vw) 28px; padding: 30px 0; background: var(--navy); color: #fff; }
.team-banner .wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.team-banner h2 { margin: 0; font-size: clamp(28px, 5vw, 44px); }
.team-banner .tb-stats { margin-left: auto; display: flex; gap: 28px; }
.team-banner .tb-stats b { display: block; font: 700 32px/1 var(--h); color: #fff; }
.team-banner .tb-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.team-banner .cr-empty { background: #fff; color: var(--navy); }
.team-banner .crumb a { color: rgba(255,255,255,.7); }

/* ---------- Strona meczu ---------- */
.scoreboard { margin: -32px calc(50% - 50vw) 0; padding: 26px 20px 28px; background: var(--navy); color: #fff; text-align: center; }
.scoreboard > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.sb-meta { font: 500 14px/1.6 var(--h); text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.sb-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 18px auto 12px; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font: 600 clamp(18px, 3.4vw, 28px)/1.1 var(--h); text-transform: uppercase; }
.sb-team small { font: 400 13px/1 var(--b); text-transform: none; color: rgba(255,255,255,.7); }
.sb-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sb-score > span { font: 700 clamp(52px, 10vw, 84px)/1 var(--h); white-space: nowrap; }
.sb-score i { font-style: normal; opacity: .45; margin: 0 4px; }
.sb-score small { font: 500 13px/1 var(--b); color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .05em; }
.sb-vs { font-size: clamp(34px, 6vw, 52px) !important; }
.sb-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin: 16px auto 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.sb-facts span { display: flex; flex-direction: column; align-items: center; font-weight: 600; }
.sb-facts small { font: 500 11px/1.4 var(--h); text-transform: uppercase; letter-spacing: .1em; color: var(--sky); }
.sb-link { display: inline-block; margin-top: 10px; color: #fff; font: 500 13px/1 var(--h); text-transform: uppercase; letter-spacing: .08em; }
.scoreboard .cr-empty { background: #fff; color: var(--navy); }
.chips { display: flex; gap: 0; overflow-x: auto; margin: 0 calc(50% - 50vw) 8px; padding: 0 calc(50vw - 50%); background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 10; }
@media (max-width: 1080px) { .chips { top: 64px; } }
.chips button { flex: none; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink); padding: 15px 16px 12px; font: 500 14px/1 var(--h); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.chips button:hover { color: var(--club); border-bottom-color: var(--club); }
section[id^="sec-"] { scroll-margin-top: 140px; }
.events { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); }
.events li { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 10px; align-items: center; padding: 10px 16px; }
.events li + li { border-top: 1px solid var(--line); }
.events small { display: block; color: var(--muted); font-size: 13px; }
.ev-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ev-side.h { justify-content: flex-end; text-align: right; }
.ev-side.h > span:last-child { order: -1; }
.ev-min { font: 600 18px/1 var(--h); text-align: center; color: var(--navy); }
.ev-min small { display: block; font: 600 12px/1.3 var(--b); color: var(--muted); }
.ev-ico.goal { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1px var(--ink); display: inline-block; flex: none; }
.ev-side .card + .card { margin-left: -4px; }
@media (max-width: 480px) { .events li { grid-template-columns: 1fr 40px 1fr; gap: 6px; padding: 8px; font-size: 14px; } }
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .lineups { grid-template-columns: 1fr; } }
.lu-col { background: var(--surface); border: 1px solid var(--line); }
.lu-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--navy); color: #fff; font: 600 16px/1 var(--h); text-transform: uppercase; }
.lu-head .cr-empty { background: #fff; color: var(--navy); }
.lineup1 { list-style: none; margin: 0; padding: 0 14px; }
.lineup1 li { display: grid; grid-template-columns: 34px 1fr; padding: 8px 0; border-top: 1px solid var(--line); }
.lineup1 li:first-child { border-top: 0; }
.lineup1 b { color: var(--club); font: 600 17px/1.2 var(--h); }
.lu-sub { margin: 0; padding: 8px 14px; background: var(--row); font: 500 12px/1 var(--h); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-top: 1px solid var(--line); }
.lu-col > p.muted { padding: 14px; }
.cap { display: inline-grid; place-items: center; width: 18px; height: 18px; background: var(--club); color: #fff; font: 700 11px/1 var(--b); margin-left: 6px; }
.refs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
table.cmp td { text-align: center; }
table.cmp td.cmp-l { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; white-space: normal; }
table.cmp td.pts { width: 30%; }
.h2h-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 12px; text-align: center; background: var(--line); border: 1px solid var(--line); }
.h2h-sum span { background: var(--surface); padding: 14px 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.h2h-sum b { display: block; font: 700 34px/1.1 var(--h); color: var(--navy); }
.frow { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; text-decoration: none; font-size: 14px; }
.frow:hover { background: var(--highlight); }
.frow b { font: 600 17px/1 var(--h); }
.pager { display: flex; justify-content: space-between; margin-top: 32px; }
.pager a { font: 500 14px/1 var(--h); text-transform: uppercase; letter-spacing: .06em; color: var(--club); text-decoration: none; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.gthumb { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.gthumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .3s; }
.gthumb:hover img { transform: scale(1.05); }
.lb { position: fixed; inset: 0; background: rgba(4,10,25,.94); display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; z-index: 60; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 90vh; margin: auto; }
.lb button { background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; height: 100%; }
.lb .lb-x { position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); right: 12px; height: auto; font-size: 40px; }

/* ---------- Sponsorzy i stopka ---------- */
.sponsors { margin: 56px calc(50% - 50vw) -56px; padding: 30px 20px 34px; background: var(--surface); border-top: 1px solid var(--line); text-align: center; }
.sponsors h3 { margin: 0 0 18px; font-size: 14px; color: var(--muted); letter-spacing: .14em; }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 44px; align-items: center; max-width: 1160px; margin: 0 auto; }
.sponsor-row img { max-height: 58px; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.sponsor-row a:hover img { filter: none; opacity: 1; }
.sponsor-row a, .sponsor-row div { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-foot { background: var(--navy-3); color: rgba(255,255,255,.75); padding: 40px 0 26px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { margin: 0 0 12px; color: #fff; font: 600 15px/1 var(--h); text-transform: uppercase; letter-spacing: .1em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 6px 0; }
.foot-grid a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #fff; font: 700 20px/1.1 var(--h); text-transform: uppercase; }
.foot-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-bottom a { color: rgba(255,255,255,.65); }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.links a { font-weight: 700; color: var(--club); }
.links:empty { display: none; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--club); cursor: pointer; font-weight: 700; }
.linkbtn:hover { text-decoration: underline; }
[aria-busy="true"] { opacity: .5; }
.notice-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--club); padding: 16px 18px; }

/* ---------- Mecz: składy z minutami, strzelcy, statystyki ---------- */
.lineup1 li { grid-template-columns: 34px 1fr auto; align-items: start; }
.li-main { min-width: 0; }
.li-evs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; }
.li-ev { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.li-ev .ev-ico.goal { width: 12px; height: 12px; box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--ink); }
.li-ev .card { width: 9px; height: 12px; }
.li-ev.in { color: var(--win); font-weight: 700; } .li-ev.out { color: var(--loss); font-weight: 700; }
.li-min { font: 600 15px/1.4 var(--h); color: var(--navy); min-width: 36px; text-align: right; }
.lineup1 li.nieg { opacity: .5; }
.sub-ico { font-size: 16px; color: var(--club); }
.ev-side .in { color: var(--win); font-weight: 700; }
.ev-side small.out { color: var(--loss); }
.sb-scorers { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 12px; align-items: start; margin: 4px auto 6px; font-size: 14px; color: rgba(255,255,255,.85); }
.sb-scorers .h { text-align: right; } .sb-scorers .a { text-align: left; }
.sb-scorers span { display: block; line-height: 1.6; }
.sb-scorers .ball { width: 14px; height: 14px; margin: 4px auto 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--navy), 0 0 0 1px #fff; }
.mstats { background: var(--surface); border: 1px solid var(--line); padding: 6px 20px 16px; }
.ms-row { padding: 12px 0 0; }
.ms-top { display: grid; grid-template-columns: 50px 1fr 50px; align-items: baseline; }
.ms-top b { font: 600 20px/1 var(--h); color: var(--navy); }
.ms-top b:last-child { text-align: right; }
.ms-top span { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ms-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.ms-bars span { height: 6px; background: var(--row); display: flex; }
.ms-bars .l { justify-content: flex-end; }
.ms-bars i { display: block; height: 100%; background: var(--navy); }
.ms-bars .r i { background: var(--club-2); }
.tb-sub { margin: 6px 0 0; color: rgba(255,255,255,.7); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Automatyczne aktualności ---------- */
.news-noimg { display: grid; place-items: center; }
.news-score { display: flex; align-items: center; gap: 18px; color: #fff; }
.news-score b { font: 700 40px/1 var(--h); letter-spacing: .02em; }
.news.lead .news-card:first-child .news-score b { font-size: 64px; }
.news.lead .news-card:first-child .news-score .cr { width: 84px; height: 84px; }
.news-score .cr-empty { background: #fff; color: var(--navy); }
.news-tag { align-self: flex-start; font: 600 11px/1 var(--h); text-transform: uppercase; letter-spacing: .1em; background: var(--club); color: #fff; padding: 4px 7px; }
.art-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; background: var(--navy); color: #fff; padding: 20px; margin: 8px 0 22px; text-decoration: none; text-align: center; }
.art-score b { font: 700 52px/1 var(--h); }
.as-team { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 17px/1.15 var(--h); text-transform: uppercase; }
.art-score .cr-empty { background: #fff; color: var(--navy); }
.art-score:hover b { color: var(--sky); }
.prose a.tlink { color: var(--club); }
.mlo { display: inline-grid; place-items: center; width: 18px; height: 18px; background: var(--win); color: #fff; font: 700 11px/1 var(--b); margin-left: 4px; }
.lu-coach { margin: 0; padding: 8px 14px 12px; font-weight: 600; }

.news-score .cr { width: 64px; height: 64px; }
.news.lead .news-card:first-child .news-score .cr { width: 110px; height: 110px; }
.news.lead .news-card:first-child .news-score b { font-size: 72px; }
/* Statystyki */
.stat-scope { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.stat-team { font: 500 15px/1 var(--h); text-transform: uppercase; height: 40px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.stat-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.stat-q { font: 400 15px/1 var(--b); height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 240px; }
.sortbtn { background: none; border: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; white-space: nowrap; }
.sortbtn.on { color: var(--sky); }
.stat-table tfoot td { border-top: 2px solid var(--navy); background: var(--row); }
.nrb { display: inline-block; min-width: 22px; color: var(--club); font: 600 15px/1 var(--h); }
.dw { font: 500 11px/1 var(--h); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-left: 6px; }
.sztab { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sztab div { background: var(--surface); padding: 12px 16px; }
.sztab small { display: block; font: 500 12px/1 var(--h); text-transform: uppercase; letter-spacing: .08em; color: var(--club); margin-bottom: 6px; }
.sztab b { font-weight: 700; }
.gal-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gal-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none; background: var(--navy); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: 13px; background: linear-gradient(transparent, rgba(5,12,30,.85)); }
.gal-item b { display: block; font: 600 18px/1.15 var(--h); text-transform: uppercase; }

/* Całe wiersze klikalne */
.match { position: relative; }
.match:hover { background: var(--highlight); }
.match .row-link { position: absolute; inset: 0; z-index: 1; }
.match .row-link:focus-visible { outline-offset: -3px; }
.match .match-teams a, .match .match-score a { position: relative; z-index: 2; }
.match:hover .match-when b { color: var(--club); }
tbody tr:has(a[href^="#/"]) { cursor: pointer; }
tbody tr:has(a[href^="#/"]):hover td { background: var(--highlight); }

/* Udostępnianie i Facebook */
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; font-size: 14px; }
.share span { color: var(--muted); font: 500 13px/1 var(--h); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: 600 13px/1 var(--b); cursor: pointer; }
.share .sh-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.share .sh-wa { background: #25d366; border-color: #25d366; color: #fff; }
.share .sh-x { background: #111; border-color: #111; color: #fff; }
.share a:hover, .share button:hover { filter: brightness(1.08); }
.scoreboard + .share { justify-content: center; margin: 14px 0 0; }
.fb-box { display: flex; justify-content: center; background: var(--surface); border: 1px solid var(--line); padding: 12px; }
.fb-box iframe { width: 100%; max-width: 500px; }

/* Długie tabele: nagłówek przyklejony podczas przewijania, kolumna z nazwiskiem przyklejona na telefonie */
.scroll.dlugie { max-height: min(78vh, 900px); overflow: auto; overscroll-behavior: contain; }
.scroll.dlugie thead th { position: sticky; top: 0; z-index: 3; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.stat-table tbody td { background: var(--surface); }
.stat-table tbody tr:nth-child(even) td { background: var(--row); }
.stat-table tbody tr.us td { background: var(--highlight); }
.stat-table tbody tr:hover td { background: var(--highlight); }
.stat-table tfoot td { position: sticky; bottom: 0; z-index: 2; }
@media (max-width: 760px) {
  .stat-table td.team, .stat-table th:nth-child(2) { position: sticky; left: 0; z-index: 2; box-shadow: 2px 0 0 var(--line); }
  .stat-table thead th:nth-child(2) { z-index: 4; }
  .stat-table td.team { max-width: 46vw; white-space: normal; }
}
