/* --- VIDEO SHOWCASE (Nox Ouro / monochrome white-glow, interactif) --- */
.video-showcase {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 4rem auto 2rem;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    isolation: isolate;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.7),
        0 0 0 rgba(255,255,255,0);

    transition:
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

.video-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.10),
            transparent 30%,
            transparent 70%,
            rgba(255,255,255,0.06)
        );

    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-showcase:hover,
.video-showcase.vs-focus {
    border-color: rgba(255,255,255,0.55);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.8),
        0 0 25px rgba(255,255,255,0.12),
        0 0 60px rgba(255,255,255,0.06);
}

.video-showcase:hover::before,
.video-showcase.vs-focus::before {
    opacity: 1;
}

.video-showcase video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;

    filter: contrast(1.05) saturate(1.05);
    opacity: 0;
    z-index: 0;

    transition:
        transform 0.8s ease,
        opacity 0.9s ease;
}

/* Vidéo active de la playlist (celle visible / au premier plan, fondu enchaîné) */
.video-showcase video.vs-video-active {
    opacity: 1;
    z-index: 1;
}

.video-showcase:hover video {
    transform: scale(1.015);
}

/* Voile de lecture (disparaît une fois la vidéo lancée) */
.vs-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0,0,0,0.35), rgba(0,0,0,0.6));
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.video-showcase.vs-playing .vs-veil { opacity: 0; }

/* Groupe de boutons central : précédent / lecture-pause / suivant — toujours présent, esthétique dégradé N&B */
.vs-center-group {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}
/* Visible en permanence au repos (pause) ; s'estompe pendant la lecture sauf survol */
.video-showcase.vs-playing .vs-center-group { opacity: 0; }
.video-showcase.vs-playing:hover .vs-center-group,
.video-showcase.vs-playing.vs-focus .vs-center-group { opacity: 1; }

.vs-center-btn,
.vs-side-btn {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    border: none;

    background: linear-gradient(155deg, rgba(255,255,255,0.16), rgba(120,120,120,0.10) 45%, rgba(0,0,0,0.35));
    border: 1px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(8px);

    box-shadow:
        0 8px 24px rgba(0,0,0,0.5),
        inset 0 0 0 rgba(255,255,255,0);

    transition:
        transform 0.35s cubic-bezier(.165,.84,.44,1),
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}
.vs-center-btn { width: 76px; height: 76px; }
.vs-side-btn { width: 46px; height: 46px; opacity: .8; }

.vs-center-btn:hover,
.vs-side-btn:hover {
    transform: scale(1.08);
    border-color: rgba(255,255,255,0.95);
    opacity: 1;
    background: linear-gradient(155deg, rgba(255,255,255,0.26), rgba(150,150,150,0.14) 45%, rgba(0,0,0,0.4));
    box-shadow:
        0 10px 30px rgba(0,0,0,0.55),
        0 0 26px rgba(255,255,255,0.28),
        0 0 60px rgba(255,255,255,0.12);
}
.vs-center-btn:active,
.vs-side-btn:active { transform: scale(0.96); }

.vs-center-btn svg {
    width: 26px;
    height: 26px;
    fill: #f2f2f2;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.vs-side-btn svg {
    width: 18px;
    height: 18px;
    fill: #f2f2f2;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.vs-center-btn .vs-icon-play { margin-left: 3px; }

@media (max-width: 680px) {
    .vs-center-group { gap: .8rem; }
    .vs-side-btn { width: 36px; height: 36px; }
    .vs-side-btn svg { width: 15px; height: 15px; }
}

/* Kicker / label en haut à gauche */
.vs-kicker {
    position: absolute;
    top: 1.1rem;
    left: 1.2rem;
    z-index: 3;
    font-family: 'Bebas Neue', sans-serif;
    font-size: .65rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .4s ease, transform .4s ease;
}
.video-showcase:hover .vs-kicker,
.video-showcase.vs-focus .vs-kicker { opacity: 1; transform: translateY(0); }
.vs-kicker-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 14px rgba(255,255,255,.5);
    animation: onlinePulse 2s infinite;
}

/* Barre de contrôle basse (gradient + boutons + progression) */
.vs-controls {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    padding: 2.2rem 1rem .85rem;
    background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
    display: flex;
    align-items: center;
    gap: .85rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease, transform .4s ease;
}
.video-showcase:hover .vs-controls,
.video-showcase.vs-focus .vs-controls,
.video-showcase:not(.vs-playing) .vs-controls { opacity: 1; transform: translateY(0); }

