.player-wrapper {
  position: relative;
  width: 95%;
  max-width: 95%;
  margin: auto;
}

#tv1 {
  width: 100%;
  background: black;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.controls {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1vw;
  background: rgba(0,0,0,0.6);
  padding: 0.8vw 1.2vw;
  border-radius: 2vw;
  z-index: 10;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s;
  min-height: 3vw;
}

.controls.hidden {
  opacity: 0;
}

.controls img {
  width: 4em;
  height: 4em;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.controls img:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Volume slider */
.volume-slider {
  -webkit-appearance: none;
  width: 10%;
  height: 0.8vw;
  background: #ccc;
  border-radius: 0.5em;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2vw;
  height: 2vw;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 2vw;
  height: 2vw;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

/* Time slider */
.time-slider {
  -webkit-appearance: none;
  height: 0.8vw;
  background: #555;
  border-radius: 0.5em;
  cursor: pointer;
}

.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2vw;
  height: 2vw;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.time-slider::-moz-range-thumb {
  width: 2vw;
  height: 2vw;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.time-label {
  font-size: 2em;
  color: white;
  min-width: 3em;
  text-align: center;
}

#btnUnmute {
  display: none;
}

/* Center play/pause */
#centerBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  cursor: pointer;
  opacity: 0.7;
  z-index: 20;
  transition: opacity 0.3s;
  display: none;
}
