/* 底部播放控制器样式 */
.player-controller {
    position: fixed;
    bottom: 0;

    left: 0;
    right: 0;
    height: 80px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.player-controller.show {
    transform: translateY(0);
}

.player-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.player-left {
    display: flex;
    align-items: center;
    width: 200px;
    flex-shrink: 0;
    position: relative;
}

.player-cover {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    overflow: hidden;
    margin-right: 15px;
    position: relative;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 播放按钮覆盖在封面上 */
.player-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-cover:hover::after {
    opacity: 1;
}

.play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(236, 113, 25, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.player-cover:hover .play-pause-btn {
    opacity: 1;
}

.play-pause-btn:hover {
    background: rgba(236, 113, 25, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-pause-btn i {
    color: #fff;
    font-size: 14px;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.player-artist {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
}

.player-controls {
    display: none; /* 隐藏中间的播放控制按钮 */
}

.player-progress {
    display: flex;
    align-items: center;
    width: 100%;
}

.time-current, .time-total {
    font-size: 12px;
    color: #999;
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    margin: 0 15px;
    height: 4px;
    position: relative;
}

.progress-bg {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: #ec7119;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    width: 12px;
    height: 12px;
    background: #ec7119;
    border-radius: 50%;
    position: absolute;
    top: -4px;
    left: 0%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bg:hover .progress-handle {
    opacity: 1;
}

.player-right {
    width: 118px;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.volume-control {
    display: flex;
    align-items: center;
}

.volume-control i {
    font-size: 16px;
    color: #999;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.volume-control i:hover {
    color: #ec7119;
}

.volume-bar {
    width: 80px;
    height: 4px;
    position: relative;
}

.volume-bg {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: #ec7119;
    border-radius: 2px;
    width: 70%;
    transition: width 0.1s ease;
}

.volume-handle {
    width: 12px;
    height: 12px;
    background: #ec7119;
    border-radius: 50%;
    position: absolute;
    top: -4px;
    left: 70%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.volume-bg:hover .volume-handle {
    opacity: 1;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .player-content {
        padding: 0 15px;
    }
    
    .player-left {
        width: 200px;
    }
    
    .player-right {
        width: 100px;
    }
    
    .volume-bar {
        width: 50px;
    }
    
    .player-center {
        margin: 0 10px;
    }
    
    .progress-bar {
        margin: 0 10px;
    }
    
    .player-title {
        font-size: 13px;
    }
    
    .player-artist {
        font-size: 11px;
    }
    
    .time-current, .time-total {
        font-size: 11px;
        min-width: 35px;
    }
    
    .volume-control i {
        font-size: 14px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .player-controller {
        height: 70px;
    }
    
    .player-content {
        padding: 0 10px;
    }
    
    .player-left {
        width: 160px;
    }
    
    .player-cover {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .play-pause-btn {
        width: 28px;
        height: 28px;
    }
    
    .play-pause-btn i {
        font-size: 12px;
    }
    
    .player-right {
        width: 80px;
    }
    
    .volume-bar {
        width: 40px;
    }
    
    .volume-control i {
        font-size: 13px;
        margin-right: 6px;
    }
    
    .player-center {
        margin: 0 8px;
    }
    
    .progress-bar {
        margin: 0 8px;
    }
    
    .time-current, .time-total {
        font-size: 10px;
        min-width: 32px;
    }
    
    .player-title {
        font-size: 12px;
    }
    
    .player-artist {
        font-size: 10px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .player-controller {
        height: 65px;
    }
    
    .player-content {
        padding: 0 8px;
    }
    
    .player-left {
        width: 140px;
    }
    
    .player-cover {
        width: 45px;
        height: 45px;
        margin-right: 8px;
    }
    
    .play-pause-btn {
        width: 25px;
        height: 25px;
    }
    
    .play-pause-btn i {
        font-size: 11px;
    }
    
    .player-right {
        width: 70px;
    }
    
    .volume-bar {
        width: 35px;
    }
    
    .volume-control i {
        font-size: 12px;
        margin-right: 5px;
    }
    
    .player-center {
        margin: 0 6px;
    }
    
    .progress-bar {
        margin: 0 6px;
    }
    
    .time-current, .time-total {
        font-size: 9px;
        min-width: 28px;
    }
    
    .player-title {
        font-size: 11px;
    }
    
    .player-artist {
        font-size: 9px;
    }
}

/* 触摸设备优化 */
@media (pointer: coarse) {
    .play-pause-btn {
        min-width: 32px;
        min-height: 32px;
    }
    
    .progress-bg,
    .volume-bg {
        min-height: 12px;
        padding: 4px 0;
    }
    
    .progress-handle,
    .volume-handle {
        width: 16px;
        height: 16px;
        top: -6px;
    }
} 