/* Movie Cards and Sections */
.movies-section {
    margin: 40px 0;
    padding: 0 var(--content-padding);
}

.movie-section-heading {
    font-size: 1.4vw;
    font-weight: 700;
    line-height: 1.25;
    color: var(--netflix-gray-50);
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.explore-nudge {
    color: var(--netflix-blue);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translateY(2px);
}

.movie-section-heading:hover .explore-nudge {
    opacity: 1;
}

/* Horizontal Row with Hidden Scrollbar */
.movies-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto; /* Allow scrolling */
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 40px 0;
    margin: -40px 0;
    
    /* Hide scrollbar strictly */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ */
}

/* Webkit Scrollbar Hide - IMPORTANT */
.movies-row::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.movie-item {
    width: 320px;
    flex: 0 0 320px;
    position: relative;
    border-radius: 4px;
    transition: transform 0.3s ease, z-index 0.3s;
    z-index: 1;
    cursor: pointer;
    overflow: hidden;
}

.movie-item:hover {
    transform: scale(1.1);
    z-index: 10;
}

.poster-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.move-item-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Vertical Gradient Overlay */
.movie-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.8) 85%,
        rgba(0,0,0,0.95) 100%
    );
    pointer-events: none;
    border-radius: 4px;
}

/* Title Overlay */
.movie-title-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    z-index: 2;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navigation Controls */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.slider-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .movie-item {
        width: 280px;
        flex: 0 0 280px;
    }
}

@media (max-width: 768px) {
    .movie-item {
        width: 200px;
        flex: 0 0 200px;
    }
}
