/* ==========================================================================
   FASOOLLKA — Кинотеатр ада / Кинотеатр рая
   1. Шапка: картинка кинозала (демоны / ангелы смотрят кино) с живыми деталями
   2. Поиск и фильтры
   3. Полки по категориям (вкладка «Всё»)
   4. Афиши (кнопка «Запись» на обложке)
   5. Карточка фильма
   6. Режим редактирования: кнопка, панель, инструменты на афишах, форма фильма
   ========================================================================== */

.cinema {
    position: relative;
    z-index: 10;
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: clamp(10px, 2vh, 20px) clamp(16px, 3vw, 40px) 60px;
}

/* ---------- 1. Шапка-кинозал (этап 6: картинки владельца + живые детали в SVG) ---------- */
.hall {
    position: relative;
    margin: 0 auto 6px;
    aspect-ratio: 2000 / 770;
    border-radius: 24px 24px 14px 14px;
    overflow: hidden;
    isolation: isolate;
    container-type: inline-size;
}
:root[data-theme="hell"] .hall { box-shadow: inset 0 0 0 1px rgba(255, 110, 60, .35), 0 0 60px -10px rgba(255, 40, 0, .5), 0 30px 60px -30px #000; }
:root[data-theme="heaven"] .hall { box-shadow: inset 0 0 0 1px rgba(214, 170, 74, .6), 0 0 60px rgba(255, 236, 170, .7), 0 30px 60px -30px rgba(70, 90, 160, .45); }
/* картинка и детали поверх неё медленно «наплывают» вместе */
.hall__zoom { position: absolute; inset: 0; transform-origin: 62% 40%; animation: hallZoom 26s ease-in-out infinite alternate; }
@keyframes hallZoom { from { transform: scale(1); } to { transform: scale(1.045); } }
.hall__scene, .hall__img, .hall__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hall__img { object-fit: cover; }
.hall__fx { overflow: visible; pointer-events: none; }
/* внизу картинка плавно уходит в фон страницы — там вывеска */
.hall::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 34%;
    z-index: 1;
    pointer-events: none;
}
:root[data-theme="hell"] .hall::after { background: linear-gradient(0deg, rgba(14, 2, 6, .92), rgba(14, 2, 6, .55) 45%, transparent); }
:root[data-theme="heaven"] .hall::after { background: linear-gradient(0deg, rgba(246, 249, 255, .9), rgba(246, 249, 255, .5) 45%, transparent); }

