/* Datum v tabulce Zápasy: desktop vs mobil */
.datum-desktop { display: inline; }
.datum-mobile { display: none; }
@media (max-width: 768px) {
    .datum-desktop { display: none; }
    .datum-mobile { display: inline; }
}
@media (max-width: 768px) {
    .team-section-head-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 14px;
    }
    .team-section-title {
        font-size: 0.8rem;
        margin: 0;
        line-height: 1.1;
        font-weight: 700;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-width: unset;
    }
    .team-section-head-flex {
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 14px;
    }
}
/* Zarovnání nadpisu a přepínače v team-section-head na jednu linku */
.team-section-head-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.team-section-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}
@media (max-width: 768px) {
    .stats-nav {
        display: flex;
        justify-content: center;
        gap: 18px;
        margin-bottom: 18px;
    }
    .stats-nav-btn {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 54px; /* rozšířeno pro text vedle ikony */
        height: 17px;
        border-radius: 50%;
        background: var(--white);
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        font-size: 8px;
        color: var(--green-dark);
        text-decoration: none;
        transition: background 0.18s, color 0.18s;
        position: relative;
        padding: 0 4px;
        gap: 4px;
    }
    .stats-nav-btn i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 1em;
        margin: 0;
        padding: 0;
    }
    .stats-nav-btn:active,
    .stats-nav-btn:focus {
        background: var(--green);
        color: #fff;
    }
    .stats-nav-label {
        display: inline;
        font-size: 8px;
        color: var(--green-dark);
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin: 0 0 0 2px;
        white-space: nowrap;
    }
}
@media (min-width: 769px) {
    .stats-nav {
        display: flex;
        gap: 18px;
        margin-bottom: 18px;
    }
    .stats-nav-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--green-dark);
        box-shadow: none;
        border-radius: 8px;
        font-size: 18px;
        color: #fff;
        text-decoration: none;
        width: 126px; /* 70% z 180px */
        height: 27px; /* 70% z 38px */
        padding: 0 0;
        justify-content: center;
        transition: background 0.18s, color 0.18s;
    }
    .stats-nav-btn:active,
    .stats-nav-btn:focus,
    .stats-nav-btn:hover {
        background: var(--green);
        color: #fff;
    }
    .stats-nav-label {
        display: inline;
        font-size: 11.25px; /* 150% z 7.5px */
        color: #fff;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }
    .stats-nav-btn i {
        color: #fff;
        font-size: 1.1em;
    }
}
:root {
    --green: #1fae51;
    --green-dark: #15853e;
    --white: #ffffff;
    --gray-bg: #f3f5f4;
    --text-dark: #1a1a1a;
}

/* GLOBAL */
html {
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    background: var(--gray-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    h3 {
        font-size: 1.05rem;
    }
}

/* CONTENT WRAPPER */
.content {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
}

@media (max-width: 768px) {
    .content {
        padding: 15px;
    }
}

/* CARD */
.card {
    background: var(--white);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    transition: 0.2s;
}

@media (max-width: 768px) {
    .card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card h3 {
    margin-top: 0;
    color: var(--green-dark);
}

.article-nav {
    margin-top: 0;
}

.article-links-carousel-wrap {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 12px;
    align-items: stretch;
}

.article-links-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.article-links-carousel::-webkit-scrollbar {
    display: none;
}

.article-links-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.article-links-indicator-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c7ddd0;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.article-links-indicator-dot:hover {
    background: #95b6a1;
}

.article-links-indicator-dot.is-active {
    background: var(--green-dark);
    transform: scale(1.12);
    box-shadow: 0 0 0 4px rgba(31, 174, 81, 0.12);
}

.article-links-grid {
    display: flex;
    gap: 18px;
    width: max-content;
}

.article-links-arrow {
    width: 56px;
    height: auto;
    border: none;
    border-radius: 18px;
    background: #eaf5ee;
    color: var(--green-dark);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    box-shadow: 0 8px 20px rgba(13, 36, 22, 0.08);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.article-links-arrow:hover:not(:disabled) {
    background: rgba(21, 133, 62, 0.14);
    color: var(--green-dark);
    transform: translateY(-1px);
}

.article-links-arrow:disabled {
    opacity: 0.38;
    cursor: default;
}

.article-link-card {
    position: relative;
    display: flex;
    flex: 0 0 260px;
    width: 260px;
    min-height: 280px;
    align-items: flex-end;
    text-decoration: none;
    color: var(--white);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #19452b 0%, #0f2618 100%);
    box-shadow: 0 16px 34px rgba(8, 24, 15, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.article-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 38px rgba(8, 24, 15, 0.24);
}

.article-link-media {
    position: absolute;
    inset: 0;
}

.article-link-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 20, 11, 0.08) 0%, rgba(5, 20, 11, 0.76) 78%, rgba(5, 20, 11, 0.92) 100%);
}

.article-link-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-link-card-noimage {
    background: linear-gradient(145deg, #1a5d33 0%, #0f2618 100%);
}

.article-link-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 22px;
}

.article-link-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-link-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.article-card {
    scroll-margin-top: 120px;
    display: none;
}

.article-card.is-active {
    display: block;
}

.article-link-card.is-active {
    box-shadow: 0 0 0 3px rgba(31, 174, 81, 0.28), 0 22px 38px rgba(8, 24, 15, 0.24);
}

.article-date {
    margin-top: -8px;
    color: #666;
    font-size: 14px;
}


.article-hero-media {
        margin: 18px 0 20px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 26px rgba(8, 24, 15, 0.12);
}

.article-hero-media img {
        width: 100%;
        max-height: 420px;
        display: block;
        object-fit: cover;
}

@media (min-width: 769px) {
    .article-hero-media-portrait {
        float: left;
        width: 260px;
        max-width: 38vw;
        margin: 0 32px 18px 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 26px rgba(8, 24, 15, 0.12);
    }
    .article-hero-media-portrait img {
        width: 100%;
        height: auto;
        max-height: 520px;
        object-fit: cover;
        display: block;
    }
    .article-card::after {
        content: "";
        display: table;
        clear: both;
    }
}

.article-text {
    line-height: 1.6;
    white-space: normal;
}

.article-gallery {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.article-gallery a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.article-gallery img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    object-position: center;
    background: #f4f7f5;
    display: block;
    transition: transform 0.2s ease;
}

.article-gallery a:hover img {
    transform: scale(1.04);
}

.article-photo-modal {
    display: none;
    position: fixed;
    z-index: 1200;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.article-photo-modal img {
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}

.article-photo-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

.article-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    z-index: 10;
    user-select: none;
}

.article-photo-nav:hover {
    background: rgba(255, 255, 255, 0.38);
}

.article-photo-prev { left: 16px; }
.article-photo-next { right: 16px; }

.article-photo-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    pointer-events: none;
}

