/* 卡片组件样式 */
.track-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.track-card:hover {
  transform: translateY(-5px);
  background-color: var(--card-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.track-card__cover {
  position: relative;
  width: 100%;
  padding-top: 100%;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.track-card__cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.track-card:hover .track-card__cover img {
  transform: scale(1.05);
}

.track-card__play-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.track-card:hover .track-card__play-btn {
  transform: translateY(0);
  opacity: 1;
}

.track-card__play-btn:hover {
  transform: scale(1.1);
  background-color: var(--accent-hover);
}

.track-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-card__artist {
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.track-card__album {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-card__duration {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.track-card__favorite {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
}

.track-card:hover .track-card__favorite {
  opacity: 1;
}

.track-card__favorite:hover {
  background-color: var(--accent);
}

.track-card__favorite.active {
  color: var(--accent);
  opacity: 1;
}

/* 列表视图样式 */
.track-list {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.track-list__header {
  display: grid;
  grid-template-columns: 40px 1fr 200px 100px;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.track-list__item {
  display: grid;
  grid-template-columns: 40px 1fr 200px 100px;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.track-list__item:hover {
  background-color: var(--card-bg);
}

.track-list__item:last-child {
  border-bottom: none;
}

.track-list__item.playing {
  background-color: rgba(29, 185, 84, 0.1);
}

.track-list__number {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.track-list__item.playing .track-list__number {
  color: var(--accent);
}

.track-list__info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.track-list__cover {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.track-list__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-list__details {
  min-width: 0;
}

.track-list__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.track-list__artist {
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-list__album {
  color: var(--text-secondary);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-list__duration {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: right;
}

/* 底部播放条 */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: all 0.3s ease;
}

/* 紧凑模式 - 用于移动设备 */
.mini-player.compact-mode {
    height: 60px;
    padding: 0 15px;
}

/* 封面图片旋转动画 */
.player-cover.rotating img {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 歌曲信息区域 */
.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 25%;
    min-width: 180px;
    flex: 0 0 auto;
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 紧凑模式下的封面 */
.mini-player.compact-mode .player-cover {
    width: 40px;
    height: 40px;
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.player-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    transition: all 0.3s ease;
}

.player-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    transition: all 0.3s ease;
}

/* 紧凑模式下的文本大小 */
.mini-player.compact-mode .player-title {
    font-size: 12px;
}

.mini-player.compact-mode .player-artist {
    font-size: 10px;
}

/* 滚动文本效果 - 用于移动设备 */
.scrollable-text {
    animation: scrollText 8s linear infinite;
}

@keyframes scrollText {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(0); }
    70% { transform: translateX(-70%); }
    90% { transform: translateX(-70%); }
}

.favorite-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
    touch-action: manipulation;
}

.favorite-btn:hover {
    color: #e74c3c;
}

.favorite-btn.active {
    color: #e74c3c;
}

.favorite-btn:active {
    transform: scale(0.95);
}

/* 播放控制按钮区域 */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--text-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.control-btn:hover {
    background-color: var(--bg-secondary);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.play-btn {
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    color: #fff;
    font-size: 20px;
}

.control-btn.play-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

/* 紧凑模式下的控制按钮 */
.mini-player.compact-mode .control-btn {
    padding: 6px;
    font-size: 14px;
}

.mini-player.compact-mode .control-btn.play-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

/* 进度条区域 */
.player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    position: relative;
}

.time-display {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 35px;
    text-align: center;
    transition: all 0.3s ease;
}

/* 紧凑模式下的时间显示 */
.mini-player.compact-mode .time-display {
    font-size: 10px;
    min-width: 30px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
    touch-action: none;
}

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

/* 触摸优化 - 增加可点击区域 */
.progress-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: 0;
    right: 0;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--accent);
    border-radius: 2px;
    transition: width 0.1s ease;
}

/* 音量控制区域 */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.volume-slider {
    width: 100px;
    transition: width 0.2s ease;
}

.volume-slider input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    touch-action: none;
}

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

/* 紧凑模式下的音量滑块 */
.mini-player.compact-mode .volume-slider {
    width: 60px;
}

/* 展开按钮 */
.mini-player__expand {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 10px;
    touch-action: manipulation;
}

.mini-player__expand:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.mini-player__expand:active {
    transform: scale(0.95);
}

/* 移动设备样式 */
@media (max-width: 768px) {
    .mini-player {
        height: 70px;
        padding: 0 15px;
    }
    
    .player-info {
        min-width: 150px;
        gap: 10px;
    }
    
    .player-cover {
        width: 48px;
        height: 48px;
    }
    
    .control-btn {
        margin: 0 5px;
    }
    
    .volume-slider {
        display: none;
    }
}

@media (max-width: 480px) {
    .mini-player {
        height: 60px;
        padding: 0 10px;
    }
    
    .player-info {
        min-width: 120px;
        gap: 8px;
    }
    
    .player-cover {
        width: 40px;
        height: 40px;
    }
    
    .player-title {
        font-size: 12px;
    }
    
    .player-artist {
        font-size: 10px;
    }
    
    .player-controls {
        gap: 5px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin: 0 3px;
    }
    
    .control-btn.play-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .time-display {
        font-size: 10px;
        min-width: 30px;
    }
    
    .volume-control {
        gap: 5px;
    }
    
    .mini-player__expand {
        padding: 6px;
        font-size: 14px;
        margin-left: 5px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .mini-player {
        height: 60px;
        padding: 0 15px;
    }
    
    .player-cover {
        width: 40px;
        height: 40px;
    }
    
    .volume-slider {
        display: none;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .control-btn,
    .favorite-btn,
    .mini-player__expand {
        padding: 10px;
        font-size: 18px;
    }
    
    .control-btn.play-btn {
        width: 44px;
        height: 44px;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-bar:hover {
        height: 8px;
    }
}

/* 隐藏在移动设备上的元素 */
.hide-on-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
}

/* 播放列表面板样式 */
.playlist-panel {
  position: fixed;
  bottom: 80px;
  left: 0;
  right: 0;
  max-height: 400px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: transform 0.3s ease;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.playlist-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

.playlist-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.playlist-close-btn:hover {
  color: var(--text-primary);
}

.playlist-content {
  max-height: 320px;
  overflow-y: auto;
}

.playlist-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.playlist-items li {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.playlist-items li:hover {
  background-color: var(--bg-tertiary);
}

.playlist-items li.playing {
  background-color: rgba(29, 185, 84, 0.1);
}

/* 完整播放器样式 */
.full-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding: 40px 20px;
}

.full-player__album-art {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
  position: relative;
}

.full-player__album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-player__album-art::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.full-player__info {
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
}

.full-player__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.full-player__artist {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.full-player__album {
  font-size: 16px;
  color: var(--text-secondary);
}

.full-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.full-player__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
}

.full-player__btn:hover {
  background-color: var(--bg-secondary);
  transform: scale(1.1);
}

.full-player__btn--play {
  width: 72px;
  height: 72px;
  background-color: var(--accent);
  color: var(--bg-primary);
  font-size: 28px;
}

.full-player__btn--play:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

.full-player__btn--active {
  color: var(--accent);
}

.full-player__progress {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.full-player__time {
  font-size: 14px;
  color: var(--text-secondary);
  min-width: 45px;
}

.full-player__progress-bar {
  flex: 1;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.full-player__progress-bar:hover {
  height: 8px;
}

.full-player__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--accent);
  border-radius: 3px;
  transition: width 0.1s ease;
}

.full-player__progress-handle {
  position: absolute;
  top: 50%;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent);
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.2s ease;
}

.full-player__progress-bar:hover .full-player__progress-handle {
  opacity: 1;
}

.full-player__volume {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.full-player__volume-slider {
  flex: 1;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.full-player__volume-slider:hover {
  height: 6px;
}

.full-player__volume-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--accent);
  border-radius: 2px;
  transition: width 0.1s ease;
}

.full-player__volume-handle {
  position: absolute;
  top: 50%;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent);
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.2s ease;
}

.full-player__volume-slider:hover .full-player__volume-handle {
  opacity: 1;
}

/* 播放列表样式 */
.playlist {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  max-height: 500px;
  display: flex;
  flex-direction: column;
}

.playlist__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.playlist__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.playlist__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.playlist__close:hover {
  background-color: var(--card-bg);
  color: var(--text-primary);
}

.playlist__content {
  flex: 1;
  overflow-y: auto;
}

.playlist__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

/* 搜索结果样式 */
.search-results {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
}

.search-results__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.search-results__count {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 30px;
}

.search-results__tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.search-results__tab {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 20px;
}

.search-results__tab:hover {
  color: var(--text-primary);
  background-color: var(--card-bg);
}

.search-results__tab.active {
  color: var(--accent);
  background-color: rgba(29, 185, 84, 0.1);
}

/* 标签云样式 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

/* 排行榜样式 */
.chart {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
}

.chart__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.chart__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.chart__item:last-child {
  border-bottom: none;
}

.chart__item:hover {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding-left: 16px;
}

.chart__rank {
  width: 30px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-secondary);
}

.chart__rank.top-three {
  color: var(--accent);
}

.chart__info {
  flex: 1;
  min-width: 0;
}

.chart__track-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.chart__artist {
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart__cover {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
}

.chart__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 响应式组件样式 */
@media (max-width: 768px) {
  .track-card__play-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .track-list__header,
  .track-list__item {
    grid-template-columns: 40px 1fr;
    padding: 12px 16px;
  }
  
  .track-list__album,
  .track-list__duration {
    display: none;
  }
  
  .mini-player {
    height: 70px;
    padding: 0 16px;
    gap: 16px;
  }
  
  .mini-player__info {
    min-width: 180px;
    gap: 12px;
  }
  
  .mini-player__cover {
    width: 50px;
    height: 50px;
  }
  
  .mini-player__title {
    font-size: 14px;
  }
  
  .mini-player__artist {
    font-size: 12px;
  }
  
  .mini-player__controls {
    gap: 12px;
  }
  
  .mini-player__btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .mini-player__btn--play {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .mini-player__progress {
    display: none;
  }
  
  .mini-player__volume {
    display: none;
  }
  
  /* 快捷入口响应式 */
  .quick-access__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .quick-access__item {
    padding: 20px;
  }
  
  /* 轮播Banner响应式 */
  .banner__slider {
    height: 300px;
  }
  
  .banner__content {
    padding: 30px;
  }
  
  .banner__title {
    font-size: 28px;
  }
  
  .banner__desc {
    font-size: 14px;
  }
  
  .full-player__album-art {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
  }
  
  .full-player__title {
    font-size: 28px;
  }
  
  .full-player__artist {
    font-size: 18px;
  }
  
  .full-player__controls {
    gap: 20px;
  }
  
  .full-player__btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .full-player__btn--play {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
  
  .full-player__progress {
    gap: 12px;
  }
  
  .chart__item {
    gap: 12px;
    padding: 10px 0;
  }
  
  .chart__rank {
    font-size: 18px;
  }
  
  .chart__track-title {
    font-size: 14px;
  }
  
  .chart__artist {
    font-size: 12px;
  }
  
  .chart__cover {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .track-card {
    padding: 12px;
  }
  
  .track-card__title {
    font-size: 14px;
  }
  
  .track-card__artist {
    font-size: 12px;
  }
  
  .track-card__play-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .full-player__album-art {
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
  }
  
  .full-player__title {
    font-size: 24px;
  }
  
  .full-player__artist {
    font-size: 16px;
  }
  
  .full-player__album {
    font-size: 14px;
  }
  
  .full-player__controls {
    gap: 16px;
  }
  
  .full-player__btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .full-player__btn--play {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.track-card {
  animation: fadeIn 0.3s ease-out;
}

.track-card:hover .track-card__cover img {
  animation: pulse 2s infinite;
}

.mini-player__btn--play.playing,
.full-player__btn--play.playing {
  animation: pulse 1.5s infinite;
}

/* 工具提示样式 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip__content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1001;
  margin-bottom: 8px;
}

.tooltip__content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.tooltip:hover .tooltip__content {
  opacity: 1;
  visibility: visible;
}

/* 加载状态 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
}

.loading--large {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state__description {
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* 表单元素样式 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--card-bg);
}

.form-input::placeholder {
  color: var(--text-secondary);
}

.form-button {
  width: 100%;
  padding: 12px 24px;
  background-color: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 播放动画效果 */
.playing-animation {
  position: relative;
}

.playing-animation::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background-color: rgba(29, 185, 84, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

/* 自定义滚动条 */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* 媒体查询：打印样式 */
@media print {
  .mini-player,
  .header {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .track-card,
  .track-list,
  .playlist {
    background-color: white;
    border: 1px solid black;
    break-inside: avoid;
  }
  
  .btn {
    display: none;
  }
}

/* 响应式播放器组件 */
@media (max-width: 768px) {
  .player-content {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .player-info {
    min-width: auto;
    flex: 1;
  }
  
  .player-cover {
    width: 50px;
    height: 50px;
  }
  
  .player-title {
    font-size: 14px;
  }
  
  .player-artist {
    font-size: 12px;
  }
  
  .player-controls {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  
  .control-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .control-btn.play-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .player-progress {
    max-width: 300px;
    gap: 8px;
  }
  
  .volume-control {
    display: none;
  }
  
  .playlist-panel {
    bottom: 60px;
    max-height: 300px;
  }
  
  .playlist-content {
    max-height: 240px;
  }
  
  .playlist-items li {
    padding: 10px 16px;
  }
  
  .track-list__header,
  .track-list__item {
    grid-template-columns: 30px 1fr 60px;
    padding: 12px 16px;
    gap: 12px;
  }
  
  .track-list__cover {
    width: 40px;
    height: 40px;
  }
  
  .track-list__title {
    font-size: 14px;
  }
  
  .track-list__artist {
    font-size: 12px;
  }
  
  .track-list__album {
    display: none;
  }
}

@media (max-width: 480px) {
  .track-card {
    padding: 12px;
  }
  
  .track-card__title {
    font-size: 14px;
  }
  
  .track-card__artist {
    font-size: 12px;
  }
  
  .track-card__play-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .mini-player {
    height: 70px;
  }
  
  .player-content {
    padding: 0 12px;
  }
  
  .player-cover {
    width: 44px;
    height: 44px;
  }
  
  .player-details {
    display: none;
  }
  
  .player-progress {
    max-width: 200px;
  }
  
  .time-display {
    font-size: 10px;
    min-width: 30px;
  }
  
  .quick-access__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .quick-access__item {
    padding: 16px;
  }
  
  .quick-access__cover {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
  
  .quick-access__item h3 {
    font-size: 16px;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  :root {
    --border-color: #ffffff;
    --text-secondary: #ffffff;
  }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}