/* ═══════════════════════════════════════════════════════════════
   UNI OPOLE — style serwisu (v3, uporządkowane)
   Czerń + pomarańcz · foto-first · Barlow Condensed
   Struktura: fonty → zmienne → baza → komponenty → media queries
   ═══════════════════════════════════════════════════════════════ */

/* ─── Fonty (self-hosted, latin + latin-ext) ──────────────── */

@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/barlow-condensed-v13-latin_latin-ext-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/barlow-condensed-v13-latin_latin-ext-700italic.woff2') format('woff2');
    font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/barlow-condensed-v13-latin_latin-ext-800.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/barlow-condensed-v13-latin_latin-ext-800italic.woff2') format('woff2');
    font-weight: 800; font-style: italic; font-display: swap;
}

/* ─── Zmienne ─────────────────────────────────────────────── */

:root {
    --brand:      #ff5a00;
    --brand-hot:  #ff7a1a;
    --brand-deep: #d94800;
    --bg:         #0a0a0c;
    --bg-alt:     #131316;
    --bg-card:    #17171b;
    --line:       #26262c;
    --text:       #f5f4f2;
    --muted:      #8f8f98;
    --win:        #ffb43a;
    --loss:       #ff4d5e;

    --font-display: 'Barlow Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
    --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Baza ────────────────────────────────────────────────── */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1.05;
    font-weight: 700;
}

:focus-visible { outline: 2px solid var(--brand-hot); outline-offset: 2px; }

/* ─── Nagłówek + nawigacja ────────────────────────────────── */

.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1rem, 4vw, 3rem);
    height: 64px;
    background: linear-gradient(180deg, rgba(10,10,12,.92), rgba(10,10,12,.75));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.logo {
    font-family: var(--font-display);
    font-weight: 800; font-style: italic;
    font-size: 1.4rem; letter-spacing: .02em;
    color: var(--text); text-transform: uppercase;
    display: flex; align-items: center; gap: .55rem;
}
.logo img { height: 40px; width: auto; }
.logo:hover { color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav a {
    font-family: var(--font-display);
    text-transform: uppercase; font-weight: 700;
    font-size: 1rem; letter-spacing: .06em;
    color: var(--text); position: relative; padding: .3rem 0;
}
.site-nav a::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
    height: 2px; background: var(--brand); transition: right .22s ease;
}
.site-nav a:hover::after { right: 0; }
.site-nav a:hover { color: var(--brand-hot); }

.nav-en {
    border: 1.5px solid var(--brand); padding: .15rem .7rem !important;
    transform: skewX(-10deg); color: var(--brand) !important;
}
.nav-en:hover { background: var(--brand); color: #000 !important; }
.nav-en::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* rozwijane menu „Klub" */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-group-toggle .caret { font-size: .7em; opacity: .7; }
.nav-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
    min-width: 210px; background: rgba(14,14,17,.98);
    border: 1px solid var(--line); border-top: 2px solid var(--brand);
    padding: .4rem 0;
    opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s;
    box-shadow: 0 16px 40px rgba(0,0,0,.55); z-index: 50;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
    display: block; padding: .55rem 1.2rem;
    font-size: .92rem; letter-spacing: .04em; color: var(--text);
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: rgba(255,90,0,.12); color: var(--brand-hot); }

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center;
    background:
        radial-gradient(120% 90% at 75% 20%, rgba(255,90,0,.16), transparent 55%),
        linear-gradient(200deg, #17171c 0%, #0a0a0c 70%);
    background-size: cover; background-position: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
    padding: 6rem clamp(1rem, 5vw, 4rem) 8rem;
}
.hero.has-photo::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,10,12,.94) 25%, rgba(10,10,12,.45) 65%, rgba(255,90,0,.18));
}

.hero-watermark {
    position: absolute; right: -1vw; bottom: 3vw;
    font-family: var(--font-display);
    font-weight: 800; font-style: italic; text-transform: uppercase;
    font-size: clamp(5rem, 16vw, 15rem);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.07);
    letter-spacing: .02em; line-height: 1;
    pointer-events: none; user-select: none;
}

.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; width: 100%; }

.hero-crest {
    height: clamp(64px, 9vw, 104px); width: auto;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.55));
}

