/* ============================================
   播放器折叠切换按钮
   ============================================ */
.player-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 歌名歌手信息区域 - 默认隐藏，hover显示 */
.toggle-song-info {
  position: relative;
  height: 48px;
  padding: 6px 60px 6px 24px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 280px;
  overflow: hidden;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  margin-right: -45px;
}

/* 鼠标悬停音乐按钮时显示 */
.player-toggle:hover .toggle-song-info {
  opacity: 1;
  pointer-events: auto;
}

.toggle-song-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.toggle-song-artist {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.player-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: rgb(0 0 0 / 30%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.player-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

/* 播放中状态动画 - 流光呼吸效果 */
.player-toggle-btn.playing {
  animation: playerPulse 2s ease-in-out infinite;
}

@keyframes playerPulse {
  0%, 100% {
    box-shadow: 
      0 0 8px rgba(59, 130, 246, 0.3),
      0 0 16px rgba(59, 130, 246, 0.2),
      0 0 24px rgba(59, 130, 246, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 0 12px rgba(59, 130, 246, 0.5),
      0 0 24px rgba(59, 130, 246, 0.4),
      0 0 36px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
  }
}

/* 迷你按钮悬停时显示歌名信息 */
.player-toggle:hover .toggle-song-info {
  opacity: 1;
  pointer-events: auto;
}

/* 播放器主区域 - 适配侧边弹窗 */
.player-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 播放器面板头部 - 封面+歌曲信息+控制并排 */
.player-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

/* 封面容器 */
.player-panel-cover-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.player-panel-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.player-panel-cover-wrapper.playing .player-panel-cover {
  animation: discSpin 6s linear infinite;
}

/* 歌曲信息 */
.player-panel-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-panel-song-name {
  font-size: 13px;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.player-panel-artist {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 播放控制按钮区域 */
.player-panel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.player-panel-control-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.player-panel-control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

.player-panel-control-btn .icon-prev,
.player-panel-control-btn .icon-next {
  width: 14px;
  height: 14px;
}

.player-panel-control-btn .icon-play-solid,
.player-panel-control-btn .icon-pause-solid {
  width: 15px;
  height: 15px;
}

.player-panel-play-btn {
  width: 36px;
  height: 36px;
  background: #3b82f6;
  color: #ffffff;
}

.player-panel-play-btn:hover {
  background: #2563eb;
  transform: scale(1.05);
}

.player-panel-play-btn .icon-play-solid,
.player-panel-play-btn .icon-pause-solid {
  width: 16px;
  height: 16px;
}

/* 操作按钮区域 */
.player-panel-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.player-panel-actions button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.player-panel-actions button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

.player-panel-actions .icon-repeat,
.player-panel-actions .icon-repeat-1,
.player-panel-actions .icon-shuffle,
.player-panel-actions .icon-lyrics,
.player-panel-actions .icon-lyrics-text {
  width: 14px;
  height: 14px;
}

.player-panel-artist {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 头部操作按钮区域 */
.player-panel-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.player-panel-actions button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.player-panel-actions button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

.player-panel-actions button svg {
  width: 12px;
  height: 12px;
}

.player-panel-actions #panel-close-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* 进度条区域 */
.player-panel-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.player-panel-time {
  font-size: 9px;
  color: #94a3b8;
  min-width: 28px;
  text-align: center;
}

.player-panel-progress-bar {
  flex: 1;
  min-width: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.player-panel-progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.player-panel-progress-bar:hover .player-panel-progress-fill {
  background: #2563eb;
}

/* 音量控制 */
.player-panel-volume {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 100px;
  max-width: 120px;
  flex-shrink: 0;
}

.player-panel-volume-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}

.player-panel-volume-btn svg {
  width: 12px;
  height: 12px;
}

.player-panel-volume-btn:hover {
  color: #f1f5f9;
}

.player-panel-volume-slider {
  flex: 1;
  min-width: 70px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  cursor: pointer;
}

.player-panel-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
}

.player-panel-volume-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* 播放列表区域 */
.player-panel-playlist {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 0;
}

.player-panel-playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.player-panel-playlist-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.player-panel-playlist-item.active {
  background: rgba(59, 130, 246, 0.12);
}

.player-panel-playlist-item.active .player-panel-playlist-name {
  color: #3b82f6;
}

.player-panel-playlist-cover {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.player-panel-playlist-index {
  width: 20px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  flex-shrink: 0;
}

.player-panel-playlist-info {
  flex: 1;
  min-width: 0;
}

.player-panel-playlist-name {
  font-size: 13px;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-panel-playlist-artist {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-panel-playlist-duration {
  font-size: 11px;
  color: #64748b;
  flex-shrink: 0;
}

.player-panel-playlist-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.player-panel-playlist-item:hover .player-panel-playlist-actions {
  opacity: 1;
}

.player-panel-playlist-action-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}

.player-panel-playlist-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.player-panel-playlist-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.player-panel-playlist-action-btn.edit:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.player-panel-playlist-action-btn.download:hover {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}





/* 播放列表滚动条样式 */
.player-panel-playlist::-webkit-scrollbar {
  width: 3px;
}

.player-panel-playlist::-webkit-scrollbar-track {
  background: transparent;
}

.player-panel-playlist::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.player-panel-playlist::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 快捷键说明区域 */
.player-panel-shortcuts {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.player-panel-shortcuts h4 {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.player-panel-shortcuts .shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.player-panel-shortcuts .shortcut-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
}

.player-panel-shortcuts .shortcut-item kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 10px;
  font-family: monospace;
  color: #cbd5e1;
}

/* 播放器空状态样式 */
.player-panel .player-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: #94a3b8;
  font-size: 12px;
}

.player-panel .player-empty svg {
  width: 18px;
  height: 18px;
  text-align: center;
}

.player-panel .player-empty-text {
  display: flex;
  flex-direction: column;
}

.player-panel .player-empty-title {
  font-size: 12px;
  color: #e2e8f0;
  margin-bottom: 2px;
}

.player-panel .player-empty-hint {
  font-size: 10px;
  color: #64748b;
}

/* 5行滚动歌词区域 */
.player-panel-lyrics-scroll {
  padding: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 100px;
  overflow: hidden;
}

.lyrics-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
}

.lyrics-line {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  white-space: normal;
  word-break: break-all;
  max-width: 100%;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.lyrics-line.active {
  color: #3b82f6;
  font-weight: 500;
  font-size: 14px;
}

.player-panel .player-empty-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}

.player-panel .player-empty-close svg {
  width: 12px;
  height: 12px;
}

/* 纯白水波纹特效 */
.player-ripple {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 100px;
  height: 100px;
}

.ripple-circle {
  position: absolute;
  width: 0;
  height: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rippleExpand 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.ripple-circle:nth-child(1) {
  animation-delay: 0s;
}

.ripple-circle:nth-child(2) {
  animation-delay: 0.5s;
  border-color: rgba(255, 255, 255, 0.4);
}

.ripple-circle:nth-child(3) {
  animation-delay: 1s;
  border-color: rgba(255, 255, 255, 0.3);
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
  }
  10% {
    width: 10px;
    height: 10px;
    opacity: 0.6;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    width: 120px;
    height: 120px;
    opacity: 0;
  }
}
/* 播放器内关闭按钮 */
.player-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  margin-left: 8px;
  font-size: 16px;
  opacity: 0.8;
}

.player-close-btn:hover {
  color: var(--text-primary);
  background: rgba(239, 68, 68, 0.8);
  opacity: 1;
  transform: scale(1.1);
}

/* ============================================
   播放器折叠按钮 - 唱片旋转样式
   ============================================ */
.player-toggle-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* 唱片容器 */
.toggle-disc {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  position: relative;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

/* 唱片边缘反光效果 - 使用内部元素 */
.toggle-disc .disc-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(0, 0, 0, 0.1) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* 唱片边缘光泽环 */
.toggle-disc .disc-ring {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 3;
}

/* 唱片封面图 */
.toggle-disc-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 封面加载完成后显示 */
.toggle-disc-cover.loaded {
  opacity: 1;
}

/* 音符占位符 */
.toggle-disc-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0.5;
  z-index: 2;
}

.toggle-disc-placeholder.hidden {
  display: none;
}

/* 唱片旋转动画 */
.toggle-disc.spinning {
  animation: discSpin 8s linear infinite;
}

.toggle-disc.spinning.paused {
  animation-play-state: paused;
}

/* 播放时发光效果 - 简约光晕 */
.toggle-disc.playing {
  box-shadow: 
    0 0 12px rgba(59, 130, 246, 0.4),
    0 0 24px rgba(59, 130, 246, 0.25),
    0 0 36px rgba(59, 130, 246, 0.15),
    var(--shadow);
}

/* 唱片旋转光环 - 简约水波效果 */
.toggle-disc.playing::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.4) 0%, rgba(100, 116, 139, 0.2) 50%, transparent 70%);
  animation: discGlowSpin 8s linear infinite;
  filter: blur(3px);
  opacity: 0.5;
  z-index: -1;
}

@keyframes discGlowSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 水波纹动画容器 */
.toggle-disc-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0; /* 移到封面后面，不遮挡唱片照片 */
  overflow: visible;
}

