/*
 * Sparta Lužná – klubový web.
 *
 * Paleta je ze znaku: červená #A80C00 (změřená ve znaku), inkoust #0F0E14
 * (obrys a písmo znaku) a teplá lomená bílá jako papír samolepky.
 * Motiv: svislý bílý pruh s černými linkami přes červené pole – ze znaku
 * klubu. Opakuje se v úvodu, u nadpisů sekcí a v detailu zápasu.
 *
 * Písma: Zilla Slab (nadpisy – pevné patkové písmo jako nápis ve znaku),
 * Barlow Condensed (skóre, časy, jména týmů – úzké jako výsledková tabule,
 * dlouhé názvy klubů se vejdou), Barlow (text).
 *
 * Po úpravě zkopírovat do www/data/sparta/css/ (php bin/sparta-assets.php).
 */

:root {
    --red: #A80C00;
    --red-dark: #820900;
    --red-tint: #F9E7E4;
    --ink: #0F0E14;
    --ink-soft: #2A2830;
    --paper: #F6F2EC;
    --white: #FFFFFF;
    --line: #DCD4C8;
    --muted: #5B5650;
    --yellow-card: #F2C200;

    --display: 'Zilla Slab', Georgia, serif;
    --score: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --shell: 1180px;
    --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
    margin: 0;
    font: 400 17px/1.55 var(--body);
    color: var(--ink);
    background: var(--paper);
}

img { max-width: 100%; height: auto; }

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sp-hero :focus-visible, .sp-board :focus-visible, .sp-results :focus-visible,
.sp-matchday__board :focus-visible, .sp-footer :focus-visible, .sp-admin-top :focus-visible {
    outline-color: var(--white);
}

a[href], button, summary, select, label[for], input[type=checkbox], input[type=radio], input[type=file] { cursor: pointer; }
button:disabled { cursor: not-allowed; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }

.sp-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.sp-skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 10; }
.sp-skip:focus { top: 12px; color: var(--white); }

.sp-muted { color: var(--muted); }
.sp-empty { color: var(--muted); font-style: italic; margin: 0 0 1em; }


/* ── tlačítka ─────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px;
    font: 700 18px/1 var(--score); letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
    color: var(--ink); background: var(--white);
    border: 2px solid var(--ink); border-radius: var(--radius);
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--paper); border-color: var(--paper); color: var(--red); }
.btn--ghost { background: transparent; }
.btn--danger-ghost { background: transparent; border-color: var(--red); color: var(--red); }
.btn--danger-ghost:hover { background: var(--red); color: var(--white); }
.btn--small { min-height: 36px; padding: 6px 12px; font-size: 16px; }


/* ── motiv: pruh ze znaku ─────────────────────────────────────────── */

.sp-stripe {
    display: inline-block; flex: none; width: 18px; height: 1em; margin-right: 12px; vertical-align: -0.1em;
    background: linear-gradient(90deg,
        var(--red) 0 6px, var(--ink) 6px 7px, var(--white) 7px 11px, var(--ink) 11px 12px, var(--red) 12px 18px);
}

.sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sp-head__title { font-size: clamp(26px, 3vw, 34px); margin: 0; display: flex; align-items: center; }
.sp-head__link { font: 600 17px var(--score); text-transform: uppercase; letter-spacing: .02em; }

.sp-mini-title { font: 700 19px/1.2 var(--score); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 12px; }


/* ── hlavička ─────────────────────────────────────────────────────── */

.sp-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.sp-header__inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }

.sp-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.sp-brand:hover { color: var(--ink); }
.sp-brand__crest { width: 48px; height: 48px; }
.sp-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.sp-brand__text strong { font: 700 23px var(--display); }
.sp-brand__text small { font: 600 14px var(--score); text-transform: uppercase; letter-spacing: .04em; color: var(--red); }

.sp-nav { display: flex; align-items: center; gap: 4px; }
.sp-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
    font: 600 19px var(--score); text-transform: uppercase; letter-spacing: .02em;
    color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent;
}
.sp-nav a:hover { color: var(--red); }
.sp-nav a.is-active { border-bottom-color: var(--red); }
.sp-nav__admin { color: var(--muted) !important; }

