/* ==================== HERO SLIDER - BLUE MIDNIGHT GLASS ==================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    margin-bottom: 50px;
    background: #000;
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    direction: ltr;
    /* Force LTR for correct transform translation */
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    position: relative;
    direction: rtl;
    /* Ensure content inside slides is RTL */
}

/* Deep Vignette and Gradient Overlays */
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(75deg, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.4) 50%, transparent 100%),
        linear-gradient(to top, #000 5%, transparent 40%);
}

/* Slider Content Overlay */
.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 6%;
    z-index: 10;
    pointer-events: none;
}

.slider-content>* {
    pointer-events: auto;
}

.slider-content h1.movie-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.05;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(0, 210, 255, 0.3));
    animation: slideUpFade 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    letter-spacing: -1px;
}

.slider-content p {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    margin-bottom: 40px;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    animation: slideUpFade 0.8s 0.1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: slideUpFade 0.8s 0.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
}

/* Play Button */
.play-btn.play-now {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--primary);
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.play-btn.play-now:hover {
    background: #fff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.4);
}

.play-btn.play-now:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.play-btn.play-now:hover:after {
    left: 100%;
}

.play-btn.play-now i {
    font-size: 1.1rem;
}

/* Info Button */
.info-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Controls (Arrows) */
.slider-controls {
    position: absolute;
    bottom: 50px;
    right: 6%;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.control-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

/* Dots */
.dots-container {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
    background: var(--primary);
    width: 35px;
    box-shadow: 0 0 15px var(--primary);
}

/* Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 70vh;
    }

    .slider-content {
        padding-left: 40px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 85vh;
        min-height: 500px;
    }

    .slider-content {
        padding: 0 20px 100px;
        align-items: center;
        /* Center content on mobile */
        text-align: center;
        background: radial-gradient(circle at bottom, rgba(0, 0, 0, 0.8), transparent 70%);
    }

    .slider-content h1.movie-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .slider-content p {
        font-size: 1rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        margin-bottom: 30px;
    }

    .slider-controls {
        display: none;
        /* Hide arrows on mobile for cleaner look */
    }

    .hero-buttons {
        gap: 15px;
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    .play-btn.play-now,
    .info-btn {
        padding: 14px 25px;
        font-size: 1rem;
        flex: 1;
        max-width: 160px;
        justify-content: center;
    }

    .slide::after {
        background: linear-gradient(to top, #000 10%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0.2) 80%);
    }
}