.hall__title {
    position: absolute;
    left: 50%;
    bottom: 3.2cqw;
    z-index: 2;
    margin: 0;
    transform: translateX(-50%);
    font-family: var(--serif);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(22px, 4.4cqw, 64px);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: .02em;
}
:root[data-theme="hell"] .hall__title { color: #ffe6da; text-shadow: 0 0 6px #ff3a1a, 0 0 22px rgba(255, 30, 0, .9), 0 3px 0 #3a0006; animation: neon 5s steps(1) infinite; }
:root[data-theme="heaven"] .hall__title { color: #6a4a0a; text-shadow: 0 0 10px #fff, 0 0 24px #fff6d0, 0 1px 0 #fff; }
@keyframes neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }

/* живые детали (includes/cinema_hall.php): каждая — отдельный элемент, анимируется целиком
   через transform / opacity — это делает видеокарта, шапка не перерисовывается каждый кадр.
   Размеры в cqw: 1cqw = 1/100 ширины .hall = 20 px картинки 2000×770 */
.ch { position: absolute; display: block; aspect-ratio: 1; pointer-events: none; }
.ch-screen { mix-blend-mode: soft-light; opacity: .22; animation: chScreen 3.4s steps(1) infinite; }
.ch-screen--cool { mix-blend-mode: screen; opacity: .1; animation-name: chScreenCool; }
.ch-spill { mix-blend-mode: screen; opacity: .22; animation: chSpill 4.2s ease-in-out infinite; }
@keyframes chScreen { 0%, 100% { opacity: .2; } 9% { opacity: .32; } 11% { opacity: .16; } 40% { opacity: .26; } 42% { opacity: .18; } 71% { opacity: .3; } 73% { opacity: .2; } }
@keyframes chScreenCool { 0%, 100% { opacity: .08; } 30% { opacity: .16; } 32% { opacity: .06; } 64% { opacity: .14; } 66% { opacity: .08; } }
@keyframes chSpill { 0%, 100% { opacity: .16; } 50% { opacity: .3; } }
/* свечи, лампочки гирлянды, фонари — круги с радиальным свечением */
.ch-candle, .ch-lamp, .ch-bulb { mix-blend-mode: screen; }
.ch-candle { background: radial-gradient(closest-side, #fff2c4, rgba(255, 176, 74, .85) 25%, rgba(255, 58, 10, 0)); animation: chCandle 1.7s ease-in-out infinite; }
.ch-bulb { background: radial-gradient(closest-side, #fffbe6, rgba(255, 194, 74, .7) 40%, rgba(255, 122, 26, 0)); animation: chBulb 2s linear infinite; }
.ch-lamp { background: radial-gradient(closest-side, #ffffff, rgba(255, 240, 184, .8) 30%, rgba(255, 215, 106, 0)); animation: chLamp 3.6s ease-in-out infinite; }
@keyframes chCandle { 0%, 100% { opacity: .55; transform: scale(.92); } 25% { opacity: .85; transform: scale(1.06); } 50% { opacity: .62; transform: scale(.96); } 75% { opacity: .9; transform: scale(1.1); } }
@keyframes chLamp { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: .9; transform: scale(1.08); } }
@keyframes chBulb { 0%, 100% { opacity: .25; } 10% { opacity: 1; } 30% { opacity: .35; } }
.ch-ray { mix-blend-mode: screen; opacity: .25; animation: chRay 7s ease-in-out infinite; }
@keyframes chRay { 0%, 100% { opacity: .12; } 50% { opacity: .38; } }
.ch-spark { overflow: visible; opacity: 0; animation: chSpark 2.8s ease-in-out infinite; }
@keyframes chSpark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(30deg); } 60% { opacity: .2; transform: scale(.5) rotate(45deg); } }
/* летящие детали: попкорн, искры, пыль. Путь — свои @keyframes у каждой (cinema_hall.php,
   ch_mover), --w — размер; деталь стоит центром в точке пути */
.ch-move { left: 0; top: 0; width: var(--w); margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2); }
.ch-kernel { display: block; width: 100%; height: 100%; overflow: visible; animation: chSpin 2s linear infinite; }
@keyframes chSpin { to { transform: rotate(360deg); } }
.ch-ember, .ch-dust { mix-blend-mode: screen; }
.ch-ember { background: radial-gradient(closest-side, #fff0c0, #ff7a2a 50%, rgba(255, 42, 0, 0)); }
.ch-dust { background: radial-gradient(closest-side, #ffffff, #ffe9a0 50%, rgba(255, 210, 94, 0)); }
.is-lite :is(.ch-ember, .ch-dust, .ch-ray, .ch-spill) { display: none; }
.is-lite .hall__zoom { animation: none; }
.is-min :is(.ch-pop, .ch-spark, .ch-bulb) { display: none; }
@media (prefers-reduced-motion: reduce) { .hall :is(.ch-pop, .ch-ember, .ch-dust) { display: none; } }

.cinema__lead { margin: 12px auto 4px; text-shadow: 0 1px 10px var(--bg); max-width: 70ch; text-align: center; color: var(--text-soft); font-size: clamp(15px, 1.4vw, 17px); }
.cinema__lead b { color: var(--text); }

/* ---------- 2. Поиск и фильтры ---------- */
.controls {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr minmax(340px, 430px);
    align-items: center;
    gap: 12px 16px;
    padding: 12px 0;
}
.controls::before {
    content: "";
    position: absolute;
    inset: 0 calc(-1 * clamp(16px, 3vw, 40px));
    z-index: -1;
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    mask-image: linear-gradient(180deg, #000 70%, transparent);
}
:root[data-theme="hell"] .controls::before { background: rgba(10, 2, 5, .55); }
:root[data-theme="heaven"] .controls::before { background: rgba(240, 245, 255, .55); }
.controls .chips { justify-content: center; }
.controls__sort select { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

.cinema__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 4px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px dashed var(--line);
    background: var(--ghost-bg);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    font-size: 14px;
    color: var(--text-soft);
}
.cinema__note .ico { font-size: 20px; color: #26a5e4; flex-shrink: 0; }
.cinema__note a, .film__note a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.cinema__found { margin: 14px 0 6px; font-size: 14px; color: var(--text-faint); }

/* ---------- 3. Полки (вкладка «Всё») ---------- */
.shelves { display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 26px); }
/* полки и сетка лежат на полупрозрачной подложке — так подписи читаются на любом фоне */
.shelf, .posters {
    padding: clamp(12px, 1.6vw, 20px);
    border-radius: calc(var(--panel-radius) * 1.4);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}
.is-lite :is(.shelf, .posters, .cinema__note) { -webkit-backdrop-filter: none; backdrop-filter: none; }
.shelf[hidden], .shelves[hidden], .posters[hidden] { display: none; }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.shelf__title { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; }
.shelf__n { font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--text-faint); margin-left: 4px; }
.shelf__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--ghost-border);
    background: var(--ghost-bg);
    color: var(--text);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s ease, box-shadow .25s ease, transform .3s var(--ease-out);
}
.shelf__all .ico { font-size: 13px; }
.shelf__all:hover { border-color: var(--accent-hot); box-shadow: 0 0 20px -6px var(--accent); transform: translateX(2px); }
.shelf__viewport { position: relative; }
.shelf__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(140px, 13vw, 182px);
    gap: clamp(12px, 1.4vw, 20px);
    overflow-x: auto;
    padding: 8px 2px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.shelf__track > * { scroll-snap-align: start; }
.shelf__arrow {
    position: absolute;
    top: calc(50% - 40px);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--ghost-border);
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
    transition: transform .25s var(--ease-out), border-color .2s ease;
}
.shelf__arrow[hidden] { display: none; }
.shelf__arrow--prev { left: -8px; }
.shelf__arrow--next { right: -8px; }
.shelf__arrow--next .ico { transform: scaleX(-1); }
.shelf__arrow:hover { border-color: var(--accent-hot); transform: scale(1.08); }
/* плитка «Показать все» в конце полки */
.shelf__more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    border: 1px dashed var(--ghost-border);
    background: var(--ghost-bg);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, transform .3s var(--ease-out);
}
.shelf__more b { font-family: var(--serif); font-size: 34px; color: var(--accent-hot); }
.shelf__more:hover { border-color: var(--accent-hot); transform: translateY(-4px); }

/* ---------- 4. Афиши ---------- */
.posters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(168px, 44vw), 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}
.poster {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    cursor: pointer;
    animation: posterIn .5s var(--ease-out) both;
    animation-delay: calc(var(--n, 0) * 18ms);
}
@keyframes posterIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.poster__img {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
:root[data-theme="hell"] .poster__img { box-shadow: 0 0 0 1px rgba(255, 90, 40, .28), 0 16px 30px -18px #000; }
:root[data-theme="heaven"] .poster__img { box-shadow: 0 0 0 1px rgba(214, 170, 74, .55), 0 16px 30px -18px rgba(70, 90, 160, .5); }
.poster__open {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.poster__open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .4s ease; }
.poster:hover .poster__img { transform: translateY(-6px) rotate(-.6deg); }
:root[data-theme="hell"] .poster:hover .poster__img { box-shadow: 0 0 0 1.5px #ff3b52, 0 0 34px -4px rgba(255, 0, 40, .8), 0 24px 40px -18px #000; }
:root[data-theme="heaven"] .poster:hover .poster__img { box-shadow: 0 0 0 1.5px #e2b54c, 0 0 34px rgba(255, 236, 170, .95), 0 24px 40px -18px rgba(70, 90, 160, .5); }
.poster:hover .poster__open img { transform: scale(1.05); }
:root[data-theme="hell"] .poster:hover .poster__open img { filter: saturate(1.2) contrast(1.05); }
/* затемнение снизу, чтобы кнопка «Запись» читалась на любой обложке */
.poster__img::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 34%;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent);
    pointer-events: none;
}

.poster__ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 14px;
    text-align: center;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.1;
}
:root[data-theme="hell"] .poster__ph { background: radial-gradient(circle at 50% 30%, #4a0a0c, #12030a); color: #ffcf9c; }
:root[data-theme="heaven"] .poster__ph { background: radial-gradient(circle at 50% 30%, #ffffff, #e6d6ad); color: #6a4a0a; }

.poster__rate {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: rgba(0, 0, 0, .7);
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
}
.poster__rate.is-top { background: linear-gradient(135deg, #f1cf6c, #c4922a); color: #2a1a00; }
.poster__rate.is-low { background: rgba(160, 20, 20, .85); }
.poster__cat {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, .6);
    pointer-events: none;
}
/* кнопка «Запись» — прямо на обложке */
.poster__rec {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--btn-text);
    background: var(--btn-bg);
    box-shadow: var(--btn-glow);
    transform: translateY(4px);
    opacity: .92;
    transition: transform .3s var(--ease-out), opacity .2s ease, filter .2s ease;
}
button.poster__rec { border: 0; font-family: inherit; cursor: pointer; }
.poster__rec .ico { font-size: 12px; }
.poster:hover .poster__rec { transform: none; opacity: 1; }
.poster__rec:hover { filter: brightness(1.12); }
:root[data-theme="heaven"] .poster__rec { border-radius: 999px; }

.poster__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 2px 0; min-width: 0; }
.poster__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.poster__meta { font-size: 12.5px; color: var(--text-faint); }

.cinema__foot { margin-top: 40px; text-align: center; font-size: 13px; color: var(--text-faint); }
.cinema__foot a { color: var(--link); }

/* ---------- 5. Карточка фильма ---------- */
.modal--film .modal__dialog {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    gap: clamp(18px, 3vw, 34px);
    align-items: start;
}
.film__poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-2);
}
:root[data-theme="hell"] .film__poster { box-shadow: 0 0 0 1px rgba(255, 90, 40, .35), 0 0 40px -8px rgba(255, 0, 40, .6), 0 24px 50px -20px #000; }
:root[data-theme="heaven"] .film__poster { box-shadow: 0 0 0 1px rgba(214, 170, 74, .6), 0 0 40px rgba(255, 236, 170, .9), 0 24px 50px -20px rgba(70, 90, 160, .5); }
.film__poster img { width: 100%; height: 100%; object-fit: cover; }
.film__poster::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30%;
    background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent);
    pointer-events: none;
}
.poster__rec--big { left: 12px; right: 12px; bottom: 12px; height: 44px; font-size: 15px; transform: none; opacity: 1; }
.poster__rec--big .ico { font-size: 14px; }

.film__main { min-width: 0; padding-right: 30px; }
.film__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hot); }
:root[data-theme="heaven"] .film__kicker { color: var(--accent); }
.film__title {
    margin: 4px 0 8px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.02;
}
.film__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--text-soft); font-size: 14px; }
.film__tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.film__tag { padding: 2px 10px; border-radius: 999px; background: var(--chip-bg); color: var(--text); font-size: 12.5px; font-weight: 600; }
.film__dir { width: 100%; font-size: 13.5px; color: var(--text-faint); }

