/* Ehna — features ported from v5 (chat actions, reply, pin, reactions) */

/* ===== Voice room: mobile-first party room layout ===== */
.voice-room-page:has(.vr-sugo) {
  padding: 0 !important;
}
.voice-room-shell.vr-sugo {
  --vr-room-bg: none;
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: calc(100vh - 60px);
  margin: 0 auto;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  background: #1b1033;
  overflow: hidden;
  isolation: isolate;
}
.voice-room-shell.vr-sugo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--vr-room-bg) center / cover no-repeat, linear-gradient(180deg, #2a1658 0%, #1b1033 55%, #120a24 100%);
  filter: blur(2px) saturate(1.1);
  transform: scale(1.03);
}
.voice-room-shell.vr-sugo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 6, 24, .55) 0%, rgba(10, 6, 24, .25) 35%, rgba(10, 6, 24, .7) 100%);
}
@media (min-width: 576px) {
  .voice-room-shell.vr-sugo {
    margin-top: 12px;
    border-radius: 18px;
    min-height: calc(100vh - 90px);
  }
}

/* top bar */
.vr-sugo .vr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 56px;
  padding: 8px 10px;
}
.vr-sugo .vr-topbar-room {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 62%;
  padding: 3px 12px 3px 3px;
  border-radius: 22px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  text-decoration: none;
}
.vr-sugo .vr-topbar-room img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  object-fit: cover;
}
.vr-sugo .vr-topbar-info {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}
.vr-sugo .vr-topbar-info strong {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vr-sugo .vr-topbar-info small {
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vr-sugo .vr-topbar-actions.voice-room-livebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  flex-wrap: nowrap;
}
.vr-sugo .vr-icon-btn {
  display: inline-grid;
  grid-auto-flow: column;
  place-items: center;
  gap: 4px;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-size: 14px;
  background: rgba(0, 0, 0, .3);
  box-shadow: none;
  text-decoration: none;
}
.vr-sugo .vr-icon-btn strong {
  min-width: 0;
  height: auto;
  padding: 0;
  font-size: 12px;
  background: transparent;
}
.vr-sugo .vr-icon-btn.is-danger {
  background: rgba(239, 68, 68, .75);
}
.vr-sugo .vr-notice {
  margin: 0 10px 6px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .88);
  background: rgba(0, 0, 0, .25);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vr-sugo .voice-room-admin-bar {
  margin: 0 10px 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(10, 6, 24, .82);
  flex-wrap: wrap;
}
.vr-sugo .voice-room-admin-bar:not(.is-open) {
  display: none !important;
}

/* stage & seats */
.vr-sugo .vr-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.vr-sugo .voice-room-stage {
  padding: 6px 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.vr-sugo .voice-room-seats {
  gap: 10px;
}
.vr-sugo .voice-seat-section-title {
  display: none;
}
.vr-sugo .voice-audio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 4px;
}
.vr-sugo .voice-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.vr-sugo .voice-seat {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.vr-sugo .voice-audio-grid .voice-seat[data-seat="1"] {
  grid-column: 1 / -1;
}
.vr-sugo .voice-seat .voice-seat-avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 4px;
}
.vr-sugo .voice-audio-grid .voice-seat[data-seat="1"] .voice-seat-avatar-wrap {
  width: 72px;
  height: 72px;
}
.vr-sugo .voice-seat .voice-seat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.vr-sugo .voice-seat:not(.is-occupied) .voice-seat-avatar-wrap {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  animation: none;
}
.vr-sugo .voice-seat:not(.is-occupied) .voice-seat-avatar-wrap::before {
  display: none;
}
.vr-sugo .voice-seat-empty-icon {
  font-size: 18px;
  color: rgba(255, 255, 255, .7);
  background: transparent;
  width: auto;
  height: auto;
  box-shadow: none;
}
.vr-sugo .voice-seat-name-line {
  display: flex;
  justify-content: center;
  max-width: 100%;
}
.vr-sugo .voice-seat-name {
  display: block;
  max-width: 100%;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vr-sugo .voice-seat:not(.is-occupied) .voice-seat-name {
  color: rgba(255, 255, 255, .6);
}
.vr-sugo .voice-seat-sub,
.vr-sugo .voice-seat-menu-trigger,
.vr-sugo .voice-seat-controls,
.vr-sugo .voice-seat-name-line .user-badge-chip {
  display: none !important;
}
.vr-sugo .voice-seat-badges {
  position: absolute;
  top: 38px;
  inset-inline-end: calc(50% - 30px);
  z-index: 3;
  display: flex;
  gap: 2px;
  pointer-events: none;
}
.vr-sugo .voice-audio-grid .voice-seat[data-seat="1"] .voice-seat-badges {
  top: 52px;
  inset-inline-end: calc(50% - 38px);
}
.vr-sugo .voice-seat-badge {
  display: none !important;
  width: 18px;
  height: 18px;
  font-size: 9px;
  border-radius: 50%;
  border: 1.5px solid #1b1033;
}
.vr-sugo .voice-seat-badge.bg-warning,
.vr-sugo .voice-seat-mute-badge {
  display: grid !important;
  place-items: center;
}
.vr-sugo .voice-seat.is-speaking .voice-seat-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 214, 102, .9);
  animation: vrRipple 1.2s ease-out infinite;
}
.vr-sugo .voice-seat.is-speaking .voice-seat-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 214, 102, .6);
  animation: vrRipple 1.2s ease-out .6s infinite;
}
@keyframes vrRipple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.vr-sugo .voice-seat.is-video-seat .voice-seat-video-wrap {
  border-radius: 12px;
  overflow: hidden;
}
.vr-sugo .voice-seat.is-selected .voice-seat-avatar {
  box-shadow: 0 0 0 2px #ffd166;
}

