/* =========================================================
   ZÁPASY - CSS (zapasy.css) — COL LEAGUE ESPORTS BROADCAST
   ========================================================= */

:root {
    --col-primary: #ff4b0b;
    --col-primary-bright: #ff7e42;
    --col-win: #22c55e;
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

/* --- FILTRAČNÍ LIŠTA ZÁPASŮ --- */
.match-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.match-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.match-tab {
    appearance: none;
    background: #121519;
    border: 1px solid #282d34;
    border-radius: 4px;
    color: #9ba1ab;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 0.05em;
    word-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.45rem 1.15rem;
    cursor: pointer;
    transition: all 0.16s ease;
}

.match-tab:hover {
    border-color: #ff4b0b;
    color: #fff;
    background: rgba(255, 75, 11, 0.08);
}

.match-tab--active {
    border-color: #ff4b0b !important;
    background: #ff4b0b !important;
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(255, 75, 11, 0.3);
}

.match-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
}

.matches-note {
    max-width: 620px;
    color: #717782;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

/* --- VÝBĚROVÉ DROPDOWNY (TEAMS & ROUNDS) --- */
.finished-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: #0d0f12;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
}

.finished-tools__filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.finished-tools__count {
    color: #8c939e;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.col-dropdown {
    position: relative;
    min-width: 190px;
}

.col-dropdown__button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0.35rem 0.85rem;
    background: #14171c;
    border: 1px solid #282d35;
    border-radius: 4px;
    color: #e5e7eb;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.16s ease;
}

.col-dropdown__button:hover,
.col-dropdown.is-open .col-dropdown__button {
    border-color: #ff4b0b;
    background: #1a1e24;
    color: #fff;
}

.col-dropdown__selected {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-dropdown__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.col-dropdown__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #ff4b0b;
    border-bottom: 2px solid #ff4b0b;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.col-dropdown.is-open .col-dropdown__chevron {
    transform: rotate(225deg);
}

.col-dropdown__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 210px;
    max-height: 320px;
    overflow-y: auto;
    background: #0d1013;
    border: 1px solid rgba(255, 75, 11, 0.4);
    border-radius: 4px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
    z-index: 100;
    padding: 4px;
}

.col-dropdown__option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.65rem;
    background: transparent;
    border: none;
    border-radius: 3px;
    color: #aeb4be;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: all 0.12s ease;
}

.col-dropdown__option:hover {
    background: rgba(255, 75, 11, 0.14);
    color: #fff;
}

.col-dropdown__option.is-selected {
    background: #ff4b0b;
    color: #000;
    font-weight: 700;
}

.col-dropdown__option .col-dropdown__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* --- SKUPINY ZÁPASŮ A NADPISY --- */
.matches-group + .matches-group {
    margin-top: 3.5rem;
}

.matches-group__title {
    margin: 0 0 1.25rem;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: 0.035em;
    word-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffffff;
}

.matches-list-new {
    display: grid;
    gap: 0.95rem;
}

/* --- KATEGORIE / DATUMOVÉ ACCORDIONY (BROADCAST SCHEDULE) --- */
.match-date-group {
    margin: 0 0 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: #0b0d10;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.match-date-group:hover {
    border-color: rgba(255, 75, 11, 0.3);
}

.match-date-group--latest {
    border-color: rgba(255, 75, 11, 0.45);
    box-shadow: 0 4px 24px rgba(255, 75, 11, 0.10);
}

