/* Chrobry Głogów – strona drużyny, wersja 2.
   Dwa motywy: .theme-jasny (jak strona Akademii) i .theme-ciemny (jak strona główna klubu). */

body.theme-jasny {
  --bg: #ffffff; --ink: #212529; --muted: #6c757d; --line: #dee2e6;
  --surface: #ffffff; --soft: #f4f4f5; --soft2: #ebebed;
  --band: #0e0e0f; --band-ink: #e7e7e7; --band-line: #2c2d31; --band-card: #19191c;
  --tile: #0e0e0f; --tile-ink: #ffffff; --tile-border: transparent;
  --cal-day: #ffffff; --cal-weekend: #ededee;
}
body.theme-ciemny {
  --bg: #0e0e0f; --ink: #e7e7e7; --muted: #9aa0a6; --line: #2c2d31;
  --surface: #161618; --soft: #131315; --soft2: #1b1b1e;
  --band: #0e0e0f; --band-ink: #e7e7e7; --band-line: #2c2d31; --band-card: transparent;
  --tile: transparent; --tile-ink: #ffffff; --tile-border: #e7e7e7;
  --cal-day: #1b1b1e; --cal-weekend: #232327;
}
:root {
  --orange: #ff6b00; --orange-dark: #e05d00;
  --win: #1d6b36; --draw: #5b6168; --loss: #b3261e;
  --radius: 8px;
  --head: "Roboto Condensed", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Roboto, system-ui, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0; }
h1 { font-size: 2rem; margin-bottom: .6rem; }
h2 { font-size: 2rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; }
main.page { padding-top: 36px; padding-bottom: 48px; max-width: 820px; }
.lead { color: var(--muted); margin: 0 0 18px; }

