body {
  margin: 0;
  font-family: 'Fira Code', monospace;
  overflow: hidden;
  background: #000;
  color: #fff;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.album-art {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
  border: 2px solid;
  transition: transform 0.5s;
  z-index: 2;
}

.album-art.playing {
  animation: spin 20s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.info {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.playlist {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  max-height: 500px;
  overflow-y: auto;
  z-index: 2;
  font-size: 0.9rem;
  -ms-overflow-style: none; /* untuk Internet Explorer dan Edge lama */
  scrollbar-width: none;    /* untuk Firefox */
}

.playlist div {
  margin: 5px 0;
  cursor: pointer;
}

.playlist .active {
  color: var(--accent-color);
  font-weight: bold;
}

.playlist::-webkit-scrollbar {
  display: none;
}

:root {
  --accent-color: #ff1493;
}

@media (prefers-color-scheme: light) {
  body { background: #fff; color: #000; }
  .album-art { border-color: #000; }
}

@media (prefers-color-scheme: dark) {
  body { background: #000; color: #fff; }
  .album-art { border-color: #fff; }
}