.film__score { display: flex; align-items: center; gap: 14px; margin: 16px 0 12px; }
.film__ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.film__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.film__ring-bg { fill: none; stroke: var(--line); stroke-width: 6; }
.film__ring-val { fill: none; stroke-width: 6; stroke-linecap: round; animation: ringIn 1s var(--ease-out); }
@keyframes ringIn { from { stroke-dasharray: 0 200; } }
.film__ring.is-top .film__ring-val { stroke: #e9b949; filter: drop-shadow(0 0 4px rgba(233, 185, 73, .8)); }
.film__ring.is-mid .film__ring-val { stroke: #ff8a3a; }
.film__ring.is-low .film__ring-val { stroke: #e0193a; }
.film__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; font-variant-numeric: tabular-nums; }
.film__score-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--text-soft); }
.film__score-text b { color: var(--text); }
.film__stars { font-size: 18px; letter-spacing: 2px; }
.film__star {
    background: linear-gradient(90deg, #f1c75a var(--f), var(--line) var(--f));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.film__noscore { color: var(--text-faint); font-size: 14px; }

.film__about { margin-bottom: 8px; color: var(--text-soft); font-style: italic; font-size: 14.5px; }
.film__desc { font-size: 15.5px; line-height: 1.6; }
.film__desc p + p { margin-top: 10px; }
.film__desc.is-loading span {
    display: block;
    height: 13px;
    margin: 10px 0;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line) 30%, transparent), var(--line));
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}
.film__desc.is-loading span:nth-child(2) { width: 92%; }
.film__desc.is-loading span:nth-child(3) { width: 96%; }
.film__desc.is-loading span:nth-child(4) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.film__src { margin-top: 8px; font-size: 12.5px; color: var(--text-faint); }
.film__src a { color: var(--link); }
.film__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.film__actions .ico { font-size: 15px; }
.film__note { margin-top: 10px; font-size: 13px; color: var(--text-faint); }

