/* ============================================================
   Лента «как у Luna» (скрин владельца 27): сверху — панель «Реализм | Аниме» и баланс, под ней видео персонажа —
   скруглённая карточка на весь экран до самого низа; нижнее меню плавает поверх карточки. Всё управление —
   поверх видео: внизу слева «Имя, возраст» (→ профиль), фраза-приманка и «Написать», справа — колонка иконок
   без подписей (звук, лайк со счётчиком, звонок, галерея, поделиться), у верха карточки — плашка галереи.
   Медиа — object-fit: cover (квадратные ролики 720×720 заполняют карточку, края по бокам срезаны); альбомное шире
   1.2 — целиком на размытой подложке из постера (.is-wide, feed/layout.js). Листание — свайпом (scroll-snap),
   стрелки ↑/↓ — только на широком экране, где колонка стоит снаружи рамки.
   Низкий экран (html.h-short / h-compact из каркаса): фраза в одну строку, колонка плотнее; телефон боком
   (карточка ниже 400, @container) — колонка сеткой, на широком — подпись и колонка по бокам от меню.
   Планшет/десктоп — рамка в пропорции медиа по центру, вокруг — размытая подсветка из постера.
   ============================================================ */

.feed {
  /* Верхняя панель «Реализм | Аниме» + баланс: карточки ленты — под ней */
  --feed-top-h: calc(var(--sat) + 60px);
  /* Карточка на телефоне: поля по бокам и снизу, скругление */
  --card-x: 6px;
  --card-gap: 6px;
  --card-r: 22px;
  /* Низ подписи и колонки над плавающим меню: от низа экрана и то же — от низа карточки */
  --feed-bottom: calc(var(--sab) + var(--nav-gap) + var(--nav-h) + 12px);
  --ui-bottom: calc(var(--feed-bottom) - var(--card-gap));
  /* Ширина плавающего меню (chrome.css, .bottom-nav: не шире 380): на низкой широкой карточке подпись — слева от него */
  --feed-nav-w: 380px;
  --feed-side: 0px;
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}
html.has-rail .feed {
  --feed-bottom: calc(var(--sab) + 16px);
  --feed-side: var(--rail-w);
}

/* ---------- Верх: стиль и баланс — над карточкой, на фоне экрана ----------
   Панель ровно до верха ленты (--feed-top-h): ниже неё — уже карточка, свайп и касания у её верха — ленте */
.feed__top {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0;
  height: var(--feed-top-h);
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--sat) + 8px) var(--gutter) 0;
}
.feed__seg { width: 196px; } /* вид — .seg (components.css) */

.feed__scroller {
  position: absolute;
  top: var(--feed-top-h);
  left: 0;
  right: 0;
  bottom: 0;
  overflow-x: hidden; overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feed__scroller::-webkit-scrollbar { display: none; }
.feed__scroller:focus { outline: none; }

/* ---------- Карточка ---------- */
.feed-item {
  position: relative; height: 100%; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
  contain: layout paint;
}
.feed-item__ambient { display: none; }
/* Карточка от панели до низа экрана: нижнее меню лежит поверх неё */
.feed-item__stage { position: absolute; top: 0; left: var(--card-x); right: var(--card-x); bottom: var(--card-gap); }
.feed-item__frame {
  /* Свободная зона кадра для ▶, вспышки и спиннера: снизу — над подписью (--info-h меряет feed/item.js),
     сверху — под плашкой галереи (--zone-top у .feed-item.has-plaque) */
  --zone-bottom: calc(var(--ui-bottom) + var(--info-h, 150px));
  position: absolute;
  inset: 0;
  border-radius: var(--card-r);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}
.feed-item__frame.has-poster { animation: none; background: var(--card); }
.feed-item__media { position: absolute; inset: 0; z-index: 0; }
.feed-item__poster,
.feed-item__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
.feed-item__poster { opacity: 0; transition: opacity 240ms var(--ease); }
.has-poster .feed-item__poster { opacity: 1; }
/* Видео проявляется поверх постера, только когда реально пошло — без чёрного кадра */
.feed-item__video { opacity: 0; transition: opacity 160ms linear; background: transparent; }
.is-live .feed-item__video { opacity: 1; }

/* Затемнение сверху (под плашку галереи) и снизу (под подпись и колонку) */
.feed-item__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 6, 16, 0.42) 0%, rgba(8, 6, 16, 0) 18%),
    linear-gradient(0deg, rgba(8, 6, 16, 0.9) 0%, rgba(8, 6, 16, 0.6) 22%, rgba(8, 6, 16, 0) 50%);
}

