/* Floating Music Player */
.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(229,9,20,0.9);
    border: none;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(229,9,20,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(229,9,20,0.6);
}
.music-toggle.playing {
    animation: musicPulse 1.5s ease-in-out infinite;
}
@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(229,9,20,0.4); }
    50% { box-shadow: 0 4px 30px rgba(229,9,20,0.7), 0 0 0 8px rgba(229,9,20,0.1); }
}
.music-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 18px;
}
.music-bars span {
    width: 3px;
    background: white;
    border-radius: 2px;
    height: 6px;
    transition: height 0.2s;
}
.music-toggle.playing .music-bars span:nth-child(1) { animation: bar1 0.8s ease-in-out infinite; }
.music-toggle.playing .music-bars span:nth-child(2) { animation: bar2 0.6s ease-in-out infinite 0.1s; }
.music-toggle.playing .music-bars span:nth-child(3) { animation: bar1 0.7s ease-in-out infinite 0.2s; }
.music-toggle.playing .music-bars span:nth-child(4) { animation: bar2 0.5s ease-in-out infinite 0.05s; }
@keyframes bar1 { 0%,100%{height:6px} 50%{height:18px} }
@keyframes bar2 { 0%,100%{height:8px} 50%{height:14px} }

/* Mobile */
@media (pointer: coarse) {
    .music-toggle {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}