/* ===== Общий листинг каталога (movies/soaps, RU/EN) — плоский грид с сайдбаром лет ===== */

/* Каталог остаётся широкой центрированной колонкой, а не full-bleed подложкой. */
body.page-catalog #workarea {
    width: min(1380px, 92vw) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.page-catalog #content {
    --catalog-page-fade-width: clamp(140px, 18vw, 320px);
    --catalog-page-fade-offset: clamp(-320px, -18vw, -140px);
    --catalog-page-fade-soft: clamp(32px, 4vw, 72px);
    --catalog-page-fade-mid: clamp(82px, 10vw, 186px);
    position: relative;
    z-index: 0;
    overflow: visible;
    background: transparent;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.page-catalog #content::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: var(--catalog-page-fade-offset);
    right: var(--catalog-page-fade-offset);
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(var(--bg-rgb), 0) 0,
        rgba(var(--bg-rgb), .18) var(--catalog-page-fade-soft),
        rgba(var(--bg-rgb), .58) var(--catalog-page-fade-mid),
        var(--bg) var(--catalog-page-fade-width),
        var(--bg) calc(100% - var(--catalog-page-fade-width)),
        rgba(var(--bg-rgb), .58) calc(100% - var(--catalog-page-fade-mid)),
        rgba(var(--bg-rgb), .18) calc(100% - var(--catalog-page-fade-soft)),
        rgba(var(--bg-rgb), 0) 100%
    );
}
body.page-catalog #content > * {
    position: relative;
    z-index: 1;
}

.movies-page,
body:has(.movies-page) .page-header-area {
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
}

/* В colors.css body имеет overflow-x:clip, что ломает position:sticky
   внутри .movies-layout. На catalog-страницах отменяем — горизонтальный
   скролл не возникает (hero изолирован в .page-header-area с overflow:hidden). */
body:has(.movies-page) {
    overflow-x: visible;
}
.movies-page {
    padding-top: 0;
}

/* --- Sticky-фильтр алфавита: остаётся под закреплённым #mainNavbar (64px) --- */
.movies-page .movies-filters {
    position: sticky;
    top: 64px;
    z-index: 20;
    background: var(--bg, #000);
}

/* --- Мобильные дропдауны фильтров (letter+year): скрыты на десктопе --- */
.movies-filters-bar { display: none; }
.filter-dd { position: relative; }
.filter-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .9rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.filter-dd-btn:hover,
.filter-dd-btn[aria-expanded="true"] { border-color: var(--accent); }
.filter-dd-btn[aria-expanded="true"] { background: rgba(var(--accent-rgb), .08); }
.filter-dd-label {
    color: var(--muted);
    font-weight: 500;
    letter-spacing: .02em;
}
.filter-dd-value { color: var(--text); }
.filter-dd-chev {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .2rem;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform .2s ease;
}
.filter-dd-btn[aria-expanded="true"] .filter-dd-chev { transform: rotate(180deg); }

.filter-dd-panel { display: none; }
.filter-dd-btn[aria-expanded="true"] + .filter-dd-panel {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    z-index: 25;
    min-width: 0;
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--bg, #0a0a0a);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .5rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .6);
}
.filter-dd-letter .filter-dd-btn[aria-expanded="true"] + .filter-dd-panel { left: 0; }
.filter-dd-year   .filter-dd-btn[aria-expanded="true"] + .filter-dd-panel { right: 0; }

/* Стиль телепортированного содержимого внутри панели — вертикальный список pills */
.filter-dd-panel .filter-row,
.filter-dd-panel .movies-years-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
    overflow: visible;
    list-style: none;
}
.filter-dd-panel .movies-years-list li {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
}
.filter-dd-panel .filter-pill,
.filter-dd-panel .movies-year {
    width: 100%;
    justify-content: center;
    min-width: 0;
    padding: 0 .4rem;
    height: 34px;
}

/* --- Двухколоночный layout --- */
.movies-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 40px;
    margin-top: 2rem;
}
.movies-grid-wrap { min-width: 0; }

/* --- Сетка карточек: 6 колонок на десктопе (override .projects-grid) --- */
.movies-page .movies-grid.projects-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px;
    min-width: 0;
}

/* Карточка фильма: заголовок + метаданные оверлеем поверх постера */
.movies-page .project-card { position: relative; }
.movies-page .project-card-poster { aspect-ratio: 3 / 4; }
.movies-page .project-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.4rem .8rem .7rem;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,0) 100%);
    color: #fff;
    pointer-events: none;
    border-radius: 0 0 var(--radius, 10px) var(--radius, 10px);
}

/* Заголовок: одна строка, при переполнении прокручивается на ховере самого текста */
.movies-page .project-card-title {
    color: #fff;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: auto;
}

