:root {
  --transition: 0.4s;
}

body {
  background-color: #ffc60966;
  font-family: Arial, Helvetica, sans-serif;
}

.player {
  max-width: 1000px;
  min-width: 300px;
  margin: 20px auto;
}

.video-wrap {
  position: relative;
  width: 100%;
}

.video {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.speed-indicator {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  height: 121px;
  border-radius: 23px;
  text-align: center;
  font-size: 60px;
  line-height: 2;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.video-name {
  position: absolute;
  top: 0;
  width: 100%;
  padding-top: 20px;
  padding-left: 15px;
  box-sizing: border-box;
  font-size: 34px;
  color: white;
  transition: var(--transition);
}

.video-name-opacity {
  opacity: 0;
}

.video-name:hover {
  opacity: 1;
}

.overlay-speed-block {
  position: absolute;
  top: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.show-speed-block {
  visibility: visible;
  opacity: 1;
}

.speed-block {
  width: 200px;
  margin: 15px;
  font-size: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  background-color: rgba(0, 0, 0, 0.9);
}

.speed-block-fullscreen {
  margin-bottom: 70px;
}

.speed-item {
  position: relative;
  margin: 10px 0;
  padding-bottom: 5px;
  list-style: none;
  cursor: pointer;
  transition: var(--transition);
}

.speed-item:hover {
  color: rgba(255, 255, 255, 0.5);
}

.speed-item-active::before {
  position: absolute;
  top: 2px;
  left: -27px;
  content: url("./assets/svg/video/ok.svg");
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(70deg) brightness(102%) contrast(102%);
  transition: var(--transition);
}

.speed-item-active:hover:before {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(70deg) brightness(102%) contrast(102%) opacity(50%);
}

.play__big {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  background-image: url("./assets/svg/video/play-btn.svg");
}

/* ...........control............ */

.control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 70px;
  padding: 0 30px;
  margin-top: -5px;
  box-sizing: border-box;
  background-color: #000000;
  transition: var(--transition);
}

.control-btn {
  border: none;
  cursor: pointer;
  background-color: transparent;
  background-size: cover;
  background-repeat: no-repeat;
  transition: var(--transition);
}

.btn-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 110px;
}

.play__small,
.pre,
.next {
  background-size: contain;
}

.play__small {
  width: 22px;
  height: 30px;
  background-image: url("./assets/svg/video/play.svg");
}

.pre,
.next {
  width: 20px;
  height: 20px;
}

.pre {
  background-image: url("./assets/svg/video/pre-btn.svg");
}

.next {
  background-image: url("./assets/svg/video/next-btn.svg");
}

.progress {
  flex-grow: 1;
  height: 8px;
  margin: 0 30px;
  outline: none;
  background: linear-gradient(to right,
      #710707 0%,
      #710707 0%,
      #c4c4c4 0%,
      #c4c4c4 100%);

  -webkit-appearance: none;
}

.progress::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  -webkit-appearance: none;
  cursor: ew-resize;
  background: #ffffff;
}

.sound-fullscreen-wrap {
  display: flex;
  align-items: center;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  width: 80px;
  margin-right: 20px;
  color: white;
}

.sound {
  width: 26px;
  height: 22px;
  background-image: url("./assets/svg/video/volume.svg");
  background-size: cover;
}

.volume {
  width: 120px;
  margin: 0 25px;
}

.settings {
  width: 27px;
  height: 27px;
  margin-right: 20px;
  background-image: url("./assets/svg/video/settings.svg");
  background-size: cover;
}

.settings:active {
  transform: rotate(180deg);
}

.fullscreen {
  width: 27px;
  height: 27px;
  background-size: cover;
  background-image: url("./assets/svg/video/fullscreen.svg");
}

.control-fullscreen {
  position: absolute;
  bottom: 0;
  opacity: 0;
}

.control-fullscreen:hover {
  opacity: 1;
}

.control-btn:hover {
  filter: invert(5%) sepia(0%) saturate(50%) hue-rotate(23deg) brightness(72%) contrast(73%);
}


/* .............media............. */

@media all and (max-width: 1024px) {
  .play__big {
    width: 152px;
    height: 152px;
    background-size: cover;
  }

  .control {
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 0 8px 0;
    height: 60px;
  }

  .progress {
    height: 5px;
    margin: 0 30px;
  }

  .progress::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
  }

  .duration {
    width: 100%;
    order: -1;
    align-self: flex-start;
    margin: 0;
    z-index: 5;
  }

  .sound-fullscreen-wrap {
    justify-content: space-between;
  }

  .btn-wrap {
    width: 100px;
    margin-left: 20px;
  }

  .sound-fullscreen-wrap {
    margin-right: 20px;
  }

  .volume {
    width: 100px;
  }
}

@media all and (max-width: 768px) {
  .play__big {
    width: 80px;
    height: 80px;
  }

  .btn-wrap {
    width: 80px;
    margin-left: 10px;
  }

  .sound-fullscreen-wrap {
    margin-right: 10px;
  }

  .play__small {
    background-size: contain;
  }

  .play__small,
  .sound,
  .fullscreen,
  .settings {
    background-size: 85%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
  }

  .control {
    height: 55px;
  }

  .progress-time,
  .settings {
    margin-right: 10px;
  }

  .volume {
    width: 80px;
    margin: 0 10px;
  }

  .speed-block {
    width: 150px;
    height: 100%;
    margin: 0;
    overflow-y: scroll;
  }


  .speed-block-fullscreen {
    margin-bottom: 55px;
  }
}

@media all and (max-width: 420px) {
  .play__big {
    width: 50px;
    height: 50px;
  }

  .control {
    height: 53px;
  }

  .progress {
    height: 4px;
  }

  .progress::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
  }

  .btn-wrap {
    margin-left: 7px;
  }

  .play__small,
  .sound,
  .fullscreen,
  .settings {
    background-size: 70%;
  }

  .settings {
    margin-right: 7px;
  }

  .play__small {
    width: 25px;
  }

  .pre,
  .next {
    width: 17px;
    height: 17px;
  }

  .sound {
    width: 27px;
  }

  .fullscreen {
    width: 27px;
  }

  .sound-fullscreen-wrap {
    justify-content: space-between;
    margin-right: 7px;
  }

  .progress-time {
    display: none;
  }

  .volume {
    width: 75px;
    margin: 0 7px;
  }
}