/* eroflick — вебкамы: каталог /webcams/ (DLive / MLive) и страница модели /webcam/<ник>/ (DCam / MCam). Токены — site.css. */
.live-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.online { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border-radius: 14px; background: var(--acc-bg); color: var(--acc-soft);
          font: 700 13px var(--body); letter-spacing: 0; }
.online .dot { background: var(--acc); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters label { height: 38px; padding: 0 4px 0 12px; display: flex; align-items: center; gap: 6px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); font-size: 13px; }
.filters label span { color: var(--tx3); white-space: nowrap; }   /* tx3: контраст ≥ 4.5 (tx4 — 4.1); nowrap — «並び替え», «言語» не рвать по слогам */
.filters select { height: 34px; max-width: 170px; border: 0; background: transparent; color: var(--tx); font: 700 13px var(--body); outline: 0; cursor: pointer; }
.filters select option { background: var(--surface); color: var(--tx); }

.genders { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.genders .sep { width: 1px; height: 22px; background: var(--line2); margin: 0 4px; }
.tagchip { height: 30px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 15px; border: 1px solid var(--line2); color: var(--tx2); font-size: 13px; }
.tagchip:hover, .tagchip.on { border-color: var(--acc); color: var(--acc-ink); }
.empty { padding: 30px 0; color: var(--tx3); }
.empty a { color: var(--acc-ink); font-weight: 700; }

/* Сетка карточек 4:3 */
.camgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.camcard { position: relative; aspect-ratio: 4/3; border-radius: 13px; overflow: hidden; background: #1a1230 center/cover no-repeat; color: #fff; }
.camcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,5,13,.85) 8%, transparent 50%); }
.camcard:hover { box-shadow: 0 0 0 2px var(--acc); }
.camcard .badges, .stream .badges { position: absolute; top: 8px; left: 8px; z-index: 1; display: flex; gap: 5px; }
.camcard .badges { right: 8px; flex-wrap: wrap; row-gap: 4px; }   /* узкая карточка (320 px, язык не en): HD и язык — второй строкой, а не за край */
.plat { padding: 2px 7px; border-radius: 5px; background: rgba(10,7,16,.62); color: #fff; font: 700 10px/1.4 var(--body); }
.camcard .cap { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; display: flex; align-items: baseline; gap: 6px; }
.camcard .cap b { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camcard .cap small { font-size: 12px; color: rgba(244,239,250,.85); white-space: nowrap; }
.camcard.big .cap b { font-size: 18px; }

/* Комната модели */
.room { display: grid; gap: 20px; }
.stream { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #120c1f center/cover no-repeat; box-shadow: var(--shadow), 0 0 0 1px var(--line3); }
.room.vertical .stream { aspect-ratio: 9/16; max-width: 420px; margin: 0 auto; }
.stream iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-go { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,7,16,.45); color: #fff; font: 800 20px var(--dsp); }
.room-info { display: flex; flex-direction: column; gap: 14px; }
.room-info .who { display: flex; align-items: center; gap: 12px; }
.room-info .ava { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: #1a1230 center/cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--acc); }
.room-info h1 { font-size: 28px; line-height: 1.05; font-weight: 800; word-break: break-word; }
.room-info .sub { margin-top: 3px; }
.now { font-size: 14px; color: var(--tx2); }
.now b { color: var(--tx); }
.cta.big { height: 52px; border-radius: 14px; font-size: 16px; font-weight: 800; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.row2 .btn { height: 42px; min-width: 0; padding: 0 10px; white-space: normal; text-align: center; line-height: 1.15; }   /* «Отправить чаевые» на 320 px — в две строки, а не шире экрана */
.row2 > :nth-child(odd):last-child { grid-column: 1 / -1; }   /* нечётная последняя (Follow, Tip, Next) — на всю ширину */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facts div { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 1px; }
.facts dt { font-size: 12px; color: var(--tx3); } .facts dd { font-size: 15px; font-weight: 700; }
.room-info .tags .tag { height: 30px; font-size: 13px; }
.offline { padding: 10px 0 6px; }

@media (min-width: 700px) { .camgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .camgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .camgrid.small { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .camcard.big { grid-column: span 2; grid-row: span 2; }
  .room { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  .room.vertical { grid-template-columns: 420px 1fr; }
  .room.vertical .stream { margin: 0; }
}

/* Свой плеер живого потока (Stripchat, BongaCams): видео, прозрачная ссылка в комнату поверх, кнопка звука */
.stream video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stream .tap { position: absolute; inset: 0; z-index: 1; }
.stream .badges { z-index: 2; }
.unmute { position: absolute; right: 12px; bottom: 12px; z-index: 2; height: 36px; padding: 0 14px; border-radius: 18px; background: rgba(10,7,16,.7); color: #fff; font-weight: 700; font-size: 13px; }
.unmute.on { background: var(--acc); }

/* Переход в комнату (деньги — только на переходе по партнёрской ссылке): весь стрим кликабелен, плашка снизу, на телефоне — закреплённая кнопка */
.stream .tap { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.stream .unmute { z-index: 3; }
.gobar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
         border-radius: 14px; background: rgba(10,7,16,.72); backdrop-filter: blur(8px); color: #fff; }
.gobar b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gobar span { flex-shrink: 0; height: 36px; padding: 0 14px; display: flex; align-items: center; border-radius: 10px; background: var(--acc); font-weight: 800; font-size: 14px; }
.gobar:hover span { background: var(--acc-hi); }
.stream:has(.unmute) .gobar { right: 110px; }
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); z-index: 19; height: 52px;
              display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--acc); color: #fff; font-weight: 800; font-size: 16px;
              box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.cams-page:has(.sticky-cta) { padding-bottom: 90px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } .cams-page:has(.sticky-cta) { padding-bottom: 56px; } }
.stream .snap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Chaturbate: живой снимок + кнопка «смотреть» по центру */
.stream .snap.live { z-index: 0; }
.stream-go { z-index: 2; flex-direction: column; gap: 10px; background: rgba(10,7,16,.25); font-size: 18px; }
.stream-go span { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding-left: 6px; background: var(--acc); font-size: 30px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.stream-go:hover span { background: var(--acc-hi); }
/* Вертикальный стрим: рамка по пропорциям потока (обычно 3:4), видео без полос; звук — вверху справа, плашка — во всю ширину */
.room.vertical .stream video { object-fit: cover; }
.stream .unmute { top: 12px; right: 12px; bottom: auto; }
.stream:has(.unmute) .gobar { right: 12px; }
.room.vertical .gobar b { display: none; }
.room.vertical .gobar { justify-content: center; }
.room.vertical .gobar span { flex: 1; justify-content: center; }
.plat.lang { background: var(--teal); color: #0A0710; margin-left: 0; }   /* margin — от .lang переключателя языка (site.css) */

/* Профиль модели не в эфире: размытая профильная картинка во весь блок, по центру — аватар и переход в комнату */
.stream.off { background-color: #1a1230; }
.stream.off::before { content: ''; position: absolute; inset: -30px; background: inherit; background-size: cover; background-position: center; filter: blur(22px) brightness(.5) saturate(1.1); }
.stream.off .big-ava { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 1; width: 132px; height: 132px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #2a1d45 center/cover; color: #fff; font: 800 52px var(--dsp);
  box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 14px 40px rgba(0,0,0,.45); }
.stream.off .stream-go { justify-content: flex-end; padding-bottom: 12%; background: linear-gradient(transparent 40%, rgba(10,7,16,.55)); gap: 4px; }
.stream.off .stream-go b { font: 800 22px var(--dsp); }
.stream.off .stream-go small { font: 600 14px var(--body); opacity: .85; }
.stream.off .stream-go:hover small { opacity: 1; text-decoration: underline; }
.off-badge { padding: 2px 7px; border-radius: 5px; background: rgba(255,255,255,.16); color: #fff; font: 800 10px/1.4 var(--body); letter-spacing: .3px; text-transform: uppercase; }

/* SEO: подпись к нику в H1 («live cam on Stripchat»), вступление каталога */
.h1-sub { display: block; margin-top: 4px; font: 600 13px/1.3 var(--body); color: var(--tx3); letter-spacing: 0; }
.cams-lead { margin: -6px 0 16px; }
.about .lab { margin-top: 16px; }
.about .tags .tag.on { border-color: var(--acc); color: var(--tx); }

/* Телефон: на экране одна кнопка «Enter free chat» (Сергей 2026-10-01: «многовато кнопок»). Плашка на стриме — только на десктопе
   (на телефоне стрим и так открывает комнату по тапу); липкая кнопка — только когда основная не видна (класс .show ставит скрипт) */
@media (max-width: 1023px) {
  .stream .gobar { display: none; }
  .sticky-cta { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .2s, transform .2s; }
  .sticky-cta.show { opacity: 1; transform: none; pointer-events: auto; }
}

/* ===== Визуальная проверка 2026-10-06 ===== */
/* Ник в H1 рядом с аватаром — не рвать посреди слова на телефоне и в боковой колонке */
.room-info h1 { font-size: clamp(19px, 5.6vw, 22px); word-break: normal; overflow-wrap: anywhere; }   /* широкий шрифт: ник до ~12 знаков — в одну строку и в колонке 340px */
@media (max-width: 699px) {
  /* Карточки: ник — своей строкой (страна/возраст/зрители съедали половину ширины) */
  .camcard .cap { flex-wrap: wrap; row-gap: 0; }
  .camcard .cap b { flex-basis: 100%; }
  .camcard.big .cap b { font-size: 14px; }
  /* Фильтры — сеткой 2×2, ровными краями */
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filters label { min-width: 0; }
  .filters select { max-width: none; width: 100%; min-width: 0; }
  /* Подпись — мелко над значением: рядом с полем «Сортировка» оставляла значению 45 px («Поп» вместо «Популярное»), а японские
     и китайские подписи рвала по слогам. Селект — на всю плашку (нажимается целиком), подпись поверх, нажатия пропускает */
  .filters label { position: relative; display: block; height: 48px; padding: 0; }
  .filters label span { position: absolute; left: 12px; right: 8px; top: 6px; font-size: 11px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
  .filters select { height: 100%; padding: 17px 2px 0 11px; }
  /* Пол и теги — одной прокручиваемой строкой, вступление — 3 строки (весь текст есть ниже, в «о разделе») */
  .genders { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .genders::-webkit-scrollbar { display: none; }
  .genders > * { flex: 0 0 auto; }
  .cams-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  /* Не в эфире: аватар меньше, надпись под ним, не поверх */
  .stream.off .big-ava { width: 72px; height: 72px; top: 34%; font-size: 30px; }
  .stream.off .stream-go { padding-bottom: 7%; }
  .stream.off .stream-go b { font-size: 18px; }
}

/* Офлайн-профиль на десктопе: правая колонка — рядом со стримом, «О модели» и вопросами (раньше она отодвигала их вниз, под стримом пусто) */
@media (min-width: 1024px) {
  .cams-page:has(> .offline-room) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 28px; align-items: start; }
  .cams-page:has(> .offline-room) > * { grid-column: 1 / -1; min-width: 0; }
  .cams-page:has(> .offline-room) > .offline-room { display: contents; }
  .cams-page:has(> .offline-room) .offline-room > .stream { grid-column: 1; }
  .cams-page:has(> .offline-room) .offline-room > .room-info { grid-column: 2; grid-row: span 3; }
  .cams-page:has(> .offline-room) > .about, .cams-page:has(> .offline-room) > .faq { grid-column: 1; }
}

/* ===== QA 2026-10-06 ===== */
/* Длинный ник без пробелов (AfricanSquirtingQueen, ______I__________) и длинные слова в теме эфира: переносим, как у h1 модели —
   иначе «About …», «Questions about …», крошки и h1 страницы 404 шире экрана, страница едет вбок, нижнее меню — за край */
.cams-page :is(h1, h2, .crumbs, .now, .about p, .faq summary, .faq p) { overflow-wrap: anywhere; }
/* Контраст мелкого текста ≥ 4.5 (токены --lab, --mute — общие для сайта, здесь только для камов): подзаголовки, числа в пилюлях
   платформ, числа в чипах пола (белый с прозрачностью .7 на розовом — 2.4) */
.cams-page .lab { color: var(--tx3); }
.cams-page .tag small { color: var(--tx3); }
.genders .chip small { opacity: .85; }
.genders .chip[aria-current] small { opacity: 1; }