.sp-burger {
    display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    font: 700 17px var(--score); text-transform: uppercase; color: var(--ink);
    background: transparent; border: 2px solid var(--ink); border-radius: var(--radius);
}
.sp-burger:hover { background: var(--ink); color: var(--white); }
.sp-burger__lines, .sp-burger__lines::before, .sp-burger__lines::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.sp-burger__lines::before, .sp-burger__lines::after { content: ''; position: absolute; left: 0; }
.sp-burger__lines::before { top: -6px; }
.sp-burger__lines::after { top: 6px; }

@media (max-width: 860px) {
    .js .sp-burger { display: inline-flex; }
    .js .sp-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 3px solid var(--red); padding: 8px 20px 16px;
    }
    .js .sp-nav.is-open { display: flex; }
    .sp-nav a { border-bottom: 1px solid var(--line); }
    .sp-nav a.is-active { border-bottom-color: var(--line); color: var(--red); }
    .sp-header__inner { flex-wrap: wrap; }
    .sp-nav { flex-wrap: wrap; }
}
@media (max-width: 420px) {
    .sp-brand__text strong { font-size: 20px; }
    .sp-burger__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}


/* ── úvod: znak a nejbližší zápas ─────────────────────────────────── */

.sp-hero {
    position: relative; overflow: hidden;
    background: var(--red); color: var(--white);
    padding: 56px 0 64px;
}
.sp-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.sp-hero__club {
    --crest: 200px;
    position: relative; z-index: 0;
    display: flex; flex-direction: column; align-items: flex-start;
}
/* Bílý pruh s černými linkami jako ve znaku – běží středem znaku přes celou
   výšku úvodu (úvod má overflow: hidden, proto ty velké přesahy). Název
   klubu má červený podklad, pruh za ním „podjede“. */
.sp-hero__club::before {
    content: ''; position: absolute; z-index: -1; top: -100vh; bottom: -100vh;
    left: calc(var(--crest) / 2); width: 96px; transform: translateX(-50%);
    background: var(--white); border-left: 4px solid var(--ink); border-right: 4px solid var(--ink);
}
.sp-hero__crest {
    width: var(--crest); height: var(--crest);
    filter: drop-shadow(0 6px 14px rgba(15, 14, 20, .35));
}
.sp-hero__title {
    font-size: clamp(44px, 6vw, 76px); line-height: 1; margin: 24px 0 12px;
    background: var(--red); padding: 4px 16px 6px 0;
}
.sp-hero__lead { font-size: 19px; max-width: 32ch; margin: 0; background: var(--red); padding: 2px 16px 4px 0; }

