:root {
    --primary-color: #911010;
    --secondary-color: #d00000;
    --font-family: 'Oswald', sans-serif;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   Globální styl selectů
   ═══════════════════════════════════════ */
select {
    padding: 0.5rem 2.2rem 0.5rem 0.9rem;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d00000' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

select:hover {
    background-color: #fef2f2;
    border-color: var(--secondary-color);
}

select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(208, 0, 0, 0.15);
    background-color: #fff;
}

/* Jazykový přepínač v headeru - odstranění modrého focusu a tmavě červený dropdown */
.language-switcher {
    position: relative;
    z-index: 1050;
}

.lang-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    position: relative;
    z-index: 1051;
}

.lang-select:focus {
    border-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.lang-select option {
    background-color: var(--secondary-color);
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.primary_color {
    color: var(--primary-color) !important;
}

a.trener-phone {
    text-decoration: none;
    transition: opacity 0.2s;
}

a.trener-phone:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.primary_color_bg {
    background-color: var(--primary-color) !important;
}

.primary_font {
    font-family: 'Oswald', sans-serif;
}

.border-top {
    border-top-color: var(--primary-color) !important;
}

[id] {
    scroll-margin-top: 10vh;
}

.curr_web_font {
    font-family: 'Oswald', sans-serif;
}

.navbar-brand,
.nav-link,
.card-title {
    font-family: 'Oswald', sans-serif;
}

.gateway-headline {
    letter-spacing: 20%;
    font-size: clamp(1.5rem, 5vw, 4rem) !important;
    opacity: 0.7;
}

.navbar-brand img {
    /*width: 100%;*/
    height: 5rem;
    margin-right: 1rem;
}

@media screen and (max-width: 992px) {
    .navbar-expand-lg {
        /*padding-bottom: 5%;*/
    }

    .site-header {
        background-color: var(--primary-color) !important;
        clip-path: none !important;
        transition: background-color 0.5s ease;
    }

    /* Na mobilu musí být navbar viditelný i bez fp-header--animated */
    .site-header .fp-nav-links {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    /* Úprava na mobilní verzi - vycentrování loga a hamburger vlevo pod ním */
    .site-header .fp-nav-row {
        position: relative;
        /* flex-direction: column; */
        align-items: center;
        justify-content: center !important;
    }

    .site-header .navbar-brand {
        /* width: 100%; */
        margin: 0 auto !important;
        justify-content: center;
        flex: 0 0 auto;
        padding-bottom: 5px;
    }

    .site-header .navbar-toggler {
        /* align-self: flex-end !important; */
        /* width: 100%; */
        text-align: right;
        margin-left: -0.5rem;
        color: #ffffff;
        z-index: 10;
        padding: 0.25rem 0.5rem;
        touch-action: manipulation;
    }

    .site-header .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Změna ikony na křížek při otevření menu */
    .site-header .navbar-toggler i {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .site-header .navbar-toggler[aria-expanded="true"] i {
        opacity: 0;
        transform: rotate(90deg);
    }

    .site-header .navbar-toggler::after {
        content: "\f00d";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.125rem;
        opacity: 0;
        position: absolute;
        right: 0.5rem;
        transition: opacity 0.3s ease;
    }

    .site-header .navbar-toggler[aria-expanded="true"]::after {
        opacity: 1;
    }

    .site-header .navbar-collapse {
        align-self: stretch;
    }

    /* Animace otevírání/zavírání mobilního menu */
    .site-header .navbar-collapse {
        transition: height 0.35s ease, opacity 0.35s ease !important;
    }

    .site-header .navbar-collapse.collapsing {
        transition: height 0.35s ease !important;
    }

    .site-header .navbar-collapse:not(.show) {
        opacity: 0;
    }

    .site-header .navbar-collapse.show {
        opacity: 1;
    }

    /* Zarovnání položek menu (<li>) na mobilu vlevo pro lepší čitelnost */
    .site-header .navbar-nav {
        align-items: flex-start !important;
        text-align: left !important;
    }

    /*.site-header .navbar-nav .nav-link {*/
    /*    padding-left: 0 !important;*/
    /*}*/

    #mainNavbar {
        width: 100% !important;
    }
}



.site-header {
    width: 100vw;
    /*min-height: 10vh;*/
    background: transparent;
    /*clip-path: polygon(100% 0, 100% 100%, 95% 85%, 0 100%, 0 0);*/
    position: fixed;
    z-index: 9999;
    /*box-shadow: 0 4px 20px rgba(0,0,0,0.4);*/
    transition: clip-path 0.5s ease, background 0.5s ease;
}

.site-header.scrolled {
    min-height: auto;
    /*clip-path: polygon(100% 0, 100% 100%, 95% 85%, 0 100%, 0 0);*/
    background: var(--secondary-color);
}


.custom-navbar {
    background-color: transparent;
    min-height: 10vh;
}

.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Default (velké displeje) */
.navbar-nav .nav-link {
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

/* Když je šířka menší než 1150px */
@media (max-width: 1150px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.6rem !important;
        /* menší mezery */
        font-size: 0.9rem;
        /* zmenšení textu */
    }

    .navbar-brand img {
        max-height: 3rem;
    }
}


.navbar-nav .nav-link:hover {
    color: #000;
    background-color: #fff;
    border-radius: 5px;
}

.navbar-nav .sub-menu .nav-link:hover {
    border-radius: 0!important;
}

.navbar-nav .nav-link:hover::after {
    border-top: 0.3em solid #000 !important;
}

.menu-item {
    display: flex;
    align-items: center;
}

/* Rodičovský prvek */
.navbar-nav .menu-item-has-children {
    position: relative;
}

/* Submenu - .sub-menu */
.navbar-nav .sub-menu {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1000;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.navbar-nav .sub-menu .nav-item {
    position: relative;
}

.navbar-nav .sub-menu .nav-link {
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: block;
    width: 100%;
    text-align: left;
}

.navbar-nav .sub-menu .nav-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-left-color: #fff;
    padding-left: calc(1.5rem - 3px);
}

.navbar-nav .sub-menu .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Indikátor na nadřazené položce */
.navbar-nav .menu-item-has-children>.nav-link::after {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid #fff;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.2s ease;
}

/* Desktop - hover efekt */
@media (min-width: 992px) {
    .navbar-nav .menu-item-has-children:hover>.sub-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .navbar-nav .menu-item-has-children:hover>.nav-link::after {
        transform: rotate(180deg);
        color: black !important;
    }
}

/* Mobile menu - submenu styling */
@media (max-width: 991px) {
    .navbar-nav .sub-menu {
        position: static;
        background-color: rgba(145, 16, 16, 0.95);
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1.5rem;
        margin: 0.5rem 0;
        border-left: 3px solid var(--primary-color);
        display: none;
        animation: none;
    }

    .navbar-nav .menu-item-has-children {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav .menu-item-has-children.show>.sub-menu {
        display: block;
        animation: slideDown 0.3s ease;
        padding: 0;
    }

    .navbar-nav .sub-menu.closing {
        display: block !important;
        animation: slideUp 0.3s ease !important;
    }

    .navbar-nav .menu-item-has-children.show>.nav-link::after {
        transform: rotate(180deg);
    }

    .navbar-nav .sub-menu .nav-link {
        padding: 1rem 1rem;
        font-size: 0.9rem;
        border-left: none;
    }

    .navbar-nav .sub-menu .nav-link:hover {
        background-color: var(--primary-color);
        border-left: none;
        padding-left: 1rem;
    }

    .navbar-nav .menu-item-has-children>.nav-link::after {
        margin-left: 0.3rem;
        font-size: 0.85rem;
    }
}

.nav_margin {
    padding-top: 10vh;
}


/* =============================================
   LOADER – úvodní načítací obrazovka
   ============================================= */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #d00000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader__logo {
    width: 120px;
    height: 120px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.8;
    }
}

.loader__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   HEADER – animace loga a navigace
   ============================================= */
.site-header .fp-brand {
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .fp-nav-row {
    position: relative;
}

.site-header .fp-nav-links {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.site-header.fp-header--animated .fp-nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* =============================================
   GATEWAY – rozcestník sportů
   ============================================= */
.home-gateway {
    /*padding-top: 10vh;*/
    max-width: 100vw !important;
    min-height: 100vh !important;
    position: relative;
}

.hero-clona {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-rows: 50vh 50vh !important;
    gap: 0 !important;
}

/* Pořadí prvků v gridu */
.hero-clona>.header-link-box[data-position="0"] {
    grid-column: 1;
    grid-row: 1;
}

/* ASPV */
.hero-clona>.header-link-box.fotbal-center {
    grid-column: 2;
    grid-row: 1 / 3;
}

/* FOTBAL */
.hero-clona>.header-link-box[data-position="2"] {
    grid-column: 3;
    grid-row: 1;
}

/* GYMN */
.hero-clona>.header-link-box[data-position="3"] {
    grid-column: 1;
    grid-row: 2;
}

/* VOLEJ */
.hero-clona>.header-link-box.fotbal-center-duplicate {
    display: none;
}

/* Skryj druhý fotbal */
.hero-clona>.header-link-box[data-position="5"] {
    grid-column: 3;
    grid-row: 2;
}

/* ŠACH */

.header-link-box {
    height: 50vh;
    overflow: hidden;
    /* Neprůhledné světlé pozadí boxu – bloky si přes clonu (.cardHeadlineBox)
       zachovají svůj šedý vzhled a tmavé pozadí gridu neprosvítá přes celý blok. */
    background-color: #ffffff;
    border: 1px solid rgb(82 82 82);
}

/* Tmavé pozadí pod rozcestníkem. Sloupce gridu (1fr) mají necelé šířky,
   takže na jejich hranách vznikají subpixelové švy. Dřív jimi prosvítalo bílé
   pozadí stránky (světlé čáry podél bloků, hlavně u fotbalu). Tímto tmavým
   pozadím se švy sjednotí s odstínem bloků a čáry zmizí. */
.home-gateway,
.hero-clona {
    background-color: #4d4d4d;
}

@media screen and (max-width: 991px) {
    .home-gateway {
        padding-top: 10vh;
    }

    .hero-clona {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .hero-clona>.header-link-box {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .header-link-box {
        height: 18vh;
        overflow: hidden;
    }

    .cardHeadlineBox {
        height: 18vh !important;
    }
}

.header-link-box>a {
    display: block;
    width: 100%;
    height: 100%;
}

.header-link-box .card-img-top {
    transition: transform 0.6s ease;
    will-change: transform;
}

.header-link-box:hover .card-img-top {
    transform: scale(1.3);
}

.header-link-box .cardHeadlineBox {
    transition: background-color 0.4s ease;
    z-index: 2;
    pointer-events: none;
    /* Clona přesahuje o 1px za okraj boxu (ořízne se přes overflow: hidden),
       aby ani na hraně bloku neprosvítal světlý proužek jeho pozadí. */
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
}

.header-link-box .card-img-top {
    position: relative;
    z-index: 1;
}

/*.header-link-box:hover .cardHeadlineBox {*/
/*    background-color: rgba(0, 0, 0, 0.45);*/
/*}*/
.header-link-box:hover .cardHeadlineBox--priprava {
    background-color: rgba(0, 0, 0, 0.65);
}

.gateway-headline {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.header-link-box:hover .gateway-headline {
    /*color: var(--secondary-color) !important;*/
    opacity: 1 !important;
    text-shadow: 2px 0 3px rgba(15, 23, 42, 0.4);
}

.card-img-top {
    height: 100%;
    object-fit: cover;
}

/* Šipka dolů */
.gateway-scroll-hint {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.gateway-scroll-hint__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #d00000;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    animation: scrollBounce 2s ease-in-out infinite;
    transition: background 0.3s ease, transform 0.3s ease;
}

.gateway-scroll-hint__arrow:hover {
    background: #fff;
    transform: scale(1.1);
    color: #d00000;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Fade-in animace pro sekce */
.section-fadein {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-fadein.section-fadein--visible {
    opacity: 1;
    transform: translateY(0);
}

.site-header,
.site-footer {
    color: white;
    text-align: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2em;
    padding: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
}

/* Bootstrap container – necháváme výchozí Bootstrap max-width */

.section-fotbal {
    background-color: #cce5ff;
}

.section-aspv {
    background-color: #d4edda;
}

.section-gym {
    background-color: #fff3cd;
}

.section-sachy {
    background-color: #f8d7da;
}


/* --- Hero --- */
.main-hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    padding: 0 clamp(1rem, 5vw, 10vh) 0 clamp(1rem, 5vw, 10vh);

    color: #fff;
}

.main-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.68) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.main-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vycentrujeme text vertikálně nad šipku */
    margin-top: 15vh;
    position: relative;
    z-index: 1;
    padding: 2rem;
    padding-bottom: 1rem;
    /* Vytvoříme prostor pro šipku, která je na bottom: 100px */
}

.main-hero__title {

    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: .02em;
    margin: 0;
}

.main-hero__subtitle {
    margin-top: .75rem;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    opacity: .9;
}

.main-hero__arrow {
    margin-top: 1rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.main-hero__arrow:hover {
    color: var(--primary-color);
}

/* --- Sticky subnav --- */
.fotbal-subnav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #0b0b0c;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.fotbal-subnav .container {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: .75rem 1rem;
}

.fotbal-subnav a {
    color: #fff;
    text-decoration: none;
    padding: .5rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
}

.fotbal-subnav a:hover {
    background: rgba(255, 255, 255, .12);
}



/* Obecný wrapper */
.zapasy-wrapper {
    margin-top: 1rem;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    display: block;
    max-width: 100%;
    width: 100%;
}

/* Nadpisy */
.zapasy-wrapper h5 {
    /*font-weight: 700;*/
    color: #d00000;
    /* můžeš přepsat na primary color oddílu */
    margin-bottom: 1rem;
    border-left: 5px solid #d00000;
    padding-left: 0.6rem;
}

/* Tabulka */
.zapasy-wrapper .table {
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Hlavička tabulky */
.zapasy-wrapper .table thead {
    background: #f8f9fa;
}

.zapasy-wrapper .table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 2px solid #dee2e6;
}

/* Řádky */
.zapasy-wrapper .table tbody tr {
    transition: background 0.2s ease;
}

.zapasy-wrapper .table tbody tr:hover {
    background: #f1f1f1;
}

/* Buňky */
.zapasy-wrapper .table td {
    padding: 0.75rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.zapasy-wrapper .table td,
.zapasy-wrapper .table th {
    min-width: 100px;
}

/* Výsledek zvýrazněný */
/*.zapasy-wrapper td:nth-child(4) {*/
/*    font-weight: 700;*/
/*    color: #111;*/
/*}*/

/* --- Sections --- */
.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.section h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.section .lead {
    color: #555;
}

/* --- Grids & cards --- */
.card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
    margin: 1rem;
}

.card:hover {
    /*transform: translateY(-4px);*/
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card__media {
    background-size: cover;
    background-position: center;
    aspect-ratio: 4 / 3;
}

.card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card__body h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

.card__info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 15px;
    color: #444;
}

.card__info li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card__info i {
    color: #b91c1c;
    /* klubová červená */
    font-size: 16px;
    flex-shrink: 0;
}

/* odkazy na zápasy/tabulku */
.card__links {
    display: flex;
    gap: 10px;
    margin-top: auto;
    /* drží u spodku karty */
}

.card-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #b91c1c;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.card-link:hover {
    background: #991b1b;
    color: white;
    transform: translateY(-2px);
}

.card-link i {
    font-size: 16px;
}



/*.card {*/
/*    border: 1px solid #eee; border-radius: 16px; overflow: hidden; background: #fff;*/
/*    box-shadow: 0 6px 24px rgba(0,0,0,.04);*/
/*    height: 100%; display:flex; flex-direction:column;*/
/*    margin: 10px;*/
/*}*/
/*.card__media { aspect-ratio: 4/3; background:#f3f3f3; }*/
/*.card__body { padding: 1rem; }*/
.badge {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .8rem;
    background: #f1f1f1;
}

/* helpers – Bootstrap col třídy se používají přímo z Bootstrapu */

.container {
    max-width: 1200px;
    width: 92%;
    margin-inline: auto;
}

.muted {
    color: #7a7a7a;
}

.hr {
    border: 0;
    border-top: 1px solid var(--primary-color);
    margin: 20px 0 26px;
    /*width: 60%;*/
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    /* Poměr stran 16:9 */
    background: #000;
    /* Černé pozadí pro případ, že se video nenačte */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1rem auto;
    max-width: 800px;
    /* Maximální šířka videa */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Aktuality --- */
.aktuality-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.aktualita {
    background: #f9f9f9;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.aktualita a {
    color: inherit;
    text-decoration: none;
    transition: 200ms ease all;
}

.aktualita a:hover {
    text-decoration: none;
    color: #911010;
}


.aktualita:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #ff2e2e;
}

.aktualita h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ff2e2e;
    transition: color 0.2s ease;
}

.aktualita-date {
    margin: 0.25rem 0 1rem;
    font-size: 0.9rem;
    color: #666;
}

.aktualita-excerpt {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* Limit to 3 lines */
    overflow: hidden;
}

.sec-pozadi-left {
    background: #B5B5B5;
    background: linear-gradient(to bottom, rgba(181, 181, 181, 1) 0, rgba(242, 242, 242, 1) 80px, rgba(242, 242, 242, 1) calc(100% - 80px), rgba(181, 181, 181, 1) 100%);
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0% 100%);
    /*padding: clamp(32px, 5vw, 64px) 0;*/
}

.znak_behind_sec {
    position: absolute;
    width: 95%;
    margin: auto;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: -1;
}

.znak_behind_sec img {
    width: 30%;
    height: auto;
    opacity: 0.3;
    object-fit: contain;
    margin-left: 5%;
    /*filter: blur(1px);*/
}

.sec-pozadi-right {
    background: #B5B5B5;
    background: linear-gradient(to bottom, rgba(181, 181, 181, 1) 0, rgba(242, 242, 242, 1) 80px, rgba(242, 242, 242, 1) calc(100% - 80px), rgba(181, 181, 181, 1) 100%);
    clip-path: polygon(0 3vh, 100% 0, 100% 100%, 0 98%);
}

/* Typografie v sekci */
#a-tym h2,
#b-tym h2,
#stara-garda h2 {
    /*font-size: clamp(28px, 5vw, 44px);*/
    margin: 0 0 .3em;
    font-weight: 800
}

#a-tym .lead,
#b-tym .lead,
#stara-garda .lead {
    color: #6b7280;
    font-size: clamp(16px, 2.2vw, 20px)
}

#a-tym h3,
#b-tym h3,
#stara-garda h3 {
    font-size: clamp(20px, 3vw, 28px);
    margin: 14px 0
}

