.video-player {
  width: 100%;
  height: 100%;
}

.video-player:focus {
  outline: none;
}

.video-container:hover .controls-container {
  opacity: 1;
}

.video-container:fullscreen {
  height: 100%;
}

.video-container:-webkit-full-screen {
  height: 100%;
}

video {
  width: 100%;
}

.play-button-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.play-button {
  transition: all 0.5s;
  opacity: 0.8;
}

.play-button:hover {
  cursor: pointer;
  transform: scale(1.1);
  opacity: 1;
}

.logo-video-player {
  position: absolute;
  top: 4px;
  right: 4px;
  user-select: none;
  font-family: 'Lucida Console', sans-serif;
  font-size: 12px;
}

.controls {
  /* margin: 10px; */
  width: 100%;
  background: rgb(0, 0, 0);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
}

.controls-container {
  height: 40px;
  opacity: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  grid-template-columns: max-content 1fr max-content;
  user-select: none;
  bottom: 4px;
  position: absolute;
  width: calc(100% - 40px);
  transition: opacity 0.4s;
  background: linear-gradient(0deg, rgba(0,0,0,0.4) 23%, rgba(0,0,0,0.2) 69%, rgba(255,255,255,0) 100%);
  bottom: 0px;
}

#playpause {
  fill: #ffffff;
  width: 16px;
  height: 16px;
  display: inline-block;
}

#playpause:hover {
  cursor: pointer;
}

.progress-lead {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 30px;
  /* background: red; */
  margin: 4px 20px;
}

.progress-container {
  position: relative;
  width: 100%;
  height: 2px;
  background: #2e2e2e;
  display: inline-block;
}

.progress-lead:hover {
  cursor: pointer;
}

.progress-container .buffer-bar {
  width: 0%;
  height: 2px;
  background: #6a6c6d;
  position: absolute;
}

.progress-container .progress-bar {
  width: 0%;
  height: 2px;
  background: #ffffff;
  position: absolute;
}

.progress-container .seeker {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  margin-left: -4px;
  margin-top: -4px;
  pointer-events: none;
}

.timestamp {
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.volume-button {
  fill: #ffffff;
  width: 16px;
  height: 16px;
  padding: 10px;
}

.volume-button:hover {
  cursor: pointer;
}

.volume-container {
  position: relative;
  display: flex;
  align-items: center;
}

.volume-container:hover .volume-slider-container {
  opacity: 1;
  cursor: pointer;
}

.volume-slider-container {
  opacity: 0;
  transition: opacity 0.5s;
  position: absolute;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  top: -70px;
  padding-bottom: 10px;
}

.opacity-up {
  opacity: 1;
}

.volume-slider-background {
  height: 100%;
  width: 2px;
  background: #6a6c6d;
  position: relative;
  pointer-events: none;
}

.volume-slider-bar {
  bottom: 0;
  height: 100%;
  width: 2px;
  position: absolute;
  background: white;
  pointer-events: none;
}

.volume-seeker {
  margin-left: -3px;
  /* margin-top: -3px; */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  position: absolute;
  pointer-events: none;
}

#fullscreen {
  width: 14px;
  height: 14px;
  padding: 0 10px;
}

#fullscreen:hover {
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.poster {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: opacity 0.35s;
}

#init-video {
  transition: all 0.5s;
  opacity: 0.8;
}

#init-video:hover {
  cursor: pointer;
  transform: scale(1.1);
  opacity: 1;
}

.loader {
  width: 100px;
  animation: spin 1.5s linear forwards;
  animation-iteration-count: infinite;
  display: none;
}

#error-message {
  position: absolute;
  left: 0;
  top: 10%;
  width: 100%;
  text-align: center;
  display: none;
  z-index: 2;
}

@keyframes spin {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}