/* ═══════════════════════════════════════════════════════
   LUXEHOME — KALICI MÜZİK ÇALAR
   Sağ alt köşe, sayfa geçişlerinde durmaz
═══════════════════════════════════════════════════════ */

#lh-music-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 99000;

    /* Boyut */
    width: 52px;
    height: 52px;
    border-radius: 50%;

    /* Renk — koyu şeffaf, siteyle uyumlu */
    background: rgba(10, 10, 10, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(196, 96, 42, 0);

    /* İçerik */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.65);
    font-size: 17px;

    /* Geçişler */
    transition: background 0.25s, border-color 0.25s,
                color 0.25s, transform 0.2s, box-shadow 0.3s;

    /* Giriş animasyonu */
    animation: lhMusicIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lhMusicIn {
    from { opacity: 0; transform: scale(0.5) translateY(20px); }
    to   { opacity: 1; transform: scale(1)   translateY(0);    }
}

/* Hover */
#lh-music-btn:hover {
    background: rgba(20, 20, 20, 0.92);
    border-color: rgba(196, 96, 42, 0.45);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45),
                0 0 0 3px rgba(196, 96, 42, 0.15);
}

/* Çalıyor — turuncu vurgu + nabız */
#lh-music-btn.playing {
    border-color: rgba(196, 96, 42, 0.55);
    color: #c4602a;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35),
                0 0 0 0 rgba(196, 96, 42, 0.45);
    animation: lhMusicIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both,
               lhPulse 2.4s ease-in-out 0.6s infinite;
}

@keyframes lhPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 0 0 0   rgba(196,96,42,0.45); }
    50%       { box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 0 0 9px rgba(196,96,42,0);    }
}

/* ── Eşitleyici çubukları (çalınca göster) ── */
#lh-music-bars {
    display: none;
    align-items: flex-end;
    gap: 2.5px;
    height: 16px;
}
#lh-music-btn.playing #lh-music-bars { display: flex; }
#lh-music-btn.playing #lh-music-icon { display: none; }

#lh-music-bars span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: #c4602a;
    animation: lhBar 1s ease-in-out infinite;
    transform-origin: bottom;
}
#lh-music-bars span:nth-child(1) { height: 10px; animation-delay: 0s;    animation-duration: 0.9s; }
#lh-music-bars span:nth-child(2) { height: 16px; animation-delay: 0.15s; animation-duration: 0.7s; }
#lh-music-bars span:nth-child(3) { height: 7px;  animation-delay: 0.3s;  animation-duration: 1.1s; }
#lh-music-bars span:nth-child(4) { height: 13px; animation-delay: 0.1s;  animation-duration: 0.8s; }

@keyframes lhBar {
    0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
    50%       { transform: scaleY(1);   opacity: 1;   }
}

/* ── Tooltip ── */
#lh-music-btn::before {
    content: attr(data-tip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;

    background: rgba(10, 10, 10, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'DM Sans', sans-serif;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
#lh-music-btn:hover::before { opacity: 1; }

/* ── Mobil ── */
@media (max-width: 600px) {
    #lh-music-btn {
        width: 46px;
        height: 46px;
        font-size: 15px;
        bottom: 24px;
        right: 20px;
    }
}
