.carousel-section {
    position: relative;
    margin-bottom: 3rem;
    animation: slideUp 0.6s ease-out;
}

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.carousel-title {
    font-size: 1.75rem;
    font-weight: 600;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.86);
    width: 3.2rem;
    height: 3.2rem;
    background: linear-gradient(135deg, var(--primary-purple, #c000ff), var(--primary-blue, #0078ff));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: transform 0.26s cubic-bezier(.2,.9,.2,1), box-shadow 0.26s ease, opacity 0.18s ease;
    box-shadow: 0 10px 28px rgba(192, 0, 255, 0.18), 0 4px 12px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
}

.cinematic-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
}

.play-btn svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.play-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), transparent 30%), radial-gradient(circle at 70% 70%, rgba(0,120,255,0.06), transparent 30%);
    opacity: 0;
    transition: opacity 0.26s ease;
}

.cinematic-card:hover .play-btn::after { opacity: 1; }
}

.carousel-nav-btn {
    width: 3.6rem;
    height: 3.6rem;
    background: linear-gradient(135deg, rgba(192,0,255,0.95), rgba(0,120,255,0.95));
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s cubic-bezier(.2,.9,.2,1), box-shadow 0.22s ease, opacity 0.18s ease;
    opacity: 0.96;
    box-shadow: 0 8px 22px rgba(0,0,0,0.45), 0 4px 10px rgba(192,0,255,0.12);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.carousel-nav-btn.left { left: 1rem; }
.carousel-nav-btn.right { right: 1rem; }

.carousel-nav-btn:hover {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 8px 26px rgba(192,0,255,0.18);
}


.carousel-container:hover .carousel-nav-btn { opacity: 1; }


.carousel-nav-btn svg { fill: white; stroke: none; }

.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1rem;
    width: 5rem;
    pointer-events: none;
    z-index: 10;
}


.carousel-track { cursor: grab; }
.carousel-track:active { cursor: grabbing; }

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, #0b0b1f, transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, #0b0b1f, transparent);
}

.cinematic-card {
    position: relative;
    width: 15rem;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}


.carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinematic-card:hover {
    transform: scale(1.08);
    z-index: 20;
    
}

.cinematic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.cinematic-card:hover img {
    filter: brightness(1.2);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.cinematic-card:hover .card-overlay {
    opacity: 0.9;
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cinematic-card:hover .card-glow {
    opacity: 1;
}


.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%) skewX(-12deg);
    transition: transform 0.6s ease;
    opacity: 0;
}

.cinematic-card:hover .card-shine {
    opacity: 1;
    transform: translateX(100%) skewX(-12deg);
}



.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 5;
}

.card-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-rating {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.cinematic-card:hover .card-rating {
    opacity: 1;
    transform: translateX(0);
}

.card-rating svg {
    width: 1rem;
    height: 1rem;
    fill: #fbbf24;
}

.card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.cinematic-card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.card-action-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.card-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.card-action-btn.primary {
    background: linear-gradient(135deg, #c000ff, #0078ff);
    box-shadow: 0 0 15px rgba(192, 0, 255, 0.5);
}

@media (max-width: 768px) {
    .cinematic-card {
        width: 12rem;
    }

    .carousel-nav-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .play-btn {
        width: 3rem;
        height: 3rem;
    }

    .play-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}


