/* ══════════════════════════════════════════════════════
   YT Video Slider — Public Styles  v1.2
   ══════════════════════════════════════════════════════ */

.ytvs-slider-wrap,
.ytvs-list-wrap {
    --ytvs-red:          #ff0000;
    --ytvs-accent:       #ff0000;
    --ytvs-text:         currentColor;          /* blanc forcé */
    --ytvs-text-muted:   rgba(128,128,128,.75);
    --ytvs-bg:           transparent;
    --ytvs-surface:      rgba(0,0,0,.04);
    --ytvs-border:       rgba(128,128,128,.15);
    --ytvs-font:         inherit;
    --ytvs-font-size-sm: 13px;
    --ytvs-font-size-md: 15px;
    --ytvs-radius:       8px;
    --ytvs-radius-sm:    5px;

    box-sizing: border-box;
    font-family: var(--ytvs-font);
    color: var(--ytvs-text);
}
.ytvs-slider-wrap *,
.ytvs-list-wrap * { box-sizing: border-box; }


/* ════════════════════════════════════════
   SLIDER
   ════════════════════════════════════════ */
.ytvs-slider-wrap {
    background: transparent;
    padding: 0;
    position: relative;
}
.ytvs-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--ytvs-radius);
}
.ytvs-track {
    display: flex;
    transition: transform .42s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.ytvs-slide {
    flex: 0 0 100%;
    min-width: 0;
    cursor: pointer;
}

/* Miniature — pleine largeur, pas d'espace sous l'image */
.ytvs-thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--ytvs-radius);
    overflow: hidden;
    background: #000;
}
.ytvs-thumb-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center; display: block;
    transition: transform .4s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.ytvs-slide:hover .ytvs-thumb-wrap img { transform: scale(1.03); }
.ytvs-slide.active .ytvs-thumb-wrap { box-shadow: 0 0 0 2.5px var(--ytvs-accent); }


/* Lecture inline — iframe remplace la miniature dans la slide */
.ytvs-thumb-wrap iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none; display: block;
    border-radius: var(--ytvs-radius);
}
.ytvs-slide.ytvs-playing .ytvs-thumb-wrap {
    box-shadow: 0 0 0 2.5px var(--ytvs-accent);
}

/* Bouton play */
.ytvs-play-btn {
    position: absolute; inset: 0; margin: auto;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--ytvs-accent);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(.75);
    transition: opacity .25s, transform .25s;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.ytvs-play-btn svg { width: 26px; height: 26px; color: #fff; margin-left: 4px; }
.ytvs-slide:hover .ytvs-play-btn { opacity: 1; transform: scale(1); }

/* Flèches — centrées sur l'image */
.ytvs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,.52);
    border: 1.5px solid rgba(255,255,255,.18);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background .2s, border-color .2s;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.ytvs-arrow svg { width: 20px; height: 20px; }
.ytvs-prev { left: 12px; }
.ytvs-next { right: 12px; }
.ytvs-arrow:hover { background: var(--ytvs-accent); border-color: var(--ytvs-accent); }
.ytvs-arrow:disabled { opacity: .22; pointer-events: none; }

/* Dots */
.ytvs-dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
.ytvs-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(128,128,128,.35);
    border: none; cursor: pointer; padding: 0;
    transition: background .2s, transform .2s;
}
.ytvs-dot.active { background: var(--ytvs-accent); transform: scale(1.5); }



/* ════════════════════════════════════════
   LISTE + LECTEUR
   ════════════════════════════════════════ */
.ytvs-list-wrap {
    background: transparent;
    padding: 0;
}

.ytvs-list-layout {
    display: grid;
    
    border-radius: var(--ytvs-radius);
    overflow: hidden;
    /* Pas de border ici — bordure supprimée */
}

/* Mobile slider : caché par défaut, visible uniquement sur mobile */
.ytvs-mobile-slider { display: none; }

@media (max-width: 760px) {
    .ytvs-list-layout { display: none; }
    .ytvs-mobile-slider { display: block; }
}

/* Sidebar titres */
.ytvs-sidebar {
    overflow-y: auto;
    max-height: 400px;
    background: var(--ytvs-surface);
    border-right: 1px solid var(--ytvs-border);
}
.ytvs-sidebar::-webkit-scrollbar { width: 3px; }
.ytvs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(128,128,128,.3); border-radius: 2px;
}

.ytvs-list-item {
    width: 100%; text-align: left;
    background: transparent; border: none;
    border-bottom: 1px solid var(--ytvs-border);
    padding: 13px 14px;
    cursor: pointer;
    display: flex; align-items: flex-start; gap: 10px;
    transition: background .15s;
    font-family: var(--ytvs-font);
}
.ytvs-list-item:last-child { border-bottom: none; }
.ytvs-list-item:hover { background: rgba(0,0,0,.04); }
.ytvs-list-item.active {
    background: rgba(0,0,0,.06);
    border-left: 3px solid var(--ytvs-accent);
    padding-left: 11px;
}
.ytvs-list-item.active .ytvs-list-icon svg { color: #d9bb8b; }

.ytvs-list-icon {
    flex-shrink: 0;
    width: 26px; height: 26px; border-radius: var(--ytvs-radius-sm);
    background: rgba(128,128,128,.15);
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px; transition: background .15s;
}
.ytvs-list-icon svg { width: 13px; height: 13px; color: #d9bb8b; }

.ytvs-list-info { flex: 1; min-width: 0; }
.ytvs-list-name {
    display: block;
    font-size: var(--ytvs-font-size-sm);
    font-weight: 500;
    font-family: var(--ytvs-font);
    line-height: 1.45;
    color: var(--ytvs-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lecteur */
.ytvs-main-player { display: flex; flex-direction: column; background: #000; }

/* iframe */
.ytvs-iframe-wrap {
    position: relative; aspect-ratio: 16/9; width: 100%; background: #000;
}
.ytvs-iframe-wrap iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: block;
}