/* ---------------- pasek ---------------- */
.top { background: var(--orange); color: #212529; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.top-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 20px; max-width: 1440px; margin: 0 auto; }
.nav-left, .nav-right { display: flex; align-items: center; height: 100%; }
.nav-left a, .nav-right > a { display: flex; align-items: center; height: 100%; padding: 0 18px; text-decoration: none; font-size: .95rem; border-right: 1px solid rgba(0,0,0,.14); }
.nav-left a:first-child { border-left: 1px solid rgba(0,0,0,.14); }
.nav-right > a { border-right: 0; border-left: 1px solid rgba(0,0,0,.14); }
.nav-left a:hover, .nav-right > a:hover { background: rgba(0,0,0,.06); }
.nav-right > a.btn-nav { height: 38px; margin: 0 12px 0 14px; border: 1px solid #212529; border-radius: 7px; padding: 0 16px; font-weight: 500; }
.nav-right > a.btn-nav:hover { background: #212529; color: #fff; }
.crest { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 70px; height: 70px; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 3px 12px rgba(0,0,0,.25), inset 0 0 0 3px var(--orange); display: grid; place-items: center; align-content: center; gap: 0; text-decoration: none; color: var(--orange); }
.crest svg { width: 30px; height: 30px; }
.crest span { font: 700 .8rem/1 var(--head); color: #212529; margin-top: 2px; }
.brand-mobile { display: none; font: 700 1.05rem/1.1 var(--head); text-transform: uppercase; color: #fff; text-decoration: none; }
.menu { position: relative; margin-left: 8px; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 38px; display: grid; place-items: center; border: 1px solid #212529; border-radius: 7px; }
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: #212529; position: relative; content: ""; }
.burger::before { position: absolute; top: -6px; } .burger::after { position: absolute; top: 6px; }
.menu[open] summary { background: rgba(0,0,0,.08); }
.menu-list { position: absolute; right: 0; top: calc(100% + 10px); background: #0e0e0f; color: #e7e7e7; min-width: 240px; padding: 8px; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; text-decoration: none; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: #222326; color: var(--orange); }
.menu-list hr { border: 0; border-top: 1px solid #2c2d31; margin: 6px 0; }
.menu-user { font-size: .8rem; color: #9aa0a6; padding: 6px 12px 4px; }
.menu-mobile-only { display: none; }

/* ---------------- przyciski, chipy ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 .98rem/1 var(--head); letter-spacing: .2px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: #fff; color: #212529; }
.btn-outline { border-color: var(--orange); color: var(--orange); min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn-outline:hover { background: var(--orange); color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: inherit; text-decoration: underline; }
.danger { color: var(--loss); }
.link-muted { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-center { justify-content: center; margin-bottom: 12px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; font: 400 .92rem/1.3 var(--head); color: var(--ink); background: transparent; }
.chip:hover { border-color: var(--orange); }
.chip.active { border-color: var(--orange); color: var(--orange); }
.tag { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 5px; background: var(--orange); color: #fff; font-weight: 500; }
.pill { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; color: #fff; font: 700 .8rem/1 var(--head); }
.pill-W { background: var(--win); } .pill-R { background: var(--draw); } .pill-P { background: var(--loss); }
.date-badge { display: inline-block; border: 1px solid rgba(231,231,231,.7); border-radius: 6px; padding: 1px 8px; color: #fff; font-size: .78rem; }
.empty { color: var(--muted); text-align: center; padding: 26px 0; }

/* ---------------- komunikaty ---------------- */
.flashes { padding-top: 14px; }
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 8px; font-weight: 500; border-left: 4px solid; background: var(--soft2); }
.flash-ok { border-color: var(--win); } .flash-error { border-color: var(--loss); }

/* ---------------- hero ---------------- */
.hero { position: relative; color: #fff; text-align: center; min-height: 440px; display: flex; align-items: center; padding: 70px 0 54px; background-color: #0e0e0f; background-size: cover; background-position: center 35%;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 90px, rgba(255,255,255,.07) 91px 93px, transparent 94px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.07) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(160deg, rgba(255,107,0,.22), transparent 55%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)); }
.hero:not(.hero-photo) .hero-shade { display: none; }
.hero-inner { position: relative; }
.eyebrow { display: inline-block; border: 1.5px solid rgba(255,255,255,.9); border-radius: 7px; padding: 6px 16px; font: 400 1.1rem/1.2 var(--head); margin-bottom: 16px; }
.hero h1 { font-size: 3rem; margin: 0 0 12px; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-text { max-width: 640px; margin: 0 auto 6px; font-size: 1.05rem; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ---------------- centrum meczowe ---------------- */
.match-center { background: var(--bg); border-bottom: 1px solid var(--line); }
.mc-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 0; }
.mc-col { padding: 44px 26px; }
.mc-next { background: linear-gradient(180deg, var(--soft), var(--soft2)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.mc-col h3 { font-size: 1.05rem; text-align: center; margin-bottom: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { margin: 0; }
.cal-head a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 1.2rem; }
.cal-head a:hover { border-color: var(--orange); color: var(--orange); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dn { font-size: .68rem; color: var(--muted); text-align: center; letter-spacing: .4px; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1 / 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; font-size: .85rem; background: var(--cal-day); }
.cal-day.is-weekend { background: var(--cal-weekend); }
.cal-day.has-played { background: #212529; border-color: #212529; color: #fff; }
.theme-ciemny .cal-day.has-played { background: #3a3b40; border-color: #3a3b40; }
.cal-day.has-match { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 700; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--orange); }
.cal-day.has-match.is-today { box-shadow: inset 0 0 0 2px #fff; }
.cal-legend { margin-top: 10px; font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 6px; justify-content: center; }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; } .lg-match { background: var(--orange); } .lg-played { background: #212529; margin-left: 8px; }
.theme-ciemny .lg-played { background: #3a3b40; }
.date-pill { display: inline-block; background: var(--orange); color: #fff; font-size: .82rem; font-weight: 500; padding: 5px 10px; border-radius: 5px; }
.date-pill-muted { background: var(--draw); }
.mc-comp { margin: 10px 0 18px; color: var(--muted); font: 400 1.05rem var(--head); }
.mc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; width: 100%; }
.mc-teams .team { font: 400 1.45rem/1.15 var(--head); }
.mc-teams .team:first-child { text-align: right; }
.mc-teams .team:last-child { text-align: left; }
.mc-teams .team-us { font-weight: 700; }
.mc-sep { width: 1px; height: 46px; background: var(--line); }
.mc-place { color: var(--muted); font-size: .85rem; margin: 12px 0 16px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); max-width: 280px; width: 100%; }
.countdown div { padding: 6px 4px; border-left: 1px solid var(--line); }
.countdown div:first-child { border-left: 0; }
.countdown small { display: block; font-size: .7rem; color: var(--muted); }
.countdown b { font: 400 1.5rem/1.1 var(--head); font-variant-numeric: tabular-nums; }
.coach { margin-top: 18px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 7px; padding: 12px 14px; }
.coach-label { display: block; font: 700 .78rem var(--head); text-transform: uppercase; letter-spacing: .6px; color: var(--orange); margin-bottom: 4px; }
.coach p { margin: 0; font-size: .92rem; }
.mc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.mc-empty { color: var(--muted); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.tbl th { font-weight: 400; font-size: .7rem; color: var(--muted); text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); letter-spacing: .3px; }
.tbl td { padding: 10px; }
.tbl-us td { background: var(--orange); color: #fff; font-weight: 500; }
.tbl-us td:first-child { border-radius: 6px 0 0 6px; } .tbl-us td:last-child { border-radius: 0 6px 6px 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat-tiles div { border: 1px solid var(--line); border-radius: 7px; text-align: center; padding: 10px 4px; background: var(--surface); }
.stat-tiles b { display: block; font: 700 1.7rem/1.1 var(--head); }
.stat-tiles span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.c-W { color: var(--win); } .c-R { color: var(--draw); } .c-P { color: var(--loss); }
.theme-ciemny .c-W { color: #4cc277; } .theme-ciemny .c-R { color: #ced4da; } .theme-ciemny .c-P { color: #ff7a6e; }
.form-row { margin-top: 14px; display: flex; justify-content: center; align-items: center; gap: 5px; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.form-row > span:first-child { margin-right: 6px; }

/* ---------------- sekcje ---------------- */
.sec { padding: 56px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h1 { margin: 0; }
.sec-head-actions { display: flex; gap: 8px; }
.sec-title-center { text-align: center; margin-bottom: 18px; }

/* aktualności – kafle */
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: minmax(190px, auto); gap: 14px; }
.news-big { grid-row: span 2; }
.news-grid > :only-child { grid-column: 1 / -1; grid-row: auto; }
.news-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); padding: 18px 20px 16px; color: var(--tile-ink); background: var(--tile); border: 3px solid var(--tile-border); overflow: hidden; }
.theme-jasny .news-card { background:
  linear-gradient(160deg, rgba(255,107,0,.20), transparent 50%),
  repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 26px), var(--tile); }
.theme-jasny .news-card.is-pinned { background: linear-gradient(160deg, rgba(255,107,0,.55), rgba(255,107,0,.08) 60%), var(--tile); }
.theme-ciemny .news-card.is-pinned { border-color: var(--orange); }
.news-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.pin { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: var(--orange); border-radius: 5px; padding: 2px 8px; }
.news-card h3 { font-size: 1.3rem; margin: 26px 0 6px; }
.news-big h3 { font-size: 1.8rem; }
.news-body { font-size: .9rem; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-big .news-body { -webkit-line-clamp: 9; }
.news-body a { color: #ffa060; }
.news-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .85rem; color: rgba(255,255,255,.7); min-height: 30px; }
.arrow { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); display: grid; place-items: center; text-decoration: none; font-size: .95rem; }
.arrow:hover { background: var(--orange); border-color: var(--orange); }
.theme-ciemny .news-card .arrow { position: absolute; right: 0; bottom: 0; width: 48px; height: 44px; border-radius: 6px 0 0 0; border: 0; background: var(--tile-border); color: #0e0e0f; }
.theme-ciemny .news-card.is-pinned .arrow { background: var(--orange); color: #fff; }
.news-list { display: grid; gap: 14px; }
.news-wide h3 { margin-top: 14px; }
.news-body-full { display: block; -webkit-line-clamp: unset; }

/* terminarz */
.sec-fixtures { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fixtures { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fixture { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 12px 12px; }
.fx-date { flex: none; width: 58px; height: 58px; border-radius: 7px; background: var(--orange); color: #fff; display: grid; place-items: center; align-content: center; }
.fx-date b { font: 700 1.6rem/1 var(--head); } .fx-date span { font-size: .75rem; text-transform: uppercase; }
.fx-main { flex: 1; min-width: 0; }
.fx-teams { font: 400 1.15rem/1.25 var(--head); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.fx-teams .team-us { font-weight: 700; color: var(--orange); }
.vs { color: var(--muted); font-size: .85rem; }
.fx-meta { font-size: .84rem; color: var(--muted); }
.fx-note { margin-top: 6px; font-size: .88rem; } .fx-note span { color: var(--orange); font-weight: 700; }
.fx-edit { font-size: .85rem; color: var(--muted); }
.awaiting { background: var(--surface); border: 1px dashed var(--orange); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.awaiting a { color: var(--orange); }

/* wyniki – ciemna sekcja */
.sec-results { background: var(--band); color: var(--band-ink); }
.sec-results .chip { color: var(--band-ink); border-color: var(--band-line); }
.sec-results .chip.active { color: var(--orange); border-color: var(--orange); }
.sec-results .empty { color: #9aa0a6; }
.matches { list-style: none; padding: 0; margin: 20px auto 0; display: grid; gap: 14px; max-width: 820px; }
.match { --c: var(--draw); position: relative; background: var(--band-card); color: #e7e7e7; border: 3px solid var(--c); border-radius: var(--radius); padding: 14px 18px 16px; overflow: hidden; }
.match-W { --c: var(--win); } .match-P { --c: var(--loss); }
.m-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: .82rem; color: #adb5bd; }
.m-top .tag { margin-left: auto; }
.m-score { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 14px; padding: 4px 0; }
.team { font: 700 1.15rem/1.2 var(--head); overflow-wrap: break-word; min-width: 0; }
.m-score .team { color: #fff; }
.m-score .team:first-child { text-align: right; }
.team-us { color: var(--orange) !important; text-transform: uppercase; }
.mc-teams .team-us { color: inherit !important; text-transform: none; }
.score { font: 700 2.3rem/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score i { font-style: normal; color: var(--orange); margin: 0 4px; }
.m-extra { margin-top: 10px; font-size: .85rem; color: #adb5bd; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; }
.m-extra p { margin: 0; flex-basis: 100%; text-align: center; color: #e7e7e7; }
.m-foot { min-height: 22px; margin-top: 10px; display: flex; gap: 16px; font-size: .85rem; color: #adb5bd; }
.m-foot form { margin: 0; }
.corner { position: absolute; right: 0; bottom: 0; width: 48px; height: 44px; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 1.1rem/1 var(--head); border-top-left-radius: 6px; }

/* ---------------- formularze ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 22px; }
.form { display: grid; gap: 16px; }
.narrow { max-width: 420px; margin: 0 auto; }
.form label { display: block; font-weight: 500; font-size: .92rem; }
.form label > input, .form label > textarea { display: block; margin-top: 6px; }
.form small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; width: 100%; min-height: 44px; }
.theme-ciemny input, .theme-ciemny textarea, .theme-ciemny select { background: #0e0e0f; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
input[type=file] { padding: 8px; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.check input { width: 20px; min-height: 20px; height: 20px; margin: 0 !important; accent-color: var(--orange); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { font-weight: 500; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.seg input:checked + span { border-color: var(--orange); color: var(--orange); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--orange); }
.scorebox { display: flex; align-items: end; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 16px 0 12px; background: #0e0e0f; border-radius: var(--radius); color: #fff; }
.scorebox label { text-align: center; font: 700 1rem var(--head) !important; text-transform: uppercase; }
.scorebox input { width: 90px; background: #1a1a1c; color: #fff; border-color: #343a40; font: 700 2.2rem/1 var(--head); text-align: center; padding: 6px; }
.colon { font: 700 2.2rem/1 var(--head); color: var(--orange); padding-bottom: 12px; }
.score-hint { flex-basis: 100%; text-align: center; color: #9aa0a6 !important; }
.coach-field { border-left: 4px solid var(--orange); padding-left: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.danger-zone { margin-top: 16px; text-align: right; }
.userlist { list-style: none; margin: 0; padding: 0; }
.userlist li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.userlist li:last-child { border-bottom: 0; }
.userlist form { margin: 0; }
.page h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.upload-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.upload-row input { flex: 1; min-width: 200px; }
.hero-thumb { width: 100%; max-height: 220px; object-fit: cover; border-radius: 7px; }
.theme-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-pick legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.theme-opt { position: relative; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; display: grid !important; gap: 4px; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt:has(input:checked) { border-color: var(--orange); }
.theme-opt small { color: var(--muted); }
.theme-prev { display: grid; grid-template-rows: 10px 34px 22px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 4px; }
.theme-prev i { display: block; }
.prev-jasny i:nth-child(1) { background: var(--orange); } .prev-jasny i:nth-child(2) { background: #0e0e0f; } .prev-jasny i:nth-child(3) { background: #f4f4f5; }
.prev-ciemny i:nth-child(1) { background: var(--orange); } .prev-ciemny i:nth-child(2) { background: #0e0e0f; } .prev-ciemny i:nth-child(3) { background: #19191c; box-shadow: inset 0 0 0 2px #e7e7e7; }

/* ---------------- stopka ---------------- */
.foot { background: #e7e7e7; color: #6c757d; font-size: .85rem; padding: 26px 0; }
.theme-ciemny .foot { background: #161618; color: #9aa0a6; border-top: 1px solid var(--line); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-inner > div { display: flex; flex-direction: column; }
.foot b { font-family: var(--head); color: #212529; text-transform: uppercase; font-size: 1rem; }
.theme-ciemny .foot b { color: #e7e7e7; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { text-decoration: none; } .foot nav a:hover { color: var(--orange); }

/* ---------------- telefon ---------------- */
@media (max-width: 900px) {
  .nav-left, .nav-link-desktop, .crest { display: none !important; }
  .brand-mobile { display: block; }
  .menu-mobile-only { display: block; }
  .top-inner { padding: 0 12px 0 16px; }
  .mc-grid { grid-template-columns: 1fr; }
  .mc-next { order: -1; }
  .mc-col { padding: 30px 16px; }
  .news-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .news-big { grid-row: auto; }
  .news-card { min-height: 170px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { min-height: 340px; padding: 44px 0 40px; }
  .hero h1 { font-size: 2.1rem; }
  .eyebrow { font-size: .95rem; }
  h2 { font-size: 1.6rem; }
  .sec { padding: 40px 0; }
  .mc-teams .team { font-size: 1.2rem; }
  .team { font-size: 1rem; }
  .score { font-size: 1.9rem; }
  .m-score { gap: 8px; }
  .fixture { gap: 12px; padding: 10px 12px 10px 10px; }
  .fx-date { width: 50px; height: 50px; }
  .theme-pick { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr 1fr; }
}

/* ================= wersja 3: pokaz zdjęć, strona meczu, galeria ================= */
.hero { overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center 35%; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.hero-slide.is-on { opacity: 1; animation: heroZoom 8s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } .hero-slide.is-on { animation: none; transform: none; } }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-dots button { width: 28px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dots button.is-on { background: var(--orange); }
.hero-inner { z-index: 1; }

a.m-score, a.mc-teams, a.fx-teams { text-decoration: none; color: inherit; }
a.m-score:hover .team:not(.team-us), a.fx-teams:hover .team:not(.team-us) { text-decoration: underline; }
a.mc-teams:hover { color: var(--orange); }
.m-scorers { margin: 8px 0 0; text-align: center; font-size: .88rem; color: #e7e7e7; }
.m-scorers span { color: var(--orange); font-weight: 700; }

/* nagłówek strony meczu */
.match-hero { --c: var(--draw); background: #0e0e0f; color: #fff; text-align: center; padding: 46px 0 34px; border-bottom: 4px solid var(--c);
  background-image: radial-gradient(circle at 50% 120%, rgba(255,255,255,.06) 0 120px, transparent 121px), linear-gradient(160deg, rgba(255,107,0,.18), transparent 55%); }
.match-hero.match-W { --c: var(--win); } .match-hero.match-P { --c: var(--loss); } .match-hero.match-planned { --c: var(--orange); }
.back { display: inline-block; color: #adb5bd; text-decoration: none; font-size: .9rem; margin-bottom: 14px; }
.back:hover { color: var(--orange); }
.mh-meta { display: flex; justify-content: center; gap: 10px; align-items: center; flex-wrap: wrap; }
.mh-comp { color: #adb5bd; font: 400 1.05rem var(--head); }
.mh-score { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 18px; max-width: 760px; margin: 18px auto 6px; }
.mh-score .team { font-size: 1.6rem; color: #fff; }
.mh-score .team:first-child { text-align: right; } .mh-score .team:last-child { text-align: left; }
.mh-score .score { font-size: 3.4rem; }
.mh-vs { font: 400 1.4rem var(--head); color: #adb5bd; }
.mh-place { color: #adb5bd; font-size: .9rem; margin: 4px 0 14px; }
.mh-result { display: inline-block; background: var(--c); color: #fff; font: 700 .9rem var(--head); text-transform: uppercase; letter-spacing: .6px; padding: 5px 14px; border-radius: 5px; }

.match-page { display: grid; gap: 16px; }
.match-page .coach { margin-top: 0; }
.info-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.info-box h2 { font-size: 1.15rem; margin: 0 0 6px; }
.info-box p { margin: 0; }
.scorers { font-size: 1.05rem; }
.page-actions { margin: 0; }
.gallery-sec .sec-head { margin: 10px 0 12px; }
.gallery-sec .sec-head h2 { font-size: 1.5rem; }

/* galeria */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 16px; }
.gal figure { position: relative; margin: 0; }
.gal img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; background: var(--soft2); }
.gal-item { display: block; border-radius: 7px; overflow: hidden; }
.gal-item img { transition: transform .3s; } .gal-item:hover img { transform: scale(1.04); }
.gal figure form { position: absolute; top: 6px; right: 6px; margin: 0; }
.gal-del { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(14,14,15,.75); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.gal-del:hover { background: var(--loss); }
.gal-small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); } .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #adb5bd; font-size: .9rem; }
.upload-status { min-height: 1em; }
.page h2 small { font-family: Roboto, sans-serif; font-weight: 400; }

@media (max-width: 560px) {
  .mh-score { gap: 10px; }
  .mh-score .team { font-size: 1.1rem; }
  .mh-score .score { font-size: 2.4rem; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .lb-prev, .lb-next { display: none; }
}
@media (max-width: 900px) { .match-hero { padding-top: 22px; } }
.gallery-sec .sec-head { align-items: baseline; }

/* herb-tarcza */
.crest { width: 58px; height: 68px; top: 3px; border-radius: 0; background: none; border: 0; box-shadow: none; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.crest svg { width: 100%; height: 100%; display: block; }
.crest:hover { transform: translateX(-50%) scale(1.04); }
.brand-mobile { align-items: center; gap: 10px; }
.brand-shield { width: 28px; height: 33px; flex: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.3)); }
@media (max-width: 900px) { .brand-mobile { display: flex !important; } }

/* ===== wersja 4: wyższy nagłówek i kadrowanie zdjęć ===== */
.hero { min-height: clamp(420px, 64vh, 680px); }
.hero-slide { background-image: var(--img); background-repeat: no-repeat; background-size: cover; }
.hero-fit-caly { background-image: none !important; background-color: #0e0e0f; overflow: hidden; }
.hero-fit-caly::before { content: ""; position: absolute; inset: -40px; background: var(--img) center / cover no-repeat; filter: blur(24px) brightness(.5); }
.hero-slide-img { position: absolute; inset: 0; background: var(--img) center / contain no-repeat; }
.gal-hero { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.thumb-hero { position: relative; aspect-ratio: 16 / 6; border-radius: 7px; overflow: hidden; background-image: var(--img); background-size: cover; background-repeat: no-repeat; }
.pos-row { position: static !important; display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0 !important; }
.pos-row button { font: 500 .78rem Roboto, sans-serif; padding: 4px 8px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.pos-row button.on { border-color: var(--orange); color: var(--orange); font-weight: 700; }
.thumb-warn { margin: 4px 0 0; font-size: .75rem; color: var(--loss); }
.gal-hero figure > form:not(.pos-row) { top: 6px; right: 6px; }
@media (max-width: 560px) { .hero { min-height: clamp(340px, 58vh, 520px); } }

.hero-blur .hero-slide.hero-fit-cover { filter: blur(3px) brightness(.85); }
.hero-blur .hero-slide-img { filter: blur(2px) brightness(.9); }
.hero-blur .hero-slide.hero-fit-cover.is-on { animation: none; transform: scale(1.06); }
.pos-auto { font-size: .72rem; color: var(--muted); align-self: center; margin-right: 2px; }
