
/* ============================================
   🎥 CARROSSEL DE VÍDEOS 3D (NOSSA ESTRUTURA)
   ============================================ */

.carousel-3d-container {
    perspective: 1200px;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: -20px;
}

.carousel-3d-item {
    position: absolute;
    width: 250px;
    aspect-ratio: 9/16;
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Estado: Central (Ativo) */
.carousel-3d-item.active {
    z-index: 30;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    filter: blur(0);
}

/* Estado: Esquerda (Pausado/Atrás) */
.carousel-3d-item.left {
    z-index: 20;
    transform: translate3d(-110px, 0, -150px) rotateY(25deg) scale(0.85);
    opacity: 0.6;
    filter: blur(2px) grayscale(0.5);
    pointer-events: none;
}

/* Estado: Direita (Pausado/Atrás) */
.carousel-3d-item.right {
    z-index: 20;
    transform: translate3d(110px, 0, -150px) rotateY(-25deg) scale(0.85);
    opacity: 0.6;
    filter: blur(2px) grayscale(0.5);
    pointer-events: none;
}

/* Sombreamento degradê nos vídeos laterais */
.carousel-3d-item:not(.active)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 5;
    transition: opacity 0.3s;
}

.carousel-3d-item.active::after {
    opacity: 0;
}

/* Controles de Navegação do Carrossel */
.carousel-controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(250, 41, 39, 0.3);
}

.carousel-btn:active {
    scale: 0.9;
}

/* Ajuste Responsivo Mobile */
@media (max-width: 480px) {
    .carousel-3d-item {
        width: 220px;
    }
    .carousel-3d-item.left {
        transform: translate3d(-80px, 0, -120px) rotateY(20deg) scale(0.8);
    }
    .carousel-3d-item.right {
        transform: translate3d(80px, 0, -120px) rotateY(-20deg) scale(0.8);
    }
}
