.player-bar {
    grid-column: 1 / 3;
    background: var(--glass-player-bg);
    backdrop-filter: blur(var(--glass-player-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--glass-player-blur)) saturate(150%);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 20;
}

.progress-bar-container {
    padding: 0 var(--space-md);
    height: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: height var(--duration-fast) var(--ease-out);
}

.progress-bar-container:hover .progress-bar {
    height: 4px;
}

.progress-played {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), white);
    border-radius: var(--radius-full);
    transition: width var(--duration-fast) linear;
    box-shadow: 
        0 0 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 16px rgba(200, 230, 255, 0.5),
        0 0 32px rgba(150, 200, 255, 0.3);
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 0.9),
        0 0 12px rgba(200, 230, 255, 0.7),
        0 0 24px rgba(150, 200, 255, 0.5);
    transition: transform var(--duration-fast) var(--ease-out);
}

.progress-bar-container:hover .progress-handle {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 1),
        0 0 16px rgba(200, 230, 255, 0.8),
        0 0 32px rgba(150, 200, 255, 0.6);
}

.player-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    gap: var(--space-lg);
}

.player-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 280px;
    min-width: 180px;
}

.now-playing-cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-md);
}

.now-playing-cover:hover {
    transform: scale(1.05);
}

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

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

.now-playing-title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.now-playing-title:hover {
    text-decoration: underline;
}

.now-playing-artist {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-artist:hover {
    color: var(--text-primary);
}

.player-left .like-btn.active {
    color: var(--accent-primary);
}

.player-left .like-btn.active svg {
    fill: var(--accent-primary);
}

.player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    max-width: 600px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.btn-play {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--canvas-deep);
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-play:hover {
    transform: scale(1.06);
    background: var(--text-primary);
}

.btn-play:active {
    transform: scale(0.98);
}

.btn-play svg {
    width: 18px;
    height: 18px;
}

.btn-play .icon-play {
    margin-left: 2px;
}

.player-time {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
}

.player-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 280px;
    min-width: 180px;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.volume-slider {
    width: 80px;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.volume-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    position: relative;
}

.volume-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--text-primary);
    border-radius: var(--radius-full);
}

.volume-slider:hover .volume-fill {
    background: var(--accent-primary);
}
/* 按钮激活状态（变色） */
.btn-icon.active {
    color: var(--primary-color, #ff3b5c); /* 使用你的主题色，或者直接写红色 */
    opacity: 1;
}

/* 简单的过渡动画 */
.btn-icon svg {
    transition: transform 0.2s, color 0.2s;
}