@media (max-width: 600px) {
    .article-links-carousel-wrap {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .article-links-arrow {
        display: none;
    }

    .article-links-grid {
        gap: 14px;
    }

    .article-link-card {
        flex-basis: calc((100vw - 86px) / 2);
        width: calc((100vw - 86px) / 2);
        min-height: 220px;
        border-radius: 14px;
    }

    .article-link-content {
        padding: 18px;
    }

    .article-link-title {
        font-size: 1.05rem;
    }

    .article-photo-nav {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    .article-photo-prev { left: 6px; }
    .article-photo-next { right: 6px; }
}

/* ========================= */
/*          KONTAKT          */
/* ========================= */

.kontakt-title {
    margin-bottom: 18px;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
    align-items: stretch;
}

.kontakt-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2ece5;
}

.kontakt-card h3 {
    margin: 10px 0 8px;
    color: var(--green-dark);
    font-size: 1.28rem;
}

.kontakt-card-main {
    background: linear-gradient(160deg, #ffffff 0%, #f3fbf5 58%, #e8f6ec 100%);
}

.kontakt-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dff3e5;
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kontakt-perex {
    margin: 0 0 16px;
    line-height: 1.65;
    color: #3e4a42;
}

.kontakt-items {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.kontakt-item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #123521;
    background: linear-gradient(135deg, #ffffff 0%, #eef9f1 100%);
    border: 1px solid #b9d9c2;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 72px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.kontakt-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(92deg, rgba(31, 174, 81, 0.1), rgba(21, 133, 62, 0.03));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kontakt-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(21, 133, 62, 0.18);
    border-color: #8dbd9b;
    background: linear-gradient(135deg, #fbfffc 0%, #e7f8ec 100%);
}

.kontakt-item:hover::before {
    opacity: 1;
}

.kontakt-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(150deg, #e4f6e9 0%, #d2efdc 100%);
    color: var(--green-dark);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(21, 133, 62, 0.13);
}

.kontakt-item-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-right: auto;
}

.kontakt-item-text strong {
    color: #17422a;
    font-size: 0.96rem;
}

.kontakt-item-text small {
    color: #365746;
    font-size: 0.86rem;
}

.kontakt-arrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(31, 174, 81, 0.15);
    color: var(--green-dark);
    font-size: 0.82rem;
    transition: transform 0.18s ease, background 0.18s ease;
}

.kontakt-item:hover .kontakt-arrow {
    transform: translateX(2px);
    background: rgba(31, 174, 81, 0.24);
}

.kontakt-form-card {
    gap: 10px;
}

.kontakt-form {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.kontakt-form-field {
    display: grid;
    gap: 6px;
    color: #17422a;
    font-weight: 600;
}

.kontakt-form-field span {
    font-size: 0.92rem;
}

.kontakt-form-field input,
.kontakt-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #b9d9c2;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    color: #143322;
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.kontakt-form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.kontakt-form-field input:focus,
.kontakt-form-field textarea:focus {
    outline: none;
    border-color: #75af89;
    box-shadow: 0 0 0 4px rgba(31, 174, 81, 0.12);
}

.kontakt-form-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    line-height: 1.5;
}

.kontakt-form-alert-success {
    background: #e7f8ec;
    border: 1px solid #9bd0ab;
    color: #195331;
}

.kontakt-form-alert-error {
    background: #fff1f1;
    border: 1px solid #efbbbb;
    color: #8d2323;
}

.kontakt-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(21, 133, 62, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.kontakt-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(21, 133, 62, 0.24);
    filter: brightness(1.02);
}

.kontakt-form-submit:focus-visible {
    outline: 3px solid rgba(31, 174, 81, 0.2);
    outline-offset: 3px;
}


@media (max-width: 860px) {
    .kontakt-grid {
        grid-template-columns: 1fr;
    }

    .kontakt-card {
        padding: 20px;
    }
}

/* FOOTER */
.footer {
    background: var(--green-dark);
    color: var(--white);
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

.footer-sponzori {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-sponzori-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 12px;
}

.footer-sponzori-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 96px;
    gap: 12px;
    max-width: 980px;
    margin: 0 auto;
}

.footer-sponzor-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 0;
    width: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.95);
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.footer-sponzor-item.has-caption {
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.footer-sponzor-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-sponzor-logo {
    max-height: 42px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-sponzor-logo-large {
    max-height: 63px;
}

.footer-sponzor-caption {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #000;
    text-align: center;
    line-height: 1.2;
}

/* ========================= */
/*        ÚVODNÍ STRÁNKA     */
/* ========================= */

.uvod-hero {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.uvod-hero-img-wrap {
    position: relative;
    flex: 0 0 45%;
    max-height: 340px;
    overflow: hidden;
}

.uvod-hero-carousel {
    position: relative;
    width: 100%;
    height: 340px;
    background: linear-gradient(145deg, #163b25 0%, #0e2115 100%);
}

.uvod-hero-carousel:hover .uvod-hero-carousel-arrow,
.uvod-hero-carousel:focus-within .uvod-hero-carousel-arrow {
    opacity: 1;
    pointer-events: auto;
}

.uvod-hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.uvod-hero-slide.is-active {
    opacity: 1;
}

.uvod-hero-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.uvod-hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 10px 24px rgba(6, 15, 10, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
    z-index: 2;
}

.uvod-hero-carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.uvod-hero-carousel-arrow:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.uvod-hero-carousel-arrow-prev {
    left: 14px;
}

.uvod-hero-carousel-arrow-next {
    right: 14px;
}

.uvod-hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.uvod-hero-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.uvod-hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.45);
}

.uvod-hero-carousel-dot.is-active {
    background: rgba(255, 255, 255, 0.82);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.uvod-hero-text {
    flex: 1;
    padding: 32px 32px 32px 0;
}

.uvod-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--green-dark);
    margin: 0 0 14px 0;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.uvod-hero-perex {
    color: #444;
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.uvod-hero-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 26px;
    background: var(--green-dark);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.18s;
}

.uvod-hero-btn:hover {
    background: var(--green);
}

.uvod-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.uvod-card {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    text-decoration: none;
    color: var(--green-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.uvod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.uvod-card-icon {
    font-size: 2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    color: var(--green-dark);
}

.uvod-card-icon i {
    font-size: 1.9rem;
}

.uvod-card-label {
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .uvod-hero {
        flex-direction: column;
        gap: 0;
    }

    .uvod-hero-img-wrap {
        flex: none;
        width: 100%;
        max-height: 220px;
    }

    .uvod-hero-carousel {
        height: 220px;
    }

    .uvod-hero-img {
        height: 220px;
    }

    .uvod-hero-carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .uvod-hero-carousel-arrow-prev {
        left: 10px;
    }

    .uvod-hero-carousel-arrow-next {
        right: 10px;
    }

    .uvod-hero-text {
        padding: 20px 18px;
    }

    .uvod-hero-title {
        font-size: 1.5rem;
    }
}

/* ========================= */
/*        HEADER + MENU      */
/* ========================= */

.club-header {
    width: 100%;
    margin-bottom: 0;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

/* Horní část s logem a názvem */
.club-top {
        background: url("img/travnik-01-desktop.png") center bottom / cover no-repeat;
        padding: 60px 30px 80px 30px;
        position: relative;

        display: flex;
        align-items: flex-start;
        gap: 15px;
}

@media (max-width: 768px) {
    .club-top {
        background: url("img/travnik-01-mobile.png") center bottom / cover no-repeat;
    }
}

.club-logo {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 115px;
    height: auto;
    z-index: 10;
}

.club-title {
    position: absolute;
    top: calc(20px + 57.5px); /* střed loga (logo 115px vysoké) */
    transform: translateY(-50%);
    left: 165px;
    font-family: 'Bebas Neue', 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 400;
    color: white;
    margin: 0;
    text-shadow: 
    0 3px 6px rgba(0,0,0,0.55),
    0 0 10px rgba(0,0,0,0.35),
    0 0 20px rgba(0,0,0,0.25);
    letter-spacing: 3px;
    line-height: 1;
    text-transform: uppercase;
}

/* Navigační pruh */
.club-nav {
    background: var(--green-dark);
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease;
}

.club-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    padding: 8px 18px;
    border-radius: 8px;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.club-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.club-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.club-nav a:hover::after {
    width: calc(100% - 36px);
}

.club-nav a.nav-active {
    background: rgba(255, 255, 255, 0.18);
}

.club-nav a.nav-active::after {
    width: calc(100% - 36px);
    background: #fff;
}

@media (min-width: 701px) {
    [id] {
        scroll-margin-top: 96px;
    }

    .club-nav {
        position: sticky;
        top: 0;
        z-index: 200;
        box-shadow: 0 8px 18px rgba(8, 24, 15, 0.16);
    }

    .club-nav.is-scrolled {
        background: rgba(21, 133, 62, 0.82);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 26px rgba(8, 24, 15, 0.22);
    }
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* MOBILE MENU */
@media (max-width: 700px) {

    .hamburger {
        display: flex;
    }

    .club-nav {
        display: none;
        flex-direction: column;
        text-align: center;
        gap: 4px;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 12px 16px;
    }

    .club-nav.active {
        display: flex;
    }

    .club-nav a {
        border-radius: 8px;
        padding: 11px 16px;
    }

    .club-nav a::after {
        display: none;
    }

    .club-nav a.nav-active {
        background: rgba(255, 255, 255, 0.22);
        font-weight: 700;
    }

    .club-title {
        font-size: 31.5px;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ========================= */
/*          VIDEA            */
/* ========================= */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.videos-sections {
    display: block;
}

.videos-section-title {
    margin: 0 0 18px;
    color: var(--green-dark);
}

.video-match-group {
    margin-bottom: 28px;
    display: none;
}

.video-match-group.active {
    display: block;
}

.video-match-title {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d9ebdd;
    color: var(--text-dark);
}

.video-match-grid {
    display: grid;
}

.video-card {
    background: var(--white);
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.video-card iframe {
    width: 100%;
    height: 180px;
    border-radius: 10px;
}

/* FILTRY VIDEÍ */
.video-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.video-filters button {
    padding: 10px 18px;
    border: none;
    background: var(--green-dark);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}

.video-filters button:hover {
    opacity: 0.8;
}

.video-filters button.active {
    background: var(--green);
}

.media-hero-card {
    position: relative;
    min-height: 420px;
    margin-bottom: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(233, 194, 74, 0.3) 0%, transparent 34%),
        linear-gradient(135deg, #133b24 0%, #1c5b35 58%, #2a7b49 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(10, 40, 23, 0.18);
    overflow: hidden;
}

.media-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background:
        linear-gradient(90deg, rgba(8, 24, 14, 0.78) 0%, rgba(8, 24, 14, 0.55) 38%, rgba(8, 24, 14, 0.18) 72%, rgba(8, 24, 14, 0.32) 100%),
        linear-gradient(180deg, rgba(8, 24, 14, 0.12) 0%, rgba(8, 24, 14, 0.64) 100%);
}

.media-hero-copy {
    width: min(760px, 100%);
}

.media-hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.media-hero-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    font-size: 1.02rem;
}

.media-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
    max-width: 440px;
}

.media-hero-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 92px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

.media-hero-stat-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-hero-stat-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 26px rgba(8, 24, 14, 0.16);
}

.media-hero-stat-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.media-hero-gallery {
    position: relative;
    min-height: 420px;
    height: 100%;
    overflow: hidden;
}

.media-hero-gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 24, 14, 0.04) 0%, rgba(8, 24, 14, 0.24) 100%);
    pointer-events: none;
    z-index: 1;
}

.media-hero-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.media-hero-carousel:hover .media-hero-carousel-arrow,
.media-hero-carousel:focus-within .media-hero-carousel-arrow {
    opacity: 1;
    pointer-events: auto;
}

.media-hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.media-hero-slide.is-active {
    opacity: 1;
}

.media-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.media-hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 10px 24px rgba(6, 15, 10, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.media-hero-carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
}

.media-hero-carousel-arrow:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.media-hero-carousel-arrow-prev {
    left: 14px;
}

.media-hero-carousel-arrow-next {
    right: 14px;
}

.media-hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.media-hero-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.media-hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.46);
}

.media-hero-carousel-dot.is-active {
    background: rgba(255, 255, 255, 0.88);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.media-hero-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.media-hero-gallery-empty-icon {
    position: relative;
    z-index: 1;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 2rem;
}

.media-hero-stat-value {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
}

.media-hero-stat-label {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.media-section + .media-section {
    margin-top: 28px;
}

.media-section-head {
    margin-bottom: 16px;
}

.media-section-head h3 {
    margin: 0;
    color: var(--green-dark);
}

.media-section-perex {
    margin: 8px 0 0;
    color: #5b665f;
    line-height: 1.55;
}

.media-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.media-photo-card {
    position: relative;
    border: none;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: #163b24;
    box-shadow: 0 12px 28px rgba(11, 32, 20, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(11, 32, 20, 0.14);
}

.media-photo-card:focus-visible {
    outline: 2px solid var(--green-dark);
    outline-offset: 3px;
}

.media-photo-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

.media-photo-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(8, 24, 14, 0) 0%, rgba(8, 24, 14, 0.78) 100%);
    color: #fff;
}

.media-photo-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    flex: 0 0 36px;
}

.media-lightbox-open {
    overflow: hidden;
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 14, 9, 0.86);
    backdrop-filter: blur(4px);
}

