/* Surf — экран «Эфир» (ARCHITECTURE §7 «Оверлей»). Только на токенах surf-app.css. Экран — .screen (absolute inset 0 внутри
   fixed #app на 100lvh: под safe-area тоже видео, никакой полосы), сцена чёрная, видео object-fit: cover (.fit-contain — константа
   STREAM_FIT в surf-player-ui.js). Жесты ловит вся сцена (touch-action: none, без выделения); слои поверх видео (.st-scrim, .st-shade,
   .st-lower, титр, тосты) касаний не перехватывают — pointer-events: none; кнопки — только сами кнопки при показанном управлении.
   В покое поверх ничего. Титр = @handle + лайки/комментарии момента (.st-lstats, общий примитив .stats) + описание.
   Композиция оверлея по зоне большого пальца: колонка кнопок справа и титр слева стоят на одной
   нижней линии bottom = sab + 24; сверху только шеврон «домой» и звук. Под титром не стекло, а мягкий градиент снизу сцены.
   Грузится как /src/css/surf-stream.css?v=$version. */
#screen-stream { background: #000; padding: 0; overflow: hidden; overscroll-behavior: none; touch-action: none; }
/* Свайп следует за пальцем: видео и постер сдвигаются transform'ом, под ними — постер следующего/предыдущего (.st-peek) */
.st-peek { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; pointer-events: none; }
.st-peek[hidden] { display: none; }
.st-stage.snap .st-video, .st-stage.snap .st-poster { transition: transform .18s cubic-bezier(.2,.7,.3,1); }
.st-stage.snap .st-peek { transition: opacity .18s; }
/* Свайп вправо, ступень 1 — «в начало»: значок у левого края растёт с тягой; второй свайп — превью предыдущего */
.st-rw { position: absolute; left: 24px; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; z-index: 2; pointer-events: none;
  background: var(--media-glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: #fff;
  display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.4); transition: opacity .12s, transform .12s; }
.st-rw.on { opacity: 1; }
.st-rw.go { animation: st-rw-spin .5s ease-out; }
@keyframes st-rw-spin { from { transform: scale(1) rotate(0); } to { transform: scale(1) rotate(-360deg); } }
.st-stage { position: absolute; inset: 0; overflow: hidden; background: #000; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.st-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; z-index: 1; will-change: transform; }
.st-video.on { opacity: 1; }
.st-video[hidden] { display: none; }
.st-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 1; }
.st-poster[hidden] { display: none; }
.st-stage.fit-contain .st-video, .st-stage.fit-contain .st-poster { object-fit: contain; }
.st-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .25s; pointer-events: none; z-index: 2; }
.st-stage.paused .st-scrim { background: rgba(0, 0, 0, .35); }
/* градиент под титром и кнопками: нижние 40 % сцены, виден вместе с титром или управлением */
.st-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
  opacity: 0; transition: opacity .3s;
}
.st-stage.shade .st-shade { opacity: 1; }
.st-gest { position: absolute; inset: 0; z-index: 3; touch-action: none; }

