html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}


.player {
  position:absolute;
  margin-top:0%;
  top:50%;
  left:12%;
  max-width:750px;
  box-shadow:0 0 20px rgba(0,0,0,0.2);

  font-size: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}



.player__video {
  width: 100%;
}

.player__button {
 position:absolute;
 left:-1%;
  background:none;
  border:0;
  line-height:1;
  color:white;
  text-align: center;
  outline:0;
  padding: 0;
  cursor:pointer;
  max-width:50px;
}

.player__button:focus {
  border-color: #fff;
}

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

.player__controls {
left:-10%;
  display:flex;
  position: relative;
  bottom:0;
  width: 100%;
  transform: translateY(100%) translateY(-5px);
  transition:all .3s;
  flex-wrap:wrap;
  background: #000000;
}

.player:hover .player__controls {
  transform: translateY(0);
}

.player:hover .progress {
  height:6px;
}

.player__controls > * {
  flex:1;
}

.progress {
 border-radius:15% 15% 15% ;
  flex:10;
  position: relative;
  display:flex;
  flex-basis:100%;
  height:3px;
  transition:height 0.3s;
  background:rgba(255,255,255,0.2);
  cursor:ew-resize;
}

.progress__filled {
 border-radius:10% 10% 10%;
  width:0%;
  background:#ffc600;
  flex:0;
  flex-basis:0%;
}

/* unholy css to style input type="range" */

input[type=range] {
  -webkit-appearance: none;
  background:transparent;
  width: 100%;
  margin: 0 5px;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
  background: rgba(255,255,255,0.8);
  border-radius: 1.3px;
  border: 0.2px solid rgba(1, 1, 1, 0);
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0);
  height: 15px;
  width: 15px;
  border-radius: 50px;
  background: #ffc600;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -3.5px;
  box-shadow:0 0 2px rgba(0,0,0,0.2);
}
input[type=range]:focus::-wefbkit-slider-runnable-track {
  background: #bada55;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
  background: #ffffff;
  border-radius: 1.3px;
  border: 0.2px solid rgba(1, 1, 1, 0);
}
input[type=range]::-moz-range-thumb {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0);
  height: 15px;
  width: 15px;
  border-radius: 50px;
  background: #ffc600;
  cursor: pointer;
}