/* Лента — по одному событию на экран (листать вверх-вниз), карточка списка (главная), подробности и «Поделиться». */
.feed-screen { position: fixed; inset: 0 0 var(--tabbar-h); max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; background: var(--bg); }
.feed-top { position: relative; z-index: 5; flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px; background: var(--bg); }
.feed-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.feed-title b { font: 700 18px var(--f-body); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-title small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo-chip { flex: none; display: flex; align-items: center; gap: 4px; max-width: 36%; min-height: 36px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.geo-chip svg { color: var(--accent); }
.f-btn svg { width: 20px; height: 20px; }
.feed-xp { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; }
.feed-xp i { display: block; height: 100%; width: 0; background: var(--lavender); transition: width .6s; }
/* вкладки раздела: «Всё · Выставки · Кино …» */
.rumor-tabs { flex: none; display: flex; gap: 8px; padding: 2px 16px 10px; overflow-x: auto; scrollbar-width: none; background: var(--bg); }
.rumor-tabs::-webkit-scrollbar { display: none; }
.rumor-tabs button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.rumor-tabs button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Каждый экран ленты — ровно одно событие или одна вставка; «прилипают» при прокрутке. */
.feed { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.feed > section, .feed > article { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.feed > .loading { height: 100%; }

/* ---------- карточка события (список — главная): афиша с «когда» и «сколько идти», ниже название, цена, место, метки, «Хочу» ---------- */
.card { position: relative; flex: none; display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid color-mix(in srgb, var(--coral) 45%, var(--line)); cursor: pointer; transition: transform .15s var(--ease); }
/* жёсткая тень без размытия — как у вырезанной из картона карточки (вариант Stitch) */
.card:not(.full) { box-shadow: 3px 3px 0 #06070a; }
.card:active { transform: scale(.99); }
.card.rare { border-color: var(--gold); }
/* «Социальный клей» — мятная рамка со свечением: событие, куда идут делать вместе, видно сразу.
   Свечение — готовый слой, пульсирует только прозрачность (тень каждый кадр телефон бы перерисовывал). */
.card.glue { border: 2px solid var(--mint); }
.card.glue:not(.full) { box-shadow: 3px 3px 0 #06070a, 0 0 0 4px color-mix(in srgb, var(--mint) 22%, transparent); }
.card.glue::before, .card.glue::after { content: ""; position: absolute; z-index: 4; inset: 0; border-radius: inherit; pointer-events: none; }
.card.glue::after { box-shadow: inset 0 0 26px 4px color-mix(in srgb, var(--mint) 75%, transparent); animation: glue-glow 2.6s ease-in-out infinite; }
@keyframes glue-glow { 50% { opacity: .35; } }
/* во весь экран рамок нет: на телефонах со скруглённым экраном углы рамки срезаются — «клей» видно по метке */
.card.full.glue::after { content: none; }
@media (prefers-reduced-motion: reduce) { .card.glue::after { animation: none; } }
.ev-ph { position: relative; aspect-ratio: 16 / 11; background: var(--raised); overflow: hidden; }
.ev-ph .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ev-ph .avatar { position: absolute; left: 50%; top: 40%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover; }
/* Нет картинки — спокойная плашка с рубрикой. */
.ev-word { display: none; }
.card.no-media .ev-word { position: absolute; inset: 0 0 40%; display: grid; place-items: center; font: 800 34px/1 var(--f-body); letter-spacing: -.02em; text-transform: lowercase; color: color-mix(in srgb, var(--ink) 16%, transparent); }
.card:not(.full) .ev-ph { aspect-ratio: 16 / 9; }
.ev-pills { position: absolute; z-index: 2; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ev-when { max-width: 100%; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #b8394b; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-dist { display: inline-flex; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(14, 16, 21, .78); color: var(--ink); white-space: nowrap; }
.ev-dist svg { width: 13px; height: 13px; }
.ev-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.ev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ev-head h2 { flex: 1; min-width: 0; font-size: 20px; }
.ev-price { flex: none; margin: 0; text-align: right; font-size: 16px; font-weight: 800; color: var(--mint); white-space: nowrap; }
.ev-price small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev-acts { display: flex; gap: 8px; margin-top: 2px; }
.ev-acts .save { flex: 1; height: 46px; border-radius: 12px; font-size: 15px; font-weight: 700; background: var(--lavender); color: var(--on-accent); box-shadow: 3px 3px 0 #06070a; }
.ev-acts .save.on { background: var(--raised); color: var(--ink); box-shadow: none; }
/* кнопка с жёсткой тенью вдавливается в свою тень */
.ev-acts .save:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #06070a; }
.ev-acts .share { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); }
.ev-why { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.card h2 { margin: 0; font: 800 22px/1.15 var(--f-body); letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-where { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.ev-where svg { flex: none; color: var(--accent); }
.ev-where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-where b { font-weight: 600; color: var(--ink); }
.ev-tags { min-width: 0; display: flex; gap: 6px; overflow: hidden; }
.ev-tags .tag { background: var(--raised); }
.ev-tags .tag.hot { background: var(--coral); }
.ev-tags .tag.free { background: var(--ink); }
.ev-tags .tag.glue, .tag.glue { background: var(--mint); color: #1c1719; font-weight: 700; }
.act { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; height: 40px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--raised); color: var(--ink); transition: transform .15s var(--ease), background .15s; }
.act svg { width: 18px; height: 18px; }
.act { transition: transform .4s var(--spring), background .15s; }
.act:active { transform: scale(.9); transition-duration: .06s; }
.act.save.on svg { animation: beat .35s var(--ease); }
@keyframes beat { from { transform: scale(.6) rotate(-8deg); } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- лента: событие во весь экран ---------- */
.card.full { border: 0; border-radius: 0; background: var(--bg); cursor: default; touch-action: pan-x pan-y; user-select: none; }
.card.full:active { transform: none; }
.card.full .ev-ph { position: absolute; inset: 0; aspect-ratio: auto; background: var(--surface); }
.card.full h2 { font-weight: 700; }
.card.full .ev-ph .media { object-position: center 25%; }
/* Широкое фото — целиком сверху, под ним спокойный фон (без размытой копии). */
.card.full.fit .ev-ph .media { object-fit: contain; object-position: center; height: calc(100% - 250px); }
.card.full.no-media .ev-ph { aspect-ratio: auto; }
.card.full.no-media .ev-word { place-items: start center; padding-top: 30%; font-size: clamp(48px, 16vw, 84px); }
/* Затемнение снизу — только чтобы читался текст. */
/* сверху — лёгкое затемнение под строку шапки (как в Reels), снизу — под текст */
.ev-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, .42) 0, rgba(0, 0, 0, 0) calc(96px + var(--safe-t))), linear-gradient(to top, rgba(28, 23, 25, .97) 0, rgba(28, 23, 25, .88) 30%, rgba(28, 23, 25, 0) 60%); }
.ev-info { position: absolute; left: 16px; right: 84px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.ev-info .ev-tags { flex-wrap: wrap; overflow: visible; }
.ev-when2 { font-size: 14px; font-weight: 600; color: var(--accent); }
.card.full h2 { font-size: 26px; line-height: 1.15; -webkit-line-clamp: 3; }
.ev-sub { margin: 0; font-size: 15px; line-height: 1.35; color: color-mix(in srgb, var(--ink) 92%, transparent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.full .ev-where { font-size: 14px; color: var(--ink); }
/* рейтинг площадки — жёлтой звездой перед названием места */
.ev-rate { color: var(--amber) !important; font-weight: 800 !important; }
.d-rate { color: var(--accent); font-weight: 700; }
.ev-info, .ev-shade { transition: opacity .2s; }
.rail { position: absolute; right: 8px; bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.rail .act { flex-direction: column; gap: 4px; width: 68px; height: auto; padding: 0; background: none; font-size: 11.5px; font-weight: 600; }
.rail .act svg { width: 50px; height: 50px; padding: 13px; border-radius: 50%; background: rgba(14, 16, 21, .78); border: 1px solid var(--line); }
.rail .act.save.on { background: none; color: var(--ink); }
.rail .act.save.on svg { background: var(--coral); border-color: var(--coral); color: var(--on-accent); }
.feed-hint { position: absolute; z-index: 6; left: 50%; top: 40%; transform: translate(-50%, -50%); width: min(300px, calc(100% - 48px)); padding: 14px 16px; border-radius: 16px; text-align: center; font-size: 14px; line-height: 1.45; font-weight: 600; background: var(--scene); color: #f4efe6; box-shadow: 3px 3px 0 var(--coral); pointer-events: none; transition: opacity .3s; }
.feed-hint b { display: block; font-size: 24px; line-height: 1; margin-bottom: 4px; animation: hint-down 1.4s ease-in-out infinite; }
.feed-hint.out { opacity: 0; }
@keyframes hint-down { 50% { transform: translateY(6px); } }

/* ---------- вставки Кости: вопрос, прогресс, «в планах уже 6» ---------- */
.break { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: var(--bg); }
.asker { flex: none; display: grid; place-items: center; }
.break-box { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.break-box > small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lavender); }
.break-box h2 { margin: 0; font: 700 26px/1.2 var(--f-body); }
.break-box p { margin: 0; font-size: 14px; }
.break-box .mute, .mute { color: var(--muted); font-size: 13px; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices button { min-height: 56px; padding: 12px; border-radius: 16px; font-size: 17px; font-weight: 600; background: var(--raised); border: 1px solid var(--line); transition: transform .15s var(--ease), background .2s; }
.choices button:active { transform: scale(.97); }
.choices button.picked { background: var(--lavender); color: var(--on-accent); border-color: var(--lavender); }
.choices button:disabled:not(.picked) { opacity: .45; }
.choices .pill { min-height: 52px; }
.break .went-pick { margin-top: 0; }
.break .went-pick button:disabled:not(.picked), .break .went-more button:disabled:not(.picked) { opacity: .4; }
.break .went-pick .pill.picked { outline: 2px solid var(--ink); }

/* финал ленты и «фильтры спрятали всё» */
.end { display: grid; place-items: center; padding: 24px; text-align: center; background: var(--bg); }
.end-box h2 { margin: 0 0 8px; font: 700 26px/1.2 var(--f-body); }
.end-box p { margin: 0 0 16px; color: var(--muted); }
.end-box .ghost-pill { margin-left: 6px; }
.sum { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.sum-row { display: flex; justify-content: center; gap: 22px; }
.sum-row span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.sum-row b { font-size: 24px; color: var(--ink); }

/* ---------- страница события (шторка во весь экран) ---------- */
.detail .sheet { height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; padding-top: 0; padding-bottom: 0; gap: 14px; }
.detail .grip { display: none; }
.detail .sheet-x { top: calc(6px + var(--safe-t)); margin: calc(10px + var(--safe-t)) -6px -50px 0; background: #f4efe6; color: var(--scene); border: 2px solid var(--scene); box-shadow: 2px 2px 0 var(--coral); }
/* -14px — съесть зазор после невидимой кнопки «закрыть»: фото упирается в самый верх экрана */
.d-hero { position: relative; flex: none; margin: -14px -18px 0; height: 44dvh; min-height: 240px; background: var(--raised); overflow: hidden; }
.d-ph { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 0, rgba(25, 28, 37, 0) 40%); }
.d-when { position: absolute; z-index: 1; left: 16px; top: calc(16px + var(--safe-t)); padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #b8394b; color: #fff; }
.detail .sheet h2 { margin: -8px 0 0; padding-right: 0; font: 800 28px/1.12 var(--f-body); letter-spacing: -.01em; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.d-tags .tag { padding: 6px 12px; font-size: 13px; }
.d-tag { margin: 0; color: var(--muted); }
.d-rows { display: flex; flex-direction: column; gap: 2px; }
.d-rows > * { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14px; }
.d-rows > * + * { border-top: 1px solid var(--line); }
.d-rows svg { flex: none; width: 18px; height: 18px; color: var(--lavender); }
.d-rows span { flex: 1; min-width: 0; }
.d-rows a svg:last-child { color: var(--muted); }
/* подпись строки: «Где», «Вход», «Откуда» — сразу видно, что за место и откуда взято событие */
.d-rows small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.d-rows > * { padding: 6px 0; }
.d-desc { margin: 0; font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--ink) 82%, transparent); white-space: pre-line; }
.d-friends { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 16px; text-align: left; background: var(--raised); }
.d-friends span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.d-go { background: var(--coral); border: 2px solid var(--ink); box-shadow: var(--hard); }
.d-friends small { color: var(--muted); font-size: 12.5px; }
.d-friends > svg { width: 20px; height: 20px; }
.d-say { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--raised); }
.d-say p { margin: 0; font-size: 14px; line-height: 1.4; }
.d-say small { display: block; color: var(--lavender); font-weight: 700; }
.d-actions { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 10px; align-items: center; margin: 4px -18px 0; padding: 12px 18px calc(12px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.d-actions .d-save { flex: 1; min-height: 56px; font-size: 16px; background: var(--lavender); color: var(--on-accent); }
.d-actions .d-save.on { background: var(--raised); color: var(--ink); border: 1px solid var(--line); }
/* боковые кнопки — значок с подписью: иначе «поделиться» и «маршрут» путаются */
.d-ico { flex: none; width: 64px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); color: var(--ink); }
.d-ico svg { width: 20px; height: 20px; }
.d-ico small { font-size: 10.5px; font-weight: 700; line-height: 1; }
/* сердечко «в любимые места» у площадки */
.fav-btn { flex: none; margin-left: auto; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.fav-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn.on { background: var(--coral); border-color: var(--coral); color: var(--on-accent); }
.fav-btn.on svg { fill: currentColor; }
.fav-btn.big { width: auto; height: auto; margin: 0; gap: 8px; display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; font: 600 14px var(--f-body); }

/* ---------- «Поделиться» и «Позвать» ---------- */
.share-head { display: flex; align-items: center; gap: 12px; }
.share-head h2 { margin: 0; font: 700 22px/1.2 var(--f-body); }
.share-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.share-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border-radius: 16px; text-align: left; background: var(--raised); transition: transform .15s var(--ease); }
.share-row:active { transform: scale(.98); }
.share-row b { font-size: 22px; }
.share-row span { display: flex; flex-direction: column; font-weight: 600; }
.share-row small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.card-pic { flex: none; display: grid; place-items: center; min-height: 120px; border-radius: 16px; background: var(--bg); }
.card-pic img { display: block; width: auto; max-width: 100%; max-height: 36dvh; border-radius: 16px; }
.card-pic i { font-style: normal; color: var(--muted); font-size: 13px; }
.invite-pic { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; margin: 14px 0 4px; border-radius: 14px; border: 1px solid var(--line); }
.invite-pic[hidden] { display: none; }

/* ---------- «Сходил?»: оценка ---------- */
.went-pick { display: flex; gap: 8px; margin-top: 16px; }
.went-pick .pill { flex: 1; flex-direction: column; gap: 2px; padding: 12px 6px; font-size: 14px; }
.went-pick .pill b { font-size: 24px; line-height: 1; }
.went-pick .rate-i { color: var(--on-accent); }
.went-pick .rate-i svg { width: 28px; height: 28px; }
.went-more { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.went-fav { display: flex; justify-content: center; margin-top: 10px; }
.rate-i { display: inline-grid; place-items: center; }
.rate-i svg { width: 1.15em; height: 1.15em; }
.rate-fire { color: var(--coral); }
.rate-ok { color: var(--ink); }
.rate-meh { color: var(--muted); }

/* ---------- лента: вес при листании ---------- */
/* Анимация привязана к прокрутке (scroll-driven): афиша въезжающей карточки чуть «оседает» из увеличения,
   текст и кнопки поднимаются следом — листание ощущается тяжёлым, как стопка постеров. Где не умеют — без неё. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card.full .ev-ph .media { animation: feed-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .card.full .ev-info, .card.full .rail { animation: feed-rise linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
  }
}
@keyframes feed-settle { from { transform: scale(1.1); } }
@keyframes feed-rise { from { opacity: 0; transform: translateY(48px); } }
/* двойной тап — гробик «Хочу» выскакивает под пальцем и тает */
.tap-burst { position: fixed; z-index: 30; width: 96px; height: 96px; margin: -48px 0 0 -48px; display: grid; place-items: center; pointer-events: none; color: var(--coral); animation: tap-burst .7s var(--spring) forwards; }
.tap-burst svg { width: 72px; height: 72px; stroke-width: 2.4; filter: drop-shadow(3px 3px 0 #06070a); }
@keyframes tap-burst { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 35% { transform: scale(1.15) rotate(6deg); opacity: 1; } 60% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: translateY(-40px) scale(.9); opacity: 0; } }

/* ---------- лента на весь экран: шапка, вкладки и меню — прозрачные плашки поверх события, а не полосы ----------
   Каждая штука — своя тёмная полупрозрачная плашка: читается и на фото, и на бумажных вставках. */
.feed-screen { inset: 0; }
/* Шапка как в Reels: одна тонкая строка прямо на фото — значки и название без плашек, читаются за счёт тени и затемнения сверху. */
.feed-top { position: absolute; top: 0; left: 0; right: 0; gap: 2px; padding: calc(4px + var(--safe-t)) 6px 0; background: none; pointer-events: none; }
.feed-top > * { pointer-events: auto; }
.feed-top .icon-btn { width: 44px; height: 44px; background: none; color: #fff; border: 0; box-shadow: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.feed-top .icon-btn svg { width: 22px; height: 22px; }
.feed-title { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; background: none; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.feed-title b { font: 700 19px/1.1 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-tab { font-weight: 600; opacity: .8; }
.ft-v { flex: none; font-style: normal; font-size: 13px; opacity: .85; }
.feed-top .f-btn { margin-left: auto; }
.feed-top .badge { top: 6px; right: 4px; }
/* шторка «что показывать»: что за лента, рубрики, откуда считать расстояния */
.ft-info { margin: -4px 0 0; color: var(--muted); font-size: 13.5px; }
.ft-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--raised); color: var(--ink); }
.ft-tabs button.on { background: var(--accent); color: var(--on-accent); }
.feed-screen .tabbar { bottom: calc(8px + var(--safe-b)); width: calc(100% - 32px); padding: 3px; gap: 2px; border-radius: 20px; background: rgba(28, 23, 25, .62); border: 0; box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.feed-screen .tab { min-height: 44px; gap: 1px; font-size: 10px; color: rgba(244, 239, 230, .72); border-radius: 16px; }
.feed-screen .tab svg { width: 20px; height: 20px; }
.feed-screen .tab.on { color: #1c1719; }
/* текст события и кнопки справа — над меню, а не под ним */
.feed-screen .ev-info { bottom: calc(80px + var(--safe-b)); }
.feed-screen .rail { bottom: calc(82px + var(--safe-b)); }
.feed-screen .break { padding-bottom: calc(80px + var(--safe-b)); }
/* реплика героя под событием в ленте — тёмная плашка с его портретом */
.ev-say { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; max-width: 92%; padding: 6px 12px 6px 6px; border-radius: 16px 16px 16px 4px; font-size: 13px; line-height: 1.3;
  background: rgba(14, 12, 14, .62); color: #f4efe6; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ev-say img { flex: none; width: 34px; height: 34px; object-fit: contain; object-position: 50% 15%; }
.ev-say b { color: var(--amber); font-weight: 700; }

/* ---------- подробности из ленты — шторка до середины, как комментарии в Instagram (peek.js) ----------
   Событие над шторкой сжимается в свободное место (--peek), текст и кнопки ленты прячутся; шапка и меню — тоже. */
.card.full.peeked .ev-ph { bottom: auto; height: var(--peek, 100%); }
.card.full.peeked .ev-ph .media { height: 100%; object-fit: contain; object-position: center; }
.card.full.peek-anim .ev-ph { transition: height .32s var(--ease); }
.card.full.peeked :is(.ev-info, .ev-shade, .rail) { opacity: 0; pointer-events: none; }
.feed-screen.peeking :is(.feed-top, .tabbar, .feed-xp) { opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-wrap.peek { background: none; animation: none; }
.detail.peek .sheet { animation: none; padding-top: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); }
.detail.peek.full .sheet { border-radius: 0; padding-top: var(--safe-t); }
/* за что тянуть — полоска сверху; фото события не повторяем (оно над шторкой), «когда» — строкой */
.detail.peek .grip { display: block; position: sticky; top: 0; z-index: 4; width: 100%; height: 22px; margin: 0 -18px; padding: 0 18px; background: var(--bg); }
.detail.peek .grip::after { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 4px; margin-left: -20px; border-radius: 9px; background: var(--line); }
.detail.peek .sheet-x { top: 4px; margin: 0 -6px -40px 0; width: 36px; height: 36px; }
.detail.peek .d-hero { height: auto; min-height: 0; margin: 0; background: none; overflow: visible; }
.detail.peek .d-ph { display: none; }
.detail.peek .d-hero::after { display: none; }
.detail.peek .d-when { position: static; display: inline-block; }
.detail.peek h2 { margin-top: 0; padding-right: 44px; }
