/* HEADER MATCHES (dlaždice v hlavičce) */
.header-matches {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 3;
    position: relative;
}

.header-match-cards {
    display: flex;
    flex-direction: row;
    height: 100%;
    align-items: stretch;
}

.header-match-card {
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    border-radius: 0;
    box-shadow: none;
    padding: 10px 20px;
    min-width: 150px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.82rem;
    box-sizing: border-box;
    max-width: 220px;
    height: 100%;
    word-break: break-word;
    flex: 0 0 190px;
    border-left: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.18s;
    cursor: pointer;
}
.header-match-card:hover {
    background: rgba(0, 0, 0, 0.48);
}
.header-match-card.header-match-next {
    background: rgba(21, 133, 62, 0.55);
    color: var(--white);
    border-left: 1px solid rgba(255,255,255,0.18);
}
.header-match-card.header-match-next:hover {
    background: rgba(21, 133, 62, 0.72);
}
.header-match-card .header-match-label {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 3px;
    color: inherit;
}
.header-match-card .header-match-meta {
    font-size: 0.78em;
    opacity: 0.7;
    margin-bottom: 6px;
}
.header-match-card .header-match-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.header-match-card .header-match-matchup img {
    height: 34px;
    width: auto;
    max-width: 44px;
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    padding: 2px;
    display: block;
}
.header-match-card .header-match-matchup-score {
    font-weight: 700;
    font-size: 1.08em;
    min-width: 28px;
    text-align: center;
    color: #fff;
}
@media (max-width: 900px) {
    .header-match-cards {
        max-width: 280px;
    }
    .header-match-card {
        flex: 0 0 140px;
        max-width: 160px;
        padding: 8px 10px;
        font-size: 0.72rem;
    }
}
@media (max-width: 600px) {
    .header-matches {
        display: none !important;
    }
}
/* AKTUALITY – dlaždice s výsledky zápasů */
.aktuality-matches-row {
    display: grid;
    gap: 10px;
    margin: 1.2em 0;
}

.aktuality-highlight-match {
    border: 1px solid #d9ebdd;
    background: #fff;
}

.match-calendar-item.aktuality-highlight-match--last {
    background: linear-gradient(180deg, rgba(21, 133, 62, 0.98) 0%, rgba(18, 112, 53, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.26);
}

.aktuality-highlight-match--last .match-calendar-item-meta,
.aktuality-highlight-match--last .match-calendar-team-name,
.aktuality-highlight-match--last .match-calendar-score {
    color: rgba(255, 255, 255, 0.95);
}

.aktuality-highlight-match--last .match-calendar-team img {
    border-color: rgba(255, 255, 255, 0.26);
}

.aktuality-highlight-match--last .match-calendar-item-label {
    color: #f3fff8;
}

.match-calendar-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.match-calendar-toggle-link {
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px dashed rgba(21, 133, 62, 0.45);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.match-calendar-toggle-link:hover {
    color: var(--green-dark);
    border-bottom-color: var(--green);
}

.match-calendar-toggle-link[aria-expanded="true"] {
    color: var(--green);
    border-bottom-color: var(--green);
}

.match-calendar-card {
    margin-top: 14px;
    border: 1px solid rgba(21, 133, 62, 0.14);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
    padding: 14px;
}

.match-calendar-card h3 {
    margin: 0 0 10px;
}

.match-calendar-season-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 14px;
}

.match-calendar-season-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(21, 133, 62, 0.18);
    background: #f4faf6;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.match-calendar-season-link:hover,
.match-calendar-season-link:focus-visible {
    background: #e6f4ea;
    border-color: rgba(21, 133, 62, 0.3);
    transform: translateY(-1px);
}

.match-calendar-season-link.is-active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

.match-calendar-nav {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.match-calendar-nav-btn {
    border: none;
    border-radius: 12px;
    height: 40px;
    background: #eaf5ee;
    color: var(--green-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.match-calendar-nav-btn:hover:not(:disabled) {
    background: rgba(21, 133, 62, 0.16);
}

.match-calendar-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.match-calendar-month {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.match-calendar-list {
    display: grid;
    gap: 10px;
}

.match-calendar-season-section {
    border-top: 1px solid rgba(21, 133, 62, 0.14);
    padding-top: 12px;
}

.match-calendar-season-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.match-calendar-season-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
}

.match-calendar-season-content {
    display: grid;
    gap: 10px;
}

.match-calendar-month-section {
    display: grid;
    gap: 8px;
}

.match-calendar-month-title {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5b7363;
    font-weight: 700;
}

.match-calendar-month-list {
    display: grid;
    gap: 10px;
}

.match-calendar-item {
    border-radius: 14px;
    border: 1px solid #d9ebdd;
    background: #fff;
    padding: 12px 14px;
}

.match-calendar-item--clickable {
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.match-calendar-item--clickable:hover,
.match-calendar-item--clickable:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(21, 133, 62, 0.12);
}

.match-calendar-item.zapas-win {
    background: #f0fff4;
    border-color: #cfead6;
}

.match-calendar-item.zapas-win-pen {
    background: #eef4ff;
    border-color: #d7e4fb;
}

.match-calendar-item.zapas-loss-pen {
    background: #fffbe6;
    border-color: #efe3b2;
}

.match-calendar-item.zapas-loss {
    background: #fff5f5;
    border-color: #f0d9d9;
}

.match-calendar-item-meta {
    font-size: 0.78rem;
    color: #597264;
    margin-bottom: 8px;
}

.match-calendar-item-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.match-calendar-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.match-calendar-item-main .match-calendar-team:first-child {
    justify-self: start;
    justify-content: flex-start;
}

.match-calendar-item-main .match-calendar-team:last-child {
    justify-self: end;
    justify-content: flex-end;
    flex-direction: row-reverse;
    text-align: right;
}

.match-calendar-team img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #dce8df;
    flex-shrink: 0;
}

.match-calendar-team-name {
    font-size: 0.9rem;
    line-height: 1.2;
    color: #20382b;
}

.match-calendar-score {
    min-width: 54px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
    justify-self: center;
}

.match-calendar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    justify-self: center;
}

.match-calendar-article-link {
    font-size: 0.72rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green-dark);
    text-decoration: none;
    border-bottom: 1px dashed rgba(21, 133, 62, 0.4);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.match-calendar-article-link:hover {
    color: var(--green);
    border-bottom-color: var(--green);
}

.match-calendar-empty {
    margin: 0;
    color: #5d7164;
}

@media (max-width: 768px) {
    .match-calendar-item-head {
        gap: 8px;
        align-items: flex-start;
        flex-direction: column;
    }

    .match-calendar-nav {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
    }

    .match-calendar-nav-btn {
        height: 36px;
        border-radius: 10px;
    }

    .match-calendar-item {
        padding: 10px 11px;
    }

    .match-calendar-season-title {
        font-size: 0.93rem;
    }

    .match-calendar-month-title {
        font-size: 0.76rem;
    }

    .match-calendar-item-main {
        gap: 6px;
    }

    .match-calendar-team {
        gap: 6px;
    }

    .match-calendar-team img {
        width: 24px;
        height: 24px;
    }

    .match-calendar-team-name {
        font-size: 0.82rem;
    }

    .match-calendar-score {
        min-width: 42px;
        font-size: 0.9rem;
    }
}

/* 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;
}
/* stats nav styles are defined in the unified STATS NAV block below */
/* MOBILE MATCH STRIP */
#mobile-match-strip {
    display: none;
}

@media (max-width: 700px) {
    #mobile-match-strip {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        background: rgba(18, 60, 30, 0.82);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        padding: 4px 8px;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
        z-index: 200;
    }

    .mms-item {
        display: flex;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        min-width: 0;
        flex: 1;
        justify-content: center;
        padding: 2px 4px;
    }

    .mms-logo {
        width: 18px;
        height: 18px;
        object-fit: contain;
        border-radius: 2px;
        flex-shrink: 0;
    }

    .mms-name {
        font-size: 0.62rem;
        font-weight: 600;
        color: rgba(255,255,255,0.85);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60px;
    }

    .mms-score {
        font-size: 0.7rem;
        font-weight: 700;
        color: #ffffff;
        white-space: nowrap;
        padding: 0 3px;
    }

    .mms-last .mms-score {
        color: #ffffff;
    }

    .mms-last::before {
        content: "";
        flex-shrink: 0;
        margin-right: 2px;
        line-height: 1;
    }

    .mms-last--win .mms-score {
        color: #7fffaa;
    }

    .mms-last--win::before {
        content: "✓";
        font-size: 0.6rem;
        font-weight: 700;
        color: #7fffaa;
    }

    .mms-last--loss .mms-score {
        color: #ff7070;
    }

    .mms-last--loss::before {
        content: "✗";
        font-size: 0.6rem;
        font-weight: 700;
        color: #ff7070;
    }

    .mms-last--draw .mms-score {
        color: rgba(255,255,255,0.75);
    }

    .mms-last--draw::before {
        content: "=";
        font-size: 0.6rem;
        font-weight: 700;
        color: rgba(255,255,255,0.55);
    }

    .mms-next .mms-score {
        color: rgba(255,255,255,0.65);
        font-weight: 500;
    }

    .mms-next::before {
        content: "▷";
        font-size: 0.55rem;
        color: rgba(255,255,255,0.45);
        flex-shrink: 0;
        margin-right: 2px;
        line-height: 1;
    }

    .mms-sep {
        width: 1px;
        height: 20px;
        background: rgba(255,255,255,0.2);
        flex-shrink: 0;
        margin: 0 4px;
    }
}

: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;
}

.aktuality-news-card {
    margin-bottom: 16px;
}

.aktuality-news-panel {
    border: 1px solid #d7e8dc;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
    overflow: hidden;
}

.aktuality-news-summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    gap: 6px;
    padding: 14px 16px;
}

.aktuality-news-summary::-webkit-details-marker {
    display: none;
}

.aktuality-news-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.aktuality-news-summary-head strong {
    color: var(--green-dark);
    font-size: 0.84rem;
}

.aktuality-news-summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.aktuality-news-summary-item {
    padding: 6px 0;
}

.aktuality-news-summary-date {
    margin: 0 0 3px;
    color: #537062;
    font-size: 0.62rem;
    font-weight: 700;
}

.aktuality-news-summary-text {
    margin: 0;
    color: #1e3529;
}

.aktuality-news-summary-toggle {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 4px auto 0;
    border-radius: 999px;
    background: #ecf5ef;
    color: #29533d;
}

.aktuality-news-summary-toggle::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid currentColor;
}

.aktuality-news-panel[open] .aktuality-news-summary-toggle {
    background: rgba(21, 133, 62, 0.16);
    color: #1b4f35;
}

.aktuality-news-panel[open] .aktuality-news-summary-toggle::before {
    border-top: 0;
    border-bottom: 7px solid currentColor;
}

.aktuality-news-body {
    border-top: 1px solid #dcece1;
    padding: 12px 16px 14px;
}

.aktuality-news-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.aktuality-news-item {
    padding: 8px 0;
}

.aktuality-news-item-date {
    margin: 0 0 5px;
    color: #5c7266;
    font-size: 0.62rem;
    font-weight: 700;
}

.aktuality-news-item-text {
    margin: 0;
    color: #1f342a;
    white-space: normal;
}

.aktuality-news-summary-text,
.aktuality-news-item-text {
    font-size: 0.90rem;
    line-height: 1.5;
}

.aktuality-news-summary-text .aktuality-news-markup-list,
.aktuality-news-item-text .aktuality-news-markup-list {
    margin: 4px 0 0 16px;
    padding: 0;
}

.aktuality-news-summary-text a,
.aktuality-news-item-text a {
    color: #1d583a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.aktuality-news-empty {
    margin: 0;
    color: #4f6659;
}

.aktuality-news-actions {
    margin-top: 12px;
    display: flex;
}

.aktuality-news-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(21, 133, 62, 0.1);
    color: #1d583a;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
}

.aktuality-news-action:hover {
    background: rgba(21, 133, 62, 0.16);
}

.article-tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.article-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(21, 133, 62, 0.2);
    background: #f4faf6;
    color: #1f4f37;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
}

.article-tag-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(21, 133, 62, 0.14);
    font-size: 0.68rem;
}

.article-tag-chip.is-active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

.article-tag-chip.is-active span {
    background: rgba(255, 255, 255, 0.2);
}

.article-link-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-link-tag-preview,
.article-tag-badge-preview {
    background: rgba(0, 119, 255, 0.2);
}

.article-link-tag-zapas,
.article-tag-badge-zapas {
    background: rgba(229, 57, 53, 0.2);
}

.article-link-tag-tipovacka,
.article-tag-badge-tipovacka {
    background: rgba(156, 39, 176, 0.2);
}

.article-link-tag-klub,
.article-tag-badge-klub {
    background: rgba(31, 174, 81, 0.2);
}

.article-tags {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.article-tag-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #18432c;
    background: rgba(31, 174, 81, 0.14);
}

.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-comment-count {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(7, 20, 12, 0.72);
    color: rgba(244, 255, 248, 0.95);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.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-nav-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.article-tag-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    margin-bottom: 0;
}

.article-season-switcher-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: auto;
}

.article-quick-filter-btn {
    border: 1px solid rgba(21, 133, 62, 0.18);
    background: #f4faf6;
    color: #1f4f37;
    border-radius: 999px;
    min-height: 30px;
    padding: 0 11px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: normal;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.article-quick-filter-btn:hover {
    background: #e8f4ec;
}

.article-quick-filter-btn.is-active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

.article-season-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #466456;
}

.article-season-switcher select {
    min-height: 30px;
    border: 1px solid rgba(21, 133, 62, 0.22);
    border-radius: 999px;
    background: #f8fcfa;
    color: #1f4f37;
    padding: 0 10px;
    font-size: 0.76rem;
    font-weight: 700;
}

.article-quick-filters-empty {
    margin: 12px 0 0;
    color: #5c7367;
    font-size: 0.85rem;
}

.article-related {
    margin-top: 18px;
}

.article-related h4 {
    margin: 0 0 10px;
    color: #1d553a;
    font-size: 1rem;
}

.article-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.article-related-item {
    display: grid;
    gap: 4px;
    text-decoration: none;
    color: #1f3a2d;
    border: 1px solid #d9e8df;
    border-radius: 12px;
    padding: 9px 10px;
    background: #f8fcf9;
}

.article-related-item:hover {
    border-color: #c8dfd1;
    background: #eef7f1;
}

