/* ==================== 底部播放器样式 ==================== */

/* 播放器主容器 - 固定在底部 */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(18, 18, 21, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 5000;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
}

/* 内部布局容器 - flex横向排列 */
.player-container {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ========== 左侧：歌曲信息 ========== */
.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 220px;
    min-width: 0;
}

.player-cover {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.player-cover:hover {
    transform: scale(1.05);
}

.player-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.player-song-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.player-artist-name {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 中间：控制面板 ========== */
.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 600px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* 播放/暂停按钮 - 高亮样式 */
.play-toggle-btn {
    width: 48px;
    height: 48px;
    background: var(--primary-color, #ff2d55);
    color: #fff !important;
    font-size: 18px;
}

.play-toggle-btn:hover {
    background: #ff476b;
    transform: scale(1.15);
}

/* ========== 进度条区域 ========== */
.progress-bar-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-label {
    font-size: 11px;
    color: #666;
    min-width: 40px;
    text-align: center;
    font-family: monospace;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s;
}

.progress-track:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff2d55, #ff6b35);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* 进度条滑块指示器 */
.progress-track::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
    pointer-events: none;
}

.progress-track:hover::after {
    transform: translate(50%, -50%) scale(1);
}

/* ========== 右侧：额外功能 ========== */
.player-extra {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* 音量控制区域 */
.volume-box {
    display: flex;
    align-items: center;
}

.volume-box i {
    color: #888;
    font-size: 16px;
    cursor: pointer;
    margin-right: 8px;
    transition: color 0.2s;
}

.volume-box i:hover {
    color: #fff;
}

/* ========== 移动端响应式 ========== */
@media (max-width: 768px) {
    .player-bar {
        height: 70px !important;
        padding: 0 10px !important;
    }

    .player-container {
        padding: 0 10px;
        gap: 10px;
    }

    .player-info {
        flex: 0 0 auto;
        max-width: 120px;
        gap: 10px;
    }

    .player-cover {
        width: 45px !important;
        height: 45px !important;
    }

    .player-text {
        display: none;
    }

    .player-controls {
        flex: 1;
        max-width: none;
    }

    .control-buttons {
        gap: 15px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .play-toggle-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .progress-bar-wrap {
        display: none;
    }

    .player-extra {
        gap: 5px;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .player-bar {
        height: 65px !important;
    }

    .player-cover {
        width: 40px !important;
        height: 40px !important;
    }

    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .play-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}