:root {
    --movie-card-height: 280px;
    --section-spacing: 50px;
}

/* Premium Home Section Styling */
.home-movie-section {
    margin-top: var(--section-spacing);
    width: 100%;
    min-height: 350px;
    color: var(--text-main);
    position: relative;
    padding-left: 20px;
    /* Slight offset for the gold bar */
}

.home-movie-section>strong {
    font-size: 26px;
    margin-left: 0;
    float: left;
    font-weight: 700;
    color: var(--text-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

.home-movie-section>a {
    font-size: 16px;
    margin-right: 20px;
    float: right;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.home-movie-section>a:hover {
    color: var(--text-main);
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(-5px);
}

.home-movie-section-inner {
    width: 100%;
    height: 320px;
    /* Increased height for hover effects */
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    text-align: left;
    scroll-behavior: smooth;
    padding: 20px 0;
    position: relative;
    /* Improved mask for fade effect */
    mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.home-movie-section-inner::-webkit-scrollbar {
    height: 6px;
}

.home-movie-section-inner::-webkit-scrollbar-track {
    background: transparent;
}

.home-movie-section-inner::-webkit-scrollbar-thumb {
    background: var(--secondary-bg);
    border-radius: 10px;
}

.home-movie-section-inner::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Premium Scroll Buttons */
.home-movie-section_left-scroll,
.home-movie-section_right-scroll {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--glass-heavy);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-depth);
    opacity: 0;
    /* Hidden by default, shown on hover */
}

.home-movie-section:hover .home-movie-section_left-scroll,
.home-movie-section:hover .home-movie-section_right-scroll {
    opacity: 1;
}

.home-movie-section_left-scroll {
    left: 10px;
}

.home-movie-section_right-scroll {
    right: 10px;
}

.home-movie-section_left-scroll:hover,
.home-movie-section_right-scroll:hover {
    background: var(--gold-primary);
    color: var(--primary-bg);
    border-color: var(--gold-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Schedule Section */
.home-schedule-section {
    margin-top: var(--section-spacing);
    width: 100%;
    min-height: 300px;
    color: var(--text-main);
    position: relative;
    padding: 2px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--glass-light), transparent);
    border: 1px solid var(--glass-border);
}

.home-schedule-section>strong {
    font-size: 24px;
    margin-left: 20px;
    margin-top: 15px;
    float: left;
    font-weight: 700;
    color: var(--text-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.home-schedule-section>a {
    font-size: 16px;
    margin-right: 20px;
    margin-top: 15px;
    float: right;
    color: var(--text-muted);
    text-decoration: none;
}

.home-schedule-section-inner {
    width: 100%;
    height: 260px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    text-align: left;
    scroll-behavior: smooth;
    padding: 20px;
}

/* Section Title Enhancement */
.home-movie-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 4px;
    height: 35px;
    background: var(--gold-gradient);
    border-radius: 0 4px 4px 0;
    box-shadow: var(--shadow-glow);
}

/* Mobile Responsiveness */
@media only screen and (max-width: 820px) {
    :root {
        --movie-card-height: calc((100vw * 0.32));
        --section-spacing: 30px;
    }

    .home-movie-section {
        min-height: auto;
        padding-left: 15px;
    }

    .home-movie-section>strong {
        font-size: 20px;
        float: none;
        display: block;
        margin-bottom: 10px;
    }

    .home-movie-section>a {
        float: none;
        display: inline-flex;
        margin: 0 0 10px 0;
        font-size: 14px;
    }

    .home-movie-section-inner {
        padding: 0;
        height: auto;
        padding-bottom: 20px;
        /* Space for scrollbar */
    }

    .home-movie-section_left-scroll,
    .home-movie-section_right-scroll {
        display: none;
        /* Hide scroll buttons on mobile */
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-movie-section {
    animation: fadeInUp 0.8s ease-out;
}