/* Lider CUP - strona publiczna (granat, niebieski klubowy i złoto, jak w prezentacji na 10-lecie UKS Lider Sławno) */

/* Fonty lokalne (Barlow i Barlow Condensed, licencja OFL) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400-latin.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: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500-latin.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: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600-latin.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: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600-latin.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: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700-latin.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: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-800-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-800-latin.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: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/barlow-condensed-900-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/barlow-condensed-900-latin.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; }

:root {
  --bg: #edf2f8;
  --surface: #ffffff;
  --surface-2: #e4ecf5;
  --text: #0b1f33;
  --muted: #50667d;
  --line: #d0dce8;
  --navy: #04172b;
  --navy2: #072747;
  --accent: #0763ab;
  --accent-ink: #ffffff;
  --accent-soft: #e0eefa;
  --gold: #f5b83d;
  --gold-light: #ffd97f;
  --head-ink: #072747;
  --time-bg: #072747;
  --chip: #072747;
  --win: #1d7a46;
  --loss: #b3372f;
  --shadow: 0 1px 2px rgba(4, 23, 43, .06), 0 3px 12px rgba(4, 23, 43, .06);
  --radius: 12px;
  --gutter: 16px;
  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #04172b; --surface: #0a2542; --surface-2: #10325a; --text: #eaf2fb; --muted: #a3bad2; --line: #1c426b;
    --accent: #6bb8f5; --accent-ink: #04172b; --accent-soft: #0f3761; --head-ink: #ffffff; --time-bg: #0763ab; --chip: #0763ab;
    --win: #6fdc95; --loss: #ff9a90; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font-body); overflow-x: hidden; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
a { color: var(--accent); }
b, strong { font-weight: 600; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }

/* ---------- Nagłówek: układ strony tytułowej prezentacji (logo | złota linia | tytuł) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 34px 0 38px;
  background:
    radial-gradient(700px 420px at 82% 0%, rgba(42, 142, 224, .34), transparent 65%),
    radial-gradient(560px 420px at 0% 110%, rgba(7, 99, 171, .5), transparent 62%),
    linear-gradient(160deg, var(--navy2) 0%, var(--navy) 75%);
  border-bottom: 5px solid var(--gold);
}
/* linie boiska: 6 m ciągła i 9 m przerywana */
.hero .court { position: absolute; right: 0; top: 0; height: 100%; width: auto; pointer-events: none; }
.hero .court circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.hero .court .dash { stroke-dasharray: 20 16; }
.hero .wrap { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 34px; }
.hero-logo { display: block; width: 300px; }
.hero-logo img { display: block; width: 100%; height: auto; }
.hero-sep { align-self: stretch; width: 3px; min-height: 130px; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
.hero h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: clamp(50px, 7.6vw, 92px); font-weight: 900; line-height: .9; }
.hero-title {
  background: linear-gradient(110deg, #e0a029 0%, var(--gold) 30%, #fff3cf 48%, var(--gold-light) 58%, #e0a029 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em;
}
.hero-date { padding: 9px 20px; border: 2px solid rgba(245, 184, 61, .8); border-radius: 60px; font-size: 27px; font-weight: 700; line-height: 1; letter-spacing: .06em; color: var(--gold-light); }
.hero-sub { margin: 14px 0 0; font: 600 23px/1.2 var(--font-display); }
.hero-meta { margin: 6px 0 0; font-size: 15px; color: #c3d6ea; }

/* ---------- Menu ---------- */
.tabs { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.tabs-inner { display: flex; gap: 2px; }
.tabs-inner a { padding: 14px 13px 11px; font: 700 19px/1.2 var(--font-display); color: var(--muted); text-decoration: none; border-bottom: 4px solid transparent; white-space: nowrap; }
.tabs-inner a:hover { color: var(--text); }
.tabs-inner a[aria-current="page"] { color: var(--head-ink); border-bottom-color: var(--gold); }
.tabs-inner a[data-view="transmisja"] { color: #d81f30; }
.tabs-inner a[data-view="transmisja"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 6px 2px 0; border-radius: 50%; background: #e11d2e; }
.daybar { display: flex; gap: 6px; padding-top: 9px; padding-bottom: 9px; border-top: 1px solid var(--line); }
.daybar button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 5px 18px; font: 600 17px/1.4 var(--font-display); color: var(--muted); }
.daybar button[aria-current="true"] { background: var(--chip); border-color: var(--chip); color: #fff; }
main.wrap { padding-top: 18px; padding-bottom: 36px; }

/* ---------- Filtr drużyny ---------- */
.filters { margin-bottom: 16px; }
.f-team { display: flex; align-items: center; gap: 10px; }
.f-label { font-size: 15px; color: var(--muted); font-weight: 500; }
.select-wrap { position: relative; flex: 1; max-width: 420px; display: flex; }
.select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none; padding: 10px 40px 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b87a3' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.select-wrap.has-value select { border-color: var(--accent); background-color: var(--accent-soft); padding-right: 70px; }
.clear { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 18px; line-height: 1; }

/* ---------- Herby ---------- */
.logo { position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); overflow: hidden; vertical-align: middle; }
.logo img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; background: #fff; }
.logo-ini { font: 800 13px/1 var(--font-display); color: #50667d; }
.logo-sm { width: 30px; height: 30px; }
.logo-md { width: 40px; height: 40px; }
.logo-lg { width: 64px; height: 64px; }
.logo-xl { width: 76px; height: 76px; }

/* ---------- Mecze ---------- */
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 28px 0 12px; scroll-margin-top: 120px; }
.day-head:first-child { margin-top: 0; }
.day-head h2 { margin: 0; font-size: 34px; line-height: 1; color: var(--head-ink); }
.day-head .muted { font-size: 15px; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.match { display: grid; grid-template-columns: 84px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.m-time { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--time-bg); color: #fff; font: 800 30px/1 var(--font-display); }
.m-nr { font: 500 13px/1 var(--font-body); color: var(--gold-light); }
.m-body { padding: 10px 14px; min-width: 0; }
.m-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.m-note { font-size: 14px; color: var(--muted); }
.side { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 3px 0; min-width: 0; }
.side.is-win .team { font-weight: 600; color: var(--win); }
.sc { font: 800 27px/1 var(--font-display); min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.sc small { font: 500 13px/1 var(--font-body); color: var(--muted); margin-right: 7px; vertical-align: 3px; }
.side.is-win .sc { color: var(--win); }
.sc-empty { color: var(--muted); opacity: .5; }
.team { border: 0; background: none; padding: 0; text-align: left; overflow-wrap: anywhere; min-width: 0; font-weight: 500; line-height: 1.25; }
button.team:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.team.is-mine { color: var(--accent); font-weight: 600; }
.match.is-live { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.match.is-live .m-time { background: var(--gold); color: var(--navy); }
.match.is-live .m-nr { color: inherit; }
.pill-live { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e11d2e; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 46, .6); } 100% { box-shadow: 0 0 0 9px rgba(225, 29, 46, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }
.day-note { margin: 0 0 10px; padding: 11px 16px; border-radius: 10px; background: var(--accent-soft); font-weight: 500; }
.end-note { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--chip); color: #fff; font: 700 21px/1.2 var(--font-display); text-align: center; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); }
.team-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.team-head h2 { margin: 0; font-size: 32px; line-height: 1; color: var(--head-ink); }
.team-head p { margin: 5px 0 0; color: var(--muted); }
.team-head b { color: var(--text); }

/* Walkower */
.wo-tag { font-size: 13px; font-weight: 600; color: #8a3a08; background: #fff0da; border-radius: 6px; padding: 1px 8px; }
.wo-note { margin: 5px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Teraz na boisku ---------- */
.now { margin-bottom: 20px; padding: 16px 18px; color: #fff; border-radius: var(--radius); background: radial-gradient(500px 260px at 90% 0%, rgba(42, 142, 224, .35), transparent 65%), linear-gradient(160deg, var(--navy2), var(--navy)); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.now-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.now-head h2 { margin: 0; font-size: 28px; line-height: 1; }
.nh-pill { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid rgba(255, 255, 255, .35); }
.nh-pill.is-live { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.btn-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border: 0; border-radius: 999px; background: #e11d2e; color: #fff; font-weight: 600; font-size: 15px; }
.btn-live .pulse { background: #fff; animation: none; }
.nh-meta, .nh-label { font-size: 14px; color: #b9cfe6; }
.nh-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 5px 0; font-size: 19px; font-weight: 600; }
.nh-row.is-win { color: var(--gold-light); }
.nh-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.nh-score { font: 900 38px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.nh-score small { font: 500 14px/1 var(--font-body); color: #b9cfe6; margin-right: 8px; vertical-align: 6px; }
.nh-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .18); }
.nh-next:first-of-type { margin-top: 0; }
.nh-time { font: 800 22px/1 var(--font-display); color: var(--gold-light); }
.nh-teams { font-weight: 500; }

/* ---------- Karty i tabele ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card h3 { margin: 0 0 12px; font-size: 27px; line-height: 1.05; color: var(--head-ink); }
.card h3 .muted { display: inline-block; margin-left: 8px; font: 400 15px/1.3 var(--font-body); text-transform: none; letter-spacing: 0; }
.tab-info { margin: 0 0 8px; }
.legend { margin: 12px 0 0; font-size: 14px; }
.mini, .rules { margin-top: 14px; }
.table-wrap { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings th, .standings td { padding: 9px 7px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.standings tbody tr:last-child td { border-bottom: 0; }
.standings th { font-size: 14px; color: var(--muted); font-weight: 500; }
.standings .tname { text-align: left; white-space: normal; width: 45%; }
.tn { display: flex; align-items: center; gap: 10px; }
.standings .pts { font: 800 24px/1 var(--font-display); }
.standings .pos { width: 38px; }
.standings .pos span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); font: 700 18px/1 var(--font-display); }
.standings tbody tr:nth-child(1) .pos span { background: var(--gold); color: var(--navy); }
.standings tbody tr:nth-child(2) .pos span { background: #cfd8e2; color: var(--navy); }
.standings tbody tr:nth-child(3) .pos span { background: #dd9c64; color: var(--navy); }
.mini .standings .pos span { background: var(--surface-2) !important; color: inherit !important; }
.standings tr.is-mine { background: var(--accent-soft); }
.standings sup { color: var(--muted); font-weight: 600; }
.standings sup.warn { color: #e11d2e; }

/* siatka wyników */
.cross { width: 100%; border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; }
.cross th { font-weight: 500; text-align: center; padding: 4px; }
.cross th small { margin-left: 4px; font: 700 15px/1 var(--font-display); }
.cross tbody th small { display: none; }
.cross .tname { text-align: left; min-width: 190px; }
.cross td { min-width: 66px; height: 46px; text-align: center; border-radius: 7px; background: var(--surface-2); font: 700 19px/1.1 var(--font-display); }
.cross td small { display: block; font: 400 12px/1.2 var(--font-body); }
.cross .x-self { background: repeating-linear-gradient(-45deg, var(--surface-2) 0 5px, transparent 5px 10px); }
.cross .x-plan { font: 400 13px/1.25 var(--font-body); color: var(--muted); }
.cross .x-win { background: color-mix(in srgb, var(--win) 18%, var(--surface)); color: var(--win); }
.cross .x-loss { background: color-mix(in srgb, var(--loss) 11%, var(--surface)); color: var(--loss); }
.cross .x-live { background: var(--gold); color: var(--navy); }

.rules ol { margin: 0; padding-left: 22px; }
.rules li { padding: 3px 0; }
.rules p { margin: 0 0 12px; }

.ranking { margin-bottom: 24px; border: 2px solid var(--gold); }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 18px; }
.rank-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.rank-pos { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); font: 800 25px/1 var(--font-display); }
.rank-list .gold .rank-pos { background: var(--gold); color: var(--navy); }
.rank-list .silver .rank-pos { background: #cfd8e2; color: var(--navy); }
.rank-list .bronze .rank-pos { background: #dd9c64; color: var(--navy); }
.pdf-link { font-weight: 500; font-size: 15px; }

/* ---------- Drużyny ---------- */
.clubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.club { display: flex; flex-direction: column; gap: 12px; }
.club-head { display: flex; align-items: center; gap: 16px; }
.club h3 { margin: 0; font-size: 28px; }
.club-head p { margin: 3px 0 0; font-size: 15px; }
.club-desc { margin: 0; }
.club-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.btn-fb, .btn-link { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 15px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.btn-link:hover { border-color: var(--accent); }
.btn-fb { background: #1465d8; border-color: #1465d8; color: #fff; }
.btn-fb svg { width: 17px; height: 17px; fill: currentColor; }
.host { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--gold); color: var(--navy); font: 600 14px/1 var(--font-body); text-transform: none; letter-spacing: 0; vertical-align: middle; }

.map-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.club-map { height: 560px; width: 100%; z-index: 0; }
.leaflet-container { font: inherit; background: var(--surface-2); }
.map-marker { background: none; border: 0; }
.map-logo { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 2px #0763ab, 0 2px 6px rgba(0, 0, 0, .3); overflow: hidden; }
.leaflet-container .map-logo img { width: 30px !important; height: 30px !important; max-width: 30px !important; object-fit: contain; }
.map-logo b { font-size: 12px; color: #50667d; }
.map-marker.is-host .map-logo { box-shadow: 0 0 0 4px var(--gold), 0 2px 6px rgba(0, 0, 0, .3); }
.map-pop { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-body); }
.map-team { border: 0; background: none; padding: 2px 0; text-align: left; font-weight: 600; color: var(--accent); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); }

/* ---------- Strony z panelu ---------- */
.page h2 { margin: 0 0 12px; font-size: 42px; line-height: 1; color: var(--head-ink); }
.page h3 { margin: 28px 0 12px; font-size: 30px; }
.page h4 { margin: 0; font-size: 25px; line-height: 1.08; color: var(--head-ink); }
.page img { max-width: 100%; height: auto; }
.attractions, .venues, .sponsors { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.attractions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attractions li, .venues li { display: flex; flex-direction: column; gap: 7px; padding: 17px 18px; border-radius: 10px; background: var(--surface-2); }
.attractions p, .venues p { margin: 0; }
.attractions small { font-size: 15px; color: var(--muted); }
.attractions a, .venues a { font-weight: 500; }
.venues { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0; }
.venues img { width: 100%; height: 130px; padding: 16px 22px; margin-bottom: 6px; object-fit: contain; background: #fff; border-radius: 8px; }
.sponsors { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
.sponsors li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #0b1f33; text-align: center; }
.sponsors img { width: 100%; height: 92px; object-fit: contain; }
.sponsors b { margin-top: auto; font-size: 15px; font-weight: 500; line-height: 1.3; }

/* ---------- Hala ---------- */
.section-title { margin: 28px 0 12px; font-size: 34px; line-height: 1; color: var(--head-ink); }
.hall-map { position: relative; height: 420px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.hall-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hall-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

/* ---------- Transmisja ---------- */
.stream-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.stream-head h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 34px; line-height: 1; }
.stream-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.stream-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.preview-bar { padding: 8px var(--gutter); background: #c81e2d; color: #fff; font-weight: 500; text-align: center; }
.preview-bar a { color: #fff; }

/* ---------- Stopka ---------- */
.foot { padding: 24px 0 30px; background: var(--navy); color: #c3d6ea; font-size: 15px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--gold-light); }

.tab-short { display: none; }
@media (max-width: 900px) {
  .hero .wrap { gap: 22px; }
  .hero-logo { width: 220px; }
  .sponsors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .venues { grid-template-columns: 1fr; }
  .venues img { height: 110px; }
}
@media (max-width: 760px) {
  .clubs, .attractions { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero { padding: 20px 0 22px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 14px; }
  .hero-logo { width: 190px; }
  .hero-sep { width: 100%; height: 2px; min-height: 0; background: linear-gradient(90deg, var(--gold), transparent); }
  .hero h1 { gap: 10px 16px; }
  .hero-date { font-size: 20px; padding: 7px 15px; }
  .hero-sub { font-size: 20px; margin-top: 12px; }
  /* menu w dwóch równych rzędach, wszystko widoczne bez przewijania w bok (7 zakładek: 4 + 3, z transmisją 4 + 4) */
  .tabs-inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; padding: 6px 6px 5px; }
  .tabs-inner a { grid-column: span 3; padding: 8px 2px; font-size: 16.5px; text-align: center; border: 0; border-radius: 8px; background: var(--surface-2); }
  .tabs-inner:not(.has-stream) a:nth-child(n+5) { grid-column: span 4; }
  .tabs-inner a[aria-current="page"] { background: var(--chip); color: #fff; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .daybar { padding: 8px 6px; }
  .daybar button { flex: 1 1 0; padding: 4px; }
  .day-head { scroll-margin-top: 145px; }
  .f-label { display: none; }
  .select-wrap { max-width: none; }
  .list { grid-template-columns: 1fr; }
  .match { grid-template-columns: 74px 1fr; }
  .m-time { font-size: 27px; }
  .card { padding: 15px 13px; }
  .standings .wdl, .standings .goals { display: none; }
  .standings th, .standings td { padding: 8px 4px; }
  .standings .team { overflow-wrap: normal; }
  .standings .tn { gap: 8px; }
  .standings .pos { width: 32px; }
  .card:not(.mini) > .legend-cols { display: none; }
  .cross .tname { min-width: 0; }
  .cross .x-name { display: none; }
  .cross tbody th small { display: inline; margin-left: -6px; }
  .cross td { min-width: 52px; font-size: 17px; }
  .club-map { height: 440px; }
  .sponsors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sponsors img { height: 70px; }
  .hall-map { height: 320px; }
}

@media print {
  .tabs, .filters, .foot { display: none !important; }
  .match, .card { box-shadow: none; break-inside: avoid; }
}
