/* ================================================================
   VISUALIZERS CSS - Unified Sizing System
   ================================================================
   Container: swiss-unified-btn (42x42px)
   All visualizers are centered and contained within this zone.
   ================================================================ */

/* === BASE CONTAINER === */
.swiss-unified-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

/* === VISUALIZER LAYER === */
.swiss-unified-btn .layer-visualizer,
.layer.layer-visualizer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    overflow: hidden;
    border-radius: 50%;
}

.swiss-unified-btn.playing:not(:hover) .layer-visualizer {
    opacity: 1;
}

/* ================================================================
   01. SPECTRUM - 5 animated bars
   ================================================================ */
.layer-spectrum {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spectrum-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 20px;
}

.spectrum-bar {
    width: 3px;
    background: currentColor;
    border-radius: 1px;
    animation: spectrum-anim 0.8s ease-in-out infinite alternate;
}

.spectrum-bar:nth-child(1) {
    height: 10px;
    animation-duration: 0.6s;
}

.spectrum-bar:nth-child(2) {
    height: 20px;
    animation-duration: 0.9s;
}

.spectrum-bar:nth-child(3) {
    height: 14px;
    animation-duration: 0.7s;
}

.spectrum-bar:nth-child(4) {
    height: 18px;
    animation-duration: 1.1s;
}

.spectrum-bar:nth-child(5) {
    height: 8px;
    animation-duration: 0.8s;
}

@keyframes spectrum-anim {
    0% {
        transform: scaleY(0.4);
    }

    100% {
        transform: scaleY(1.2);
    }
}

/* ================================================================
   02. PULSE - Expanding rings
   ================================================================ */
.pulse-ring {
    position: absolute;
    inset: 6px;
    border: 2px solid currentColor;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.3);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ================================================================
   03. WAVE - Bouncing dots
   ================================================================ */
.layer-wave {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.wave-dot {
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
    animation: wave 1s infinite;
}

.wave-dot:nth-child(1) {
    animation-delay: -0.4s;
}

.wave-dot:nth-child(2) {
    animation-delay: -0.2s;
}

.wave-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ================================================================
   04. VINYL - Spinning disc
   ================================================================ */
.layer-vinyl {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-disc {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 2px, currentColor 3px, currentColor 6px, transparent 7px),
        linear-gradient(135deg, transparent 42%, currentColor 50%, transparent 58%),
        radial-gradient(circle at center, transparent 10px, currentColor 11px, currentColor 12px, transparent 13px);
    border: 1px solid currentColor;
    animation: spin 1.5s linear infinite;
    opacity: 0.9;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ================================================================
   05. ORBIT - Circling dot
   ================================================================ */
.layer-orbit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-orbit::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.3;
}

.orbit-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
    animation: orbit 2s linear infinite;
    box-shadow: 0 0 4px currentColor;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(12px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(12px) rotate(-360deg);
    }
}

/* ================================================================
   06. BREATH - Pulsing blur
   ================================================================ */
.layer-breath {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: currentColor;
    filter: blur(4px);
    animation: breath 3s infinite;
}

@keyframes breath {

    0%,
    100% {
        transform: scale(0.6);
        opacity: 0.3;
    }

    50% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* ================================================================
   07. MINI EQ - 3 bars
   ================================================================ */
.layer-mini-eq {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.meq-bar {
    width: 4px;
    background: currentColor;
    border-radius: 2px;
    animation: meq 0.6s infinite alternate;
}

.meq-bar:nth-child(1) {
    height: 12px;
}

.meq-bar:nth-child(2) {
    height: 20px;
    animation-delay: 0.2s;
}

.meq-bar:nth-child(3) {
    height: 10px;
    animation-delay: 0.4s;
}

@keyframes meq {
    from {
        transform: scaleY(0.4);
    }

    to {
        transform: scaleY(1);
    }
}

/* ================================================================
   08. ARTIFACT - Scaling circle
   ================================================================ */
.layer-artifact {
    position: absolute;
    inset: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artifact-box {
    width: 100%;
    height: 100%;
    background: currentColor;
    border-radius: 50%;
    animation: artif 2s infinite alternate;
}

@keyframes artif {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.7);
        opacity: 0.7;
    }
}

/* ================================================================
   09. MORPH - Liquid blob
   ================================================================ */
.layer-morph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-morph::after {
    content: '';
    width: 26px;
    height: 26px;
    background: currentColor;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph-liquid 4s ease-in-out infinite;
}

@keyframes morph-liquid {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1);
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: scale(0.85);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1);
    }
}

/* ================================================================
   10. RADAR - Conic sweep
   ================================================================ */
