.mdq-video-player {
  background: rgba(17, 17, 17, .6);
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  display: block;
  margin: clamp(1rem, 4vw, 1.5rem) auto;
  max-width: 64rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.mdq-video-player video {
  aspect-ratio: 16 / 9;
  background: #0b1612;
  display: block;
  height: auto;
  margin: 0;
  width: 100%;
}

.mdq-video-player.is-ready {
  animation: mdq-video-enter .45s ease both;
}

.mdq-video-player-controls {
  backdrop-filter: blur(14px);
  background: rgba(17, 17, 17, .68);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  bottom: .75rem;
  box-sizing: border-box;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
  left: 50%;
  max-width: min(38rem, calc(100% - 1.5rem));
  opacity: 0;
  padding: .85rem;
  position: absolute;
  transform: translate(-50%, 16px);
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
  width: 100%;
  z-index: 2;
}

.mdq-video-player:hover .mdq-video-player-controls,
.mdq-video-player:focus-within .mdq-video-player-controls,
.mdq-video-player.is-paused .mdq-video-player-controls {
  filter: blur(0);
  opacity: 1;
  transform: translate(-50%, 0);
}

.mdq-video-player-timeline,
.mdq-video-player-main,
.mdq-video-player-actions,
.mdq-video-player-volume,
.mdq-video-player-speeds {
  align-items: center;
  display: flex;
  min-width: 0;
}

.mdq-video-player-timeline {
  gap: .65rem;
  margin-bottom: .7rem;
}

.mdq-video-player-main {
  justify-content: space-between;
  gap: 1rem;
}

.mdq-video-player-actions,
.mdq-video-player-volume,
.mdq-video-player-speeds {
  gap: .45rem;
}

.mdq-video-player-time {
  color: #fff;
  flex: 0 0 auto;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  min-width: 2.8rem;
  text-align: center;
}

.mdq-video-slider {
  appearance: none;
  background: transparent;
  cursor: pointer;
  flex: 1 1 auto;
  height: 1rem;
  min-width: 4rem;
  width: 100%;
}

.mdq-video-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #fff var(--mdq-value, 0%), rgba(255, 255, 255, .2) var(--mdq-value, 0%));
  border-radius: 999px;
  height: 4px;
}

.mdq-video-slider::-webkit-slider-thumb {
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 50%;
  height: 12px;
  margin-top: -4px;
  width: 12px;
}

.mdq-video-slider::-moz-range-track {
  background: rgba(255, 255, 255, .2);
  border-radius: 999px;
  height: 4px;
}

.mdq-video-slider::-moz-range-progress {
  background: #fff;
  border-radius: 999px;
  height: 4px;
}

.mdq-video-slider::-moz-range-thumb {
  background: #fff;
  border: 0;
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

.mdq-video-volume-slider {
  flex: 0 1 6rem;
  min-width: 4.5rem;
}

.mdq-video-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  height: 2.2rem;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0 .55rem;
  transition: background-color .18s ease, transform .18s ease;
}

.mdq-video-btn:hover,
.mdq-video-btn:focus-visible,
.mdq-video-btn.is-active {
  background: rgba(17, 17, 17, .82);
  color: #fff;
  transform: scale(1.05);
}

.mdq-video-btn:active {
  transform: scale(.94);
}

.mdq-video-btn svg {
  fill: none;
  height: 1.15rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 1.15rem;
}

@keyframes mdq-video-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .mdq-video-player {
    border-radius: 12px;
    margin: 1rem auto;
    max-width: 100%;
  }

  .mdq-video-player video {
    border-radius: 0;
  }

  .mdq-video-player-controls {
    backdrop-filter: none;
    background: linear-gradient(180deg, rgba(24, 53, 43, .98), rgba(18, 35, 30, .98));
    border: 0;
    border-radius: 0;
    bottom: auto;
    box-shadow: none;
    left: auto;
    max-width: none;
    opacity: 1;
    padding: .75rem;
    position: static;
    transform: none;
    transition: none;
    width: 100%;
  }

  .mdq-video-player:hover .mdq-video-player-controls,
  .mdq-video-player:focus-within .mdq-video-player-controls,
  .mdq-video-player.is-paused .mdq-video-player-controls {
    opacity: 1;
    transform: none;
  }

  .mdq-video-player-timeline {
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem;
    gap: .45rem;
    margin-bottom: .55rem;
  }

  .mdq-video-player-main {
    display: grid;
    gap: .6rem;
    grid-template-columns: 1fr;
  }

  .mdq-video-player-actions {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: .45rem;
    width: 100%;
  }

  .mdq-video-player-volume {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: .45rem;
    min-width: 0;
    width: 100%;
  }

  .mdq-video-player-speeds {
    display: grid;
    gap: .35rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .mdq-video-player-time {
    font-size: .78rem;
    min-width: 0;
  }

  .mdq-video-slider {
    min-width: 0;
  }

  .mdq-video-volume-slider {
    flex-basis: auto;
    min-width: 0;
  }

  .mdq-video-btn {
    border-radius: 9px;
    font-size: .78rem;
    height: 2.15rem;
    min-width: 2rem;
    padding: 0 .35rem;
  }

  .mdq-video-btn svg {
    height: 1.05rem;
    width: 1.05rem;
  }
}

@media (max-width: 374.98px) {
  .mdq-video-player-controls {
    padding: .65rem;
  }

  .mdq-video-player-timeline {
    grid-template-columns: 2.55rem minmax(0, 1fr) 2.55rem;
  }

  .mdq-video-player-actions {
    grid-template-columns: 2.1rem minmax(0, 1fr);
  }

  .mdq-video-player-volume {
    grid-template-columns: 2.1rem minmax(0, 1fr);
  }

  .mdq-video-btn {
    font-size: .74rem;
    height: 2rem;
    min-width: 1.9rem;
  }
}