.sp-board {
    position: relative; z-index: 1; /* nad pruhem ze znaku, když se úvod na telefonu složí pod sebe */
    background: var(--ink); color: var(--white);
    border-radius: var(--radius); padding: 28px clamp(20px, 3vw, 36px) 32px;
    box-shadow: 0 18px 40px rgba(15, 14, 20, .35); /* jediný vyvýšený prvek stránky – hlavní bod úvodu */
    text-align: center;
}
.sp-board__head { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 22px; }
.sp-board__label { font: 700 20px var(--score); text-transform: uppercase; letter-spacing: .06em; color: #FF9C8F; margin: 0; }
.sp-board__competition { color: #D9D4DE; }
.sp-board__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px; }
.sp-board__team { display: flex; flex-direction: column; align-items: center; gap: 12px; font: 700 clamp(19px, 2.2vw, 24px)/1.1 var(--score); text-transform: uppercase; }
.sp-board__team .sp-crest { width: 88px; height: 88px; }
.sp-board__center { padding-top: 22px; }
.sp-board__time { font: 700 clamp(44px, 5vw, 60px)/1 var(--score); letter-spacing: .02em; }
.sp-board__when { margin: 22px 0 18px; color: #D9D4DE; }
.sp-board__when strong { color: var(--white); font-weight: 600; }
.sp-board--empty { text-align: left; }
.sp-board--empty p { color: #D9D4DE; margin: 12px 0 20px; }

.sp-countdown { display: flex; justify-content: center; gap: 10px; margin: 0 0 22px; }
.sp-countdown span {
    display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 10px 8px 8px;
    border: 1px solid #45424D; border-radius: var(--radius);
    font: 600 15px var(--score); text-transform: uppercase; color: #D9D4DE;
}
.sp-countdown b { font: 700 38px/1 var(--score); color: var(--white); }
.sp-countdown--center { margin-top: 28px; }

@media (max-width: 860px) {
    .sp-hero { padding: 36px 0 44px; }
    .sp-hero__inner { grid-template-columns: 1fr; gap: 32px; }
    .sp-hero__club { --crest: 160px; align-items: center; text-align: center; }
    .sp-hero__club::before { left: 50%; width: 76px; }
    .sp-hero__title, .sp-hero__lead { padding-left: 12px; padding-right: 12px; }
    .sp-hero__lead { margin: 0 auto; }
}
@media (max-width: 480px) {
    .sp-board__team .sp-crest { width: 64px; height: 64px; }
    .sp-board__teams { gap: 8px; }
    .sp-countdown span { min-width: 64px; }
}


/* ── pruh posledních výsledků ─────────────────────────────────────── */

.sp-results { background: var(--ink); color: var(--white); padding: 20px 0 24px; }
.sp-results__title { font: 700 18px var(--score); text-transform: uppercase; letter-spacing: .05em; color: #D9D4DE; margin: 0 0 12px; }
.sp-results__list {
    list-style: none; margin: 0; padding: 0 0 4px;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory;
}
.sp-results__list li { scroll-snap-align: start; }
.sp-result {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center;
    padding: 12px 14px; min-height: 44px; height: 100%;
    color: var(--white); text-decoration: none;
    border: 1px solid #3A3742; border-radius: var(--radius);
}
.sp-result:hover { color: var(--white); border-color: var(--white); }
.sp-result__date { font: 600 15px var(--score); text-transform: uppercase; color: #D9D4DE; }
.sp-result__teams { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; font: 600 17px/1.2 var(--score); }
.sp-result__teams b { font-size: 22px; }
.sp-result__teams .is-us { color: #FF9C8F; }


/* ── výsledek V / R / P ───────────────────────────────────────────── */

.sp-outcome {
    display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
    font: 700 16px/1 var(--score); border-radius: 3px; border: 2px solid transparent;
}
.sp-outcome--w { background: var(--red); color: var(--white); }
.sp-outcome--d { background: var(--white); color: var(--ink); border-color: var(--ink); }
.sp-outcome--l { background: var(--ink); color: var(--white); border-color: #8A8592; }
.sp-streak { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; }
.sp-streak__label { font: 600 16px var(--score); text-transform: uppercase; margin-right: 6px; color: var(--muted); }
.sp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; color: var(--muted); margin-top: 20px; }


/* ── úvodní stránka: program, bilance, tabulka, kádr ──────────────── */

.sp-home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.sp-home-grid__record, .sp-season__side {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
    align-self: start;
}

.sp-record { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.sp-record div { display: flex; flex-direction: column-reverse; }
.sp-record dt { font: 600 14px var(--score); text-transform: uppercase; color: var(--muted); }
.sp-record dd { margin: 0; font: 700 34px/1 var(--score); }
.sp-record__wide { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }

.sp-news-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 52px 0; }

.sp-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; padding-top: 56px; padding-bottom: 56px; }

.sp-scorers { list-style: none; counter-reset: scorer; margin: 0; padding: 0; }
.sp-scorers li {
    counter-increment: scorer; display: flex; align-items: baseline; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
}
.sp-scorers li::before { content: counter(scorer) '.'; font: 700 18px var(--score); color: var(--muted); min-width: 24px; }
.sp-scorers__name { flex: 1; font-weight: 600; }
.sp-scorers__goals { font: 700 26px/1 var(--score); color: var(--red); }
.sp-scorers__goals small { font-size: 15px; color: var(--muted); font-weight: 600; }

.sp-squad-band { background: var(--ink); color: var(--white); padding: 52px 0 60px; }
.sp-squad-band .sp-head__link { color: #FF9C8F; }
.sp-roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; }
.sp-roster li { display: grid; grid-template-columns: 48px 1fr; gap: 0 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #34313B; }
.sp-roster__number { grid-row: span 2; font: 700 34px/1 var(--score); color: #FF9C8F; }
.sp-roster__name { font-size: 18px; }
.sp-roster__position { font: 600 15px var(--score); text-transform: uppercase; color: #BDB8C4; }
.sp-roster abbr { text-decoration: none; }

@media (max-width: 900px) {
    .sp-home-grid, .sp-split { grid-template-columns: 1fr; gap: 36px; }
}


/* ── řádek zápasu (program, výsledky) ─────────────────────────────── */

.sp-matches { display: flex; flex-direction: column; gap: 10px; }

.sp-match {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px 18px; align-items: center;
    padding: 14px 20px 16px; color: var(--ink); text-decoration: none;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .15s;
}
.sp-match:hover { color: var(--ink); border-color: var(--ink); }
.sp-match:hover .sp-match__name { text-decoration: underline; text-underline-offset: 3px; }
.sp-match__meta {
    grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap;
    font: 600 15px var(--score); text-transform: uppercase; letter-spacing: .02em; color: var(--muted);
}
.sp-match__competition { color: var(--red); }
.sp-match__team { display: flex; align-items: center; gap: 12px; min-width: 0; font: 700 21px/1.15 var(--score); }
.sp-match__team--home { justify-content: flex-end; text-align: right; }
.sp-match__team .sp-crest { width: 40px; height: 40px; }
.sp-match__team.is-us .sp-match__name { color: var(--red); }
.sp-match__name { overflow-wrap: anywhere; }
.sp-match__score { display: flex; align-items: center; gap: 8px; justify-content: center; }
.sp-match__venue { grid-column: 1 / -1; text-align: center; font-size: 15px; color: var(--muted); }

.sp-score {
    display: inline-flex; align-items: center; justify-content: center; min-width: 84px; padding: 6px 12px;
    font: 700 28px/1 var(--score); background: var(--ink); color: var(--white); border-radius: 3px;
}
.sp-score__sep { margin: 0 4px; opacity: .7; }
.sp-score--time { background: var(--white); color: var(--ink); border: 2px solid var(--ink); font-size: 24px; }

.sp-status { display: inline-block; padding: 4px 10px; font: 700 15px var(--score); text-transform: uppercase; border: 2px solid currentColor; border-radius: 3px; }
.sp-status--postponed { color: #8A5A00; background: #FFF6DB; }
.sp-status--cancelled { color: var(--muted); text-decoration: line-through; }
.sp-board .sp-status--postponed, .sp-matchday .sp-status { background: transparent; color: var(--yellow-card); }

@media (max-width: 600px) {
    .sp-match { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 12px 12px 14px; gap: 8px 10px; }
    .sp-match__team { flex-direction: column-reverse; gap: 6px; font-size: 17px; text-align: center; }
    .sp-match__team--home { text-align: center; }
    .sp-match__team--away { flex-direction: column; }
    .sp-match__team .sp-crest { width: 36px; height: 36px; }
    .sp-score { min-width: 68px; font-size: 24px; padding: 6px 8px; }
    .sp-match__score { flex-direction: column; gap: 6px; }
}


/* ── znak klubu bez obrázku ───────────────────────────────────────── */

.sp-crest { flex: none; object-fit: contain; }
.sp-crest--blank {
    --size: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    width: var(--size); height: var(--size); border-radius: 50%;
    background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
    font: 700 calc(var(--size) * .34)/1 var(--score);
}
.sp-board .sp-crest--blank, .sp-matchday .sp-crest--blank { background: var(--ink-soft); color: var(--white); border-color: #8A8592; }


/* ── záhlaví podstránek a výběr sezóny ────────────────────────────── */

.sp-page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.sp-page-head h1 { font-size: clamp(36px, 5vw, 54px); margin: 0; }
.sp-page-head h1 span { color: var(--red); font-family: var(--score); font-weight: 700; }
.sp-page-head__lead { display: block; color: var(--muted); margin: 8px 0 0; font-size: 18px; }

.sp-seasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sp-seasons a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    font: 700 18px var(--score); text-decoration: none; color: var(--ink);
    border: 2px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.sp-seasons a:hover { border-color: var(--ink); color: var(--ink); }
.sp-seasons a.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.sp-seasons--admin { margin: 0 0 20px; }

.sp-season { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
.sp-season__main { display: flex; flex-direction: column; gap: 48px; }
/* Po sezóně se program (zrušené a odložené) odsune pod výsledky. */
.sp-season__block--after { order: 2; }
.sp-month {
    font: 700 18px var(--score); text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
    margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--ink);
}
.sp-month:first-of-type { margin-top: 0; }

@media (max-width: 900px) {
    .sp-season { grid-template-columns: 1fr; }
    .sp-season__side { order: -1; }
}


/* ── detail zápasu ────────────────────────────────────────────────── */

.sp-matchday__board {
    position: relative; background: var(--ink); color: var(--white);
    padding: 40px 0 44px; border-bottom: 8px solid var(--red); text-align: center;
}
.sp-matchday__competition {
    display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 28px;
    font: 700 20px var(--score); text-transform: uppercase; letter-spacing: .05em; color: #FF9C8F;
}
.sp-matchday__season { font-size: 16px; color: #BDB8C4; letter-spacing: .03em; }
.sp-matchday__teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start; max-width: 920px; margin: 0 auto; }
.sp-matchday__team { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sp-matchday__team .sp-crest { width: 120px; height: 120px; }
.sp-matchday__name { font: 700 clamp(22px, 3vw, 32px)/1.1 var(--score); text-transform: uppercase; }
.sp-matchday__side { font: 600 15px var(--score); text-transform: uppercase; color: #BDB8C4; }
.sp-matchday__result { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 18px; }
.sp-matchday__score { font: 700 clamp(64px, 10vw, 112px)/.9 var(--score); white-space: nowrap; }
.sp-matchday__score span { margin: 0 .08em; color: #8A8592; }
.sp-matchday__score--time { font-size: clamp(52px, 8vw, 84px); }
.sp-matchday__half { font: 600 17px var(--score); text-transform: uppercase; color: #BDB8C4; }
.sp-matchday__outcome { display: inline-flex; align-items: center; gap: 8px; font: 700 18px var(--score); text-transform: uppercase; }

.sp-matchday__scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 120px; max-width: 920px; margin: 24px auto 0; }
.sp-matchday__goals { list-style: none; margin: 0; padding: 0; font-size: 16px; color: #E4E0E8; }
.sp-matchday__goals--home { text-align: right; }
.sp-matchday__goals--away { text-align: left; }
.sp-matchday__goals li { padding: 2px 0; }

.sp-matchday__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin: 32px 0 0; }
.sp-matchday__facts div { display: flex; flex-direction: column; }
.sp-matchday__facts dt { font: 600 14px var(--score); text-transform: uppercase; color: #BDB8C4; }
.sp-matchday__facts dd { margin: 0; }

.sp-matchday__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 64px; }
.sp-matchday__body > .sp-report, .sp-matchday__body > .sp-pager, .sp-matchday__body > .sp-empty { grid-column: 1 / -1; }

.sp-timeline { list-style: none; margin: 0; padding: 0; }
.sp-timeline__item {
    display: grid; grid-template-columns: 48px 22px 1fr; gap: 12px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--line);
}
.sp-timeline__minute { font: 700 20px var(--score); text-align: right; }
.sp-timeline__text strong { display: block; }
.sp-timeline__text small { color: var(--muted); font-size: 15px; }
.sp-timeline__item--away { background: linear-gradient(90deg, transparent, rgba(15, 14, 20, .03)); }

.sp-event { display: inline-block; width: 18px; height: 18px; }
.sp-event--goal, .sp-event--penalty { border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 4px var(--white), 0 0 0 2px var(--ink); }
.sp-event--own_goal { border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 4px var(--white), 0 0 0 2px var(--red); }
.sp-event--yellow { width: 13px; background: var(--yellow-card); border-radius: 2px; box-shadow: 0 0 0 1px #8A6D00; }
.sp-event--red { width: 13px; background: var(--red); border-radius: 2px; }

.sp-lineup__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sp-lineup__list { list-style: none; margin: 0; padding: 0; }
.sp-lineup__list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sp-lineup__list span { display: inline-block; min-width: 32px; font: 700 18px var(--score); color: var(--red); }

.sp-prose { max-width: 70ch; font-size: 18px; }
.sp-prose p { margin: 0 0 1em; }

.sp-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; border-top: 2px solid var(--ink); padding-top: 20px; }
.sp-pager a { text-decoration: none; font-weight: 600; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.sp-pager small { display: block; font: 600 14px var(--score); text-transform: uppercase; color: var(--muted); }
.sp-pager__all { text-align: center; font-family: var(--score) !important; text-transform: uppercase; }
.sp-pager__next { grid-column: 3; text-align: right; }

@media (max-width: 760px) {
    .sp-matchday__teams { gap: 10px; }
    .sp-matchday__team .sp-crest { width: 72px; height: 72px; }
    .sp-matchday__scorers { gap: 0 24px; }
    .sp-matchday__body { grid-template-columns: 1fr; }
    .sp-lineup__cols { grid-template-columns: 1fr; }
    .sp-pager { grid-template-columns: 1fr; text-align: center; }
    .sp-pager a, .sp-pager__next { grid-column: auto; text-align: center; align-items: center; }
}


/* ── aktuality ────────────────────────────────────────────────────── */

/* Nejnovější aktualita je větší – je to to, co klub právě řeší. */
.sp-news { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-auto-rows: auto; gap: 24px 32px; }
.sp-news__item--lead { grid-row: span 2; }
.sp-news--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-news--list .sp-news__item--lead { grid-column: span 2; }
.sp-news__link { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; border-top: 3px solid var(--ink); padding-top: 14px; height: 100%; }
.sp-news__link:hover { color: var(--ink); border-top-color: var(--red); }
.sp-news__link:hover .sp-news__title { color: var(--red); }
.sp-news__image { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 2px; margin-bottom: 8px; }
.sp-news__date { font: 600 15px var(--score); text-transform: uppercase; color: var(--muted); }
.sp-news__title { font-size: 24px; margin: 0; }
.sp-news__item--lead .sp-news__title { font-size: clamp(28px, 3vw, 36px); }
.sp-news__perex { margin: 0; color: var(--ink-soft); }

.sp-news-page { padding-top: 40px; padding-bottom: 64px; }
.sp-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.sp-pagination a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }

.sp-article__shell { max-width: 820px; }
.sp-article__image { width: 100%; height: auto; margin: 32px 0 8px; border-radius: 2px; }
.sp-article__perex { font-size: 21px; line-height: 1.5; margin: 28px 0; font-weight: 500; }
.sp-article .sp-prose { padding-bottom: 32px; }
.sp-article__more { padding-top: 24px; padding-bottom: 64px; max-width: 820px; }
.sp-more { list-style: none; margin: 0; padding: 0; }
.sp-more a { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; min-height: 44px; }
.sp-more time { font: 600 14px var(--score); text-transform: uppercase; color: var(--muted); }
.sp-back { display: inline-flex; min-height: 44px; align-items: center; font: 600 17px var(--score); text-transform: uppercase; }

@media (max-width: 760px) {
    .sp-news, .sp-news--list { grid-template-columns: 1fr; }
    .sp-news__item--lead, .sp-news--list .sp-news__item--lead { grid-row: auto; grid-column: auto; }
}


/* ── tabulka ──────────────────────────────────────────────────────── */

.sp-table-wrap { overflow-x: auto; }
.sp-table { width: 100%; border-collapse: collapse; background: var(--white); font-variant-numeric: tabular-nums; }
.sp-table th, .sp-table td { padding: 10px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.sp-table thead th { font: 700 16px var(--score); text-transform: uppercase; background: var(--ink); color: var(--white); }
.sp-table abbr { text-decoration: none; }
.sp-table .sp-table__club { text-align: left; width: 100%; }
.sp-table__points { font-weight: 700; }
.sp-table tr.is-us td { background: var(--red-tint); font-weight: 700; }
.sp-table tr.is-us .sp-table__club { color: var(--red); }
.sp-table--compact th, .sp-table--compact td { padding: 9px 8px; }
@media (max-width: 480px) { .sp-table .sp-table__wdl { display: none; } }
.sp-table-page { padding-top: 40px; padding-bottom: 64px; }
.sp-table-page .sp-muted { margin-top: 16px; }


/* ── tým ──────────────────────────────────────────────────────────── */

.sp-team { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 48px; }
.sp-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.sp-player { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.sp-player__photo { position: relative; aspect-ratio: 4 / 5; background: var(--ink); }
.sp-player__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-player__placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font: 700 64px var(--display); color: var(--white);
    background:
        linear-gradient(90deg, transparent calc(50% - 30px), var(--ink-soft) calc(50% - 30px) calc(50% + 30px), transparent calc(50% + 30px)),
        var(--ink);
}
.sp-player__number {
    position: absolute; left: 0; bottom: 0; min-width: 64px; padding: 6px 12px;
    font: 700 44px/1 var(--score); text-align: center; color: var(--white); background: var(--red);
}
.sp-player__body { padding: 16px 18px 20px; }
.sp-player__name { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.sp-player__name strong { font-weight: 700; display: block; }
.sp-player__role { margin: 0; font: 600 16px var(--score); text-transform: uppercase; color: var(--red); }
.sp-player__facts { display: flex; gap: 24px; margin: 12px 0 0; }
.sp-player__facts div { display: flex; flex-direction: column-reverse; }
.sp-player__facts dt { font: 600 13px var(--score); text-transform: uppercase; color: var(--muted); }
.sp-player__facts dd { margin: 0; font: 700 22px/1 var(--score); }
.sp-player__bio { margin: 12px 0 0; font-size: 15px; color: var(--ink-soft); }
.sp-players--staff { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sp-players--staff .sp-player__photo { aspect-ratio: 1; }

@media (max-width: 600px) {
    .sp-players, .sp-players--staff { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sp-player__placeholder { font-size: 40px; }
    .sp-player__number { min-width: 44px; font-size: 30px; padding: 4px 8px; }
    .sp-player__body { padding: 12px 12px 14px; }
    .sp-player__name { font-size: 18px; }
    .sp-player__role { font-size: 14px; }
    .sp-player__facts { gap: 14px; }
}


/* ── partneři a patička ───────────────────────────────────────────── */

.sp-partners { background: var(--white); border-top: 1px solid var(--line); padding: 36px 0 40px; }
.sp-partners__title { font: 700 18px var(--score); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 18px; }
.sp-partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.sp-partner { display: flex; align-items: center; justify-content: center; min-height: 64px; color: var(--ink); text-decoration: none; }
.sp-partner img { width: auto; max-width: 160px; height: 64px; object-fit: contain; }
.sp-partner__name { font: 700 22px var(--display); }
a.sp-partner:hover { opacity: .75; }

.sp-footer { background: var(--ink); color: #D9D4DE; padding: 48px 0 24px; border-top: 8px solid var(--red); }
.sp-footer a { color: var(--white); }
.sp-footer a:hover { color: #FF9C8F; }
.sp-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.sp-footer__club { display: flex; gap: 20px; align-items: flex-start; }
.sp-footer__club img { width: 96px; height: 96px; flex: none; }
.sp-footer__club strong { font: 700 26px var(--display); color: var(--white); }
.sp-footer__club p { margin: 6px 0 0; max-width: 36ch; }
.sp-footer__label { font: 700 17px var(--score); text-transform: uppercase; letter-spacing: .05em; color: #BDB8C4; margin: 0 0 10px; }
.sp-footer__links { list-style: none; margin: 0; padding: 0; }
.sp-footer__links a { display: inline-flex; min-height: 36px; align-items: center; }
.sp-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 16px; border-top: 1px solid #34313B; font-size: 15px; }
.sp-footer__bottom a { color: #BDB8C4; }

@media (max-width: 760px) {
    .sp-footer__grid { grid-template-columns: 1fr; }
}


/* ── hlášky ───────────────────────────────────────────────────────── */

.sp-flashes { padding-top: 20px; }
.alert { padding: 14px 18px; border-radius: var(--radius); border: 1px solid; margin-bottom: 12px; background: var(--white); }
.alert--success { border-color: #2E6B3A; color: #1F4A28; background: #EAF5EC; }
.alert--warning { border-color: #8A6D00; color: #5C4800; background: #FFF6DB; }
.alert--danger { border-color: var(--red); color: var(--red-dark); background: var(--red-tint); }
.alert--info { border-color: var(--ink); }


/* ── správa ───────────────────────────────────────────────────────── */

.sp-admin { background: #EFEAE2; }
.sp-admin-top { background: var(--ink); color: var(--white); border-bottom: 4px solid var(--red); }
.sp-admin-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.sp-admin-top__brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 700 20px var(--display); }
.sp-admin-top__brand:hover { color: var(--white); }
.sp-admin-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.sp-admin-nav a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
    font: 600 18px var(--score); text-transform: uppercase; color: #D9D4DE; text-decoration: none; border-radius: 3px;
}
.sp-admin-nav a:hover { color: var(--white); background: var(--ink-soft); }
.sp-admin-nav a.is-active { color: var(--white); background: var(--red); }
.sp-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--yellow-card); color: var(--ink); font-size: 14px; }

.sp-admin-main { padding: 28px 0 64px; }
.sp-admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.sp-admin-head h1 { font-size: 34px; margin: 0; }
.sp-admin-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 900px) { .sp-admin-cols { grid-template-columns: 1fr; } }

.sp-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.sp-panel h2 { font-size: 24px; }
.sp-panel--alert { border: 2px solid var(--red); }
.sp-narrow { max-width: 760px; }

.sp-admin-list { list-style: none; margin: 0 0 16px; padding: 0; }
.sp-admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.sp-admin-list .sp-muted { display: block; font-size: 15px; }
.is-muted { opacity: .6; }

.sp-admin-table { width: 100%; border-collapse: collapse; }
.sp-admin-table th { text-align: left; font: 700 16px var(--score); text-transform: uppercase; border-bottom: 2px solid var(--ink); padding: 8px 10px; }
.sp-admin-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sp-admin-table tr.is-us td { background: var(--red-tint); font-weight: 600; }
.sp-admin-table__actions { text-align: right; white-space: nowrap; }
.sp-tag { display: inline-block; padding: 2px 8px; font: 700 14px var(--score); text-transform: uppercase; border-radius: 3px; }
.sp-tag--warn { background: #FFF6DB; color: #5C4800; border: 1px solid #8A6D00; }

.sp-checklist { list-style: none; margin: 0; padding: 0; }
.sp-checklist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.sp-checklist li::before { content: '–'; position: absolute; left: 4px; font-weight: 700; color: var(--red); }
.sp-checklist li.is-done::before { content: '✓'; color: #2E6B3A; }

.sp-club-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 24px; }
.sp-club-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sp-club-list__name { font-weight: 600; flex: 1; }

.sp-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.sp-form legend { font: 700 19px var(--score); text-transform: uppercase; margin-bottom: 10px; }
.sp-form__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 20px; }
.sp-form__grid--score { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sp-form__grid--event { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-form__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 8px; }
.sp-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.sp-field > label:not(.sp-check) { font-weight: 600; }
.field {
    width: 100%; min-height: 44px; padding: 10px 12px;
    font: inherit; color: var(--ink); background: var(--white);
    border: 1px solid #A39B90; border-radius: 3px;
}
.field:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
textarea.field { resize: vertical; line-height: 1.5; }
.sp-field--mono textarea { font-family: ui-monospace, Consolas, monospace; font-size: 15px; white-space: pre; }
.sp-hint { font-size: 14px; color: var(--muted); }
.form-error { color: var(--red); font-weight: 600; font-size: 15px; }
.sp-check { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.sp-check input { width: 20px; height: 20px; accent-color: var(--red); }
.sp-lineup-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sp-preview { display: block; margin-bottom: 8px; border: 1px solid var(--line); background: var(--paper); object-fit: contain; }
.sp-preview--photo { object-fit: cover; }
.sp-preview--wide { object-fit: cover; }
.sp-link-danger { color: var(--red); font-weight: 600; }

.sp-signin { width: 100%; max-width: 440px; margin: 0 auto; padding: 48px 20px 72px; }
.sp-signin__card { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--red); border-radius: var(--radius); padding: 28px 28px 32px; }
.sp-signin__head { text-align: center; margin-bottom: 24px; }
.sp-signin__head img { width: 88px; height: 88px; }
.sp-signin__head h1 { font-size: 32px; margin: 12px 0 4px; }
.sp-signin__head p { margin: 0; color: var(--muted); font-size: 15px; }
.sp-signin__submit { width: 100%; margin-top: 4px; }
.sp-signin__back { margin-top: 16px; }
@media (max-width: 420px) { .sp-signin { padding-top: 24px; } .sp-signin__card { padding: 22px 18px 24px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