#a-tym .muted,
#b-tym .muted,
#stara-garda .muted {
    color: #6b7280
}

#a-tym .hr,
#b-tym .hr,
#stara-garda .hr {
    border: 0;
    border-top: 1px solid var(--primary-color);
    margin: 20px 0 26px
}

/* Link “karty” (externí zápasy/tabulka) */
.adult-info-links {
    display: grid;
    gap: 12px
}

.adult-info-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(2, 6, 23, .06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.adult-info-link .icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    background: rgba(37, 99, 235, .12);
    color: var(--primary-color);
    font-size: 18px;
    line-height: 1;
}

.adult-info-link .text {
    display: flex;
    flex-direction: column;
    line-height: 1.25
}

.adult-info-link .text strong {
    font-size: 1.05rem
}

.adult-info-link .text small {
    color: #6b7280;
    margin-top: 2px
}

.adult-info-link .arrow {
    margin-left: auto;
    font-size: 20px;
    opacity: .55;
    transition: transform .15s ease, opacity .15s ease
}

.adult-info-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(2, 6, 23, .10);
    border-color: var(--primary-color);
    background: #ffffff;
    text-decoration: none;
    color: var(--primary-color);
}

.adult-info-link:hover .arrow {
    transform: translateX(2px);
    opacity: .9
}