/* multi-guest video tiles: 3 per row, square, name inside the tile */
.vr-sugo .voice-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 4px !important;
}
.vr-sugo .voice-seat.is-video-seat {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, .3) !important;
}
.vr-sugo .voice-seat.is-video-seat .voice-seat-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.vr-sugo .voice-seat.is-video-seat .voice-seat-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vr-sugo .voice-seat.is-video-seat .voice-seat-video-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: transparent;
}
.vr-sugo .voice-seat.is-video-seat .voice-seat-video-placeholder img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.vr-sugo .voice-seat.is-video-seat .voice-seat-video-placeholder span {
  display: none;
}
.vr-sugo .voice-seat.is-video-seat .voice-seat-empty-icon {
  font-size: 16px;
  color: rgba(255, 255, 255, .55);
}
.vr-sugo .voice-seat.is-video-seat .voice-seat-name-line,
.vr-sugo .voice-seat.is-video-seat:not(.is-occupied) .voice-seat-sub {
  position: absolute;
  inset-inline-start: 4px;
  bottom: 4px;
  z-index: 4;
  max-width: calc(100% - 8px);
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .45);
  justify-content: flex-start;
}
.vr-sugo .voice-seat.is-video-seat .voice-seat-badges {
  top: 4px;
  inset-inline-end: 4px;
}
.vr-sugo .voice-seat.is-video-seat.is-speaking {
  box-shadow: inset 0 0 0 2px #ffd166 !important;
}

