
/*
 * Omni 0.2.43 - Same glass surface on all top-navigation pages and
 * uninterrupted screen-share playback.
 * Do not repaint a solid background over the user's configured opacity
 * or wallpaper; the parent .chat-column owns the personalized surface.
 */
#appShell .chat-column > .nexo-social-page:not([hidden]) {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* The full-size social page is a view, not a transparent overlay showing
 * the previous chat, video, or people's faces through its contents.
 * Hide the old view visually without disconnecting its underlying media.
 */
#appShell .chat-column:has(> .nexo-social-page:not([hidden]))
  > :is(.conversation,.voice-stage,.voice-preview-panel,.friends-panel,
        .home-panel,.composer-wrap,.screen-preview) {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Free the full chat area for a screen transmission: no channel-name bar
 * or duplicate room heading sits over/above the actual video. In a voice
 * room with no video the ordinary headings are still present.
 * While a social page is open, the social-page title must remain visible.
 */
/* Specific direct-child selectors avoid hiding in nested modal content. */
#appShell .chat-column:has(> #voiceStage:not([hidden]) .remote-media.has-video.has-watched-streams):not(:has(> .nexo-social-page:not([hidden])))
  > .chat-topbar {
  display: none !important;
}
#appShell #voiceStage:not([hidden]):has(.remote-media.has-video.has-watched-streams) > .voice-stage-heading {
  display: none !important;
}

/* Immersive viewing: the video, not the channel header or voice toolbar,
 * is the only viewport-sized surface. Per-stream hover buttons still work.
 */
#appShell.nexo-video-fullscreen .chat-topbar,
#appShell.nexo-video-fullscreen #voiceStage .voice-stage-heading,
#appShell.nexo-video-fullscreen #voiceStage .voice-stage-controls {
  display: none !important;
}
#appShell.nexo-video-fullscreen #voiceStage {
  padding: 0 !important;
}
#appShell.nexo-video-fullscreen #voiceStage .voice-stage-panel {
  padding: 0 !important;
  margin: 0 !important;
}