.layer-radar {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    overflow: hidden;
}

.radar-line {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(transparent, currentColor);
    animation: spin 1.5s linear infinite;
}

/* ================================================================
   11. NEON - Glowing ring
   ================================================================ */
.layer-neon {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    animation: neon-anim 1.5s infinite alternate;
}

@keyframes neon-anim {
    from {
        box-shadow: inset 0 0 6px currentColor;
    }

    to {
        box-shadow: inset 0 0 14px currentColor;
    }
}

/* ================================================================
   12. BARS2 - Mirror bars
   ================================================================ */
.layer-bars2 {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.bm-bar {
    width: 4px;
    background: currentColor;
    border-radius: 2px;
    animation: bm 0.5s infinite alternate;
}

.bm-bar:nth-child(1) {
    height: 8px;
}

.bm-bar:nth-child(2) {
    height: 16px;
    animation-delay: 0.1s;
}

.bm-bar:nth-child(3) {
    height: 12px;
    animation-delay: 0.2s;
}

.bm-bar:nth-child(4) {
    height: 6px;
    animation-delay: 0.3s;
}

@keyframes bm {
    from {
        transform: scaleY(0.4);
    }

    to {
        transform: scaleY(1.2);
    }
}

/* ================================================================
   13. BUBBLE - Rising bubbles
   ================================================================ */
.layer-bubble {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble {
    position: absolute;
    background: currentColor;
    border-radius: 50%;
    animation: bub 2s infinite ease-in-out;
}

.b1 {
    width: 6px;
    height: 6px;
    left: 12px;
    animation-delay: 0s;
}

.b2 {
    width: 8px;
    height: 8px;
    left: 22px;
    animation-delay: 0.5s;
}

@keyframes bub {
    0% {
        transform: translateY(12px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-12px);
        opacity: 0;
    }
}

/* ================================================================
   14. ECLIPSE - Orbiting circles
   ================================================================ */
.layer-eclipse {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eclipse-circle {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    animation: ecl 2s infinite;
}

.c2 {
    animation-direction: reverse;
}

@keyframes ecl {

    0%,
    100% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }
}

/* ================================================================
   15. CIPHER - Scrolling lines
   ================================================================ */
.layer-cipher {
    position: absolute;
    inset: 6px;
    overflow: hidden;
    border-radius: 50%;
}

.cipher-box {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg, currentColor 0, currentColor 2px, transparent 2px, transparent 4px);
    animation: ciph 0.8s linear infinite;
}

@keyframes ciph {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(4px);
    }
}

/* ================================================================
   16. FLUX - Bouncing bar
   ================================================================ */
