*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.video-player {
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video {
  width: 100%;
}

.controls__button {
  align-items: center;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: Tahoma, sans-serif;
  font-weight: 400;
  height: 40px;
  justify-content: center;
  line-height: normal;
  margin: 0;
  padding: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background-color .25s cubic-bezier(.4, 0, .2, 1) !important;
  width: 40px;
  color: rgb(255, 255, 255);
}

.controls__slider {
  width: 10px;
  height: 30px;
}

.controls {
  align-items: center;
  bottom: 0;
  display: flex;
  height: 40px;
  justify-content: space-between;
  left: 0;
  opacity: 1;
  position: absolute;
  touch-action: manipulation;
  transition: opacity .25s cubic-bezier(.4, 0, .2, 1);
  width: 100%;
  z-index: 200;
  background-color: rgba(121, 132, 155, 0.8);
  color: rgb(255, 255, 255) !important;
  opacity: 0;
}

.video-player:hover .controls,
.video-player:focus .controls,
.video-player:active .controls {
  opacity: 1;
}

.controller_block {
  align-items: center;
  display: flex;
  flex: none;
  height: 100%;
  margin: 0;
  color: rgb(255, 255, 255);
}


.controller_warpper {
  position: relative;
}

.controller_wrapper:hover,
.controller_wrapper:active,
.controller_wrapper:focus {
  background-color: rgb(73, 85, 92);
}

.controls>* {
  flex: 1;
}

/* .progress_wrapper {
  flex: auto;
} */

.progress {
  flex: 10;
  position: relative;
  display: flex;
  flex-basis: 100%;
  height: 8px;
  background: #3B3B3B;
  cursor: pointer;
  margin: auto 10px;
  pointer-events: none;
  border-radius: 5px;
}

.progress__filled {
  width: 50%;
  background: #eff3f0;
  flex: 0;
  flex-basis: 0%;
  pointer-events: none;
  border-radius: 5px;
}

.volume_slider {
  width: 40px;
  background: rgba(121, 132, 155, 0.8);
  position: absolute;
  bottom: 40px;
  right: 0;
  padding: 10px 0;
  display: none;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  accent-color: #eff3f0;
  width: 40px;
  height: 80px;
  cursor: pointer;
}

input[type=range]:focus,
input[type=range]:hover,
input[type=range]:active,
input[type=range]:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}

.volume_wrapper:hover .volume_slider,
.volume_wrapper:focus .volume_slider,
.volume_wrapper:active .volume_slider {
  display: block;
}

.preview-img {
  width: 100%;
  height: auto;
}

#player-completed-content {
  display: flex;
  flex-direction: column !important;
}

.controls .controller_wrapper,
.controls .controller_warpper { position: relative; }

.controls .speed_menu {
  position: absolute;
  bottom: 46px;
  right: 0;
  display: none;
  background: rgba(121,132,155,.96);
  padding: 6px;
  border-radius: 8px 0 0 8px;
  z-index: 300;
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.controls .speed_menu.show { display: block; }

.controls .speed_menu button {
  display: block;
  width: 80px;
  height: 28px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  padding: 0 8px;
  pointer-events: auto;
}

.controls .speed_menu button.active {
  background: rgba(239,243,240,.2);
  border-radius: 6px;
}

