.poster-hero {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #120e0d;
}

.poster-hero__rows {
    position: absolute;
    inset: -9% -8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 20px);
    transform: rotate(-2.2deg) scale(1.06);
}

.poster-hero__row {
    --poster-gap: clamp(10px, 1.2vw, 18px);
    flex: none;
    width: 100%;
    overflow: hidden;
}

.poster-hero__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: poster-hero-scroll var(--poster-speed, 72s) linear infinite;
    animation-delay: var(--poster-delay, 0s);
}

.poster-hero__strip {
    display: flex;
    flex: none;
    gap: var(--poster-gap);
    padding-right: var(--poster-gap);
}

.poster-hero__tile {
    position: relative;
    flex: none;
    width: clamp(132px, 15.7vh, 176px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #2c2522;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.38);
}

.poster-hero__tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.86) brightness(0.78) contrast(1.05);
}

.poster-hero__tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.poster-hero__shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, rgba(9, 6, 5, 0.83) 0%, rgba(9, 6, 5, 0.64) 31%, rgba(9, 6, 5, 0.25) 68%, rgba(9, 6, 5, 0.42) 100%),
        linear-gradient(to bottom, rgba(7, 5, 4, 0.48) 0%, rgba(7, 5, 4, 0.02) 45%, rgba(7, 5, 4, 0.72) 100%);
}

@keyframes poster-hero-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 767px) {
    .poster-hero__rows {
        inset: -5% -25%;
        gap: 10px;
        transform: rotate(-2.8deg) scale(1.04);
    }

    .poster-hero__row {
        --poster-gap: 10px;
    }

    .poster-hero__tile {
        width: clamp(126px, 18.5vh, 158px);
    }

    .poster-hero__shade {
        background:
            radial-gradient(ellipse at center, rgba(9, 6, 5, 0.86) 0%, rgba(9, 6, 5, 0.67) 35%, rgba(9, 6, 5, 0.32) 72%, rgba(9, 6, 5, 0.48) 100%),
            linear-gradient(to bottom, rgba(7, 5, 4, 0.55) 0%, rgba(7, 5, 4, 0.04) 44%, rgba(7, 5, 4, 0.78) 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .poster-hero__track {
        animation-play-state: paused;
    }
}
