#controls,
#controls * {
  display: flex;
  position: static !important;
  box-shadow: none !important;
  cursor: default;
  font-size: 14px;
}

#movie,
#movie * {
  user-select: none;
}

#controls {
  position: relative !important;
  bottom: 0;
  left: 0;
  opacity: 1;
  border-top: 1px solid #444;
  background: linear-gradient(to bottom, #2b2b2b, #050505);
  padding: 0 8px;
  height: 24px;
}

#play_pause_button,
#step_frame_forward,
#step_frame_backward,
#fullscreen_button {
  display: flex;
  align-self: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 2px;
  width: 16px;
  height: 16px;
  color: #eee;
}

#progress_bar {
  display: flex;
  flex-grow: 1;
  padding: 6px 0 0;
}

#time_display,
#frame_display,
#quality_toggle {
  display: block;
  cursor: default;
  text-align: center !important;
  text-shadow: #000 1px 1px 1px;
  color: #ddd;
  font: normal bold 11px/11px Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

#time_display {
  min-width: 30px;
}

#frame_display {
  margin-right: 3px;
  width: 15px;
}

#quality_toggle {
  align-self: center;
  cursor: pointer;
  width: 35px;
}

#quality_toggle.quality_960 {
  color: #bbb;
}

/* Progress */

#progress_back {
  position: relative !important;
  flex-grow: 1;
}

#progress_buffered {
  position: absolute !important;
  top: 0;
  left: 0;
  transition: 0.5s width;
  background: linear-gradient(to bottom, #6a6a6a, #404040);
  background-clip: padding-box;
  width: 0;
  height: 10px;
  overflow: hidden;
}

#progress_elapsed {
  position: relative !important;
  left: 0;
}

/* https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/ */

#progress_indicator {
  appearance: none;
  position: absolute !important;
  top: 0;
  left: 0;
  margin: 0;
  border-radius: 10px;
  background: none;
  width: 100%;
  height: 10px;

  &:focus {
    outline: none;
  }
}

// Intentionally defined as separate rules
#progress_indicator::-moz-range-thumb {
  appearance: none;
  border: none;
  border-radius: 1px;
  background: linear-gradient(to bottom, #1c1c1c, #0a0a0a);
  cursor: pointer;
  width: 5px;
  height: 10px;
}

#progress_indicator::-webkit-slider-thumb {
  appearance: none;
  border: none;
  border-radius: 1px;
  background: linear-gradient(to bottom, #1c1c1c, #0a0a0a);
  cursor: pointer;
  width: 5px;
  height: 10px;
}

// Intentionally defined as separate rules
#progress_indicator::-moz-range-track {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  height: 10px;
  color: transparent;
}

#progress_indicator::-webkit-slider-runnable-track {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  height: 10px;
  color: transparent;
}

/* Volume */

#volume_speaker_button {
  display: block;
  margin: 5px 0 0 5px;
  cursor: pointer;
  width: 15px;
  height: 15px;
  color: #eee;
}

#volume_bar {
  display: block;
  padding: 6px 0 0;
  width: 50px;
}

#volume_back {
  display: block;
  border-radius: 20px;
  width: 47px;
  overflow: hidden;
}

#volume_indicator {
  appearance: none;
  position: absolute !important;
  top: 8px;
  border-radius: 10px;
  background: none;
  width: 47px;
  height: 8px;

  &:focus {
    outline: none;
  }
}

// Intentionally defined as separate rules
#volume_indicator::-moz-range-thumb {
  appearance: none;
  display: block;
  border: none;
  border-radius: 50%;
  background: linear-gradient(to bottom, #ddd, #888);
  background-clip: padding-box;
  width: 10px;
  height: 10px;
}

#volume_indicator::-webkit-slider-thumb {
  appearance: none;
  display: block;
  border: none;
  border-radius: 50%;
  background: linear-gradient(to bottom, #ddd, #888);
  background-clip: padding-box;
  width: 10px;
  height: 10px;
}

// Intentionally defined as separate rules
#volume_indicator::-moz-range-track {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  height: 10px;
  color: transparent;
}

#volume_indicator::-webkit-slider-runnable-track {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  height: 10px;
  color: transparent;
}

/* Appearance Sliders */

#progress_back,
#volume_back {
  border: 1px solid rgba(0, 0, 0, 1) !important;
  box-shadow: rgba(255, 255, 255, 0.05) 0 1px 0 !important;
  background: linear-gradient(to bottom, #353535, #5b5b5b);
  background-clip: padding-box;
  padding: 0;
  height: 12px;
}

#progress_elapsed,
#volume_used {
  background: linear-gradient(to bottom, #bbb, #666);
  background-clip: padding-box;
  width: 0;
  height: 10px;
}