.article-related-item strong {
    font-size: 0.9rem;
    line-height: 1.35;
}

.article-related-item span {
    font-size: 0.74rem;
    color: #5b7266;
}

@media (max-width: 920px) {
    .article-nav-toolbar {
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

    .article-tag-filters {
        flex-wrap: wrap;
        gap: 6px;
        flex: 0 1 auto;
    }

    .article-season-switcher-wrap {
        width: auto;
        justify-content: flex-start;
        margin-left: 0;
    }

    .article-tag-chip,
    .article-quick-filter-btn {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .article-tag-chip span {
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 0.62rem;
    }

    .article-season-switcher {
        gap: 4px;
        font-size: 0.68rem;
    }

    .article-season-switcher select {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.7rem;
        max-width: 100px;
    }
}

.article-card.is-active {
    display: block;
}

#articleStickyBar {
    display: none;
}

@media (max-width: 700px) {
    #articleStickyBar {
        display: flex;
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        z-index: 90;
        align-items: center;
        gap: 10px;
        padding: 8px 14px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        transform: translateY(-110%);
        transition: transform 0.22s ease;
    }

    #articleStickyBar.is-visible {
        transform: translateY(0);
    }

    .article-sticky-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        border-radius: 8px;
        background: #eef5f1;
        color: var(--green-dark);
        text-decoration: none;
        font-size: 0.82rem;
    }

    .article-sticky-title {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.8rem;
        font-weight: 700;
        color: #1a2d22;
    }
}

.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: auto;
        height: auto;
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin-left: auto;
        margin-right: auto;
}

@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: auto;
        height: auto;
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .article-card::after {
        content: "";
        display: table;
        clear: both;
    }
}

.article-text {
    line-height: 1.6;
    white-space: normal;
}

.article-text p {
    margin: 0 0 0.95em;
}

.article-text p:last-child {
    margin-bottom: 0;
}

.article-text h4,
.article-text h5,
.article-text h6 {
    font-family: 'Montserrat', sans-serif;
    margin: 1.1em 0 0.5em;
    line-height: 1.25;
    color: #10361f;
}

.article-text h4 {
    font-size: 1.12rem;
}

.article-text h5 {
    font-size: 1rem;
}

.article-text h6 {
    font-size: 0.92rem;
}

.article-text ul {
    margin: 0.65em 0 0.95em 1.1em;
    padding: 0;
}

.article-text li {
    margin: 0.3em 0;
}

.article-match-stats {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid #d7e7dc;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
}

.article-match-stats h4 {
    margin: 0 0 10px;
    color: #15412b;
}

.article-match-stats-wrap {
    overflow-x: auto;
}

.article-match-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.article-match-stats-table th,
.article-match-stats-table td {
    padding: 8px 10px;
    border: 1px solid #dfebe3;
    text-align: left;
    vertical-align: top;
}

.article-match-stats-table th {
    width: 18%;
    background: #eef6f1;
    color: #1d4f35;
    font-weight: 700;
}

.article-match-stats-table td {
    background: #fff;
    color: #1b2d24;
}

.article-match-team-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-match-team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d7e7dc;
    padding: 2px;
    flex-shrink: 0;
}

.article-match-score {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    gap: 8px;
    min-height: 32px;
    padding: 2px 4px;
    color: #2c3f34;
}

.article-match-score--win {
    color: #17643f;
}

.article-match-score--loss {
    color: #b42318;
}

.article-match-score-value {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

.article-match-score-sep {
    font-size: 1em;
    font-weight: 700;
    color: #6a8a79;
    transform: translateY(1px);
}

.article-match-score--loss .article-match-score-sep {
    color: #cc7168;
}

.article-match-score-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 2px;
    border-radius: 999px;
    background: #dff0e5;
    color: #1b5a3a;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.article-match-score--win .article-match-score-note {
    background: #d9f2e4;
    color: #115e36;
}

.article-match-score--loss .article-match-score-note {
    background: #fde8e7;
    color: #9f1a16;
}

.article-match-score-fallback {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #d7e7dc;
    background: #f1f7f3;
    color: #143a27;
    font-size: 1em;
    font-weight: 700;
}

.article-match-cards {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-match-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 24px;
    padding: 0 6px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 0.84rem;
    font-weight: 700;
    color: #1f2328;
}

.article-match-card-icon--yellow {
    background: #ffd84d;
}

.article-match-card-icon--red {
    background: #ef4444;
    color: #ffffff;
}

.article-match-stats-table .article-player-link {
    color: #1b5a3a;
    text-decoration: underline;
    text-decoration-color: rgba(27, 90, 58, 0.45);
    text-underline-offset: 2px;
    font-weight: 600;
}

.article-match-stats-table .article-player-link:hover,
.article-match-stats-table .article-player-link:focus-visible {
    color: #0f3b25;
    text-decoration-color: rgba(15, 59, 37, 0.8);
}

.article-match-stats-mobile {
    display: none;
}

.article-match-stats-desktop {
    display: grid;
    gap: 14px;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #dbe8df;
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
}

.article-match-stats-desktop--win {
    border-color: #cfe7d8;
}

.article-match-stats-desktop--loss {
    border-color: #f1c7c4;
}

.article-match-stats-desktop--draw {
    border-color: #dde5df;
}

.article-match-stats-desktop-meta {
    display: grid;
    justify-items: center;
    gap: 4px;
    width: fit-content;
    margin: 0 auto;
    color: #1d4f35;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.article-match-stats-desktop-meta span {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.article-match-stats-desktop-meta-round {
    font-size: 0.78rem;
}

.article-match-stats-desktop-meta-line {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4b6658;
}

.article-match-stats-desktop-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.article-match-stats-desktop-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

.article-match-stats-desktop-team-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #d7e7dc;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(18, 47, 32, 0.08);
}

.article-match-stats-desktop-team-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #20382b;
    line-height: 1.2;
}

.article-match-stats-desktop-result {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.article-match-stats-desktop-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #2c3f34;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.article-match-stats-desktop--win .article-match-stats-desktop-score {
    background: #dff3e8;
    border-color: #b9dec7;
}

.article-match-stats-desktop--loss .article-match-stats-desktop-score {
    background: #fde5e3;
    border-color: #f1c0bb;
}

.article-match-stats-desktop--draw .article-match-stats-desktop-score {
    background: #edf2ef;
    border-color: #d7e2da;
}

.article-match-stats-desktop-score.article-match-score--win {
    color: #17643f;
}

.article-match-stats-desktop-score.article-match-score--loss {
    color: #b42318;
}

.article-match-stats-desktop-score-fallback {
    justify-content: center;
    min-height: 0;
    padding: 8px 16px;
    font-size: 1.2rem;
}

.article-match-stats-desktop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.article-match-stats-desktop-tile {
    min-width: 0;
    padding: 12px 12px 11px;
    border: 1px solid #dfeae3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
}

.article-match-stats-desktop-label {
    display: block;
    margin-bottom: 6px;
    color: #1d4f35;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-match-stats-desktop-value {
    display: block;
    color: #1b2d24;
    font-size: 0.92rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-match-stats-desktop-value .article-player-link,
.article-match-stats-mobile-richtext .article-player-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    color: #1b5a3a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, text-shadow 0.15s ease, opacity 0.15s ease;
}

.article-match-stats-desktop-value .article-player-link:hover,
.article-match-stats-desktop-value .article-player-link:focus-visible,
.article-match-stats-mobile-richtext .article-player-link:hover,
.article-match-stats-mobile-richtext .article-player-link:focus-visible {
    color: #0f3b25;
    text-shadow: 0 0 0 transparent, 0 0 0.01px currentColor;
    opacity: 0.92;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.article-match-stats-desktop-value .article-player-link:focus-visible,
.article-match-stats-mobile-richtext .article-player-link:focus-visible {
    outline: none;
}

.article-match-stats-desktop-cards {
    gap: 7px;
}

.article-match-stats-desktop-top-contributor {
    padding: 12px;
    border: 1px solid #dfeae3;
    border-radius: 14px;
    background: #f8fcf9;
    text-align: center;
}

.article-match-stats-desktop-top-contributor-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    color: #1b2d24;
    font-size: 0.96rem;
    line-height: 1.35;
}

.article-match-stats-desktop-top-contributor-value strong,
.article-match-stats-mobile-top-contributor strong {
    color: #154d30;
    font-weight: 800;
}

.article-match-stats-desktop-top-contributor-value em,
.article-match-stats-mobile-top-contributor em {
    color: #4b6658;
    font-style: normal;
    font-size: 0.84em;
}

.article-match-stats-motm-lines {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    color: #1f3629;
    font-size: 0.84rem;
    line-height: 1.25;
    text-align: center;
}

.article-match-stats-motm-lines span:last-child {
    color: #1d4f35;
    font-weight: 700;
}

.article-match-stats-motm-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.article-match-stats-wrap {
    display: none;
}

@media (max-width: 700px) {
    .article-match-stats-desktop {
        display: none;
    }

    .article-match-stats-mobile {
        display: grid;
        gap: 10px;
        margin-top: 12px;
    }

    .article-match-stats-mobile-row {
        display: grid;
        gap: 8px;
    }

    .article-match-stats-mobile-row--meta,
    .article-match-stats-mobile-row--pair {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .article-match-stats-mobile-row--pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-match-stats-mobile-match {
        display: grid;
        gap: 8px;
    }

    .article-match-stats-mobile-row--teams {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-match-stats-mobile-team,
    .article-match-stats-mobile-result,
    .article-match-stats-mobile-tile {
        min-width: 0;
        padding: 10px 10px 9px;
        border: 1px solid #dfeae3;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(18, 47, 32, 0.05);
    }

    .article-match-stats-mobile-result {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .article-match-stats-mobile-result .article-match-score,
    .article-match-stats-mobile-result .article-match-score-fallback {
        justify-content: center;
    }

    .article-match-stats-mobile-label {
        display: block;
        margin-bottom: 4px;
        color: #1d4f35;
        font-size: 0.67rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .article-match-stats-mobile-value {
        display: block;
        color: #1b2d24;
        font-size: 0.88rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .article-match-stats-mobile-team-cell {
        gap: 6px;
        font-size: 0.9rem;
    }

    .article-match-stats-mobile-team-cell .article-match-team-logo {
        width: 18px;
        height: 18px;
    }

    .article-match-stats-mobile-result .article-match-score,
    .article-match-stats-mobile-result .article-match-score-fallback {
        margin-top: 0;
    }

    .article-match-stats-mobile-result .article-match-score {
        gap: 6px;
        padding: 0;
        min-height: 0;
    }

    .article-match-stats-mobile-result .article-match-score-value,
    .article-match-stats-mobile-result .article-match-score-sep {
        font-size: 0.98rem;
    }

    .article-match-stats-mobile-result .article-match-score-note {
        min-width: 18px;
        height: 18px;
        margin-left: 0;
        font-size: 0.64rem;
    }

    .article-match-stats-mobile-result .article-match-score-fallback {
        padding: 6px 8px;
        font-size: 0.92rem;
        border-radius: 8px;
    }

    .article-match-stats-mobile-richtext a {
        color: #1b5a3a;
        text-decoration-color: rgba(27, 90, 58, 0.45);
    }

    .article-match-stats-mobile-cards {
        gap: 6px;
        flex-wrap: wrap;
    }

    .article-match-stats-mobile-top-contributor .article-match-stats-mobile-value {
        display: inline-flex;
        align-items: baseline;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }

    .article-match-stats-mobile-top-contributor {
        text-align: center;
    }

    .article-match-stats-mobile-top-contributor .article-match-stats-motm-lines {
        text-align: center;
        margin-top: 8px;
    }

    .article-match-card-icon {
        min-width: 18px;
        height: 20px;
        padding: 0 5px;
        font-size: 0.76rem;
    }

    .article-match-team-cell {
        gap: 6px;
    }

    .article-match-team-logo {
        width: 18px;
        height: 18px;
    }

    .article-match-score {
        min-height: 0;
        padding: 0;
        gap: 6px;
    }

    .article-match-score-value,
    .article-match-score-sep {
        font-size: 0.95rem;
    }

    .article-match-score-note {
        min-width: 18px;
        height: 18px;
        margin-left: 0;
        font-size: 0.64rem;
    }

    .article-match-score-fallback {
        min-height: 0;
        padding: 6px 8px;
        font-size: 0.92rem;
        border-radius: 8px;
    }

    .article-match-cards {
        gap: 6px;
        flex-wrap: wrap;
    }

    .article-match-card-icon {
        min-width: 18px;
        height: 20px;
        padding: 0 5px;
        font-size: 0.76rem;
    }
}

.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, opacity 0.3s ease;
}

.article-lazy-img {
    opacity: 0;
}

.article-lazy-img.is-loaded {
    opacity: 1;
}

.article-gallery a:hover img {
    transform: scale(1.04);
}

.article-comments {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #e8ece9;
    clear: both;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
}

.article-comments h4 {
    margin: 0 0 10px;
    color: #174429;
}

.article-comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-self: stretch;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6ede8;
}

.article-comment-composer {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 8px;
    align-items: center;
    width: 100%;
    align-self: stretch;
}

.article-comment-composer textarea {
    width: 100%;
    border: 1px solid #bfd9c8;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    resize: none;
    min-height: 46px;
    height: 46px;
    line-height: 1.2;
    box-sizing: border-box;
}

.comment-submit-btn {
    width: 46px;
    height: 46px;
    padding: 8px;
    box-sizing: border-box;
    border: none;
    border-radius: 999px;
    background: var(--green-dark);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 53, 29, 0.16);
}

.comment-submit-btn i {
    position: relative;
    top: 0;
}

.comment-submit-btn:hover {
    filter: brightness(1.06);
}

.comment-emoji-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    align-self: stretch;
}

.comment-emoji-toggle {
    background: #fff;
    border: 1px solid #b8d4bf;
    border-radius: 999px;
    width: 46px;
    height: 46px;
    padding: 8px;
    box-sizing: border-box;
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.12s, border-color 0.12s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comment-emoji-toggle:hover,
.comment-emoji-toggle[aria-expanded="true"] {
    background: #eaf3ec;
    border-color: #5a9b6e;
}

.comment-emoji-panel {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    overflow: visible;
    max-width: min(100vw, 324px);
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #dce7de;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(18, 60, 36, 0.12);
    z-index: 2;
}

.comment-emoji-panel[hidden] {
    display: none;
}

.comment-emoji-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 3px 5px;
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.12s, border-color 0.12s;
}

.comment-emoji-btn:hover {
    background: #eaf3ec;
    border-color: #b8d4bf;
}

.article-comments-login-note,
.article-comments-empty {
    margin: 0;
    color: #56635a;
    font-size: 0.94rem;
}

.article-comment-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-self: stretch;
}