.adult-info-link[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}


#a-tym h3,
#b-tym h3,
#stara-garda h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111;
}

.coach-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.coach-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.coach-list i {
    font-size: 18px;
    color: #b91c1c;
    /* klubová červená */
    flex: 0 0 24px;
}

.coach-list span {
    font-size: 15px;
    color: #333;
}

.coach-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 200ms ease all;
}

.coach-list a:hover {
    text-decoration: none;
    color: #911010;
}




.players-table {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    margin-top: 16px;
}

.players-toggle {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 16px;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 200ms ease all;
}

.players-toggle:hover {
    background: #991b1b;
    color: white;
}

.players-toggle .arrow {
    transition: transform .2s ease;
}

.players-toggle[aria-expanded="true"] .arrow,
.players-toggle[data-is-open="true"] .arrow {
    transform: rotate(180deg);
}

.players-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.players-content[style*="max-height: 0"] {
    overflow: hidden;
}

.players-content:not([style*="max-height: 0"]) {
    overflow-y: auto !important;
    overflow-x: auto;
}

/* max-height je řízena dynamicky z JS pro plynulou animaci */

.players-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.players-content th,
.players-content td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.players-content th {
    background: #f9fafb;
    font-weight: 600;
}

.players-table-grid .players-col-divider {
    width: 1px;
    padding: 0 !important;
    border-bottom: none;
    background: #e5e7eb;
}

/* Na úzkých displejích zůstává tabulka vodorovně scrollovatelná (viz .players-content overflow-x). */

.citat {
    background-color: var(--primary-color);
    font-style: italic;
    font-family: 'Oswald', sans-serif;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    font-size: 1.5rem;
    margin: 5rem 0;
}

.citat p {
    margin: 0;
}

.post_img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}



.contact-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    padding: 20px;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 200ms ease all;
}

.contact-card a:hover {
    text-decoration: none;
    color: #911010;
}


.contact-card h3 {
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-card .club-info {
    margin-bottom: 1rem;
    font-size: 15px;
}

.contact-card .club-info i,
.contact-card .club-info a {
    color: #b91c1c;
    margin-right: 6px;
    transition: 100ms ease all;
    text-decoration: none;
}

.contact-card .club-info a:hover,
.contact-person a:hover {
    color: #911010;
}

.contact-card .contacts {
    display: grid;
    gap: 14px;
}

.contact-person {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
}

.contact-person i {
    font-size: 18px;
    color: #b91c1c;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-person strong {
    font-weight: 600;
    color: #111;
}

.contact-person a {
    color: #b91c1c;
    text-decoration: none;
}

/* ---- Kontaktní osoby (inline footer) ---- */
.footer-kontakt-inline {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 32px;
    min-width: 240px;
}

.footer-kontakt-inline h4 {
    font-weight: 700;
    font-size: 1.15rem;
    color: #111;
    margin-bottom: 8px;
}

.footer-kontakt-inline p {
    font-size: 0.95rem;
}

.footer-kontakt-inline a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 200ms ease all;
}

.footer-kontakt-inline a:hover {
    color: #911010;
}

.footer-kontakt-inline i.fa-2x {
    display: block;
}

.contact-form h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: #333;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
    outline: none;
}

textarea.form-control {
    resize: vertical;
}

.btn-submit {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
    background: var(--primary-color);
    color: #fff;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
    opacity: 1;
    transform: translateY(-2px);
    cursor: pointer;
}

/* WPForms center button */
.contact-form .wpforms-submit-container {
    text-align: center !important;
}

.wpforms-turnstile {
    display: flex;
    justify-content: center;
}



/* FOTOGALERIE POP UP */
body.gallery-open {
    overflow: hidden;
}

.gallery-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    backdrop-filter: blur(6px);
}

.gallery-content {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.gallery-close {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    z-index: 20;
}

.gallery-close:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.gallery-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.gallery-main img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}

.gallery-main-caption {
    max-width: 90%;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.gallery-thumbs img {
    width: 100px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    opacity: .5;
    cursor: pointer;
    transition: all .2s ease;
}

.gallery-thumbs img:hover {
    transform: scale(1.08);
    opacity: .85;
}

.gallery-thumbs img.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(208, 0, 0, .4);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all .2s ease;
    z-index: 10;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Kompaktní modál pro jednu fotku (např. milníky v historii) */
.milnik-photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.milnik-photo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
}

.milnik-photo-modal__content {
    position: relative;
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.milnik-photo-modal__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    background: var(--primary-color);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .2s ease;
    z-index: 2;
}

.milnik-photo-modal__close:hover {
    transform: scale(1.1);
}

.milnik-photo-modal__img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.milnik-photo-modal__caption {
    color: #333;
    font-size: .95rem;
    line-height: 1.4;
    text-align: center;
}



.gallery_img {
    height: 250px;
    object-fit: cover;
}


.gallery-grid {
    /*display: grid;*/
    /*grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));*/
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-card__media {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card__media img {
    transform: scale(1.05);
}

.gallery-card__body {
    padding: 1rem;
}

.gallery-card__body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
}

.gallery-card__body p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.cardHeadlineBox {
    background-color: rgba(0, 0, 0, 0.68);
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 0;
    left: 0;
    /* Šedý rámeček v barvě bloku překryje tenký světlý lem, který kompozitor
       odkrývá na hraně boxu při animaci scale (clona je nad obrázkem, z-index 2). */
    border: 1px solid rgb(92, 92, 92);
}

/* Odsazení pro horní prvky pod průhledným menu */
@media (min-width: 992px) {
    .header-link-box:nth-child(-n+2) .cardHeadlineBox {
        padding-top: 10vh;
    }
}


.cardHeadlineBox--priprava {
    background-color: rgba(0, 0, 0, 0.8);
}

.card-priprava-label {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.card-priprava-label i {
    margin-right: 4px;
}


/* --- Stránka ve výstavbě --- */
.priprava-stranky {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.priprava-stranky__inner {
    text-align: center;
    max-width: 500px;
}

.priprava-stranky__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.priprava-stranky__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
}

.priprava-stranky__text {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 28px;
}

.priprava-stranky__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background .2s ease, transform .15s ease;
}

.priprava-stranky__btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Tlačítko zpět v detailu akce */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: none;
}

.btn-back:hover {
    background-color: var(--secondary-color);
    transform: translateX(-5px);
    /* Mírný posun doleva naznačující směr zpět */
    color: #ffffff !important;
    text-decoration: none;
}


#merch h2 {
    font-weight: 700;
    color: #111;
}

/* ---- grid ---- */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ---- karta ---- */
.merch-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merch-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
}

/* obrázek */
.merch-item__img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.merch-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* tělo */
.merch-item__body {
    padding: 18px 20px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.merch-item__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 6px;
    color: #111;
}

.merch-item__desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin: 0 0 auto;
    padding-bottom: 14px;
}

.merch-item__price {
    display: inline-block;
    margin: 0 auto;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 22px;
    border-radius: 20px;
}

/* fotka dole */
.merch-foto {
    margin: 3rem auto 0;
    max-width: 680px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.merch-foto img {
    width: 100%;
    display: block;
}

/* ---- responsive ---- */
@media (max-width: 991px) {
    .merch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .merch-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

#merch a {
    transition: 200ms ease all;
}

#merch a:hover {
    text-decoration: none;
    color: #991b1b !important;
}


