* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #1db954, #0f0f0f 40%);
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #fff;
}

.player {
  width: 95%;
  max-width: 900px;
  background: #121212;
  border-radius: 20px;
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

/* Header */
.player-header h1 {
  font-size: 22px;
  color: #1db954;
}

/* Body */
.player-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.song-card {
  background: #181818;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.cover {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 15px;
}

.song-card h2 {
  font-size: 20px;
}

.song-card p {
  color: #aaa;
  font-size: 14px;
}

/* Playlist */
.playlist-section {
  background: #181818;
  border-radius: 16px;
  padding: 20px;
}

.playlist-section h3 {
  margin-bottom: 10px;
}

.playlist-section ul {
  list-style: none;
}

.playlist-section li {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.playlist-section li:hover,
.playlist-section li.active {
  background: #1db954;
  color: #000;
}

/* Controls */
.controls-section {
  display: grid;
  gap: 15px;
}

.time {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.progress-container {
  height: 6px;
  background: #404040;
  border-radius: 10px;
  cursor: pointer;
}

.progress {
  height: 100%;
  width: 0%;
  background: #1db954;
  border-radius: 10px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.controls button {
  background: #1db954;
  border: none;
  padding: 14px;
  font-size: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.controls button:hover {
  transform: scale(1.15);
}

.volume {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .player-body {
    grid-template-columns: 1fr;
  }
}