.article-comment-item {
    border: 1px solid #e2e9e4;
    border-radius: 10px;
    background: #f8fbf9;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
}

.article-comment-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    font-size: 0.9rem;
    color: #4c5b51;
}

.article-comment-head strong {
    color: #123c24;
}

.article-comment-status {
    margin-top: 4px;
    font-size: 0.82rem;
    color: #5a665f;
}

.article-comment-body {
    margin-top: 6px;
    white-space: pre-wrap;
    line-height: 1.48;
}

.article-comment-admin-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.article-comment-admin-actions button {
    border: 1px solid #b8c9be;
    border-radius: 8px;
    background: #fff;
    color: #234b33;
    padding: 5px 10px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.article-comment-admin-actions button.danger {
    border-color: #d9b5b5;
    color: #8b2222;
}

.article-comment-votes {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.comment-vote-form {
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-vote-btn {
    background: none;
    border: none;
    padding: 3px 5px;
    cursor: pointer;
    font-size: 1rem;
    color: #6b8c72;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}

.comment-vote-btn:hover {
    background: #eaf3ec;
    color: #234b33;
}

.comment-vote-btn.active.comment-vote-like {
    color: #1e7e34;
}

.comment-vote-btn.active.comment-vote-dislike {
    color: #b02020;
}

.comment-vote-count {
    font-size: 0.82rem;
    color: #555;
    min-width: 14px;
    text-align: center;
}

.comment-vote-readonly {
    font-size: 0.82rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.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) {
    .aktuality-news-summary {
        padding: 12px;
    }

    .aktuality-news-body {
        padding: 10px 12px 12px;
    }

    .aktuality-news-summary-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-tag-filters {
        gap: 6px;
        margin-bottom: 12px;
    }

    .article-tag-chip {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .article-tag-chip span {
        min-width: 16px;
        height: 16px;
        font-size: 0.62rem;
        padding: 0 4px;
    }

    .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);
    align-self: center;
    margin-top: 0;
    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-hero-meta-links {
    margin: 8px 0 26px;
    text-align: center;
}

.uvod-inline-link {
    color: #245f36;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(36, 95, 54, 0.35);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.uvod-inline-link:hover {
    color: #1a4628;
    border-bottom-color: rgba(26, 70, 40, 0.9);
}

.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;
}

.home-hub {
    display: grid;
    gap: 26px;
    margin-bottom: 30px;
}

.home-hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 0;
    background: linear-gradient(135deg, #f6fbf7 0%, #ffffff 58%, #eef7f0 100%);
    border: 1px solid rgba(33, 74, 54, 0.12);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(18, 43, 30, 0.08);
}

.home-hub-hero-media {
    position: relative;
    min-height: 100%;
    background: #10271a;
}

.home-hub-hero-media .uvod-hero-carousel,
.home-hub-hero-media .uvod-hero-img {
    height: 100%;
    min-height: 420px;
}

.home-hub-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 34px 34px 36px;
}

.home-hub-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(26, 92, 52, 0.08);
    color: #1a5c34;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hub-title {
    margin: 0;
    font-family: 'Bebas Neue', 'Montserrat', sans-serif;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: #143824;
}

.home-hub-subline {
    margin: 0;
    color: #587060;
    font-size: 0.95rem;
    font-weight: 600;
}

.home-hub-lead {
    margin: 0;
    color: #3d5247;
    font-size: 1rem;
    line-height: 1.7;
}

.home-hub-preview-slot {
    min-height: 6.8rem;
    display: flex;
    align-items: flex-start;
}

.home-hub-preview-slot .home-hub-lead {
    width: 100%;
}

.home-hub-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(33, 74, 54, 0.1);
}

.home-hub-scoreboard-team {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    color: #183826;
}

.home-hub-scoreboard-team img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 8px 16px rgba(12, 32, 21, 0.08);
}

.home-hub-scoreboard-team strong {
    font-size: 1rem;
    line-height: 1.35;
}

.home-hub-scoreboard-vs {
    color: #6d8678;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.home-hub-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(22, 59, 37, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.home-hub-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(22, 59, 37, 0.16);
}

.home-hub-action-secondary {
    background: rgba(33, 74, 54, 0.08);
    color: var(--green-dark);
    box-shadow: none;
}

.home-hub-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.home-hub-card {
    grid-column: span 4;
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(33, 74, 54, 0.1);
    box-shadow: 0 10px 24px rgba(18, 43, 30, 0.06);
}

.home-hub-card-clickable {
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-hub-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(18, 43, 30, 0.1);
    border-color: rgba(33, 74, 54, 0.18);
}

.home-hub-card-result,
.home-hub-card-form,
.home-hub-card-media,
.home-hub-card-article {
    grid-column: span 6;
}

.home-hub-card-table {
    grid-column: 1 / -1;
}

.home-hub-card-kicker {
    color: #587060;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hub-card h3 {
    margin: 0;
    color: #143824;
    font-size: 1.2rem;
    line-height: 1.35;
}

.home-hub-result-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 58px;
}

.home-hub-result-team {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.home-hub-result-team img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 5px 10px rgba(12, 32, 21, 0.08);
}

.home-hub-result-team span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #40584b;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-hub-result-center {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.home-hub-result-score {
    align-self: center;
    color: #143824;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.home-hub-result-meta {
    color: #6c8477;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.home-hub-result-scorers {
    font-size: 0.88rem;
    line-height: 1.45;
}

.home-hub-card-meta {
    margin: -2px 0 0;
    color: #587060;
    font-size: 0.9rem;
    font-weight: 600;
}

.home-hub-card-text,
.home-hub-card-note {
    margin: 0;
    color: #4a6055;
    line-height: 1.65;
}

.home-hub-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.home-hub-card-link {
    color: #1a5c34;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 92, 52, 0.26);
    transition: border-color 0.18s ease, color 0.18s ease;
}

.home-hub-card-link:hover {
    color: #123f24;
    border-bottom-color: rgba(18, 63, 36, 0.75);
}

.home-hub-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.home-hub-list li {
    position: relative;
    padding-left: 16px;
    color: #284436;
}

.home-hub-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.home-hub-form-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.home-hub-form-strip-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 12px;
}

.home-hub-form-strip-link:hover .home-hub-form-strip,
.home-hub-form-strip-link:focus-visible .home-hub-form-strip {
    box-shadow: 0 0 0 1px rgba(31, 122, 69, 0.16), 0 8px 20px rgba(14, 39, 23, 0.08);
}

.home-hub-form-strip-link:focus-visible {
    outline: 2px solid rgba(31, 122, 69, 0.28);
    outline-offset: 2px;
}

.home-hub-card .home-hub-form-title {
    margin: 0 0 5px;
    font-size: 0.92rem;
    line-height: 1.25;
    color: #1f3a2d;
    font-weight: 700;
}

.home-hub-card .home-hub-form-title-top-player {
    margin-top: 6px;
}

.home-hub-form-strip {
    display: flex;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 6px;
    border-radius: 10px;
    background: #edf3ef;
}

.home-hub-form-strip-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(19, 46, 31, 0.12);
}

.home-hub-form-strip-item.is-w {
    background: #25a85a;
    color: #fff;
}

.home-hub-form-strip-item.is-d {
    background: #8a949e;
    color: #fff;
}

.home-hub-form-strip-item.is-l {
    background: #cf3f45;
    color: #fff;
}

.home-hub-form-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0;
    background: transparent;
    color: #1f7a45;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: none;
}

.home-hub-form-top-player {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #264436;
}

.home-hub-form-top-player-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.home-hub-form-top-player-text {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.home-hub-form-top-player-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(31, 122, 69, 0.2);
    border-radius: 999px;
    background: #f1f7f3;
    color: #1f7a45;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.home-hub-form-top-player-button:hover {
    background: #e7f3eb;
    border-color: rgba(31, 122, 69, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(15, 39, 24, 0.08);
}

.home-hub-form-top-player-button:focus-visible {
    outline: 2px solid rgba(31, 122, 69, 0.28);
    outline-offset: 2px;
}

.home-hub-form-modal .modal-content {
    max-width: 420px;
    margin: 14vh auto 0;
}

.home-hub-form-modal-head {
    margin-bottom: 14px;
    padding-right: 24px;
}

.home-hub-form-modal-subtitle {
    margin: 6px 0 0;
    color: #5f6f64;
    font-size: 0.92rem;
    line-height: 1.45;
}

.home-hub-form-top-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-hub-form-top-list-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7faf8;
    border: 1px solid #e1ebe4;
}

.home-hub-form-top-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e8f2ec;
    color: #1f7a45;
    font-size: 0.72rem;
    font-weight: 800;
}

.home-hub-form-top-name {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.home-hub-form-top-name strong {
    color: #143824;
    font-size: 0.92rem;
}

.home-hub-form-top-name span {
    color: #486456;
    font-size: 0.84rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-hub-form-top-stats {
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 800;
    color: #1f7a45;
}

.home-hub-form-top-player strong {
    color: #1f7a45;
    font-size: 0.9rem;
}

.home-hub-form-top-player em {
    font-style: normal;
    color: #557267;
    font-size: 0.82rem;
    font-weight: 700;
}

.home-hub-video-thumb {
    position: relative;
    display: block;
    min-height: 170px;
    border-radius: 16px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-hub-video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 18, 12, 0.12), rgba(7, 18, 12, 0.4));
}

.home-hub-video-thumb span {
    position: absolute;
    inset: auto auto 14px 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green-dark);
    box-shadow: 0 10px 20px rgba(7, 18, 12, 0.16);
}

.home-hub-table-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-hub-table-summary > div {
    display: grid;
    gap: 4px;
    min-width: 110px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(33, 74, 54, 0.06);
}

.home-hub-table-summary strong {
    color: #153a25;
    font-size: 1.25rem;
    line-height: 1;
}

.home-hub-table-summary span {
    color: #587060;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-hub-table-wrap {
    border-radius: 16px;
    border: 1px solid rgba(33, 74, 54, 0.08);
    overflow: hidden;
}

.home-hub-table {
    width: 100%;
    border-collapse: collapse;
}

.home-hub-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(33, 74, 54, 0.08);
    color: #284436;
}

.home-hub-table tbody tr:last-child td {
    border-bottom: none;
}

.home-hub-table tbody tr.is-active td {
    background: rgba(33, 74, 54, 0.08);
    font-weight: 700;
    color: #143824;
}

@media (max-width: 1100px) {
    .home-hub-hero {
        grid-template-columns: 1fr;
    }

    .home-hub-card {
        grid-column: span 6;
    }
}

@media (max-width: 760px) {
    .home-hub-hero-media .uvod-hero-carousel,
    .home-hub-hero-media .uvod-hero-img {
        min-height: 250px;
    }

    .home-hub-hero-content {
        padding: 24px 20px 22px;
    }

    .home-hub-preview-slot {
        min-height: 0;
    }

    .home-hub-scoreboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 16px;
    }

    .home-hub-scoreboard-team {
        min-width: 0;
    }

    .home-hub-scoreboard-team img {
        width: 52px;
        height: 52px;
    }

    .home-hub-scoreboard-team strong {
        font-size: 0.92rem;
    }

    .home-hub-scoreboard-vs {
        display: none;
    }

    .home-hub-card,
    .home-hub-card-result,
    .home-hub-card-table {
        grid-column: 1 / -1;
    }

    .home-hub-result-scoreboard {
        min-height: 54px;
        gap: 8px;
    }

    .home-hub-result-team img {
        width: 34px;
        height: 34px;
    }

    .home-hub-result-team span {
        font-size: 0.72rem;
    }

    .home-hub-result-score {
        font-size: 1.28rem;
    }

    .home-hub-result-meta {
        font-size: 0.62rem;
    }

    .home-hub-result-scorers {
        font-size: 0.82rem;
    }
}

@media (max-width: 600px) {
    .home-hub {
        gap: 18px;
    }

    .home-hub-title {
        font-size: 1.8rem;
    }

    .home-hub-actions {
        gap: 8px;
    }

    .home-hub-action {
        width: 100%;
    }
}

@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 {
        margin-top: 0;
        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;
    min-height: 170%;
}

/* Horní část s logem a názvem */
.club-top {
    background: url("img/travnik-01-desktop.png") center bottom / cover no-repeat;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    min-height: 136px;
    height: 136px;
}

.club-top-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 2 2 0%;
    min-width: 250px;
    position: relative;
    z-index: 2;
    padding-left: 30px;
}

.club-logo {
    position: static;
    width: 115px;
    height: auto;
    margin-bottom: 10px;
    z-index: 10;
}

.club-title {
    position: static;
    left: unset;
    top: unset;
    transform: none;
    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;
}


@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;
}

/* Admin section */
.nav-admin-section {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 8px;
}

.nav-admin-label {
    color: white;
    font-weight: 600;
    font-size: 17px;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}

.nav-admin-label::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;
}

.nav-admin-section:hover .nav-admin-label::after {
    width: calc(100% - 24px);
}

.nav-admin-section a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.nav-admin-section a::after {
    display: none;
}

