#music-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 90%;
    max-width: 220px;
    height: 200px;
    background: linear-gradient(135deg, #222, #444);
    border-radius: 15px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease-out; /* Анимация при зареждане */
}

#music-widget:hover {
    transform: scale(1.05); /* Плавно увеличение при ховър */
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.5);
}

#music-widget h2 {
    font-family: 'Arial', sans-serif;
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
    padding: 0 5px;
    opacity: 0;
    animation: fadeInText 0.8s ease-out 0.2s forwards; /* Плавно появяване на заглавието */
}

audio {
    width: 100%;
    height: 35px;
    border-radius: 8px;
    background-color: #333;
    outline: none;
    opacity: 0;
    animation: fadeInAudio 0.8s ease-out 0.4s forwards; /* Плавно появяване на аудио плейъра */
}

#prev-btn, #next-btn {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #222;
    border: none;
    padding: 8px 16px;
    font-size: 16px; 
    font-weight: bold;
    cursor: pointer;
    border-radius: 12px;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 40px;
    height: 40px;
}

#prev-btn {
    margin-right: 8px; /* Разстояние между бутоните */
}

#prev-btn:hover, #next-btn:hover {
    background: linear-gradient(135deg, #ff9900, #ff6600);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

#prev-btn:active, #next-btn:active {
    transform: scale(0.95);
}

/* Мобилна адаптация */
@media (max-width: 600px) {
    #music-widget {
        width: 100%;
        height: auto;
        max-width: 280px;
        padding: 20px;
        box-sizing: border-box; /* За да се взема предвид padding */
    }

    #prev-btn, #next-btn {
        font-size: 14px;
        padding: 8px 16px;
        min-width: 120px;
        display: inline-block; /* Поддържа бутоните на една линия */
        margin: 0 5px; /* Малко разстояние между бутоните */
    }

    /* Подредба на бутоните в един ред */
    .button-container {
        display: flex;
        justify-content: center;
        margin-top: 10px; /* Отстояние от горната част */
    }

    audio {
        width: 100%;
        margin-bottom: 10px; /* Малко разстояние между плейъра и бутоните */
    }
}


/* Анимации */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInText {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInAudio {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Надпис Lazy Dog */
#lazy-dog-logo {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeInLogo 0.8s ease-out 0.8s forwards; /* Плавно появяване на логото */
}

#lazy-dog-logo img {
    width: 100px; /* Размер на PNG картинката */
    height: auto;
    opacity: 0;
    animation: fadeInLogo 0.8s ease-out 0.8s forwards; /* Плавно появяване на PNG */
}

@keyframes fadeInLogo {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
