/* eroflick — лента шортсов (главная). Токены и общие элементы — site.css. Макеты: Main (телефон), DFeed (десктоп). */
html:has(body.feedpage), body.feedpage { height: 100%; overflow: hidden; }
.desk { display: none; }

/* ===== Телефон: шапки нет, вкладки поверх видео ===== */
.feedpage .hdr { display: none; }
.tabs.over { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: center; gap: 22px;
             padding-top: calc(env(safe-area-inset-top) + 24px); pointer-events: none; }
.tabs.over button { pointer-events: auto; font-size: 15px; font-weight: 500; color: rgba(244,239,250,.6); display: flex; flex-direction: column; align-items: center; gap: 5px; text-shadow: 0 1px 3px #0008; }
.tabs button[hidden] { display: none; }   /* «Following» без подписок: display:flex выше перебивал hidden — вкладка была у всех */
/* Поиск — лупой справа в полосе вкладок (в нижнем меню вместо него Models) */
.tabs.over .srch { position: absolute; right: 12px; top: calc(env(safe-area-inset-top) + 16px); width: 40px; height: 40px; justify-content: center; color: #fff; }
.tabs.over .srch .i { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px #0009); }
/* Кам, на которого подписан: обводка и звёздочка у имени */
a.fav { box-shadow: inset 0 0 0 2px var(--acc); }
a.fav .fv { color: var(--acc); }
.tabs.over button[aria-current] { font-family: var(--dsp); font-size: 16px; font-weight: 700; color: #fff; }
.tabs.over button[aria-current]::after { content: ""; width: 20px; height: 3px; border-radius: 2px; background: var(--acc); }
/* Подписи — в одну строку («Pour toi», «Для тебя» переносились, бейдж раздела уезжал за левый край); не влезают — feed.js (fitTabs)
   ставит fit1 → fit2 → fit3: плотнее, ещё мельче, без бейджа раздела (разделы есть в шторке категорий) */
.tabs.over button, .tabs.over .osec { flex: none; white-space: nowrap; }
.tabs.over.fit1 { gap: 12px; }
.tabs.over.fit1 button { font-size: 14px; }
.tabs.over.fit1 button[aria-current] { font-size: 15px; }
.tabs.over.fit1 .osec { padding: 3px 8px; font-size: 11px; }
.tabs.over.fit2 { gap: 10px; }
.tabs.over.fit2 button { font-size: 13px; }
.tabs.over.fit2 button[aria-current] { font-size: 14px; }
.tabs.over.fit3 .osec { display: none; }

/* ===== Лента ===== */
.app { height: 100dvh; }
#feed { height: calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom)); overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
#feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom)); scroll-snap-align: start; scroll-snap-stop: always;
         display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* Сцена всегда тёмная (видео), в любой теме */
.stage { position: relative; width: 100%; height: 100%; overflow: hidden; background-color: #120c1f; background-size: cover; background-position: center; color: #F4EFFA;
         background-image: radial-gradient(110% 80% at 65% 18%, #8F5BFF55 0%, transparent 58%), radial-gradient(100% 75% at 20% 88%, #FF2E6344 0%, transparent 55%), linear-gradient(165deg, #2A1840, #0B0714); }
.stage video, .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }

.progress { position: absolute; top: calc(env(safe-area-inset-top) + 10px); left: 14px; right: 14px; display: flex; gap: 4px; z-index: 4; }
.progress i { flex: 1; height: 3px; border-radius: 2px; background: rgba(244,239,250,.25); overflow: hidden; }
.progress i b { display: block; height: 100%; width: 0; background: #FF2E63; }

.caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 60px 16px 18px; pointer-events: none;
           background: linear-gradient(to top, rgba(8,5,13,.94) 20%, rgba(8,5,13,.5) 65%, transparent 100%); }
.caption a, .caption .pill { pointer-events: auto; }
.studio { height: 52px; margin-bottom: 14px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border-radius: 13px;
          background: rgba(255,46,99,.16); border: 1px solid rgba(255,46,99,.5); backdrop-filter: blur(10px); }
.studio .thumb { width: 54px; height: 32px; border-radius: 6px; flex-shrink: 0; background: radial-gradient(120% 90% at 30% 20%, #6E2BFF 0%, transparent 60%), linear-gradient(160deg, #2C1A45, #100A1C); }
.studio b { display: block; font-size: 13px; color: #fff; line-height: 1.25; }
.studio small { font-size: 11px; color: rgba(244,239,250,.6); }
.studio .go { margin-left: auto; color: #FF6B93; font-weight: 700; }
.who { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.who b { font-size: 15px; color: #fff; }
.pill { height: 28px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 14px; border: 1px solid rgba(255,255,255,.45); font-size: 12px; font-weight: 700; color: #fff; }
.desc { font-size: 14px; line-height: 1.45; color: rgba(244,239,250,.92); margin-bottom: 11px; padding-right: 58px; }
.desc:empty { display: none; }
.caption .tags { display: flex; gap: 6px; flex-wrap: wrap; padding-right: 58px; }
.caption .tag { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 14px; background: rgba(244,239,250,.14); font-size: 12px; color: #E3DAF0;
                pointer-events: auto; border: 0; cursor: pointer; font-family: inherit; }
.caption .tag:first-child { background: rgba(255,46,99,.2); border: 1px solid rgba(255,46,99,.45); color: #FF9CB6; font-weight: 500; }

/* Панель действий справа (на телефоне — поверх видео) */
.rail { position: absolute; right: 12px; bottom: 150px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #0009; }
.act .ic { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.act svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px #0008); }
.act.like[aria-pressed="true"] svg { fill: var(--acc); stroke: var(--acc); }
.act.save[aria-pressed="true"] svg { fill: #fff; }
.act .n:empty { display: none; }
/* Аватар автора — верх столбца: фото (кадр лучшего ролика модели), обрезка по верхней трети — там лицо; нажатие — мини-профиль */
.rail .ava { width: 46px; height: 46px; flex: none; display: block; border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: var(--chip); box-shadow: 0 2px 10px #0006; }
.rail .ava img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 25%; }
/* «+» под аватаром — подписаться одним нажатием; подписан — ✓ */
.ava-w { position: relative; margin-bottom: 6px; }
.rail .fol { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
             display: flex; align-items: center; justify-content: center; background: var(--acc); color: #fff; font: 800 16px/1 system-ui, sans-serif; cursor: pointer; }
.rail .fol::before { content: '+'; }
.rail .fol[aria-pressed="true"] { background: #fff; color: var(--acc); font-size: 12px; }
.rail .fol[aria-pressed="true"]::before { content: '✓'; }
.rail .nav { display: none; }
.slide.has-studio .rail { bottom: 236px; }

.paused .stage::after { content: ""; position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; transform: translate(-50%,-50%); z-index: 2; pointer-events: none; border-radius: 50%;
  background: rgba(10,7,16,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5 18 12l-9 5.5Z' fill='%23fff'/%3E%3C/svg%3E") center/40px no-repeat; }

/* Встраивание RedGifs: у плеера свои подпись и кнопки — наши прячем, щит ловит свайпы */
.embed .shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.embed.interactive .shield { display: none; }
.embed .caption, .embed .progress { display: none; }
/* Наши кнопки (лайк, сохранить, поделиться) — и на встроенных: выше панели плеера RedGifs (она внизу справа), звук у плеера свой */
.embed .rail, .slide.embed.has-studio .rail { top: 96px; bottom: auto; gap: 10px; }
.embed .act.sound { display: none; }
.bottom a.ping { animation: ef-ping .5s ease-in-out 3; }
@keyframes ef-ping { 50% { transform: scale(1.22); color: var(--acc); } }

/* Кам-слот (каждый 9-й) */
.cam .stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center;
              background-image: radial-gradient(100% 80% at 50% 15%, #2BD9C455 0%, transparent 55%), radial-gradient(90% 70% at 15% 90%, #FF2E6355 0%, transparent 50%), linear-gradient(170deg, #101C2B, #0A0710); }
.cam .live { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 var(--dsp); letter-spacing: 1.3px; text-transform: uppercase; color: #C8BCDC; }
.cam h2 { font: 800 28px/1.1 var(--dsp); }
.cam .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(320px, 100%); }
.cam .grid span, .cams span { border-radius: 12px; background: radial-gradient(90% 70% at 70% 25%, #FF5E3A 0%, transparent 60%), linear-gradient(200deg, #2A1130, #0C0814); }
.cam .grid span { aspect-ratio: 3/4; }
.cam .grid span:nth-child(2), .cams span:nth-child(2) { background: radial-gradient(90% 70% at 25% 30%, #FFB03A 0%, transparent 55%), linear-gradient(190deg, #2B1B14, #0B0812); }
.cam .grid span:nth-child(3), .cams span:nth-child(3) { background: radial-gradient(100% 80% at 50% 15%, #2BD9C4 0%, transparent 55%), linear-gradient(170deg, #101C2B, #0A0710); }
.cam .grid span:nth-child(4), .cams span:nth-child(4) { background: radial-gradient(120% 90% at 30% 20%, #8F5BFF 0%, transparent 60%), linear-gradient(160deg, #241539, #0E0A18); }
.cam .grid a, .cams a { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background-color: #1a1230; }
.cam .grid a b, .cams a b { position: absolute; left: 8px; bottom: 8px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px #000; }
.cam .grid a::before, .cams a::before { content: "LIVE"; position: absolute; top: 8px; left: 8px; padding: 2px 6px; border-radius: 4px; background: #FF2E63; color: #fff; font: 700 10px/1.2 var(--body); }
/* платформа модели — справа сверху, напротив LIVE */
.cam .grid a .plat, .cams a .plat { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(10,7,16,.62); color: #fff; font: 700 10px/1.2 var(--body); font-style: normal; max-width: calc(100% - 56px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Телефон: живой вертикальный стрим на весь экран (Stripchat), тап — в комнату модели */
.cam.live-mode .stage { padding: 0; justify-content: flex-end; gap: 0; }
.cam.live-mode iframe, .cam.live-mode video { pointer-events: none; }
.cam.live-mode .tap { position: absolute; inset: 0; z-index: 2; }
.cam.live-mode .live { position: absolute; top: calc(env(safe-area-inset-top) + 68px); left: 14px; z-index: 3; padding: 6px 10px; border-radius: 8px; background: rgba(10,7,16,.6); color: #fff; pointer-events: none; }
/* Ник — как на платформе (капсом — только «LIVE»); при фильтре метка опускается ниже плашки фильтра (top 64–96), а не прячется за ней */
.cam .live .nick { text-transform: none; letter-spacing: .2px; }
#feed.filtered .cam.live-mode .live { top: calc(env(safe-area-inset-top) + 106px); }
.cam.live-mode .cta { position: relative; z-index: 3; margin: 0 16px 24px; align-self: stretch; }

/* Конец списка */
.end .stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.end h2 { font: 800 26px/1.15 var(--dsp); }
.end .muted { font-size: 14px; color: #9C8FB4; }

/* Плашка активного фильтра: на тёмной подложке — читается над светлым кадром и в светлой теме (было 20% розового, контраст ~1.5:1) */
.filter { position: fixed; top: calc(env(safe-area-inset-top) + 64px); left: 50%; transform: translateX(-50%); z-index: 21;
          height: 32px; max-width: calc(100vw - 32px); padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 16px;
          background: rgba(14,9,24,.82); border: 1px solid rgba(255,46,99,.7); color: #FFB3C7; font-size: 13px; font-weight: 700; white-space: nowrap; backdrop-filter: blur(10px); }
.filter span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* длинный запрос — с многоточием, ✕ на месте */
.filter[hidden] { display: none; }

/* Панели моментов и поиска */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(5,3,9,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-body { width: 100%; max-width: 520px; max-height: 70dvh; overflow-y: auto; background: var(--surface); color: var(--tx); border: 1px solid var(--line2);
              border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.author-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.author-ava { width: 58px; height: 58px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 2px solid var(--acc); background: var(--chip); }
.author-head > div { flex: 1; min-width: 0; }
.author-head .nm { display: block; font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author-head .nm i { font-style: normal; color: var(--acc); }
.author-head small { display: block; margin-top: 2px; font-size: 13px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.author-head button { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--chip); color: var(--tx2); }
.author-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.author-actions > * { height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.author-actions .follow { grid-column: 1 / -1; background: var(--acc); color: #fff; border: 0; }
.author-actions .follow[aria-pressed="true"] { background: var(--chip); color: var(--tx); border: 1px solid var(--line2); }
.author-actions [data-watch], .author-actions [data-profile] { background: var(--chip); color: var(--tx); border: 1px solid var(--line2); }
.sheet-head h3 { font-size: 20px; font-weight: 800; }
.sheet-head button { width: 36px; height: 36px; border-radius: 50%; background: var(--chip); color: var(--tx2); }
.sheet ul { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet li button { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 17px; background: var(--chip); border: 1px solid var(--line3); font-size: 13px; color: var(--tx2); }
.sheet li button span { font-size: 11px; color: var(--mute); }
.sheet li button:hover { border-color: var(--acc); color: var(--tx); }
.sheet-more { display: inline-block; margin-top: 14px; color: var(--acc); font-weight: 700; font-size: 14px; }
#searchbox input { width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line2); color: var(--tx); font: 16px var(--body); outline: 0; }
#searchbox input:focus { border-color: var(--acc); }
#searchbox { align-items: flex-start; }
#searchbox .sheet-body { border-radius: 0 0 20px 20px; padding-bottom: 24px; }

/* ===== Десктоп (макет DFeed) ===== */
@media (min-width: 1024px) {
  :root { --nav-h: 0px; }
  .desk { display: revert; }
  .feedpage .hdr { display: flex; }
  .tabs.over { display: none; }
  .app { height: calc(100dvh - var(--head-h)); display: grid; grid-template-columns: 216px minmax(0, 1fr) 292px; gap: 24px; padding: 0 28px; }
  #feed, .slide { height: calc(100dvh - var(--head-h)); }
  .slide { gap: 16px; padding: 20px 0; overflow: visible; }
  .stage { width: auto; height: 100%; aspect-ratio: 9 / 16; flex: 0 0 auto; border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line3); }
  .progress { top: 14px; left: 16px; right: 16px; }
  .caption { padding: 20px 18px 18px; background: linear-gradient(to top, rgba(8,5,13,.95) 12%, rgba(8,5,13,.55) 55%, transparent 100%); }
  .caption .studio { display: none; }
  .desc, .caption .tags { padding-right: 0; }

  .rail, .slide.has-studio .rail { position: static; align-self: flex-end; gap: 14px; padding-bottom: 12px; }
  .embed .rail { display: flex; gap: 14px; }
  .act { color: var(--tx3); font-size: 11px; text-shadow: none; gap: 5px; }
  .act .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--chip); border: 1px solid var(--line3); }
  .act svg { width: 23px; height: 23px; stroke: var(--tx2); stroke-width: 1.8; filter: none; }
  .act.save[aria-pressed="true"] svg { fill: var(--tx2); }
  .rail .ava { width: 52px; height: 52px; border-color: var(--acc); box-shadow: none; }
  .rail .ava:hover { transform: scale(1.06); }
  .rail .nav { display: flex; width: 52px; height: 52px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line2); align-items: center; justify-content: center; }
  .rail .nav.first { margin-top: 8px; }
  .rail .nav svg { width: 20px; height: 20px; fill: none; stroke: var(--tx2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .side { padding-top: 20px; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 16px; }
  .tabs.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; background: var(--chip); }
  .tabs.seg button { flex: 1; height: 32px; padding: 0 6px; border-radius: 9px; font-size: 13px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs.seg button[aria-current] { background: var(--acc); color: #fff; font-weight: 700; }
  /* «Following» — своей строкой над Fresh / For you: втроём в колонке не помещались (fr: «Pour toi» в две строки и вылезал из капсулы) */
  .tabs.seg button[data-tab="following"] { flex-basis: 100%; }
  /* Saved — на десктопе нижнего меню нет, вход в сохранённое здесь; число — сколько сохранено */
  .saved-link { height: 40px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line2);
                font-size: 14px; color: var(--tx2); transition: background .15s; }
  .saved-link:hover { background: var(--chip); color: var(--tx); }
  .saved-link .i { width: 18px; height: 18px; }
  .saved-link .n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--tx3); font-variant-numeric: tabular-nums; }
  .saved-link[aria-current] { border-color: var(--acc); color: var(--tx); font-weight: 500; }
  .saved-link[aria-current] .i { color: var(--acc); }
  .saved-link.ping .i { animation: ef-ping .5s ease-in-out 3; }
  .taste { display: flex; flex-direction: column; gap: 7px; }
  .taste li { position: relative; height: 40px; padding: 0 6px 0 13px; display: flex; align-items: center; gap: 6px; border-radius: 10px; background: var(--surface); border-left: 2px solid transparent; font-size: 14px; color: var(--tx2); transition: background .15s; }
  .taste li:hover { background: var(--chip); }
  .taste li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
  .taste li a::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }   /* вся строка — ссылка */
  .taste li .x { position: relative; width: 24px; height: 24px; flex: none; border: 0; border-radius: 12px; background: none; color: var(--tx4); font-size: 16px; line-height: 1; cursor: pointer; }
  .taste li .x:hover, .taste li .x:focus-visible { background: var(--line2); color: var(--tx); }
  @media (hover: hover) { .taste li .x { opacity: 0; } .taste li:hover .x, .taste li .x:focus-visible { opacity: 1; } }
  .taste li:first-child { background: var(--chip); border-left-color: var(--acc); color: var(--tx); font-weight: 500; }
  .taste li span { font-size: 12px; color: var(--tx4); }
  .taste li:first-child span { color: var(--acc); font-weight: 700; }
  .taste:empty::after { content: attr(data-empty); font-size: 13px; color: var(--tx4); }
  .note p { font-size: 13px; line-height: 1.5; color: var(--tx3); }
  .note .ghost { margin-top: 11px; width: 100%; height: 32px; border-radius: 8px; font-size: 13px; font-weight: 500; }
  #studio-card { background: var(--card2); border-color: var(--line2); padding: 16px; }
  .studio-row { display: flex; gap: 11px; align-items: center; }
  .studio-row .thumb { width: 84px; height: 48px; border-radius: 8px; flex-shrink: 0; background: radial-gradient(120% 90% at 30% 20%, #6E2BFF 0%, transparent 60%), linear-gradient(160deg, #2C1A45, #100A1C); }
  .studio-row b { display: block; font-size: 13px; line-height: 1.3; }
  .studio-row small { font-size: 12px; color: var(--tx4); }
  #studio-card .cta { width: 100%; margin-top: 13px; }
  .livecard { display: block; color: var(--tx); }
  .livecard:hover { border-color: var(--line3); }
  .cams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
  .cams span, .cams a { height: 116px; aspect-ratio: auto; border-radius: 9px; }
  .nearby { display: flex; flex-direction: column; gap: 8px; }
  .nearby li { display: flex; justify-content: space-between; font-size: 13px; color: var(--tx2); cursor: pointer; }
  .nearby li:hover { color: var(--acc); }
  .nearby li span { font-size: 12px; color: var(--mute); }
  .sheet { align-items: center; }
  /* Десктоп: автор — карточкой рядом с аватаром (позицию ставит feed.js), без затемнения; клик мимо — закрыть */
  .author-sheet { display: block; background: none; pointer-events: none; }
  /* Низкий экран ноутбука: столбец с аватаром не влезал — вверху срезался аватар; стрелки (есть колесо, клавиши, свайп) убираем */
  @media (max-height: 660px) { .rail, .slide.has-studio .rail { gap: 8px; padding-bottom: 0; } .rail .nav { display: none; } }
  .author-sheet .sheet-body { position: fixed; width: 330px; max-width: none; pointer-events: auto; border-radius: 16px; box-shadow: 0 14px 40px #0007; }
  .sheet-body, #searchbox .sheet-body { border-radius: 20px; }
  .filter { top: 76px; }
}
/* Узкий десктоп (1024–1279: iPad альбомно, окно ноутбука): левая колонка — уже, но есть. Раньше её прятали, а с ней пропадали
   For you / Fresh / Following, Saved и профиль вкусов (вкладок поверх видео и нижнего меню на десктопе нет) — QA 2026-10-06 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .app { grid-template-columns: 180px minmax(0, 1fr) 260px; gap: 16px; padding: 0 20px; }
  .side .home-head h1 { font-size: 18px; }
  /* ролик не шире своей колонки (высокое узкое окно): иначе столбец кнопок наезжал на колонки */
  .stage { max-width: calc(100% - 68px); }
  /* «Live right now»: плитка ~111 px — название платформы под меткой LIVE, а не поверх неё (название — целиком) */
  .cams a .plat { top: 30px; left: 8px; right: auto; }
}

/* SEO-блоки главной (серверный HTML): заголовок, популярные категории, свежие шортсы, «что такое eroflick» — левая колонка (десктоп);
   на телефоне — список категорий и текст в шторке Categories */
.home-head h1 { font-size: 22px; line-height: 1.12; font-weight: 800; }
.home-head p { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--tx4); }
.home-cats .cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.home-cats .cats a, .sheet li a { height: 32px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border-radius: 16px; background: var(--chip); border: 1px solid var(--line3); font-size: 13px; color: var(--tx2); }
.home-cats .cats a span, .sheet li a span { font-size: 11px; color: var(--mute); }
.home-cats .cats a:hover, .sheet li a:hover { border-color: var(--acc); color: var(--tx); }
.home-cats .more-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--acc); }
.home-fresh ul { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.home-fresh a { display: block; font-size: 13px; line-height: 1.35; color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-fresh a:hover { color: var(--acc); }
.side details.about summary, .about-sheet summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--tx); }
.side details.about p, .about-sheet p { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--tx2); }
.about-sheet { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
a.desc { display: block; color: rgba(244,239,250,.92); }
a.desc:hover { text-decoration: underline; }

/* Разделы (Straight / Gay / Trans) в шторке категорий на телефоне */
.sheet .orient-chips { display: flex; gap: 8px; margin: 0 0 12px; }
.sheet .orient-chips a { padding: 6px 14px; border-radius: 16px; background: var(--chip); font-size: 13px; font-weight: 600; color: var(--tx2); }
.sheet .orient-chips a[aria-current] { background: var(--acc); color: #fff; }

/* ===== Визуальная проверка 2026-10-06 ===== */
/* Телефон: вкладки — справа (слева сверху водяной знак плеера RedGifs) и на подложке; «Categories» есть в нижнем меню.
   Наши кнопки поверх светлого видео — на тёмных кругах */
@media (max-width: 1023px) {
  .tabs.over { justify-content: flex-end; gap: 18px; padding-right: 62px;   /* справа — лупа поиска (40 px) */ padding-bottom: 16px; background: linear-gradient(rgba(8,5,13,.55), transparent); }
  .tabs.over button { color: rgba(244,239,250,.85); text-shadow: 0 1px 3px #000c; }
  .tabs.over button[data-tab="categories"] { display: none; }
  .tabs.over .osec { pointer-events: auto; align-self: flex-start; padding: 3px 10px; border-radius: 12px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 700; }
  .embed .act .ic { background: rgba(10,7,16,.42); border-radius: 50%; }
}
/* Десктоп: заголовок в левой колонке — ровнее (было 4 строки) */
.home-head h1 { font-size: 20px; line-height: 1.15; text-wrap: balance; }
/* «Live right now»: название платформы целиком */
.cam .grid a .plat, .cams a .plat { max-width: calc(100% - 16px); }

/* Меню ⋯ слайда: телефон — шторка снизу (как категории), десктоп — карточка у кнопки (позицию ставит feed.js), без затемнения */
.menu-sheet .sheet-body { display: grid; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.menu-sheet .sheet-body > * { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px; border: 0; border-radius: 12px;
  background: none; color: var(--tx); font: inherit; font-size: 16px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.menu-sheet .sheet-body > [hidden] { display: none; }
.menu-sheet .sheet-body > :hover, .menu-sheet .sheet-body > :focus-visible { background: var(--chip); }
.menu-sheet svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.menu-sheet .sm-cancel { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0; color: var(--tx3); }
@media (min-width: 1024px) {
  .menu-sheet { display: block; background: none; }
  .menu-sheet .sheet-body { position: fixed; width: 290px; max-width: none; border-radius: 14px; padding: 6px; box-shadow: 0 14px 40px #0007; }
  .menu-sheet .sm-cancel { display: none; }
}
/* ⋯ в ряду кнопок: на телефоне — без подписи и ниже остальных (ряд не растёт до вкладок) */
@media (max-width: 1023px) { .act.more .ic { width: 40px; height: 40px; } }
/* Плашка «Not interested» / «Don't show …» поверх слайда, с «Undo» */
.nope { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px;
  background: rgba(8,5,13,.95); color: #fff; text-align: center; font-size: 16px; font-weight: 600; line-height: 1.4; }
.nope button { height: 42px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: none; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* Стрелки на кам-слоте и в конце ленты — только десктоп (на телефоне листают свайпом) */
@media (max-width: 1023px) { .rail.nav-only { display: none; } }

/* Счётчики в «Popular categories» и «Nearby shorts» — заметнее (на тёмной теме терялись) */
.home-cats li span, .cats li span, .nearby span, .nearby small { color: var(--tx3); font-variant-numeric: tabular-nums; }

/* Выбор языка в шторке категорий (телефон: в ленте нет шапки) */
.sheet-lab { margin: 18px 0 8px; font: 700 11px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--tx4); }
.lang-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-chips a { padding: 6px 12px; border-radius: 15px; background: var(--chip); color: var(--tx2); font-size: 13px; }
.lang-chips a[aria-current] { background: var(--acc); color: #fff; font-weight: 700; }
/* Тема — там же (на телефоне в ленте шапки нет); кнопку оживляет общий скрипт layout.php по data-theme-toggle */
.sheet-theme { margin-top: 14px; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 17px;
               background: var(--chip); border: 1px solid var(--line3); color: var(--tx2); font-size: 13px; }
.sheet-theme .i { width: 16px; height: 16px; }
:root[data-theme="dark"] .sheet-theme .i-moon, :root[data-theme="light"] .sheet-theme .i-sun { display: none; }

/* Пилюля тега у автора: название на языке страницы бывает длинным («#Любительское порно») — в одну строку, с многоточием */
.who .pill { display: block; min-width: 0; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