.nav-admin-section a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-admin-section a.nav-active {
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.nav-auth-group {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.club-nav .nav-settings-trigger {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.club-nav .nav-settings-trigger:hover {
    background: rgba(255, 255, 255, 0.22);
}

.club-nav .nav-settings-trigger i {
    font-size: 0.95rem;
}

.club-nav .nav-points-indicator {
    position: relative;
}

.club-nav .nav-points-badge {
    position: absolute;
    right: -6px;
    top: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f5f9f6;
    color: #1f6a29;
    border: 1px solid rgba(31, 106, 41, 0.45);
    font-size: 0.62rem;
    line-height: 15px;
    text-align: center;
    font-weight: 700;
    box-sizing: border-box;
    pointer-events: none;
}

.club-nav .nav-auth-trigger {
    position: static;
    transform: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    min-width: 42px;
    max-width: 230px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    transition: background 0.2s ease;
}

.club-nav .nav-auth-trigger:hover {
    background: rgba(255, 255, 255, 0.22);
}

.club-nav .nav-auth-trigger i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Mobile landscape: horizontal nav, smaller font, hide auth text */
@media (max-width: 900px) and (orientation: landscape) {

    .header-matches {
        padding-right: 10px;
    }

    .hamburger {
        display: none;
    }

    .club-nav {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
        gap: 2px;
        padding: 6px 10px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .club-nav a {
        font-size: 12px;
        padding: 5px 8px;
        border-radius: 6px;
    }

    .club-nav a::after {
        display: none;
    }

    .nav-auth-group {
        position: static;
        transform: none;
        flex-direction: row;
        gap: 4px;
        flex-shrink: 0;
    }

    .club-nav .nav-auth-text {
        display: none;
    }

    .club-nav .nav-auth-trigger {
        height: 34px;
        padding: 0 10px;
        border-radius: 6px;
    }

    .club-nav .nav-settings-trigger {
        flex: 0 0 34px;
        height: 34px;
        border-radius: 6px;
    }

    .nav-admin-section {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 2px;
        padding: 0;
    }

    .nav-admin-label {
        display: none;
    }

    .nav-admin-section a {
        font-size: 12px;
        padding: 5px 8px;
        border-radius: 6px;
    }
}



.club-nav .nav-auth-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-nav .nav-auth-role-icon {
    color: #e6f7ec;
}

.club-nav .nav-auth-guest-icon {
    font-size: 1.02rem;
}

.club-nav .nav-auth-trigger.is-guest {
    width: 42px;
    min-width: 42px;
    padding: 0;
}

@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: 4px;
    cursor: pointer;
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(8, 28, 17, 0.22);
    box-shadow: 0 8px 18px rgba(6, 20, 12, 0.22);
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 200;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: 0.3s;
}

.hamburger:hover {
    background: rgba(8, 28, 17, 0.32);
    border-color: rgba(255, 255, 255, 0.34);
}

.hamburger:active {
    transform: translateY(1px);
}

.mobile-bottom-nav {
    display: none;
}

.mobile-more-sheet {
    display: none;
}

/* MOBILE MENU */
@media (max-width: 700px) {

    .hamburger {
        display: flex;
    }

    .club-nav {
        display: none;
        flex-direction: column;
        text-align: center;
        gap: 4px;
        margin-top: 12px;
        margin-bottom: 12px;
        padding: 0 10px 12px;
    }

    .club-nav.active {
        display: flex;
    }

    .club-nav a {
        border-radius: 10px;
        padding: 9px 12px;
        font-size: 0.95rem;
    }

    .club-nav a::after {
        display: none;
    }

    .club-nav a.nav-active {
        background: rgba(255, 255, 255, 0.22);
        font-weight: 700;
    }

    .nav-auth-group {
        position: static;
        transform: none;
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }

    .club-nav .nav-settings-trigger {
        flex: 0 0 38px;
        height: 38px;
        border-radius: 8px;
    }

    .club-nav .nav-points-badge {
        right: -5px;
        top: -5px;
    }

    .club-nav .nav-auth-trigger {
        flex: 1;
        max-width: none;
        height: 38px;
        padding: 0 12px;
        border-radius: 8px;
        justify-content: center;
    }

    .club-nav .nav-auth-trigger:hover {
        transform: none;
    }

    /* Admin section mobile */
    .nav-admin-section {
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 0;
    }

    .nav-admin-label {
        width: 100%;
        padding: 9px 12px;
        border-radius: 8px;
        text-align: center;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.12);
    }

    .nav-admin-label::after {
        display: none;
    }

    .nav-admin-section a {
        width: 100%;
        padding: 8px 12px;
        border-radius: 8px;
        text-align: center;
        font-size: 0.9rem;
    }

    .nav-admin-section 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(6px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    body.mobile-nav-bottom .hamburger {
        display: none;
    }

    body.mobile-nav-bottom .club-nav {
        display: none !important;
    }

    body.mobile-nav-bottom .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(21, 133, 62, 0.16);
        box-shadow: 0 -8px 22px rgba(8, 24, 15, 0.14);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: padding 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    body.mobile-nav-bottom .mobile-bottom-nav-link {
        border: none;
        background: transparent;
        color: #3f5a4a;
        text-decoration: none;
        font-family: inherit;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 44px;
        padding: 6px 4px;
        border-radius: 10px;
        cursor: pointer;
        transition: min-height 0.2s ease, padding 0.2s ease, border-radius 0.2s ease, gap 0.2s ease, background 0.2s ease, color 0.2s ease;
    }

    body.mobile-nav-bottom .mobile-bottom-nav-link i {
        font-size: 1rem;
        transition: font-size 0.2s ease, transform 0.2s ease;
    }

    body.mobile-nav-bottom .mobile-bottom-nav-link span {
        font-size: 0.67rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        transition: opacity 0.16s ease, max-height 0.16s ease, transform 0.16s ease;
        opacity: 1;
        max-height: 18px;
    }

    body.mobile-nav-bottom .mobile-bottom-nav-link.nav-active {
        color: var(--green-dark);
        background: rgba(21, 133, 62, 0.11);
    }

    body.mobile-nav-bottom.mobile-nav-compact .mobile-bottom-nav {
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
        box-shadow: 0 -5px 16px rgba(8, 24, 15, 0.1);
    }

    body.mobile-nav-bottom.mobile-nav-compact .mobile-bottom-nav-link {
        min-height: 34px;
        padding: 4px 3px;
        border-radius: 8px;
        gap: 0;
    }

    body.mobile-nav-bottom.mobile-nav-compact .mobile-bottom-nav-link i {
        font-size: 0.9rem;
        transform: translateY(0);
    }

    body.mobile-nav-bottom.mobile-nav-compact .mobile-bottom-nav-link span {
        opacity: 0;
        max-height: 0;
        transform: translateY(2px);
        overflow: hidden;
    }

    body.mobile-nav-bottom .mobile-more-sheet.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1140;
    }

    body.mobile-nav-bottom .mobile-more-sheet-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(6, 16, 10, 0.44);
    }

    body.mobile-nav-bottom .mobile-more-sheet-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -16px 34px rgba(8, 24, 15, 0.2);
        padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
    }

    body.mobile-nav-bottom .mobile-more-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 10px;
    }

    body.mobile-nav-bottom .mobile-more-sheet-head h3 {
        margin: 0;
        color: var(--green-dark);
        font-size: 1.02rem;
    }

    body.mobile-nav-bottom .mobile-more-sheet-close {
        border: none;
        background: transparent;
        color: #556b5d;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
        padding: 0;
    }

    body.mobile-nav-bottom .mobile-more-sheet-links {
        display: grid;
        gap: 6px;
        margin-top: 12px;
    }

    body.mobile-nav-bottom .mobile-more-sheet-links a {
        text-decoration: none;
        color: #153525;
        background: #f4f8f6;
        border-radius: 10px;
        padding: 10px 12px;
        font-weight: 600;
    }

    body.mobile-nav-bottom .mobile-more-sheet-links a.nav-active {
        color: #fff;
        background: var(--green-dark);
    }

    body.mobile-nav-bottom .mobile-more-sheet-account {
        border-bottom: 1px solid #e6efe8;
        padding-bottom: 8px;
    }

    body.mobile-nav-bottom .mobile-more-sheet-account-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    body.mobile-nav-bottom .mobile-more-sheet-section-title {
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #557164;
        margin-bottom: 5px;
    }

    body.mobile-nav-bottom .mobile-more-sheet-account-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    body.mobile-nav-bottom .mobile-more-sheet-action {
        width: 34px;
        height: 34px;
        border: 1px solid #dae8dd;
        background: #f7faf8;
        color: #153525;
        border-radius: 9px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    body.mobile-nav-bottom .mobile-more-sheet-action i {
        width: auto;
        text-align: center;
        color: var(--green-dark);
        font-size: 0.92rem;
    }

    body.mobile-nav-bottom .mobile-more-sheet-nav-toggle-wrap {
        margin-top: 0;
    }

    body.mobile-nav-bottom .mobile-more-sheet-nav-toggle {
        justify-content: flex-end;
        margin-top: 0;
        gap: 6px;
    }

    body.mobile-nav-bottom .mobile-more-sheet-nav-toggle .settings-pref-label {
        font-size: 0.66rem;
    }

    body.mobile-nav-bottom .mobile-more-sheet-nav-toggle .settings-pref-toggle {
        width: 46px;
        padding: 2px;
    }

    body.mobile-nav-bottom .mobile-more-sheet-nav-toggle .settings-pref-track {
        height: 18px;
    }

    body.mobile-nav-bottom .mobile-more-sheet-nav-toggle .settings-pref-thumb {
        width: 18px;
        height: 18px;
    }

    body.mobile-nav-bottom .mobile-more-sheet-nav-toggle .settings-pref-toggle.is-modern .settings-pref-thumb {
        transform: translateX(24px);
    }

    body.mobile-nav-bottom .mobile-more-sheet-save-status {
        margin-top: 6px;
        min-height: 1.1em;
    }

    body.mobile-nav-bottom .content {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }
}

/* ========================= */
/*          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;
    position: relative;
}

.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;
}

.video-card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(204, 0, 0, 0.92);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

/* FILTRY VIDEÍ */
.video-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 24px;
}

.video-filters-advanced {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(180px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.video-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.video-filter-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #587060;
}

.video-filter-field input,
.video-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(33, 74, 54, 0.14);
    border-radius: 14px;
    background: #fff;
    color: var(--text-dark);
    font: inherit;
    box-sizing: border-box;
}

.video-filter-field input:focus,
.video-filter-field select:focus {
    outline: none;
    border-color: rgba(33, 74, 54, 0.38);
    box-shadow: 0 0 0 3px rgba(80, 143, 102, 0.12);
}

.video-filter-field-reset {
    align-self: end;
}

.video-filter-reset {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(33, 74, 54, 0.14);
    border-radius: 14px;
    background: rgba(33, 74, 54, 0.08);
    color: var(--green-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.video-filter-reset:hover {
    background: rgba(33, 74, 54, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(23, 44, 31, 0.08);
}

.video-filter-summary {
    margin: -10px 0 20px;
    color: #587060;
    font-size: 0.95rem;
}

.video-filter-empty {
    margin-bottom: 22px;
}

.video-filter-empty[hidden] {
    display: none !important;
}

.video-filters button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(33, 74, 54, 0.14);
    background: rgba(33, 74, 54, 0.08);
    color: var(--green-dark);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(23, 44, 31, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.video-filters button::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0.45;
    transition: transform 0.18s ease;
}

.video-filters button:hover {
    background: rgba(33, 74, 54, 0.14);
    border-color: rgba(33, 74, 54, 0.28);
    color: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(23, 44, 31, 0.1);
}

.video-filters button.active {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 24px rgba(23, 44, 31, 0.16);
}

.video-filters button:hover::after,
.video-filters button:focus-visible::after,
.video-filters button.active::after {
    transform: scaleX(1);
}

.video-filters button:focus-visible {
    outline: none;
    border-color: rgba(33, 74, 54, 0.4);
    box-shadow: 0 0 0 3px rgba(80, 143, 102, 0.18);
}

.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.media-section-photos {
    position: relative;
    margin-top: 52px;
    padding-top: 34px;
}

.media-section.media-section-photos::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(21, 133, 62, 0) 0%, rgba(21, 133, 62, 0.82) 20%, rgba(233, 194, 74, 0.9) 50%, rgba(21, 133, 62, 0.82) 80%, rgba(21, 133, 62, 0) 100%);
}

.media-section.media-section-photos::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e9c24a;
    box-shadow: 0 0 0 4px rgba(233, 194, 74, 0.22), 0 0 0 10px rgba(21, 133, 62, 0.1);
}

.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-section.media-section-photos {
        margin-top: 36px;
        padding-top: 24px;
    }

    .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-advanced {
        grid-template-columns: 1fr;
    }

    .video-filters button {
        width: 100%;
        text-align: center;
        min-height: 30px;
        padding: 0 10px;
        font-size: 8.5px;
    }

    .video-filter-reset {
        width: 100%;
    }

    .video-filters button::after {
        left: 10px;
        right: 10px;
    }

    .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;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 18px;
}

.team-view-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid #d5e5d9;
    background: linear-gradient(180deg, #eef7f1 0%, #e4f0e8 100%);
    box-shadow: 0 8px 16px rgba(13, 36, 22, 0.06);
}

.team-view-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #2a5339;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.team-view-mode-btn i {
    font-size: 0.78rem;
}

.team-view-mode-btn:hover,
.team-view-mode-btn:focus-visible {
    background: rgba(21, 133, 62, 0.1);
    outline: none;
}

.team-view-mode-btn.is-active {
    background: var(--green-dark);
    color: #fff;
    box-shadow: 0 6px 14px rgba(14, 67, 39, 0.2);
}

.team-modal-legend-trigger {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5e5d9;
    border-radius: 999px;
    background: #eef7f0;
    color: var(--green-dark);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(13, 36, 22, 0.05);
    cursor: pointer;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.team-modal-legend-trigger:hover {
    border-color: #bdd6c5;
    transform: translateY(-1px);
}

.team-modal-legend-trigger:focus-visible {
    outline: 3px solid rgba(31, 174, 81, 0.25);
    outline-offset: 2px;
}

.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-roster-group {
    margin-top: 14px;
}

.team-roster-group:first-of-type {
    margin-top: 10px;
}

.team-roster-table-wrap {
    margin-top: 12px;
    border: 1px solid rgba(18, 53, 33, 0.12);
    border-radius: 14px;
    overflow: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
    box-shadow: 0 14px 28px rgba(13, 36, 22, 0.08);
}

.team-roster-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: #173422;
}

.team-roster-table th,
.team-roster-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(21, 59, 38, 0.08);
    vertical-align: middle;
    font-size: 0.82rem;
}

.team-roster-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #103a25;
    color: #ecf8f0;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.team-roster-table tbody tr:nth-child(even) {
    background: #f7fcf8;
}

.team-roster-row {
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.team-roster-row:hover td,
.team-roster-row:focus-visible td {
    background: #eaf6ee;
}

.team-roster-row:focus-visible {
    outline: 3px solid rgba(31, 174, 81, 0.24);
    outline-offset: -3px;
}

.team-roster-col-small {
    width: 48px;
}

.team-roster-cell-center {
    text-align: center;
}

.team-roster-col-num {
    width: 56px;
    text-align: center;
}

.team-roster-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    background: transparent;
    color: #ffffff;
}