.media-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 40px));
    height: min(88vh, 820px);
    margin: min(6vh, 44px) auto;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 16px;
}

.media-lightbox-figure {
    margin: 0;
    position: relative;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #0c1f13;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.media-lightbox-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #0c1f13;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.media-lightbox-arrow,
.media-lightbox-close {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.18s ease, transform 0.18s ease;
}

.media-lightbox-arrow {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox-arrow:hover,
.media-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}

.media-lightbox-arrow:focus-visible,
.media-lightbox-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.media-placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 24px;
    background: linear-gradient(145deg, #f7fbf8 0%, #eef5f0 100%);
    border: 1px solid rgba(21, 133, 62, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(12, 34, 20, 0.05);
}

.media-placeholder-card strong {
    color: var(--green-dark);
    font-size: 1.02rem;
}

.media-placeholder-card p {
    margin: 0;
    color: #52625a;
    line-height: 1.6;
}

.media-placeholder-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 133, 62, 0.09);
    color: var(--green-dark);
    font-size: 1.35rem;
}

@media (max-width: 600px) {
    .media-hero-card {
        min-height: 320px;
    }

    .media-hero-overlay {
        align-items: flex-end;
        padding: 14px;
        background:
            linear-gradient(180deg, rgba(8, 24, 14, 0.14) 0%, rgba(8, 24, 14, 0.8) 100%);
    }

    .media-hero-kicker {
        margin-bottom: 8px;
        padding: 5px 10px;
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .media-hero-copy p {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .media-hero-meta {
        margin-top: 10px;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .media-hero-stat {
        min-height: 46px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .media-hero-stat-value {
        font-size: 1.05rem;
    }

    .media-hero-stat-label {
        margin-top: 2px;
        font-size: 0.72rem;
    }

    .media-hero-gallery,
    .media-hero-carousel,
    .media-hero-image {
        min-height: 320px;
    }

    .media-hero-carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .media-hero-carousel-arrow-prev {
        left: 10px;
    }

    .media-hero-carousel-arrow-next {
        right: 10px;
    }

    .video-filters {
        gap: 10px;
    }

    .video-filters button {
        width: 100%;
        text-align: center;
    }

    .media-photo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .media-photo-card-overlay {
        padding: 10px 12px;
    }

    .media-photo-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        flex-basis: 32px;
    }

    .media-lightbox-dialog {
        width: calc(100vw - 20px);
        height: auto;
        margin: 18px auto;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .media-lightbox-figure {
        min-height: 58vh;
    }

    .media-lightbox-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }

    .media-lightbox-arrow-prev {
        left: 12px;
    }

    .media-lightbox-arrow-next {
        right: 12px;
    }

    .media-placeholder-card {
        padding: 18px;
    }
}

/* ========================= */
/*         TABULKA TÝMU      */
/* ========================= */

.team-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-table thead {
    background: var(--green-dark);
    color: white;
}

.team-table th,
.team-table td {
    padding: 14px 18px;
    text-align: left;
}

.team-table tbody tr {
    border-bottom: 1px solid #e5e5e5;
}

.team-table tbody tr:nth-child(even) {
    background: #f4fff4;
}

.team-table tbody tr:hover {
    background: #e0ffe0;
    transition: 0.2s;
}

.team-view-toggle-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.team-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.cache-refresh-control {
    display: inline-flex;
    align-items: center;
}

.cache-refresh-button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
}

.cache-refresh-button span {
    font-size: 1rem;
}

.team-section-head h2 {
    margin: 0;
}

.team-section-head .team-view-toggle-wrap {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.team-refresh-status {
    margin-top: 8px;
}

.team-view-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: #eef7f0;
    border: 1px solid #d5e5d9;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(13, 36, 22, 0.05);
    cursor: pointer;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.team-view-track {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    width: 52px;
    height: 26px;
    padding: 2px;
    border-radius: 999px;
    overflow: hidden;
    box-sizing: border-box;
}

.team-view-thumb {
    position: absolute;
    top: 50%;
    left: 2px;
    width: 24px;
    height: 22px;
    border-radius: 999px;
    background: var(--green-dark);
    box-shadow: 0 4px 10px rgba(21, 133, 62, 0.18);
    transform: translateY(-50%);
    transition: transform 0.18s ease;
}

.team-view-toggle.is-table .team-view-thumb {
    transform: translate(24px, -50%);
}

.team-view-button-icon {
    position: relative;
    z-index: 2;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.team-view-side {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    color: #6b8c76;
    transition: color 0.18s ease;
}

.team-view-toggle:not(.is-table) .team-view-side-tiles,
.team-view-toggle.is-table .team-view-side-table {
    color: #fff;
}

.team-view-button-icon-tiles {
    grid-template-columns: repeat(2, 4px);
    gap: 2px;
}

.team-view-button-icon-tiles span {
    width: 4px;
    height: 4px;
    border-radius: 1px;
    background: currentColor;
    opacity: 0.9;
}

.team-view-button-icon-table {
    grid-template-columns: 1fr;
    gap: 2px;
    width: 8px;
}

.team-view-button-icon-table span {
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.9;
}

.team-view-toggle:hover {
    border-color: #bdd6c5;
}

.team-view-toggle:focus-visible {
    outline: 3px solid rgba(31, 174, 81, 0.25);
    outline-offset: 2px;
}

.team-view-panel {
    display: none;
}

.team-view-panel.active {
    display: block;
}

.team-table .player-row td {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.team-table .player-row td:first-child {
    border-left: 4px solid transparent;
    font-weight: 700;
}

.team-table .player-row[data-pos-type="G"] td {
    background: #fffbea;
}

.team-table .player-row[data-pos-type="G"] td:first-child {
    border-left-color: #d4a900;
}

.team-table .player-row[data-pos-type="O"] td {
    background: #fff4e8;
}

.team-table .player-row[data-pos-type="O"] td:first-child {
    border-left-color: #ff7b00;
}

.team-table .player-row[data-pos-type="Z"] td {
    background: #eef5ff;
}

.team-table .player-row[data-pos-type="Z"] td:first-child {
    border-left-color: #0077ff;
}

.team-table .player-row[data-pos-type="U"] td {
    background: #fff0f0;
}

.team-table .player-row[data-pos-type="U"] td:first-child {
    border-left-color: #e53935;
}

.team-table .player-row[data-pos-type="G"]:hover td {
    background: #fff1b8 !important;
}

.team-table .player-row[data-pos-type="O"]:hover td {
    background: #ffe2c2 !important;
}

.team-table .player-row[data-pos-type="Z"]:hover td {
    background: #dceaff !important;
}

.team-table .player-row[data-pos-type="U"]:hover td {
    background: #ffd8d8 !important;
}

.team-cards-layout {
    display: grid;
    gap: 24px;
    margin-top: 20px;
}

.team-position-group {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #d4e6d9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    background: linear-gradient(180deg, #f8fdf8 0%, #edf8ef 100%);
}

.team-position-group-G {
    background: linear-gradient(180deg, #f8fdf8 0%, #edf8ef 100%);
}

.team-position-group-O {
    background: linear-gradient(180deg, #f8fdf8 0%, #edf8ef 100%);
}

.team-position-group-Z {
    background: linear-gradient(180deg, #f8fdf8 0%, #edf8ef 100%);
}

.team-position-group-U {
    background: linear-gradient(180deg, #f8fdf8 0%, #edf8ef 100%);
}

.team-position-group-staff {
    background: linear-gradient(180deg, #f8fdf8 0%, #edf8ef 100%);
}

.team-position-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 1.15rem;
    color: #183524;
}

.player-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.team-staff-layout {
    margin-top: 14px;
}

.team-staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.player-card-grid .player-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(18, 53, 33, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(13, 36, 22, 0.08);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.player-card-grid .player-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(13, 36, 22, 0.14);
}

.player-card-grid .player-row:focus-visible {
    outline: 3px solid rgba(31, 174, 81, 0.28);
    outline-offset: 3px;
}

.player-card-grid .player-row[data-pos-type="G"]:hover {
    background: #fff6c8;
    border-color: #e2c34a;
}

.player-card-grid .player-row[data-pos-type="O"]:hover {
    background: #ffe7cb;
    border-color: #ffae53;
}

.player-card-grid .player-row[data-pos-type="Z"]:hover {
    background: #e4efff;
    border-color: #6ea5ff;
}

.player-card-grid .player-row[data-pos-type="U"]:hover {
    background: #ffdede;
    border-color: #ff8b8b;
}

.team-staff-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 16px 18px;
    border: 1px solid rgba(31, 83, 49, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 22px rgba(13, 36, 22, 0.07);
    text-align: left;
}

.team-staff-trigger {
    width: 100%;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.team-staff-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(13, 36, 22, 0.12);
    border-color: rgba(31, 83, 49, 0.18);
    background: rgba(255, 255, 255, 0.96);
}

.team-staff-trigger:focus-visible {
    outline: 3px solid rgba(31, 174, 81, 0.28);
    outline-offset: 3px;
}

.team-staff-row {
    cursor: pointer;
}

.team-staff-row:focus-visible {
    outline: 3px solid rgba(31, 174, 81, 0.25);
    outline-offset: -3px;
}

.team-staff-icon {
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, #1fae51 0%, #15853e 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.player-card-number {
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: #123521;
    color: #fff;
}

.player-card-grid .player-row[data-pos-type="G"] .player-card-number {
    background: #d4a900;
    color: #2a2400;
}

.player-card-grid .player-row[data-pos-type="O"] .player-card-number {
    background: #ff7b00;
}

.player-card-grid .player-row[data-pos-type="Z"] .player-card-number {
    background: #0077ff;
}

.player-card-grid .player-row[data-pos-type="U"] .player-card-number {
    background: #e53935;
}

.player-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.player-card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #173422;
    flex-wrap: wrap;
}

.player-card-position {
    font-size: 0.88rem;
    color: #446151;
}

.captain-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 2px 7px;
    border-left: 3px solid #1f6feb;
    border-right: 3px solid #1f6feb;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    color: #1f6feb;
    background: rgba(31, 111, 235, 0.06);
    white-space: nowrap;
}

/* ========================= */
/*       STATISTIKY TABULKY  */
/* ========================= */

.stats-summary,
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-summary thead,
.stats-table thead {
    background: var(--green-dark);
    color: white;
}

.stats-summary th,
.stats-summary td,
.stats-table th,
.stats-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.stats-table th.sortable-round {
    cursor: pointer;
    user-select: none;
}

.stats-table th.sortable-round:hover {
    filter: brightness(1.06);
}

.sort-indicator {
    margin-left: 6px;
    font-size: 0.85em;
}

.stats-summary th,
.stats-summary td {
    text-align: center;
}

.stats-summary tbody tr:nth-child(even),
.stats-table tbody tr:nth-child(even) {
    background: #f4fff4;
}

.stats-summary tbody tr:hover,
.stats-table tbody tr:hover {
    background: #e0ffe0;
    transition: 0.2s;
}

.stats-table tbody tr.tabulka-team-highlight td {
    font-weight: 700;
}

.stats-table tbody tr.zapas-win td {
    background: #f0fff4;
}

.stats-table tbody tr.zapas-win td strong {
    color: var(--green-dark);
}

.stats-table tbody tr.zapas-loss td {
    background: #fff5f5;
}

.stats-table tbody tr.zapas-loss td strong {
    color: #c0392b;
}

.stats-table tbody tr.zapas-win-pen td {
    background: #eef4ff;
}

.stats-table tbody tr.zapas-win-pen td strong {
    color: #1a56c4;
}

.stats-table tbody tr.zapas-loss-pen td {
    background: #fffbe6;
}

.stats-table tbody tr.zapas-loss-pen td strong {
    color: #b8860b;
}

.zapas-datum-link {
    display: inline-block;
    position: relative;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.zapas-datum-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.85;
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.zapas-datum-link:hover {
    color: #0b4b2c;
}

.zapas-datum-link:focus-visible {
    outline: 2px solid rgba(17, 104, 58, 0.22);
    outline-offset: 2px;
    color: #0b4b2c;
}

.zapas-datum-link:hover::before,
.zapas-datum-link:focus-visible::before {
    width: 100%;
}

.zapasy-table th:nth-child(5),
.zapasy-table td:nth-child(5),
.zapasy-table th:nth-child(6),
.zapasy-table td:nth-child(6),
.zapasy-table th:nth-child(8),
.zapasy-table td:nth-child(8),
.zapasy-table th:nth-child(9),
.zapasy-table td:nth-child(9) {
    text-align: center;
}

.zapasy-foot td {
    background: var(--green-dark);
    color: #fff;
    font-weight: 700;
    border-top: 2px solid #0d6130;
    border-bottom: none;
}

.zapasy-foot td:nth-child(3),
.zapasy-foot td:nth-child(4),
.zapasy-foot td:nth-child(6),
.zapasy-foot td:nth-child(7) {
    text-align: center;
}

.zapasy-foot-celkem {
    background: var(--green-dark);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.zapasy-foot-label {
    background: #1fae5122;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    font-weight: 700;
}

.soutez-row-hidden {
    display: none;
}

.soutez-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    cursor: pointer;
    border-radius: 12px;
}

.soutez-table-wrap:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.soutez-hint {
    text-align: center;
    padding: 8px 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-dark);
    user-select: none;
}

.soutez-toggle-arrow {
    font-size: 12px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ========================= */
/*         STATS NAV         */
/* ========================= */

.stats-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.stats-nav a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--green-dark);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: background 0.18s, opacity 0.18s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.stats-nav a:hover {
    background: var(--green);
}

.cache-refresh-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #c6dbcc;
    background: linear-gradient(180deg, #f5fbf7 0%, #e2f1e6 100%);
    color: var(--green-dark);
    box-shadow: 0 8px 18px rgba(13, 36, 22, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.cache-refresh-footer {
    display: flex;
    justify-content: center;
    margin: 8px 0 0;
}

.cache-refresh-status-centered {
    text-align: center;
}

.cache-refresh-button::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(26, 26, 26, 0.92);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 5;
}

.cache-refresh-button span {
    font-size: 1.35rem;
    line-height: 1;
}

.cache-refresh-button.is-loading span {
    animation: cache-refresh-spin 1s linear infinite;
}

.cache-refresh-button:hover {
    background: linear-gradient(180deg, #edf8f0 0%, #d4ead9 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(13, 36, 22, 0.12);
}

.cache-refresh-button:hover::after,
.cache-refresh-button:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cache-refresh-button:focus-visible {
    outline: 2px solid rgba(31, 174, 81, 0.35);
    outline-offset: 2px;
}

.cache-refresh-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.cache-refresh-status {
    min-height: 1.25rem;
    margin: -10px 0 18px;
    color: var(--green-dark);
    font-size: 0.95rem;
    font-weight: 600;
}

@keyframes cache-refresh-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .stats-nav {
        gap: 6px;
    }

    .stats-nav a {
        flex: 1 1 0;
        text-align: center;
        font-size: 13px;
        padding: 8px 6px;
    }

    .cache-refresh-button::after {
        display: none;
    }
}

.stats-th-label {
    display: inline;
}

.stats-th-icon {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-sizing: border-box;
}

.top-filters-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.top-season-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 6px 14px 8px;
    margin-bottom: -1px;
    background: #f0f9f3;
    border: 1px solid #bad8c2;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
    line-height: 1.2;
}

.top-season-info-label {
    font-size: 0.72rem;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

.top-season-info-year {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.01em;
}

.top-tabs-wrap .top-filters {
    display: flex;
    gap: 0;
    margin: 12px 0 -1px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    overflow: visible;
    flex-wrap: nowrap;
}

.top-tabs-wrap .top-filters button {
    flex: 0 0 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 14px;
    border: 1px solid #bad8c2;
    border-bottom: none;
    background: #edf7f0;
    color: var(--green-dark);
    font-family: inherit;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    min-width: 62px;
    min-height: 48px;
    z-index: 1;
}

.top-tabs-wrap .top-filters button:nth-child(1) { z-index: 40; }
.top-tabs-wrap .top-filters button:nth-child(2) { z-index: 30; }
.top-tabs-wrap .top-filters button:nth-child(3) { z-index: 20; }
.top-tabs-wrap .top-filters button:nth-child(4) { z-index: 10; }

.top-tabs-wrap .top-filters button + button {
    margin-left: -6px;
}

.top-filter-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.top-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    line-height: 1;
    font-size: 1.35rem;
}

.top-filter-icon-cards {
    position: relative;
    min-width: 2rem;
}

.top-filter-icon-cards span {
    display: block;
    line-height: 1;
}

.top-filter-icon-cards span:first-child {
    position: relative;
    z-index: 2;
}

.top-filter-icon-cards span + span {
    margin-left: -1.32rem;
    transform: translateY(0.12rem);
    position: relative;
    z-index: 1;
}

.top-tabs-wrap .top-filters button::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(26, 26, 26, 0.92);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 5;
}

.top-tabs-wrap .top-filters button:hover {
    background: #e3f2e7;
    box-shadow: 0 3px 10px rgba(21, 133, 62, 0.14);
}

.top-tabs-wrap .top-filters button:hover::after,
.top-tabs-wrap .top-filters button:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.top-tabs-wrap .top-filters button:focus-visible {
    outline: 2px solid rgba(31, 174, 81, 0.35);
    outline-offset: 2px;
}

.top-tabs-wrap .top-filters button.active {
    background: var(--green-dark);
    color: white;
    border-color: var(--green-dark);
    box-shadow: 0 3px 10px rgba(21, 133, 62, 0.2);
}

.top-tabs-wrap .top-filters button.active::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--green-dark);
}

.top-tabs-table th.top-alltime-sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.top-tabs-table th.top-alltime-sortable:hover {
    background: #11683a;
}

.top-tabs-table th.top-alltime-sortable:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: -2px;
}

.top-tabs-table th.top-alltime-sortable.is-active {
    background: #0d5b30;
}

.top-tabs-table {
    margin-top: 0;
    border-radius: 0;
}

.top-tabs-table tbody tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.top-tabs-table tbody tr:last-child td:last-child  { border-radius: 0; }

.top-leader-row td {
    font-weight: 700;
}

.top-leader-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-player-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 0;
    transition: color 0.2s ease;
}

.top-player-trigger::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.85;
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.top-player-trigger:hover {
    color: #0b4b2c;
}

.top-player-trigger:focus-visible {
    outline: 2px solid rgba(17, 104, 58, 0.22);
    outline-offset: 2px;
    color: #0b4b2c;
}

.top-player-trigger:hover::before,
.top-player-trigger:focus-visible::before {
    width: 100%;
}

.top-player-trigger:hover .top-leader-icon,
.top-player-trigger:focus-visible .top-leader-icon {
    transform: none;
}

.top-leader-icon {
    font-size: 18px;
    line-height: 1;
    transition: none;
}

.top-leader-icon-negative {
    filter: saturate(1.1);
}

/* IKONY POZIC */
.pos-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    margin-right: 8px;
}

.pos-G { background: #ffd500; color: #333; }
.pos-O { background: #ff7b00; }
.pos-Z { background: #0077ff; }
.pos-U { background: #ff2e2e; }

@media (max-width: 600px) {
    html {
        font-size: 80%;
    }

    .team-view-toggle-wrap {
        margin-bottom: 16px;
    }

    .team-section-head {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .team-view-track {
        width: 52px;
        height: 26px;
    }

    .team-cards-layout {
        gap: 16px;
    }

    .team-position-group {
        padding: 16px;
        border-radius: 14px;
    }

    .player-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-card-grid .player-row {
        padding: 14px;
        border-radius: 14px;
    }

    .team-staff-card {
        padding: 14px;
        border-radius: 14px;
    }

    .player-card-number {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .team-staff-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .team-table th,
    .team-table td {
        padding: 12px;
        font-size: 1rem;
    }

    .pos-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    /* Mobilní responzivita pro statistiky */
    .stats-summary,
    .stats-table {
        font-size: 1rem;
        margin: 15px 0;
    }

    .stats-summary th,
    .stats-summary td,
    .stats-table th,
    .stats-table td {
        padding: 12px 10px;
        word-break: break-word;
        font-size: 0.95rem;
    }

    .stats-summary th,
    .stats-table th {
        font-size: 0.9rem;
        font-weight: 700;
    }

    .stats-summary th,
    .stats-table th {
        position: relative;
        text-align: center;
    }

    .stats-th-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .stats-th-icon {
        display: inline-flex;
    }

    /* Skrolování tabulky na mobilu */
    .card {
        padding: 15px;
        overflow-x: auto;
    }

    .stats-summary,
    .stats-table {
        min-width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .soutez-table {
        display: table;
        width: 100%;
        white-space: normal;
        font-size: 0.72rem;
        min-width: unset;
    }

    .soutez-table th,
    .soutez-table td {
        padding: 7px 5px;
        font-size: 0.72rem;
        word-break: break-word;
    }

    .soutez-table thead th:first-child { border-radius: 0; }
    .soutez-table thead th:last-child  { border-radius: 0; }

    .zapasy-table thead th:first-child { border-radius: 0; }
    .zapasy-table thead th:last-child  { border-radius: 0; }

    .soutez-table th:nth-child(2),
    .soutez-table td:nth-child(2) {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .top-tabs-table {
        margin: 0;
        display: table;
        width: 100%;
        white-space: normal;
        overflow: hidden;
        border-radius: 0;
        table-layout: auto;
    }

    .top-tabs-table th,
    .top-tabs-table td {
        white-space: normal;
        word-break: break-word;
    }

    .top-tabs-table .top-leader-name {
        display: inline;
    }

    /* TOP filtry na mobilu */
    .top-tabs-wrap .top-filters {
        gap: 0;
        margin: 12px 0 -1px;
        padding: 0;
        overflow-x: auto;
        overflow-y: visible;
    }

    .top-tabs-wrap .top-filters button + button {
        margin-left: -4px;
    }

    .top-tabs-wrap .top-filters button {
        flex: 0 0 40px;
        padding: 7px 6px;
        font-size: 0.85rem;
        min-width: 40px;
        min-height: 36px;
        border-radius: 8px 8px 0 0;
    }

    .top-filters-header {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .top-season-info {
        padding: 4px 8px 5px;
        min-height: 36px;
        justify-content: center;
    }

    .top-season-info-label {
        font-size: 0.6rem;
    }

    .top-season-info-year {
        font-size: 0.85rem;
    }

    .top-filter-icon {
        min-width: 1.5rem;
        font-size: 0.95rem;
    }

    .top-filter-icon-cards {
        min-width: 1.5rem;
    }

    .top-filter-icon-cards span + span {
        margin-left: -0.92rem;
        transform: translateY(0.1rem);
    }

    .top-tabs-wrap .top-filters button::after {
        display: none;
    }

    .zapasy-table th:nth-child(1),
    .zapasy-table td:nth-child(1) {
        width: 28px;
        min-width: unset;
        padding-left: 3px;
        padding-right: 3px;
        text-align: center;
    }

    /* Zápasy – kompaktní zobrazení */
    .zapasy-table {
        font-size: 0.72rem;
        min-width: unset;
        white-space: normal;
        display: table;
        width: 100%;
    }

    .zapasy-table th,
    .zapasy-table td {
        padding: 6px 4px;
        font-size: 0.72rem;
        word-break: break-word;
    }

    /* Skrytí: Střelci, ŽK, ČK */
    .zapasy-table th:nth-child(7),
    .zapasy-table td:nth-child(7),
    .zapasy-table th:nth-child(8),
    .zapasy-table td:nth-child(8),
    .zapasy-table th:nth-child(9),
    .zapasy-table td:nth-child(9) {
        display: none;
    }

    /* Skrytí střelce a karet v zápatí tabulky */
    #footTopScorer,
    .zapasy-foot td:nth-child(6),
    .zapasy-foot td:nth-child(7) {
        display: none;
    }

    /* Zkrácení názvů týmů */
    .zapasy-table td:nth-child(3),
    .zapasy-table td:nth-child(4) {
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}



.footer {
    text-align: center;
}

.social-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-links a svg {
    fill: black;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.social-links a:hover svg {
    transform: scale(1.15);
    opacity: 1;
}

/* ========================= */
/*       PLAYER MODAL        */
/* ========================= */

.player-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.player-row:hover {
    background: inherit !important;
}

.player-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 20px;
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-in-out;
    border-top: 4px solid #999;
}

#modalPositionItem.position-golman {
    background: linear-gradient(135deg, #fffbea 0%, #fff9e6 100%);
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 10px 12px;
}

#modalPositionItem.position-golman .stat-label {
    color: #000;
}

#modalPositionItem.position-golman .stat-value {
    color: #6b5306;
    font-weight: bold;
}

#modalPositionItem.position-obrance {
    background: linear-gradient(135deg, #fef3e6 0%, #fef1e0 100%);
    border-left: 4px solid #f5a623;
    border-radius: 6px;
    padding: 10px 12px;
}

#modalPositionItem.position-obrance .stat-label {
    color: #000;
}

#modalPositionItem.position-obrance .stat-value {
    color: #92400e;
    font-weight: bold;
}

#modalPositionItem.position-zaloznik {
    background: linear-gradient(135deg, #eff6ff 0%, #e8f1ff 100%);
    border-left: 4px solid #4a90e2;
    border-radius: 6px;
    padding: 10px 12px;
}

#modalPositionItem.position-zaloznik .stat-label {
    color: #000;
}

#modalPositionItem.position-zaloznik .stat-value {
    color: #1e40af;
    font-weight: bold;
}

#modalPositionItem.position-utocnik {
    background: linear-gradient(135deg, #fee2e2 0%, #fcd5d5 100%);
    border-left: 4px solid #e74c3c;
    border-radius: 6px;
    padding: 10px 12px;
}

#modalPositionItem.position-utocnik .stat-label {
    color: #000;
}

#modalPositionItem.position-utocnik .stat-value {
    color: #7f1d1d;
    font-weight: bold;
}

#modalPositionItem.position-veteran {
    background: linear-gradient(135deg, #eaf8ef 0%, #dff3e7 100%);
    border-left: 4px solid #1fae51;
    border-radius: 6px;
    padding: 10px 12px;
}

#modalPositionItem.position-veteran .stat-label {
    color: #000;
}

#modalPositionItem.position-veteran .stat-value {
    color: #166534;
    font-weight: bold;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--green-dark);
}

