/* ============================================================
   SK Lázně Bělohrad – globální motiv (moderní sportovní design)
   ============================================================ */

:root {
    --green: #1f9d55;
    --green-dark: #0c5c33;
    --ink: #1a2230;
    --muted: #6b7280;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --border: #e3e6ea;
    --win: #1f9d55;
    --draw: #f2c94c;
    --loss: #eb5757;
    --gold: #ffd34d;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 6px 18px rgba(16, 24, 40, 0.05);
}

html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    /* Pojistka proti horizontálnímu scrollu na mobilu – kdyby se nějaký prvek
       (např. scrollovatelná řada filtrů) pokusil roztáhnout stránku do šířky. */
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--green-dark);
}

h1, h2, h3 {
    line-height: 1.2;
}

/* Blazor po každé navigaci programově zaměří první <h1> (kvůli čtečkám
   obrazovky), což by jinak v Chromu/Edge zanechalo ošklivý černý obrys. */
h1:focus { outline: none; }

.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.big { font-size: 1.6rem; font-weight: 800; }

/* ---------- Hlavička / navigace ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(110deg, #07210f 0%, #0c5c33 45%, #1f9d55 100%);
    color: #fff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
    border-bottom: 3px solid var(--gold);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    text-decoration: none;
    margin-right: auto;
    flex-shrink: 0;
}

.brand__crest {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    box-shadow: inset 0 0 0 3px var(--gold), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand__name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; white-space: nowrap; }

@media (max-width: 420px) {
    .brand { gap: 0.55rem; }
    .brand__crest { width: 44px; height: 44px; }
    .brand__name { font-size: 1.05rem; }
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav__link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.main-nav__link:hover { background: rgba(255, 255, 255, 0.15); }
.main-nav__link.active { background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 -2px 0 var(--gold); }
.main-nav__link.external { opacity: 0.9; font-weight: 600; }

.main-nav__social { display: flex; align-items: center; gap: 0.4rem; padding: 0 0.35rem; }
.main-nav__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background 0.15s ease;
}
.main-nav__social-icon svg { width: 15px; height: 15px; fill: currentColor; }
.main-nav__social-icon:hover { background: rgba(255, 255, 255, 0.3); }

/* "Administrace" rozbalovací nabídka v hlavičce (čisté <details>, bez JS). */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
    cursor: pointer;
    list-style: none;
}
.nav-dropdown__toggle::marker { display: none; }
.nav-dropdown__toggle::-webkit-details-marker { display: none; }
.nav-dropdown__toggle::after { content: " ▾"; font-size: 0.7em; opacity: 0.85; }
.nav-dropdown[open] > .nav-dropdown__toggle { background: rgba(255, 255, 255, 0.22); }

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.35rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0.4rem;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 50;
}

.nav-dropdown__item {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    white-space: nowrap;
}
.nav-dropdown__item:hover { background: rgba(31, 157, 85, 0.1); color: var(--green-dark); }
.nav-dropdown__item.active { background: var(--green); color: #fff; }

.nav-toggle { display: none; }
.nav-toggle-btn { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 0.4rem; }
.nav-toggle-btn span { width: 24px; height: 3px; background: #fff; border-radius: 2px; }

/* Práh 1080px (ne obvyklých ~720px pro "mobil") – navigace má dost položek
   (Kontakty, sociální ikony, Účet), že se vedle zvětšeného loga nevejde na
   žádnou šířku menší než to, i na tabletu/menším notebooku. */
@media (max-width: 1080px) {
    .nav-toggle-btn { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--green-dark);
        max-height: 0;
        overflow: hidden;
        padding: 0 0.5rem;
        transition: max-height 0.25s ease, padding 0.25s ease;
    }
    .nav-toggle:checked ~ .main-nav { max-height: 460px; padding: 0.5rem; }
    .main-nav__link { padding: 0.75rem 0.85rem; }
    .main-nav__social { justify-content: center; padding: 0.5rem 0; }
    /* V mobilním menu u avatara ukaž i popisek "Profil", ať je jasné, kam vede. */
    .main-nav__profile-label { display: inline; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }

    /* V mobilním (svisle skládaném) menu se "Administrace" rozbaluje rovnou pod sebe,
       ne jako plovoucí panel. */
    .nav-dropdown__menu {
        position: static;
        margin-top: 0.15rem;
        margin-left: 0.5rem;
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
    }
    .nav-dropdown__item { color: #fff; }
    .nav-dropdown__item:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #07210f 0%, #0c5c33 45%, #1f9d55 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.75rem 1.6rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--gold);
}

/* Jemné dekorativní kruhy v pozadí hera (sportovní nádech, nezahlcují obsah). */
.hero::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 211, 77, 0.18), transparent 70%);
    pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.1rem; }

