@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#song-recommendation-overlay {
    animation: fadeIn 0.5s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
    z-index: 999; /* Повышаем z-index */
    display: flex;
    justify-content: center;
    align-items: center;
}

#song-recommendation-card {
    animation: slideIn 0.5s ease-in-out;
    background-color: #242424;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000; /* Карточка выше фона */
}

#song-recommendation-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

#song-recommendation-card .buttonsDiv {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

#song-recommendation-card a {
    background-color: #be3c10; 
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    width: calc(50% - 10px); 
}

#song-recommendation-card a:hover {
    background-color: #ff4d2d; 
}

/* Responsive Styles for Mobile Devices */
@media (max-width: 600px) {
    #song-recommendation-container {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        top: 80%;
        position: fixed;
        bottom: 20px; 
    }

    #song-recommendation-card {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #song-recommendation-card img {
        margin-bottom: 15px;
    }

    #song-recommendation-card .buttonsDiv {
        justify-content: center;
    }

    #song-recommendation-card a {
        width: 100%; 
    }
}