/* ---------- Подпись поверх видео: персонаж, фраза-приманка, «Написать» ---------- */
.feed-item__info {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 72px;
  bottom: var(--ui-bottom);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: opacity var(--t) var(--ease);
}
.feed-item__who {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%; min-height: 44px;
  color: #fff;
  text-align: left;
}
.feed-item__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
/* Раскладка «имя с многоточием, возраст виден» — .name-age (components.css) */
.feed-item__name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.feed-item__chev { display: inline-flex; opacity: 0.75; }
.feed-item__chev .icon { width: 16px; height: 16px; transform: rotate(180deg); }
/* Фраза — текстом поверх затемнения, как описание у Luna; обрезка по строкам — у внутреннего span */
.feed-item__caption {
  max-width: 100%;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}
.feed-item__caption-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}
.feed-item__cta { display: flex; max-width: 100%; margin-top: 4px; }
.feed-cta { min-width: 152px; padding: 0 22px; box-shadow: 0 8px 22px rgba(255, 45, 120, 0.35); } /* высота и шрифт — обычная .btn (48) */
.feed-cta .icon { width: 18px; height: 18px; }

/* ---------- Правая колонка поверх видео: звук, лайк, звонок, галерея, поделиться ---------- */
.feed-item__actions {
  position: absolute;
  z-index: 2;
  right: 2px;
  bottom: var(--ui-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity var(--t) var(--ease);
}
.feed-act {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 56px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}
/* Иконки без кружков, как у Luna: читаемость на светлом кадре — тень, а не подложка
   (без backdrop-filter: над играющим видео размытие пересчитывается каждый кадр — на слабых телефонах дорого) */
.feed-act__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.6));
  transition: color var(--t-fast), transform var(--t-fast) var(--ease);
}
.feed-act__icon .icon { width: 28px; height: 28px; }
.feed-act:active .feed-act__icon { transform: scale(0.88); }
.feed-act__count { font-variant-numeric: tabular-nums; }
.feed-act__count:empty { display: none; } /* «0» под сердцем не пишем */
.feed-act--like.is-liked .feed-act__icon { color: var(--pink); }
.feed-act.is-pop .feed-act__icon { animation: feed-like-pop 440ms var(--ease); }

/* Звук: наверху колонки, под большим пальцем. Без звука — розовое кольцо трижды «пульсирует» */
.feed-act-wrap { position: relative; display: flex; }
.feed-act--sound .feed-act__icon .icon { width: 25px; height: 25px; }
.feed-act--sound.is-muted .feed-act__icon { animation: feed-sound-ping 2.4s var(--ease) 1s 3; }
/* Подсказка — один раз на устройстве, слева от кнопки */
.feed-sound-hint {
  position: absolute;
  top: 22px;
  right: calc(100% + 4px);
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  background: rgba(10, 8, 20, 0.72);
  border: 1px solid var(--glass-border);
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms var(--ease), visibility 240ms;
}
.feed-sound-hint.is-on { opacity: 1; visibility: visible; }

/* ---------- ▶ (пауза / автозапуск запрещён), вспышка иконки, спиннер — по центру свободной зоны ----------
   Зона — от верха кадра (с плашкой галереи — от её низа) до подписи; без плашки --zone-top = 0 */
