/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 450px;
    margin-bottom: 3rem;
    overflow: hidden;
    background-color: #000;
}

.hero-content {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Dark background layer */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0.25;
    /* Use same image with black color coming through */
    z-index: 0;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem max(5%, 3rem);
    background: linear-gradient(90deg, rgba(10, 10, 15, 1) 0%, rgba(10, 10, 15, 0.7) 50%, transparent 100%);
    z-index: 1;
}

.hero-slide-info {
    max-width: 50%;
    position: relative;
    z-index: 2;
}

.hero-slide-info h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.hero-slide-plot {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-actions {
    display: flex;
    gap: 1rem;
}

.hero-slide-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero-slide-actions .btn-watch {
    background-color: var(--color-accent, #e50914);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.hero-slide-actions .btn-watch:hover {
    transform: scale(1.05);
    background-color: #f40612;
}

.hero-slide-poster {
    position: absolute;
    right: max(5%, 3rem);
    height: 80%;
    max-height: 400px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Controls */
.hero-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-prev,
.hero-next {
    pointer-events: auto;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    height: 100%;
    width: 60px;
    cursor: pointer;
    transition: color 0.3s;
}

.hero-prev:hover,
.hero-next:hover {
    color: rgba(255, 255, 255, 1);
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    display: flex;
    gap: 0.5rem;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: var(--color-accent, #e50914);
    transform: scale(1.3);
}

.hero-slide-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    color: #f5c518;
}

.hero-rating svg {
    width: 22px;
    height: 22px;
}

.hero-year {
    color: #e0e0e0;
    font-weight: 500;
}

.hero-badge-4k {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 55vh;
        min-height: 350px;
    }

    .hero-slide-overlay {
        padding: 2rem 1rem;
        background: linear-gradient(to top, rgba(10, 10, 15, 1) 0%, rgba(10, 10, 15, 0.7) 60%, transparent 100%);
        align-items: flex-end;
    }

    .hero-slide-info {
        max-width: 100%;
    }

    .hero-slide-poster {
        display: none;
        /* Hide poster on mobile so it doesn't overlap text */
    }

    .hero-slide-bg {
        opacity: 0.15;
    }

    .hero-slide-info h2 {
        font-size: 2.2rem;
    }

    .hero-slide-plot {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        margin-bottom: 1rem;
    }

    .hero-slide-actions .btn {
        padding: 0.6rem 1.5rem;
    }
}