.hero__crest {
    width: 72px; height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    box-shadow: inset 0 0 0 3px var(--gold), 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero__text { flex: 1; min-width: 0; }
.hero__season {
    display: inline-block;
    background: rgba(255, 211, 77, 0.22);
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.hero__title { margin: 0; font-size: 1.85rem; letter-spacing: -0.01em; }
.hero__subtitle { margin: 0.3rem 0 0; opacity: 0.9; font-size: 0.95rem; }

/* Rychlý souhrn bilance vpravo v heru. */
.hero__record { display: flex; gap: 0.4rem; flex: 0 0 auto; }
.hero__record-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 0.55rem 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(2px);
}
.hero__record-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.hero__record-lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; margin-top: 0.2rem; }

@media (max-width: 640px) {
    .hero { padding: 1rem 1.1rem; margin-bottom: 1rem; }
    .hero__inner { flex-wrap: wrap; gap: 0.7rem; }
    .hero__crest { width: 48px; height: 48px; flex: 0 0 48px; }
    .hero__season { font-size: 0.65rem; padding: 0.15rem 0.5rem; margin-bottom: 0.3rem; }
    .hero__title { font-size: 1.35rem; }
    .hero__subtitle { font-size: 0.82rem; margin-top: 0.2rem; }
    .hero__record { width: 100%; }
    .hero__record-item { flex: 1; padding: 0.4rem 0.3rem; }
    .hero__record-num { font-size: 1.2rem; }
    .hero__record-lbl { font-size: 0.6rem; }
}

/* ---------- Sekce ---------- */
.section { margin: 1.75rem 0; }
.section__title {
    font-size: 1.2rem;
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
/* Zlatý akcentní proužek před názvem sekce. */
.section__title::before {
    content: "";
    width: 4px;
    height: 1.05em;
    border-radius: 2px;
    background: var(--gold);
    flex: 0 0 auto;
}
.section__subtitle { font-size: 1rem; margin: 0 0 0.6rem; color: var(--muted); }

.page-head { margin: 0.5rem 0 1.25rem; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.page-head__sub { margin: 0.25rem 0 0; color: var(--muted); }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
/* Bez min-width:0 by sloupec (1fr) nešel zúžit pod obsah dětí (např. dlouhý
   název týmu v kartě zápasu) a na mobilu by karta přetékala mimo viewport. */
.two-col > * { min-width: 0; }

@media (max-width: 800px) {
    .two-col { grid-template-columns: 1fr; }
}

/* Stejně velké boxy vedle sebe (dashboard: Poslední výsledky / Nejbližší zápasy). */
.two-col--equal { align-items: stretch; }
.two-col--equal .panel { margin: 0; height: 100%; }
.panel {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.25rem;
}

@media (max-width: 640px) {
    .section { margin: 1.1rem 0; }
    .section__title { font-size: 1.05rem; margin-bottom: 0.6rem; }
    .two-col { gap: 0.9rem; }
    .panel { padding: 0.85rem 0.9rem; }
}

/* ---------- Statistické dlaždice ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent, var(--green));
    border-radius: var(--radius);
    padding: 0.9rem;
    box-shadow: var(--shadow);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 24, 40, 0.1); }

/* Ikona v barevném kolečku laděném do akcentu dlaždice. */
.stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    background: color-mix(in srgb, var(--accent, var(--green)) 15%, transparent);
}
.stat-card__value { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-card__label { font-size: 0.82rem; color: var(--muted); }
.stat-card__sub { font-size: 0.8rem; color: var(--accent, var(--green)); font-weight: 600; margin-top: 0.15rem; }

/* ---------- Nejbližší domácí zápas ---------- */
.next-home {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow);
}

.next-home__meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.next-home__comp { color: var(--muted); font-size: 0.85rem; }
.next-home__teams { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: 1.25rem; font-weight: 800; }
.next-home__team.ours { color: var(--green-dark); }
.next-home__vs { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.next-home__when { margin-top: 0.6rem; font-weight: 600; }
.next-home__rel { color: var(--muted); font-weight: 500; }
.next-home__venue { color: var(--muted); margin-top: 0.2rem; font-size: 0.9rem; }

@media (max-width: 640px) {
    .next-home { padding: 0.85rem 0.9rem; }
    .next-home__meta { margin-bottom: 0.35rem; }
    .next-home__teams { font-size: 1.05rem; gap: 0.5rem; }
    .next-home__when, .next-home__venue { font-size: 0.85rem; }
}

/* ---------- Karty kategorií ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent, var(--green));
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.category-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16,24,40,0.1); }
.category-card__head { display: flex; align-items: center; gap: 0.5rem; }
.category-card__logo { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--border); flex-shrink: 0; }
.category-card__name { font-weight: 800; font-size: 1.05rem; flex: 1; }
.category-card__pos { color: var(--accent, var(--green)); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.category-card__comp { color: var(--muted); font-size: 0.85rem; margin: 0.2rem 0 0.6rem; }
.category-card__form { display: flex; align-items: center; gap: 0.4rem; }
.category-card__next { margin-top: 0.5rem; font-size: 0.85rem; }

/* ---------- Odznaky kategorií / pilulky ---------- */
.cat-pill {
    display: inline-block;
    background: var(--accent, var(--green));
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.cat-pill.sm { font-size: 0.7rem; padding: 0.12rem 0.45rem; }

/* ---------- Seznam zápasů / karta zápasu ---------- */
.match-list { display: flex; flex-direction: column; gap: 0.7rem; }

/* ---------- Tabulka zápasů (kompaktní seznam) ---------- */
.matches-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }

/* Na mobilu se místo widší tabulky (vodorovný scroll) zobrazí karty zápasů. */
.match-list--mobile { display: none; }
@media (max-width: 700px) {
    .matches-table-wrap--desktop { display: none; }
    .match-list--mobile { display: flex; }
}
.matches-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.matches-table th, .matches-table td { padding: 0.6rem 0.7rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.matches-table thead th { background: #f8fafb; color: var(--muted); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.4px; }
.matches-table tbody tr:last-child td { border-bottom: none; }
.matches-table__row { cursor: pointer; transition: background 0.12s ease; border-left: 3px solid transparent; }
.matches-table__row:hover { background: rgba(31, 157, 85, 0.06); }
.matches-table__row.win { border-left-color: var(--win); }
.matches-table__row.draw { border-left-color: var(--draw); }
.matches-table__row.loss { border-left-color: var(--loss); }
.matches-table__match { white-space: normal; min-width: 180px; }
.matches-table__sep { color: var(--muted); margin: 0 0.35rem; }
.matches-table__round, .matches-table__result { text-align: center; }
.matches-table .team.ours { color: var(--green-dark); font-weight: 800; }
.matches-table .result-badge { margin-left: 0.4rem; }

.match-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    padding: 0.95rem 1.05rem;
    box-shadow: var(--shadow);
}

.match-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.12s ease;
}
.match-card__link:hover { background: rgba(31, 157, 85, 0.06); }

.match-card.win { border-left-color: var(--win); }
.match-card.draw { border-left-color: var(--draw); }
.match-card.loss { border-left-color: var(--loss); }
.match-card.upcoming { border-left-color: #2f80ed; }
.match-card.is-highlight { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }

.match-card__top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

/* min-width: 0 je nutné, jinak flex/grid položka odmítá zúžit pod šířku
   svého (nezalomitelného) obsahu a ellipsis se u dlouhých textů neuplatní. */
.match-card__top .cat-pill { flex-shrink: 0; }
.match-card__comp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-card__date { flex-shrink: 0; font-weight: 600; white-space: nowrap; }

.match-card__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
}

.team { min-width: 0; font-weight: 600; font-size: 0.94rem; display: inline-flex; align-items: center; gap: 0.4rem; vertical-align: middle; max-width: 100%; }
.match-card__teams .team:last-child { justify-content: flex-end; }
.team.ours { color: var(--green-dark); font-weight: 800; }
.team__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }

/* Výsledek (odehraný zápas) nebo čas (nadcházející) – hlavní vizuální těžiště karty,
   proto vlastní zaoblené pozadí laděné dle výsledku/stavu zápasu. */
.match-card__mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 68px;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    background: rgba(107, 114, 128, 0.08);
}
.match-card.win .match-card__mid { background: rgba(31, 157, 85, 0.1); }
.match-card.draw .match-card__mid { background: rgba(242, 201, 76, 0.16); }
.match-card.loss .match-card__mid { background: rgba(235, 87, 87, 0.1); }
.match-card.upcoming .match-card__mid { background: rgba(47, 128, 237, 0.1); }