/* --- Obsazenost tělocvičny --- */
.obsazenost-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.obsazenost-legenda__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
}

.obsazenost-legenda__color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Desktop grid */
.obsazenost-calendar--desktop {
    overflow-x: hidden;
}

.obsazenost-calendar--mobile {
    display: none;
}

.obsazenost-grid {
    display: grid;
    position: relative;
    min-width: 700px;
}

.obsazenost-corner {
    grid-row: 1;
    grid-column: 1;
    background: inherit;
    /*border-bottom: 2px solid #e5e7eb;*/
}

.obsazenost-day-header {
    grid-row: 1;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    padding: 10px 4px;
    border-left: 1px solid rgba(255, 255, 255, .2);
    font-family: 'Oswald', sans-serif;
}

.obsazenost-time {
    grid-column: 1;
    font-size: 0.8rem;
    color: #555;
    text-align: right;
    padding-right: 8px;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    border-right: 1px solid #e5e7eb;
    margin-top: -0.45em;
}

.obsazenost-time--half {
    color: transparent;
}

.obsazenost-cell {
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
}

.obsazenost-cell--hour {
    border-bottom: 1px solid #d4d4d4;
}

.obsazenost-event {
    border-radius: 6px;
    margin: 2px 3px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    color: #fff;
    z-index: 1;
    cursor: default;
    transition: filter .2s ease;
}

.obsazenost-event:hover {
    filter: brightness(0.85);
    z-index: 2;
}

.obsazenost-event__name {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obsazenost-event__time {
    font-size: 0.75rem;
    opacity: .9;
    line-height: 1.2;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
    .obsazenost-calendar--desktop {
        display: none;
    }

    .obsazenost-calendar--mobile {
        display: block;
    }

    .obsazenost-mobile-day {
        margin-bottom: 16px;
    }

    .obsazenost-mobile-day__title {
        font-size: 1rem;
        font-weight: 700;
        color: #111;
        margin: 0 0 6px;
        font-family: 'Oswald', sans-serif;
    }

    .obsazenost-mobile-event {
        padding: 8px 12px;
        border-radius: 6px;
        margin-bottom: 6px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .obsazenost-mobile-event strong {
        font-size: 0.95rem;
        color: #111;
    }

    .obsazenost-mobile-event span {
        font-size: 0.85rem;
        color: #555;
    }

    .obsazenost-mobile-empty {
        font-size: 0.85rem;
        color: #999;
        margin: 0 0 8px;
    }
}


/* --- Historie fotbalu – Časová osa --- */
.historie-timeline {
    position: relative;
    padding: 20px 0;
}

.historie-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.historie-timeline__item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px;
}

.historie-timeline__item--left {
    left: 0;
    text-align: right;
    padding-right: 50px;
}

.historie-timeline__item--right {
    left: 50%;
    text-align: left;
    padding-left: 50px;
}

.historie-timeline__dot {
    position: absolute;
    top: 70px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--primary-color);
    z-index: 1;
}

.historie-timeline__item--left .historie-timeline__dot {
    right: -8px;
}

.historie-timeline__item--right .historie-timeline__dot {
    left: -8px;
}

.historie-timeline__card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    border: 1px solid #e5e7eb;
}

.historie-timeline__rok {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
    font-family: 'Oswald', sans-serif;
}

.historie-timeline__card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
}

.historie-timeline__card p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.historie-milnik-foto {
    position: relative;
    display: inline-block;
    width: 72px;
    height: 72px;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.historie-milnik-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.historie-milnik-foto:hover img {
    transform: scale(1.08);
}

.historie-milnik-foto__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.historie-milnik-foto__overlay i {
    color: #fff;
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.historie-milnik-foto:hover .historie-milnik-foto__overlay {
    background: rgba(0, 0, 0, 0.35);
}

.historie-milnik-foto:hover .historie-milnik-foto__overlay i {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .historie-timeline::before {
        left: 20px;
    }

    .historie-timeline__item,
    .historie-timeline__item--left,
    .historie-timeline__item--right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
    }

    .historie-timeline__item--left .historie-timeline__dot,
    .historie-timeline__item--right .historie-timeline__dot {
        left: 12px;
        right: auto;
    }
}

/* --- Historie – Karty úspěchů --- */
.historie-uspech-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.historie-uspech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.historie-uspech-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
}

.historie-uspech-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
}

.historie-uspech-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* --- Historie – Karty osobností --- */
.historie-osobnost-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.historie-osobnost-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.historie-osobnost-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 14px;
    border: 3px solid #e5e7eb;
}

.historie-osobnost-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111;
}