.feed-item.has-plaque { --zone-top: 100px; } /* плашка: 16 от верха + до 72 (заголовок в две строки на 360) + 12 */
.feed-item__play,
.feed-item__flash {
  position: absolute; z-index: 3; left: 50%;
  top: calc(var(--zone-top, 0px) + (100% - var(--zone-top, 0px) - var(--zone-bottom)) / 2);
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff;
}
.feed-item__play {
  display: none;
  background: var(--glass-bg-media);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
}
.feed-item__play .icon { width: 32px; height: 32px; margin-left: 4px; }
.is-paused .feed-item__play,
.is-blocked .feed-item__play { display: flex; animation: fade-in var(--t) both; }
.feed-item__flash { display: flex; background: rgba(8, 6, 16, 0.52); opacity: 0; pointer-events: none; }
.feed-item__flash .icon { width: 34px; height: 34px; }
.feed-item__flash.is-on { animation: feed-flash 720ms var(--ease) both; }
.is-paused .feed-item__flash { display: none; }
/* Буферизация: спиннер появляется с задержкой, чтобы не мигал на коротких паузах сети */
.feed-item__frame.is-buffering::after {
  content: "";
  position: absolute; z-index: 3; left: 50%;
  top: calc(var(--zone-top, 0px) + (100% - var(--zone-top, 0px) - var(--zone-bottom)) / 2);
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  pointer-events: none;
}

/* Сердце при двойном тапе */
.feed-burst {
  position: absolute; z-index: 4;
  width: 110px; height: 110px; margin: -55px 0 0 -55px;
  color: var(--pink);
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(255, 45, 120, 0.65));
  animation: feed-burst 860ms var(--ease) both;
}
.feed-burst .icon { width: 100%; height: 100%; }

/* ---------- Прогресс ролика: тонкая полоска у верха карточки (низ занят меню и полосой «домой») ---------- */
.feed-item__progress {
  position: absolute; z-index: 2; top: 7px; left: 18px; right: 18px;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.feed-item__bar {
  display: block; height: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Удержание пальца: пауза и чистый кадр без интерфейса */
.feed-item__frame.is-held .feed-item__info,
.feed-item__frame.is-held ~ .feed-item__actions { opacity: 0; pointer-events: none; }

/* ---------- Скелетон, хвост, пустые состояния ---------- */
.feed-item--skeleton .feed-item__frame { cursor: default; }
.feed-skel { border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); }
.feed-skel--who { width: 160px; height: 40px; }
.feed-skel--line { width: 220px; max-width: 100%; height: 20px; border-radius: 6px; }
.feed-skel--cta { width: 152px; max-width: 100%; height: var(--btn-h); margin-top: 4px; }
.feed__tail { position: relative; height: 100%; scroll-snap-align: start; }
.feed__state {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 12px var(--gutter) var(--feed-bottom);
}

/* Кнопки ↑/↓ — только на широком экране с мышью (ниже); на телефоне и в узком окне — свайп, колесо, клавиши */
.feed__arrows { display: none; }

@keyframes feed-like-pop { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 65% { transform: scale(0.92); } 100% { transform: scale(1); } }
@keyframes feed-flash { 0% { opacity: 0; transform: scale(0.7); } 20%, 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes feed-burst {
  0% { opacity: 0; transform: scale(0.4) rotate(-14deg); }
  25% { opacity: 1; transform: scale(1.14) rotate(0deg); }
  60% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translateY(-48px) scale(1.15); }
}
@keyframes feed-sound-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 45, 120, 0.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 45, 120, 0); } }

/* ---------- Низкие экраны (каркас: h-short < 560, h-compact 560–659 доступной высоты) ----------
   Фраза в одну строку, колонка плотнее, затемнение снизу на 34% высоты, а не на 50%: свободной зоны кадра больше */
