

.hero-carousel.cinema-hero {
    --cinema-light: 139, 118, 255;
    --cinema-gutter: clamp(24px, 5vw, 96px);
    --cinema-fade: linear-gradient(to bottom,
        #000 0%, #000 64%,
        rgba(0, 0, 0, 0.86) 72%, rgba(0, 0, 0, 0.6) 80%,
        rgba(0, 0, 0, 0.33) 88%, rgba(0, 0, 0, 0.12) 95%,
        transparent 100%);
    position: relative;
    width: 100%;
    height: min(920px, 94svh) !important;
    min-height: 720px !important;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
    -webkit-mask-image: none;
    mask-image: none;
}

.cinema-hero .hero-slide {
    align-items: center;
    background-position: 64% 28%;
    background-size: cover;
    -webkit-mask-image: var(--cinema-fade);
    mask-image: var(--cinema-fade);
}

.cinema-hero .hero-slide::before {
    background:
        linear-gradient(90deg, rgba(6, 7, 13, 0.9) 0%, rgba(6, 7, 13, 0.64) 26%, rgba(6, 7, 13, 0.18) 58%, rgba(6, 7, 13, 0) 80%),
        linear-gradient(180deg, rgba(6, 7, 13, 0.5) 0%, rgba(6, 7, 13, 0) 20%);
}

.cinema-hero .hero-slide::after {
    background:
        radial-gradient(ellipse at 12% 62%, rgba(var(--cinema-light), 0.24), transparent 50%),
        linear-gradient(0deg, rgba(6, 7, 13, 0.62) 0%, rgba(6, 7, 13, 0) 46%);
    pointer-events: none;
}

.cinema-hero .hero-slide-content {
    width: min(640px, 56%);
    max-width: 640px;
    padding: 60px 0 230px;
    margin: 0 0 0 var(--cinema-gutter);
    text-align: left;
}

.cinema-title-wrap {
    min-height: 110px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
}

.cinema-hero .hero-slide-logo {
    display: block;
    max-width: min(100%, 480px);
    max-height: 160px;
    width: auto;
    height: auto;
    margin: 0;
    object-position: left bottom;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.6));
}

.cinema-hero .hero-slide-title {
    margin: 0;
    text-wrap: balance;
}

.cinema-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 19px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.88rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.cinema-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: -3px;
    padding: 4px 11px 4px 9px;
    border-radius: 999px;
    background: rgba(245, 197, 24, 0.13);
    border: 1px solid rgba(245, 197, 24, 0.34);
    color: #f7d774;
    font-size: 0.8rem;
    font-weight: 800;
    text-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.cinema-rating i { font-size: 0.68rem; }

.cinema-meta-item { position: relative; }

