#retro-music-player {
    box-shadow: 0 0 12px #a584e4;
    border-radius: 16px;
    padding: 15px;
    max-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Press Start 2P', monospace;
    color: #fff;
    background: rgba(17, 17, 17, 1.0);
    margin: 0px;
}

.player-header {
    margin-bottom: 0px;
}

.player-title {
    color: #ffcc00;
    text-shadow: 0 0 8px #ffcc00, 0 0 15px #ffcc00;
    font-size: 0.6em;
    margin: 0;
    padding: 0;
    letter-spacing: 2px;
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-info {
    font-size: 0.8em;
    color: #a584e4;
    text-shadow: 0 0 5px #a584e4;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #333366;
    border: 1px solid #a584e4;
    box-shadow: 0 0 5px #a584e4;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #a584e4;
    box-shadow: 0 0 5px #a584e4;
    transition: width 0.1s linear; 
}

.buttons-volume {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.control-btn {
    height: 45px;
    width: 45px;
    background-color: #000033;
    border: 2px solid #a584e4;
    border-radius: 5px;
    padding: 8px 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1em;
    color: #6a00ff;
    text-shadow: 0 0 5px #6a00ff;
    box-shadow: 0 0 10px #a584e4;
    transition: background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.control-btn:hover {
    background-color: #000055;
    box-shadow: 0 0 15px #6a00ff, 0 0 20px #a584e4;
}

.control-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.0); 
    transition: all 0.1s ease;
}

.volume-slider {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #333366;
    border: 1px solid #6a00ff;
    box-shadow: 0 0 5px #6a00ff;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffcc00;
    box-shadow: 0 0 8px #ffcc00;
    margin-top: -4px;
    cursor: grab;
}



@media (max-width: 400px) {
    #retro-music-player {
        width: 90%;
        padding: 0px;
    }
    .player-title {
        font-size: 1em;
    }
    .control-btn {
        padding: 6px 10px;
        font-size: 0.9em;
    }
    .control-btn img {
        height: 16px;
        width: 16px;
    }
    .volume-slider {
        width: 80px;
    }
}