/* =========================================
   Hero Slider
   ========================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(5,5,5,0.6) 40%, transparent 100%);
    box-shadow: inset 0 0 150px rgba(0,0,0,0.8);
    display: flex;
    align-items: flex-end;
    padding: 80px 60px;
}

.hero-content {
    max-width: 900px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
}

.hero-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
    font-weight: 500;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-gold);
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.hero-desc {
    font-size: 1.1rem;
    color: #DDD;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 100px; /* Pill shape */
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background: var(--accent-gold);
    width: 25px;
    border-radius: 6px;
}

/* =========================================
   Content Sections & Grids
   ========================================= */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    border-left: 4px solid var(--accent-gold);
    padding-left: 15px;
}

body.lang-ku .section-title {
    border-left: none;
    border-right: 4px solid var(--accent-gold);
    padding-left: 0;
    padding-right: 15px;
}

.view-all {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

/* =========================================
   Movie Cards
   ========================================= */
.movie-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--box-shadow);
}

.movie-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(255, 193, 7, 0.2);
}

.movie-poster {
    position: relative;
    padding-top: 150%; /* 2:3 Aspect Ratio */
    overflow: hidden;
    background: #111;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(3px);
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-btn-small {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    padding-left: 4px; /* Center icon */
    transform: scale(0.5) translateY(20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.movie-card:hover .play-btn-small {
    transform: scale(1) translateY(0);
}

.movie-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-gold);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

body.lang-ku .movie-badge {
    left: auto;
    right: 10px;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-gold);
}

/* =========================================
   Forms & Inputs
   ========================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-overlay {
        padding: 40px 20px;
    }
    
    .slider-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .movie-grid {
        /* Mobile: 2-column grid as requested */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .movie-info {
        padding: 10px;
    }
    
    .movie-title {
        font-size: 0.95rem;
    }
    
    .movie-details {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 50vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