/* 水波纹效果 - 随机水波纹 */
.toggle-disc.playing .toggle-disc-ripple::before,
.toggle-disc.playing .toggle-disc-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}

.toggle-disc.playing .toggle-disc-ripple::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 65%);
  animation: ripple1 2.8s ease-out infinite;
}

.toggle-disc.playing .toggle-disc-ripple::after {
  background: radial-gradient(circle, rgba(230, 230, 230, 0.25) 0%, transparent 70%);
  animation: ripple2 3.3s ease-out infinite;
  animation-delay: 1.1s;
}

@keyframes ripple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.6;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    width: 180%;
    height: 180%;
    opacity: 0;
  }
}

@keyframes ripple1 {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.4;
  }
  40% {
    opacity: 0.25;
  }
  100% {
    width: 175%;
    height: 175%;
    opacity: 0;
  }
}

@keyframes ripple2 {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.35;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    width: 185%;
    height: 185%;
    opacity: 0;
  }
}

@keyframes discSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 无歌曲时的默认图标 */
.toggle-disc-placeholder {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

/* 移动端适配 */
@media (max-width: 600px) {
  .toggle-disc {
    width: 44px;
    height: 44px;
  }
  
  .toggle-disc-center {
    width: 12px;
    height: 12px;
  }
}

@keyframes slideUpPlayer {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 播放器收起时的遮罩 */
.player-bar.closing {
  animation: slideDownPlayer 0.3s ease forwards;
}

@keyframes slideDownPlayer {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* 隐藏状态 */
.player-bar.hidden {
  display: none;
}

/* 移动端播放器适配 */
@media (max-width: 900px) {
  .player-bar {
    left: 12px;
    right: 12px;
    gap: 8px;
    padding: 6px 12px;
    height: 54px;
    overflow: visible;
    justify-content: center;
    align-items: center;
  }
  
  .player-cover-wrapper {
    display: none;
  }
  
  .player-cover {
    display: none;
  }
  
  .player-info {
    display: none;
  }
  
  .player-controls {
    flex-shrink: 0;
    gap: 4px;
    justify-content: center;
  }
  
  .player-controls .btn-icon {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  
  .player-controls .play-btn {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  
  .player-volume {
    display: none;
  }
  
  .player-extra {
    display: none;
  }
  
  .player-progress {
    flex: 1;
    min-width: 120px;
    max-width: 500px;
  }
}

@media (max-width: 600px) {
  .player-bar {
    padding: 4px 6px;
    gap: 4px;
    height: 46px;
    flex-wrap: wrap;
  }

  .player-controls {
    gap: 2px;
  }

  .player-controls .btn-icon {
    width: 18px;
    height: 18px;
    font-size: 7px;
  }

  .player-controls .play-btn {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }

  .player-time {
    font-size: 6px;
    min-width: 18px;
  }
  
  .player-progress {
    order: 10;
    flex-basis: 100%;
    width: 100%;
    padding-top: 3px;
    border-top: 1px solid var(--border);
    margin-top: 3px;
  }
}

@media (max-width: 400px) {
  .player-bar {
    left: 6px;
    right: 6px;
    padding: 4px 6px;
    gap: 3px;
    height: 44px;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: hidden;
  }

  .player-controls {
    flex-shrink: 0;
    gap: 2px;
  }

  .player-controls .btn-icon {
    width: 16px;
    height: 16px;
    font-size: 7px;
  }

  .player-controls .play-btn {
    width: 22px;
    height: 22px;
    font-size: 8px;
  }

  .player-time {
    display: none;
  }

  .player-progress {
    order: 10;
    width: 100%;
    flex-basis: 100%;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }

  .player-volume {
    display: none;
  }
  
  .player-extra {
    display: none;
  }
}

/* 全屏模式下播放器自适应 */
@media (min-width: 1200px) {
  .player-bar {
    padding: 12px 32px;
    gap: 24px;
  }
  
  .player-bar .player-progress {
    max-width: 800px;
  }
}


/* player-cover-wrapper 容器 - 用于唱片和播放状态指示 */
.player-cover-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 50%;
}

/* 播放状态光环 - 水波效果 */
.player-cover-wrapper.playing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.35) 0%, rgba(100, 116, 139, 0.2) 50%, transparent 70%);
  animation: spinGlow 6s linear infinite;
  filter: blur(3px);
  opacity: 0.6;
  z-index: 0;
}

@keyframes spinGlow {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 播放状态指示器 - 水波波纹 */
.player-cover-wrapper .ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  transform: translate(-50%, -50%);
}

/* 播放状态指示器 - 随机水波纹 */
.player-cover-wrapper.playing .ripple::before,
.player-cover-wrapper.playing .ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.player-cover-wrapper.playing .ripple::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 65%);
  animation: coverRipple1 2.8s ease-out infinite;
}

