/* ==================== 我的音乐页面样式 ==================== */
.my-music-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.9);
  padding: 0;
}
.my-music-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light, #999);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.my-music-tab.active {
  color: var(--main-pink, #f0b8c8);
  border-bottom-color: var(--main-pink, #f0b8c8);
}

.my-music-song-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  margin-bottom: 8px;
  gap: 12px;
  transition: background 0.2s;
}
.my-music-song-item:active {
  background: rgba(240,184,200,0.15);
}
.my-music-song-info {
  flex: 1;
  min-width: 0;
}
.my-music-song-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark, #333);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-music-song-artist {
  font-size: 12px;
  color: var(--text-light, #999);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-music-song-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.my-music-play-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: #333;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.my-music-delete-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: #333;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.my-music-add-section {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  border: 1px dashed var(--light-pink, #f8d7e0);
}
.my-music-add-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark, #333);
  margin-bottom: 10px;
}
.my-music-add-btns {
  display: flex;
  gap: 10px;
}
.my-music-add-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--light-pink, #f8d7e0);
  background: rgba(255,255,255,0.9);
  font-size: 13px;
  color: var(--text-dark, #333);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  line-height: 1.4;
}
button.my-music-add-btn { box-sizing: border-box; }

.my-music-add-btn:active {
  background: var(--light-pink, #f8d7e0);
}
.my-music-url-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.my-music-url-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--light-pink, #f8d7e0);
  outline: none;
  font-size: 13px;
}
.my-music-url-confirm {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--main-pink, #f0b8c8);
  color: white;
  border: none;
  font-size: 13px;
  cursor: pointer;
}
.my-music-now-playing {
  animation: nowPlayingPulse 1.5s ease-in-out infinite;
}
@keyframes nowPlayingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ==================== 歌单日期导航样式 ==================== */
/* 歌单日期导航样式 */
.playlist-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 8px;
}

.date-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.date-nav-btn:hover:not(:disabled) {
  background: var(--main-pink, #ff6b9d);
  color: #fff;
  border-color: var(--main-pink, #ff6b9d);
}

.date-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.date-nav-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  min-width: 60px;
  text-align: center;
}

/* 悬浮音乐播放器样式 - 玻璃拟态风格 */
.music-player-float {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  max-width: 90%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  padding: 25px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-player-float.show {
  display: flex;
}

.music-player-float.collapsed {
  width: 60px;
  height: 60px;
  padding: 10px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /* 磨砂玻璃圆形效果 + 渐变背景 */
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 245, 255, 0.92) 30%,
    rgba(255, 240, 250, 0.92) 70%,
    rgba(255, 255, 255, 0.95) 100%
  );
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.music-player-float.collapsed:active {
  cursor: grabbing;
}

/* 头像区域 */
.player-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.player-avatar-left,
.player-avatar-right {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: breathe 3s ease-in-out infinite;
}

/* 静态音符图标 */
.player-music-icon {
  font-size: 20px;
  color: #333;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* 封面区域 - 白色磨砂+淡彩虹渐变 */
.player-vinyl-cover {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 240, 245, 0.9) 25%,
    rgba(240, 248, 255, 0.9) 50%,
    rgba(255, 255, 240, 0.9) 75%,
    rgba(255, 255, 255, 0.95) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  animation-play-state: paused;
  box-shadow: 0 15px 40px rgba(200, 200, 200, 0.3);
  position: relative;
  z-index: 2;
  overflow: visible; /* 改为visible让唱片针可见 */
}

/* 毛玻璃效果层 */
.player-vinyl-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.player-vinyl-cover.playing {
  animation-play-state: running;
}

.player-vinyl-cover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 3;
}

/* 唱臂样式 */
.vinyl-tonearm {
  position: absolute;
  top: -20px;
  left: -10px;
  width: 120px;
  height: 150px;
  z-index: 10;
  transform-origin: 15px 15px;
  transition: transform 0.5s ease;
}

.vinyl-tonearm.playing {
  transform: rotate(35deg);
}

.vinyl-tonearm svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* 扩散圆环声浪效果 */
.visualizer-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: ripple 3s ease-out infinite;
}

.ripple-ring:nth-child(1) { animation-delay: 0s; }
.ripple-ring:nth-child(2) { animation-delay: 1s; }
.ripple-ring:nth-child(3) { animation-delay: 2s; }

@keyframes ripple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  100% {
    width: 140%;
    height: 140%;
    opacity: 0;
  }
}

/* 歌曲信息 */
.player-song-info {
  text-align: center;
}

.player-song-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist-name {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 歌词容器 */
.player-lyric-container {
  max-height: 120px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  padding: 12px;
}

.player-lyric-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s ease;
}

.lyric-line {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  transition: all 0.3s ease;
  line-height: 1.6;
}

.lyric-line.active {
  font-size: 15px;
  font-weight: 600;
  color: var(--main-pink);
  transform: scale(1.05);
}

