/* Фоновая музыка — компактный виджет */

.vv-bg-music {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1035;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(30, 27, 75, 0.1);
    box-shadow: 0 8px 24px rgba(30, 27, 75, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.vv-bg-music__btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.vv-bg-music__btn.is-muted {
    background: #e5e7eb;
    color: #6b7280;
}

.vv-bg-music__btn.is-playing {
    animation: vv-bg-music-pulse 2s ease-in-out infinite;
}

.vv-bg-music__btn:hover {
    transform: translateY(-1px);
}

.vv-bg-music__btn:active {
    transform: scale(0.97);
}

@keyframes vv-bg-music-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(102, 126, 234, 0); }
}

@media (max-width: 767.98px) {
    .vv-bg-music {
        right: 10px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}
