/* 播放器樣式優化 */

/* 播放器容器 */
.fixed.bottom-0.left-0.right-0.bg-dark\/95 {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(75, 75, 75, 0.3);
    padding: 0.75rem 0;
    z-index: 50;
}

/* 播放器內容佈局 */
.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 播放器左側：歌曲信息 */
.player-left {
    display: flex;
    align-items: center;
    width: 30%;
}

.player-image {
    width: 48px;
    height: 48px;
    border-radius: 0.375rem;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    min-width: 0;
}

.player-title {
    font-weight: 500;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    color: #a0a0a0;
    font-size: 0.875rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 播放器中間：控制區 */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.player-controls button {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.player-controls button:hover {
    color: white;
}

.player-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #aa3cff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.player-play:hover {
    transform: scale(1.1);
    background-color: #9933e6;
}

.player-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.player-progress-bar {
    height: 100%;
    background-color: #aa3cff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.player-time {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #a0a0a0;
}

/* 播放器右側：音量控制 */
.player-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
}

.player-volume {
    display: flex;
    align-items: center;
}

.player-volume-button {
    color: #a0a0a0;
    margin-right: 0.75rem;
    transition: color 0.2s ease;
}

.player-volume-button:hover {
    color: white;
}

.player-volume-slider {
    width: 80px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.player-volume-progress {
    height: 100%;
    background-color: #aa3cff;
    border-radius: 2px;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .player-center {
        width: 50%;
    }
    
    .player-right {
        width: 20%;
    }
}

@media (max-width: 640px) {
    .player-left {
        width: 50%;
    }
    
    .player-center {
        display: none;
    }
    
    .player-right {
        width: 50%;
    }
    
    .player-mobile-controls {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}