/* Мета: год слева, жанр справа, обе в одну строку */
.movies-page .project-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: .5rem;
    margin-top: .3rem;
}
.movies-page .project-card-year {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .78);
}
.movies-page .project-card-genre {
    flex: 1 1 0;
    min-width: 0;
    text-align: right;
    overflow: hidden;
    white-space: nowrap;
    color: rgba(255, 255, 255, .78);
    pointer-events: auto;
}

/* Marquee: длинные названия и жанры прокручиваются на ховере (анимация — через Web Animations API в JS) */
.movies-page .marquee-inner {
    display: inline-block;
    will-change: transform;
}

/* --- Скролл-подсказка «Ещё…» — fixed-пилюля внизу viewport --- */
.movies-scroll-hint {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.movies-scroll-hint.is-visible { opacity: 1; }
.movies-scroll-hint-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(0,0,0,.65);
    padding: .5rem .9rem;
    border-radius: 9999px;
    animation: movies-hint-bounce 1.6s ease-in-out infinite;
}
.movies-scroll-hint-arrow {
    display: inline-block;
    line-height: 1;
    font-size: 14px;
}
@keyframes movies-hint-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .movies-scroll-hint-label { animation: none; }
}

/* --- Сайдбар годов --- */
.movies-years {
    /* top должен быть ниже sticky .movies-filters (top:64 + height≈73 = 137) + зазор */
    position: sticky;
    top: 150px;
    align-self: start;
    height: calc(100vh - 170px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.movies-years-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}
.movies-years-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.movies-years-list li {
    flex: 1 1 0;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.movies-year {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 56px;
    padding: 0 .75rem;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 9999px;
    transition: border-color .2s, color .2s, background .2s;
    line-height: 1;
    cursor: pointer;
}
.movies-year:hover {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(255, 90, 54, .06);
}
.movies-year.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.movies-year-count {
    font-size: 0.8125rem;
    opacity: 0.5;
}

/* --- Sentinel и лоадер infinite scroll --- */
.movies-sentinel { height: 1px; }
.movies-loader {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}
.movies-loader .spinner {
    width: 24px; height: 24px;
    border: 3px solid rgba(0,0,0,0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: movies-spin 0.8s linear infinite;
}
@keyframes movies-spin { to { transform: rotate(360deg); } }

/* --- Пустое состояние --- */
.movies-empty {
    text-align: center;
    padding: 4rem 1rem;
}
.movies-empty-reset {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid currentColor;
    border-radius: var(--radius, 10px);
    text-decoration: none;
    color: inherit;
}
.movies-empty-reset:hover { background: rgba(var(--text-rgb),0.06); }

/* --- Ошибка загрузки AJAX --- */
.movies-error {
    text-align: center;
    padding: 2rem 1rem;
    color: #b00020;
}
.movies-error-retry {
    display: inline-block;
    margin-left: 0.5rem;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font: inherit;
}

/* --- Планшет-ландшафт (iPad Pro 11") и малый десктоп: 4 колонки --- */
@media (min-width: 992px) and (max-width: 1199px) {
    .movies-layout { gap: 30px; }
    .movies-page .movies-grid.projects-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
}

/* --- Tablet typography: читаемость на iPad (768–1199px, обе ориентации) --- */
@media (min-width: 768px) and (max-width: 1199px) {
    /* Крупнее название, перенос в 2 строки — длинные имена читаются без marquee
       (marquee завязан на hover, недоступен на touch). */
    .movies-page .project-card-title {
        font-size: 15px;
        line-height: 1.25;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .movies-page .project-card-year,
    .movies-page .project-card-genre {
        font-size: 12px;
        color: rgba(255, 255, 255, .9);
    }
    /* Подушка оверлея меньше, чтобы не перетемнять постер */
    .movies-page .project-card-body {
        padding: 1.8rem .9rem .75rem;
        background: linear-gradient(to top,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.35) 65%,
            rgba(0,0,0,0) 100%);
    }
}

/* --- Планшет: сайдбар уезжает наверх как горизонтальная полоса --- */
@media (max-width: 991px) {
    body.page-catalog #workarea {
        width: 90vw !important;
    }
    .movies-page,
    body:has(.movies-page) .page-header-area {
        padding-left: 30px;
        padding-right: 30px;
    }
    .movies-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
    .movies-years {
        position: static;
        height: auto;
        max-height: none;
        overflow: visible;
        order: -1;
        margin-bottom: 1rem;
    }
    .movies-years-title { margin-bottom: 0.5rem; }
    .movies-years-list {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }
    .movies-years-list li {
        flex: 0 0 auto;
        min-height: 0;
    }
    .movies-year {
        white-space: nowrap;
        height: 32px;
    }
    .movies-year-count {
        margin-left: 0.35rem;
    }
    .movies-page .movies-grid.projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 767px) {
    body.page-catalog #workarea {
        width: 100% !important;
    }
    body.page-catalog #content {
        background: var(--bg);
    }
    body.page-catalog #content::before {
        content: none;
    }
}