.historie-osobnost-card__role {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.historie-osobnost-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.osobnosti-klubu {
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
}


/* --- Gymnastika – Trenérky (kontaktní řádek na kartě) --- */
.historie-osobnost-card__avatar--gymnastika {
    background: color-mix(in srgb, var(--primary-color) 12%, #fff);
    color: var(--primary-color);
    border-color: color-mix(in srgb, var(--primary-color) 30%, #fff);
}

.gymnastika-trenerka__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #333;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    word-break: break-word;
}

.gymnastika-trenerka__contact + .gymnastika-trenerka__contact {
    margin-left: 6px;
}

.gymnastika-trenerka__contact i {
    color: var(--primary-color);
}

.gymnastika-trenerka__contact:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.gymnastika-trenerka__contact:hover i {
    color: #fff;
}


/* --- Gymnastika – Tým gymnastek (skupiny po kategoriích) --- */
.gymnastky-kategorie {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    margin-bottom: 18px;
}

.gymnastky-kategorie__title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.gymnastky-kategorie__title small {
    margin-left: auto;
    opacity: .85;
    font-weight: 400;
}

.gymnastky-kategorie__body {
    overflow-x: auto;
}

.gymnastky-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.gymnastky-table th,
.gymnastky-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.gymnastky-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #555;
}

.gymnastky-table tbody tr:last-child td {
    border-bottom: none;
}

.gymnastky-table tbody tr:hover td {
    background: #fafafa;
}

.gymnastky-table th:first-child,
.gymnastky-table td:first-child {
    width: 60px;
    color: #888;
    font-weight: 600;
}

.gymnastky-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Barevné varianty štítků kategorií */
.gymnastky-tag--1 { background: #2563eb; }
.gymnastky-tag--2 { background: #16a34a; }
.gymnastky-tag--3 { background: #db2777; }
.gymnastky-tag--4 { background: #ea580c; }
.gymnastky-tag--5 { background: #7c3aed; }
.gymnastky-tag--6 { background: #0891b2; }


/* --- Historie – Tabulka hráčů --- */
.historie-hraci-rozsah {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1rem;
}

.historie-hraci-popis {
    color: #555;
    margin-bottom: 18px;
    line-height: 1.5;
}

.historie-hraci-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.historie-hraci-table-wrap {
    overflow-x: auto;
}

.historie-hraci-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    min-width: 520px;
}

.historie-hraci-table thead th {
    background: #f8f9fa;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    padding: 12px 14px;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
}

.historie-hraci-table th.col-poradi,
.historie-hraci-table td.col-poradi {
    width: 48px;
    text-align: center;
    color: #999;
    font-weight: 600;
}

.historie-hraci-table th.col-zapasy,
.historie-hraci-table td.col-zapasy,
.historie-hraci-table th.col-goly,
.historie-hraci-table td.col-goly {
    text-align: center;
    width: 90px;
    font-variant-numeric: tabular-nums;
}

.historie-hraci-table th.col-status,
.historie-hraci-table td.col-status {
    width: 120px;
    text-align: center;
}

.historie-hraci-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background .15s ease;
}

.historie-hraci-table th.sortable:hover {
    background: #eef0f3;
}

.historie-hraci-table th.sortable .sort-arrow::after {
    content: '↕';
    margin-left: 6px;
    opacity: 0.4;
    font-size: 0.85em;
}

.historie-hraci-table th.sort-active .sort-arrow::after {
    opacity: 1;
    color: var(--primary-color);
}

.historie-hraci-table th.sort-asc .sort-arrow::after {
    content: '↑';
}

.historie-hraci-table th.sort-desc .sort-arrow::after {
    content: '↓';
}

.historie-hraci-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f1f3;
    vertical-align: middle;
}

.historie-hraci-table tbody tr:last-child td {
    border-bottom: 0;
}

.historie-hraci-table tbody tr:hover {
    background: #fafbfc;
}

.historie-hraci-table tbody tr.is-active {
    background: rgba(145, 16, 16, 0.06);
}

.historie-hraci-table tbody tr.is-active:hover {
    background: rgba(145, 16, 16, 0.1);
}

.historie-hraci-table tbody tr.is-active td.col-jmeno {
    font-weight: 700;
    color: var(--primary-color);
}

.historie-hraci-table .badge-aktivni,
.historie-hraci-table .badge-byvaly {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.historie-hraci-table .badge-aktivni {
    background: var(--primary-color);
    color: #fff;
}

.historie-hraci-table .badge-byvaly {
    background: #e5e7eb;
    color: #6b7280;
}

.historie-hraci-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 8px 8px;
    flex-wrap: wrap;
}

.historie-hraci-pagination button {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #333;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.historie-hraci-pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.historie-hraci-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.historie-hraci-pagination .page-info {
    color: #666;
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
}


/* =============================================
   AKCE (Události) – Kalendář, karty, archiv
   ============================================= */

/* --- Měsíční kalendář --- */
.kal {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.kal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary-color);
    color: #fff;
}

.kal__month-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.kal__nav {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.kal__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.kal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.kal__weekdays span {
    text-align: center;
    padding: 10px 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.kal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.kal__grid--loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity .15s ease;
}

.kal__cell {
    position: relative;
    min-height: 70px;
    padding: 8px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s ease;
}

.kal__cell:nth-child(7n) {
    border-right: none;
}

.kal__cell--empty {
    background: #fafafa;
}

.kal__cell--today {
    background: rgba(var(--primary-color-rgb, 208, 0, 0), 0.06);
}

.kal__cell--today .kal__cell-num {
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kal__cell--clickable {
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.kal__cell--clickable:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.kal__cell--selected {
    background: #e8eeff;
    box-shadow: inset 0 0 0 2px var(--primary-color);
    animation: kalCellPop .35s ease;
}

@keyframes kalCellPop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.kal__cell--deselecting {
    animation: kalCellPopOut .3s ease;
}

@keyframes kalCellPopOut {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.93); }
    100% { transform: scale(1); }
}

.kal__cell-num {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.kal__cell-dots {
    display: flex;
    gap: 3px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.kal__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

.kal__dot--fotbal {
    background: #d00000;
}

.kal__dot--aspv {
    background: #008f39;
}

.kal__dot--sokol {
    background: #911010;
}

.kal__dot--gymnastika {
    background: #6a1b9a;
}

.kal__dot--volejbal {
    background: #ff9800;
}

.kal__dot--sachy {
    background: #2a2a72;
}

/* Detail dne pod kalendářem */
.kal__day-detail {
    border-top: 3px solid var(--primary-color);
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8faf9 0%, #f0f4f8 100%);
}

.kal__day-detail.kal__day-detail--in {
    animation: kalDetailIn .3s ease both;
}

.kal__day-detail.kal__day-detail--out {
    animation: kalDetailOut .25s ease both;
}

@keyframes kalDetailIn {
    0%   { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes kalDetailOut {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-8px); }
}

.kal__day-detail h4 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    font-family: 'Oswald', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kal__day-detail h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.kal__detail-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    animation: kalEventIn .35s ease both;
}

.kal__detail-event:nth-child(1) { animation-delay: 0s; }
.kal__detail-event:nth-child(2) { animation-delay: .05s; }
.kal__detail-event:nth-child(3) { animation-delay: .10s; }
.kal__detail-event:nth-child(4) { animation-delay: .15s; }
.kal__detail-event:nth-child(5) { animation-delay: .20s; }

@keyframes kalEventIn {
    0%   { opacity: 0; transform: translateX(-8px); }
    100% { opacity: 1; transform: translateX(0); }
}

.kal__detail-event:last-child {
    margin-bottom: 0;
}

.kal__detail-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    border-left-color: var(--secondary-color);
}

/* Barevný levý border podle kategorie */
.kal__detail-event[data-cat="fotbal"] {
    border-left-color: #d00000;
}

.kal__detail-event[data-cat="aspv"] {
    border-left-color: #008f39;
}

.kal__detail-event[data-cat="sokol"] {
    border-left-color: #911010;
}

.kal__detail-event[data-cat="gymnastika"] {
    border-left-color: #6a1b9a;
}

.kal__detail-event[data-cat="volejbal"] {
    border-left-color: #ff9800;
}

.kal__detail-event[data-cat="sachy"] {
    border-left-color: #2a2a72;
}

.kal__detail-event-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.kal__detail-event-info strong {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.kal__detail-event-time {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kal__detail-event-time i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.kal__detail-event-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .kal__cell {
        min-height: 50px;
        padding: 4px;
    }

    .kal__cell-num {
        font-size: 0.8rem;
    }

    .kal__dot {
        width: 6px;
        height: 6px;
    }

    .kal__detail-event {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
    }

    .kal__detail-event-badges {
        margin-top: 4px;
    }
}

.kal__detail-empty {
    margin: 0;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #999;
    font-style: italic;
    text-align: center;
}


/* --- Nejbližší akce (pod kalendářem) --- */
.akce-kalendar-upcoming {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.akce-kalendar-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}

.akce-kalendar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
}

.akce-kalendar-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 16px 12px;
    background: var(--primary-color);
    color: #fff;
    font-family: 'Oswald', sans-serif;
}

.akce-kalendar-card__day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.akce-kalendar-card__month {
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
}

.akce-kalendar-card__year {
    font-size: 0.8rem;
    opacity: 0.8;
}

.akce-kalendar-card__thumb {
    position: relative;
    width: 160px;
    min-height: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.akce-kalendar-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.akce-kalendar-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
}

.akce-kalendar-card__info {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.akce-kalendar-card__info h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
}

.akce-kalendar-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: #666;
}

.akce-kalendar-card__meta i {
    color: var(--primary-color);
    margin-right: 4px;
}

.akce-kalendar-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

@media (max-width: 576px) {
    .akce-kalendar-card {
        flex-direction: column;
    }

    .akce-kalendar-card__date {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        padding: 10px 16px;
    }

    .akce-kalendar-card__day {
        font-size: 1.5rem;
    }

    .akce-kalendar-card__thumb {
        width: 100%;
        height: 180px;
    }
}


/* --- Karty akcí (proběhlé + archiv) --- */
.akce-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.akce-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: inherit;
    text-decoration: none;
}

.akce-card__thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.akce-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s ease;
}

.akce-card:hover .akce-card__img {
    transform: scale(1.05);
}

.akce-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ccc;
}

.akce-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.akce-card__body h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.akce-card__date {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.akce-card__date i {
    color: var(--primary-color);
}

.akce-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}


/* --- Akce badge (kategorie) --- */
.akce-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #333;
}

/* Barvy badges se berou z CSS proměnných --cat-{slug} generovaných v <head>
   (jediný zdroj pravdy: sokol_get_all_kategorie_colors() v inc/akce-cpt.php). */
.akce-badge--fotbal {
    background: var(--cat-fotbal);
    color: #fff;
}

.akce-badge--aspv {
    background: var(--cat-aspv);
    color: #fff;
}

.akce-badge--sokol {
    background: var(--cat-sokol);
    color: #fff;
}

.akce-badge--gymnastika {
    background: var(--cat-gymnastika);
    color: #fff;
}

.akce-badge--volejbal {
    background: var(--cat-volejbal);
    color: #fff;
}

.akce-badge--sachy {
    background: var(--cat-sachy);
    color: #fff;
}


/* --- Tlačítko archiv --- */
.btn-open-page {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.btn-open-page:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}


/* --- Archiv akcí – filtry --- */
.archiv-akci__filtry {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 2rem;
    padding: 20px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.archiv-akci__filtr-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.archiv-akci__filtr-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.archiv-akci__filtr-group select {
    min-width: 180px;
}

.archiv-akci__filtr-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.archiv-akci__filtr-btn:hover {
    background: var(--secondary-color);
}

.archiv-akci__filtr-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.archiv-akci__filtr-reset:hover {
    background: var(--primary-color);
    color: #fff;
}

.archiv-akci__active-filters {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Archiv stránkování */
.archiv-akci__pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.archiv-akci__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.archiv-akci__pagination .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
}

.archiv-akci__pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}

.archiv-akci__pagination .page-numbers.prev,
.archiv-akci__pagination .page-numbers.next {
    width: auto;
    padding: 0 14px;
}

@media (max-width: 576px) {
    .archiv-akci__filtry {
        flex-direction: column;
        align-items: stretch;
    }

    .archiv-akci__filtr-group select {
        min-width: auto;
        width: 100%;
    }
}


/* =============================================
   POPUP OZNÁMENÍ
   ============================================= */

.popup-oznameni {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
}

.popup-oznameni--visible {
    opacity: 1;
}

.popup-oznameni--closing {
    opacity: 0;
}

.popup-oznameni__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.popup-oznameni__modal {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.96);
    transition: transform .3s ease;
}

.popup-oznameni--visible .popup-oznameni__modal {
    transform: translateY(0) scale(1);
}

.popup-oznameni--closing .popup-oznameni__modal {
    transform: translateY(20px) scale(0.96);
}

.popup-oznameni__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.37);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: black;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}

.popup-oznameni__close:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.popup-oznameni__img {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

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

.popup-oznameni__body {
    padding: 32px 36px 30px;
}

.popup-oznameni__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.popup-oznameni__date i {
    font-size: 0.9rem;
}

.popup-oznameni__title {
    margin: 0 0 14px;
    font-size: 1.7rem;
    font-weight: 800;
    color: #111;
    font-family: 'Oswald', sans-serif;
    line-height: 1.3;
}

.popup-oznameni__text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 0;
}