/* audio seats: 4 per row, partial last row centered, empty seats show their number */
.vr-sugo .voice-audio-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 0 !important;
}
.vr-sugo .voice-audio-grid .voice-seat {
  width: 25%;
  flex: 0 0 25%;
}
.vr-sugo .voice-audio-grid .voice-seat[data-seat="1"] {
  flex-basis: 100%;
  width: 100%;
}
.vr-sugo .voice-seat:not(.is-occupied) .voice-seat-name {
  display: none;
}
.vr-sugo .voice-seat:not(.is-occupied) .voice-seat-sub {
  display: block !important;
  font-size: 11px;
  color: rgba(255, 255, 255, .6);
}
.vr-sugo .voice-seat.is-locked:not(.is-occupied) .voice-seat-empty-icon {
  font-size: 15px;
}
.vr-sugo .voice-seat-empty-icon {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.vr-sugo .voice-room-message-audio {
  width: 210px;
  min-width: 0;
  height: 32px;
  margin-top: 4px;
}
.vr-sugo .voice-room-message-media img {
  max-width: 150px;
  max-height: 120px;
}

/* ----- room chat: compact type scale ----- */
.vr-sugo .voice-room-message {
  padding: 4px 9px !important;
  border-radius: 10px !important;
}
.vr-sugo .voice-room-message .voice-room-message-name,
.vr-sugo .voice-room-message .identity-name {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}
.vr-sugo .voice-room-message p {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}
.vr-sugo .voice-room-message .user-badge-chip {
  zoom: .72;
  margin: 0 2px !important;
  vertical-align: middle;
}
.vr-sugo .voice-room-message-package {
  width: 14px !important;
  height: 14px !important;
}
.vr-sugo .voice-seat-name,
.vr-sugo .voice-seat .identity-name {
  font-size: 11px !important;
  font-weight: 500 !important;
}

/* ----- "more" popover: compact 4-up grid ----- */
.vr-sugo .vr-dock-more {
  grid-template-columns: repeat(4, 56px) !important;
  gap: 12px 6px !important;
  padding: 12px !important;
  border-radius: 14px !important;
}
.vr-sugo .vr-more-item .voice-room-tool {
  width: 40px !important;
  height: 40px !important;
  flex-basis: 40px !important;
  font-size: 16px !important;
}
.vr-sugo .vr-more-item small {
  font-size: 10px !important;
  line-height: 1.2;
  white-space: nowrap;
}

/* ----- tool panels become bottom sheets ----- */
.vr-sugo .voice-room-emoji-panel,
.vr-sugo .voice-room-frames-panel,
.vr-sugo .voice-room-deepar-panel,
.vr-sugo .voice-room-voice-recorder {
  position: fixed !important;
  left: 50% !important;
  bottom: 0 !important;
  z-index: 1040 !important;
  width: min(100%, 480px) !important;
  max-height: 55vh;
  margin: 0 !important;
  padding: 22px 14px 16px !important;
  overflow-y: auto;
  transform: translateX(-50%);
  border: 0 !important;
  border-radius: 16px 16px 0 0 !important;
  background: #1c1433 !important;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .45) !important;
  animation: vrSheetUp .22s ease-out;
}
.vr-sugo .voice-room-emoji-panel::before,
.vr-sugo .voice-room-frames-panel::before,
.vr-sugo .voice-room-deepar-panel::before,
.vr-sugo .voice-room-voice-recorder::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
}
@keyframes vrSheetUp {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}
.vr-sugo .voice-room-mini-panel-title {
  margin-bottom: 12px !important;
}
.vr-sugo .voice-room-mini-panel-title strong {
  font-size: 14px;
  font-weight: 600;
}
.vr-sugo .voice-room-mini-panel-title small {
  font-size: 11px;
}
.vr-sugo .voice-room-emoji-panel:not(.x-hidden) {
  display: grid !important;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
/* emoji sheet sits above the dock so the typed text stays visible */
.vr-sugo .voice-room-emoji-panel {
  bottom: 56px !important;
  max-height: 40vh;
}
.vr-sugo .voice-room-emoji-panel button {
  height: 40px;
  padding: 0 !important;
  font-size: 22px !important;
  border-radius: 8px;
}
.vr-sugo .voice-room-emoji-panel button:active {
  background: rgba(255, 255, 255, .1);
}
.vr-sugo .voice-frame-shop {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px !important;
}
.vr-sugo .voice-frame-card {
  display: grid !important;
  justify-items: center;
  gap: 6px !important;
  padding: 12px 6px 10px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .05) !important;
  text-align: center;
  color: #fff;
}
.vr-sugo .voice-frame-card:hover,
.vr-sugo .voice-frame-card:focus {
  border-color: rgba(255, 209, 102, .6) !important;
}
.vr-sugo .voice-frame-card .voice-frame-preview {
  width: 46px !important;
  height: 46px !important;
}
.vr-sugo .voice-frame-card strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.vr-sugo .voice-frame-card small {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: #ffd166;
  background: rgba(255, 209, 102, .12);
}
.vr-sugo .voice-room-deepar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.vr-sugo .voice-room-deepar-card {
  padding: 5px !important;
  border-radius: 10px !important;
}
.vr-sugo .voice-room-deepar-card small {
  font-size: 10px !important;
  font-weight: 500 !important;
}
.vr-sugo .voice-room-voice-recorder:not(.x-hidden) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 26px !important;
}
.vr-sugo .voice-room-recorder-start,
.vr-sugo .voice-room-recorder-stop {
  height: 40px;
  padding: 0 18px !important;
  font-size: 13px;
  font-weight: 600;
}
.vr-sugo .voice-room-upload-preview,
.vr-sugo .voice-room-selected-target {
  padding: 6px 10px !important;
  font-size: 12px;
  border: 0 !important;
}
.vr-sugo .voice-room-upload-preview img {
  max-height: 80px !important;
}

