.vb-dir { position: fixed; right: 18px; bottom: 18px; z-index: 60; font-family: inherit; }
.vb-dir-fab {
  width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 2px rgba(255,255,255,0.2);
  background: #0b0f18;
}
.vb-dir-fab img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-dir-fab.is-live { box-shadow: 0 16px 40px rgba(92,225,255,0.25), 0 0 0 3px rgba(92,225,255,0.45); }

.vb-dir-panel {
  display: none;
  position: absolute; right: 0; bottom: 88px;
  width: min(380px, calc(100vw - 28px));
  border-radius: 28px;
  background: rgba(10,12,18,0.78);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(22px) saturate(1.45);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.14);
  overflow: hidden;
}
.vb-dir-panel.is-on { display: grid; grid-template-rows: auto 1fr auto; min-height: 520px; max-height: min(78vh, 680px); }

.vb-dir-stage {
  position: relative; height: 252px;
  background: radial-gradient(circle at 50% 30%, rgba(92,225,255,0.16), transparent 55%), #07090f;
}
.vb-dir-head {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 200px; height: 200px; border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.2);
  transform-origin: 50% 80%;
}
.vb-dir-head img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-dir-head canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.vb-dir-head.is-talk { filter: saturate(1.08) contrast(1.04); }

.vb-dir-meta { text-align: center; padding: 0 16px 10px; }
.vb-dir-meta strong { display: block; letter-spacing: -0.03em; }
.vb-dir-meta span { color: rgba(244,246,251,0.55); font-size: 12px; }

.vb-dir-log {
  overflow: auto; padding: 10px 14px; display: grid; gap: 8px; align-content: start;
}
.vb-bbl {
  max-width: 92%; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4;
}
.vb-bbl.bot { background: rgba(255,255,255,0.07); }
.vb-bbl.me { background: rgba(92,225,255,0.14); margin-left: auto; }

.vb-dir-form { display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.vb-dir-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
.vb-dir-form input[type=text] {
  width: 100%; border: 1px solid rgba(255,255,255,0.16); background: rgba(0,0,0,0.28);
  border-radius: 14px; padding: 10px 12px; color: #fff;
}
.vb-dir-form button {
  border: 0; border-radius: 14px; padding: 0 12px; cursor: pointer;
  background: #f4f6fb; color: #0a0c10; font-weight: 620;
}
.vb-dir-form .mic { background: rgba(255,255,255,0.1); color: #fff; min-width: 42px; }
.vb-dir-form .mic.is-on { background: #ff6b8a; }
.vb-dir-check { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: rgba(244,246,251,0.55); }
.vb-dir-check input { margin-top: 2px; }
.vb-dir-quota { font-size: 11px; color: rgba(244,246,251,0.4); }
.vb-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

@media (max-width: 520px) {
  .vb-dir { right: 10px; bottom: 10px; }
  .vb-dir-panel { bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .vb-dir-head.is-talk { animation: none; }
}