.score { font-size: 1.4rem; font-weight: 800; }
.score .sep { margin: 0 2px; color: var(--muted); }
.result-badge {
    margin-top: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    border-radius: 999px;
    padding: 0 0.4rem;
}
.kickoff-time { font-size: 1.25rem; font-weight: 800; color: #1c4fa1; }
.kickoff-rel { font-size: 0.72rem; color: var(--muted); }

.result-badge.win, .form-dot.win { background: var(--win); }
.result-badge.draw, .form-dot.draw { background: var(--draw); color: #5a4a00; }
.result-badge.loss, .form-dot.loss { background: var(--loss); }

.match-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--muted);
}
.match-card__bottom .venue { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ha-badge {
    flex-shrink: 0;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
}
.ha-badge.home { background: rgba(31,157,85,0.12); color: var(--green-dark); }
.ha-badge.away { background: rgba(47,128,237,0.12); color: #1c4fa1; }

@media (max-width: 640px) {
    .match-list { gap: 0.5rem; }
    .match-card { padding: 0.65rem 0.75rem; }
    .match-card__top { font-size: 0.7rem; margin-bottom: 0.3rem; }
    .team { font-size: 0.82rem; gap: 0.3rem; }
    .match-card__teams { gap: 0.35rem; }
    .match-card__mid { min-width: 52px; padding: 0.2rem 0.4rem; }
    .score { font-size: 1.15rem; }
    .kickoff-time { font-size: 1.05rem; }
    .kickoff-rel { font-size: 0.65rem; }
    .match-card__bottom { margin-top: 0.35rem; font-size: 0.7rem; }
    .player-stat-badge { font-size: 0.72rem; padding: 0.1rem 0.45rem; }
}

/* ---------- Forma ---------- */
.form-badges { display: inline-flex; gap: 4px; }
.form-dot {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

/* ---------- Tabulky ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }

.table-wrap, .matches-table-wrap, .category-filter, .category-nav {
    -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.55rem 0.6rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table thead th { background: #f8fafb; color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: center; white-space: nowrap; }
.data-table .pos { color: var(--muted); font-weight: 700; }
.data-table .pts { font-weight: 800; }
.data-table .goals { font-weight: 800; color: var(--green-dark); }
.standings .team-col, .scorers .player-col { font-weight: 600; }
.standings tr.is-ours { background: rgba(31,157,85,0.10); }
.standings tr.is-ours .team-col { color: var(--green-dark); font-weight: 800; }
.pos-diff { color: var(--win); }
.neg-diff { color: var(--loss); }

.team-col__inner { display: flex; align-items: center; gap: 0.5rem; }
.team-logo {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    box-shadow: inset 0 0 0 1px var(--border);
}
.team-logo--placeholder { background: var(--border, #ddd); }

@media (max-width: 560px) {
    .hide-sm { display: none; }
}

/* ---------- Filtry / záložky / vstupy ---------- */
.filters { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.category-filter { overflow-x: auto; }

.cat-tab, .tab, .btn-fav, .btn-retry {
    appearance: none;
    cursor: pointer;
    font: inherit;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.12s ease;
}

.cat-tab:hover, .tab:hover { border-color: var(--accent, var(--green)); }
.cat-tab.active { background: var(--accent, var(--green)); color: #fff; border-color: var(--accent, var(--green)); }

/* Odkaz na tabulku zvolené kategorie – akcentní obrys, vyplní se při najetí. */
.cat-tab--table { border-color: var(--accent, var(--green)); color: var(--accent, var(--green)); }
.cat-tab--table:hover { background: var(--accent, var(--green)); color: #fff; }

.tabs { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }
.tabs--wide { margin: 1rem 0; }
.tab.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

.category-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; overflow-x: auto; padding-bottom: 0.25rem; }
.fav-star { color: var(--gold); margin-right: 2px; }

.select, .search {
    appearance: none;
    font: inherit;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
}
.search { flex: 1; min-width: 160px; }
.select:focus, .search:focus { outline: 2px solid var(--green); outline-offset: 0; }

.result-count { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.6rem; }

/* ---------- Detail zápasu ---------- */
.match-detail-head {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent, var(--green));
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}
.match-detail-head__meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.6rem; }
.match-detail-head__teams { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; font-size: 1.4rem; font-weight: 800; text-align: center; }
.match-detail-head__team { display: inline-flex; align-items: center; gap: 0.5rem; }
.match-detail-head__team .team-logo { width: 32px; height: 32px; }
.match-detail-head__team.ours { color: var(--green-dark); }
.match-detail-head__score { font-size: 1.8rem; }
.match-detail-head__score .sep { margin: 0 4px; color: var(--muted); }
.match-detail-head__vs { color: var(--muted); font-weight: 600; font-size: 1rem; }
.match-detail-head__half { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }
.match-detail-head__info { text-align: center; color: var(--muted); margin-top: 0.7rem; font-size: 0.9rem; line-height: 1.6; }
.match-source-link { display: inline-block; margin-top: 0.4rem; font-weight: 600; color: var(--green-dark); text-decoration: none; }
.match-source-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .match-detail-head { padding: 0.9rem 1rem; }
    .match-detail-head__teams { gap: 0.6rem; font-size: 1.05rem; }
    .match-detail-head__team .team-logo { width: 26px; height: 26px; }
    .match-detail-head__score { font-size: 1.4rem; }
    .match-detail-head__info { font-size: 0.82rem; }
}

.summary-big.small-text { font-size: 0.95rem; font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.timeline__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.timeline__item.away { flex-direction: row-reverse; text-align: right; }
.timeline__minute { font-weight: 800; color: var(--accent, var(--green)); min-width: 2.4rem; }
.timeline__item.away .timeline__minute { text-align: right; }

.goal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.goal-list li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    font-weight: 600;
}

/* ---------- Soupisky zápasu (lineup grid) ---------- */
.lineup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
/* Stejný důvod jako u .two-col – tabulka soupisky uvnitř by jinak nešla zúžit. */
.lineup-grid > * { min-width: 0; }
@media (max-width: 720px) {
    .lineup-grid { grid-template-columns: 1fr; }
}
.lineup-team__name {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--accent, var(--green));
}
.lineup-bench-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0.9rem 0 0.4rem;
}
.lineup-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lineup-table tr:not(:last-child) { border-bottom: 1px solid var(--border); }
.lineup-table__num {
    width: 2rem;
    padding: 0.4rem 0.3rem 0.4rem 0.6rem;
    text-align: center;
    font-weight: 700;
    color: var(--muted);
}
.lineup-table__name { padding: 0.4rem 0.4rem; font-weight: 600; width: 100%; }
.lineup-table__events {
    padding: 0.4rem 0.6rem 0.4rem 0.2rem;
    text-align: right;
    white-space: nowrap;
}
.lineup-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    margin-left: 0.25rem;
    background: rgba(0, 0, 0, 0.05);
}
.lineup-badge.badge-goal { color: var(--win); }
.lineup-badge.badge-yellow { color: #8a6d00; background: rgba(242, 201, 76, 0.25); }
.lineup-badge.badge-red { color: #fff; background: var(--loss); }
.lineup-badge.badge-sub-out { color: var(--loss); }
.lineup-badge.badge-sub-in { color: var(--win); }

/* ---------- Detail kategorie ---------- */
.category-head, .player-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.player-head { justify-content: flex-start; }
.category-head__main { display: flex; align-items: center; gap: 0.85rem; }
.category-head__logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--accent, var(--gold)); flex-shrink: 0; }