/* ----- seat action menu & people list ----- */
#voice-room-seat-menu {
  min-width: 190px !important;
  max-width: 240px;
  padding: 6px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #241a3d !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5) !important;
}
#voice-room-seat-menu a,
#voice-room-seat-menu button {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  width: 100%;
  min-height: 38px;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #fff !important;
  background: transparent !important;
  text-align: start;
  text-decoration: none;
}
#voice-room-seat-menu a:hover,
#voice-room-seat-menu button:hover {
  background: rgba(255, 255, 255, .07) !important;
}
#voice-room-seat-menu i {
  width: 16px !important;
  font-size: 14px !important;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}
#voice-room-seat-menu .success i {
  color: #4ade80;
}
#voice-room-seat-menu .warning i,
#voice-room-seat-menu .warning {
  color: #fbbf24 !important;
}
#voice-room-seat-menu .danger,
#voice-room-seat-menu .danger i {
  color: #f87171 !important;
}
#voice-room-seat-menu .divider {
  height: 1px;
  margin: 4px 6px;
  background: rgba(255, 255, 255, .08);
}
#voice-room-seat-menu button:disabled {
  opacity: .5;
}
.vr-sugo .voice-room-people-panel {
  width: min(300px, calc(100vw - 24px)) !important;
  padding: 10px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #241a3d !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5) !important;
}
.vr-sugo .voice-room-person-row {
  gap: 10px !important;
  padding: 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
}
.vr-sugo .voice-room-person-row:hover {
  background: rgba(255, 255, 255, .07) !important;
}
.vr-sugo .voice-room-person-row img {
  width: 34px !important;
  height: 34px !important;
}
.vr-sugo .voice-room-person-row span {
  font-size: 13px !important;
  font-weight: 500 !important;
}
.vr-sugo .voice-room-person-row small {
  display: block;
  font-size: 11px !important;
  font-weight: 400 !important;
}

/* ----- owner settings sheet ----- */
.vr-sugo .voice-room-admin-bar .btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 16px;
}
.vr-sugo .voice-room-layout-form label {
  font-size: 11px !important;
  font-weight: 500 !important;
}
.vr-sugo .voice-room-layout-form .form-control {
  width: 70px !important;
  min-height: 32px !important;
  height: 32px;
  font-size: 13px;
  border-radius: 8px;
}

/* ----- room dialogs (gifts, tips…) as dark bottom sheets ----- */
@media (max-width: 575.98px) {
  body:has(.vr-sugo) .modal .modal-dialog {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: 100%;
  }
  body:has(.vr-sugo) .modal .modal-content {
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
  }
}
body:has(.vr-sugo) .modal .modal-content {
  color: #fff;
  border: 0;
  background: #1c1433;
}
body:has(.vr-sugo) .modal .modal-header,
body:has(.vr-sugo) .modal .modal-footer {
  border-color: rgba(255, 255, 255, .08);
}
body:has(.vr-sugo) .modal .modal-title {
  font-size: 15px;
  font-weight: 600;
}
body:has(.vr-sugo) .modal .btn-close {
  filter: invert(1);
}
body:has(.vr-sugo) .modal .form-control,
body:has(.vr-sugo) .modal .form-select {
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  background-color: rgba(255, 255, 255, .06);
}