.cinema-meta-item + .cinema-meta-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: calc(50% - 1.5px);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.cinema-hero .hero-slide-desc {
    max-width: 520px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.cinema-hero .cinema-play.btn-premium {
    height: 52px;
    min-width: 0;
    padding: 0 34px 0 24px;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--btn-bg, var(--primary));
    color: var(--on-primary, #fff);
    font-size: 1rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 12px 34px rgba(var(--primary-rgb), 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.cinema-hero .cinema-play.btn-premium:hover {
    background: var(--btn-bg-hover, var(--primary-bright));
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cinema-hero .cinema-play .material-symbols-outlined {
    font-size: 27px;
    color: var(--on-primary, #fff);
}

.cinema-hero .cinema-round.btn-premium {
    width: 52px !important;
    min-width: 52px;
    height: 52px;
    flex: none;
    padding: 0 !important;
    border-radius: 50%;
    justify-content: center !important;
    color: #fff;
    font-size: 1.02rem !important;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.cinema-hero .cinema-round.btn-premium:hover { transform: translateY(-2px); }

.cinema-hero .cinema-wl.btn-premium.active {
    background: rgba(var(--primary-rgb), 0.24);
    border-color: rgba(var(--primary-rgb), 0.55);
    color: var(--primary-soft);
}

.cinema-hero button { font-family: inherit; }

.cinema-hero button:focus-visible { outline: 2px solid var(--primary-tint) !important; outline-offset: 4px; }

.cinema-dock {
    position: absolute;
    z-index: 25;
    left: var(--cinema-gutter);
    right: var(--cinema-gutter);
    bottom: 62px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.cinema-hero .cinema-rail {
    position: relative;
    inset: auto;
    transform: none;
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 14px;
    padding: 12px 6px 10px;
    margin: -12px -6px -10px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    background: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.cinema-hero .cinema-rail::-webkit-scrollbar { display: none; }

.cinema-hero .cinema-card,
.cinema-hero .cinema-card.active {
    position: relative;
    flex: 0 0 auto;
    width: 188px;
    height: auto;
    padding: 3px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 12px 30px rgba(0, 0, 0, 0.4);
    color: #fff;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
    opacity: 0.72;
    transform: none;
    transition:
        opacity 0.35s ease,
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.cinema-hero .cinema-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(148deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0) 52%);
    pointer-events: none;
}

.cinema-hero .cinema-card:hover {
    opacity: 1;
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.26);
    border-top-color: rgba(255, 255, 255, 0.4);
}

.cinema-hero .cinema-card.active {
    opacity: 1;
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgb(var(--primary-rgb));
    border-top-color: rgb(var(--primary-rgb));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 14px 34px rgba(0, 0, 0, 0.45);
}

.cinema-card > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    filter: saturate(0.8) brightness(0.84);
    transition: filter 0.35s ease, transform 0.5s ease;
}

.cinema-card:hover > img,
.cinema-card.active > img { filter: none; }

.cinema-card-shade {
    position: absolute;
    inset: 3px;
    border-radius: 13px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 5, 10, 0) 36%, rgba(4, 5, 10, 0.86) 100%);
}

.cinema-card-title {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 15px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.cinema-card-track {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 9px;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cinema-card.active .cinema-card-track { opacity: 1; }

.cinema-hero .cinema-scroll {
    bottom: 16px;
    z-index: 26;
    width: 44px;
    height: 34px;
    padding: 0;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.6);
}

.cinema-hero .cinema-scroll:hover { color: #fff; }

.cinema-hero .hero-pill-progress {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 0;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-tint, #c4b5fd), var(--primary));
    transition: none;
}

.cinema-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cinema-count {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.cinema-hero .cinema-pause.btn-premium {
    width: 46px !important;
    min-width: 46px;
    height: 46px;
    font-size: 0.86rem !important;
}

.cinema-pause[hidden] { display: none !important; }

@media (min-width: 993px) {
    html[data-hero-side="right"] .cinema-hero .hero-slide-content {
        margin: 0 var(--cinema-gutter) 0 auto;
        text-align: right;
    }
    html[data-hero-side="right"] .cinema-hero .hero-slide::before {
        background:
            linear-gradient(270deg, rgba(6, 7, 13, 0.9) 0%, rgba(6, 7, 13, 0.64) 26%, rgba(6, 7, 13, 0.18) 58%, rgba(6, 7, 13, 0) 80%),
            linear-gradient(180deg, rgba(6, 7, 13, 0.5) 0%, rgba(6, 7, 13, 0) 20%);
    }
    html[data-hero-side="right"] .cinema-meta,
    html[data-hero-side="right"] .cinema-hero .cinema-actions { justify-content: flex-end; }
    html[data-hero-side="right"] .cinema-title-wrap { justify-content: flex-end; }
    html[data-hero-side="right"] .cinema-hero .hero-slide-desc { margin-left: auto; }
}

@media (max-width: 992px) {
    .hero-carousel.cinema-hero { height: 820px !important; min-height: 720px !important; }
    .cinema-hero .hero-slide-content { width: 72%; }
    .cinema-hero .cinema-card,
    .cinema-hero .cinema-card.active { width: 172px; }
}

@media (max-width: 768px) {
    .cinema-hero .hero-slide-desc { display: none; }
    .cinema-hero .cinema-play.btn-premium {
        height: 48px;
        padding: 0 28px 0 20px !important;
        font-size: 0.92rem !important;
    }
    .cinema-hero .cinema-round.btn-premium {
        width: 48px !important;
        min-width: 48px;
        height: 48px;
    }
    .cinema-hero .cinema-pause.btn-premium {
        width: 40px !important;
        min-width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .hero-carousel.cinema-hero {
        --cinema-gutter: 18px;
        --cinema-fade: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0, 0, 0, 0.55) 91%, transparent 100%);
        height: 780px !important;
        min-height: 700px !important;
    }
    .cinema-hero .hero-slide { align-items: flex-end; background-position: 60% top; background-size: auto 66%; background-repeat: no-repeat; }
    .cinema-hero .hero-slide::before {
        background:
            linear-gradient(0deg, rgba(6, 7, 13, 0.92) 26%, rgba(6, 7, 13, 0.6) 45%, rgba(6, 7, 13, 0) 77%),
            linear-gradient(180deg, rgba(6, 7, 13, 0.4), rgba(6, 7, 13, 0) 25%);
    }
    .cinema-hero .hero-slide::after { background: radial-gradient(ellipse at 50% 62%, rgba(var(--cinema-light), 0.2), transparent 50%); }
    .cinema-hero .hero-slide-content { width: calc(100% - 36px); max-width: none; margin: 0 18px; padding: 0 0 180px !important; }
    .cinema-title-wrap { min-height: 70px; margin-bottom: 14px; justify-content: center; }
    .cinema-hero .hero-slide-logo { max-height: 104px !important; max-width: 82%; object-position: center bottom; }
    .cinema-meta { justify-content: center; font-size: 0.76rem; margin-bottom: 4px; }
    .cinema-rating { font-size: 0.72rem; }
    .cinema-hero .cinema-actions { justify-content: center; margin-top: 18px; gap: 10px; }
    .cinema-dock { bottom: 50px; gap: 10px; }
    .cinema-hero .cinema-scroll { bottom: 10px; font-size: 1.15rem; height: 30px; }
    .cinema-count { display: none; }
    .cinema-hero .cinema-rail { gap: 10px; margin-right: -18px; padding-right: 18px; }
    .cinema-hero .cinema-card,
    .cinema-hero .cinema-card.active { width: 146px; padding: 3px; border-radius: 14px; }
    .cinema-card > img,
    .cinema-card-shade { border-radius: 11px; }
    .cinema-card-shade { inset: 3px; }
    .cinema-card-title { left: 12px; right: 12px; bottom: 14px; font-size: 0.7rem; }
    .cinema-card-track { left: 12px; right: 12px; bottom: 9px; }
}

html.no-gpu .cinema-hero .cinema-card,
html.no-gpu .cinema-hero .cinema-round.btn-premium,
html.no-gpu .cinema-rating {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

html.no-gpu .cinema-hero .cinema-card { background: rgba(24, 25, 38, 0.9); }
html.no-gpu .cinema-hero .cinema-card.active { background: rgba(30, 31, 46, 0.95); }
html.no-gpu .cinema-hero .cinema-round.btn-premium { background: rgba(28, 29, 42, 0.88); }

html.no-gpu .cinema-card > img { filter: none; transition: none; }
html.no-gpu .cinema-hero .cinema-card:not(.active) > img { opacity: 0.8; }

html.no-gpu .cinema-hero .cinema-card:hover,
html.no-gpu .cinema-hero .cinema-card.active,
html.no-gpu .cinema-hero .cinema-play.btn-premium:hover,
html.no-gpu .cinema-hero .cinema-round.btn-premium:hover { transform: none; }

html.reduce-motion .cinema-hero .hero-slide,
html.reduce-motion .cinema-hero .hero-slide.active {
    transform: none !important;
    transition: opacity 0.6s ease !important;
}

html.reduce-motion .cinema-hero .hero-slide-content,
html.reduce-motion .cinema-hero .hero-slide-logo,
html.reduce-motion .cinema-hero .hero-slide-title,
html.reduce-motion .cinema-hero .hero-slide-desc,
html.reduce-motion .cinema-hero .hero-slide-actions {
    transition: none;
    animation: none;
    transform: none;
}

html.reduce-motion .cinema-hero .cinema-card,
html.reduce-motion .cinema-card > img { transition: none; transform: none; }

html.reduce-motion .cinema-hero .cinema-scroll { animation: none; }

@media (prefers-reduced-motion: reduce) {
    .cinema-hero .hero-slide,
    .cinema-hero .hero-slide.active { transform: none !important; transition: opacity 0.6s ease !important; }
    .cinema-hero .hero-slide-content,
    .cinema-hero .hero-slide-logo,
    .cinema-hero .hero-slide-title,
    .cinema-hero .hero-slide-desc,
    .cinema-hero .hero-slide-actions { transition: none; animation: none; transform: none; }
    .cinema-hero .cinema-card,
    .cinema-card > img { transition: none; transform: none; }
    .cinema-hero .cinema-scroll { animation: none; }
}

html.no-ambient .cinema-hero .hero-slide { --cinema-light: 0, 0, 0 !important; }