/* --- Мобильный --- */
@media (max-width: 575px) {
    .movies-page,
    body:has(.movies-page) .page-header-area {
        padding-left: 15px;
        padding-right: 15px;
    }
    .movies-page .movies-grid.projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    /* Мобильные дропдауны: кнопка-слева (буквы), кнопка-справа (годы).
       Исходные .filter-row и .movies-years-list телепортируются в панели через JS. */
    .movies-filters-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .5rem;
    }
    .movies-page .movies-filters { padding: .6rem 0; margin-bottom: 0; }
    /* Скрываем исходные места — их содержимое перенесено в панели */
    .movies-page .movies-filters > .filter-row { display: none; }
    .movies-page .movies-years { display: none; }
    .movies-layout { margin-top: 1rem; }
}

/* ===== Standalone hero-секция (для главной, со встроенным заголовком-ссылкой) ===== */
.catalog-hero-section {
    /* Full-bleed: вырываемся из #content/#workarea padding на главной, чтобы
       заголовок оказался в той же позиции что и на странице каталога. */
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    min-height: 260px;
    padding-top: 6rem;
    padding-bottom: 0;
    isolation: isolate;
}
.catalog-hero-section .movies-hero {
    /* на странице каталога .movies-hero attached to .page-header-area (full-bleed);
       здесь этот стиль переопределяется через каскад (ниже общий блок) */
}
.catalog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1380px;
    margin: 0 auto;
}
.catalog-hero-section .page-title {
    position: relative;
    z-index: 2;
    width: max-content;
    max-width: 100%;
    margin: 0;
}
.catalog-hero-section .page-title a {
    color: inherit;
    text-decoration: none;
}
.catalog-hero-section .page-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
/* На главной плёнки стыкуются вплотную — убираем вертикальное затемнение
   overlay, иначе нижняя часть одной hero и верхняя другой суммарно
   выглядят как чёрная полоса-«пустота». Оставляем только боковое
   затемнение для контраста под заголовком. */
.catalog-hero-section .movies-hero-overlay {
    background: linear-gradient(to right,
        #0a0a0a 0%,
        rgba(10, 10, 10, 0.97) 18%,
        rgba(10, 10, 10, 0.7) 38%,
        rgba(10, 10, 10, 0.38) 65%,
        rgba(10, 10, 10, 0.25) 100%);
}
@media (max-width: 991px) {
    .catalog-hero-section {
        min-height: 210px;
        padding-top: 4rem;
    }
}
@media (max-width: 767px) {
    .catalog-hero-section {
        min-height: auto;
        padding-top: 1.5rem;
        padding-bottom: 0.5rem;
    }
    /* Мобильная версия hero: статичная сетка из 6 постеров без анимации и перфорации.
       Полноширинная плёнка с бесконечной анимацией на узких экранах слишком тяжёлая
       и визуально шумная — заменяем её на компактный preview-грид. */
    .catalog-hero-section .movies-hero {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin: 0 0 1rem;
        overflow: visible;
    }
    .catalog-hero-section .movies-hero-strip-wrap {
        position: relative;
        inset: auto;
        background: transparent;
    }
    .catalog-hero-section .movies-hero-strip-wrap::before,
    .catalog-hero-section .movies-hero-strip-wrap::after {
        display: none;
    }
    .catalog-hero-section .movies-hero-strip {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0;
        animation: none;
    }
    .catalog-hero-section .movies-hero-frame {
        height: auto;
        width: 100%;
        filter: none;
    }
    /* На мобильной рендер дублирует постеры несколько раз (для бесшовной ленты),
       оставляем только первые 6. */
    .catalog-hero-section .movies-hero-frame:nth-child(n+7) {
        display: none;
    }
    .catalog-hero-section .movies-hero-overlay {
        display: none;
    }
}

/* ===== Hero-кинолента с перфорацией на странице фильмов ===== */
body.page-catalog .page-header-area {
    /* overflow:hidden НЕ ставим — hero растягивается за пределы max-width контейнера
       (до 100vw), а клиппинг берёт на себя сам .movies-hero. */
    position: relative;
    padding-top: 6rem;
    padding-bottom: 2rem;
    min-height: 260px;
    isolation: isolate;
}
body.page-catalog .page-title {
    position: relative;
    z-index: 2;
    width: max-content;
    max-width: 100%;
}
.movies-hero {
    /* Full-bleed: растягиваем за границы max-width контейнера на всю ширину viewport.
       Заголовок .page-title остаётся в потоке родителя и не сдвигается. */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 0;
    overflow: hidden;
}