.modal-body {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.modal-photo {
    flex-shrink: 0;
}

.modal-photo img {
    width: 150px;
    height: 200px;
    background: #f0f0f0;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--green-dark);
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    margin: 0 0 12px 0;
    color: var(--green-dark);
    font-size: 24px;
}

.modal-header-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.player-stats {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}

.player-stats-alltime {
    justify-content: flex-start;
}

.player-stats-alltime .stat-item {
    max-width: 120px;
}

.modal-subsection {
    margin-top: 14px;
}

.modal-subsection-title {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5f6f64;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.modal-subsection-title-note {
    font-size: 0.72em;
    font-weight: 600;
    color: #7d8f83;
    text-transform: none;
    letter-spacing: 0.02em;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: #f4fff4;
    border-left: 4px solid var(--green);
    border-radius: 8px;
    flex: 1;
    gap: 3px;
}

.stat-item-matches {
    background: #f4fff4;
    border-left-color: var(--green);
}

.stat-item-goals {
    background: #f4fff4;
    border-left-color: var(--green);
}

.stat-item-assists {
    background: #f4fff4;
    border-left-color: var(--green);
}

.stat-item-yellow-card {
    background: #fff8df;
    border-left-color: #f1c84a;
}

.stat-item-red-card {
    background: #fff0f0;
    border-left-color: #e17b7b;
}

.stat-icon {
    font-size: 18px;
}

.stat-label {
    font-weight: 600;
    color: var(--green-dark);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-player-registration {
    position: relative;
    display: inline-block;
    margin: 12px 2px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #5f6f64;
    text-align: left;
}

.modal-player-registration[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(26, 26, 26, 0.92);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 5;
}

.modal-player-registration[data-tooltip]:hover::after,
.modal-player-registration[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.staff-modal-content {
    max-width: 760px;
}

.staff-modal-body {
    align-items: stretch;
    gap: 20px;
}

.staff-modal-photo img {
    width: 220px;
    height: 260px;
    border-color: #9bd1aa;
    background: linear-gradient(180deg, #f8fdf8 0%, #edf8ef 100%);
}

.staff-modal-info {
    justify-content: flex-start;
    gap: 14px;
}

.staff-modal-header-info {
    grid-template-columns: minmax(180px, 240px);
    margin-bottom: 0;
}

.staff-modal-text-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f4fff4;
    border-left: 4px solid var(--green);
}

.staff-modal-text-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.staff-modal-text {
    margin: 0;
    line-height: 1.6;
    color: #335240;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 12px;
    }

    .modal-body {
        flex-direction: row;
        gap: 10px;
        align-items: flex-start;
    }

    .modal-photo {
        flex-shrink: 0;
        min-width: 70px;
    }

    .modal-photo img {
        width: 70px;
        height: 90px;
        border-radius: 8px;
    }

    .staff-modal-photo img {
        width: 120px;
        height: 150px;
    }

    .modal-info {
        flex: 1;
        justify-content: flex-start;
    }

    .modal-info h2 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .staff-modal-info {
        gap: 10px;
    }

    .staff-modal-header-info {
        grid-template-columns: 1fr;
    }

    .modal-header-info {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 8px;
    }

    .modal-header-info .stat-item {
        padding: 6px;
        gap: 2px;
    }

    .player-stats {
        gap: 6px;
    }

    .stat-item {
        padding: 6px;
        gap: 2px;
    }

    .stat-icon {
        font-size: 12px;
    }


    .stat-label {
        font-size: 8px;
    }

    .stat-value {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 30% auto;
        padding: 10px;
    }

    .close-modal {
        font-size: 22px;
        float: left;
    }

    .modal-body {
        flex-direction: row;
        gap: 8px;
    }

    .modal-photo img {
        width: 60px;
        height: 80px;
    }

    .staff-modal-body {
        flex-direction: column;
    }

    .staff-modal-photo img {
        width: 100%;
        max-width: 220px;
        height: 220px;
    }

    .modal-info h2 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .modal-header-info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        margin-bottom: 6px;
    }

    .modal-header-info .stat-item {
        padding: 5px;
    }

    .player-stats {
        gap: 6px;
    }

    .stat-item {
        padding: 6px;
        gap: 2px;
    }

    .stat-icon {
        font-size: 12px;
    }

    .stat-label {
        font-size: 8px;
    }

    .stat-value {
        font-size: 12px;
    }
}