* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  min-height: 100vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  flex: 1;
}
.hidden { display: none !important; }

.playlist-header {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: left;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.playlist-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.2);
}
.playlist-header img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.playlist-info h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.playlist-info p {
  font-size: 0.875rem;
  color: #b3b3b3;
}

.player {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
}
.album-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.album-art img { width: 100%; height: 100%; object-fit: cover; }
.info h2 { font-size: 1.25rem; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info p { color: #b3b3b3; margin-bottom: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.error { color: #ff5555; margin-top: 1rem; }

#status-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10;
}

.status-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.status-icon.playing {
  background: #1db954; /* 绿色 */
}
.status-icon.paused {
  background: #bbb; /* 灰色 */
}