/* ===== Music Player V2 ===== */
.musicplayer {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

.musicplayer::-webkit-scrollbar {
  width: 5px;
}

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

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

/* Album Art */
.mp2-albumart {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.mp2-albumart-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.mp2-albumart-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  z-index: 1;
  margin-top: 4px;
}

/* Visualizer */
.mp2-visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 60px;
  flex-shrink: 0;
  padding: 0 4px;
}

.mp2-bar {
  width: 6px;
  min-height: 3px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transition: height 0.08s ease-out;
}

/* Progress */
.mp2-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.mp2-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.1s;
}

.mp2-progress-bar:hover {
  height: 6px;
}

.mp2-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  position: relative;
  transition: width 0.15s linear;
}

.mp2-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
}

.mp2-progress-bar:hover .mp2-progress-fill::after {
  opacity: 1;
}

.mp2-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Controls */
.mp2-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-shrink: 0;
}

.mp2-controls button {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.1s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.mp2-controls button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mp2-controls .mp2-play-btn {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #000;
  font-size: 20px;
}

.mp2-controls .mp2-play-btn:hover {
  transform: scale(1.06);
  opacity: 0.9;
}

/* Volume */
.mp2-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 14px;
}

.mp2-volume span {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 13px;
}

.mp2-volume input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.mp2-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

/* Toggles (Shuffle, Repeat) */
.mp2-toggles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
}

.mp2-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.mp2-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.mp2-toggle.on {
  background: rgba(137, 180, 250, 0.15);
  border-color: rgba(137, 180, 250, 0.3);
  color: var(--accent);
}

/* Playlist */
.mp2-playlist {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px;
}

.mp2-playlist::-webkit-scrollbar {
  width: 4px;
}

.mp2-playlist::-webkit-scrollbar-track {
  background: transparent;
}

.mp2-playlist::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.mp2-playlist-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px 2px;
}

.mp2-playlist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: background 0.1s;
}

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

.mp2-playlist-item.active {
  background: var(--selection);
  color: var(--accent);
}

.mp2-playlist-item .mp2-pl-icon {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.mp2-playlist-item.active .mp2-pl-icon {
  color: var(--accent);
}

.mp2-playlist-item .mp2-pl-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp2-playlist-item .mp2-pl-dur {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
