/* ============================================================
   NAMELESS — Bouton d'ambiance sonore (discret, premium)
   Pilule flottante en bas à droite. Égaliseur animé quand actif.
   ============================================================ */

/* Dock flottant regroupant le bouton ON/OFF et "piste suivante" */
.nm-audio-dock {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nm-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.95rem;
    background: linear-gradient(180deg, rgba(10,14,26,0.92), rgba(6,9,16,0.92));
    border: 1px solid var(--sao-border-hover, rgba(194,163,103,0.28));
    border-radius: 999px;
    color: var(--nm-steel, #8b93a3);
    font-family: var(--font-text, 'Inter', sans-serif);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nm-audio-btn:hover,
.nm-audio-btn:focus-visible {
    color: var(--sao-text-bright, #e8eaf0);
    border-color: var(--sao-cyan, #6f92b3);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), var(--sao-glow-cyan, 0 0 10px rgba(91,127,166,0.18));
    outline: none;
}
.nm-audio-btn.is-on {
    color: var(--sao-gold-light, #e4cd97);
    border-color: var(--sao-border-hover, rgba(194,163,103,0.28));
}

/* Bouton "piste suivante" */
.nm-audio-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: linear-gradient(180deg, rgba(10,14,26,0.92), rgba(6,9,16,0.92));
    border: 1px solid var(--sao-border-hover, rgba(194,163,103,0.28));
    border-radius: 50%;
    color: var(--nm-steel, #8b93a3);
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.nm-audio-next:hover,
.nm-audio-next:focus-visible {
    color: var(--sao-gold-light, #e4cd97);
    border-color: var(--sao-gold, #c2a367);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), var(--sao-glow-gold, 0 0 10px rgba(194,163,103,0.25));
    outline: none;
    transform: translateY(-1px);
}
.nm-audio-next:active { transform: translateY(0); }

/* Égaliseur (3 barres) */
.nm-audio-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 13px;
}
.nm-audio-eq i {
    width: 3px;
    height: 5px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.75;
}
.nm-audio-btn.is-on .nm-audio-eq i {
    animation: nm-eq 1s ease-in-out infinite;
}
.nm-audio-btn.is-on .nm-audio-eq i:nth-child(1) { animation-delay: 0s; }
.nm-audio-btn.is-on .nm-audio-eq i:nth-child(2) { animation-delay: 0.2s; }
.nm-audio-btn.is-on .nm-audio-eq i:nth-child(3) { animation-delay: 0.4s; }

@keyframes nm-eq {
    0%, 100% { height: 4px; }
    50% { height: 13px; }
}

.nm-audio-label {
    display: inline-block;
    line-height: 1;
    max-width: 6.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .nm-audio-dock { right: 0.8rem; bottom: 0.8rem; }
    .nm-audio-btn {
        gap: 0.42rem;
        padding: 0.45rem 0.62rem;
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }
    .nm-audio-next {
        width: 31px;
        height: 31px;
    }
    .nm-audio-label { max-width: 4.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .nm-audio-btn.is-on .nm-audio-eq i { animation: none; height: 9px; }
}
