/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kumbh Sans', sans-serif;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: #0f0f0f;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    max-width: 1300px;
    padding: 0 50px;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: #fff;
    text-decoration: none;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color 0.3s ease;
}

.navbar__links:hover {
    color: #ff7706;
}

.button {
    padding: 10px 20px;
    border-radius: 4px;
    background: #4d4d4d;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.button:hover {
    background: #4837ff;
}

/* Music Section (Now on the Left, 3/4 Width) */
.music-section {
    margin-top: 5vh;
    background-color: #cfcfcf;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 75%; /* 3/4 of the screen width */
    padding: 15px; /* Reduce padding slightly */
    display: flex;
    align-items: center;
    min-height: 160px; /* Adjust this value as needed */
    max-height: 160px; /* Optional, prevents it from getting too large */
    overflow: hidden; /* Ensures no overflow */
}

/* Album Cover Positioned on the Left */
.album-cover {
    flex-shrink: 0; /* Prevents shrinking */
    margin-right: 20px; /* Space between cover and controls */
}

.album-cover img {
    width: 100%; /* Makes it responsive */
    max-width: 150px; /* Ensures it doesn’t exceed this size */
    height: auto; /* Maintains aspect ratio */
    display: block;
    border-radius: 10px;
    object-fit: cover; /* Ensures the image fills the space without distortion */
}

/* Music Controls Take Up Remaining Space */
.music-controls {
    flex-grow: 1; /* Expands to fill available space */
    text-align: left;
    padding: 0 10px;
}

.music-controls h2 {
    font-size: 1.5em;
    color: #333;
}

.music-controls h3 {
    font-size: 1.2em;
    color: #666;
}

audio {
    width: 100%;
    margin-top: 10px;
    appearance: none; /* Hide default player */
    background: transparent;
}

audio::-webkit-media-controls-panel {
    background: linear-gradient(135deg, #cfcfcf, #cfcfcf);
    border-radius: 10px;
}

/* Responsive Design */
@media screen and (max-width: 960px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    .music-section {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .navbar__menu {
        display: none;
    }
    .music-section {

        width: 90%;
    }
    .music-controls h2 {
        font-size: 1rem;
        color: #333;
    }
    
    .music-controls h3 {
        font-size: 0.8rem;
        color: #666;
    }
}
