/* ======================================================================
   FONTES
   ====================================================================== */

@font-face {
    font-family: 'Mario';
    src: url('../fonts/Mario-DemiBold.otf') format('opentype'),
        url('../fonts/Mario-DemiBold.woff2') format('woff2'),
        url('../fonts/Mario-DemiBold.woff') format('woff'),
        url('../fonts/Mario-DemiBold.ttf') format('truetype'),
        url('../fonts/Mario-DemiBold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Mario-DemiBold.svg#Mario-DemiBold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ======================================================================
   PLAYLIST CONTAINER
   ====================================================================== */

.video-playlist-container {
    margin: 20px 0;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
}

.video-playlist-title {
    font-family: 'Mario', Impact, 'Arial Black', sans-serif;
    font-size: 3em;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 1em;
}

.video-playlist-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
    text-align: left;
}

/* ======================================================================
   SLIDER DE VÍDEOS
   ====================================================================== */

.video-playlist-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 0 5px;
}

.video-slider-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.video-slider-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.video-slide {
    flex-shrink: 0;
    display: block;
}

/* 🔧 ADICIONADO — largura fixa e coluna para título */
.video-slide {
    flex-shrink: 0;
    display: flex;              /* NEW */
    flex-direction: column;     /* NEW */
    width: 200px;               /* NEW */
    align-items: center;        /* NEW */
}

.video-thumb {
    position: relative;
    width: auto;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #000;
    display: block;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.video-thumb img {
    width: auto;
    height: 112px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #000;
    box-shadow: none !important;
    border: none !important;
    border-radius: 27px 27px 27px 23px;
}

/* ======================================================================
   BOTÕES DO SLIDER
   ====================================================================== */

.video-slider-nav {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 2;
}

.video-slider-nav:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
    transform: scale(1.1);
}

.video-slider-nav:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.video-slider-nav svg {
    color: #333;
}

/* ======================================================================
   MSG LISTA VAZIA
   ====================================================================== */

.video-playlist-empty {
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* ======================================================================
   FANCYBOX
   ====================================================================== */

.fancybox__caption {
    text-align: center;
    padding: 20px;
}

.fancybox__caption h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #fff;
    font-weight: bold;
}

.fancybox__caption p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ======================================================================
   LAYOUT CASTELO
   ====================================================================== */

.andar-content .video-playlist-container,
.bebelume-andar .video-playlist-container {
    max-width: 100%;
    overflow: hidden;
    padding: .5em;
}

.andar-content .video-slider-wrapper,
.bebelume-andar .video-slider-wrapper {
    max-width: 100%;
    overflow: hidden;
}

/* Remover bordas */
.video-thumb,
.video-thumb *,
.video-slide,
.video-slide *,
.video-thumb img,
.video-slide img {
    border: none !important;
    outline: none !important;
    background-color: transparent;
}

/* ======================================================================
   CORES BEBELUME
   ====================================================================== */

.video-playlist-title.rosa { color:#FF6B9D; }
.video-playlist-title.amarelo { color:#FFD93D; }
.video-playlist-title.roxo { color:#B19CD9; }
.video-playlist-title.verde { color:#95E1D3; }
.video-playlist-title.laranja { color:#F38181; }
.video-playlist-title.azul { color:#6C9BD1; }
.video-playlist-title.turquesa { color:#4ECDC4; }
.video-playlist-title.rosa-bebe { color:#FFC1CC; }

/* BORDAS */
.video-slide.rosa .video-thumb { border:5px solid #FF6B9D !important; border-radius:12px; }
.video-slide.amarelo .video-thumb { border:5px solid #FFD93D !important; border-radius:12px; }
.video-slide.roxo .video-thumb { border:5px solid #B19CD9 !important; border-radius:12px; }
.video-slide.verde .video-thumb { border:5px solid #95E1D3 !important; border-radius:12px; }
.video-slide.laranja .video-thumb { border:5px solid #F38181 !important; border-radius:12px; }
.video-slide.azul .video-thumb { border:5px solid #6C9BD1 !important; border-radius:12px; }
.video-slide.turquesa .video-thumb { border:5px solid #4ECDC4 !important; border-radius:12px; }
.video-slide.rosa-bebe .video-thumb { border:5px solid #FFC1CC !important; border-radius:12px; }

/* HOVER */
.video-slide.rosa .video-thumb:hover { box-shadow:0 8px 20px rgba(255,107,157,0.4) !important; }
.video-slide.amarelo .video-thumb:hover { box-shadow:0 8px 20px rgba(255,217,61,0.4) !important; }
.video-slide.roxo .video-thumb:hover { box-shadow:0 8px 20px rgba(177,156,217,0.4) !important; }
.video-slide.verde .video-thumb:hover { box-shadow:0 8px 20px rgba(149,225,211,0.4) !important; }
.video-slide.laranja .video-thumb:hover { box-shadow:0 8px 20px rgba(243,129,129,0.4) !important; }
.video-slide.azul .video-thumb:hover { box-shadow:0 8px 20px rgba(108,155,209,0.4) !important; }
.video-slide.turquesa .video-thumb:hover { box-shadow:0 8px 20px rgba(78,205,196,0.4) !important; }
.video-slide.rosa-bebe .video-thumb:hover { box-shadow:0 8px 20px rgba(255,193,204,0.4) !important; }

/* ======================================================================
   RESPONSIVIDADE
   ====================================================================== */

@media (max-width:768px){
    .video-playlist-container { padding:15px; }
    .video-playlist-title { font-size:22px; }
    .video-thumb { height:90px; }
    .video-thumb img { height:90px; }
    .video-slider-nav { width:35px;height:35px; }
}

@media (max-width:480px){
    .video-thumb { height:79px; }
    .video-thumb img { height:79px; }
    .video-slider-nav { width:30px;height:30px; }
    .video-slider-nav svg { width:18px;height:18px; }

    /* 🔧 Reduz largura do slide no mobile */
    .video-slide { width: 160px; }
}

/* ======================================================================
   PREVIEW POPUP
   ====================================================================== */

.video-preview-popup {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all .3s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
}

.video-preview-popup.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.video-preview-popup.closing {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.preview-player-container {
    position: relative;
    width:100%;
    height:100%;
    background:#000;
    border-radius:12px;
    overflow:hidden;
}

/* ======================================================================
   PLAY BUTTON UNIFICADO (42PX)
   ====================================================================== */

.unified-play-icon {
    width: 42px;
    height: 42px;
    fill: white;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
    transition: transform .25s ease;
}

/* ---- Hover do thumb ---- */

.thumb-play-overlay,
.thumb-control-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, background .25s ease;
    z-index: 2;
    background: rgba(0,0,0,0);
}

.video-thumb:hover .thumb-play-overlay,
.video-thumb:hover .thumb-control-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.28);
}

.video-thumb:hover .unified-play-icon {
    transform: scale(1.12);
}

/* Overlay do preview */

.preview-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 2;
}

.video-preview-popup:hover .preview-play-overlay {
    opacity: 1;
}

.video-preview-popup:hover .unified-play-icon {
    transform: scale(1.12);
}

/* Borda decorativa */
.video-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/borda-thumb.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
}

.video-unico {
    margin: auto;
}

.video-thumb-title {
    margin-top: 6px;
    font-size: 15px;
    color: #fff;
    text-align: center;
}

.branco .video-thumb-title {
	color: #000;
}

.amarelo .video-thumb-title {
	color: #746b0c;
}

