/* GattoMusic 9.71 - Sala estável em aba dedicada e vídeo local sem corte */

.chat-room-media-host-v971 {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #03070d;
}

/* O vídeo remoto mantém o enquadramento histórico. O preview local usa contain
   para mostrar o quadro inteiro captado pela câmera, inclusive em fullscreen. */
.chat-room-participant-v969[data-room-self="1"] .chat-room-video-v969 {
  object-fit: contain;
  object-position: center center;
}

.chat-room-panel-v969:fullscreen,
.chat-room-panel-v969:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  overflow: auto;
  box-sizing: border-box;
  padding: clamp(8px, 1.4vw, 18px);
  background: var(--panel);
}

.chat-room-panel-v969:fullscreen .chat-room-grid-v969,
.chat-room-panel-v969:-webkit-full-screen .chat-room-grid-v969 {
  flex: 1 1 auto;
  min-height: 0;
}

.chat-room-panel-v969:fullscreen .chat-room-participant-v969[data-room-self="1"] .chat-room-video-v969,
.chat-room-panel-v969:-webkit-full-screen .chat-room-participant-v969[data-room-self="1"] .chat-room-video-v969 {
  object-fit: contain;
}

/* A aba dedicada mostra somente a superfície de Sala depois da autenticação. */
body.gattomusic-v971-room-surface #app,
body.gattomusic-v971-room-surface #loginScreen,
body.gattomusic-v971-room-surface #queueDrawer,
body.gattomusic-v971-room-surface #persistentUtilityPanel,
body.gattomusic-v971-room-surface > .player-bar,
body.gattomusic-v971-room-surface #presentation,
body.gattomusic-v971-room-surface #chatRoomStripV969 {
  display: none !important;
}

body.gattomusic-v971-room-surface {
  overflow: hidden;
  background: var(--bg);
}

body.gattomusic-v971-room-surface .chat-room-modal-v969 {
  z-index: 10050;
}

.chat-room-surface-error-v971 {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  text-align: center;
  z-index: 10060;
}

.chat-room-surface-error-v971 h2,
.chat-room-surface-error-v971 p { margin: 0; }

@media (max-width: 720px) {
  .chat-room-panel-v969:fullscreen,
  .chat-room-panel-v969:-webkit-full-screen {
    padding: 6px;
  }
  .chat-room-panel-v969:fullscreen .chat-room-participant-v969,
  .chat-room-panel-v969:-webkit-full-screen .chat-room-participant-v969 {
    min-height: clamp(130px, 26dvh, 260px);
  }
}