.btn-fav.active { background: var(--gold); border-color: var(--gold); color: #5a4a00; }

.summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}
.summary-block { display: flex; flex-direction: column; gap: 0.25rem; }
.summary-big { font-size: 1.3rem; font-weight: 800; }

.player-avatar {
    display: grid; place-items: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--accent, var(--green));
    color: #fff; font-weight: 800; font-size: 1.3rem;
    flex-shrink: 0;
}
.player-avatar--photo {
    object-fit: cover;
    background: var(--surface);
    box-shadow: inset 0 0 0 2px var(--accent, var(--gold));
}

/* Malý avatar/fotka ve sloupci tabulky střelců. */
.player-avatar-sm {
    display: grid; place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--accent, var(--green));
    color: #fff; font-weight: 800; font-size: 0.68rem;
    flex-shrink: 0;
}
.player-avatar-sm--photo { object-fit: cover; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.player-col__inner { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- Zápas-po-zápase historie hráče ---------- */
.player-match-entry { display: flex; flex-direction: column; gap: 0.4rem; }
.player-match-entry__stats { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 0.2rem; }
.player-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(31, 157, 85, 0.1);
    color: var(--green-dark);
}
.player-stat-badge--goal { background: rgba(31, 157, 85, 0.16); }
.player-stat-badge--muted { background: var(--border); color: var(--muted); font-weight: 600; }

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.link-back:hover {
    border-color: var(--green);
    color: var(--green-dark);
    transform: translateX(-2px);
}

/* ---------- Síň slávy ---------- */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}
.hof-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.8rem;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hof-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(16, 24, 40, 0.12); }
.hof-card__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent, var(--green));
}
.hof-card__name { font-weight: 800; font-size: 0.92rem; }
.hof-card__dates { font-size: 0.75rem; color: var(--muted); }

