@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@import url("https://fonts.googleapis.com/css2?family=Gloock&family=Petrona:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
:root {
  --color-action: rgba(255, 255, 255, 0.8);
  --progressbar-value: 0;
}

body.dark {
  --color-action: #9370db;
}

.player {
  position: relative;
  border-radius: 0;
  color: #fff;
  font-size: 0.8rem;
  text-shadow: 0 0 10px #000;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 775px;
  aspect-ratio: 550 / 755;
  transition: all 0.3s;
  z-index: 1;
}
.player input:focus,
.player button:focus {
  outline: 0;
}
.player button:not(.player__toggle) {
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
.player img {
  width: 100px;
  position: absolute;
  right: 20px;
  top: 10px;
  opacity: 0;
  transition: all 0.5s;
  transition-delay: 0.5s;
}
.player__video {
  display: block;
  cursor: pointer;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  position: absolute;
  transform: translateY(0);
  transition: transform 1s;
  transition-delay: 0.5s;
}
.player__controls--right,
.player__controls--left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.player:hover .player__controls,
.player.is-paused .player__controls {
  transform: translateY(-100%);
  transition: transform 0.5s;
  transition-delay: 0;
}
.player:hover img {
  transform: translateY(0);
  opacity: 1;
  transition: all 1s;
  transition-delay: 0;
}
.player .player__play-pause {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.player .player__play-pause button {
  display: flex;
  align-items: center;
}
.player__toggle {
  transition: all 0.3s;
  width: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  aspect-ratio: 1/1;
  color: inherit;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid var(--color-action);
  background-color: rgba(255, 255, 255, 0.1);
}
.player__toggle:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.player__times {
  font-family: "Petrona", serif;
  font-weight: 100;
}
.player__times--current {
  opacity: 0.8;
}
.player__range {
  display: flex;
  align-items: center;
  transition: all 500ms;
}
.player__range-input {
  max-width: 0;
  height: 0.2rem;
  margin-left: 0.5rem;
  background-color: var(--color-action);
  overflow: hidden;
  transition: all 500ms;
  cursor: pointer;
  appearance: none;
  visibility: hidden;
}
.player__range-input::-webkit-slider-thumb {
  appearance: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: white;
}
.player__range:hover .player__range-input {
  max-width: 100px;
  width: auto;
  overflow: visible;
  visibility: visible;
}
.player__progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.4);
  width: 100%;
  transition: height 300ms;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  cursor: pointer;
  overflow: visible;
}
.player__progress:before {
  content: "";
  background: var(--color-action);
  width: var(--progressbar-value);
  height: 100%;
  display: block;
  transition: width 100ms;
}
.player__progress:hover {
  height: 10px;
}

.player.fullscreen video {
  max-width: none;
}

@media (max-width: 700px) {
  .player__range:hover .player__range-input {
    max-width: 50px;
    width: auto;
    overflow: visible;
    visibility: visible;
  }

  .player__controls--right .player__button {
    display: none;
  }

  .player .player__play-pause {
    gap: 1.5rem;
  }

  .player__progress {
    height: 4px;
  }
}
.player__controls--right,
.player__range {
  display: none;
}

/*# sourceMappingURL=style.css.map */