.player-cover-wrapper.playing .ripple::after {
  background: radial-gradient(circle, rgba(230, 230, 230, 0.25) 0%, transparent 70%);
  animation: coverRipple2 3.3s ease-out infinite;
  animation-delay: 1.1s;
}

@keyframes coverRipple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.5;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    width: 180%;
    height: 180%;
    opacity: 0;
  }
}

@keyframes coverRipple1 {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.4;
  }
  40% {
    opacity: 0.25;
  }
  100% {
    width: 175%;
    height: 175%;
    opacity: 0;
  }
}

@keyframes coverRipple2 {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.35;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    width: 185%;
    height: 185%;
    opacity: 0;
  }
}

.player-cover {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  margin-left: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  z-index: 2;
  overflow: hidden;
}

/* 唱片边缘反光效果 */
.player-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(0, 0, 0, 0.1) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* 唱片边缘光泽环 */
.player-cover::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 4;
}

.player-cover:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent-glow), var(--shadow-lg);
}

/* 播放时发光效果 - 彩虹光晕 */
.player-cover.playing {
  box-shadow: 
    0 0 15px rgba(59, 130, 246, 0.6),
    0 0 30px rgba(168, 85, 247, 0.5),
    0 0 45px rgba(236, 72, 153, 0.4),
    var(--shadow-lg);
}

