/* После успешного TG-входа (telegram-auth.js ставит html[data-unlocked="true"])
   прячем все CTA-регистрации: шапочный блок «Войти / Бесплатная регистрация»
   и крупные «Регистрация» кнопки под плеером и в чате. Без этого после рега
   кнопка «БЕСПЛАТНАЯ РЕГИСТРАЦИЯ» продолжала висеть и предлагала рег. */
html[data-unlocked="true"] .bc-auth,
html[data-unlocked="true"] .bc-join,
html[data-unlocked="true"] .bc-chat-lock {
  display: none !important;
}

:root {
  color-scheme: light;
  --bc-red: #a02239;
  --bc-red-dark: #8f1e35;
  --bc-pink: #ee4a89;
  --bc-green: #00c070;
  --bc-blue: #3aa4f8;
  --bc-text: #252525;
  --bc-line: #d8d8d8;
}

html {
  background: #fff;
}

html[data-root-entry="true"] .bc-page {
  visibility: hidden;
}

body {
  color: var(--bc-text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.bc-auth button,
.bc-room-pill,
.bc-join,
.bc-chat-lock,
.bc-chat-intro button,
.bc-mobile-stage-tabs button,
.bc-mobile-quick-actions button,
.bc-profile-strip nav button,
.bc-message-form button,
.bc-popover button {
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

.bc-auth button:active,
.bc-room-pill:active,
.bc-join:active,
.bc-chat-lock:active,
.bc-chat-intro button:active,
.bc-mobile-stage-tabs button:active,
.bc-mobile-quick-actions button:active,
.bc-profile-strip nav button:active,
.bc-message-form button:active,
.bc-popover button:active {
  transform: translateY(1px) scale(.985);
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

.bc-page {
  min-width: 760px;
}

.bc-menu,
.bc-register-short,
.bc-mobile-stage-controls,
.bc-mobile-stage-tabs,
.bc-mobile-quick-actions {
  display: none;
}

.bc-topbar {
  display: grid;
  grid-template-columns: 150px auto 1fr 68px;   /* поиск убран: логотип · онлайн · (растяжка) авторизация · язык */
  align-items: center;
  height: 50px;
  padding: 0 10px 0 18px;
  color: #fff;
  background:
    url('/assets/shared/brand/bongacams-header-noise.png') repeat,
    linear-gradient(90deg, #a02239 0%, #a0283e 100%);
}

.bc-logo {
  display: block;
  width: 140px;
}

.bc-logo img {
  width: 140px;
  height: 36px;
  object-fit: contain;
}

.bc-online {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Точка «онлайн» — только первый span; второй это подпись «онлайн», и раньше
   селектор красил её тем же зелёным кружком 7×7 — выходило две точки. */
.bc-online span:first-child {
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-radius: 50%;
  background: #18df61;
}

.bc-auth {
  display: flex;
  gap: 5px;
  justify-self: end;   /* прижать к правому краю растянутой колонки (поиск убран) */
}

.bc-auth button {
  display: inline-flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 15px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 17px;
  text-transform: uppercase;
  white-space: nowrap;
}

.bc-auth button:first-child {
  min-width: 105px;
  background: #c92746;
}

.bc-auth button:last-child {
  min-width: 293px;
  background: var(--bc-green);
}

.bc-auth button:last-child svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.bc-language {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 50px;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 10%);
  background: transparent;
}

.bc-flag {
  display: block;
  width: 22px;
  height: 14px;
  overflow: hidden;
}

.bc-language i {
  width: 0;
  height: 0;
  border-top: 4px solid #fff;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.bc-roombar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  background: #efefef;
}

.bc-room-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bc-room-identity > strong {
  font-size: 18px;
}

.bc-room-identity > b {
  padding: 2px 6px;
  color: #fff;
  background: #2699f7;                                 /* было фиолетовое — по референсу голубое */
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* === Reference-fit блоки: 3 кнопки под стримом, вкладки чата, goal-бар, TIP MENU === */
.bc-stream-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.bc-stream-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  border: 0; border-radius: 4px;
  color: #fff;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
}
.bc-stream-action svg { width: 20px; height: 20px; }
.bc-action-group { background: #26c281; }
.bc-action-group:hover { background: #20a26d; }
.bc-action-private { background: #26c281; }            /* по реф — оба зелёные для группового и приват */
.bc-action-private:hover { background: #20a26d; }
.bc-action-tip { background: #26c281; }
.bc-action-tip:hover { background: #20a26d; }

.bc-chat-tabs {
  display: flex; align-items: center; gap: 0;
  padding: 0;
  background: #f2f2f2;                                 /* светло-серая подложка по референсу */
  border-bottom: 1px solid #d9d9d9;
}
.bc-chat-tabs button {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 10px;
  border: 0;
  color: #555; background: transparent;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  position: relative;
}
.bc-chat-tabs button:hover { color: var(--bc-red-dark); }
.bc-chat-tabs button[data-active="true"] {
  color: var(--bc-red-dark);
  background: #fff;
  box-shadow: inset 0 -2px var(--bc-red);              /* красная нижняя полоса на активной */
}
.bc-chat-tabs [data-chat-webcam] {
  flex: 0 0 auto;
  height: 30px; margin: 6px 6px 6px auto;
  padding: 0 12px;
  border: 1px solid var(--bc-red);                     /* outlined-пилюля справа */
  border-radius: 15px;
  color: var(--bc-red-dark);
  font-size: 11px;
}
.bc-chat-tabs [data-chat-webcam]:hover { background: #fff5f8; }

.bc-topic-message {
  display: flex; align-items: baseline; gap: 6px;
  padding: 6px 10px;
  color: #666;
  background: transparent;
  border: 0; border-left: 2px solid #f5a623;           /* тонкая оранжевая полоса вместо толстой красной плашки */
  font-size: 12px; line-height: 1.4;
}
.bc-topic-icon { color: #f5a623; font-size: 12px; }
.bc-topic-message b { color: #f5a623; font-weight: 800; margin-right: 4px; }
.bc-topic-message span:last-child { min-width: 0; overflow-wrap: break-word; }   /* длинный ALL-CAPS топик переносится по словам, не расползается в одну строку */

/* Специфичнее `.bc-chat-feed p` (сетка 18px/auto/1fr), иначе плашка чаевых
   получала ту же сетку, и «tipped»/«N Tokens!» падали в новые ряды — текст
   ломался и наезжал. Плашка — горизонтальный flex-«пилюль». */
.bc-chat-feed p.bc-tip-message {
  display: flex; align-items: center; gap: 6px;
  width: fit-content;
  padding: 4px 12px; margin: 5px 0;
  color: #fff;
  background: linear-gradient(180deg, #ee4a89, #d63b7a);
  border-radius: 4px;
  font-size: 12px;
  box-shadow: 0 1px 2px rgb(214 59 122 / 30%);
}
.bc-tip-icon { font-size: 14px; }
/* Специфичнее, чем `.bc-chat-feed p b` (розовый), иначе розовый b оставался
   на розовой плашке чаевых. */
.bc-chat-feed p.bc-tip-message b { color: #fff; font-weight: 800; }

.bc-goal-bar {
  padding: 10px 12px;
  border-top: 1px solid #e2e2e2;
  background: #f7f7f7;
}
.bc-goal-track {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 22px; padding: 0 10px;
  border-radius: 12px;
  background: #d9d9d9;
  overflow: hidden;
  font-size: 11px; font-weight: 700;
  color: #fff;
}
.bc-goal-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, #7a2b8f, #a03fbe);
  z-index: 0;
}
.bc-goal-track b, .bc-goal-track i { position: relative; z-index: 1; font-style: normal; }
.bc-goal-bar p {
  display: flex; align-items: center; justify-content: space-between;
  margin: 8px 0 0;
  color: #333; font-size: 12px;
}
.bc-goal-bar p b { color: #222; font-weight: 800; }
.bc-goal-bar p button {
  padding: 4px 12px;
  border: 0; border-radius: 3px;
  color: #fff; background: #26c281;
  font-size: 11px; font-weight: 700;
  cursor: pointer;
}
.bc-goal-bar p button:hover { background: #20a26d; }

.bc-tip-menu-wrap { padding: 6px 10px 10px; border-top: 1px solid #e2e2e2; }
.bc-tip-menu-label {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #cf1848;
  border-radius: 3px 3px 0 0;
  border-bottom: 0;
  color: #cf1848;
  font-size: 9px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #fff;
}
.bc-tip-menu {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0;
  border-top: 1px solid #cf1848;
}
.bc-tip-menu button {
  width: 38px; height: 38px;
  padding: 0;
  border: 0; background: none;
  cursor: pointer;
  transition: transform .12s ease;
}
.bc-tip-menu button img {
  display: block; width: 38px; height: 38px;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 25%));
}
.bc-tip-menu button:hover { transform: translateY(-1px); }
.bc-tip-menu button:hover img { filter: drop-shadow(0 4px 6px rgb(0 0 0 / 30%)); }

/* Прогресс-бар: Send Tip уходит в отдельную строку под "New goal — ..." */
.bc-goal-bar p { flex-direction: column; align-items: flex-start; gap: 6px; }
.bc-goal-bar p button { align-self: flex-start; }

/* Инпут: круглая синяя Send + жёлтый смайлик */
.bc-message-form label { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid #c8c8c8; border-radius: 4px; background: #fff; }
.bc-message-form input { flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 4px; border: 0; outline: none; font-size: 12px; }
.bc-message-form label > button[data-open-auth] {
  flex: 0 0 24px; width: 24px; height: 24px;
  padding: 0; border: 0; border-radius: 50%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="10" r="9.5" fill="%23ffcc4d"/><circle cx="7" cy="8" r="1.3" fill="%23000"/><circle cx="13" cy="8" r="1.3" fill="%23000"/><path d="M6.2 12c1 1.5 2.4 2.2 3.8 2.2s2.8-.7 3.8-2.2" stroke="%23000" stroke-width="1.4" fill="none" stroke-linecap="round"/></svg>') no-repeat center / contain;
  color: transparent;
}
.bc-message-form label > button[data-open-auth] svg { display: none; }
.bc-message-form label > button[type="submit"] {
  flex: 0 0 auto;
  padding: 4px 14px;
  border: 0; border-radius: 12px;
  color: #fff; background: #369de6;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.bc-message-form label > button[type="submit"]:hover { background: #1f88d5; }

.bc-mini-avatar {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}

.bc-mini-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.bc-mini-avatar i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  padding: 1px 3px;
  color: #fff;
  background: #10c95f;
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}

.bc-room-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 14px;
  border: 1px solid #dedede;
  border-radius: 16px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bc-room-pill svg {
  width: 18px;
  height: 18px;
}

.bc-room-spacer {
  flex: 1;
}

.bc-model-bio {
  padding: 20px 40px;
  background: #fff;
  border-top: 1px solid #e2e2e2;
  font-size: 13px;
}
.bc-model-bio dl { margin: 0; display: grid; gap: 0; }
.bc-model-bio dl > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}
.bc-model-bio dl > div:last-child { border-bottom: 0; }
.bc-model-bio dt { color: var(--bc-red-dark); font-weight: 800; }
.bc-model-bio dd { margin: 0; color: #333; }

@media (max-width: 900px) {
  .bc-model-bio { display: none; }                           /* только на PC */
}

.bc-model-media {
  padding: 12px 40px 32px;
  background: #fff;
  border-top: 1px solid #e2e2e2;
}
.bc-media-group {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.bc-media-group:last-child { border-bottom: 0; }
.bc-media-label {
  color: var(--bc-red-dark);
  font-weight: 800;
  font-size: 13px;
}
.bc-media-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
  gap: 16px;
}
/* Карточки набора рисует shared/profile.js классами .media-* (без bc-),
   поэтому стилизуем именно их. */
.bc-media-cards figure {
  margin: 0; display: grid; gap: 6px;
  padding: 6px; border: 1px solid #f0d6e0; border-radius: 4px;   /* видимое разделение соседних наборов */
  background: #fff;
}
.bc-media-cards .media-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: #222;
}

.bc-media-group[data-media-group="videos"] .bc-media-cards .media-card {
  aspect-ratio: 9 / 16;
}
.bc-media-cards .media-card :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bc-media-cards .media-badge-free {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 10px;
  border-radius: 12px;
  color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  background: linear-gradient(90deg, #ee4a89, #d63b7a);
}
/* Цена — чип справа снизу, время — чип слева снизу: на видео-карточке
   «X Tokens» и длительность больше не сливаются. */
.bc-media-cards .media-price {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 8px; border-radius: 10px;
  color: #fff; background: rgb(160 34 57 / 92%);
  font-size: 11px; font-weight: 700;
}
.bc-media-cards .media-duration {
  position: absolute; left: 6px; bottom: 6px;
  padding: 2px 8px; border-radius: 10px;
  color: #fff; background: rgb(0 0 0 / 70%);
  font-size: 11px;
}
.bc-media-cards figcaption {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
  font-size: 13px;
}
.bc-media-cards figcaption strong { color: #222; font-weight: 700; overflow-wrap: anywhere; }
.bc-media-cards figcaption em { flex: 0 0 auto; color: #666; font-style: normal; font-size: 12px; }
.bc-media-more {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
  padding: 0;
  border: 0; background: none; cursor: pointer;
  color: var(--bc-blue);
  font: inherit; font-size: 12px;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .bc-model-media { display: none; }                          /* только на PC */
}

.bc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);   /* стрим ~2/3, чат ~1/3 (по референсу MissEssie) */
  grid-template-rows: 669px;                                  /* фикс-высота ряда → обе колонки одной высоты */
  gap: 10px;                                                  /* отступ чата от стрима */
  padding: 0 10px;                                            /* по 10px слева и справа — стрим и чат не прилипают к краям */
  margin: 0;
}
.bc-workspace > * { min-height: 0; overflow: hidden; }        /* не даём контенту вылезать за grid-cell */
.bc-video-column { display: flex; flex-direction: column; }   /* колонкой */
.bc-video-column .bc-stage { flex: 0 0 auto; }                /* высота от aspect-ratio, не от intrinsic video */

.bc-video-column {
  min-width: 0;
}

.bc-stage {
  position: relative;
  width: 100%;
  height: min(520px, 58vh);
  min-height: 360px;
  overflow: hidden;
  background: #372127;
}

.bc-stage > :is(img, video):first-child {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center;
  filter: blur(17px) saturate(.65);
  transform: scale(1.06);
}

.bc-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgb(28 13 19 / 3%), rgb(57 6 25 / 52%));
}

.bc-stage-watermark {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  width: 105px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .75;
}

.bc-stage-sound {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 55%);
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease;
}
.bc-stage-sound svg { width: 22px; height: 22px; fill: currentColor; }
.bc-stage-sound:hover { background: rgb(0 0 0 / 72%); }
.bc-stage-sound[data-on="false"] { opacity: .8; }
.bc-stage-sound[data-on="false"]::after {
  position: absolute; inset: 0; margin: auto; width: 26px; height: 2px;
  background: #fff; transform: rotate(-45deg); content: "";
}

.bc-registration-prompt {
  position: absolute;
  z-index: 3;
  /* Центрируем БЕЗ transform: translate у промпта создавал собственный
     композит-слой, и перерисовка ребёнка по :hover (кнопка «Регистрация»)
     дёргала этот слой относительно blur'а стейджа — кнопка «убегала» от
     курсора. inset:0 + margin:auto + height:max-content центрирует по обеим
     осям без единого transform, слоя больше нет — прыжок уходит. */
  inset: 0;
  margin: auto;
  height: max-content;
  display: grid;
  width: min(560px, calc(100% - 56px));
  gap: 12px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 18px;
  color: #fff;
  background: rgb(38 13 23 / 78%);
  box-shadow: 0 18px 50px rgb(22 1 8 / 34%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.bc-registration-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.bc-registration-profile > img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 2px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 18px rgb(0 0 0 / 25%);
}

.bc-registration-profile > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.bc-registration-profile small {
  color: #ffb7ca;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bc-registration-profile strong {
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.15;
}

.bc-registration-profile em {
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
  font-style: normal;
}

.bc-registration-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.bc-registration-menu button {
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 10px;
  color: #fff;
  background: rgb(255 255 255 / 8%);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.bc-registration-menu button:hover {
  border-color: rgb(255 255 255 / 36%);
  background: rgb(255 255 255 / 15%);
}

.bc-join {
  display: grid;
  width: 100%;
  min-height: 54px;
  padding: 8px 18px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #ef3d70, #b91e45);
  box-shadow: 0 8px 22px rgb(136 8 43 / 36%);
}

/* Осветляем фоном, а НЕ filter: brightness(): смена filter на кнопке внутри
   backdrop-filter-панели триггерила рекомпозит слоя и прыжок (см. выше в
   .bc-registration-prompt). Градиент на ~8% светлее базового того же тона. */
.bc-join:hover {
  background: linear-gradient(135deg, #f3517f, #cc2450);
  box-shadow: 0 10px 28px rgb(136 8 43 / 44%);
}

.bc-join strong {
  font-size: 18px;
}

.bc-join span {
  font-size: 14px;
}

.bc-tip-button {
  display: flex;
  width: 100%;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 5px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--bc-green);
  font-size: 16px;
  font-weight: 800;
}

.bc-tip-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.bc-model-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 34px;
  margin-top: 4px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.bc-model-nav button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  color: #555;
  background: transparent;
  font-size: 13px;
  text-transform: uppercase;
  /* Не даём кнопке ужиматься и переносить подпись: иначе текст вылезал за
     свои 53px и две подписи налезали друг на друга по центру. */
  flex: none;
  white-space: nowrap;
}

/* Только центральная иконка «?» — не подписи внутри кнопок prev/next. */
.bc-model-nav > span {
  display: grid;
  flex: none;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #36aaf5;
}

.bc-model-nav button svg,
.bc-model-nav > span svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.bc-chat {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto 38px;          /* tabs | feed(1fr) | tip-menu | form | footer (goal-bar убран) */
  min-width: 0;
  min-height: 550px;                                        /* было 482, +60 после удаления шапки */
  border: 1px solid var(--bc-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.bc-chat-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

.bc-chat-intro p {
  width: 100%;
  margin: 0;
  color: #00a33f;
  font-size: 13px;
}

.bc-chat-intro p svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: #00a33f;
  vertical-align: -5px;
}

.bc-chat-intro button {
  height: 31px;
  padding: 0 13px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--bc-green);
  font-weight: 800;
}

.bc-chat-free {
  color: #666;
  font-size: 12px;
  font-weight: 700;
}

.bc-chat-feed {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: auto;                               /* не резервируем место под скроллбар — чат прилипает к краю */
  scrollbar-width: thin;                                /* тонкий скроллбар вместо жирного дефолтного */
  padding: 4px 12px 8px;
  background: #fff;
}
.bc-chat-feed::-webkit-scrollbar { width: 6px; }
.bc-chat-feed::-webkit-scrollbar-thumb { background: rgb(0 0 0 / 20%); border-radius: 3px; }

.bc-chat-feed p {
  display: grid;
  grid-template-columns: 18px auto 1fr;
  gap: 6px;
  align-items: start;
  margin: 5px 0;
  line-height: 1.18;
}

.bc-chat-feed p img,
.bc-user-avatar {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  color: #fff;
  background: #8f2849;
  font-size: 9px;
}

.bc-chat-feed p b {
  color: var(--bc-pink);
}

.bc-system-message {
  display: block !important;
  width: fit-content;
  margin: 5px 0;
  padding: 8px 12px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(90deg, #ff9a6e, #f04684);
  font-weight: 700;
}

.bc-chat-games {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  border-top: 1px solid #eee;
}

.bc-chat-games button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #333;
  background: radial-gradient(circle at 35% 30%, #fff, #bbb);
  box-shadow: 0 3px 8px rgb(0 0 0 / 20%);
  font-weight: 800;
}

.bc-message-form {
  position: relative;                                   /* фиксим стэкинг поверх блюра в feed */
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;                           /* одна колонка — submit теперь внутри label */
  align-items: center;
  padding: 5px;
  background: #fff;                                     /* непрозрачный фон — блюр не бликует по кромке */
  border-top: 1px solid #ddd;
}

.bc-message-form label {
  display: grid;
  grid-template-columns: 1fr 34px auto;                 /* input | смайл | Отправить */
  align-items: center;
  height: 36px;
  padding-right: 4px;
  border: 1px solid #c8c8c8;
  border-radius: 5px;
}

.bc-message-form input {
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border: 0;
  outline: none;
}

.bc-message-form label button {
  height: 100%;
  border: 0;
  background: transparent;
}

.bc-message-form label button svg {
  width: 20px;
  height: 20px;
  margin: auto;
}

.bc-message-form label > button[type="submit"] {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--bc-blue);
  font-weight: 700;
}

.bc-chat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-top: 1px solid #ddd;
}

.bc-chat-footer button {
  display: inline-flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
}

.bc-chat-footer button:last-child {
  min-width: 180px;
  margin-left: auto;
  border: 1px solid #ddd;
  border-radius: 16px;
  font-weight: 700;
}

.bc-chat-footer button svg {
  width: 17px;
  height: 17px;
}

.bc-profile-strip {
  display: grid;
  grid-template-columns: 145px minmax(240px, 1fr) auto;
  align-items: center;
  gap: 35px;
  min-height: 86px;
  padding: 10px 28px 10px 58px;
  margin: 0 0 10px;                                    /* без max-width; вплотную к workspace, ближе к стриму */
  background: #f7f7f7;
}

.bc-large-avatar {
  position: relative;
  width: 112px;
  height: 112px;
}

.bc-large-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.bc-large-avatar span {
  position: absolute;
  right: 0;
  bottom: 1px;
  padding: 3px 6px;
  color: #fff;
  background: var(--bc-green);
  font-size: 9px;
  text-transform: uppercase;
}

.bc-profile-strip h1 {
  margin: 0 0 7px;
  font-size: 20px;
}

.bc-profile-strip h1 i {
  color: #ed5b9c;
  font-style: normal;
}

.bc-profile-strip p {
  max-width: 520px;
  margin: 0;
  color: #666;
  line-height: 1.4;
}

/* «ещё/свернуть» описания — собственный блок НАД счётчиком просмотров.
   bongacams не подключает onlyfans/theme.css, где .of-more-button стилизована,
   поэтому здесь задаём свой вид; display:block выносит её в отдельную строку —
   иначе inline-кнопка вставала в один ряд с .bc-views (inline-flex). */
.bc-profile-strip .of-more-button {
  display: block;
  width: fit-content;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bc-blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.bc-views {
  display: flex !important;   /* было inline-flex — вставало в ряд с «ещё» */
  align-items: center;
  gap: 7px;
  margin-top: 10px !important;
  color: #8a8a8a !important;
  font-size: 13px;
}
.bc-views-eye { width: 17px; height: 17px; fill: #9a9a9a; flex: none; }
.bc-views b { color: #333; font-weight: 700; }

.bc-profile-strip nav {
  display: flex;
  gap: 10px;
}

.bc-profile-strip nav button {
  display: inline-flex;
  height: 42px;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  background: #fff;
}

.bc-profile-strip nav button svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.bc-profile-strip nav .bc-profile-tip {
  color: #fff;
  border-color: var(--bc-green);
  background: var(--bc-green);
  font-size: 14px;
  font-weight: 800;
}

.bc-profile-strip nav button[data-follow][aria-pressed="true"] {
  border-color: var(--bc-red);
  color: #fff;
  background: var(--bc-red);
}

.bc-profile-strip nav button[data-follow][aria-pressed="true"] svg {
  fill: currentColor;
}

.bc-chat-launcher {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: var(--bc-pink);
  font-weight: 700;
}

.bc-popover {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: none;
  place-items: center;
}

.bc-popover[data-open="true"] {
  display: grid;
}

.bc-popover > button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(0 0 0 / 34%);
}

.bc-popover > div {
  position: relative;
  width: min(90vw, 360px);
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 60px rgb(0 0 0 / 25%);
}

.bc-popover > div strong {
  font-size: 20px;
}

.bc-popover > div p {
  color: #666;
  line-height: 1.5;
}

.bc-popover > div button {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: var(--bc-red);
  font-weight: 700;
}

/* Панель настроек эфира — та же «карточка», но с контролами вместо текста.
   Кнопки внутри групп не должны становиться красными пилюлями. */
.bc-settings-popover > div {
  display: grid;
  gap: 16px;
}

.bc-settings-group {
  display: grid;
  gap: 8px;
}

.bc-settings-label {
  font-weight: 700;
  font-size: 14px;
  color: #444;
}

.bc-settings-quality {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bc-settings-popover .bc-settings-quality button {
  width: auto;
  flex: 1 1 60px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #333;
  background: #f5f5f5;
  font-weight: 600;
}

.bc-settings-popover .bc-settings-quality button[aria-checked="true"] {
  border-color: var(--bc-red);
  color: #fff;
  background: var(--bc-red);
}

.bc-settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: #333;
}

.bc-settings-toggle input {
  width: 44px;
  height: 24px;
}

html[data-unlocked="true"] .bc-stage > :is(img, video):first-child {
  filter: none;
  transform: none;
}

html[data-stage-locked="false"] .bc-stage > :is(img, video):first-child {
  filter: none;
  transform: none;
}

html[data-unlocked="true"] .bc-registration-prompt,
html[data-stage-locked="false"] .bc-registration-prompt {
  display: none;
}

.bc-chat-lock {
  position: absolute;
  z-index: 4;
  /* Центрируем БЕЗ transform: translate поднимал кнопку в собственный
     композит-слой, и она дёргалась/«убегала» от курсора при перерисовке по
     ховеру. top:8% + bottom:0 + margin:auto → тот же центр ~54%, но без
     единого transform — дёргать нечему. */
  top: 8%;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  height: max-content;
  width: min(290px, calc(100% - 34px));
  display: grid;
  min-height: 62px;
  gap: 3px;
  padding: 10px 18px;
  place-items: center;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #ef3d70, #a51e3a);
  box-shadow: 0 8px 24px rgb(102 9 36 / 25%);
}

.bc-chat-lock strong {
  font-size: 15px;
}

.bc-chat-lock span {
  color: rgb(255 255 255 / 82%);
  font-size: 11px;
  font-weight: 600;
}

html[data-chat-locked="true"]:not([data-unlocked="true"]) .bc-chat-feed {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
  contain: paint;                                       /* держим блюр в своей коробке — иначе сползает на форму ниже */
}

html[data-chat-locked="false"] .bc-chat-lock,
html[data-unlocked="true"] .bc-chat-lock {
  display: none;
}

@media (max-width: 760px) {
  .bc-tip-menu-wrap,
  .bc-chat-tabs,
  .bc-stream-actions { display: none; }               /* мобилка: прячем TIP MENU, вкладки чата и 3 стрим-кнопки */

  .bc-page {
    min-width: 0;
  }

  .bc-topbar {
    grid-template-columns: 42px 112px minmax(0, 1fr);
    gap: 6px;
    height: 50px;
    padding: 0 8px;
  }

  .bc-logo,
  .bc-logo img {
    width: 112px;
  }

  .bc-menu {
    display: grid;
    width: 42px;
    height: 50px;
    padding: 0;
    place-items: center;
    border: 0;
    color: #fff;
    background: transparent;
  }

  .bc-menu svg {
    width: 29px;
    height: 29px;
    stroke-width: 2.2;
  }

  .bc-online,
  .bc-search {
    display: none;
  }

  .bc-auth {
    display: flex;
    min-width: 0;
    justify-content: flex-end;
    gap: 5px;
  }

  .bc-auth button {
    height: 32px;
    padding: 0 11px;
    border-radius: 18px;
    font-size: 12px;
  }

  .bc-auth button:first-child {
    min-width: 67px;
  }

  .bc-auth button:last-child {
    min-width: 118px;
    padding-inline: 10px;
  }

  .bc-auth button:last-child svg {
    display: none;
  }

  .bc-register-long {
    display: none;
  }

  .bc-register-short {
    display: inline;
  }

  .bc-language {
    display: none;
  }

  .bc-roombar {
    display: none;
  }

  .bc-workspace {
    display: block;                                     /* натуральный поток; чат меряет свою высоту JS'ом */
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .bc-video-column {
    width: 100%;
  }

  .bc-stage {
    width: 100%;
    height: min(480px, 62vh);
    min-height: 280px;
  }

  .bc-mobile-stage-controls {
    position: absolute;
    z-index: 3;
    inset: 10px 10px auto;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }

  .bc-mobile-stage-controls span {
    display: grid;
    gap: 8px;
  }

  .bc-mobile-stage-controls svg {
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 5px;
    color: #fff;
    background: rgb(18 18 18 / 46%);
    filter: drop-shadow(0 1px 2px rgb(0 0 0 / 35%));
    stroke-width: 2.1;
  }

  /* Реальные кнопки поверх pointer-events:none контейнера: звук и полный
     экран кликабельны, остальная площадь стейджа — нет. */
  .bc-mobile-ctrl {
    pointer-events: auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .bc-stage-watermark {
    display: none;
  }

  .bc-registration-prompt {
    /* top:6% + bottom:0 (из inset базы) + margin-block:auto → центр ~53%,
       как было, но без transform. */
    top: 6%;
    width: calc(100% - 54px);
    gap: 8px;
    padding: 11px;
    border-radius: 14px;
  }

  .bc-registration-profile {
    gap: 9px;
  }

  .bc-registration-profile > img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .bc-registration-profile small {
    font-size: 8px;
  }

  .bc-registration-profile strong {
    font-size: 14px;
  }

  .bc-registration-profile em {
    font-size: 10px;
  }

  .bc-registration-menu {
    gap: 5px;
  }

  .bc-registration-menu button {
    height: 30px;
    border-radius: 8px;
    font-size: 10px;
  }

  .bc-join {
    min-height: 43px;
    padding: 5px 12px;
    border-radius: 11px;
  }

  .bc-join strong {
    font-size: 14px;
  }

  .bc-join span {
    font-size: 10px;
  }

  .bc-tip-button {
    display: none;
  }

  .bc-model-nav {
    display: none;
  }

  .bc-mobile-stage-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 48px;
    background: #b91f43;
  }

  .bc-mobile-stage-tabs button {
    display: grid;
    padding: 0;
    place-items: center;
    border: 0;
    border-right: 1px solid rgb(89 5 31 / 30%);
    color: #fff;
    background: transparent;
  }

  .bc-mobile-stage-tabs button:first-child {
    background: #9f1738;
  }

  .bc-mobile-stage-tabs svg {
    width: 29px;
    height: 29px;
    stroke-width: 2;
  }

  .bc-mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 7px;
    border-bottom: 1px solid #e2e2e2;
    background: #fff;
  }

  .bc-mobile-quick-actions button {
    display: flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 20px;
    color: #fff;
    background: #3ca8f5;
    font-size: 13px;
    font-weight: 700;
  }

  .bc-mobile-quick-actions button:last-child {
    background: linear-gradient(90deg, #3ca8f5, #7d2fd4);
  }

  .bc-mobile-quick-actions svg {
    width: 20px;
    height: 20px;
  }

  .bc-profile-strip {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    width: calc(100% - 20px);
    min-height: 0;
    padding: 16px;
    margin: 12px 10px 82px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
  }

  .bc-large-avatar {
    width: 76px;
    height: 76px;
  }

  .bc-profile-strip h1 {
    font-size: 19px;
  }

  .bc-profile-strip p {
    font-size: 13px;
  }

  .bc-profile-strip nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 42px) minmax(0, 1fr);
    gap: 8px;
  }

  .bc-profile-strip nav button {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .bc-profile-strip nav .bc-profile-tip {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
  }

  .bc-chat {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(180px, 1fr) 58px;       /* feed + form; tabs/mobile-head удалены */
    width: 100%;
    height: 400px;                                      /* дефолт — JS перепишет на (100dvh − top) */
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .bc-profile-strip {
    display: none;                                      /* под чатом на мобилке ничего лишнего */
  }

  .bc-chat[data-open="false"] {
    display: none;
  }

  .bc-chat-intro,
  .bc-chat-games,
  .bc-chat-footer {
    display: none;
  }

  .bc-chat-feed {
    padding: 10px 16px;
    color: var(--bc-text);
  }

  .bc-chat-feed p {
    grid-template-columns: 18px auto minmax(0, 1fr);
    gap: 7px;
    line-height: 1.3;
  }

  .bc-message-form {
    grid-template-columns: 1fr;                         /* submit теперь внутри label */
    padding: 10px 12px;
    border: 0;
  }

  .bc-message-form label {
    grid-template-columns: 1fr auto;                    /* смайл скрыт → input | Отправить */
    padding: 4px 4px 4px 0;
    border: 0;
    border-radius: 24px;
    background: #f6f6f6;
  }

  .bc-message-form input {
    padding-left: 16px;
    color: var(--bc-text);
    background: transparent;
  }

  .bc-message-form input::placeholder {
    color: #9a9a9a;
  }

  .bc-message-form label button[data-open-auth] {       /* смайл — только на десктопе */
    display: none;
  }

  .bc-message-form label > button[type="submit"] {
    height: 32px;
    border-radius: 18px;
  }

  .bc-chat-launcher {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .bc-topbar {
    grid-template-columns: 38px 88px minmax(0, 1fr);
    gap: 4px;
    padding: 0 6px;
  }

  .bc-menu {
    width: 38px;
  }

  .bc-logo,
  .bc-logo img {
    width: 88px;
  }

  .bc-auth {
    gap: 4px;
  }

  .bc-auth button {
    padding-inline: 7px;
    font-size: 11px;
  }

  .bc-auth button:first-child {
    min-width: 50px;
  }

  .bc-auth button:last-child {
    min-width: 96px;
    padding-inline: 7px;
  }

  .bc-registration-prompt {
    width: calc(100% - 42px);
  }
}
