/* Layout: center the player */
html, body {
  height: 100%;
}

body {
  margin: 0;
  background: #0e0f12;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  display: flex;
  align-items: center;
  justify-content: center;
}

.player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Hide native audio (we control via JS) */
audio {
  display: none;
}

/* A11y: screen-reader only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Big central play/pause button */
.play-button {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: radial-gradient(120px 120px at 40% 35%, #2a2f3a, #171a21);
  color: #10f0b2;
  font-size: 64px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 2px 8px rgba(255,255,255,0.05);
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.3s ease, color 0.2s ease;
}

.play-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5), inset 0 2px 10px rgba(255,255,255,0.07);
}

.play-button:active {
  transform: translateY(1px) scale(0.99);
}

.play-button:focus-visible {
  outline: 3px solid #10f0b2;
  outline-offset: 4px;
}

.play-button.is-playing {
  color: #ffdf6e;
  background: radial-gradient(120px 120px at 40% 35%, #31384a, #1a1f29);
}

/* Volume slider: big and easy to use */
.volume {
  width: min(80vw, 520px);
}

#volume {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: linear-gradient(90deg, #10f0b2, #5dd1ff);
  border-radius: 10px;
  outline: none;
  opacity: 0.95;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35);
}

/* WebKit */
#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #10f0b2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  cursor: pointer;
}

#volume:active::-webkit-slider-thumb {
  transform: scale(1.05);
}

/* Firefox */
#volume::-moz-range-track {
  height: 18px;
  background: linear-gradient(90deg, #10f0b2, #5dd1ff);
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35);
}

#volume::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #10f0b2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  cursor: pointer;
}

/* Edge/IE (legacy) */
#volume::-ms-track {
  width: 100%;
  height: 18px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
#volume::-ms-fill-lower {
  background: #10f0b2;
  border-radius: 10px;
}
#volume::-ms-fill-upper {
  background: #5dd1ff;
  border-radius: 10px;
}
#volume::-ms-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #10f0b2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  cursor: pointer;
} 