:root {
  /* Spotify-inspired color palette */
  --background-dark: #121212;
  --background-medium: #1E1E1E;
  --background-light: #282828;
  --text-primary: #ffffff;
  --text-secondary: #B3B3B3;
  --accent-color: #1DB954; /* Spotify green */
  --highlight-color: #535353;
  --hover-accent: rgba(29, 185, 84, 0.2); /* Subtle green hover */
}

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

body {
  background-color: var(--background-dark);
  color: var(--text-primary);
  font-family: 'Spotify', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 500px;
  margin: 20px auto;
  background-color: var(--background-medium);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.player,
.playlist {
  background-color: var(--background-light);
  border: none;
  width: 100%;
}

.player-bar,
.playlist-bar {
  background-color: var(--background-medium);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-content {
  background-color: var(--background-light);
  display: flex;
  padding: 15px;
  align-items: center;
}

#player-album-art img {
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.player-display {
  margin-left: 20px;
}

#player-song-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: bold;
}

#player-song-artist {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 5px;
}

.player-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.player-buttons button {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.player-buttons button:hover,
.player-buttons button:focus {
  color: var(--accent-color);
}

.player-buttons svg {
  fill: var(--text-primary);
  width: 24px;
  height: 24px;
}

.player-buttons button:hover svg,
.player-buttons button:focus svg {
  fill: var(--accent-color);
}

/* Updated playlist styles */
#playlist-songs {
  background-color: var(--background-light);
  list-style: none;
}

.playlist-song {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--background-medium);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.playlist-song:hover {
  background-color: var(--hover-accent);
  transform: scale(1.02);
}

.playlist-song-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: var(--background-medium); /* Use a darker background for better contrast */
  padding-right: 20px; /* Add more space on the right for better alignment */
  padding-left: 15px; /* Add padding on the left for symmetry */
  border-radius: 8px; /* Rounded corners for a smoother look */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: transform 0.2s ease, background-color 0.3s ease; /* Smooth transitions */
}

.playlist-song-info:hover {
  transform: translateX(5px); /* Slight movement when hovered to indicate interactivity */
  background-color: var(--background-light); /* Lighter background on hover for better contrast */
}

.playlist-song-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease; /* Smooth transition for color change */
}

.playlist-song-title:hover {
  color: var(--accent-color); /* Accent color on hover for better visual feedback */
}

.playlist-song-artist {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease; /* Smooth transition for color change */
}

.playlist-song-artist:hover {
  color: var(--accent-color); /* Accent color on hover for better visual feedback */
}

.playlist-song-duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 5px;
  text-align: right;
  transition: color 0.3s ease; /* Smooth transition for color change */
}

.playlist-song-duration:hover {
  color: var(--accent-color); /* Accent color on hover */
}

/* Gradient background for a modern feel */
.playlist-song-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  z-index: -1;
  border-radius: 8px;
}
.reset-button {
  background-color: var(--accent-color); /* Use the accent color for a bold, recognizable look */
  color: var(--text-primary); /* Text color to match the background */
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px; /* Rounded corners for a modern, button-like feel */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Smooth transition effects */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.reset-button:hover {
  background-color: var(--accent-color); /* Slightly lighter shade on hover */
  transform: scale(1.05); /* Slight zoom effect when hovered */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
}

.reset-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.4); /* Highlight with a glow effect on focus */
}

.reset-button:active {
  background-color: var(--accent-color); /* Keep the same color when clicked */
  transform: scale(1); /* Reset the scale on click */
  box-shadow: none; /* Remove shadow on click for a pressed effect */
}

.reset-button svg {
  fill: var(--text-primary); /* Match the icon color with the text */
  width: 20px;
  height: 20px;
  margin-right: 8px; /* Space between the icon and the text */
  transition: fill 0.3s ease;
}

.reset-button:hover svg {
  fill: var(--text-primary); /* Keep icon color consistent with text color on hover */
}


.playlist-song-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-song-artist {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 3px;
}

.playlist-song-duration {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.playlist-song-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-medium); /* Subtle background for the delete button */
  border-radius: 50%;
  width: 30px; /* Size of the delete button */
  height: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover and click effects */
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.playlist-song-delete:hover {
  background-color: var(--accent-color); /* Hover effect: change background */
  transform: scale(1.1); /* Slight zoom effect when hovered */
}

.playlist-song-delete svg {
  fill: var(--text-secondary);
  width: 18px;
  height: 18px;
  transition: fill 0.3s ease; /* Smooth color transition on hover */
}

.playlist-song-delete:hover svg {
  fill: var(--text-primary); /* Change icon color on hover */
}


.playlist-song-delete svg {
  fill: var(--text-secondary);
  width: 20px;
  height: 20px;
  transition: fill 0.3s ease, transform 0.3s ease;
}

.playlist-song-delete:hover svg {
  fill: var(--accent-color);
  transform: scale(1.2);
}

/* Highlighted current song */
[aria-current="true"] {
  background-color: var(--highlight-color);
}

[aria-current="true"] .playlist-song-title {
  color: var(--accent-color);
}

[aria-current="true"] .playlist-song-artist {
  color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .container {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .player-content {
    flex-direction: column;
    text-align: center;
  }

  #player-album-art img {
    width: 250px;
    margin-bottom: 15px;
  }

  .player-display {
    margin-left: 0;
  }

  .playlist-song {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .playlist-song-info {
    padding-right: 0;
  }
}
