/* Cinema Scroll Section — exact design match patch */
.cinema-scroll-section.cinema-video-match {
    position: relative;
    width: 100%;
    min-height: var(--cinema-height, 720px);
    height: var(--cinema-height, 720px);
    overflow: hidden;
    background: var(--cinema-bg, #0b0b0b);
    color: var(--cinema-title-color, #fff);
    isolation: isolate;
}

.cinema-video-match,
.cinema-video-match * { box-sizing: border-box; }

.cinema-video-match .cinema-bg-stack,
.cinema-video-match .cinema-bg-layer,
.cinema-video-match .cinema-overlay {
    position: absolute;
    inset: 0;
}

.cinema-video-match .cinema-bg-stack {
    z-index: 0;
    overflow: hidden;
    background: #070707;
}

.cinema-video-match .cinema-bg-layer {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.12);
    filter: blur(7px) saturate(.82) contrast(.95);
    clip-path: inset(6% 6% 6% 6%);
    transition:
        opacity var(--cinema-duration, 780ms) cubic-bezier(.22,.9,.24,1),
        transform calc(var(--cinema-duration, 780ms) + 180ms) cubic-bezier(.22,.9,.24,1),
        filter var(--cinema-duration, 780ms) cubic-bezier(.22,.9,.24,1),
        clip-path var(--cinema-duration, 780ms) cubic-bezier(.22,.9,.24,1);
    will-change: opacity, transform, filter, clip-path;
}

.cinema-video-match .cinema-bg-layer.is-active {
    opacity: 1;
    transform: scale(1.025);
    filter: blur(0) saturate(1.04) contrast(1.02);
    clip-path: inset(0);
    z-index: 2;
}

.cinema-video-match .cinema-bg-layer.is-leaving {
    opacity: 0;
    transform: scale(1.16) translateY(-18px);
    filter: blur(9px) saturate(.78) contrast(.92);
    clip-path: inset(10% 0 10% 0);
    z-index: 1;
}

.cinema-video-match .cinema-overlay {
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.48) 28%, rgba(0,0,0,.22) 56%, rgba(0,0,0,.44) 100%),
        linear-gradient(0deg, rgba(0,0,0,.58) 0%, transparent 34%, rgba(0,0,0,.16) 100%),
        var(--cinema-overlay, rgba(0,0,0,.48));
}

.cinema-video-match .cinema-content {
    position: relative;
    z-index: 3;
    width: min(var(--cinema-max-width, 1480px), calc(100% - 44px));
    height: 100%;
    margin: 0 auto;
}

.cinema-video-match .cinema-copy {
    position: absolute;
    left: clamp(0px, 1.3vw, 18px);
    top: 48%;
    transform: translateY(-52%);
    width: min(660px, 58vw);
    min-height: 150px;
    pointer-events: none;
}

.cinema-video-match .cinema-copy-item {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    opacity: 0;
    transform: translateY(28px);
    filter: blur(7px);
    transition:
        opacity calc(var(--cinema-duration, 780ms) * .9) cubic-bezier(.22,.9,.24,1),
        transform calc(var(--cinema-duration, 780ms) * .9) cubic-bezier(.22,.9,.24,1),
        filter calc(var(--cinema-duration, 780ms) * .9) cubic-bezier(.22,.9,.24,1);
}

.cinema-video-match .cinema-copy-item.is-active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.cinema-video-match .cinema-copy-item.is-leaving {
    opacity: 0;
    transform: translateY(-20px);
    filter: blur(7px);
}

