/* ==========================================================================
   Open Minds Academy — Live Classes Hub (#/ao-vivo) & Studio (#/sala/:id)
   Scoped strictly to .lvh-* and .lvs-* (zero side effects on other routes).
   Performance-first: crisp solid/translucent surfaces (no heavy compositing
   filters on large containers) and GPU-only transform/opacity animations
   limited to the live status dot and short-lived floating emoji reactions.
   ========================================================================== */

/* ---------- Lightweight GPU keyframes ---------- */
@keyframes lvs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes lvs-float-up {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.6);
  }
  14% {
    opacity: 1;
    transform: translate3d(0, -18px, 0) scale(1.08);
  }
  75% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 14px), -210px, 0) scale(1.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lvh-pill-live i,
  .lvs-badge i,
  .lvs-conn i {
    animation: none !important;
  }
  .lvs-floater {
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   1. #/ao-vivo — LIGHT HUB (.lvh-*)
   ========================================================================== */
.lvh-page {
  background: var(--paper, #f8fafc);
  color: var(--ink, #0f172a);
  min-height: calc(100vh - var(--nav-h, 64px));
  padding-bottom: 72px;
}

.lvh-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

/* Hub header */
.lvh-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.lvh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--violet-600, #1d4ed8);
  background: rgba(37, 99, 235, 0.09);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.lvh-head h1 {
  font-family: var(--font-d);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.5px;
  color: var(--ink, #0f172a);
  line-height: 1.15;
}

.lvh-sub {
  color: var(--muted, #475569);
  font-size: 15px;
  margin-top: 6px;
  max-width: 56ch;
}

.lvh-head-act {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Featured Hero Card */
.lvh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  margin-bottom: 26px;
}

.lvh-hero.is-live {
  border-color: rgba(220, 38, 38, 0.28);
}

.lvh-hero-media {
  position: relative;
  width: 100%;
  background: #0b1120;
  min-height: 260px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.lvh-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lvh-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.42) 0%, transparent 45%, rgba(11, 17, 32, 0.55) 100%);
  pointer-events: none;
}

.lvh-hero-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.lvh-hero-viewers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(11, 17, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.lvh-hero-viewers svg {
  width: 14px;
  height: 14px;
}

.lvh-hero-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.lvh-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lvh-kicker {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--violet-600, #1d4ed8);
  letter-spacing: 0.2px;
}

.lvh-hero.is-live .lvh-kicker {
  color: #dc2626;
}

.lvh-hero-body h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink, #0f172a);
  letter-spacing: -0.4px;
  line-height: 1.22;
}

.lvh-hero-desc {
  color: var(--muted, #475569);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lvh-hero-act {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Shared Instructor Row */
.lvh-prof {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lvh-prof img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line, #e2e8f0);
  flex: none;
}

.lvh-prof > div {
  min-width: 0;
}

.lvh-prof strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lvh-prof small {
  display: block;
  font-size: 12px;
  color: var(--muted, #475569);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status pills & countdown badges */
.lvh-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  white-space: nowrap;
}

.lvh-pill-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  flex: none;
  animation: lvs-pulse 1.5s ease-in-out infinite;
}

.lvh-pill-rec {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #f8fafc;
  white-space: nowrap;
}

.lvh-viewers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2, #1e293b);
  background: var(--line-2, #f1f5f9);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.lvh-viewers svg {
  width: 14px;
  height: 14px;
}

.lvh-when {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #475569);
  white-space: nowrap;
}

.lvh-when svg {
  width: 13px;
  height: 13px;
}

.lvh-cd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.lvh-cd.is-urgent,
.lvh-cd.urgent {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.lvh-cd.is-live,
.lvh-cd.live {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Filter Pill Tabs */
.lvh-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 6px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--sh-sm);
}

.lvh-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted, #475569);
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.lvh-filter:hover {
  color: var(--ink, #0f172a);
  background: var(--line-2, #f1f5f9);
}

.lvh-filter.on,
.lvh-filter[aria-selected="true"] {
  background: var(--ink, #0f172a);
  color: #ffffff;
}

.lvh-filter b {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--line-2, #f1f5f9);
  color: var(--muted, #475569);
}

.lvh-filter.on b,
.lvh-filter[aria-selected="true"] b {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Schedule & Recordings Grid */
.lvh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lvh-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  min-width: 0;
}

.lvh-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}

.lvh-card.is-live {
  border-color: rgba(220, 38, 38, 0.35);
}

.lvh-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.lvh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lvh-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink, #0f172a);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.lvh-play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.lvh-card.is-rec:hover .lvh-play {
  transform: translate(-50%, -50%) scale(1.07);
}

.lvh-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(11, 17, 32, 0.88);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.lvh-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.lvh-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.lvh-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lvh-desc {
  font-size: 13px;
  color: var(--muted, #475569);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lvh-act {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-2, #f1f5f9);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lvh-act .btn {
  flex: 1;
  justify-content: center;
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 11px;
}

.lvh-act .btn.on,
.lvh-hero-act .btn.on {
  background: #ecfdf5;
  border-color: #86efac;
  color: #15803d;
  box-shadow: none;
}

.lvh-empty {
  background: var(--surface, #ffffff);
  border: 1.5px dashed var(--line, #e2e8f0);
  border-radius: 18px;
  padding: 44px 20px;
  text-align: center;
  color: var(--muted, #475569);
  font-size: 14.5px;
}


/* ==========================================================================
   2. #/sala/:id — DARK STUDIO (.lvs-*)
   ========================================================================== */
.lvs-shell {
  background: #0b1120;
  color: #f1f5f9;
  min-height: calc(100vh - var(--nav-h, 64px));
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* Override any legacy filter inside studio */
.lvs-shell .live-viewers,
.lvs-shell .live-tools,
.lvs-shell .host-chip {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Top Studio Header Bar */
.lvs-topbar {
  background: #111827;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.lvs-top-left,
.lvs-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.lvs-top-left {
  flex: 1;
}

.lvs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.lvs-back:hover {
  background: #334155;
  color: #ffffff;
}

.lvs-back svg {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.lvs-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  white-space: nowrap;
}

.lvs-badge.is-live,
.lvs-badge.on {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.lvs-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.lvs-badge.is-live i,
.lvs-badge.on i {
  background: #ef4444;
  animation: lvs-pulse 1.4s ease-in-out infinite;
}

.lvs-timer {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.lvs-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lvs-title-wrap h1 {
  font-size: 15.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44ch;
  line-height: 1.25;
}

.lvs-title-wrap p {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44ch;
}

.lvs-course-link {
  font-weight: 600;
  color: #93c5fd;
}

.lvs-course-link:hover {
  text-decoration: underline;
}

.lvs-viewers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.lvs-viewers svg {
  width: 14px;
  height: 14px;
  color: #93c5fd;
}

.lvs-conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #86efac;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.3);
  white-space: nowrap;
}

.lvs-conn i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: lvs-pulse 1.8s ease-in-out infinite;
}

.lvs-conn.bad,
.lvs-conn.is-bad {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
}

.lvs-conn.bad i,
.lvs-conn.is-bad i {
  background: #ef4444;
}

.lvs-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.lvs-top-btn:hover {
  background: #334155;
  color: #ffffff;
}

.lvs-top-btn.on,
.lvs-top-btn.active {
  background: var(--violet, #2563eb);
  border-color: var(--violet-400, #3b82f6);
  color: #ffffff;
}

/* Main Studio 2-Column Layout */
.lvs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  padding: 16px 18px 20px;
  flex: 1;
  min-height: 0;
  align-items: start;
}

/* Theater / Focus Mode */
.lvs-shell.is-theater .lvs-layout {
  grid-template-columns: minmax(0, 1fr);
}

.lvs-shell.is-theater .lvs-side {
  display: none;
}

.lvs-shell.is-theater .lvs-stage {
  aspect-ratio: auto;
  height: min(76vh, 760px);
  min-height: 420px;
}

.lvs-stage-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Video Stage */
.lvs-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060b16;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.55);
}

.lvs-stage.speaking {
  outline: 2.5px solid var(--flame-2, #ea580c);
  outline-offset: 2px;
}

.lvs-stage-cam,
.lvs-stage > img,
.lvs-stage > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lvs-stage video.self-full {
  transform: scaleX(-1);
}

.lvs-stage-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 22, 0.84));
  pointer-events: none;
  z-index: 1;
}

/* Pinned Question Banner on Stage */
.lvs-pin-banner {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-left: 4px solid #f59e0b;
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.lvs-pin-banner b,
.lvs-pin-banner strong {
  color: #fbbf24;
  white-space: nowrap;
}

/* Host Action Bar */
.lvs-host-bar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 28px);
}

.lvs-host-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lvs-host-btn:hover {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.45);
}

.lvs-host-btn.on {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
}

.lvs-host-btn.is-danger {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.lvs-host-btn.is-danger:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Waiting / Captions / Hand Banners */
.lvs-wait-note {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  text-align: center;
  max-width: 88%;
}

.lvs-subs {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 6;
  max-width: 82%;
  pointer-events: none;
}

.lvs-subs span {
  display: block;
  background: rgba(6, 10, 22, 0.9);
  color: #f8fafc;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 10px;
  text-align: center;
}

.lvs-subs i {
  color: #cbd5e1;
  font-style: normal;
}

.lvs-hand-banner {
  position: absolute;
  left: 14px;
  bottom: 16px;
  right: 196px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Floating Emoji Reactions Container */
.lvs-floaters {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 150px;
  height: 260px;
  pointer-events: none;
  overflow: hidden;
  z-index: 8;
}

.lvs-floater {
  position: absolute;
  bottom: 0;
  font-size: 28px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  animation: lvs-float-up 2.35s cubic-bezier(0.22, 0.85, 0.36, 1) forwards;
}

/* Self Picture-in-Picture */
.lvs-pi {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 168px;
  aspect-ratio: 4 / 3;
  background: #16233c;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
  z-index: 5;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.lvs-pi video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.lvs-pi .pi-label {
  position: absolute;
  left: 7px;
  bottom: 6px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(11, 17, 32, 0.85);
  padding: 2px 8px;
  border-radius: 999px;
}

.lvs-pi.speaking {
  border-color: var(--flame-2, #ea580c);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.35);
}

.lvs-pi.pi-off::after {
  content: "Câmara desligada";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}

/* Bottom Control Dock (Meet / Zoom style) */
.lvs-dock {
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.lvs-dock-grp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lvs-ctl {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
  white-space: nowrap;
}

.lvs-ctl.is-txt {
  padding: 0 13px;
}

.lvs-ctl:hover {
  background: #334155;
  color: #ffffff;
}

.lvs-ctl svg,
.lvs-btn-leave svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  flex: none;
}

.lvs-ctl.on {
  background: var(--violet, #2563eb);
  border-color: var(--violet-400, #3b82f6);
  color: #ffffff;
}

.lvs-ctl.off {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
}

#b-hand.on {
  background: #d97706;
  border-color: #f59e0b;
  color: #ffffff;
}

.lvs-btn-leave {
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #dc2626;
  border: 1px solid #ef4444;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  transition: background-color 0.14s ease;
  white-space: nowrap;
}

.lvs-btn-leave:hover {
  background: #b91c1c;
}

/* Quick Emoji Reaction Pills in Dock */
.lvs-dock-reacts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 4px 6px;
}

.lvs-react-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  font-size: 17px;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.lvs-react-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.14);
}

.lvs-react-btn:active {
  transform: scale(0.94);
}

/* ==========================================================================
   3. RIGHT SIDEBAR — 6 TABS (.lvs-side)
   ========================================================================== */
.lvs-side {
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100vh - var(--nav-h, 64px) - 96px);
  min-height: 520px;
  max-height: 780px;
  position: sticky;
  top: calc(var(--nav-h, 64px) + 12px);
}

.lvs-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  overflow-x: auto;
  scrollbar-width: none;
  flex: none;
}

.lvs-tabs::-webkit-scrollbar {
  display: none;
}

.lvs-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  white-space: nowrap;
  flex: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.lvs-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.lvs-tab.on {
  background: var(--violet, #2563eb);
  color: #ffffff;
}

.lvs-tab b {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.lvs-tab b:empty {
  display: none;
}

.lvs-tab.on b {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Sidebar Panels */
.lvs-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lvs-panel[hidden] {
  display: none !important;
}

.lvs-panel-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  flex: none;
}

.lvs-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lvs-panel-head h3 {
  font-size: 14px;
  color: #f8fafc;
}

.lvs-panel-head p {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.lvs-muted {
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  padding: 20px 10px;
}

/* Chat Tab */
.lvs-chat-filt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 6px;
  flex: none;
  flex-wrap: wrap;
}

.lvs-chat-filt .chip {
  background: #1e293b;
  color: #cbd5e1;
  font-size: 11.5px;
  padding: 4px 10px;
  cursor: pointer;
}

.lvs-chat-filt .chip.on {
  background: var(--violet, #2563eb);
  color: #ffffff;
}

.lvs-chat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lvs-chat-log.only-q .lvs-msg:not(.is-q):not([data-q="1"]) {
  display: none;
}

.lvs-msg {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.45;
  color: #e2e8f0;
  word-break: break-word;
}

.lvs-msg.is-me {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(59, 130, 246, 0.35);
}

.lvs-msg.is-host {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.lvs-msg.is-sys {
  background: rgba(15, 23, 42, 0.7);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
  padding: 6px 10px;
}

.lvs-msg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 12px;
}

.lvs-msg-head strong {
  font-weight: 700;
  color: #f8fafc;
}

.lvs-msg p {
  margin: 0;
  color: #e2e8f0;
}

.lvs-host-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
  flex: none;
}

.lvs-me-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  flex: none;
}

/* Quick Reply Pills */
.lvs-quick-replies {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  flex: none;
}

.lvs-quick-replies::-webkit-scrollbar {
  display: none;
}

.lvs-qchip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.lvs-qchip:hover {
  background: #334155;
  color: #ffffff;
}

/* Chat / Q&A Input Row */
.lvs-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  flex: none;
}

.lvs-input-row input {
  flex: 1;
  min-width: 0;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
}

.lvs-input-row input::placeholder {
  color: #94a3b8;
}

.lvs-input-row input:focus {
  border-color: var(--violet-400, #3b82f6);
}

.lvs-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--violet, #2563eb);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.14s ease;
}

.lvs-send:hover {
  background: var(--violet-600, #1d4ed8);
}

.lvs-send svg {
  width: 16px;
  height: 16px;
}

/* Q&A List (#tab-perguntas) */
.lvs-qlist {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.lvs-side .q-item {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #f1f5f9;
}

.lvs-side .q-item.pin {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.45);
}

.lvs-side .q-item.done {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.lvs-side .q-v {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.lvs-side .q-v b {
  color: #f8fafc;
}

.lvs-side .q-v.on {
  background: var(--violet, #2563eb);
  border-color: var(--violet-400, #3b82f6);
  color: #ffffff;
}

.lvs-side .q-txt > b {
  color: #f8fafc;
}

.lvs-side .q-txt p {
  color: #94a3b8;
}

.lvs-side .q-ans {
  background: rgba(22, 163, 74, 0.14);
  color: #bbf7d0;
  border-left-color: #22c55e;
}

.lvs-side .q-ans b {
  color: #86efac;
}

.lvs-side .q-host button {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
}

/* Polls (#tab-enquetes) */
.lvs-poll-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lvs-poll {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lvs-poll.is-closed {
  opacity: 0.85;
}

.lvs-poll-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.lvs-poll-head strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.lvs-poll-head small {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  flex: none;
}

.lvs-poll-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lvs-poll-opt {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 0;
  transition: border-color 0.14s ease;
}

.lvs-poll-opt:hover:not(:disabled) {
  border-color: var(--violet-400, #3b82f6);
}

.lvs-poll-opt.is-mine {
  border-color: var(--violet-400, #3b82f6);
}

.lvs-poll-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(37, 99, 235, 0.3);
  z-index: -1;
  transition: width 0.35s ease;
}

.lvs-poll-txt {
  min-width: 0;
  flex: 1;
}

.lvs-poll-pct {
  font-size: 11.5px;
  font-weight: 800;
  color: #93c5fd;
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* Notes Tab (#tab-notas) */
.lvs-nota-box {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  flex: none;
}

.lvs-nota-box textarea {
  width: 100%;
  min-height: 78px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  color: #f8fafc;
  font-size: 13px;
  resize: vertical;
  outline: none;
}

.lvs-nota-box textarea:focus {
  border-color: var(--violet-400, #3b82f6);
}

.lvs-nota-act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.lvs-nota-act .btn-o {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.25);
  color: #93c5fd;
  box-shadow: none;
}

.lvs-nota-act .btn-o:hover {
  background: #334155;
  color: #ffffff;
}

.lvs-nota-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lvs-side .nota {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: #fef3c7;
  line-height: 1.45;
}

.lvs-side .nota b {
  color: #fbbf24;
  font-size: 11px;
  margin-right: 6px;
}

/* Materials Tab (#tab-materiais) */
.lvs-mat-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lvs-mat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.lvs-mat-item:hover {
  background: #283548;
  border-color: var(--violet-400, #3b82f6);
}

.lvs-mat-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lvs-mat-item small {
  font-size: 10.5px;
  font-weight: 800;
  color: #93c5fd;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.16);
  padding: 2px 7px;
  border-radius: 6px;
  flex: none;
}

/* People & Hand-Raise Queue (#tab-pessoas) */
#tab-pessoas {
  overflow-y: auto;
  padding: 12px 14px;
  gap: 12px;
}

.lvs-hand-queue:empty {
  display: none;
}

.lvs-hq-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 13px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lvs-hq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fbbf24;
}

.lvs-hq-head b {
  background: rgba(245, 158, 11, 0.26);
  color: #fef3c7;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
}

.lvs-hq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lvs-hq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 7px 10px;
}

.lvs-hq-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fef3c7;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lvs-hq-act {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.lvs-hq-act .btn {
  padding: 5px 9px;
  font-size: 11.5px;
  box-shadow: none;
}

.lvs-hq-pill {
  font-size: 11px;
  font-weight: 700;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.16);
  padding: 3px 8px;
  border-radius: 999px;
  flex: none;
}

.lvs-ppl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.lvs-ppl-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lvs-person {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 8px 11px;
  color: #f1f5f9;
}

.lvs-person.is-host {
  border-color: rgba(245, 158, 11, 0.35);
}

.lvs-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  background: var(--violet, #2563eb);
  flex: none;
}

.lvs-person.is-host .lvs-avatar {
  background: #d97706;
}

.lvs-person-info {
  min-width: 0;
  flex: 1;
}

.lvs-person-info strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lvs-person-info small {
  font-size: 11px;
  color: #94a3b8;
}

.lvs-hand-tag {
  font-size: 15px;
  flex: none;
}

.lvs-mod-act {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.lvs-mod-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.lvs-mod-btn:hover {
  background: #334155;
}

.lvs-mod-btn.is-danger:hover {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   4. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1040px) {
  .lvh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lvh-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .lvs-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px 20px;
  }

  .lvs-side {
    position: static;
    height: 520px;
    min-height: 440px;
    max-height: none;
  }

  .lvs-shell.is-theater .lvs-stage {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 960px) {
  .lvs-topbar {
    padding: 10px 14px;
  }

  .lvs-title-wrap h1 {
    max-width: 28ch;
  }

  .lvs-pi {
    width: 132px;
  }

  .lvs-hand-banner {
    right: 14px;
  }
}

@media (max-width: 640px) {
  .lvh-in {
    padding: 18px 14px 0;
  }

  .lvh-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .lvh-hero-body {
    padding: 16px;
  }

  .lvh-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .lvh-filters::-webkit-scrollbar {
    display: none;
  }

  .lvs-layout {
    padding: 10px 10px 18px;
    gap: 12px;
  }

  .lvs-stage {
    border-radius: 14px;
  }

  .lvs-pi {
    width: 96px;
    right: 10px;
    bottom: 10px;
    border-radius: 10px;
  }

  .lvs-dock {
    padding: 8px 10px;
    border-radius: 14px;
    justify-content: center;
  }

  .lvs-ctl {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
  }

  .lvs-btn-leave {
    height: 44px;
  }

  .lvs-side {
    height: 480px;
    min-height: 400px;
    border-radius: 14px;
  }

  .lvh-hero-media {
    min-height: 0;
  }

  #b-theater {
    display: none;
  }
}
