

.video-container {
  position: relative;
  width: 100%;
  max-width: 100%; width: 100%; border-radius: 0;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.video-container.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 9998;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateZ(0);
  will-change: transform;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.big-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.9);
}

.big-play-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1);
}

.big-play-btn svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.video-container.paused .big-play-btn {
  opacity: 1;
  transform: scale(1);
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-container:hover .video-controls,
.video-container.paused .video-controls,
.video-container.active .video-controls {
  opacity: 1;
}

.video-container .progress-bar-container {
  background: transparent !important;
  overflow: visible !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.preview-tooltip {
  position: absolute;
  bottom: 22px;
  left: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-color: #000;
  border: 2px solid #fff;
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  z-index: 50;
}

.video-container .progress-bar-container:hover .preview-tooltip,
.preview-tooltip.is-visible {
  opacity: 1;
}

.preview-image {
  width: 168px;
  height: 94px;
  background-color: #111;
  background-size: cover;
  background-position: center;
  margin-bottom: 4px;
  border-radius: 3px;
  display: block;
  object-fit: cover;
}

.preview-time {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
}

.video-container .progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  transition: height 0.1s ease;
  background: rgba(255,255,255,0.3) !important;
}

.video-container .progress-bar-container:hover .progress-bar {
  height: 8px;
}

.video-container .progress-filled {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  position: relative;
  background: #e50914 !important;
}

.progress-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: #e50914;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-container .progress-bar-container:hover .progress-thumb {
  opacity: 1;
}

.controls-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s;
}

.control-btn:hover {
  transform: scale(1.1);
}

.control-btn svg {
  width: 28px;
  height: 28px;
}

.hidden {
  display: none !important;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.volume-slider {
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  accent-color: #e50914;
  cursor: pointer;
}

.volume-container:hover .volume-slider {
  width: 80px;
  opacity: 1;
}

.time-display { font-size: 14px; font-weight: 400; user-select: none; color: #ffffff !important; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }

.text-btn {
  font-size: 16px;
  font-weight: bold;
}

@media (max-width: 600px) {
  .volume-container, .time-display { display: none !important; }
  .control-btn svg { width: 24px; height: 24px; }
}


/* Adaptive quality and timeline preview */
.quality-indicator {
  color: rgba(255,255,255,0.82);
  font-size: 0.72rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.quality-notice {
  margin: 0.75rem 0 0;
  color: var(--text-muted, #9ca3af);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.preview-image {
  width: 160px;
  height: 90px;
  display: block;
  background: #111;
  object-fit: cover;
}

@media (max-width: 600px) {
  .quality-indicator { font-size: 0.65rem; }
  .preview-image { width: 140px; height: 79px; }
}