/* у сериалов — записи всех стримов по сезонам (этап 8) */
.film__recs { margin-top: 22px; }
.film__recs[hidden] { display: none; }
.modal__h small { font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--text-faint); }

/* записи стримов: разделы (прохождения, сезоны) и кнопки — у игр и у сериалов */
.recs__group + .recs__group { margin-top: 18px; }
.recs__title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
.recs__title small { font-weight: 500; color: var(--text-faint); }
.recs__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
    gap: 8px;
}
.rec {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--ghost-bg);
    color: var(--text);
    transition: border-color .2s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}
.rec:hover, .rec:focus-visible { border-color: var(--accent-hot); transform: translateY(-2px); box-shadow: 0 10px 26px -14px var(--accent); outline: none; }
.rec__play {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--btn-text);
    background: var(--btn-bg);
    font-size: 12px;
    transition: box-shadow .3s ease;
}
:root[data-theme="heaven"] .rec__play { border-radius: 50%; }
.rec:hover .rec__play { box-shadow: var(--btn-glow); }
.rec__text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rec__text b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec__text small { font-size: 12px; color: var(--text-faint); }
.rec.is-last { border-color: color-mix(in srgb, var(--accent-hot) 60%, var(--line)); }
/* запись есть на YouTube (с 11.10.2026): справа — кнопка со знаком YouTube (.ytbtn — base.css) */
.rec-w { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.rec__yt { height: auto; align-self: stretch; padding: 0 11px; }
:root[data-theme] .rec__yt { border-radius: 12px; }
.recs__empty { padding: 14px; border-radius: 12px; border: 1px dashed var(--line); color: var(--text-soft); font-size: 14px; }


/* ---------- 6. Режим редактирования ---------- */
.controls__right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.controls__right .controls__sort { flex: 1; min-width: 0; }
.editbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--ghost-border);
    background: var(--ghost-bg);
    color: var(--text-soft);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, box-shadow .25s ease, background .25s ease;
}
.editbtn .ico { font-size: 16px; }
.editbtn:hover { color: var(--text); border-color: var(--accent-hot); box-shadow: 0 0 20px -6px var(--accent); }
.editbtn[aria-pressed="true"] { color: var(--btn-text); background: var(--btn-bg); border-color: transparent; box-shadow: var(--btn-glow); }

.editbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 4px 0 8px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1.5px dashed var(--accent-hot);
    background: var(--panel-bg);
    box-shadow: 0 0 24px -8px var(--accent);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}
.editbar[hidden] { display: none; }
.editbar__text { flex: 1 1 360px; font-size: 14px; color: var(--text-soft); }
.editbar__text b { color: var(--text); }

/* переключатель «Плеер для фильмов, сериалов, мультфильмов и аниме» (8.10.2026) */
.editbar__player { flex: 1 1 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.editbar__hint { flex: 1 1 280px; font-size: 13px; color: var(--text-faint); }
.editswitch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 2px;
    border: 0;
    background: none;
    color: var(--text-soft);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.editswitch b { color: var(--text); }
.editswitch:disabled { opacity: .6; cursor: progress; }
.editswitch__track {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    border-radius: 99px;
    border: 1px solid var(--ghost-border);
    background: var(--ghost-bg);
    transition: background .25s ease, border-color .25s ease;
}
.editswitch__knob {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-soft);
    transition: transform .25s ease, background .25s ease;
}
.editswitch[aria-checked="true"] .editswitch__track { background: var(--btn-bg); border-color: transparent; box-shadow: var(--btn-glow); }
.editswitch[aria-checked="true"] .editswitch__knob { transform: translateX(20px); background: var(--btn-text); }
.editswitch:focus-visible .editswitch__track { outline: 2px solid var(--accent-hot); outline-offset: 2px; }