.vs-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .85;
    transition: opacity .25s ease, transform .25s ease;
}
.vs-btn:hover { opacity: 1; transform: scale(1.1); }
.vs-btn svg { width: 18px; height: 18px; fill: #fff; }

.vs-progress {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.18);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.vs-progress-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,.6);
    border-radius: 3px;
    transition: width .1s linear;
}
.vs-time {
    font-family: 'DM Mono', monospace;
    font-size: .62rem;
    letter-spacing: .05em;
    color: rgba(255,255,255,0.7);
    min-width: 74px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 680px) {
    .vs-center-btn { width: 58px; height: 58px; }
    .vs-center-btn svg { width: 20px; height: 20px; }
    .vs-controls { padding: 1.6rem .6rem .6rem; gap: .5rem; }
    .vs-time { min-width: 58px; font-size: .58rem; }
}

/* Plein écran du CADRE (pas de la balise <video> seule) : on garde les contrôles custom visibles */
.video-showcase:fullscreen,
.video-showcase:-webkit-full-screen {
    max-width: none;
    width: 100vw;
    height: 100vh;
    aspect-ratio: unset;
    border-radius: 0;
}
.video-showcase:fullscreen video,
.video-showcase:-webkit-full-screen video {
    object-fit: contain;
    background: #000;
}

/* --- Bouton "liste des vidéos" (coin supérieur droit) --- */
.vs-list-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 7;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.4);
    background: linear-gradient(155deg, rgba(255,255,255,.16), rgba(120,120,120,.10) 45%, rgba(0,0,0,.35));
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .4s ease, transform .35s cubic-bezier(.165,.84,.44,1), border-color .3s ease, background .3s ease;
}
.video-showcase:hover .vs-list-btn,
.video-showcase.vs-focus .vs-list-btn,
.video-showcase.vs-list-open .vs-list-btn {
    opacity: 1;
    transform: translateY(0);
}
.vs-list-btn:hover {
    border-color: rgba(255,255,255,.95);
    background: linear-gradient(155deg, rgba(255,255,255,.26), rgba(150,150,150,.14) 45%, rgba(0,0,0,.4));
    box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 26px rgba(255,255,255,.22);
}
.vs-list-btn:active { transform: scale(.94); }
.vs-list-btn svg {
    width: 17px;
    height: 17px;
    fill: #f2f2f2;
    transition: transform .4s cubic-bezier(.165,.84,.44,1);
}
.video-showcase.vs-list-open .vs-list-btn svg { transform: rotate(90deg); }

/* --- Panneau accordéon de la liste des vidéos, par-dessus le lecteur --- */
.vs-playlist-panel {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .55s cubic-bezier(.165,.84,.44,1);
    pointer-events: none;
}
.video-showcase.vs-list-open .vs-playlist-panel {
    grid-template-rows: 1fr;
    pointer-events: auto;
}
.vs-playlist-inner {
    overflow: hidden;
    min-height: 0;
    background: rgba(8,8,8,.55);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    opacity: 0;
    transition: opacity .45s ease .08s;
}
.video-showcase.vs-list-open .vs-playlist-inner { opacity: 1; }

.vs-playlist-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 3.8rem 1.2rem 1.2rem;
}
.vs-playlist-scroll::-webkit-scrollbar { width: 6px; }
.vs-playlist-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 10px; }
.vs-playlist-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }

.vs-playlist-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .65rem;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin: 0 .4rem 1rem;
}

.vs-playlist-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.vs-playlist-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: 100%;
    text-align: left;
    padding: .65rem .8rem;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: rgba(255,255,255,.62);
    font-family: 'Jost', sans-serif;
    font-size: .82rem;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.vs-playlist-link:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.18);
    color: #fff;
    transform: translateX(4px);
}
.vs-playlist-num {
    font-family: 'DM Mono', monospace;
    font-size: .68rem;
    opacity: .45;
    width: 1.6rem;
    flex-shrink: 0;
}
.vs-playlist-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    box-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 14px rgba(255,255,255,.5);
    flex-shrink: 0;
}
.vs-playlist-link.vs-active {
    color: #fff;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.05);
}
.vs-playlist-link.vs-active .vs-playlist-num { opacity: 1; }
.vs-playlist-link.vs-active .vs-playlist-dot {
    opacity: 1;
    animation: onlinePulse 2s infinite;
}
.vs-playlist-label { overflow-wrap: anywhere; }

@media (max-width: 680px) {
    .vs-list-btn { width: 34px; height: 34px; }
    .vs-list-btn svg { width: 14px; height: 14px; }
    .vs-playlist-scroll { padding: 3.2rem .7rem .7rem; }
    .vs-playlist-link { font-size: .76rem; padding: .55rem .65rem; }
}