/* Persistent Audio Toggle - shared across all pages */
.audio-toggle {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff88;
    color: #00ff88;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    font-family: 'Courier New', monospace;
}
.audio-toggle:hover {
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    transform: translateY(-50%) scale(1.1);
}
.audio-toggle.playing {
    border-color: #ff88aa;
    color: #ff88aa;
    box-shadow: 0 0 10px rgba(255, 136, 170, 0.3);
    animation: audio-pulse 2s ease-in-out infinite;
}
.audio-toggle.playing:hover {
    box-shadow: 0 0 20px rgba(255, 136, 170, 0.6);
}
@keyframes audio-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 136, 170, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 136, 170, 0.6); }
}
.audio-tooltip {
    position: fixed;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff88;
    border-radius: 8px;
    padding: 12px 16px;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
    max-width: 340px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}
.audio-tooltip .tooltip-title {
    color: #ff88aa;
    font-size: 11px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.audio-tooltip .tooltip-notes {
    color: #b0ffb0;
    line-height: 1.5;
}
.audio-tooltip .tooltip-notes .highlight {
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
}
.audio-toggle:hover + .audio-tooltip,
.audio-tooltip:hover {
    opacity: 1;
    pointer-events: auto;
}
.sound-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 18px;
}
.sound-bars .bar {
    width: 3px;
    background: currentColor;
    border-radius: 1px;
    animation: sound-bar 0.8s ease-in-out infinite;
}
.sound-bars .bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.sound-bars .bar:nth-child(2) { height: 60%; animation-delay: 0.15s; }
.sound-bars .bar:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.sound-bars .bar:nth-child(4) { height: 40%; animation-delay: 0.45s; }
@keyframes sound-bar {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}
.muted-icon { font-size: 20px; }

/* Mobile responsive */
@media (max-width: 768px) {
    .audio-toggle {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
        width: 56px;
        height: 56px;
    }
    .audio-toggle:hover {
        transform: scale(1.1);
    }
    .audio-tooltip {
        display: none;
    }
}