.team-roster-player-cell {
    min-width: 220px;
}

.team-roster-player-cell strong {
    font-size: 0.88rem;
}

.team-roster-pos-text {
    color: #3e6250;
    font-size: 0.78rem;
}

.team-roster-pos-text-short {
    display: none;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.team-roster-muted {
    display: block;
    margin-top: 3px;
    color: #5e7a6a;
    font-size: 0.72rem;
}

.team-roster-row td:first-child {
    padding: 0;
}

.team-roster-row[data-pos-type="G"] .team-roster-number-badge {
    background: transparent;
    color: #2a2400;
}

.team-roster-row[data-pos-type="O"] .team-roster-number-badge {
    background: transparent;
}

.team-roster-row[data-pos-type="Z"] .team-roster-number-badge {
    background: transparent;
}

.team-roster-row[data-pos-type="U"] .team-roster-number-badge {
    background: transparent;
}

.team-roster-row[data-pos-type="G"] td:first-child {
    background: #d4a900;
}

.team-roster-row[data-pos-type="O"] td:first-child {
    background: #ff7b00;
}

.team-roster-row[data-pos-type="Z"] td:first-child {
    background: #0077ff;
}

.team-roster-row[data-pos-type="U"] td:first-child {
    background: #e53935;
}

.team-roster-row[data-pos-type="G"] .team-roster-player-cell {
    border-left: 3px solid #d4a900;
}

.team-roster-row[data-pos-type="O"] .team-roster-player-cell {
    border-left: 3px solid #ff7b00;
}

.team-roster-row[data-pos-type="Z"] .team-roster-player-cell {
    border-left: 3px solid #0077ff;
}

.team-roster-row[data-pos-type="U"] .team-roster-player-cell {
    border-left: 3px solid #e53935;
}

.team-roster-table-staff {
    min-width: 640px;
}

.team-staff-table-row td {
    font-size: 0.9rem;
}

.team-staff-icon-table {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.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-compact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(18, 53, 33, 0.12);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
    color: #1b4c32;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.team-staff-compact-row:hover,
.team-staff-compact-row:focus-visible {
    background: #eaf5ee;
    border-color: rgba(21, 133, 62, 0.45);
    transform: translateY(-1px);
    outline: none;
}

#teamStaffCard.is-compact-by-filter .team-view-panel {
    display: none !important;
}

.team-staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.team-modern-grid-staff {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.team-modern-card {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 112px;
    padding: 10px;
    border: 1px solid rgba(18, 53, 33, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f9f5 100%);
    box-shadow: 0 14px 24px rgba(13, 36, 22, 0.1);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.team-modern-card:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 116, 66, 0.3);
    box-shadow: 0 18px 30px rgba(13, 36, 22, 0.14);
}

.team-modern-card:focus-visible {
    outline: 3px solid rgba(31, 174, 81, 0.28);
    outline-offset: 3px;
}

.team-modern-card.is-filter-hidden {
    display: none !important;
}

.team-modern-position-section {
    margin-top: 14px;
}

.team-modern-position-section:first-of-type {
    margin-top: 10px;
}

.team-modern-position-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #183524;
    font-size: 1.02rem;
}

.team-modern-photo-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 78px;
    width: 78px;
    height: 92px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #d8eadf 0%, #eaf4ee 100%);
}

.team-modern-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-modern-number {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 6px;
    border-radius: 8px;
    background: rgba(15, 50, 30, 0.88);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
}

.team-modern-photo-wrap-number {
    align-items: center;
    justify-content: center;
    background: transparent;
}

.team-modern-photo-wrap-number .team-modern-number {
    position: static;
    min-width: 52px;
    height: 52px;
    padding: 0 8px;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: #123521;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.team-modern-card[data-pos-type="G"] .team-modern-photo-wrap-number .team-modern-number {
    background: #d4a900;
    color: #2a2400;
}

.team-modern-card[data-pos-type="O"] .team-modern-photo-wrap-number .team-modern-number {
    background: #ff7b00;
}

.team-modern-card[data-pos-type="Z"] .team-modern-photo-wrap-number .team-modern-number {
    background: #0077ff;
}

.team-modern-card[data-pos-type="U"] .team-modern-photo-wrap-number .team-modern-number {
    background: #e53935;
}

.team-modern-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 2px 2px 2px 12px;
    text-align: right;
}

.team-modern-name {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    color: #173422;
    font-size: 0.94rem;
    font-weight: 700;
}

.team-modern-role {
    color: #486555;
    font-size: 0.8rem;
}

.team-modern-meta {
    color: #365645;
    font-size: 0.76rem;
    font-weight: 600;
}

.team-modern-filter {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px;
    margin-top: 8px;
    border: 1px solid rgba(26, 77, 46, 0.16);
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fcf8 0%, #edf7f0 100%);
}

.team-modern-filter-highlight {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    height: calc(100% - 12px);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(16, 44, 28, 0.16);
    transition: transform 0.24s ease, width 0.24s ease, opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.team-modern-filter-btn {
    --filter-accent: #1f6f45;
    position: relative;
    z-index: 2;
    border: 0;
    border-radius: 10px;
    min-height: 34px;
    padding: 0 12px;
    background: transparent;
    color: #486555;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

.team-modern-filter-btn[data-modern-filter="all"] {
    --filter-accent: #1f6f45;
}

.team-modern-filter-btn[data-modern-filter="G"] {
    --filter-accent: #d4a900;
}

.team-modern-filter-btn[data-modern-filter="O"] {
    --filter-accent: #ff7b00;
}

.team-modern-filter-btn[data-modern-filter="Z"] {
    --filter-accent: #0077ff;
}

.team-modern-filter-btn[data-modern-filter="U"] {
    --filter-accent: #e53935;
}

.team-modern-filter-btn::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--filter-accent);
    flex: 0 0 8px;
}

.team-modern-filter-label {
    display: inline-flex;
    align-items: center;
}

.team-modern-filter-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.team-modern-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--filter-accent) 22%, #ffffff);
    color: #1e3c2d;
    font-size: 0.72rem;
    font-weight: 800;
}

.team-modern-filter-btn:hover,
.team-modern-filter-btn:focus-visible {
    color: #1f4f38;
    transform: translateY(-1px);
    outline: none;
}

.team-modern-filter-btn.is-active {
    color: #123521;
}

.team-modern-filter-btn.is-active .team-modern-filter-count {
    background: var(--filter-accent);
    color: #fff;
}

.team-modern-filter-btn.is-active[data-modern-filter="G"] .team-modern-filter-count {
    color: #2a2400;
}

.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;
}

.vodochodsky-name-mobile {
    display: none;
}

@media (max-width: 768px) {
    .vodochodsky-name-desktop {
        display: none;
    }

    .vodochodsky-name-mobile {
        display: inline;
    }
}

.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;
}

.tipovacka-race-list {
    display: grid;
    gap: 10px;
}

/* Tipovačka page header with toggle */
.tipovacka-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 18px;
}

.tipovacka-page-head h2 {
    margin: 0;
    min-width: 0;
    white-space: nowrap;
}

.tipovacka-view-toggle-wrap {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 28px;
}

.tipovacka-view-toggle-wrap .team-view-toggle {
    height: 28px;
}

.tipovacka-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.tipovacka-season-winners-trigger {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 1;
    margin-top: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9dfcf;
    border-radius: 999px;
    background: linear-gradient(145deg, #ffffff 0%, #f1f8f3 100%);
    color: #1f6a41;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(15, 73, 42, 0.11);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tipovacka-season-winners-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 73, 42, 0.18);
    border-color: #98c5a8;
}

.tipovacka-season-winners-trigger:focus-visible {
    outline: 2px solid rgba(20, 95, 55, 0.32);
    outline-offset: 3px;
}

.tipovacka-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #143d26 0%, #2a7b49 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(14, 51, 30, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.tipovacka-category-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(14, 51, 30, 0.22);
    filter: saturate(1.05);
}

.tipovacka-category-link:focus-visible {
    outline: 2px solid rgba(20, 61, 38, 0.35);
    outline-offset: 3px;
}

.fkch-quiz-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 26px 28px;
    background:
        radial-gradient(circle at top right, rgba(233, 194, 74, 0.22) 0%, transparent 34%),
        linear-gradient(135deg, #14331f 0%, #1f5a35 55%, #2f8652 100%);
    color: #fff;
    overflow: hidden;
}

.fkch-quiz-hero h2 {
    margin: 6px 0 10px;
    color: #fff;
}

.fkch-quiz-hero p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.fkch-quiz-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fkch-quiz-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.fkch-quiz-meta-pill,
.fkch-quiz-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.fkch-quiz-meta-pill {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

.fkch-quiz-backlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.fkch-quiz-backlink:hover {
    background: rgba(255, 255, 255, 0.18);
}

.fkch-quiz-form {
    display: grid;
    gap: 16px;
}

.fkch-quiz-card {
    border: 1px solid rgba(21, 133, 62, 0.1);
}

.fkch-quiz-card.is-unanswered {
    border-color: #d6a526;
    box-shadow: 0 0 0 3px rgba(214, 165, 38, 0.12);
}

.fkch-quiz-card.is-correct {
    border-color: rgba(21, 133, 62, 0.26);
}

.fkch-quiz-card.is-wrong {
    border-color: rgba(183, 59, 49, 0.28);
}

.fkch-quiz-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.fkch-quiz-number {
    font-size: 0.84rem;
    font-weight: 700;
    color: #2b5f3d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fkch-quiz-category {
    background: #eef7f0;
    color: #1b5a33;
}

.fkch-quiz-card h3 {
    margin: 0 0 14px;
    color: var(--green-dark);
}

.fkch-quiz-media {
    margin-bottom: 16px;
}

.fkch-quiz-media img {
    display: block;
    width: min(280px, 100%);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(21, 133, 62, 0.14);
    box-shadow: 0 14px 28px rgba(15, 43, 26, 0.08);
}

.fkch-quiz-options {
    display: grid;
    gap: 10px;
}

.fkch-quiz-option {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d6e6da;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.fkch-quiz-option:hover {
    transform: translateY(-1px);
    border-color: rgba(21, 133, 62, 0.28);
    box-shadow: 0 10px 22px rgba(15, 43, 26, 0.06);
}

.fkch-quiz-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fkch-quiz-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef7f0;
    color: #1b5a33;
    font-weight: 800;
}

.fkch-quiz-option-text {
    color: #234731;
    font-weight: 600;
}

.fkch-quiz-option:has(input:checked) {
    border-color: rgba(21, 133, 62, 0.42);
    background: #f4fbf6;
}

.fkch-quiz-option.is-correct {
    border-color: rgba(21, 133, 62, 0.34);
    background: #eef9f1;
}

.fkch-quiz-option.is-wrong {
    border-color: rgba(183, 59, 49, 0.34);
    background: #fff4f2;
}

.fkch-quiz-details {
    margin: 14px 0 0;
    color: #486052;
    font-size: 0.94rem;
    line-height: 1.55;
}

.fkch-quiz-submit-card {
    position: sticky;
    bottom: 16px;
    z-index: 4;
    border: 1px solid rgba(21, 133, 62, 0.12);
    box-shadow: 0 16px 30px rgba(12, 34, 20, 0.08);
}

.fkch-quiz-submit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fkch-quiz-submit-button,
.fkch-quiz-reset-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.fkch-quiz-submit-button {
    border: none;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
    cursor: pointer;
}

.fkch-quiz-submit-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.fkch-quiz-reset-link {
    border: 1px solid rgba(21, 133, 62, 0.16);
    color: var(--green-dark);
    background: #f7fbf8;
}

.fkch-quiz-result {
    margin: 14px 0 0;
    color: #214a36;
    font-weight: 700;
}

@media (max-width: 760px) {
    .fkch-quiz-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .tipovacka-page-head {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .tipovacka-page-head h2 {
        font-size: clamp(1.1rem, 5.2vw, 1.5rem);
    }

    .tipovacka-page-actions {
        width: auto;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .tipovacka-category-link,
    .fkch-quiz-backlink {
        width: 100%;
    }

    .fkch-quiz-submit-card {
        position: static;
    }
}

/* Race chart view is default, table view hidden */
#tipovackaViewRoot .tipovacka-race-list {
    display: grid;
}

#tipovackaViewRoot .tipovacka-classic-table {
    display: none;
}

/* When table view active: show table, hide race */
#tipovackaViewRoot.tipovacka-view-is-table .tipovacka-race-list {
    display: none;
}

#tipovackaViewRoot.tipovacka-view-is-table .tipovacka-classic-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.tipovacka-classic-table th,
.tipovacka-classic-table td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid #d8e7db;
    font-size: 0.92rem;
}

.tipovacka-classic-table th {
    background: #eef7f0;
    font-weight: 700;
    color: #1a5c34;
}

.tipovacka-classic-table tbody tr:hover {
    background: #f4fbf6;
}

.tipovacka-classic-table-leaderboard {
    table-layout: fixed;
}

.tipovacka-classic-table-leaderboard th:first-child,
.tipovacka-classic-table-leaderboard td:first-child {
    width: 54px;
}

.tipovacka-classic-table-leaderboard th:last-child,
.tipovacka-classic-table-leaderboard td:last-child {
    width: 160px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .tipovacka-classic-table th,
    .tipovacka-classic-table td {
        padding: 7px 8px;
    }

    .tipovacka-classic-table th:first-child,
    .tipovacka-classic-table td:first-child {
        width: 36px;
        padding-right: 4px;
    }

    .tipovacka-classic-table th:nth-child(2),
    .tipovacka-classic-table td:nth-child(2) {
        padding-left: 4px;
    }

    .tipovacka-classic-table th:last-child,
    .tipovacka-classic-table td:last-child {
        text-align: right;
        padding-right: 6px;
    }

    .tipovacka-classic-table-leaderboard th:last-child,
    .tipovacka-classic-table-leaderboard td:last-child {
        width: 92px;
    }
}

.tipovacka-race-row {
    border: 1px solid #d8e7db;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
    padding: 10px 12px;
}

.tipovacka-race-row.is-top-rank {
    border-color: #b9d7c2;
    box-shadow: 0 6px 14px rgba(25, 78, 46, 0.1);
}

.tipovacka-race-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tipovacka-race-identity {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tipovacka-race-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eaf5ee;
    color: #245f36;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.tipovacka-race-medal {
    font-size: 1.02rem;
    line-height: 1;
}

