/* =========================================================
   CUSTOM DU VERSE — BANDEAU ÉPURÉ DES JOUEURS
========================================================= */

.cdv-clean-player-wall {

    --cdv-player-wall-duration: 7200s;

    position: relative !important;
    isolation: isolate !important;

    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    min-height: 64px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border-top:
        1px solid
        rgba(157, 168, 215, .10) !important;

    border-bottom:
        1px solid
        rgba(157, 168, 215, .08) !important;

    background:
        linear-gradient(
            90deg,
            rgba(3, 5, 17, .94),
            rgba(7, 9, 25, .72) 22%,
            rgba(7, 9, 25, .72) 78%,
            rgba(3, 5, 17, .94)
        ) !important;

    -webkit-backdrop-filter:
        blur(15px)
        saturate(120%) !important;

    backdrop-filter:
        blur(15px)
        saturate(120%) !important;

}


/* Fondu latéral */

.cdv-clean-player-wall::before,
.cdv-clean-player-wall::after {

    content: "";

    position: absolute;
    z-index: 5;

    top: 0;
    bottom: 0;

    width:
        min(
            13vw,
            190px
        );

    pointer-events: none;

}


.cdv-clean-player-wall::before {

    left: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 5, 17, 1),
            rgba(3, 5, 17, .72) 36%,
            transparent
        );

}


.cdv-clean-player-wall::after {

    right: 0;

    background:
        linear-gradient(
            270deg,
            rgba(3, 5, 17, 1),
            rgba(3, 5, 17, .72) 36%,
            transparent
        );

}


/* Rail */

.cdv-clean-player-track {

    display: flex;
    align-items: center;

    width: max-content;
    min-width: max-content;

    will-change: transform;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform:
        translate3d(
            0,
            0,
            0
        );

    animation-name:
        cdvCleanPlayersTravel !important;

    animation-duration:
        var(--cdv-player-wall-duration) !important;

    animation-timing-function:
        linear !important;

    animation-iteration-count:
        infinite !important;

    animation-delay:
        0s !important;

}


/* Pause lorsqu'on passe la souris */

.cdv-clean-player-wall:hover
.cdv-clean-player-track {

    animation-play-state:
        paused;

}


.cdv-clean-player-group {

    display: flex;
    align-items: center;

    flex-shrink: 0;

    padding-right: 40px;

}


/* Pseudo uniquement */

.cdv-clean-player {

    position: relative;

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

    flex-shrink: 0;

    padding:
        21px
        30px;

    color:
        rgba(224, 227, 244, .62) !important;

    text-decoration: none !important;

    font-size: 10px;
    line-height: 1;

    font-weight: 850;

    letter-spacing: .17em;
    text-transform: uppercase;

    white-space: nowrap;

    transition:

        color
        200ms ease,

        transform
        200ms ease,

        text-shadow
        200ms ease;

}


/* Petit point séparateur */

.cdv-clean-player::after {

    content: "";

    width: 4px;
    height: 4px;

    margin-left: 30px;

    border-radius: 50%;

    background: #916cff;

    box-shadow:

        0 0 7px
        rgba(145, 108, 255, .95),

        0 0 17px
        rgba(86, 190, 255, .30);

}


/* Ligne lumineuse sous le pseudo */

.cdv-clean-player-name {

    position: relative;

}


.cdv-clean-player-name::after {

    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: -8px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            #9575ff,
            #63ddff
        );

    box-shadow:
        0 0 7px
        rgba(99, 221, 255, .52);

    transition:
        right
        240ms
        cubic-bezier(.2, .8, .2, 1);

}


/* Survol */

.cdv-clean-player:hover {

    color: #ffffff !important;

    transform:
        translateY(-1px);

    text-shadow:
        0 0 16px
        rgba(152, 190, 255, .42);

}


.cdv-clean-player:hover
.cdv-clean-player-name::after {

    right: 0;

}


/* Podium conservé très subtilement */

.cdv-clean-player[data-position="1"] {

    color:
        rgba(255, 217, 111, .92) !important;

}


.cdv-clean-player[data-position="2"] {

    color:
        rgba(220, 228, 241, .82) !important;

}


.cdv-clean-player[data-position="3"] {

    color:
        rgba(231, 151, 91, .84) !important;

}


/* Chargement */

.cdv-clean-player-loading {

    width: 100%;

    color:
        rgba(218, 222, 242, .40);

    font-size: 9px;

    font-weight: 850;

    letter-spacing: .20em;

    text-align: center;
    text-transform: uppercase;

}


/* Défilement beaucoup plus lent */

@keyframes cdvCleanPlayersTravel {

    from {

        transform:
            translate3d(
                0,
                0,
                0
            );

    }

    to {

        transform:
            translate3d(
                -50%,
                0,
                0
            );

    }

}


/* Mobile */

@media (max-width: 700px) {

    .cdv-clean-player-wall {

        min-height:
            57px !important;

    }

    .cdv-clean-player {

        padding:
            18px
            20px;

        font-size:
            9px;

    }

    .cdv-clean-player::after {

        margin-left:
            20px;

    }

}


/* Accessibilité */

.cdv-clean-player:focus-visible {

    color: #ffffff !important;

    outline:
        1px solid
        rgba(105, 217, 255, .82);

    outline-offset:
        -6px;

    border-radius:
        8px;

}


@media (prefers-reduced-motion: reduce) {

    .cdv-clean-player-track {

        animation: none !important;

    }

    .cdv-clean-player-wall {

        overflow-x: auto !important;
        scrollbar-width: thin;

    }

}