/* управление: скрыто, .ctl — видно 3 с */
.st-ovl { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .2s; }
.st-ovl.ctl { opacity: 1; }
.st-ovl.ctl .st-round, .st-ovl.ctl .st-col button { pointer-events: auto; }   /* только кнопки: зазоры колонки и сам слой — для жестов */
.st-round {
  width: 44px; height: 44px; border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--media-glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: transform var(--t-release);
}
.st-round:active { transform: scale(.92); transition-duration: var(--t-press); }
#stream-lowc-back { position: absolute; left: 16px; top: calc(var(--top) + 8px); }
#stream-exit, #stream-sound { position: absolute; top: auto; bottom: calc(var(--sab) + 23px); }
#stream-exit { left: 16px; }
#stream-sound { right: 16px; }
.st-col { position: absolute; right: 16px; bottom: calc(var(--sab) + 24px); display: flex; flex-direction: column; gap: 16px; align-items: center; }
.st-col[hidden] { display: none; }
/* Колонка действий: знаки приглушены — крупные и белые они спорили с видео (владелец 2026-09-07); нажатие и активный лайк — в полную силу */
.st-col button {
  width: 50px; height: 50px; border-radius: 50%; position: relative; color: rgba(255, 255, 255, .72);
  display: flex; align-items: center; justify-content: center;
  background: var(--media-glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: transform var(--t-release);
}
.st-col button[hidden] { display: none; }
.st-col button:active { transform: scale(.9); color: #fff; transition-duration: var(--t-press); }
.st-col button.on { color: var(--like); }
.st-col button .i { width: 27px; height: 27px; }   /* знак ~54 % круга: в колонке эфира иконки крупные, как в системных приложениях */
.st-col button.on .i { fill: currentColor; }
.st-col button.hit .i { animation: st-spring .4s cubic-bezier(.34, 1.56, .64, 1); }
.st-col button small {
  color: var(--media-text); --surface-2: var(--media-surface);
  position: absolute; right: -2px; top: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--surface-2); font-size: var(--type-caption); font-weight: 600; line-height: 18px; display: flex; align-items: center; justify-content: center;
}
.st-col button small:empty { display: none; }
@keyframes st-spring { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* титр момента: через 0,4 с после старта, 3 с; на той же нижней линии, что и колонка; текст на градиенте, без стекла */
.st-lower {
  position: absolute; left: 16px; right: 80px; bottom: calc(var(--sab) + 24px); z-index: 4; pointer-events: none;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  border: 0; background: none; padding: 8px 0; text-align: left; min-height: 44px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.st-lower.on { opacity: 1; transform: none; pointer-events: auto; }
.st-who { display: flex; align-items: center; gap: 6px; font-size: var(--type-body); font-weight: 600; }
.st-lheart { color: var(--like); fill: currentColor; stroke: none; opacity: 0; transition: opacity .2s; }
.st-lower.liked .st-lheart { opacity: 1; }
/* счётчики момента: часть титра (появляются и уходят вместе с ним), белые .85 с той же тенью, иконки 14, шаг 10 */
/* Аватар автора в титре: фото профиля (StreamItem.author.avatar_url), нет фото — элемент скрыт, остаётся только @handle */
.st-lava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }
.st-lava[hidden] { display: none; }
.st-lstats { display: block; margin-top: 4px; }
.st-lstats:empty { display: none; }
.st-lstat { gap: 10px; color: rgba(255, 255, 255, .85); }
.st-lstat .i-sm { width: 14px; height: 14px; }
.st-what { margin-top: 4px; font-size: var(--type-body); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-what:empty { display: none; }

/* пузырь комментария к секунде, слабая сеть, пауза, короткий тост, сердце двойного тапа */
.st-cbub {
  color: var(--media-text);
  position: absolute; left: 16px; bottom: calc(var(--sab) + 104px); max-width: 70%; z-index: 4; pointer-events: none;
  padding: 8px 12px; border-radius: var(--r-16); font-size: var(--type-caption);
  background: var(--media-glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.st-cbub.on { opacity: 1; transform: none; }
.st-cbub b { margin-right: 6px; }
/* Компактная боковая группа состояний; пояснения доступны в меню «ещё». */
.st-status { position: absolute; left: 16px; top: calc(var(--top) + 14px); z-index: 4; pointer-events: none; display: flex; flex-direction: column; gap: 8px; }
.st-status[hidden], .st-st[hidden] { display: none; }
.st-st { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(10,18,26,.8); color: #dbe5ec; }
.st-st .i { width: 16px; height: 16px; }
.st-st.net { color: #f1d087; }
.menu-status .row { color: var(--text-2); font-size: var(--type-body); }
.menu-status .row[hidden] { display: none; }
@keyframes st-blink { 50% { opacity: .2; } }
.st-stat {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; border-radius: 50%; z-index: 4; pointer-events: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: var(--media-glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .2s, transform .2s;
}
.st-stat.on { opacity: 1; transform: translate(-50%, -50%); }
.st-stat .i-lg { stroke-width: 2.5; }
.st-tag {
  color: var(--media-text);
  position: absolute; left: 50%; bottom: calc(var(--sab) + 120px); z-index: 5; pointer-events: none;
  padding: 10px 16px; border-radius: var(--r-pill); font-size: var(--type-caption);
  max-width: 88vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--media-glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  opacity: 0; transform: translateX(-50%) translateY(6px); transition: opacity .25s, transform .25s;
}
.st-tag.on { opacity: 1; transform: translateX(-50%); }
.st-tag.warn { color: #f1d087; }
/* пик: большое сердце в точке касания — единственная эмоциональная анимация кроме финала */
.st-heart {
  position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; z-index: 5; pointer-events: none;
  color: var(--like); fill: currentColor; stroke: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35));

}
@keyframes st-fly { 0% { transform: scale(.4); opacity: 0; } 35% { transform: scale(1.1); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: translateY(-40px) scale(.9); opacity: 0; } }

/* финал / нет эфира / ошибка / «Продолжить»: спокойный экран на ground со знаком, одна фраза, одна кнопка-капсула */
.st-end { position: absolute; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.st-end.on { display: flex; }
.st-end-card { width: min(320px, 100%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: boot-in .3s ease-out both; }
.st-end-card .mark { margin-bottom: 16px; }
.st-end-card h2 { margin: 0; font-size: var(--type-nav); font-weight: 600; }
.st-end-card p { margin: 0 0 16px; font-size: var(--type-body); color: var(--text-2); }
.st-end-card .btn { min-width: 180px; }
/* «Пока пусто»: под кнопкой 2–3 чипа тем из suggestions сервера — тап = новый эфир по теме */
.st-end-card .chips { justify-content: center; margin-top: 16px; }
.st-end-card .chips[hidden] { display: none; }
.st-resume { background: var(--surface); }
.st-resume .st-end-card p { font-size: var(--type-nav); color: var(--text); }

/* листы эфира: «ещё» (уточнение, действия, жалоба) и «что это» (описание, теги, комментарии) */
.refine, .cmin {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 4px 0 16px; flex: 0 0 auto;
  border-radius: var(--radius-control); background: var(--surface-2); color: var(--text-2);
}
.refine input, .cmin input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: var(--type-action); }
.refine input::placeholder, .cmin input::placeholder { color: var(--text-3); }
.refine button, .cmin button {
  width: 44px; height: 44px; border-radius: var(--radius-control); background: none; color: var(--link);
  display: flex; align-items: center; justify-content: center; transition: transform var(--t-release);
}
.refine button .i, .cmin button .i { width: 21px; height: 21px; }
.refine button:active, .cmin button:active { transform: scale(.92); transition-duration: var(--t-press); }
.st-cm { display: flex; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); font-size: var(--type-body); }
.st-cm:first-child { border-top: 0; }
.st-cm-t { min-width: 34px; padding-top: 2px; font-size: var(--type-caption); color: var(--text-3); font-variant-numeric: tabular-nums; }
.st-cm-t.now { color: var(--link); font-weight: 600; }
.st-cm.muted { color: var(--text-2); }

/* отладка: ?debug=1 или удержание кнопки звука ≥ 1,5 с */
.st-dbg {
  position: absolute; left: 12px; right: 12px; top: calc(var(--top) + 64px); max-height: 46dvh; overflow: auto; overscroll-behavior: contain; z-index: 30; pointer-events: none;
  display: none; padding: 8px 10px; border-radius: var(--r-12); background: rgba(0, 0, 0, .75); white-space: pre-wrap;
  font: 11px/1.4 ui-monospace, Menlo, monospace;
}
.st-dbg.on { display: block; }

@media (min-width: 700px) { .st-stage, .st-end { max-width: 480px; margin: 0 auto; left: 0; right: 0; } }

/* Disclosed controls: theme above, transport below, video remains clear at rest. */
.stream-topic { position: absolute; top: calc(var(--top) + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 128px); min-height: 44px; padding: 8px 16px; border-radius: 999px; background: rgba(10,18,26,.8); color: #fff; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: var(--type-caption); }
.stream-topic span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ovl.ctl .stream-topic, .st-ovl.ctl .stream-transport button { pointer-events: auto; }
.stream-transport { position: absolute; bottom: calc(var(--sab) + 16px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(10,18,26,.8); }
.stream-transport button { display: grid; place-items: center; width: 44px; height: 44px; color: white; border-radius: 50%; }
#stream-pause { width: 48px; height: 48px; background: rgba(255,255,255,.16); }
.st-col { bottom: calc(var(--sab) + 100px); gap: 12px; }
.st-col button { color: #f2f5f8; background: rgba(12,20,28,.75); }
.st-col button .i { width: 25px; height: 25px; }
.st-lower { bottom: calc(var(--sab) + 24px); transition: opacity .3s, transform .3s, bottom .25s ease; }
.st-ovl.ctl ~ .st-lower { bottom: calc(var(--sab) + 104px); }
@media (prefers-reduced-motion: reduce) { .st-lower { transition: none; } }
.st-shade { height: 48%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); }
.st-st .i { width: 16px; height: 16px; }
.st-cbub { bottom: calc(var(--sab) + 208px); }
.st-tag { bottom: calc(var(--sab) + 84px); white-space: normal; text-align: center; background: rgba(10,18,26,.94); }
.stream-guide { color: var(--text); position: absolute; z-index: 9; left: 16px; right: 16px; bottom: calc(var(--sab) + 16px); padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.stream-guide[hidden] { display: none; }
.stream-guide b { font-size: var(--type-title); }
.stream-guide p { font-size: var(--type-secondary); line-height: 1.5; color: var(--text-2); margin: 10px 0; }
.stream-guide .btn { width: 100%; margin-top: 8px; }
#stream-menu .sheet, #stream-what .sheet { max-height: 85%; }
#what-comments { min-height: 56px; }
.cmin { position: sticky; bottom: 0; min-height: 52px; border: 1px solid var(--line); }
.cmin button, .refine button { width: 44px; height: 44px; flex: 0 0 44px; }
.st-cm { line-height: 1.5; }
.st-cm-b { overflow-wrap: anywhere; min-width: 0; }
.st-ovl:not(.ctl) { visibility: hidden; }
@media (max-height: 620px) { .st-col { gap: 8px; } .st-col button { width: 44px; height: 44px; } .stream-guide { padding: 16px; } }

.st-stage:focus-visible { outline-offset: -3px; }

/* Details and discussion are separate views; long text stays readable. */
.what-details, .what-discussion { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.what-details[hidden], .what-discussion[hidden] { display: none; }
#what-title { font-size: var(--type-title); line-height: 1.3; overflow-wrap: anywhere; }
.what-description { margin: 0; color: var(--text-2); font-size: var(--type-action); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
#what-meta { margin: 0; line-height: 1.5; }
#what-tags:empty { display: none; }
#what-comments-title { position: sticky; top: 0; background: var(--surface); z-index: 1; padding-bottom: 8px; }
.st-cm-b { min-width: 0; overflow-wrap: anywhere; }
.what-discussion .cmin { background: var(--surface-2); flex-shrink: 0; }

/* One quiet comment above the caption, never across its author or controls. */
.st-cbub { max-width: min(280px, calc(100% - 96px)); padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(15,23,31,.86); box-shadow: 0 3px 12px rgba(0,0,0,.12); transform: translateY(5px); transition: opacity .22s ease, transform .22s ease; }
.st-cbub b { display: block; margin: 0 0 3px; font-size: 11px; line-height: 1.3; font-weight: 500; color: #b9c7d4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#stream-cbtext { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: var(--type-caption); line-height: 1.4; color: #f5f7fa; }
.st-ovl.ctl ~ .st-cbub, .st-stage.paused .st-cbub { opacity: 0; }

/* Personal feedback is brighter than the single pulse of existing likes. */
#stream-like .i { transition: color .18s, fill .18s; }
#stream-like.on { color: var(--like); }
#stream-like.hit .i { animation: st-like-press .42s ease-out; }
@keyframes st-like-press { 0% { transform: scale(.78); } 45% { transform: scale(1.18); } 75% { transform: scale(.96); } 100% { transform: scale(1); } }
.st-heart { width: 76px; height: 76px; margin: -38px 0 0 -38px; animation: st-heart-flight .72s cubic-bezier(.22,.7,.25,1) both; }
@keyframes st-heart-flight {
  0% { opacity: 0; transform: scale(.25) rotate(-18deg); }
  22% { opacity: 1; transform: scale(1.16) rotate(5deg); }
  38% { opacity: 1; transform: scale(1) rotate(0); }
  55% { opacity: 1; transform: translate(calc(var(--heart-x) * .12), calc(var(--heart-y) * .12 - 18px)) scale(.94); }
  88% { opacity: .95; transform: translate(var(--heart-x), var(--heart-y)) scale(.23); }
  100% { opacity: 0; transform: translate(var(--heart-x), var(--heart-y)) scale(.1); }
}
.st-tap-ring { position: absolute; z-index: 5; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; animation: st-touch .3s ease-out both; }
@keyframes st-touch { from { opacity: .75; transform: scale(.55); } to { opacity: 0; transform: scale(1.7); } }
#stream-like.hit { animation: st-like-shell .38s ease-out; }
#stream-like.hit::after { content: ''; position: absolute; inset: 5px; border: 1px solid var(--like); border-radius: 50%; pointer-events: none; animation: st-like-ring .38s ease-out both; }
@keyframes st-like-shell { 0% { transform: scale(.93); } 48% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes st-like-ring { from { opacity: .6; transform: scale(.7); } to { opacity: 0; transform: scale(1.5); } }
.st-social-heart { position: absolute; right: 28px; bottom: calc(var(--sab) + 28px); width: 19px; height: 19px; z-index: 3; color: #f2a1b5; fill: currentColor; stroke: none; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.25)); animation: st-social-rise 1.7s ease-out var(--delay) both; }
@keyframes st-social-rise { 0% { opacity: 0; transform: translateY(8px) scale(.65); } 18% { opacity: .65; } 70% { opacity: .45; } 100% { opacity: 0; transform: translate(var(--drift), -105px) scale(.85); } }
.st-lower.on .st-lstats.has-likes [data-stat=likes] svg { animation: st-social-pulse .6s ease-out; }
#stream-lstats.like-feedback [data-stat=likes] svg { color: var(--like); animation: st-like-press .42s ease-out; }
@keyframes st-social-pulse { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.13); color: #f4a8b5; } }
@media (prefers-reduced-motion: reduce) {
  .st-cbub, #stream-like .i { transition: none; }
  #stream-like.hit .i, .st-lower.on .st-lstats.has-likes [data-stat=likes] svg, #stream-lstats.like-feedback [data-stat=likes] svg { animation: none; }
  .st-heart { animation: st-heart-fade .35s linear forwards !important; }
  #stream-like.hit, #stream-like.hit::after { animation: none; }
  #stream-like.hit::after, .st-social-heart, .st-tap-ring { display: none; }
}
@keyframes st-heart-fade { from { opacity: 1; } to { opacity: 0; } }

/* Stable discussion height; only messages scroll, composer stays in reach. */
#stream-what.discussion-open .sheet { height: min(320px, 65%); max-height: calc(100% - 12px); overflow: hidden; gap: 8px; }
#stream-what .compact-header #what-comments-title { position: static; padding: 0; margin: 0; font-size: var(--type-title); }
.discussion-open .what-discussion { flex: 1; min-height: 0; gap: 8px; }
#what-comments { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#what-comments-status { margin: 0; font-size: var(--type-small); }
.discussion-open .cmin { position: static; min-height: 48px; margin: 0; }
.st-cm-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; }
.st-cm-empty .i-lg { width: 28px; height: 28px; margin-bottom: 2px; color: var(--text-3); }
.st-cm-empty b { font-size: var(--type-body); font-weight: 500; color: var(--text-2); }
.st-cm-empty span { font-size: var(--type-caption); color: var(--text-3); line-height: 1.4; }
.st-lower { text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 1px 8px rgba(0,0,0,.35); }

.discussion-open .cmin { height: 54px; min-height: 54px; padding: 4px 4px 4px 14px; }

/* Вертикальные жесты: прогресс без перемещения видеокадра, лист следует за пальцем. */
/* Жест «домой» — временный верхний слой над всеми элементами сцены. */
.st-home-hint { position: absolute; inset: 0; z-index: 40; pointer-events: none; opacity: 0; visibility: hidden; background: rgba(0,0,0,.24); transition: opacity .16s, visibility .16s; }
.st-home-hint.on { opacity: calc(.25 + var(--pull) * .75); visibility: visible; }
.st-home-hint .i-lg { position: absolute; left: 50%; top: calc(var(--top) + 2px); width: 64px; height: 64px; padding: 17px; box-sizing: border-box; border-radius: 50%; background: #1b2732; color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.2); transform: translate(-50%, calc(var(--pull, 0) * 16px)) scale(calc(.8 + var(--pull, 0) * .2)); transition: transform .12s, background .12s, color .12s; }
.st-home-hint.ready .i-lg { background: #fff; color: #121b23; }
#stream-what.gesture-preview { visibility: visible; pointer-events: none; transition: none; }
#stream-what.gesture-preview .sheet { transition: none; }
#stream-what.gesture-preview.returning { transition: opacity .18s ease-out; }
#stream-what.gesture-preview.returning .sheet { transition: transform .18s ease-out; }
.st-lstats.own-like [data-stat=likes] { color: var(--like); }
.st-lstats.own-like [data-stat=likes] svg { fill: currentColor; }

#menu-music[aria-pressed="false"] .i { opacity: .55; }

/* Only playback overlays are media-dark; sheets and empty states follow appearance. */
.st-stage { color: var(--media-text); --warn: #ebc773; }
.st-dbg { color: var(--media-text); }

.stream-actions { flex-shrink: 0; }
#stream-menu .sheet > .compact-header { flex-shrink: 0; }
#stream-menu .menu-status .row { font-size: var(--type-caption); }
#stream-menu .row { min-height: 48px; padding-block: 10px; font-size: var(--type-body); }

.st-cm-b { flex: 1; }
.comment-more { background: none; align-self: flex-start; }
.comment-more .i { width: 20px; height: 20px; }

/* A live card is the existing stream surface clipped to its home bounds. */
#screen-home.wave-stream-host { display: flex; }
.home-toolbar { z-index: 3; }
.home-scroll.wave-fullscreen { overflow: hidden; z-index: 6; }
.home-scroll > #screen-stream.on { top: var(--wave-full-top, 0px); bottom: auto; width: 100%; height: 100%; z-index: 6; }
#screen-stream.home-wave-preview { display: block; z-index: 2; pointer-events: none; touch-action: auto; background: transparent; }
#screen-stream.home-wave-preview > :not(.st-stage):not(#home-wave-label),
#screen-stream.home-wave-preview .st-stage > :not(video):not(.st-poster) { display: none; }
#screen-stream.home-wave-preview .st-stage { background: transparent; opacity: 0; }
#screen-stream.home-wave-preview.home-wave-ready .st-stage { opacity: 1; transition: opacity .65s ease; }
#screen-stream.home-wave-returning.home-wave-ready .st-stage { opacity: 1; transition: none; }
#screen-stream.home-wave-preview .st-video:not(.on) { visibility: hidden; }
#screen-stream.home-wave-preview:not(.home-wave-ready) .st-video { visibility: hidden; }
#screen-stream.home-wave-preview .st-stage.fit-contain .st-video { object-fit: cover; }
#home-wave-label { display: none; }
.home-wave-preview #home-wave-label { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: end; gap: 6px; padding: 16px; color: #fff; background: linear-gradient(transparent 45%, #00141bbf); opacity: 0; }
.home-wave-preview.home-wave-ready #home-wave-label { opacity: 1; transition: opacity .65s ease; }
#home-wave-label strong { font-size: 1.5rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 600; text-shadow: 0 1px 6px #0006; }
#home-wave-label span { font-size: .8125rem; line-height: 1.35; }
#home-wave-label .home-wave-expand { position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; display: grid; place-items: center; }
#home-wave-label .home-wave-expand .i { width: 28px; height: 28px; }
#home-wave-label > :not(.home-wave-expand) { padding-right: 28px; }
#screen-stream.home-wave-transition { display: block; z-index: 6; transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease, border-radius .3s ease; }
:root[data-access-held] #screen-stream.home-wave-preview { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { #screen-stream.home-wave-transition { transition: none; } }
/* One shared player: a saved/shared clip loops until an explicit new wave. */
.single-clip .stream-transport #stream-prev,
.single-clip .stream-transport #stream-next { display: none; }
.single-clip .stream-transport { padding: 4px; }
#stream-similar { color: var(--accent, #79caff); }
.st-cm.notification-highlight { border-radius: 12px; background: rgba(121,202,255,.12); outline: 1px solid rgba(121,202,255,.3); padding: 12px; }
@media (max-height: 520px) { .st-col { gap: 6px; bottom: calc(var(--sab) + 76px); } }

#stream-similar[aria-busy="true"] { opacity: .6; }
