/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Featured Song Section */
.featured-song {
    width: 100%;
    margin-bottom: 30px;
}

.featured {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center align items */
    justify-content: center; /* Center vertically */
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100vw; /* Ensure it takes full viewport width */
    box-sizing: border-box; /* Include padding and border in the width calculation */
    text-align: center;
}

.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.cover-image {
    width: 300px; /* Increase the size of the cover image */
    height: 300px; /* Increase the size of the cover image */
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h2 {
    margin: 0;
    font-size: 2rem; /* Increase font size */
    color: #333;
    font-weight: 600;
}

.position {
    font-size: 1.2rem; /* Increase font size */
    color: #888;
    margin-bottom: 15px;
}

.audio-preview {
    width: 100%;
    margin: 10px 0;
}

.vote-block {
    margin: 15px 0;
}

.vote-button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.vote-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Play and Pause Buttons */
.play-button, .pause-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-right: 10px;
}

.play-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.pause-button {
    background-color: #dc3545;
    display: none; /* Initially hidden */
}

.pause-button:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

/* Songs Grid */
.songs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.song {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    flex: 1;
    max-width: 320px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.song:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.song img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 15px 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .featured {
        flex-direction: column;
        align-items: center;
    }

    .cover-image {
        width: 100%;
        height: auto;
    }

    .song {
        max-width: 100%;
    }
}