.popup-oznameni__text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .popup-oznameni__modal {
        max-width: 100%;
        border-radius: 14px;
    }

    .popup-oznameni__body {
        padding: 20px 20px 18px;
    }

    .popup-oznameni__title {
        font-size: 1.2rem;
    }

    .popup-oznameni__img {
        max-height: 200px;
    }
}


/* ═══════════════════════════════════════
   Tabulka oddílů
   ═══════════════════════════════════════ */
.oddily-table-wrapper {
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.oddily-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.oddily-table thead tr {
    background: var(--primary-color);
    color: #fff;
}

.oddily-table th,
.oddily-table td {
    padding: 14px 10px;
    text-align: center;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
}

.oddily-table th {
    font-family: var(--font-family);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.82rem;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.oddily-table__sport-col {
    text-align: left !important;
    font-weight: 700;
    font-family: var(--font-family);
    font-size: 0.95rem !important;
    background: #fafafa;
    width: 130px;
}

.oddily-table thead .oddily-table__sport-col {
    background: var(--secondary-color);
}

.oddily-table tbody tr {
    transition: background 0.15s;
}

.oddily-table tbody tr:hover {
    background: #fff5f5;
}

.oddily-table tbody tr:last-child td {
    border-bottom: none;
}

.oddily-table__cell--yes {
    color: #16a34a;
}

.oddily-table__cell--yes i {
    font-size: 1.3rem;
}

.oddily-table__cell--no {
    color: #d1d5db;
}

.oddily-table__cell--no i {
    font-size: 1.3rem;
}

.oddily-check-wrap {
    position: relative;
    display: inline-block;
    cursor: default;
}

.oddily-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #5a2c2c;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 20;
    pointer-events: auto;
}

.oddily-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
}

.oddily-tooltip a {
    color: #93c5fd;
    text-decoration: none;
}

.oddily-tooltip a:hover {
    text-decoration: underline;
}

.oddily-check-wrap:hover .oddily-tooltip {
    display: block;
}

@media (max-width: 992px) {

    .oddily-table th,
    .oddily-table td {
        padding: 10px 6px;
        font-size: 0.78rem;
    }

    .oddily-table th {
        font-size: 0.7rem;
        letter-spacing: 0;
    }

    .oddily-table__cell--yes i,
    .oddily-table__cell--no i {
        font-size: 1.1rem;
    }

    .oddily-table__sport-col {
        width: 80px;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {

    .oddily-table th,
    .oddily-table td {
        padding: 8px 4px;
        font-size: 0.68rem;
    }

    .oddily-table th {
        font-size: 0.6rem;
    }

    .oddily-table__cell--yes i,
    .oddily-table__cell--no i {
        font-size: 0.95rem;
    }

    .oddily-table__sport-col {
        width: 65px;
        font-size: 0.7rem !important;
    }
}


/* ═══════════════════════════════════════
   Zápasy – badge kategorie
   ═══════════════════════════════════════ */
.zapasy-kategorie-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 4px;
    color: #fff;
}

.zapasy-kategorie-badge[data-kat="a"] {
    background-color: #d00000 !important;
}

.zapasy-kategorie-badge[data-kat="b"] {
    background-color: #1a1a1a !important;
}

.zapasy-kategorie-badge[data-kat="stara-garda"] {
    background-color: #4b5563 !important;
}

.zapasy-kategorie-badge[data-kat="mladez"] {
    background-color: #7f1d1d !important;
}

.zapasy-kategorie-badge[data-kat="default"] {
    background-color: #6b7280 !important;
}


/* ═══════════════════════════════════════
   Akce – moderní galerie + video
   ═══════════════════════════════════════ */
.akce-galerie {
    padding: 2rem 5%;
}

.akce-galerie__title {
    font-family: var(--font-family);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #222;
}

.akce-galerie__title i {
    color: var(--primary-color);
    margin-right: 6px;
}

.akce-galerie__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.akce-galerie__item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    display: block;
}

.akce-galerie__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.akce-galerie__item:hover img {
    transform: scale(1.06);
}

.akce-galerie__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.akce-galerie__overlay i {
    color: #fff;
    font-size: 1.6rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.akce-galerie__item:hover .akce-galerie__overlay {
    background: rgba(0, 0, 0, 0.35);
}

.akce-galerie__item:hover .akce-galerie__overlay i {
    opacity: 1;
    transform: scale(1);
}

.akce-galerie__overlay--video i {
    font-size: 3rem;
    color: #ff0000;
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.akce-galerie__item--video:hover .akce-galerie__overlay--video {
    background: rgba(0, 0, 0, 0.25);
}

.akce-galerie__item--video:hover .akce-galerie__overlay--video i {
    transform: scale(1.15);
}

/* YouTube modal */
.yt-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.yt-modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
}

.yt-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.yt-modal__close:hover {
    transform: scale(1.2);
}

.yt-modal__player {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.yt-modal__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 576px) {
    .akce-galerie__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .akce-galerie {
        padding: 1.5rem 3%;
    }

    .akce-galerie__overlay--video i {
        font-size: 2rem;
    }
}

/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */

.helgroup-footer {
    color: #9f0303;
    transition: 0.4s ease;
}

@media (max-width: 992px) {}

@media (min-width: 992px) {

    .helgroup-footer:hover {
        color: #f8cc0f
    }

}


/* Partneri footer */
.partneri-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2rem;
    overflow-x: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.partneri-grid::-webkit-scrollbar {
    height: 5px;
}

.partneri-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.partneri-grid::-webkit-scrollbar-track {
    background: transparent;
}

.partneri-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 70px;
}

.partneri-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.partneri-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partneri-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partneri-name {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
}



/* -----------------------------------------------------
   404
----------------------------------------------------- */

.btn-404 {
    max-width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    margin-top: 6rem;
}

.btn-404:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    text-decoration: none;
}

/* -----------------------------------------------------
  SINGLE-PAGE
----------------------------------------------------- */

.akce-detail {
    border-radius: 12px;
    overflow: hidden;
}

.akce-detail .content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.akce-detail .content h1,
.akce-detail .content h2,
.akce-detail .content h3 {
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

.akce-detail .content p {
    margin-bottom: 1.2rem;
}

.akce-detail .content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.akce-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #555;
}

.akce-meta__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.akce-meta__item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.akce-kategorie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.akce-kategorie-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary-color);
    color: #fff;
}

.akce-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: 200ms ease all;
}

.akce-back-link:hover {
    color: var(--secondary-color);
}

.akce-social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    padding: 1.2rem;
    max-height: 10vh;
}

.akce-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.akce-social-link i {
    font-size: 1.2rem;
}

.akce-social-link--instagram {
    color: #E4405F;
}

.akce-social-link--instagram:hover {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
    color: #fff;
    border-color: #E4405F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

.akce-social-link--facebook {
    color: #1877F2;
}

.akce-social-link--facebook:hover {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* -----------------------------------------------------
  SINGLE
----------------------------------------------------- */

/* Obsah článku */
.article {
    border-radius: 12px;
    overflow: hidden;
}

/* Texty */
.article .content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

/* Nadpisy */
.article .content h1,
.article .content h2,
.article .content h3 {
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

.article .content h1 {
    font-size: 2rem;
}

.article .content h2 {
    font-size: 1.6rem;
}

.article .content h3 {
    font-size: 1.3rem;
}

/* Odstavce */
.article .content p {
    margin-bottom: 1.2rem;
}

/* Odkazy */
.article .content a {
    text-decoration: none;
    border-bottom: 1px solid rgba(220, 53, 69, 0.3);
    transition: all .2s ease;
}

.article .content a:hover {
    color: #a71d2a;
    border-color: #a71d2a;
}

/* Obrázky */
.article .content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Seznamy */
.article .content ul,
.article .content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article .content li {
    margin-bottom: 0.4rem;
}

/* Stránkování obsahu */
.page-links {
    margin-top: 2rem;
    text-align: center;
}

.page-links a,
.page-links span {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 0.95rem;
    text-decoration: none;
    color: #444;
    transition: all .2s ease;
}

.page-links a:hover {
    background: #dc3545;
    color: #fff;
}

.page-links .current {
    background: #dc3545;
    color: #fff;
    font-weight: bold;
}

/* -----------------------------------------------------
   ZAPASY
----------------------------------------------------- */


/* .zapasy-wrapper {
    margin-top: 1rem;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
} */

.zapasy-wrapper h5 {
    color: #d00000;
    margin-bottom: 1rem;
    border-left: 5px solid #d00000;
    padding-left: 0.6rem;
}

.zapasy-wrapper .table {
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.zapasy-wrapper .table thead {
    background: #f8f9fa;
}

.zapasy-wrapper .table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 2px solid #dee2e6;
}

.zapasy-wrapper .table tbody tr {
    transition: background 0.2s ease;
}

.zapasy-wrapper .table tbody tr:hover {
    background: #f1f1f1;
}

.zapasy-wrapper .table td {
    padding: 0.75rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.zapasy-filter {
    margin-bottom: 1.5rem;
}

.zapasy-kategorie-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 4px;
    color: #fff;
}

.zapasy-kategorie-badge[data-kat="a"] {
    background-color: #d00000 !important;
}

.zapasy-kategorie-badge[data-kat="b"] {
    background-color: #1a1a1a !important;
}

.zapasy-kategorie-badge[data-kat="stara-garda"] {
    background-color: #4b5563 !important;
}

.zapasy-kategorie-badge[data-kat="mladez"] {
    background-color: #7f1d1d !important;
}

.zapasy-kategorie-badge[data-kat="default"] {
    background-color: #6b7280 !important;
}


/* -----------------------------------------------------
   AKCE-CPT
----------------------------------------------------- */


#sokol-akce-galerie-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#sokol-akce-galerie-list li {
    list-style: none;
    position: relative;
}

#sokol-akce-galerie-list img {
    border: 1px solid #ccc;
    border-radius: 6px;
}

#sokol-akce-galerie-list .remove {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* -----------------------------------------------------
   AKCE-CPT
----------------------------------------------------- */

#sokol-historie-galerie-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#sokol-historie-galerie-list li {
    list-style: none;
    position: relative;
}

