.cinema-stack {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: #050508;
}

.cinema-video,
.cinema-poster,
.cinema-vignette {
    position: absolute;
    inset: 0;
}

.cinema-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.cinema-poster {
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: background-image 0.8s ease, opacity 0.8s ease;
}

.cinema-vignette {
    background:
        linear-gradient(180deg, rgba(5, 5, 8, 0.42) 0%, rgba(5, 5, 8, 0.18) 38%, rgba(5, 5, 8, 0.82) 100%),
        radial-gradient(circle at 78% 28%, rgba(157, 78, 221, 0.16), transparent 36%),
        radial-gradient(circle at 18% 88%, rgba(255, 106, 26, 0.12), transparent 32%),
        radial-gradient(circle at center, transparent 28%, rgba(5, 5, 8, 0.62) 100%);
}

.cinema-scan,
.cinema-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cinema-scan {
    opacity: 0.09;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.16) 0,
        rgba(255, 255, 255, 0.16) 1px,
        transparent 1px,
        transparent 4px
    );
    mix-blend-mode: overlay;
}

.cinema-grain {
    inset: -20%;
    opacity: 0.18;
    background-image: radial-gradient(rgba(255,255,255,0.18) 0.6px, transparent 0.7px);
    background-size: 3px 3px;
    animation: grain-shift 1.6s steps(3) infinite;
}

@keyframes grain-shift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-1%, 1%); }
    50% { transform: translate(1%, -1%); }
    75% { transform: translate(-1%, -2%); }
    100% { transform: translate(0, 0); }
}

.is-cinematic .kicker {
    text-shadow: 0 0 12px rgba(255, 106, 26, 0.55);
}

body[data-home-accent="purple"] .bg-layer {
    filter: hue-rotate(20deg) saturate(1.15);
}

[data-section] .hero-panel,
[data-section] .section-copy {
    opacity: 0.22;
    transform: translateY(40px) scale(0.985);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-section].is-in .hero-panel,
[data-section].is-in .section-copy {
    opacity: 1;
    transform: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 50;
    pointer-events: none;
    background: linear-gradient(90deg, var(--orange), var(--purple));
}

@supports (animation-timeline: view()) {
    html.has-sda [data-section] .hero-panel,
    html.has-sda [data-section] .section-copy {
        opacity: 1;
        transform: none;
        transition: none;
        animation: section-cycle 1ms linear both;
        animation-timeline: view();
        animation-range: cover 0% cover 100%;
    }

    html.has-sda .cinema-poster {
        animation: poster-drift 1ms linear both;
        animation-timeline: scroll();
    }

    html.has-sda .scroll-progress {
        animation: progress-x 1ms linear both;
        animation-timeline: scroll();
    }

    html.has-sda .tiny-card {
        animation: card-rise 1ms linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 80%;
    }

    html.has-sda .tiny-card:nth-child(2) { animation-range: entry 8% entry 90%; }
    html.has-sda .tiny-card:nth-child(3) { animation-range: entry 16% entry 100%; }
}

@keyframes section-cycle {
    0% { opacity: 0; transform: translateY(56px) scale(0.97); filter: blur(6px); }
    18% { opacity: 1; transform: none; filter: blur(0); }
    72% { opacity: 1; transform: none; filter: blur(0); }
    100% { opacity: 0; transform: translateY(-36px) scale(0.98); filter: blur(4px); }
}

@keyframes poster-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.14) translate3d(0, -2%, 0); }
}

@keyframes progress-x {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes card-rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

.now-hero-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #e0aaff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(157, 78, 221, 0.55);
    background: rgba(157, 78, 221, 0.16);
    color: #f0d0ff;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.live-dot::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #c77dff;
    box-shadow: 0 0 12px #9d4edd;
    animation: pulse-live 1.6s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.75); }
}

.now-highlight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    align-items: start;
}

.now-highlight.has-rail {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 16.5rem);
}

.now-featured {
    position: relative;
    overflow: hidden;
    height: 28.2rem;
    border-radius: 22px;
    display: grid;
    align-items: end;
}

.now-featured-art {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(157, 78, 221, 0.35), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 106, 26, 0.22), transparent 42%),
        #0c0c14;
    background-size: cover;
    background-position: center;
}

.now-featured-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 15%, rgba(6, 6, 10, 0.92));
}

.now-featured-copy {
    position: relative;
    z-index: 1;
    padding: 1.4rem;
}

.now-featured-copy h3 {
    margin: 0.45rem 0 0.3rem;
    font-family: var(--display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.now-rail {
    display: grid;
    gap: 0.8rem;
    align-content: start;
    height: 28.2rem;
    overflow-y: auto;
    padding-right: 0.35rem;
    scrollbar-gutter: stable;
}

.now-rail .tiny-card {
    min-height: 8.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.now-rail .tiny-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    font-size: 0.92rem;
    margin: 0.4rem 0 0.3rem;
}

.now-rail .tiny-card .meta {
    margin: 0;
    flex-shrink: 0;
}

.now-rail .tiny-card.is-current {
    border-color: rgba(157, 78, 221, 0.7);
    box-shadow: 0 0 18px rgba(157, 78, 221, 0.2);
}

.preview-scroll {
    margin-top: 2rem;
    max-height: calc(2 * 15.5rem + 1.2rem);
    overflow-y: auto;
    padding-right: 0.4rem;
    scrollbar-gutter: stable;
}

.preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preview-grid .game-card {
    min-height: 15.5rem;
}

.preview-grid .game-card p:not(.meta) {
    display: none;
}

.now-rail,
.preview-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(157, 78, 221, 0.7) rgba(255, 255, 255, 0.06);
}

.now-rail::-webkit-scrollbar,
.preview-scroll::-webkit-scrollbar {
    width: 8px;
}

.now-rail::-webkit-scrollbar-thumb,
.preview-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--orange), var(--purple));
    border-radius: 99px;
}

.tiny-card {
    padding: 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(8, 8, 12, 0.55);
}

.tiny-card h3 {
    margin: 0.35rem 0;
    font-family: var(--display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preview-scroll { max-height: calc(4 * 15.5rem + 3.6rem); }
}

@media (max-width: 800px) {
    .now-highlight,
    .now-highlight.has-rail { grid-template-columns: 1fr; }
    .now-featured,
    .now-rail { height: auto; }
    .now-rail { max-height: 28.2rem; }
}

@media (max-width: 720px) {
    .cinema-video { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cinema-grain { animation: none; }
    .cinema-poster { transform: none; animation: none !important; }
    [data-section] .hero-panel,
    [data-section] .section-copy,
    .tiny-card,
    .scroll-progress {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none !important;
    }
}