.tipovacka-race-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #123623;
    font-size: 0.96rem;
}

.tipster-detail-row {
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tipster-detail-row:hover {
    border-color: #9ec8ae;
    box-shadow: 0 8px 18px rgba(17, 72, 42, 0.12);
    transform: translateY(-1px);
}

.tipster-detail-row:focus-visible {
    outline: 2px solid #2a7b4a;
    outline-offset: 2px;
}

.tipovacka-race-points {
    white-space: nowrap;
    color: #1a5a35;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
}

.tipovacka-race-bar-track {
    margin-top: 8px;
    width: 100%;
    height: 11px;
    border-radius: 999px;
    overflow: hidden;
    background: #e4efe7;
}

.tipovacka-race-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2aa55f 0%, #1a7b47 100%);
    transition: width 0.45s ease;
}

.tipovacka-race-meta {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #4f5f55;
}

/* Voters link – underline slide-in effect (same style as nav) */
a.voters-link {
    color: inherit;
    text-decoration: none;
    position: relative;
}

a.voters-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

a.voters-link:hover::after {
    width: 100%;
}

/* Voters row – clickable whole row */
.voters-row {
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.voters-row:hover {
    border-color: #9ec8ae;
    box-shadow: 0 8px 18px rgba(17, 72, 42, 0.12);
    transform: translateY(-1px);
}

.tipovacka-voters-list {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.tipovacka-voter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #d8e7db;
    border-radius: 10px;
    padding: 9px 11px;
    background: #f8fcf9;
}

.tipovacka-voter-item strong {
    color: #143c26;
    font-size: 0.9rem;
}

.tipovacka-voter-item span {
    white-space: nowrap;
    font-size: 0.82rem;
    color: #506258;
}

.tipovacka-voter-empty {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f8f6;
    color: #5d6f64;
    font-size: 0.9rem;
}

.tipovacka-tipster-table-wrap {
    margin-top: 14px;
    overflow-x: hidden;
}

.tipovacka-tipster-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.tipovacka-tipster-table th,
.tipovacka-tipster-table td {
    padding: 4px 6px;
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tipovacka-tipster-cards {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.tipovacka-tipster-card {
    border: 1px solid #d8e7db;
    border-radius: 10px;
    background: #f8fcf9;
    padding: 8px 9px;
}

.tipovacka-tipster-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.tipovacka-tipster-card-head strong {
    color: #163f29;
    font-size: 0.8rem;
}

.tipovacka-tipster-card-head span {
    color: #1f5f39;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.tipovacka-tipster-card-match {
    color: #365245;
    font-size: 0.76rem;
    margin-bottom: 4px;
}

.tipovacka-tipster-card-line {
    font-size: 0.74rem;
    color: #395349;
    margin-bottom: 2px;
}

.tipovacka-tipster-card-line span {
    color: #506258;
}

.tipovacka-tipster-card-meta {
    margin-top: 4px;
    color: #5d6f64;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tipovacka-hit-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tipovacka-hit-icon {
    font-size: 0.72rem;
    line-height: 1;
    width: 0.9rem;
    text-align: center;
}

.tipovacka-tipster-card-meta .tipovacka-hit-yes {
    font-weight: 700;
}

.tipovacka-tipster-card-meta .tipovacka-hit-no {
    font-weight: 400;
}

.tipovacka-tipster-pager {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.tipovacka-tipster-pager-btn {
    border: 1px solid #bcd7c6;
    border-radius: 8px;
    background: #f7fbf8;
    color: #1d5a36;
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.tipovacka-tipster-pager-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.tipovacka-tipster-pager-label {
    color: #4e6357;
    font-size: 0.76rem;
    font-weight: 600;
}

.tipovacka-hit-yes {
    color: #1f7a38;
    font-weight: 700;
}

.tipovacka-hit-no {
    color: #b03232;
    font-weight: 700;
}

#tipsterTipsModal .auth-modal-content {
    width: min(96vw, 1280px);
    max-height: 90vh;
    overflow: auto;
    padding: 18px 16px 14px;
}

#tipsterTipsModal .auth-modal-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .tipovacka-tipster-table th,
    .tipovacka-tipster-table td {
        font-size: 0.68rem;
        padding: 4px 5px;
    }

    .tipovacka-tipster-card {
        padding: 8px;
    }

    .tipovacka-tipster-card-head strong {
        font-size: 0.76rem;
    }

    .tipovacka-tipster-card-head span,
    .tipovacka-tipster-card-match,
    .tipovacka-tipster-card-line {
        font-size: 0.72rem;
    }

    .tipovacka-tipster-pager {
        gap: 6px;
    }

    .tipovacka-tipster-pager-btn {
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    .tipovacka-tipster-pager-label {
        font-size: 0.7rem;
    }

    #tipsterTipsModal .auth-modal-content {
        width: min(100%, 96vw);
        max-height: 88vh;
    }
}

.tipovacka-season-winners-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.tipovacka-season-winner-item {
    border: 1px solid #d7e7dc;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f7fbf8;
}

.tipovacka-season-winner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tipovacka-season-winner-head strong {
    color: #163f29;
    font-size: 0.95rem;
}

.tipovacka-season-winner-head span {
    color: #205f3a;
    font-weight: 700;
    font-size: 0.88rem;
}

.tipovacka-season-winner-item p {
    margin: 7px 0 0;
    color: #4e6357;
    font-size: 0.9rem;
}

.stats-table th.sortable-round {
    cursor: pointer;
    user-select: none;
}

.stats-table th.sortable-round:hover {
    filter: brightness(1.06);
}

.stats-table th.sortable-round .stats-th-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sort-indicator {
    margin-left: 0;
    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-table {
    margin: 0 0 25px;
    border-top-left-radius: 0;
}

.zapasy-venue-filter {
    display: flex;
    gap: 0;
    margin: 12px 0 -1px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    overflow: visible;
    flex-wrap: nowrap;
}

.zapasy-venue-filter button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 82px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #bad8c2;
    border-bottom: none;
    background: #edf7f0;
    color: var(--green-dark);
    border-radius: 10px 10px 0 0;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.zapasy-venue-filter button:nth-child(1) { z-index: 30; }
.zapasy-venue-filter button:nth-child(2) { z-index: 20; }
.zapasy-venue-filter button:nth-child(3) { z-index: 10; }

.zapasy-venue-filter button + button {
    margin-left: -6px;
}

.zapasy-venue-filter button:hover {
    background: #e3f2e7;
    box-shadow: 0 3px 10px rgba(21, 133, 62, 0.14);
}

.zapasy-venue-filter button:focus-visible {
    outline: 2px solid rgba(31, 174, 81, 0.35);
    outline-offset: 2px;
}

.zapasy-venue-filter button.active {
    background: var(--green-dark);
    color: #fff;
    border-color: var(--green-dark);
    box-shadow: 0 3px 10px rgba(21, 133, 62, 0.2);
}

.zapasy-venue-filter button.active::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--green-dark);
}

.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: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(21, 133, 62, 0.22);
    background: linear-gradient(180deg, #f5fbf7 0%, #eaf5ee 100%);
    box-shadow: 0 10px 24px rgba(14, 43, 28, 0.08);
}

.stats-nav a,
.stats-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(21, 133, 62, 0.16);
    background: #ffffff;
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.stats-nav-btn i,
.stats-nav a i {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(21, 133, 62, 0.12);
    color: var(--green-dark);
}

.stats-nav-label {
    display: inline;
    white-space: nowrap;
}

.stats-nav a:hover,
.stats-nav-btn:hover,
.stats-nav a:focus-visible,
.stats-nav-btn:focus-visible,
.stats-nav a:active,
.stats-nav-btn:active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(18, 58, 36, 0.2);
}

.stats-nav a:hover i,
.stats-nav-btn:hover i,
.stats-nav a:focus-visible i,
.stats-nav-btn:focus-visible i,
.stats-nav a:active i,
.stats-nav-btn:active i {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.stats-nav a:focus-visible,
.stats-nav-btn:focus-visible {
    outline: 2px solid rgba(63, 157, 94, 0.38);
    outline-offset: 1px;
}

.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;
}

.stats-db-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(21, 133, 62, 0.18);
    background: linear-gradient(180deg, #f8fcf9 0%, #e6f2e9 100%);
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.83rem;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 14px rgba(13, 36, 22, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.stats-db-edit-link i {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(21, 133, 62, 0.12);
    color: var(--green-dark);
    font-size: 0.76rem;
    flex-shrink: 0;
}

.stats-db-edit-link:hover,
.stats-db-edit-link:focus-visible {
    background: linear-gradient(180deg, #f3fbf5 0%, #dcecdf 100%);
    border-color: rgba(21, 133, 62, 0.26);
    color: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(13, 36, 22, 0.08);
}

.stats-db-edit-link:hover i,
.stats-db-edit-link:focus-visible i {
    background: rgba(21, 133, 62, 0.18);
}

.stats-db-edit-link:focus-visible {
    outline: 2px solid rgba(31, 174, 81, 0.34);
    outline-offset: 2px;
}

.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;
        padding: 5px;
    }

    .stats-nav a,
    .stats-nav-btn {
        min-height: 30px;
        padding: 3px 6px;
        gap: 4px;
        font-size: 0.78rem;
    }

    .stats-nav-btn i,
    .stats-nav a i {
        width: 16px;
        height: 16px;
        font-size: 0.68rem;
    }

    .stats-nav-label {
        font-size: 0.76rem;
    }

    .stats-db-edit-link {
        min-height: 30px;
        padding: 5px 10px;
        font-size: 0.78rem;
        gap: 6px;
    }

    .stats-db-edit-link i {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }

    .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-season-info-form {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
}

.top-season-info-form::after {
    content: "";
    position: absolute;
    right: 1px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--green-dark);
    transform: translateY(-25%);
    pointer-events: none;
    opacity: 0.85;
}

.top-season-info-select {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.01em;
    background: transparent;
    border: 0;
    padding: 0 14px 0 0;
    margin: 0;
    min-width: 6.6rem;
    text-align: right;
    text-align-last: right;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.top-season-info-select:focus-visible {
    box-shadow: 0 0 0 2px rgba(80, 143, 102, 0.35);
    border-radius: 4px;
}

.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-ga {
    min-width: auto;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .top-filter-icon-ga {
        font-size: 0.86rem;
    }
}

.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 .top-alltime-sort-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 0;
    transition: color 0.18s ease;
}

.top-tabs-table .top-alltime-sort-link.is-active {
    text-decoration: none;
}

.top-tabs-table .top-alltime-sort-label {
    display: inline;
}

.top-tabs-table .top-alltime-sort-icon {
    display: none;
    font-size: 1.05em;
    line-height: 1;
}

.top-tabs-table .top-alltime-sort-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: -2px;
}

@media (max-width: 600px) {
    .top-tabs-table .top-alltime-sort-label {
        display: none;
    }

    .top-tabs-table .top-alltime-sort-icon {
        display: inline;
    }

    .top-tabs-table .top-alltime-sort-link {
        padding: 8px 6px;
    }
}

.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;
    color: #fff;
}

.top-tabs-table th.top-alltime-sortable.is-active-col {
    background: #0d5b30;
    color: #fff;
}

.top-tabs-table td.is-alltime-active-col {
    background: #e2f2e9;
    color: #0d4124;
    font-weight: 700;
}