.match-date-group > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0.95rem 1.4rem;
    background: linear-gradient(90deg, #15181e 0%, #0d1013 100%);
    border-left: 4px solid #2a2f38;
    user-select: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.match-date-group--latest > summary {
    border-left-color: #ff4b0b;
    background: linear-gradient(90deg, rgba(255, 75, 11, 0.18) 0%, #15181e 38%, #0d1013 100%);
}

.match-date-group > summary::-webkit-details-marker {
    display: none;
}

.match-date-group > summary:hover {
    background: linear-gradient(90deg, #1b2027 0%, #101318 100%);
}

.match-date-group--latest > summary:hover {
    background: linear-gradient(90deg, rgba(255, 75, 11, 0.24) 0%, #1b2027 38%, #101318 100%);
}

.match-date-group__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.match-date-group__date {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0.05em;
    word-spacing: 0.2em;
    font-weight: 700;
}

.match-date-group__latest {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: #ff4b0b;
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(255, 75, 11, 0.35);
    line-height: 1;
}

.match-date-group__right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.match-date-group__count {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 4px;
    color: #9da3ad;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 0.06em;
}

.match-date-group__chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #ff4b0b;
    border-bottom: 2px solid #ff4b0b;
    transform: rotate(45deg);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.match-date-group[open] .match-date-group__chevron {
    transform: rotate(225deg);
}

.match-date-group__matches {
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
}

/* --- KARTA ZÁPASU (ESPORTS BROADCAST CARD) --- */
.match-card-new {
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(220px, auto) minmax(200px, 1fr);
    gap: 1.75rem;
    align-items: center;
    min-height: 130px;
    padding: 1.35rem 1.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, #111418 0%, #0c0e12 100%);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.match-card-new:hover,
.match-card-new:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 75, 11, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    outline: none;
}

/* Zvýraznění nejbližšího zápasu */
.match-card-new--nearest {
    border-color: rgba(255, 75, 11, 0.6) !important;
    box-shadow: 0 0 20px rgba(255, 75, 11, 0.15) !important;
}

.match-card-new--nearest::before {
    content: "NEJBLIŽŠÍ ZÁPAS";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    padding: 3px 10px;
    background: #ff4b0b;
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-bottom-right-radius: 4px;
}

/* Vítězná aura na kartě zápasu */
.match-card-new.card-winner-left {
    background: linear-gradient(90deg, rgba(255, 75, 11, 0.10) 0%, rgba(255, 255, 255, 0.015) 36%, #0c0e12 100%) !important;
    border-left: 3px solid #ff4b0b !important;
}

.match-card-new.card-winner-right {
    background: linear-gradient(270deg, rgba(255, 75, 11, 0.10) 0%, rgba(255, 255, 255, 0.015) 36%, #0c0e12 100%) !important;
    border-right: 3px solid #ff4b0b !important;
}

/* --- TÝMY V KARTĚ --- */
.match-team {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-width: 0;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.match-team--right {
    flex-direction: row-reverse;
    text-align: right;
}

.team-mark {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #282d35;
    background: #13161a;
    padding: 6px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.team-mark img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.match-team__info {
    min-width: 0;
}

.match-team__name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    word-spacing: 0.18em;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-team--right .match-team__name {
    justify-content: flex-end;
}

.match-team__record {
    margin-top: 0.35rem;
    color: #7b838f;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- VÍTĚZ ZÁPASU (ESPORTS VICTORY ACCENT) --- */
.match-team.is-winner {
    opacity: 1 !important;
}

.match-team.is-winner .team-mark {
    border-color: rgba(255, 75, 11, 0.7) !important;
    background: radial-gradient(circle at center, rgba(255, 75, 11, 0.18), #14181d) !important;
    box-shadow: 0 0 18px rgba(255, 75, 11, 0.25) !important;
    transform: scale(1.02);
}

.match-team.is-winner .match-team__name {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 0 18px rgba(255, 75, 11, 0.3) !important;
}

.match-team.is-winner .match-team__record {
    color: #a4adba !important;
}

/* Čistý, elegantní victory badge bez překrývání písmen */
.match-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    background: rgba(255, 75, 11, 0.16);
    border: 1px solid rgba(255, 75, 11, 0.55);
    color: #ff7e42;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 75, 11, 0.22);
    vertical-align: middle;
}

.match-winner-badge .winner-star {
    color: #ff4b0b;
    font-size: 0.9rem;
}

/* --- PORAŽENÝ TÝM (DIGNIFIED MUTED) --- */
.match-team.is-loser {
    opacity: 0.42 !important;
    filter: grayscale(0.45) contrast(0.85);
}

.match-team.is-loser .team-mark {
    border-color: #22252b !important;
    background: #0e1013 !important;
    box-shadow: none !important;
}

.match-team.is-loser .match-team__name {
    color: #7b818d !important;
    text-shadow: none !important;
}

.match-team.is-loser .match-team__record {
    color: #4f555e !important;
}

/* --- STŘED KARTY (ČAS / SKÓRE / META) --- */
.match-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.match-meta {
    color: #787f8a;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    word-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0.25rem 0;
    font-family: var(--font-heading);
    font-size: 3.4rem;
    line-height: 1;
    letter-spacing: 0.06em;
}

.score-winner {
    color: #ff4b0b !important;
    font-weight: 700;
    text-shadow: 0 0 22px rgba(255, 75, 11, 0.45);
}

.score-loser {
    color: #484e56 !important;
}

.score-divider {
    color: #383c44;
    font-size: 2.8rem;
    line-height: 1;
}

.match-time {
    margin: 0.35rem 0;
    font-family: var(--font-heading);
    font-size: 2.3rem;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0.05em;
}

/* --- ODZNÁČKY & TLAČÍTKO DETAIL --- */
.match-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.match-badge {
    padding: 0.3rem 0.65rem;
    background: #14171b;
    border: 1px solid #282d34;
    border-radius: 3px;
    color: #9da3ad;
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.16s ease;
}

.match-badge--live {
    border-color: #ff4b0b;
    color: #ff7e42;
    background: rgba(255, 75, 11, 0.1);
}

.match-badge--live:hover {
    background: #ff4b0b;
    color: #000;
    font-weight: 700;
}

.match-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.32rem 1.05rem;
    background: #ff4b0b;
    border: 1px solid #ff4b0b;
    border-radius: 4px;
    color: #000;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(255, 75, 11, 0.25);
    transition: all 0.18s ease;
}

.match-info-button:hover,
.match-info-button:focus-visible {
    background: #ff6a2b;
    border-color: #ff6a2b;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 75, 11, 0.45);
    outline: none;
}

.match-detail-desktop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.match-detail-mobile {
    display: none;
}

/* --- RESPONZIVITA (TABLET & MOBIL) --- */
@media (max-width: 980px) {
    .match-card-new {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.35rem 1.25rem;
        text-align: center;
    }

    .match-team,
    .match-team--right {
        flex-direction: column;
        text-align: center;
        gap: 0.65rem;
    }

    .match-team__name,
    .match-team--right .match-team__name {
        justify-content: center;
        font-size: 1.45rem;
    }

    .match-card-new.card-winner-left,
    .match-card-new.card-winner-right {
        border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-top: 3px solid #ff4b0b !important;
    }
}

@media (max-width: 720px) {
    .match-filter-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.85rem;
    }

    .match-tabs {
        width: 100%;
        gap: 0.35rem;
    }

    .match-tab {
        flex: 1 1 auto;
        text-align: center;
        font-size: 1rem;
        padding: 0.38rem 0.65rem;
    }

    .finished-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .finished-tools__filters {
        width: 100%;
        flex-direction: column;
    }

    .col-dropdown {
        width: 100%;
    }

    .match-date-group > summary {
        padding: 0.8rem 1rem;
    }

    .match-date-group__date {
        font-size: 1.3rem;
    }

    .match-date-group__count {
        font-size: 0.95rem;
        padding: 2px 8px;
    }

    .match-score {
        font-size: 2.8rem;
    }
}

/* --- POSUVNÍKY (SCROLLBARS) --- */
.matches-list-new,
.match-tabs,
.finished-tools,
.col-dropdown__menu {
    scrollbar-width: thin;
    scrollbar-color: #ff4b0b #121417;
}

.col-dropdown__menu::-webkit-scrollbar,
.matches-list-new::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.col-dropdown__menu::-webkit-scrollbar-track,
.matches-list-new::-webkit-scrollbar-track {
    background: #0e1114;
    border-radius: 3px;
}

.col-dropdown__menu::-webkit-scrollbar-thumb,
.matches-list-new::-webkit-scrollbar-thumb {
    background: #ff4b0b;
    border-radius: 3px;
}
/* v17.7 — Swiss generated match marker */
.match-badge--swiss{border-color:rgba(255,75,11,.42)!important;background:rgba(255,75,11,.08)!important;color:#ff8754!important}
