
.video {
  overflow: hidden;
  position: relative;
}

.video video {
  display: block;
  width: 100%;
}

.videoOverlay {
  transition: opacity 500ms ease-in;
}

.videoOverlay::before {
  background-color: #000;
  content: "";
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0.35;
}

.videoOverlay button {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  width: 100%;
  z-index: 5;
}

.videoFooter {
  bottom: 0;
  left: 0;
  padding: 0.625rem;
  position: absolute;
  right: 0;
}

.videoCaption {
  display: flex;
  margin-bottom: 0.625rem;
}

.videoCaption span {
  background: #000;
  border-radius: 4px;
  color: #fff;
  margin: auto;
  opacity: 0.8;
  padding: 0.625rem;
}

.videoControls {
  background: #000;
  border-radius: 0.25rem;
  color: #fff;
  display: flex;
  margin: 0 auto;
  max-width: 64rem;
  opacity: 0;
  padding: 0.375rem 0.625rem;
  transition: opacity 400ms ease-in;
}

.videoControls:hover, .videoControls:focus, .videoControls:active, .videoControls:focus-within {
  opacity: 0.8;
}

.videoControls.visible {
  opacity: 0.8;
}

.videoControls button:focus {
  outline: dashed 1px rgb(255, 255, 255);
  outline-offset: 3px;
}

.videoControls > :not(:last-child) {
  margin-right: 0.625rem;
}

.videoControls progress {
  height: 0.375rem;
  margin-bottom: 0.125rem;
  width: 100%;
}

.videoControls progress[value] {
  -webkit-appearance: none;
  border: none;
}

.videoControls progress[value]::-webkit-progress-bar {
  background-color: #fff;
}

.videoControls progress[value]::-webkit-progress-value {
  background-color: #006fcf;
}

.videoControls .volumeSlider {
  align-items: center;
  background: #000;
  bottom: 4.375rem;
  display: flex;
  height: 2.5rem;
  opacity: 0;
  padding: 0.5rem;
  position: absolute;
  right: -3.125rem;
  transform: rotate(-90deg);
  width: 7.8125rem;
}

.videoControls .volumeSlider:hover, .videoControls .volumeSlider:focus, .videoControls .volumeSlider:focus-within, .videoControls .volumeSlider:active {
  opacity: 1;
  outline: dashed 1px rgb(255, 255, 255);
  outline-offset: 3px;
}

.videoControls .volumeSlider input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

.videoControls .volumeSlider input[type=range]:focus {
  outline: none;
}

.videoControls .volumeSlider input[type=range]::-webkit-slider-thumb {
  background-color: #fff;
  border: 0;
  border-radius: 50%;
  height: 15px;
  width: 15px;
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6px;
}

.videoControls .volumeSlider input[type=range]::-webkit-slider-runnable-track {
  background: #fff;
  border-radius: 4px;
  color: transparent;
  cursor: pointer;
  height: 4px;
  width: 100%;
}

.videoControls .volumeSlider input[type=range]::-moz-range-thumb {
  -moz-appearance: none !important;
  background-color: #fff;
  border: 0;
  border-radius: 50%;
  height: 15px;
  width: 15px;
  -webkit-appearance: none;
}

.videoControls .volumeSlider input[type=range]::-moz-range-progress {
  background-color: #006fcf;
}

.videoControls .volumeSlider input[type=range]::-moz-range-track {
  -moz-appearance: none;
  background-color: #fff;
}

.videoControls .volumeSlider input[type=range]::-ms-track {
  height: 3px;
}

.videoControls .volumeSlider input[type=range]::-ms-thumb {
  display: block;
  -ms-appearance: none !important;
  z-index: 9999;
  margin-top: 0;
  height: 14px;
  width: 14px;
  background-color: #fff;
  border: 0;
  border-radius: 50%;
  height: 15px;
  width: 15px;
  -webkit-appearance: none;
}

.videoControls .videoVolume {
  position: relative;
}

.videoControls .videoVolume button:hover + .volumeSlider, .videoControls .videoVolume button:focus + .volumeSlider, .videoControls .videoVolume button:active + .volumeSlider {
  opacity: 1;
}

.videoSm {
  background-color: #000;
}

.videoSmFooter {
  padding: 0;
  position: static;
}

@media (max-width: 374px) {  .video {
    background-color: #000;
  }

  .videoFooter {
    padding: 0;
    position: static;
  }
}