.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 {
        flex: 0 0 auto;
        gap: 6px;
        margin-bottom: 0;
    }

    .team-view-mode-switch {
        padding: 3px;
        gap: 4px;
    }

    .team-view-mode-btn {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    .team-view-mode-btn i {
        font-size: 0.74rem;
    }

    .team-section-head {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    .team-section-title {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .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-modern-grid,
    .team-modern-grid-staff {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .team-modern-card {
        min-height: 100px;
        padding: 8px;
        border-radius: 14px;
    }

    .team-modern-position-section {
        margin-top: 12px;
    }

    .team-modern-position-heading {
        font-size: 0.94rem;
    }

    .team-modern-photo-wrap {
        flex-basis: 70px;
        width: 70px;
        height: 82px;
    }

    .team-modern-body {
        padding: 0 2px 0 10px;
    }

    .team-modern-name {
        font-size: 0.84rem;
    }

    .team-modern-role,
    .team-modern-meta {
        font-size: 0.72rem;
    }

    .team-modern-filter {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 5px;
        width: 100%;
        box-sizing: border-box;
    }

    .team-modern-filter-btn {
        min-height: 32px;
        width: 100%;
        min-width: 0;
        padding: 0;
        justify-content: center;
        border-radius: 9px;
        background: color-mix(in srgb, var(--filter-accent) 20%, #ffffff);
        color: #1d3c2d;
        font-size: 0.72rem;
    }

    .team-modern-filter-btn::before {
        display: none;
    }

    .team-modern-filter-label,
    .team-modern-filter-count {
        display: none;
    }

    .team-modern-filter-icon {
        display: inline-flex;
    }

    .team-modern-filter-btn.is-active {
        background: var(--filter-accent);
        color: #ffffff;
        transform: none;
    }

    .team-modern-filter-btn.is-active[data-modern-filter="G"] {
        color: #2a2400;
    }

    .team-modern-filter-highlight {
        display: none;
    }

    .team-staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-staff-compact-row {
        min-height: 30px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .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;
    }

    .team-roster-table-wrap {
        border-radius: 12px;
    }

    .team-roster-table {
        width: 100%;
        min-width: 100%;
        table-layout: fixed;
    }

    .team-roster-table-staff {
        min-width: 100%;
    }

    .team-roster-table th,
    .team-roster-table td {
        padding: 5px 6px;
        font-size: 0.7rem;
    }

    .team-roster-table thead th {
        font-size: 0.54rem;
        letter-spacing: 0.05em;
    }

    .team-roster-col-small {
        width: 32px;
    }

    .team-roster-col-num {
        width: 30px;
    }

    .team-roster-table th:first-child,
    .team-roster-table td:first-child {
        width: 32px;
        max-width: 32px;
    }

    .team-roster-table th:nth-child(3),
    .team-roster-table td:nth-child(3) {
        width: 24px;
        max-width: 24px;
        padding-left: 2px;
        padding-right: 2px;
        text-align: center;
    }

    .team-roster-table th.team-roster-col-num,
    .team-roster-table td.team-roster-col-num {
        width: 30px;
        max-width: 30px;
    }

    .team-roster-table-staff th:nth-child(2),
    .team-roster-table-staff td:nth-child(2) {
        width: 72px;
        max-width: 72px;
        padding-left: 4px;
        padding-right: 4px;
        vertical-align: top;
    }

    .team-roster-table-staff th:nth-child(3),
    .team-roster-table-staff td:nth-child(3) {
        width: auto;
        max-width: none;
        padding-left: 6px;
        padding-right: 6px;
        text-align: left;
        line-height: 1.2;
    }

    .team-roster-number-badge {
        min-width: 100%;
        height: 100%;
        border-radius: 0;
        font-size: 0.62rem;
    }

    .team-roster-player-cell {
        min-width: 0;
    }

    .team-roster-player-cell strong {
        font-size: 0.72rem;
    }

    .team-roster-pos-text,
    .team-roster-muted {
        font-size: 0.64rem;
    }

    .team-roster-pos-text-full {
        display: none;
    }

    .team-roster-pos-text-short {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .team-roster-muted {
        margin-top: 1px;
    }

    .team-roster-table-staff td:nth-child(2) strong {
        display: block;
        font-size: 0.66rem;
        line-height: 1.15;
        word-break: break-word;
    }

    .team-roster-table-staff td:nth-child(2) .team-roster-muted {
        font-size: 0.58rem;
        line-height: 1.1;
        margin-top: 1px;
    }

    .team-roster-table-staff td:nth-child(3) {
        font-size: 0.66rem;
    }

    .team-roster-compact-hide {
        display: none;
    }

    .team-staff-icon-table {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        border-radius: 8px;
        font-size: 0.72rem;
    }

    .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 th:not(.top-alltime-sortable) {
        text-align: left;
    }

    .top-tabs-table th.top-alltime-sortable {
        text-align: center;
    }

    .top-tabs-table .top-leader-name {
        display: inline;
    }

    /* Filtr Zápasy - mobilní záložky přilepené k hlavičce tabulky */
    .zapasy-venue-filter {
        gap: 0;
        margin: 12px 0 -1px;
        padding: 0;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .zapasy-venue-filter button + button {
        margin-left: -4px;
    }

    .zapasy-venue-filter button {
        min-width: 62px;
        min-height: 36px;
        padding: 7px 10px;
        border-radius: 8px 8px 0 0;
        font-size: 0.78rem;
    }

    .zapasy-table {
        margin-top: 0;
        border-top-left-radius: 0;
    }

    /* 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 36px;
        padding: 6px 4px;
        font-size: 0.8rem;
        min-width: 36px;
        min-height: 34px;
        border-radius: 7px 7px 0 0;
    }

    /* Tipovacka: na mobilu roztahnout tabulky pres celou sirku karty */
    .tipovacka-evaluation-card.card,
    .tipovacka-results-card.card {
        overflow-x: visible;
        overflow: visible;
    }

    .tipovacka-evaluation-card,
    .tipovacka-results-card {
        overflow-x: visible;
        overflow: visible;
    }

    .tipovacka-evaluation-card .team-view-panel,
    .tipovacka-results-card .team-view-panel {
        display: block;
        width: 100%;
        overflow-x: visible;
    }

    .tipovacka-race-row {
        padding: 10px;
    }

    .tipovacka-race-head {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .tipovacka-race-name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .tipovacka-voter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .tipovacka-voter-item span {
        white-space: normal;
    }

    .top-filters-header {
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .top-season-info {
        flex-direction: row;
        align-items: center;
        gap: 3px;
        padding: 3px 7px 4px;
        min-height: 32px;
        justify-content: center;
        border-radius: 8px 8px 0 0;
    }

    .top-season-info-label {
        font-size: 0.52rem;
        line-height: 1;
    }

    .top-season-info-year {
        font-size: 0.75rem;
        line-height: 1;
    }

    .top-season-info-select {
        font-size: 0.75rem;
        min-width: 4.4rem;
        line-height: 1;
    }

    .top-filter-icon {
        min-width: 1.35rem;
        font-size: 0.9rem;
    }

    .top-filter-icon-cards {
        min-width: 1.35rem;
    }

    .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;
}

.player-modal-legend {
    z-index: 1010;
}

.team-modal-legend-content {
    max-width: 360px;
    margin: 14vh auto 0;
    border-top-color: var(--green-dark);
}

.team-modal-legend-head {
    margin-bottom: 14px;
}

.team-modal-legend-head h3 {
    margin: 0;
    color: var(--green-dark);
    font-size: 1.15rem;
}

.team-modal-legend-list {
    display: grid;
    gap: 10px;
}

.team-modal-legend-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: #f7faf8;
    border: 1px solid #e1ebe4;
    border-radius: 10px;
    color: #335240;
}

.team-modal-legend-item .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#modalPositionItem.position-golman,
#modalAltPositionItem.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,
#modalAltPositionItem.position-golman .stat-label {
    color: #000;
}

#modalPositionItem.position-golman .stat-value,
#modalAltPositionItem.position-golman .stat-value {
    color: #6b5306;
    font-weight: bold;
}

#modalPositionItem.position-obrance,
#modalAltPositionItem.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,
#modalAltPositionItem.position-obrance .stat-label {
    color: #000;
}

#modalPositionItem.position-obrance .stat-value,
#modalAltPositionItem.position-obrance .stat-value {
    color: #92400e;
    font-weight: bold;
}

#modalPositionItem.position-zaloznik,
#modalAltPositionItem.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,
#modalAltPositionItem.position-zaloznik .stat-label {
    color: #000;
}

#modalPositionItem.position-zaloznik .stat-value,
#modalAltPositionItem.position-zaloznik .stat-value {
    color: #1e40af;
    font-weight: bold;
}

#modalPositionItem.position-utocnik,
#modalAltPositionItem.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,
#modalAltPositionItem.position-utocnik .stat-label {
    color: #000;
}

#modalPositionItem.position-utocnik .stat-value,
#modalAltPositionItem.position-utocnik .stat-value {
    color: #7f1d1d;
    font-weight: bold;
}

#modalPositionItem.position-veteran,
#modalAltPositionItem.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,
#modalAltPositionItem.position-veteran .stat-label {
    color: #000;
}

#modalPositionItem.position-veteran .stat-value,
#modalAltPositionItem.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));
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
}

.modal-position-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-position-stack .stat-item {
    width: 100%;
}

.modal-header-info .stat-item[hidden] {
    display: none !important;
}

#modalPositionItem,
#modalAltPositionItem {
    padding: 4px 6px;
    gap: 1px;
}

#modalPositionItem .stat-label,
#modalAltPositionItem .stat-label {
    font-size: 10px;
    letter-spacing: 0.35px;
}

#modalPositionItem .stat-value,
#modalAltPositionItem .stat-value {
    font-size: 14px;
    line-height: 1.1;
}

.player-stats {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}

.player-stats .stat-item[hidden] {
    display: none !important;
}

.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-clean-sheets {
    background: #eef8fa;
    border-left-color: #4f98a5;
}

.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-icon-clean-sheets {
    color: #2f7683;
    line-height: 0;
}

.stat-icon-clean-sheets svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.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);
}

.modal-actions {
    margin-top: 14px;
}

.modal-detail-link,
.modal-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.modal-detail-link:hover,
.modal-detail-back:hover {
    color: var(--green);
    opacity: 0.9;
}

.modal-content-detail {
    max-width: 760px;
}

.modal-detail-shell {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}

.modal-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-detail-subtitle {
    margin: 6px 0 0;
    color: #5f6f64;
}

.modal-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.modal-detail-table-wrap {
    border: 1px solid rgba(33, 74, 54, 0.12);
    border-radius: 14px;
    overflow: hidden;
}

.modal-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-detail-table th,
.modal-detail-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(33, 74, 54, 0.08);
}

.modal-detail-table th {
    background: rgba(33, 74, 54, 0.06);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-detail-table tbody tr:last-child td {
    border-bottom: none;
}

.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) {
    .team-modal-legend-content {
        width: 94%;
        margin: 18vh auto 0;
    }

    .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;
    }

    .modal-detail-head {
        flex-direction: column;
    }

    .modal-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-modal-detail {
        overflow-y: auto;
        padding: 16px 0;
    }

    .player-modal-detail .modal-content-detail {
        margin: 6vh auto 0;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
    }

    .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;
    }

    #modalPositionItem,
    #modalAltPositionItem {
        align-items: flex-start;
        text-align: left;
        padding: 4px 6px 4px 8px;
    }

    #modalPositionItem .stat-label,
    #modalPositionItem .stat-value,
    #modalAltPositionItem .stat-label,
    #modalAltPositionItem .stat-value {
        width: 100%;
        text-align: left;
    }

    .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) {
    .team-view-toggle-wrap {
        justify-content: flex-end;
    }

    .team-modal-legend-content {
        width: 96%;
        margin: 24vh auto 0;
    }

    .modal-content {
        width: 98%;
        margin: 30% auto;
        padding: 10px;
    }

    .player-modal-detail {
        padding: 10px 0;
    }

    .player-modal-detail .modal-content-detail {
        width: 96%;
        margin: 2vh auto 0;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
    }

    .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;
    }

    #modalPositionItem,
    #modalAltPositionItem {
        padding: 4px 5px 4px 7px;
    }

    .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;
    }
}

.match-calendar-item-label {
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aktuality-calendar-toggle-bar {
    margin: 6px 0 4px;
    padding: 10px 12px;
    border: 1px dashed rgba(21, 133, 62, 0.35);
    border-radius: 12px;
    background: rgba(21, 133, 62, 0.05);
    text-align: center;
}

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.48);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.auth-modal.is-open {
    display: flex;
}

.auth-modal-content {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 16px 34px rgba(8, 24, 15, 0.24);
    position: relative;
}

.auth-modal-content h3 {
    margin: 0 0 14px;
    color: var(--green-dark);
}

.auth-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #174429;
}

.auth-form input {
    border: 1px solid #bad8c2;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: inherit;
}

.auth-submit {
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: var(--green-dark);
    color: #fff;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit:hover {
    filter: brightness(1.06);
}

.auth-pw-ok {
    margin: 0 0 10px;
    color: #155f33;
    background: #e8f6ec;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-error {
    margin: 0 0 10px;
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-user-line {
    margin: 0 0 12px;
}

.auth-help {
    margin: 12px 0 0;
    color: #5f5f5f;
    font-size: 0.82rem;
}

.auth-submit-secondary {
    background: #eef7f0;
    color: var(--green-dark);
    border: 1px solid #cfe2d4;
}

.account-settings-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e3efe6;
}

.account-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.account-settings-head h4 {
    margin: 0;
    color: #174429;
    font-size: 1rem;
}

#pwChangeFormWrap {
    margin-top: 12px;
}

.settings-pref-switch-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.settings-pref-group {
    margin-top: 12px;
}

.settings-pref-group-title {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #174429;
}

.settings-pref-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b8c76;
    transition: color 0.18s ease;
}

.settings-pref-label.is-active {
    color: #174429;
}

.settings-pref-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 58px;
    padding: 3px;
    border: 1px solid #cfe2d4;
    border-radius: 999px;
    background: #eef7f0;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.settings-pref-toggle.is-modern {
    background: #e8f6ec;
    border-color: #b8dbc4;
}

.settings-pref-track {
    position: relative;
    display: block;
    width: 100%;
    height: 24px;
}

.settings-pref-thumb {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--green-dark);
    box-shadow: 0 4px 10px rgba(21, 133, 62, 0.18);
    transition: transform 0.18s ease;
}

.settings-pref-toggle.is-modern .settings-pref-thumb {
    transform: translateX(28px);
}

.settings-pref-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .account-settings-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-pref-switch-wrap {
        gap: 8px;
    }

    .settings-pref-label {
        font-size: 0.82rem;
    }
}

.admin-users-msg {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 9px;
    font-weight: 600;
}

.admin-users-msg.is-ok {
    background: #e8f6ec;
    color: #155f33;
}

.admin-users-msg.is-error {
    background: #fdeceb;
    color: #a8362a;
}

.admin-users-create-form {
    display: grid;
    gap: 8px;
    max-width: 460px;
}

.admin-articles-form {
    max-width: none;
    width: 100%;
}

.admin-articles-form input,
.admin-articles-form select,
.admin-articles-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.admin-articles-publish-toggle {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    margin: 10px 0 4px;
}

.admin-articles-publish-toggle input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.admin-users-create-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #174429;
}

.admin-users-create-form input,
.admin-users-create-form select,
.admin-users-create-form textarea,
.admin-users-inline-form select {
    border: 1px solid #bad8c2;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.92rem;
}

.admin-users-create-form textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.45;
}

.article-editor-box {
    border: 1px solid #c6decd;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.article-editor-toolbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 8px;
    border: 0;
    border-bottom: 1px solid #d5e6d9;
    border-radius: 0;
    background: linear-gradient(180deg, #f9fdfb 0%, #f2faf5 100%);
}

.article-editor-textarea {
    border: 0;
    border-radius: 0;
    margin: 0;
    min-height: 320px;
    padding: 12px;
}

.article-editor-textarea:focus {
    outline: none;
}

.article-editor-tool {
    border: 1px solid #b8d5c0;
    border-radius: 8px;
    background: #ffffff;
    color: #18462b;
    min-height: 38px;
    width: 100%;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(18, 70, 40, 0.08);
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.article-editor-tool:hover {
    background: #eef8f1;
    border-color: #94c7a4;
    box-shadow: 0 3px 10px rgba(22, 88, 49, 0.12);
}

.article-editor-tool:active {
    transform: translateY(1px);
}

.article-editor-tool:focus-visible {
    outline: 2px solid rgba(31, 174, 81, 0.32);
    outline-offset: 2px;
}

.admin-users-create-form button,
.admin-users-inline-form button,
.admin-users-toggle-btn {
    border: none;
    border-radius: 8px;
    background: var(--green-dark);
    color: #fff;
    padding: 8px 12px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-users-toggle-btn.is-deactivate {
    background: #c0392b;
}

.admin-users-toggle-btn.is-deactivate:hover:not(:disabled) {
    background: #a93226;
}

/* ========================= */
/*       LINEUP BUTTON       */
/* ========================= */

/* ========================= */
/*   TIPOVAČKA MATCHUP       */
/* ========================= */

.tipovacka-matchup-row {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin: 0;
    justify-content: center;
    width: 100%;
    min-height: 124px;
}

.tipovacka-matchup-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 1 176px;
    min-width: 0;
    text-align: center;
}

.tipovacka-matchup-team strong {
    font-size: 1.02rem;
    color: #173a25;
    line-height: 1.35;
}

.tipovacka-matchup-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    flex: 0 0 54px;
    box-shadow: 0 8px 18px rgba(12, 32, 21, 0.08);
}

.tipovacka-matchup-vs {
    flex: 0 0 auto;
    align-self: flex-start;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    color: #7a9585;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 18px;
}

.tipovacka-deadline-section {
    width: 100%;
    max-width: 460px;
    margin-bottom: 12px;
}

.tipovacka-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tipovacka-nomination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
    margin-top: 4px;
}

