/* ═══════════════════════════════════════════
   MUSIC — Floating Spotify Player
   The FAB and panel chrome are fully bespoke, stacked directly above
   the existing notif-fab. The iframe Spotify injects inside
   .music-panel-embed (see js/music.js) keeps its own native controls —
   a cross-origin document we can't restyle — but theme=0 on the embed
   URL picks Spotify's dark theme so it blends in as closely as an
   embed allows.
   ═══════════════════════════════════════════ */

.music-fab {
    position: fixed;
    bottom: 5.4rem;
    right: 1.5rem;
    z-index: 55;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 42, 133, 0.4);
    background: rgba(10, 3, 9, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--neon);
    text-shadow: 0 0 10px var(--neon-glow);
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 42, 133, 0.28);
    transition: transform 0.35s ease, border-color 0.3s ease, color 0.3s ease;
    animation: notifGlow 3.4s ease-in-out infinite;
}
.music-fab:hover {
    border-color: var(--neon);
    transform: scale(1.08);
}
.music-fab:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 3px;
}
.music-fab.is-active {
    color: #fff;
    border-color: var(--neon);
}

.music-panel {
    position: fixed;
    bottom: 9.3rem;
    right: 1.5rem;
    z-index: 56;
    width: min(90vw, 300px);
    background: linear-gradient(160deg, rgba(22, 4, 15, 0.97), rgba(5, 0, 5, 0.99));
    border: 1px solid rgba(255, 42, 133, 0.4);
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 42, 133, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.4s cubic-bezier(.16, 1, .3, 1),
                transform 0.4s cubic-bezier(.16, 1, .3, 1);
}
.music-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.music-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0.2rem;
}
.music-panel-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon);
}
.music-panel-close {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 42, 133, 0.25);
    color: #fff;
    font-size: 0.68rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.music-panel-close:hover {
    background: rgba(255, 42, 133, 0.2);
    border-color: var(--neon);
}
.music-panel-close:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 2px;
}

.music-panel-embed {
    border-radius: 12px;
    overflow: hidden;
    min-height: 152px;
}
.music-panel-embed:empty::before {
    content: 'Caricamento…';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 152px;
    font-size: 0.75rem;
    color: #666;
}
