/* SidesWorld — стили веб-приложения по макету дизайнера */
:root {
  --bg: #000;
  --card: #1c1c1e;
  --field: #2c2c2e;
  --chip: #232325;
  --line: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --muted: #8e8e93;
  --accent: #6155f5;
  --accent-dim: #1d1a46;
  --accent-dim-text: #6d68a6;
  --live: #e0261c;
  --danger: #ff453a;
  --glass: rgba(44, 44, 48, 0.72);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar: calc(62px + var(--safe-bottom));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body { font: 16px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; font-variant-ligatures: no-contextual; }
#app { position: fixed; inset: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
a { color: var(--link, #9a91ff); text-decoration: none; }
[hidden] { display: none !important; }

.ic { width: 1em; height: 1em; fill: currentColor; flex: none; display: block; }
.ic.accent { color: var(--accent); }
.tart { width: 1em; height: 1em; flex: none; display: block; }
.ic.big { font-size: 52px; }

/* ---------- общие элементы ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page { max-width: 480px; width: 100%; margin: 0 auto; padding: calc(24px + var(--safe-top)) 20px calc(28px + var(--safe-bottom)); }
.page.tabbed { padding-bottom: calc(var(--tabbar) + 24px); }
.spacer { flex: 1; }
.big-title { font-size: 40px; font-weight: 800; letter-spacing: -0.6px; margin: 44px 0 26px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 58px; border-radius: 18px; background: var(--accent); color: #fff; font-weight: 600; font-size: 19px; transition: background 0.2s, color 0.2s; }
.btn.dim, .btn:disabled { background: var(--accent-dim); color: var(--accent-dim-text); }
.btn.red { background: var(--live); }
/* Опасное действие на отдельной странице — как в шторке: тонкая красная рамка, без заливки */
.btn.danger, .btn.danger.dim { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn.danger.dim { opacity: 0.45; }
.btn.narrow { width: auto; min-width: 240px; padding: 0 40px; display: inline-flex; }
.btn:active { transform: scale(0.99); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 19px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; white-space: nowrap; flex: none; }
.pill .ic { font-size: 20px; }
.round { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(12, 12, 14, 0.92); color: #fff; font-size: 28px; flex: none; }
.round.sm { width: 38px; height: 38px; font-size: 22px; background: var(--field); }
.round.glass { background: rgba(0, 0, 0, 0.55); }
.link-btn { color: var(--accent); font-size: 16px; }
.link-btn:disabled { color: var(--muted); }
.error { color: #ff6b6b; font-size: 15px; min-height: 20px; margin: 10px 0 12px; }
.note { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); font-size: 14px; font-weight: 600; }
.chip .ic { font-size: 17px; }
.chip.warn { background: rgba(255, 69, 58, 0.85); }
.live-badge { display: inline-flex; align-items: center; background: var(--live); height: 26px; padding: 0 10px; border-radius: 13px; font-size: 14px; font-weight: 800; letter-spacing: 0.4px; flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; color: #fff; background-size: cover; background-position: center; }
.avatar.has-photo { color: transparent; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; }
.avatar.sm { width: 32px; height: 32px; font-size: 14px; }
.avatar.md { width: 46px; height: 46px; font-size: 20px; }
.avatar.xl { width: 88px; height: 88px; font-size: 38px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(24px + var(--safe-bottom)); margin: 0 auto; max-width: 440px; background: rgba(28, 28, 30, 0.97); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; z-index: 60; display: flex; gap: 12px; align-items: center; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
body.has-tabbar .toast { bottom: calc(var(--tabbar) + 12px); }
.toast button { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* поля ввода — «таблетки» из макета */
.lbl { display: block; font-size: 18px; font-weight: 700; margin: 22px 0 12px; }
.input-wrap { position: relative; }
.input { width: 100%; height: 58px; background: var(--field); border: 1.5px solid transparent; border-radius: 29px; padding: 0 22px; color: var(--text); outline: none; font-size: 18px; }
.input::placeholder { color: #7c7c80; }
.input:focus { border-color: var(--accent); }
.input-wrap .eye { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #9a9a9e; font-size: 26px; }
.input-wrap .eye + .input, .input-wrap .input:has(+ .eye) { padding-inline-end: 60px; }
.hint-small { display: block; color: var(--muted); font-size: 13px; margin: 8px 4px 0; }
.input.bad { border-color: #ff453a; }
.field-err { display: block; color: #ff453a; font-size: 14px; margin: 8px 4px 0; min-height: 0; }
.field-err:empty { display: none; }
.auth-back { margin: -6px 0 18px -8px; }
.code-input { letter-spacing: 12px; text-align: center; font-size: 26px !important; }

/* ---------- вход и регистрация ---------- */
.auth { padding-top: calc(56px + var(--safe-top)); }
.auth .logo { width: 76px; height: 76px; display: block; margin-bottom: 26px; }
.auth-title .w { color: var(--accent); } /* «World» в названии — цветом приложения */
.auth-title { font-size: 44px; font-weight: 800; letter-spacing: -0.8px; margin: 0 0 8px; }
.auth .subtitle { color: var(--muted); font-size: 19px; margin: 0 0 18px; }
.auth form .btn { margin-top: 6px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 17px; margin: 26px 0 0; }
.auth-foot a { font-weight: 600; }
.auth-foot.small { margin-top: 16px; font-size: 15px; }
.muted-link { color: var(--muted) !important; font-weight: 400 !important; }

/* ---------- нижняя панель ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar); padding: 6px 8px var(--safe-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: #1c1c1e; border-top: 1px solid rgba(255, 255, 255, 0.05); z-index: 20; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; padding-top: 2px; color: #8e8e93; font-size: 11px; font-weight: 500; }
.tab .ic { font-size: 28px; }
/* Длинные подписи (казахский, узкий экран): мельче и в одну строку с многоточием, а не вплотную друг к другу */
.tab > span:last-child { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.1px; }
@media (max-width: 340px) { .tab { font-size: 10px; } }
.tab .disc { width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; }
.tab .disc .ic { font-size: 16px; }
.tab.on { color: var(--accent); }
/* Подпись выбранной вкладки светлее значка: мелкий текст должен читаться на тёмном */
.tab.on > span:last-child { color: #a39bff; }
.tab.on .disc { background: var(--accent); border-color: var(--accent); color: #fff; }

/* переключатель «Карта | Список» и поиск */
.seg { display: grid; grid-template-columns: 1fr 1fr; height: 46px; padding: 4px; border-radius: 23px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg.three > * { font-size: 16px; }
@media (max-width: 380px) { .seg.three > * { font-size: 14px; } }
.seg > * { display: flex; align-items: center; justify-content: center; border-radius: 19px; color: #a1a7b5; font-size: 16px; font-weight: 600; }
.seg > .on { color: #fff; background: rgba(28, 32, 42, 0.78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.seg.solid { background: #141416; border: 1px solid #2a2a2c; }
.seg.solid > .on { background: #3a3a3c; }
.glass { background: rgba(34, 40, 54, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); }
.search { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 23px; padding: 0 8px 0 16px; color: #a1a7b5; }
.search > .ic { font-size: 24px; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 17px; color: #fff; }
.search input::placeholder { color: #a1a7b5; }
.filter-btn { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1c1c1e; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.filter-btn.on { background: var(--accent); color: #fff; }
.suggest { border-radius: 14px; overflow: hidden; }
.suggest button { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 14px; text-align: start; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 16px; }
.suggest button:first-child { border-top: 0; background: rgba(97, 85, 245, 0.16); }
.sg-main { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-sub { flex: 1; min-width: 0; color: #a1a7b5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-pin { font-size: 20px; color: #a1a7b5; }
.sg-check { font-size: 20px; color: #3d8bff; }

/* ---------- карта ---------- */
.map { position: absolute; inset: 0; background: #3a4560; isolation: isolate; z-index: 0; }
.map-top { position: absolute; top: calc(12px + var(--safe-top)); left: 16px; right: 16px; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; z-index: 5; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.status-pill { align-self: center; background: rgba(0, 0, 0, 0.8); border-radius: 20px; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.map-tools.hide { opacity: 0; pointer-events: none; }
.map-tools { position: absolute; right: 16px; bottom: calc(var(--tabbar) + 20px); display: flex; flex-direction: column; gap: 12px; z-index: 6; transition: bottom 0.25s ease, opacity 0.2s; }
.map-tools .round { width: 50px; height: 50px; font-size: 26px; background: rgba(20, 24, 32, 0.88); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
/* Подпись источника карты: свёрнута в маленькое неяркое «i», по нажатию раскрывается влево */
.credit { direction: ltr; position: absolute; right: 8px; bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 6px; height: 22px; border-radius: 11px; font-size: 10px; line-height: 1; color: #c7c7cc; }
.credit.open { padding-left: 9px; background: rgba(0, 0, 0, 0.55); }
.credit-text { display: none; white-space: nowrap; }
.credit.open .credit-text { display: inline; }
.credit a { color: #c7c7cc; text-decoration: none; margin-right: 5px; }
.credit-i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.75); background: rgba(0, 0, 0, 0.35); font: 600 12px/1 Georgia, serif; color: #fff; opacity: 0.6; display: flex; align-items: center; justify-content: center; }
.credit.open .credit-i { opacity: 0.95; background: transparent; }
#map .credit { bottom: calc(var(--tabbar) + 8px); }
#map .maplibregl-ctrl-bottom-right, #map .maplibregl-ctrl-bottom-left { bottom: var(--tabbar); }

/* пин стримера: значок транспорта или маленький кружок с фото, ник, «фары» и пульс */
/* Положение и сдвиг пина задаёт сама карта (position/transform на этом элементе не трогаем) */
.pin { width: 60px; height: 60px; cursor: pointer; }
/* Размер значка = размер от масштаба карты (--z…) × теснота (--cs: 1, 0.5 или 0.34) */
.pin { --s: calc(var(--zs, 1) * var(--cs, 1)); --fs: calc(var(--zfs, 1) * var(--cs, 1)); --bs: calc(var(--zbs, 1) * var(--cs, 1)); }
.pin.crowd .nick { display: none; }
.pin.crowd .cnt { transform: translate(calc(19px * var(--fs, 1)), calc(15px * var(--fs, 1))) scale(0.8); }
.pin .face { position: absolute; inset: 11px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; color: #fff; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); z-index: 2; background-size: cover; background-position: center; transform: scale(var(--fs, 1)); }
.pin .face.has-photo { color: transparent; }
.pin .ride { position: absolute; inset: -4px; display: none; align-items: center; justify-content: center; z-index: 2; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)); }
.pin .ride img { width: 100%; height: auto; flex: none; display: block; transform: rotate(calc(var(--h, 0deg) - var(--map-bearing, 0deg))) scale(var(--s, 1)); transition: transform 0.8s ease; -webkit-user-drag: none; }
.pin.riding .face { display: none; }
.pin.riding .ride { display: flex; }
.pin .pulse { position: absolute; inset: 9px; border-radius: 50%; border: 2px solid rgba(124, 112, 255, 0.85); animation: pulse 2.2s ease-out infinite; pointer-events: none; }
.pin.riding .pulse { display: none; }
/* Фары: яркий фиолетовый конус с мягким ореолом */
.pin .beam { position: absolute; left: 50%; top: 50%; width: 285px; height: 285px; pointer-events: none; transition: transform 0.8s ease; z-index: 0; }
.pin .beam::before, .pin .beam::after { content: ""; position: absolute; inset: 0; }
/* Края луча светлее, середина на тон темнее */
.pin .beam::after { clip-path: polygon(50% 50%, 20% 0, 80% 0); background: linear-gradient(to top, rgba(214, 208, 255, 0.95) 18%, rgba(190, 182, 255, 0.5) 60%, rgba(190, 182, 255, 0) 97%); }
.pin .beam::before { clip-path: polygon(50% 50%, 35% 0, 65% 0); background: linear-gradient(to top, rgba(140, 128, 255, 1) 22%, rgba(120, 108, 250, 0.9) 58%, rgba(110, 98, 245, 0) 100%); z-index: 1; }
.pin .nick { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); min-width: 64px; text-align: center; white-space: nowrap; font-size: 11px; font-weight: 500; background: rgba(28, 30, 38, 0.72); padding: 2px 10px; border-radius: 9px; z-index: 2; }
/* Что снимают — круглая плашка справа сверху от точки */
/* Выбрана тема: её значок вместо кружка с фото и вместо транспорта; «фары» остаются */
.pin .topic { position: absolute; inset: 6px; display: none; align-items: center; justify-content: center; z-index: 2; font-size: 48px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); transform: scale(var(--fs, 1)); transition: transform 0.25s ease; pointer-events: none; }
.pin.topical .topic { display: flex; }
.pin.topical .face, .pin.topical .ride { display: none; }
.pin.topical .pulse { display: none; }
/* В движении: транспорт остаётся, тема (погода, пожар, ДТП) — маленький значок справа сверху */
.pin.riding.topical .ride { display: flex; }
.pin.riding.topical .pulse { display: none; }
.pin.riding.topical .topic { inset: auto; left: 50%; top: 50%; width: 26px; height: 26px; margin: -34px 0 0 8px; font-size: 26px; z-index: 3; transform: scale(max(0.8, var(--fs, 1))); transform-origin: 0 100%; }
.pin.riding.topical.selected .topic { transform: scale(max(0.8, var(--fs, 1))); }
.compact .pin.riding.topical .topic { width: 20px; height: 20px; margin: -26px 0 0 5px; font-size: 20px; }
.pin.topical.selected .topic { transform: scale(calc(var(--fs, 1) * 1.25)); filter: drop-shadow(0 0 6px rgba(140, 128, 255, 0.95)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)); }
/* Событие: один значок на все камеры, на нём их число; от четырёх камер — крупнее и с сиреневым кольцом, которое «дышит» */
.pin .ring, .pin .cnt { display: none; }
.pin.event .beam, .pin.event .nick, .pin.event .pulse { display: none !important; }
.pin.event .cnt { display: block; position: absolute; left: 50%; top: 50%; min-width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 1.5px #fff, 0 2px 5px rgba(0, 0, 0, 0.45); z-index: 4; pointer-events: none; transform: translate(calc(19px * var(--fs, 1)), calc(15px * var(--fs, 1))); }
.pin.event { z-index: 3; }
.pin.event.big { z-index: 4; }
.pin.event.big .topic { transform: scale(calc(var(--fs, 1) * 1.4)); }
.pin.event.big .cnt { transform: translate(calc(26px * var(--fs, 1)), calc(21px * var(--fs, 1))); }
.pin.event.big .ring { display: block; position: absolute; inset: 2px; border-radius: 50%; border: 3px solid rgba(140, 128, 255, 0.95); box-shadow: 0 0 10px rgba(124, 112, 255, 0.6); pointer-events: none; z-index: 1; animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(calc(var(--fs, 1) * 1.3)); opacity: 0.95; } 50% { transform: scale(calc(var(--fs, 1) * 1.6)); opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .pin.event.big .ring { animation: none; transform: scale(calc(var(--fs, 1) * 1.45)); } }
.pin.event.big.selected .topic { transform: scale(calc(var(--fs, 1) * 1.6)); }
.dot .pin.event .cnt, .dot .pin.event .ring { display: none; }
.map.light .pin.event.big .ring, .map.color .pin.event.big .ring { border-color: var(--accent); box-shadow: 0 0 8px rgba(97, 85, 245, 0.5); }
.scard-btns.one { grid-template-columns: 1fr; }
.scard .ev-ic .tart { font-size: 40px; }
.scard.ev .frame-ph .tart { font-size: 84px; }
.pin.selected { z-index: 5; }
.pin[data-v="train"] .ride img { width: 80%; } /* поезд длинный — чуть меньше остальных */
/* Нажали на точку — фото на 3 секунды становится в 2,6 раза больше (и у транспорта тоже) */
.pin.peek { z-index: 6; }
.map .pin.peek .topic { display: none; }
.map .pin.peek .face { display: flex; z-index: 3; transform: scale(calc(var(--fs, 1) * 2.6)); }
.pin .face, .pin .ride { transition: transform 0.25s ease; }
.pin.selected .ride { transform: scale(1.25); }
.pin.selected .face { transform: scale(calc(var(--fs, 1) * 1.25)); }
.pin.selected .face { box-shadow: 0 0 0 4px var(--accent), 0 0 0 10px rgba(97, 85, 245, 0.35), 0 4px 14px rgba(0, 0, 0, 0.45); }
.pin.selected .ride { filter: drop-shadow(0 0 6px rgba(140, 128, 255, 0.95)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6)); }
.pin.selected .pulse { display: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
.compact .pin { width: 42px; height: 42px; }
.compact .pin .face { inset: 8px; font-size: 12px; border-width: 2px; }
.compact .pin .topic { inset: 4px; font-size: 34px; }
.compact .pin .pulse { inset: 6px; }
.compact .pin .ride { inset: -3px; }
.compact .pin .beam { width: 204px; height: 204px; }
.compact .pin .nick { top: 44px; font-size: 10px; min-width: 0; padding: 1px 7px; }
.far .pin .pulse { display: none; }
/* Весь шар: каждый эфир — крошечная мигающая точка с фото, фары показывают направление */
.dot .pin .ride, .dot .pin .nick, .dot .pin .pulse { display: none !important; }
/* На уровне всего шара тема — тоже маленькая точка, без значка */
.dot .pin.topical .topic { display: none; }
.dot .pin.topical .face { display: flex; }
.dot .pin.riding .face { display: flex; }
.dot .pin .face { border-width: 1px; font-size: 0; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.far .pin .nick { display: none; }
.far .pin.selected .nick { display: block; }
/* Главная карта — шар на фоне тёмного неба */
.map.globe { background: #05060c; }
/* Светлая и цветная карты: ники — тёмным по белой плашке, луч и кольцо — насыщенным фиолетовым, транспорт — с тёмной обводкой */
.map.light .pin .nick, .map.color .pin .nick { background: rgba(255, 255, 255, 0.94); color: #15141c; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28); }
/* На светлой и цветной карте наоборот: края насыщеннее, середина светлая и прозрачнее — не закрывает то, куда смотрит камера */
.map.light .pin .beam::after, .map.color .pin .beam::after { background: linear-gradient(to top, rgba(97, 85, 245, 0.85) 18%, rgba(97, 85, 245, 0.45) 60%, rgba(97, 85, 245, 0) 97%); }
.map.light .pin .beam::before, .map.color .pin .beam::before { background: linear-gradient(to top, rgba(205, 199, 255, 0.95) 20%, rgba(190, 183, 255, 0.6) 55%, rgba(190, 183, 255, 0) 100%); }
.map.light .pin .pulse, .map.color .pin .pulse { border-color: rgba(97, 85, 245, 1); }
.map.light .pin .ride, .map.color .pin .ride { filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.75)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); }
.map.light .pin .face, .map.color .pin .face { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 3px 10px rgba(0, 0, 0, 0.35); }
.map.light .pin.selected .face, .map.color .pin.selected .face { box-shadow: 0 0 0 4px var(--accent), 0 0 0 10px rgba(97, 85, 245, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35); }
.map.light .pin.selected .ride, .map.color .pin.selected .ride { filter: drop-shadow(0 0 6px rgba(97, 85, 245, 1)) drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.75)); }

/* шторка эфира по нажатию на точку (макет: чёрная, с ручкой) */
.scard { position: absolute; left: 0; right: 0; bottom: var(--tabbar); max-width: 560px; margin: 0 auto; background: #000; border-radius: 22px 22px 0 0; padding: 8px 18px 16px; z-index: 10; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45); animation: up 0.25s ease; transition: transform 0.2s ease; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.grab { width: 38px; height: 4px; border-radius: 2px; background: #48484a; margin: 0 auto 12px; }
.scard-head { display: flex; align-items: center; gap: 10px; }
.scard-head .who { flex: 1; min-width: 0; }
.scard-head .who b { display: block; font-size: 17px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard-head .who span { display: block; color: #8e8e93; font-size: 13px; }
.x-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 26px; }
.scard-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.btn2 { height: 38px; border-radius: 19px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 500; }
.btn2.dark { background: #1c1c1e; color: #7d73ff; }
.frame { position: relative; height: 150px; border-radius: 14px; overflow: hidden; background: #161618; cursor: pointer; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #161618; }
.frame-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #000) 0%, #101012 80%); }
.live-pill { position: absolute; left: 12px; top: 12px; background: var(--live); color: #fff; font-size: 14px; font-weight: 600; height: 24px; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; z-index: 2; }
.frame .eye-pill { z-index: 2; }
.frame-topic { position: absolute; left: 10px; bottom: 10px; display: flex; font-size: 30px; z-index: 2; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)); }
.frame-veh { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 9px; background: rgba(110, 112, 122, 0.8); display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 2; }
.scard-text { color: #8e8e93; font-size: 14px; line-height: 1.4; margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; }
.emo { font-size: 20px; line-height: 1; width: 26px; text-align: center; flex: none; }

/* метки на кадре */
.eye-pill { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(0, 0, 0, 0.5); font-size: 14px; font-weight: 600; }
.eye-pill .ic { font-size: 17px; }
.vchip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px 0 11px; border-radius: 15px; background: rgba(40, 40, 46, 0.72); font-size: 15px; font-weight: 600; }
.vchip .ic { font-size: 18px; }

/* ---------- список эфиров: лента карточек с кадром ---------- */
.list-screen { background: #000; }
.list-page { display: flex; flex-direction: column; gap: 10px; padding-top: calc(12px + var(--safe-top)); padding-bottom: calc(var(--tabbar) + 20px); }
.list-page .glass { background: #1c1c1e; border-color: #2a2a2c; }
.list-page .seg > .on { background: #3a3a3c; }
.feed { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.post { display: block; text-align: start; width: 100%; }
.post .frame { height: auto; aspect-ratio: 16 / 10; border-radius: 16px; }
.post-text { margin: 10px 0 0; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-who { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #8e8e93; font-size: 14px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 12px; }
.empty b { font-size: 22px; font-weight: 700; margin: 18px 0 8px; }
.empty p { color: var(--muted); font-size: 17px; margin: 0 0 24px; max-width: 340px; }
.empty.tall { padding-top: 22vh; }
.empty.high { padding-top: 4vh; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title-row .gear { width: 50px; height: 50px; margin-top: 18px; border-radius: 50%; background: rgba(97, 85, 245, 0.22); display: flex; align-items: center; justify-content: center; color: #b4adff; flex: none; box-shadow: inset 0 0 0 1.5px rgba(140, 128, 255, 0.45); }
.title-row .gear .ic { font-size: 28px; }
.title-row .gear:active { background: rgba(97, 85, 245, 0.4); }
/* Профиль: вкладки и счётчики — в сиреневом */
#ptabs.seg.solid > .on { background: #3a3a3c; color: #fff; box-shadow: inset 0 0 0 1.5px #8c80ff; }
.page .p-stats b { color: #fff; }
.page .p-stats span { color: #b4adff; }
.p-tab .ic.big { color: #8c80ff; }
.settings .item > .ic:first-child { color: #8c80ff; }
.settings .item.danger > .ic:first-child { color: var(--danger); }
.big-title.mid { font-size: 32px; margin: 36px 0 6px; }
.center-screen { align-items: center; justify-content: center; }
.center-screen .logo { width: 72px; height: 72px; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; } }

/* ---------- экран зрителя и свой эфир: видео 2/3, карта 1/3 ---------- */
.viewer { background: #000; }
.viewer-video { position: relative; height: 66.6%; background: #000; overflow: hidden; flex: none; touch-action: none; overscroll-behavior: contain; }
.viewer-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.viewer-video #freeze { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .4s ease; }
.viewer-video #freeze.fade { opacity: 0; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 24%, transparent 55%, rgba(0,0,0,0.7)); }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; color: rgba(255, 255, 255, 0.85); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 45%, #000) 0%, color-mix(in srgb, var(--c) 22%, #000) 55%, #050507 100%); }
.ph-text { white-space: pre-line; font-size: 15px; }
.v-header { position: absolute; top: calc(12px + var(--safe-top)); left: 8px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.v-back { width: 30px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; flex: none; }
.v-back.inline { margin: 8px 0 -30px -8px; }
.v-header .who { flex: 1; min-width: 0; }
.v-header .who b { display: block; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-header .who small { display: flex; align-items: center; gap: 5px; font-size: 14px; opacity: 0.85; }
.v-header .who small .ic { font-size: 17px; }
.v-header .pill { height: 30px; padding: 0 12px 0 8px; font-size: 14px; gap: 4px; }
.v-header .pill .ic { font-size: 18px; }
.v-header .live-badge { height: 22px; padding: 0 8px; font-size: 12px; border-radius: 11px; }
.v-header .avatar.md { width: 38px; height: 38px; font-size: 17px; }
.v-more { position: absolute; right: 12px; top: calc(64px + var(--safe-top)); z-index: 3; }
.v-info { position: absolute; left: 16px; bottom: 82px; right: 16px; z-index: 3; }
.v-info.beside-pad { right: calc(min(232px, 62vw) + 20px); }
/* Рядом с пультом места мало: название мельче и не длиннее трёх строк */
.v-info.beside-pad h2 { font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.v-info h2 { font-size: 19px; margin: 8px 0 0; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.v-info .chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.v-info .chips-row:empty { display: none; }
.tchip { padding: 0 11px; }
.tchip .tart { font-size: 22px; }
.v-info .speed { font-size: 14px; opacity: 0.85; margin-top: 2px; }
/* Пульт «вилка»: кружок — я, квадрат — объект, дорожка — круг вокруг него */
.pad { position: absolute; right: 8px; bottom: 78px; width: min(232px, 62vw); padding: 6px 4px 2px; border-radius: 26px; background: rgba(0, 0, 0, 0.42); border: 1px solid rgba(255, 255, 255, 0.12); z-index: 3; }
.pad svg { display: block; width: 100%; height: auto; }
.pad .rail { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 15; stroke-linecap: round; }
.pad .sight { stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.pad .arrow { fill: rgba(255, 255, 255, 0.95); transition: fill .15s, opacity .2s; }
.pad .stop { fill: rgba(0, 0, 0, 0.55); stroke: rgba(255, 255, 255, 0.95); stroke-width: 2.4; transition: opacity .2s; }
.pad .me-dot { fill: rgba(255, 255, 255, 0.95); }
.pad .hit { fill: transparent; }
.pad .ctl { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.pad .ctl:active .arrow, .pad .ctl:focus-visible .arrow { fill: var(--accent); }
.pad .ctl.none .arrow, .pad .ctl.none .stop { opacity: .28; }
.pad .pult-frame { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.5; }
.pad .star { fill: #fff; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.pad #pultMe, .pad #pultSquare { transition: transform .45s ease; transform-origin: 160px 62px; }
.pad:not(.ring) .only-ring, .pad.ring .only-world { display: none; }
@media (prefers-reduced-motion: reduce) { .pad #pultMe, .pad #pultSquare { transition-duration: .01s; } }
.v-actions { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 0 14px; z-index: 4; }
.v-actions .comment { flex: 1; min-width: 0; height: 46px; border-radius: 23px; background: rgba(28, 28, 30, 0.88); display: flex; align-items: center; padding: 0 5px 0 18px; }
.comment input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: #fff; font-size: 16px; }
.comment input::placeholder { color: #8e8e93; }
.comment .send { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.comment .send:disabled { opacity: 0.5; }
.v-actions .round { width: 46px; height: 46px; font-size: 23px; background: rgba(28, 28, 30, 0.88); }
.v-actions .liked { color: #ff375f; }
.flight { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); background: rgba(97, 85, 245, 0.94); padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 5; white-space: nowrap; }
.sound-btn { position: absolute; left: 50%; top: 54%; transform: translateX(-50%); z-index: 5; }
.viewer-map { position: relative; flex: 1; overflow: hidden; z-index: 2; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.weather { position: absolute; right: 12px; top: 12px; z-index: 2; }

/* меню и листы */
.sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
/* Лист с полем ввода — сверху: на iPhone клавиатура закрывает низ экрана и прячет поле и «Сохранить» */
.sheet-back.top { align-items: flex-start; padding-top: calc(var(--safe-top) + 8px); }
.sheet-back.top .sheet { animation: down 0.2s ease; }
@keyframes down { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet { width: 100%; max-width: 480px; max-height: 92%; display: flex; flex-direction: column; padding: 8px 10px max(10px, calc(var(--safe-bottom) - 24px)); animation: up 0.2s ease; }
.sheet-list, .sheet h3, .sheet p { background: var(--card); }
.sheet h3 { margin: 0; padding: 16px 18px 4px; font-size: 15px; color: var(--muted); font-weight: 600; text-align: center; border-radius: 20px 20px 0 0; }
.sheet p { margin: 0; padding: 4px 18px 12px; color: var(--muted); font-size: 14px; text-align: center; }
.sheet h3 + .sheet-list, .sheet p + .sheet-list { border-radius: 0 0 20px 20px; }
.sheet-list { border-radius: 20px; overflow-y: auto; min-height: 0; flex: 0 1 auto; -webkit-overflow-scrolling: touch; }
.sheet > * { flex: none; }
.sheet > .sheet-list { flex: 0 1 auto; }
.sheet h3:only-of-type ~ .sheet-list { border-top: 1px solid var(--line); }
.sheet-list button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; padding: 14px 18px; font-size: 17px; border-top: 1px solid var(--line); }
.sheet-list button:first-child { border-top: 0; }
.sheet-list .sheet-sub { padding: 18px 18px 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; border-top: 1px solid var(--line); }
.sheet-list .sheet-sub + button { border-top: 0; }
.sheet-list button .ic { font-size: 22px; color: var(--muted); }
.sheet-list button:active { background: var(--field); }
.sheet-list button.danger, .sheet-list button.danger .ic { color: var(--danger); }
/* Одно опасное действие: по центру, на всю ширину, тонкая красная рамка; отступы со всех сторон одинаковые */
.sheet-list.confirm { padding: 16px; border-top: 0 !important; }
.sheet p + .sheet-list.confirm, .sheet h3 + .sheet-list.confirm { padding-top: 4px; }
.sheet-list.confirm button { justify-content: center; padding: 16px 12px; border: 1.5px solid var(--danger); border-radius: 16px; font-size: 18px; font-weight: 600; }
.sheet-list.confirm button .ic { display: none; }
.sheet-list.confirm button:active { background: rgba(255, 59, 48, 0.12); }
.sheet-list button.picked { color: #fff; }
.sheet-list .tick-ic { margin-inline-start: auto; color: var(--accent) !important; }
.sheet-btn { margin-top: 8px; height: 52px; border-radius: 20px; }
.sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 0 0 20px 20px; overflow: hidden; border-top: 1px solid var(--line); }
.sum-sub { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--muted); }
.sum-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 6px 14px; background: var(--card); text-align: center; min-width: 0; }
.sum-tile .ic { font-size: 22px; color: var(--accent); }
.sum-tile b { font-size: 22px; font-weight: 700; color: var(--text, #fff); font-variant-numeric: tabular-nums; }
.sum-tile span { font-size: 12px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.sheet .cancel { display: block; width: 100%; margin-top: 8px; padding: 16px; border-radius: 20px; background: var(--card); font-size: 17px; font-weight: 600; text-align: center; }

/* ---------- «В эфир» ---------- */
.golive { background: #000; }
.gl-hero { flex: 1; min-height: 214px; display: flex; align-items: center; justify-content: center; padding: calc(12px + var(--safe-top)) 8px 24px; color: #a7a3c4; text-align: center; }
/* Подсказка — как экран телевизора: рамка, экран со свечением, ножка */
.tv { position: relative; width: 100%; max-width: 560px; height: 100%; max-height: 186px; min-height: 176px; padding: 7px; border-radius: 18px; background: #26252e; box-shadow: inset 0 0 0 1px #3a3a44, 0 10px 30px rgba(0, 0, 0, 0.5); }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 70px; height: 8px; margin-left: -35px; border-radius: 0 0 8px 8px; background: #26252e; box-shadow: inset 0 -1px 0 #3a3a44; }
.tv-screen { height: 100%; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; background: radial-gradient(120% 90% at 50% 30%, #2c2490 0%, #17125a 55%, #0b0930 100%); box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.6); }
.gl-hero .tv-cam { font-size: 100px; margin: -10px 0 -14px; transform: scaleX(-1); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); } /* камера смотрит вправо */
.gl-hero p { margin: 0; font-size: 16px; }
/* Низкий экран: значок камеры меньше, чтобы «Начать эфир» было видно без прокрутки */
/* Невысокий телефон: телевизор ниже, чтобы «Начать эфир» была видна сразу и при подсказке в две строки */
@media (max-height: 660px) { .gl-hero { min-height: 136px !important; padding-bottom: 16px !important; } .tv { min-height: 110px !important; } .gl-hero .tv-cam { font-size: 52px !important; margin: -4px 0 -6px !important; } .gl-sheet .lbl { margin: 8px 0 6px; } }
@media (max-height: 700px) { .gl-hero { min-height: 176px; padding-bottom: 20px; } .tv { min-height: 146px; } .tv-screen { gap: 6px; } .gl-hero .tv-cam { font-size: 70px; margin: -6px 0 -8px; } .gl-hero p { font-size: 14px; } }
.gl-sheet { flex: none; background: var(--card); border-radius: 0; padding: 12px 22px calc(var(--tabbar) + 12px); width: 100%; max-width: 560px; margin: 0 auto; }
/* «Новый эфир» и «Вы где?» — один средний размер */
.gl-sheet h1, .gl-sheet .lbl { font-size: 21px; font-weight: 700; letter-spacing: -0.2px; }
.gl-sheet h1 { margin: 0 0 8px; }
.gl-sheet .lbl { margin: 12px 0 8px; }
.gl-sheet .input { height: 46px; font-size: 16px; }
.gl-sheet .select-head { height: 46px; font-size: 16px; }
.gl-sheet .btn { height: 50px; font-size: 18px; }
.gl-sheet .hint { font-size: 14px; margin-top: 8px; }
.gl-sheet .fine { font-size: 12px; }
/* «Что снимаете?» — одна строка значков, листается вбок до края экрана */
/* Значки ровно по ширине формы: первый у левого края поля, «+» — у правого */
.topics { display: flex; justify-content: space-between; gap: 4px; overflow-x: auto; margin: 0; padding: 0 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.topics::-webkit-scrollbar { display: none; }
.topic-chip { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; color: #e5e5ea; font-size: 32px; transition: background 0.15s, transform 0.15s; }
.topic-chip.on { transform: scale(1.06); }
/* Название выбранного значка — видно 2 секунды */
.topic-say { height: 18px; margin-top: 4px; font-size: 14px; font-weight: 600; color: #b4adff; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.topic-say.on { opacity: 1; }
.topic-say + .hint { margin-top: 0; }
.topic-chip.on { background: rgba(97, 85, 245, 0.32); box-shadow: 0 0 0 2px var(--accent) inset; }
.topic-chip.more { border: 1.5px dashed #5a5a62; color: #c7c7cc; font-size: 26px; width: 44px; height: 44px; border-radius: 50%; }
/* Фильтр: те же значки сеткой */
/* Все темы плиткой под «+» */
.topic-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px 12px 14px; background: var(--card); border-radius: 0 0 20px 20px; overflow-y: auto; min-height: 0; flex: 0 1 auto; }
.topic-tiles button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 2px 10px; border-radius: 14px; color: #e5e5ea; }
.topic-tiles button .tart { font-size: 40px; }
.topic-tiles button small { max-width: 100%; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 380px) { .topic-tiles { gap: 4px; padding: 10px 8px 14px; } .topic-tiles button small { font-size: 11px; } }
.topic-tiles button.on { background: rgba(97, 85, 245, 0.32); box-shadow: 0 0 0 2px var(--accent) inset; }
.topic-tiles button.on small { color: #fff; }
.topic-tiles button:active { background: var(--field); }
/* Фильтр: две колонки — транспорт и что снимают */
.sheet.wide { max-width: 640px; }
.fl-cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fl-col + .fl-col { border-inline-start: 1px solid var(--line); }
.fl-col .sheet-sub { border-top: 0 !important; padding: 14px 12px 6px !important; }
.sheet-list .fl-col button { gap: 7px; height: 58px; padding: 0 8px 0 10px; font-size: 14px; line-height: 1.2; }
.fl-col .emo { font-size: 20px; width: 22px; flex: none; text-align: center; }
/* Транспорт в фильтре — светло-серые значки, ровно читаются на тёмном */
.sheet-list .fl-col button .v-ic { font-size: 24px; color: #d1d1d6; }
.move-note { margin: 0; font-size: 12px; color: var(--muted); }
.sheet-list .fl-col button .t-ic { font-size: 26px; }
.fl-name { flex: 1; min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.sheet-list .fl-col .tick-ic { font-size: 22px; }
.sheet-list .fl-col .tick-ic.two { font-size: 18px; box-sizing: content-box; padding: 4px 7px; border-radius: 12px; background: var(--accent); color: #fff !important; box-shadow: 0 0 0 2px rgba(180, 173, 255, 0.45); }
.sheet-list .fl-col button:has(.tick-ic.two) { background: rgba(97, 85, 245, 0.2); color: #fff; font-weight: 600; }
.fl-hint .ic:last-of-type { background: var(--accent); color: #fff !important; border-radius: 8px; padding: 2px 4px; box-sizing: content-box; }
.sheet .fl-hint { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; padding: 10px 14px; margin-top: 8px; border-radius: 16px; font-size: 13px; }
.fl-hint .ic { font-size: 17px; color: var(--accent); }
.hint { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.hint .ic { font-size: 22px; color: #9a9a9e; transform: scaleX(-1); }
.gl-sheet .error { margin: 4px 0 8px; min-height: 8px; }
.fine a, .note a { text-decoration: underline; }
.fine { color: #8e8e93; font-size: 12px; margin: 10px 0 0; text-align: center; }

/* ---------- свой эфир ---------- */
.host-top { position: absolute; top: calc(12px + var(--safe-top)); left: 14px; right: 14px; display: flex; gap: 8px; align-items: center; z-index: 3; }
.host-bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.host-chips { flex: 1; }
.host-bottom #status { flex-basis: 100%; order: -1; }
.red-pill { background: var(--live); height: 42px; padding: 0 20px; border-radius: 21px; }
.compass { display: inline-flex; transition: transform 0.4s ease; }
.tick { font-variant-numeric: tabular-nums; }

/* выпадающий список транспорта (макет: «Укажите транспорт») */
.select { position: relative; }
.select-head { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 54px; padding: 0 20px; border-radius: 27px; background: var(--field); color: #7c7c80; font-size: 18px; text-align: start; }
.select.chosen .select-head { color: #fff; }
.select-head #vehLabel { display: flex; align-items: center; gap: 10px; }
.select .chev { display: flex; font-size: 18px; color: #9a9a9e; }
.select .chev .ic { transform: rotate(-90deg); transition: transform 0.2s; }
.select.open .chev .ic { transform: rotate(90deg); }
.select-list { margin-top: 6px; border-radius: 18px; overflow: hidden; background: #3a3a3c; max-height: 290px; overflow-y: auto; }
.select-list button { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 18px; font-size: 17px; text-align: start; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.select-list button:first-child { border-top: 0; }
.select-list button.on { background: rgba(97, 85, 245, 0.35); }

/* ---------- профиль ---------- */
.p-head { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; }
.p-info { min-width: 0; }
.p-nick { font-size: 27px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-sub { color: var(--muted); font-size: 17px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card { background: var(--card); border-radius: 26px; margin-top: 22px; }
.p-tab { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px 20px 36px; text-align: center; }
.p-tab .ic.big { font-size: 46px; }
.p-tab p { margin: 0; color: var(--muted); font-size: 17px; }
.settings { padding: 6px 20px 6px; }
.settings h3 { font-size: 20px; font-weight: 700; margin: 18px 0 6px; }
.settings .item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 17px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 18px; text-align: start; }
.settings h3 + .item { border-top: 0; }
.settings .item:first-child { border-top: 0; }
.settings .item .ic { font-size: 24px; }
.settings .item .val { margin-inline-start: auto; color: var(--muted); font-size: 16px; }
.settings .item .val.link { color: var(--accent); font-weight: 600; }
.settings .item.danger { color: var(--danger); }
.settings .item.muted { color: var(--muted); }

@media (max-width: 370px) {
  .big-title { font-size: 34px; }
  .auth-title { font-size: 38px; }
  .v-header .pill { padding: 0 12px; }
  .v-header .pill .ic { display: none; }
}

/* ---------- языки ---------- */
.lang-page .logo { width: 76px; height: 76px; display: block; margin-bottom: 26px; }
.lang-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 22px; }
.lang-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; border-radius: 18px; background: var(--card); border: 1.5px solid transparent; text-align: start; }
.lang-list button.picked { border-color: var(--accent); background: var(--accent-dim); }
.lang-own { flex: 1; font-size: 18px; font-weight: 700; }
.lang-en { color: var(--muted); font-size: 14px; }
.lang-tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #48484a; flex: none; }
.lang-list .picked .lang-tick { border: 7px solid var(--accent); }
.lang-chip { display: flex; align-items: center; gap: 8px; margin: 22px auto 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.lang-chip .ic { font-size: 20px; }
/* Справа налево (арабский): стрелки «назад» смотрят в другую сторону */
[dir="rtl"] .v-back .ic, [dir="rtl"] .auth-back .ic { transform: scaleX(-1); }
.lang-page .lang-own { text-align: left; }
/* Ники и почта всегда пишутся слева направо, даже в арабском интерфейсе */
.p-nick, .p-sub, .pin .nick, #who b, .item span { unicode-bidi: plaintext; }
/* Кнопки на карте под эфиром: «+», «−» и самолётик (север / куда движется) */
.mini-tools { position: absolute; right: 12px; bottom: 40px; display: flex; flex-direction: column; gap: 8px; z-index: 4; }
.mini-tools .round { width: 40px; height: 40px; font-size: 22px; background: rgba(20, 24, 32, 0.88); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); position: relative; }
.mini-tools .orient.on, .aim-btn.on { color: var(--accent); }
.aim-btn { position: absolute; left: 12px; bottom: 40px; z-index: 4; width: 40px; height: 40px; font-size: 22px; background: rgba(20, 24, 32, 0.88); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
#hmap.aiming, #hmap.aiming canvas { cursor: crosshair; }
.mini-tools .north-n { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 9px; line-height: 1; font-weight: 800; color: #ff6b5e; }
.mini-tools .orient:not(.on) .ic { font-size: 18px; margin-top: 6px; }
/* «Вы где?»: значки транспорта в списке */
.select-list button .ic, #vehLabel .ic { font-size: 22px; color: #c7c7cc; }
#vehLabel { display: inline-flex; align-items: center; gap: 10px; }
/* Главная карта: «где я» — наклонный самолётик, как в подсказке на экране эфира */
.ic.tilt { transform: scaleX(-1); }

/* Комментарии поверх карты под эфиром: карта притушена, новое сообщение — внизу */
.chat { position: absolute; inset: 0; z-index: 3; background: rgba(6, 6, 10, 0.68); transition: transform 0.35s ease, opacity 0.35s ease; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.chat.away { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.chat-list { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 7px; padding: 12px 64px 14px 12px; }
.chat-list > :first-child { margin-top: auto; }
.cm { display: flex; align-items: flex-start; gap: 8px; }
.cm.new { animation: up 0.25s ease; }
.cm .avatar.xs { width: 24px; height: 24px; font-size: 11px; margin-top: 1px; }
.cm p { margin: 0; font-size: 15px; line-height: 1.3; color: #fff; overflow-wrap: anywhere; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.cm b { font-weight: 700; margin-inline-end: 4px; unicode-bidi: plaintext; }
.chat-open { position: absolute; left: 12px; top: 12px; z-index: 5; background: rgba(20, 24, 32, 0.88); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.chat-open .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(20, 24, 32, 0.9); }

/* Профиль: фото можно сменить по нажатию */
.p-photo { position: relative; flex: none; border-radius: 50%; }
.p-cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; border: 3px solid var(--bg); }
.host-chips .chip span { unicode-bidi: plaintext; }

/* Подписки */
.tab.dot { position: relative; }
.tab.dot::after { content: ""; position: absolute; top: 6px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; }
.subs-h { font-size: 15px; font-weight: 600; color: var(--muted); margin: 18px 4px 10px; }
.subs-live { display: flex; flex-direction: column; gap: 10px; }
.sub-live { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; background: var(--card); text-align: start; color: var(--text); }
.sub-live .sl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sub-live .sl-text b { unicode-bidi: plaintext; }
.sub-live .sl-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-live .sl-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); font-size: 12px; }
.sub-live .sl-meta small { display: flex; align-items: center; gap: 3px; }
.sub-live .live-pill { position: static; }
.subs-list .item { display: flex; align-items: center; gap: 12px; }
.sub-live.soon .sl-text small { display: flex; align-items: center; gap: 5px; }
.sub-live.soon .sl-topic { font-size: 16px; }
.sub-live.soon .when { color: var(--accent); font-weight: 600; }
.sub-live .remind { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--accent); font-size: 12px; font-weight: 600; padding: 4px 2px; }
.sub-live .remind .ic { font-size: 22px; }
.plan-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; font-size: 15px; }
.sheet.plan .plan-body { background: var(--card); padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 10px; border-radius: 0 0 20px 20px; }
.sheet.plan .plan-body .fine { margin: 0; text-align: start; }
.sheet.plan .plan-body .lbl { margin: 6px 0 0; }
.sheet.plan input[type="datetime-local"] { color-scheme: dark; }
.plan-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.plan-item span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-item small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subs-list .item span { flex: 1; }
.link-btn { color: var(--accent); font-size: 14px; padding: 6px 4px; }
.pill.on, .btn2.on { background: rgba(255, 255, 255, 0.14); color: #fff; }
/* Профиль: цифры */
.p-stats { display: flex; justify-content: space-around; margin: 4px 0 16px; }
.ucard { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 18px 18px; background: var(--card); border-radius: 20px; }
.ucard .u-nick { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; }
.ucard .u-tag { font-size: 13px; color: #b4adff; background: rgba(97, 85, 245, 0.18); padding: 4px 10px; border-radius: 10px; }
.ucard .p-stats { width: 100%; margin: 6px 0 8px; }
.ucard .p-stats span { color: #b4adff; font-size: 13px; }
.ucard .btn { height: 52px; font-size: 17px; }
.ucard .btn.on { background: var(--field); color: #fff; }
.btn.ghost { background: transparent; color: #b4adff; box-shadow: inset 0 0 0 1.5px rgba(140, 128, 255, 0.55); }
.subs-list .u-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.people .pp { cursor: pointer; }
.p-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.p-stats b { font-size: 20px; }
.points { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 6px; }
.points > b { font-size: 40px; line-height: 1.1; color: var(--accent); }
.points > span { font-size: 13px; color: var(--muted); }
.points h4 { margin: 18px 0 6px; font-size: 15px; }
.points p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.p-stats span { font-size: 13px; color: var(--muted); }
.plain-list { width: 100%; text-align: start; }
.plain-list .item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
/* Лайки: счётчик на сердечке и летящие сердечки */
#like { position: relative; }
#like #likeP { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); font-size: 9px; font-weight: 800; color: #fff; line-height: 1; pointer-events: none; text-shadow: 0 0 2px rgba(0, 0, 0, 0.6); }
#likes .likers { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; font-size: 0.85em; opacity: 0.85; }
#likes .likers svg { width: 1em; height: 1em; }
#like i { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); white-space: nowrap; }
.hearts { position: absolute; right: 18px; bottom: 90px; width: 60px; height: 0; pointer-events: none; z-index: 6; }
.host .hearts { bottom: 110px; }
.heart-fx { position: absolute; bottom: 0; left: 50%; font-size: 30px; opacity: 0; animation: heartUp 1.8s ease-out forwards; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }
@keyframes heartUp {
  0% { transform: translate(-50%, 0) scale(0.6) rotate(0); opacity: 0; }
  12% { opacity: 1; transform: translate(-50%, -20px) scale(1.05) rotate(var(--rot)); }
  70% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), -230px) scale(0.85) rotate(var(--rot)); opacity: 0; }
}
.chip.likes .ic { color: #ff3b5c; }

/* Переключатель — один вид для всех настроек */
.sheet-list button.has-switch { display: flex; align-items: center; }
.sheet-list button.has-switch span { flex: 1; text-align: start; }
.switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: #3a3a3c; transition: background 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); }
[dir=rtl] .switch.on::after { transform: translateX(-18px); }
[dir=rtl] .switch::after { left: auto; right: 3px; }
/* Профиль → История */
.hist h4 { margin: 4px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hist h4:not(:first-child) { margin-top: 18px; }
.hist .item { align-items: center; }
.hist .item.tap { cursor: pointer; }
.hist .h-ic { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #2c2c2e; font-size: 20px; color: var(--muted); }
.hist .h-ic img { width: 28px; height: 28px; }
.hist .h-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hist .h-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.hist .h-main small, .hist .h-side small { color: var(--muted); font-size: 12px; }
.hist .h-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 13px; color: var(--muted); }
.hist .h-side small { display: flex; align-items: center; gap: 2px; }
.hist .h-side .ic { color: #ff3b5c; font-size: 13px; }
.hist .live-pill { position: static; height: 20px; font-size: 12px; padding: 0 8px; }

/* Фото профиля: выбрать себя на снимке */
.cropper { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; align-items: center; padding: max(12px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); }
.crop-head { width: 100%; max-width: 520px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.crop-head b { font-size: 16px; text-align: center; flex: 1; }
.link-btn.strong { font-weight: 700; }
.crop-view { position: relative; flex: none; width: min(100vw - 32px, 62vh, 520px); height: min(100vw - 32px, 62vh, 520px); margin: auto 0 0; overflow: hidden; touch-action: none; cursor: grab; border-radius: 4px; }
.crop-view img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.62); outline: 2px solid rgba(255, 255, 255, 0.9); pointer-events: none; }
.crop-hint { color: var(--muted); font-size: 14px; text-align: center; margin: 16px 0 10px; max-width: 420px; }
.crop-zoom { width: min(100%, 420px); margin-bottom: auto; accent-color: var(--accent); }

/* Стример: кто смотрит и кто поставил лайк */
.host-top .chip { cursor: pointer; }
.host-top .chip.on { background: rgba(255, 255, 255, 0.24); }
.people { position: absolute; top: calc(62px + var(--safe-top)); left: 14px; width: min(280px, calc(100% - 28px)); max-height: 46%; display: flex; flex-direction: column; background: rgba(18, 18, 22, 0.92); border-radius: 16px; padding: 12px 12px 8px; z-index: 4; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); animation: up 0.18s ease; }
.people-h { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.people-list { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.people .pp { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; }
.people .pp span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.people .pp small { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; }
.people .pp small .ic { color: #ff3b5c; }
.people .avatar.xs { width: 26px; height: 26px; font-size: 12px; }
.people .small { font-size: 13px; padding: 4px 0 6px; }
.people .muted { color: var(--muted); }

/* «@ник вышел в эфир» */
.notice { position: fixed; top: calc(10px + var(--safe-top)); left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 24px)); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px; background: rgba(28, 28, 32, 0.96); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); cursor: pointer; animation: noticeIn 0.35s ease; transition: transform 0.3s ease, opacity 0.3s ease; }
.notice.gone { transform: translate(-50%, -140%); opacity: 0; pointer-events: none; }
.notice .n-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.notice .n-text b { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.notice .n-text b .ic { color: #ff3b5c; flex: none; }
.notice .n-text span { color: var(--muted); font-size: 13px; }
.notice .n-go { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
@keyframes noticeIn { from { transform: translate(-50%, -140%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.settings .item .switch { margin-inline-start: auto; }

/* Длинные списки профиля: 5 строк, стрелка вниз — ещё 20, стрелка вверх — свернуть */
.more-list > .item.folded { display: none !important; }
.more-btns { display: flex; justify-content: center; gap: 8px; padding-top: 4px; }
.more-btns button { width: 48px; height: 44px; border: 0; border-radius: 22px; background: var(--chip); color: #c7c7cc; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.more-btns button[hidden] { display: none; }
.more-btns button:active { background: var(--field); color: #fff; }
.more-btns svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.more-btns .more-up svg { transform: rotate(180deg); }

/* Список «смотрят / лайкнули» у автора: нажатие на него оставляет его открытым */
.people.pinned { box-shadow: 0 0 0 1.5px var(--accent), 0 6px 24px rgba(0, 0, 0, 0.4); }
.zoom-level { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 15px; font-weight: 600; padding: 4px 12px; border-radius: 14px; z-index: 4; pointer-events: none; }
.zoom-level[hidden] { display: none; }
/* Проверка «я здесь»: большой отсчёт поверх своего видео */
.here { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(0, 0, 0, 0.62); color: #fff; text-align: center; padding: 24px; }
.here[hidden] { display: none; }
.here p { font-size: 22px; font-weight: 600; margin: 0; }
.here b { font-size: 112px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.here .pill { background: var(--accent); color: #fff; font-size: 19px; font-weight: 600; padding: 15px 40px; border-radius: 28px; border: 0; margin-top: 6px; }
.here small { font-size: 14px; opacity: 0.75; }

/* Транспорт в два цвета: контур светло-серый, окна, крыша, рама — сиреневые */
.vic .vic-l { fill: currentColor; }
.vic .vic-a { fill: #8c80ff; opacity: 0.85; }
.vic .vic-p { fill: #8c80ff; }
.select-list button .vic, #vehLabel .vic, .vchip .vic { color: #d1d1d6; }

/* Строка «В SidesWorld с …» на узком телефоне переносится, а не обрезается */
.p-sub.wrap { white-space: normal; overflow: visible; }

/* Запись эфира: средняя точка кнопки ⋯ становится большой, красной и мигает */
#menu .rec-dot { display: none; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45); pointer-events: none; }
#menu.recording .rec-dot { display: block; animation: recblink 1.1s ease-in-out infinite; }
@keyframes recblink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
/* «В эфир»: ведущий решает, можно ли зрителям записывать */
.rec-allow { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 0; padding: 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; text-align: left; }
.rec-allow span { flex: 1; }

/* Музыка в эфире: панель ведущего и строка «что играет» у зрителя */
.host-top #music.on { background: var(--accent); color: #fff; }
.music-panel { position: absolute; left: 10px; right: 10px; top: calc(64px + var(--safe-top)); max-height: calc(100% - 150px); z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(22, 22, 26, 0.94); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.music-panel[hidden] { display: none; }
.m-head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; }
.m-now, .m-vol { display: flex; align-items: center; gap: 10px; }
.m-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-title b, .m-title span, .m-pick b, .m-pick span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-title span, .m-pick span { font-size: 12.5px; color: #a6a6ae; }
.m-vol input { flex: 1; min-width: 0; accent-color: var(--accent); height: 28px; }
.m-vol #mVol { width: 44px; text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.m-opts, .m-genres { display: flex; gap: 6px; flex-wrap: wrap; }
.m-genres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.m-opt { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 15px; border: 0; background: #2c2c31; color: #d1d1d6; font: inherit; font-size: 13.5px; white-space: nowrap; }
.m-opt .ic { font-size: 16px; }
.m-opt.on { background: var(--accent); color: #fff; }
.m-list { overflow-y: auto; min-height: 60px; display: flex; flex-direction: column; }
.m-track { display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.m-track.on .m-pick b { color: #8c80ff; }
.m-pick { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 9px 2px; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.m-heart { background: none; border: 0; color: #6e6e76; font-size: 22px; padding: 8px; display: flex; }
.m-heart.on { color: #ff3b5c; }
.m-empty { color: #a6a6ae; font-size: 14px; margin: 12px 2px; }
.v-info .v-music { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; opacity: 0.9; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.v-info .v-music span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-info .v-music .ic { font-size: 15px; flex: none; }

/* Длинный заголовок («Заблокированные») переносится, а не уходит за край экрана */
.big-title { overflow-wrap: anywhere; font-size: clamp(30px, 9.4vw, 40px); }

/* ====================================================================== */
/* Цветное оформление (Профиль → Оформление). Тёмное — всё, что выше, без изменений. */
/* Цветное = тёмное на тон светлее + цветные значки; сиреневого в нём нет, главный цвет — синий. */
/* У <html> стоит data-color. Экран эфира остаётся чёрным: на видео так лучше видно. */
/* ====================================================================== */
:root[data-color] {
  --bg: #17171b;
  --card: #26262b;
  --field: #34343a;
  --chip: #2c2c31;
  --accent: #1a6fd4;
  --danger: #ff6b61;
  --accent-dim: #16304f;
  --accent-dim-text: #6c93c2;
  --glass: rgba(56, 56, 62, 0.74);
  --link: #6cb2ff;
}
:root[data-color] .tabbar { background: #222227; }
:root[data-color] .scard, :root[data-color] .list-screen, :root[data-color] .golive { background: var(--bg); }
:root[data-color] .seg.solid { background: #202025; border-color: #34343a; }
:root[data-color] .seg.solid > .on, :root[data-color] .list-page .seg > .on { background: #46464d; }
:root[data-color] .list-page .glass { background: var(--card); border-color: #34343a; }
:root[data-color] .frame, :root[data-color] .frame img { background: #202025; }
:root[data-color] .select-list { background: #46464d; }
:root[data-color] .switch { background: #4a4a52; }
:root[data-color] .switch.on { background: var(--accent); }

/* сиреневое → синее */
:root[data-color] .btn2.dark { background: var(--card); color: #6cb2ff; }
:root[data-color] .title-row .gear { background: rgba(47, 143, 255, 0.2); color: #7fbcff; box-shadow: inset 0 0 0 1.5px rgba(47, 143, 255, 0.5); }
:root[data-color] .title-row .gear:active { background: rgba(47, 143, 255, 0.4); }
:root[data-color] #ptabs.seg.solid > .on { box-shadow: inset 0 0 0 1.5px var(--accent); }
:root[data-color] .ucard .u-tag { color: #7fbcff; background: rgba(47, 143, 255, 0.18); }
:root[data-color] .btn.ghost { color: #7fbcff; box-shadow: inset 0 0 0 1.5px rgba(47, 143, 255, 0.6); }
:root[data-color] .topic-say { color: #7fbcff; }
:root[data-color] .topic-chip.on, :root[data-color] .topic-tiles button.on { background: rgba(47, 143, 255, 0.28); }
:root[data-color] .select-list button.on { background: rgba(47, 143, 255, 0.35); }
:root[data-color] .suggest button:first-child { background: rgba(47, 143, 255, 0.18); }
:root[data-color] .sheet-list .fl-col button:has(.tick-ic.two) { background: rgba(47, 143, 255, 0.22); }
:root[data-color] .sheet-list .fl-col .tick-ic.two { box-shadow: 0 0 0 2px rgba(127, 188, 255, 0.45); }
:root[data-color] .flight { background: rgba(47, 143, 255, 0.94); }
:root[data-color] .pin .pulse { border-color: rgba(47, 143, 255, 0.9); }
:root[data-color] .pin.selected .face { box-shadow: 0 0 0 4px var(--accent), 0 0 0 10px rgba(47, 143, 255, 0.35), 0 4px 14px rgba(0, 0, 0, 0.45); }

/* значки тем: каждая тема в своём цвете (рисунки те же, меняется только краска) */
:root[data-color] .tart [fill="#6155f5"] { fill: var(--t1, #2f8fff); }
:root[data-color] .tart [fill="#8c80ff"] { fill: var(--t2, #6cb2ff); }
:root[data-color] .tart [fill="#b4adff"] { fill: var(--t3, #b3d6ff); }
:root[data-color] .tart [fill="#dcd8ff"] { fill: var(--t4, #dcecff); }
:root[data-color] .tart [fill="#3f35b8"] { fill: var(--t0, #1b62b8); }
:root[data-color] .tart [stroke="#6155f5"] { stroke: var(--t1, #2f8fff); }
:root[data-color] .tart [stroke="#8c80ff"] { stroke: var(--t2, #6cb2ff); }
:root[data-color] .tart [stroke="#b4adff"] { stroke: var(--t3, #b3d6ff); }
:root[data-color] .tart [stroke="#dcd8ff"] { stroke: var(--t4, #dcecff); }
:root[data-color] .tart [stroke="#3f35b8"] { stroke: var(--t0, #1b62b8); }
:root[data-color] .tart[data-t="football"] { --t0: #14713c; --t1: #22a85c; --t2: #4cc47f; --t3: #a6e3bf; --t4: #d8f3e3; }
:root[data-color] .tart[data-t="press"] { --t0: #0b7a59; --t1: #12b886; --t2: #51cf9f; --t3: #a9e6cf; --t4: #d9f5ea; }
:root[data-color] .tart[data-t="basketball"] { --t0: #a86400; --t1: #f08c00; --t2: #ffa94d; --t3: #ffd8a8; --t4: #fff0dc; }
:root[data-color] .tart[data-t="hockey"] { --t0: #0a6aa0; --t1: #0e8fd6; --t2: #4db5ee; --t3: #a6dbf8; --t4: #d8effc; }
:root[data-color] .tart[data-t="boxing"] { --t0: #a3360b; --t1: #e8590c; --t2: #f27a45; --t3: #f9bca0; --t4: #fde3d6; }
:root[data-color] .tart[data-t="wrestling"] { --t0: #0a6d64; --t1: #0fa89a; --t2: #3fbdb1; --t3: #9fe0d9; --t4: #d5f3ef; }
:root[data-color] .tart[data-t="ski"] { --t0: #145a9c; --t1: #2288e6; --t2: #5aa5e8; --t3: #add3f5; --t4: #dcecfb; }
:root[data-color] .tart[data-t="sport"] { --t0: #456f0a; --t1: #74b816; --t2: #94d82d; --t3: #c3e08f; --t4: #e6f3cf; }
:root[data-color] .tart[data-t="concert"] { --t0: #8f1a43; --t1: #e64980; --t2: #f783ac; --t3: #fcc2d7; --t4: #ffdeeb; }
:root[data-color] .tart[data-t="wedding"] { --t0: #a87800; --t1: #f2b705; --t2: #f8cf4a; --t3: #fbe08f; --t4: #fcefc9; }
:root[data-color] .tart[data-t="fireworks"] { --t0: #742a87; --t1: #cc5de8; --t2: #da77f2; --t3: #e9b3f6; --t4: #f6defb; }
:root[data-color] .tart[data-t="beach"] { --t0: #237032; --t1: #37b24d; --t2: #5cc16f; --t3: #ade3b7; --t4: #dbf3df; }
:root[data-color] .tart[data-t="fire"] { --t0: #b93a12; --t1: #f4511e; --t2: #ff8a3d; --t3: #ffc08a; --t4: #ffe3c9; }
:root[data-color] .tart[data-t="crash"] { --t0: #a35f00; --t1: #f08c00; --t2: #f59f3a; --t3: #fbd09a; --t4: #fdebd3; }
:root[data-color] .tart[data-t="sea"] { --t0: #13508a; --t1: #228be6; --t2: #4f9be0; --t3: #a8cdf1; --t4: #d9e9f9; }
:root[data-color] .tart[data-t="swim"] { --t0: #086070; --t1: #15aabf; --t2: #3bb5c9; --t3: #99dbe6; --t4: #d3f1f6; }
:root[data-color] .tart[data-t="rain"] { --t0: #2b44a8; --t1: #4c6ef5; --t2: #748ffc; --t3: #bac8ff; --t4: #dfe6ff; }
:root[data-color] .tart[data-t="ice"] { --t0: #0b7384; --t1: #22b8cf; --t2: #4fc6d6; --t3: #a5e3ec; --t4: #d7f3f7; }
:root[data-color] .tart[data-t="snow"] { --t0: #0b6f80; --t1: #3bc9db; --t2: #66d9e8; --t3: #a1dfe8; --t4: #d6f2f6; }
:root[data-color] .tart[data-t="blizzard"] { --t0: #3d4a7a; --t1: #748ffc; --t2: #91a7ff; --t3: #bfc8e6; --t4: #e2e7f5; }

:root[data-color] .fine { color: #8f8f98; }
/* транспорт: у каждого свой цвет — как у значков тем (решение владельца 24.11) */
:root[data-color] .vic { filter: saturate(0.72) brightness(0.98); }
:root[data-color] .vic[data-v] .vic-l { fill: var(--v2, #8ec5ff); }
:root[data-color] .vic[data-v] .vic-a, :root[data-color] .vic[data-v] .vic-p { fill: var(--v1, #2f8fff); opacity: 0.95; }
:root[data-color] .ic[data-v="horse"] { color: #c08552; filter: saturate(0.8); }
:root[data-color] .all-ic { color: #6cb2ff; }
:root[data-color] .vic[data-v="sit"] { --v1: #e8890c; --v2: #ffc078; }
:root[data-color] .vic[data-v="walk"] { --v1: #12b886; --v2: #63e6be; }
:root[data-color] .vic[data-v="car"] { --v1: #2f8fff; --v2: #8ec5ff; }
:root[data-color] .vic[data-v="truck"] { --v1: #f08c00; --v2: #ffc078; }
:root[data-color] .vic[data-v="bus"] { --v1: #f2b705; --v2: #ffe066; }
:root[data-color] .vic[data-v="scooter"] { --v1: #15aabf; --v2: #66d9e8; }
:root[data-color] .vic[data-v="bike"] { --v1: #37b24d; --v2: #8ce99a; }
:root[data-color] .vic[data-v="moto"] { --v1: #e8443a; --v2: #ffa8a8; }
:root[data-color] .vic[data-v="metro"] { --v1: #e64980; --v2: #faa2c1; }
:root[data-color] .vic[data-v="train"] { --v1: #4c6ef5; --v2: #a5b8ff; }
:root[data-color] .vic[data-v="plane"] { --v1: #339af0; --v2: #a5d8ff; }
:root[data-color] .vic[data-v="boat"] { --v1: #1c7ed6; --v2: #74c0fc; }
:root[data-color] .vic[data-v="liner"] { --v1: #4263eb; --v2: #91a7ff; }
:root[data-color] .vic[data-v="tractor"] { --v1: #2b8a3e; --v2: #8ce99a; }
:root[data-color] .vic[data-v="rollers"] { --v1: #e64980; --v2: #fcc2d7; }
:root[data-color] .vic[data-v="helicopter"] { --v1: #f76707; --v2: #ffc078; }
:root[data-color] .vic[data-v="paraglide"] { --v1: #7950f2; --v2: #b197fc; }
:root[data-color] .vic[data-v="snowmobile"] { --v1: #0c8599; --v2: #66d9e8; }
:root[data-color] .vic[data-v="space"] { --v1: #ae3ec9; --v2: #e599f7; }
:root[data-color] .vic[data-v="any"] { --v1: #2f8fff; --v2: #8ec5ff; }

:root[data-color] #like .ic { color: #ff3b5c; }

/* Строгость: цвет только у значков тем, и тот приглушённый; кнопки, вкладки и меню — один синий (решение владельца 23.11) */
:root[data-color] .tab.on { color: #6cb2ff; }
:root[data-color] .tab.on > span:last-child { color: #6cb2ff; }
:root[data-color] .tab.on .disc { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-color] .tart { filter: saturate(0.72) brightness(0.96); }
:root[data-color] .settings .item:not(.danger) > .ic:first-child, :root[data-color] .p-stats span, :root[data-color] .p-tab .ic.big, :root[data-color] .empty > .ic { color: #6cb2ff; }
:root[data-color] .pin.event.big .ring { filter: saturate(0.6); }

/* событие на 4+ камер: кольцо разноцветное */
:root[data-color] .pin.event.big .ring { border: 0; box-shadow: none; background: conic-gradient(#ff3b5c, #ff8a3d, #ffb020, #5fd068, #3bc9db, #2f8fff, #cc5de8, #ff3b5c); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px)); }

/* луч камеры на карте и «телевизор» — тоже без сиреневого */
:root[data-color] .pin .beam::after { background: linear-gradient(to top, rgba(190, 222, 255, 0.95) 18%, rgba(150, 200, 255, 0.5) 60%, rgba(150, 200, 255, 0) 97%); }
:root[data-color] .pin .beam::before { background: linear-gradient(to top, rgba(47, 143, 255, 1) 22%, rgba(47, 143, 255, 0.9) 58%, rgba(47, 143, 255, 0) 100%); }
:root[data-color] .tv-screen { background: radial-gradient(120% 90% at 50% 30%, #2f78d4 0%, #1d4f96 55%, #0f2c5a 100%); }
.sheet.plan .error:empty { display: none; }

/* Сохранённые названия эфира: выпадают под полем при касании, как список «Вы где?» */
.saved-titles .st-row { display: flex; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-inline-end: 4px; }
.saved-titles .st-row:first-child { border-top: 0; }
.saved-titles button { border-top: 0; }
.saved-titles .st-use { flex: 1; min-width: 0; height: 48px; padding: 0 18px; font-size: 17px; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.saved-titles .st-ic { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 19px; color: var(--muted); border-radius: 50%; }
