/* Simple Music Player Styles */
.simple-music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Mini Player */
.player-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(17, 20, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  max-width: 320px;
}

.player-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(78, 205, 196, 0.5);
}

.track-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.track-cover {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(78, 205, 196, 0.3);
}

.track-details {
  flex: 1;
  min-width: 0;
}

.track-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-control {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-control:hover {
  background: rgba(78, 205, 196, 0.3);
  transform: scale(1.1);
}

.btn-play {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.btn-play:hover {
  background: linear-gradient(135deg, #5fd3ca, #4fa89b);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

/* Full Player */
.player-full {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 380px;
  background: rgba(17, 20, 26, 0.98);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

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

.player-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.player-content {
  padding: 20px 24px 24px;
}

.track-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.track-cover-large {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(78, 205, 196, 0.3);
}

.track-info-large {
  flex: 1;
}

.track-info-large h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.track-info-large p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

/* Progress Section */
.progress-section {
  margin-bottom: 24px;
}

.time-display {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #4ecdc4;
  border-radius: 50%;
  cursor: pointer;
}

/* Main Controls */
.main-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.main-controls .btn-control {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.main-controls .btn-control.active {
  background: #4ecdc4;
  color: #11141a;
}

/* Volume Section */
.volume-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #94a3b8;
}

.volume-slider, .speed-slider {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb,
.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #4ecdc4;
  border-radius: 50%;
  cursor: pointer;
}

.btn-playlist {
  width: 100%;
  padding: 12px;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 12px;
  color: #4ecdc4;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-playlist:hover {
  background: rgba(78, 205, 196, 0.2);
}

/* Playlist Modal */
.playlist-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-container {
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  background: rgba(17, 20, 26, 0.98);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 20px;
  overflow: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.playlist-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.playlist-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  flex: 1;
  visibility: visible !important;
  display: block !important;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.3);
}

.playlist-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.playlist-info {
  flex: 1;
  min-width: 0;
}

.playlist-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-artist {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-play-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.playlist-play-btn:hover {
  background: rgba(78, 205, 196, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .simple-music-player {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  
  .player-mini {
    max-width: none;
  }
  
  .player-full {
    width: 100%;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 20px 20px 0 0;
  }
  
  .playlist-container {
    width: 95%;
  }
}