.movies-hero-strip-wrap {
    position: absolute;
    inset: 0;
    background-color: #141414;
}
.movies-hero-strip-wrap:hover .movies-hero-strip,
.movies-hero-strip-wrap:focus-within .movies-hero-strip {
    animation-play-state: paused;
}
.movies-hero-strip-wrap::before,
.movies-hero-strip-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 22px;
    z-index: 2;
    pointer-events: none;
    /* Прямоугольная перфорация в пропорциях ~BH/KS (12×10 в шаге 22px):
       background-color рисует «дырку» (#050505), а два линейных градиента
       маскируют её сверху/снизу и слева/справа цветом плёнки #1b1b1b. */
    background-color: #050505;
    background-image:
        linear-gradient(to right,
            #1b1b1b 0, #1b1b1b 5px,
            transparent 5px, transparent 17px,
            #1b1b1b 17px, #1b1b1b 22px),
        linear-gradient(to bottom,
            #1b1b1b 0, #1b1b1b 6px,
            transparent 6px, transparent 16px,
            #1b1b1b 16px, #1b1b1b 22px);
    background-size: 22px 100%, 100% 100%;
    background-repeat: repeat-x, no-repeat;
}
.movies-hero-strip-wrap::before { top: 0; }
.movies-hero-strip-wrap::after  { bottom: 0; }

.movies-hero-strip {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 0;
    display: flex;
    gap: 4px;
    padding: 0 4px;
    animation: movies-hero-slide 55s linear infinite;
    will-change: transform;
}
.movies-hero-frame {
    flex: 0 0 auto;
    aspect-ratio: 2 / 3;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #222;
    filter: saturate(0.9) brightness(0.85);
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: filter .25s ease, transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
}
.movies-hero-frame:hover,
.movies-hero-frame:focus-visible {
    filter: saturate(1.05) brightness(1);
    transform: scale(1.04);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.movies-hero-frame:focus-visible {
    outline: 2px solid var(--accent, #ff6b00);
    outline-offset: 3px;
}
@keyframes movies-hero-slide {
    /* Рендерим 3 копии постеров, смещаем на 1/3 ширины ленты — плёнка
       всегда шире viewport (включая ultrawide/4K), пустого хвоста в конце
       цикла не возникает. */
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-33.3333%, 0, 0); }
}

.movies-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(to bottom,
            transparent 0%,
            transparent 55%,
            rgba(10, 10, 10, 0.85) 92%,
            #0a0a0a 100%),
        linear-gradient(to right,
            #0a0a0a 0%,
            rgba(10, 10, 10, 0.97) 18%,
            rgba(10, 10, 10, 0.7) 38%,
            rgba(10, 10, 10, 0.38) 65%,
            rgba(10, 10, 10, 0.25) 100%);
}

@media (max-width: 991px) {
    body.page-catalog .page-header-area {
        min-height: 210px;
        padding-top: 5.5rem;
    }
}

@media (max-width: 767px) {
    body.page-catalog .page-header-area {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 1.5rem;
    }
    /* Скрываем только hero-плёнку на странице каталога — на главной внутри
       .catalog-hero-section она остаётся видимой и превращается в сетку 3×2
       (см. блок выше в этом же media query). */
    body.page-catalog .movies-hero {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .movies-hero-strip {
        animation: none;
    }
}

/* ── Light theme: lighten movies hero instead of darkening ── */
/* Плёнка (strip-wrap + перфорация) намеренно остаётся тёмной в светлой теме —
   это стилистический элемент «киноплёнки», он не должен светлеть вместе с фоном. */

:root[data-theme="light"] .movies-hero-frame {
    filter: saturate(1) brightness(1.05);
    box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), .18);
}

:root[data-theme="light"] .movies-hero-frame:hover,
:root[data-theme="light"] .movies-hero-frame:focus-visible {
    filter: saturate(1.05) brightness(1.1);
    box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), .18), 0 6px 20px rgba(var(--shadow-rgb), .25);
}

:root[data-theme="light"] .movies-hero-overlay {
    background:
        linear-gradient(to bottom,
            transparent 0%,
            transparent 55%,
            rgba(var(--bg-rgb), .85) 92%,
            rgba(var(--bg-rgb), 1)   100%),
        linear-gradient(to right,
            rgba(var(--bg-rgb), 1)   0%,
            rgba(var(--bg-rgb), .97) 18%,
            rgba(var(--bg-rgb), .7)  38%,
            rgba(var(--bg-rgb), .38) 65%,
            rgba(var(--bg-rgb), .25) 100%);
}

:root[data-theme="light"] .catalog-hero-section .movies-hero-overlay {
    background: linear-gradient(to right,
        rgba(var(--bg-rgb), 1)   0%,
        rgba(var(--bg-rgb), .97) 18%,
        rgba(var(--bg-rgb), .7)  38%,
        rgba(var(--bg-rgb), .38) 65%,
        rgba(var(--bg-rgb), .25) 100%);
}
