.music-player-section {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #ece9e6, #ffffff);
    color: #1c1c1e;
}

.music-player-section .container {
    display: flex;
    flex-direction: column; /* Stack elements vertically on small screens */
    width: 100%; /* Ensure the container takes the full width */
    height: auto; /* Let height be auto for mobile */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: 20px 0; /* Add some margin for spacing */
}

.music-player-section .side-panel {
    width: 100%; /* Take full width on mobile */
    background: rgba(36, 36, 36, 0.75); /* Dark gray background */
    color: #ffffff;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 15px; /* Add rounded corners */
    margin-top: 20px; /* Add some space below the side panel */
    margin-bottom: 20px; /* Add some space below the side panel */
}

.music-player-section .side-panel h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Ensure the heading is visible */
}

.music-player-section .side-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.music-player-section .side-panel li {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
    border-radius: 10px;
    color: #ffffff; /* Ensure text is visible */
}

.music-player-section .side-panel li:hover, .music-player-section .side-panel li.active {
    background: rgba(255, 255, 255, 0.3);
}

.music-player-section .music-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    position: relative;
}

.music-player-section .music-player img {
    width: 100%; /* Ensure the image scales well on mobile */
    max-width: 200px; /* Limit the maximum width */
    max-height: 200px; /* Limit the maximum height */
    height: auto; /* Adjust height automatically */
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.music-player-section .song-info {
    text-align: center;
    margin-bottom: 20px;
}

.music-player-section .song-info h3 {
    margin: 0;
    margin-bottom: 10px; /* Increase the margin to add more space below the title */
    font-size: 24px;
}

.music-player-section .song-info p {
    margin: 0;
    margin-top: 10px; /* Optional: You can also add some space above the artist name */
    font-size: 18px;
    color: #555;
}

.music-player-section .controls {
    display: flex;
    justify-content: space-around; /* Adjust buttons spacing */
    width: 100%;
    margin-top: 20px;
}

.music-player-section .controls button {
    background: rgba(31, 38, 135, 0.37);
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 50%; /* Ensures the button is perfectly round */
    width: 50px; /* Set a fixed width */
    height: 50px; /* Set a fixed height */
    padding: 0; /* Remove padding */
    font-size: 24px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.music-player-section .controls button:hover {
    background: rgba(31, 38, 135, 0.47);
    transform: scale(1.1);
}

.music-player-section .controls button i {
    display: block;
}

.music-player-section .footer {
    text-align: center;
    margin-top: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #333;
}

/* Media Queries for responsiveness */
@media (min-width: 768px) {
    .music-player-section .container {
        flex-direction: row; /* Restore row layout on larger screens */
        height: 80%;
        width: 80%;
    }

    .music-player-section .side-panel {
        width: 250px; /* Restore side panel width on larger screens */
    }

    .music-player-section .music-player img {
        max-width: 200px; /* Ensure the image isn't too large on bigger screens */
    }
}
