/* =============================================================================
   ЯZME · ЕДИНЫЙ ДВИЖОК ЛЕНТЫ — ДИЗАЙН ПОСТОВ 2026
   Файл: feed/css/feed.css
   Один стиль для ленты пабликов, профиля и главной. Работает во всех темах
   (Янтарь / Cloud / Полночь) через токены --yz-* с запасными --legacy.
   Философия: «журнальный разворот» — минимум рамок, воздух, честная типографика,
   реакции пилюлями в линию, вырезанные силуэты, лаконичные даты.
   ============================================================================= */

/* Шрифта текст-постов больше нет: и подпись к фото, и текст без картинки
   набираются интерфейсным Inter — тем же, что имя автора и вся навигация.
   Раньше здесь стоял @import Fraunces, из-за которого в одной ленте
   соседствовали два разных набора: серив 20px у постов без картинки и
   гротеск 15.5px у постов с картинкой. Заодно ушёл внешний запрос к Google
   Fonts, блокирующий отрисовку (@import грузится последовательно, а не
   параллельно, как <link>). */

/* --- Мост токенов: берём --yz-*, если их нет — старые переменные проекта --- */
.yf-post,
.yf-reactions,
.yf-actions {
  --yf-text:      var(--yz-text, var(--text-primary, #faf9f5));
  --yf-dim:       var(--yz-dim, var(--text-secondary, #b9b4a7));
  --yf-muted:     var(--yz-muted, #8d8878);
  --yf-surface:   var(--yz-surface, var(--bg-panel, #22211F));
  --yf-surface-2: var(--yz-surface-2, #2E2C29);
  --yf-bg-deep:   var(--yz-bg-deep, #0A0908);
  --yf-border:    var(--yz-border, var(--glass-border, rgba(250,249,245,.08)));
  --yf-border-strong: var(--yz-border-strong, rgba(250,249,245,.17));
  --yf-accent:    var(--yz-accent, var(--accent-primary, #d97757));
  --yf-accent-hi: var(--yz-accent-hi, #e88a68);
  --yf-accent-soft: var(--yz-accent-soft, rgba(217,119,87,.14));
  --yf-accent-line: var(--yz-accent-line, rgba(217,119,87,.42));
  --yf-danger:    var(--yz-danger, #e5484d);
  --yf-success:   var(--yz-success, #58a76b);
  --yf-info:      var(--yz-info, #4c8dff);
  --yf-r-pill: 999px;
  --yf-ease: cubic-bezier(.22,1,.36,1);
  --yf-spring: cubic-bezier(.34,1.45,.5,1);
  --yf-font-ui: var(--yz-font-ui, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  --yf-font-display: var(--yz-font-display, 'Unbounded', 'Inter', sans-serif);
  --yf-font-editorial: 'Playfair Display', 'Georgia', serif;
}

/* =========================== КАРТОЧКА ПОСТА =============================== */
.yf-post {
  position: relative;
  padding: 22px 16px 18px;
  border-bottom: 1px solid var(--yf-border);
  background: transparent;
  margin: 0;
  font-family: var(--yf-font-ui);
  transition: background .3s var(--yf-ease);
  -webkit-tap-highlight-color: transparent;
}
.yf-post:first-child { padding-top: 8px; }
@media (min-width: 640px) { .yf-post { padding-left: 4px; padding-right: 4px; } }
/* мягкая подсветка карточки при наведении на десктопе (не мешает медиа-кликам) */
@media (hover: hover) and (min-width: 769px) {
  .yf-post:hover { background: color-mix(in srgb, var(--yf-surface) 22%, transparent); }
}

/* Метка репоста */
.yf-repost {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--yf-success);
  margin-bottom: 10px; padding-left: 2px;
}
.yf-repost svg { width: 14px; height: 14px; stroke-width: 2; }

/* ------------------------------- Шапка ---------------------------------- */
.yf-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.yf-ava {
  width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden;
  box-shadow: 0 0 0 1px var(--yf-border-strong); display: grid; place-items: center;
  background: var(--yf-surface-2); color: var(--yf-accent); font-size: 20px;
  text-decoration: none; cursor: pointer;
}
.yf-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yf-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.yf-name {
  font-family: var(--yf-font-ui); font-weight: 800; font-size: 15.5px;
  letter-spacing: -.01em; color: var(--yf-text); line-height: 1.25;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
}
/* Первый элемент — само имя: либо ссылка на автора, либо <span>, когда
   ссылки нет. Обрезаем длинное имя многоточием и снимаем со ссылки
   подчёркивание с синевой, чтобы она выглядела ровно как раньше. */
.yf-name > a:first-child,
.yf-name > span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
  color: inherit; text-decoration: none; font: inherit; letter-spacing: inherit;
}
.yf-name:hover > a:first-child,
.yf-name:hover > span:first-child { color: var(--yf-accent-hi); }

/* Дата: лаконично, но выразительно */
.yf-date {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px;
  margin-top: 3px; font-size: 12px; color: var(--yf-dim); font-weight: 600;
}
.yf-date .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--yf-muted); flex: none; }
.yf-date .hot { color: var(--yf-accent); font-weight: 700; }

.yf-menu { position: relative; flex: none; }
.yf-menu > button {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: transparent; border: none; color: var(--yf-muted); cursor: pointer;
  font-size: 17px; transition: .2s var(--yf-ease);
}
.yf-menu > button:hover { background: var(--yf-surface); color: var(--yf-text); }

/* Рубрика-эйбрау (журнальный приём) */
.yf-kicker {
  font-family: var(--yf-font-ui); font-weight: 700; font-size: 10.5px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--yf-accent);
  margin: 0 0 9px; display: flex; align-items: center; gap: 8px;
}
.yf-kicker::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--yf-accent-line), transparent); }

/* -------------------------------- Тело ----------------------------------
   ЕДИНЫЙ НАБОР ТЕКСТА. Пост с картинкой (.yf-text) и пост без картинки
   (.yf-tp-text) — это один и тот же текст записи, и набираться он должен
   одинаково. Раньше они расходились и по шрифту, и по кеглю, из-за чего
   лента паблика (почти сплошь записи с фото) читалась как другой сайт. */
.yf-body { }
.yf-text, .yf-tp-text {
  font-family: var(--yf-font-ui);
  font-size: clamp(16px, 4.2vw, 17px); line-height: 1.6; font-weight: 400;
  color: var(--yf-text);
  white-space: pre-wrap; word-wrap: break-word; letter-spacing: -.005em;
}
.yf-text .hl {
  background: linear-gradient(120deg, var(--yf-accent-soft), transparent 92%);
  box-shadow: inset 0 -.5em 0 var(--yf-accent-soft);
  padding: 0 2px; border-radius: 3px;
}

/* ===================== ПРЕМИУМ-ПОДЧЁРКИВАНИЕ (в постах) ==================== */
/* Рендерится ГЛОБАЛЬНО на стене (не только в редакторе). Цвет берётся из
   инлайнового --brush-color; максимум 10 слов ограничивает редактор.
   Двойной слой: чёткая линия + мягкое «сияние» над ней. */
.yf-text .brush-stroke,
.yf-quote .yf-q .brush-stroke,
.yf-text u,
.yf-quote .yf-q u {
  --bc: var(--brush-color, var(--yf-accent));
  color: inherit; font-weight: 700; text-decoration: none;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image:
    linear-gradient(90deg, var(--bc), var(--bc)),
    linear-gradient(90deg,
      color-mix(in srgb, var(--bc) 26%, transparent),
      color-mix(in srgb, var(--bc) 26%, transparent));
  background-repeat: no-repeat, no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 100% 2px, 100% .52em;
  padding: 0 .06em .04em;
  border-radius: 2px;
  transition: background-size .25s var(--yf-ease), filter .25s var(--yf-ease);
}
@media (hover: hover) {
  .yf-text .brush-stroke:hover,
  .yf-text u:hover { background-size: 100% 3px, 100% .62em; filter: saturate(1.15); }
}
/* Старый маркер-фон (если где-то остался) внутри поста не мешает подчёркиванию */
.yf-text .brush-stroke { box-shadow: none; text-shadow: none; }
/* Буквица для длинных «журнальных» постов (добавляется классом .yf-lead) */
.yf-text.yf-lead::first-letter {
  font-family: var(--yf-font-editorial); font-weight: 700; font-size: 3.1em;
  float: left; line-height: .82; margin: 6px 12px 0 0; color: var(--yf-accent);
}
.yf-body .read-more-modern-btn { color: var(--yf-accent); font-weight: 700; }

/* Медиа: острые углы всегда; на телефоне — во всю ширину экрана (от края до края) */
.yf-media { margin: 14px 0 4px; }
.yf-media > * + * { margin-top: 12px; }
/* Картинка идёт первой в теле поста — вертикальные отступы те же, что у
   обложки (.yzl-cov), иначе фотография прижималась бы к шапке, а обложка
   отступала бы: сверху лента снова расслаивалась бы на два вида поста.
   ТОЛЬКО верх и низ: боковые margin у медиа отрицательные — ими картинка
   выводится за поля поста, до краёв экрана. Сокращённая запись margin
   обнулила бы их, и фотография съехала бы внутрь рамки. */
.yf-body > .yf-media:first-child { margin-top: 6px; margin-bottom: 12px; }

/* Фото-карусель и видео — без скругления, авторитетно перекрываем post_carousel.css */
.yf-post .post-carousel-container,
.yf-post .yf-video-wrap {
  border-radius: 0; overflow: hidden;
  margin-left: 0; margin-right: 0; width: 100%;
}
/* Премиальная «сцена» видео на стене (сам плеер — этап «Плееры») */
/* Фолбэк для Safari < 15, где нет aspect-ratio: без него у обёртки нулевая
   высота, а внутри height:100% — кадр схлопывался в ноль. */
@supports not (aspect-ratio: 16 / 9) {
  .yf-post .yf-video-wrap { position: relative; height: 0; padding-top: 56.25%; }
  .yf-post .yf-video-wrap .feed-auto-video { position: absolute; inset: 0; }
}
.yf-post .yf-video-wrap {
  background: #000; display: flex; align-items: center; justify-content: center;
  max-height: 92vh;
  /* пропорции кадра ставит feed-player.js по самому видео (aspect-ratio),
     до загрузки метаданных держим 16:9, чтобы лента не прыгала */
  aspect-ratio: 16 / 9;
}
.yf-post .yf-video-wrap .feed-auto-video {
  width: 100%; height: 100%; max-height: 92vh; display: block; object-fit: contain;
  border-radius: 0;
}
/* Вертикаль длиннее 4:5 (и горизонталь шире 16:9) заполняет кадр без полей —
   раньше max-height:82vh + contain давали чёрные поля по бокам, и видео
   визуально было не на всю ширину экрана. */
.yf-post .yf-video-wrap.yfp--cover .feed-auto-video { object-fit: cover; }
/* Голос/музыка остаются аккуратными карточками в колонке */
.yf-post .modern-post-audio { border-radius: 18px; }

/* Телефон: медиа от края до края — пуленепробиваемо через 100vw по центру
   (без риска горизонтального переполнения страницы) */
@media (max-width: 640px) {
  .yf-post .post-carousel-container,
  .yf-post .yf-video-wrap {
    width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%);
  }
  /* формат «Рамка» — исключение: остаётся в колонке, скруглённый */
  .yf-post .yf-video-wrap--frame { width: 100%; max-width: 100%; margin-left: 0; transform: none; }
}
/* Формат «Рамка»: скруглённое видео в колонке (маска при показе) */
.yf-post .yf-video-wrap--frame,
.yf-post .yf-video-wrap--frame .feed-auto-video { border-radius: 22px; }
.yf-post .yf-video-wrap--frame { overflow: hidden; }

/* Текстовый пост без медиа (класс .yf-quote добавляет движок).
   Без гигантской кавычки — вместо неё тонкая акцентная планка и чистая типографика. */
/* Текстовый пост без медиа: воздух, крупная журнальная типографика, без «коробки» */
.yf-quote {
  margin: 12px 0 8px; padding: 6px 2px 2px; background: none; border: none;
  position: relative; overflow: visible;
}
.yf-quote::before { display: none; }
.yf-quote .yf-q {
  font-family: var(--yf-font-editorial); font-weight: 600;
  font-size: clamp(21px, 6.2vw, 27px); line-height: 1.5; font-style: italic;
  color: var(--yf-text); letter-spacing: .003em; padding: 0;
}
.yf-quote .yf-attr {
  margin: 18px 0 0; font-weight: 700; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--yf-accent);
  display: inline-flex; align-items: center; gap: 9px;
}
.yf-quote .yf-attr::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--yf-accent-line); }

/* ===================== РЕАКЦИИ (Telegram-стиль) ========================== */
.yf-reactions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 15px 0 2px; min-height: 2px;
}
.yf-reactions:empty { display: none; }
.yf-rx {
  display: inline-flex; align-items: center; gap: 7px; height: 34px;
  padding: 0 12px 0 10px; border-radius: var(--yf-r-pill);
  background: var(--yf-surface); border: 1px solid var(--yf-border);
  cursor: pointer; user-select: none; font-variant-numeric: tabular-nums;
  transition: transform .18s var(--yf-spring), background .2s, border-color .2s;
}
.yf-rx:hover { transform: translateY(-2px); background: var(--yf-surface-2); }
.yf-rx:active { transform: translateY(0) scale(.96); }
.yf-rx .emo { font-size: 16px; line-height: 1; }
.yf-rx .n { font-size: 13.5px; font-weight: 800; color: var(--yf-dim); }
.yf-rx.on { background: var(--yf-accent-soft); border-color: var(--yf-accent-line); }
.yf-rx.on .n { color: var(--yf-accent-hi); }
/* Реакция из набора по умолчанию с нулём тапов — компактная, приглушённая, но кликабельная */
.yf-rx--empty {
  padding: 0 11px; background: color-mix(in srgb, var(--yf-surface) 55%, transparent);
  border-style: dashed; opacity: .82;
}
.yf-rx--empty:hover { opacity: 1; }
.yf-rx--empty .emo { filter: saturate(.85); transition: filter .2s var(--yf-ease); }
.yf-rx--empty:hover .emo { filter: saturate(1); }
/* лёгкий «поп» при постановке реакции */
@keyframes yfRxPop { 0%{transform:scale(.6)} 60%{transform:scale(1.25)} 100%{transform:scale(1)} }
.yf-rx.just-added .emo { animation: yfRxPop .35s var(--yf-spring); }
/* мультитап: пружинка на нажатой пилюле */
.yf-rx:active .emo { animation: yfRxPop .3s var(--yf-spring); }

.yf-rx-add {
  width: 34px; height: 34px; border-radius: var(--yf-r-pill); display: grid; place-items: center;
  background: var(--yf-surface); border: 1px dashed var(--yf-border-strong);
  color: var(--yf-muted); cursor: pointer; transition: .2s var(--yf-ease); font-size: 15px; flex: none;
}
.yf-rx-add:hover { color: var(--yf-accent); border-color: var(--yf-accent-line); background: var(--yf-accent-soft); }

/* Вырезанные силуэты реагировавших */
.yf-silos-wrap { display: inline-flex; align-items: center; gap: 9px; margin-left: 2px; }
.yf-silos { display: flex; }
.yf-silo {
  width: 26px; height: 26px; border-radius: 50%; margin-left: -9px; flex: none;
  background: var(--yf-surface-2) center/cover no-repeat;
  -webkit-mask: radial-gradient(circle 15px at 33px 50%, transparent 98%, #000 100%);
          mask: radial-gradient(circle 15px at 33px 50%, transparent 98%, #000 100%);
}
.yf-silo:first-child { margin-left: 0; }
.yf-silo:last-child { -webkit-mask: none; mask: none; }
.yf-silo-more { font-size: 12.5px; color: var(--yf-muted); font-weight: 600; }
.yf-silo-more b { color: var(--yf-dim); font-weight: 800; }

/* Плавающий выбор эмодзи (пикер) */
.yf-picker {
  position: absolute; z-index: 2147483000; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px;
  width: max-content; max-width: min(320px, 92vw); justify-content: center;
  background: var(--yz-glass-strong, rgba(10,9,8,.92)); backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--yf-border-strong); border-radius: 22px;
  box-shadow: var(--yz-shadow-lg, 0 24px 60px -18px rgba(0,0,0,.65));
  transform: translateY(8px) scale(.9); opacity: 0; pointer-events: none;
  transition: transform .22s var(--yf-spring), opacity .18s var(--yf-ease);
}
.yf-picker.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.yf-picker button {
  width: 42px; height: 42px; border: none; background: transparent; border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer; transition: transform .15s var(--yf-spring);
  display: grid; place-items: center;
}
.yf-picker button:hover { transform: scale(1.35) translateY(-2px); background: var(--yf-accent-soft); }

/* ============================== ДЕЙСТВИЯ ================================= */
.yf-actions { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.yf-act {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: var(--yf-r-pill); background: transparent; border: none;
  color: var(--yf-dim); font-family: var(--yf-font-ui); font-weight: 700; font-size: 13.5px;
  cursor: pointer; transition: .2s var(--yf-ease); font-variant-numeric: tabular-nums;
}
.yf-act svg { width: 19px; height: 19px; stroke-width: 2; fill: none; stroke: currentColor; flex: none; }
.yf-act:hover { background: var(--yf-surface); color: var(--yf-text); }
.yf-act .yf-lbl { font-weight: 700; }
.yf-comment:hover { color: var(--yf-info); }
.yf-repost:hover { color: var(--yf-success); }
.yf-repost.reposted { color: var(--yf-success); }
.yf-repost.reposted svg { stroke: var(--yf-success); }
.yf-share { margin-left: auto; }
.yf-share:hover { color: var(--yf-accent-hi); }
@media (max-width: 520px) { .yf-act .yf-lbl { display: none; } .yf-act { padding: 0 12px; } }

/* Выпадающее меню поста (совместимость со старым .post-dropdown-menu) */
.yf-post .post-dropdown-menu {
  background: var(--yf-surface); border: 1px solid var(--yf-border); border-radius: 16px;
  padding: 6px; box-shadow: var(--yz-shadow-md, 0 15px 35px rgba(0,0,0,.35)); min-width: 180px;
}

/* ===================== Лента-обёртка и состояния ========================= */
#feed-wrapper .yf-empty, #feed-wrapper .yf-loading {
  text-align: center; padding: 44px 20px; color: var(--yf-dim);
}
#feed-wrapper .yf-empty i { font-size: 40px; opacity: .3; margin-bottom: 14px; display: block; }
.yf-skeleton { padding: 22px 16px; }
.yf-skeleton .sk {
  background: linear-gradient(90deg, var(--yf-surface) 25%, var(--yf-surface-2) 37%, var(--yf-surface) 63%);
  background-size: 400% 100%; animation: yfShimmer 1.4s ease infinite; border-radius: 10px;
}
@keyframes yfShimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

/* ===================== КОММЕНТАРИИ (единый стиль) ======================= */
/* Раньше жили инлайном в index.php — теперь одинаково на всех страницах.   */
.comments-section {
  --yf-text: var(--yz-text, var(--text-primary, #faf9f5));
  --yf-dim: var(--yz-dim, var(--text-secondary, #b9b4a7));
  --yf-surface: var(--yz-surface, var(--bg-panel, #22211F));
  --yf-border: var(--yz-border, var(--glass-border, rgba(250,249,245,.08)));
  --yf-accent: var(--yz-accent, var(--accent-primary, #d97757));
  border-top: 1px solid var(--yf-border); display: flex; flex-direction: column;
  flex-grow: 1; background: var(--yz-bg, var(--bg-main, transparent));
}
.comments-header { padding: 20px 20px 5px; font-family: var(--yz-font-display,'Unbounded',sans-serif); font-weight: 700; font-size: 16px; color: var(--yf-text); display: flex; align-items: center; gap: 8px; }
.comments-list { padding: 10px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.comment-thread-node { display: flex; flex-direction: column; }
.comment-children-wrap { margin-top: 14px; margin-left: 30px; padding-left: 14px; border-left: 2px solid var(--yf-border); display: flex; flex-direction: column; gap: 14px; }
.comment-item { display: flex; gap: 12px; animation: yfFadeIn .3s ease; }
@keyframes yfFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--yf-border); flex-shrink: 0; background: var(--yf-surface); }
.comment-item.reply .comment-avatar { width: 28px; height: 28px; }
.comment-body-wrapper { flex-grow: 1; min-width: 0; }
.comment-bubble { background: var(--yf-surface); padding: 10px 14px; border-radius: 16px; border-top-left-radius: 5px; border: 1px solid var(--yf-border); display: inline-block; max-width: 100%; box-sizing: border-box; }
.comment-author { font-weight: 700; font-size: 13px; color: var(--yf-text); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.comment-time { font-size: 11px; color: var(--yf-dim); font-weight: 500; }
.comment-text { font-size: 14px; color: var(--yf-text); line-height: 1.45; word-wrap: break-word; }
.comment-actions { display: flex; gap: 16px; margin-top: 6px; margin-left: 4px; }
.comment-btn { background: none; border: none; color: var(--yf-dim); font-size: 12px; font-weight: 600; cursor: pointer; transition: .2s; padding: 0; display: flex; align-items: center; gap: 5px; }
.comment-btn:hover { color: var(--yf-text); }
.comment-btn.liked { color: var(--yz-accent, var(--interaction-accent, #d97757)); }

/* ---- блок ввода комментария (общий для всех страниц) ---- */
.comment-input-area {
  position: absolute; bottom: env(safe-area-inset-bottom, 20px); left: 50%;
  transform: translateX(-50%); width: 100%; max-width: 600px; padding: 0 15px;
  background: transparent; display: flex; flex-direction: column; z-index: 10;
  pointer-events: none; box-sizing: border-box;
}
.comment-input-area > * { pointer-events: auto; }
.floating-counter {
  background: var(--yz-glass, rgba(10,9,8,.72)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); /* [cloud-fix 2026-08-19] тёмная плашка под тёмным текстом в cloud */
  padding: 6px 14px; border-radius: 20px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .5px; font-weight: 700; align-self: center; margin-bottom: 12px;
  color: var(--yf-text); border: 1px solid var(--yf-border);
  box-shadow: 0 4px 15px rgba(0,0,0,.2); transition: all .3s ease;
}
.comment-input-row {
  background: var(--yz-glass-strong, rgba(34,33,31,.88)); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); /* [cloud-fix 2026-08-19] */
  border: 1px solid var(--yf-border); border-radius: 26px; padding: 6px;
  display: flex; align-items: flex-end; box-shadow: 0 15px 35px rgba(0,0,0,.4);
  width: 100%; box-sizing: border-box;
}
.comment-input-wrapper {
  flex-grow: 1; display: flex; flex-direction: column; padding: 8px 12px;
  background: transparent; border: none;
}
.reply-badge {
  font-size: 11px; background: rgba(217,119,87,.12); color: var(--yf-accent);
  padding: 2px 6px; border-radius: 6px; margin-bottom: 6px; display: inline-flex;
  align-items: center; gap: 4px; font-weight: 600;
}
.reply-context {
  display: none; justify-content: space-between; align-items: center; margin-bottom: 6px;
  padding-bottom: 6px; border-bottom: 1px solid var(--yf-border);
  font-size: 12px; font-weight: 600; color: var(--yf-accent);
}
.reply-context.active { display: flex; }
.reply-close { cursor: pointer; color: var(--yf-dim); transition: .2s; }
.reply-close:hover { color: var(--yz-danger, #e5484d); }
.comment-textarea {
  width: 100%; background: transparent; border: none; color: var(--yf-text);
  font-family: var(--yz-font-ui, 'Inter', sans-serif); font-size: 15px; resize: none;
  outline: none; max-height: 100px; line-height: 1.4; padding: 0; scrollbar-width: none;
}
.comment-textarea::-webkit-scrollbar { display: none; }
.comment-textarea::placeholder { color: var(--yf-dim); font-weight: 500; }
.comment-submit-btn {
  background: var(--yf-accent); color: #fff; border: none; border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .2s; flex-shrink: 0; margin-left: 6px; margin-bottom: 2px;
}
.comment-submit-btn:hover { transform: scale(1.08); filter: brightness(1.08); }
.comment-submit-btn:active { transform: scale(.95); }
.comment-submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- модалка просмотра поста (общая) ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2147483640; display: flex;
  align-items: center; justify-content: center; background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--yf-ease, ease);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative; width: 100%; max-width: 640px; max-height: 90vh;
  background: var(--yz-bg, var(--bg-main, #0F0E0D)); border: 1px solid var(--yf-border);
  border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.pc-close-btn {
  position: absolute; top: 30px; right: 30px; width: 50px; height: 50px;
  border-radius: 50%; background: var(--yz-glass, rgba(255,255,255,.1)); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border: 1px solid var(--yz-border-strong, rgba(255,255,255,.1));
  color: var(--yz-text, #fff); font-size: 24px; cursor: pointer; z-index: 2147483660; /* [cloud-fix 2026-08-19] */
  display: flex; align-items: center; justify-content: center;
  transition: all .3s cubic-bezier(.175,.885,.32,1.275);
}
.pc-close-btn:hover { background: var(--yz-surface-2, rgba(255,255,255,.2)); transform: scale(1.1) rotate(90deg); }

/* ---- редактор поста (общий) ---- */
.editor-card {
  padding: 24px; display: flex; flex-direction: column;
}
.editor-actions {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--yf-border); padding-top: 15px; margin-top: auto;
}
.editor-tools { display: flex; gap: 8px; }
.attach-btn {
  background: transparent; border: none; color: var(--yf-dim); font-size: 20px;
  cursor: pointer; transition: .2s; display: flex; align-items: center;
  justify-content: center; width: 40px; height: 40px; border-radius: 50%;
}
.attach-btn:hover { color: var(--yf-accent); background: var(--yf-surface); }

/* ---- brush-stroke (фирменный маркер) ---- */
.brush-stroke {
  background-color: var(--brush-color, #d97757);
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.05) 75%, transparent 75%, transparent),
    linear-gradient(90deg, rgba(0,0,0,.03) 0%, transparent 20%, transparent 80%, rgba(0,0,0,.03) 100%);
  background-size: 6px 6px, 100% 100%; color: #fff; padding: 3px 8px;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  font-weight: 700; display: inline; text-shadow: 0 1px 2px rgba(0,0,0,.15);
  box-shadow: inset 0 0 4px rgba(0,0,0,.1); transition: background-color .3s ease;
}
.color-swatch {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: .3s cubic-bezier(.175,.885,.32,1.275);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active {
  border-color: var(--yf-text); transform: scale(1.2);
  box-shadow: 0 5px 15px rgba(0,0,0,.3);
}

/* ---- превью музыки в редакторе ---- */
.post-music-preview-item {
  display: flex; align-items: center; gap: 12px; background: var(--yf-surface);
  border: 1px solid var(--yf-border); padding: 8px 12px; border-radius: 16px;
  position: relative;
}
.post-music-preview-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.post-music-preview-info { flex: 1; overflow: hidden; }
.post-music-preview-title {
  font-size: 14px; font-weight: 700; color: var(--yf-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-music-preview-artist {
  font-size: 12px; color: var(--yf-dim); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.post-music-preview-remove {
  background: rgba(229,72,77,.12); color: var(--yz-danger, #e5484d); border: none;
  border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: .2s;
}
.post-music-preview-remove:hover { background: var(--yz-danger, #e5484d); color: #fff; }

/* ---- мобильная адаптация общих компонентов ---- */
@media (max-width: 768px) {
  .pc-close-btn { display: none; }
  .modal-card { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
    border-radius: 0; border: none; margin: 0; }
  .editor-card { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
    border-radius: 0; border: none; margin: 0; padding: calc(env(safe-area-inset-top, 10px) + 15px) 12px calc(env(safe-area-inset-bottom, 10px) + 15px) 12px; }
  .comments-section { border-radius: 0; }
  .comment-input-area { border-radius: 0; }
  .comment-textarea { font-size: 15px; }
  .modal-media-wrapper { padding: 0; border-radius: 0; margin-bottom: 15px; }
  .modal-media-wrapper img, .modal-media-wrapper video, .modal-media-wrapper .post-media-grid { border-radius: 0; }
  .modal-header-wrapper { padding: calc(env(safe-area-inset-top, 15px) + 20px) 20px 10px; }
}

/* =============================================================================
   ПРЕМИУМ-ПЛЕЕР (feed-player.js) — видео + аудио
   Стеклянные автоскрывающиеся контролы, скраббер, waveform-дорожка, фуллскрин.
============================================================================= */
.yfp { --yfp-accent: var(--yf-accent, #d97757); --yfp-glass: rgba(10,9,8,.5); }

/* ------------------------------- ВИДЕО --------------------------------- */
.yfp-video {
  position: relative; background: #000; overflow: hidden;
  -webkit-user-select: none; user-select: none; touch-action: pan-y;
  /* долгий тап не должен вызывать системное «Сохранить видео» */
  -webkit-touch-callout: none;
}
.yfp-video .feed-auto-video {
  -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; pointer-events: none;
}
/* контролы кликабельны, а сам кадр — нет: тап ловит обёртка, поэтому
   нативное меню видео не всплывает даже на iOS */
.yfp-video .yfp-bar, .yfp-video .yfp-big, .yfp-video .yfp-seek { pointer-events: auto; }
.yfp-video .yfp-stage {
  position: relative; width: 100%; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.yfp-video .yfp-stage { height: 100%; }
.yfp-video .feed-auto-video {
  width: 100%; height: 100%; max-height: 92vh; display: block; object-fit: contain;
  transform-origin: center center; will-change: transform; background: #000;
}
.yfp-video.yfp--cover .feed-auto-video { object-fit: cover; }
/* центральная кнопка play */
.yfp-big {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 74px; height: 74px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--yfp-glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.14);
  color: #fff; display: grid; place-items: center; transition: opacity .25s, transform .25s var(--yf-spring, cubic-bezier(.34,1.45,.5,1));
  z-index: 4;
}
.yfp-big svg { width: 32px; height: 32px; margin-left: 3px; }
.yfp-big:hover { transform: translate(-50%,-50%) scale(1.06); }
.yfp-video.yfp--playing .yfp-big { opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(.7); }

/* Кнопка «Включить звук»: появляется, если браузер запустил ролик без звука.
   Автозапуск со звуком запрещён политиками, поэтому нужен явный жест. */
.yfp-unmute {
  position: absolute; top: 12px; right: 12px; z-index: 6;
  display: none; align-items: center; gap: 8px;
  padding: 9px 14px 9px 11px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--yf-accent, #d97757); color: #fff;
  font: 800 12px var(--yf-font-ui, sans-serif); letter-spacing: .01em;
  box-shadow: 0 8px 24px -8px rgba(217,119,87,.8);
  transition: transform .2s var(--yf-spring, ease), opacity .2s;
}
.yfp-video.yfp--needsound .yfp-unmute { display: inline-flex; }
.yfp-unmute svg { width: 17px; height: 17px; }
.yfp-unmute:active { transform: scale(.93); }
@media (max-width: 400px) { .yfp-unmute span { display: none; } .yfp-unmute { padding: 10px; } }

/* индикатор буферизации */
.yfp-load { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 3; display: none; }
.yfp-video.yfp--load .yfp-load { display: block; }
.yfp-video.yfp--load.yfp--playing .yfp-big { opacity: 0; }
.yfp-load span { display: block; width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: yfpSpin .8s linear infinite; }
@keyframes yfpSpin { to { transform: rotate(360deg); } }

/* нижняя панель контролов */
.yfp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px; padding: 22px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.55) 55%, rgba(0,0,0,.72));
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--yf-ease, ease), transform .25s;
  pointer-events: none;
}
.yfp-video.yfp--ui .yfp-bar { opacity: 1; transform: none; pointer-events: auto; }
.yfp-bar button { background: none; border: none; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; flex: none; }
.yfp-bar .yfp-play { width: 30px; height: 30px; }
.yfp-bar .yfp-play svg { width: 26px; height: 26px; }
.yfp-bar .yfp-mute svg, .yfp-bar .yfp-fs svg { width: 21px; height: 21px; }
.yfp-cur, .yfp-dur { color: #fff; font: 700 12px/1 var(--yf-font-ui, sans-serif); font-variant-numeric: tabular-nums; opacity: .95; flex: none; }
.yfp-seek { position: relative; flex: 1; height: 26px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.yfp-seek::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.26); }
.yfp-buf { position: absolute; left: 0; height: 4px; width: 0; border-radius: 4px; background: rgba(255,255,255,.4); }
.yfp-prog { position: absolute; left: 0; height: 4px; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--yfp-accent), var(--yf-accent-hi, #e88a68)); }
.yfp-prog .yfp-thumb {
  position: absolute; right: -7px; top: 50%; transform: translateY(-50%) scale(0); width: 14px; height: 14px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); transition: transform .18s var(--yf-spring, ease);
}
.yfp-video.yfp--ui .yfp-prog .yfp-thumb, .yfp-video.yfp--seeking .yfp-prog .yfp-thumb { transform: translateY(-50%) scale(1); }

/* полноэкранный оверлей + поворот в альбомную */
.yfp-fs-overlay { position: fixed; inset: 0; background: #000; z-index: 2147483000; display: flex; align-items: center; justify-content: center; }
.yfp-video.yfp--fs { position: relative; width: 100vw; height: 100vh; max-height: 100vh; }
.yfp-video.yfp--fs .yfp-stage { width: 100%; height: 100%; }
.yfp-video.yfp--fs { aspect-ratio: auto !important; }
.yfp-video.yfp--fs .feed-auto-video { max-height: 100vh; height: 100%; object-fit: contain; }
.yfp-video.yfp--fs.yfp--rot {
  width: 100vh; height: 100vw;
  transform: translate(-50%,-50%) rotate(90deg); position: absolute; top: 50%; left: 50%;
}
.yfp-fs-exit {
  position: fixed; top: calc(env(safe-area-inset-top,10px) + 10px); right: 14px; z-index: 2147483001;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; color: #fff;
  background: rgba(10,9,8,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.yfp-fs-exit svg { width: 22px; height: 22px; }

/* ------------------------------- АУДИО --------------------------------- */
.yfp-audio {
  display: flex; align-items: center; gap: 13px; box-sizing: border-box;
  background: var(--yf-surface); border: 1px solid var(--yf-border); border-radius: 18px;
  padding: 12px 15px; -webkit-user-select: none; user-select: none;
  max-width: 100%; overflow: hidden;
}
.yfp-audio--voice { background: transparent; border: none; padding: 6px 2px; border-radius: 0; }
.yfp-aplay {
  flex: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; border: none;
  background: linear-gradient(140deg, var(--yfp-accent), var(--yf-accent-hi, #e88a68)); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px -8px var(--yfp-accent);
  transition: transform .16s var(--yf-spring, ease);
}
.yfp-audio--voice .yfp-aplay { width: 40px; height: 40px; background: var(--yf-accent-soft, rgba(217,119,87,.14)); color: var(--yfp-accent); box-shadow: none; }
.yfp-aplay:active { transform: scale(.92); }
.yfp-aplay svg { width: 20px; height: 20px; margin-left: 2px; }
.yfp-aplay .yfp-thumb, .yfp-audio.yfp--playing .yfp-aplay svg { margin-left: 0; }
.yfp-cover {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--yf-surface-2) center/cover no-repeat;
  display: grid; place-items: center; color: var(--yfp-accent); box-shadow: inset 0 0 0 1px var(--yf-border);
}
.yfp-cover svg { width: 22px; height: 22px; }
.yfp-acol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.yfp-ameta { min-width: 0; }
.yfp-atitle { font: 800 14.5px/1.15 var(--yf-font-ui, sans-serif); color: var(--yf-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yfp-aartist { font: 600 12px/1.1 var(--yf-font-ui, sans-serif); color: var(--yf-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* «бегущая» waveform-дорожка */
.yfp-wave { position: relative; height: 34px; cursor: pointer; touch-action: none; overflow: hidden; min-width: 0; }
.yfp-wave-lay { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.yfp-wave-lay i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--yf-border-strong, rgba(250,249,245,.17)); }
/* fill-слой поверх base; открываем слева по прогрессу через clip-path — бары совпадают */
.yfp-wave-fill { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); will-change: clip-path; }
.yfp-wave-fill .yfp-wave-lay { inset: 0; }
.yfp-wave-fill .yfp-wave-lay i { background: linear-gradient(var(--yfp-accent), var(--yf-accent-hi, #e88a68)); }
.yfp-atime { flex: none; font: 700 12px/1 var(--yf-font-ui, sans-serif); color: var(--yf-dim); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  /* аудио-плеер тоже во всю ширину карточки на телефоне не нужен — остаётся в колонке */
  .yfp-bar { padding: 26px 10px 14px; }
}

/* =============================================================================
   КОМПОЗЕР «НОВАЯ ЗАПИСЬ» (feed-composer.js) — 2026
   Полноэкранный нижний лист · вкладки Пост/Видео · Instagram-карусель фото ·
   встроенный фоторедактор · alt-текст · черновики. Фирменный стиль ЯZME.
   Все цвета — через токены --yf-* и --yz-* (тема наследуется автоматически).
============================================================================= */
.yc-root {
  position: fixed; inset: 0; z-index: 2147483200; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  opacity: 0; pointer-events: none; transition: opacity .28s var(--yf-ease, ease);
  /* 4 уровня поверхностей (тренд 2026) */
  --yc-bg:  var(--yz-bg-deep, #0A0908);
  --yc-s1:  var(--yf-surface, #26251f);
  --yc-s2:  var(--yf-surface-2, #302e27);
  --yc-s3:  rgba(255,255,255,.055);
  --yc-acc: var(--yf-accent, #d97757);
  --yc-acc2: var(--yf-accent-hi, #e88a68);
  --yc-txt: var(--yf-text, #faf9f5);
  --yc-dim: var(--yf-dim, #8a857c);
  --yc-bd:  var(--yf-border, rgba(255,255,255,.09));
  --yc-bd2: var(--yf-border-strong, rgba(255,255,255,.16));
  --yc-spring: var(--yf-spring, cubic-bezier(.34,1.45,.5,1));
}
.yc-root.open { opacity: 1; pointer-events: auto; }
.yc-root.yc-drag .yc-sheet { outline: 2px dashed var(--yc-acc); outline-offset: -8px; }

.yc-sheet {
  position: relative; width: 100%; max-width: 620px; height: 92vh; background: var(--yc-bg);
  display: flex; flex-direction: column; border-radius: 26px 26px 0 0; overflow: hidden;
  box-shadow: 0 -24px 70px rgba(0,0,0,.55); color: var(--yc-txt); font-family: var(--yf-font-ui, system-ui, sans-serif);
  transform: translateY(26px); transition: transform .34s var(--yc-spring);
}
.yc-root.open .yc-sheet { transform: none; }
@media (min-width: 641px) { .yc-root { align-items: center; } .yc-sheet { height: 86vh; border-radius: 24px; } }
@media (max-width: 640px) { .yc-sheet { height: 100dvh; border-radius: 0; max-width: 100%; } }
.yc-grip { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 99px; background: var(--yc-bd2); z-index: 3; }
@media (min-width: 641px) { .yc-grip { display: none; } }

/* ---- шапка (стеклянная, липкая) ---- */
.yc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 14px 12px; border-bottom: 1px solid var(--yc-bd);
  background: color-mix(in srgb, var(--yc-bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 4;
}
.yc-x { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; background: var(--yc-s1); color: var(--yc-dim); display: grid; place-items: center; flex: none; transition: .2s; }
.yc-x:hover { background: var(--yc-s2); color: var(--yc-txt); }
.yc-x svg { width: 20px; height: 20px; }
.yc-title { flex: 1; min-width: 0; text-align: center; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--yc-txt); }
/* переключатель Пост/Видео — отдельной строкой, чтобы «Опубликовать» всегда влезал */
.yc-modes { display: flex; gap: 4px; margin: 12px 14px 2px; background: var(--yc-s1); border-radius: 999px; padding: 4px; }
.yc-mode { flex: 1; border: none; background: transparent; color: var(--yc-dim); font-weight: 800; font-size: 14px; padding: 11px 0; border-radius: 999px; cursor: pointer; transition: color .2s, background .25s var(--yc-spring); }
.yc-mode.is-on { background: var(--yc-acc); color: #fff; box-shadow: 0 6px 16px -8px var(--yc-acc); }
.yc-pub { border: none; background: linear-gradient(135deg, var(--yc-acc), var(--yc-acc2)); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .01em; padding: 11px 18px; border-radius: 999px; cursor: pointer; flex: none; white-space: nowrap; transition: transform .15s var(--yc-spring), opacity .2s, box-shadow .2s, filter .2s; box-shadow: 0 8px 22px -8px var(--yc-acc); }
@media (max-width: 380px) { .yc-pub { padding: 10px 14px; font-size: 13px; } .yc-x { width: 36px; height: 36px; } }
.yc-pub:not(:disabled):hover { filter: brightness(1.05); }
.yc-pub:not(:disabled):active { transform: scale(.95); }
.yc-pub:disabled { opacity: .4; cursor: default; box-shadow: none; filter: grayscale(.35); }

/* ---- панель черновика ---- */
.yc-draft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: color-mix(in srgb, var(--yc-acc) 12%, var(--yc-bg)); border-bottom: 1px solid var(--yc-bd); font-size: 13px; font-weight: 600; }
.yc-draft[hidden] { display: none; }
.yc-draft-btns { display: flex; gap: 8px; }
.yc-draft-btns button { border: none; cursor: pointer; font-weight: 800; font-size: 12px; padding: 7px 13px; border-radius: 999px; }
.yc-draft-use { background: var(--yc-acc); color: #fff; }
.yc-draft-del { background: var(--yc-s1); color: var(--yc-dim); }

/* ---- панели ---- */
.yc-pane { flex: 1; min-height: 0; overflow-y: auto; display: none; flex-direction: column; }
.yc-pane.is-on { display: flex; }

/* ---- редактор текста ---- */
.yc-editor-wrap { padding: 20px 20px 8px; }
.yc-editor { min-height: 96px; font-size: 18px; line-height: 1.55; color: var(--yc-txt); outline: none; white-space: pre-wrap; word-wrap: break-word; caret-color: var(--yc-acc); }
.yc-editor:empty::before { content: attr(data-ph); color: var(--yc-dim); pointer-events: none; opacity: .85; }
.yc-editor .brush-stroke {
  --bc: var(--brush-color, var(--yc-acc)); color: inherit; font-weight: 700; text-decoration: none;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(90deg, var(--bc), var(--bc)), linear-gradient(90deg, color-mix(in srgb, var(--bc) 26%, transparent), color-mix(in srgb, var(--bc) 26%, transparent));
  background-repeat: no-repeat, no-repeat; background-position: 0 100%, 0 100%; background-size: 100% 2px, 100% .52em; padding: 0 .06em .04em; border-radius: 2px;
}

/* ---- КАРУСЕЛЬ ФОТО (свайп влево-вправо, как в Instagram) ---- */
.yc-carousel { position: relative; margin: 6px 0 4px; }
.yc-carousel[hidden] { display: none; }
.yc-track-strip { display: flex; height: clamp(240px, 50vh, 560px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; background: #0c0b0a; }
.yc-track-strip::-webkit-scrollbar { display: none; }
.yc-track-strip:focus-visible { outline: 2px solid var(--yc-acc); outline-offset: -2px; }
.yc-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.yc-slide-img { position: absolute; inset: 0; background-position: center; background-repeat: no-repeat; background-size: contain; }
.yc-slide-ctl { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; z-index: 2; }
.yc-slide-ctl button { width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; background: rgba(12,11,10,.6); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: .18s; }
.yc-slide-ctl button:hover { background: rgba(12,11,10,.85); }
.yc-slide-ctl button svg { width: 17px; height: 17px; }
.yc-slide-ctl .yc-altb.has { background: var(--yc-acc); }
.yc-slide-move { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; pointer-events: none; }
.yc-slide-move button { pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; background: rgba(12,11,10,.5); color: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.yc-slide:hover .yc-slide-move button { opacity: 1; }
.yc-slide-move button:disabled { opacity: 0 !important; }
.yc-slide-altbadge { position: absolute; left: 10px; bottom: 10px; background: rgba(12,11,10,.7); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; z-index: 2; }
.yc-slide-pending { flex-direction: column; gap: 12px; color: var(--yc-dim); font-size: 13px; font-weight: 600; }
.yc-slide-add { flex: 0 0 92px; height: 100%; scroll-snap-align: end; flex-direction: column; gap: 6px; border: none; border-left: 1px solid var(--yc-bd); background: var(--yc-s1); color: var(--yc-dim); font-size: 11px; font-weight: 700; cursor: pointer; }
.yc-slide-add svg { width: 26px; height: 26px; }
.yc-slide-add:hover { color: var(--yc-acc); background: var(--yc-s2); }

.yc-count { position: absolute; top: 10px; left: 10px; background: rgba(12,11,10,.7); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.yc-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; flex-wrap: wrap; }
.yc-dot { width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: var(--yc-bd2); transition: .25s var(--yc-spring); }
.yc-dot.on { background: var(--yc-acc); width: 22px; border-radius: 99px; }

/* ---- трек ---- */
.yc-track { display: none; padding: 8px 18px 4px; }
.yc-track-chip { display: flex; align-items: center; gap: 12px; background: var(--yc-s1); border: 1px solid var(--yc-bd); border-radius: 16px; padding: 10px 12px; }
.yc-track-cov { width: 42px; height: 42px; border-radius: 11px; background: var(--yc-s2) center/cover; display: grid; place-items: center; color: var(--yc-acc); flex: none; }
.yc-track-cov svg { width: 20px; height: 20px; }
.yc-track-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.yc-track-meta b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yc-track-meta span { font-size: 12px; color: var(--yc-dim); }
.yc-track-x { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; color: var(--yc-dim); cursor: pointer; flex: none; }
.yc-track-x svg { width: 15px; height: 15px; }

/* ---- ТУЛБАР ---- */
.yc-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom,0)); border-top: 1px solid var(--yc-bd); background: color-mix(in srgb, var(--yc-bg) 90%, transparent); }
.yc-tool { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 14px; border: none; cursor: pointer; background: var(--yc-s1); color: var(--yc-txt); font-weight: 700; font-size: 14px; transition: .2s; }
.yc-tool:hover { background: var(--yc-s2); color: var(--yc-acc); transform: translateY(-1px); }
.yc-tool span { display: grid; place-items: center; }
.yc-tool svg { width: 21px; height: 21px; display: block; }
.yc-tool-u { display: flex; align-items: center; gap: 8px; }
.yc-swatches { display: flex; gap: 6px; align-items: center; }
.yc-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); transition: .2s var(--yc-spring); }
.yc-sw.is-on { border-color: #fff; transform: scale(1.16); }

/* ---- ВИДЕО ---- */
.yc-fmt { display: flex; justify-content: center; gap: 8px; padding: 14px; }
.yc-fmt-b { border: 1px solid var(--yc-bd2); background: transparent; color: var(--yc-dim); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: .2s; }
.yc-fmt-b.is-on { background: var(--yc-acc); color: #fff; border-color: transparent; }
.yc-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px 16px; container-type: size; }
.yc-vframe { position: relative; background: #000; overflow: hidden; aspect-ratio: 9 / 16; width: min(100cqw, 56.25cqh); height: auto; max-width: 100%; border-radius: 16px; }
.yc-stage[data-fmt="circle"] .yc-vframe { aspect-ratio: 1 / 1; width: min(100cqw, 100cqh); border-radius: 50%; }
.yc-stage[data-fmt="frame"] .yc-vframe { aspect-ratio: 4 / 5; width: min(100cqw, 80cqh); border-radius: 26px; }
.yc-stage[data-fmt="916"] { padding: 0; }
.yc-stage[data-fmt="916"] .yc-vframe { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; max-width: 100%; }
/* показываем кадр целиком, без «зума»/обрезки — форма задаётся рамкой формата */
/* WYSIWYG: кадр показывается так, как опубликуется (обрезка по формату) */
.yc-cam, .yc-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; background: #000; }
.yc-cam { transform: scaleX(-1); }
.yc-cam-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--yc-dim); text-align: center; padding: 20px; }
.yc-cam-empty svg { width: 40px; height: 40px; opacity: .5; }
.yc-cam-empty span { font-size: 13px; font-weight: 600; max-width: 200px; }
.yc-root.yc-has-cam .yc-cam { display: block; }
.yc-root.yc-has-cam .yc-cam-empty { display: none; }
.yc-root.yc-has-video .yc-vbar, .yc-root.yc-has-video .yc-vhint, .yc-root.yc-has-video .yc-cam-empty { display: none; }
.yc-preview { cursor: pointer; }
.yc-root.yc-has-video .yc-preview { display: block; }
.yc-vedit-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 4; display: none; background: rgba(12,11,10,.72); color: #fff; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.yc-root.yc-has-video .yc-vedit-hint { display: block; }
.yc-root.yc-has-video .yc-preview { display: block; }
.yc-root.yc-has-video .yc-cam { display: none; }
.yc-vbar { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 6px 14px 4px; }
.yc-pick, .yc-switch { width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; background: var(--yc-s1); color: var(--yc-txt); display: grid; place-items: center; }
.yc-pick svg, .yc-switch svg { width: 22px; height: 22px; }
.yc-rec { width: 74px; height: 74px; border-radius: 50%; border: none; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 4px rgba(255,255,255,.85); display: grid; place-items: center; }
.yc-rec i { width: 56px; height: 56px; border-radius: 50%; background: #ff3b46; display: block; transition: .25s var(--yc-spring); }
.yc-root.yc-recording .yc-rec i { border-radius: 10px; width: 30px; height: 30px; animation: ycrec 1.1s infinite; }
@keyframes ycrec { 0%,100% { transform: scale(1); } 50% { transform: scale(.82); } }
.yc-root.yc-has-video .yc-rec { box-shadow: inset 0 0 0 4px var(--yc-acc); }
.yc-root.yc-has-video .yc-rec i { background: var(--yc-acc); border-radius: 10px; width: 26px; height: 26px; }
.yc-vhint { text-align: center; font-size: 12px; color: var(--yc-dim); padding: 4px 14px calc(12px + env(safe-area-inset-bottom,0)); }
.yc-root.yc-recording .yc-vhint { font-size: 0; }
.yc-root.yc-recording .yc-vhint::before { content: "● Идёт запись…"; color: #ff3b46; font-weight: 700; font-size: 12px; }

/* ---- ФОТОРЕДАКТОР ---- */
/* [cloud-fix 2026-08-19] Сцена редактора намеренно тёмная в любой теме, поэтому внутри
   локально фиксируем тёмные значения токенов — иначе в cloud подписи/кнопки темнели. */
.yc-crop, .yc-ve {
  --yc-s1:var(--yz-surface,#22211F); --yc-s2:var(--yz-surface-2,#2E2C29); --yc-txt:#faf9f5; --yc-dim:#b9b4a7;
  --yc-bd:rgba(250,249,245,.09); --yc-bd2:rgba(250,249,245,.17);
}
.yc-crop { position: absolute; inset: 0; z-index: 10; background: #0a0908; display: flex; flex-direction: column; animation: ycfade .2s var(--yf-ease, ease); }
.yc-crop[hidden] { display: none; }
@keyframes ycfade { from { opacity: 0; } to { opacity: 1; } }
.yc-crop-top { display: flex; align-items: center; justify-content: space-between; padding: 16px; font-weight: 800; }
.yc-crop-top button { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; background: var(--yc-s1); color: var(--yc-txt); display: grid; place-items: center; }
.yc-crop-top .yc-crop-done { background: var(--yc-acc); color: #fff; }
.yc-crop-top button svg { width: 20px; height: 20px; }
.yc-crop-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.yc-crop-frame { position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 0 0 100vmax rgba(10,9,8,.72); touch-action: none; }
.yc-crop-img { position: absolute; top: 0; left: 0; background-position: 0 0; background-size: cover; background-repeat: no-repeat; cursor: grab; will-change: transform; }
.yc-crop-img:active { cursor: grabbing; }
.yc-crop-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 33.33% 33.33%; opacity: .5; }
.yc-crop-bar { padding: 12px 16px calc(16px + env(safe-area-inset-bottom,0)); display: flex; flex-direction: column; gap: 12px; }
.yc-crop-asp { display: flex; justify-content: center; gap: 8px; }
.yc-crop-asp button { border: 1px solid var(--yc-bd2); background: transparent; color: var(--yc-dim); font-weight: 700; font-size: 13px; padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: .2s; }
.yc-crop-asp button.on { background: var(--yc-acc); color: #fff; border-color: transparent; }
.yc-crop-tools { display: flex; justify-content: center; gap: 10px; }
.yc-crop-tools button { border: none; background: var(--yc-s1); color: var(--yc-txt); font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.yc-crop-tools button svg { width: 18px; height: 18px; }
.yc-crop-tools button:hover { background: var(--yc-s2); color: var(--yc-acc); }

/* ---- ALT-текст ---- */
.yc-alt { position: absolute; inset: 0; z-index: 11; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.yc-alt[hidden] { display: none; }
.yc-alt-card { width: 100%; max-width: 560px; background: var(--yc-bg); border: 1px solid var(--yc-bd); border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom,0)); animation: ycup .3s var(--yc-spring); }
@media (min-width: 641px) { .yc-alt { align-items: center; } .yc-alt-card { border-radius: 22px; } }
@keyframes ycup { from { transform: translateY(20px); opacity: .4; } to { transform: none; opacity: 1; } }
.yc-alt-card h4 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.yc-alt-card p { margin: 0 0 12px; font-size: 13px; color: var(--yc-dim); }
.yc-alt-ta { width: 100%; box-sizing: border-box; resize: none; background: var(--yc-s1); border: 1px solid var(--yc-bd); border-radius: 14px; color: var(--yc-txt); font: inherit; font-size: 15px; padding: 12px 14px; outline: none; }
.yc-alt-ta:focus { border-color: var(--yc-acc); }
.yc-alt-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.yc-alt-actions button { border: none; cursor: pointer; font-weight: 800; font-size: 14px; padding: 11px 20px; border-radius: 999px; }
.yc-alt-cancel { background: var(--yc-s1); color: var(--yc-dim); }
.yc-alt-save { background: var(--yc-acc); color: #fff; }

/* ---- прогресс/спиннер ---- */
.yc-progress { position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: 10px; background: rgba(10,9,8,.94); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.yc-progress[hidden] { display: none; }
.yc-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.25); border-top-color: var(--yc-acc); animation: ycspin .8s linear infinite; }
.yc-slide-pending .yc-spin { width: 30px; height: 30px; border-width: 3px; }
@keyframes ycspin { to { transform: rotate(360deg); } }

/* ---- тост / a11y ---- */
.yc-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(12px); z-index: 2147483300; background: rgba(10,9,8,.95); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 14px; opacity: 0; transition: .3s var(--yf-ease, ease); box-shadow: 0 15px 40px rgba(0,0,0,.5); }
.yc-toast.on { opacity: 1; transform: translateX(-50%); }
.yc-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.yc-root :focus-visible { outline: 2px solid var(--yc-acc); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .yc-sheet, .yc-tab, .yc-dot, .yc-pub, .yc-tool { transition: none !important; } .yc-track-strip { scroll-behavior: auto; } }

/* ---- трек: наш плеер стены прямо в композере (с прослушиванием) ---- */
.yc-track-player { position: relative; display: flex; align-items: center; gap: 8px; }
.yc-track-player .yf-audio { flex: 1; min-width: 0; margin: 0; }
.yc-track-remove { width: 34px; height: 34px; flex: none; border-radius: 50%; border: none; cursor: pointer; background: var(--yc-s1); color: var(--yc-dim); display: grid; place-items: center; transition: .2s; }
.yc-track-remove:hover { background: var(--yc-s2); color: var(--yc-txt); }
.yc-track-remove svg { width: 15px; height: 15px; }

/* ---- подтверждение (пост ↔ видео) ---- */
.yc-confirm { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 20px; }
.yc-confirm[hidden] { display: none; }
.yc-confirm-card { width: 100%; max-width: 360px; background: var(--yc-bg); border: 1px solid var(--yc-bd); border-radius: 20px; padding: 22px 20px 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: ycup .28s var(--yc-spring); }
.yc-confirm-msg { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--yc-txt); text-align: center; }
.yc-confirm-actions { display: flex; gap: 10px; }
.yc-confirm-actions button { flex: 1; border: none; cursor: pointer; font-weight: 800; font-size: 14px; padding: 12px; border-radius: 999px; }
.yc-confirm-no { background: var(--yc-s1); color: var(--yc-dim); }
.yc-confirm-yes { background: var(--yc-acc); color: #fff; }

/* =============================================================================
   ВИДЕОРЕДАКТОР (после записи) — формат / фильтры / текст / музыка
============================================================================= */
.yc-ve { position: absolute; inset: 0; z-index: 10; background: #0a0908; display: flex; flex-direction: column; animation: ycfade .2s var(--yf-ease, ease); }
.yc-ve[hidden] { display: none; }
.yc-ve-top { display: flex; align-items: center; gap: 10px; padding: 14px; }
.yc-ve-top > button { width: 40px; height: 40px; flex: none; border-radius: 50%; border: none; cursor: pointer; background: var(--yc-s1); color: var(--yc-txt); display: grid; place-items: center; }
.yc-ve-top > button svg { width: 20px; height: 20px; }
.yc-ve-done { width: auto !important; padding: 0 18px; border-radius: 999px !important; background: linear-gradient(135deg, var(--yc-acc), var(--yc-acc2)) !important; color: #fff !important; font-weight: 800; font-size: 14px; }
.yc-ve-fmt { flex: 1; display: flex; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.yc-ve-fmt::-webkit-scrollbar { display: none; }
.yc-ve-fmt-b { flex: none; border: 1px solid var(--yc-bd2); background: transparent; color: var(--yc-dim); font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: .2s; }
.yc-ve-fmt-b.on { background: var(--yc-acc); color: #fff; border-color: transparent; }

.yc-ve-stagewrap { flex: 1; min-height: 0; display: flex; }
.yc-ve-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px 14px; container-type: size; }
.yc-ve-frame { position: relative; background: #000; overflow: hidden; container-type: size; aspect-ratio: 9 / 16; width: min(100cqw, 56.25cqh); border-radius: 14px; }
.yc-ve-stage[data-fmt="circle"] .yc-ve-frame { aspect-ratio: 1 / 1; width: min(100cqw, 100cqh); border-radius: 50%; }
.yc-ve-stage[data-fmt="frame"]  .yc-ve-frame { aspect-ratio: 4 / 5; width: min(100cqw, 80cqh); border-radius: 20px; }
.yc-ve-stage[data-fmt="169"]    .yc-ve-frame { aspect-ratio: 16 / 9; width: min(100cqw, 177.78cqh); border-radius: 14px; }
.yc-ve-video { position: absolute; top: 0; left: 0; right: auto; bottom: auto; width: 100%; height: 100%; object-fit: cover; background: #000; will-change: transform; }
.yc-ve-frame { touch-action: none; }
.yc-ve-texts { position: absolute; inset: 0; pointer-events: none; }
.yc-ve-text { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; font-weight: 800; line-height: 1.12; text-align: center; cursor: grab; touch-action: none; max-width: 88%; white-space: pre-wrap; text-shadow: 0 1px 8px rgba(0,0,0,.45); user-select: none; }
.yc-ve-text:active { cursor: grabbing; }
.yc-ve-text-x { position: absolute; top: -12px; right: -12px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.62); color: #fff; display: grid; place-items: center; cursor: pointer; }
.yc-ve-text-x svg { width: 12px; height: 12px; }

.yc-ve-music { display: flex; align-items: center; gap: 8px; margin: 4px 14px; padding: 8px 10px; background: var(--yc-s1); border: 1px solid var(--yc-bd); border-radius: 12px; font-size: 13px; }
.yc-ve-music[hidden] { display: none; }
.yc-ve-mus-ic { display: grid; place-items: center; color: var(--yc-acc); flex: none; }
.yc-ve-mus-ic svg { width: 16px; height: 16px; }
.yc-ve-music b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
.yc-ve-mus-ar { color: var(--yc-dim); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yc-ve-mus-x { width: 28px; height: 28px; flex: none; border-radius: 50%; border: none; background: transparent; color: var(--yc-dim); cursor: pointer; display: grid; place-items: center; }
.yc-ve-mus-x svg { width: 14px; height: 14px; }

.yc-ve-filters { display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; }
.yc-ve-filters::-webkit-scrollbar { display: none; }
.yc-ve-filter { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; border: none; background: transparent; color: var(--yc-dim); font-size: 11px; font-weight: 700; cursor: pointer; }
.yc-ve-filter span { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, #d97757, #6b48ff 55%, #10b981); box-shadow: inset 0 0 0 2px transparent; }
.yc-ve-filter.on { color: var(--yc-acc); }
.yc-ve-filter.on span { box-shadow: inset 0 0 0 2px var(--yc-acc), 0 0 0 2px var(--yc-acc); }

.yc-ve-tools { display: flex; justify-content: center; gap: 10px; padding: 6px 14px calc(14px + env(safe-area-inset-bottom,0)); }
.yc-ve-tools button { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 13px; border: none; cursor: pointer; background: var(--yc-s1); color: var(--yc-txt); font-weight: 700; font-size: 13px; transition: .2s; }
.yc-ve-tools button:hover { background: var(--yc-s2); color: var(--yc-acc); }
.yc-ve-tools button span { display: grid; place-items: center; font-size: 15px; }
.yc-ve-tools button span svg { width: 19px; height: 19px; display: block; }

.yc-ve-textedit { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(10,9,8,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 24px; }
.yc-ve-textedit[hidden] { display: none; }
.yc-ve-ta { width: 100%; max-width: 460px; background: transparent; border: none; outline: none; color: #fff; font-size: 26px; font-weight: 800; text-align: center; resize: none; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.yc-ve-colors { display: flex; gap: 10px; }
.yc-ve-color { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: .15s var(--yc-spring); }
.yc-ve-color.on { border-color: #fff; transform: scale(1.15); }
.yc-ve-textedit-actions { display: flex; gap: 10px; }
.yc-ve-textedit-actions button { border: none; cursor: pointer; font-weight: 800; font-size: 14px; padding: 11px 22px; border-radius: 999px; }
.yc-ve-text-cancel { background: var(--yc-s1); color: var(--yc-dim); }
.yc-ve-text-add { background: var(--yc-acc); color: #fff; }

.yc-ve-progress { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(10,9,8,.82); color: #fff; font-weight: 700; font-size: 14px; }
.yc-ve-progress[hidden] { display: none; }

/* ---- v4: слой эффектов, эмодзи-стикеры, микшер, эффекты-строка, стикеры ---- */
.yc-ve-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.yc-ve-texts { z-index: 2; }
.yc-ve-text.emoji { text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.yc-ve-text.emoji span { filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }

/* эффекты-строка (вместо фильтров) */
.yc-ve-fx-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; }
.yc-ve-fx-strip::-webkit-scrollbar { display: none; }
.yc-ve-fxb { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; border: none; background: transparent; color: var(--yc-dim); font-size: 11px; font-weight: 700; cursor: pointer; }
.yc-ve-fxb span { width: 46px; height: 46px; border-radius: 13px; box-shadow: inset 0 0 0 2px transparent; overflow: hidden; }
.yc-ve-fxb.on { color: var(--yc-acc); }
.yc-ve-fxb.on span { box-shadow: inset 0 0 0 2px var(--yc-acc), 0 0 0 2px var(--yc-acc); }
.fx-none    { background: var(--yc-s2); position: relative; }
.fx-none::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 46%, var(--yc-dim) 46%, var(--yc-dim) 54%, transparent 54%); opacity: .5; }
.fx-hearts  { background: radial-gradient(circle at 32% 38%, #e88a68 0 22%, transparent 24%), radial-gradient(circle at 66% 62%, #d97757 0 18%, transparent 20%), #201d18; }
.fx-confetti{ background: conic-gradient(from 0deg, #d97757, #f59e0b, #6b48ff, #e88a68, #d97757); }
.fx-sparkle { background: radial-gradient(circle at 50% 45%, #fff 0 8%, #f59e0b 12% 22%, transparent 30%), #201d18; }
.fx-bokeh   { background: radial-gradient(circle at 30% 40%, rgba(217,119,87,.9) 0 20%, transparent 26%), radial-gradient(circle at 68% 66%, rgba(107,72,255,.7) 0 16%, transparent 24%), #17130f; }
.fx-embers  { background: linear-gradient(0deg, #d97757, #f59e0b 60%, #ffcf9e); }

/* музыка + микшер громкости */
.yc-ve-music { flex-direction: column; align-items: stretch; gap: 8px; }
.yc-ve-mus-top { display: flex; align-items: center; gap: 8px; }
.yc-ve-mus-top b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
.yc-ve-mix { display: flex; gap: 16px; }
.yc-ve-mix label { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--yc-dim); }
.yc-ve-mix input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: var(--yc-s2); outline: none; }
.yc-ve-mix input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--yc-acc); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.yc-ve-mix input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--yc-acc); cursor: pointer; }

/* стикеры (эмодзи) */
.yc-ve-stickers { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; background: rgba(10,9,8,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.yc-ve-stickers[hidden] { display: none; }
.yc-ve-stickers-grid { width: 100%; max-width: 460px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 20px 16px calc(24px + env(safe-area-inset-bottom,0)); background: var(--yc-bg); border-radius: 22px 22px 0 0; }
.yc-ve-stickers-grid button { border: none; background: var(--yc-s1); border-radius: 14px; aspect-ratio: 1; font-size: 26px; cursor: pointer; transition: .15s var(--yc-spring); }
.yc-ve-stickers-grid button:hover { background: var(--yc-s2); transform: scale(1.08); }

/* ---- v5: скраббер трека + стек ползунков на телефоне + подсказка «изменить» ---- */
.yc-ve-seek { display: flex; align-items: center; gap: 10px; }
.yc-ve-seek-lbl { font-size: 11px; font-weight: 700; color: var(--yc-dim); flex: none; }
.yc-ve-track-start { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: var(--yc-s2); outline: none; }
.yc-ve-track-start::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--yc-acc); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.yc-ve-track-start::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--yc-acc); cursor: pointer; }
@media (max-width: 640px) { .yc-ve-mix { flex-direction: column; gap: 10px; } .yc-ve-mix label { width: 100%; } }

/* ---- v6: только добавление видеофайла (прямая запись убрана) ---- */
.yc-vzone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 30px; text-align: center; }
.yc-root.yc-has-video .yc-vzone { display: none; }
.yc-vpick { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; background: var(--yc-s1); border: 2px dashed var(--yc-bd2); border-radius: 24px; color: var(--yc-txt); font-weight: 800; font-size: 16px; padding: 34px 44px; cursor: pointer; transition: .2s; }
.yc-vpick:hover { background: var(--yc-s2); border-color: var(--yc-acc); color: var(--yc-acc); }
.yc-vpick svg { width: 40px; height: 40px; }
.yc-vzone-hint { max-width: 300px; font-size: 13px; color: var(--yc-dim); line-height: 1.5; margin: 0; }
.yc-vready { flex: 1; min-height: 0; display: none; flex-direction: column; }
.yc-root.yc-has-video .yc-vready { display: flex; }
.yc-vreplace { align-self: center; margin: 12px 0 calc(16px + env(safe-area-inset-bottom,0)); border: none; background: var(--yc-s1); color: var(--yc-dim); font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 999px; cursor: pointer; transition: .2s; }
.yc-vreplace:hover { background: var(--yc-s2); color: var(--yc-txt); }

/* =============================================================================
   ТЕКСТ-ПОСТ БЕЗ МЕДИА — МИНИМАЛ 2026
   Без коробки, без градиента, без зерна: обложка из аватара автора сверху,
   под ней текст и «Читать далее». Набор — общий с постом-с-картинкой, см.
   правило «.yf-text, .yf-tp-text» в разделе «Тело». Редакторского серива и
   буквицы здесь больше нет: два разных вида поста в одной ленте выглядели
   как два разных сайта.
============================================================================= */
.yf-textpost { margin: 6px 0 4px; }

.yf-tp-min { padding: 6px 2px 2px; position: relative; }
/* Кегль и шрифт заданы выше, общим правилом с .yf-text — здесь только то,
   что относится именно к посту без картинки. */
.yf-tp-text .brush-stroke, .yf-tp-text u { font-weight: 600; }
/* Буквица выключена (ниже её гасит правило раздела 2026): приём начала статьи,
   а в ленте она вставала на каждом посте подряд. */
.yf-tp-text.has-cap::first-letter {
  font-family: inherit; font-weight: inherit; font-size: inherit;
  float: none; margin: 0; color: inherit;
}
/* Тонкая подпись-марка (не «коробка», просто атрибуция для скриншота) */
.yf-tp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--yf-border);
}
.yf-tp-author {
  font-family: var(--yf-font-ui); font-weight: 800; font-size: 12.5px; letter-spacing: -.01em;
  color: var(--yf-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.yf-tp-logo {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--yf-font-display); font-weight: 700; font-size: 11px; letter-spacing: .1em;
  color: var(--yf-accent);
}
.yf-tp-logo::before {
  content: ""; width: 15px; height: 15px; border-radius: 5px; flex: none;
  background: linear-gradient(135deg, var(--yf-accent), var(--yf-accent-hi));
  box-shadow: 0 4px 10px -3px var(--yf-accent);
}

/* =============================================================================
   РЕАКЦИИ — усиление читаемости мультивыбора (несколько «моих» разом)
============================================================================= */
.yf-rx.on { box-shadow: inset 0 0 0 1px var(--yf-accent-line); }
.yf-rx.on .emo { transform: scale(1.04); }

/* =============================================================================
   COIN-СТИКЕРЫ В ПАНЕЛИ КОММЕНТАРИЕВ (наша коллекция, не старый рюкзак)
============================================================================= */
.brc-sp-item.coin-sp-item {
  position: relative; background: var(--yf-surface); border: 1px solid var(--yf-border);
  border-bottom: 3px solid var(--pc, var(--yf-border-strong)); border-radius: 14px;
  transition: transform .18s var(--yf-spring), border-color .2s;
}
.brc-sp-item.coin-sp-item:hover { transform: translateY(-3px); border-color: var(--yf-border-strong); }
.brc-sp-item.coin-sp-item img { width: 82%; height: 82%; }
.coin-sp-count {
  position: absolute; top: 5px; right: 5px; background: var(--yf-text); color: var(--yf-bg-deep);
  font-size: 9px; font-weight: 900; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
}

/* =============================================================================
   ЯZME 2026 · НАТИВНЫЕ РЕКОМЕНДАЦИИ, МЕТКА «В КИНО», МЯГКИЙ СНАП ЛЕНТЫ
   Добавлено вместо блока «Советуем» (.pulse.yz-recs), который стоял НАД лентой.
   Откат: удалить этот блок до конца файла.
   ============================================================================= */

/* ── карточка рекомендаций внутри потока ── */
.yz-recs-inline{
  padding:15px 16px 16px;
  border-bottom:1px solid var(--yz-border, rgba(250,249,245,.08));
  background:linear-gradient(180deg, var(--yz-accent-soft, rgba(217,119,87,.14)), transparent 72%);
}
.yz-recs-inline .lb{
  display:flex; align-items:center; gap:8px; margin-bottom:11px;
  font-size:9.5px; font-weight:800; letter-spacing:.13em; text-transform:uppercase;
  color:var(--yz-accent-hi, #e88a68);
}
.yz-recs-inline .lb .ln{ flex:1; height:1px; background:var(--yz-accent-line, rgba(217,119,87,.42)); opacity:.35; }
.yz-recs-inline .lb .x{
  appearance:none; -webkit-appearance:none; border:0; background:none; cursor:pointer;
  color:var(--yz-muted, #8d8878); font-size:15px; line-height:1; padding:2px 4px;
}
.yz-recs-inline .cards{
  display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; margin:0 -16px; padding:0 16px 4px;
}
.yz-recs-inline .cards::-webkit-scrollbar{ display:none; }
.yz-recs-inline .card{
  flex:0 0 62%; scroll-snap-align:start; border-radius:var(--yz-r-md, 16px); overflow:hidden;
  background:var(--yz-surface, #22211F); border:1px solid var(--yz-border, rgba(250,249,245,.08));
  text-decoration:none; color:inherit;
}
.yz-recs-inline .card .im{
  display:block; aspect-ratio:16/10; background-color:var(--yz-surface-2, #2E2C29);
  background-size:cover; background-position:center;
}
.yz-recs-inline .card .cc{ display:block; padding:10px 12px 12px; }
.yz-recs-inline .card b{ display:block; font-size:13px; line-height:1.25; margin-bottom:3px; }
.yz-recs-inline .card .sn{ display:block; font-size:11px; color:var(--yz-muted, #8d8878); line-height:1.4; }
.yz-recs-inline .card .go{
  display:block; margin-top:9px; text-align:center; font-size:11.5px; font-weight:800; padding:7px;
  border-radius:999px; background:var(--yz-accent-soft, rgba(217,119,87,.14));
  color:var(--yz-accent-hi, #e88a68); border:1px solid var(--yz-accent-line, rgba(217,119,87,.42));
}

/* Метка «в Кино» удалена вместе с режимом «Кино».
   position:relative у .yf-media оставлен — на нём держатся точки каруселей. */
.yf-post .yf-media{ position:relative; }

/* ── снап ленты убран ──
   scroll-snap-type:y proximity заставлял ленту «магнититься» к постам: при
   обычном чтении с телефона это ощущается как рывки. Свободный скролл лучше. */

/*YZ-LOOK-2026-START*/
/* ------------------------------------------------------------------
   ЛЕНТА 2026: обложка персонажа, лид, ветка комментариев, «сейчас говорят».

   Цвета не выдуманы — сняты с живого сайта: терракота #d97757 (основной
   акцент, 39 использований на странице), светлая терракота #e88a68,
   золото #e2b13c, фон #0F0E0D, текст #faf9f5, приглушённый #b9b4a7.

   Блок дописан в конец файла намеренно: так он побеждает по каскаду при
   равной специфичности и снимается целиком, не задевая ничего выше.
   ------------------------------------------------------------------ */
:root{
  --yzl-accent:#d97757; --yzl-accent2:#e88a68; --yzl-gold:#e2b13c;
  --yzl-accent-soft:rgba(217,119,87,.16);
  --yzl-surface:#2c2c29; --yzl-line:rgba(250,249,245,.09); --yzl-dim:#8d887d;
}
/* [cloud-fix 2026-08-19] светлая ветка блока YZ-LOOK: раньше её не было, и ветка
   комментариев оставалась тёмным пятном с невидимыми разделителями */
html[data-yz-theme="cloud"]{
  --yzl-accent:#c96543; --yzl-accent2:#dd7a56; --yzl-gold:#c2922a;
  --yzl-accent-soft:rgba(201,101,67,.12);
  --yzl-surface:#ffffff; --yzl-line:rgba(35,32,25,.10); --yzl-dim:#6e695d;
}

/* ---------- кегль текста поста ----------
   Раньше здесь стоял отдельный кегль для поста без картинки — сначала
   clamp(21px,5.6vw,28px), потом clamp(16.5px,4.35vw,20px). Любое такое
   правило снова разводит два вида поста. Кегль теперь один и задан выше,
   общим правилом «.yf-text, .yf-tp-text»; отдельного переопределения нет.

   Историческая справка, чтобы не вернули 28px: на десктопе они давали 39
   знаков в строке при норме 50–75 (Baymard; WCAG 1.4.8 — не больше 80).
   Слишком короткая строка не «крупнее и удобнее»: глаз чаще возвращается
   к началу и начинает следующую строку, не дочитав текущую. */
/* буквица выключена: приём начала статьи, а в ленте она стоит на каждом посте */
.yf-tp-text.has-cap::first-letter{
  font-family:inherit; font-weight:inherit; font-size:inherit; line-height:inherit;
  float:none; margin:0; color:inherit;
}
.yf-tp-text .yzl-lead{ font-weight:600; color:var(--yz-text, #fff) } /* [cloud-fix 2026-08-19] белая лид-фраза исчезала на светлом фоне */
.yf-tp-text.yzl-cut{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden }
.yzl-has-cov .yf-tp-text.yzl-cut{ -webkit-line-clamp:2 }

/* ---------- картинки во всю ширину, без скруглений ----------
   Как в инстаграме: фотография упирается в края экрана, углы прямые.

   Сейчас у поста горизонтальный отступ 16px, и все картинки — и наши обложки,
   и их собственные карусели — сидят внутри него, шириной 568 вместо 600, да
   ещё со скруглением 14px. Меняем все разом: если поправить только обложки,
   астро-карточки останутся в рамке и лента разъедется.

   Величину выпуска не зашиваем числом: --yzl-bleed измеряется на живом посте
   при загрузке и на смене ширины окна. Зашитое число промахнулось бы на
   брейкпоинте, где отступ другой, и вылезла бы горизонтальная прокрутка. */
.yzl-cov,
.yf-post > .yf-body > .yf-media,
.yf-post .yf-media:not(.yf-media .yf-media){
  margin-left:calc(-1 * var(--yzl-bleed, 16px));
  margin-right:calc(-1 * var(--yzl-bleed, 16px));
  width:auto;
  border-radius:0;
}
/* Внутренним обёрткам выпуск не нужен — только убрать скругление.
   Здесь важно !important, и вот почему: post_carousel.css подключается ПОСЛЕ
   feed.css, поэтому его правило со скруглением 14px побеждает наше по
   порядку каскада при равной специфичности. Без пометки карусели остались бы
   с закруглёнными углами, а обложки — с прямыми, и лента разъехалась бы. */
.yf-media img, .yf-media video, .post-carousel-container,
.post-carousel-container img, .yf-video-wrap,
.yzl-cov{ border-radius:0 !important }
.yf-media img, .yf-media video{ width:100%; display:block }

/* ---------- обложка ---------- */
.yzl-cov{ position:relative; display:block; overflow:hidden;
  aspect-ratio:4/5; margin-top:6px; margin-bottom:12px; background:#3a3a36; isolation:isolate }
.yzl-cov>img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  object-position:50% 24%; display:block }
.yzl-cov-sh{ position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(20,20,19,.18) 0%,transparent 32%,rgba(20,20,19,.72) 64%,rgba(20,20,19,.97) 100%) }
.yzl-cov-in{ position:absolute; left:0; right:0; bottom:0; display:block;
  padding:16px calc(var(--yzl-bleed, 16px) + 2px) 15px }
.yzl-kick{ display:inline-block; font-size:9.5px; font-weight:800; letter-spacing:.15em;
  text-transform:uppercase; padding:5px 8px; border-radius:6px; background:var(--yzl-gold);
  color:#241d09; margin-bottom:9px }
.yzl-cov-h{ display:block; font-size:clamp(21px,6.4vw,27px); line-height:1.05; font-weight:900;
  letter-spacing:-.022em; text-transform:uppercase; color:#fff }
.yzl-cov-p{ display:block; margin-top:8px; font-size:13px; line-height:1.42; color:#d4cfc5; font-weight:500 }

/* ---------- значок комментария ---------- */
.yf-comment.yzl-cbtn{ transition:color .16s, background .16s; border-radius:12px }
.yf-comment.yzl-cbtn.on{ color:var(--yzl-accent); background:var(--yzl-accent-soft) }
.yzl-bubble{ display:block; flex:0 0 auto }
.yzl-bubble .yzl-dot{ fill:var(--yzl-accent); stroke:#0F0E0D; stroke-width:1.6 }

/* ---------- «Читать далее» под обрезанным текстом ----------
   Не кнопка-плашка, а строка: она стоит сразу под текстом и не должна спорить
   с ним за внимание. Ширина во весь пост — чтобы в неё было легко попасть
   пальцем (48px по высоте области нажатия набирается за счёт padding). */
/* Селектор из двух классов — намеренно: базовые стили .read-more-modern-btn
   движок вставляет в <head> скриптом, то есть ПОЗЖЕ этого файла, и при равной
   силе они бы победили — кнопка осталась бы без области нажатия. */
.yf-post .yzl-more{ display:block; width:100%; margin:4px 0 2px; padding:9px 0;
  background:none; border:0; text-align:left; cursor:pointer;
  font:inherit; font-size:14px; font-weight:700; letter-spacing:.01em;
  color:var(--yzl-accent, var(--yz-accent, var(--accent-primary))); }
.yf-post .yzl-more:active{ opacity:.6 }

/* ---------- ветка в ленте ---------- */
.yzl-thread{ display:none; padding:2px 0 10px }
.yf-post.yzl-open .yzl-thread{ display:block; animation:yzl-drop .22s ease-out }
/* Пока ветка раскрыта, превью тех же комментариев под постом — это второй
   список того же самого. Прячем: превью существует ради свёрнутого поста. */
.yf-post.yzl-open .efir-cmprev{ display:none !important }
@keyframes yzl-drop{ from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:none} }
.yzl-thread.yzl-load .yzl-list::after{ content:'Загружаю ответы…'; display:block;
  padding:12px 0; color:var(--yzl-dim); font-size:13px }
.yzl-empty{ padding:12px 0; color:var(--yzl-dim); font-size:13.5px }
.yzl-cmt{ padding:9px 0; border-top:1px solid var(--yzl-line); font-size:14px }
.yzl-cmt b{ display:block; font-size:13px; margin-bottom:3px }

/* Подсветка реплики, на которую привело уведомление. Гаснет сама: метка на
   странице дольше пары секунд начинает читаться как ошибка вёрстки. */
.yzl-flash{ animation: yzl-flash 2.6s ease-out both; border-radius:14px }
@keyframes yzl-flash{
  0%,55%{ background:var(--yzl-accent-soft, rgba(217,119,87,.16)); box-shadow:0 0 0 6px var(--yzl-accent-soft, rgba(217,119,87,.16)) }
  100%  { background:transparent; box-shadow:0 0 0 6px transparent }
}
@media (prefers-reduced-motion: reduce){ .yzl-flash{ animation-duration:.01s } }

/* Строка «отвечаем такому-то»: появляется над полем, снимается крестиком.
   Без неё непонятно, уйдёт реплика в ветку конкретного человека или просто
   под пост — а это разные вещи, и исправить после отправки нельзя. */
.yzl-rto{ display:none; align-items:center; gap:6px; margin:10px 0 -4px; padding:7px 10px;
  border-radius:10px; background:var(--yzl-accent-soft, rgba(217,119,87,.14));
  color:var(--yzl-accent, var(--yz-accent, var(--accent-primary)));
  font-size:12.5px; font-weight:600 }
.yf-post.yzl-open .yzl-rto.on{ display:flex }
.yzl-rto b{ font-weight:800 }
.yzl-rto button{ margin-left:auto; background:none; border:0; cursor:pointer; font-size:16px;
  line-height:1; padding:0 2px; color:inherit; opacity:.75 }
.yzl-rto button:active{ opacity:.4 }

.yzl-reply{ display:flex; gap:9px; align-items:center; margin-top:10px;
  padding:9px 9px 9px 14px; background:var(--yzl-surface);
  border:1px solid var(--yzl-line); border-radius:15px }
.yzl-reply input{ flex:1; min-width:0; background:none; border:0; outline:none; color:inherit;
  font:500 14.5px/1.2 inherit }
.yzl-reply input::placeholder{ color:var(--yzl-dim) }
.yzl-send{ width:32px; height:32px; flex:0 0 32px; border:0; border-radius:50%; cursor:pointer;
  background:#3a3a36; color:var(--yzl-dim); display:flex; align-items:center; justify-content:center;
  transition:background .16s, color .16s, transform .12s }
.yzl-send.on{ background:linear-gradient(140deg,var(--yzl-accent2),var(--yzl-accent)); color:#241209 }
.yzl-send:active{ transform:scale(.9) }
.yzl-send[disabled]{ opacity:.5 }

/* ---------- «сейчас говорят» ---------- */
.yzl-live{ padding:14px 16px 6px }
.yzl-live-cap{ display:flex; align-items:center; gap:7px; font-size:11px; font-weight:800;
  letter-spacing:.14em; color:var(--yzl-dim) }
.yzl-live-cap i{ width:6px; height:6px; border-radius:50%; background:var(--yzl-accent);
  animation:yzl-pulse 2.2s infinite }
@keyframes yzl-pulse{ 0%{box-shadow:0 0 0 0 rgba(217,119,87,.55)} 70%{box-shadow:0 0 0 7px rgba(217,119,87,0)} 100%{box-shadow:0 0 0 0 rgba(217,119,87,0)} }
.yzl-live-rail{ display:flex; gap:10px; margin-top:11px; overflow-x:auto; scrollbar-width:none;
  padding-bottom:4px; -webkit-overflow-scrolling:touch }
.yzl-live-rail::-webkit-scrollbar{ display:none }
.yzl-live-card{ flex:0 0 92px; text-decoration:none; color:inherit }
.yzl-live-ph{ position:relative; display:block; width:92px; aspect-ratio:3/4; border-radius:14px;
  overflow:hidden; background:#3a3a36; border:2px solid transparent; transition:border-color .18s }
.yzl-live-card:hover .yzl-live-ph{ border-color:var(--yzl-accent) }
.yzl-live-ph img{ width:100%; height:100%; object-fit:cover; object-position:50% 22%; display:block }
.yzl-live-ph::after{ content:''; position:absolute; inset:0;
  background:linear-gradient(transparent 42%,rgba(20,20,19,.94)) }
.yzl-live-n{ position:absolute; left:8px; right:6px; bottom:16px; z-index:2; font-size:11.5px; font-weight:700; color:#fff }
.yzl-live-s{ position:absolute; left:8px; right:6px; bottom:5px; z-index:2; font-size:9.5px;
  font-weight:600; color:var(--yzl-accent2) }

@media (prefers-reduced-motion: reduce){
  .yzl-live-cap i, .yf-post.yzl-open .yzl-thread{ animation:none }
}
/*YZ-LOOK-2026-END*/

