.movie-container {
  direction: ltr;
  margin-inline: auto;
  max-width: 660px;
  position: relative;
}

/* ==== VIDEO STACK ==== */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* CLS fix */
  background: #000;
  overflow: hidden;
  border-radius: 10px;
}

.video-wrapper img,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-poster {
  z-index: 2;
  cursor: pointer;
}

.video-player {
  z-index: 1;
}

/* ==== VIDEO ==== */
video {
  display: block;
  background: #000;
}

.screen {
  cursor: pointer;
  background-color: #000 !important;
}

/* ==== CONTROLS ==== */
.movie-container:hover > .controls {
  opacity: 1;
}

.controls {
  background: #333;
  color: #fff;
  width: 100%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  gap: 8px;
  z-index: 3;
}

.controls .control-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: 0;
  color: white;
}

.controls .fa-play {
  color: #28a745;
}

.controls .fa-stop {
  color: #dc3545;
}

.controls .fa-pause {
  color: #fff;
}

.controls .fa-expand {
  color: #17a2b8;
}

.controls .timestamp {
  font-weight: bold;
  margin-left: 10px;
}

/* ==== RANGE ==== */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  margin-top: -4px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: #3071a9;
  border-radius: 4px;
}