.hero-tag {
    display: inline-block;
    background: var(--brand); color: #0a0a0c;
    font-family: var(--font-display);
    font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
    font-size: .9rem; padding: .3rem 1rem;
    transform: skewX(-10deg);
    margin-bottom: 1rem;
}
.hero-tag > span { display: inline-block; transform: skewX(10deg); }

.hero-label {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--font-display);
    text-transform: uppercase; font-weight: 700; letter-spacing: .14em;
    font-size: 1rem; color: var(--brand-hot);
    margin-bottom: 1.2rem;
}
.hero-label::before { content: ''; width: 34px; height: 2px; background: var(--brand); }

.hero h1 {
    font-size: clamp(2.6rem, 7.5vw, 6rem);
    font-weight: 800; font-style: italic;
}
.hero h1 .vs {
    color: var(--brand);
    font-size: .45em; vertical-align: .35em;
    margin: 0 .3em;
}
.hero h1 .opponent { color: #d8d8de; text-shadow: 0 4px 28px rgba(0,0,0,.8); }

.hero-date {
    margin-top: 1.2rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text);
    display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
}
.hero-date strong { color: var(--brand-hot); font-weight: 700; }

.hero-cta { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* hero w trybie „po meczu" */
.hero-score {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-family: var(--font-display);
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.hero-score .num {
    font-style: italic; font-weight: 800;
    padding: 0 1.4rem;
    background: var(--brand); color: #000;
    transform: skewX(-8deg);
}
.hero-score.lost .num { background: var(--bg-card); color: var(--text); }
.hero-sets { margin-top: .9rem; color: var(--muted); font-size: clamp(.9rem, 1.6vw, 1.1rem); }

/* ─── Przyciski ───────────────────────────────────────────── */

.btn {
    display: inline-block;
    font-family: var(--font-display);
    text-transform: uppercase; font-weight: 700; letter-spacing: .08em;
    font-size: 1.05rem;
    padding: .8rem 2rem;
    color: var(--text);
    border: 1.5px solid var(--line);
    background: transparent;
    transform: skewX(-10deg);
    transition: border-color .18s, color .18s, background .18s, filter .18s;
    cursor: pointer;
}
.btn > span { display: inline-block; transform: skewX(10deg); }
.btn:hover { border-color: var(--brand); color: var(--brand-hot); }

.btn-primary {
    background: linear-gradient(100deg, var(--brand-hot), var(--brand));
    border-color: transparent; color: #0a0a0c;
    box-shadow: 0 8px 32px rgba(255,90,0,.35);
}
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 8px 40px rgba(255,90,0,.55); color: #0a0a0c; }
.btn-small { padding: .35rem 1rem; font-size: .9rem; }

/* ─── Pasek meczowy (poprzedni / kolejne) ─────────────────── */

.match-strip {
    position: relative; z-index: 2;
    max-width: 1200px;
    margin: -5.5rem auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 2fr) auto;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.strip-block { background: var(--bg-card); padding: 1rem 1.4rem 1.1rem; min-width: 0; }
.strip-prev { border-top: 3px solid var(--brand); }
.strip-title {
    display: block;
    font-family: var(--font-display);
    font-size: .82rem; font-weight: 800; letter-spacing: .16em;
    text-transform: uppercase; color: var(--brand-hot);
    margin-bottom: .55rem;
}

.chips2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }

.match-chip {
    display: grid;
    grid-template-rows: 1.7rem 1.1rem 1.1rem;
    align-items: center;
    min-width: 0;
}
.chip-teams { font-weight: 600; font-size: .98rem; }
.chip-sets  { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-date  { font-size: .82rem; color: var(--muted); }

/* wynik ostatniego meczu */
.result-chip {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: .5rem; grid-template-rows: none;
}
.result-chip .chip-teams { font-size: .9rem; color: var(--muted); line-height: 1.3; font-weight: 600; }

.score-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.score-row .score-box { flex: 0 0 auto; }
.score-row .set-list { flex: 1 1 auto; }

.score-box {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 800; font-style: italic;
    font-size: 2rem; line-height: 1.15;
    padding: .08rem .8rem;
    transform: skewX(-8deg);
    font-variant-numeric: tabular-nums;
}
.score-box.won {
    background: linear-gradient(100deg, var(--brand-hot), var(--brand));
    color: #0a0a0c;
    box-shadow: 0 6px 22px rgba(255,90,0,.32);
}
.score-box.lost {
    background: var(--bg-alt); color: var(--text);
    border: 1px solid var(--line);
}

.set-list { display: flex; flex-wrap: wrap; gap: .22rem; }
.set {
    font-family: var(--font-display);
    font-size: .8rem; font-weight: 700; letter-spacing: .01em;
    padding: .1rem .32rem;
    border: 1px solid var(--line);
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.set-won { color: var(--win); border-color: rgba(255,180,58,.45); }

.strip-more {
    background: var(--bg-card);
    display: flex; align-items: center; padding: 0 1.6rem;
    font-family: var(--font-display);
    text-transform: uppercase; font-weight: 700; letter-spacing: .1em;
    color: var(--text); font-size: .95rem; white-space: nowrap;
}
.strip-more:hover { color: var(--brand-hot); background: #1d1d23; }

/* ─── Sekcje + tytuły stron ───────────────────────────────── */

.section { max-width: 1200px; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem); }
.section-first { padding-top: calc(64px + 4rem); }

/* jeden wzorzec tytułu podstrony */
.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; font-style: italic;
    position: relative; padding-left: 1.2rem;
    margin-bottom: 1.8rem;
}
.page-title::before {
    content: ''; position: absolute; left: 0; top: .12em; bottom: .12em;
    width: 9px; background: var(--brand); transform: skewX(-14deg);
}

.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; margin-bottom: 2.2rem;
}
.section h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800; font-style: italic;
    position: relative; padding-left: .9rem;
}
.section h2::before {
    content: ''; position: absolute; left: 0; top: .12em; bottom: .12em;
    width: 7px; background: var(--brand); transform: skewX(-14deg);
}
.section-head a {
    font-family: var(--font-display);
    text-transform: uppercase; font-weight: 700; letter-spacing: .1em;
    font-size: .95rem; color: var(--muted); white-space: nowrap;
}
.section-head a:hover { color: var(--brand-hot); }

