/* =========================================================
   HOCKAI — CALENDRIER NHL / MOBILE PREMIUM
   ========================================================= */

#calendar-match-detail {
    width: 100%;
    min-width: 0;
    padding-bottom: 90px;
}

#calendar-detail-tabs {
    position: sticky;
    top: 0;
    z-index: 40;

    background: rgba(5, 15, 27, 0.96);
    backdrop-filter: blur(18px);

    border-top: 1px solid rgba(71, 85, 105, 0.35);
    border-bottom: 1px solid rgba(71, 85, 105, 0.35);
}

#calendar-detail-tabs button {
    min-height: 56px;
    touch-action: manipulation;
}

[data-calendar-detail-panel] {
    min-width: 0;
}


/* ---------- SCROLL HORIZONTAL ---------- */

.calendar-swipe-row {
    display: flex;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    padding: 2px 2px 10px;
}

.calendar-swipe-row::-webkit-scrollbar {
    display: none;
}

.calendar-snap-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
}


/* ---------- COMPOSITIONS ---------- */

.calendar-team-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.calendar-team-selector button {
    min-height: 58px;

    border: 1px solid #24364b;
    border-radius: 14px;

    background: #081522;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.calendar-team-selector button.active {
    border-color: #00d9ff;
    background:
        linear-gradient(
            135deg,
            rgba(0, 217, 255, 0.14),
            rgba(8, 21, 34, 1)
        );

    box-shadow:
        0 0 0 1px rgba(0, 217, 255, 0.14),
        0 8px 25px rgba(0, 217, 255, 0.07);
}


.calendar-line-tabs {
    display: flex;
    gap: 8px;

    overflow-x: auto;
    scrollbar-width: none;

    padding: 3px 1px 8px;
}

.calendar-line-tabs::-webkit-scrollbar {
    display: none;
}

.calendar-line-tabs button {
    flex: 0 0 58px;

    height: 48px;

    border: 1px solid #26384d;
    border-radius: 999px;

    background: #081522;

    color: #8ea1b7;

    font-weight: 900;
    font-size: 12px;
}

.calendar-line-tabs button.active {
    background: #00cfff;
    color: #021019;
    border-color: #00e5ff;

    box-shadow:
        0 0 20px rgba(0, 229, 255, 0.25);
}


/* ---------- JOUEUR COMPOSITION ---------- */

.calendar-line-player {
    position: relative;

    flex: 0 0 min(72vw, 240px);

    overflow: hidden;

    border: 1px solid #25394f;
    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #0c1c2c 0%,
            #07111d 100%
        );

    scroll-snap-align: center;
}

.calendar-line-player-photo {
    width: 100%;
    height: 210px;

    object-fit: cover;
    object-position: center top;

    background: #0e1b29;
}

.calendar-line-player-body {
    padding: 13px 14px 15px;
}

.calendar-line-player-name {
    color: white;
    font-size: 16px;
    line-height: 1.12;
    font-weight: 900;
}

.calendar-line-player-meta {
    margin-top: 5px;

    color: #6e8299;

    font-size: 10px;
    font-weight: 800;
}


/* ---------- FACE À FACE ---------- */

.calendar-h2h-swipe .calendar-h2h-card {
    flex: 0 0 220px;

    border: 1px solid #25384d;
    border-radius: 15px;

    background: #071421;

    padding: 14px;

    scroll-snap-align: center;
}

.calendar-h2h-card.active {
    border-color: #00d9ff;

    box-shadow:
        0 0 0 1px rgba(0, 217, 255, 0.15),
        0 0 24px rgba(0, 217, 255, 0.08);
}


/* ---------- DRAWER FACE À FACE ---------- */

#calendar-h2h-drawer {
    position: fixed;
    inset: 0;

    z-index: 3000;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(7px);

    padding: 12px;
}

#calendar-h2h-drawer.hidden {
    display: none;
}

.calendar-h2h-sheet {
    width: 100%;
    max-width: 850px;

    max-height: 88vh;

    overflow-y: auto;

    border: 1px solid #1e5d76;
    border-radius: 26px 26px 16px 16px;

    background: #071421;

    box-shadow:
        0 -20px 60px rgba(0, 0, 0, 0.5);

    padding:
        16px
        14px
        calc(20px + env(safe-area-inset-bottom));
}


/* ---------- STATS ---------- */

.calendar-stat-card {
    border: 1px solid #21364c;
    border-radius: 16px;

    background: #081522;

    padding: 14px;
}

.calendar-stat-values {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
}

.calendar-stat-track {
    height: 8px;

    background: #172638;

    border-radius: 999px;

    overflow: hidden;
}

