/* =================================================================
   8. 底部播放条 (Player Bar) - 经典布局 + 悬浮时间
   ================================================================= */
.player-bar {
    position: absolute;
    bottom: 20px;
    left: 270px;
    right: 30px;
    height: 90px;
    background: rgba(30, 30, 30, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 30px;
    z-index: 100;
    overflow: hidden;
    transition: background 0.3s ease;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.player-cover {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spinning {
    animation: spinCover 20s linear infinite;
    border-radius: 50% !important;
}

.spinning.paused {
    animation-play-state: paused !important;
}

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

.player-info {
    flex: 1;
}

.player-song-name {
    color: #fff;
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.player-artist-name {
    color: #999;
    font-size: 12px;
}

/* 保持中间区域为 Flex 居中 */
.player-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.control-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.control-btn:hover {
    background: transparent !important;
    color: #31c27c;
    transform: translateY(-2px);
}

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

.btn-play {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #31c27c, #25a062);
    border: none;
    color: white;
    font-size: 22px;
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 8px 20px rgba(49, 194, 124, 0.4);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play:hover {
    background: linear-gradient(135deg, #36d688, #2bc075);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 12px 25px rgba(49, 194, 124, 0.6);
    transform: scale(1.1);
}

.btn-play:active {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(49, 194, 124, 0.3);
}

/* [核心] 进度条绝对定位在底部边缘，不影响其他布局 */
.progress-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    display: flex;
    align-items: flex-end;
    transition: height 0.2s;
    z-index: 10;
}

.progress-section:hover {
    height: 8px;
}

/* [新增] 悬浮时间显示：位于进度条上方左右两侧 */
.time {
    display: block;
    position: absolute;
    bottom: 12px;
    /* 位于进度条上方 */
    font-size: 11px;
    color: #888;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    font-weight: 500;
    opacity: 0.8;
}

/* 左右定位 */
#time-current {
    left: 10px;
}

#time-total {
    right: 10px;
}

.progress-wrapper {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #31c27c, #85e4b6);
    width: 0;
    position: relative;
    box-shadow: 0 -2px 10px rgba(49, 194, 124, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

.progress-section:hover .progress-bar::after {
    transform: translateY(-50%) scale(1);
}

/* [新增] 鼠标跟随提示泡 */
.progress-tooltip {
    position: absolute;
    top: -35px;
    left: 0;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    pointer-events: none;
    display: none;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.progress-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

.progress-wrapper:hover .progress-tooltip {
    display: block;
}

.player-right {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    justify-content: flex-end;
}

.quality-select {
    padding: 5px 12px;
    background: #222;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 12px;
    height: 30px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.quality-select:hover {
    border-color: #31c27c;
    color: #31c27c;
}