/* ==========================================
   LUXEE WIDGETKIT - AUDIO WIDGET
   ========================================== */

/* ─── Wrapper ─── */
.lxwdk-audio-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* ─── Ring Area (background circle + SVG ring) ─── */
.lxwdk-audio-ring-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    box-sizing: content-box;
    border-radius: 50%;
    pointer-events: none;
    /* padding & background-color set by Elementor selectors */
}

.lxwdk-audio-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    /* start progress from top */
    overflow: visible;
}

.lxwdk-audio-progress-ring {
    fill: transparent;
    transition: stroke-dashoffset 0.15s linear;
}

.lxwdk-audio-progress-track {
    fill: transparent;
}

/* ─── Icon ─── */
.lxwdk-audio-icon {
    position: relative;
    z-index: 10;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

/* Ensure both <i> (Font Awesome) and <svg> (custom SVG) icons render properly */
.lxwdk-audio-icon i {
    display: inline-block;
    line-height: 1;
}

.lxwdk-audio-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Play / Pause icon spans */
.lxwdk-audio-play-icon,
.lxwdk-audio-pause-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

/* Toggle visibility: pause hidden by default, play hidden when playing */
.lxwdk-audio-wrapper .lxwdk-audio-pause-icon {
    display: none;
}

.lxwdk-audio-wrapper.is-playing .lxwdk-audio-play-icon {
    display: none;
}

.lxwdk-audio-wrapper.is-playing .lxwdk-audio-pause-icon {
    display: inline-flex;
}

/* ─── Wave Effect ─── */
.lxwdk-audio-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.lxwdk-audio-wrapper.is-playing .lxwdk-audio-wave {
    animation: lxwdk-wave var(--anim-duration, 2s) infinite ease-out;
}

@keyframes lxwdk-wave {
    0% {
        width: 40px;
        height: 40px;
        opacity: 0.6;
    }

    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   ICON ANIMATIONS
   ═══════════════════════════════════════════ */

/* Spin */
@keyframes lxwdk-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes lxwdk-spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.song-anim-spin .lxwdk-audio-icon {
    animation: lxwdk-spin var(--anim-duration, .5s) ease-out;
}

.song-anim-spin-reverse .lxwdk-audio-icon {
    animation: lxwdk-spin-reverse var(--anim-duration, .5s) ease-out;
}

.song-anim-spin-continuous .lxwdk-audio-icon {
    animation: lxwdk-spin var(--anim-duration, 2s) linear infinite;
}

/* Pulse */
@keyframes lxwdk-pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.3)
    }

    100% {
        transform: scale(1)
    }
}

@keyframes lxwdk-pulse-cont {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.15)
    }
}

.song-anim-pulse .lxwdk-audio-icon {
    animation: lxwdk-pulse var(--anim-duration, .5s) ease-out;
}

.song-anim-pulse-continuous .lxwdk-audio-icon {
    animation: lxwdk-pulse-cont var(--anim-duration, 1.5s) ease-in-out infinite;
}

/* Bounce */
@keyframes lxwdk-bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    25% {
        transform: translateY(-8px)
    }

    50% {
        transform: translateY(0)
    }

    75% {
        transform: translateY(-4px)
    }
}

@keyframes lxwdk-bounce-cont {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

.song-anim-bounce .lxwdk-audio-icon {
    animation: lxwdk-bounce var(--anim-duration, .5s) ease-out;
}

.song-anim-bounce-continuous .lxwdk-audio-icon {
    animation: lxwdk-bounce-cont var(--anim-duration, 1.5s) ease-in-out infinite;
}

/* Shake */
@keyframes lxwdk-shake {

    0%,
    100% {
        transform: translateX(0)
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px)
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px)
    }
}

@keyframes lxwdk-shake-cont {

    0%,
    100% {
        transform: rotate(0deg)
    }

    25% {
        transform: rotate(-5deg)
    }

    75% {
        transform: rotate(5deg)
    }
}

.song-anim-shake .lxwdk-audio-icon {
    animation: lxwdk-shake var(--anim-duration, .5s) ease-out;
}

.song-anim-shake-continuous .lxwdk-audio-icon {
    animation: lxwdk-shake-cont var(--anim-duration, 1.5s) ease-in-out infinite;
}

/* Flip */
@keyframes lxwdk-flip {
    0% {
        transform: perspective(400px) rotateY(0)
    }

    100% {
        transform: perspective(400px) rotateY(360deg)
    }
}

.song-anim-flip .lxwdk-audio-icon {
    animation: lxwdk-flip var(--anim-duration, .5s) ease-out;
}

.song-anim-flip-continuous .lxwdk-audio-icon {
    animation: lxwdk-flip var(--anim-duration, 2s) linear infinite;
}

/* Grow */
@keyframes lxwdk-grow {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.4)
    }

    100% {
        transform: scale(1)
    }
}

@keyframes lxwdk-grow-cont {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }
}

.song-anim-grow .lxwdk-audio-icon {
    animation: lxwdk-grow var(--anim-duration, .5s) ease-out;
}

.song-anim-grow-continuous .lxwdk-audio-icon {
    animation: lxwdk-grow-cont var(--anim-duration, 1.5s) ease-in-out infinite;
}