/* ---------- Kontakty ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}
.contact-card--wide { grid-column: 1 / -1; }
.contact-card__role { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.contact-card__name { font-weight: 800; font-size: 1.05rem; }
.contact-card__link { color: var(--green-dark); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.contact-card__link:hover { text-decoration: underline; }

.map-embed {
    margin: 0.75rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.map-embed iframe { display: block; width: 100%; height: 220px; border: 0; }

/* ---------- Partneři ---------- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(160deg, #07210f 0%, #0c5c33 38%, #1f9d55 100%);
    border-radius: var(--radius);
}
.partner-logo {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    transition: transform 0.15s ease;
}
.partner-logo:hover { transform: scale(1.05); }

.partner-card { display: flex; flex-direction: column; align-items: center; }
.partner-card__trigger {
    all: unset;
    display: block;
    width: 100%;
    cursor: pointer;
}
.partner-card__detail {
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
}
.partner-card__detail strong { display: block; margin-bottom: 0.3rem; }
.partner-card__detail p { margin: 0 0 0.6rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.partner-card__detail a {
    display: inline-block;
    background: #fff;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
}
.partner-card__detail a:hover { background: var(--gold); }

.partner-cta {
    margin-top: 2rem;
    padding: 1.75rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.partner-cta h2 { margin: 0 0 0.6rem; font-size: 1.3rem; }
.partner-cta p { margin: 0 auto 1.1rem; max-width: 640px; color: var(--muted); }

.hof-detail__photos {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.hof-detail__photo {
    margin: 0;
    text-align: center;
}
.hof-detail__photo img {
    max-width: 260px;
    max-height: 340px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    object-fit: cover;
}
.hof-detail__photo figcaption { margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.hof-detail__bio { line-height: 1.6; max-width: 760px; }

/* ---------- Střelci ---------- */
.topscorer-hero {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent, var(--green));
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow);
}
.topscorer-hero__rank { font-size: 2rem; }
.topscorer-hero__body { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; min-width: 0; }
.topscorer-hero__name { font-size: 1.4rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.topscorer-hero__goals { text-align: center; }
.topscorer-hero__goals .big { color: var(--accent, var(--green)); }

@media (max-width: 640px) {
    .topscorer-hero { padding: 0.85rem 0.9rem; gap: 0.7rem; }
    .topscorer-hero__rank { font-size: 1.5rem; }
    .topscorer-hero__name { font-size: 1.1rem; }
}

.leader-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent, var(--green));
    border-radius: var(--radius);
    padding: 0.9rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.leader-card__cat { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.leader-card__name { font-weight: 800; color: var(--ink); text-decoration: none; }
.leader-card__goals { font-weight: 700; color: var(--accent, var(--green)); }

/* ---------- Stavy (loading / error) ---------- */
.state-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 1rem 0;
}
.loading-state { color: var(--muted); }
.spinner {
    width: 38px; height: 38px;
    margin: 0 auto 0.75rem;
    border: 4px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-state {
    display: flex;
    gap: 0.85rem;
    text-align: left;
    align-items: flex-start;
    border-left: 4px solid var(--loss);
}
.error-state.is-notice { border-left-color: var(--draw); }
.state-icon { font-size: 1.4rem; }
.state-title { font-weight: 700; margin: 0; }
.state-detail { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.btn-retry { margin-top: 0.6rem; background: var(--green); color: #fff; border-color: var(--green); }

/* ============================================================
   Framework / Blazor (ponecháno z šablony)
   ============================================================ */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 8px;
}

    .blazor-error-boundary::after {
        content: "Došlo k chybě."
    }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

/* ============================================================
   Přihlašování / účet (ASP.NET Core Identity – výchozí stránky
   ve fotbalovém stylu webu)
   ============================================================ */

.avatar {
    --avatar-size: 40px;
    width: var(--avatar-size);
    height: var(--avatar-size);
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    box-shadow: inset 0 0 0 2px var(--gold);
    user-select: none;
}

/* Profilovka v hlavičce: na desktopu jen kulatý avatar, popisek "Profil" se skryje. */
.main-nav__profile { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem; }
.main-nav__profile .avatar { transition: box-shadow 0.15s ease; }
.main-nav__profile:hover .avatar { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 3px rgba(255, 211, 77, 0.35); }
.main-nav__profile.active { background: transparent; box-shadow: none; }
.main-nav__profile.active .avatar { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 3px rgba(255, 211, 77, 0.5); }
.main-nav__profile-label { display: none; }

.admin-user { display: flex; align-items: center; gap: 0.6rem; }

.role-pill {
    display: inline-block;
    background: rgba(31, 157, 85, 0.12);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
}

.account-shell {
    min-height: calc(100vh - 220px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 1rem;
    background: linear-gradient(160deg, #07210f 0%, #0c5c33 38%, #1f9d55 100%);
    margin: -1.5rem -1rem 1.5rem;
    border-radius: var(--radius);
}

.account-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 1.75rem 1.75rem;
}

.account-card__crest {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    box-shadow: inset 0 0 0 2px var(--gold), var(--shadow);
}

.account-shell--manage { align-items: stretch; }

.manage-card {
    width: 100%;
    max-width: 920px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
}

.manage-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.manage-card__title { margin: 0; font-size: 1.4rem; }
.manage-card__sub { margin: 0.15rem 0 0; }

/* Bootstrap mřížka/formuláře zůstávají funkčně beze změny, jen se přebarví
   do klubového motivu (zelená/zlatá) uvnitř karet s přihlašováním a profilem. */
.account-card h1, .account-card h2, .account-card h3,
.manage-card h1, .manage-card h2, .manage-card h3 {
    color: var(--green-dark);
}

.account-card hr, .manage-card hr { border-color: var(--border); opacity: 1; }

.account-card h1 { margin-bottom: 0.35rem; font-size: 1.7rem; }
.account-card__lead { color: var(--muted); margin: 0 0 1.5rem; }
.account-card__footer { margin: 1.5rem 0 0; text-align: center; color: var(--muted); }
.account-card__footer + .account-card__footer { margin-top: 0.5rem; }

.account-card__divider {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 1.25rem 0 0.5rem;
    position: relative;
}

.account-card__divider::before, .account-card__divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    border-top: 1px solid var(--border);
}

.account-card__divider::before { left: 0; }
.account-card__divider::after { right: 0; }

.account-card .checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--ink);
}

