/* 音乐播放器容器 */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid rgba(132, 250, 240, 0.3);
    box-shadow: 0 8px 32px rgba(132, 250, 240, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-player.collapsed {
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

/* 播放器主体 */
.player-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 280px;
}

.music-player.collapsed .player-main {
    display: none;
}

/* 音乐信息 */
.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.album-cover {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #84FAF0 0%, #6cd4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e1a;
    flex-shrink: 0;
    animation: rotate 10s linear infinite;
    animation-play-state: paused;
}

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

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

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

.track-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 进度条 */
.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #84FAF0 0%, #6cd4ff 100%);
    width: 0%;
    transition: width 0.1s linear;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

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

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

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

.play-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #84FAF0 0%, #6cd4ff 100%);
    color: #0a0e1a;
}

.play-btn:hover {
    background: linear-gradient(135deg, #9efcf2 0%, #7edcff 100%);
}

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

.volume-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, #84FAF0 0%, #6cd4ff 100%);
    width: 70%;
    border-radius: 2px;
}

/* 折叠按钮 */
.toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.music-player.collapsed .toggle-btn {
    position: static;
    width: 40px;
    height: 40px;
}

.music-player.collapsed .toggle-btn svg {
    width: 24px;
    height: 24px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .music-player {
        bottom: 10px;
        right: 10px;
    }
    
    .player-main {
        min-width: 260px;
    }
    
    .volume-control {
        display: none;
    }
}