/* the room is full-screen: no site footer or mobile tab bar under it */
body:has(.vr-sugo) .footer-bottom-bar {
  display: none !important;
}
@media (max-width: 575.98px) {
  body:has(.vr-sugo) .voice-room-shell.vr-sugo {
    min-height: calc(100vh - 120px);
  }
}

/* chat */
.vr-sugo .vr-chat-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.vr-sugo .voice-room-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 10px 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.vr-sugo .voice-room-panel-header {
  display: none;
}
.vr-sugo .voice-room-messages {
  flex: 1;
  height: auto;
  min-height: 160px;
  max-height: 38vh;
  padding-inline-end: 30%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px);
  mask-image: linear-gradient(180deg, transparent 0, #000 22px);
}
.vr-sugo .voice-room-message {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 6px;
  padding: 5px 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, .32);
}
.vr-sugo .voice-room-message-avatar {
  display: none;
}
.vr-sugo .voice-room-message-name-line {
  display: inline-flex;
  margin-inline-end: 4px;
}
.vr-sugo .voice-room-message-name {
  font-size: 12px;
  font-weight: 600;
  color: #9fd7ff;
}
.vr-sugo .voice-room-message p {
  display: inline;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
}
.vr-sugo .voice-room-message-media img {
  max-height: 160px;
  border-radius: 10px;
  margin-top: 4px;
}
.vr-sugo .voice-room-system-line {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffd166 !important;
}