.account-card .form-control, .manage-card .form-control,
.account-card .form-check-input, .manage-card .form-check-input {
    border-color: var(--border);
    border-radius: 10px;
}

.account-card .form-control:focus, .manage-card .form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 0.2rem rgba(31, 157, 85, 0.18);
}

.account-card .form-floating > label, .manage-card .form-floating > label {
    color: var(--muted);
}

.account-card .btn-primary, .manage-card .btn-primary {
    background: var(--green);
    border-color: var(--green);
    border-radius: 10px;
    font-weight: 700;
}

.account-card .btn-primary:hover, .manage-card .btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.account-card .btn-link, .manage-card .btn-link { color: var(--green-dark); }

.account-card .text-danger, .manage-card .text-danger { color: var(--loss) !important; }

.account-card .alert-success, .manage-card .alert-success {
    background: rgba(31, 157, 85, 0.12);
    border-color: var(--green);
    color: var(--green-dark);
}

.account-card .alert-danger, .manage-card .alert-danger {
    background: rgba(235, 87, 87, 0.12);
    border-color: var(--loss);
    color: #8a2222;
}

.account-card a, .manage-card a { color: var(--green-dark); font-weight: 600; }

/* Bootstrap nav-pills v ManageNavMenu → klubové barvy. */
.manage-card .nav-pills .nav-link {
    color: var(--ink);
    border-radius: 10px;
    font-weight: 600;
}

