/**
 * BlaBlaSell — Global mini-player (scoped; no theme overrides).
 */
.bbs-gmb-root {
  --bbs-gmb-w: min(320px, 92vw);
  --bbs-gmb-radius: 12px;
  --bbs-gmb-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  position: fixed;
  z-index: 10040;
  width: var(--bbs-gmb-w);
  max-height: min(42vh, 320px);
  display: flex;
  flex-direction: column;
  background: rgba(18, 18, 22, 0.94);
  color: #f4f4f6;
  border-radius: var(--bbs-gmb-radius);
  box-shadow: var(--bbs-gmb-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  user-select: none;
  touch-action: none;
}

.bbs-gmb-root[hidden] {
  display: none !important;
}

.bbs-gmb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: grab;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bbs-gmb-head:active {
  cursor: grabbing;
}

.bbs-gmb-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  opacity: 0.95;
}

.bbs-gmb-btn {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.bbs-gmb-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.bbs-gmb-body {
  position: relative;
  background: #000;
}

.bbs-gmb-video,
.bbs-gmb-audio {
  display: block;
  width: 100%;
  max-height: min(36vh, 280px);
}

.bbs-gmb-audio {
  padding: 8px 10px 12px;
  box-sizing: border-box;
  background: #111;
}

.bbs-gmb-img {
  display: block;
  width: 100%;
  max-height: min(36vh, 280px);
  object-fit: contain;
  background: #000;
}

.bbs-gmb-bunny-host {
  display: none;
  width: 100%;
  max-height: min(36vh, 280px);
  min-height: 140px;
  background: #000;
  position: relative;
}

/* Mobile bottom nav / theme toolbars: lift above common fixed bars */
@media (max-width: 900px) {
  .bbs-gmb-root {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 901px) {
  .bbs-gmb-root {
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    right: max(20px, env(safe-area-inset-right, 0px));
  }
}