/* 唱片旋转动画 */
.player-cover.spinning {
  animation: discSpin 8s linear infinite;
}

.player-cover.spinning.paused {
  animation-play-state: paused;
}

.player-info {
  flex: 0 0 auto;
  max-width: 200px;
  min-width: 0;
}

.player-song-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-artist {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-controls .btn-icon {
  width: 36px;
  height: 36px;
  font-size: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-controls .btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.player-controls .btn-icon:active {
  transform: scale(0.95);
}

.player-controls .play-btn {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-color: var(--accent);
  color: rgb(255 255 255);
  font-size: 16px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-controls .play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.player-controls .play-btn:active {
  transform: scale(0.95);
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
}

.player-time {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 36px;
  text-align: center;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.player-volume {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-popup {
  position: fixed;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
}

.volume-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 播放器的垂直音量滑块 */
.player-volume .volume-slider {
  width: 4px;
  height: 80px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  writing-mode: vertical-lr;
  direction: rtl;
}

.player-volume .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.player-volume .volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.player-extra {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.player-extra .btn-icon {
  width: 30px;
  height: 30px;
  font-size: 12px;
  border-radius: 8px;
  background: transparent;
}

#playlist-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-close-btn {
  margin-left: 4px;
}

.btn-playlist {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-playlist:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-playlist .icon-playlist {
  width: 12px;
  height: 12px;
}

/* 单行歌词显示（顶部居中，与搜索框对齐） */
.lyrics-inline {
  position: fixed;
  top: 24px;
  left: 50%;
  height: 40px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 24px;
  z-index: 210;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  max-width: 90vw;
  min-width: 120px;
  text-align: center;
}

.lyrics-inline:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.lyrics-inline.hidden {
  display: none;
}

.lyrics-inline-icon {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  user-select: none;
}

.lyrics-inline-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes lyricsInlineFade {
  0% { opacity: 0; transform: translateY(-12px); }
  50% { opacity: 0.7; }
  100% { opacity: 1; transform: translateY(0); }
}

/* 歌词浮层 - 卡拉OK风格 */
.lyrics-overlay {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 360px;
  max-height: 400px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 16px;
  z-index: 150;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lyrics-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.lyrics-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.lyric-line {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 6px 12px;
  transition: all 0.4s ease;
  opacity: 0.4;
  transform: scale(0.9);
  white-space: normal;
  word-break: break-all;
  line-height: 1.6;
}

.lyric-line.active {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  opacity: 1;
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lyric-line.passed {
  opacity: 0.25;
  transform: scale(0.85);
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* 全屏歌词模式 - 卡拉OK风格 */
.lyrics-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 10001 !important;
  padding: 60px 40px 40px !important;
  opacity: 0;
  animation: lyricsFadeIn 0.4s ease forwards;
}

@keyframes lyricsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lyricGlow {
  0%, 100% {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.9), 0 0 80px rgba(59, 130, 246, 0.6), 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 60px rgba(255, 255, 255, 1), 0 0 120px rgba(59, 130, 246, 0.9), 0 0 160px rgba(147, 51, 234, 0.4), 0 4px 20px rgba(0, 0, 0, 0.5);
  }
}

@keyframes lyricsFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.lyrics-fullscreen.closing {
  animation: lyricsFadeOut 0.3s ease forwards;
}

/* 全屏歌词时播放栏置顶 */
.player-bar {
  transition: all 0.3s ease;
}

/* 全屏歌词头部 */
.lyrics-fullscreen .lyrics-header {
  position: absolute !important;
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border-bottom: none;
  margin-bottom: 0;
  background: transparent;
  padding: 0;
  z-index: 310;
}

.lyrics-fullscreen .lyrics-header h3 {
  text-align: center;
}

.lyrics-fullscreen .lyrics-header h3 {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* 全屏歌词关闭按钮 - 右上角 */
.lyrics-fullscreen .lyrics-close-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: transparent !important;
  border: none !important;
  padding: 12px !important;
  cursor: pointer;
  z-index: 320;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.lyrics-fullscreen .lyrics-close-btn svg {
  transition: opacity 0.2s ease;
}

.lyrics-fullscreen .lyrics-close-btn:hover {
  color: rgba(255, 255, 255, 1);
}

.lyrics-fullscreen .lyrics-body {
  flex: 1;
  width: 100%;
  height: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  scroll-behavior: smooth;
}

/* 歌词首尾的上下空白占位，确保首尾歌词也能居中 */
.lyrics-fullscreen .lyrics-body::before,
.lyrics-fullscreen .lyrics-body::after {
  content: '';
  display: block;
  width: 100%;
  flex-shrink: 0;
  height: calc(50vh - 60px);
}

/* 隐藏滚动条 */
.lyrics-fullscreen .lyrics-body::-webkit-scrollbar {
  display: none;
}
.lyrics-fullscreen .lyrics-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.lyrics-fullscreen .lyric-line {
  font-size: calc(var(--lyrics-font-size, 24px) * 0.85);
  padding: 10px 60px;
  opacity: 0.3;
  transform: scale(1);
  white-space: normal;
  word-break: break-all;
  max-width: 900px;
}

.lyrics-fullscreen .lyric-line.active {
  font-size: calc(var(--lyrics-font-size, 24px) * 1.3);
  font-weight: 800;
  opacity: 1;
  transform: scale(1);
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.9), 0 0 80px rgba(59, 130, 246, 0.6), 0 4px 20px rgba(0, 0, 0, 0.5);
  margin: 30px 0;
  animation: lyricGlow 2s ease-in-out infinite;
}

.lyrics-fullscreen .lyric-line.passed {
  opacity: 0.2;
  transform: scale(1);
  font-size: calc(var(--lyrics-font-size, 24px) * 0.85);
}

.lyrics-fullscreen .lyric-line:not(.active):not(.passed) {
  opacity: 0.4;
  transform: scale(1);
}

/* 切歌提醒 toast */
.song-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  animation: fadeIn 0.3s ease;
  max-width: 360px;
}

.song-toast img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.song-toast-info .toast-label {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.song-toast-info .toast-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.song-toast-info .toast-artist {
  font-size: 12px;
  color: var(--text-muted);
}

/* 无歌曲状态 */
.player-empty {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 8px 40px 8px 16px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.player-empty:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.player-empty svg {
  flex-shrink: 0;
}

.player-empty-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.player-empty-title {
  font-size: 13px;
  font-weight: 500;
}

.player-empty-hint {
  font-size: 11px;
  opacity: 0.7;
}

/* 无歌曲状态关闭按钮 */
.player-empty-close {
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  opacity: 1;
  z-index: 10;
}

.player-empty-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* 播放列表面板 */
.playlist-panel {
  position: fixed;
  right: 20px;
  bottom: 75px;
  width: 320px;
  max-height: 400px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 250;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.playlist-panel.hidden {
  display: none;
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.playlist-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.playlist-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.playlist-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.playlist-item:hover {
  background: var(--bg-glass-hover);
}

.playlist-item.active {
  background: var(--accent-glow);
  border-left: 2px solid var(--accent);
}

.playlist-item-cover {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-glass);
  overflow: hidden;
}

.playlist-item-cover-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playlist-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-artist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 音乐搜索功能样式 */
.music-search-section {
  margin-bottom: 12px;
}

.music-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.music-search-row .input {
  flex: 1;
}

.music-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.music-search-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.music-search-results {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  margin-bottom: 12px;
}

.music-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.music-result-item:last-child {
  border-bottom: none;
}

.music-result-item:hover {
  background: var(--bg-glass-hover);
}

.music-result-item.selected {
  background: var(--accent-glow);
}

.music-result-item.loading {
  opacity: 0.7;
  pointer-events: none;
}

.music-result-item.loading::after {
  content: '获取链接中...';
  font-size: 11px;
  color: var(--accent);
  margin-left: 8px;
}

.music-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-result-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-result-artist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-result-source {
  flex-shrink: 0;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
  margin-left: 8px;
}

.music-result-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.music-search-divider {
  display: flex;
  align-items: center;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.music-search-divider::before,
.music-search-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.music-search-divider span {
  padding: 0 12px;
}

/* 音乐添加弹窗样式优化 */
#music-add-modal .form-modal-content {
  max-height: 80vh;
  overflow-y: auto;
}

/* 简化版音乐ID输入区域 */
.music-id-section {
  margin-bottom: 16px;
}

.music-id-row {
  display: flex;
  gap: 8px;
}

.music-id-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.music-id-status {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-top: 8px;
}

.music-id-status.status-loading {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.music-id-status.status-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.music-id-status.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.music-id-status.status-warning {
  background: rgba(251, 191, 36, 0.1);
  color: #f59e0b;
}

/* 歌曲预览 */
.music-song-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.music-preview-cover {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.music-preview-cover::before {
  content: '♪';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 20px;
}

.music-preview-info {
  flex: 1;
  min-width: 0;
}

.music-preview-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-preview-artist {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 搜索结果列表 - 隐藏简化界面不需要的样式 */
.music-search-section,
.music-search-results,
.music-search-loading {
  display: none !important;
}