/* 进度条 */
.player-progress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-time-current,
.player-time-total {
  font-size: 11px;
  color: var(--text-light);
  min-width: 35px;
}

.player-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.player-progress-fill {
  height: 100%;
  background: var(--main-pink);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* 控制按钮 */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* 统一白色磨砂按钮 */
.player-btn-prev,
.player-btn-play,
.player-btn-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.8));
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 5px 5px 15px rgba(163, 177, 198, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.8);
  position: relative;
}

/* 上一首按钮图标 */
.player-btn-prev::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 10px 7px 0;
  border-color: transparent #333 transparent transparent;
  margin-right: 2px;
}

.player-btn-prev::after {
  content: '';
  width: 2px;
  height: 14px;
  background: #333;
  position: absolute;
  left: 12px;
}

/* 下一首按钮图标 */
.player-btn-next::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent #333;
  margin-left: 2px;
}

.player-btn-next::after {
  content: '';
  width: 2px;
  height: 14px;
  background: #333;
  position: absolute;
  right: 12px;
}

.player-btn-play {
  width: 52px;
  height: 52px;
  font-size: 0;
  box-shadow: 5px 5px 20px rgba(163, 177, 198, 0.4), -5px -5px 20px rgba(255, 255, 255, 0.9);
  position: relative;
}

/* 播放图标 - 三角形 */
.player-btn-play::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #333;
  margin-left: 2px;
}

.player-btn-prev:hover,
.player-btn-play:hover,
.player-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 20px rgba(163, 177, 198, 0.4), -7px -7px 20px rgba(255, 255, 255, 0.9);
}

.player-btn-prev:active,
.player-btn-play:active,
.player-btn-next:active {
  transform: scale(0.95);
}

/* 右上角控制栏 */
.player-top-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  z-index: 100;
}

.player-icon-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #666;
}

.player-icon-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--main-pink);
}

.player-icon-btn:active {
  transform: translateY(0);
}

/* 折叠状态耳机指示器 */
.player-collapsed-indicator {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  z-index: 10;
  pointer-events: none;
}

.music-player-float.collapsed .player-collapsed-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-player-float.collapsed .player-collapsed-indicator svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* 折叠状态 - 隐藏所有内容（除了耳机图标） */
.music-player-float.collapsed .player-avatars,
.music-player-float.collapsed .player-vinyl-cover,
.music-player-float.collapsed .player-song-info,
.music-player-float.collapsed .player-lyric-container,
.music-player-float.collapsed .player-progress-bar,
.music-player-float.collapsed .player-controls,
.music-player-float.collapsed .player-top-controls,
.music-player-float.collapsed .vinyl-tonearm {
  display: none !important;
}

/* 折叠状态 - 确保耳机图标显示 */
.music-player-float.collapsed .player-collapsed-indicator {
  display: flex !important;
}

/* 折叠状态 - 可点击展开 */
.music-player-float.collapsed {
  cursor: pointer;
}

/* 自定义封面支持 */
.player-vinyl-cover.has-custom-cover {
  background-size: cover;
  background-position: center;
}

/* 移除自定义封面的磨砂效果，让图片清晰显示 */
.player-vinyl-cover.has-custom-cover::after {
  display: none;
}

/* 动画 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}


/* 响应式适配 */
@media (max-width: 400px) {
  .music-player-float {
    width: 90%;
    top: 60px;
  }
  
  .player-vinyl-cover {
    width: 150px;
    height: 150px;
  }
}

/* ==================== 歌单列表样式 ==================== */
.song-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.song-list-item:hover {
  background-color: rgba(240, 184, 200, 0.05);
}

.song-list-item:last-child {
  border-bottom: none;
}

.song-left-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.song-num {
  font-size: 14px;
  color: #999;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

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

.song-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

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

.song-play-btn {
  flex-shrink: 0;
  margin-left: 12px;
  padding: 6px 14px;
  background: var(--main-pink, #f0b8c8);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.song-play-btn:hover {
  background: var(--main-pink-dark, #e8a0b8);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(240, 184, 200, 0.4);
}

.song-play-btn:active {
  transform: translateY(0);
}

/* 响应式适配 - 歌单列表 */
@media (max-width: 400px) {
  .song-list-item {
    padding: 10px 0;
  }
  
  .song-num {
    width: 20px;
    font-size: 13px;
  }
  
  .song-name {
    font-size: 14px;
  }
  
  .song-artist {
    font-size: 11px;
  }
  
  .song-play-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
}

/* 歌曲操作区域 */
.song-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 喜欢按钮 */
.song-like-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
  line-height: 1;
}

.song-like-btn:hover {
  transform: scale(1.2);
  background: rgba(255, 100, 100, 0.1);
}

.song-like-btn:active {
  transform: scale(0.9);
}

.song-like-btn.liked {
  animation: likePopIn 0.3s ease;
}

@keyframes likePopIn {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