.tier-label {
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: .18em; font-size: .82rem;
    font-weight: 700;
    color: var(--muted); margin: 2.4rem 0 1.2rem;
}
.empty { color: var(--muted); font-style: italic; }

/* ─── Aktualności ─────────────────────────────────────────── */

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }

.news-card {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s ease, border-color .2s;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.news-photo {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #222228, #131316 60%);
    background-size: cover; background-position: center;
    position: relative;
}
.news-photo::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 30%; height: 4px; background: var(--brand);
}
.news-card h3 { padding: 1.1rem 1.2rem .4rem; font-size: 1.2rem; font-weight: 700; }
.news-card time {
    padding: 0 1.2rem 1.2rem; margin-top: auto;
    color: var(--muted); font-size: .82rem;
}

/* ─── Karty zawodniczek / sztabu ──────────────────────────── */

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.4rem;
}

.player-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s;
}
.player-card:hover { transform: translateY(-4px); border-color: var(--brand); }

.player-photo {
    aspect-ratio: 3/4;
    background:
        radial-gradient(80% 60% at 50% 30%, rgba(255,90,0,.14), transparent),
        linear-gradient(180deg, #202027, #131316);
    position: relative;
}
.player-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.player-photo img.cutout {
    object-fit: contain;
    object-position: center bottom;
    padding-top: .6rem;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.45));
}
.player-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(10,10,12,.72) 68%, rgba(10,10,12,.94));
}

.player-number {
    position: absolute; top: .2rem; right: .9rem; z-index: 2;
    font-family: var(--font-display);
    font-size: 3.6rem; font-weight: 800; font-style: italic;
    color: transparent; -webkit-text-stroke: 1.5px var(--brand);
    line-height: 1;
}
.player-card:hover .player-number { color: var(--brand); -webkit-text-stroke: 0; }

.player-meta {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 0 1.1rem 1rem;
}
.player-meta h3 { font-size: 1.05rem; font-weight: 400; font-style: italic; }
.player-meta h3 strong { display: block; font-size: 1.5rem; font-weight: 800; }
.player-meta p {
    color: var(--muted); font-size: .85rem;
    text-transform: uppercase; letter-spacing: .08em;
    font-family: var(--font-display); font-weight: 700;
}

