:root {
  --accent1: #00e5ff;
  --accent2: #ff00e5;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background: #05050a;
  color: #eee;
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

#viz {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  pointer-events: none;
}

.content > * {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #ff4d4d;
  border: 1px solid #ff4d4d;
  border-radius: 20px;
  padding: 3px 10px;
  background: rgba(10, 10, 15, 0.4);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

#trackInfo {
  opacity: 0.9;
  margin: 16px 0 22px;
  min-height: 22px;
  font-size: 15px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(20, 20, 28, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 22px;
}

#playBtn {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border: none;
  color: #05050a;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: 0.5px;
}

#playBtn:active {
  transform: scale(0.97);
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.75;
}

input[type="range"] {
  accent-color: var(--accent1);
  width: 110px;
}

#status {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.6;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

#lyrics {
  display: none;
  width: min(640px, 90vw);
  margin: 22px auto 0;
  background: rgba(20, 20, 28, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  max-height: 240px;
  overflow-y: auto;
  line-height: 1.9;
  font-size: 15px;
  white-space: pre-wrap;
}

#lyrics .line {
  opacity: 0.4;
  transition: opacity 0.25s, color 0.25s, transform 0.25s;
}

#lyrics .line.active {
  opacity: 1;
  color: var(--accent1);
  transform: scale(1.04);
  font-weight: 600;
}

#lyrics::-webkit-scrollbar {
  width: 6px;
}

#lyrics::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.hint {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}