.manage-card .nav-pills .nav-link.active {
    background: var(--green);
    color: #fff;
}

.manage-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.25rem;
}

.danger-zone__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.danger-zone__row:last-child { border-bottom: none; }
.danger-zone__row p { margin: 0.15rem 0 0; }
.danger-zone__row .btn-small { flex-shrink: 0; }

.manage-card .btn-danger, .account-card .btn-danger {
    background: var(--loss);
    border-color: var(--loss);
    border-radius: 10px;
    font-weight: 700;
}
.manage-card .btn-danger:hover, .account-card .btn-danger:hover {
    background: #c23a3a;
    border-color: #c23a3a;
}

.manage-card .alert-warning, .account-card .alert-warning {
    background: rgba(242, 201, 76, 0.2);
    border-color: var(--draw);
    color: #5a4a00;
}

@media (max-width: 640px) {
    .account-shell { padding: 1.75rem 0.75rem; margin: -1rem -0.5rem 1.5rem; }
    .account-card { padding: 2rem 1.1rem 1.25rem; }
    .manage-card__head { flex-wrap: wrap; }
}

/* ---------- Volba Přihlásit se / Registrovat se (/Account/Vstup) ---------- */
.account-choice { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.25rem; }
.account-choice__btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.account-choice__btn:hover { border-color: var(--green); background: rgba(31, 157, 85, 0.06); transform: translateY(-1px); }
.account-choice__btn--primary { border-color: var(--green); background: rgba(31, 157, 85, 0.08); }
.account-choice__icon { font-size: 1.7rem; flex-shrink: 0; }
.account-choice__btn strong { display: block; font-size: 1.05rem; }
.account-choice__btn small { color: var(--muted); font-size: 0.85rem; }

/* ---------- Fotky (album přehled) ---------- */
.photo-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.photo-album-card {
    display: block;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.photo-album-card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(16, 24, 40, 0.12); }

.photo-album-card__cover {
    aspect-ratio: 4 / 3;
    background: var(--border);
    overflow: hidden;
}

.photo-album-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-album-card__body { padding: 0.75rem 0.9rem 0.9rem; }
.photo-album-card__body h3 { margin: 0 0 0.3rem; font-size: 0.98rem; line-height: 1.3; }

.photo-album-card__meta {
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.82rem;
}

/* ---------- Fotky (detail alba – mřížka náhledů) ---------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}

.photo-grid__item {
    aspect-ratio: 4 / 3;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: var(--border);
}

.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 20, 0.92);
}

.lightbox__cont {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.lightbox__img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
    position: absolute;
    top: -2.4rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

.lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__nav--prev { left: -1rem; }
.lightbox__nav--next { right: -1rem; }

.lightbox__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.lightbox__counter { font-size: 0.85rem; opacity: 0.85; }

.lightbox__download {
    background: var(--green);
    color: #fff;
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.lightbox__download:hover { background: var(--green-dark); }

@media (max-width: 640px) {
    .lightbox__nav { width: 40px; height: 40px; font-size: 1.8rem; }
    .lightbox__nav--prev { left: 0.25rem; }
    .lightbox__nav--next { right: 0.25rem; }
    .lightbox__close { top: 0.5rem; right: 0.5rem; background: rgba(0,0,0,0.4); border-radius: 50%; width: 32px; height: 32px; }
}

/* ============================================================
   Aktuality (novinky)
   ============================================================ */
.section__head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.section__head-row .section__title { margin: 0; }
.section__more { font-size: 0.85rem; font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--green-dark); }
.section__more:hover { text-decoration: underline; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}
.news-grid--compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16, 24, 40, 0.12); }

.news-card__cover { aspect-ratio: 16 / 9; background: var(--border); overflow: hidden; }
.news-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0c5c33, #1f9d55);
}
.news-card__placeholder { width: 64px !important; height: 64px !important; opacity: 0.55; filter: brightness(0) invert(1); }