/* ─── Karuzela składu (strona główna) ─────────────────────── */

.tag-chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tag-chip {
    font-family: var(--font-display);
    text-transform: uppercase; font-weight: 700; letter-spacing: .08em;
    font-size: .88rem; color: var(--muted);
    background: transparent; border: 1.5px solid var(--line);
    padding: .35rem 1rem; cursor: pointer;
    transform: skewX(-10deg);
    transition: color .18s, border-color .18s, background .18s;
}
.tag-chip > span { display: inline-block; transform: skewX(10deg); }
.tag-chip:hover { color: var(--text); border-color: var(--muted); }
.tag-chip.active { background: var(--brand); border-color: var(--brand); color: #0a0a0c; }

.squad-wrap { position: relative; }
.squad-track {
    display: flex; gap: 1.2rem;
    overflow-x: auto; scroll-snap-type: x proximity;
    scrollbar-width: none; -ms-overflow-style: none;
    /* overflow-x:auto wymusza overflow-y:auto — bez zapasu u góry
       kontener przycinałby ramkę karty unoszącej się na hover */
    padding: 6px 0 .5rem;
}
.squad-track::-webkit-scrollbar { display: none; }
.squad-track .player-card {
    flex: 0 0 clamp(200px, 22vw, 240px);
    scroll-snap-align: start;
}
.squad-track .player-card.is-hidden { display: none; }

.squad-arrow {
    position: absolute; top: 40%; z-index: 3;
    width: 44px; height: 44px;
    background: rgba(10,10,12,.85); color: var(--text);
    border: 1px solid var(--line); border-radius: 50%;
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color .18s, border-color .18s;
}
.squad-arrow:hover { color: var(--brand-hot); border-color: var(--brand); }
#squadPrev { left: -10px; }
#squadNext { right: -10px; }

/* ─── Kadra — showcase (/druzyna) ─────────────────────────── */

.roster-alt {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    max-width: 1400px; margin: 0 auto;
    padding: calc(64px + 3.5rem) clamp(1rem, 4vw, 2.5rem) 4rem;
}
.ra-list .hero-label { margin-bottom: 2rem; }
.ra-list ul { list-style: none; }
.ra-list li {
    display: flex; align-items: baseline; gap: .85rem;
    padding: .85rem .6rem; border-bottom: 1px solid var(--line);
    cursor: pointer; position: relative;
    opacity: 0; transform: translateY(26px);
    transition: opacity .5s ease, transform .5s ease, background .2s;
}
.ra-list li.in { opacity: 1; transform: none; }
.ra-list li::before {
    content: ''; position: absolute; left: 0; top: 12%; bottom: 12%;
    width: 4px; background: var(--brand); transform: scaleY(0);
    transition: transform .22s ease;
}
.ra-list li:hover::before, .ra-list li.active::before { transform: scaleY(1); }
.ra-list li:hover, .ra-list li.active { background: rgba(255,90,0,.05); }

.ra-num {
    font-family: var(--font-display);
    font-style: italic; font-weight: 800; color: var(--brand);
    font-size: 1.1rem; min-width: 2.2rem; text-align: right;
}
.ra-name {
    flex: 1 1 auto;
    font-family: var(--font-display);
    text-transform: uppercase; font-style: italic; font-weight: 800;
    font-size: clamp(1.3rem, 1.85vw, 1.6rem); line-height: 1.1;
    color: #bfbfc8;
    transition: color .22s, letter-spacing .22s;
}
.ra-list li:hover .ra-name { color: var(--text); }
.ra-list li.active .ra-name { color: var(--text); letter-spacing: .02em; }

.ra-nat {
    flex: 0 0 2.9rem; text-align: center;
    font-family: var(--font-display);
    font-size: .75rem; font-weight: 700; letter-spacing: .1em;
    color: var(--muted);
    border: 1px solid var(--line); padding: .05rem .4rem;
}
.ra-list li:hover .ra-nat, .ra-list li.active .ra-nat { color: var(--text); border-color: var(--muted); }

.ra-pos {
    flex: 0 0 6rem; text-align: right;
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
}
.ra-height {
    flex: 0 0 3.4rem; text-align: right;
    font-family: var(--font-display);
    font-size: .82rem; font-weight: 700; letter-spacing: .06em;
    color: var(--brand-hot);
}

.ra-stage {
    position: sticky; top: calc(64px + 1.5rem);
    height: calc(100vh - 64px - 3rem); min-height: 460px;
    overflow: hidden; border: 1px solid var(--line);
    background:
        radial-gradient(90% 60% at 50% 20%, rgba(255,90,0,.13), transparent),
        linear-gradient(180deg, #1c1c22, #101014);
}
.ra-shape {
    position: absolute; left: -12%; right: -12%; bottom: 6%; height: 36%;
    background: linear-gradient(100deg, var(--brand-deep), var(--brand) 60%, var(--brand-hot));
    transform: skewY(-7deg) scaleX(0); transform-origin: left center;
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
    box-shadow: 0 24px 80px rgba(255,90,0,.35);
}
.ra-stage.cutout-mode .ra-shape { transform: skewY(-7deg) scaleX(1); }

.ra-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ra-slide.active { opacity: 1; }
.ra-slide > img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    opacity: 0; transform: scale(1.07);
    transition: opacity .45s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.ra-slide.active > img { opacity: 1; transform: scale(1); }

.ra-slide.cutout > img {
    position: absolute; left: 50%; bottom: -1%;
    width: auto; height: 94%; max-width: 100%;
    object-fit: contain; object-position: bottom;
    filter: drop-shadow(-20px 26px 44px rgba(0,0,0,.55));
    transform: translateX(calc(-50% + var(--px, 0) * 16px)) translateY(7%);
}
.ra-slide.cutout.active > img {
    transform: translateX(calc(-50% + var(--px, 0) * 16px)) translateY(0);
}

.ra-stage::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(10,10,12,.85));
    pointer-events: none;
}
.ra-bignum {
    position: absolute; top: -1.5rem; right: .5rem; z-index: 2;
    font-family: var(--font-display);
    font-style: italic; font-weight: 800; line-height: 1;
    font-size: clamp(7rem, 12vw, 12rem);
    color: transparent; -webkit-text-stroke: 2px rgba(255,122,26,.85);
    pointer-events: none;
    transform: translateX(calc(var(--px, 0) * -22px));
}
.ra-stage.cutout-mode .ra-bignum { -webkit-text-stroke-color: rgba(245,244,242,.9); }
.ra-bignum.pop { animation: numpop .5s cubic-bezier(.2,.7,.2,1); }
@keyframes numpop {
    from { opacity: 0; margin-top: -.6rem; }
    to   { opacity: 1; margin-top: 0; }
}
.ra-caption { position: absolute; left: 1.6rem; bottom: 1.4rem; z-index: 2; }
.ra-caption .cap-name {
    font-family: var(--font-display);
    text-transform: uppercase; font-style: italic; font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05;
}
.ra-caption .cap-pos {
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: .16em; font-size: .9rem;
    font-weight: 700;
    color: var(--brand-hot); margin-top: .3rem;
}

