* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { width: 100%; height: 100%; overflow: hidden; background: #cfeaf7; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

#app { position: fixed; inset: 0; }

#scene { display: block; width: 100%; height: 100%; }

#yt-host { position: fixed; top: -9999px; left: -9999px; width: 2px; height: 2px; overflow: hidden; }

.music-player {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 10px;
  width: min(420px, 88vw);
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.disk-wrap { flex: 0 0 auto; width: 44px; height: 44px; }

.disk {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #1a1a1a 0 1.5px, #2a2a2a 1.5px 3px);
  border: 2px solid #ffb703;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 0 6px rgba(0, 0, 0, 0.5);
  animation: spin 4s linear infinite;
  animation-play-state: paused;
}
.disk.playing { animation-play-state: running; }

.disk-label {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb8500, #ffb703);
  display: flex;
  align-items: center;
  justify-content: center;
}
.disk-hole { width: 5px; height: 5px; border-radius: 50%; background: #111; }

@keyframes spin { to { transform: rotate(360deg); } }

.track-info { flex: 1 1 auto; min-width: 0; }
.track-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.player-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #ffb703;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform 0.12s ease;
  position: relative;
}
.player-btn:hover { transform: scale(1.08); }
.player-btn:active { transform: scale(0.94); }

#play-btn::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 13px solid #1a1a1a;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
#play-btn.playing::before {
  content: '';
  width: 12px;
  height: 15px;
  border: none;
  background: #1a1a1a;
  margin-left: 0;
  clip-path: polygon(0 0, 4px 0, 4px 100%, 0 100%, 0 0, 8px 0, 12px 0, 12px 100%, 8px 100%, 8px 0);
}

#next-btn::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 12px solid #1a1a1a;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
#next-btn::after {
  content: '';
  display: block;
  width: 3px;
  height: 15px;
  background: #1a1a1a;
  margin-left: 3px;
}