.calendar-stat-fill {
    height: 100%;
    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #00d9ff,
            #2688ff
        );
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 767px) {

    body {
        overflow-x: hidden;
    }

    main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #tab-matchs {
        width: 100%;
    }

    #calendar-match-detail {
        width: 100%;
        margin: 0;
    }


    /* Onglets comme la maquette */

    #calendar-detail-tabs {
        grid-template-columns: repeat(5, minmax(70px, 1fr));
        overflow-x: auto;
        scrollbar-width: none;
    }

    #calendar-detail-tabs::-webkit-scrollbar {
        display: none;
    }

    #calendar-detail-tabs button {
        min-width: 74px;

        padding:
            9px 4px !important;

        font-size: 7px !important;

        white-space: nowrap;
    }


    /* Les deux grosses colonnes desktop deviennent cartes */

    #calendar-detail-panel-overview .grid.lg\:grid-cols-2,
    #calendar-detail-panel-players .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }


    .calendar-h2h-sheet table {
        min-width: 720px;
    }


    .calendar-h2h-table-scroll {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    .calendar-h2h-sheet {
        border-radius: 20px;
        margin-bottom: 5vh;
    }

    .calendar-line-player {
        flex-basis: 230px;
    }
}
/* =========================================================
   HOCKAI CALENDRIER — CORRECTION SCROLL MOBILE
   ========================================================= */

@media (max-width: 767px) {

    html,
    body {
        width: 100%;
        height: auto !important;
        min-height: 100% !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        overscroll-behavior-y: auto !important;
    }

    body {
        display: block !important;

        min-height: 100dvh !important;

        touch-action: pan-y !important;

        -webkit-overflow-scrolling: touch;
    }

    main {
        width: 100% !important;

        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;

        overflow: visible !important;
    }

    #tab-matchs {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;

        padding-bottom:
            calc(
                120px +
                env(safe-area-inset-bottom)
            ) !important;
    }

    #calendar-main-view,
    #calendar-match-detail {
        width: 100% !important;

        height: auto !important;
        max-height: none !important;

        overflow: visible !important;
    }
}
/* =========================================================
   CARTES MATCH — MOBILE PREMIUM
   ========================================================= */

.calendar-game-card {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767px) {

    .calendar-game-card {
        grid-template-columns:
            56px
            minmax(0, 1fr)
            54px !important;

        gap: 8px !important;

        min-height: 88px !important;

        padding:
            11px
            10px !important;

        border-radius: 15px !important;

        background:
            linear-gradient(
                145deg,
                #091827 0%,
                #06111d 100%
            );

        box-shadow:
            0 8px 26px
            rgba(0, 0, 0, 0.18);

        transition:
            border-color 0.18s ease,
            background 0.18s ease,
            transform 0.12s ease,
            box-shadow 0.18s ease;
    }

    .calendar-game-card:active {
        border-color:
            rgba(0, 229, 255, 0.55) !important;

        background:
            linear-gradient(
                145deg,
                #0c2032 0%,
                #071522 100%
            );

        box-shadow:
            0 0 0 1px
            rgba(0, 229, 255, 0.10),
            0 8px 30px
            rgba(0, 229, 255, 0.06);
    }

    .calendar-game-card > button {
        min-height: 38px;

        border-radius: 10px !important;
    }
}
/* =========================================================
   HOCKAI SNAPSHOT
   ========================================================= */

@media (max-width: 767px) {

    .calendar-mobile-insights {
        margin-left: 0;
        margin-right: 0;

        padding: 15px;

        border:
            1px solid
            rgba(51, 65, 85, 0.85);

        border-radius: 18px;

        background:
            radial-gradient(
                circle at 100% 0%,
                rgba(0, 229, 255, 0.08),
                transparent 42%
            ),
            linear-gradient(
                145deg,
                #091725,
                #06101c
            );

        box-shadow:
            0 15px 40px
            rgba(0, 0, 0, 0.22);
    }


    .calendar-mobile-insight-grid {
        display: grid;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 7px;
    }


    .calendar-mobile-insight-card {
        min-width: 0;

        min-height: 104px;

        padding:
            11px
            9px;

        border:
            1px solid
            rgba(51, 65, 85, 0.82);

        border-radius: 13px;

        background:
            rgba(
                5,
                15,
                27,
                0.78
            );
    }
}
/* =========================================================
   COMPOSITIONS — PATINOIRE MOBILE
   ========================================================= */