/* ─── Tabele meczów / ligi ────────────────────────────────── */

.matches-table, .standings-table { width: 100%; border-collapse: collapse; }
.matches-table td, .standings-table td, .standings-table th {
    padding: .85rem .9rem; border-bottom: 1px solid var(--line); text-align: left;
}
.standings-table th {
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: .1em; font-size: .8rem;
    color: var(--muted); font-weight: 700;
}
.standings-table th.num, .standings-table td.num { text-align: center; width: 3.4rem; }
.row-uni {
    background: linear-gradient(90deg, rgba(255,90,0,.16), transparent);
    font-weight: 700;
}
.row-uni td:first-child { border-left: 3px solid var(--brand); }
.standings-note { color: var(--muted); font-size: .82rem; margin-top: .9rem; }

.col-date { white-space: nowrap; color: var(--muted); font-size: .9rem; width: 7.5rem; }
.col-score { text-align: right; white-space: nowrap; }
.score { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.score.won { color: var(--win); }
.score.lost { color: var(--loss); }

/* ─── Wilczyce TV ─────────────────────────────────────────── */

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.video-card { cursor: pointer; background: var(--bg-card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.video-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .3s; }
.video-card:hover .video-thumb img { opacity: 1; transform: scale(1.04); }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
}
.video-play::before {
    content: ''; position: absolute;
    width: 64px; height: 46px; border-radius: 12px;
    background: var(--brand); z-index: -1;
    transform: skewX(-8deg);
    box-shadow: 0 8px 30px rgba(255,90,0,.5);
    transition: transform .18s;
}
.video-card:hover .video-play::before { transform: skewX(-8deg) scale(1.08); }
.video-thumb.playing .video-play { display: none; }
.video-card h3 { padding: .9rem 1.1rem 1rem; font-size: 1.05rem; font-weight: 700; }

/* ─── Sklep kibica ────────────────────────────────────────── */

.section-shop {
    max-width: 1200px; margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}
.shop-inner {
    position: relative; overflow: hidden;
    border: 1px solid var(--line);
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(255,90,0,.22), transparent 55%),
        linear-gradient(120deg, #1a1a1f, #101014);
    padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1.4rem, 4vw, 3rem);
}
.shop-inner::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0;
    width: 8px; background: var(--brand); transform: skewX(-6deg);
}
.shop-inner .section-head { margin-bottom: .8rem; }
.shop-inner p { max-width: 46ch; color: var(--muted); margin-bottom: 1.6rem; }
.shop-mark {
    position: absolute; right: -1rem; bottom: -1.6rem;
    font-family: var(--font-display);
    font-weight: 800; font-style: italic; text-transform: uppercase;
    font-size: clamp(4.5rem, 11vw, 9rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255,122,26,.28);
    pointer-events: none; user-select: none;
}

