.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.04);
    animation: hero-zoom 22s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes hero-zoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.11);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(8, 24, 32, 0.97) 24%, rgba(37, 9, 2, 0.06) 100%),
        linear-gradient(to top, rgba(8, 24, 32, 1.00) 0%, rgba(8, 24, 32, 0.55) 42%, rgba(8, 24, 32, 0.00) 72%);
}

.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(34, 87, 122, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(34, 87, 122, 0.28) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    padding: 0 40px 80px;
}

.hero-eyebrow {
    animation: fade-up 0.7s 0.05s ease-out both;
}

.hero-title {
    animation: fade-up 0.7s 0.12s ease-out both;
}

.hero-meta-row {
    animation: fade-up 0.7s 0.18s ease-out both;
}

.hero-synopsis {
    animation: fade-up 0.7s 0.24s ease-out both;
}

.hero-price-row {
    animation: fade-up 0.7s 0.30s ease-out both;
}

.hero-actions {
    animation: fade-up 0.7s 0.36s ease-out both;
}

.hero-cast {
    animation: fade-up 0.7s 0.42s ease-out both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
    animation: pulse-dot 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
    }

    50% {
        transform: scale(0.65);
        box-shadow: 0 0 4px var(--accent);
    }
}

.hero-eyebrow-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-size: clamp(34px, 5.2vw, 68px);
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 14px;
    text-shadow: 0 2px 28px rgba(37, 9, 2, 0.8);
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--accent-subtle);
    letter-spacing: 0.04em;
}

.hero-sep {
    width: 1px;
    height: 12px;
    background: var(--border);
    flex-shrink: 0;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    text-shadow: 0 0 12px var(--gold-glow);
}

.hero-synopsis {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(245, 237, 232, 0.6);
    max-width: 480px;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-price-unit {
    font-size: 32px;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 24px var(--gold-glow);
    letter-spacing: -0.02em;
}

.hero-price-bundle {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--gold-subtle);
    letter-spacing: 0.03em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-cast {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-cast-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.hero-cast-name {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.hero-cast-name:hover {
    color: var(--text);
}

.hero-cast-sep {
    color: var(--border-bright);
    font-size: 12px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    right: 40px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fade-in 1s 1.2s ease-out forwards;
}

@keyframes fade-in {
    to {
        opacity: 0.45;
    }
}

.hero-scroll-hint span {
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

.hero-scroll-arrow {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 1;
    }
}

.home-sections {
    padding: 56px 0 96px;
}

.section-cat {
    margin-bottom: 56px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.section-header-left {
    flex: 1;
}

.section-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 5px;
}

.section-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.carousel-wrap {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .movie-card {
    scroll-snap-align: start;
}

.carousel-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(8, 24, 32, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition-snap),
        box-shadow var(--transition-slow);
}

.carousel-wrap:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

.carousel-btn:disabled {
    opacity: 0 !important;
    pointer-events: none;
}

.trailer-modal-inner {
    position: relative;
    width: min(880px, 92vw);
    animation: modal-up 0.25s var(--ease-out-expo);
}

@keyframes modal-up {
    from {
        transform: translateY(16px) scale(0.97);
        opacity: 0;
    }

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

.trailer-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition-snap);
}

.trailer-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: scale(1.08) rotate(90deg);
}

.trailer-embed {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 0, 0, 0.5);
}

.trailer-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .hero {
        min-height: 580px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 16px 60px;
    }

    .hero-overlay {
        background:
            linear-gradient(to top, rgba(8, 24, 32, 1) 0%, rgba(8, 24, 32, 0.72) 55%, rgba(8, 24, 32, 0.15) 100%);
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .hero-scroll-hint {
        right: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-track {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .movie-card {
        width: 148px;
    }
}