.calendar-lineup-carousel {
    display: flex;

    width: 100%;

    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    overscroll-behavior-x: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.calendar-lineup-carousel::-webkit-scrollbar {
    display: none;
}


.calendar-rink-slide {
    position: relative;

    flex: 0 0 100%;

    min-width: 100%;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    overflow: hidden;

    border: 1px solid #21374c;

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #0b1928,
            #06101b
        );
}


.calendar-rink-header {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 11px 13px;

    border-bottom:
        1px solid
        rgba(51, 65, 85, 0.65);
}

.calendar-rink-header strong {
    display: block;

    color: white;

    font-size: 12px;

    font-weight: 900;
}

.calendar-rink-header span {
    display: block;

    margin-top: 2px;

    color: #64748b;

    font-size: 7px;

    font-weight: 800;
}


.calendar-rink-counter {
    color: #7dd3fc;

    font-size: 9px;

    font-weight: 900;
}


/* ---------- PATINOIRE ---------- */

.calendar-rink {
    position: relative;

    overflow: hidden;

    padding:
        18px
        8px
        17px;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 229, 255, 0.065),
            transparent 46%
        ),
        linear-gradient(
            180deg,
            #0a1b2b,
            #07131f
        );
}


.calendar-rink::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 8%;

    width: 125px;
    height: 125px;

    transform:
        translateX(-50%);

    border:
        1px solid
        rgba(56, 189, 248, 0.10);

    border-radius: 50%;

    pointer-events: none;
}


.calendar-rink::after {
    content: "";

    position: absolute;

    left: 6%;
    right: 6%;
    top: 55%;

    height: 1px;

    background:
        rgba(239, 68, 68, 0.10);

    pointer-events: none;
}


.calendar-rink-center-line {
    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 1px;

    background:
        linear-gradient(
            transparent,
            rgba(56, 189, 248, 0.08),
            transparent
        );

    pointer-events: none;
}


/* ---------- 3 ATTAQUANTS ---------- */

.calendar-rink-forwards {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    align-items: start;

    gap: 5px;
}


/* ---------- 2 DÉFENSEURS ---------- */

.calendar-rink-defense {
    position: relative;

    z-index: 2;

    width: 72%;

    margin:
        18px auto 0;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}


/* ---------- PETIT JOUEUR ---------- */

.calendar-rink-player {
    min-width: 0;

    text-align: center;
}


.calendar-rink-photo {
    position: relative;

    width: 62px;
    height: 62px;

    margin:
        0 auto 5px;

    overflow: hidden;

    border:
        1px solid
        rgba(56, 189, 248, 0.17);

    border-radius: 16px;

    background: #0d1d2d;
}


.calendar-rink-photo > img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}


.calendar-rink-photo-fallback {
    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;
}

.calendar-rink-photo-fallback img {
    width: 35px;
    height: 35px;

    object-fit: contain;

    opacity: 0.35;
}


.calendar-rink-photo-empty {
    display: flex;

    align-items: center;
    justify-content: center;

    color: #475569;
}


.calendar-rink-role {
    color: #38bdf8;

    font-size: 7px;

    line-height: 1;

    font-weight: 900;

    text-transform: uppercase;
}


.calendar-rink-name {
    margin-top: 4px;

    color: white;

    font-size: 8px;

    line-height: 1.15;

    font-weight: 900;

    overflow-wrap: anywhere;
}


/* ---------- NAVIGATION LIGNES ---------- */

.calendar-lineup-dots {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 6px;

    margin-top: 8px;
}

.calendar-lineup-dots button {
    height: 32px;

    border:
        1px solid
        #26384d;

    border-radius: 10px;

    background: #081522;

    color: #7b8ca1;

    font-size: 8px;

    font-weight: 900;

    transition:
        0.2s ease;
}

.calendar-lineup-dots button:active {
    border-color: #00d9ff;

    color: #7dd3fc;

    background:
        rgba(
            0,
            217,
            255,
            0.08
        );
}


/* ---------- DESKTOP ---------- */

@media (min-width: 768px) {

    .calendar-rink-photo {
        width: 82px;
        height: 82px;
    }

    .calendar-rink-name {
        font-size: 10px;
    }

    .calendar-rink {
        padding:
            25px
            18px
            23px;
    }

    .calendar-rink-defense {
        max-width: 440px;
    }
}
/* =========================================================
   H2H — SOUS ONGLETS
   ========================================================= */

.calendar-h2h-subtabs {
    position: sticky;
    top: -16px;
    z-index: 20;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 6px;

    margin-top: 16px;
    padding: 8px 0;

    background:
        linear-gradient(
            180deg,
            #071421 75%,
            rgba(7, 20, 33, 0)
        );
}