#sokol-historie-galerie-list img {
    border: 1px solid #ccc;
    border-radius: 6px;
}

#sokol-historie-galerie-list .remove {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}


/* -----------------------------------------------------
   OBSAZENOST-HRISTE-ADMIN
----------------------------------------------------- */

.obs-row .obs-den {
    font-weight: bold;
    background: #f0f0f1;
    vertical-align: middle;
}

.obs-add-row td {
    border-top: none !important;
    padding-top: 0 !important;
}

#obs-modal-box input[type="time"],
#obs-modal-box input[type="text"],
#obs-modal-box input[type="date"],
#obs-modal-box select,
#obs-modal-box textarea {
    padding: 6px 8px;
    font-size: 14px;
}


/* -----------------------------------------------------
   SECTION-ASPV-AKCE
----------------------------------------------------- */

.aspv-akce-section {
    padding: 3rem 0;
}

.aspv-akce-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Jednotlivá akce */
.aspv-akce-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-left: 4px solid var(--primary-color, #002d8f);
    border-bottom: 1px solid #e8ecf1;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.aspv-akce-item:first-child {
    border-radius: 8px 8px 0 0;
}

.aspv-akce-item:last-child,
.aspv-akce-list .aspv-akce-item:nth-child(5):not(:last-child) {
    border-bottom: none;
    border-radius: 0;
}

.aspv-akce-list.aspv-expanded .aspv-akce-item:nth-child(5) {
    border-radius: 0;
    border-bottom: 1px solid #e8ecf1;
}

.aspv-akce-item:hover {
    box-shadow: 0 2px 12px rgba(0, 45, 143, 0.1);
    transform: translateX(2px);
}

/* Datum badge */
.aspv-akce-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 1rem 0.5rem;
    background: var(--primary-color, #002d8f);
    color: #fff;
    text-align: center;
}

.aspv-akce-item:first-child .aspv-akce-date {
    border-radius: 4px 0 0 0;
}

.aspv-akce-item:last-child .aspv-akce-date,
.aspv-akce-list:not(.aspv-expanded) .aspv-akce-item:nth-child(5) .aspv-akce-date {
    border-radius: 0;
}

.aspv-akce-list.aspv-expanded .aspv-akce-item:nth-child(5) .aspv-akce-date {
    border-radius: 0;
}

.aspv-akce-day {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.aspv-akce-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

/* Obsah */
.aspv-akce-body {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aspv-akce-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #1a1a2e;
}

.aspv-akce-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #5a6577;
}

.aspv-akce-meta i {
    color: var(--primary-color, #002d8f);
    margin-right: 4px;
}

.aspv-akce-note {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #7a8599;
    font-style: italic;
}

/* Skryté řádky - animace */
.aspv-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-bottom: none;
    padding: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.35s ease, transform 0.35s ease;
}

.aspv-extra.aspv-visible {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    border-bottom: 1px solid #e8ecf1;
}

.aspv-extra.aspv-visible:last-of-type {
    border-bottom: none;
}

