.expandedPlayer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  max-height: 80vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: expandIn 0.3s ease-out;
}

@keyframes expandIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.closeButton,
.collapseButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #888;
  font-size: 14px;
  transition: all 0.2s ease;
}

.closeButton:hover,
.collapseButton:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.playlistName {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  flex: 1;
  text-align: center;
}

.nowPlaying {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  gap: 16px;
}

.albumCover {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.musicEmoji {
  font-size: 48px;
}

.trackDetails {
  text-align: center;
}

.currentTitle {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
}

.currentArtist {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.progressSection {
  padding: 0 16px;
}

.controlsSection {
  padding: 16px;
}

.playlistSection {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.playlistTitle {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  padding: 12px 16px 8px;
}

.trackList {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 8px;
  max-height: 200px;
}

.trackList::-webkit-scrollbar {
  width: 6px;
}

.trackList::-webkit-scrollbar-track {
  background: transparent;
}

.trackList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.trackList::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 400px) {
  .expandedPlayer {
    width: calc(100vw - 40px);
    max-width: 360px;
  }
}
