body {
    padding-bottom: 155px;
}
#song-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.song-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
}
.song-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.song-item.playing {
    border-color: var(--gradient-mid);
    background-color: rgba(154, 95, 189, 0.2);
}
.song-item-cover {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 15px;
    object-fit: cover;
}
.song-item-info {
    display: flex;
    flex-direction: column;
}
.song-item-title {
    font-weight: bold;
    font-size: 1.1em;
}
.song-item-artist {
    font-size: 0.9em;
    color: #ccc;
}
#music-player-container {
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: 95px;
    background-color: var(--header-footer-bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
}
#waveform {
    width: 100%;
    height: 45px;
}
#player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
    gap: 15px;
}
.song-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    flex: 1;
}
#player-cover-art {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}
.text-info {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#player-title { font-weight: bold; }
#player-artist { font-size: 0.8em; color: #ccc; }
.center-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.center-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    width: 35px;
    height: 35px;
}
.center-controls button:hover { transform: scale(1.1); }
#play-pause-btn { font-size: 1.8em; }
#loop-btn.active { color: var(--gradient-start); }
.right-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex: 1;
}
.time-info {
    font-size: 0.9em;
    white-space: nowrap;
}
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.volume-control button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
}
#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 5px;
    background: #444;
    outline: none;
    border-radius: 3px;
    transition: opacity 0.2s;
}
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
}
#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
}
@media (max-width: 850px) {
    .time-info { display: none; }
}
@media (max-width: 768px) {
    body { padding-bottom: 185px; }
    #music-player-container { height: 125px; }
    #player-controls {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
        justify-content: center;
        gap: 10px 0;
    }
    .song-info {
        width: 100%;
        min-width: 0;
        order: 1;
        justify-content: center;
    }
    .center-controls {
        width: 100%;
        justify-content: center;
        order: 2;
        gap: 15px;
    }
    .right-controls {
        flex: auto;
        width: 100%;
        order: 3;
        justify-content: center;
    }
    .volume-control { display: none; }
}