/* Toggle tlačítko */
.aspv-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 0;
    padding: 14px 24px;
    background: var(--primary-color, #002d8f);
    color: #fff;
    border: none;
    border-radius: 0 0 8px 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.aspv-toggle-btn:hover {
    background: var(--secondary-color, #001b5f);
    box-shadow: 0 4px 12px rgba(0, 45, 143, 0.25);
}

.aspv-toggle-icon {
    transition: transform 0.3s ease;
}

.aspv-toggle-btn[aria-expanded="true"] .aspv-toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .aspv-akce-date {
        min-width: 56px;
        padding: 0.75rem 0.4rem;
    }

    .aspv-akce-day {
        font-size: 1.3rem;
    }

    .aspv-akce-body {
        padding: 0.75rem 0.85rem;
    }

    .aspv-akce-name {
        font-size: 0.92rem;
    }

    .aspv-akce-meta {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .aspv-extra.aspv-visible {
        max-height: 150px;
    }
}


/* -----------------------------------------------------
   SECTION-DRUHY-CVICENI
----------------------------------------------------- */

.druhy-cviceni-section {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.druhy-cviceni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.cviceni-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 45, 143, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cviceni-card:hover {
    box-shadow: 0 4px 16px rgba(0, 45, 143, 0.15);
    transform: translateY(-2px);
}

.cviceni-nazev {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color, #002d8f);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color, #002d8f);
}

.cviceni-casy,
.cviceni-cvicitele {
    margin-bottom: 1.25rem;
}

.cviceni-casy:last-child,
.cviceni-cvicitele:last-child {
    margin-bottom: 0;
}

.cviceni-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cviceni-section-title i {
    color: var(--primary-color, #002d8f);
    font-size: 0.9rem;
}

.cviceni-casy-list,
.cviceni-cvicitele-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cviceni-casy-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.95rem;
    color: #5a6577;
}

.cviceni-casy-list li:last-child {
    border-bottom: none;
}

.cviceni-casy-list .den {
    font-weight: 500;
    color: #1a1a2e;
    flex: 1;
}

.cviceni-casy-list .cas {
    background: var(--primary-color, #002d8f);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cviceni-cvicitele-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.95rem;
    color: #5a6577;
}

.cviceni-cvicitele-list li:last-child {
    border-bottom: none;
}

.cviceni-cvicitele-list li::before {
    content: "▸ ";
    color: var(--primary-color, #002d8f);
    font-weight: 700;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .druhy-cviceni-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cviceni-nazev {
        font-size: 1.1rem;
    }

    .cviceni-casy-list {
        font-size: 0.9rem;
    }

    .cviceni-casy-list .cas {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
}


/* -----------------------------------------------------
   PRAVNI INFORMACE
----------------------------------------------------- */

.pravni_info-wrapper {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
    line-height: 1.7;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    transition: transform 0.3s ease;
}

.pravni_info-wrapper:hover {
    transform: translateY(-5px);
}

.pravni_info-wrapper h2 {
    margin-bottom: 25px;
    color: white;
    font-family: var(--font-family);
    font-weight: 700;
}

.pravni_info-wrapper p,
.pravni_info-wrapper strong {
    color: white;
}

.contact-cone-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.contact-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    width: 100%;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 180px;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.contact-item:hover .icon-circle {
    transform: scale(1.1);
}

.contact-text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

@media (max-width: 768px) {
    .contact-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-item {
        width: 100%;
    }
}

.pravni-rozcestnik {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.btn-pravni-gateway {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    background-color: var(--primary-color);
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-family);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 240px;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(145, 16, 16, 0.15);
}

.btn-pravni-gateway:hover {
    background-color: white;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(145, 16, 16, 0.25);
}

.pravni_info_title {
    color: white;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 3.2rem;
}

.pravni_info_odstavec {
    margin-bottom: 3rem;
}

.pravni_info_odstavec:not(:last-child) {
    position: relative;
    padding-bottom: 2rem;
}

.pravni_info_odstavec:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1%;
    right: 1%;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255), transparent);
}

.pravni_info_odstavec h3 {
    margin-bottom: 1.2rem;
    color: white;
    font-family: var(--font-family);
    font-weight: 700;
}

.pravni_info_odstavec ul {
    font-size: 0.8rem;
    list-style: none;
    margin-left: 1rem;
}

.pravni_info_odstavec ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.pravni_info_odstavec ul li::before {
    content: "\f1e3";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 0.6rem;
    color: white;
}

.pravni_info_odstavec p {
    font-size: 0.8rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .pravni-rozcestnik .gap-3 {
        flex-direction: column;
        width: 100%;
    }

    .btn-pravni-gateway {
        width: 100%;
        min-width: auto;
    }

    .rozcestnik-prostredni {
        width: 100% !important;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .pravni_info_odstavec {
        margin-bottom: 2rem;
    }

    .pravni_info_title {
        font-size: 2.5rem;
    }

    .pravni_info_odstavec h3 {
        margin-bottom: 1.8rem;
    }

    .pravni_info_odstavec p {
        font-size: 1.2rem;
    }

    .pravni_info_odstavec ul {
        margin-left: 0rem !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE – globální mobilní/tabletové úpravy (Bootstrap)
   ═══════════════════════════════════════════════════════════ */

/* --- Tablet (max 991px) --- */
@media (max-width: 991.98px) {

    /* Citát na fotbal stránce */
    .citat {
        flex-direction: column;
        text-align: center;
        margin: 1rem;
        padding: 1.5rem;
        font-size: 1.2rem;
    }

    .citat p {
        margin-bottom: 1.5rem !important;
    }

    .citat iframe {
        width: 100% !important;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Týmové foto */
    .section .col-8.m-auto {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Video wrapper */
    .video-wrapper {
        max-width: 100%;
    }

    /* Kontaktní formulář */
    .contact-form {
        padding: 1rem;
    }

    /* Partneři */
    .partneri-item {
        width: 100px;
        height: 55px;
    }

    /* Scroll hint šipka */
    .gateway-scroll-hint {
        bottom: 40px;
    }

    /* Znak za sekcí */
    .znak_behind_sec img {
        width: 50%;
    }
}

/* --- Mobil (max 767px) --- */
@media (max-width: 767.98px) {

    /* Hero */
    .main-hero__inner {
        margin-top: 18vh;
        padding: 1rem;
    }

    .main-hero__title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    /* Citát */
    .citat {
        font-size: 1rem;
        margin: 0.5rem;
        padding: 1rem;
    }

    .citat iframe {
        /* min-height: 200px; */
    }

    /* Sekce obecné */
    .section {
        padding: clamp(2rem, 6vw, 4rem) 0;
    }

    .section h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    /* Merch kontakty */
    #merch .mx-auto.mt-4.text-start {
        text-align: center !important;
        width: 100% !important;
    }

    /* Fotogalerie */
    .gallery-prev,
    .gallery-next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

    .gallery-thumbs img {
        width: 60px;
        height: 42px;
    }

    /* Footer */
    footer .row {
        flex-direction: column;
        gap: 0.5rem;
    }

    footer .col-md-6 {
        text-align: center;
    }

    footer p {
        font-size: 0.85rem;
    }

    /* Kontakty footer */
    .footer-kontakt-inline {
        padding: 20px 16px;
    }

    /* Card obecná */
    .card {
        margin: 0.5rem 0;
    }

    /* Akce kalendář karta */
    .akce-kalendar-card__thumb {
        width: 100%;
        height: 160px;
    }

    /* Partneři */
    .partneri-grid {
        gap: 1rem;
    }

    .partneri-item {
        width: 80px;
        height: 50px;
    }

    /* Navbar brand */
    .navbar-brand img {
        height: 3.5rem;
    }

    /* Scroll hint */
    .gateway-scroll-hint {
        bottom: 20px;
    }

    .gateway-scroll-hint__arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Clip-path sekce – rovné na mobilu */
    .sec-pozadi-left {
        clip-path: none;
    }

    .sec-pozadi-right {
        clip-path: none;
    }

    /* Znak za sekcí skrytý na mobilu */
    /* .znak_behind_sec {
        display: none;
    } */

    /* Pravní info */
    .pravni_info-wrapper {
        padding: 20px 16px;
        border-radius: 12px;
    }

    /* Popup oznámení */
    .popup-oznameni__body {
        padding: 16px;
    }

    /* Loader logo */
    .loader__logo {
        width: 80px;
        height: 80px;
    }

    /* Obsazenost */
    .obsazenost-legenda {
        justify-content: center;
    }
}

/* --- Malý mobil (max 400px) --- */
@media (max-width: 400px) {

    .main-hero__title {
        font-size: 1.3rem;
    }

    .main-hero__subtitle {
        font-size: 0.9rem;
    }

    .navbar-brand span {
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 2.8rem;
    }

    .section h2 {
        font-size: 1.2rem;
    }

    .btn-open-page,
    .btn-back,
    .btn-submit {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .akce-card__body h3 {
        font-size: 0.95rem;
    }

    .card-priprava-label {
        font-size: 0.7rem;
    }
}

c

/* --- Obrázky obecná responsivita --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Tabulky - horizontální scroll na mobilu --- */
.table-responsive-wrapper {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* --- Iframe videa responzivní --- */
iframe[src*="youtube"] {
    max-width: 100%;
}

.h-lg-100 {
    /*height: auto;*/
}

@media (min-width: 992px) {
    .h-lg-100 {
        height: 100%;
    }
}


.cmplz-information {
    display: none !important;
}

.cmplz-blocked-content-container,
.cmplz-placeholder-1-element {
    height: 100% !important;
    min-height: 400px;
}

.cmplz-blocked-content-container iframe,
.cmplz-blocked-content-container .cmplz-placeholder {
    height: 100% !important;
}

.cmplz-accept-service {
    background-color: var(--primary-color);
    border-radius: 14px;
    color: white;
    font-weight: 600;
    border: none;
    padding: 4px 8px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.cmplz-accept-service:hover {
    background-color: var(--secondary-color);
}

/* ===== Cookie banner (Complianz) – karta v rohu ===== */
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 {
    max-width: 460px;
    width: calc(100% - 40px);
    left: 20px !important;
    right: auto !important;
    bottom: 20px !important;
    margin: 0 !important;
    padding: 24px 26px 22px !important;
    background: #1b1c1e !important;
    color: #f3f3f3 !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-top: 4px solid var(--secondary-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5) !important;
    /* Complianz renderuje banner jako grid, který cpal text i tlačítka do úzkých
       sloupců. Přepneme na jednosloupcový flex – vše jde na plnou šířku karty. */
    display: flex !important;
    flex-direction: column !important;
    /* Mobil: skryjeme falešný vodorovný scroll (obsah je o pár px širší) a
       omezíme výšku na viewport se svislým scrollem, aby se na nízkých
       telefonech nahoře neuťala hlavička/křížek. */
    overflow: hidden auto !important;
    max-height: calc(100vh - 40px) !important;
    max-height: calc(100dvh - 40px) !important;
    overscroll-behavior: contain;
}

/* Complianz na užších obrazovkách banner centruje přes transform: translateX(-50%)
   (spolu s left: 50%). My ale řídíme pozici přes left/right, takže left přepíšeme,
   ale transform zůstával – banner se pak posunul o půlku své šířky mimo obrazovku
   (na mobilu „ujížděl" doleva). Transform proto resetujeme; html zvyšuje specificitu,
   aby přebila pravidlo pluginu i v jeho media query. */
html #cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 {
    transform: none !important;
}

/* Complianz renderuje banner server-side se třídou cmplz-hidden a v <head> má
   pravidlo .cmplz-hidden { display: none !important; }. Naše pravidlo výše
   (#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1) má ale vyšší
   specificitu, takže banner byl vidět od prvního paintu až do doběhnutí
   deferovaného complianz.min.js – probliknutí. Skryjeme ho natvrdo i my. */
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1.cmplz-hidden {
    display: none !important;
}

/* Po kliknutí na „Přijmout"/„Odmítnout" přidá Complianz třídu cmplz-dismissed,
   ale vizuální schování banneru přebíjely theme override s !important (mají vyšší
   specificitu než pravidla pluginu), takže banner zůstal viset. Zavřený banner
   proto schováme natvrdo. */
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1.cmplz-dismissed {
    display: none !important;
}

/* Všechny sekce banneru na plnou šířku (grid je držel úzké) */
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-header,
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-body,
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-buttons,
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-links {
    width: 100% !important;
    max-width: 100% !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-logo {
    max-height: 42px;
    width: auto;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-header .cmplz-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: left !important;
    margin: 0 0 4px !important;
    letter-spacing: .2px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-divider {
    display: none !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-body .cmplz-message {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: #bdbdc0 !important;
    text-align: left !important;
    margin: 0 !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 18px !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-btn {
    flex: 1 1 auto !important;
    min-width: 130px !important;
    margin: 0 !important;
    padding: 11px 16px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    transition: all .18s ease !important;
    cursor: pointer;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-btn.cmplz-accept {
    order: 1;
    background: var(--secondary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(208, 0, 0, .35) !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-btn.cmplz-accept:hover {
    background: var(--primary-color) !important;
    transform: translateY(-1px);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-btn.cmplz-deny {
    order: 2;
    background: transparent !important;
    color: #f3f3f3 !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-btn.cmplz-deny:hover {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .5) !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-btn.cmplz-view-preferences,
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-btn.cmplz-save-preferences {
    order: 3;
    flex: 1 1 100% !important;
    background: transparent !important;
    color: #9a9a9e !important;
    border: none !important;
    font-weight: 500 !important;
    font-size: 12.5px !important;
    padding: 4px !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-btn.cmplz-view-preferences:hover,
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-btn.cmplz-save-preferences:hover {
    color: #fff !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-links {
    margin-top: 14px !important;
    text-align: left !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-links a,
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 a.cmplz-link {
    color: #ff6a6a !important;
    font-size: 12px !important;
    text-decoration: none !important;
    margin-right: 14px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-links a:hover,
#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 a.cmplz-link:hover {
    text-decoration: underline !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-close {
    color: #9a9a9e !important;
    opacity: 1 !important;
    transition: color .15s ease;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 .cmplz-close:hover {
    color: #fff !important;
}

@media (max-width: 560px) {
    #cmplz-cookiebanner-container .cmplz-cookiebanner.banner-1 {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        width: calc(100% - 20px);
        max-width: none;
    }
}
