/* New Live Viewer Modal — mobile-first full-screen overlay */

#live-viewer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  z-index: 9999;
}

#live-viewer-modal.open { display: block; }

#live-viewer-modal .lv-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#live-viewer-modal .lv-video-wrap {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#live-viewer-modal video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: black;
}

#live-viewer-modal .lv-close {
  position: absolute;
  top: env(safe-area-inset-top, 12px);
  right: env(safe-area-inset-right, 12px);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  font-size: 24px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
}

#live-viewer-modal .lv-close:active { transform: scale(0.98); }

@media (orientation: landscape) {
  #live-viewer-modal video { object-fit: contain; }
}


