@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  height: 100%;
  overflow: hidden;
  color: #fff;
}

::-webkit-scrollbar { display: none; }

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide unused layout */
.header,
.sidebar {
  display: none !important;
}

/* Main video area */
.videoplayer {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.videoplayer_remote_info_navn {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 4;
  max-width: min(60vw, 720px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Remote video wrapper */
.videoplayer_remote {
  position: relative;
  width: 70vw;
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .4s ease;
  overflow: hidden;
}

#remote-playerlist,
#remote-playerlist > div,
#remote-playerlist .player {
  width: 100%;
  height: 100%;
}

.player {
  width: 100%;
  height: 100%;
  background: #111;
}

/* Loader */
.hidden {
    display: none!important;
}

.stream-loaders {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
  user-select: none;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255,255,255,0.2);
  border-top: 5px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Moderator video small */
.videoplayer_moderator {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 220px;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  z-index: 2;
  transform: scaleX(-1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#local-player {
  width: 100%;
  height: 100%;
}

/* Bottom control bar */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px 40px;
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.footer-btn {
  display: flex;
  gap: 15px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 50px;
  pointer-events: all;
}

/* Buttons */
.btn {
  min-width: 140px;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  opacity: 0.85;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.accept {
  background: #2e7d32;
  color: #fff;
}

.cancel {
  background: #c62828;
  color: #fff;
}

.ready {
  background: #c9a227;
  color: #000;
}

/* Inputs subtle */

.btmleft {
  display: flex;
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 10px;
  gap: 5px;
}
#remote_AppID,
#remote_SessionID {
  width: 220px;
  padding: 4px 8px;
  font-size: 10px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.120);
  border-radius: 6px;
  color: #fff;
  z-index: 3;
}

#remote_SessionID {
  bottom: 80px;
}

/* Remote focus (fake fullscreen) */
.remote-focus .videoplayer_remote {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  aspect-ratio: unset;
  max-width: none;
  z-index: 50;
  cursor: none;
}

.remote-focus .videoplayer_moderator {
  opacity: 0.4;
}

.remote-focus .footer {
  opacity: 0.2;
}
