/**
 * SimpleGallery 2026 - Video & Video Wall Player App Stylesheet
 */

/* Floating Picture-in-Picture Video Styles */
.video-pip-content {
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-pip-content video {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
  outline: none;
}

#pip-player-widget.expanded .video-pip-content video {
  max-height: calc(100vh - 56px);
  width: 100%;
  height: 100%;
}

/* Synchronized Video Wall Multi-Screen Engine Styles */
.videowall-modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--window-bg, var(--bg-main, #06090f));
  overflow: hidden;
  user-select: none;
}

.videowall-stage {
  position: relative;
  width: 96vw;
  height: 82vh;
  max-width: 1920px;
  max-height: 1080px;
  background: var(--bg-main, #090d16);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.videowall-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
}

.videowall-screen {
  position: absolute;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: outline 0.2s ease;
}

.videowall-screen.layer-bg {
  z-index: 2;
}

.videowall-screen.layer-fg {
  z-index: 4;
}

.videowall-screen video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.videowall-screen:hover {
  outline: 2px solid rgba(99, 102, 241, 0.8);
}

.videowall-screen.active-audio {
  outline: 2px solid #22c55e !important;
}

.videowall-screen-label {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.8;
}

.videowall-screen.active-audio .videowall-screen-label::after {
  content: ' 🔊';
}

.videowall-overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  object-fit: fill;
}

.videowall-controls-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 900px);
  background: var(--menu-bar-bg, rgba(15, 23, 42, 0.92));
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: 24px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.videowall-controls-bar.autohide {
  opacity: 0.15;
  transform: translateX(-50%) translateY(6px);
}

.videowall-controls-bar:hover,
.videowall-controls-bar.autohide:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.videowall-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.videowall-btn:hover {
  background: #6366f1;
  transform: scale(1.08);
}

.videowall-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.videowall-seek-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.videowall-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
}

.videowall-time-display {
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  color: var(--text-main, #cbd5e1);
  white-space: nowrap;
}

.videowall-audio-select {
  background: var(--bg-card, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  color: var(--text-main, #ffffff);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  outline: none;
  cursor: pointer;
}

.videowall-audio-select option {
  background: var(--window-bg, #0f172a);
  color: var(--text-main, #ffffff);
}

.videowall-sync-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
