body.dimmed {
  background-color: #708090 !important; /* Cinematic dark focus background */
  z-index: 9999;
}

.player-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(0, 168, 234, .18), transparent 55%),
    linear-gradient(150deg, #003a70 0%, var(--dark-blue) 55%, #002c55 100%);
}
.player-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,   rgba(255,255,255,.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg,  rgba(255,255,255,.035) 0 1px, transparent 1px 56px);
  pointer-events: none;
}

/* Premium Player Styling Container */
.video-player {
  margin: 80px auto 70px auto;
  position: relative;
  width: 920px;
  max-width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;
  
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

/* Shadow glows sharper when the lights go down */
body.dimmed .video-player {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 168, 234, 0.15);
}

video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

/* Glassmorphism Centered Button with your theme color */
.center-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 168, 234, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(0, 168, 234, 0.4);
  border-radius: 50%;
  width: 84px;
  height: 84px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: 3;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.center-play-btn:hover {
  background: rgba(0, 168, 234, 0.85);
  border-color: #00A8EA;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(0, 168, 234, 0.6);
}

/* Change SVG icon path stroke color on hover directly via button class background */
.center-play-btn:hover svg {
  fill: #ffffff;
}

/* Smooth fade and scale down when video starts playing */
.video-player.playing .center-play-btn {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
}

/* Modernized Fluid Bottom Control Bar */
.control-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(5, 8, 12, 0.95));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: 3;
}

/* Force showing controls when paused, otherwise JavaScript controls the fade out */
.video-player:not(.playing) .control-bar,
.video-player.show-controls .control-bar {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Timeline Slider Track */
.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  border-radius: 10px;
  position: relative;
  transition: height 0.2s ease;
}

.progress-container:hover {
  height: 6px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00A8EA, #00d2ff); /* Modern gradient fill */
  border-radius: 10px;
  position: relative;
}

/* Flex rows alignments */
.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* Control Buttons properties */
.control-btn {
  background: none;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.1s ease;
  padding: 4px;
}

.control-btn:hover {
  color: #00A8EA;
  transform: scale(1.05);
}

.control-btn:active {
  transform: scale(0.95);
}

.time-display {
  color: #94a3b8; /* Muted modern grey text */
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  letter-spacing: 0.5px;
}

/* High-finish styling for Volume slider track inputs */
#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00A8EA;
  transition: transform 0.1s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

#volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00A8EA;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease;
}

#volume-slider::-moz-range-thumb:hover {
  transform: scale(1.3);
}