﻿/* =========================================
   Elite Video Player System
   Premium Dark "Netflix" Aesthetic
   ========================================= */

.video-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  margin: 0 auto;
  user-select: none;
}

.video-container video {
  width: 100%;
  display: block;
}

/* Custom Controls Row */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 10;
}

.video-container:hover .player-controls {
  opacity: 1;
  transform: translateY(0);
}

/* Progress Bar */
.p-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.p-progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255,255,255,0.15);
  width: 0;
}

.p-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary); /* Deep Emerald */
  width: 0;
  box-shadow: 0 0 15px var(--glow-primary);
}

/* Buttons Row */
.p-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-left-controls, .p-right-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.p-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}

.p-btn:hover {
  transform: scale(1.15);
  color: var(--accent);
}

/* Volume Slider */
.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100px;
}

.volume-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.3);
  border-radius: 5px;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 4px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  background: #fff;
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Security Overlay */
.interaction-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 80px); /* Leave controls clickable */
  z-index: 5;
  cursor: pointer;
}

/* Big Play Button Hub */
.p-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 100px;
  height: 100px;
  background: rgba(10, 54, 34, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  border: 1px solid rgba(255,255,255,0.2);
}

.video-container.paused .p-big-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Time Display */
.p-time {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Quality Badge */
.p-badge {
  font-size: 0.7rem;
  font-weight: 900;
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Fullscreen adjustments */
.video-container:fullscreen {
  border-radius: 0;
}

.video-container:fullscreen video {
  height: 100vh;
  object-fit: contain;
}

