/* MultiBar 1.8.4 */

/* ---------- запись видеокружка: удержание ---------- */
#chat-vid-btn { touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mb-vrec { background: rgba(8, 10, 14, .9); }
.mb-vrec-box { padding-top: 40px; gap: 12px; }
.mb-vrec-time { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .92; min-height: 24px; }
.mb-vrec-time i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .0; }
.mb-vrec[data-state="hold"] .mb-vrec-time i, .mb-vrec[data-state="locked"] .mb-vrec-time i { opacity: .7; animation: mbvpulse 1.2s ease-in-out infinite; }
@keyframes mbvpulse { 50% { opacity: .15; } }
.mb-vrec-ring circle { stroke: #fff !important; opacity: .85; stroke-width: 2 !important; }
.mb-vrec[data-state="arming"] .mb-vrec-ring circle, .mb-vrec[data-state="review"] .mb-vrec-ring circle { opacity: 0; }
.mb-vrec-stage { box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); transition: transform .2s ease; }
.mb-vrec[data-state="hold"] .mb-vrec-stage, .mb-vrec[data-state="locked"] .mb-vrec-stage { transform: scale(1.02); }
.mb-vrec.will-cancel .mb-vrec-stage { opacity: .5; transform: scale(.94) translateX(-12px); }
.mb-vrec-hint { font-size: 13px; opacity: .7; min-height: 18px; }
.mb-vrec.will-cancel .mb-vrec-hint::after { content: ' · влево — отмена'; }
.mb-vrec-x { display: none; }
.mb-vrec[data-state="review"] .mb-vrec-x { display: inline-flex; }
.mb-vrec-play, .mb-vplay-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .28); pointer-events: none; }
.mb-vrec-play[hidden], .mb-vplay-play[hidden] { display: none; }
/* замок над кнопкой */
.mb-vrec-lock { position: fixed; z-index: 2; transform: translateX(-50%) translateY(calc(var(--p, 0) * -22px)); width: 40px; padding: 8px 0 12px; border-radius: 22px; background: rgba(255, 255, 255, .16); color: #fff; display: none; flex-direction: column; align-items: center; gap: 4px; opacity: calc(.55 + var(--p, 0) * .45); pointer-events: none; }
.mb-vrec.show-lock .mb-vrec-lock { display: flex; }
.mb-vrec-lock i { width: 8px; height: 8px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg); margin-top: 2px; opacity: calc(1 - var(--p, 0)); }
/* кнопки зафиксированной записи — спокойные, без красного */
.mb-vrec-bar { display: flex; align-items: center; justify-content: center; gap: 14px; width: min(88vw, 360px); }
.mb-vrec-bar[hidden], .mb-vrec-bar2[hidden], .mb-scrub[hidden] { display: none !important; }
.mb-vrec-rb { width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mb-vrec-rb.primary { background: var(--primary); }
.mb-vrec-rb:active { transform: scale(.94); }
.mb-vrec-sq { width: 16px; height: 16px; border-radius: 4px; background: #fff; display: block; }
.mb-vrec-bar2 { display: flex; gap: 10px; width: min(88vw, 360px); }
.mb-vrec-bar2 .btn-main { flex: 1; }

/* ---------- «штучка» для перемотки ---------- */
.mb-scrub { display: flex; align-items: center; gap: 10px; width: min(86vw, 360px); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.mb-scrub-t0, .mb-scrub-t1 { flex: 0 0 34px; opacity: .75; }
.mb-scrub-t1 { text-align: right; }
.mb-scrub-track { position: relative; flex: 1; height: 28px; cursor: pointer; touch-action: none; }
.mb-scrub-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.mb-scrub-fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #fff; width: 0; }
.mb-scrub-thumb { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); transition: transform .12s ease; }
.mb-scrub.is-drag .mb-scrub-thumb { transform: scale(1.35); }
.mb-vplay { flex-direction: column; gap: 18px; }

/* 1.8.4: прочитано */
.chat-status.read { display: inline-flex; align-items: center; color: #fff; }
.chat-status.read svg + svg { margin-left: -8px; }
.chat-status.read .chat-rc { font-style: normal; font-size: 10px; margin-left: 3px; font-weight: 700; }

/* 1.8.4: шторка — пункты «зажигаются» по ходу вытягивания, ровные интервалы */
#side-drawer .side-drawer-actions > button.dr-gap { margin-top: 0 !important; }
#side-drawer .side-drawer-actions > button { margin-bottom: 8px !important; }
#side-drawer .side-drawer-actions > button:last-of-type { margin-bottom: 0 !important; }
#side-drawer.mb-dp .side-drawer-actions > button,
#side-drawer.mb-dp .side-drawer-header { animation: none !important; --o: clamp(0, calc((var(--dp, 0) - var(--i, 0) * .07) * 2.4), 1); opacity: var(--o); transform: translate3d(calc((1 - var(--o)) * -22px), 0, 0); transition: none; }
#side-drawer.mb-dp .side-drawer-header { --i: 0; }
#side-drawer.mb-nointro.open .side-drawer-actions > button,
#side-drawer.mb-nointro.open .side-drawer-header { animation: none !important; }

.nkl-preview-pic { cursor: zoom-in; }
.mb-viewer { z-index: 10120; }

/* 1.8.5 */
.mb-vplay-spin { flex-direction: column; gap: 10px; color: #fff; }
.mb-vplay-st { font-size: 13px; font-weight: 700; opacity: .85; }
#chat-input { overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
#chat-input::-webkit-scrollbar { display: none; width: 0; height: 0; }
.chat-bubble:has(.chat-vid) { position: relative; }
.chat-msg:has(.chat-vid) .chat-meta, .chat-msg.att-only:has(.chat-vid) .chat-meta { position: absolute; left: 50%; right: auto; bottom: 12px; transform: translateX(-50%); width: auto; margin: 0; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; opacity: 1; justify-content: center; }
.cv-vdur { left: 50%; bottom: auto; top: 12px; transform: translateX(-50%); }
.chat-msg:has(.chat-voice) .chat-meta, .chat-msg.att-only:has(.chat-voice) .chat-meta { position: static; background: none; color: inherit; padding: 0 7px; border-radius: 0; opacity: .75; }
