/* General Setup */
body {
    background-color: #0b0b0b; /* Deep Black */
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    padding: 50px 20px;
    background-color: #111;
}

.container {
    display: flex;
    flex-wrap: wrap; /* This tells the cards to wrap to the next row if the screen is too small */
    justify-content: center;
    gap: 40px; /* This adds a perfect 40px space between all your albums */
    padding: 40px;
}

/* The Music Card Box (Vertical Layout) */
.music-card {
    background-color: #1a1a1a;
    display: flex; 
    flex-direction: column; /* This is the magic line that puts the image on top! */
    width: 350px; /* Narrower width so the vertical card looks right */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.image-box {
    width: 100%;
    height: 350px; /* Makes the image a perfect square */
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the square completely without stretching */
}

.info-box {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1; /* This forces the text box to stretch and fill the whole card */
}

.tracklist {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    line-height: 2;
    color: #8b8383;
}

/* Your Custom Download Button */
/* The New Download Icon */
.download-icon {
    display: inline-block;
    transition: 0.3s;
    margin-top: auto; /* This is the magic line that pushes it to the bottom */
    align-self: flex-start; /* This keeps the button on the left side */
}

.download-icon:hover {
    transform: scale(1.15); /* Makes the circle "pop" slightly when you hover */
    opacity: 0.8;
}
/* Navigation Menu */
.top-menu {
    margin-top: 20px;
}

.top-menu a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 20px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
}

.top-menu a:hover {
    color: #ff0000; /* Turns red when the mouse hovers over it */
}

/* --- POPUP & AUTH STYLES --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Very dark background */
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    position: relative;
    border: 1px solid #333;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.auth-form input {
    padding: 12px;
    background: #000;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
    font-size: 16px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: #ff0000;
}