html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100vw;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-width: 100vw;
  background: #000;
}

#player-root {
  position: relative;
  width: min(100vw, 100vh);
  height: min(100vw, 100vh);
  overflow: hidden;
  background: #000;
}

#bg-gif,
#ui-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#ui-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: block;
}

#time-bar-bg,
#volume-knob-bg,
#main-art,
#time-bar,
#volume-knob-container,
#controls {
  position: absolute;
  z-index: 3;
  display: none;
}

#volume-knob-bg {
  position: absolute;
  left: 43%;
  bottom: 7.5%;
  width: 17.6%;
  height: 14.4%;
  z-index: 3;
  display: block;
  object-fit: contain;
}

#volume-knob-container {
  position: absolute;
  left: 43%;
  bottom: 7.5%;
  width: 17.6%;
  height: 14.4%;
  z-index: 4;
  display: block;
  pointer-events: auto;
}

#volume-knob {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#time-bar-bg {
  position: absolute;
  left: -2.5%;
  top: 74.5%;
  width: 52%;
  height: 9.6%;
  z-index: 3;
  display: block;
  object-fit: contain;
}

#controls {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: block;
  pointer-events: none;
}

#back-btn, #play-btn, #skip-btn {
  position: absolute;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  cursor: pointer;
}

#back-btn {
  left: 6%;
  top: 85%;
  width: 8.75%;
  height: 12.5%;
}

#play-btn {
  left: 17.5%;
  top: 85%;
  width: 8.75%;
  height: 12.5%;
}

#skip-btn {
  left: 29%;
  top: 85%;
  width: 8.75%;
  height: 12.5%;
}

#back-btn img, #play-btn img, #skip-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#timebar-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

#timebar-current, #timebar-duration, #timebar-slash {
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  font-size: clamp(12px, 2.2vw, 28px);
  color: #ff1fae;
  letter-spacing: 0.1em;
  text-shadow: 0 0 6px #ff1fae, 0 0 2px #ff1fae;
  vertical-align: middle;
}

#timebar-progress {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 0.2vw;
  gap: 0.3vw;
  width: 90%;
  height: 1.5vw;
}

.timebar-square {
  width: clamp(9.5px, 1.7vw, 21px);
  height: clamp(7.6px, 1.425vw, 15.2px);
  background: #ff1fae;
  opacity: 0.2;
  border-radius: 0.2vw;
  transition: opacity 0.2s;
}

.timebar-square.filled {
  opacity: 1;
}

#time-bar {
  position: absolute;
  left: -2.5%;
  top: 74.5%;
  width: 52%;
  height: 9.6%;
  z-index: 4;
  display: block;
  pointer-events: none;
}

#timebar-numbers {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding-left: 33%;
}

@media (max-width: 600px) {
  .timebar-square {
    width: clamp(7.6px, 2.85vw, 13.3px);
    height: clamp(5.7px, 2.375vw, 11.4px);
  }
  #timebar-current, #timebar-duration, #timebar-slash {
    font-size: clamp(10px, 4vw, 18px);
  }
} 