.news-card__body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.news-card__date { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.news-card__title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.news-card__excerpt { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

@media (max-width: 640px) {
    .news-grid, .news-grid--compact { grid-template-columns: 1fr; gap: 0.75rem; }
    .news-card__body { padding: 0.7rem 0.8rem 0.85rem; gap: 0.2rem; }
    .news-card__title { font-size: 1rem; }
    .news-card__excerpt { font-size: 0.85rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Detail aktuality (článek) ---------- */
.article { max-width: 760px; }
.article__head { margin-bottom: 1rem; }
.article__date { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.article__title { margin: 0.3rem 0 0; font-size: 2rem; line-height: 1.15; }
.article__author { margin: 0.4rem 0 0; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.article__image { width: 100%; border-radius: var(--radius); margin: 0.5rem 0 1.25rem; box-shadow: var(--shadow); }
.article__perex { font-size: 1.1rem; font-weight: 600; line-height: 1.5; margin: 0 0 1rem; }
.article__body p { line-height: 1.7; margin: 0 0 1rem; }

/* ---------- Editor aktualit (administrace) ---------- */
.news-editor {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.4rem;
    max-width: 760px;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field__label { font-weight: 700; font-size: 0.88rem; }
.field__input {
    font: inherit;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    width: 100%;
}
.field__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.15); }
.field__input--body { resize: vertical; min-height: 180px; line-height: 1.5; }
.field--check { flex-direction: row; align-items: center; gap: 0.5rem; }
.field--check input { width: 18px; height: 18px; }
.field__error { color: var(--loss); font-weight: 600; font-size: 0.88rem; margin: 0.25rem 0 0; }

.news-editor__preview { max-width: 260px; border-radius: 10px; margin-bottom: 0.5rem; box-shadow: var(--shadow); }

/* ---------- Administrační tlačítka / stavy ---------- */
.admin-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0; }
.admin-row-actions { display: flex; gap: 0.4rem; white-space: nowrap; }

.btn-primary {
    appearance: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    border: none;
    background: var(--green);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-small {
    appearance: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}
.btn-small:hover { border-color: var(--green); }
.btn-small--danger { color: var(--loss); }
.btn-small--danger:hover { border-color: var(--loss); background: rgba(235, 87, 87, 0.08); }

.status-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--border);
    color: var(--muted);
}
.status-pill--ok { background: rgba(31, 157, 85, 0.15); color: var(--green-dark); }

/* ---------- Administrace: karty místo tabulky na mobilu ---------- */
.table-wrap--admin { display: block; }
.admin-card-list { display: none; flex-direction: column; gap: 0.75rem; }

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.admin-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.admin-card__title { font-weight: 800; font-size: 1rem; line-height: 1.3; }
.admin-card__meta { color: var(--muted); font-size: 0.85rem; }
.admin-card__row { display: flex; align-items: center; gap: 0.6rem; }
.admin-card__actions { display: flex; gap: 0.5rem; }
.admin-card__actions .btn-small { flex: 1; text-align: center; }

/* ---------- Chyby a nápady (/chyby) ---------- */
.bug-list { display: flex; flex-direction: column; gap: 0.7rem; }
.bug-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--loss);
    border-radius: var(--radius);
    padding: 0.9rem 1.05rem;
    box-shadow: var(--shadow);
}
.bug-card--resolved { border-left-color: var(--win); opacity: 0.75; }
.bug-card__check { flex-shrink: 0; padding-top: 0.15rem; }
.bug-card__check input { width: 20px; height: 20px; cursor: pointer; }
.bug-card__body { min-width: 0; }
.bug-card__desc { margin: 0 0 0.3rem; white-space: pre-wrap; }
.bug-card--resolved .bug-card__desc { text-decoration: line-through; color: var(--muted); }
.bug-card__meta { font-size: 0.78rem; color: var(--muted); }

/* Ikona "nahlásit chybu" v hlavičce – trochu větší, ať je jako emoji dobře vidět. */
.main-nav__bug { font-size: 1.15rem; padding-left: 0.6rem; padding-right: 0.6rem; }

/* ---------- Mobil: větší, prstem ovladatelné prvky ---------- */
@media (max-width: 700px) {
    .table-wrap--admin { display: none; }
    .admin-card-list { display: flex; }

    .btn-primary {
        padding: 0.75rem 1.3rem;
        font-size: 1rem;
        min-height: 46px;
    }
    .btn-small {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-height: 42px;
    }
    .cat-tab, .tab {
        padding: 0.55rem 0.95rem;
        font-size: 0.92rem;
        min-height: 42px;
    }
    /* Vycentrovat zalomené řádky pilulek kategorií, ať poslední (kratší) řádek
       nevisí ošklivě vlevo s prázdným místem vpravo. */
    .category-filter, .category-nav {
        justify-content: center;
        overflow-x: visible;
    }
    .select, .search, .field__input {
        min-height: 46px;
        font-size: 1rem;
    }

    .admin-actions { flex-direction: column; align-items: stretch; }
    .admin-actions .btn-primary, .admin-actions .btn-small { width: 100%; }

    .news-editor { padding: 1.1rem 1rem; }

    .filters .search, .filters .select { width: 100%; }
}
