html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#app,
#stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

#programVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

#localPreview {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 180px;
  height: 112px;
  object-fit: cover;
  z-index: 20;
  background: #000;
}

.guest-slot {
  position: absolute;
  bottom: 82px;
  width: 160px;
  height: 220px;
  z-index: 30;
  overflow: hidden;
  background: transparent;
}

.guest-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-a {
  left: 24px;
}

.slot-b {
  right: 24px;
}

.hidden {
  display: none !important;
}

#hostCaption {
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 96px;
  z-index: 35;
  color: #fff;
  text-align: center;
  font-size: 22px;
  line-height: 1.35;
  text-shadow: 0 2px 6px #000;
}

#roleControls {
  position: absolute;
  top: 150px;
  right: 28px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#roleControls button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 6px #000;
  cursor: pointer;
}

#statusLine {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 45;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 2px 6px #000;
}

#tickerBand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  z-index: 50;
  background: rgba(0, 0, 0, 0.84);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  box-sizing: border-box;
}

#tickerText {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#questionInput {
  width: 220px;
  height: 30px;
  border: 1px solid #666;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0 8px;
}

#btnSendQuestion {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* === Private Speaker A/B slots: separated from Public Guest A/B === */
.speaker-slot {
  position: absolute;
  width: 160px;
  height: 120px;
  z-index: 30;
  background: transparent;
  overflow: hidden;
}

.speaker-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-slot.slot-a {
  left: 28px;
  bottom: 72px;
}

.speaker-slot.slot-b {
  right: 28px;
  bottom: 72px;
}

/* PRIVATE SPEAKER SLOT: no visible box, video only */
.speaker-slot {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  overflow: hidden !important;
}

.speaker-slot video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: transparent !important;
}

/* FINAL: hide private speaker slot shell, keep only video visible */
.speaker-slot {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.speaker-slot::before,
.speaker-slot::after {
  display: none !important;
  content: none !important;
}

.speaker-slot video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
  background: transparent !important;
}

/* Participant/Viewer must not show local DOM speaker slots or local preview */
body:not([data-role="host"]) .speaker-slot,
body:not([data-role="host"]) #privateSpeakerSlotA,
body:not([data-role="host"]) #privateSpeakerSlotB,
body:not([data-role="host"]) #localPreview {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