/* инструменты на афише — только в режиме редактирования */
.poster__tools { position: absolute; right: 6px; top: 34px; z-index: 3; display: none; flex-direction: column; gap: 6px; }
.is-editing .poster__tools { display: flex; }
.poster__tool {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    transition: transform .2s var(--ease-out), background .2s ease;
}
.poster__tool:hover { transform: scale(1.1); }
.poster__tool--edit:hover { background: var(--accent); }
.poster__tool--del:hover { background: #c01530; }
.poster__tool--back:hover { background: #2a8a4a; }
.poster__flag {
    position: absolute;
    left: 8px;
    bottom: 50px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(120, 120, 120, .85);
    display: none;
}
.is-editing .poster__flag { display: block; }
.poster__flag--own { background: rgba(40, 140, 80, .9); }
.is-editing .poster.is-hidden .poster__img { filter: grayscale(.9) brightness(.6); }
.poster.is-flash .poster__img { animation: posterFlash 1.4s ease-out; }
@keyframes posterFlash { 0%, 30% { box-shadow: 0 0 0 3px var(--accent-hot), 0 0 40px var(--accent); transform: translateY(-6px) scale(1.04); } 100% { transform: none; } }

/* форма фильма */
.modal--edit .modal__dialog {
    width: min(860px, 100%);
    display: grid;
    grid-template-columns: minmax(150px, 210px) 1fr;
    gap: clamp(16px, 2.6vw, 30px);
    align-items: start;
}
.edit__poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: 0 0 0 1px var(--panel-border), 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.edit__poster img { width: 100%; height: 100%; object-fit: cover; }
.edit__poster .poster__ph { font-size: 15px; }
.edit__main { min-width: 0; padding-right: 30px; display: flex; flex-direction: column; gap: 12px; }
.edit__title { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; }
.edit__lead { margin-top: -6px; font-size: 14px; color: var(--text-soft); }
.edit__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.edit__field { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.edit__field i { color: var(--accent-hot); font-style: normal; }
.edit__field :is(input, select, textarea), .pass__input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--input-bg, var(--ghost-bg));
    color: var(--text);
    font: inherit;
    font-weight: 500;
    font-size: 15px;
}
.edit__field textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.edit__field small { font-size: 12px; font-weight: 400; }
.edit__field :is(input, select, textarea):focus, .pass__input:focus { outline: none; border-color: var(--accent-hot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.edit__field select option { color: #111; }
.edit__more { font-size: 13.5px; color: var(--text-soft); }
.edit__more summary { cursor: pointer; font-weight: 600; }
.edit__more[open] summary { margin-bottom: 10px; }
.edit__more .edit__field + .edit__field { margin-top: 10px; }
.edit__error { padding: 8px 12px; border-radius: 10px; background: rgba(200, 20, 40, .15); color: #ff8a96; font-size: 14px; font-weight: 600; }
:root[data-theme="heaven"] .edit__error { color: #b0102a; }
.edit__error[hidden] { display: none; }
.edit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.edit__del { margin-left: auto; }
.edit__del[hidden] { display: none; }
.edit__del:hover { border-color: #e0193a; }

/* подсказки по названию */
.edit__suggest {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    z-index: 5;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    background: var(--surface);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.edit__suggest[hidden] { display: none; }
.edit__opt {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--text);
    text-align: left;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.edit__opt span { color: var(--text-faint); font-weight: 500; }
.edit__opt small { display: block; color: var(--text-faint); font-size: 12px; font-weight: 400; }
.edit__opt em { margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(40, 140, 80, .85); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; }
.edit__link { margin-left: 4px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.edit__opt:hover, .edit__opt:focus-visible { background: var(--chip-bg); outline: none; }
.edit__hint { padding: 8px 10px; color: var(--text-faint); font-size: 13.5px; font-weight: 500; }

/* пароль */
.modal--pass .modal__dialog { width: min(400px, 100%); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.pass__title { font-family: var(--serif); font-weight: 700; font-size: 30px; }
.pass__lead { font-size: 14px; color: var(--text-soft); }

/* ---------- 7. «Что посмотреть?» и «Итоги кино» (с 15.10.2026; cinema.js, раздел 6) ---------- */
.cinema__tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0 4px; }
.cinema__tools .ico { margin-right: 6px; font-size: 17px; }

.modal--pick .modal__dialog { width: min(760px, 100%); }
.pick__title, .cstats__title { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 4vh, 38px); line-height: 1.05; padding-right: 44px; }
.pick__lead { margin: 6px 0 14px; color: var(--text-soft); font-size: 14.5px; max-width: 60ch; }
.pick__filters { display: grid; gap: 8px; }
.pick__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pick__chips .chip { height: 32px; padding: 0 12px; font-size: 13px; }
.pick__chips .chip:disabled { opacity: .45; cursor: default; }
.pick__good { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-soft); cursor: pointer; }
.pick__good input { width: 17px; height: 17px; accent-color: var(--accent); }
.pick__stage {
    display: grid;
    place-items: center;
    min-height: 250px;
    margin: 16px 0 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--ghost-bg);
}
.pick__hint, .pick__empty { max-width: 40ch; text-align: center; color: var(--text-faint); font-size: 14px; }
/* барабан: название мелькает (только opacity и transform — их ведёт видеокарта) */
.pick__reel { overflow: hidden; width: 100%; text-align: center; }
.pick__reel-t {
    display: block;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: pickReel .12s ease-out;
}
@keyframes pickReel { from { opacity: 0; transform: translateY(-40%); } }
.pick__card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; width: 100%; animation: pickIn .45s var(--ease-out); }
@keyframes pickIn { from { opacity: 0; transform: scale(.94); } }
.pick__poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.pick__poster img { width: 100%; height: 100%; object-fit: cover; }
:root[data-theme="hell"] .pick__poster { box-shadow: 0 0 0 1px rgba(255, 90, 40, .35), 0 0 30px -8px rgba(255, 0, 40, .6); }
:root[data-theme="heaven"] .pick__poster { box-shadow: 0 0 0 1px rgba(214, 170, 74, .6), 0 0 30px rgba(255, 236, 170, .9); }
.pick__info { min-width: 0; }
.pick__kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hot); }
:root[data-theme="heaven"] .pick__kicker { color: var(--accent); }
.pick__name { margin: 4px 0 8px; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.05; overflow-wrap: anywhere; }
.pick__rate { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.pick__rate .ico { color: var(--gold); }
.pick__rate small { font-weight: 500; color: var(--text-faint); }
.pick__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pick__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pick__btns .ico { margin-right: 6px; font-size: 13px; }
.pick__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pick__actions .ico { margin-right: 6px; font-size: 18px; }
.pick__n { font-size: 13.5px; color: var(--text-faint); }

/* итоги кино: числа, полоски одного цвета (как в «Рекордах»), списки */
.modal--cstats .modal__dialog { width: min(980px, 100%); }
.cstats__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 8px; }
.cstats__tiles > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ghost-bg); }
.cstats__tiles dd { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cstats__tiles dt { margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: var(--text-faint); }
.cstats__cats { margin-bottom: 18px; font-size: 14px; color: var(--text-soft); }
.cstats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.cstats__box { min-width: 0; }
.cstats__h2 { margin-top: 18px; }
.cstats__foot { margin-top: 8px; font-size: 12.5px; color: var(--text-faint); }
.cstats__note { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-faint); }
.cstats__link { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cbars { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; }
.cbars__i {
    display: grid;
    grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 3em;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 3px 4px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 13.5px;
    text-align: left;
}
button.cbars__i { cursor: pointer; }
button.cbars__i:hover, button.cbars__i:focus-visible { background: var(--chip-bg); outline: none; }
button.cbars__i:hover .cbars__bar i, button.cbars__i:focus-visible .cbars__bar i { background: var(--ch-hot); }
.cbars__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); }
.cbars__bar { height: 12px; }
.cbars__bar i { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--ch-mark); transition: background .15s ease; }
.cbars__n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cstats__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: cs; }
.cstats__list li { counter-increment: cs; }
.cstats__list button {
    display: grid;
    grid-template-columns: 1.6em minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    padding: 6px 6px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.cstats__list button::before { content: counter(cs); font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cstats__list b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cstats__list small { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.cstats__list button:hover, .cstats__list button:focus-visible { background: var(--chip-bg); outline: none; }
.cstats__list button:hover b { color: var(--accent-hot); }
@media (prefers-reduced-motion: reduce) { .pick__card, .pick__reel-t { animation: none; } }

@media (max-width: 1000px) {
    .controls { grid-template-columns: 1fr minmax(220px, auto); }
    .controls .chips { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (max-width: 700px) {
    .modal--film .modal__dialog, .modal--edit .modal__dialog { grid-template-columns: 1fr; }
    .edit__side { width: min(160px, 50%); margin: 0 auto; }
    .edit__main { padding-right: 0; }
    .edit__row { grid-template-columns: 1fr 1fr; }
    .film__side { width: min(240px, 70%); margin: 0 auto; }
    .film__main { padding-right: 0; }
    .shelf__arrow { display: none; }
    .cstats__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cstats__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    /* фильтры — каждый ряд одной полосой, листается пальцем (иначе жанры занимают пол-экрана) */
    .pick__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 2px 4px; scrollbar-width: none; }
    .pick__chips::-webkit-scrollbar { display: none; }
    .pick__chips .chip { flex-shrink: 0; }
    .pick__card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
    .pick__stage { min-height: 200px; padding: 12px; }
}
@media (max-width: 600px) {
    .controls { grid-template-columns: 1fr; position: static; }
    /* строка поиска здесь не липнет — подложка ей не нужна; раньше она (inset шире строки, а строка без position)
       вылезала за край экрана: кинотеатр, игры и «Летопись» на телефоне были шире экрана на 16 px (15.10.2026) */
    .controls::before { display: none; }
    /* виды, категории, метки — одной полосой, листается пальцем от края до края экрана (было 2–4 ряда) */
    .controls .chips {
        grid-row: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-inline: calc(-1 * clamp(16px, 3vw, 40px));
        padding: 2px clamp(16px, 3vw, 40px);
        scroll-padding-inline: clamp(16px, 3vw, 40px);
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }
    .controls .chips::-webkit-scrollbar { display: none; }
    .controls .chips > * { flex-shrink: 0; }
    .chip { height: 36px; padding: 0 12px; }
    .hall { border-radius: 14px; }
}

/* ==========================================================================
   Тема «Сакура» — 1 в 1 по макету 4_кинотеатр_ночь.png (с 30.10.2026). Строка поиска и фильтров (.controls)
   общая с играми и «Летописью»: одна панель во всю ширину — поиск, категории, сортировка справа.
   Полки — без подложки, по 9 обложек в ряд; на обложке — оценка и «▶ Запись», под ней название и год
   ========================================================================== */
.cinema { width: 100%; padding: 0 clamp(16px, 3vw, 48px) 60px; }
.cinema > .pagehero { padding: clamp(26px, 5.4vh, 46px) 0 clamp(16px, 2.2vh, 18px); }
.pagehero::before { display: none; }
.pagehero__t { font-size: clamp(32px, 3.6vw, 58px); margin: 10px 0 12px; }
.pagehero__acts .btn { height: 52px; padding: 0 26px; }
.cinema__lead { margin: 0; text-align: left; text-shadow: none; }

.controls {
    top: 10px;
    grid-template-columns: minmax(200px, 330px) minmax(0, 1fr) auto;
    gap: 12px;
    margin: 0 0 26px;
    padding: 8px;
    border-radius: 18px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
            backdrop-filter: blur(14px) saturate(1.3);
}
.is-lite .controls { -webkit-backdrop-filter: none; backdrop-filter: none; }
.controls::before { display: none; }
.controls .chips { justify-content: flex-start; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.controls .chips::-webkit-scrollbar { display: none; }
.controls .chip { flex-shrink: 0; height: 40px; }
.controls__search .ico { display: none; }
.controls__search input { height: 44px; padding-left: 20px; border: 0; background: color-mix(in srgb, var(--text) 5%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; font-weight: 500; }
.controls__right { justify-content: flex-end; gap: 6px; }
.controls__right .controls__sort { flex: none; }
.controls__sort select {
    height: 44px;
    padding: 0 30px 0 14px;
    border: 0;
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-weight: 700;
    color: var(--text);
    background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
    background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
    background-size: 5px 5px;
}
.controls__sort select:hover { background-color: color-mix(in srgb, var(--text) 6%, transparent); }
/* «Редактировать» — маленький карандаш (подпись — подсказкой) */
.editbtn { width: 40px; height: 40px; padding: 0; justify-content: center; border-color: transparent; background: none; }
.editbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.editbtn[aria-pressed="true"] { width: auto; padding: 0 14px; background: var(--btn-bg); color: #fff; }
.editbtn[aria-pressed="true"] span { position: static; width: auto; height: auto; clip: auto; }

.cinema__note { margin: 34px 0 0; border-style: solid; border-color: var(--panel-border); background: var(--panel-bg); font-size: 13px; }
.cinema__found { margin: 0 0 14px; }

.shelves { gap: 30px; }
.shelf, .posters { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.shelf__head { align-items: center; margin-bottom: 12px; }
.shelf__title { font: 800 22px/1.2 var(--display); letter-spacing: -.01em; }
:root[data-theme="hell"] .shelf__title { text-shadow: 0 2px 14px rgba(10, 6, 24, .6); }
.shelf__n { font: 600 13px/1 var(--ui); margin-left: 6px; }
.shelf__all { height: auto; padding: 4px 0; border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 13px; }
.shelf__all:hover { box-shadow: none; transform: translateX(3px); }
.shelf__track { grid-auto-columns: clamp(132px, calc((100% - 8 * 16px) / 9), 200px); gap: 16px; padding: 4px 0 6px; scrollbar-width: none; }
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__arrow { top: calc(50% - 46px); width: 42px; height: 42px; }
.shelf__arrow--prev { left: -14px; }
.shelf__arrow--next { right: -14px; }
.shelf__more { border-radius: 14px; }
.shelf__more b { font-family: var(--display); font-size: 28px; color: var(--accent); }
.posters { grid-template-columns: repeat(auto-fill, minmax(min(150px, 44vw), 1fr)); gap: 22px 16px; }

.poster__img { border-radius: 14px; }
:root[data-theme="hell"] .poster__img { box-shadow: 0 0 0 1px rgba(255, 170, 200, .1), 0 16px 30px -18px #000; }
:root[data-theme="heaven"] .poster__img { box-shadow: 0 16px 30px -18px rgba(120, 40, 70, .6); }
.poster:hover .poster__img { transform: translateY(-5px); }
:root[data-theme="hell"] .poster:hover .poster__img { box-shadow: 0 0 0 1.5px rgba(255, 111, 145, .8), 0 18px 36px -14px rgba(255, 90, 140, .55); }
:root[data-theme="heaven"] .poster:hover .poster__img { box-shadow: 0 0 0 1.5px rgba(236, 63, 104, .7), 0 18px 36px -14px rgba(236, 63, 104, .45); }
:root[data-theme="hell"] .poster:hover .poster__open img { filter: none; }
.poster__img::after { height: 28%; background: linear-gradient(0deg, rgba(0, 0, 0, .5), transparent); }
.poster__cat { display: none; }
.poster__rate, .poster__rate.is-top, .poster__rate.is-low { left: 8px; top: 8px; padding: 3px 7px; border-radius: 7px; font-size: 12px; background: rgba(20, 14, 34, .78); color: #fff; }
.poster__rec, :root[data-theme="heaven"] .poster__rec { left: 8px; right: 8px; bottom: 8px; height: 28px; border-radius: 8px; font-size: 12.5px; font-weight: 800; transform: none; opacity: 1; }
.poster__rec .ico { font-size: 10px; }
.poster__body { padding: 10px 0 0; gap: 3px; }
.poster__title { font-size: 14px; font-weight: 700; -webkit-line-clamp: 1; line-clamp: 1; white-space: normal; }
:root[data-theme="hell"] .poster__title { text-shadow: 0 1px 8px rgba(10, 6, 24, .7); }
.poster__meta { font-size: 12px; }
.ph-ph { display: none; }

@media (max-width: 900px) {
    .controls { grid-template-columns: minmax(0, 1fr) auto; }
    .controls .chips { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
    .controls { position: relative; top: 0; }
    .shelf__track { grid-auto-columns: 128px; gap: 12px; }
}.cinema__found:empty { display: none; }
