/* 自定义音乐播放器样式 */
.aplayer {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 15px 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.aplayer:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* 固定模式的播放器 */
.aplayer.aplayer-fixed {
  border-radius: 10px 10px 0 0;
  bottom: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

/* 播放器控制按钮 */
.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded {
  background: rgba(0, 0, 0, 0.05);
  height: 6px;
}

.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played {
  background: linear-gradient(to right, #1BCDFC, #4a7dbe);
  height: 6px;
}

.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb {
  background: #1BCDFC;
  box-shadow: 0 0 5px rgba(27, 205, 252, 0.8);
  transform: scale(1);
  transition: all 0.2s ease-in-out;
}

.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb:hover {
  transform: scale(1.2);
}

/* 播放按钮 */
.aplayer .aplayer-info .aplayer-controller .aplayer-play {
  color: #1BCDFC;
}

/* 歌曲列表 */
.aplayer .aplayer-list ol li {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.aplayer .aplayer-list ol li:hover {
  background: rgba(27, 205, 252, 0.1);
}

.aplayer .aplayer-list ol li.aplayer-list-light {
  background: rgba(27, 205, 252, 0.15);
}

/* 音量控制 */
.aplayer .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume {
  background: #1BCDFC;
}

/* 歌词显示 */
.aplayer .aplayer-lrc {
  margin: 5px 0;
}

.aplayer .aplayer-lrc p {
  font-size: 14px;
  line-height: 24px;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.aplayer .aplayer-lrc p.aplayer-lrc-current {
  color: #1BCDFC;
  font-weight: bold;
}

/* 暗黑模式适配 */
[data-theme="dark"] .aplayer {
  background: rgba(30, 30, 30, 0.8);
  color: #f5f5f5;
}

[data-theme="dark"] .aplayer .aplayer-info .aplayer-music .aplayer-title,
[data-theme="dark"] .aplayer .aplayer-info .aplayer-music .aplayer-author {
  color: #f5f5f5;
}

[data-theme="dark"] .aplayer .aplayer-list ol li {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #f5f5f5;
}

[data-theme="dark"] .aplayer .aplayer-list ol li:hover {
  background: rgba(27, 205, 252, 0.2);
}

[data-theme="dark"] .aplayer .aplayer-list ol li.aplayer-list-light {
  background: rgba(27, 205, 252, 0.25);
}

/* 迷你模式 */
.aplayer.aplayer-withlrc.aplayer-narrow .aplayer-body {
  left: 0 !important;
}

.aplayer.aplayer-withlrc.aplayer-narrow .aplayer-pic {
  border-radius: 5px;
  height: 40px;
  width: 40px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
  .aplayer.aplayer-fixed .aplayer-list {
    border-radius: 0;
    left: 0;
    width: 100%;
  }
  
  .aplayer.aplayer-fixed .aplayer-body {
    border-radius: 0;
    left: 0;
    width: 100%;
  }
}