html.h-short .feed-item__caption-text, html.h-compact .feed-item__caption-text { -webkit-line-clamp: 1; }
html.h-short .feed-item__caption, html.h-compact .feed-item__caption { font-size: 14px; }
html.h-short .feed-item__avatar, html.h-compact .feed-item__avatar { width: 36px; height: 36px; }
html.h-short .feed-item__name, html.h-compact .feed-item__name { font-size: 16px; }
html.h-short .feed-item__info, html.h-compact .feed-item__info { gap: 4px; }
html.h-short .feed-item__actions, html.h-compact .feed-item__actions { gap: 4px; }
html.h-short .feed-act__icon .icon, html.h-compact .feed-act__icon .icon { width: 26px; height: 26px; }
html.h-short .feed-item__shade, html.h-compact .feed-item__shade {
  background:
    linear-gradient(180deg, rgba(8, 6, 16, 0.4) 0%, rgba(8, 6, 16, 0) 16%),
    linear-gradient(0deg, rgba(8, 6, 16, 0.88) 0%, rgba(8, 6, 16, 0.5) 18%, rgba(8, 6, 16, 0) 34%);
}
html.h-short .feed-item__play, html.h-short .feed-item__flash { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
html.h-short .feed-item__play .icon { width: 28px; height: 28px; }
html.h-short .feed-item.has-plaque { --zone-top: 88px; } /* плашка в одну строку: 16 + 58 + 14 */

/* ---------- Телефон: альбомное медиа (шире 1.2) целиком, на размытой подложке из постера внутри карточки ----------
   По вертикали — по центру свободной зоны над подписью (--info-h меряет feed/item.js); сдвигается только картинка
   внутри элемента (object-position), рамки не двигаются */
@media (max-width: 599px), (max-height: 559px) {
  @supports (width: 1cqw) {
    .feed-item { container-type: size; }
    .feed-item.is-wide {
      --wide-top: max(0px, (100cqh - var(--card-gap) - var(--ui-bottom) - var(--info-h, 150px) - (100cqw - 2 * var(--card-x)) / var(--ar, 1.78)) / 2);
    }
  }
  .feed-item.is-wide .feed-item__ambient {
    display: block; position: absolute; top: 0; left: var(--card-x); right: var(--card-x); bottom: var(--card-gap);
    border-radius: var(--card-r); overflow: hidden; pointer-events: none;
  }
  .feed-item.is-wide .feed-item__ambient-img {
    width: 100%; height: 100%; object-fit: cover;
    filter: blur(36px) saturate(1.3) brightness(0.55);
    transform: scale(1.25);
  }
  .feed-item.is-wide .feed-item__frame.has-poster { background: transparent; }
  .feed-item.is-wide .feed-item__poster,
  .feed-item.is-wide .feed-item__video { object-fit: contain; object-position: 50% var(--wide-top, 38%); }
}

/* ---------- Планшет и десктоп: рамка в пропорции медиа; нижнее меню плавает поверх рамки ---------- */
@media (min-width: 600px) and (min-height: 560px) {
  /* Рамка доходит до низа экрана, как карточка телефона: меню плавает поверх, подпись — над меню (--ui-bottom общий) */
  .feed { --card-r: 26px; --feed-pad-bottom: var(--card-gap); }
  /* Десктоп: навигация — боковая панель, низ рамки свободен */
  html.has-rail .feed { --feed-pad-bottom: calc(var(--sab) + 28px); --ui-bottom: 20px; }
  .feed__top { max-width: 820px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
  .feed-item {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 24px var(--feed-pad-bottom);
    container-type: size; /* место под рамку (без полей) — для 100cqw/100cqh ниже */
  }
  /* Подсветка из постера вокруг рамки */
  .feed-item__ambient {
    display: block; position: absolute; inset: 0; overflow: hidden;
    opacity: 0.5;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
    mask-image: radial-gradient(closest-side, #000 45%, transparent);
  }
  .feed-item__ambient-img { width: 100%; height: 100%; object-fit: cover; filter: blur(64px) saturate(1.5); transform: scale(1.15); }
  /* Высота — вся доступная, но не шире экрана при этой пропорции */
  .feed-item__stage {
    position: relative; inset: auto;
    height: min(100%, calc((100vw - var(--feed-side) - 48px) / var(--ar, 1)));
    aspect-ratio: var(--ar, 1);
  }
  /* Медиа шире места (квадрат на планшете 768×1024 висел с пустотой сверху и снизу): рамка по высоте
     места и уже медиа не больше чем на --feed-crop — края чуть срезаны (cover), пропорции не искажаются */
  @supports (width: 1cqw) {
    .feed-item__stage {
      --feed-crop: 0.82;
      --stage-h: min(100cqh, 100cqw / (var(--ar, 1) * var(--feed-crop)));
      height: var(--stage-h); width: min(100cqw, var(--stage-h) * var(--ar, 1)); aspect-ratio: auto;
    }
    /* Рамка ниже места (альбомное медиа, высокий планшет) стоит по центру и не доходит до меню:
       подпись и колонка — от её настоящего низа, без пустой полосы под «Написать» */
    html:not(.has-rail) .feed-item__stage {
      --ui-bottom: max(16px, calc(var(--feed-bottom) - var(--card-gap) - (100cqh - var(--stage-h)) / 2));
    }
  }
  .feed-item__frame { border: 1px solid var(--glass-border); box-shadow: var(--elev-3); }
  .feed-item__info { left: 18px; right: 84px; }
  .feed-item__actions { right: 8px; }
  .feed-item__caption { font-size: 15.5px; }
}
/* Широкий «альбомный» экран: колонка действий — снаружи рамки справа, как в веб-версиях видеолент
   (на высоком iPad Pro 1024×1366 поля под неё сжимали рамку — там раскладка планшета) */
@media (min-width: 1024px) and (min-height: 560px) and (min-aspect-ratio: 5/4) {
  .feed-item { padding-left: 116px; padding-right: 116px; }
  @supports not (width: 1cqw) { .feed-item__stage { height: min(100%, calc((100vw - var(--feed-side) - 232px) / var(--ar, 1))); } }
  .feed-item__info { right: 18px; }
  .feed-item__actions { right: auto; left: calc(100% + 14px); bottom: 4px; gap: 12px; }
  .feed-act { text-shadow: none; color: var(--text); }
  .feed-act__icon { width: 48px; height: 48px; filter: none; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); }
  .feed-act__icon .icon { width: 24px; height: 24px; }
  .feed-act:hover .feed-act__icon { background: rgba(255, 255, 255, 0.14); }
  .feed-act--like.is-liked .feed-act__icon { background: rgba(255, 45, 120, 0.16); border-color: rgba(255, 45, 120, 0.45); }
}

/* ---------- Мышь на широком экране: ↑/↓ справа, снаружи рамки (на видео их нет — там колесо и клавиши) ---------- */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) and (min-height: 560px) and (min-aspect-ratio: 5/4) {
  .feed__arrows {
    position: absolute; z-index: 5; right: 28px; top: 50%;
    display: flex; flex-direction: column; gap: 12px;
    transform: translateY(-50%);
  }
  .feed__arrow {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-2);
    transition: background var(--t-fast), opacity var(--t-fast);
  }
  .feed__arrow:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
  .feed__arrow:disabled { opacity: 0.3; cursor: default; }
  .feed__arrow .icon { width: 22px; height: 22px; transform: rotate(90deg); }
  .feed__arrow--down .icon { transform: rotate(-90deg); }
}

