:root {
  --bg: #1e1e2f;
  --fg: white;
  --highlight: #f1c40f;
}

body.light {
  --bg: #f0f0f0;
  --fg: #1e1e2f;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  transition: background 0.3s, color 0.3s;
}

.theme-toggle {
  text-align: center;
  margin-top: 10px;
}

.theme-toggle button {
  background: var(--highlight);
  color: var(--bg);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.container {
  max-width: 400px;
  margin: 20px auto;
  background: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.player {
  text-align: center;
}

.player img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  transition: transform 1s;
}

.player h2, .player p {
  margin: 8px 0;
}

.controls button {
  background-color: var(--highlight);
  border: none;
  border-radius: 50%;
  padding: 10px;
  margin: 10px 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.controls button:hover {
  background-color: #d4ac0d;
}

.progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

#progress {
  flex: 1;
  margin: 0 10px;
}

ul#playlist {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  max-height: 200px;
  overflow-y: auto;
}

ul#playlist li {
  background: #2c3e50;
  padding: 10px;
  margin: 5px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

ul#playlist li:hover {
  background: #34495e;
}