/* bottom dock: mic · input pill · emoji · gift · more */
.vr-sugo .x-hidden {
  display: none !important;
}
.vr-sugo .voice-room-chat-form {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
}
.vr-sugo .voice-room-chat-form .form-control {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, .35);
}
.vr-sugo .voice-room-chat-form .form-control::placeholder {
  color: rgba(255, 255, 255, .6);
}
.vr-sugo .voice-room-chat-form .btn {
  display: none;
}
.vr-sugo .voice-room-chat-tools {
  order: 3;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 8px 0 0;
  padding-bottom: 4px;
}
.vr-sugo .voice-room-tool {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  font-size: 16px;
  background: rgba(0, 0, 0, .35);
}
.vr-sugo .vr-dock-mic {
  background: rgba(255, 255, 255, .2);
}
.vr-sugo .vr-dock-more {
  position: absolute;
  bottom: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 70;
  display: none;
  grid-template-columns: repeat(4, 64px);
  gap: 10px 4px;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(20, 12, 40, .96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.vr-sugo .vr-dock-more.is-open {
  display: grid;
}
.vr-sugo .vr-more-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}
.vr-sugo .vr-more-item .voice-room-tool {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  background: rgba(255, 255, 255, .12);
}
.vr-sugo .vr-more-item small {
  font-size: 11px;
  color: rgba(255, 255, 255, .8);
}
.vr-sugo .voice-room-messages::-webkit-scrollbar {
  display: none;
}
.vr-sugo .voice-room-messages {
  scrollbar-width: none;
}
.vr-sugo .voice-room-message .user-badge-chip {
  transform: scale(.7);
  transform-origin: center;
  margin-inline: -8px;
}
body:has(.vr-sugo) .footer {
  display: none;
}
.vr-sugo .vr-dock-mic.is-muted {
  background: rgba(239, 68, 68, .8);
}
.vr-sugo .vr-dock-gift {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  font-size: 18px;
  background: linear-gradient(135deg, #ff4f8b, #ffb03a);
  box-shadow: 0 4px 14px rgba(255, 79, 139, .45);
}
.vr-sugo .voice-room-emoji-panel,
.vr-sugo .voice-room-frames-panel,
.vr-sugo .voice-room-deepar-panel,
.vr-sugo .voice-room-voice-recorder,
.vr-sugo .voice-room-upload-preview,
.vr-sugo .voice-room-selected-target {
  order: 1;
  margin-top: 6px;
  border-radius: 14px;
  background: rgba(10, 6, 24, .86);
}

/* entrance banner */
.vr-entrance {
  position: absolute;
  top: 120px;
  inset-inline-start: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 85%;
  padding: 4px 16px 4px 4px;
  border-radius: 0 24px 24px 0;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(90deg, rgba(124, 58, 237, .95), rgba(236, 72, 153, .75), transparent);
  pointer-events: none;
  animation: vrEntrance 3.4s ease-out forwards;
}
.vr-entrance img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd166;
}
.vr-entrance strong {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes vrEntrance {
  0% { transform: translateX(-100%); opacity: 0; }
  12% { transform: translateX(0); opacity: 1; }
  80% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(30px); opacity: 0; }
}

.conversation .conversation-body {
  position: relative;
}

.chat-message-actions {
  position: absolute;
  top: 2px;
  inset-inline-end: -26px;
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 2;
}

.conversation.right .chat-message-actions {
  inset-inline-end: auto;
  inset-inline-start: -26px;
}

.conversation:hover .chat-message-actions,
.chat-message-actions .show {
  opacity: 1;
}

@media (hover: none) {
  .chat-message-actions {
    opacity: .7;
  }
}

.chat-message-actions-btn {
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color, #888);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  line-height: 22px;
  padding: 0;
}

.chat-message-actions-btn:hover {
  background: rgba(0, 0, 0, .06);
}

.chat-message-actions .dropdown-menu {
  min-width: 180px;
  font-size: 13px;
}

.chat-message-reactions-picker {
  display: flex;
  gap: 4px;
  padding: 4px 10px;
}

.chat-message-reactions-picker > span {
  cursor: pointer;
  transition: transform .12s ease;
}

.chat-message-reactions-picker > span:hover {
  transform: scale(1.25);
}

.chat-message-reactions-picker .emoji img,
.chat-message-reactions .emoji img {
  width: 20px;
  height: 20px;
}

.chat-message-reactions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 12px;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  font-size: 11px;
}

.chat-message-reactions .emoji img {
  width: 14px;
  height: 14px;
}

.chat-message-reactions .count {
  margin-inline-start: 3px;
}

.chat-reply-preview {
  display: block;
  margin-bottom: 4px;
  padding: 4px 8px;
  border-inline-start: 3px solid var(--bs-primary, #5e72e4);
  border-radius: 6px;
  background: rgba(0, 0, 0, .05);
  font-size: 12px;
  max-width: 260px;
  cursor: pointer;
}

.chat-reply-preview strong,
.chat-pinned-body strong,
.chat-reply-bar strong {
  display: block;
  font-size: 11px;
}

.chat-reply-preview span,
.chat-pinned-body span,
.chat-reply-bar span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .85;
}

.chat-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-inline-start: 3px solid var(--bs-primary, #5e72e4);
  background: rgba(0, 0, 0, .04);
  font-size: 12px;
}

.chat-reply-bar-body {
  flex: 1;
  min-width: 0;
}

.chat-pinned {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  font-size: 12px;
}