/* ─── Social ──────────────────────────────────────────────── */

.section-social {
    max-width: none;
    position: relative; overflow: hidden;
    background:
        radial-gradient(80% 130% at 15% 0%, rgba(255,255,255,.18), transparent 55%),
        radial-gradient(70% 120% at 90% 100%, rgba(60,10,0,.30), transparent 60%),
        linear-gradient(115deg, var(--brand-deep), var(--brand) 55%, var(--brand-hot));
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
    padding: clamp(5rem, 10vw, 7rem) clamp(1rem, 4vw, 2rem);
    text-align: center; color: #0a0a0c;
}
.social-watermark {
    position: absolute; right: -2vw; bottom: -1.5vw;
    font-family: var(--font-display);
    font-weight: 800; font-style: italic; text-transform: uppercase;
    font-size: clamp(4rem, 13vw, 11rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 2px rgba(0,0,0,.16);
    pointer-events: none; user-select: none;
}
.section-social h2, .section-social p, .section-social .social-buttons { position: relative; }
.section-social h2 {
    font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; font-style: italic;
    padding: 0; margin-bottom: .6rem;
}
.section-social h2::before { display: none; }
.section-social p { font-weight: 600; max-width: 560px; margin: 0 auto; }
.social-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.section-social .btn { border-color: rgba(0,0,0,.55); color: #0a0a0c; font-weight: 800; }
.section-social .btn:hover { background: #0a0a0c; color: var(--brand-hot); border-color: #0a0a0c; }

/* ─── Sponsorzy ───────────────────────────────────────────── */

.section-sponsors { text-align: center; }
.section-sponsors .section-head { text-align: left; }
.sponsor-row {
    display: flex; gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center; justify-content: center; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.sponsor-logo {
    font-family: var(--font-display);
    font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-size: 1.1rem;
    opacity: .75; transition: opacity .18s, color .18s;
}
.sponsor-row img { max-height: 56px; width: auto; opacity: .75; filter: grayscale(1) brightness(1.7); transition: all .18s; }
.sponsor-row a:hover img { filter: none; opacity: 1; }
.sponsor-row a:hover .sponsor-logo { color: var(--text); opacity: 1; }
.sponsor-row-strategic img { max-height: 84px; }
.sponsor-row-strategic .sponsor-logo { font-size: 1.6rem; color: var(--text); }

/* ─── Artykuły / strony treściowe ─────────────────────────── */

.article-lead {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 700; font-style: italic; line-height: 1.25;
    color: var(--text);
    max-width: 28ch;
    margin-bottom: 1.6rem; padding-left: 1rem;
    border-left: 4px solid var(--brand);
}
.article-body p { margin-bottom: 1.1rem; max-width: 70ch; }
.article-body .tier-label { margin-top: 1.8rem; }
.article-body ul { margin: 0 0 1.1rem 1.2rem; }
.article-body li { margin-bottom: .4rem; }
.article time { color: var(--muted); display: block; margin-bottom: 1.6rem; }

.article-news { max-width: 900px; }
.article-news .article-photo {
    aspect-ratio: 16/9;
    background-size: cover; background-position: center;
    border: 1px solid var(--line);
    margin: 1.8rem 0;
}

/* zarząd + pracownicy */
.zarzad-lead {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.4rem; margin: 1.4rem 0 .5rem;
}
.lead-card {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 1.3rem;
    background:
        radial-gradient(130% 150% at 0% 0%, rgba(255,90,0,.18), transparent 58%),
        var(--bg-card);
    border: 1px solid var(--line); border-left: 4px solid var(--brand);
    padding: 1.6rem 1.7rem;
}
.lead-mono {
    flex: 0 0 auto;
    width: 74px; height: 74px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 800; font-style: italic; font-size: 1.7rem;
    color: #0a0a0c;
    background: linear-gradient(135deg, var(--brand-hot), var(--brand));
    box-shadow: 0 8px 24px rgba(255,90,0,.35);
}
.lead-body .l-role {
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: .14em; font-size: .85rem;
    font-weight: 700;
    color: var(--brand-hot);
}
.lead-body .l-name {
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase; font-weight: 800; font-style: italic;
    font-size: 1.6rem; line-height: 1.05; margin: .1rem 0 .45rem;
}
.lead-body a { color: var(--muted); font-size: .88rem; word-break: break-word; }
.lead-body a:hover { color: var(--brand-hot); }

.staff-team { margin-top: 2rem; }
.staff-team > .tier-label { margin-bottom: 1rem; }

.board-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem; margin-top: 1.5rem;
}
.board-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    padding: 1.1rem 1.3rem;
}
.board-card .b-name {
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase; font-weight: 800; font-size: 1.2rem; line-height: 1.15;
}
.board-card .b-role { display: block; color: var(--brand-hot); font-size: .85rem; margin: .25rem 0 .7rem; }
.board-card a { color: var(--muted); font-size: .85rem; word-break: break-word; }
.board-card a:hover { color: var(--brand-hot); }
.board-card .b-line { display: block; }

/* ─── Stopka ──────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-alt);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 3rem clamp(1rem, 4vw, 3rem) 2.5rem;
    color: var(--muted); font-size: .9rem;
    margin-top: 4rem;
}
.site-footer strong { color: var(--text); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }

.footer-crest { display: flex; align-items: flex-start; gap: 1.2rem; }
.footer-crest img { height: 120px; width: auto; }

.footer-col h4 {
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: .12em; font-size: .9rem;
    color: var(--text); margin-bottom: .7rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--brand-hot); }

.footer-bottom {
    grid-column: 1 / -1; border-top: 1px solid var(--line);
    padding-top: 1.2rem; margin-top: .5rem;
    display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
    font-size: .8rem;
}
.footer-social a { margin-right: 1.1rem; font-weight: 600; }

.fb-legal { display: inline; }
.fb-copy, .fb-ids { color: var(--muted); }
.fb-ids::before { content: ' · '; }

/* ─── Cookie bar ──────────────────────────────────────────── */

.cookie-bar[hidden] { display: none; }
.cookie-bar {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
    max-width: 620px; margin: 0 auto;
    background: var(--bg-card); border: 1px solid var(--line);
    padding: .8rem 1.2rem; display: flex; gap: 1.2rem; align-items: center;
    font-size: .85rem; color: var(--muted);
    box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.cookie-bar button {
    font-family: var(--font-display);
    text-transform: uppercase; font-weight: 700; letter-spacing: .08em;
    background: var(--brand); color: #000; border: 0;
    padding: .45rem 1.2rem; cursor: pointer; margin-left: auto;
}
.cookie-bar button:hover { filter: brightness(1.12); }

/* ═══ MEDIA QUERIES (od najszerszych do najwęższych) ═══════ */

@media (max-width: 900px) {
    .roster-alt { grid-template-columns: 1fr; }
    .ra-stage { position: relative; top: 0; height: 68vh; order: -1; }
}

@media (max-width: 780px) {
    /* pasek meczowy: jedna kolumna */
    .match-strip {
        grid-template-columns: 1fr;
        margin: -3.5rem auto 0;
    }
    .strip-block { padding: .9rem 1.1rem 1rem; }
    .chips2 { grid-template-columns: 1fr; gap: .9rem; }
    .match-chip {
        display: flex; flex-direction: column; gap: .15rem;
        grid-template-rows: none;
    }
    .chip-teams { font-size: .95rem; line-height: 1.3; }
    .chip-sets { white-space: normal; overflow: visible; line-height: 1.35; }
    .strip-more {
        padding: .9rem 1.1rem; justify-content: space-between;
        border-top: 1px solid var(--line);
    }
    .result-chip { gap: .45rem; }
    .score-row { gap: .5rem; }
    .score-box { font-size: 1.75rem; }
    .set { font-size: .78rem; }

    /* stopka: dwie kolumny */
    .site-footer {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1.1rem;
        padding: 2.2rem 1.2rem 1.5rem;
        margin-top: 2.5rem;
    }
    .footer-crest { grid-column: 1 / -1; align-items: center; }
    .footer-crest img { height: 76px; }
    .footer-col h4 { margin-bottom: .5rem; }
    .footer-col li { margin-bottom: .3rem; line-height: 1.35; }
    .footer-bottom {
        flex-direction: column; align-items: flex-start; gap: .6rem;
        padding-top: 1rem;
    }
    .footer-social a { margin-right: .9rem; }
    .fb-legal { display: flex; flex-direction: column; gap: .25rem; }
    .fb-ids::before { content: none; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: flex-start;
        background: rgba(10,10,12,.97); padding: 1.2rem clamp(1rem, 4vw, 3rem) 1.6rem;
        border-bottom: 1px solid var(--line);
    }
    .site-nav.open { display: flex; }
    .hero { min-height: 80vh; padding-bottom: 6rem; }
    .hero-watermark { font-size: 5.5rem; right: -2rem; }
    .section { padding-left: 1.2rem; padding-right: 1.2rem; }

    /* dropdown „Klub" inline w hamburgerze */
    .nav-group { display: block; width: 100%; }
    .nav-group-toggle .caret { display: none; }
    .nav-dropdown {
        position: static; transform: none; opacity: 1; visibility: visible;
        min-width: 0; border: 0; border-left: 2px solid var(--brand);
        box-shadow: none; background: none; margin: .2rem 0 .4rem 1rem; padding: 0;
    }
    .nav-dropdown a { padding: .5rem 0 .5rem 1rem; font-size: .98rem; }
}

@media (max-width: 620px) {
    /* lista składu: nazwisko / dane w dwóch liniach */
    .ra-list li { flex-wrap: wrap; row-gap: .25rem; column-gap: .6rem; }
    .ra-name { flex: 1 0 calc(100% - 3.4rem); font-size: 1.35rem; }
    .ra-nat { order: 3; margin-left: 3.3rem; flex: 0 0 auto; }
    .ra-pos { order: 4; margin-left: 0; flex: 0 0 auto; text-align: left; }
    .ra-height { order: 5; margin-left: 0; flex: 0 0 auto; }
}

@media (max-width: 430px) {
    .ra-name { font-size: 1.18rem; }
    .ra-num { min-width: 1.9rem; font-size: 1rem; }
    .ra-nat { margin-left: 2.9rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-inner > * { animation: rise .6s ease backwards; }
    .hero-inner > *:nth-child(2) { animation-delay: .08s; }
    .hero-inner > *:nth-child(3) { animation-delay: .16s; }
    .hero-inner > *:nth-child(4) { animation-delay: .24s; }
    .hero-inner > *:nth-child(5) { animation-delay: .3s; }
    @keyframes rise {
        from { opacity: 0; transform: translateY(18px); }
        to   { opacity: 1; transform: none; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .ra-slide > img, .ra-slide.cutout > img, .ra-shape, .ra-list li { transition: none; }
    .ra-bignum.pop { animation: none; }
    html { scroll-behavior: auto; }
}
