/* Custom styling for CinemaSync - Theatrical Sync Player */

body {
  background-color: #08080a;
}

/* Custom Scrollbar for list panels and activity logs */
.scrollbar-thin::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: #0d0d0d;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #2b2b35;
  border-radius: 3px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #e50914;
}

/* Custom Range Input styling */
input[type="range"] {
  -webkit-appearance: none;
  background: #2d3748;
  border-radius: 5px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #e50914;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(229, 9, 20, 0.6);
  transition: transform 0.1s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Red Velvet Header accents */
header {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Ambient glow container */
.video-container {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

/* Video Player glow settings */
#ambilightGlow {
  background: radial-gradient(circle, rgba(229,9,20,0.2) 0%, rgba(0,0,0,0) 70%);
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  z-index: 0;
  transition: background 0.8s ease;
}

/* Movie Card styling in inventory list */
.movie-item {
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.movie-item:hover {
  border-color: rgba(229, 9, 20, 0.3);
  background-color: rgba(26, 26, 31, 0.8);
}
.movie-item.active {
  border-color: rgba(255, 183, 3, 0.5);
  background-color: rgba(255, 183, 3, 0.05);
}

.text-3xs {
  font-size: 0.55rem;
}

/* Glow highlight for active microphone streams */
.audio-speaking {
  box-shadow: 0 0 12px #22c55e;
  border-color: #22c55e;
}

/* 2XS text for compact progress bar */
.text-2xs {
  font-size: 0.65rem;
}

/* WebRTC Video Chat Responsive styles */
#videoChatOverlay {
  z-index: 40;
}

@media (max-width: 768px) {
  #videoChatOverlay {
    left: 1rem;
    right: 1rem;
    justify-content: flex-end;
  }
}

@media (min-width: 769px) {
  #videoChatOverlay {
    max-width: 150px;
  }
}

/* Fullscreen styling for video container */
#videoContainer:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
}

#videoContainer:fullscreen video {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  object-fit: contain;
}

/* Make sure controls overlay stays anchored at bottom in fullscreen */
#videoContainer:fullscreen .relative {
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
}

#videoContainer:fullscreen #videoChatOverlay {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  z-index: 50 !important;
}

#videoContainer:fullscreen #chatOverlay {
  position: absolute !important;
  top: 1rem !important;
  bottom: 5rem !important; /* Restrict bottom margin to sit cleanly above control overlays */
  left: 1rem !important;
  z-index: 50 !important;
}

#videoContainer:fullscreen #ambilightGlow {
  display: none !important; /* Hide glowing background in full-screen to optimize performance */
}
