html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top,
    #1a2a48 0%,
    #0b1020 40%,
    #02040a 70%,
    #000000 100%
  );
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  text-align: center;
}

.container {
  padding-top: 150pt;
  position: relative;
  z-index: 2;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

audio {
  width: 80%;
  max-width: 600px;
  border-radius: 30px;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#audioPlayer {
  width: 70%;
}

#audioPlayer::-webkit-media-controls-panel {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

#nowPlaying {
  margin-top: 30px;
  font-size: 1.4em;
  color: #cde9ff;
  text-shadow:
    -1px -1px 2px #000,
     1px -1px 2px #000,
    -1px  1px 2px #000,
     1px  1px 2px #000;
}

#errorMessage {
  display: none;
  margin-top: 18px;
  font-size: 0.95em;
  opacity: 0.85;
}

/* ---------------------- Bottom left panel (countdown) ---------------------- */
#bottom-left-panel {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 30;
  text-align: left;
}

#christmas-countdown {
  font-size: 13px;
  color: #cde9ff;
  background: rgba(0,0,0,0.45);
  padding: 8px 12px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
}

#countdown-time {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #ffeb3b;
}

#countdown-target {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.8;
}

/* ---------------------- Bottom right panel (history) ---------------------- */
#bottom-right-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 30;
}

#song-history-btn {
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.55);
  box-shadow: 0 0 8px rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

#song-history-btn:hover {
  background: rgba(0,0,0,0.7);
}

#history-box {
  display: none;
  position: absolute;
  bottom: 40px;
  right: 0;
  min-width: 280px;
  max-height: 560px;
  overflow-y: auto;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  font-size: 0.6rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  text-align: right;
}

#history-box.open {
  display: block;
}

#history-box h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #ffd966;
}

#history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#history-list li {
  margin: 2px 0;
  color: #f0f0f0;
  opacity: 0.95;
}

@media (max-width: 480px) {
  #history-box {
    min-width: auto;
    width: 90vw;
  }
  #audioPlayer {
    width: 92%;
  }
}

/* ===== Countdown links ===== */
#christmas-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

#christmas-link:hover {
  color: #ffeb3b;
}

#dj-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(205, 233, 255, 0.75);
  text-decoration: none;
  opacity: 0.8;
}

#dj-link:hover {
  opacity: 1;
  color: #cde9ff;
  text-shadow: 0 0 6px rgba(205, 233, 255, 0.6);
}