.layer-flux {
    position: absolute;
    inset: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.flux-bar {
    width: 100%;
    height: 6px;
    background: currentColor;
    border-radius: 3px;
    animation: flux 1.2s infinite alternate ease-in-out;
}

@keyframes flux {
    from {
        transform: translateY(-10px);
    }

    to {
        transform: translateY(10px);
    }
}

/* ================================================================
   17. GRID - Flashing 2x2
   ================================================================ */
.layer-grid {
    position: absolute;
    inset: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    border-radius: 50%;
    overflow: hidden;
}

.grid-cell {
    background: currentColor;
    animation: gflash 0.5s infinite;
}

.g1 {
    animation-duration: 0.4s;
    animation-delay: 0.1s;
}

.g2 {
    animation-duration: 0.6s;
    animation-delay: 0.3s;
}

.g3 {
    animation-duration: 0.3s;
}

.g4 {
    animation-duration: 0.5s;
    animation-delay: 0.2s;
}

@keyframes gflash {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

/* ================================================================
   18. PYRAMID - Pulsing bars
   ================================================================ */
.layer-pyramid {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding-bottom: 10px;
}

.pyramid-bar {
    width: 8px;
    background: currentColor;
    border-radius: 2px 2px 0 0;
    animation: pyramid-pulse 1s ease-in-out infinite;
}

.pyramid-bar:nth-child(1) {
    animation-delay: 0s;
}

.pyramid-bar:nth-child(2) {
    animation-delay: -0.2s;
}

.pyramid-bar:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes pyramid-pulse {

    0%,
    100% {
        height: 6px;
    }

    50% {
        height: 22px;
    }
}

/* ================================================================
   19. FLOATING - Floating bars
   ================================================================ */
.layer-floating {
    position: absolute;
    inset: 0;
}

.float-bar {
    position: absolute;
    width: 4px;
    height: 14px;
    background: currentColor;
    border-radius: 2px;
    animation: float-v 1.5s ease-in-out infinite;
}

@keyframes float-v {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ================================================================
   20. MICRO EQ - 5 thin bars
   ================================================================ */
.layer-micro-eq {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.micro-bar {
    width: 3px;
    height: 16px;
    background: currentColor;
    border-radius: 1px;
    animation: bar-random 0.6s linear infinite alternate;
}

@keyframes bar-random {
    0% {
        transform: scaleY(0.3);
    }

    50% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0.5);
    }
}

/* ================================================================
   21. DOT EQ - Pinging dots
   ================================================================ */
.layer-dot-eq {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dot-eq-point {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: ping-slow 1s ease infinite;
}

.dot-eq-point:nth-child(2) {
    animation-delay: -0.3s;
}

.dot-eq-point:nth-child(3) {
    animation-delay: -0.6s;
}

@keyframes ping-slow {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ================================================================
   22. SCANNER - Sliding highlight
   ================================================================ */
.layer-scanner {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 28px;
    height: 5px;
    background: currentColor;
    overflow: hidden;
    border-radius: 3px;
}

.scan-line {
    position: absolute;
    height: 100%;
    width: 10px;
    background: rgba(255, 255, 255, 0.7);
    animation: slide-x 1.5s linear infinite;
}

@keyframes slide-x {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* ================================================================
   23. SIGNAL - Stepped bars
   ================================================================ */
.layer-signal {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.signal-bar {
    width: 5px;
    background: currentColor;
    border-radius: 2px;
    animation: step 0.5s steps(2) infinite;
}

.signal-bar:nth-child(1) {
    height: 8px;
}

.signal-bar:nth-child(2) {
    height: 14px;
    animation-delay: 0.1s;
}

.signal-bar:nth-child(3) {
    height: 20px;
    animation-delay: 0.2s;
}

@keyframes step {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ================================================================
   24. FIREFLIES - Fading dots
   ================================================================ */
.layer-fireflies {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.firefly {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: ping-slow 1.2s ease infinite;
}

.firefly:nth-child(2) {
    animation-delay: 0.3s;
}

.firefly:nth-child(3) {
    animation-delay: 0.7s;
}

/* ================================================================
   25. ATOM - Orbiting electrons
   ================================================================ */
.layer-atom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atom-core {
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
}

.atom-electron {
    position: absolute;
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
}

.atom-electron.h {
    animation: orbit-h 1s ease-in-out infinite alternate;
}

.atom-electron.v {
    animation: orbit-v 1s ease-in-out infinite alternate-reverse;
}

@keyframes orbit-h {
    from {
        transform: translateX(-14px) scale(0.5);
    }

    to {
        transform: translateX(14px) scale(1);
    }
}

@keyframes orbit-v {
    from {
        transform: translateY(-14px) scale(0.5);
    }

    to {
        transform: translateY(14px) scale(1);
    }
}

/* ================================================================
   26. TUMBLE - Rotating square
   ================================================================ */
.layer-tumble {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    background: currentColor;
    animation: tumble 2s ease-in-out infinite;
}

@keyframes tumble {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg) scale(0.5);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================================================================
   27. CROSS - Spinning cross
   ================================================================ */
.layer-cross {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cross-bar {
    position: absolute;
    width: 26px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
    animation: spin 2s linear infinite;
}

.cross-bar:nth-child(2) {
    transform: rotate(90deg);
}

/* ================================================================
   28. IMPLODE - Collapsing ring
   ================================================================ */
.layer-implode {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.implode-ring {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid currentColor;
    border-radius: 50%;
    animation: ping-reverse 1s ease-in infinite;
}

.implode-dot {
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
}

@keyframes ping-reverse {
    0% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* ================================================================
   29. GLITCH BITS - Jittering bars
   ================================================================ */
.layer-glitch-bits {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.glitch-bit {
    width: 5px;
    height: 14px;
    background: currentColor;
    animation: glitch 0.3s steps(2) infinite;
}

.glitch-bit:nth-child(2) {
    animation-delay: 0.1s;
}

.glitch-bit:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 1px);
    }

    40% {
        transform: translate(2px, -1px);
    }

    100% {
        transform: translate(0);
    }
}

/* ================================================================
   30. SINEWAVE - Canvas animation
   ================================================================ */
.layer-sinewave {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 28px;
    height: 28px;
    color: currentColor;
}

/* ================================================================
   31. TRIANGLE - Bouncing triangle
   ================================================================ */
.layer-triangle {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid currentColor;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ================================================================
   32. EYE - Pulsing pupil
   ================================================================ */
.layer-eye {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26px;
    height: 26px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-pupil {
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.7);
    }
}