/* Tarqiya - Custom Protected Video Player Styles */

.video-player-wrapper {
  position: relative;
  background-color: #0A121A;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Simulated Secure Canvas / Video Surface */
.video-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0D1B2A;
  overflow: hidden;
}

.video-stream-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Overlay Watermark & Protection */
.video-security-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(18, 59, 93, 0.75);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

html[dir="ltr"] .video-security-badge {
  right: auto;
  left: 16px;
}

.video-big-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(13, 100, 219, 0.9);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
  cursor: pointer;
  z-index: 12;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-big-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--color-main-blue);
}

.video-big-play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 3px;
}
html[dir="rtl"] .video-big-play-btn svg {
  margin-left: 0;
  margin-right: 3px;
}

/* Video Controls Bar */
.video-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  padding: 24px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 15;
  transition: opacity 0.3s ease;
}

/* Progress Scrubber (Anti-Skip) */
.video-progress-scrubber {
  position: relative;
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: height 0.15s ease;
}

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

.video-progress-filled {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-main-blue);
  border-radius: var(--radius-full);
  pointer-events: none;
}
html[dir="rtl"] .video-progress-filled {
  left: auto;
  right: 0;
}

.video-watched-checkpoint {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  pointer-events: none;
}
html[dir="rtl"] .video-watched-checkpoint {
  left: auto;
  right: 0;
}

/* Controls Row */
.video-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
}

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

.video-btn {
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.video-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.video-btn svg {
  width: 20px;
  height: 20px;
}

.video-time-display {
  font-size: 0.85rem;
  font-weight: 500;
  color: #E2E8F0;
  direction: ltr;
}

/* Completion Alert Banner */
.video-completion-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-success-soft);
  border: 1px solid rgba(62, 142, 107, 0.3);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
  gap: var(--space-3);
  animation: fadeIn 0.4s ease;
}

.video-completion-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-success);
  font-weight: 700;
}

/* Anti-Skip Warning Tooltip */
.anti-skip-toast {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(185, 74, 72, 0.95);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 25;
  pointer-events: none;
  animation: fadeIn 0.2s ease;
  white-space: nowrap;
}
