/* =========================================================
   NOIR — кинотеатр нового поколения
   ========================================================= */

:root {
  --bg: #09090b;
  --bg-2: #0f0f12;
  --elev: #141418;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4efe6;
  --muted: rgba(244, 239, 230, .6);
  --faint: rgba(244, 239, 230, .34);
  --accent: #f5b54a;
  --accent-2: #ff7a45;
  --accent-hi: #ffd58a;
  --accent-ink: #1c1306;
  --glass: rgba(16, 16, 20, .58);
  --glass-strong: rgba(14, 14, 18, .82);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .07);
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, .75);
  --shadow-soft: 0 20px 50px -24px rgba(0, 0, 0, .6);
  --tint: 245 181 74;
  --good: #7fd8a4;
  --mid: #f5c84a;
  --bad: #ff7f6e;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.32, .72, 0, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font: 'Manrope', system-ui, sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  /* iPhone: строка состояния и «островок» камеры сверху, вырез сбоку (экран боком), полоска «домой» снизу.
     Сайт рисуется на весь экран (viewport-fit=cover), поэтому от них отступаем сами */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sax: calc(env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px));
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3efe7;
  --bg-2: #ebe6dc;
  --elev: #fffdf8;
  --surface: rgba(30, 22, 10, .035);
  --surface-2: rgba(30, 22, 10, .06);
  --line: rgba(30, 22, 10, .085);
  --line-2: rgba(30, 22, 10, .16);
  --text: #17130e;
  --muted: rgba(23, 19, 14, .62);
  --faint: rgba(23, 19, 14, .38);
  --accent: #cf7d0c;
  --accent-2: #e2552a;
  --accent-hi: #e9a23b;
  --accent-ink: #fffaf0;
  --glass: rgba(255, 252, 245, .62);
  --glass-strong: rgba(250, 247, 240, .9);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .8);
  --shadow: 0 40px 80px -36px rgba(60, 40, 10, .35);
  --shadow-soft: 0 20px 50px -28px rgba(60, 40, 10, .3);
  --good: #1f9d5c;
  --mid: #c48a06;
  --bad: #d4452f;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Без серого прямоугольника при нажатии на iPhone (было видно на чипах «Аккаунт и вход» и других подписях-кнопках) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; -webkit-tap-highlight-color: transparent; }
/* Без приближения по двойному тапу на телефонах (мешало: тапаешь по плееру/кнопкам — страница увеличивается).
   Приближение двумя пальцами остаётся — оно нужно слабовидящим. manipulation наследуется не всеми браузерами — ставим на всё */
html, body, body * { touch-action: manipulation; }
a, label, [role="button"], input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease-out), color .6s var(--ease-out);
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
img.img-broken { visibility: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: var(--cur-hover); -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; padding: .1em .45em; border-radius: 6px; background: var(--surface-2); }

/* ПРАВИЛО «НЕ СПЛЮЩИВАТЬ». Круглые и квадратные значки, аватарки и кнопки-иконки стоят в строках рядом с текстом,
   и браузер ужимал их по ширине (овал вместо круга). Поэтому они никогда не сжимаются. Новый круглый элемент:
   задать width И height, flex: none (или класс с окончанием -ic / -ava), а если он внутри меню с общими правилами
   для кнопок — селектор не слабее их (иначе чужая height сделает овал). Проверка: аудит из ЗАМЕТКИ.md («сплющенные круги») */
.icon-btn, .ic-circle, [class$="-ic"], [class*="-ic "], [class$="-ava"], [class*="-ava "], .rm-act, .rc-mic, .fdk-face, .fdk-btn,
.room-members li img, .cz-room-avas img, .rv-who img, .fr-ava img, .live-dot { flex-shrink: 0; }

/* Полосы прокрутки. На компьютере у страницы и у любого блока с прокруткой — свои капсулы (js/scrollbars.js), системные спрятаны.
   Где капсулу не поставить (поля ввода, телефоны) — системная полоса, но в том же виде: тонкая золотая капсула с отступом от края */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-color: rgb(var(--tint) / .45) transparent; }
}
::-webkit-scrollbar { width: 9px; height: 9px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { min-height: 40px; border-radius: 99px; border: solid transparent; border-width: 2px 0 2px 3px; background: rgb(var(--tint) / .45) padding-box; } /* капсула у самого правого края */
::-webkit-scrollbar-thumb:hover { border-left-width: 1px; background: rgb(var(--tint) / .8) padding-box; }
::-webkit-scrollbar-button { display: none; }
html.sb-page-on { scrollbar-width: none; }
html.sb-page-on::-webkit-scrollbar { display: none; }
.sb-host { scrollbar-width: none !important; }
.sb-host::-webkit-scrollbar { display: none; }
.sb-thumb { position: absolute; top: 0; right: 1px; z-index: 5; width: 5px; border-radius: 99px; background: rgb(var(--tint) / .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .35s, width .2s, background .2s; will-change: transform; }
.sb-thumb.on { opacity: 1; pointer-events: auto; }
.sb-thumb:hover, .sb-thumb.drag { width: 8px; background: rgb(var(--tint) / .85); cursor: grab; }
.sb-thumb.drag { cursor: grabbing; }
/* Полоса страницы — вплотную к правому краю окна */
.sb-page { position: fixed; right: 0; z-index: 58; width: 6px; border-radius: 99px 0 0 99px; }
.sb-page:hover, .sb-page.drag { width: 10px; }
.container { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--pad-l) var(--pad-r); }
/* Приложение на iPhone: страница начинается под строкой состояния, а сама строка — тёмная полоса,
   чтобы часы и заряд читались в любой теме и текст не просвечивал под ними при прокрутке */
#view { padding-top: var(--sat); }
body::before { content: ''; position: fixed; inset: 0 0 auto; z-index: 61; height: var(--sat); background: #09090b; pointer-events: none; }
.muted { color: var(--muted); }

/* ---------- Загрузка ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: #09090b; color: #f4efe6; font: 600 14px/1 var(--font-display); letter-spacing: .5em;
  transition: opacity .9s var(--ease-out) .2s, visibility 0s 1.2s;
}
/* Экран загрузки (по макету владельца noir-loader.html): золотая N «дышит» и по ней пробегает блик,
   под ней «N O I R», тонкая полоса с бегущим светом и подпись «ЗАГРУЖАЕМ КИНО» */
.boot { gap: 0; }
.boot-emblem { position: relative; width: 132px; height: 132px; flex: none; animation: bootglow 2.2s ease-in-out infinite alternate; }
.boot-emblem img { width: 100%; height: 100%; display: block; }
.boot-shine { position: absolute; inset: 0; -webkit-mask: url(/icons/logo-n-big.webp) center / contain no-repeat; mask: url(/icons/logo-n-big.webp) center / contain no-repeat;
  background: linear-gradient(110deg, transparent 35%, #ffdc99 47%, #fff6df 50%, #ffdc99 53%, transparent 65%) 100% 0 / 350% 100%; mix-blend-mode: screen; animation: bootsweep 3.2s ease-in-out infinite; }
.boot-name { margin: 22px 0 22px .5em; font-size: 17px; letter-spacing: .5em; color: #ead9b7; }
.boot-track { display: block; width: 110px; height: 2px; background: #33291a; overflow: hidden; border-radius: 2px; }
.boot-track b { display: block; height: 100%; width: 42%; background: linear-gradient(90deg, transparent, #f3ce83, transparent); animation: bootprog 1.8s ease-in-out infinite; }
.boot-cap { margin-top: 16px; font: 600 10px/1 var(--font-body, sans-serif); letter-spacing: .3em; color: #877658; }
@keyframes bootglow { from { transform: scale(.96); filter: drop-shadow(0 0 0 rgb(var(--tint) / 0)); } to { transform: scale(1.02); filter: drop-shadow(0 0 18px rgb(var(--tint) / .45)); } }
@keyframes bootsweep { 0%, 15% { background-position: 100% 0; opacity: 0; } 25% { opacity: .85; } 65% { background-position: 0 0; opacity: .85; } 80%, 100% { background-position: 0 0; opacity: 0; } }
@keyframes bootprog { from { transform: translateX(-110%); } to { transform: translateX(350%); } }
@media (prefers-reduced-motion: reduce) { .boot-emblem, .boot-shine, .boot-track b { animation: none; } }
body.ready .boot { opacity: 0; visibility: hidden; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Фон: зерно, сферы, свечение ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
:root[data-theme="light"] .grain { opacity: .07; mix-blend-mode: multiply; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.o1 { width: 46vw; height: 46vw; left: -12vw; top: 30vh; background: radial-gradient(circle, rgb(var(--tint) / .35), transparent 65%); animation: drift1 26s var(--ease-io) infinite alternate; }
.o2 { width: 40vw; height: 40vw; right: -10vw; top: 90vh; background: radial-gradient(circle, rgba(255, 122, 69, .18), transparent 65%); animation: drift2 32s var(--ease-io) infinite alternate; }
.o3 { width: 34vw; height: 34vw; left: 40vw; top: 160vh; background: radial-gradient(circle, rgba(130, 110, 255, .12), transparent 65%); animation: drift1 38s var(--ease-io) infinite alternate-reverse; }
:root[data-theme="light"] .orb { opacity: .7; }
@keyframes drift1 { to { transform: translate(12vw, -14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, 10vh) scale(.9); } }

/* Курсор: жирная стрелка без «хвостика» в цветах кнопки «Подробнее» (градиент --accent), без тени.
   Над ссылками и кнопками — та же стрелка, чуть крупнее */
:root {
  --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f5b54a'/%3E%3Cstop offset='1' stop-color='%23f9a048'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 3 22.8 11.5 13.7 13.8 9.8 22.6Z' fill='url(%23g)' stroke='%23c47f1f' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto;
  --cur-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 28 28'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f5b54a'/%3E%3Cstop offset='1' stop-color='%23f9a048'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 3 22.8 11.5 13.7 13.8 9.8 22.6Z' fill='url(%23g)' stroke='%23c47f1f' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, pointer;
}
html { cursor: var(--cur); }
a, select, summary, label[for], [role="button"], [data-trailer], [data-fav] { cursor: var(--cur-hover); }

.topbar-progress {
  position: fixed; left: 0; top: var(--sat); z-index: 80; height: 2px; width: 100%; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; opacity: 0;
}
.topbar-progress.run { opacity: 1; animation: load 2.4s var(--ease-out) forwards; }
.topbar-progress.run.done { animation: none; transform: scaleX(1); opacity: 0; transition: transform .3s var(--ease-out), opacity .5s .3s; }
@keyframes load { to { transform: scaleX(.85); } }

/* ---------- Плавающий островок навигации ---------- */
.island {
  position: fixed; top: calc(var(--sat) + 18px); left: 50%; z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  /* Ширина — по содержимому, но не меньше заданной: так кнопки вошедшего пользователя
     (колокольчик, аватар) не вылезают за край при сужении шапки на прокрутке.
     Не помещается целиком — app.js включает компактный вид с бургером (body.nav-tight) */
  width: max-content; min-width: min(calc(100% - 32px - var(--sax)), 980px); max-width: calc(100% - 32px - var(--sax));
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--line);
  box-shadow: var(--hi), var(--shadow-soft);
  transform: translateX(-50%);
  transition: transform .7s var(--ease-smooth), min-width .7s var(--ease-smooth), background .6s, top .6s var(--ease-smooth);
}
body.scrolled .island { min-width: min(calc(100% - 32px - var(--sax)), 860px); top: calc(var(--sat) + 12px); }
body.nav-hidden .island { transform: translate(-50%, calc(-140% - var(--sat))); }

.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font-display); letter-spacing: .32em; margin-right: auto; }
/* Логотип — золотая N (icons/logo-n.png, прозрачный фон); при наведении — золотое свечение */
.logo-mark { width: 30px; height: 30px; flex: none; object-fit: contain; transition: filter .4s, transform .5s var(--ease-spring); }
.logo:hover .logo-mark { filter: drop-shadow(0 0 8px rgb(var(--tint) / .6)); transform: scale(1.06); }

.nav { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); }
.nav a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .4s var(--ease-out); display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--accent-ink); }
.nav-pill { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--accent); box-shadow: 0 6px 20px -6px rgb(var(--tint) / .7); transition: transform .6s var(--ease-smooth), width .6s var(--ease-smooth), opacity .3s; }
:root .nav-pill { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2))); }
.fav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; font-size: 11px; background: var(--accent-2); color: #fff; transform: scale(0); transition: transform .5s var(--ease-spring); }
.fav-count.on { transform: scale(1); }
.fav-count.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.45); } }

.island-actions { display: flex; align-items: center; gap: 6px; margin-left: 6px; }

.icon-btn {
  position: relative; overflow: hidden; flex: none;
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--hi);
  transition: transform .5s var(--ease-spring), background .3s, border-color .3s, color .3s;
}
.icon-btn svg { width: 19px; height: 19px; transition: transform .5s var(--ease-spring); }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.icon-btn:hover svg { transform: scale(1.1); }
.icon-btn:active { transform: scale(.92); transition-duration: .1s; }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn.big { width: 52px; height: 52px; }
.icon-btn.big svg { width: 22px; height: 22px; }

.search-trigger { width: auto; padding: 0 12px 0 13px; gap: 8px; grid-auto-flow: column; border-radius: 999px; }
kbd { font: 600 10px/1 var(--font); padding: 4px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); letter-spacing: .04em; }

/* Эквалайзер-переключатель звука */
.eq { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.eq i { width: 2.5px; height: 100%; border-radius: 2px; background: currentColor; transform: scaleY(.18); transition: transform .5s var(--ease-spring); }
.sound-toggle.on .eq i { animation: eq 1.1s var(--ease-io) infinite alternate; }
.sound-toggle.on .eq i:nth-child(2) { animation-delay: -.4s; animation-duration: .9s; }
.sound-toggle.on .eq i:nth-child(3) { animation-delay: -.7s; animation-duration: 1.3s; }
.sound-toggle.on .eq i:nth-child(4) { animation-delay: -.2s; animation-duration: .8s; }
.sound-toggle.on { color: var(--accent); }

/* Переключатель «Трейлеры на фоне»: включено — золотая плёнка, выключено — серая перечёркнутая */
.bgtr-toggle { color: var(--accent); }
.bgtr-slash { position: absolute; left: 50%; top: 50%; width: 24px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 0 0 2px var(--elev); transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); transition: transform .4s var(--ease-spring); }
.bgtr-toggle.off { color: var(--muted); }
.bgtr-toggle.off .bgtr-slash { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }
/* Фоновые трейлеры бывают только на компьютерах — на телефонах кнопка не нужна */
@media (hover: none), (max-width: 760px) { .island .bgtr-toggle { display: none; } }

/* Подсказка при наведении для [data-tip] */
.tip { position: fixed; z-index: 120; max-width: 300px; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--text); background: var(--elev); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55); pointer-events: none; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .3s var(--ease-out); }
.tip.on { opacity: 1; transform: none; }
@keyframes eq { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }

/* Переключатель темы: солнце ⇄ луна */
.theme-toggle { flex: none; }
.tt-track {
  position: relative; display: block; width: 66px; height: 36px; border-radius: 99px;
  background: linear-gradient(135deg, #1b1d2e, #0d0e18); border: 1px solid var(--line-2); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5);
  transition: background .7s var(--ease-out);
  overflow: hidden;
}
:root[data-theme="light"] .tt-track { background: linear-gradient(135deg, #ffd88a, #ffb057); box-shadow: inset 0 2px 6px rgba(160, 90, 0, .25); }
.tt-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; transition: transform .6s var(--ease-out), opacity .4s; }
.tt-stars i:nth-child(1) { left: 12px; top: 9px; }
.tt-stars i:nth-child(2) { left: 22px; top: 21px; width: 1.5px; height: 1.5px; }
.tt-stars i:nth-child(3) { left: 9px; top: 24px; width: 1px; height: 1px; }
:root[data-theme="light"] .tt-stars i { opacity: 0; transform: translateY(10px); }
.tt-knob {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: #f4efe6;
  background: linear-gradient(145deg, #3a3d55, #23253a); box-shadow: 0 4px 10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .15);
  transform: translateX(30px);
  transition: transform .75s var(--ease-spring), background .6s, color .6s;
}
:root[data-theme="light"] .tt-knob { transform: translateX(0) rotate(-180deg); background: linear-gradient(145deg, #fff8e8, #ffe2a8); color: #e08a00; box-shadow: 0 4px 12px rgba(200, 110, 0, .4), inset 0 1px 0 #fff; }
.tt-icon { width: 20px; height: 20px; overflow: visible; }
.tt-cut { transition: cx .7s var(--ease-out), cy .7s var(--ease-out); cx: 16px; cy: 7px; }
.tt-core { transition: r .6s var(--ease-spring); r: 7px; }
.tt-rays { transform-origin: 12px 12px; transform: scale(.3) rotate(-45deg); opacity: 0; transition: transform .7s var(--ease-spring), opacity .4s; }
:root[data-theme="light"] .tt-cut { cx: 30px; cy: -4px; }
:root[data-theme="light"] .tt-core { r: 4.6px; }
:root[data-theme="light"] .tt-rays { transform: scale(1) rotate(0); opacity: 1; }
.theme-toggle:hover .tt-knob { box-shadow: 0 0 0 6px rgb(var(--tint) / .15), 0 4px 10px rgba(0, 0, 0, .4); }
.theme-toggle:active .tt-knob { width: 34px; }

/* Бургер */
.burger { display: none; position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .6s var(--ease-smooth), top .6s var(--ease-smooth); }
.burger i:nth-child(1) { top: 16px; }
.burger i:nth-child(2) { top: 24px; }
body.menu-open .burger i:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .burger i:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 55; display: grid; align-content: center; padding: calc(var(--sat) + 100px) var(--pad-r) calc(var(--sab) + 40px) var(--pad-l); overflow-y: auto;
  background: var(--glass-strong); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s .6s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out); }
.menu-overlay nav { display: grid; gap: 8px; }
.menu-overlay a { display: flex; align-items: baseline; gap: 14px; font: 500 clamp(36px, 11vw, 64px)/1.1 var(--font-display); letter-spacing: -.03em; overflow: hidden; }
.menu-overlay a small { font: 600 12px var(--font); color: var(--accent); letter-spacing: .1em; }
.menu-overlay a { transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease-out), opacity .6s var(--ease-out); }
body.menu-open .menu-overlay a { transform: none; opacity: 1; transition-delay: calc(.08s + var(--i) * .06s); }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px;
  font: 700 10.5px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  background: rgb(var(--tint) / .1); border: 1px solid rgb(var(--tint) / .2);
}
.eyebrow svg { width: 13px; height: 13px; }
.eyebrow.glass { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .12); color: var(--accent-hi); backdrop-filter: blur(10px); }
:root[data-theme="light"] .eyebrow.glass { background: rgba(255, 255, 255, .5); color: var(--accent); border-color: var(--line); }
/* В баннере главной фон всегда тёмный — плашка как в тёмной теме, только плотнее */
:root[data-theme="light"] .hero .eyebrow.glass { background: rgba(10, 10, 12, .55); color: var(--accent-hi); border-color: rgba(255, 255, 255, .18); }
.h2 { margin: 12px 0 0; font: 500 clamp(24px, 3vw, 38px)/1.08 var(--font-display); letter-spacing: -.03em; }
.h2.big { font-size: clamp(32px, 5vw, 68px); line-height: 1; }
.h2 em { font-style: normal; color: var(--muted); }
.h2 sup { font: 600 13px var(--font); color: var(--accent); vertical-align: top; margin-left: 4px; }
.display { margin: 18px 0 0; font: 500 clamp(40px, 7vw, 104px)/.95 var(--font-display); letter-spacing: -.045em; }
.lead { max-width: 640px; margin: 18px 0 0; font-size: clamp(15px, 1.3vw, 18px); color: var(--muted); }

.pill-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  backdrop-filter: blur(10px);
}
.pill-tag svg { width: 14px; height: 14px; opacity: .8; }
.pill-tag.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pill-tag.accent svg { opacity: 1; }
.pill-tag.tiny { height: 22px; font-size: 11px; padding: 0 8px; }
.star-tag svg { color: var(--accent); fill: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 26px;
  border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-out), background .3s;
}
.btn:active { transform: scale(.97) !important; transition-duration: .12s; }
.btn-primary { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, var(--accent-2))); box-shadow: 0 14px 34px -12px rgb(var(--tint) / .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { box-shadow: 0 20px 44px -12px rgb(var(--tint) / .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease-out); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-glass { padding: 0 24px 0 20px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-glass:hover { background: rgba(255, 255, 255, .17); }
.btn-glass svg { width: 18px; height: 18px; }
:root[data-theme="light"] .btn-glass { color: var(--text); background: rgba(255, 255, 255, .55); border-color: var(--line-2); }
.btn-ghost { padding: 0 18px; border: 1px solid var(--line-2); }
.btn.sm { height: 44px; font-size: 14px; padding-left: 20px; }
.btn-ghost.sm, .r-form .btn-primary.sm { padding: 0 18px; }
/* Основные кнопки без круглого значка справа: отступы поровну, текст по центру
   (их отступы рассчитаны на значок справа — без него текст съезжал вправо) */
.btn-primary:not(:has(.ic-circle)) { padding-left: 22px; padding-right: 22px; justify-content: center; }
.btn-primary.sm:not(:has(.ic-circle)) { padding-left: 16px; padding-right: 16px; }
.ic-circle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .14); transition: transform .5s var(--ease-spring); }
:root[data-theme="light"] .btn-primary .ic-circle { background: rgba(255, 255, 255, .2); }
.btn.sm .ic-circle { width: 32px; height: 32px; }
.ic-circle svg { width: 16px; height: 16px; }
.btn:hover .ic-circle, .link-more:hover .ic-circle { transform: translate(3px, -1px) scale(1.08); }

.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); pointer-events: none; animation: ripple .7s var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.chip {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 99px;
  font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  transition: color .3s, background .4s var(--ease-out), border-color .3s, transform .5s var(--ease-spring);
}
.chip:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.chip.on { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.chip.small { height: 32px; padding: 0 13px; font-size: 13px; }
.link-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--muted); transition: color .3s; margin-right: 8px; }
.link-more .ic-circle { width: 36px; height: 36px; background: var(--surface-2); color: var(--text); }
.link-more:hover { color: var(--text); }

/* ---------- Двойная рамка (bezel) ---------- */
.bezel { padding: 6px; border-radius: calc(var(--r-lg) + 6px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.bezel-core { border-radius: var(--r-lg); overflow: hidden; background: var(--elev); box-shadow: var(--hi); position: relative; }
.bezel.big { padding: 8px; border-radius: 40px; }
.bezel.big > .bezel-core { border-radius: 32px; }

/* =========================================================
   Главная — герой
   ========================================================= */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease-out); }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
/* Отдаление при показе слайда, а потом — медленное «дыхание» по кругу, чтобы фон не замирал,
   даже когда смена слайдов на паузе (курсор над баннером). Уходящий слайд (.leaving) доигрывает движение */
.hero-slide.on img, .hero-slide.leaving img { animation: hero-zoom 12s cubic-bezier(.2, .6, .3, 1) forwards, hero-breathe 18s var(--ease-io) 12s infinite alternate; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes hero-breathe { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1%, -.8%); } }
.hero-yt, .mv-yt { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease-out); pointer-events: none; overflow: hidden; }
.hero-yt.playing, .mv-yt.playing { opacity: 1; }
/* Пока ролик подгружается или на паузе — быстро прячем, чтобы не были видны кнопки YouTube */
.hero-yt.playing.stalled, .mv-yt.playing.stalled { opacity: 0; transition-duration: .25s; }
/* Плеер фиксированного размера 1280×720 (YouTube отдаёт ~720p — меньше подвисаний),
   растягивается на весь блок через --yt-scale (считается в yt.js) */
.hero-yt iframe, .mv-yt iframe { position: absolute; top: 50%; left: 50%; width: 1280px; height: 720px; transform: translate(-50%, -50%) scale(var(--yt-scale, 1.25)); border: 0; }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, .88) 0%, rgba(5, 5, 7, .55) 36%, rgba(5, 5, 7, 0) 70%),
    linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 16%, transparent 45%),
    linear-gradient(180deg, rgba(5, 5, 7, .55), transparent 22%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: end; padding-top: 140px; padding-bottom: clamp(60px, 9vh, 110px); opacity: var(--fade, 1); }
.hero-copy { max-width: 720px; }
.hero-title { margin: 22px 0 0; font: 600 clamp(40px, 7.4vw, 112px)/.92 var(--font-display); letter-spacing: -.05em; text-shadow: 0 10px 50px rgba(0, 0, 0, .45); }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .ch > span { display: inline-block; }
.hero-logo { margin: 24px 0 0; }
.hero-logo img { max-width: min(520px, 80vw); max-height: 190px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .5)); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 22px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.dotted::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; margin-right: 14px; vertical-align: middle; }
.score-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: rgb(var(--tint) / .18); color: var(--accent-hi); border: 1px solid rgb(var(--tint) / .3); }
.score-pill svg { width: 14px; height: 14px; fill: currentColor; }
.hero-ov { margin: 18px 0 0; max-width: 560px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; color: rgba(255, 255, 255, .74); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hero .fav-btn, .mv-hero .icon-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(14px); }
/* Светлая тема: баннер главной остаётся «кинематографичным» — картинка без белой дымки,
   лёгкое затемнение под текстом, в светлый фон переходит только нижний край */
:root[data-theme="light"] .hero { color: #fff; }
:root[data-theme="light"] .hero-vignette {
  background:
    linear-gradient(90deg, rgba(5, 5, 7, .74) 0%, rgba(5, 5, 7, .42) 36%, rgba(5, 5, 7, 0) 70%),
    linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 30%, transparent) 6%, transparent 14%),
    linear-gradient(180deg, rgba(5, 5, 7, .4), transparent 22%);
}
:root[data-theme="light"] .mv-logo img { filter: drop-shadow(0 0 1px rgba(0, 0, 0, .7)) drop-shadow(0 2px 3px rgba(0, 0, 0, .45)) drop-shadow(0 8px 24px rgba(0, 0, 0, .35)); }

.fav-btn svg { transition: transform .5s var(--ease-spring), fill .3s, color .3s; }
.fav-btn.on, .card-fav.on { color: #ff5d6c !important; }
.wl-btn.on { color: var(--accent) !important; background: rgb(var(--tint) / .16) !important; border-color: rgb(var(--tint) / .45) !important; }
.fav-btn.on svg, .card-fav.on svg { fill: #ff5d6c; animation: heart .6s var(--ease-spring); }
@keyframes heart { 30% { transform: scale(.7); } 60% { transform: scale(1.3); } }

.hero-thumbs { display: grid; gap: 8px; }
.hero-thumb {
  position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; border-radius: 18px; text-align: left; overflow: hidden;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: .6; transition: opacity .5s var(--ease-out), transform .6s var(--ease-smooth), background .4s;
}
.hero-thumb:hover { opacity: .9; transform: translateX(-4px); }
.hero-thumb.on { opacity: 1; background: rgba(255, 255, 255, .11); transform: translateX(-10px); }
.hero-thumb img { width: 86px; height: 50px; object-fit: cover; border-radius: 12px; }
.hero-thumb-t { min-width: 0; }
.hero-thumb-t b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-thumb-t small { font-size: 12px; opacity: .6; }
.hero-thumb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); }
.hero-thumb-bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero-thumb.run .hero-thumb-bar i { animation: thumbbar var(--dur, 9s) linear forwards; }
.hero-thumb.hold .hero-thumb-bar i { animation-play-state: paused; }
@keyframes thumbbar { to { transform: scaleX(1); } }

.hero-scroll { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border-radius: 99px; border: 1.5px solid rgba(255, 255, 255, .3); }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--accent); animation: scrollhint 2s var(--ease-io) infinite; }
:root[data-theme="light"] .mv-hero .hero-scroll { border-color: var(--line-2); }
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Бегущая лента ---------- */
.marquee { position: relative; padding: 30px 0 10px; overflow: hidden; display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 85s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.mq { display: flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); transition: background .3s, transform .5s var(--ease-spring); }
.mq:hover { background: var(--surface-2); transform: scale(1.04); }
.mq img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.mq span { font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Ряды ---------- */
.row { padding-top: clamp(56px, 7vw, 100px); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.row-ctrl { display: flex; align-items: center; gap: 8px; }
.row-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 15vw, 220px); gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 18px max(var(--pad-r), calc((100vw - 1480px) / 2 + var(--gutter))) 30px max(var(--pad-l), calc((100vw - 1480px) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--pad-l), calc((100vw - 1480px) / 2 + var(--gutter))) max(var(--pad-r), calc((100vw - 1480px) / 2 + var(--gutter)));
  perspective: 1200px;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track.dragging { cursor: grabbing; }
.row-track.dragging .card { pointer-events: none; }
.row-track.ranked { grid-auto-columns: clamp(200px, 19vw, 280px); }
/* «Аниме → Можно смотреть»: лента не до краёв экрана, а в ширину сетки под ней (6px — запас под подсветку карточки) */
.anime-now .row-track {
  margin-inline: calc(max(var(--pad-l), calc((100vw - 1480px) / 2 + var(--gutter))) - 6px) calc(max(var(--pad-r), calc((100vw - 1480px) / 2 + var(--gutter))) - 6px);
  padding-inline: 6px; scroll-padding-inline: 6px;
  /* Края не обрезаны ножом, а плавно затухают — только с той стороны, куда ещё можно листать */
  --fl: 64px; --fr: 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  transition: --fl .35s var(--ease-io), --fr .35s var(--ease-io);
}
.anime-now .row-track.at-start { --fl: 0px; }
.anime-now .row-track.at-end { --fr: 0px; }
@property --fl { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --fr { syntax: '<length>'; inherits: false; initial-value: 0px; }
@media (max-width: 700px) { .anime-now .row-track { --fl: 28px; --fr: 28px; } }

/* ---------- Карточка ---------- */
.card { position: relative; display: block; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; user-select: none; -webkit-user-select: none; }
.card-shell {
  position: relative; padding: 5px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .7s var(--ease-smooth), box-shadow .7s var(--ease-out), border-color .4s;
}
.card:hover .card-shell { transform: translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.02); box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .8), 0 0 0 1px rgb(var(--tint) / .25); border-color: rgb(var(--tint) / .3); transition: transform .25s var(--ease-out), box-shadow .7s var(--ease-out); }
:root[data-theme="light"] .card:hover .card-shell { box-shadow: 0 30px 50px -28px rgba(80, 50, 10, .45), 0 0 0 1px rgb(var(--tint) / .3); }
.card-core { position: relative; aspect-ratio: 2 / 3; border-radius: 19px; overflow: hidden; background: var(--bg-2); box-shadow: var(--hi); }
.card-poster { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .8s; }
.card:hover .card-poster { transform: scale(1.07); }
.card-noimg { display: grid; place-content: center; justify-items: center; gap: 10px; padding: 16px; text-align: center; color: var(--faint); font-size: 13px; }
.card-noimg svg { width: 36px; }
.card-preview { position: absolute; inset: 0; background: var(--bd) center / cover; opacity: 0; transform: scale(1.25); transition: opacity .8s var(--ease-out), transform 6s cubic-bezier(.2, .6, .3, 1); }
.card:hover .card-preview { opacity: 1; transform: scale(1.5) translateX(-6%); transition-delay: .45s, .45s; }
.card-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .28), transparent 50%); mix-blend-mode: overlay; transition: opacity .5s; }
.card:hover .card-glare { opacity: 1; }
.card-score {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 99px;
  font-size: 12px; font-weight: 800; color: #fff; background: rgba(10, 10, 12, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12);
}
.card-score svg { width: 12px; height: 12px; fill: currentColor; }
.card-score.hi svg { color: #7fd8a4; } .card-score.mid svg { color: #f5c84a; } .card-score.lo svg { color: #ff7f6e; }
.card-free { position: absolute; top: 10px; right: 10px; height: 24px; padding: 0 9px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: #1c1306; }
.card-info {
  position: absolute; inset: auto 0 0 0; padding: 50px 12px 12px; display: grid; gap: 10px;
  background: linear-gradient(0deg, rgba(6, 6, 8, .96), rgba(6, 6, 8, .6) 60%, transparent);
  transform: translateY(40%); opacity: 0; transition: transform .7s var(--ease-smooth), opacity .5s var(--ease-out);
}
.card:hover .card-info { transform: none; opacity: 1; }
.card-actions { display: flex; align-items: center; justify-content: space-between; }
.card-play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #1c1306; box-shadow: 0 8px 24px -6px rgb(var(--tint) / .8); transform: scale(.6); transition: transform .6s var(--ease-spring) .05s; }
.card:hover .card-play { transform: scale(1); }
.card-play svg { width: 18px; margin-left: 2px; }
.card-fav { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); transition: transform .5s var(--ease-spring), background .3s; }
.card-fav:hover { background: rgba(255, 255, 255, .22); transform: scale(1.1); }
.card-fav svg { width: 17px; }
.card-ov { margin: 0; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-cap { padding: 12px 6px 0; }
.card-cap b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.card:hover .card-cap b { color: var(--accent); }
.card-cap span { font-size: 12.5px; color: var(--muted); }
.card-rank {
  position: absolute; left: -10px; bottom: 52px; z-index: 2; pointer-events: none;
  font: 700 clamp(80px, 8vw, 130px)/.8 var(--font-display); letter-spacing: -.08em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .5); text-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .7s var(--ease-spring), -webkit-text-stroke-color .4s;
}
:root[data-theme="light"] .card-rank { -webkit-text-stroke-color: rgba(23, 19, 14, .35); text-shadow: none; }
.ranked .card { padding-left: 46px; }
.card:hover .card-rank { transform: translateX(-6px) scale(1.04); -webkit-text-stroke-color: var(--accent); }

/* Появление карточек в сетке */
.card.enter { opacity: 0; transform: translateY(14px); }
.card.enter.in { opacity: 1; transform: none; transition: opacity .35s var(--ease-out) calc(var(--i) * 15ms), transform .45s var(--ease-out) calc(var(--i) * 15ms); }

/* ---------- Открытый кинозал (бенто) ---------- */
.open-hall { padding-top: clamp(80px, 10vw, 150px); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.row-like { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 18px; }
.bento-tile { position: relative; display: block; }
.bento-tile.t0 { grid-column: span 7; grid-row: span 2; }
.bento-tile.t1 { grid-column: span 5; }
.bento-tile.t2 { grid-column: span 5; }
.bento-tile.t3 { grid-column: span 12; }
.bento-shell { height: 100%; padding: 6px; border-radius: 34px; background: var(--surface); border: 1px solid var(--line); transition: transform .8s var(--ease-smooth), border-color .4s; }
.bento-core { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: var(--bg-2); box-shadow: var(--hi); color: #fff; }
.bento-core img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.bento-tile:hover .bento-core img { transform: scale(1.06); }
.bento-tile:hover .bento-shell { transform: translateY(-6px); border-color: rgb(var(--tint) / .35); }
.bento-grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 5, 7, .92), rgba(5, 5, 7, .2) 60%, transparent); }
.bento-body { position: absolute; left: 0; right: 70px; bottom: 0; padding: 26px; }
.bento-body h3 { margin: 14px 0 6px; font: 500 clamp(22px, 2.4vw, 34px)/1.05 var(--font-display); letter-spacing: -.03em; }
.t0 .bento-body h3 { font-size: clamp(30px, 3.6vw, 52px); }
.bento-body p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .7); max-width: 520px; }
.bento-body .pill-tag { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .16); }
.bento-go { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #1c1306; transition: transform .6s var(--ease-spring); }
.bento-go svg { width: 20px; }
.bento-tile:hover .bento-go { transform: rotate(45deg) scale(1.1); }

/* ---------- Жанры ---------- */
.genres { padding-top: clamp(70px, 8vw, 120px); }
.genre-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.genre-chip { height: 50px; padding: 0 24px; font-size: 15px; }
.genres.in .genre-chip { animation: chipin .8s var(--ease-out) backwards; animation-delay: calc(var(--i) * 30ms); }
@keyframes chipin { from { opacity: 0; transform: translateY(16px) scale(.9); } }

/* ---------- Футер ---------- */
.footer { margin-top: clamp(100px, 12vw, 180px); padding-top: 40px; padding-bottom: 50px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-note { max-width: 520px; margin: 0; font-size: 14px; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 36px; font-size: 12.5px; color: var(--faint); }
.footer-bottom { align-items: center; }
/* Соцсети в подвале (настраиваются в админке) */
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: color .25s, background .25s, border-color .25s, transform .4s var(--ease-spring); }
.social:hover { color: var(--accent); border-color: rgb(var(--tint) / .45); background: rgb(var(--tint) / .08); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }
.footer-copy { margin-left: auto; }
/* Кнопка установки приложения — только когда браузер разрешает установку */
.footer-install { display: none; }
.can-install .footer-install { display: inline-flex; }
.footer-about { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.footer-about:hover { color: var(--text); }
/* «О сайте»: источник данных TMDB */
.about-src { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.about-src svg { width: 56px; flex: none; margin-top: 2px; }
.about-src p { margin: 0; font-size: 13px; color: var(--muted); }

/* =========================================================
   Страница фильма
   ========================================================= */
.mv-hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; isolation: isolate; color: #fff; }
.mv-bg { position: absolute; inset: 0; z-index: -1; }
.mv-backdrop { width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s var(--ease-io) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.mv-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(5, 5, 7, .55), transparent 60%),
    linear-gradient(90deg, rgba(5, 5, 7, .92) 0%, rgba(5, 5, 7, .65) 40%, rgba(5, 5, 7, .2) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    linear-gradient(180deg, rgba(5, 5, 7, .6), transparent 25%);
}
:root[data-theme="light"] .mv-hero { color: var(--text); }
:root[data-theme="light"] .mv-grad {
  background:
    linear-gradient(90deg, rgba(243, 239, 231, .95) 0%, rgba(243, 239, 231, .78) 42%, rgba(243, 239, 231, .25) 78%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    linear-gradient(180deg, rgba(243, 239, 231, .55), transparent 25%);
}
.mv-inner { padding-top: 120px; padding-bottom: 90px; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 99px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); transition: background .3s, transform .5s var(--ease-spring); }
.back-btn svg { width: 17px; transition: transform .5s var(--ease-spring); }
.back-btn:hover { background: rgba(255, 255, 255, .16); }
.back-btn:hover svg { transform: translateX(-4px); }
:root[data-theme="light"] .back-btn { background: rgba(255, 255, 255, .6); border-color: var(--line-2); }
.mv-grid { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; margin-top: 34px; }
.mv-poster .bezel { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: var(--shadow); transform: rotate(-1.5deg); transition: transform 1s var(--ease-spring); }
.mv-poster .bezel:hover { transform: rotate(0) scale(1.02); }
.mv-poster .bezel-core { aspect-ratio: 2 / 3; }
.mv-poster img { width: 100%; height: 100%; object-fit: cover; }
.mv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mv-hero .pill-tag:not(.accent) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .14); color: inherit; }
:root[data-theme="light"] .mv-hero .pill-tag:not(.accent) { background: rgba(255, 255, 255, .55); border-color: var(--line); }
.mv-title { margin: 22px 0 0; font: 600 clamp(36px, 5.6vw, 88px)/.95 var(--font-display); letter-spacing: -.045em; }
.mv-logo { margin: 24px 0 0; }
.mv-logo img { max-width: min(480px, 80vw); max-height: 170px; object-fit: contain; object-position: left; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.mv-orig { margin: 10px 0 0; font-size: 15px; color: rgba(255, 255, 255, .55); font-weight: 500; }
.mv-tagline { margin: 12px 0 0; font-size: 17px; font-style: italic; color: rgba(255, 255, 255, .75); }
:root[data-theme="light"] .mv-orig, :root[data-theme="light"] .mv-tagline { color: var(--muted); }
.mv-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mv-hero .chip { color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.mv-hero .chip:hover { color: #fff; background: rgba(255, 255, 255, .14); }
:root[data-theme="light"] .mv-hero .chip { color: var(--muted); background: rgba(255, 255, 255, .5); border-color: var(--line); }
.mv-rings { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.mv-ov { margin: 24px 0 0; max-width: 680px; font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
:root[data-theme="light"] .mv-ov { color: var(--muted); }
.mv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.mv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 28px; margin: 34px 0 0; max-width: 720px; }
.mv-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.mv-facts dd { margin: 5px 0 0; font-size: 14.5px; font-weight: 600; }
:root[data-theme="light"] .mv-facts dt { color: var(--faint); }

.bg-sound .wave { transition: opacity .3s, transform .4s var(--ease-spring); transform-origin: 11px 12px; }
.bg-sound .mute-x { opacity: 0; transition: opacity .3s; }
.bg-sound.muted .wave { opacity: 0; transform: scale(.6); }
.bg-sound.muted .mute-x { opacity: 1; }
.bg-sound:not(.muted) { color: var(--accent) !important; }
.bg-sound[hidden] { display: none; }
.bg-sound:not([hidden]) { animation: popin .7s var(--ease-spring); }
@keyframes popin { from { transform: scale(0); } }

/* Кольца рейтинга */
.ring { position: relative; display: grid; grid-template-columns: 64px auto; align-items: center; gap: 12px; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); grid-row: span 2; }
.ring circle { fill: none; stroke-width: 4.5; }
.ring-bg { stroke: rgba(255, 255, 255, .12); }
:root[data-theme="light"] .ring-bg { stroke: var(--line-2); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); transition: stroke-dashoffset 1.8s var(--ease-out) .3s; filter: drop-shadow(0 0 6px rgb(var(--tint) / .6)); }
.ring.tmdb .ring-fg { stroke: #6ee7b7; filter: drop-shadow(0 0 6px rgba(110, 231, 183, .5)); }
.ring.comm .ring-fg { stroke: #fbbf24; }
.ring.mine .ring-fg { stroke: #ff7a59; filter: drop-shadow(0 0 6px rgba(255, 122, 89, .5)); }
.ring-num { position: absolute; left: 0; top: 0; width: 64px; height: 64px; display: grid; place-items: center; font: 600 16px/1 var(--font-display); letter-spacing: -.04em; }
.ring-label { font-size: 12px; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, .6); max-width: 100px; }
:root[data-theme="light"] .ring-label { color: var(--muted); }
.page-vt .ring-fg { transition: none; }

/* Светлая тема: шапка страницы фильма как в тёмной — картинка без белой дымки, светлый текст,
   в светлый фон страницы переходит только нижний край */
/* шапка тёмная — и цвет сайта в ней как в тёмной теме (свой цвет подставляет accent.js) */
:root[data-theme="light"] .mv-hero { color: #f4efe6; --accent: #f5b54a; --accent-2: #ff7a45; --accent-hi: #ffd58a; --accent-ink: #1c1306; --tint: 245 181 74; }
:root[data-theme="light"] .mv-grad {
  background:
    radial-gradient(ellipse at 20% 60%, rgba(5, 5, 7, .4), transparent 60%),
    linear-gradient(90deg, rgba(5, 5, 7, .82) 0%, rgba(5, 5, 7, .52) 40%, rgba(5, 5, 7, .12) 75%),
    linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 30%, transparent) 4%, transparent 10%),
    linear-gradient(180deg, rgba(5, 5, 7, .45), transparent 25%);
}
/* Переход в светлый фон — на самой шапке: фон с параллаксом уезжает вниз и обрезал бы его */
:root[data-theme="light"] .mv-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; pointer-events: none; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 35%, transparent) 55%, var(--bg)); }
:root[data-theme="light"] .mv-hero .pill-tag:not(.accent) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .14); }
:root[data-theme="light"] .mv-hero .mv-orig { color: rgba(255, 255, 255, .55); }
:root[data-theme="light"] .mv-hero .mv-tagline { color: rgba(255, 255, 255, .75); }
:root[data-theme="light"] .mv-hero .chip { color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
:root[data-theme="light"] .mv-hero .mv-ov { color: rgba(255, 255, 255, .78); }
:root[data-theme="light"] .mv-hero .mv-facts dt { color: rgba(255, 255, 255, .45); }
:root[data-theme="light"] .mv-hero .ring-bg { stroke: rgba(255, 255, 255, .12); }
:root[data-theme="light"] .mv-hero .ring-label { color: rgba(255, 255, 255, .6); }
:root[data-theme="light"] .mv-hero .back-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
:root[data-theme="light"] .mv-hero .btn-glass { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); }
:root[data-theme="light"] .mv-hero .icon-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }
:root[data-theme="light"] .mv-hero .mv-logo img { filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
:root[data-theme="light"] .mv-hero .hero-scroll { border-color: rgba(255, 255, 255, .3); }

/* ---------- Блок просмотра ---------- */
.watch { padding-top: clamp(60px, 8vw, 120px); scroll-margin-top: 80px; }
.watch-frame { aspect-ratio: 16 / 9; background: #000; }
.watch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tf, .tf-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.tf-cover, .tf-empty img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tf:hover .tf-cover { transform: scale(1.04); }
.tf-shade { position: absolute; inset: 0; background: radial-gradient(circle, rgba(0, 0, 0, .2), rgba(0, 0, 0, .65)); }
.tf-empty p { position: relative; padding: 10px 18px; border-radius: 99px; background: rgba(0, 0, 0, .6); }
.tf-play { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: #1c1306; box-shadow: 0 20px 60px -10px rgb(var(--tint) / .8); transition: transform .6s var(--ease-spring); }
.tf-play svg { width: 34px; margin-left: 5px; position: relative; }
.tf-play:hover { transform: scale(1.08); }
.tf-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid rgb(var(--tint) / .7); animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.tf-label { position: absolute; left: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(0, 0, 0, .5); backdrop-filter: blur(10px); }
.tf-label svg { width: 15px; }

.notice { display: flex; gap: 18px; margin-top: 22px; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.notice-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgb(var(--tint) / .12); color: var(--accent); }
.notice-ic svg { width: 22px; }
.notice b { font-size: 15px; }
.notice p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.providers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.provider { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; transition: transform .5s var(--ease-spring), border-color .3s; }
.provider:hover { transform: translateY(-3px); border-color: var(--line-2); }
.provider img { width: 34px; height: 34px; border-radius: 10px; }

/* ---------- Сегментированный переключатель ---------- */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; flex: none; height: 40px; padding: 0 20px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .4s var(--ease-out); }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--accent-ink); }
.seg-pill { position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 99px; background: var(--accent); box-shadow: 0 6px 18px -6px rgb(var(--tint) / .7); transition: transform .6s var(--ease-smooth), width .6s var(--ease-smooth); }
.seg.small button { height: 34px; padding: 0 16px; font-size: 13px; }
.trailer-seg { margin-top: 18px; }

/* ---------- Над рамкой видео: «Плеер» / «Трейлер» ---------- */
.watch-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 16px; }
.watch-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; font-size: 15px; }
.watch-tabs button svg { width: 16px; height: 16px; }
.watch-tabs button small { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.watch-tabs button.on small { background: rgba(0, 0, 0, .14); color: inherit; }
.watch-tabs button:disabled { opacity: .45; cursor: default; }
.watch-tabs:has([data-wt="player3"]) { max-width: 100%; }
@media (max-width: 600px) {
  .watch-tabs:has([data-wt="player3"]) button { min-width: 0; gap: 4px; padding: 0 7px; font-size: 12px; }
  .watch-tabs:has([data-wt="player3"]) button svg { width: 13px; height: 13px; }
  .watch-tabs:has([data-wt="player3"]) button small { min-width: 16px; padding: 0 3px; font-size: 10px; }
}
.watch-bar .voice-pick { margin: 0; }
.watch-pane[hidden], .voice-pick[hidden] { display: none; }
.player2-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 16px; }
.player2-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.player2-controls select, .player2-controls button { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: inherit; font: inherit; }
.player2-episodes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.player2-episodes button { min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: inherit; cursor: pointer; }
.player2-episodes button.on { border-color: var(--accent); color: var(--accent); }
/* «Плеер 2»: «Вы остановились: 3 серия, 12:34 — Продолжить / Сначала» */
.p2-resume { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 14px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(120deg, rgb(var(--tint) / .16), var(--surface) 70%); border: 1px solid rgb(var(--tint) / .35); animation: p2in .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes p2in { from { opacity: 0; transform: translateY(-8px); } }
.p2-resume-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; aspect-ratio: 1; border-radius: 50%; background: rgb(var(--tint) / .18); color: var(--accent); }
.p2-resume-ic svg { width: 18px; }
.p2-resume-t { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; }
.p2-resume-t b { font: 600 15px var(--font-display); }
.p2-resume-t small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Свои рамки у выбора «Плеера 2» (расположение то же): кнопка-список и меню в стиле сайта */
.player2-controls { position: relative; z-index: 15; }
.player2-controls select[data-cs-done] { display: none; }
.player2-controls label { font-weight: 600; }
.cs { position: relative; min-width: 150px; }
.cs-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; max-width: 300px; padding: 0 12px 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px var(--font); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.cs-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-btn svg { width: 14px; flex: none; opacity: .6; transform: rotate(90deg); transition: transform .35s var(--ease-spring); }
.cs-btn:hover:not(:disabled), .cs.open .cs-btn { background: var(--surface-2); border-color: var(--line-2); }
.cs.open .cs-btn svg { transform: rotate(-90deg); }
.cs-btn:disabled { cursor: default; opacity: .8; }
.cs-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 100%; width: max-content; max-width: min(340px, calc(100vw - 32px)); max-height: 320px; overflow-y: auto; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: var(--elev); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .2s, transform .3s var(--ease-spring), visibility 0s .3s; }
.cs.open .cs-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease-spring); }
.cs-pop button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 12px; color: var(--muted); font: 600 14px var(--font); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.cs-pop button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-pop button:hover { background: var(--surface-2); color: var(--text); }
.cs-pop button.on { color: var(--text); }
.cs-pop button svg { width: 15px; flex: none; color: var(--accent); opacity: 0; }
.cs-pop button.on svg { opacity: 1; }
.player2-controls button[data-p2-retry] { min-height: 42px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.player2-episodes button { min-height: 38px; padding: 6px 16px; border-radius: 12px; background: var(--surface); font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.player2-episodes button:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line-2); }
.player2-episodes button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.player2-episodes button:disabled { cursor: default; }
@media (max-width: 600px) {
  .player2-controls label { flex: 1 1 140px; min-width: 0; }
  .cs { min-width: 0; }
  .cs-btn { max-width: none; }
}
/* Фильма нет в плеере — честная заглушка вместо трейлера на месте плеера */
.watch-none { display: grid; place-items: center; color: #fff; }
.watch-none > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(2px) saturate(.6); }
.watch-none-t { position: relative; display: grid; justify-items: center; gap: 10px; max-width: 460px; padding: 24px; text-align: center; }
.watch-none-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.watch-none-ic svg { width: 24px; margin-left: 3px; opacity: .8; }
.watch-none-t b { font: 600 clamp(18px, 2.2vw, 24px)/1.2 var(--font-display); }
.watch-none-t p { margin: 0 0 6px; font-size: 14px; color: rgba(255, 255, 255, .72); }
/* Кнопки в заглушке («Смотреть трейлер», «Попросить добавить», «Повторить») — рядом, с переносом; под ними — сколько человек уже просят */
.watch-none-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.watch-req-n { font-size: 12.5px; font-weight: 600; color: var(--accent); min-height: 1em; }
.watch-none-t [data-req]:disabled { opacity: .75; cursor: default; }
@media (max-width: 600px) {
  .watch-none-t { gap: 8px; padding: 12px; }
  .watch-none-ic { display: none; }
  .watch-none-t b { font-size: 15px; }
  .watch-req-n { font-size: 11.5px; }
}
/* Надпись прямо в рамке плеера («Плеер 2 временно недоступен», «Выберите источник…») — по центру рамки, а не в левом углу */
.watch-frame > .watch-none-t { position: absolute; left: 50%; top: 50%; width: min(460px, calc(100% - 24px)); transform: translate(-50%, -50%); color: #fff; }
@media (max-width: 600px) { .watch-tabs { width: 100%; } .watch-tabs button { flex: 1; justify-content: center; padding: 0 12px; } .watch-none-t p { display: none; } }

/* ---------- Вкладки ---------- */
.mv-tabs-sec { padding-top: clamp(70px, 8vw, 120px); }
.tab-panels { position: relative; margin-top: 30px; }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: panelin .7s var(--ease-out); }
@keyframes panelin { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.cast-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 22px 18px; }
a.person { display: block; color: inherit; text-decoration: none; }
.person { text-align: center; animation: chipin .7s var(--ease-out) backwards; animation-delay: calc(var(--i) * 35ms); }
.person-ph { aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; width: 100%; max-width: 120px; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); border: 1px solid var(--line); padding: 4px; transition: transform .6s var(--ease-spring), border-color .3s; }
/* Фото актёра — строго по кругу: у TMDB фото вертикальные (2:3), и в сетке с отступом картинка не растягивалась
   по высоте, а брала свои пропорции — получался овал, а сзади был виден фон круга. Поэтому — абсолютно на весь круг */
.person-ph { position: relative; flex: none; }
.person-ph img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); max-width: none; object-fit: cover; object-position: center 20%; border-radius: 50%; display: block; }
.person-ph > svg { width: 40%; }
.person:hover .person-ph { transform: translateY(-5px) scale(1.04); border-color: var(--accent); }
.person b { display: block; font-size: 14px; line-height: 1.3; }
.person span { font-size: 12.5px; color: var(--muted); }
.stills { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.still { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); animation: chipin .7s var(--ease-out) backwards; animation-delay: calc(var(--i) * 40ms); }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.still:hover img { transform: scale(1.07); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 15vw, 210px), 1fr)); gap: 34px clamp(14px, 1.6vw, 24px); perspective: 1400px; }

/* ---------- Оценка ---------- */
.rate { padding-top: clamp(70px, 8vw, 120px); }
.rate-core { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 30px 40px; align-items: center; padding: clamp(24px, 3vw, 44px); background: radial-gradient(ellipse at 100% 0%, rgb(var(--tint) / .12), transparent 60%), var(--elev); }
.rate-copy .muted { margin: 10px 0 0; font-size: 14px; }
.stars { display: flex; gap: 4px; }
.star { width: 44px; height: 44px; display: grid; place-items: center; color: var(--faint); transition: transform .45s var(--ease-spring), color .25s; }
.star svg { width: 32px; height: 32px; transition: fill .25s, filter .3s; }
.star:hover { transform: scale(1.25) rotate(-8deg); }
.star.on { color: var(--accent); }
.star.on svg { fill: var(--accent); filter: drop-shadow(0 0 8px rgb(var(--tint) / .6)); }
.stars[data-tier="lo"] .star.on { color: var(--bad); }
.stars[data-tier="lo"] .star.on svg { fill: var(--bad); filter: drop-shadow(0 0 8px rgba(255, 127, 110, .5)); }
.star.hov svg { fill: color-mix(in srgb, currentColor 60%, transparent); }
.star.pop { animation: starpop .6s var(--ease-spring) var(--d) backwards; }
@keyframes starpop { 0% { transform: scale(.4) rotate(-40deg); } 60% { transform: scale(1.35) rotate(10deg); } }
.rate-out { display: grid; justify-items: center; min-width: 120px; }
.rate-num { font: 600 54px/1 var(--font-display); letter-spacing: -.05em; color: var(--accent); }
.rate-word { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

/* ---------- Комментарии ---------- */
.comments { padding-top: clamp(70px, 8vw, 120px); }
.comments > * { max-width: 1060px; }
.c-form .bezel-core { padding: 20px; display: grid; gap: 14px; }
.c-form-top { display: flex; align-items: center; gap: 12px; }
.c-name { flex: 1; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid transparent; background: var(--surface); font-weight: 600; outline: none; transition: border-color .3s, background .3s; }
.c-form textarea, .r-form textarea { width: 100%; resize: vertical; min-height: 92px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); outline: none; line-height: 1.55; transition: border-color .3s, box-shadow .4s var(--ease-out), background .3s; }
.c-name:focus, .c-form textarea:focus, .r-form textarea:focus { border-color: rgb(var(--tint) / .55); box-shadow: 0 0 0 4px rgb(var(--tint) / .12); background: var(--surface-2); }
.c-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.c-hide-selection { display: inline-flex; align-items: center; gap: 7px; width: fit-content; min-height: 36px; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 700; cursor: pointer; }
.c-hide-selection:hover, .c-hide-selection:focus-visible { color: var(--text); border-color: rgb(var(--tint) / .5); }
.c-hide-selection svg { width: 16px; height: 16px; }
.c-form .c-hide-selection { justify-self: start; }
/* Тайминги в комментариях (как на YouTube) и кнопка «Тайминг» у поля ввода */
.c-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-self: start; }
.c-ts-add { display: inline-flex; align-items: center; gap: 7px; width: fit-content; min-height: 36px; padding: 6px 11px; border: 1px solid rgb(var(--tint) / .35); border-radius: 10px; color: var(--accent); background: rgb(var(--tint) / .08); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .25s, border-color .25s; }
.c-ts-add:hover, .c-ts-add:focus-visible { background: rgb(var(--tint) / .16); border-color: rgb(var(--tint) / .6); }
.c-ts-add svg { width: 16px; height: 16px; }
.c-ts { display: inline-flex; align-items: center; gap: 4px; margin: 0 1px; padding: 1px 8px 1px 6px; border: 0; border-radius: 7px; background: rgb(var(--tint) / .14); color: var(--accent); font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.5; vertical-align: baseline; cursor: pointer; transition: background .2s, transform .3s var(--ease-spring); }
.c-ts svg { flex: none; width: 11px; height: 11px; }
.c-ts:hover, .c-ts:focus-visible { background: rgb(var(--tint) / .26); }
.c-ts:active { transform: scale(.94); }
.avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 600 16px var(--font-display); color: #17130e; background: var(--c, var(--accent)); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .15); }
.avatar.me { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.avatar.me svg { width: 20px; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: var(--cur-hover); user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
/* flex: none — рядом с длинным текстом на телефоне дорожка сжималась, и кружок вылезал за край; overflow — пружинка анимации не выглядывает */
.switch-track { position: relative; flex: none; overflow: hidden; width: 48px; height: 28px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); transition: background .4s var(--ease-out), border-color .3s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .55s var(--ease-spring), width .3s var(--ease-out), background .3s; }
.switch:active .switch-thumb { width: 26px; }
.switch input:checked + .switch-track { background: var(--accent); border-color: transparent; }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); background: #fff; }
.switch:active input:checked + .switch-track .switch-thumb { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }

.c-list { display: grid; gap: 4px; margin-top: 30px; }
.c-item { display: flex; gap: 14px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.c-item.reply { padding: 16px 0 4px; border: 0; }
.c-item.reply .avatar { width: 34px; height: 34px; font-size: 13px; }
.c-body { flex: 1; min-width: 0; }
.c-body header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.c-body header b { font-size: 15px; }
.c-body time { font-size: 12.5px; color: var(--faint); }
.c-text { position: relative; margin-top: 8px; }
.c-text p { margin: 0; font-size: 15px; line-height: 1.65; color: color-mix(in srgb, var(--text) 85%, transparent); overflow-wrap: anywhere; }
/* Спойлер в части текста: ||…|| — размыт до нажатия */
.sp-in { border-radius: 6px; padding: 0 3px; background: rgb(var(--tint) / .12); filter: blur(5px); cursor: var(--cur-hover); transition: filter .4s var(--ease-out), background .3s; }
.sp-in:hover { background: rgb(var(--tint) / .22); }
.sp-in.open { filter: none; background: transparent; cursor: auto; }
.c-text.spoiler p { filter: blur(7px); user-select: none; transition: filter .6s var(--ease-out); }
.c-text.spoiler.shown p { filter: none; user-select: auto; }
.spoiler-cover { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); border-radius: 14px; background: color-mix(in srgb, var(--bg) 40%, transparent); transition: opacity .4s; }
.spoiler-cover svg { width: 17px; }
.c-text.shown .spoiler-cover { opacity: 0; pointer-events: none; }
.c-body footer { display: flex; gap: 4px; margin-top: 10px; margin-left: -10px; }
.c-act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .3s, color .3s; }
.c-act svg { width: 17px; transition: transform .5s var(--ease-spring); }
.c-act:hover { background: var(--surface-2); color: var(--text); }
.c-act.up.on { color: var(--good); }
.c-act.down.on { color: var(--bad); }
.c-act.up.on svg { fill: color-mix(in srgb, var(--good) 25%, transparent); }
.c-act.bump svg { animation: thumb .55s var(--ease-spring); }
/* Перевод комментария: справа в строке действий */
.c-act.c-tr { margin-left: auto; }
.c-act.busy { opacity: .6; pointer-events: none; }
.ps-tr { display: inline-flex; align-items: center; gap: 8px; }
.ps-tr svg { width: 15px; height: 15px; }
.ps-tr.busy { opacity: .6; pointer-events: none; }
@keyframes thumb { 40% { transform: scale(1.4) rotate(-14deg); } }
.c-replies { margin-top: 6px; padding-left: 16px; border-left: 2px solid var(--line); }
.r-form { margin-top: 12px; overflow: hidden; }
.r-form textarea { min-height: 70px; }
.r-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.r-actions .c-hide-selection { margin-right: auto; }

/* =========================================================
   Каталог
   ========================================================= */
.page-head { padding-top: clamp(130px, 16vw, 200px); padding-bottom: 20px; }
/* Сезонный фон шапки каталога (Фильмы / Сериалы / Аниме) — картинка во всю ширину за шапкой сайта и заголовком,
   книзу растворяется в фоне страницы, слева чуть темнее (заголовок читается). Включает catalog.js по датам */
.season-bg {
  position: absolute; left: 0; right: 0; top: 0; height: clamp(440px, 50vw, 740px); z-index: -1; pointer-events: none;
  background: right top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  animation: seasonin 1.2s var(--ease-out) both;
}
.season-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 12, .6) 0%, rgba(10, 10, 12, .2) 45%, transparent 70%); }
.season-halloween { background-image: url(/icons/season/halloween.webp); }
@keyframes seasonin { from { opacity: 0; transform: scale(1.03); } }
.season-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 5px 13px; border-radius: 99px; vertical-align: middle;
  font: 600 13px/1 var(--font); color: #ffb35c; background: rgba(255, 140, 40, .12); border: 1px solid rgba(255, 150, 60, .55);
  box-shadow: 0 0 18px rgba(255, 140, 40, .25);
}
   ползущий туман, размытые ветки по краям, паутина справа вверху, редкие искры.
   У постера — плашка сверху, тыква у нижнего левого угла, паутинка в углу постера. Всё — pointer-events: none */
.hw-scene { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hw-scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 12, 24, .5), rgba(6, 12, 24, .3) 55%, rgba(6, 12, 24, .1)); }
.hw-branch { position: absolute; bottom: 4%; width: clamp(260px, 30vw, 520px); opacity: .9; filter: blur(2.5px) brightness(.85); }
.hw-branch.l { left: -4%; }
.hw-branch.r { right: -5%; transform: scaleX(-1); filter: blur(4px) brightness(.7); opacity: .6; }
.hw-web { position: absolute; top: 0; right: 0; width: clamp(200px, 20vw, 340px); opacity: .85; transform-origin: 100% 0; animation: hwsway 7s ease-in-out infinite alternate; }
@keyframes hwsway { from { transform: rotate(0); } to { transform: rotate(-1.2deg); } }
.hw-fog { position: absolute; left: 0; bottom: 2%; width: 200%; height: 34%; display: flex; opacity: .8; animation: hwfog 70s linear infinite; }
.hw-fog[hidden] { display: none; }
.hw-fog img { width: 50%; height: 100%; object-fit: fill; }
.hw-fog img + img { transform: scaleX(-1); }
@keyframes hwfog { to { transform: translateX(-50%); } }
/* Живой дым (js/fog.js, WebGL): нижняя половина шапки, считается в половинном разрешении — растягиваем мягко */
.hw-smoke { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; opacity: 0; transition: opacity 2.2s ease; }
.hw-smoke.on { opacity: 1; }
@media (max-width: 760px) { .hw-smoke { height: 45%; } }
.hw-sparks i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; flex: none; background: #ffb050; box-shadow: 0 0 6px 1px rgba(255, 140, 40, .8); opacity: 0; animation: hwspark var(--d) ease-in-out var(--dl) infinite; }
@keyframes hwspark { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 70% { opacity: .6; } 100% { opacity: 0; transform: translate(24px, -120px); } }
.mv-hero.hw .mv-poster { position: relative; }
.mv-poster img.hw-badge, .mv-poster img.hw-pumpkin, .mv-poster .hw-pweb img { height: auto; object-fit: contain; }
.hw-badge { display: block; margin: 0 0 6px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); animation: seasonin .7s var(--ease-out) both; }
.mv-poster img.hw-pumpkin { position: absolute; left: -22%; bottom: -9%; width: 52%; z-index: 2; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(255, 130, 30, .3)); }
.hw-pweb { position: absolute; top: 0; left: 0; width: 46%; aspect-ratio: 1 / .6; overflow: hidden; pointer-events: none; opacity: .8; }
.hw-pweb img { width: 100%; transform: scaleX(-1); }
:root[data-theme="light"] .hw-scene { display: none; }
@media (max-width: 1023px) {
  .hw-branch, .hw-pweb { display: none; }
  .hw-web { width: 150px; opacity: .6; }
  .mv-poster img.hw-pumpkin { left: -10%; bottom: -6%; width: 34%; }
}
@media (prefers-reduced-motion: reduce) { .hw-fog, .hw-web, .hw-sparks i { animation: none; } .hw-sparks { display: none; } }
/* Светлая тема: тёмная праздничная картинка смотрелась бы чужеродно — только плашка */
:root[data-theme="light"] .season-bg { display: none; }
/* ---------- Осень и Новый год (season.js, даты — seasonNow) ----------
   Осень: тёплое свечение в шапке каталога и падающие листья; Новый год: холодное свечение, снег, гирлянда на шапке сайта */
.season-autumn { background-image: radial-gradient(60% 70% at 85% 10%, rgba(232, 116, 42, .35), transparent 70%), radial-gradient(40% 50% at 55% 0%, rgba(217, 72, 31, .22), transparent 70%); }
.season-newyear { background-image: radial-gradient(60% 70% at 85% 5%, rgba(110, 170, 255, .28), transparent 70%), radial-gradient(35% 45% at 50% 0%, rgba(200, 225, 255, .14), transparent 70%); }
.season-chip-autumn { color: #ffb070; }
.season-chip-newyear { color: #bfe0ff; background: rgba(120, 180, 255, .12); border-color: rgba(140, 190, 255, .5); box-shadow: 0 0 18px rgba(120, 180, 255, .25); }
.sz-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sz-leaves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: size; }
.sz-leaves i { position: absolute; top: -40px; width: var(--s); height: var(--s); flex: none; color: var(--c); opacity: 0; animation: szfall var(--d) linear var(--dl) infinite; }
.sz-leaves svg { display: block; width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); animation: szsway var(--sw) ease-in-out infinite alternate; }
@keyframes szfall {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: .9; }
  85% { opacity: .85; }
  100% { transform: translate(var(--x), calc(100cqh + 60px)); opacity: 0; }
}
@keyframes szsway { from { transform: rotate(-35deg) rotateY(0deg); } to { transform: rotate(40deg) rotateY(160deg); } }
.sz-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 2s ease; }
.sz-snow.on { opacity: 1; }
.garland { position: absolute; left: 34px; right: 34px; top: calc(100% - 6px); height: 34px; pointer-events: none; }
.garland svg { position: absolute; inset: 0; width: 100%; height: 34px; overflow: visible; }
.garland i { position: absolute; width: 7px; height: 11px; min-width: 7px; flex: none; margin: 2px 0 0 -3.5px; border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%; background: var(--c); box-shadow: 0 0 8px 2px var(--c); animation: glblink 1.8s ease-in-out var(--dl) infinite alternate; }
.garland i::before { content: ''; position: absolute; left: 1.5px; top: -3px; width: 4px; height: 4px; border-radius: 1px; background: #3a463e; }
@keyframes glblink { from { opacity: .35; box-shadow: 0 0 3px 0 var(--c); } to { opacity: 1; box-shadow: 0 0 10px 3px var(--c); } }
:root[data-theme="light"] .sz-layer { display: none; }
:root[data-theme="light"] .garland i { box-shadow: none; }
@media (max-width: 700px) { .garland { left: 22px; right: 22px; } .garland i:nth-child(odd) { display: none; } }
@media (prefers-reduced-motion: reduce) { .garland i { animation: none; opacity: .9; } }
:root[data-theme="light"] .season-chip { color: #c25a00; background: rgba(255, 140, 40, .12); }
@media (max-width: 700px) { .season-bg { height: 400px; background-position: 72% top; } }
@media (prefers-reduced-motion: reduce) { .season-bg { animation: none; } }
.filters { display: grid; gap: 18px; margin: 20px auto 40px; }
.filter-genres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.filter-genres::-webkit-scrollbar { display: none; }
.filter-genres .chip { flex: none; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }

.select { position: relative; }
.select-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: border-color .3s, background .3s; }
.select-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.select-btn svg { width: 17px; color: var(--muted); }
.select-btn svg:last-child { transform: rotate(90deg); transition: transform .5s var(--ease-spring); }
.select.open .select-btn svg:last-child { transform: rotate(-90deg); }
.select-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px; padding: 6px; border-radius: 20px;
  background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform-origin: top right; transform: scale(.9) translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease-spring), opacity .3s, visibility 0s .5s;
}
.select.open .select-menu { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease-spring), opacity .3s; }
.select-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 42px; padding: 0 14px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.select.open .select-menu button { animation: chipin .5s var(--ease-out) backwards; animation-delay: calc(var(--i) * 25ms); }
.select-menu button:hover { background: var(--surface-2); color: var(--text); }
.select-menu button svg { width: 16px; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .5s var(--ease-spring); color: var(--accent); }
.select-menu button.on { color: var(--text); }
.select-menu button.on svg { opacity: 1; transform: none; }

.skel .card-core { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 250% 100%; animation: shimmer 1.6s linear infinite; }
.skel-line { height: 12px; margin: 14px 6px 0; border-radius: 6px; background: var(--surface-2); }
.skel-line.short { width: 50%; margin-top: 8px; }
@keyframes shimmer { to { background-position: -250% 0; } }
.sentinel { display: grid; place-items: center; height: 120px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); opacity: 0; animation: spin .8s linear infinite; transition: opacity .3s; }
.sentinel.busy .spinner { opacity: 1; }
.sentinel.done { height: 40px; }

.empty { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; padding: 60px 20px; }
.empty.small { padding: 40px 20px; }
.empty-orb { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgb(var(--tint) / .3), rgb(var(--tint) / .05)); color: var(--accent); margin-bottom: 20px; animation: float 5s var(--ease-io) infinite alternate; }
.empty.small .empty-orb { width: 64px; height: 64px; }
.empty-orb::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgb(var(--tint) / .35); animation: spin 18s linear infinite; }
.empty-orb svg { width: 40%; }
.empty h3 { margin: 0; font: 500 24px var(--font-display); letter-spacing: -.03em; }
.empty p { margin: 8px 0 24px; }
@keyframes float { to { transform: translateY(-10px); } }

/* ---------- Кинозал ---------- */
.cinema-list { display: grid; gap: 26px; }
.cinema-item { display: block; }
.cinema-item .bezel-core { min-height: clamp(380px, 46vw, 600px); color: #fff; }
.cinema-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease-out); }
.cinema-item:hover img { transform: scale(1.05); }
.cinema-grad { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 5, 7, .9), rgba(5, 5, 7, .5) 50%, transparent), linear-gradient(0deg, rgba(5, 5, 7, .6), transparent 50%); }
.cinema-body { position: absolute; left: 0; bottom: 0; max-width: 640px; padding: clamp(24px, 4vw, 56px); }
.cinema-num { font: 500 14px var(--font-display); color: var(--accent); letter-spacing: .2em; }
.cinema-body h2 { margin: 10px 0 12px; font: 500 clamp(34px, 5vw, 72px)/.95 var(--font-display); letter-spacing: -.045em; }
.cinema-body p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cinema-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.cinema-meta .pill-tag { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .15); }

/* =========================================================
   Плеер
   ========================================================= */
.player { position: absolute; inset: 0; background: #000; color: #fff; overflow: hidden; outline: none; user-select: none; -webkit-user-select: none; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player.is-fs { border-radius: 0; }
.player video::cue { background: rgba(0, 0, 0, .6); color: #fff; font-family: var(--font); font-size: 1.05em; line-height: 1.4; }
.pl-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent 34%), linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 25%); transition: opacity .6s var(--ease-out); }
.player:not(.started) .pl-shade { background: radial-gradient(circle, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)), linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 40%); }
.player.idle { cursor: none; }
.player.idle .pl-shade, .player.idle .pl-bar, .player.idle .pl-top { opacity: 0; }
.player.idle .pl-bar { transform: translateY(16px); pointer-events: none; } /* спрятанную панель не нажать случайно (телефон) */

.pl-big {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .6s var(--ease-spring), opacity .5s var(--ease-out), background .3s;
}
.pl-big:hover { transform: scale(1.08); background: var(--accent); color: #1c1306; }
.pl-big svg { width: 36px; height: 36px; }
.player[data-paused="false"] .pl-big { opacity: 0; transform: scale(1.4); pointer-events: none; }
.pp path { fill: currentColor; }
.pl-loader { position: absolute; left: 50%; top: 50%; display: flex; gap: 6px; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pl-loader i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: dots 1s var(--ease-io) infinite alternate; }
.pl-loader i:nth-child(2) { animation-delay: .15s; } .pl-loader i:nth-child(3) { animation-delay: .3s; }
.player.loading .pl-loader { opacity: 1; }
@keyframes dots { from { transform: translateY(6px); opacity: .3; } to { transform: translateY(-6px); opacity: 1; } }
.pl-flash { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; }
.pl-flash svg { width: 36px; }
.pl-flash.go { animation: flash .7s var(--ease-out); }
@keyframes flash { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }

.pl-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; transition: opacity .6s var(--ease-out); pointer-events: none; }
.pl-title { display: flex; align-items: center; gap: 10px; font: 500 15px var(--font-display); letter-spacing: -.02em; }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255, 77, 77, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); } }
.pl-badges { display: flex; gap: 8px; }
.pl-q-badge, .pl-lic { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .06em; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.pl-lic { font-weight: 600; letter-spacing: 0; opacity: .8; }
.pl-lic:empty { display: none; }
.pl-toast { position: absolute; left: 50%; top: 70px; padding: 9px 16px; border-radius: 99px; font-size: 13px; font-weight: 700; background: rgba(0, 0, 0, .6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); transform: translate(-50%, -10px); opacity: 0; transition: transform .5s var(--ease-spring), opacity .3s; pointer-events: none; white-space: nowrap; }
.pl-toast.show { transform: translate(-50%, 0); opacity: 1; }

.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 18px 14px; transition: opacity .6s var(--ease-out), transform .6s var(--ease-smooth); }
.player:not(.started) .pl-bar { opacity: 0; pointer-events: none; transform: translateY(16px); }
.pl-progress { position: relative; height: 22px; display: flex; align-items: center; cursor: var(--cur-hover); touch-action: none; }
.pl-track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; transition: height .35s var(--ease-spring); }
.pl-progress:hover .pl-track, .pl-progress.drag .pl-track { height: 7px; }
.pl-buf, .pl-hover, .pl-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); }
.pl-buf { background: rgba(255, 255, 255, .25); transition: transform .4s; }
.pl-hover { background: rgba(255, 255, 255, .2); opacity: 0; transition: opacity .3s; }
.pl-progress:hover .pl-hover { opacity: 1; }
.pl-fill { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.pl-knob { position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgb(var(--tint) / .35), 0 3px 8px rgba(0, 0, 0, .4); transform: scale(0); transition: transform .4s var(--ease-spring); pointer-events: none; }
.pl-progress:hover .pl-knob, .pl-progress.drag .pl-knob { transform: scale(1); }
.pl-tip { position: absolute; bottom: 26px; left: 0; padding: 5px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .75); transform: translateX(-50%) translateY(6px); opacity: 0; transition: opacity .25s, transform .35s var(--ease-spring); pointer-events: none; font-variant-numeric: tabular-nums; }
.pl-progress:hover .pl-tip, .pl-progress.drag .pl-tip { opacity: 1; transform: translateX(-50%); }
.pl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.pl-group { display: flex; align-items: center; gap: 2px; min-width: 0; }
.pl-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: rgba(255, 255, 255, .88); transition: background .3s, color .3s, transform .45s var(--ease-spring); flex: none; }
.pl-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pl-btn:active { transform: scale(.88); }
.pl-btn svg { width: 22px; height: 22px; }
.pl-btn .pp { width: 24px; height: 24px; }
.pl-chip { width: auto; padding: 0 14px 0 10px; border-radius: 99px; grid-auto-flow: column; gap: 8px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); margin-right: 4px; }
.pl-chip svg { width: 18px; height: 18px; }
.pl-time { margin-left: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-time b { color: #fff; font-weight: 700; }
.pl-fs .fs-out { display: none; }
.player.is-fs .pl-fs .fs-in { display: none; }
.player.is-fs .pl-fs .fs-out { display: block; }
.pl-fs:hover svg { transform: scale(1.12); transition: transform .4s var(--ease-spring); }

.pl-vol { display: flex; align-items: center; }
.pl-vol-slider { position: relative; width: 0; height: 30px; display: flex; align-items: center; overflow: hidden; transition: width .5s var(--ease-smooth); }
.pl-vol:hover .pl-vol-slider, .pl-vol:focus-within .pl-vol-slider { width: 90px; }
.pl-vol-slider input { position: relative; z-index: 1; width: 80px; margin: 0 6px 0 4px; height: 30px; opacity: 0; cursor: var(--cur-hover); }
.pl-vol-slider::before { content: ''; position: absolute; left: 4px; width: 80px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.pl-vol-fill { position: absolute; left: 4px; width: 80px; height: 4px; border-radius: 4px; background: #fff; transform-origin: left; pointer-events: none; }
.pl-mute .wave { transition: opacity .3s, transform .45s var(--ease-spring); transform-origin: 11px 12px; }
.pl-mute .mute-x { opacity: 0; transform: scale(.4); transform-origin: 18px 12px; transition: opacity .3s, transform .45s var(--ease-spring); }
.pl-vol[data-level="1"] .w2 { opacity: 0; transform: scale(.6); }
.pl-vol[data-level="0"] .wave { opacity: 0; transform: scale(.6); }
.pl-vol[data-level="0"] .mute-x { opacity: 1; transform: none; }

.pl-menu {
  position: absolute; right: 16px; bottom: 82px; width: min(340px, calc(100% - 32px)); max-height: calc(100% - 110px); display: flex; flex-direction: column;
  padding: 8px; border-radius: 22px; background: rgba(16, 16, 20, .82); backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform-origin: bottom right; transform: scale(.88) translateY(10px); opacity: 0; visibility: hidden; filter: blur(6px);
  transition: transform .55s var(--ease-spring), opacity .3s, filter .4s, visibility 0s .55s;
}
.player.menu-open .pl-menu { transform: none; opacity: 1; visibility: visible; filter: none; transition: transform .55s var(--ease-spring), opacity .3s, filter .4s; }
.pl-tabs { position: relative; display: flex; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .06); overflow-x: auto; scrollbar-width: none; flex: none; }
.pl-tabs button { position: relative; z-index: 1; flex: 1 0 auto; height: 34px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .6); transition: color .3s; }
.pl-tabs button.on { color: #1c1306; }
.pl-tab-pill { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 12px; background: var(--accent); transition: transform .5s var(--ease-smooth), width .5s var(--ease-smooth); }
.pl-list { display: grid; gap: 2px; margin-top: 6px; overflow-y: auto; }
/* Выбор внутри плеера («Плеер 2»): кнопки «Источник», «Серии», «Следующая серия»; серии — сеткой номеров */
.pl-btn[hidden] { display: none; }
.pl-voice-text { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-tabs button { white-space: nowrap; }
.pl-list.eps { display: block; }
.pl-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; padding: 4px 2px; }
.pl-ep { height: 40px; min-width: 0; padding: 0 6px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); font: 700 13px var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.pl-ep:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pl-ep.on { background: var(--accent); border-color: var(--accent); color: #1c1306; }
/* Переключатель над списком: «Источник» над озвучками, «Сезон» / «Релиз» над сериями */
.pl-pick { display: grid; gap: 6px; padding: 6px 4px 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pl-pick-l { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.pl-pick-row { display: flex; flex-wrap: wrap; gap: 6px; } /* переносом, а не прокруткой — ничего не уходит за край меню */
.pl-pick-row button { flex: none; height: 32px; max-width: 100%; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); font: 700 12.5px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, color .2s; }
.pl-pick-row button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pl-pick-row button.on { background: var(--accent); border-color: var(--accent); color: #1c1306; }
.pl-pick + .pl-eps { margin-top: 4px; }
/* «Релиз: Наруто [ТВ-1] · 2002 ▾» — названия длинные, поэтому одной строкой со списком по нажатию */
.pl-drop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; margin-bottom: 6px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #fff; text-align: left; transition: background .2s; }
.pl-drop:hover { background: rgba(255, 255, 255, .12); }
.pl-drop b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pl-drop svg { width: 14px; flex: none; opacity: .7; transform: rotate(90deg); transition: transform .3s var(--ease-spring); }
.pl-drop.open svg { transform: rotate(-90deg); }
.pl-drop .pl-pick-l { flex: none; }
/* Кнопок с выбором больше — в узком плеере (комната с чатом, телефон) прячем подписи и второстепенное, чтобы ряд не вылезал */
.player.has-src { container-type: inline-size; }
/* Есть выбор источника / озвучки — панель видна и до запуска: озвучку и серию можно выбрать заранее */
.player.has-src:not(.started) .pl-bar { opacity: 1; pointer-events: auto; transform: none; }
@container (max-width: 760px) {
  .player.has-src .pl-chip-text { display: none; }
  .player.has-src .pl-chip { width: 42px; padding: 0; margin: 0; background: none; border: 0; }
}
@container (max-width: 600px) { .player.has-src .pl-btn[data-act="pip"], .player.has-src .pl-time { display: none; } }
@container (max-width: 470px) { .player.has-src .pl-btn[data-act="back"], .player.has-src .pl-btn[data-act="fwd"] { display: none; } }
/* Узкий плеер (телефон 381–600 px, колонка комнаты): правило @media (max-width: 380px) сюда не доставало —
   на iPhone 390–430 px была огромная ▶, заголовок в три строки и нижняя панель шире плеера. Меряем сам плеер */
.player { container: pl / inline-size; }
.pl-title { min-width: 0; }
.pl-title-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container pl (max-width: 600px) {
  .pl-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .pl-big svg { width: 26px; height: 26px; }
  .pl-flash { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .pl-top { padding: 12px 14px; gap: 8px; }
  .pl-title { font-size: 13px; gap: 8px; }
  .pl-badges { gap: 6px; flex: none; }
  .pl-lic, .pl-chip-text, .pl-btn[data-act="pip"] { display: none; }
  .pl-chip { width: 38px; padding: 0; margin: 0; background: none; border: 0; }
  .pl-bar { padding: 0 12px 9px; }
  .pl-row { gap: 4px; margin-top: 0; }
  .pl-btn { width: 38px; height: 38px; }
  .pl-btn svg { width: 20px; height: 20px; }
  .pl-time { margin-left: 4px; font-size: 12px; }
  .pl-menu { bottom: 56px; right: 8px; width: calc(100% - 16px); }
}
/* Телефон: меню плеера — панель снизу экрана поверх страницы (player.js переносит его в body). В плеере высотой ~190 px
   на список оставалось 75 px — подписи обрезались, список не листался (iPhone, 17.10) */
.pl-menu.sheet {
  position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto;
  max-height: min(62vh, 480px); z-index: 1001; padding: 10px; border-radius: 24px; color: #fff;
  background: rgba(18, 18, 22, .96); transform: translateY(24px); transform-origin: bottom center; filter: none;
}
.pl-menu.sheet.open { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease-spring), opacity .25s; }
.pl-menu.sheet .pl-list { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pl-sheet-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; }
.pl-sheet-scrim.open { opacity: 1; }
@container pl (max-width: 470px) { .pl-btn[data-act="back"], .pl-btn[data-act="fwd"] { display: none; } }
@container pl (max-width: 340px) { .pl-time { display: none; } }
/* Узкий плеер (телефон): меню — на всю площадь видео над панелью, иначе от него оставалась полоска в 70 px */
@container (max-width: 560px) {
  .player.has-src .pl-menu { left: 6px; right: 6px; top: 6px; bottom: 54px; width: auto; max-height: none; padding: 6px; border-radius: 16px; }
  .player.has-src .pl-tabs button { height: 30px; }
  .player.has-src .pl-pick { padding: 4px 2px 8px; }
  .player.has-src .pl-ep { height: 34px; }
}
.pl-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 12px; border-radius: 14px; text-align: left; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); transition: background .25s; animation: itemin .45s var(--ease-out) backwards; animation-delay: calc(var(--i) * 30ms); }
@keyframes itemin { from { opacity: 0; transform: translateX(-10px); } }
.pl-item:hover { background: rgba(255, 255, 255, .08); }
.pl-item.on { color: #fff; }
.pl-item small { display: block; font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .45); }
.pl-radio { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); transition: border-color .3s; }
.pl-radio span { position: absolute; inset: 3.5px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .45s var(--ease-spring); }
.pl-item.on .pl-radio { border-color: var(--accent); }
.pl-item.on .pl-radio span { transform: scale(1); }

/* =========================================================
   Поиск, модалка, лайтбокс, тосты
   ========================================================= */
.search-overlay { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; padding: calc(var(--sat) + 12vh) 16px calc(var(--sab) + 16px); visibility: hidden; transition: visibility 0s .5s; }
.search-overlay.open { visibility: visible; transition: none; }
.search-scrim, .modal-scrim { position: absolute; inset: 0; background: rgba(4, 4, 6, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .5s var(--ease-out); }
:root[data-theme="light"] .search-scrim, :root[data-theme="light"] .modal-scrim { background: rgba(240, 235, 225, .55); }
.open > .search-scrim, .open > .modal-scrim { opacity: 1; }
.search-panel {
  position: relative; width: min(680px, 100%); padding: 8px; border-radius: 28px;
  background: var(--glass-strong); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--line); box-shadow: var(--shadow), var(--hi);
  transform: translateY(-20px) scale(.96); opacity: 0; filter: blur(8px);
  transition: transform .6s var(--ease-spring), opacity .35s, filter .4s;
}
.search-overlay.open .search-panel { transform: none; opacity: 1; filter: none; }
.search-field { position: relative; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 16px 0 18px; border-radius: 21px; background: var(--surface); border: 1px solid var(--line); }
.search-field > svg { width: 22px; color: var(--accent); flex: none; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 18px; font-weight: 600; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .7s linear infinite; opacity: 0; transition: opacity .2s; }
.search-overlay.busy .search-spin { opacity: 1; }
.search-results { max-height: min(60vh, 560px); overflow-y: auto; padding: 4px 2px 2px; }
.sr-title { margin: 14px 12px 8px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.sr-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 28px; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 16px; transition: background .25s; animation: itemin .5s var(--ease-out) backwards; animation-delay: calc(var(--i) * 35ms); }
.sr-item:hover, .sr-item.active { background: var(--surface-2); }
.sr-img { width: 44px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); }
.sr-img img { width: 100%; height: 100%; object-fit: cover; }
.sr-img svg { width: 20px; }
.sr-t { min-width: 0; }
.sr-t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-t small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sr-score { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; }
.sr-score svg { width: 13px; fill: var(--accent); color: var(--accent); }
.sr-go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease-spring); }
.sr-go svg { width: 16px; }
.sr-item:hover .sr-go, .sr-item.active .sr-go { opacity: 1; transform: none; }
.sr-all { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; margin-top: 6px; border-radius: 16px; font-size: 14px; font-weight: 700; color: var(--accent); background: rgb(var(--tint) / .08); transition: background .3s; }
.sr-all:hover, .sr-all.active { background: rgb(var(--tint) / .16); }
.sr-all svg { width: 16px; }
.sr-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; color: var(--muted); text-align: center; }
.sr-empty svg { width: 30px; opacity: .5; }

.modal { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 16px; visibility: hidden; transition: visibility 0s .5s; }
.modal.open { visibility: visible; transition: none; }
.modal-box { position: relative; width: min(1180px, 100%); transform: scale(.6); opacity: 0; transition: transform .7s var(--ease-spring), opacity .35s; }
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-close { position: absolute; right: -6px; top: -56px; z-index: 2; color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); }
:root[data-theme="light"] .modal-close { color: var(--text); background: rgba(255, 255, 255, .7); }
.modal-close:hover svg { transform: rotate(90deg); }
.modal-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9); border: 1px solid var(--line); }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* YouTube не отвечает (в России замедлен) — пояснение поверх пустого плеера */
.modal-slow { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: #f4efe9; background: radial-gradient(80% 80% at 50% 40%, rgb(var(--tint) / .12), transparent 70%), rgba(9, 9, 11, .92); animation: fadeIn .4s ease; }
.modal-slow > svg { width: 34px; height: 34px; color: var(--accent); }
.modal-slow b { font: 600 20px var(--font-display); }
.modal-slow p { margin: 0 0 6px; max-width: 420px; font-size: 14px; color: rgba(244, 239, 233, .7); }
@keyframes fadeIn { from { opacity: 0; } }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 6px 0; color: #fff; }
:root[data-theme="light"] .modal-foot { color: var(--text); }
.modal-foot b { display: block; font: 500 18px var(--font-display); letter-spacing: -.02em; }
.modal-foot small { font-size: 13px; opacity: .6; }
.modal-vids { display: flex; gap: 6px; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; z-index: 76; display: grid; place-items: center; padding: 30px; background: rgba(4, 4, 6, .9); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s .5s; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-out); }
.lightbox img { max-height: 88vh; border-radius: 22px; box-shadow: 0 40px 80px -20px #000; transform: scale(.9); transition: transform .7s var(--ease-spring); }
.lightbox.open img { transform: none; }
.lightbox .modal-close { position: absolute; top: 20px; right: 20px; color: #fff; }

/* На всю ширину с центровкой: раньше контейнер начинался от середины экрана, и на телефоне текст рвался на 4 строки */
.toasts { position: fixed; left: 16px; right: 16px; bottom: calc(var(--sab) + 24px); z-index: 85; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 99px;
  font-size: 14px; font-weight: 700; background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft), var(--hi); transform: translateY(30px) scale(.9); opacity: 0;
  transition: transform .6s var(--ease-spring), opacity .35s;
}
.toast.in { transform: none; opacity: 1; }
/* Длинный текст в две строки — не «овал», а скруглённая плашка не шире экрана */
.toast { max-width: min(440px, calc(100vw - 32px)); border-radius: 20px; line-height: 1.35; }
.toast.bump { animation: toastbump .35s var(--ease-spring); }
@keyframes toastbump { 40% { transform: scale(1.04); } }
@media (max-width: 600px) { .toast { font-size: 13px; padding: 8px 14px 8px 10px; gap: 8px; } .toast-ic { width: 24px; height: 24px; } }
.toast.out { transform: translateY(-10px) scale(.95); opacity: 0; }
.toast:not(:has(.toast-ic)) { padding-left: 18px; }
.toast-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.toast-ic svg { width: 15px; }

/* Частицы */
.burst { position: fixed; z-index: 95; width: 0; height: 0; pointer-events: none; --c: #ff5d6c; }
.burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); animation: particle .8s var(--ease-out) forwards; }
.burst i:nth-child(3n) { background: var(--accent); }
.burst b { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--c); animation: burstring .6s var(--ease-out) forwards; }
@keyframes particle { 0% { transform: translate(0, 0) scale(var(--s)); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; } }
@keyframes burstring { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Появление при скролле ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), filter .45s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- View Transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
.page-vt::view-transition-old(root) { animation-name: vt-out; }
.page-vt::view-transition-new(root) { animation-name: vt-in; }
/* Обычная смена страницы — без ожидания, лёгкое проявление новой */
#view > section:first-child, #view > .hero { animation: viewin .22s ease-out; }
@keyframes viewin { from { opacity: .35; } }
@keyframes vt-out { to { opacity: 0; transform: scale(.98); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.02); } }
::view-transition-group(poster) { animation-duration: .42s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); z-index: 50; }
::view-transition-old(poster), ::view-transition-new(poster) { height: 100%; object-fit: cover; border-radius: 20px; overflow: hidden; }
.theme-vt::view-transition-old(root), .theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-vt::view-transition-old(root) { z-index: 1; }
.theme-vt::view-transition-new(root) { z-index: 2; }
::view-transition-group(island) { z-index: 60; }
.island { view-transition-name: island; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-side { display: none; }
  .bento { grid-auto-rows: 200px; }
  .bento-tile.t0 { grid-column: span 12; }
  .bento-tile.t1, .bento-tile.t2 { grid-column: span 6; }
  .rate-core { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  /* Звёзды оценки — на всю ширину блока, все 10 всегда на экране (раньше 9 и 10 уезжали за край телефона) */
  .rate-core .stars { justify-self: stretch; width: 100%; max-width: 480px; gap: 0; }
  .rate-core .star { flex: 1 1 0; min-width: 0; width: auto; height: 44px; }
  .rate-core .star svg { width: min(30px, 88%); height: auto; aspect-ratio: 1; }
}
/* Компактная шапка: меню прячется в бургер. Включается на узких экранах и когда шапка не помещается целиком
   (телефон боком, окно браузера средней ширины) — иначе кнопка профиля уезжала за край экрана */
body.nav-tight .nav, body.nav-tight .search-trigger kbd { display: none; }
body.nav-tight .search-trigger { width: 42px; padding: 0; }
body.nav-tight .burger { display: block; }
body.nav-tight .island { padding-left: 16px; }
@media (max-width: 900px) {
  .nav, .search-trigger kbd { display: none; }
  .search-trigger { width: 42px; padding: 0; }
  .burger { display: block; }
  .island { padding-left: 16px; }
  .mv-grid { grid-template-columns: minmax(0, 1fr); }
  .mv-grid > * { min-width: 0; }
  .mv-poster { max-width: 220px; }
  .mv-poster .bezel { transform: none; }
}
@media (max-width: 767px) {
  .island, body.scrolled .island { width: calc(100% - 24px - var(--sax)); min-width: 0; max-width: none; }
  .island { top: calc(var(--sat) + 10px); }
  body.scrolled .island { top: calc(var(--sat) + 8px); }
  .hero { min-height: 92dvh; }
  .hero-inner { padding-top: 110px; padding-bottom: 70px; }
  .hero-vignette { background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 7, .75) 40%, rgba(5, 5, 7, .35) 75%, rgba(5, 5, 7, .55)); }
  :root[data-theme="light"] .hero-vignette { background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 7, .7) 22%, rgba(5, 5, 7, .3) 75%, rgba(5, 5, 7, .45)); }
  .btn { height: 52px; }
  .row-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .row-ctrl .icon-btn { display: none; }
  .row-track { grid-auto-columns: 42vw; scroll-snap-type: x mandatory; }
  .row-track .card { scroll-snap-align: start; }
  .row-track.ranked { grid-auto-columns: 58vw; }
  .bento { grid-auto-rows: 260px; gap: 14px; }
  .bento-tile.t0, .bento-tile.t1, .bento-tile.t2, .bento-tile.t3 { grid-column: span 12; grid-row: span 1; }
  /* minmax(0, 1fr): длинное название в одну строку не раздвигает колонку (иначе сетка шире экрана и телефон уменьшает всю страницу) */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .mv-inner { padding-top: 96px; }
  .mv-rings { gap: 16px; }
  .ring { grid-template-columns: 56px auto; }
  .ring svg, .ring-num { width: 56px; height: 56px; }
  .mv-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .mv-actions .btn-glass { justify-content: center; }
  .island { gap: 6px; padding: 6px 6px 6px 14px; }
  .island-actions { gap: 4px; margin-left: 0; }
  .island .icon-btn, .burger { width: 38px; height: 38px; }
  .burger i:nth-child(1) { top: 14px; } .burger i:nth-child(2) { top: 22px; }
  body.menu-open .burger i:nth-child(1), body.menu-open .burger i:nth-child(2) { top: 18px; }
  .burger i { left: 12px; right: 12px; }
  .tt-track { width: 58px; height: 34px; }
  .tt-knob { width: 26px; height: 26px; transform: translateX(24px); }
  .logo { gap: 8px; font-size: 13px; letter-spacing: .26em; }
}
@media (max-width: 380px) {
  .logo span { display: none; }
  .stars { gap: 0; }
  .star { width: 30px; height: 36px; }
  .star svg { width: 25px; height: 25px; }
  .notice { flex-direction: column; }
  .pl-time, .pl-chip-text, .pl-btn[data-act="back"], .pl-btn[data-act="fwd"], .pl-btn[data-act="pip"], .pl-lic { display: none; }
  .pl-chip { width: 42px; padding: 0; margin: 0; background: none; border: 0; }
  .pl-top { padding: 14px 16px; }
  .pl-menu { bottom: 62px; right: 8px; width: calc(100% - 16px); }
  .bezel.big { padding: 5px; border-radius: 26px; }
  .bezel.big > .bezel-core { border-radius: 21px; }
  .c-item { gap: 10px; }
  .tf-play { width: 72px; height: 72px; }
  .modal-close { top: -52px; right: 0; }
}
/* Телефон боком: экран низкий — шапка ближе к краю, меню в две колонки, чтобы всё помещалось без прокрутки */
@media (orientation: landscape) and (max-height: 520px) {
  .island { top: calc(var(--sat) + 10px); }
  body.scrolled .island { top: calc(var(--sat) + 8px); }
  .menu-overlay { align-content: start; padding-top: calc(var(--sat) + 84px); }
  .menu-overlay nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; }
  .menu-overlay a { font-size: clamp(24px, 7.5vh, 36px); }
}

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  [data-reveal] { transform: none; filter: none; }
  .marquee-row { animation: none !important; }
  .grain { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .island, .search-panel, .pl-menu, .toast, .select-menu { backdrop-filter: none; background: var(--elev); }
}

/* =========================================================
   Производительность: без постоянных перерисовок
   ========================================================= */
/* Зерно — неподвижное и без смешивания слоёв */
.grain { animation: none; inset: 0; opacity: .035; }
:root[data-theme="light"] .grain { mix-blend-mode: normal; opacity: .04; }
/* Световые пятна — мягкие градиенты без фильтра размытия и без движения */
.orb { filter: none; animation: none; will-change: auto; }
/* Стекло без размытия: плотный полупрозрачный фон вместо backdrop-filter */
.island, .menu-overlay, .search-panel, .search-scrim, .modal-scrim, .toast, .lightbox,
.eyebrow.glass, .btn-glass, .pill-tag, .card-score, .card-fav, .hero-thumb, .tf-label, .back-btn,
.select-menu, .mv-hero .icon-btn, .hero .fav-btn { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.island { background: var(--glass-strong); }
.search-scrim, .modal-scrim { background: rgba(4, 4, 6, .78); }
:root[data-theme="light"] .search-scrim, :root[data-theme="light"] .modal-scrim { background: rgba(240, 235, 225, .85); }
.search-panel, .select-menu, .toast { background: var(--elev); }
.hero-thumb { background: rgba(14, 14, 18, .72); }
.hero-thumb.on { background: rgba(28, 26, 30, .9); }
.btn-glass { background: rgba(20, 20, 24, .55); }
.card-score, .card-fav, .tf-label { background: rgba(10, 10, 12, .72); }
/* Фон страницы фильма — без бесконечного «дыхания» огромной картинки */
.mv-backdrop { animation: none; transform: scale(1.04); }
/* Появление при прокрутке — без размытия */
[data-reveal] { filter: none !important; transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
/* Окно поиска и меню плеера появляются без размытия */
.search-panel, .player .pl-menu { filter: none !important; }

/* ---------- Сериалы: переключатель в каталоге, сезоны и серии ---------- */
.kind-seg { justify-self: start; }
.kind-seg button { display: inline-flex; align-items: center; gap: 8px; }
.kind-seg svg { width: 16px; height: 16px; }
.seasons { margin-top: clamp(56px, 8vw, 110px); }
.season-seg { margin-bottom: 26px; }
.season-load { display: grid; place-items: center; min-height: 180px; }
.season-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.season-head h3 { font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); font-weight: 500; margin: 2px 0 6px; }
.season-head .muted { display: flex; align-items: center; gap: 4px; margin: 0; }
.season-head .muted svg { width: 14px; height: 14px; color: var(--accent); }
.season-poster { width: 92px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); flex: none; }
.season-ov { color: var(--muted); max-width: 72ch; margin: 10px 0 0; line-height: 1.6; }
.episodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ep { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 18px; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), border-color .3s; transition-delay: calc(var(--i, 0) * 40ms); }
.ep.in { opacity: 1; transform: none; }
.ep:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.ep.soon { opacity: .6; }
.ep.soon.in { opacity: .6; }
.ep-still { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--elev); }
.ep-still img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-still img.dim { opacity: .35; filter: grayscale(.6); }
.ep-num { position: absolute; left: 8px; bottom: 8px; min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; border-radius: 99px; background: rgba(10, 10, 12, .72); color: #fff; font-weight: 700; font-size: 13px; }
.ep-body { min-width: 0; padding: 4px 4px 4px 0; }
.ep-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ep-top b { font-size: 16px; }
.ep-score { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); flex: none; }
.ep-score svg { width: 13px; height: 13px; color: var(--accent); }
.ep-body small { display: block; margin-top: 4px; }
.ep-body p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .ep { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .season-poster { width: 64px; }
}
@media (prefers-reduced-motion: reduce) { .ep { transition: none; opacity: 1; transform: none; } }

/* ---------- Страница актёра ---------- */
.ps-hero { padding-top: 120px; padding-bottom: 30px; }
.ps-grid { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 30px; }
.ps-photo .bezel { box-shadow: var(--shadow); }
.ps-photo .bezel-core { aspect-ratio: 2 / 3; display: grid; place-items: center; background: var(--surface-2); }
.ps-photo img { width: 100%; height: 100%; object-fit: cover; }
.ps-nophoto { color: var(--faint); }
.ps-nophoto svg { width: 72px; }
.ps-name { margin: 8px 0 0; font-size: clamp(36px, 5.4vw, 72px); line-height: 1; }
.ps-facts { margin-top: 26px; }
.ps-bio { margin-top: 30px; max-width: 760px; display: grid; gap: 12px; justify-items: start; }
.ps-bio-text { color: var(--muted); font-size: 15.5px; line-height: 1.7; max-height: 11.9em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.ps-bio-text.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.ps-bio-text p { margin: 0 0 .8em; }
.ps-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ps-links svg { width: 26px; }
.ps-films { padding-top: 20px; padding-bottom: 40px; }
.ps-list { display: grid; gap: 4px; margin-top: 18px; }
.ps-list[hidden] { display: none; }
.ps-kind { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--accent); background: rgb(var(--tint) / .12); vertical-align: 1px; }
.ps-credit { display: grid; grid-template-columns: 52px 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 14px; color: inherit; text-decoration: none; transition: background .25s; }
.ps-credit:hover { background: var(--surface-2); }
.ps-year { font: 600 15px var(--font-display); color: var(--muted); }
.ps-thumb { width: 40px; height: 58px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ps-thumb svg { width: 18px; }
.ps-ct { display: grid; gap: 2px; min-width: 0; }
.ps-ct b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-ct small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-credit .card-score { position: static; }
/* Карточка актёра в результатах поиска */
.actor-found:empty { display: none; }
.actor-card { display: flex; align-items: center; gap: 18px; padding: 14px 18px 14px 14px; margin-bottom: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .3s, background .3s; }
.actor-card:hover { border-color: var(--accent); background: var(--surface-2); }
.actor-ph { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); }
.actor-ph img { width: 100%; height: 100%; object-fit: cover; }
.actor-ph svg { width: 32px; }
.actor-t { flex: 1; min-width: 0; display: grid; gap: 4px; }
.actor-t b { font: 600 22px var(--font-display); }
.actor-t small { color: var(--muted); font-size: 13.5px; }
.sr-person .sr-img { border-radius: 50%; width: 44px; height: 44px; }
.sr-person { grid-template-columns: 44px minmax(0, 1fr) 28px; }
@media (max-width: 760px) {
  .ps-hero { padding-top: 96px; }
  .ps-grid { grid-template-columns: minmax(0, 1fr); }
  .ps-photo { max-width: 220px; }
  .ps-credit { grid-template-columns: 44px 36px minmax(0, 1fr) auto; gap: 10px; padding: 8px 6px; }
  .actor-card { flex-wrap: wrap; }
  .actor-card .btn { width: 100%; justify-content: center; }
}

/* ---------- Панель фильтров каталога ---------- */
.fbar { position: relative; z-index: 5; margin: 18px auto 34px; display: grid; gap: 12px; }
.fbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.fbar-row .kind-seg { justify-self: auto; }
.fbar-sep { width: 1px; height: 28px; background: var(--line-2); margin: 0 4px; }
.fbar-sp { flex: 1; }
.fd { position: relative; }
.fd-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s; }
.fd-btn:hover, .fd.open .fd-btn { background: var(--surface-2); color: var(--text); }
.fd-btn svg { width: 16px; height: 16px; flex: none; }
.fd-btn svg:last-child { width: 14px; transform: rotate(90deg); opacity: .6; transition: transform .4s var(--ease-spring); }
.fd.open .fd-btn svg:last-child { transform: rotate(-90deg); }
.fd.active .fd-btn { color: var(--accent); background: rgb(var(--tint) / .1); border-color: rgb(var(--tint) / .35); }
.fd-pop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; width: 280px; max-width: calc(100vw - 32px); padding: 14px; border-radius: 22px; background: var(--elev); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), var(--hi); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .2s, transform .35s var(--ease-spring), visibility 0s .35s; }
.fd-pop.wide { width: 440px; }
.fd.right .fd-pop { left: auto; right: 0; transform-origin: top right; }
.fd.open .fd-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .35s var(--ease-spring); }
.fd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 4px 12px; }
.fd-head b { font: 600 14px var(--font-display); }
.fd-head small { font-size: 12px; color: var(--muted); }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-chips .chip.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.fd-list { display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.fd-list button { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: left; transition: background .2s, color .2s; }
.fd-list button:hover { background: var(--surface-2); color: var(--text); }
.fd-list button svg { width: 15px; color: var(--accent); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .35s var(--ease-spring); }
.fd-list button.on { color: var(--text); }
.fd-list button.on svg { opacity: 1; transform: none; }
.fd-years { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fd-years label { flex: 1; display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.fd-years input { width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 15px var(--font); }
.fd-years input:focus { outline: none; border-color: rgb(var(--tint) / .6); }
.fd-years > span { margin-top: 18px; color: var(--muted); }
.fbar-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fbar-active:empty { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--accent); background: rgb(var(--tint) / .1); border: 1px solid rgb(var(--tint) / .3); transition: background .2s; }
.fchip:hover { background: rgb(var(--tint) / .18); }
.fchip svg { width: 13px; }
.fbar-reset { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); border-radius: 99px; }
.fbar-reset:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 760px) {
  .fbar-row { border-radius: 20px; }
  .fbar-sep, .fbar-sp { display: none; }
  .fbar-row .kind-seg { width: 100%; }
  /* Меню — на всю ширину панели, сразу под ней */
  .fbar-row { position: relative; }
  .fd { position: static; }
  .fd-pop, .fd-pop.wide, .fd.right .fd-pop { left: 0; right: 0; top: calc(100% + 8px); width: auto; max-width: none; transform-origin: top center; }
}
/* ---------- Кинозал: комнаты ---------- */
.cinema-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cinema-head .lead { max-width: 620px; }
.rooms-sec { margin-bottom: 50px; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.room-card { display: grid; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .5s var(--ease-spring), border-color .3s; }
.room-card:hover { transform: translateY(-4px); border-color: rgb(var(--tint) / .5); }
.room-card-img { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); }
.room-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-card-img > svg { width: 36px; }
.room-live { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(10, 10, 12, .7); }
.room-card-b { display: grid; gap: 4px; padding: 14px 16px 16px; }
.room-card-b b { font: 600 16px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-card-b small { color: var(--muted); font-size: 12.5px; }
.room-card-f { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.room-avas { display: flex; }
.room-avas img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--elev); margin-left: -8px; }
.room-avas img:first-child { margin-left: 0; }
.rooms-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: 22px; border: 1px dashed var(--line-2); color: var(--muted); }
.rooms-empty svg { width: 28px; flex: none; }
.rooms-empty p { margin: 0; }

/* ---------- Комната ---------- */
.room { padding-top: 110px; padding-bottom: 40px; }
.room-head { display: flex; align-items: center; gap: 18px; margin: 22px 0; flex-wrap: wrap; position: relative; z-index: 20; /* меню доступа — поверх плеера */ }
.room-poster { width: 64px; height: 96px; border-radius: 12px; object-fit: cover; }
.room-t { flex: 1; min-width: 220px; }
.room-t h1 { margin: 6px 0 2px; font: 600 clamp(24px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: -.02em; }
.room-t h1 a { color: inherit; text-decoration: none; }
.room-t p { margin: 0; font-size: 13.5px; }
/* Кнопки комнаты — всегда отдельной строкой под названием (иначе на широком экране они сжимали название в столбик) */
.room-act { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex: 1 1 100%; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.room-stage { position: relative; min-width: 0; }
/* Выбор плеера для всей комнаты: «Плеер 1 / Плеер 2» (источник, сезон, озвучка и серии — в меню самого плеера) */
.room-src { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.room-src .seg button { display: inline-flex; align-items: center; gap: 6px; }
.room-src .seg button svg { width: 14px; flex: none; }
.room-src-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; color: var(--faint); }
.room-src-note svg { width: 14px; flex: none; color: var(--accent); }
/* Аниме: вход в каталог Shikimori и сам каталог */
.ac-entry { margin-bottom: 26px; }
.ac-entry-a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px; background: linear-gradient(120deg, rgb(var(--tint) / .14), var(--surface) 60%); border: 1px solid rgb(var(--tint) / .3); color: inherit; text-decoration: none; transition: transform .3s var(--ease-spring), border-color .3s; }
.ac-entry-a:hover { transform: translateY(-2px); border-color: rgb(var(--tint) / .6); }
.ac-entry-a > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ac-entry-a b { font: 600 17px var(--font-display); }
.ac-entry-a small { color: var(--muted); font-size: 13.5px; }
.ac-entry-a > svg { width: 18px; flex: none; color: var(--accent); }
.ac-entry-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; aspect-ratio: 1; border-radius: 50%; background: rgb(var(--tint) / .16); color: var(--accent); }
.ac-entry-ic svg { width: 20px; }
.ac-bar { display: grid; gap: 14px; margin-bottom: 26px; }
.ac-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); }
.ac-search svg { width: 18px; flex: none; color: var(--muted); }
.ac-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: 500 15px var(--font); outline: none; }
.ac-filters { margin: 0; }
.ac-now { margin-bottom: 18px; }
/* Кинозал: кнопка события «Капитал» */
.cz-event-new { margin-left: 2px; padding: 2px 7px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 800 10px var(--font); text-transform: uppercase; letter-spacing: .06em; }
.room-p2-spin, .watch-none-t .spinner { opacity: 1; margin: 0 auto 10px; }
/* «Плеер 2» не нашёл видео — другие источники кнопками */
.p2-try { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }

@media (max-width: 600px) { .room-src-note { margin-left: 0; } }
.room-count { position: absolute; inset: 0 0 auto; aspect-ratio: 16 / 9; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 8px; border-radius: 28px; background: rgba(5, 5, 7, .72); color: #fff; pointer-events: none; }
.room-count[hidden] { display: none; }
.room-count b { font: 700 clamp(64px, 10vw, 120px)/1 var(--font-display); color: var(--accent); }
.room-count span { font-size: 16px; font-weight: 600; }
.room-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.room-hint { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--muted); flex: 1; min-width: 260px; }
.room-hint svg { width: 16px; flex: none; color: var(--accent); }
.room-mark { display: flex; gap: 8px; }
.room-mark input { width: 110px; height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 15px var(--font); }
.room-side { display: grid; gap: 10px; padding: 14px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); position: sticky; top: calc(var(--sat) + 90px); }
.room-members-h { display: flex; justify-content: space-between; font-size: 14px; }
.room-members { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.room-members li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.room-members img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.room-members em { font-style: normal; font-size: 11px; color: var(--accent); }
/* Создатель комнаты — золотая коронка у имени вместо слова */
.rm-crown { display: inline-grid; place-items: center; flex: none; color: #f5c04a; filter: drop-shadow(0 0 4px rgba(245, 192, 74, .45)); }
.rm-crown svg { width: 15px; height: 15px; fill: currentColor; fill-opacity: .25; }
/* ---------- Голосовой чат комнаты ---------- */
/* Кнопка микрофона у поля чата: выключен — серая, включён — зелёная, выключен создателем — красная */
.rc-mic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); transition: color .2s, background .2s, border-color .2s, box-shadow .2s; }
.rc-mic svg { width: 19px; height: 19px; }
.rc-mic:hover { color: var(--text); border-color: rgb(var(--tint) / .5); }
.rc-mic.on { color: #062b14; background: #4ade80; border-color: transparent; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.rc-mic.forced { color: #ff7a7a; border-color: rgba(255, 122, 122, .45); }
.rc-mic:disabled { opacity: .6; }
/* Список «В комнате»: нажимается, у говорящего — зелёное свечение аватарки, рядом отметка микрофона */
.room-members li[data-uid] { cursor: pointer; transition: background .2s; }
.room-members li[data-uid]:hover { background: var(--surface); }
.room-members li img { transition: box-shadow .15s; }
.room-members li.speaking img { box-shadow: 0 0 0 2px #4ade80, 0 0 10px rgba(74, 222, 128, .65); }
.rm-voice { display: inline-grid; place-items: center; color: #4ade80; }
.rm-voice.off { color: var(--faint); }
.rm-voice svg { width: 13px; height: 13px; }
/* Окно участника: кто, громкость (только у себя), действия создателя */
.rv-pop { width: 290px; max-width: calc(100vw - 16px); padding: 10px; gap: 4px; } /* ширина постоянная — окно не раздувается и не дёргается, когда меняется подсказка */
.rv-who { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; }
.rv-who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.rv-who span { display: grid; gap: 2px; min-width: 0; }
.rv-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-who small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--faint); }
.rv-who small.on { color: #4ade80; }
.rv-who small.bad { color: #ff9a6a; }
.rv-who small svg { width: 13px; height: 13px; }
.rv-vol { display: flex; align-items: center; gap: 10px; padding: 4px 6px 6px; }
.rv-vol output { flex: none; width: 44px; text-align: right; font: 600 12.5px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.rm-menu button.rv-vol-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; min-width: 34px; aspect-ratio: 1; padding: 0; gap: 0; justify-content: center; border-radius: 50%; background: var(--surface-2); }
.rv-vol-ic svg { width: 16px !important; height: 16px !important; color: var(--accent); }
/* Шумодав в окне «Вы»: два режима переключателем */
.rv-ns { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 2px; font-size: 13px; font-weight: 600; }
.rv-seg { display: flex; padding: 3px; border-radius: 99px; background: var(--surface-2); }
.rm-menu .rv-seg button { height: 28px; padding: 0 12px; gap: 0; border-radius: 99px; font: 600 12.5px var(--font); color: var(--muted); background: transparent; justify-content: center; }
.rm-menu .rv-seg button.on { color: var(--accent-ink); background: var(--accent); }
.rv-ns-tip { margin: 0; padding: 2px 6px 6px; font-size: 11.5px; line-height: 1.4; color: var(--faint); }
/* Громкость до 200 %: отметка «100 %» посередине, правее — усиление (оранжевая заливка и цифра) */
.rv-range { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.rv-range .nice-range { flex: 1; }
.rv-100 { position: absolute; left: 50%; top: 50%; width: 2px; height: 12px; margin: -6px 0 0 -1px; border-radius: 2px; background: rgba(255, 255, 255, .45); pointer-events: none; }
.rv-range .nice-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) 0 min(var(--p), 50%), #ff7a2e min(var(--p), 50%) var(--p), rgba(255, 255, 255, .12) var(--p) 100%); }
.rv-vol output.boost { color: #ff7a2e; }
.rv-boost-tip { margin: -2px 0 0; padding: 0 6px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; line-height: 1.4; color: var(--faint); }
.rv-sep { display: block; height: 1px; margin: 4px 6px; background: var(--line); }
/* Ползунок громкости: дорожка с золотой заливкой до бегунка (--p), круглый бегунок */
.nice-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.nice-range:focus { outline: none; }
.nice-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) 0 var(--p), rgba(255, 255, 255, .12) var(--p) 100%); }
.nice-range::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.nice-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
.nice-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgb(var(--tint) / .35), 0 2px 8px rgba(0, 0, 0, .5); transition: transform .15s, box-shadow .15s; }
.nice-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgb(var(--tint) / .35), 0 2px 8px rgba(0, 0, 0, .5); }
.nice-range:hover::-webkit-slider-thumb, .nice-range:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 6px rgb(var(--tint) / .3), 0 2px 8px rgba(0, 0, 0, .5); }
.nice-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(0, 0, 0, .5); }

/* Управление зрителями (у создателя): «⋯» у каждого, отметка «без чата», «Выгнанные» в заголовке */
.room-members-h { align-items: center; }
.room-members-h .room-n { margin-left: 2px; color: var(--faint); font-weight: 600; } /* счётчик — сразу после «В комнате» */
.rm-h-r { display: inline-flex; align-items: center; gap: 10px; }
.rm-banned { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 12px var(--font); cursor: pointer; transition: color .2s, border-color .2s; }
.rm-banned:hover { color: var(--text); border-color: var(--line-2); }
.rm-banned svg { width: 13px; height: 13px; }
.rm-muted { display: inline-grid; place-items: center; color: #ff8a8a; }
.rm-muted svg { width: 13px; height: 13px; }
.room-members li:has(.rm-act) { padding-right: 4px; }
.rm-act { display: grid; place-items: center; width: 24px; height: 24px; margin-left: 2px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.rm-act:hover { background: var(--surface); color: var(--text); }
.rm-act svg { width: 16px; height: 16px; }
.rm-menu { position: fixed; z-index: 90; min-width: 230px; padding: 6px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--elev); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .75); display: grid; gap: 2px; opacity: 0; transform: translateY(-4px) scale(.97); transform-origin: top right; transition: opacity .18s, transform .25s var(--ease-spring); }
.rm-menu.open { opacity: 1; transform: none; }
.rm-menu button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--text); font: 600 13.5px var(--font); text-align: left; cursor: pointer; }
.rm-menu button:hover { background: var(--surface-2); }
.rm-menu button svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.rm-menu button.danger, .rm-menu button.danger svg { color: #ff7a7a; }
.rm-menu button.danger:hover { background: rgba(255, 95, 95, .1); }
.room-chat { display: grid; grid-template-rows: 1fr auto; height: min(56vh, 520px); border-top: 1px solid var(--line); padding-top: 10px; }
.rc-list { overflow-y: auto; display: grid; align-content: start; gap: 8px; padding-right: 4px; }
.rc-sys { text-align: center; font-size: 12px; color: var(--faint); }
/* Сообщения пузырями: свои — справа (золотистые), чужие — слева с аватаркой и ником своего цвета (--nc) */
.rc-list { gap: 2px; }
.rc-sys { margin: 6px 0; }
/* Предложение зрителя создателю («… предлагает сменить озвучку») — заметнее обычной служебной строки, у создателя кнопка «Сменить» */
.rc-sys.rc-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 8px 4px; padding: 8px 12px; border-radius: 14px; background: rgb(var(--tint) / .08); border: 1px solid rgb(var(--tint) / .22); color: var(--text); font-size: 12.5px; }
.rc-sys-act { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 700 12px var(--font); cursor: pointer; }
.rc-sys-act svg { width: 13px; flex: none; }
.rc-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; margin-top: 8px; }
.rc-msg.cont { margin-top: 2px; }
.rc-msg.me { justify-content: flex-end; }
.rc-ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
/* Как в Telegram: в серии сообщений одного человека имя — над первым, аватарка — у последнего (внизу серии).
   Место под аватарку остаётся у всех сообщений серии, поэтому пузыри стоят ровной колонкой */
.rc-msg.them:has(+ .rc-msg.them.cont) .rc-ava { visibility: hidden; }.rc-bub { position: relative; min-width: 0; max-width: min(82%, 300px); padding: 7px 11px 6px; border-radius: 16px 16px 16px 6px; background: var(--surface-2); border: 1px solid var(--line); }
.rc-msg.me .rc-bub { border-radius: 16px 16px 6px 16px; background: rgb(var(--tint) / .16); border-color: rgb(var(--tint) / .28); }
.rc-msg.cont.them .rc-bub { border-top-left-radius: 6px; }
.rc-msg.cont.me .rc-bub { border-top-right-radius: 6px; }
.rc-nick { display: block; margin-bottom: 1px; font-size: 12.5px; font-weight: 700; color: var(--nc, var(--accent)); }
.rc-bub p { margin: 0; font-size: 14px; line-height: 1.42; overflow-wrap: anywhere; }
/* Время как в Telegram: «плывёт» вправо в конце последней строки текста; не влезает — само уходит на новую строку */
.rc-bub time { float: right; position: relative; top: 5px; margin-left: 10px; line-height: 1.6; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-bub p::after { content: ''; display: block; clear: both; }
.rc-bub > time { float: none; display: block; top: 0; text-align: right; }
.rc-mark time { margin-left: auto; top: 3px; }
.rc-img { display: block; margin: 2px -5px 4px; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .25); cursor: zoom-in; }
.rc-img img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.rc-bub.only-img { padding: 4px; }
.rc-bub.only-img .rc-img { margin: 0; }
.rc-bub.only-img .rc-nick { padding: 2px 6px 3px; }
.rc-bub.only-img time { position: absolute; top: auto; right: 10px; bottom: 8px; line-height: 1.4; margin: 0; padding: 1px 6px; border-radius: 99px; color: #fff; background: rgba(0, 0, 0, .55); }
/* Реакции: значки под текстом, кнопка выбора — рядом с пузырём (на компьютере при наведении, на телефоне всегда) */
.rc-reacts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; }
/* Время в строке реакций (как в Telegram) — справа от них */
.rc-bub .rc-reacts time, .rc-bub.only-img .rc-reacts time { float: none; position: static; margin: 0 0 0 auto; padding: 0 0 0 8px; top: auto; background: none; color: var(--faint); line-height: 24px; }
.rc-r { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 12px var(--font); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease-spring); }
.rc-r span { font-variant-numeric: tabular-nums; color: var(--muted); }
.rc-r:hover { transform: scale(1.06); }
.rc-r.mine { border-color: rgb(var(--tint) / .7); background: rgb(var(--tint) / .2); }
.rc-r.mine span { color: var(--accent); }
.rc-react-btn { flex: none; align-self: center; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, background .15s; }
.rc-react-btn svg { width: 17px; height: 17px; }
.rc-msg:hover .rc-react-btn, .rc-react-btn:focus-visible { opacity: 1; }
.rc-react-btn:hover { color: var(--accent); background: var(--surface-2); }
.rc-msg.me .rc-react-btn { order: -1; }
@media (hover: none) { .rc-react-btn { opacity: .6; } }
.rc-react-pop { position: fixed; z-index: 90; display: grid; gap: 4px; padding: 5px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--elev); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(4px) scale(.95); transition: opacity .15s, transform .25s var(--ease-spring); }
.rc-react-row { display: flex; gap: 2px; }
.rc-act-list { display: grid; gap: 1px; padding-top: 4px; border-top: 1px solid var(--line); }
.rc-act-list button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: 600 13.5px var(--font); text-align: left; cursor: pointer; }
.rc-act-list button:hover { background: var(--surface-2); }
.rc-act-list svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.rc-act-list .danger, .rc-act-list .danger svg { color: #ff7a7a; }
/* Плашка «Изменение сообщения» над полем ввода */
.rc-editing { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 6px 6px 12px; border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface-2); }
.rc-editing > svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.rc-editing span { display: grid; min-width: 0; flex: 1; }
.rc-editing b { font-size: 12.5px; color: var(--accent); }
.rc-editing small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.rc-editing button { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.rc-editing button:hover { background: var(--surface); color: var(--text); }
.rc-bub time i { font-style: normal; }
.rc-react-pop.open { opacity: 1; transform: none; }
.rc-react-row button { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 19px; line-height: 1; cursor: pointer; transition: transform .2s var(--ease-spring), background .15s; }
.rc-react-row button:hover { transform: scale(1.25); background: var(--surface-2); }
.room-chat.drop .rc-list { outline: 2px dashed rgb(var(--tint) / .6); outline-offset: -4px; border-radius: 14px; }
.rc-mark { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.rc-mark svg { width: 14px; }
.rc-mark span { color: var(--text); font-weight: 700; }
.rc-mark button { font-size: 12px; font-weight: 700; color: var(--accent); }
/* Поле сообщения: скрепка слева и самолётик справа — внутри одной рамки */
.rc-form { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.rc-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.rc-box:focus-within { border-color: rgb(var(--tint) / .6); box-shadow: 0 0 0 3px rgb(var(--tint) / .1); }
.rc-box input { flex: 1; min-width: 0; height: 100%; padding: 0 6px; border: 0; background: transparent; color: var(--text); font: 500 14px var(--font); }
.rc-box input:first-child { padding-left: 12px; }
.rc-box input:focus { outline: none; }
.rc-clip, .rc-send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s, transform .2s var(--ease-spring); }
.rc-clip svg, .rc-send svg { width: 19px; height: 19px; }
.rc-clip:hover { color: var(--text); background: var(--surface-2); }
/* «Отправить» — просто мятно-зелёный самолётик, без кружка-фона (цвет — по образцу владельца) */
.rc-send { color: #36d79c; background: transparent; }
.rc-send svg { width: 22px; height: 22px; fill: currentColor; fill-opacity: .18; }
.rc-send:hover { color: #5ee6b3; transform: translateX(2px) scale(1.08); background: transparent; }
.rc-send:hover svg { filter: drop-shadow(0 0 6px rgba(54, 215, 156, .6)); }
.rc-clip:disabled, .rc-send:disabled { opacity: .45; cursor: default; transform: none; }
.rc-clip.busy svg { animation: spin 1s linear infinite; }
.room-mark input:focus { outline: none; border-color: rgb(var(--tint) / .6); }
@media (max-width: 980px) {
  .room-grid { grid-template-columns: minmax(0, 1fr); }
  .room-side { position: static; }
  .room-chat { height: 420px; }
}
/* Короткие подписи кнопок — только на телефоне */
.l-short { display: none; }
.room-del .l-short { display: none; }
/* Телефон: кнопки комнаты — одна компактная панель «значок + короткая подпись», ничего не уходит за край */
@media (max-width: 640px) {
  .room { padding-top: 88px; }
  .room-head { gap: 12px; margin: 14px 0 16px; }
  .room-poster { width: 46px; height: 69px; border-radius: 10px; }
  .room-t { flex: 1 1 0; min-width: 0; }
  .room-t .eyebrow { padding: 5px 9px; font-size: 9.5px; letter-spacing: .12em; max-width: 100%; }
  .room-t h1 { font-size: 21px; overflow-wrap: anywhere; }
  .room-t p { font-size: 12.5px; }
  .room-act { flex: 1 1 100%; flex-wrap: wrap; gap: 6px; }
  /* Одинаковая основа у всех (а не 0): иначе у кнопок с рамкой ширина больше, чем у меню доступа */
  .room-act > .ra, .room-act > .btn:not([data-start]), .room-act > .room-access, .room-act > .room-del { flex: 1 1 40px; min-width: 0; }
  .room-act > .ra, .room-act > .room-access { flex-grow: 1.6; } /* «Открытая», «По ссылке» длиннее остальных подписей */
  .room-t .l-full { display: none; }
  .room-act > .btn:not([data-start]), .room-act .ra .ra-btn, .room-act > .room-access, .room-act > .room-del {
    width: 100%; height: 54px; padding: 7px 2px 6px; gap: 4px; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em;
    color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: none;
  }
  .room-act .ra-cur { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
  .room-act svg, .room-act .ra-cur svg, .room-act .room-access svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
  .room-act .l-full, .room-act .ra-arr { display: none; }
  .room-act .l-short { display: block; }
  .room-act > .btn span, .room-act .ra .ra-btn span, .room-act > .room-access span, .room-act > .room-del span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .room-act > .room-del svg { color: #ff7a6e; }
  .room-act > .room-access.ro { color: var(--muted); }
  .room-act > [data-start] { flex: 1 1 100%; order: 10; justify-content: space-between; height: 48px; }
  .room-act > [data-start] span { overflow: visible; }
  .ra-pop { width: min(320px, calc(100vw - 24px)); }
}
/* ---------- Кинозал: компактный верх ---------- */
.cz-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-top: 110px; margin-bottom: 44px; }
.cz-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 12px; min-height: 300px; padding: 30px; border-radius: 30px; border: 1px solid var(--line); background:
  radial-gradient(120% 90% at 0% 0%, rgb(var(--tint) / .22), transparent 60%),
  radial-gradient(90% 80% at 100% 100%, rgba(255, 122, 69, .14), transparent 60%), var(--surface); }
.cz-hero h1 { margin: 0; font: 600 clamp(32px, 4vw, 52px)/1 var(--font-display); letter-spacing: -.04em; }
.cz-hero p { margin: 0 0 6px; max-width: 440px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.cz-side { display: grid; gap: 16px; align-content: start; }
.cz-hero-act { display: flex; flex-wrap: wrap; gap: 10px; }
.cz-hero-act .btn-glass { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.cz-hero-act .btn-glass svg { width: 17px; color: var(--accent); }
.cz-block { padding: 16px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.cz-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px 10px; font-size: 14px; }
.cz-h b { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font-display); }
.cz-h b svg { width: 16px; color: var(--accent); }
.cz-h a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cz-h a:hover { color: var(--text); }
.cz-h a svg { width: 14px; }
.cz-rooms, .cz-friends { display: grid; gap: 4px; max-height: 236px; overflow-y: auto; }
.cz-empty { margin: 0; padding: 10px 6px; font-size: 14px; color: var(--muted); }
.cz-empty a { color: var(--accent); }
.cz-room { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; color: inherit; text-decoration: none; transition: background .2s; }
.cz-room:hover { background: var(--surface-2); }
.cz-room-img { flex: none; width: 40px; height: 58px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); }
.cz-room-img img { width: 100%; height: 100%; object-fit: cover; }
.cz-room-img svg { width: 18px; }
.cz-room-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cz-room-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-room-t small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-room-t .live-dot { width: 6px; height: 6px; vertical-align: 1px; }
.cz-room-avas { display: flex; }
.cz-room-avas { flex: none; }
.cz-room-avas img { flex: none; width: 24px; height: 24px; min-width: 24px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid var(--elev); margin-left: -7px; }
.cz-room-avas img:first-child { margin-left: 0; }
/* «Войти» у друга в комнате — текст по центру (у кнопок без круглого значка справа отступы ровные) */
.cz-friend .btn:not(:has(.ic-circle)), .cz-room .btn:not(:has(.ic-circle)) { flex: none; padding: 0 16px; justify-content: center; }
.cz-go { flex: none; color: var(--faint); }
.cz-go svg { width: 16px; }
.cz-del { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--faint); cursor: pointer; transition: color .2s, background .2s; }
.cz-del svg { width: 16px; }
.cz-del:hover { color: #ff5f5f; background: rgba(255, 95, 95, .12); }
.room-del:hover { color: #ff5f5f; }
.cz-friend { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 14px; }
.cz-friend:hover { background: var(--surface-2); }
.fr-ava.sm { width: 36px; height: 36px; }
.fr-ava.sm i { width: 10px; height: 10px; }
/* Заготовки строк, пока комнаты и друзья догружаются (страница их не ждёт) */
.cz-skel { pointer-events: none; }
.cz-skel:hover { background: none; }
.cz-skel .cz-room-img, .cz-skel .cz-sk-ava, .cz-skel .cz-room-t i { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 250% 100%; animation: shimmer 1.6s linear infinite; }
.cz-sk-ava { flex: none; width: 36px; height: 36px; min-width: 36px; aspect-ratio: 1; border-radius: 50%; }
.cz-skel .cz-room-t i { display: block; height: 11px; width: 72%; border-radius: 6px; }
.cz-skel .cz-room-t i + i { width: 46%; }
.cz-films-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cz-films-h .h2 { margin: 8px 0 0; }
.cz-films-h p { margin: 0; max-width: 420px; font-size: 14px; }
/* Подсказка над плеером Vibix для зрителей из Украины */
.geo-note { display: flex; gap: 14px; margin-bottom: 14px; padding: 16px 18px; border-radius: 20px; border: 1px solid rgb(var(--tint) / .35); background: linear-gradient(135deg, rgb(var(--tint) / .12), rgb(var(--tint) / .04)); }
.geo-note-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 17px var(--font); }
.geo-note-t { display: grid; gap: 6px; min-width: 0; font-size: 14px; line-height: 1.5; }
.geo-note-t > b { font-size: 15.5px; }
.geo-note-t p { margin: 0; color: var(--muted); }
.geo-note-t p b { color: var(--text); }
.geo-note-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 600px) { .geo-note { padding: 14px; gap: 10px; } .geo-note-ic { width: 28px; height: 28px; font-size: 15px; } .geo-note-act .btn { flex: 1 1 auto; justify-content: center; } }

/* Магнитная кнопка подтягивается к соседней: свет у обеих разгорается плавно — чем ближе, тем ярче (--mg от 0 до 1),
   при касании — ярче всего; отвели — так же плавно гаснет. Ореол — через filter (box-shadow обрезал бы overflow кнопки) */
.mag-near { --mg: 0; filter: drop-shadow(0 0 calc(var(--mg) * 16px) rgb(var(--tint) / calc(var(--mg) * .55))); transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-out), background .3s, filter .45s ease-out !important; }
.mag-near::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(var(--tint) / .7), inset 0 0 18px rgb(var(--tint) / .25); opacity: calc(var(--mg) * 1); transition: opacity .45s ease-out; }

/* «Смотрите вместе» — всё по центру карточки */
.cz-hero { align-items: center; justify-content: center; text-align: center; }
.cz-hero p { margin-inline: auto; }
.cz-hero-act { justify-content: center; }
/* Пометка «друг / друзей: N» у комнаты */
.rm-fr { color: #4ade80; font-weight: 600; }

/* В Кинозале — не больше 3 комнат и 3 друзей (остальные — «Все комнаты» / «Все друзья»): без прокрутки, рамки не растягиваются */
.cz-rooms, .cz-friends { max-height: none; overflow: visible; }
.cz-room { padding: 6px 8px; }
.cz-room-img { width: 36px; height: 52px; }
.cz-h .cz-rooms-n { color: var(--faint); }
.cz-more { display: inline-flex; align-items: center; gap: 6px; margin: 4px 6px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.cz-more:hover { color: var(--accent); }
.cz-more svg { width: 14px; }

/* ---------- Все комнаты ---------- */
.rl-head { display: grid; justify-items: start; gap: 6px; }
.rl-head .lead { margin: 0; }
.rl-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.rl-back:hover { color: var(--text); }
.rl-back svg { width: 16px; }
.rl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; margin-top: 18px; }
.rl-search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.rl-search:focus-within { border-color: rgb(var(--tint) / .6); box-shadow: 0 0 0 4px rgb(var(--tint) / .12); }
.rl-search svg { width: 18px; flex: none; }
.rl-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 15px var(--font); }
.rl-tabs { display: flex; gap: 6px; }
.rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 60px; }
.rl-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: 16px; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .8); transition: transform .45s var(--ease-spring), border-color .25s; animation: fdin .5s var(--ease-spring) both; animation-delay: calc(min(var(--i), 12) * 40ms); }
.rl-card:hover { transform: translateY(-4px); border-color: rgb(var(--tint) / .45); }
.rl-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 0%, rgb(var(--tint) / .25), transparent 60%), #111; }
.rl-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.rl-card:hover .rl-bg img { transform: scale(1.05); }
.rl-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 32%, rgba(0, 0, 0, .9) 100%); }
.rl-top { display: flex; align-items: center; gap: 8px; }
.rl-code { padding: 5px 10px; border-radius: 99px; font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rl-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); }
.rl-tag svg { width: 13px; }
.rl-del { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.rl-del svg { width: 15px; }
.rl-del:hover { background: rgba(255, 95, 95, .25); color: #ff8a8a; }
.rl-body { display: grid; gap: 8px; }
.rl-title { font: 600 21px/1.15 var(--font-display); letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-host { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.rl-host img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.rl-foot { display: flex; align-items: center; gap: 10px; }
.rl-live { font-size: 13px; font-weight: 600; }
.rl-live .live-dot { width: 7px; height: 7px; vertical-align: 1px; }
.rl-foot .cz-room-avas img { border-color: rgba(0, 0, 0, .6); }
.rl-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent); transition: transform .3s var(--ease-spring); }
.rl-go svg { width: 14px; }
.rl-card:hover .rl-go { transform: translateX(2px); }
.rl-empty { grid-column: 1 / -1; padding: 30px 4px; text-align: center; }
@media (max-width: 600px) {
  .rl-bar .btn { width: 100%; justify-content: center; }
  .rl-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rl-card { min-height: 200px; }
}
@media (max-width: 900px) {
  .cz-top { grid-template-columns: minmax(0, 1fr); padding-top: 96px; }
  .cz-hero { min-height: 0; padding: 24px; }
}
/* ---------- Мэтч: выбор фильма вместе ---------- */
.match-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: radial-gradient(80% 80% at 50% 0%, rgb(var(--tint) / .18), transparent 70%), #0b0b0d; color: #fff; }
.match-wait-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: rgb(var(--tint) / .18); color: var(--accent); }
.match-wait-ic svg { width: 30px; }
.match-wait b { font: 600 clamp(20px, 2.4vw, 28px) var(--font-display); }
.match-wait p { margin: 0 0 8px; max-width: 460px; color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.room-tools[hidden] { display: none; }
/* Где сейчас каждый: минута у имени и строка «у вас / у создателя» */
.rm-pos { margin-left: 2px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface); font-variant-numeric: tabular-nums; }
.rm-pos.on { color: #4ade80; }
.room-sync { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.room-sync[hidden] { display: none; }
.room-solo svg { width: 15px; height: 15px; }
.room-help { flex-basis: 100%; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--faint); }
.room-solo.on { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.room-sync svg { width: 14px; color: var(--accent); }
.room-sync b { color: var(--text); }
.room-sync .ok { color: #4ade80; font-weight: 700; }
.room-sync .warn { color: var(--accent); font-weight: 700; }
.mch { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; }
.mx-scrim { position: absolute; inset: 0; background: rgba(4, 4, 6, .8); opacity: 0; transition: opacity .3s; }
.mx-box { position: relative; width: min(420px, calc(100vw - 24px)); display: grid; gap: 14px; justify-items: center; opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .3s, transform .45s var(--ease-spring); }
.mch.open { pointer-events: auto; }
.mch.open .mx-scrim { opacity: 1; }
.mch.open .mx-box { opacity: 1; transform: none; }
.mx-head { width: 100%; display: flex; align-items: center; gap: 10px; color: #fff; }
.mx-head b { display: inline-flex; align-items: center; gap: 8px; font: 600 18px var(--font-display); }
.mx-head b svg { width: 18px; color: var(--accent); }
.mx-count { color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 600; }
.mx-x { margin-left: auto; }
/* Карточка вписывается в экран целиком: высота — сколько остаётся после заголовка и кнопок (dvh — реальная высота
   на iPhone с панелями Safari), ширина — по пропорции постера, не шире окна */
.mx-stack { position: relative; height: min(600px, calc(100dvh - 250px - var(--sat) - var(--sab))); width: auto; max-width: 100%; aspect-ratio: 2 / 3; }
/* Пока окно открыто, жесты не прокручивают страницу под ним (раньше на телефоне уезжал весь сайт) */
.mch.open { touch-action: none; overscroll-behavior: contain; }
.mch.open .mx-box { max-height: calc(100dvh - 16px); }
@media (max-width: 600px) {
  .mx-box { gap: 10px; }
  .mx-btns button { width: 58px; height: 58px; }
  .mx-info { padding: 46px 14px 14px; }
  .mx-info b { font-size: 19px; }
  .mx-info p { -webkit-line-clamp: 2; }
}
.mx-card { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: #141418; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); touch-action: none; user-select: none; cursor: grab; transition: transform .3s var(--ease-out), opacity .3s; --yes: 0; --no: 0; }
.mx-card:not(:last-child) { transform: scale(.94) translateY(14px); filter: brightness(.6); }
.mx-card img, .mx-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mx-noimg { display: grid; place-items: center; color: rgba(255, 255, 255, .3); }
.mx-noimg svg { width: 60px; }
.mx-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .92)); color: #fff; display: grid; gap: 4px; }
.mx-info b { font: 600 22px/1.1 var(--font-display); }
.mx-info small { color: rgba(255, 255, 255, .7); font-size: 13px; }
.mx-info p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .78); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mx-stamp { position: absolute; top: 24px; padding: 6px 14px; border-radius: 12px; border: 3px solid; font: 800 22px var(--font-display); letter-spacing: .06em; transform: rotate(-12deg); }
.mx-stamp.yes { left: 20px; color: #4ade80; opacity: var(--yes); }
.mx-stamp.no { right: 20px; color: #ff6b6b; opacity: var(--no); transform: rotate(12deg); }
.mx-card.go-yes { transform: translateX(140%) rotate(24deg) !important; opacity: 0; }
.mx-card.go-no { transform: translateX(-140%) rotate(-24deg) !important; opacity: 0; }
.mx-btns { display: flex; gap: 22px; }
.mx-btns[hidden] { display: none; }
.mx-btns button { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #18181d; border: 1px solid rgba(255, 255, 255, .14); transition: transform .35s var(--ease-spring), background .2s; }
.mx-btns button:hover { transform: scale(1.08); }
.mx-btns button svg { width: 28px; }
.mx-no { color: #ff6b6b; }
.mx-yes { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important; border-color: transparent !important; }
.mx-yes svg { fill: currentColor; }
.mx-hint { margin: 0; color: rgba(255, 255, 255, .55); font-size: 12.5px; }
.mx-hint[hidden] { display: none; }
.mx-others { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.mx-others span { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.mx-wait, .mx-result { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; border-radius: 26px; background: #141418; color: #fff; overflow: hidden; }
.mx-wait svg { width: 34px; color: var(--accent); }
.mx-wait p, .mx-result p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; }
.mx-result > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: blur(2px); }
.mx-result > * { position: relative; }
.mx-res-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1c1306; animation: mxpop .6s var(--ease-spring); }
.mx-res-ic svg { width: 30px; fill: currentColor; }
.mx-result.none .mx-res-ic, .mx-result.stopped .mx-res-ic { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); }
.mx-result h3 { margin: 4px 0 0; font: 700 34px var(--font-display); letter-spacing: -.02em; }
.mx-result b { font: 600 20px var(--font-display); color: var(--accent); }
@keyframes mxpop { from { transform: scale(0); } }
.mx-reopen { position: fixed; left: 50%; bottom: calc(var(--sab) + 24px); transform: translate(-50%, 20px); display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 99px; font-weight: 700; color: #1c1306; background: linear-gradient(135deg, var(--accent), #f9a048); box-shadow: 0 14px 34px -12px rgb(var(--tint) / .8); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-spring); }
.mx-reopen svg { width: 18px; fill: currentColor; }
.mch:not(.open) .mx-reopen { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
/* ---------- «Что посмотреть?» ---------- */
.pick { padding-top: 110px; }
.pick-head h1 { margin: 10px 0 6px; font: 600 clamp(34px, 4.6vw, 60px)/1 var(--font-display); letter-spacing: -.04em; }
.pick-head p { margin: 0 0 26px; max-width: 620px; }
.pick-roulette { padding: 22px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); }
/* Рулетка-лента: постеры едут справа налево, золотая полоска по центру, края растворяются */
.pick-roulette { display: grid; gap: 16px; }
.pr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pr-head b { font: 600 22px var(--font-display); letter-spacing: -.02em; }
.pr-head p { margin: 4px 0 0; font-size: 14px; }
.pr-reel { position: relative; overflow: hidden; padding: 14px 0; border-radius: 22px; background: #08080a; border: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.pr-track { display: flex; gap: 12px; width: max-content; padding: 0 12px; will-change: transform; }
.pr-item { width: 132px; aspect-ratio: 2 / 3; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; color: var(--faint); background: var(--surface-2); border: 1px solid var(--line-2); transition: transform .5s var(--ease-spring), box-shadow .5s, border-color .5s; }
.pr-item svg { width: 30px; opacity: .5; }
.pr-item img { width: 100%; height: 100%; object-fit: cover; }
.pr-item.win { transform: scale(1.06); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -10px rgb(var(--tint) / .6); }
.pr-mark { position: absolute; top: 4px; bottom: 4px; left: 50%; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 14px 2px rgb(var(--tint) / .7); pointer-events: none; }
.pr-mark::before, .pr-mark::after { content: ''; position: absolute; left: 50%; width: 0; height: 0; margin-left: -8px; border: 8px solid transparent; }
.pr-mark::before { top: -4px; border-top-color: var(--accent); }
.pr-mark::after { bottom: -4px; border-bottom-color: var(--accent); }
.pr-res { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 20px; background: var(--surface-2); animation: prres .6s var(--ease-spring); }
.pr-res:empty { display: none; }
.pr-res img { width: 48px; height: 72px; flex: none; border-radius: 10px; object-fit: cover; }
.pr-res div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pr-res b { font: 600 17px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-res small { color: var(--muted); }
@keyframes prres { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (max-width: 900px) {
  .pick { padding-top: 96px; }
}
@media (max-width: 600px) {
  .pick-roulette { padding: 16px; border-radius: 22px; }
  .pr-item { width: 104px; border-radius: 12px; }
  .pr-head .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Хронологии франшиз (js/views/chrono.js): /chrono и /chrono/<slug>
   ========================================================= */
/* Список хронологий: карточки с фирменным цветом франшизы (--c), задником и веером из 4 постеров.
   При наведении веер раскрывается, карточка приподнимается и подсвечивается своим цветом. Первая — широкая */
.chr-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; margin: 14px 0 70px; }
.chr-card { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: 360px; border-radius: 28px; color: #f4efe6; background: #0e0d0c; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9); transition: transform .6s var(--ease-spring), border-color .4s, box-shadow .5s; }
.chr-card.wide { grid-column: span 2; min-height: 340px; }
.chr-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 30px 70px -28px color-mix(in srgb, var(--c) 55%, transparent); }
.chr-card-bg { position: absolute; inset: 0; z-index: -3; background: center 30% / cover no-repeat; opacity: .38; filter: saturate(1.15); transition: transform 1.4s var(--ease-out), opacity .5s; }
.chr-card:hover .chr-card-bg { transform: scale(1.06); opacity: .5; }
.chr-card::before { content: ''; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 38%, transparent), transparent 55%),
  linear-gradient(90deg, rgba(10, 9, 8, .96) 0%, rgba(10, 9, 8, .8) 45%, rgba(10, 9, 8, .35) 100%); }
.chr-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 1; background: var(--c); box-shadow: 0 0 24px var(--c); opacity: .85; }
/* Веер постеров справа */
.chr-card-fan { position: absolute; right: 22px; top: 20px; z-index: -1; width: 180px; height: 110px; pointer-events: none; }
.chr-card-fan i { position: absolute; left: 50%; top: 50%; width: 68px; aspect-ratio: 2 / 3; margin: -51px 0 0 -34px; border-radius: 12px; background: #1a1714 center / cover no-repeat; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translateX(calc((var(--j) - 1.5) * 26px)) rotate(calc((var(--j) - 1.5) * 7deg)) translateY(calc(var(--j) * var(--j) * 1px - 2px)); transition: transform .7s var(--ease-spring); }
.chr-card:hover .chr-card-fan i { transform: translateX(calc((var(--j) - 1.5) * 38px)) rotate(calc((var(--j) - 1.5) * 10deg)) translateY(-4px); }
.chr-card.wide .chr-card-fan { right: 60px; top: 50%; width: 320px; height: 240px; transform: translateY(-50%); }
.chr-card.wide .chr-card-fan i { width: 132px; margin: -99px 0 0 -66px; }
.chr-card.wide:hover .chr-card-fan i { transform: translateX(calc((var(--j) - 1.5) * 76px)) rotate(calc((var(--j) - 1.5) * 10deg)) translateY(-6px); }
.chr-card-body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; width: 100%; padding: 26px 28px 24px 32px; }
.chr-card-n { position: absolute; top: 18px; left: 30px; font: 700 54px/1 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 70%, #fff 0%); opacity: .7; }
.chr-card-t { max-width: 100%; font: 600 clamp(22px, 2.1vw, 28px)/1.08 var(--font-display); letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.chr-card.wide .chr-card-t { font-size: clamp(30px, 3vw, 44px); max-width: 55%; }
.chr-card-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chr-card-chips i { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; font-style: normal; font-size: 12px; font-weight: 700; color: rgba(244, 239, 230, .9); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); }
.chr-card-chips svg { width: 14px; height: 14px; flex: none; color: var(--c); }
.chr-card-foot { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.chr-card-prog { display: grid; gap: 8px; flex: 1; min-width: 0; max-width: 320px; }
.chr-card-prog small { font-size: 13px; color: rgba(244, 239, 230, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chr-card-prog .chr-bar b { background: var(--c); }
.chr-card-go { display: grid; place-items: center; width: 46px; height: 46px; flex: none; margin-left: auto; border-radius: 50%; color: #111; background: var(--c); box-shadow: 0 10px 26px -8px var(--c); transition: transform .5s var(--ease-spring); }
.chr-card-go svg { width: 20px; height: 20px; }
.chr-card:hover .chr-card-go { transform: translateX(4px) scale(1.06); }
.chr-card.ask { --c: var(--accent); min-height: 200px; border-style: dashed; border-color: rgba(255, 255, 255, .16); background: transparent; box-shadow: none; }
.chr-card.ask::before, .chr-card.ask::after { display: none; }
.chr-card.ask .chr-card-t { max-width: none; }
:root[data-theme="light"] .chr-card.ask { color: var(--text); }
@media (max-width: 820px) { .chr-card.wide { grid-column: auto; } }
@media (max-width: 600px) {
  .chr-card, .chr-card.wide { min-height: 340px; border-radius: 24px; }
  .chr-card-fan, .chr-card.wide .chr-card-fan { right: 12px; top: 14px; width: 150px; height: 100px; transform: none; }
  .chr-card-fan i, .chr-card.wide .chr-card-fan i { width: 62px; margin: -46px 0 0 -31px; }
  .chr-card-body { padding: 22px 20px 20px 24px; }
  .chr-card-n { top: 16px; left: 22px; font-size: 42px; }
  .chr-card-t, .chr-card.wide .chr-card-t { max-width: 100%; font-size: 23px; }
}.chr-bar { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.chr-bar b { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .8s var(--ease-out); }
.chr-bar.big { height: 8px; max-width: 520px; }

.chr-hero { position: relative; isolation: isolate; overflow: hidden; color: #f4efe6; padding: clamp(120px, 14vw, 170px) 0 40px; }
.chr-hero-bg { position: absolute; inset: 0; z-index: -2; background: center 25% / cover no-repeat; opacity: .5; }
.chr-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 9, 11, .95), rgba(9, 9, 11, .6) 60%, rgba(9, 9, 11, .35)), linear-gradient(0deg, var(--bg), transparent 45%); }
.chr-hero-in { display: grid; justify-items: start; gap: 14px; }
.chr-hero .back-btn { margin-bottom: 8px; }
.chr-hero h1 { margin: 0; font: 600 clamp(34px, 5.4vw, 72px)/1 var(--font-display); letter-spacing: -.04em; }
.chr-lead { margin: 0; max-width: 620px; color: rgba(244, 239, 230, .78); font-size: 16px; line-height: 1.55; }
.chr-progress { display: grid; gap: 10px; width: min(100%, 520px); margin-top: 6px; }
.chr-progress-t { font-size: 15px; color: rgba(244, 239, 230, .85); }
.chr-progress-t b { color: var(--accent); font-weight: 700; }
.chr-next { max-width: 100%; }
.chr-next > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chr-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
/* «Только главное» — переключатель-таблетка в стиле сайта: стеклянная кнопка, внутри дорожка с золотым ползунком */
.chr-toggle { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px 0 8px; border-radius: 99px; flex: none; font-size: 13px; font-weight: 600; color: rgba(244, 239, 230, .8); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(12px); transition: background .3s, border-color .3s, color .3s; }
.chr-toggle:hover { background: rgba(255, 255, 255, .1); color: #f4efe6; }
.chr-toggle-track { position: relative; display: block; width: 46px; height: 28px; flex: none; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: background .35s; }
.chr-toggle-track i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; flex: none; background: #f4efe6; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .45s var(--ease-spring), background .3s; }
.chr-toggle[aria-pressed="true"] { color: #f4efe6; border-color: rgb(var(--tint) / .55); background: rgb(var(--tint) / .12); }
.chr-toggle[aria-pressed="true"] .chr-toggle-track { background: var(--accent); }
.chr-toggle[aria-pressed="true"] .chr-toggle-track i { transform: translateX(18px); background: #1a1206; }
:root[data-theme="light"] .chr-toggle { color: var(--muted); background: rgba(255, 255, 255, .6); border-color: var(--line); }
:root[data-theme="light"] .chr-toggle[aria-pressed="true"] { color: var(--text); }
:root[data-theme="light"] .chr-toggle-track { background: var(--line); }
:root[data-theme="light"] .chr-hero { color: var(--text); }
:root[data-theme="light"] .chr-hero::before { background: linear-gradient(90deg, rgba(243, 239, 231, .96), rgba(243, 239, 231, .75) 60%, rgba(243, 239, 231, .45)), linear-gradient(0deg, var(--bg), transparent 45%); }
:root[data-theme="light"] .chr-lead, :root[data-theme="light"] .chr-progress-t { color: var(--muted); }
:root[data-theme="light"] .chr-bar { background: var(--line); }

.chr-body { padding-bottom: 70px; }
.chr-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 34px 0 14px; }
.chr-group h2 { margin: 0; font: 600 clamp(22px, 2.6vw, 30px)/1.1 var(--font-display); letter-spacing: -.02em; }
.chr-group .muted { font-size: 14px; }
.chr-group-n { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.chr-ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chr-ol::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(var(--line), var(--line)); }
.chr-item { position: relative; display: grid; grid-template-columns: 44px 64px minmax(0, 1fr) 46px; align-items: center; gap: 14px; padding: 10px 12px 10px 0; border-radius: 18px; transition: background .3s; }
.chr-item:hover { background: var(--surface); }
.chr-num { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--bg); border: 2px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.chr-item.seen .chr-num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chr-poster { display: block; width: 64px; height: 96px; flex: none; border-radius: 12px; overflow: hidden; background: var(--elev); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); }
.chr-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chr-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.chr-ph svg { width: 22px; }
.chr-info { display: grid; gap: 3px; min-width: 0; }
.chr-t { font-weight: 700; font-size: 16px; line-height: 1.3; }
.chr-t:hover { color: var(--accent); }
.chr-meta { color: var(--muted); font-size: 13px; }
.chr-note { color: var(--muted); font-size: 13px; font-style: italic; }
.chr-badges { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.chr-badges:empty { display: none; }
.chr-badge { display: inline-block; flex: none; height: auto; min-height: 0; width: auto; font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1.4; font-style: normal; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chr-badge.soon { color: #7ec8ff; border-color: rgba(126, 200, 255, .4); }
.chr-badge.noplay { color: #ff9d8a; border-color: rgba(255, 157, 138, .4); }
.chr-req { cursor: pointer; color: var(--accent); border-color: rgb(var(--tint) / .45); background: transparent; transition: background .3s; }
.chr-req:hover { background: rgb(var(--tint) / .12); }
.chr-badge.req-ok { color: #7ee0a1; border-color: rgba(126, 224, 161, .4); }
.chr-item.extra .chr-t { font-weight: 600; }
.chr-item.seen .chr-poster { opacity: .55; }
.chr-item.seen .chr-t { color: var(--muted); }
.chr-check { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--line); color: transparent; background: transparent; transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease-spring); }
.chr-check svg { width: 20px; height: 20px; }
.chr-check:hover { border-color: var(--accent); color: rgb(var(--tint) / .6); }
.chr-check[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chr-check:active { transform: scale(.9); }
.chr-check.off { border-style: dashed; opacity: .4; }
@media (max-width: 600px) {
  .chr-item { grid-template-columns: 30px 52px minmax(0, 1fr) 44px; gap: 10px; padding-right: 4px; }
  .chr-ol::before { left: 14px; }
  .chr-num { width: 28px; height: 28px; font-size: 11px; }
  .chr-poster { width: 52px; height: 78px; border-radius: 10px; }
  .chr-t { font-size: 15px; }
  .chr-controls { gap: 12px; }
}
/* Баннер хронологии на главной */
.chr-promo { margin-top: clamp(40px, 6vw, 80px); }
.chr-promo-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 240px; padding: clamp(22px, 3vw, 40px); border-radius: calc(var(--r-lg) + 6px); border: 1px solid var(--line); color: #f4efe6; background: #0d0c0b; }
.chr-promo-bg { position: absolute; inset: 0; z-index: -2; background: center 30% / cover no-repeat; opacity: .6; transition: transform 1.4s var(--ease-out); }
.chr-promo-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 10, .92), rgba(8, 8, 10, .45) 65%, rgba(8, 8, 10, .2)); }
.chr-promo-card:hover .chr-promo-bg { transform: scale(1.04); }
.chr-promo-t { display: grid; justify-items: start; gap: 10px; max-width: 560px; }
.chr-promo-t b { font: 600 clamp(28px, 4vw, 48px)/1.02 var(--font-display); letter-spacing: -.03em; }
.chr-promo-t small { font-size: 15px; line-height: 1.5; color: rgba(244, 239, 230, .8); }
/* Плашка «Хронология Marvel · N из M» на странице фильма */
.mv-chrono { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; margin-top: 20px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(246, 181, 74, .35); backdrop-filter: blur(12px); transition: background .3s, border-color .3s; }
.mv-chrono:hover { background: rgba(246, 181, 74, .12); border-color: rgba(246, 181, 74, .6); }
.mv-chrono > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.mv-chrono b { font-size: 14px; }
.mv-chrono small { font-size: 13px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-chrono > svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.mv-chrono-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgb(var(--tint) / .18); color: var(--accent); }
.mv-chrono-ic svg { width: 20px; height: 20px; }
:root[data-theme="light"] .mv-chrono { background: rgba(255, 255, 255, .6); }
/* «Позвать друга» в комнате кинозала (room.js → openInvite): превью приглашения, кнопки мессенджеров, ссылка */
.inv-card { width: min(100%, 460px); }
.inv-prev { display: flex; gap: 14px; align-items: center; margin: 16px 0; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.inv-prev img, .inv-ph { width: 56px; height: 84px; flex: none; border-radius: 10px; object-fit: cover; background: var(--elev); display: grid; place-items: center; color: var(--muted); }
.inv-prev > div { display: grid; gap: 3px; min-width: 0; }
.inv-prev small { font-size: 11px; color: var(--muted); }
.inv-prev b { font-size: 15px; line-height: 1.25; }
.inv-prev span { font-size: 12.5px; color: var(--muted); }
.inv-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; }
.inv-b { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--text); transition: transform .3s var(--ease-spring), border-color .3s; }
.inv-b:hover { transform: translateY(-2px); border-color: var(--c); }
.inv-b i { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--c); color: #fff; font: 800 15px/1 var(--font-body, inherit); font-style: normal; }
.inv-b i svg { width: 20px; height: 20px; }
.inv-copy { display: flex; gap: 8px; margin-top: 14px; }
.inv-copy input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.rm-alone { display: grid !important; justify-items: start; gap: 4px; margin-top: 6px; padding: 12px; border-radius: 14px; border: 1px dashed rgb(var(--tint) / .5); background: rgb(var(--tint) / .06); }
.rm-alone small { color: var(--muted); font-size: 12.5px; }
.rm-alone .btn { margin-top: 6px; }
/* Тихий режим кинозала (js/stealth.js): переключатель-таблетка. Дорожка с ползунком-глазом: выкл — глаз открыт (вас видно),
   вкл — ползунок уезжает вправо, дорожка заливается фиолетовым, глаз закрывается и перечёркивается; подпись меняется плавно */
.stealth-tg { --sv: #a78bfa; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px 0 6px; border-radius: 99px; flex: none; text-align: left; color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: border-color .45s, background .45s, box-shadow .45s, color .3s; }
.stealth-tg:hover { border-color: color-mix(in srgb, var(--sv) 45%, var(--line)); }
.stg-track { position: relative; display: block; width: 66px; height: 40px; flex: none; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35); transition: background .5s var(--ease-out); overflow: hidden; }
.stg-track::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%) -120% 0 / 200% 100% no-repeat; opacity: 0; }
.stg-knob { position: absolute; left: 4px; top: 4px; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; color: #2a2440; background: #f4efe6; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), background .45s, color .45s; }
.stg-knob svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.stg-knob .eye-pupil { fill: currentColor; stroke: none; transform-origin: 12px 12px; transition: transform .35s var(--ease-out), opacity .3s; }
.stg-knob .eye-lid { opacity: 0; transition: opacity .3s; }
.stg-knob .eye-slash { stroke-dasharray: 23; stroke-dashoffset: 23; transition: stroke-dashoffset .45s var(--ease-out) .1s; }
.stg-t { display: grid; gap: 1px; line-height: 1.15; }
.stg-t b { font-size: 13.5px; color: var(--text); }
.stg-t small { position: relative; display: grid; font-size: 11.5px; }
.stg-t small > span { grid-area: 1 / 1; transition: opacity .35s, transform .45s var(--ease-out); }
.stg-on { opacity: 0; transform: translateY(6px); color: var(--sv); font-weight: 700; }
.stealth-tg[aria-pressed="true"] { border-color: color-mix(in srgb, var(--sv) 60%, transparent); background: color-mix(in srgb, var(--sv) 12%, var(--surface)); box-shadow: 0 10px 30px -14px var(--sv); }
.stealth-tg[aria-pressed="true"] .stg-track { background: linear-gradient(135deg, #8b5cf6, #c4b5fd); }
.stealth-tg[aria-pressed="true"] .stg-track::before { animation: stgshine 1s var(--ease-out) .15s; }
.stealth-tg[aria-pressed="true"] .stg-knob { transform: translateX(26px) rotate(360deg); background: #1b1530; color: #c4b5fd; }
.stealth-tg[aria-pressed="true"] .eye-pupil { transform: scaleY(.1); opacity: 0; }
.stealth-tg[aria-pressed="true"] .eye-out { opacity: .35; }
.stealth-tg[aria-pressed="true"] .eye-lid { opacity: 1; }
.stealth-tg[aria-pressed="true"] .eye-slash { stroke-dashoffset: 0; }
.stealth-tg[aria-pressed="true"] .stg-on { opacity: 1; transform: none; }
.stealth-tg[aria-pressed="true"] .stg-off { opacity: 0; transform: translateY(-6px); }
.stealth-tg.busy { pointer-events: none; }
@keyframes stgshine { from { opacity: 1; background-position: -120% 0; } to { opacity: 0; background-position: 220% 0; } }
/* Плашка в комнате */
.ghost-bar { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 16px 0 6px; padding: 12px 12px 12px 20px; border-radius: 22px; font-size: 13.5px; line-height: 1.45; color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: background .5s, border-color .5s; }
.room.ghost .ghost-bar { color: var(--text); border-color: rgba(167, 139, 250, .45); background: linear-gradient(120deg, rgba(139, 92, 246, .16), rgba(139, 92, 246, .04) 60%), var(--surface); }
.room.ghost .ghost-bar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(196, 181, 253, .12) 50%, transparent 65%) -100% 0 / 200% 100% no-repeat; animation: stgsweep 4s ease-in-out infinite; pointer-events: none; }
@keyframes stgsweep { 0%, 30% { background-position: -100% 0; } 70%, 100% { background-position: 200% 0; } }
.ghost-bar > span { max-width: 640px; }
@media (prefers-reduced-motion: reduce) { .stg-knob, .stg-track::before, .room.ghost .ghost-bar::before { animation: none !important; transition: none !important; } }
.room.ghost .rc-mic:not(.ghost-mic), .room.ghost .rc-react-btn, .room.ghost [data-invite], .room.ghost [data-call], .room.ghost .rm-alone, .room.ghost [data-mark] { display: none !important; }.rc-mod { margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #1b1530; background: var(--rc, #a78bfa); vertical-align: 1px; }
/* Свои картинки зрителей (аватар, фон профиля — в т.ч. анимированные GIF/WebP, загруженные без обрезки) — заполняют рамку, не растягиваясь */
img[src^="/uploads/"] { object-fit: cover; }
/* Компактная кнопка тихого режима в шапке комнаты: круглый «глаз», те же анимации, что у большой */
.stealth-ic { --sv: #a78bfa; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .45s, border-color .45s, box-shadow .45s, transform .4s var(--ease-spring); }
.stealth-ic:hover { transform: scale(1.06); }
.stealth-ic .stg-knob { position: static; width: 30px; height: 30px; background: transparent; box-shadow: none; color: currentColor; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), color .4s; }
.stealth-ic[aria-pressed="true"] { background: linear-gradient(135deg, #8b5cf6, #c4b5fd); border-color: transparent; box-shadow: 0 8px 24px -8px #8b5cf6; }
.stealth-ic[aria-pressed="true"] .stg-knob { transform: rotate(360deg); color: #1b1530; }
.stealth-ic[aria-pressed="true"] .eye-pupil { transform: scaleY(.1); opacity: 0; }
.stealth-ic[aria-pressed="true"] .eye-out { opacity: .4; }
.stealth-ic[aria-pressed="true"] .eye-lid { opacity: 1; }
.stealth-ic[aria-pressed="true"] .eye-slash { stroke-dashoffset: 0; }
.stealth-ic.busy { pointer-events: none; }
:root[data-theme="light"] .stealth-ic { background: rgba(255, 255, 255, .6); border-color: var(--line); }
/* «Здесь пока только вы» — отдельная карточка во всю ширину, а не «таблетка» участника */
.room-members li.rm-alone { display: grid !important; flex: 1 1 100%; width: 100%; border-radius: 16px; padding: 12px 14px; font-weight: 500; }
.room-members li.rm-alone b { font-size: 13.5px; }
/* Модератор в тихом режиме — виден только другим модераторам */
.room-members li.rm-ghost { opacity:.75; border:1px dashed rgba(167,139,250,.55) !important; background:rgba(139,92,246,.10) !important; }
.room-members li.rm-ghost img { filter:grayscale(.6); }
.rm-ghost-t { font-style:normal; font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#c4b5fd; padding:1px 6px; border-radius:6px; background:rgba(139,92,246,.22); }

/* Комната: «Источник / Сезон / Озвучка» — в одной строке сразу после «Плеер 1 · Плеер 2», подпись слева от списка */
.room-src .room-p2-ctl { margin: 0; align-items: center; gap: 8px 12px; }
.room-src .room-p2-ctl:empty { display: none; }
.room-src .room-p2-ctl label { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; }

/* Значок роли сайта у участника комнаты: щит цвета роли, название — в подсказке */
.rm-role { display:inline-grid; place-items:center; flex:none; width:18px; height:18px; color:var(--rc); filter:drop-shadow(0 0 4px color-mix(in srgb, var(--rc) 45%, transparent)); font-style:normal; }
.rm-role svg { width:15px; height:15px; flex:none; fill:currentColor; fill-opacity:.22; }

/* Своя комната: создатель виден всегда — включённый глаз приглушён (без фиолетовой заливки), с пунктиром */
.stealth-ic.own[aria-pressed="true"] { background: rgba(139,92,246,.12); border: 1px dashed rgba(167,139,250,.6); box-shadow: none; color: #c4b5fd; }
.stealth-ic.own[aria-pressed="true"] .stg-knob { color: #c4b5fd; }

/* Микрофон в тихом режиме: виден, приглушён фиолетовым — нажатие предлагает выключить тихий режим */
.rc-mic.ghost-mic { color: #c4b5fd; border: 1px dashed rgba(167,139,250,.6); background: rgba(139,92,246,.10); }

/* «Позвать друга» в шапке комнаты: иконка сжималась в 0, а отступ под неё оставался — текст уезжал вправо */
.room-inv svg { width: 16px; height: 16px; flex: none; }


/* Мэтч: экран выбора, когда совпало несколько — сетка кандидатов (прокручивается), кто за что — аватарки */
.mx-wait .btn { margin-top: 6px; }
.mx-pick { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 14px; border-radius: 26px; background: #141418; color: #fff; text-align: center; overflow: hidden; }
.mx-pick h3 { margin: 0; font: 700 24px var(--font-display); letter-spacing: -.02em; }
.mx-pick > p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 13px; }
.mx-cands { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; padding: 2px; scrollbar-width: thin; }
.mx-cand { position: relative; display: grid; gap: 4px; padding: 6px 6px 8px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; text-align: left; cursor: var(--cur-hover, pointer); transition: border-color .2s, background .2s, transform .35s var(--ease-spring); }
.mx-cand:hover { transform: translateY(-2px); }
.mx-cand.on { border-color: var(--accent); background: rgb(var(--tint) / .14); box-shadow: 0 0 0 3px rgb(var(--tint) / .25); }
.mx-cand > img, .mx-cand > .mx-noimg { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 11px; display: grid; place-items: center; background: #222; }
.mx-cand b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mx-cand small { display: flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .6); font-size: 11.5px; }
.mx-cand small svg { width: 12px; height: 12px; flex: none; color: #ff5d7a; fill: currentColor; }
.mx-who { position: absolute; top: 12px; left: 12px; display: flex; }
.mx-who img { width: 24px; height: 24px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #141418; margin-right: -7px; }
.mx-pick > .btn { flex: none; justify-self: center; align-self: center; }

/* ---------- Мэтч: рулетка из совпадений ---------- */
/* Окно шире, все постеры сразу на экране — сетка --cols × --rows делит высоту поровну, прокрутки нет */
.mch.wide .mx-box { width: min(980px, calc(100vw - 24px)); }
.mch.wide .mx-stack { aspect-ratio: auto; width: 100%; height: min(700px, calc(100dvh - 110px - var(--sat, 0px) - var(--sab, 0px))); }
.mch.wide .mx-others { display: none; }
.mx-rl { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 28px; background: #0f0f13; color: #fff; overflow: hidden; isolation: isolate; }
.mx-rl-bg { position: absolute; inset: -40px; z-index: -1; background: center / cover no-repeat; filter: blur(40px) saturate(1.3); opacity: .35; transition: background-image .15s; }
.mx-rl::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, transparent, #0f0f13 75%); }
.mx-rl-head { flex: none; display: grid; justify-items: center; gap: 4px; text-align: center; }
.mx-rl-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #ff5d7a, var(--accent)); color: #fff; box-shadow: 0 8px 26px -6px #ff5d7a; animation: mxBeat 1.1s ease-in-out infinite; }
.mx-rl-ic svg { width: 19px; height: 19px; fill: currentColor; }
.mx-rl-head h3 { margin: 4px 0 0; font: 700 clamp(24px, 4vw, 34px) var(--font-display); letter-spacing: -.02em; background: linear-gradient(90deg, #fff, #f5d48a, #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mxShine 3s linear infinite; }
.mx-rl-sub { margin: 0; min-height: 1.4em; color: rgba(255, 255, 255, .72); font-size: 14.5px; }
.mx-rl-sub b { color: var(--accent); }
.mx-rl-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); gap: 12px; }
.mx-rl-card { position: relative; min-height: 0; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #1b1b22; border: 2px solid transparent; opacity: 0; transform: translateY(18px) scale(.9); animation: mxIn .55s var(--ease-spring) forwards; animation-delay: calc(var(--i) * 70ms); transition: border-color .12s, box-shadow .12s, transform .25s var(--ease-spring), opacity .4s, filter .4s; }
.mx-rl-card > img, .mx-rl-card > .mx-noimg { flex: 1; min-height: 0; width: 100%; object-fit: cover; display: grid; place-items: center; }
.mx-rl-t { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); }
.mx-rl-t b { font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-rl-t small { color: rgba(255, 255, 255, .65); font-size: 11px; }
.mx-rl-likes { position: absolute; top: 7px; right: 7px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .6); font-size: 11px; font-weight: 700; }
.mx-rl-likes svg { width: 11px; height: 11px; flex: none; color: #ff5d7a; fill: currentColor; }
/* Крутится: остальные приглушены, подсвеченная — золотая рамка и свечение */
.mx-rl.spinning .mx-rl-card:not(.lit) { filter: brightness(.55) saturate(.7); }
.mx-rl-card.lit { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--tint) / .35), 0 0 34px rgb(var(--tint) / .55); transform: scale(1.04); z-index: 1; }
/* Остановилась: победитель крупнее и пульсирует, остальные гаснут */
.mx-rl.landed .mx-rl-card.lose { opacity: .22; filter: grayscale(.8) brightness(.6); transform: scale(.94); }
.mx-rl.landed .mx-rl-card.win { transform: scale(1.1); z-index: 2; animation: mxWin 1.2s ease-in-out infinite; }
.mx-rl.landed .mx-rl-card.win::after { content: 'СМОТРИМ'; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 99px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1205; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; box-shadow: 0 6px 18px -4px var(--accent-2); }
/* Конфетти */
.mx-fx { position: absolute; left: 50%; top: 55%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.mx-fx i { position: absolute; width: var(--w); height: calc(var(--w) * .45); border-radius: 2px; background: var(--c); animation: mxConf var(--d) cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes mxIn { to { opacity: 1; transform: none; } }
@keyframes mxBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
@keyframes mxShine { to { background-position: -200% 0; } }
@keyframes mxWin { 0%, 100% { box-shadow: 0 0 0 3px rgb(var(--tint) / .5), 0 0 40px rgb(var(--tint) / .55); } 50% { box-shadow: 0 0 0 5px rgb(var(--tint) / .8), 0 0 70px rgba(255, 122, 69, .75); } }
@keyframes mxConf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 60vh)) rotate(var(--r)); opacity: 0; } }
@media (max-width: 640px) { .mx-rl { padding: 14px 10px; gap: 10px; } .mx-rl-grid { gap: 8px; } .mx-rl-t { padding: 16px 7px 6px; } .mx-rl-t b { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .mx-rl-card { animation: none; opacity: 1; transform: none; } .mx-rl-ic, .mx-rl-head h3, .mx-rl.landed .mx-rl-card.win { animation: none; } }

/* Пока крутится — подсветка и затемнение мгновенные (иначе при быстрой прокрутке светились две карточки сразу) */
.mx-rl.spinning:not(.landed) .mx-rl-card { transition: transform .12s ease-out; }


/* Когда крутится и после остановки — анимация появления снята (иначе победитель с пульсом становился невидимым, а проигравшие не гасли) */
.mx-rl.spinning .mx-rl-card, .mx-rl.landed .mx-rl-card { animation: none; opacity: 1; transform: none; }
.mx-rl.spinning .mx-rl-card.lit { transform: scale(1.04); }
.mx-rl.landed .mx-rl-card.lose { opacity: .22; transform: scale(.94); }
.mx-rl.landed .mx-rl-card.win { transform: scale(1.1); animation: mxWin 1.2s ease-in-out infinite; }








/* ================= Календарь серий (/calendar) ================= */
.cal { padding-top: clamp(96px, 12vw, 128px); padding-bottom: 70px; display: grid; gap: 26px; }
.cal-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cal-hero-t { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.cal-hero h1 { margin: 0; font: 600 clamp(34px, 5vw, 60px)/1 var(--font-display); letter-spacing: -.04em; }
.cal-hero p { margin: 0; max-width: 560px; font-size: 15px; }
.cal-push { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); max-width: 460px; flex: 1 1 340px; }
.cal-push-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px -10px var(--accent-2); }
.cal-push-ic svg { width: 21px; height: 21px; }
.cal-push[data-state="on"] .cal-push-ic { background: linear-gradient(135deg, #4ade80, #22c55e); box-shadow: 0 10px 24px -10px #22c55e; color: #062b14; animation: calRing 2.6s ease-in-out infinite; }
.cal-push-t { display: grid; gap: 3px; flex: 1; min-width: 0; }
.cal-push-t b { font-size: 14px; }
.cal-push-t small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cal-push .btn { flex: none; }
@keyframes calRing { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-12deg); } 92% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }

/* Ближайшая серия — большая карточка с задником и отсчётом */
.cal-next { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 320px; padding: clamp(22px, 3.4vw, 40px); border-radius: 30px; color: #f4efe6; background: #0d0c0b; border: 1px solid rgb(var(--tint) / .22); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .9); transition: transform .5s var(--ease-spring), border-color .4s; }
.cal-next:hover { transform: translateY(-3px); border-color: rgb(var(--tint) / .45); }
.cal-next-bg { position: absolute; inset: 0; z-index: -2; background: center 25% / cover no-repeat; transition: transform 1.4s var(--ease-out); }
.cal-next:hover .cal-next-bg { transform: scale(1.04); }
.cal-next::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 9, 11, .94) 0%, rgba(9, 9, 11, .7) 45%, rgba(9, 9, 11, .2) 100%), linear-gradient(0deg, rgba(9, 9, 11, .8), transparent 60%); }
.cal-next-in { display: grid; justify-items: start; gap: 10px; max-width: 620px; }
.cal-next-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: rgb(var(--tint) / .12); border: 1px solid rgb(var(--tint) / .35); }
.cal-next-tag svg { width: 13px; height: 13px; }
.cal-next-title { font: 700 clamp(28px, 4.4vw, 52px)/1.02 var(--font-display); letter-spacing: -.03em; }
.cal-next-ep { font-size: 16px; color: rgba(244, 239, 230, .85); }
.cal-next-date { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: rgba(244, 239, 230, .7); text-transform: capitalize; }
.cal-next-date svg { width: 15px; height: 15px; color: var(--accent); }
.cal-next .btn { margin-top: 6px; pointer-events: none; }
.cal-count { flex: none; display: grid; place-items: center; text-align: center; width: 148px; height: 148px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 8px rgb(var(--tint) / .07), 0 20px 50px -20px rgba(0, 0, 0, .8); }
.cal-count b { display: block; font: 700 52px/1 var(--font-display); color: var(--accent); letter-spacing: -.04em; }
.cal-count small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; line-height: 1.3; color: rgba(244, 239, 230, .75); }
.cal-count.now { background: radial-gradient(circle at 30% 25%, rgba(74, 222, 128, .35), rgba(34, 197, 94, .08)); border-color: rgba(74, 222, 128, .5); animation: calPulse 2s ease-in-out infinite; }
.cal-count.now b { font-size: 20px; letter-spacing: -.03em; color: #4ade80; }
@keyframes calPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .35); } 50% { box-shadow: 0 0 0 14px rgba(74, 222, 128, 0); } }

/* Полоса двух недель */
.cal-week { display: grid; grid-template-columns: repeat(14, minmax(64px, 1fr)); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: none; }
.cal-week::-webkit-scrollbar { display: none; }
.cal-wd { scroll-snap-align: start; display: grid; justify-items: center; gap: 4px; padding: 10px 4px 9px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; cursor: var(--cur-hover, pointer); transition: border-color .2s, background .2s, transform .3s var(--ease-spring); }
.cal-wd small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cal-wd b { font: 700 22px/1 var(--font-display); color: var(--text); }
.cal-wd:disabled { opacity: .45; cursor: default; }
.cal-wd.has:hover { transform: translateY(-2px); border-color: var(--accent); }
.cal-wd.is-today { border-color: rgb(var(--tint) / .6); background: rgb(var(--tint) / .1); }
.cal-wd.is-today small { color: var(--accent); }
.cal-wd-dots { display: flex; align-items: center; justify-content: center; min-height: 20px; }
.cal-wd-dots i { width: 18px; height: 18px; flex: none; border-radius: 50%; background: #333 center / cover; border: 2px solid var(--surface); margin-left: -6px; }
.cal-wd-dots i:first-child { margin-left: 0; }
.cal-wd-dots em { margin-left: 3px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent); }

/* День и карточки серий */
.cal-day { display: grid; gap: 14px; scroll-margin-top: 90px; }
.cal-day-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cal-day-n { font: 700 46px/1 var(--font-display); letter-spacing: -.04em; color: var(--text); min-width: 54px; }
.cal-day-t { display: grid; gap: 2px; }
.cal-day-t b { font-size: 17px; text-transform: capitalize; }
.cal-day-t small { font-size: 13px; color: var(--muted); }
.cal-rel { font-style: normal; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.cal-rel.hot { color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.cal-day-c { margin-left: auto; font-size: 13px; color: var(--faint); }
.cal-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.cal-ep { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; transition: transform .45s var(--ease-spring), border-color .3s, box-shadow .4s; }
.cal-ep:hover { transform: translateY(-4px); border-color: rgb(var(--tint) / .5); box-shadow: 0 24px 50px -28px rgb(var(--tint) / .6); }
.cal-ep.today { border-color: rgba(74, 222, 128, .45); }
.cal-ep-img { position: relative; aspect-ratio: 16 / 9; background: #18171a; display: grid; place-items: center; overflow: hidden; }
.cal-ep-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.cal-ep:hover .cal-ep-img img { transform: scale(1.05); }
.cal-ep-img > i svg { width: 34px; height: 34px; color: var(--faint); }
.cal-ep-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 45%); }
.cal-ep-code { position: absolute; left: 12px; bottom: 10px; z-index: 1; padding: 4px 10px; border-radius: 10px; font: 700 13px var(--font-display); letter-spacing: .02em; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cal-live { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #062b14; background: #4ade80; }
.cal-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #062b14; animation: calBlink 1.2s ease-in-out infinite; }
@keyframes calBlink { 50% { opacity: .2; } }
.cal-ep-body { display: grid; align-content: start; gap: 6px; padding: 14px 16px 16px; }
.cal-ep-show { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cal-ep-show img { width: 26px; height: 38px; flex: none; border-radius: 6px; object-fit: cover; }
.cal-ep-show b { font-size: 15.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ep-meta { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.cal-ep-name { font-size: 14px; color: var(--text); line-height: 1.35; }
.cal-ep-ov { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-ep-when { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--faint); }
.cal-ep-when svg { width: 13px; height: 13px; flex: none; }

.cal-quiet { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px dashed var(--line-2); }
.cal-quiet > svg { width: 30px; height: 30px; flex: none; color: var(--accent); }
.cal-quiet p { margin: 4px 0 0; font-size: 13.5px; }
.cal-block { display: grid; gap: 14px; margin-top: 8px; }
.cal-block-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cal-block-h h2 { margin: 0; font: 600 clamp(22px, 2.6vw, 30px) var(--font-display); letter-spacing: -.02em; }
.cal-block-h small { font-size: 13px; }
.cal-recent { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 320px); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cal-recent .cal-ep { scroll-snap-align: start; }

/* Мои сериалы: постеры с колокольчиком */
.cal-my { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.cal-show { position: relative; display: grid; gap: 6px; align-content: start; transition: opacity .3s, filter .3s; }
.cal-show.off { opacity: .45; filter: grayscale(.7); }
.cal-show-p { display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: #18171a; border: 1px solid var(--line); transition: transform .45s var(--ease-spring), box-shadow .4s; }
.cal-show-p:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .9); }
.cal-show-p img { width: 100%; height: 100%; object-fit: cover; }
.cal-show-p i svg { width: 30px; height: 30px; color: var(--faint); }
.cal-show-t { font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-show-st { font-size: 12px; line-height: 1.3; color: var(--muted); }
.cal-show-st.hot { color: #4ade80; font-weight: 700; }
.cal-show-st.soon { color: var(--accent); font-weight: 600; }
.cal-show-st.end { color: var(--faint); }
.cal-bell { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: var(--cur-hover, pointer); transition: background .25s, transform .35s var(--ease-spring), box-shadow .3s; }
.cal-bell svg { width: 16px; height: 16px; }
.cal-bell:hover { transform: scale(1.1); }
.cal-bell.on { color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 6px 16px -6px var(--accent-2); }
.cal-bell.on svg { fill: currentColor; fill-opacity: .25; }
.cal-empty-h { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.cal-empty-h > span { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px; color: var(--accent); background: rgb(var(--tint) / .12); }
.cal-empty-h > span svg { width: 22px; height: 22px; }
.cal-empty-h h2 { margin: 0; font: 600 22px var(--font-display); }
.cal-empty-h p { margin: 6px 0 0; font-size: 14px; max-width: 640px; }
.cal-guest { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 60px 20px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); }
.cal-guest-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.cal-guest-ic svg { width: 28px; height: 28px; }
.cal-guest h1 { margin: 0; font: 600 clamp(30px, 4vw, 44px) var(--font-display); letter-spacing: -.03em; }
.cal-guest p { margin: 0; max-width: 520px; color: var(--muted); }
:root[data-theme="light"] .cal-wd-dots i { border-color: #fff; }
@media (max-width: 720px) {
  .cal { gap: 20px; }
  .cal-push { flex-basis: 100%; max-width: none; }
  .cal-next { flex-direction: column; align-items: flex-start; min-height: 0; padding-top: 120px; border-radius: 24px; }
  .cal-count { position: absolute; top: 16px; right: 16px; width: 92px; height: 92px; }
  .cal-count b { font-size: 34px; }
  .cal-count small { font-size: 10.5px; }
  .cal-count.now b { font-size: 13.5px; }
  .cal-week { grid-template-columns: repeat(14, 62px); }
  .cal-day-n { font-size: 36px; min-width: 42px; }
  .cal-day-c { display: none; }
  .cal-my { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px 10px; }
  .cal-recent { grid-auto-columns: 82%; }
}

/* Колокольчик «следить за новыми сериями» на странице сериала */
.ep-bell.on { color: #1a1205 !important; background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important; border-color: transparent !important; box-shadow: 0 8px 22px -10px var(--accent-2); }
.ep-bell.on svg { fill: currentColor; fill-opacity: .25; }


/* ================= Игра «Угадай фильм» ================= */
.qz { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; pointer-events: none; }
.qz-scrim { position: absolute; inset: 0; background: rgba(4, 4, 6, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.qz-box { position: relative; isolation: isolate; width: min(1080px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 18px; border-radius: 30px; color: #f4efe6; background: radial-gradient(120% 70% at 50% -10%, rgb(var(--tint) / .14), transparent 60%), #0e0d10; border: 1px solid rgb(var(--tint) / .22); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95); overflow: hidden; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .3s, transform .5s var(--ease-spring); }
.qz.open { pointer-events: auto; }
.qz.open .qz-scrim { opacity: 1; }
.qz.open .qz-box { opacity: 1; transform: none; }
.qz-top { display: flex; align-items: center; gap: 12px; }
.qz-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px var(--font-display); letter-spacing: -.01em; }
.qz-brand span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.qz-brand svg { width: 17px; height: 17px; }
.qz-round { padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--accent); background: rgb(var(--tint) / .12); border: 1px solid rgb(var(--tint) / .3); }
.qz-top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.qz-stop { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: rgba(244, 239, 230, .8); font: 600 12.5px var(--font); cursor: pointer; }
.qz-stop svg { width: 14px; height: 14px; }
.qz-stop:hover { border-color: #ff7a7a; color: #ff9a9a; }
.qz-hide { width: 34px; height: 34px; }
.qz-hide svg { transform: rotate(90deg); }
.qz-main { display: grid; grid-template-columns: 1fr 260px; gap: 16px; min-height: 0; }
.qz.ended .qz-main { grid-template-columns: 1fr 260px; }
.qz-stage { position: relative; display: grid; align-content: start; gap: 12px; min-width: 0; min-height: 0; overflow: auto; scrollbar-width: none; }
.qz-stage::-webkit-scrollbar { display: none; }

/* Вопрос: кадр или описание */
.qz-q { position: relative; border-radius: 22px; overflow: hidden; background: #141317; border: 1px solid rgba(255, 255, 255, .08); }
.qz-frame { aspect-ratio: 16 / 9; max-height: min(46dvh, 470px); width: 100%; overflow: hidden; display: grid; place-items: center; background: #000; }
.qz-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: filter; }
.qz-plot { display: grid; justify-items: center; gap: 14px; padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 48px); min-height: 220px; align-content: center; text-align: center; background: radial-gradient(90% 120% at 50% 0%, rgba(167, 139, 250, .16), transparent 60%); }
.qz-plot-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #c4b5fd; background: rgba(139, 92, 246, .16); }
.qz-plot-ic svg { width: 20px; height: 20px; }
.qz-plot p { margin: 0; max-width: 680px; font-size: clamp(15px, 1.6vw, 18.5px); line-height: 1.6; color: rgba(244, 239, 230, .92); }
.qz-count { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(70px, 12vw, 130px)/1 var(--font-display); color: var(--accent); text-shadow: 0 10px 40px rgb(var(--tint) / .55); background: rgba(8, 8, 10, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.qz-count.show { opacity: 1; animation: qzPop 1s ease-out infinite; }
@keyframes qzPop { 0% { transform: scale(1.25); } 30% { transform: scale(1); } }
.qz-stage.pre .qz-plot p { filter: blur(8px); }

/* Таймер */
.qz-timer { display: flex; align-items: center; gap: 12px; }
.qz-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.qz-bar i { display: block; height: 100%; border-radius: inherit; background-color: #4ade80; transform-origin: left; }
.qz-sec { min-width: 30px; text-align: right; font: 700 20px var(--font-display); font-variant-numeric: tabular-nums; color: #f4efe6; }
.qz-timer.low .qz-sec { color: #ff7a7a; animation: qzBeat .5s ease-in-out infinite alternate; }
@keyframes qzBeat { to { transform: scale(1.18); } }

/* Варианты A–D */
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px 10px 10px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #f4efe6; font: 600 15px var(--font); text-align: left; cursor: pointer; opacity: 0; transform: translateY(10px); animation: qzIn .45s var(--ease-spring) forwards; animation-delay: calc(var(--k) * 60ms); transition: background .2s, border-color .2s, transform .25s var(--ease-spring), opacity .3s; }
@keyframes qzIn { to { opacity: 1; transform: none; } }
.qz-opt:not(:disabled):hover { background: rgb(var(--tint) / .1); border-color: rgb(var(--tint) / .5); transform: translateY(-2px); }
.qz-opt:disabled { cursor: default; }
.qz-l { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; font: 800 15px var(--font-display); color: var(--accent); background: rgb(var(--tint) / .12); border: 1px solid rgb(var(--tint) / .3); }
.qz-t { flex: 1; min-width: 0; line-height: 1.3; }
.qz-opt.mine { border-color: var(--accent); background: rgb(var(--tint) / .16); box-shadow: 0 0 0 3px rgb(var(--tint) / .2); }
.qz-opt.mine .qz-l { color: #1a1205; background: var(--accent); }
.qz-stage.pre .qz-opt { filter: blur(3px); pointer-events: none; }
.qz-opt.right { border-color: #4ade80; background: rgba(74, 222, 128, .16); box-shadow: 0 0 0 3px rgba(74, 222, 128, .25), 0 0 30px rgba(74, 222, 128, .25); animation: qzIn .45s var(--ease-spring) forwards, qzRight .6s .3s ease-out; }
.qz-opt.right .qz-l { color: #062b14; background: #4ade80; border-color: transparent; }
.qz-opt.wrong { border-color: #ff6b6b; background: rgba(255, 107, 107, .14); animation: qzIn .45s var(--ease-spring) forwards, qzShake .45s .2s; }
.qz-opt.wrong .qz-l { color: #fff; background: #ff6b6b; border-color: transparent; }
.qz-opt.dim { opacity: .45 !important; }
@keyframes qzRight { 50% { transform: scale(1.03); } }
@keyframes qzShake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.qz-who { display: flex; flex: none; }
.qz-who img { width: 24px; height: 24px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #0e0d10; margin-left: -7px; }
.qz-ans { display: flex; align-items: center; gap: 4px; min-height: 28px; font-size: 13px; color: rgba(244, 239, 230, .65); }
.qz-ans img { width: 26px; height: 26px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #0e0d10; margin-right: -8px; animation: qzIn .35s var(--ease-spring) forwards; opacity: 0; }
.qz-ans span { margin-left: 14px; }
.qz-wait { margin: 0; font-size: 13px; color: var(--accent); opacity: 0; transition: opacity .3s; }
.qz-wait.show { opacity: 1; }
.qz-next { margin: 0; font-size: 13px; color: rgba(244, 239, 230, .55); }

/* Правильный ответ поверх кадра */
.qz-film { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(10, 10, 12, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); animation: qzIn .5s var(--ease-spring) forwards; opacity: 0; }
.qz-film > img { width: 44px; height: 66px; flex: none; border-radius: 8px; object-fit: cover; }
.qz-film > span { display: grid; gap: 1px; min-width: 0; flex: 1; }
.qz-film small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4ade80; }
.qz-film b { font: 700 18px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-film em { font-style: normal; font-size: 12.5px; color: rgba(244, 239, 230, .6); }
.qz-res { flex: none; padding: 8px 14px; border-radius: 14px; font: 800 20px var(--font-display); }
.qz-res.ok { color: #062b14; background: #4ade80; box-shadow: 0 8px 24px -8px #4ade80; animation: qzPop .6s ease-out; }
.qz-res.bad { color: #ff9a9a; background: rgba(255, 107, 107, .14); font-size: 15px; }
.qz-plot + .qz-count + .qz-film, .qz-q.plot .qz-film { position: static; margin: 0 12px 12px; }

/* Счёт */
.qz-board { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-height: 0; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
.qz-board-h { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(244, 239, 230, .7); }
.qz-board-h svg { width: 15px; height: 15px; color: var(--accent); }
.qz-scores { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; overflow: auto; scrollbar-width: none; }
.qz-scores li { display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 8px; border-radius: 14px; background: rgba(255, 255, 255, .04); transition: background .3s; }
.qz-scores li.me { background: rgb(var(--tint) / .12); box-shadow: inset 0 0 0 1px rgb(var(--tint) / .35); }
.qz-scores li.up { animation: qzUp .6s var(--ease-spring); }
.qz-scores li.gone { opacity: .5; }
@keyframes qzUp { from { transform: translateY(14px); background: rgba(74, 222, 128, .2); } }
.qz-pl { width: 20px; flex: none; text-align: center; font: 800 13px var(--font-display); color: rgba(244, 239, 230, .5); }
.qz-scores li:nth-child(1) .qz-pl { color: var(--accent); }
.qz-scores li:nth-child(2) .qz-pl { color: #cbd5e1; }
.qz-scores li:nth-child(3) .qz-pl { color: #d4a373; }
.qz-scores img { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; }
.qz-nm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-scores b { font: 700 14px var(--font-display); font-variant-numeric: tabular-nums; }
.qz-gain { font-style: normal; font-size: 11.5px; font-weight: 800; color: #4ade80; animation: qzIn .4s var(--ease-spring) forwards; opacity: 0; }
.qz-gain.zero { color: rgba(244, 239, 230, .35); }

/* Итоги: пьедестал */
.qz-end { display: grid; justify-items: center; gap: 10px; padding: 10px 0 6px; text-align: center; }
.qz-end h2 { margin: 0; font: 700 clamp(24px, 3.4vw, 38px) var(--font-display); letter-spacing: -.02em; background: linear-gradient(90deg, #fff, #f5d48a, #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mxShine 3s linear infinite; }
.qz-end > p { margin: 0; font-size: 14px; }
.qz-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 170px)); align-items: end; gap: 12px; margin: 18px 0 6px; }
.qz-pod { display: grid; justify-items: center; gap: 6px; position: relative; opacity: 0; transform: translateY(30px); animation: qzIn .7s var(--ease-spring) forwards; }
.qz-pod.p1 { animation-delay: .5s; } .qz-pod.p2 { animation-delay: .25s; } .qz-pod.p3 { animation-delay: 0s; }
.qz-pod > img { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .2); }
.qz-pod.p1 > img { width: 84px; height: 84px; border-color: var(--accent); box-shadow: 0 0 30px rgb(var(--tint) / .55); }
.qz-pod b { font-size: 14px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-pod small { font-size: 12px; color: rgba(244, 239, 230, .6); }
.qz-crown { position: absolute; top: -26px; color: var(--accent); filter: drop-shadow(0 0 8px rgb(var(--tint) / .7)); animation: qzBeat 1s ease-in-out infinite alternate; }
.qz-crown svg { width: 30px; height: 30px; fill: currentColor; fill-opacity: .3; }
.qz-step { display: grid; place-items: center; width: 100%; margin-top: 4px; border-radius: 16px 16px 6px 6px; font: 800 30px var(--font-display); color: rgba(255, 255, 255, .85); }
.qz-pod.p1 .qz-step { height: 120px; color: #1a1205; background: linear-gradient(180deg, var(--accent), #c88a2a); }
.qz-pod.p2 .qz-step { height: 86px; background: linear-gradient(180deg, #94a3b8, #64748b); }
.qz-pod.p3 .qz-step { height: 62px; background: linear-gradient(180deg, #c08457, #8a5a36); }
.qz-end-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.qz-fx { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.qz-fx i { position: absolute; width: var(--w); height: calc(var(--w) * .45); border-radius: 2px; background: var(--c); animation: mxConf var(--d) cubic-bezier(.15, .7, .3, 1) var(--dl) forwards; opacity: 0; }
.qz-reopen { position: fixed; left: 50%; bottom: calc(18px + var(--sab, 0px)); transform: translateX(-50%) translateY(20px); display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 99px; border: 0; color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font: 700 14px var(--font); box-shadow: 0 14px 34px -10px var(--accent-2); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-spring); }
.qz-reopen svg { width: 16px; height: 16px; }
.qz:not(.open) .qz-reopen { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
@media (max-width: 820px) {
  .qz-box { padding: 12px; gap: 10px; border-radius: 24px; max-height: calc(100dvh - 16px); width: calc(100vw - 16px); }
  .qz-main, .qz.ended .qz-main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .qz-board { order: -1; padding: 8px; grid-template-rows: auto; }
  .qz-board-h { display: none; }
  .qz-scores { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .qz-scores li { padding: 5px 9px 5px 6px; }
  .qz-scores img { width: 22px; height: 22px; }
  .qz-nm { max-width: 90px; font-size: 12.5px; }
  .qz-brand { font-size: 15px; } .qz-brand span { width: 30px; height: 30px; }
  .qz-stop span { display: none; }
  .qz-opts { grid-template-columns: 1fr; gap: 8px; }
  .qz-opt { min-height: 50px; font-size: 14px; padding: 7px 12px 7px 7px; }
  .qz-l { width: 32px; height: 32px; }
  .qz-frame { max-height: 32dvh; }
  .qz-plot { min-height: 0; padding: 18px; }
  .qz-plot p { font-size: 14.5px; }
  .qz-film b { font-size: 15px; }
  .qz-podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .qz-pod > img { width: 48px; height: 48px; } .qz-pod.p1 > img { width: 62px; height: 62px; }
  .qz-pod.p1 .qz-step { height: 90px; } .qz-pod.p2 .qz-step { height: 64px; } .qz-pod.p3 .qz-step { height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .qz-opt, .qz-pod, .qz-film, .qz-gain, .qz-ans img { animation: none; opacity: 1; transform: none; } }

.qz-pod.none { visibility: hidden; }
.qz.ended .qz-stop { display: none; }
.qz-scores li { position: relative; }
.qz-gain { position: absolute; top: -7px; right: 6px; padding: 1px 6px; border-radius: 99px; background: #0e0d10; border: 1px solid rgba(74, 222, 128, .45); font-size: 10.5px; line-height: 1.3; }
.qz-gain.zero { border-color: rgba(255, 255, 255, .15); }
.qz-scores { padding-top: 6px; }


.qz-brand i { font-style: normal; white-space: nowrap; }
.qz-round { white-space: nowrap; }
@media (max-width: 440px) { .qz-brand i { display: none; } .qz-round { font-size: 12px; } }


.qz-podium[hidden] { display: none; }
.qz-none { display: grid; justify-items: center; gap: 6px; margin: 22px 0 8px; color: rgba(244, 239, 230, .7); }
.qz-none svg { width: 34px; height: 34px; color: var(--accent); }
.qz-none b { font-size: 18px; color: #f4efe6; }
.qz-none span { font-size: 13.5px; }


/* ================= Трейлеры (/trailers) ================= */
@media (max-width: 640px) {
}

/* ================= Режим телевизора (html.tv — js/tv.js) ================= */
/* Крупнее: экран 1920 точек показываем как 1280, 1366–1600 — как ~1100 */
/* zoom — на содержимое страницы, шапку и окна по отдельности: zoom на html ломает окна поверх страницы (fixed) */
@media (min-width: 1700px) { html.tv #view, html.tv .island, html.tv .dlg-card, html.tv .modal-box, html.tv .qz-box, html.tv .mx-box, html.tv .search-panel, html.tv .acct-panel, html.tv .tv-hint, html.tv .toast-stack { zoom: 1.5; } }
@media (min-width: 1250px) and (max-width: 1699px) { html.tv #view, html.tv .island, html.tv .dlg-card, html.tv .modal-box, html.tv .qz-box, html.tv .mx-box, html.tv .search-panel, html.tv .acct-panel, html.tv .tv-hint, html.tv .toast-stack { zoom: 1.15; } }
/* Выбранный пультом элемент — яркая золотая рамка с ореолом */
html.tv :focus { outline: none; }
html.tv :focus-visible, html.tv .tv-focus, html.tv .player:focus { outline: 4px solid var(--accent) !important; outline-offset: 4px; box-shadow: 0 0 0 10px rgb(var(--tint) / .28) !important; transition: outline-offset .15s, box-shadow .2s; }
html.tv .btn:is(:focus-visible, .tv-focus), html.tv .chip:is(:focus-visible, .tv-focus), html.tv .icon-btn:is(:focus-visible, .tv-focus) { transform: scale(1.06); }
html.tv .nav a:focus-visible { color: var(--text); }
/* Карточка фильма в фокусе — как при наведении мышью: поднимается, показывает описание и кнопку */
html.tv .card:is(:focus-visible, .tv-focus) { outline: none !important; box-shadow: none !important; }
html.tv .card:is(:focus-visible, .tv-focus) .card-shell { transform: translateY(-8px) scale(1.06); box-shadow: 0 0 0 4px var(--accent), 0 0 0 11px rgb(var(--tint) / .3), 0 30px 60px -24px rgba(0, 0, 0, .9); border-color: transparent; }
html.tv .card:is(:focus-visible, .tv-focus) .card-poster { transform: scale(1.07); }
html.tv .card:is(:focus-visible, .tv-focus) .card-info { transform: none; opacity: 1; }
html.tv .card:is(:focus-visible, .tv-focus) .card-play { transform: scale(1); }
html.tv .card:is(:focus-visible, .tv-focus) .card-cap b { color: var(--accent); }
html.tv .card-fav { display: none; } /* «сердечко» внутри карточки пультом не нажать отдельно — убираем */
/* Без тяжёлых эффектов: слабые процессоры ТВ не тянут размытие и «живые» превью */
html.tv .card-preview, html.tv .card-glare, html.tv .grain, html.tv .mv-yt { display: none !important; }
html.tv *, html.tv *::before, html.tv *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.tv .island { background: rgba(14, 13, 16, .96); }
html.tv body { cursor: auto; }
/* Крупнее мелкий текст и кнопки — читать с дивана */
html.tv body { font-size: 17px; }
html.tv .btn.sm { min-height: 44px; padding-inline: 18px; }
html.tv .icon-btn { min-width: 44px; min-height: 44px; }
html.tv small, html.tv .muted { font-size: max(13px, 1em); }
/* Подсказка про пульт */
.tv-hint { position: fixed; left: 50%; bottom: 28px; z-index: 300; display: flex; align-items: center; gap: 18px; padding: 14px 22px; border-radius: 20px; color: #f4efe6; background: rgba(14, 13, 16, .96); border: 1px solid rgb(var(--tint) / .35); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); transform: translate(-50%, 30px); opacity: 0; transition: opacity .4s, transform .5s var(--ease-spring); pointer-events: none; }
.tv-hint.show { opacity: 1; transform: translate(-50%, 0); }
.tv-hint b { font-size: 15px; color: var(--accent); }
.tv-hint span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(244, 239, 230, .8); white-space: nowrap; }
.tv-hint kbd, .tvp-key kbd { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 9px; font: 700 13px var(--font); color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* Страница /tv */
.tvp { padding-top: clamp(96px, 12vw, 128px); padding-bottom: 70px; display: grid; gap: 26px; }
.tvp-hero { display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(28px, 5vw, 56px) 20px; border-radius: 32px; background: radial-gradient(90% 120% at 50% 0%, rgb(var(--tint) / .16), transparent 60%), var(--surface); border: 1px solid var(--line); }
.tvp-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 16px 40px -14px var(--accent-2); }
.tvp-ic svg { width: 34px; height: 34px; }
.tvp-hero h1 { margin: 0; font: 600 clamp(30px, 4.6vw, 54px)/1.05 var(--font-display); letter-spacing: -.035em; }
.tvp-hero p { margin: 0; max-width: 620px; font-size: 15.5px; line-height: 1.55; }
.tvp-hero p b { color: var(--accent); }
.tvp-state { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 9px 16px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.tvp-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--faint); }
.tvp-state.on { border-color: rgba(74, 222, 128, .4); }
.tvp-state.on .tvp-dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.tvp-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.tvp-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tvp-key { display: grid; gap: 6px; justify-items: start; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.tvp-key b { font-size: 16px; }
.tvp-key small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.tvp-note { margin: 0; text-align: center; font-size: 13.5px; }

/* Игра: кадр размыт, во время вопроса проясняется одной CSS-анимацией (quiz.js) */
.qz-frame .qz-sharp { filter: blur(28px) saturate(.6); will-change: filter; }
.qz-stage.reveal .qz-frame .qz-sharp { filter: none !important; transition: filter .4s !important; }

/* Игра: «+N сек» у таймера — длинное описание, больше времени. Выпрыгивает, светится и остаётся маленькой меткой */
.qz-bonus { flex: none; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-style: normal; font: 800 13px var(--font-display); color: #062b14; background: linear-gradient(135deg, #4ade80, #22c55e); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: qzBonus 1.6s var(--ease-spring) both, qzBonusGlow 1.6s ease-out .2s 2; }
@keyframes qzBonus { 0% { transform: translateY(14px) scale(.3); opacity: 0; } 35% { transform: translateY(-6px) scale(1.35); opacity: 1; } 60% { transform: scale(.95); } 100% { transform: none; opacity: 1; } }
@keyframes qzBonusGlow { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 100% { box-shadow: 0 0 0 14px rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .qz-bonus { animation: none; } }

/* Мэтч: итог + «Как голосовали» */
.mx-final { position: absolute; inset: 0; display: grid; }
.mx-final.has-votes { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; }
.mx-final .mx-result { position: relative; inset: auto; height: 100%; }
.mx-votes { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-height: 0; padding: 18px; border-radius: 26px; color: #f4efe6; background: #141418; border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.mx-votes-h { display: grid; gap: 3px; }
.mx-votes-h b { display: inline-flex; align-items: center; gap: 8px; font: 700 19px var(--font-display); letter-spacing: -.01em; }
.mx-votes-h b svg { width: 18px; height: 18px; color: #ff5d7a; fill: currentColor; }
.mx-votes-h small { font-size: 12.5px; color: rgba(244, 239, 230, .55); }
.mx-vlist { list-style: none; margin: 0; padding: 2px 2px 2px 0; display: grid; gap: 8px; align-content: start; overflow-y: auto; scrollbar-width: thin; }
.mx-vlist li { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); opacity: 0; transform: translateX(16px); animation: mxVIn .5s var(--ease-spring) forwards; animation-delay: calc(.25s + var(--i) * 70ms); }
@keyframes mxVIn { to { opacity: 1; transform: none; } }
.mx-vlist li.win { background: rgb(var(--tint) / .1); border-color: rgb(var(--tint) / .45); box-shadow: 0 0 24px -8px rgb(var(--tint) / .5); }
.mx-v-n { width: 18px; flex: none; text-align: center; font: 800 13px var(--font-display); color: rgba(244, 239, 230, .45); }
.mx-vlist li.win .mx-v-n { color: var(--accent); }
.mx-v-p { width: 34px; height: 50px; flex: none; border-radius: 7px; object-fit: cover; background: #222; display: grid; place-items: center; }
.mx-v-p svg { width: 16px; height: 16px; color: rgba(255, 255, 255, .4); }
.mx-v-t { flex: 1; min-width: 0; display: grid; gap: 6px; }
.mx-v-t b { font-size: 13.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-v-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mx-v-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ff5d7a, var(--accent)); animation: mxVBar .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.45s + var(--i) * 70ms); }
.mx-vlist li.win .mx-v-bar i { background: linear-gradient(90deg, var(--accent), #4ade80); }
@keyframes mxVBar { to { width: var(--w); } }
.mx-v-who { display: flex; flex: none; align-items: center; }
.mx-v-who img { width: 24px; height: 24px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #141418; margin-left: -7px; }
.mx-v-who img:first-child { margin-left: 0; }
.mx-v-who em { margin-left: 4px; font-style: normal; font-size: 11px; font-weight: 700; color: rgba(244, 239, 230, .6); }
.mx-v-c { display: inline-flex; align-items: center; gap: 4px; flex: none; min-width: 38px; justify-content: flex-end; font: 800 14px var(--font-display); }
.mx-v-c svg { width: 13px; height: 13px; color: #ff5d7a; fill: currentColor; }
@media (max-width: 720px) {
  .mx-final.has-votes { grid-template-columns: 1fr; grid-template-rows: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; }
  .mx-final.has-votes .mx-result { gap: 6px; padding: 16px; }
  .mx-final.has-votes .mx-result h3 { font-size: 24px; }
  .mx-final.has-votes .mx-result p { display: none; }
  .mx-votes { padding: 12px; border-radius: 20px; }
  .mx-v-who { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mx-vlist li { animation: none; opacity: 1; transform: none; } .mx-v-bar i { animation: none; width: var(--w); } }


/* Надёжность: если анимации не идут (вкладка в фоне, ТВ, экономия энергии) — элементы всё равно видны.
   Появление — анимация без «застывания» в начальном кадре (без fill-mode и задержки) */
@keyframes ucOptIn { from { opacity: 0; transform: translateY(10px); } }
.qz-opt { opacity: 1; transform: none; animation: ucOptIn .45s var(--ease-spring); }
.qz-film, .qz-gain, .qz-ans img { opacity: 1; animation: ucOptIn .4s var(--ease-spring); }
.qz-pod { opacity: 1; transform: none; animation: ucPodIn .7s var(--ease-spring); }
@keyframes ucPodIn { from { opacity: 0; transform: translateY(30px); } }
.mx-vlist li { opacity: 1; transform: none; animation: ucVIn .5s var(--ease-spring); }
@keyframes ucVIn { from { opacity: 0; transform: translateX(16px); } }
.mx-rl-card { opacity: 1; transform: none; animation: ucOptIn .55s var(--ease-spring); }

/* ============ «Под прикрытием» — опознание в стиле нуар ============
   Окно всегда тёмное (как кинозал). Появления — только transform, без opacity 0 + forwards:
   если анимации стоят (вкладка в фоне, ТВ), всё равно всё видно */
.uc { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; pointer-events: none; --gold: var(--accent); --cream: #f4efe6; --red: #ff5a5f; --paper: #ece3cf; --ink: #231a10; }
.uc-scrim { position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgb(var(--tint) / .07), transparent 60%), rgba(3, 3, 5, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.uc.open { pointer-events: auto; }
.uc.open .uc-scrim { opacity: 1; }
.uc-box { position: relative; isolation: isolate; width: min(1140px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 30px; color: var(--cream); background: radial-gradient(120% 80% at 50% -10%, #1b1712 0%, #0c0b0e 55%, #070609 100%); border: 1px solid rgb(var(--tint) / .2); box-shadow: 0 50px 120px -30px #000, inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .3s, transform .5s var(--ease-spring); }
.uc.open .uc-box { opacity: 1; transform: none; }
.uc:not(.open) .uc-box { pointer-events: none; }
/* Свет сквозь жалюзи — классика нуара */
.uc-box::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(-28deg, transparent 0 38px, rgb(var(--tint) / .045) 38px 64px); -webkit-mask-image: radial-gradient(60% 70% at 88% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 88% 0%, #000, transparent 75%); }
.uc-box::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.uc-top { display: flex; align-items: center; gap: 14px; padding: 16px 18px 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.uc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.uc-brand-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px -8px rgba(245, 140, 60, .8); }
.uc-brand-ic svg { width: 24px; height: 24px; }
.uc-brand-t { display: grid; gap: 2px; line-height: 1.1; }
.uc-brand-t small { font: 600 10.5px var(--font); letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 239, 230, .45); }
.uc-brand-t i { font: 600 17px var(--font-display); font-style: normal; letter-spacing: -.01em; }
.uc-phase { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 99px; font: 700 11px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: rgb(var(--tint) / .1); border: 1px solid rgb(var(--tint) / .25); }
.uc-phase:empty { display: none; }
.uc-top-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.uc-stop { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: rgba(244, 239, 230, .75); font: 600 13px var(--font); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.uc-stop svg { width: 14px; height: 14px; flex: none; }
.uc-stop:hover { color: #fff; border-color: rgba(255, 90, 95, .5); background: rgba(255, 90, 95, .12); }
.uc-hide { width: 38px; height: 38px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--cream); cursor: pointer; transition: background .2s; }
.uc-hide:hover { background: rgba(255, 255, 255, .09); }
.uc-hide svg { width: 18px; height: 18px; transform: rotate(90deg); }
.uc-main { min-height: 0; overflow: auto; padding: 20px; scrollbar-width: thin; }

/* Раскладка: досье слева, сцена справа */
.uc-stage { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: start; }
.uc-dossier { display: grid; gap: 12px; position: sticky; top: 0; }
.uc-hint { margin: 0; padding: 0 4px; font: 500 12.5px/1.5 var(--font); color: rgba(244, 239, 230, .5); }

/* Карточка роли — переворачивается */
.uc-card { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; perspective: 1200px; cursor: pointer; }
.uc-card.watch { cursor: default; }
.uc-card-in { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .8s var(--ease-spring); }
.uc-card.flipped .uc-card-in { transform: rotateY(180deg); }
.uc-face { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.uc-back { transform: rotateY(180deg); }
.uc-front { align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; background: radial-gradient(90% 60% at 50% 35%, rgb(var(--tint) / .16), transparent 70%), linear-gradient(160deg, #1d1813, #0e0c0a); border: 1px solid rgb(var(--tint) / .32); box-shadow: inset 0 0 0 6px #0d0b0a, inset 0 0 0 7px rgb(var(--tint) / .2); }
.uc-file { position: absolute; top: 18px; left: 0; right: 0; font: 700 10px var(--font); letter-spacing: .24em; text-transform: uppercase; color: rgb(var(--tint) / .7); }
.uc-front-ic { width: 76px; height: 76px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--gold); border: 1px solid rgb(var(--tint) / .35); background: rgb(var(--tint) / .06); box-shadow: 0 0 40px -6px rgb(var(--tint) / .35); }
.uc-front-ic svg { width: 40px; height: 40px; }
.uc-front b { font: 600 18px var(--font-display); }
.uc-front small { font: 500 12px/1.4 var(--font); color: rgba(244, 239, 230, .5); }
.uc-card:not(.flipped):not(.watch) .uc-front-ic { animation: ucPulse 2.4s ease-in-out infinite; }
.uc-card:hover .uc-front { border-color: rgb(var(--tint) / .55); }
.uc-back.agent { background: #111; border: 1px solid rgb(var(--tint) / .35); }
.uc-back.agent img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uc-back.agent::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 7, .1) 30%, rgba(5, 5, 7, .94) 88%); }
.uc-back-t { position: relative; z-index: 2; margin-top: auto; padding: 16px; display: grid; gap: 5px; }
.uc-back-t small { font: 700 10px var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.uc-back-t b { font: 600 19px/1.15 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.uc-back-t em { font: 500 12.5px/1.45 var(--font); font-style: normal; color: rgba(244, 239, 230, .62); }
.uc-back.spy { background: radial-gradient(90% 60% at 50% 25%, rgba(229, 72, 77, .32), transparent 70%), linear-gradient(170deg, #1f0c0f, #0b0607); border: 1px solid rgba(255, 90, 95, .45); }
.uc-spy-ic { position: absolute; top: 16%; left: 50%; width: 104px; height: 104px; margin-left: -52px; color: #ff6b70; filter: drop-shadow(0 0 24px rgba(229, 72, 77, .6)); }
.uc-spy-ic svg { width: 100%; height: 100%; }
.uc-back.spy .uc-back-t small { color: #ff8a8e; }

/* Печати */
.uc-stamp { position: absolute; z-index: 3; top: 16px; right: 12px; padding: 5px 10px 4px; border: 2px solid currentColor; border-radius: 6px; color: var(--gold); background: rgba(10, 8, 6, .4); font: 700 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transform: rotate(8deg); animation: ucStampIn .5s var(--ease-spring); }
.uc-stamp.red { color: var(--red); }
.uc-stamp.sm { font-size: 8.5px; padding: 3px 6px 2px; border-width: 1.5px; letter-spacing: .1em; }
.uc-photo .uc-stamp { top: auto; right: auto; bottom: 14px; left: 50%; transform: translateX(-50%) rotate(-8deg); animation-name: ucStampC; }

/* Сцена: кто говорит + таймер */
.uc-scene { display: grid; gap: 14px; min-width: 0; }
.uc-head { display: flex; align-items: flex-end; gap: 16px; }
.uc-head-t { display: grid; gap: 5px; min-width: 0; flex: 1; }
.uc-head-t small, .uc-unmask-t small { font: 700 11px var(--font); letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--tint) / .85); }
.uc-head-t b { font: 600 clamp(20px, 2.4vw, 28px)/1.12 var(--font-display); letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.uc-head-t b em { font-style: normal; color: var(--gold); }
.uc-head-t span { font: 500 13.5px/1.4 var(--font); color: rgba(244, 239, 230, .55); }
.uc-clock { flex: none; display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.uc-clock b { display: inline-block; min-width: 2ch; text-align: right; font: 600 40px/1 var(--font-display); letter-spacing: -.03em; color: var(--cream); }
.uc-clock small { font: 600 12px var(--font); color: rgba(244, 239, 230, .45); }
.uc-clock.low b { color: #ff6b70; animation: ucBeat 1s ease-in-out infinite; }
.uc-line { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.uc-line-p { display: block; height: 100%; transform-origin: left center; background: linear-gradient(90deg, #c9902f, var(--accent), var(--accent-hi)); box-shadow: 0 0 12px rgb(var(--tint) / .6); will-change: transform; }
.uc-line.low .uc-line-p { background: linear-gradient(90deg, #b8322f, #ff6b70); }

/* Опознание: стена с ростомером */
.uc-lineup { position: relative; isolation: isolate; padding: 20px 20px 18px 56px; border-radius: 22px; background: linear-gradient(180deg, #17140f 0%, #0f0d0b 100%); border: 1px solid rgba(255, 255, 255, .06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 -40px 60px -40px rgba(0, 0, 0, .8); overflow: hidden; }
.uc-lineup::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(180deg, transparent 0 23px, rgb(var(--tint) / .07) 23px 24px); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 80%, transparent); }
.uc-lineup::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: -1; background: radial-gradient(60% 100% at 50% 100%, rgb(var(--tint) / .08), transparent 70%); }
.uc-wall { position: absolute; left: 14px; top: 30%; bottom: 24%; display: flex; flex-direction: column; justify-content: space-between; font: 600 10px var(--font); font-variant-numeric: tabular-nums; color: rgb(var(--tint) / .38); pointer-events: none; }
.uc-wall span { position: relative; }
.uc-wall span::after { content: ''; position: absolute; left: calc(100% + 5px); top: 50%; width: 10px; height: 1px; background: currentColor; }
.uc-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.uc-sus { position: relative; flex: 1 1 0; min-width: 100px; max-width: 152px; display: grid; grid-template-rows: auto auto auto; gap: 9px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: default; animation: ucRise .55s var(--ease-spring) backwards; animation-delay: calc(var(--i) * 60ms); }
.uc-notes { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; min-height: 78px; }
.uc-note { position: relative; max-width: 100%; padding: 6px 10px; border-radius: 3px; color: var(--ink); background: var(--paper); font: 700 13px/1.25 var(--font); box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .8); transform: rotate(-1.6deg); overflow-wrap: anywhere; animation: ucNote .45s var(--ease-spring); }
.uc-sus:nth-child(even) .uc-note { transform: rotate(1.6deg); }
.uc-note::before { content: ''; position: absolute; top: -5px; left: 50%; width: 28px; height: 10px; margin-left: -14px; background: rgb(var(--tint) / .5); transform: rotate(-4deg); }
.uc-note.old { padding: 4px 8px; font-size: 11px; opacity: .55; animation: none; }
.uc-note.old::before, .uc-note.skip::before, .uc-note.typing::before { display: none; }
.uc-note.skip { color: rgba(244, 239, 230, .5); background: transparent; border: 1px dashed rgba(244, 239, 230, .22); box-shadow: none; font-weight: 600; font-style: italic; }
.uc-note.typing { display: flex; gap: 4px; padding: 9px 12px; background: rgb(var(--tint) / .14); border: 1px solid rgb(var(--tint) / .3); box-shadow: none; transform: none; animation: none; }
.uc-note.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: ucDot 1.2s infinite; }
.uc-note.typing i:nth-child(2) { animation-delay: .15s; }
.uc-note.typing i:nth-child(3) { animation-delay: .3s; }
.uc-photo { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #1a1713; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .9); transition: transform .4s var(--ease-spring), box-shadow .3s, border-color .3s; }
.uc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.08) brightness(.85); transition: filter .5s; }
.uc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); pointer-events: none; }
.uc-plate { display: grid; gap: 3px; justify-items: center; min-width: 0; transition: opacity .3s; }
.uc-plate em { padding: 2px 7px; border-radius: 4px; font: 700 10.5px var(--font); font-style: normal; letter-spacing: .14em; color: rgb(var(--tint) / .8); background: rgb(var(--tint) / .08); border: 1px solid rgb(var(--tint) / .2); }
.uc-plate b { max-width: 100%; font: 700 13.5px/1.2 var(--font); overflow-wrap: anywhere; }
.uc-plate small { font: 500 11px var(--font); color: rgba(244, 239, 230, .45); }
.uc-sus.me .uc-photo { border-color: rgb(var(--tint) / .35); }
.uc-sus.gone { opacity: .4; }
/* Прожектор на том, кто говорит */
.uc-lineup.spot .uc-sus:not(.lit) .uc-photo img { filter: grayscale(1) brightness(.45); }
.uc-lineup.spot .uc-sus:not(.lit) .uc-plate { opacity: .55; }
.uc-sus.lit .uc-photo { border-color: rgb(var(--tint) / .75); box-shadow: 0 0 0 1px rgb(var(--tint) / .4), 0 22px 50px -12px rgb(var(--tint) / .45); transform: translateY(-4px); }
.uc-sus.lit .uc-photo img { filter: none; }
.uc-sus.lit::before { content: ''; position: absolute; z-index: -1; left: 50%; top: -22px; width: 230%; height: calc(100% + 44px); transform: translateX(-50%); background: linear-gradient(180deg, rgba(255, 213, 138, .24), rgb(var(--tint) / .05) 70%, transparent); clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%); pointer-events: none; }
/* Голосование */
.uc-lineup.voting .uc-sus[data-vote] { cursor: pointer; }
.uc-lineup.voting .uc-sus[data-vote]:hover .uc-photo { transform: translateY(-4px); border-color: rgba(255, 90, 95, .6); }
.uc-lineup.voting .uc-sus[data-vote]:hover .uc-photo img { filter: grayscale(.3); }
.uc-sus.target .uc-photo { border-color: var(--red); box-shadow: 0 0 0 2px rgba(255, 90, 95, .5), 0 22px 50px -12px rgba(229, 72, 77, .6); transform: translateY(-4px); }
.uc-sus.target .uc-photo img { filter: grayscale(.2) contrast(1.05); }
.uc-voted { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1a1205; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); animation: ucPop .4s var(--ease-spring); }
.uc-voted svg { width: 14px; height: 14px; }
/* Итоги на той же стене */
.uc-lineup.ended .uc-notes { min-height: 0; }
.uc-lineup.ended .uc-sus:not(.spy) .uc-photo img { filter: grayscale(.7) brightness(.75); }
.uc-sus.spy .uc-photo { border-color: var(--red); box-shadow: 0 0 0 2px rgba(255, 90, 95, .45), 0 22px 50px -12px rgba(229, 72, 77, .6); }
.uc-sus.spy .uc-photo img { filter: none; }
.uc-count { position: absolute; top: 8px; left: 8px; height: 26px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; background: rgba(10, 8, 6, .82); border: 1px solid rgb(var(--tint) / .35); color: var(--gold); font: 700 13px var(--font-display); }
.uc-count small { font: 600 10px var(--font); color: rgba(244, 239, 230, .6); }

/* Поле подсказки */
.uc-clue { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 18px; background: linear-gradient(180deg, rgb(var(--tint) / .1), rgb(var(--tint) / .04)); border: 1px solid rgb(var(--tint) / .42); box-shadow: 0 0 0 4px rgb(var(--tint) / .06), 0 20px 40px -20px rgb(var(--tint) / .4); animation: ucCall 2.2s ease-in-out infinite; }
.uc-clue-n { flex: none; font: 700 11px var(--font); letter-spacing: .12em; color: var(--gold); }
.uc-clue input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: none; color: var(--cream); font: 600 17px var(--font); caret-color: var(--gold); }
.uc-clue input::placeholder { color: rgba(244, 239, 230, .35); }
.uc-say { flex: none; height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--accent), #ff9a4a); color: #1a1205; font: 700 14px var(--font); cursor: pointer; transition: transform .3s var(--ease-spring), filter .2s; }
.uc-say svg { width: 16px; height: 16px; flex: none; }
.uc-say:hover { transform: translateY(-1px); filter: brightness(1.06); }
.uc-say:disabled { opacity: .6; cursor: default; transform: none; }
.uc-tip { margin: 0; text-align: center; font: 500 13px/1.5 var(--font); color: rgba(244, 239, 230, .5); }
.uc-tip b { color: var(--cream); font-weight: 700; }

/* Последняя попытка шпиона */
.uc-guess { display: grid; gap: 18px; }
.uc-unmask { position: relative; isolation: isolate; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px 28px; border-radius: 24px; background: radial-gradient(70% 120% at 12% 0%, rgba(229, 72, 77, .2), transparent 60%), linear-gradient(180deg, #18110f, #0f0c0b); border: 1px solid rgba(255, 90, 95, .25); overflow: hidden; }
.uc-cone { position: absolute; z-index: -1; left: 28px; top: -10px; width: 170px; height: 120%; background: linear-gradient(180deg, rgba(255, 213, 138, .26), transparent 85%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); pointer-events: none; }
.uc-unmask-card { display: grid; gap: 9px; animation: ucUnmask .9s var(--ease-out); }
.uc-unmask-card .uc-photo { border-color: rgba(255, 90, 95, .6); box-shadow: 0 0 0 1px rgba(255, 90, 95, .3), 0 24px 50px -14px rgba(229, 72, 77, .6); }
.uc-unmask-card .uc-photo img { filter: contrast(1.05); }
.uc-unmask-t { display: grid; gap: 7px; min-width: 0; }
.uc-unmask-t small { color: #ff8a8e; }
.uc-unmask-t b { font: 600 clamp(22px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.uc-unmask-t > span { font: 500 14px/1.5 var(--font); color: rgba(244, 239, 230, .62); }
.uc-unmask-t .uc-clock { margin-top: 8px; }
.uc-opts { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; transition: filter .8s; }
.uc-opts.wait { filter: blur(10px) brightness(.5); pointer-events: none; }
.uc-opt { display: grid; align-content: start; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default; animation: ucRise .5s var(--ease-spring) backwards; animation-delay: calc(var(--i) * 50ms); }
.uc-opt-p { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #16130f; border: 1px solid rgba(255, 255, 255, .08); transition: transform .35s var(--ease-spring), border-color .2s, box-shadow .3s; }
.uc-opt-p img { width: 100%; height: 100%; object-fit: cover; }
.uc-opt-p svg { width: 28px; height: 28px; color: rgba(244, 239, 230, .3); }
.uc-opt b { font: 600 12px/1.3 var(--font); color: rgba(244, 239, 230, .82); overflow-wrap: anywhere; }
.uc-opts.pick .uc-opt { cursor: pointer; }
.uc-opts.pick .uc-opt:hover .uc-opt-p { transform: translateY(-4px); border-color: rgb(var(--tint) / .6); box-shadow: 0 16px 30px -12px rgb(var(--tint) / .45); }
.uc-opt.on .uc-opt-p { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 16px 30px -12px rgb(var(--tint) / .5); }
.uc-opt:disabled:not(.on) { opacity: .45; }

/* Итоги: «дело закрыто» */
.uc-end { display: grid; gap: 18px; }
.uc-verdict { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; align-items: center; padding: 20px; border-radius: 24px; border: 1px solid rgb(var(--tint) / .22); background: radial-gradient(80% 140% at 0% 0%, rgb(var(--tint) / .16), transparent 60%), #120f0c; }
.uc-end.spy-won .uc-verdict { border-color: rgba(255, 90, 95, .3); background: radial-gradient(80% 140% at 0% 0%, rgba(229, 72, 77, .18), transparent 60%), #130d0d; }
.uc-film { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: #16130f; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 40px -18px #000; animation: ucRise .6s var(--ease-spring); }
.uc-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uc-film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 7, .92)); }
.uc-film-t { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 10px; display: grid; gap: 2px; }
.uc-film-t small { font: 700 9px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.uc-film-t b { font: 600 13px/1.15 var(--font-display); overflow-wrap: anywhere; }
.uc-film-t em { font: 500 11px var(--font); font-style: normal; color: rgba(244, 239, 230, .55); }
.uc-verdict-t { display: grid; gap: 9px; justify-items: start; min-width: 0; }
.uc-verdict-t small { font: 700 11px var(--font); letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 239, 230, .45); }
.uc-verdict-t h2 { margin: 0; font: 600 clamp(28px, 4vw, 46px)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--gold); background: linear-gradient(180deg, #ffe2a8, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.uc-end.spy-won .uc-verdict-t h2 { color: var(--red); background-image: linear-gradient(180deg, #ffb7b9, #ff5a5f); }
.uc-verdict-t p { margin: 0; font: 500 14.5px/1.5 var(--font); color: rgba(244, 239, 230, .72); }
.uc-spyline { display: inline-flex; align-items: center; gap: 10px; font: 500 13.5px/1.3 var(--font); color: rgba(244, 239, 230, .6); }
.uc-spyline img { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--red); }
.uc-spyline b { color: var(--cream); }
.uc-you { height: 30px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 99px; font: 700 12px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.uc-you.win { color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-hi)); }
.uc-you.lose { color: rgba(244, 239, 230, .7); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.uc-end-act { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Свёрнутое окно и конфетти */
.uc-reopen { position: fixed; left: 50%; bottom: calc(18px + var(--sab, 0px)); display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px 0 8px; border-radius: 99px; border: 1px solid rgb(var(--tint) / .4); color: var(--cream); background: rgba(14, 12, 10, .92); font: 700 14px var(--font); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .9), 0 0 0 4px rgb(var(--tint) / .08); cursor: pointer; opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); transition: opacity .3s, transform .4s var(--ease-spring); }
.uc-reopen-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #1a1205; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.uc-reopen-ic svg { width: 19px; height: 19px; }
.uc:not(.open) .uc-reopen { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.uc-fx { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.uc-fx i { position: absolute; width: var(--w); height: calc(var(--w) * .45); border-radius: 2px; background: var(--c); animation: mxConf var(--d) cubic-bezier(.15, .7, .3, 1) var(--dl) forwards; opacity: 0; }

@keyframes ucRise { from { transform: translateY(16px) scale(.96); } }
@keyframes ucNote { from { transform: translateY(8px) rotate(-6deg) scale(.85); } }
@keyframes ucPulse { 50% { box-shadow: 0 0 60px 0 rgb(var(--tint) / .5); } }
@keyframes ucBeat { 50% { transform: scale(1.1); } }
@keyframes ucCall { 50% { box-shadow: 0 0 0 7px rgb(var(--tint) / .1), 0 20px 40px -20px rgb(var(--tint) / .4); } }
@keyframes ucDot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ucPop { from { transform: scale(.4); } }
@keyframes ucStampIn { from { transform: rotate(8deg) scale(2.2); } }
@keyframes ucStampC { from { transform: translateX(-50%) rotate(-8deg) scale(2.2); } }
@keyframes ucUnmask { from { filter: blur(12px) grayscale(1); transform: scale(.85); } }

@media (max-width: 1000px) {
  .uc-stage { grid-template-columns: 190px minmax(0, 1fr); gap: 16px; }
  .uc-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .uc-box { width: calc(100vw - 16px); max-height: calc(100dvh - 16px - var(--sat, 0px) - var(--sab, 0px)); border-radius: 24px; }
  .uc-top { padding: 10px 10px 10px 12px; gap: 10px; }
  .uc-brand-ic { width: 36px; height: 36px; } .uc-brand-ic svg { width: 21px; height: 21px; }
  .uc-brand-t small, .uc-phase { display: none; }
  .uc-brand-t i { font-size: 15px; }
  .uc-stop { width: 38px; padding: 0; justify-content: center; } .uc-stop span { display: none; }
  .uc-main { padding: 12px; }
  .uc-stage { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .uc-dossier { position: static; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; }
  .uc-face { border-radius: 12px; }
  .uc-front { padding: 8px; gap: 5px; box-shadow: inset 0 0 0 3px #0d0b0a, inset 0 0 0 4px rgb(var(--tint) / .2); }
  .uc-file { top: 8px; font-size: 7px; letter-spacing: .14em; }
  .uc-front-ic { width: 40px; height: 40px; } .uc-front-ic svg { width: 22px; height: 22px; }
  .uc-front b { font-size: 11px; } .uc-front small { font-size: 9px; }
  .uc-back-t { padding: 8px; gap: 2px; } .uc-back-t small { font-size: 7px; letter-spacing: .12em; } .uc-back-t b { font-size: 11.5px; } .uc-back-t em { display: none; }
  .uc-spy-ic { width: 54px; height: 54px; margin-left: -27px; top: 14%; }
  .uc-card .uc-stamp { top: 6px; right: 5px; font-size: 6.5px; padding: 2px 4px 1px; border-width: 1.5px; letter-spacing: .06em; }
  .uc-hint { padding: 0; font-size: 12px; }
  .uc-head { gap: 10px; }
  .uc-head-t b { font-size: 19px; } .uc-head-t span { font-size: 12.5px; }
  .uc-clock b { font-size: 30px; }
  .uc-lineup { padding: 14px 10px 12px; border-radius: 18px; }
  .uc-wall { display: none; }
  .uc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .uc-sus { min-width: 0; max-width: none; gap: 7px; }
  .uc-notes { min-height: 60px; }
  .uc-note { padding: 4px 7px; font-size: 11.5px; } .uc-note.old { display: none; }
  .uc-lineup.ended .uc-note.old { display: block; }
  .uc-photo { border-radius: 11px; }
  .uc-plate b { font-size: 12px; } .uc-plate em { font-size: 9.5px; }
  .uc-clue { padding: 6px 6px 6px 14px; } .uc-clue-n { display: none; }
  .uc-clue input { font-size: 16px; }
  .uc-say { width: 44px; padding: 0; } .uc-say span { display: none; }
  .uc-unmask { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 14px; }
  .uc-cone { left: 14px; width: 104px; }
  .uc-unmask-t .uc-clock { margin-top: 2px; }
  .uc-opts { gap: 8px; } .uc-opt b { font-size: 10.5px; }
  .uc-verdict { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .uc-verdict-t p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-sus, .uc-opt, .uc-note, .uc-film, .uc-unmask-card, .uc-stamp, .uc-clue, .uc-front-ic, .uc-clock.low b { animation: none !important; }
}
/* Повторная отрисовка того же этапа — без повторных появлений; анимируется только новое */
.uc-main.calm .uc-sus, .uc-main.calm .uc-opt, .uc-main.calm .uc-film, .uc-main.calm .uc-unmask-card, .uc-main.calm .uc-stamp, .uc-main.calm .uc-voted, .uc-main.calm .uc-note { animation: none; }
.uc-main.calm .uc-note.new:not(.old) { animation: ucNote .45s var(--ease-spring); }
.uc-main.calm .uc-voted.new { animation: ucPop .4s var(--ease-spring); }
.uc-main.calm .uc-photo .uc-stamp.new { animation: ucStampC .5s var(--ease-spring); }
/* Печать на карточке роли ставится при перевороте (переход, а не анимация — не повторяется при обновлениях) */
.uc-card .uc-stamp { animation: none; transform: rotate(8deg) scale(1.9); opacity: 0; transition: transform .45s var(--ease-spring) .4s, opacity .2s .4s; }
.uc-card.flipped .uc-stamp { transform: rotate(8deg); opacity: 1; }
@media (max-width: 760px) { .uc-back-t b { font-size: 10.5px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; } }
@media (max-width: 760px) { .uc-unmask-card .uc-stamp { font-size: 8px; padding: 3px 5px 2px; border-width: 1.5px; letter-spacing: .08em; bottom: 10px; } .uc-film-t { padding: 7px; } .uc-film-t small { font-size: 7px; letter-spacing: .1em; } .uc-film-t b { font-size: 10.5px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; word-break: normal; } }
@media (max-height: 520px) and (min-width: 761px) { .uc-box { max-height: calc(100dvh - 12px); } .uc-top { padding: 8px 12px; } .uc-main { padding: 12px; } .uc-stage { grid-template-columns: 140px minmax(0, 1fr); gap: 14px; } .uc-hint { display: none; } .uc-notes { min-height: 54px; } .uc-sus { max-width: 104px; } .uc-lineup { padding: 12px 12px 10px 46px; } .uc-verdict { grid-template-columns: 96px minmax(0, 1fr); padding: 14px; } .uc-unmask { grid-template-columns: 110px minmax(0, 1fr); padding: 14px 18px; } .uc-cone { left: 18px; width: 110px; } }
.uc.ended .uc-stop { display: none; }

/* «Под прикрытием»: голосовой режим и ошибка подсказки */
.uc-voicebar { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; background: linear-gradient(180deg, rgb(var(--tint) / .1), rgb(var(--tint) / .04)); border: 1px solid rgb(var(--tint) / .42); box-shadow: 0 0 0 4px rgb(var(--tint) / .06), 0 20px 40px -20px rgb(var(--tint) / .4); animation: ucCall 2.2s ease-in-out infinite; }
.uc-voicebar.slim { padding: 6px; background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); box-shadow: none; animation: none; }
.uc-voicebar-t { flex: 1; min-width: 0; font: 500 13px/1.35 var(--font); color: rgba(244, 239, 230, .6); }
.uc-mic { flex: none; height: 44px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: rgba(244, 239, 230, .8); font: 700 13.5px var(--font); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.uc-mic svg { width: 19px; height: 19px; flex: none; }
.uc-mic:hover { background: rgba(255, 255, 255, .09); }
.uc-mic.on { color: #0f2a1b; background: linear-gradient(135deg, #7fd8a4, #4fc387); border-color: transparent; }
.uc-voicebar.slim .uc-mic { height: 38px; font-size: 12.5px; }
/* Говорит в голосовом чате (класс .speaking ставит voice.js по data-vuid) */
.uc-sus.speaking .uc-photo { border-color: #7fd8a4; box-shadow: 0 0 0 2px rgba(127, 216, 164, .55), 0 0 30px -4px rgba(127, 216, 164, .55); }
.uc-sus.speaking .uc-photo img { filter: none; }
.uc-note.voice { display: inline-flex; align-items: center; gap: 5px; }
.uc-note.voice svg { width: 13px; height: 13px; flex: none; }
.uc-note.talking { display: flex; align-items: center; gap: 3px; height: 30px; padding: 0 12px; background: rgb(var(--tint) / .14); border: 1px solid rgb(var(--tint) / .3); box-shadow: none; transform: none; animation: none; }
.uc-note.talking::before { display: none; }
.uc-note.talking i { width: 3px; height: 14px; border-radius: 2px; background: var(--gold); animation: ucWave 1s ease-in-out infinite; }
.uc-note.talking i:nth-child(2) { animation-delay: .12s; } .uc-note.talking i:nth-child(3) { animation-delay: .24s; }
.uc-note.talking i:nth-child(4) { animation-delay: .36s; } .uc-note.talking i:nth-child(5) { animation-delay: .48s; }
@keyframes ucWave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.uc-clue-err { margin: -4px 0 0; padding: 10px 14px; border-radius: 12px; font: 600 13.5px/1.4 var(--font); color: #ffb3b5; background: rgba(229, 72, 77, .12); border: 1px solid rgba(255, 90, 95, .35); }
.uc-clue-err[hidden] { display: none; }
.uc-clue.bad { border-color: rgba(255, 90, 95, .7); animation: ucShake .4s; }
@keyframes ucShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 760px) {
  .uc-voicebar { gap: 8px; padding: 6px; }
  .uc-voicebar:not(.slim) .uc-voicebar-t { display: none; }
  .uc-voicebar:not(.slim) .uc-mic { flex: 1; justify-content: center; }
  .uc-voicebar .uc-say { width: auto; padding: 0 16px; } .uc-voicebar .uc-say span { display: inline; }
  .uc-voicebar-t { font-size: 12px; }
}

/* ============ Трейлеры (2026-11-03, макет «Боковое меню» t100/006): экран со «Далее», липкая панель, меню слева, лента ============ */
.tz {
  --tz-nw: 372px; --tz-r: 12px; --tz-prog: #ff0033; --tz-dock: 68px;
  --tz-ink: #f4efe6; --tz-mute: rgba(244, 239, 230, .74); --tz-dim: rgba(244, 239, 230, .5); --tz-line: rgba(255, 255, 255, .14);
  --tz-top: calc(var(--sat) + 74px); /* под плавающей шапкой сайта */
  padding-bottom: 40px;
}
body.nav-hidden .tz { --tz-top: var(--sat); } /* шапка сайта уехала вверх — панель поднимается за ней */
.tz mark { background: rgb(var(--tint) / .28); color: inherit; border-radius: 3px; box-shadow: 0 0 0 2px rgb(var(--tint) / .28); }
.tz-nwr { white-space: nowrap; }

/* ----- Экран ----- */
.tz-stage { padding: calc(var(--sat) + 86px) var(--pad-r) 0 var(--pad-l); }
.tz-stage-none { height: calc(var(--sat) + 86px); }
.tz-scrw { position: relative; height: clamp(560px, calc(100svh - var(--sat) - 110px), 880px); }
.tz-scr { position: relative; height: 100%; border-radius: 20px; overflow: hidden; background: #000; isolation: isolate; color: var(--tz-ink); box-shadow: 0 0 0 1px var(--line), 0 50px 120px -50px rgba(0, 0, 0, .9); }
:root[data-theme="light"] .tz-scr { box-shadow: 0 0 0 1px var(--line), 0 40px 90px -50px rgba(60, 40, 10, .6); }
.tz-sfr { position: absolute; inset: 0; overflow: hidden; }
.tz-sfr > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease-smooth), transform 9s var(--ease-smooth), filter .5s; }
.tz-sfr > img.on { opacity: 1; transform: none; }
.tz-spv { position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: 0; transition: opacity .6s var(--ease-smooth); pointer-events: none; }
.tz-spv iframe, .tz-pv iframe { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform: translate(-50%, -50%) scale(var(--yt-scale, 1)); border: 0; pointer-events: none; }
.tz-scr.live .tz-spv { opacity: 1; }
.tz-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background:
  linear-gradient(90deg, rgba(5, 6, 9, .9) 0%, rgba(5, 6, 9, .55) 34%, rgba(5, 6, 9, 0) 62%),
  linear-gradient(0deg, rgba(5, 6, 9, .92) 0%, rgba(5, 6, 9, .25) 42%, rgba(5, 6, 9, 0) 60%),
  linear-gradient(270deg, rgba(5, 6, 9, .45) 0%, rgba(5, 6, 9, 0) 34%); }
.tz-st-top { position: absolute; z-index: 6; top: 26px; left: clamp(22px, 3.4vw, 56px); display: flex; align-items: center; gap: 14px; font: 600 12px var(--font); color: var(--tz-mute); }
.tz-ey { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; white-space: nowrap; }
.tz-ey b { color: var(--accent-hi); }
.tz-mp { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 99px; border: 1px solid var(--tz-line); background: rgba(5, 6, 9, .4); font: 700 11px var(--font); white-space: nowrap; }
.tz-mp svg { width: 14px; height: 14px; flex: none; }
.tz-mp i { width: 6px; height: 6px; min-width: 6px; flex: none; border-radius: 50%; background: var(--tz-dim); transition: background .4s, box-shadow .4s; }
.tz-scr.live .tz-mp i { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tz-info { position: absolute; z-index: 6; left: clamp(22px, 3.4vw, 56px); bottom: 66px; width: min(660px, calc(100% - var(--tz-nw) - 140px)); }
.tz-info.swap > * { animation: tzUp .55s var(--ease-smooth) both; }
.tz-info.swap > :nth-child(2) { animation-delay: .04s; } .tz-info.swap > :nth-child(n+3) { animation-delay: .08s; }
@keyframes tzUp { from { opacity: 0; transform: translateY(12px); } }
.tz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tz-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; font: 700 11px var(--font); letter-spacing: .03em; color: var(--tz-mute); background: rgba(255, 255, 255, .07); border: 1px solid var(--tz-line); }
.tz-chips span svg { width: 12px; height: 12px; flex: none; }
.tz-chips span.hot { color: var(--accent-hi); border-color: rgb(var(--tint) / .5); background: rgb(var(--tint) / .15); }
.tz-title { margin: 16px 0 0; font: 500 clamp(40px, 5.4vw, 92px)/.98 var(--font-display); letter-spacing: -.045em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .06em; color: var(--tz-ink); }
.tz-meta { margin-top: 12px; font: 600 14px var(--font); color: var(--tz-mute); }
.tz-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--tz-dim); margin: 0 9px; vertical-align: 3px; }
.tz-vote { display: inline-flex; align-items: center; gap: 4px; color: var(--tz-ink); vertical-align: -2px; }
.tz-vote svg { width: 14px; height: 14px; color: var(--accent-hi); }
.tz-ov { margin: 10px 0 0; max-width: 560px; color: var(--tz-mute); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tz-resume { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 700 13px var(--font); color: var(--accent-hi); }
.tz-resume svg { width: 16px; height: 16px; flex: none; }
.tz-acts { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.tz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 99px; border: 1px solid transparent; font: 700 14px var(--font); white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform .45s var(--ease-spring), background .3s, color .3s, border-color .3s; }
.tz-btn svg { width: 18px; height: 18px; flex: none; }
.tz-btn:active { transform: scale(.97); }
.tz-btn.pri { background: var(--accent); color: var(--accent-ink); box-shadow: 0 16px 36px -16px rgb(var(--tint) / .9); }
.tz-btn.pri:hover { transform: translateY(-2px); filter: brightness(1.06); }
.tz-btn.gh, .tz-btn.ic { background: rgba(255, 255, 255, .08); border-color: var(--tz-line); color: var(--tz-ink); }
.tz-btn.gh:hover, .tz-btn.ic:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.tz-btn.on { color: var(--accent-hi); border-color: rgb(var(--tint) / .5); }
.tz-btn.ic { width: 50px; height: 50px; min-width: 50px; flex: none; padding: 0; border-radius: 50%; }
.tz-btn.sm { height: 40px; padding: 0 16px; font-size: 13.5px; }
.tz-l-short { display: none; }
/* Полоска превью на экране и пауза — только когда видео идёт */
.tz-stbar { position: absolute; z-index: 7; left: clamp(22px, 3.4vw, 56px); right: calc(var(--tz-nw) + 48px); bottom: 26px; height: 18px; display: flex; align-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .4s; }
.tz-stbar::before { content: ''; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); transition: height .2s; }
.tz-stbar i { position: relative; height: 3px; width: calc(var(--p, 0) * 100%); border-radius: 2px; background: var(--tz-prog); transition: width .25s linear, height .2s; }
.tz-stbar:hover::before, .tz-stbar:hover i { height: 5px; }
.tz-scr.live .tz-stbar { opacity: 1; pointer-events: auto; }
.tz-spause { position: absolute; z-index: 8; bottom: 54px; right: calc(var(--tz-nw) + 48px); width: 38px; height: 38px; min-width: 38px; flex: none; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .5); border: 1px solid var(--tz-line); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.tz-spause svg { width: 15px; height: 15px; }
.tz-spause > span { display: grid; place-items: center; }
.tz-spause .i-play, .tz-scr.paused .tz-spause .i-pause { display: none; }
.tz-scr.paused .tz-spause .i-play { display: grid; }
.tz-scr.live .tz-spause { opacity: 1; pointer-events: auto; }
/* Плеер прямо на экране (слева от «Далее») */
.tz-player { position: absolute; z-index: 9; inset: 0 calc(var(--tz-nw) + 36px) 64px 0; display: none; background: #000; }
.tz-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tz-scr.playing .tz-player { display: block; }
.tz-scr.playing .tz-sfr > img { filter: blur(30px) brightness(.4); }
.tz-scr.playing .tz-info, .tz-scr.playing .tz-st-top, .tz-scr.playing .tz-spv { display: none; }
.tz-playing { position: absolute; z-index: 9; left: 0; right: calc(var(--tz-nw) + 36px); bottom: 0; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 clamp(18px, 2.4vw, 32px); background: #000; }
.tz-playing[hidden] { display: none; }
.tz-playing-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tz-playing-t b { font: 600 16px var(--font-display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-playing-t small { color: var(--tz-dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.tz-eq i { width: 4px; border-radius: 2px; background: var(--accent); animation: tzEq 1s ease-in-out infinite; }
.tz-eq i:nth-child(2) { animation-delay: .2s; } .tz-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes tzEq { 0%, 100% { height: 5px; } 50% { height: 18px; } }

/* ----- «Далее»: высокая панель справа на экране ----- */
.tz-next { position: absolute; z-index: 10; top: 18px; bottom: 18px; right: 18px; width: var(--tz-nw); display: flex; flex-direction: column; min-height: 0; border-radius: 16px; background: rgba(12, 13, 18, .5); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); padding: 16px 8px 8px 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); color: var(--tz-ink); }
.tz-nh { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 4px; }
.tz-nh h3 { margin: 0; font: 500 17px var(--font-display); letter-spacing: -.02em; }
.tz-nh small { font: 600 12px var(--font); color: var(--tz-dim); white-space: nowrap; }
.tz-keys { margin-left: auto; display: flex; gap: 4px; }
.tz-keys button { display: grid; place-items: center; width: 30px; height: 30px; min-width: 30px; flex: none; padding: 0; border-radius: 9px; border: 1px solid var(--tz-line); color: var(--tz-mute); background: rgba(255, 255, 255, .03); cursor: pointer; transition: background .25s, color .25s; }
.tz-keys button:hover { background: rgba(255, 255, 255, .1); color: var(--tz-ink); }
.tz-keys svg { width: 14px; height: 14px; }
.tz-nxl { list-style: none; margin: 12px 0 0; padding: 0 6px 0 0; overflow: hidden auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; overscroll-behavior: contain; }
.tz-nx { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .3s; animation: tzNx .6s var(--ease-smooth) both; }
@keyframes tzNx { from { opacity: 0; transform: translateX(14px); } }
.tz-nx:hover, .tz-nx:focus-visible { background: rgba(255, 255, 255, .07); }
.tz-nx-th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.tz-nx-th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-smooth); }
.tz-nx:hover .tz-nx-th img { transform: scale(1.05); }
.tz-nx-t { min-width: 0; }
.tz-nx-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 13.5px/1.3 var(--font); }
.tz-nx-t small { display: block; margin-top: 3px; font-size: 12px; color: var(--tz-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-nx-t small.w { color: var(--accent-hi); }
.tz-nx-t small.up { display: flex; align-items: center; gap: 4px; color: var(--accent-hi); font-weight: 700; }
.tz-nx-t small.up svg { width: 13px; height: 13px; flex: none; }
.tz-nx-none { padding: 10px; color: var(--tz-dim); font-size: 13px; }
/* Длительность и «Просмотрено» — сплошная красная полоска */
.tz-ln { position: absolute; z-index: 4; right: 6px; bottom: 8px; padding: 2px 5px; border-radius: 5px; background: rgba(0, 0, 0, .8); color: #fff; font: 700 11px/1.25 var(--font); font-variant-numeric: tabular-nums; transition: opacity .3s; }
.tz-wb { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tz-prog); transition: opacity .3s; }
.tz-card .tz-wb { display: none; }
.tz-card.seen .tz-wb { display: block; }

/* ----- Липкая панель: разделы и поиск ----- */
.tz-dock { position: sticky; top: var(--tz-top); z-index: 30; transition: top .45s var(--ease-smooth); margin-top: 26px; padding: 10px var(--pad-r) 10px var(--pad-l); }
.tz-dock::before { content: ''; position: absolute; inset: 0 0 0 0; z-index: -1; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--line); }
.tz-dock-in { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tz-fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 0 1 auto; padding: 2px; }
.tz-fchips::-webkit-scrollbar { display: none; }
.tz-fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface-2); font: 600 13.5px var(--font); color: var(--muted); white-space: nowrap; cursor: pointer; transition: background .25s, color .25s; }
.tz-fchip:hover { color: var(--text); background: color-mix(in srgb, var(--text) 12%, transparent); }
.tz-fchip.on { background: var(--text); color: var(--bg); }
.tz-fchip sup { font-size: 10.5px; opacity: .6; vertical-align: 0; top: 0; }
.tz-srch { position: relative; margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 1 360px; min-width: 220px; height: 44px; padding: 0 10px 0 15px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .3s, background .3s, box-shadow .3s; }
.tz-srch:focus-within { border-color: rgb(var(--tint) / .55); background: var(--surface-2); box-shadow: 0 0 0 4px rgb(var(--tint) / .1); }
.tz-srch > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.tz-srch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: 500 14px var(--font); }
.tz-srch input::placeholder { color: var(--faint); }
.tz-srch input::-webkit-search-cancel-button { display: none; }
.tz-srch kbd { flex: none; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; }
.tz-sx { flex: none; width: 28px; height: 28px; min-width: 28px; padding: 0; border: 0; border-radius: 50%; display: none; place-items: center; background: var(--surface-2); color: var(--text); cursor: pointer; }
.tz-sx svg { width: 13px; height: 13px; }
.tz-srch.typed .tz-sx { display: grid; }
.tz-srch.typed kbd { display: none; }

/* ----- Меню слева и лента ----- */
.tz-lay { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(20px, 2.4vw, 40px); padding: 22px var(--pad-r) 0 var(--pad-l); align-items: start; }
.tz-side { position: sticky; top: calc(var(--tz-top) + var(--tz-dock) + 14px); transition: top .45s var(--ease-smooth), max-height .45s var(--ease-smooth); max-height: calc(100vh - var(--tz-top) - var(--tz-dock) - 28px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-right: 4px; }
.tz-side h4 { margin: 18px 12px 8px; font: 700 11.5px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tz-side hr { border: 0; height: 1px; background: var(--line); margin: 12px 8px; }
.tz-gi { display: flex; align-items: center; gap: 14px; width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font: 500 14px var(--font); color: var(--muted); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.tz-gi:hover { background: var(--surface-2); color: var(--text); }
.tz-gi.on { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); font-weight: 700; }
.tz-gi > svg { width: 20px; height: 20px; min-width: 20px; flex: none; }
.tz-gi.on > svg { color: var(--accent); }
.tz-gi .lb { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-gi .n { margin-left: auto; font: 600 12px var(--font); color: var(--faint); font-variant-numeric: tabular-nums; }
.tz-gi .ca { flex: none; width: 26px; height: 26px; min-width: 26px; min-height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font); color: #0b0b0d; background: hsl(var(--h) 60% 70%); }
/* Настоящая аватарка канала поверх буквы (не загрузилась — <img> убирается и видна буква) */
.tz-gi .ca, .tz-cav { position: relative; overflow: hidden; }
.tz-gi .ca > img, .tz-cav > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 50%; background: var(--surface-2); }
.tz-cav { flex: none; width: 18px; height: 18px; min-width: 18px; min-height: 18px; margin-right: 3px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 9px/1 var(--font); color: #0b0b0d; background: hsl(var(--h) 60% 70%); }
.tz-gi .dt { flex: none; width: 6px; height: 6px; min-width: 6px; border-radius: 50%; background: var(--accent); }
.tz-feed { min-width: 0; }
.tz-h { display: flex; align-items: center; gap: 14px; min-width: 0; margin-bottom: 20px; }
.tz-h-t { display: grid; gap: 4px; min-width: 0; margin-right: auto; }
.tz-h h2 { margin: 0; font: 500 clamp(24px, 2.4vw, 34px)/1.08 var(--font-display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.tz-h-ch { color: var(--muted); }
.tz-h small, .tz-sh small, .tz-day small { color: var(--muted); font: 600 13px var(--font); }
.tz-play-all { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 700 13px var(--font); cursor: pointer; white-space: nowrap; transition: background .2s; }
.tz-play-all:hover { background: var(--surface-2); }
.tz-play-all svg { width: 14px; height: 14px; color: var(--accent); }
.tz-sec { min-width: 0; margin-bottom: 38px; }
.tz-day { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tz-day h3 { margin: 0; font: 600 17px var(--font-display); letter-spacing: -.02em; }
.tz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 16px; }

/* Полка «Скоро в кино» */
.tz-sh { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 8px; }
.tz-sh h3 { margin: 0; font: 600 18px var(--font-display); letter-spacing: -.02em; }
.tz-sh-ic { width: 38px; height: 38px; min-width: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgb(var(--tint) / .14); color: var(--accent); }
.tz-sh-ic svg { width: 18px; height: 18px; }
.tz-shelf-nav button { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; border-color: var(--line-2); color: var(--text); background: none; }
.tz-shelf-nav button:hover { background: var(--surface-2); color: var(--text); }
.tz-shelf-nav button:disabled { opacity: .3; cursor: default; background: none; }
.tz-sec.no-scroll .tz-shelf-nav { display: none; }
.tz-rail-wrap { position: relative; min-width: 0; margin: 0 -6px; }
.tz-rail-wrap::before, .tz-rail-wrap::after { content: ''; position: absolute; z-index: 4; top: 0; bottom: 12px; width: 48px; pointer-events: none; transition: opacity .3s; }
.tz-rail-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.tz-rail-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.tz-rail-wrap.at-start::before, .tz-rail-wrap.at-end::after { opacity: 0; }
.tz-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 156px; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; padding: 8px 6px 12px; scroll-snap-type: x proximity; scroll-padding: 0 6px; scrollbar-width: none; }
.tz-rail::-webkit-scrollbar { display: none; }
.tz-rail > * { scroll-snap-align: start; }
.tz-poster { display: grid; gap: 4px; align-content: start; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.tz-poster-img { position: relative; display: block; aspect-ratio: 2 / 3; margin-bottom: 6px; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); transition: transform .45s var(--ease-spring), box-shadow .3s; }
.tz-poster-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out); }
.tz-poster-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 40%); pointer-events: none; }
.tz-poster-cd { position: absolute; z-index: 1; left: 8px; bottom: 8px; display: flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 10px; background: rgba(10, 10, 12, .62); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.tz-poster-cd b { font: 600 16px/1 var(--font-display); letter-spacing: -.03em; color: #fff; }
.tz-poster-cd small { font: 700 11px var(--font); color: rgba(255, 255, 255, .8); }
.tz-poster-img i { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .35s var(--ease-spring); }
.tz-poster-img i svg { width: 22px; height: 22px; padding: 15px; box-sizing: content-box; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.tz-poster:hover .tz-poster-img, .tz-poster:focus-visible .tz-poster-img { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.tz-poster:hover .tz-poster-img img { transform: scale(1.05); }
.tz-poster:hover .tz-poster-img i, .tz-poster.on .tz-poster-img i { opacity: 1; transform: none; }
.tz-poster.on .tz-poster-img { box-shadow: 0 0 0 2px var(--accent); }
.tz-poster b { font: 600 14px/1.3 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tz-poster small { color: var(--muted); font-size: 12px; font-weight: 600; }

/* ----- Карточка как на YouTube ----- */
.tz-card { position: relative; min-width: 0; }
.tz-media { position: relative; }
.tz-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--tz-r); overflow: hidden; background: var(--surface-2); isolation: isolate; cursor: pointer; transition: border-radius .3s, box-shadow .3s; }
.tz-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-smooth), opacity .4s; }
.tz-card:hover .tz-thumb > img { transform: scale(1.03); }
.tz-card.on .tz-thumb { box-shadow: 0 0 0 2px var(--accent); }
.tz-card.pv-ready .tz-thumb { border-radius: calc(var(--tz-r) * .5); }
.tz-nw { position: absolute; left: 8px; top: 8px; z-index: 4; padding: 3px 7px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 800 10.5px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; transition: opacity .3s; }
.tz-prem { position: absolute; left: 8px; bottom: 9px; z-index: 4; padding: 3px 8px; border-radius: 6px; background: #f4efe6; color: #111; font: 800 11px/1.2 var(--font); transition: opacity .3s; }
.tz-now { position: absolute; z-index: 4; left: 8px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 700 11px var(--font); }
.tz-now .tz-eq { height: 11px; gap: 2px; }
.tz-now .tz-eq i { width: 3px; background: currentColor; }
/* Превью без звука: видео поверх кадра, появляется, когда уже играет */
.tz-pv { position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: 0; transition: opacity .5s; pointer-events: none; }
.tz-card.pv-ready .tz-pv { opacity: 1; }
.tz-card.pv-ready .tz-nw, .tz-card.pv-ready .tz-ln, .tz-card.pv-ready .tz-wb, .tz-card.pv-ready .tz-prem, .tz-card.pv-ready .tz-now { opacity: 0; }
.tz-card.pv-on:not(.pv-ready) .tz-thumb::after { content: ''; position: absolute; z-index: 5; left: 0; bottom: 0; height: 3px; width: 40%; background: linear-gradient(90deg, transparent, var(--tz-prog), transparent); animation: tzLoad 1.1s ease-in-out infinite; }
@keyframes tzLoad { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* Кнопки при наведении: «Смотреть позже», «Следующим» */
.tz-hb { position: absolute; right: 7px; top: 7px; z-index: 6; display: flex; flex-direction: column; gap: 5px; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .35s var(--ease-smooth); }
.tz-card:hover .tz-hb, .tz-card:focus-within .tz-hb { opacity: 1; transform: none; }
.tz-hb button { width: 30px; height: 30px; min-width: 30px; flex: none; padding: 0; border: 0; border-radius: 7px; display: grid; place-items: center; background: rgba(0, 0, 0, .72); color: #fff; cursor: pointer; transition: background .2s; }
.tz-hb button:hover { background: #000; }
.tz-hb button.on { color: var(--accent-hi); }
.tz-hb svg { width: 16px; height: 16px; }
/* Управление превью: пауза, звук, полоска с перемоткой */
.tz-pv-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .3s; border-radius: calc(var(--tz-r) * .5); overflow: hidden; }
.tz-card.pv-ready .tz-pv-ui { opacity: 1; }
.tz-card.pv-ready .tz-pv-ui .tz-pv-btn, .tz-card.pv-ready .tz-pv-prog { pointer-events: auto; }
.tz-pv-tip { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 56px); padding: 4px 9px; border-radius: 99px; background: rgba(10, 10, 12, .6); color: rgba(255, 255, 255, .92); font: 700 10.5px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-pv-btns { position: absolute; left: 8px; bottom: 14px; display: flex; gap: 6px; }
.tz-pv-btn { width: 32px; height: 32px; min-width: 32px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(10, 10, 12, .6); color: #fff; cursor: pointer; transition: background .2s; }
.tz-pv-btn:hover { background: rgba(10, 10, 12, .85); }
.tz-pv-btn svg { width: 15px; height: 15px; }
.tz-pv-btn > span { display: grid; place-items: center; }
.tz-pv-btn .i-play, .tz-card.pv-paused .tz-pv-btn .i-pause, .tz-pv-btn .i-on, .tz-card.pv-sound .tz-pv-btn .i-off { display: none; }
.tz-card.pv-paused .tz-pv-btn .i-play, .tz-card.pv-sound .tz-pv-btn .i-on { display: grid; }
.tz-card.pv-sound .tz-pv-btn[data-pv-act="mute"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.tz-card.pv-paused .tz-pv::after { content: ''; position: absolute; inset: 0; background: rgba(5, 5, 7, .55); }
.tz-pv-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; display: flex; align-items: flex-end; cursor: pointer; }
.tz-pv-prog::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); transition: height .15s; }
.tz-pv-prog i { position: relative; height: 3px; width: calc(var(--pv-p, 0) * 100%); background: var(--tz-prog); transition: height .15s, width .22s linear; }
.tz-pv-prog:hover::before, .tz-pv-prog:hover i { height: 5px; }
/* Подпись: значок фильма (постер в круге), название, канал, когда, статус — и ⋮ */
.tz-mt { display: flex; gap: 12px; margin-top: 12px; align-items: flex-start; }
.tz-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 50%; overflow: hidden; background: var(--surface-2); color: var(--muted); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s; }
.tz-av img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.tz-av svg { width: 17px; height: 17px; }
.tz-av:hover { box-shadow: 0 0 0 2px var(--accent); }
.tz-tx { flex: 1; min-width: 0; }
.tz-tx h3 { margin: 0; font: 700 15px/1.35 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.tz-ch { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-ch svg { width: 12px; height: 12px; min-width: 12px; flex: none; padding: 1px; border-radius: 50%; background: var(--muted); color: var(--bg); stroke-width: 3.2; }
.tz-ag { display: block; font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-ag b { color: var(--accent); font-weight: 700; }
.tz-ag .ok { color: var(--tz-prog); font-weight: 700; }
:root[data-theme="light"] .tz-ag .ok { color: #d6002b; }
.tz-more { flex: none; width: 32px; height: 32px; min-width: 32px; margin: -4px -8px 0 0; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--text); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.tz-more svg { width: 20px; height: 20px; transform: rotate(90deg); }
.tz-card:hover .tz-more, .tz-more:focus-visible, .tz-more.open { opacity: 1; }
.tz-more:hover, .tz-more.open { background: var(--surface-2); }
@media (hover: none) { .tz-more { opacity: 1; } .tz-hb { display: none; } }
.tz-sentinel { height: 1px; } /* конец ленты: дошли — подгружаем ещё */
.tz-empty { display: grid; justify-items: center; gap: 8px; padding: 60px 20px; text-align: center; border-radius: 22px; border: 1px dashed var(--line-2); }
.tz-empty > span { width: 64px; height: 64px; min-width: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.tz-empty > span svg { width: 28px; height: 28px; }
.tz-empty b { font: 500 22px var(--font-display); letter-spacing: -.02em; }
.tz-empty p { margin: 0; color: var(--muted); max-width: 420px; }
.tz-reset { margin-top: 12px; height: 42px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--text); color: var(--bg); font: 700 13.5px var(--font); cursor: pointer; }

/* ----- Меню «⋮» ----- */
.tz-menu { position: fixed; z-index: 120; width: 280px; padding: 8px; border-radius: 18px; background: var(--glass-strong); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7); animation: tzMenu .22s var(--ease-out); transform-origin: top right; }
@keyframes tzMenu { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.tz-menu-h { display: grid; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.tz-menu-h b { font: 600 14px/1.25 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-menu-h small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-menu > button, .tz-menu > a { width: 100%; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border: 0; border-radius: 11px; background: none; color: var(--text); font: 600 13.5px var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.tz-menu > button:hover, .tz-menu > a:hover, .tz-menu > :focus-visible { background: var(--surface-2); outline: 0; }
.tz-menu svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.tz-menu hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--line); }

/* ----- Адаптив ----- */
@media (max-width: 1280px) { .tz { --tz-nw: 324px; } .tz-nx { grid-template-columns: 118px minmax(0, 1fr); } }
/* Планшет, телефон, телефон боком: «Далее» — лентой под экраном, панель и меню не липнут */
@media (max-width: 900px), (max-height: 560px) {
  .tz-scrw { height: auto; }
  .tz-scr { height: clamp(520px, 80svh, 660px); }
  .tz-info { width: auto; right: clamp(20px, 3.4vw, 56px); bottom: 50px; }
  .tz-stbar { right: clamp(20px, 3.4vw, 56px); bottom: 16px; }
  .tz-spause { right: clamp(20px, 3.4vw, 56px); bottom: auto; top: 20px; }
  .tz-shade { background: linear-gradient(0deg, rgba(5, 6, 9, .97) 0%, rgba(5, 6, 9, .78) 45%, rgba(5, 6, 9, .12) 80%), linear-gradient(90deg, rgba(5, 6, 9, .5), transparent 70%); }
  .tz-scr.playing { height: auto; }
  .tz-scr.playing .tz-player { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .tz-playing { position: relative; left: auto; right: auto; height: auto; min-height: 60px; padding: 10px 10px 10px 16px; flex-wrap: wrap; gap: 10px 12px; }
  .tz-next { position: relative; inset: auto; width: auto; margin-top: 14px; padding: 14px 0 8px 12px; border-radius: 16px; background: var(--surface); border-color: var(--line); color: var(--text); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .tz-nh { padding-right: 12px; }
  .tz-nh small { color: var(--muted); }
  .tz-keys button { border-color: var(--line-2); color: var(--text); background: none; }
  .tz-nxl { flex-direction: row; overflow: auto hidden; gap: 12px; padding: 0 12px 8px 0; scrollbar-width: none; }
  .tz-nxl::-webkit-scrollbar { display: none; }
  .tz-nxl > li { flex: none; }
  .tz-nx { grid-template-columns: minmax(0, 1fr); width: 190px; padding: 0; align-items: start; gap: 8px; }
  .tz-nx:hover { background: none; }
  .tz-nx-t small { color: var(--muted); }
  .tz-nx-t small.w, .tz-nx-t small.up { color: var(--accent); }
  .tz-dock { position: relative; top: auto; margin-top: 14px; }
  .tz-dock::before { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .tz-side { position: relative; top: auto; max-height: none; }
}
@media (max-height: 560px) and (min-width: 560px) {
  .tz-stage { padding-top: calc(var(--sat) + 72px); }
  .tz-scr { height: calc(100svh - var(--sat) - 84px); min-height: 300px; }
  .tz-st-top { top: 14px; }
  .tz-info { bottom: 34px; width: min(600px, calc(100% - 40px)); }
  .tz-title { font-size: clamp(24px, 4.2vw, 40px); margin-top: 8px; }
  .tz-info .tz-chips, .tz-resume { display: none; }
  .tz-ov { -webkit-line-clamp: 1; font-size: 14px; }
  .tz-meta { margin-top: 6px; font-size: 13px; }
  .tz-acts { margin-top: 10px; }
  .tz-btn { height: 42px; } .tz-btn.ic { width: 42px; min-width: 42px; height: 42px; }
  .tz-scr.playing { height: auto; min-height: 0; }
  .tz-scr.playing .tz-player { width: min(100%, calc((100svh - var(--sat) - 160px) * 16 / 9)); margin: 0 auto; }
}
@media (max-width: 900px) {
  .tz-dock-in { flex-wrap: wrap; gap: 10px; }
  .tz-srch { order: -1; flex: 1 1 100%; min-width: 0; margin: 0; }
  .tz-srch kbd { display: none; }
  .tz-fchips { flex: 1 1 100%; }
  /* строки чипов прокручиваются пальцем от края до края экрана */
  .tz-fchips, .tz-side { margin-left: calc(-1 * var(--pad-l)); margin-right: calc(-1 * var(--pad-r)); padding-left: var(--pad-l); padding-right: var(--pad-r); scroll-padding: 0 var(--pad-r) 0 var(--pad-l); }
  .tz-lay { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 4px; }
  .tz-side { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 0; padding-bottom: 6px; }
  .tz-side::-webkit-scrollbar { display: none; }
  .tz-side h4, .tz-side hr { display: none; }
  .tz-gi { flex: none; width: auto; height: 38px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); gap: 8px; }
  .tz-gi .n { margin-left: 2px; }
  .tz-gi > svg { width: 17px; height: 17px; min-width: 17px; }
  .tz-gi .ca { width: 22px; height: 22px; min-width: 22px; min-height: 22px; font-size: 11px; }
  .tz-gi .lb { max-width: 150px; }
  .tz-gi.on { background: var(--text); color: var(--bg); }
  .tz-gi.on .n { color: inherit; opacity: .6; }
}
@media (max-width: 640px) {
  .tz-more { opacity: 1; }
  .tz-hb { display: none; }
  .tz-menu { left: 8px !important; right: 8px; bottom: calc(8px + var(--sab)); top: auto !important; width: auto; border-radius: 22px; transform-origin: bottom center; animation-name: tzSheet; }
}
@keyframes tzSheet { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 520px) {
  .tz-stage { padding-top: calc(var(--sat) + 76px); }
  .tz-scr { height: 580px; max-height: calc(100svh - var(--sat) - 100px); min-height: 470px; border-radius: 18px; }
  .tz-scr.playing { height: auto; min-height: 0; max-height: none; }
  .tz-st-top { top: 16px; left: 16px; right: 16px; justify-content: space-between; gap: 8px; }
  .tz-ey { font-size: 10px; letter-spacing: .1em; }
  .tz-info { left: 16px; right: 16px; bottom: 40px; }
  .tz-title { font-size: clamp(28px, 9vw, 36px); margin-top: 12px; }
  .tz-meta { font-size: 13px; }
  .tz-sep { margin: 0 7px; }
  .tz-ov { font-size: 14px; -webkit-line-clamp: 3; }
  .tz-stbar { left: 16px; right: 16px; }
  .tz-acts { margin-top: 16px; gap: 8px; flex-wrap: nowrap; }
  .tz-btn { height: 46px; padding: 0 16px; font-size: 13.5px; }
  .tz-btn.pri { flex: 1 1 auto; min-width: 0; }
  .tz-btn.ic, .tz-btn.gh[data-wl] { width: 46px; min-width: 46px; height: 46px; padding: 0; border-radius: 50%; flex: none; }
  .tz-l-full, .tz-l-wl { display: none; }
  .tz-l-short { display: inline; }
  .tz-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tz-rail { grid-auto-columns: 128px; gap: 12px; }
  .tz-rail-wrap::before, .tz-rail-wrap::after { width: 22px; }
  .tz-shelf-nav { display: none; }
  .tz-play-all span { display: none; }
  .tz-play-all { width: 38px; padding: 0; justify-content: center; }
  .tz-nx { width: 168px; }
  .tz-playing-t { min-width: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tz-info.swap > *, .tz-nx { animation: none; } .tz-eq i { animation: none; height: 10px; } .tz-sfr > img { transition: opacity .3s; transform: none; } }

/* ===== Выбор фильма для кинозала (js/filmpick.js): стена постеров ===== */
html.fp-lock { overflow: hidden; }
.fp { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; }
.fp-scrim { position: absolute; inset: 0; background: rgba(4, 4, 6, .72); opacity: 0; transition: opacity .3s; }
.fp.open .fp-scrim { opacity: 1; }
.fp-sheet { position: relative; width: min(1040px, 100%); height: min(780px, calc(100vh - 48px)); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); overflow: hidden; transform: translateY(18px) scale(.985); opacity: .001; transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.fp.open .fp-sheet { transform: none; opacity: 1; }
.fp-sheet::before { content: ''; position: absolute; inset: 0 0 auto; height: 220px; background: radial-gradient(70% 100% at 20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); pointer-events: none; }
.fp-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 28px 0; }
.fp-head h3 { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; }
.fp-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.fp-x { flex: none; width: 40px; height: 40px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: background .2s, border-color .2s; }
.fp-x:hover { background: var(--surface-2); border-color: var(--line-2); }
.fp-x svg { width: 18px; height: 18px; }
.fp-search { position: relative; display: flex; align-items: center; gap: 12px; margin: 20px 28px 0; padding: 0 18px; height: 56px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.fp-search:focus-within { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.fp-search svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.fp-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.fp-tabs { position: relative; display: flex; gap: 8px; margin: 16px 28px 0; overflow-x: auto; scrollbar-width: none; }
.fp-tabs::-webkit-scrollbar { display: none; }
.fp.searching .fp-tabs { opacity: .45; }
.fp-tab { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.fp-tab:hover { color: var(--text); border-color: var(--line-2); }
.fp-tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fp-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 20px 28px 28px; overscroll-behavior: contain; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.fp-card { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.fp-poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.fp-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.fp-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.fp-noimg svg { width: 34px; height: 34px; }
.fp-rate { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: none; }
.fp-rate svg { width: 11px; height: 11px; color: #f5c451; }
.fp-ok { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; aspect-ratio: 1; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.fp-ok svg { width: 12px; height: 12px; margin-left: 1px; }
.fp-hover { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 14px; background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0) 60%); opacity: 0; transition: opacity .25s; }
.fp-go { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 700; transform: translateY(8px); transition: transform .3s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; }
.fp-go svg { width: 16px; height: 16px; }
.fp-card:hover .fp-poster, .fp-card:focus-visible .fp-poster { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 2px var(--accent); }
.fp-card:hover .fp-poster img { transform: scale(1.04); }
.fp-card:hover .fp-hover, .fp-card:focus-visible .fp-hover { opacity: 1; }
.fp-card:hover .fp-go, .fp-card:focus-visible .fp-go { transform: none; }
.fp-card:focus-visible { outline: none; }
.fp-card.picked .fp-poster { box-shadow: 0 0 0 3px var(--accent); }
.fp-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fp-t b { font-size: 14.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-t small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-skel .fp-poster { animation: fpPulse 1.2s ease-in-out infinite alternate; box-shadow: none; }
.fp-skel .fp-t b, .fp-skel .fp-t small { display: block; height: 12px; width: 80%; border-radius: 6px; background: var(--surface-2); }
.fp-skel .fp-t small { width: 45%; }
@keyframes fpPulse { from { background: var(--surface); } to { background: var(--surface-2); } }
.fp-empty { grid-column: 1 / -1; margin: 40px auto; max-width: 360px; text-align: center; color: var(--muted); }
.fp-foot { display: flex; justify-content: center; padding-top: 24px; }
.fp-foot:empty { display: none; }
.fp-load { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.fp-more { height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.fp-more:hover { border-color: var(--accent); }
@media (max-width: 640px) {
  .fp { padding: 0; place-items: end stretch; }
  .fp-sheet { width: 100%; height: calc(100dvh - 24px); border-radius: 22px 22px 0 0; border-bottom: 0; transform: translateY(40px); padding-bottom: env(safe-area-inset-bottom); }
  .fp-head { padding: 20px 16px 0; }
  .fp-head p { font-size: 13px; }
  .fp-search { margin: 14px 16px 0; height: 50px; }
  .fp-tabs { margin: 12px 16px 0; }
  .fp-body { padding: 16px 16px 24px; }
  .fp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .fp-t b { font-size: 13px; }
  .fp-t small { font-size: 11.5px; }
  .fp-hover { display: none; }
  .fp-rate { font-size: 11px; padding: 2px 6px; }
}
@media (prefers-reduced-motion: reduce) { .fp-sheet, .fp-poster, .fp-poster img, .fp-go { transition: none; } .fp-skel .fp-poster { animation: none; } }/* кнопка на постере: всегда помещается в ширину, непрозрачная, быстрее проявляется */
.fp-hover { padding: 10px; transition: opacity .15s; }
.fp-go { width: 100%; max-width: 100%; justify-content: center; height: 36px; padding: 0 10px; font-size: 13.5px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transform: translateY(6px); }
.fp-go span { overflow: hidden; text-overflow: ellipsis; }
/* ===== Переключатель языка (шапка + мобильное меню) ===== */
.lang-sw { position: relative; flex: none; }
.lang-btn { font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; display: flex; flex-direction: column; gap: 2px; min-width: 190px; padding: 6px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.lang-sw.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 11px; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.lang-menu button b { flex: none; margin-left: auto; padding-left: 10px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
/* флаги языков (js/flags.js): прямоугольник 3:2, не сжимается */
.flag { flex: none; display: block; width: 24px; height: 16px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 2px 6px rgba(0, 0, 0, .35); overflow: hidden; }
.menu-lang button { display: inline-flex; align-items: center; gap: 9px; }
.menu-lang .flag { width: 22px; height: 15px; }
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button.on { color: var(--accent); }
.lang-menu button.on b { color: var(--accent); }
.lang-menu button.on .flag { box-shadow: 0 0 0 2px var(--accent), 0 2px 6px rgba(0, 0, 0, .35); }
.menu-lang { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.menu-lang button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.menu-lang button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 640px) { .lang-sw { display: none; } }

/* языки в режиме предпросмотра — переключатель скрыт */
.i18n-preview .lang-sw, .i18n-preview .menu-lang { display: none !important; }

/* ---------- Все части франшизы (страница фильма) ---------- */
.saga { position: relative; isolation: isolate; margin-top: clamp(48px, 7vw, 96px); padding: clamp(20px, 3vw, 32px); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.saga[hidden] { display: none; }
.saga-bg { position: absolute; inset: 0; z-index: -1; }
.saga-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .22; filter: blur(2px) saturate(1.1); }
.saga-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, color-mix(in srgb, var(--bg) 40%, transparent)), linear-gradient(0deg, var(--bg), transparent 60%); }
.saga-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.saga-head .h2 { margin: 4px 0 0; }
.saga-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.saga-pos { color: var(--muted); font-size: 14px; font-weight: 600; }
.saga-pos b { color: var(--accent); }
/* Компьютер — все части сразу, сеткой; телефон — лента, листается пальцем (без полосы прокрутки) */
.saga-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 22px 14px; padding: 6px 2px 4px; }
.saga-card { display: grid; gap: 5px; align-content: start; color: inherit; text-decoration: none; scroll-snap-align: start; }
.saga-poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); margin-bottom: 6px; transition: transform .45s var(--ease-spring), box-shadow .3s; }
.saga-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out); }
.saga-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.saga-noimg svg { width: 28px; height: 28px; }
.saga-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 32%, transparent 62%, rgba(0, 0, 0, .55)); pointer-events: none; }
.saga-num { position: absolute; z-index: 1; left: 9px; top: 7px; font: 600 30px/1 var(--font-display); letter-spacing: -.04em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.saga-tag { position: absolute; z-index: 1; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font: 700 11px var(--font); background: rgba(10, 10, 12, .65); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.saga-tag svg { width: 12px; height: 12px; }
.saga-tag.here { background: var(--accent); color: var(--accent-ink); }
.saga-tag.soon { color: #7fd8a4; }
.saga-tag.seen svg { color: var(--accent); }
.saga-card:hover .saga-poster { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.saga-card:hover .saga-poster img { transform: scale(1.05); }
.saga-card.on .saga-poster { box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -18px rgb(var(--tint) / .8); }
.saga-card.soon .saga-poster img { filter: saturate(.7) brightness(.85); }
.saga-card b { font: 600 14px/1.3 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.saga-card.on b { color: var(--accent); }
.saga-card small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.saga-vote { display: inline-flex; align-items: center; gap: 3px; }
.saga-vote svg { width: 12px; height: 12px; color: var(--accent); }
@media (max-width: 640px) {
  .saga { padding: 18px 14px; border-radius: 22px; }
  .saga-head { align-items: flex-start; }
  .saga-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 124px; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -14px; padding: 6px 14px 4px; scroll-padding: 0 14px; }
  .saga-track::-webkit-scrollbar { display: none; }
  .saga-num { font-size: 24px; }
}

/* Календарь: общий блок «новые серии популярных сериалов» и кнопка «Показать дальше» */
.cal-pub { scroll-margin-top: 90px; }
.cal-pub .cal-day { scroll-margin-top: 90px; }
.cal-more { display: flex; margin: 18px auto 0; }

/* ---------- Политика конфиденциальности (/privacy) ---------- */
.legal { max-width: 820px; padding-top: calc(var(--sat) + 120px); padding-bottom: 40px; }
.legal-head { margin-bottom: 30px; }
.legal-head h1 { margin: 10px 0 12px; font: 500 clamp(30px, 5vw, 48px)/1.05 var(--font-display); letter-spacing: -.04em; }
.legal section { padding: 22px 0; border-top: 1px solid var(--line); }
.legal h2 { margin: 0 0 12px; font: 600 clamp(18px, 2.2vw, 22px) var(--font-display); letter-spacing: -.02em; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.65; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal b { color: var(--text); }
.legal a { color: var(--accent); }
.legal-table { display: grid; gap: 1px; margin-bottom: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.legal-table > div { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 12px 16px; background: var(--bg); font-size: 14px; line-height: 1.55; }
.legal-table b { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.legal-table span { color: var(--muted); }
.legal .btn { vertical-align: middle; margin-left: 6px; }
@media (max-width: 640px) { .legal-table > div { grid-template-columns: 1fr; gap: 4px; } }
a.footer-about { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Плашка cookie ---------- */
.ck-bar { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--sab) + 16px); width: min(760px, calc(100vw - 24px)); display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--elev); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--ease-spring), opacity .3s; }
.ck-bar.on { transform: translate(-50%, 0); opacity: 1; }
.ck-bar.away { opacity: .35; }
.ck-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgb(var(--tint) / .12); color: var(--accent); }
.ck-ic svg { width: 20px; height: 20px; }
.ck-t { flex: 1; min-width: 0; margin: 0; display: grid; gap: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ck-t b { color: var(--text); font-size: 14px; }
.ck-t a { color: var(--accent); }
.ck-act { flex: none; display: flex; gap: 8px; }
@media (max-width: 640px) {
  .ck-bar { flex-wrap: wrap; bottom: calc(var(--sab) + 10px); }
  .ck-ic { display: none; }
  .ck-act { width: 100%; }
  .ck-act .btn { flex: 1; justify-content: center; }
}

/* Согласие при регистрации */
.auth-consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 2px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.auth-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.auth-consent a { color: var(--accent); }


/* ---------- Закладки-моменты под плеером (moments.js) ---------- */
.moments { margin-top: 14px; display: grid; gap: 12px; }
.mo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mo-add[hidden], .mo-form[hidden] { display: none; }
.mo-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 1 1 360px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid rgb(var(--tint) / .45); animation: popin .5s var(--ease-spring); }
.mo-form-t { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--accent); }
.mo-form-t svg { width: 15px; height: 15px; }
.mo-form-t small { color: var(--muted); font-size: 12px; }
.mo-form input { flex: 1 1 160px; min-width: 0; height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.mo-form .icon-btn, .mo-shared .icon-btn { flex: none; width: 34px; height: 34px; min-width: 34px; }
.mo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-chip { display: inline-flex; align-items: center; max-width: 100%; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.mo-chip:hover { border-color: rgb(var(--tint) / .5); }
.mo-go { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 4px 7px 12px; background: none; border: 0; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.mo-go svg { flex: none; width: 12px; height: 12px; color: var(--accent); }
.mo-go b { font-variant-numeric: tabular-nums; }
.mo-go small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mo-go span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26ch; color: var(--muted); }
.mo-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; min-width: 30px; border-radius: 50%; background: none; border: 0; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.mo-ic:last-child { margin-right: 3px; }
.mo-ic:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.mo-ic svg { width: 14px; height: 14px; }
.mo-shared { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(120deg, rgb(var(--tint) / .2), var(--surface) 70%); border: 1px solid rgb(var(--tint) / .4); animation: popin .6s var(--ease-spring); }
.mo-shared-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; border-radius: 50%; background: rgb(var(--tint) / .2); color: var(--accent); }
.mo-shared-ic svg { width: 18px; height: 18px; }
.mo-shared-t { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; }
.mo-shared-t b { font: 600 15px var(--font-display); }
.mo-shared-t small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) {
  .mo-form { border-radius: 18px; padding: 8px 8px 8px 12px; }
  .mo-go span { max-width: 16ch; }
}

/* ---------- «Кинокарта мира» (/kinomap, kinomap.js) ----------
   Главное — сама карта: тёмный «экран» с лучом проектора сверху, страны загораются цветом акцента.
   Чем больше кино из страны, тем ярче заливка (--lv); порядок загорания — как зритель открывал страны (--dl) */
.km { padding-top: clamp(120px, 14vw, 170px); }
.km-head { max-width: 860px; margin-bottom: clamp(22px, 3vw, 36px); }
.km-beta { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.km-beta svg { width: 13px; height: 13px; }
.km-title { margin: 16px 0 12px; font: 600 clamp(30px, 5.2vw, 64px)/1.02 var(--font-display); letter-spacing: -.035em; max-width: 17ch; text-wrap: balance; }
.km-sub { margin: 0; max-width: 62ch; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; }
.km-map { position: relative; margin: 0; padding: clamp(10px, 2vw, 26px); border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% -10%, rgb(var(--tint) / .16), transparent 70%), var(--surface); }
.km-map svg { display: block; width: 100%; height: auto; }
.km-sphere { fill: rgba(255, 255, 255, .015); stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.km-grat { fill: none; stroke: rgba(255, 255, 255, .045); stroke-width: .6; }
.km-c { fill: rgba(255, 255, 255, .075); stroke: rgba(10, 10, 14, .9); stroke-width: .5; stroke-linejoin: round; transition: fill .9s var(--ease-out) var(--dl, 0s), fill-opacity .9s var(--ease-out) var(--dl, 0s); }
.km-c.on { cursor: pointer; }
.lit .km-c.on { fill: var(--accent); fill-opacity: var(--lv); }
.lit .km-c.on:hover { fill-opacity: 1; transition-delay: 0s; }
.km-c.sel { stroke: #fff; stroke-width: 1.3; fill-opacity: 1 !important; filter: drop-shadow(0 0 8px rgb(var(--tint) / .9)); }
.km-dot { fill: var(--accent); fill-opacity: var(--lv); stroke: rgba(255, 255, 255, .85); stroke-width: 1; cursor: pointer; }
.km-dot.sel { stroke-width: 2; fill-opacity: 1; }
.km-tip { position: absolute; left: 0; top: 0; z-index: 2; display: grid; gap: 2px; min-width: 120px; max-width: 220px; padding: 8px 12px; border-radius: 12px; pointer-events: none;
  background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); }
.km-tip[hidden] { display: none; }
.km-tip b { font-size: 14px; }
.km-tip span { color: var(--muted); font-size: 12.5px; }
.km-legend { position: absolute; left: clamp(16px, 2.4vw, 32px); bottom: clamp(14px, 2vw, 26px); display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.km-legend i { width: 110px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, rgb(var(--tint) / .28), rgb(var(--tint))); }
.km-body { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); margin-top: clamp(22px, 3vw, 36px); align-items: start; }
.km-rank { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; max-height: 560px; overflow: auto; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.km-rank button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 70px 30px; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background .2s; }
.km-rank button:hover { background: rgba(255, 255, 255, .05); }
.km-rank button.sel { background: rgb(var(--tint) / .16); }
.km-rank button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.km-rn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.km-bar i { display: block; height: 100%; min-width: 5px; border-radius: 99px; background: var(--accent); }
.km-rv { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.km-panel { min-width: 0; scroll-margin-top: 110px; }
.km-pt { margin: 0; font: 600 clamp(24px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: -.03em; }
.km-ps { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.km-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px 14px; margin-top: 18px; }
.km-f { display: grid; gap: 7px; color: var(--text); text-decoration: none; font-size: 13px; line-height: 1.3; }
.km-f img, .km-f-ph { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease-out); }
.km-f-ph { display: grid; place-items: center; color: var(--muted); }
.km-f-ph svg { width: 28px; }
.km-f:hover img { transform: translateY(-3px); }
.km-f span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.km-empty { margin-top: 24px; }
:root[data-theme="light"] .km-sphere { fill: rgba(0, 0, 0, .015); stroke: rgba(0, 0, 0, .1); }
:root[data-theme="light"] .km-grat { stroke: rgba(0, 0, 0, .05); }
:root[data-theme="light"] .km-c { fill: rgba(0, 0, 0, .08); stroke: #fff; }
:root[data-theme="light"] .km-c.sel { stroke: #111; }
:root[data-theme="light"] .km-rank button:hover { background: rgba(0, 0, 0, .04); }
@media (max-width: 900px) {
  .km-body { grid-template-columns: 1fr; }
  .km-rank { max-height: 320px; }
}
@media (max-width: 600px) {
  .km-map { border-radius: 20px; padding: 6px; }
  .km-legend { position: static; margin: 8px 6px 4px; }
  .km-films { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) { .km-c { transition: none; } }
/* Кинокарта: контур страны под курсором и приближение (viewBox) — линии не толстеют при приближении */
.km-c, .km-hover, .km-grat, .km-sphere, .km-dot { vector-effect: non-scaling-stroke; }
.km-c { cursor: pointer; }
.km-hover { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .9); stroke-width: 1.6; stroke-linejoin: round; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .45)); }
.km-hover.lit-c { fill: rgba(255, 255, 255, .12); stroke: #fff; filter: drop-shadow(0 0 10px rgb(var(--tint))); }
.km-reset { position: absolute; top: clamp(12px, 1.8vw, 22px); right: clamp(12px, 1.8vw, 22px); z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); font: 600 13px var(--font); cursor: pointer; animation: popin .5s var(--ease-spring); }
.km-reset[hidden] { display: none; }
.km-reset svg { width: 14px; height: 14px; }
.km-reset:hover { border-color: rgb(var(--tint) / .6); }
.km-reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root[data-theme="light"] .km-hover { fill: rgba(0, 0, 0, .05); stroke: #111; filter: none; }

/* Трейлеры: всплывающий плеер — трейлер открывается поверх страницы, лента остаётся на месте (2026-11-03) */
/* страницу под окном не блокируем (overflow:hidden у html сбивал прокрутку ленты); окно само гасит прокрутку.
   Без backdrop-filter: размытие всей страницы под играющим видео пересчитывалось каждый кадр — всё лагало.
   Анимации под окном на паузе — их всё равно не видно */
.tz-modal-open body > *:not(.tz-modal), .tz-modal-open body > *:not(.tz-modal) * { animation-play-state: paused !important; }
.tz-modal { --tz-ink: #f4efe6; --tz-line: rgba(255, 255, 255, .14); overscroll-behavior: contain; touch-action: none; position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(5, 5, 7, .93); opacity: 0; transition: opacity .3s cubic-bezier(.32, .72, 0, 1); }
.tz-modal.on { opacity: 1; }
.tz-m-box { width: min(1180px, calc(100% - 16px), calc((100dvh - 200px) * 16 / 9)); min-width: min(100%, 320px); display: flex; flex-direction: column; gap: 14px; color: #f4f4f5; transform: translateY(18px) scale(.97); transition: transform .45s cubic-bezier(.32, .72, 0, 1); }
.tz-modal.on .tz-m-box { transform: none; }
.tz-m-box:focus { outline: none; }
.tz-m-head { display: flex; align-items: center; gap: 16px; }
.tz-m-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tz-m-t b { font: 600 clamp(17px, 2vw, 22px)/1.2 Unbounded, sans-serif; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-m-t small { font-size: 13px; color: rgba(244, 244, 245, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* закрыть — заметная кнопка-пилюля в правом верхнем углу */
.tz-m-x { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1); color: #fff; font: 600 14px/1 inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .2s cubic-bezier(.32, .72, 0, 1); }
.tz-m-x svg { width: 18px; height: 18px; flex: none; }
.tz-m-x:hover { background: #fff; color: #0b0b0d; border-color: #fff; }
.tz-m-x:active { transform: scale(.96); }
.tz-m-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* рамка по всему периметру видео: нейтральная стеклянная кромка (светлая линия + полупрозрачный ободок), без цвета */
.tz-m-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 0 0 7px rgba(255, 255, 255, .07), 0 0 0 8px rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.tz-m-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tz-m-foot { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tz-m-n { min-width: 64px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(244, 244, 245, .55); }
@media (max-width: 640px) {
  .tz-m-box { gap: 10px; }
  .tz-m-frame { border-radius: 14px; }
  .tz-m-x { width: 42px; padding: 0; justify-content: center; }
  .tz-m-x span, .tz-m-foot .tz-btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tz-modal, .tz-m-box { transition: none; } }

/* Итоги года: окно «Поделиться» — все карточки сразу */
.dlg-card.wr-sh-card { position: relative; width: min(560px, calc(100vw - 24px)); display: grid; gap: 16px; }
.dlg-card.wr-sh-card h3 { margin: 0; padding-right: 44px; }
.dlg-card.wr-sh-card > p { margin: -6px 0 0; }
.wr-sh-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.wr-sh-x svg { width: 18px; height: 18px; }
.wr-sh-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.wr-sh-strip canvas { flex: none; width: 96px; height: 171px; border-radius: 12px; border: 1px solid var(--line); scroll-snap-align: start; animation: wrShIn .5s cubic-bezier(.32, .72, 0, 1) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes wrShIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.wr-sh-main { justify-content: center; width: 100%; }
.wr-sh-main.busy { opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wr-sh-strip canvas { animation: none; } }
@media (max-width: 480px) { .wr-sh-strip canvas { width: 80px; height: 142px; } }

/* ---------- Кинозал «Премьера» (вариант 01): кадр комнаты на фоне, панель комнат и друзей ---------- */
.cz1-hero { text-align: left; position: relative; isolation: isolate; min-height: min(max(720px, 100svh), 980px); padding-top: 128px; overflow: hidden; display: flex; }
.cz1-hero > .container { align-self: stretch; }
.cz1-bd { position: absolute; inset: 0; z-index: -1; }
.cz1-l { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-smooth); }
.cz1-l.on { opacity: 1; }
.cz1-l img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transform: scale(1.04); transition: transform 9s linear; will-change: transform; }
.cz1-l.on img { transform: scale(1); }
.cz1-bd::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 26%, color-mix(in srgb, var(--bg) 35%, transparent) 58%, color-mix(in srgb, var(--bg) 60%, transparent) 100%),
  linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 28%, transparent 55%),
  linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent), transparent 22%); }
.cz1-mosaic { position: absolute; inset: -10% -5% 0 30%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; opacity: 0; transition: opacity 1.2s var(--ease-smooth); transform: rotate(-4deg); }
.cz1-mosaic img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; }
.cz1-col { display: grid; gap: 14px; align-content: start; animation: cz1drift 40s linear infinite alternate; will-change: transform; }
.cz1-hero.off .cz1-col { animation-play-state: paused; }
.cz1-col:nth-child(even) { animation-direction: alternate-reverse; margin-top: -120px; }
@keyframes cz1drift { to { transform: translateY(-140px); } }
.cz1-hero.empty .cz1-mosaic { opacity: .22; }
.cz1-hero.empty .cz1-l { opacity: 0; }
.cz1-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 430px); gap: clamp(28px, 4vw, 72px); align-items: end; padding-bottom: 56px; }
.cz1-left { max-width: 820px; padding-top: clamp(20px, 6vh, 90px); }
.cz1-left { display: flex; flex-direction: column; align-items: flex-start; }
.cz1-left h1 { font: 600 clamp(52px, 6.6vw, 120px)/.9 var(--font-display); letter-spacing: -.045em; margin: 20px 0 22px; }
.cz1-left h1 span { display: block; background: linear-gradient(100deg, var(--accent-hi), var(--accent) 45%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.cz1-lead { margin: 0; font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); max-width: 520px; line-height: 1.55; text-wrap: pretty; }
.cz1-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.cz1-new { height: 58px; padding-left: 26px; font-size: 16.5px; }
/* Вторичные действия — одной стеклянной группой, а не россыпью кнопок */
.cz1-tools { display: inline-flex; align-items: stretch; height: 58px; padding: 5px; gap: 2px; border-radius: 999px; background: color-mix(in srgb, var(--elev) 78%, transparent); border: 1px solid var(--line-2); box-shadow: var(--hi); }
.cz1-tools > * { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--text); font: 700 14px var(--font); white-space: nowrap; cursor: pointer; transition: background .3s, color .3s; }
.cz1-tools > *:hover { background: var(--surface-2); }
.cz1-tools > * + *::before { content: ""; width: 1px; height: 20px; margin: 0 8px 0 -16px; background: var(--line-2); }
.cz1-tools > *:hover::before, .cz1-tools > *:hover + *::before { opacity: 0; }
.cz1-tools svg { width: 17px; height: 17px; flex: none; color: var(--accent); }
.cz1-tools .cz-event-new { margin-left: 0; }
.cz1-focus { align-self: stretch; margin-top: 30px; display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 22px; background: color-mix(in srgb, var(--elev) 82%, transparent); border: 1px solid var(--line); box-shadow: var(--hi); max-width: 600px; }
.cz1-focus:empty { display: none; }
.cz1-fp { width: 54px; height: 80px; min-width: 54px; flex: none; border-radius: 12px; object-fit: cover; }
.cz1-fi { flex: 1; min-width: 0; }
.cz1-k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz1-fi > b { display: block; font: 600 18px/1.25 var(--font-display); letter-spacing: -.01em; margin: 4px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz1-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.cz1-steps { display: flex; gap: 8px 14px; flex-wrap: wrap; margin-top: 8px; }
.cz1-steps span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cz1-steps i { font-style: normal; width: 20px; height: 20px; min-width: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--tint) / .18); color: var(--accent); font-size: 11px; }
.cz1-ico { width: 54px; height: 54px; min-width: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgb(var(--tint) / .14); color: var(--accent); }
.cz1-ico svg { width: 24px; height: 24px; }
.cz1-focus-go { flex: none; }
.cz1-panel { position: relative; border-radius: 30px; padding: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--elev) 88%, transparent), color-mix(in srgb, var(--bg) 92%, transparent)); border: 1px solid var(--line-2); box-shadow: var(--hi), var(--shadow); contain: layout paint; }
.cz1-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 12px; }
.cz1-ph b { display: flex; align-items: center; gap: 10px; font: 600 16px/1 var(--font-display); }
.cz1-ph b svg { width: 16px; color: var(--accent); }
.cz1-ph em { font-style: normal; font: 700 12px/1 var(--font); color: var(--accent-ink); background: var(--accent); padding: 4px 8px; border-radius: 999px; }
.cz1-ph em[hidden] { display: none; }
.cz1-ph a { font-size: 13px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: color .3s; }
.cz1-ph a:hover { color: var(--accent); }
.cz1-ph a svg { width: 15px; }
.cz1-panel .cz-rooms { display: grid; gap: 4px; max-height: none; overflow: visible; }
.cz1-rm { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px 9px 9px; border-radius: 18px; color: inherit; transition: background .4s var(--ease-smooth); }
.cz1-rm::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--accent); transform: scaleY(0); transition: transform .5s var(--ease-smooth); }
.cz1-rm:hover, .cz1-rm.on { background: var(--surface-2); }
.cz1-rm.on::before { transform: scaleY(1); }
.cz1-rm-img { width: 46px; height: 68px; min-width: 46px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); }
.cz1-rm-img img { width: 100%; height: 100%; object-fit: cover; }
.cz1-rm-img svg { width: 18px; }
.cz1-rm-t { min-width: 0; display: grid; }
.cz1-rm-t b { font-weight: 800; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz1-rm-t small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 1px 0 5px; }
.cz1-meta { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.cz1-rm-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cz1-go { height: 32px; padding: 0 14px; font-size: 13px; justify-content: center; opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease-smooth), transform .5s var(--ease-smooth); }
.cz1-rm:hover .cz1-go, .cz1-rm.on .cz1-go { opacity: 1; transform: none; }
.cz1-rm .cz-del { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 8px; background: rgba(10, 10, 12, .72); color: #fff; opacity: 0; transition: opacity .3s; }
.cz1-rm .cz-del svg { width: 14px; }
.cz1-rm:hover .cz-del { opacity: 1; }
@media (hover: none) { .cz1-go, .cz1-rm .cz-del { opacity: 1; transform: none; } }
.cz1-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cz1-st::before { content: ""; width: 7px; height: 7px; min-width: 7px; flex: none; border-radius: 50%; background: var(--good); }
.cz1-st.play { color: var(--text); }
.cz1-st.pause::before { background: var(--mid); }
.cz1-st.wait::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.cz1-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.cz1-tag svg { width: 12px; height: 12px; }
.cz1-tag.fr { background: rgb(var(--tint) / .15); color: var(--accent); }
.cz1-tag.my { background: var(--text); color: var(--bg); }
.cz1-avas { --s: 24px; display: inline-flex; align-items: center; }
.cz1-avas img, .cz1-avas b { width: var(--s); height: var(--s); min-width: var(--s); flex: none; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-left: calc(var(--s) * -.28); box-shadow: 0 0 0 2px var(--elev); }
.cz1-avas img:first-child { margin-left: 0; }
.cz1-avas b { display: grid; place-items: center; background: var(--elev); color: var(--muted); font-size: calc(var(--s) * .38); font-weight: 800; }
.cz1-more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; height: 40px; border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--muted); border: 1px dashed var(--line-2); transition: color .3s, border-color .3s; }
.cz1-more[hidden] { display: none; }
.cz1-more:hover { color: var(--accent); border-color: rgb(var(--tint) / .5); }
.cz1-more svg { width: 15px; }
.cz1-pf { margin-top: 16px; padding: 14px 6px 2px; border-top: 1px solid var(--line); }
.cz1-pf .cz1-ph { padding: 0 0 12px; }
.cz1-pf .cz1-ph b { font: 700 14px/1 var(--font); }
.cz1-pf .cz-friends { display: block; max-height: none; overflow: visible; }
.cz1-pf-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cz1-fa { position: relative; width: 38px; height: 38px; min-width: 38px; flex: none; aspect-ratio: 1; border-radius: 50%; transition: transform .5s var(--ease-spring); }
.cz1-fa:hover { transform: translateY(-3px); }
.cz1-fa img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.cz1-fa i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 2px var(--elev); }
.cz1-fa.in-room i { background: var(--accent); } /* не .watch — этот класс у блока плеера (отступ 60px сплющивал кружок, 12.11.2026) */
.cz1-fa.more { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; }
.cz1-fa.cz-skel { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 250% 100%; animation: shimmer 1.6s linear infinite; }
.cz1-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.cz1-note b { color: var(--text); }
.cz1-note a { color: var(--accent); }
.cz1-ghost { display: grid; gap: 8px; margin-bottom: 16px; }
.cz1-ghost i { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; height: 74px; padding: 4px 10px; border-radius: 16px; border: 1px dashed var(--line-2); }
.cz1-ghost i::before { content: ""; height: 60px; width: 40px; border-radius: 9px; background: var(--surface-2); }
.cz1-ghost i::after { content: ""; height: 10px; width: 70%; border-radius: 6px; background: var(--surface-2); }
.cz1-ghost i:nth-child(2) { opacity: .6; }
.cz1-ghost i:nth-child(3) { opacity: .3; }
.cz1-empty { padding: 0 6px 4px; }
.cz1-empty b { font: 600 19px/1.25 var(--font-display); display: block; }
.cz1-empty p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.cz1-feats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 10px; margin-bottom: 70px; }
.cz1-feats { background: var(--line); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.cz1-feat { padding: 22px 22px 24px; display: flex; gap: 14px; align-items: flex-start; background: color-mix(in srgb, var(--bg) 92%, var(--text)); }
.cz1-feat .cz1-fi { flex: none; width: 42px; height: 42px; min-width: 42px; border-radius: 14px; display: grid; place-items: center; background: rgb(var(--tint) / .12); color: var(--accent); }
.cz1-feat .cz1-fi svg { width: 20px; height: 20px; }
.cz1-feat b { display: block; font-size: 15px; }
.cz1-feat span { font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1180px) { .cz1-feats { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cz1-feat { grid-column: span 2; } .cz1-feat:nth-child(n+4) { grid-column: span 3; } }
@media (max-width: 1120px) {
  .cz1-hero { min-height: 0; padding-top: 112px; }
  .cz1-in { grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: 30px; }
  .cz1-left { max-width: 820px; }
  .cz1-panel { max-width: 680px; width: 100%; }
  .cz1-left { padding-top: 30px; }
  .cz1-bd::after { background: linear-gradient(to top, var(--bg) 8%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, color-mix(in srgb, var(--bg) 50%, transparent) 80%, color-mix(in srgb, var(--bg) 75%, transparent)); }
  .cz1-mosaic { inset: -5% -20% 0 -20%; }
}
@media (max-width: 560px) {
  .cz1-left h1 { font-size: clamp(42px, 13vw, 60px); margin: 16px 0; }
  .cz1-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; }
  .cz1-acts .cz1-new { height: 54px; justify-content: space-between; }
  .cz1-tools { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: auto; border-radius: 20px; }
  .cz1-tools > * { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 4px; border-radius: 15px; font-size: 12px; white-space: normal; text-align: center; line-height: 1.2; }
  .cz1-tools > * + *::before { display: none; }
  .cz1-tools .cz-event-new { font-size: 9px; }
  .cz1-focus { padding: 10px; gap: 12px; }
  .cz1-fi > b { font-size: 15px; }
  .cz1-focus-go { display: none; }
  .cz1-panel { padding: 12px; border-radius: 24px; }
  .cz1-rm { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 8px 6px; }
  .cz1-rm-img { width: 40px; height: 60px; min-width: 40px; }
  .cz1-rm-r .cz1-avas { display: none; }
  .cz1-feats { grid-template-columns: minmax(0, 1fr); margin-bottom: 50px; border-radius: 22px; }
  .cz1-feat, .cz1-feat:nth-child(n+4) { padding: 16px; grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .cz1-col, .cz1-l, .cz1-l img { animation: none; transition: none; } }

/* Плеер 1 (Vibix) открыт на одной серии по таймингу — плашка «Показать все серии» */
.vx-ep-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 10px 8px 14px; border-radius: 16px; background: rgb(var(--tint) / .1); border: 1px solid rgb(var(--tint) / .3); font-size: 13.5px; color: var(--muted); }
.vx-ep-note > svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.vx-ep-note b { color: var(--text); }
.vx-ep-note .btn { margin-left: auto; }

/* Качество под карточкой: «2019 · драма · FullHD» (пусто — не видно) */
.card-q { font-style: normal; color: var(--accent); font-weight: 700; }
.card-q::before { content: " · "; color: var(--faint); font-weight: 400; }
.card-q:empty { display: none; }
.card-cap .card-meta { display: flex; min-width: 0; white-space: nowrap; }
.card-meta > i { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card-meta .card-q { flex: none; }
/* Качество в баннере главной */
.hero-meta .hero-q { padding: 3px 10px; border-radius: 8px; border: 1px solid rgb(var(--tint) / .45); background: rgb(var(--tint) / .12); color: var(--accent); font-weight: 800; font-size: .86em; letter-spacing: .02em; }
.hero-meta .hero-q:empty { display: none; }
.mv-q-note { font-size: .8em; color: var(--muted); font-weight: 600; }
.vx-ep-note.p1-cam { background: color-mix(in srgb, #f5b54a 12%, transparent); border-color: color-mix(in srgb, #f5b54a 40%, transparent); }
.vx-ep-note.p1-cam > svg { color: #f5b54a; }
/* Шестерёнка плеера вместо «Озвучка / HD / скорость» — поворачивается, пока меню открыто */
.pl-gear svg { transition: transform .45s var(--ease-spring); }
.player.menu-open .pl-gear svg { transform: rotate(60deg); }

/* Оценка под плеером — одной строкой (movie.js .rate-bar) */
.rate-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 22px; margin-top: 14px; padding: 10px 14px 10px 20px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(80% 160% at 100% 50%, rgb(var(--tint) / .1), transparent 60%), var(--surface); box-shadow: var(--hi); }
.rate-bar-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rate-bar-l b { font: 600 15px/1.2 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.rate-bar-l small { font-size: 12px; color: var(--faint); white-space: nowrap; }
.rate-bar .stars { justify-content: center; gap: 2px; }
.rate-bar .star { width: 38px; height: 40px; }
.rate-bar .star svg { width: 26px; height: 26px; }
.rate-bar .rate-out { display: flex; align-items: baseline; gap: 10px; min-width: 150px; justify-content: flex-end; }
.rate-bar .rate-num { font-size: 30px; }
.rate-bar .rate-word { margin: 0; font-size: 12.5px; }
@media (max-width: 900px) {
  .rate-bar { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .rate-bar .stars { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 0; }
  .rate-bar .star { flex: 1 1 0; width: auto; min-width: 0; height: 38px; }
  .rate-bar .star svg { width: min(26px, 90%); height: auto; aspect-ratio: 1; }
  .rate-bar .rate-out { min-width: 0; }
  .rate-bar .rate-num { font-size: 24px; }
}
@media (max-width: 420px) { .rate-bar-l small { display: none; } }
.rate-bar-l b, .rate-bar-l small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .rate-bar .rate-out { gap: 6px; } .rate-bar .rate-word { white-space: nowrap; } }
@media (max-width: 900px) { .rate-bar .stars[data-tier=""] ~ .rate-out { display: none; } }

/* Кто лайкнул комментарий — карточка над лайком (movie.js .c-likers) */
.c-likers { position: absolute; z-index: 1200; width: 320px; max-width: calc(100vw - 16px); padding: 6px; border-radius: 22px;
  background: radial-gradient(120% 90% at 0% 0%, rgb(var(--tint) / .16), transparent 55%), linear-gradient(180deg, rgba(30, 28, 26, .96), rgba(16, 15, 17, .97));
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: var(--tx, 50%) 100%; transition: opacity .22s var(--ease-out), transform .45s var(--ease-spring); }
.c-likers.below { transform: translateY(-8px) scale(.96); transform-origin: var(--tx, 50%) 0; }
.c-likers.open { opacity: 1; transform: none; }
.cl-tip { position: absolute; left: var(--tx, 50%); bottom: -6px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: rgb(17, 16, 18); border-right: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.c-likers.below .cl-tip { bottom: auto; top: -6px; background: rgb(36, 32, 27); border: 0; border-left: 1px solid rgba(255, 255, 255, .1); border-top: 1px solid rgba(255, 255, 255, .1); }
.cl-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.cl-stack { display: flex; flex: none; }
.cl-stack img { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2.5px rgb(28, 26, 24); position: relative; z-index: calc(10 - var(--k)); }
.cl-stack img + img { margin-left: -11px; }
.cl-ht { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cl-ht > span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.cl-ht b { color: var(--text); font-weight: 700; }
.cl-ht small { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--accent); }
.cl-ht small svg { width: 12px; height: 12px; }
.cl-list { display: flex; flex-direction: column; gap: 1px; padding: 6px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .05); max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.cl-list a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 11px; color: var(--text); opacity: 0; transform: translateY(4px); animation: cl-in .35s var(--ease-out) forwards; animation-delay: calc(60ms + var(--i) * 35ms); transition: background .2s; }
.cl-list a:hover { background: rgba(255, 255, 255, .06); }
@keyframes cl-in { to { opacity: 1; transform: none; } }
.cl-av { position: relative; width: 30px; height: 30px; flex: none; }
.cl-av img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.cl-av i { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px rgb(20, 19, 20); }
.cl-av i svg { width: 8px; height: 8px; }
.cl-n { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-me { flex: none; margin-left: -4px; padding: 1px 6px; border-radius: 99px; background: rgb(var(--tint) / .16); color: var(--accent); font: 700 10px/1.5 var(--font); font-style: normal; vertical-align: 1px; }
.cl-list .role-badge { flex: none; }
.cl-more { display: block; padding: 6px 8px 2px; font-size: 12px; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .c-likers, .cl-list a { transition: none; animation: none; opacity: 1; transform: none; } }

/* Общий чат кинозала (js/lounge.js, страница /cinema): чат + узкая колонка «Сейчас здесь» */
.lg { margin-top: clamp(24px, 3vw, 40px); scroll-margin-top: 90px; }
.lg-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; height: 460px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(60% 80% at 0% 0%, rgb(var(--tint) / .1), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgb(var(--tint) / .06), transparent 60%), var(--bg-2); box-shadow: var(--hi), var(--shadow-soft); }
.lg-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lg-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lg-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--accent-hi), var(--accent) 50%, var(--accent-2)); color: var(--accent-ink); box-shadow: 0 8px 20px -8px rgb(var(--tint) / .7); }
.lg-ic svg { width: 18px; height: 18px; }
.lg-ht { min-width: 0; flex: 1; }
.lg-h h2 { margin: 0; font: 600 17px/1.15 var(--font-display); letter-spacing: -.02em; }
.lg-h p { margin: 2px 0 0; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-n { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 99px; background: rgba(127, 216, 164, .1); color: var(--good); font-size: 12px; font-weight: 700; white-space: nowrap; flex: none; }
.lg-n[hidden] { display: none; }
.lg-n i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: vs-pulse 2s infinite; }
.lg-body { position: relative; flex: 1; min-height: 0; }
.lg-list { height: 100%; overflow-y: auto; padding: 10px 16px 6px; overscroll-behavior: contain; display: flex; flex-direction: column; scrollbar-width: thin; }
.lg-list > :first-child { margin-top: auto; }
.lg-day { display: flex; justify-content: center; margin: 10px 0 4px; }
.lg-day span { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); font-size: 11px; font-weight: 700; color: var(--faint); }
/* Пузыри */
.lg-m { position: relative; display: flex; align-items: flex-end; gap: 8px; max-width: 78%; margin-top: 2px; }
.lg-m:not(.cont) { margin-top: 10px; }
.lg-m.mine { align-self: flex-end; flex-direction: row-reverse; }
.lg-av { width: 30px; flex: none; }
.lg-av img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.lg-b { min-width: 0; padding: 7px 12px 7px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }
.lg-m:not(.mine).cont .lg-b { border-top-left-radius: 6px; }
.lg-m:not(.mine):not(.tail) .lg-b { border-bottom-left-radius: 6px; }
.lg-m.mine .lg-b { background: linear-gradient(135deg, rgb(var(--tint) / .32), rgb(var(--tint) / .2)); border-color: rgb(var(--tint) / .3); }
.lg-m.mine.cont .lg-b { border-top-right-radius: 6px; }
.lg-m.mine:not(.tail) .lg-b { border-bottom-right-radius: 6px; }
.lg-m.hid .lg-b { opacity: .55; border-style: dashed; }
.lg-m.flash .lg-b { animation: lg-flash 1.6s var(--ease-out); }
@keyframes lg-flash { 0%, 40% { box-shadow: 0 0 0 2px rgb(var(--tint) / .7); } }
.lg-mh { display: flex; align-items: center; gap: 6px; margin-bottom: 1px; }
.lg-mh b { font-size: 12.5px; font-weight: 700; color: var(--accent-hi); }
.lg-mh a:hover b { text-decoration: underline; }
.lg-mh .role-badge { transform: scale(.9); transform-origin: left center; }
.lg-b p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(244, 239, 230, .95); overflow-wrap: anywhere; white-space: pre-wrap; }
.lg-b time { float: right; margin: 6px 0 -4px 10px; font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.lg-m.mine .lg-b time { color: rgba(255, 220, 160, .65); }
.lg-q { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; margin: 2px 0 5px; padding: 4px 9px; border-radius: 9px; border-left: 2.5px solid var(--accent); background: rgba(0, 0, 0, .22); text-align: left; }
.lg-q b { font-size: 11.5px; color: var(--accent); }
.lg-q span { max-width: 100%; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-acts { display: flex; gap: 2px; align-self: center; opacity: 0; transition: opacity .15s; }
.lg-m:hover .lg-acts, .lg-m:focus-within .lg-acts { opacity: 1; }
.lg-acts:empty { display: none; }
.lg-acts button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--faint); }
.lg-acts button:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.lg-acts button[data-del]:hover { color: var(--bad); }
.lg-acts svg { width: 14px; height: 14px; }
@media (hover: none) { .lg-acts { opacity: .7; } }
.lg-new { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; box-shadow: 0 12px 26px -10px rgb(var(--tint) / .7); }
.lg-new[hidden] { display: none; }
.lg-new svg { width: 13px; height: 13px; transform: rotate(90deg); }
.lg-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; margin: auto; padding: 20px; color: var(--muted); }
.lg-empty span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .05); color: var(--faint); }
.lg-empty span svg { width: 22px; height: 22px; }
.lg-empty b { font: 600 16px var(--font-display); color: var(--text); }
.lg-empty p { margin: 0; font-size: 13px; }
.lg-skel { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.lg-skel i { display: block; width: 55%; height: 36px; border-radius: 16px; background: linear-gradient(90deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .04) 100%) 0 0 / 200% 100%; animation: lg-sh 1.4s linear infinite; }
.lg-skel i:nth-child(2) { width: 40%; align-self: flex-end; } .lg-skel i:nth-child(3) { width: 62%; }
@keyframes lg-sh { to { background-position: -200% 0; } }
/* Ввод — капсула с кнопкой внутри */
.lg-form { padding: 8px 14px 14px; }
.lg-reply { display: flex; align-items: center; gap: 8px; margin: 0 6px 6px; padding: 5px 5px 5px 10px; border-radius: 12px; border-left: 2.5px solid var(--accent); background: rgba(255, 255, 255, .04); font-size: 12px; color: var(--muted); }
.lg-reply[hidden] { display: none; }
.lg-reply > svg { width: 12px; height: 12px; color: var(--accent); flex: none; }
.lg-reply span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-reply button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.lg-reply button:hover { background: rgba(255, 255, 255, .07); }
.lg-reply button svg { width: 12px; height: 12px; }
.lg-in { display: flex; align-items: flex-end; gap: 6px; padding: 5px 5px 5px 16px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.lg-in:focus-within { border-color: rgb(var(--tint) / .5); box-shadow: 0 0 0 4px rgb(var(--tint) / .1); }
.lg-in textarea { flex: 1; min-width: 0; min-height: 36px; max-height: 120px; resize: none; padding: 8px 0; background: none; border: 0; color: var(--text); font: 500 14px/1.45 var(--font); outline: none; }
.lg-in textarea::placeholder { color: var(--faint); }
.lg-send { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: transform .3s var(--ease-spring), opacity .2s; }
.lg-send:active { transform: scale(.9); }
.lg-send:disabled { opacity: .5; }
.lg-send svg { width: 16px; height: 16px; }
.lg-guest { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 14px 14px; padding: 11px; border-radius: 18px; background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--muted); }
.lg-guest svg { width: 14px; height: 14px; color: var(--faint); }
.lg-guest a { color: var(--accent); font-weight: 700; }
/* Колонка справа */
.lg-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; padding: 16px; border-left: 1px solid var(--line); background: rgba(0, 0, 0, .14); }
.lg-sk { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.lg-sk + * { margin-bottom: 8px; }
.lg-people { display: flex; flex-direction: column; gap: 2px; }
.lg-people a { display: flex; align-items: center; gap: 9px; padding: 5px 6px; margin: 0 -6px; border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 600; }
.lg-people a:hover { background: rgba(255, 255, 255, .05); }
.lg-people a > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-people em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent); }
.lg-pa { position: relative; width: 26px; height: 26px; flex: none; }
.lg-pa img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; }
.lg-pa i { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 2px var(--bg-2); }
.lg-people small { font-size: 12px; color: var(--faint); padding: 2px 0; }
.lg-topics { display: flex; flex-wrap: wrap; gap: 5px; }
.lg-topics button { padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; transition: border-color .2s, color .2s, background .2s; }
.lg-topics button:hover { color: var(--text); border-color: rgb(var(--tint) / .5); background: rgb(var(--tint) / .08); }
.lg-tip { display: flex; gap: 7px; margin: auto 0 0; padding-top: 8px; font-size: 11.5px; line-height: 1.4; color: var(--faint); }
.lg-tip svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
@media (max-width: 900px) {
  .lg-card { grid-template-columns: minmax(0, 1fr); height: 420px; border-radius: 24px; }
  .lg-side { display: none; }
  .lg-m { max-width: 88%; }
}
@media (max-width: 600px) {
  .lg-card { height: min(420px, 68vh); }
  .lg-h { padding: 12px 14px; }
  .lg-h p { display: none; }
  .lg-list { padding: 8px 10px 4px; }
  .lg-form { padding: 6px 10px calc(10px + var(--sab)); }
}
@media (hover: none) { .lg-acts { display: none; } .lg-m.show .lg-acts { display: flex; opacity: 1; } }
@media (max-width: 600px) { .lg-mh { flex-wrap: nowrap; min-width: 0; } .lg-mh a { min-width: 0; overflow: hidden; } .lg-mh b { white-space: nowrap; } .lg-mh .role-badge { display: none; } }
.lg-spoil { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--faint); transition: color .2s, background .2s; }
.lg-spoil:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.lg-spoil svg { width: 17px; height: 17px; }

/* Комментарии: кнопка-глаз «спрятать спойлер» в углу поля (как в общем чате) */
.c-ta { position: relative; display: block; }
.c-ta textarea { display: block; width: 100%; padding-right: 50px; }
.c-spoil { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--faint); background: rgba(255, 255, 255, .04); transition: color .2s, background .2s; }
.c-spoil:hover, .c-spoil:focus-visible { color: var(--text); background: rgba(255, 255, 255, .09); }
.c-spoil svg { width: 17px; height: 17px; }

/* Кинозал → «Друзья онлайн»: у кружка фон, обводка и буква имени — пока аватарка грузится (GIF бывают по 5 МБ)
   и когда она почти чёрная (сливалась с панелью), кружок всё равно виден (12.11.2026) */
.cz1-fa:not(.more):not(.cz-skel) { background: var(--surface-2); box-shadow: 0 0 0 1.5px var(--line-2); }
.cz1-fa[data-l]::before { content: attr(data-l); position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; font: 800 14px var(--font-display); color: var(--muted); }
.cz1-fa img { position: relative; }
.cz1-fa i { z-index: 1; }

/* Кинозал на телефоне — без лишнего (17.11.2026): заголовок в одну строку, без абзаца; нет карточек «Как это работает» /
   «В фокусе» (комната и так в списке ниже), пустых заготовок и рекламного списка. Сразу: кнопки → комнаты → друзья → чат → фильмы */
@media (max-width: 700px) {
  .cz1-hero { padding-top: calc(var(--sat, 0px) + 86px); }
  .cz1-in { gap: 14px; padding-bottom: 14px; }
  .cz1-left { padding-top: 4px; }
  .cz1-left .eyebrow { font-size: 10.5px; }
  .cz1-left h1 { font-size: clamp(30px, 9.6vw, 40px); line-height: 1; margin: 10px 0 14px; white-space: nowrap; }
  .cz1-left h1 span { display: inline; }
  .cz1-lead { display: none; }
  .cz1-acts { margin-top: 0; gap: 8px; }
  .cz1-acts .cz1-new { height: 50px; }
  .cz1-tools > * { padding: 8px 4px; }
  .cz1-focus { display: none; }
  .cz1-ghost { display: none; }
  .cz1-empty { padding: 6px 6px 2px; }
  .cz1-empty b { font-size: 15px; }
  .cz1-empty p { font-size: 13px; margin-top: 3px; }
  .cz1-feats { display: none; }
  .cz-films-h p { display: none; }
  .cz-films-h .h2 { font-size: 24px; }
}
@media (max-width: 700px) {
  .cz1-left h1 { font-size: clamp(23px, 7.6vw, 34px); }
  section.container:has(> .cz1-feats) { display: none; }
  .cz1-pf .cz-empty { margin: 0; padding: 2px 6px 0; font-size: 13.5px; }
  .cz1-pf { padding-bottom: 0; }
  .cz1-panel { padding-bottom: 14px; }
}
@media (max-width: 700px) {
  .cz1-hero { min-height: 0; }
  .cz1-in { padding-bottom: 4px; }
  section.container.lg { margin-top: 14px; padding-top: 0; }
}
@media (max-width: 700px) {
  .cz1-hero { padding-bottom: 6px; }
  .cz-films { margin-top: 26px; }
}