/* ---------- Плашка «Галерея {Имя} · 3 фото · 1 видео [Открыть] [×]» (feed/plaque.js) ----------
   Стекло у верха карточки, поверх видео: не закрывает лицо и подпись. */
.feed-plaque {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 6px 8px 10px;
  border-radius: 18px;
  background: rgba(11, 10, 20, 0.62);
  border: 1px solid rgba(255, 45, 120, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  cursor: default;
  animation: rise-in 320ms var(--ease-out) both;
}
.feed-plaque__main { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; text-align: left; color: inherit; }
.feed-plaque__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
}
.feed-plaque__icon .icon { width: 16px; height: 16px; }
.feed-plaque__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.feed-plaque__text b { font-size: 15px; font-weight: var(--fw-heavy); }
/* Не больше двух строк: на 360 px «Галерея» и имя — отдельными строками, имя не обрезается */
.feed-plaque__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: break-word; }
.feed-plaque__text span { font-size: 12.5px; color: var(--text-2); }
.feed-plaque__open { flex: 0 0 auto; padding: 0 16px; }
/* «Открыть» — мелкая кнопка (40 px), палец попадает в 48: невидимое расширение (К7) */
.feed-plaque__open::before { content: ""; position: absolute; inset: -4px 0; border-radius: inherit; }
.feed-plaque__close {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
}
/* Зона касания 46 px: ровно 44 на краю не всегда ловит палец (и аудит эмулятора с шагом 2 px) */
.feed-plaque__close::before { content: ""; position: absolute; inset: -5px; }
.feed-plaque__close .icon { width: 16px; height: 16px; }
/* Удержание карточки — видно только медиа */
.feed-item__frame.is-held .feed-plaque,
.feed-item__frame.is-held .feed-item__progress { opacity: 0; pointer-events: none; }
/* Низкий экран (Android 360×640, телефон боком): плашка ниже на 14 px и меньше закрывает кадр — без значка замка
   (у Luna его тоже нет), «Галерея Имя» в одну строку (на 360 px без значка имя помещается; длинное — с многоточием) */
