/* «Режиссёр» студии «Видео» (28.09.2026): templates/v2/film.html (фильм) и film_list.html («Мои фильмы»).
 * Поведение — static/js/v2/film-director.js. Цвета — токены темы v2 (--panel, --raise, --ink, --accent). */

.film__lead { max-width: 68ch; margin: -8px 0 16px; }
.film__hint { margin: -4px 0 12px; font-size: 13px; max-width: 70ch; }
.film__how { list-style: none; counter-reset: fh; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.film__how li { counter-increment: fh; position: relative; padding: 12px 12px 12px 48px; border-radius: var(--r); background: var(--panel); display: flex; flex-direction: column; gap: 2px; }
.film__how li::before { content: counter(fh); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 13px; }
.film__how b { font-size: 14px; }
.film__how span { font-size: 12px; color: var(--ink-2); }

.film__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.film__head .back { margin: 0; }
.film__name { position: relative; flex: 1 1 220px; min-width: 0; display: flex; align-items: center; gap: 6px; }
.film__name .ic { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.film__name .film__title { border-bottom: 2px dashed var(--line); }   /* видно, что название — поле */
.film__title { flex: 1 1 220px; min-width: 0; font: 700 20px/1.2 var(--f-head); color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 4px 2px; }
.film__title:focus { outline: none; border-bottom-color: var(--accent); }
.film__saved { font-size: 12px; color: var(--ink-2); }
.film__box { background: var(--panel); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.film__box > .h2 { margin: 0 0 12px; }

/* настройки */
.fset { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fset__l { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { cursor: pointer; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip span { display: block; padding: 7px 13px; border-radius: 999px; background: var(--raise); font-size: 13px; font-weight: 700; color: var(--ink-2); user-select: none; -webkit-user-select: none; }
.fchip input:checked + span { background: var(--accent); color: var(--on-accent); }
/* фишка-кнопка (не радио): киноэффекты вставки «Аватара» (01.10.2026) — выбранная с классом is-on */
button.fchip { border: 0; padding: 0; background: none; font: inherit; }
.fchip.is-on span { background: var(--accent); color: var(--on-accent); }
.fins__fx summary { cursor: pointer; margin: 4px 0; }
.fins__fx .fchips { margin-bottom: 6px; }
.fins__cur { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
/* «Каким будет образ» и «VFX-эффект» в настройках генерации (01.10.2026, владелец: «сделай красивый и компактный дизайн
   у всего»): раскрывающиеся карточки, шапка сцены (название, удалить) не нужна — сцен больше нет */
.fins__look { margin: 0 0 10px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card, transparent); }
.fins__look > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.fins__look > summary::-webkit-details-marker { display: none; }
.fins__look > summary::before { content: '▸'; font-size: 12px; color: var(--ink); transition: transform .15s; }
.fins__look[open] > summary::before { transform: rotate(90deg); }
.fins__look[open] > summary { margin-bottom: 8px; }
.fins__look .muted { font-size: 12.5px; line-height: 1.4; }
/* вкладки групп эффектов — родитель (владелец 01.10.2026: «всё слито, непонятно, где родительское меню, где дочернее»):
   вкладки с подчёркиванием, под выбранной — серая панель со списком (дочернее), эффекты — белые плашки с рамкой */
.fx__tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; border-bottom: 2px solid var(--line); }
.fx__tab { border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; font: 800 14px/1 var(--f);
  color: var(--ink-2); padding: 10px 14px 9px; border-radius: 10px 10px 0 0; cursor: pointer; }
.fx__tab.is-on { color: var(--ink); background: var(--raise); border-bottom-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .fx__tab:not(.is-on):hover { color: var(--ink); } }
.fins__vfx .fx__list { background: var(--raise); border-radius: 0 0 12px 12px; padding: 10px; margin: 0 0 12px; gap: 6px; }
.fins__vfx .fx__own small { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.fins__vfx .fx__list .fchip span { padding: 7px 12px; border-radius: 8px; font: 600 13px/1.1 var(--f); color: var(--ink);
  background: var(--bg, #fff); border: 1.5px solid var(--line); }
.fins__vfx .fx__list .fchip.is-on span { background: var(--bg, #fff); color: var(--accent); border-color: var(--accent); }
.fins__vfx .fx__list .fchip.is-on span::before { content: '✓ '; }
@media (hover: hover) and (pointer: fine) { .fins__vfx .fx__list .fchip:not(.is-on):hover span { border-color: var(--ink-2); } }
/* готовые пожелания «Как снимать» — те же белые плашки, без панели */
.fx__list .fchip span { padding: 6px 11px; font-size: 13px; color: var(--ink); background: none; border: 1.5px solid var(--line); }
.fx__list .fchip.is-on span { border-color: var(--accent); color: var(--accent); background: none; }
.fx__l { display: block; font-size: 13px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.fx__text { min-height: 72px; font-size: 15px; }
.fx__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 0; }
.fx__clear { border: 0; background: none; font: 700 13px/1 var(--f); color: var(--ink); text-decoration: underline; cursor: pointer; padding: 4px 0; white-space: nowrap; }
/* фото для эффекта — плитки 64 точки и кнопки-плитки «Загрузить» / «Мои картинки» */
.fx__refs { margin: 10px 0 0; }
.fx__phs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fx__ph { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--raise); }
.fx__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx__ph .faref__x { top: 2px; right: 2px; width: 22px; height: 22px; }
.fx__add { display: flex; gap: 6px; }
.fx__add button { width: 64px; height: 64px; border: 1.5px dashed var(--ink-2); border-radius: 10px; background: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 10.5px/1.1 var(--f); cursor: pointer; }
.fx__add button .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .fx__add button:hover { border-color: var(--accent); color: var(--accent); } }
.fins__look .favsc__top { display: none; }
.fins__look .fscene.favsc { border: 0; padding: 0; background: none; box-shadow: none; }
.fchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fsel, .finp { font: 500 16px/1.35 var(--f); color: var(--ink); background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; min-width: 0; }
textarea.finp { resize: vertical; min-height: 96px; }
.fsel { max-width: 640px; }

/* герои */
.film__cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.fhero { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: var(--raise); }
.fhero__ph { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--panel); display: grid; place-items: center; }
.fhero__ph img { width: 100%; height: 100%; object-fit: cover; }
.fhero--place .fhero__ph { aspect-ratio: 4 / 3; }   /* место — шире, чем портрет героя */
.fhero__ph .ic { width: 56px; height: 56px; color: var(--ink-2); }
.fhero__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.fhero--add { align-items: center; justify-content: center; min-height: 240px; border: 2px dashed var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.fhero--add .ic { width: 34px; height: 34px; color: var(--accent); }
.fx { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--panel); color: var(--ink-2); font-weight: 800; touch-action: manipulation; }
.fx .ic { width: 16px; height: 16px; }
.fx:disabled { opacity: .35; }
.fhero > .fx { position: absolute; top: 14px; right: 14px; background: rgba(0, 0, 0, .55); color: #fff; }

/* сцены */
.film__scenes { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fscene { padding: 12px; border-radius: 14px; background: var(--raise); }
.fscene__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fscene__n { font: 800 16px/1 var(--f-head); }
.fscene__tools { display: flex; gap: 6px; }
.fscene__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 14px; align-items: start; }
.fscene__text .fset { margin: 10px 0 0; }
.fsay { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) minmax(0, 190px); gap: 6px; }
.fsay:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); }
@media (max-width: 520px) { .fsay { grid-template-columns: 1fr; } }
.fwhos { display: flex; flex-wrap: wrap; gap: 6px; }
.fwho { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink-2); font-size: 13px; font-weight: 700; touch-action: manipulation; }
.fwho.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--ink); }
.fscene__media { display: flex; flex-direction: column; gap: 8px; }
.fmedia { width: 100%; aspect-ratio: 9 / 16; max-height: 460px; object-fit: cover; border-radius: 12px; background: #000; }
[data-fmt="16:9"] .fmedia { aspect-ratio: 16 / 9; }
[data-fmt="1:1"] .fmedia { aspect-ratio: 1; }
.fmedia--empty, .fmedia--wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px;
  background: var(--panel) center / cover no-repeat; color: var(--ink-2); font-size: 13px; }
.fmedia--wait { position: relative; color: #fff; background-color: #1d2250; }
.fmedia--wait[style]::before { content: ''; position: absolute; inset: 0; border-radius: 12px; background: rgba(10, 14, 40, .62); }
.fmedia--wait > * { position: relative; }
.fmedia--wait small { opacity: .8; }
.fmedia--empty .ic { width: 40px; height: 40px; }
.fmedia--empty { aspect-ratio: auto; min-height: 150px; }   /* пусто — не занимать экран под будущий кадр */
.fmedia__acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fok { font-size: 13px; font-weight: 800; color: #2fa86b; }

/* монтаж */
.ffinal__sum { margin: 0 0 12px; }
.fmusic { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ffinal__go { margin: 4px 0 8px; }

/* два уровня на «Моих фильмах» */
.fmodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }   /* по два в ряд (владелец 28.09.2026) */
@media (max-width: 760px) { .fmodes { grid-template-columns: 1fr; } }   /* телефон — по одной */
.fmodes .make { margin: 0; }

/* «Быстрый фильм»: примеры идей, ход автопилота */
.fquick__ex { margin-top: 10px; }
.fchip__b { padding: 7px 12px; border-radius: 12px; background: var(--raise); color: var(--ink-2); font-size: 13px; font-weight: 600; text-align: left; touch-action: manipulation; }
.fquick__opt { font: 500 14px/1 var(--f); }
.fquick__idea { margin: 0 0 12px; }
.fsteps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: fs; }
.fsteps li { counter-increment: fs; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--raise); color: var(--ink-2); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; }
.fsteps li::before { content: counter(fs); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--panel); }
.fsteps li.is-done { color: var(--ink); }
.fsteps li.is-done::before { content: '✓'; background: #2fa86b; color: #fff; }
.fsteps li.is-now { background: color-mix(in srgb, var(--accent) 16%, var(--raise)); color: var(--ink); }
.fsteps li.is-now::before { background: var(--accent); color: var(--on-accent); }
.fquick__now { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 0; }
.fquick__ready { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.fquick__ready video { width: auto; height: auto; max-width: 100%; max-height: 72vh; min-width: min(100%, 280px); border-radius: 12px; background: #000; }
/* готовый ролик — крупно (владелец 28.09.2026: «и видео побольше надо сделать»): по высоте до 72 % экрана */
.fquick__ready > div { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; }
/* пока идёт автопилот — фильм только смотреть: правки закрыты (сервер их всё равно не примет) */
.is-auto .film__box:not(.fquick) :is(input, textarea, select, button) { pointer-events: none; opacity: .55; }
.is-auto [data-add-scene] { display: none; }

@media (max-width: 760px) {
  .fscene__grid { grid-template-columns: 1fr; }
  .fmedia { max-height: 70vh; }
  .ffinal__go { width: 100%; justify-content: center; }
}

/* недоступная кнопка («Смонтировать фильм», пока нет снятых сцен) — видно, что нажать нельзя */
.film .btn:disabled { opacity: .45; pointer-events: none; }

/* метка способа съёмки: «Быстрый фильм» / «Сам по сценам» (владелец 28.09.2026: «чтобы понятно было») */
.fmode { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 11px/1.3 var(--f); font-style: normal; white-space: nowrap;
  background: var(--raise); color: var(--ink-2); }
.fmode--quick { background: color-mix(in srgb, var(--accent) 16%, var(--raise)); color: var(--ink); }
.vproj__art { position: relative; }
.vproj__art .fmode { position: absolute; left: 6px; top: 6px; background: rgba(0, 0, 0, .6); color: #fff; }
.vproj__art .fmode--quick { background: var(--accent); color: var(--on-accent); }
.vproj__li { position: relative; }
.vproj__ren { position: absolute; right: 12px; top: 12px; background: rgba(0, 0, 0, .55); color: #fff; }
.fquick__title { margin-bottom: 10px; }

/* удалить фильм: корзина на карточке — под карандашом; в шапке фильма — справа */
.vproj__del { position: absolute; right: 12px; top: 52px; background: rgba(0, 0, 0, .55); color: #fff; }
.film__del { margin-left: auto; color: #d8452f; }
.fdel__chk { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; }

/* раскадровка: листы и ролик по ней (FilmDirectorPage.drawBoard) */
.fboard { margin-bottom: 14px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, var(--raise)); display: flex; flex-direction: column; gap: 10px; }
.fboard__head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.fboard__head > div:first-child { display: flex; flex-direction: column; gap: 2px; max-width: 60ch; }
.fboard__head small { font-size: 12px; }
.fboard__wait { display: flex; align-items: center; gap: 10px; margin: 0; }
.fboard__wait .pout__spin { width: 22px; height: 22px; border-width: 3px; }
.fboard__sheets { display: flex; gap: 8px; overflow-x: auto; }
.fboard__sheets img { height: 220px; width: auto; border-radius: 10px; background: #000; }
.fboard__roll { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fboard__roll video { width: 200px; max-width: 100%; border-radius: 12px; background: #000; }
.fshot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.fshot .fset { margin: 0; }
@media (max-width: 520px) { .fshot { grid-template-columns: 1fr 1fr; } }

/* «Анимация по раскадровке»: лист раскадровки крупно */
.fboard__big { display: block; margin-bottom: 10px; }
.fboard__big img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: var(--raise); }

/* «Написать сценарий»: идея в строку и кнопка над полем замысла */
.fscript { display: flex; gap: 8px; margin-bottom: 10px; }
.fscript .finp { flex: 1; }
.fscript__spin { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: -3px; margin-right: 6px; }
@media (max-width: 520px) { .fscript { flex-direction: column; } }

/* «Я в кино»: кадр из фильма */
.fstill { display: flex; flex-direction: column; gap: 10px; }
.fstill__img { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 12px; background: #000; }

/* главная «Видео»: блок сценариев ИИ-фильма и ссылка «Мои ИИ-фильмы» */
.vfilms { margin: 0 0 18px; }
.vfilms > .h2 { margin: 0 0 12px; }
.vfilms .fmodes { margin-bottom: 10px; }
.vfilms__mine { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--panel);
  color: var(--ink); font-weight: 800; font-size: 15px; }
.vfilms__mine .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .vfilms__mine:hover { background: var(--raise); } }

.fmodes__h { margin: 6px 0 12px; }   /* заголовок «Готовые сценарии клипов» между рядами карточек */

/* «Аватар» (film_avatar.html, AvatarPage; 28.09.2026): своё видео рядом с кадром, варианты образа плитками — выбранный
   с рамкой, флажок «оставить мой голос» */
.fav { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.fav__v { margin: 0; display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; max-width: 220px; }
.fav__v video, .fav__v img { width: 100%; max-height: 380px; object-fit: contain; border-radius: 12px; background: #000; }
.fav__v figcaption { font-size: 12px; }
.favl { list-style: none; margin: 12px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.favl__b { position: relative; display: block; width: 100%; padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden;
  background: var(--raise); cursor: pointer; touch-action: manipulation; transition: border-color 160ms ease; }
.favl__b img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.favl__b i { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; font: 700 11px/1.2 var(--f); font-style: normal;
  background: rgb(0 0 0 / .58); color: #fff; }
.favl__b.is-on { border-color: var(--accent); }
.favl__b.is-on i { background: var(--accent); color: var(--on-accent); }
[data-presets] { margin-bottom: 10px; }
.fcheck { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--accent); }
/* Свои фото образа «Аватара» (владелец 28.09.2026: «добавить фотографию своего образа, который я хочу») */
.faref { margin-bottom: 12px; }
.faref .fset__l { display: block; margin-bottom: 8px; }
.faref__list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.faref__li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.faref__li img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--raise); }
.faref__x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgb(0 0 0 / .58); color: #fff; cursor: pointer; touch-action: manipulation; }
.faref__x .ic { width: 14px; height: 14px; }
.faref__use { padding: 6px 8px; border: 1px solid var(--line, rgb(0 0 0 / .15)); border-radius: 10px; background: transparent; color: var(--ink);
  font: 600 12px/1.25 var(--f); cursor: pointer; touch-action: manipulation; }
/* «Аватар-диктор»: плеер образца голоса и речи, мигающая точка записи (film_speaker.html, SpeakerPage) */
.fvoice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.fvoice audio { width: min(100%, 360px); }
.frec { width: 12px; height: 12px; border-radius: 50%; background: #d8452f; animation: frec 1s ease-in-out infinite alternate; }
@keyframes frec { from { opacity: 1; } to { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .frec { animation: none; } }
.faref__tag { position: absolute; left: 6px; top: 6px; padding: 3px 8px; border-radius: 999px; font: 700 11px/1.2 var(--f); font-style: normal;
  background: var(--accent); color: var(--on-accent); }
/* Шаг между элементами блока в сценариях-анкетах (владелец 28.09.2026: «у тебя проблема с расстояниями между
   кнопками» — кнопка «Сценарий как у блогера» упиралась в поле). Класс film--flow — на film_avatar, film_freeze,
   film_speaker, film_clip; прежние страницы фильма не задеты */
.film--flow .film__box > * + *, .film--flow .film__box > div > * + *, .film--flow .fvoicebox > * + * { margin-top: 12px; }
.film--flow .film__box > .h2 + .film__hint { margin-top: 0; }
/* ⚠️ Ряды кнопок и плашек (.fchips, .fmedia__acts) шаг сверху не получают: у них свой gap, а отступ соседям по
   ряду сдвигал их вниз — ряд «скакал» по высоте и первая кнопка выглядела выделенной (владелец 29.09.2026: «в аватаре
   тоже равнозначные… плашки скачут по высоте»; то же было у источников «Титров по речи») */
.film--flow .film__box > .fchips > *, .film--flow .film__box > .fmedia__acts > *,
.film--flow .film__box > div > .fchips > *, .film--flow .film__box > div > .fmedia__acts > * { margin-top: 0; }
.film--flow .fchips, .film--flow .fmedia__acts { align-items: center; }
.film--flow .fset { margin-bottom: 0; }
.film--flow .fscript { margin-bottom: 0; }
/* Памятка «Как это работает» у «Видеоклипа» (владелец 28.09.2026: «сделай, чтобы люди поняли, как сделать свой») */
.fhow__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 80ch; }
.fhow__list b { color: var(--ink); }
.fsound { display: flex; flex-direction: column; gap: 10px; }
.fsound select { max-width: 100%; }
.fsound__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fsound__row label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.fsound__row input[type=number] { width: 90px; }
/* Ход съёмки ролика (filmProgressHtml; владелец 28.09.2026: «нужен какой-нибудь прогресс-бар») */
.fprog { width: min(100%, 320px); height: 8px; border-radius: 999px; background: var(--raise); overflow: hidden; }
.fprog i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left center; transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1); }   /* ход — масштабом, не шириной: без пересчёта раскладки */
@media (prefers-reduced-motion: reduce) { .fprog i { transition: none; } }
.film--flow .film__cast > * { margin-top: 0; }   /* сетка фото — не стопка: шаг film--flow её не касается */
/* «Озвучка моим голосом» — список дорожек (voice.html, VoicePage) */
.vtracks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vtracks__li { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--raise); }
.vtracks__li audio { width: min(100%, 420px); }
.vtracks__li p { margin: 0; font-size: 14px; line-height: 1.4; }
.fvdef { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; }   /* «по умолчанию» у голоса */

/* Блок «Нейросеть · Качество · Звук» (FilmVideoOpts в static/js/v2/film-director.js, 29.09.2026): строки с тем же шагом,
   что остальные настройки сценария */
[data-vopts] > .fset + .fset { margin-top: 12px; }
[data-vopts] > .fset { margin-bottom: 0; }
[data-vopts] { margin-top: 12px; }

/* Прежние раскадровки (BoardFilmPage.drawSteps, 29.09.2026): миниатюры листов строкой, под каждой «Снимать по этой» */
.fboard__old { margin-top: 14px; }
.fboard__olds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fboard__olds li { display: grid; gap: 6px; }
.fboard__olds img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--raise); display: block; }

/* Совместная работа (FilmLive в film-director.js, 29.09.2026): полоса в шапке — компаньоны, «кто сейчас в проекте» */
.flive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.flive__tag { padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, #1f9d63 14%, var(--raise)); color: #16734a; font-size: 12px; font-weight: 700; }
.flive__now { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.flive__now i { width: 8px; height: 8px; border-radius: 50%; background: #1f9d63; box-shadow: 0 0 0 3px color-mix(in srgb, #1f9d63 25%, transparent); }
.flive__list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.flive__list li { display: flex; align-items: center; gap: 8px; }
.flive__list li .btn { margin-left: auto; }
/* компаньон проект не удаляет (кнопка «Удалить» — только владельцу; сервер тоже не пустит) */
.is-member [data-film-del] { display: none; }

/* «Аватар» по сценам (30.09.2026, AvatarPage): сцена-сводка, отрезок секундами, готовые заходы плиткой */
.favsc { margin-bottom: 12px; }
.favsc__th { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.favsc__t { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.favsc__t .finp { width: 88px; margin: 0; }
.favsc__range { margin: 0 0 10px; }
.favr { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.favr__li { display: flex; flex-direction: column; gap: 6px; }
.favr__li video { width: 100%; max-height: 320px; border-radius: 12px; background: #000; }

/* Миниредактор своего видео (MiniTimeline, static/js/v2/mini-timeline.js; 30.09.2026) — как лента редактора роликов */
.mtl { margin: 10px 0; background: var(--panel); border-radius: var(--r, 14px); padding: 10px; }
.mtl__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.mtl__play { min-width: 44px; }
.mtl__time { font: 700 13px/1 var(--f); font-variant-numeric: tabular-nums; color: var(--ink-2); padding: 0 4px; }
.mtl__sp { flex: 1; }
/* «Ещё ▾» на ленте — редкие действия (вставка «Аватара», 01.10.2026) */
.mtl__more { position: relative; }
.mtl__more > summary { list-style: none; cursor: pointer; }
.mtl__more > summary::-webkit-details-marker { display: none; }
.mtl__menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 5; padding: 6px; border-radius: 12px; background: var(--card, var(--raise)); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); white-space: nowrap; }
.mtl__scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x; padding-bottom: 4px; }
.mtl__in { position: relative; min-width: 100%; }
.mtl__ruler { position: relative; height: 22px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.mtl__ruler span { position: absolute; top: 2px; transform: translateX(3px); font-size: 10px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mtl__ruler span::before { content: ''; position: absolute; left: -3px; top: 12px; width: 1px; height: 8px; background: var(--ink-2); }
.mtl__track { position: relative; height: 56px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.mtl__film { position: absolute; inset: 0; display: flex; overflow: hidden; pointer-events: none; opacity: .45; border-radius: 8px; }
.mtl__film b { flex: none; height: 100%; }
.mtl__seg { position: absolute; top: 0; height: 56px; border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent); cursor: pointer; box-sizing: border-box; overflow: hidden; }
.mtl__seg.is-sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 30%, transparent); }
.mtl__seg span { position: absolute; left: 6px; bottom: 4px; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, .6); color: #fff;
  font: 700 11px/1.3 var(--f); white-space: nowrap; pointer-events: none; }
.mtl__take { position: absolute; top: 4px; bottom: 4px; width: 0; border-left: 2px dashed #fff; opacity: .8; pointer-events: none; }
.mtl__h { position: absolute; top: 0; bottom: 0; width: 14px; cursor: ew-resize; touch-action: none; }
.mtl__h--l { left: -2px; } .mtl__h--r { right: -2px; }
.mtl__seg.is-sel .mtl__h::after { content: ''; position: absolute; top: 12px; bottom: 12px; left: 5px; width: 4px; border-radius: 2px; background: var(--accent); }
.mtl__cur { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #e5484d; pointer-events: none; }

/* «Аватар»: отступы между блоками сцены (владелец 30.09.2026: «в дизайне с отступами проблема») и свойства отрезка под лентой */
.favsc.is-open > * + * { margin-top: 12px; }
.favsc .fchips { margin-bottom: 0; }
.favsc .fscript { margin-bottom: 0; }
.favsc .faref { margin-bottom: 0; }
.favsc__name { max-width: 280px; margin: 0; font-weight: 800; }
.favseg { margin: 4px 0 12px; padding: 12px; border-radius: 14px; background: var(--raise); }
.favseg > * + * { margin-top: 10px; }
.favseg__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

/* варианты образа: картинка открывается крупно, метка внизу — выбрать (30.09.2026) */
.favl__li { position: relative; }
.favl__pick { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border: 0; border-radius: 999px; font: 700 11px/1.2 var(--f);
  background: rgb(0 0 0 / .62); color: #fff; cursor: pointer; touch-action: manipulation; }
.favl__pick.is-on { background: var(--accent); color: var(--on-accent); }
.mtl__seg.is-sel { cursor: grab; }

/* Метки на ленте миниредактора — вставки «Аватара» (30.09.2026): ряд над дорожкой, флажок в своей секунде */
.mtl__marks { position: relative; height: 26px; }
.mtl__mark { position: absolute; top: 2px; transform: translateX(-11px); display: inline-flex; align-items: center; gap: 4px; height: 22px;
  padding: 0 8px 0 4px; border: 2px solid transparent; border-radius: 999px; background: #7c3aed; color: #fff; font: 700 11px/1 var(--f);
  white-space: nowrap; cursor: pointer; touch-action: none; }
.mtl__mark i { font-style: normal; width: 14px; text-align: center; }
.mtl__mark.is-sel { border-color: #fff; box-shadow: 0 0 0 2px #7c3aed; cursor: grab; }

/* цвет сцены «Аватара»: генерации на ленте — цветом своей сцены, у сцены и в выборе — такая же точка (30.09.2026) */
.mtl__seg { border-color: color-mix(in srgb, var(--seg, var(--accent)) 60%, transparent); background: color-mix(in srgb, var(--seg, var(--accent)) 22%, transparent); }
.mtl__seg.is-sel { border-color: var(--seg, var(--accent)); background: color-mix(in srgb, var(--seg, var(--accent)) 34%, transparent); }
.mtl__seg.is-sel .mtl__h::after { background: var(--seg, var(--accent)); }
.favsc__dot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: var(--sc, var(--accent)); vertical-align: -1px; flex: none; }
/* открытая сцена «Аватара» (30.09.2026, владелец: «настраиваем внешний вид раздела сцены»): шапка одной строкой с
   «Удалить сцену»; кадр из плеера слева, из чего собирается образ — справа; на узком экране — одной колонкой */
.favsc__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.favsc__top .favsc__name { flex: 1 1 200px; max-width: 420px; }
.favsc__top > small { margin-left: auto; }
.favsc__cols { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 12px 0; }
.favsc__cols .fav__v img { width: 100%; height: auto; border-radius: 14px; }
.favsc__how { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 760px) {
  .favsc__cols { grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); align-items: start; }
  .favsc__cols--eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }   /* зоны 3 и 4 — поровну */
}
/* зоны открытой сцены (владелец 30.09.2026: «все эти зоны нужно выделять, что это прямо зоны»): панель с рамкой и заголовком */
.favsc__zone { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 12px 0 0; padding: 14px; border-radius: 16px;
  background: var(--card, #fff); border: 1px solid var(--line); }
.favsc__cols .favsc__zone { margin: 0; }
.favsc__zt { font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
/* шаг 1 «Аватара»: видео и текст — зонами рядом (30.09.2026); на узком — друг под другом */
.favsrc__top .fav__v { max-width: none; }
.favsrc__top .fav__v video { max-height: 460px; }
.favsrc__top .film__hint { margin: 0; }
/* длинные подписи выбора в зоне (нейросеть с ценой) — переносятся внутри кнопки, а не вылезают за зону (30.09.2026) */
.favsc__zone .fchip, .favsc__zone .fchip span { max-width: 100%; white-space: normal; }