.calendar-h2h-subtabs button {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid #23384e;
    border-radius: 12px;

    background: #081522;

    color: #768ba3;

    font-size: 8px;
    font-weight: 900;

    text-transform: uppercase;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}


.calendar-h2h-subtabs button.active {
    border-color:
        rgba(0, 217, 255, .55);

    background:
        linear-gradient(
            135deg,
            rgba(0, 217, 255, .18),
            rgba(0, 137, 255, .08)
        );

    color: #b8f3ff;

    box-shadow:
        0 0 20px
        rgba(0, 217, 255, .08);
}


.calendar-h2h-subtabs button span {
    min-width: 19px;
    height: 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .06);

    font-size: 7px;
}
/* =========================================================
   FACE À FACE — CARTES PREMIUM
   ========================================================= */

.calendar-h2h-history {
    overflow: hidden;

    border:
        1px solid #1f3348;

    border-radius: 18px;

    background: #071421;
}


.calendar-h2h-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 15px;

    border-bottom:
        1px solid #1e3043;
}


.calendar-h2h-count {
    min-width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(
            0,
            217,
            255,
            .22
        );

    border-radius: 10px;

    background:
        rgba(
            0,
            217,
            255,
            .07
        );

    color: #7dd3fc;

    font-size: 10px;
    font-weight: 900;
}


.calendar-h2h-history-list {
    display: grid;

    gap: 9px;

    padding: 10px;
}


.calendar-h2h-match-card {
    width: 100%;

    overflow: hidden;

    border:
        1px solid #1d3146;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #071421,
            #06101b
        );

    text-align: left;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}


.calendar-h2h-match-card:active {
    transform: scale(.985);

    border-color:
        rgba(
            0,
            217,
            255,
            .55
        );
}


.calendar-h2h-match-top {
    min-height: 31px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 7px 10px;

    border-bottom:
        1px solid
        rgba(
            51,
            65,
            85,
            .4
        );

    color: #5f748b;

    font-size: 7px;
    font-weight: 800;

    text-transform: uppercase;
}


.calendar-h2h-open-label {
    color: #38bdf8 !important;

    font-weight: 900 !important;
}


.calendar-h2h-scoreboard {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    gap: 7px;

    min-height: 92px;

    padding: 12px 10px;
}


.calendar-h2h-team {
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 5px;

    color: #9aaabd;
}


.calendar-h2h-team img {
    width: 33px;
    height: 33px;

    object-fit: contain;
}


.calendar-h2h-team strong {
    color: white;

    font-size: 11px;
    font-weight: 900;
}


.calendar-h2h-team.winner strong {
    color: #7dd3fc;
}


.calendar-h2h-winner {
    padding: 3px 6px;

    border-radius: 999px;

    background:
        rgba(
            16,
            185,
            129,
            .10
        );

    color: #6ee7b7;

    font-size: 6px;
    font-weight: 900;

    text-transform: uppercase;
}


.calendar-h2h-score {
    display: flex;

    align-items: center;

    gap: 7px;

    color: white;
}


.calendar-h2h-score strong {
    font-size: 25px;
    line-height: 1;

    font-weight: 900;
}


.calendar-h2h-score span {
    color: #334155;

    font-size: 14px;
    font-weight: 900;
}


.calendar-h2h-match-footer {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    padding: 8px 10px 10px;

    border-top:
        1px solid
        rgba(
            51,
            65,
            85,
            .35
        );
}


.calendar-h2h-match-footer span {
    padding: 4px 6px;

    border:
        1px solid #1f3347;

    border-radius: 999px;

    background: #091725;

    color: #74889e;

    font-size: 6px;
    font-weight: 900;

    text-transform: uppercase;
}


@media (min-width: 768px) {

    .calendar-h2h-history-list {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}
/* =========================================================
   H2H MATCH VIEWER V2
   ========================================================= */

.calendar-h2h-viewer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.calendar-h2h-viewer-header h3 {
    margin-top: 4px;

    color: #fff;

    font-size: 18px;
    font-weight: 900;
}

.calendar-h2h-viewer-header h3 span {
    color: #42546a;
}

.calendar-h2h-viewer-header small {
    display: block;

    margin-top: 4px;

    color: #657b91;

    font-size: 7px;
    font-weight: 700;
}


.calendar-h2h-close {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #294158;
    border-radius: 50%;

    color: #879caf;

    background: #091725;
}


/* NAVIGATION */

.calendar-h2h-inner-tabs {
    position: sticky;
    top: -16px;
    z-index: 20;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 6px;

    margin-top: 14px;
    padding: 8px 0;

    background:
        linear-gradient(
            180deg,
            #071421 80%,
            rgba(7, 20, 33, 0)
        );
}


.calendar-h2h-inner-tabs button {
    min-height: 42px;

    border: 1px solid #21364c;
    border-radius: 11px;

    background: #081522;

    color: #71859a;

    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}


.calendar-h2h-inner-tabs button.active {
    border-color:
        rgba(0, 217, 255, .55);

    background:
        linear-gradient(
            135deg,
            rgba(0, 217, 255, .17),
            rgba(22, 116, 255, .08)
        );

    color: #b9f4ff;
}


/* MOMENTS */

.calendar-h2h-moments {
    margin-top: 8px;

    overflow: hidden;

    border: 1px solid #20364b;
    border-radius: 15px;

    background: #06101d;
}


.calendar-h2h-moments > header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px;

    border-bottom: 1px solid #1d3043;
}