html.h-short .feed-plaque { min-height: 0; padding: 6px 6px 6px 14px; }
html.h-short .feed-plaque__icon { display: none; }
html.h-short .feed-plaque__title { -webkit-line-clamp: 1; }
/* Рамка планшета: плашка у верха рамки, не во всю ширину */
@media (min-width: 600px) and (min-height: 560px) {
  .feed-plaque { left: 14px; right: 14px; max-width: 440px; }
}

/* ---------- Низкая карточка (телефон боком: карточка ниже 400 px) ----------
   Пять иконок столбиком (~250 px) над меню не помещаются: колонка — сеткой по столбцам справа налево
   (звук и лайк — у края, под большим пальцем), подпись — слева от сетки */
@container (max-height: 400px) {
  .feed-item__actions {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    direction: rtl;
  }
  .feed-item__actions > * { direction: ltr; }
  .feed-item__info { right: 188px; } /* три столбца: 3 × 56 + 2 × 4 + поля */
}
/* Низкая и широкая (от 740): меню по центру не доходит до краёв — подпись и колонка опускаются к низу по бокам
   от него, колонка — в три строки, плашка — слева и не шире 440 (не наезжает на колонку и подпись);
   ▶ — по центру между плашкой и меню */
@container (max-height: 400px) and (min-width: 740px) {
  .feed-item__stage { --ui-bottom: calc(var(--sab) + var(--nav-gap)); }
  .feed-item__frame { --zone-bottom: calc(var(--feed-bottom) - var(--card-gap)); }
  .feed-item__actions { grid-template-rows: repeat(3, auto); }
  .feed-item__info { right: auto; max-width: calc((100cqw - var(--feed-nav-w)) / 2 - var(--card-x) - 22px); }
  .feed-plaque { right: auto; width: min(440px, 100% - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .feed-item__frame { animation: none; }
  .feed-item__poster, .feed-item__video { transition: none; }
  .feed-act--sound.is-muted .feed-act__icon, .feed-act.is-pop .feed-act__icon, .feed-item__flash.is-on { animation: none; }
}