.cinema-video-match .cinema-copy h2 {
    margin: 0;
    color: var(--cinema-title-color, #fff);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(34px, 4vw, var(--cinema-title-size, 52px));
    line-height: .92;
    font-weight: 880;
    letter-spacing: -.07em;
    text-shadow: 0 18px 42px rgba(0,0,0,.44);
}

.cinema-video-match .cinema-copy p {
    margin: 14px 0 0;
    max-width: 640px;
    color: var(--cinema-subtitle-color, rgba(255,255,255,.78));
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(11px, .92vw, var(--cinema-subtitle-size, 13px));
    line-height: 1.45;
    font-weight: 560;
    text-shadow: 0 12px 30px rgba(0,0,0,.44);
}

.cinema-video-match .cinema-rail-frame {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(18px, 4vh, 38px);
    height: calc(var(--cinema-thumb-height, 58px) + 32px);
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent 0, #000 4.8%, #000 95.2%, transparent 100%);
}

.cinema-video-match .cinema-rail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    transform: translate3d(var(--cinema-rail-x, 0px), 0, 0);
    transition: transform var(--cinema-duration, 780ms) cubic-bezier(.22,.9,.24,1);
    will-change: transform;
}

.cinema-video-match .cinema-rail.is-resetting { transition: none !important; }

.cinema-video-match .cinema-thumb {
    position: relative;
    flex: 0 0 var(--cinema-thumb-width, 122px);
    width: var(--cinema-thumb-width, 122px);
    height: var(--cinema-thumb-height, 58px);
    border: 1px solid rgba(255,255,255,.2);
    padding: 0;
    border-radius: var(--cinema-thumb-radius, 3px);
    overflow: hidden;
    background: var(--cinema-thumb-bg, rgba(255,255,255,.42));
    cursor: pointer;
    opacity: .58;
    transform: translateY(0) scale(.96);
    box-shadow: 0 10px 22px rgba(0,0,0,.2);
    transition:
        opacity .28s ease,
        transform .36s cubic-bezier(.22,.9,.24,1),
        border-color .28s ease,
        box-shadow .28s ease;
}

.cinema-video-match .cinema-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.55) saturate(.78) contrast(.94);
    transform: scale(1.04);
    transition:
        filter .28s ease,
        transform .56s cubic-bezier(.22,.9,.24,1);
}

.cinema-video-match .cinema-thumb.is-active {
    opacity: 1;
    transform: translateY(-4px) scale(1.035);
    border-color: var(--cinema-thumb-active, #fff);
    box-shadow: 0 16px 36px rgba(0,0,0,.34);
}

.cinema-video-match .cinema-thumb.is-active img {
    filter: grayscale(0) saturate(1.06) contrast(1.04);
    transform: scale(1.1);
}

.cinema-video-match .cinema-active-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--thumb-dot, var(--cinema-accent, #e0192d));
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 0 0 5px rgba(255,255,255,.18);
    transition: transform .34s cubic-bezier(.22,.9,.24,1);
}

.cinema-video-match .cinema-thumb.is-active .cinema-active-dot {
    transform: translate(-50%, -50%) scale(1);
}

.cinema-video-match.is-wheel-active .cinema-bg-layer.is-active {
    transform: scale(1.045);
}

@media (max-width: 980px) {
    .cinema-scroll-section.cinema-video-match {
        min-height: max(620px, var(--cinema-height, 720px));
        height: max(620px, var(--cinema-height, 720px));
    }

    .cinema-video-match .cinema-content { width: calc(100% - 28px); }

    .cinema-video-match .cinema-copy {
        top: 43%;
        width: min(620px, 82vw);
    }

    .cinema-video-match .cinema-copy h2 {
        font-size: clamp(36px, 7.4vw, 62px);
    }

    .cinema-video-match .cinema-copy p {
        max-width: 560px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .cinema-scroll-section.cinema-video-match {
        min-height: 560px;
        height: 560px;
    }

    .cinema-video-match .cinema-content { width: calc(100% - 18px); }

    .cinema-video-match .cinema-copy {
        top: 37%;
        width: calc(100% - 10px);
        min-height: 190px;
    }

    .cinema-video-match .cinema-copy h2 {
        font-size: clamp(32px, 11vw, 48px);
    }

    .cinema-video-match .cinema-copy p {
        font-size: 11px;
        max-width: 330px;
    }

    .cinema-video-match .cinema-rail-frame {
        bottom: 18px;
        height: 72px;
    }

    .cinema-video-match .cinema-thumb {
        flex-basis: 88px;
        width: 88px;
        height: 48px;
    }
}