.calendar-h2h-moments > header strong {
    display: block;

    color: white;

    font-size: 10px;
    font-weight: 900;
}


.calendar-h2h-moments > header span {
    display: block;

    margin-top: 3px;

    color: #63778b;

    font-size: 6px;
}


/* SELECTEUR ÉQUIPE */

.calendar-h2h-team-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 7px;

    margin-top: 8px;
}


.calendar-h2h-team-selector button {
    min-width: 0;
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 7px 9px;

    border: 1px solid #22384f;
    border-radius: 13px;

    background: #071522;

    color: #91a4b8;

    text-align: left;
}


.calendar-h2h-team-selector button.active {
    border-color: #00d9ff;

    background:
        rgba(0, 217, 255, .08);

    color: white;
}


.calendar-h2h-team-selector img {
    width: 27px;
    height: 27px;

    object-fit: contain;

    flex: 0 0 27px;
}


.calendar-h2h-team-selector span {
    overflow: hidden;

    font-size: 8px;
    font-weight: 900;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* TRI */

.calendar-h2h-sort-zone {
    margin-top: 10px;
}


.calendar-h2h-sort-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: white;

    font-size: 9px;
    font-weight: 900;
}


.calendar-h2h-sort-title span {
    color: #536b82;

    font-size: 6px;
}


.calendar-h2h-sort-buttons {
    display: flex;

    gap: 5px;

    margin-top: 7px;

    overflow-x: auto;

    scrollbar-width: none;

    scroll-snap-type: x proximity;
}


.calendar-h2h-sort-buttons::-webkit-scrollbar {
    display: none;
}


.calendar-h2h-sort-buttons button {
    flex: 0 0 auto;

    min-height: 31px;

    padding: 5px 10px;

    border: 1px solid #21364a;
    border-radius: 999px;

    background: #071522;

    color: #71879b;

    font-size: 7px;
    font-weight: 900;

    scroll-snap-align: start;
}


.calendar-h2h-sort-buttons button.active {
    border-color: #00d9ff;

    background:
        rgba(0, 217, 255, .12);

    color: #a9f1ff;
}


/* CARTES JOUEUR */

.calendar-h2h-player-list {
    display: grid;

    gap: 7px;

    margin-top: 10px;
}


.calendar-past-player-card {
    padding: 11px;

    border: 1px solid #20364a;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #081725,
            #06111d
        );
}


.calendar-past-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}


.calendar-past-player-head > div:first-child {
    min-width: 0;
}


.calendar-past-player-head strong {
    display: block;

    overflow: hidden;

    color: white;

    font-size: 10px;
    font-weight: 900;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.calendar-past-player-head span {
    display: block;

    margin-top: 3px;

    color: #55708a;

    font-size: 6px;
    font-weight: 800;
}


.calendar-past-player-points {
    flex: 0 0 auto;

    text-align: right;
}


.calendar-past-player-points strong {
    color: #c084fc;

    font-size: 20px;
}


.calendar-past-player-points span {
    color: #64748b;

    font-size: 5px;
}


.calendar-past-primary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 5px;

    margin-top: 9px;
}


.calendar-past-primary-stats > div {
    padding: 7px 3px;

    border-radius: 9px;

    background: #050e19;

    text-align: center;
}


.calendar-past-primary-stats strong {
    display: block;

    color: white;

    font-size: 12px;
    font-weight: 900;
}


.calendar-past-primary-stats span {
    display: block;

    margin-top: 2px;

    color: #536a80;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.calendar-past-secondary-stats {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 8px;
}


.calendar-past-secondary-stats span {
    padding: 4px 7px;

    border: 1px solid #1d3347;
    border-radius: 999px;

    color: #6f879d;

    font-size: 6px;
}


.calendar-past-secondary-stats strong {
    margin-left: 3px;

    color: white;
}