.chat-pinned > i {
  color: var(--bs-primary, #5e72e4);
}

.chat-pinned-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.chat-message-highlight .conversation-body {
  animation: chat-message-flash 1.6s ease;
}

@keyframes chat-message-flash {
  0%, 60% {
    filter: drop-shadow(0 0 6px rgba(94, 114, 228, .9));
  }
  100% {
    filter: none;
  }
}

.chat-members-menu {
  min-width: 260px;
  max-height: 360px;
  overflow-y: auto;
}

.chat-members-menu .js_chat-add-user-results ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

body.night-mode .chat-reply-preview,
body.night-mode .chat-reply-bar {
  background: rgba(255, 255, 255, .06);
}

body.night-mode .chat-message-reactions,
body.night-mode .chat-pinned {
  background: #1f2430;
}

/* live chat rules (live moderation) */
.live-chat-rules {
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
}

/* live flying reactions */
.live-fly-layer {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 70px;
  width: 80px;
  height: 60%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}
.live-fly-item {
  position: absolute;
  bottom: 0;
  left: 50%;
  font-size: 30px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
  animation: liveFlyUp 3s cubic-bezier(.2, .6, .4, 1) forwards;
}
@keyframes liveFlyUp {
  0% { transform: translate(-50%, 0) scale(.3); opacity: 0; }
  15% { transform: translate(calc(-50% + var(--drift, 0px) * .4), -20%) scale(1); opacity: 1; }
  60% { transform: translate(calc(-50% - var(--drift, 0px) * .4), -300%) scale(1); opacity: .9; }
  100% { transform: translate(calc(-50% + var(--drift, 0px)), -520%) scale(.8); opacity: 0; }
}

/* chat multiple attachments */
.chat-media-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 8px;
}
.chat-media-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  height: 52px;
  padding: 0 26px 0 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .06);
  font-size: 12px;
  overflow: hidden;
}
.chat-media-chip img {
  width: 52px;
  height: 52px;
  margin-inline-start: -8px;
  object-fit: cover;
}
.chat-media-chip .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-media-chip .btn-close {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 10px;
  height: 10px;
  padding: 2px;
  background-size: 8px;
  background-color: #fff;
  border-radius: 50%;
}
.chat-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
}
.chat-media-grid.multi {
  grid-template-columns: 1fr 1fr;
}
.chat-media-grid img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.chat-media-grid:not(.multi) img {
  aspect-ratio: auto;
}
.chat-media-file {
  display: flex;
  align-items: center;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .06);
  color: inherit;
  text-decoration: none;
}

.page-messages-shell {
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
  min-height: min(720px, calc(100vh - 150px));
  overflow: hidden;
}
.page-messages-sidebar {
  border-inline-end: 1px solid var(--bs-border-color);
  min-width: 0;
}
.page-messages-sidebar-head,
.page-messages-thread-head {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--bs-border-color);
}
.page-inbox-list {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.page-inbox-item {
  min-height: 70px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--bs-border-color);
}
.page-inbox-item:hover,
.page-inbox-item.active {
  background: rgba(0, 0, 0, .04);
}
.page-inbox-item.unread strong {
  color: var(--bs-primary);
}
.page-inbox-item img,
.page-messages-thread-head img,
.page-message-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
}
.page-inbox-item-body {
  min-width: 0;
  flex: 1;
  display: grid;
}
.page-inbox-item-body strong,
.page-inbox-item-body small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-inbox-item-body small {
  color: var(--bs-secondary-color);
}
.page-messages-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.page-messages-thread-body {
  flex: 1;
  min-height: 240px;
  max-height: calc(100vh - 275px);
  overflow-y: auto;
  padding: 18px;
}
.page-messages-thread-body:empty::after {
  content: "";
  display: block;
  min-height: 1px;
}
.page-message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 14px;
}
.page-message-row.mine {
  justify-content: flex-end;
}
.page-message-content {
  max-width: min(72%, 520px);
}
.page-message-author,
.page-message-time {
  display: block;
  color: var(--bs-secondary-color);
  font-size: 11px;
  margin: 0 8px 3px;
}
.page-message-time {
  text-align: end;
  margin-top: 3px;
}
.page-message-bubble {
  padding: 9px 13px;
  border-radius: 16px 16px 16px 4px;
  background: var(--bs-tertiary-bg);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.page-message-row.mine .page-message-bubble {
  color: #fff;
  background: var(--bs-primary);
  border-radius: 16px 16px 4px 16px;
}
.page-message-row.mine .page-message-time {
  display: none;
}
.page-messages-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--bs-border-color);
}
.page-messages-composer textarea {
  resize: vertical;
  max-height: 140px;
}
.page-messages-composer button {
  flex: 0 0 42px;
  height: 42px;
}
@media (max-width: 767.98px) {
  .page-messages-shell {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100vh - 120px);
  }
  .page-messages-sidebar {
    border-inline-end: 0;
  }
  .page-messages-sidebar.x-hidden {
    display: none !important;
  }
  .page-messages-thread-body {
    max-height: calc(100vh - 250px);
  }
}