.tipovacka-preview {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 736px;
    box-sizing: border-box;
    margin: 0;
    padding: 36px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(243, 251, 248, 0.9) 100%);
    border: 2px solid rgba(33, 74, 54, 0.15);
    box-shadow: 0 14px 32px rgba(33, 74, 54, 0.1);
}

.tipovacka-preview-date {
    width: 100%;
    text-align: center;
    color: #1b5c35;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

#tipovacka-voting-form {
    width: 100%;
    max-width: 460px;
    margin: 0;
}

.tipovacka-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef7f1;
    border: 1px solid #c9dfcc;
    color: #1b5c35;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.tipovacka-meta-chip-link:hover,
.tipovacka-meta-chip-link:focus-visible {
    background: #e3f2e8;
    border-color: #a8cfb2;
    outline: none;
}

/* ========================= */
/*   TIPOVAČKA DEADLINE      */
/* ========================= */

.tipovacka-deadline-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tipovacka-deadline-date {
    color: #1b5c35;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.tipovacka-deadline-countdown {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', monospace, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #1a4f2e;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.tipovacka-cd-expired {
    color: #8b2a2a;
    font-size: 0.84rem;
    font-weight: 700;
}

.btn-lineup-modal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    margin-left: 8px;
    min-height: 28px;
    background: rgba(27, 92, 53, 0.09);
    color: #1b5c35;
    border: 1px solid rgba(27, 92, 53, 0.16);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 8px rgba(18, 70, 40, 0.08);
}

.btn-lineup-modal:hover {
    background: rgba(27, 92, 53, 0.14);
    border-color: rgba(27, 92, 53, 0.24);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 70, 40, 0.12);
}

.btn-lineup-modal:focus-visible {
    outline: 2px solid rgba(31, 174, 81, 0.3);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .tipovacka-preview {
        gap: 17px;
        padding: 28px 26px;
    }

    .tipovacka-matchup-row {
        min-height: 96px;
    }

    .tipovacka-preview-date {
        margin-bottom: 2px;
    }

    .tipovacka-nomination-row {
        justify-content: center;
    }

    .btn-lineup-modal {
        margin-left: 0;
    }
}

.lineup-body {
    padding: 14px 0;
    min-height: 120px;
}

.lineup-list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.lineup-list li {
    padding: 6px 0;
    color: #1a3d26;
    font-size: 0.95rem;
    line-height: 1.5;
}

.admin-votes-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 1rem;
}

.admin-votes-toolbar-note {
    margin: 0;
    color: inherit;
    font-size: 1rem;
    line-height: 1.6;
}

.admin-lineup-modal .auth-modal-content {
    width: min(720px, 100%);
    max-height: min(88vh, 820px);
    overflow-y: auto;
}

.admin-lineup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.admin-lineup-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.admin-lineup-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.admin-lineup-form label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #174429;
}

.admin-lineup-form select,
.admin-lineup-form textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #bad8c2;
    border-radius: 9px;
    padding: 10px 12px;
    font: inherit;
    color: #173322;
    background: #fff;
    box-sizing: border-box;
}

.admin-lineup-form textarea {
    min-height: 120px;
    max-height: 180px;
    resize: vertical;
    line-height: 1.5;
}

.admin-lineup-help {
    margin: 0;
    color: #5a6d60;
    font-size: 0.88rem;
    line-height: 1.5;
}

.admin-lineup-actions {
    display: flex;
    justify-content: flex-end;
}

.lineup-list .lineup-list-heading {
    list-style: none;
    margin: 10px 0 2px -20px;
    padding: 8px 0 2px;
    color: #245f36;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    #lineupModal .auth-modal-content {
        width: min(92vw, 420px);
        max-height: min(86vh, 680px);
        padding: 14px 14px 12px;
    }

    #lineupModal .auth-modal-content h3 {
        margin: 0 24px 8px 0;
        font-size: 1rem;
        line-height: 1.2;
    }

    #lineupModal .auth-modal-close {
        top: 8px;
        right: 10px;
    }

    #lineupModal .lineup-body {
        padding: 8px 0 4px;
        min-height: 0;
    }

    #lineupModal .lineup-list {
        padding-left: 16px;
    }

    #lineupModal .lineup-list li {
        padding: 3px 0;
        font-size: 0.86rem;
        line-height: 1.28;
    }

    #lineupModal .lineup-list .lineup-list-heading {
        margin: 8px 0 1px -16px;
        padding: 5px 0 1px;
        font-size: 0.74rem;
        line-height: 1.15;
    }
}

.admin-users-inline-form button:disabled,
.admin-users-inline-form select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-users-table {
    margin-top: 10px;
}

.admin-users-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-articles-action-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-articles-action-btn i {
    font-size: 0.9rem;
}

.admin-articles-edit-btn {
    background: #145d35;
    color: #fff;
}

.admin-articles-edit-btn:hover {
    background: #0f4a2a;
}

.admin-articles-delete-btn {
    background: #8f1f1f;
    color: #fff;
}

.admin-articles-delete-btn:hover {
    background: #741818;
}

.admin-articles-action-btn:focus-visible {
    outline: 2px solid rgba(31, 174, 81, 0.32);
    outline-offset: 2px;
}

.admin-users-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e8f6ec;
    color: #155f33;
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-users-state {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-users-state.is-active {
    background: #e8f6ec;
    color: #155f33;
}

.admin-users-state.is-inactive {
    background: #f3f3f3;
    color: #6f6f6f;
}

.admin-users-btn-icon {
    display: inline-flex;
    font-size: 0.86rem;
}

.admin-users-btn-text {
    display: none;
}

.admin-users-save-btn,
.admin-users-toggle-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-users-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

.admin-users-table td:last-child > * {
    display: inline-flex;
    vertical-align: middle;
}

.admin-users-table td:last-child > * + * {
    margin-left: 6px;
}

.admin-users-table th:last-child {
    text-align: right;
}

.admin-users-state-compact {
    display: none;
    align-items: center;
    gap: 4px;
}

.admin-votes-table .admin-votes-th-icon {
    display: none;
}

.admin-votes-table .admin-votes-score-short {
    display: none;
}

.admin-votes-delete-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-votes-delete-btn i {
    font-size: 0.92rem;
}

.admin-votes-filter {
    max-width: 100%;
}

.admin-votes-filter label {
    display: block;
    margin-bottom: 6px;
}

.admin-votes-filter select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calendar-season-switcher-wrap {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 1rem;
}

.calendar-season-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #d8e6d8;
    border-radius: 999px;
    background: #f7fbf7;
    box-shadow: 0 8px 20px rgba(19, 64, 44, 0.06);
}

.calendar-season-switcher label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4c6b52;
}

.calendar-season-switcher select {
    width: auto;
    min-width: 8.5rem;
    max-width: 11rem;
    padding: 0.45rem 2rem 0.45rem 0.8rem;
    border: 1px solid #c8d9c8;
    border-radius: 999px;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #3f6546 50%), linear-gradient(135deg, #3f6546 50%, transparent 50%);
    background-position: calc(100% - 1rem) calc(50% - 0.12rem), calc(100% - 0.7rem) calc(50% - 0.12rem);
    background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
    background-repeat: no-repeat;
    box-sizing: border-box;
    font-size: 0.95rem;
    font-weight: 600;
    color: #17351f;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.calendar-season-switcher select:focus {
    outline: none;
    border-color: #7ca685;
    box-shadow: 0 0 0 3px rgba(124, 166, 133, 0.18);
}

@media (max-width: 700px) {
    .article-editor-toolbar {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
        padding: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-editor-tool {
        flex: 1 1 0;
        min-width: 0;
        min-height: 32px;
        padding: 5px 4px;
        font-size: 0.74rem;
        border-radius: 7px;
    }

    .admin-users-table {
        table-layout: fixed;
    }

    .admin-users-table th,
    .admin-users-table td {
        padding: 7px 5px;
        font-size: 0.78rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .admin-users-table th:nth-child(1),
    .admin-users-table td:nth-child(1) {
        width: 7%;
        text-align: center;
    }

    .admin-users-table th:nth-child(2),
    .admin-users-table td:nth-child(2) {
        width: 30%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-users-table th:nth-child(3),
    .admin-users-table td:nth-child(3) {
        width: 27%;
    }

    .admin-users-table th:nth-child(4),
    .admin-users-table td:nth-child(4) {
        width: 7%;
        text-align: center;
    }

    .admin-users-table th:nth-child(5),
    .admin-users-table td:nth-child(5) {
        width: 29%;
    }

    .admin-users-table td:last-child {
        text-align: right;
    }

    .admin-users-table td:last-child .admin-users-inline-form {
        gap: 0;
        margin: 0;
        flex: 0 0 auto;
    }

    .admin-users-table td:last-child > * + * {
        margin-left: 4px;
    }

    .admin-users-state-full {
        display: none;
    }

    .admin-users-state-compact {
        display: inline-flex;
    }

    .admin-users-inline-form {
        gap: 4px;
    }

    .admin-users-inline-form select {
        font-size: 0.76rem;
        padding: 6px 4px;
        min-width: 56px;
    }

    .admin-users-save-btn,
    .admin-users-toggle-btn {
        min-width: 28px;
        min-height: 28px;
        border-radius: 7px;
    }

    .admin-users-state {
        padding: 2px 4px;
        justify-content: center;
    }

    .admin-articles-action-btn {
        min-width: 30px;
        min-height: 30px;
        border-radius: 7px;
    }

    .admin-articles-action-btn i {
        font-size: 0.82rem;
    }

    .admin-articles-table {
        width: 100%;
        table-layout: fixed;
    }

    .admin-articles-table th,
    .admin-articles-table td {
        font-size: 0.74rem;
        padding: 6px 4px;
    }

    .admin-articles-table th:nth-child(1),
    .admin-articles-table td:nth-child(1) {
        width: auto;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .admin-articles-table th:nth-child(2),
    .admin-articles-table td:nth-child(2) {
        width: 88px;
        text-align: left;
        white-space: normal;
    }

    .admin-articles-table th:nth-child(3),
    .admin-articles-table td:nth-child(3) {
        display: none;
    }

    .admin-articles-table th:nth-child(4),
    .admin-articles-table td:nth-child(4) {
        width: 108px;
        text-align: right;
        white-space: nowrap;
    }

    .admin-articles-title-text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }

    .admin-users-state-full {
        display: none;
    }

    .admin-users-state-compact {
        display: inline-flex;
    }

    .admin-votes-filter label {
        font-size: 0.85rem;
    }

    .admin-votes-filter select {
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    .calendar-season-switcher-wrap {
        margin-bottom: 0.85rem;
    }

    .calendar-season-switcher {
        gap: 0.45rem;
        padding: 0.4rem 0.55rem;
    }

    .calendar-season-switcher label {
        font-size: 0.72rem;
    }

    .calendar-season-switcher select {
        min-width: 7.25rem;
        max-width: 9.5rem;
        font-size: 0.86rem;
        padding: 0.4rem 1.75rem 0.4rem 0.7rem;
    }

    .admin-votes-table {
        table-layout: fixed;
    }

    .admin-votes-table th,
    .admin-votes-table td {
        padding: 8px 6px;
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .admin-votes-table th .admin-votes-th-label {
        display: none;
    }

    .admin-votes-table .admin-votes-th-icon {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        font-size: 0.9rem;
    }

    .admin-votes-table th:nth-child(1),
    .admin-votes-table td:nth-child(1) {
        width: 24%;
    }

    .admin-votes-table th:nth-child(2),
    .admin-votes-table td:nth-child(2) {
        width: 24%;
    }

    .admin-votes-table th:nth-child(3),
    .admin-votes-table td:nth-child(3) {
        width: 14%;
        text-align: center;
    }

    .admin-votes-table th:nth-child(4),
    .admin-votes-table td:nth-child(4) {
        width: 27%;
        text-align: center;
        white-space: nowrap;
        font-size: 0.72rem;
    }

    .admin-votes-table th:nth-child(5),
    .admin-votes-table td:nth-child(5) {
        width: 11%;
        text-align: center;
    }

    .admin-votes-table .admin-votes-score-full {
        display: none;
    }

    .admin-votes-table .admin-votes-score-short {
        display: inline;
    }

    .admin-votes-delete-btn {
        min-width: 30px;
        min-height: 30px;
        padding: 0;
        border-radius: 7px;
    }

    .admin-votes-delete-btn i {
        font-size: 0.82rem;
    }
}

@media (max-width: 600px) and (orientation: portrait) {
    .top-tabs-wrap .top-filters {
        padding-top: 34px;
        overflow-y: visible;
    }

    .top-filters-header {
        align-items: flex-end;
    }

    .top-season-info {
        align-self: flex-end;
    }

    .top-tabs-wrap .top-filters button {
        flex: 0 0 36px;
        min-width: 36px;
        min-height: 34px;
        padding: 6px 4px;
    }

    .top-filter-icon {
        transform: none;
    }

    .top-tabs-wrap .top-filters button::after {
        display: block;
        top: -30px;
        bottom: auto;
        left: 50%;
        padding: 4px 8px;
        background: rgba(26, 26, 26, 0.92);
        color: white;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
        border-radius: 6px;
        max-width: 112px;
        overflow: visible;
        text-overflow: clip;
        font-size: 0.6rem;
        font-weight: 600;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        opacity: 0;
        transform: translateX(-50%) translateY(0);
        z-index: 8;
    }

    .top-tabs-wrap .top-filters button:first-child::after {
        left: 0;
        transform: translateX(0) translateY(0);
    }

    .top-tabs-wrap .top-filters button:last-child::after {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(0);
    }

    .top-tabs-wrap .top-filters button.active::after {
        opacity: 1;
    }

    .top-tabs-wrap .top-filters button:not(.active)::after {
        opacity: 0;
    }

    #votersModal .tipovacka-voters-list {
        margin-top: 14px;
    }
}