.live-stream-wrapper {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0;
}
.live-stream-title.live-pro-header {
  max-width: 900px;
  margin: 0 auto 14px;
  color: var(--bs-body-color);
  font-size: 16px;
  line-height: 1.4;
}
.live-stream-wrapper .live-stream-video {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 20px;
  background: #101418;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
}
.live-stream-wrapper .live-stream-video .live-video-player,
.live-stream-wrapper .live-stream-video .live-video-player > div,
.live-stream-wrapper .live-stream-video .live-video-player video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: inherit;
}
.live-stream-wrapper .live-stream-video .live-counter {
  top: 12px;
  inset-inline-start: 12px;
}
.live-stream-wrapper .live-stream-video .live-recording {
  top: 12px;
  inset-inline-end: 12px;
}
.live-stream-wrapper .live-stream-video .live-comments {
  height: min(36%, 240px);
  padding: 12px;
  background-image: linear-gradient(transparent, rgba(0, 0, 0, .82));
}
.live-stream-buttons {
  max-width: 420px;
  margin: 12px auto 0;
  padding: 6px 2px;
  text-align: center;
  white-space: normal;
}
.live-stream-buttons > * {
  margin-bottom: 8px;
}
.live-gifts-feed {
  inset-inline-end: 10px;
  width: min(42%, 190px);
  max-height: 34%;
  overflow: hidden;
  background: rgba(15, 20, 24, .58);
  border-color: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.live-gift-item {
  animation: liveGiftArrival .35s ease-out both;
}
.live-gift-banner {
  position: absolute;
  inset-inline-start: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 78%;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, rgba(254, 44, 85, .92), rgba(255, 140, 50, .72));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  pointer-events: none;
  animation: liveGiftBanner 3.2s ease-out forwards;
}
.live-gift-banner .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.live-gift-banner .text {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}
.live-gift-banner .text strong,
.live-gift-banner .text small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.live-gift-banner .text small {
  opacity: .85;
  font-size: 11px;
}
.live-gift-banner .gift {
  width: 38px;
  height: 38px;
  object-fit: contain;
  animation: liveGiftPop .6s ease-out .3s both;
}
.live-gift-banner .points {
  font-weight: 800;
  font-size: 18px;
  font-style: italic;
  color: #ffe66d;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.live-gift-burst {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 214, 102, .35), transparent 60%);
  animation: liveGiftBurstFade 3.6s ease-out forwards;
}
.live-gift-burst .gift {
  width: min(55%, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(255, 196, 0, .6));
  animation: liveGiftBurstZoom 3.6s cubic-bezier(.2, .8, .3, 1) forwards;
}
.live-gift-burst .caption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .55);
}
.live-gift-burst .caption .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.live-gift-burst .caption .points {
  font-weight: 800;
  color: #ffe66d;
}
@keyframes liveGiftBanner {
  0% { opacity: 0; transform: translateX(-110%); }
  12% { opacity: 1; transform: translateX(0); }
  80% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}
@keyframes liveGiftPop {
  0% { transform: scale(.2); }
  70% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes liveGiftBurstZoom {
  0% { opacity: 0; transform: scale(.2) rotate(-12deg); }
  20% { opacity: 1; transform: scale(1.1) rotate(4deg); }
  30% { transform: scale(1) rotate(0); }
  85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
@keyframes liveGiftBurstFade {
  0%, 85% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes liveGiftArrival {
  from { opacity: 0; transform: translateX(14px) scale(.92); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@media (max-width: 575.98px) {
  .live-stream-wrapper .live-stream-video {
    width: min(100%, 420px);
    border-radius: 16px;
  }
  .live-stream-title.live-pro-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .live-stream-title .live-pro-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
}

