/**
 * Waveform player — layout SoundCloud / Kplacement, colori Midance.
 *
 * @package Kevents
 * @version 1.9.30
 */

.kevents-wf-player {
    --kevents-wf-played: #ea3323;
    --kevents-wf-idle: rgba(220, 222, 230, 0.45);
    --kevents-wf-btn: #ea3323;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kevents-wf-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kevents-wf-play {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--kevents-wf-btn);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 12px rgba(234, 51, 35, 0.35);
}

.kevents-wf-play:hover,
.kevents-wf-play:focus {
    filter: brightness(1.08);
    outline: none;
}

.kevents-wf-play svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.kevents-wf-icon-pause {
    display: none;
}

.kevents-wf-player.is-playing .kevents-wf-icon-play {
    display: none;
}

.kevents-wf-player.is-playing .kevents-wf-icon-pause {
    display: block;
}

.kevents-wf-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kevents-wf-player .kevents-audio-player-title {
    margin-bottom: 0;
}

.kevents-wf-time {
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

.kevents-wf-volume {
    width: 72px;
    accent-color: var(--kevents-wf-played);
}

.kevents-wf-wrap {
    position: relative;
    height: 72px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 6px;
    overflow: hidden;
}

.kevents-wf-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.kevents-wf-audio {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.kevents-wf-player--compact .kevents-wf-play {
    width: 36px;
    height: 36px;
}

.kevents-wf-player--compact .kevents-wf-wrap {
    height: 52px;
}

.kevents-wf-player--compact .kevents-wf-volume {
    display: none;
}

.kevents-audio-player-item.kevents-wf-player,
.kevents-audio-player-item .kevents-wf-player {
    width: 100%;
}

.kevents-submission-audio-wrap {
    max-width: 420px;
}

@media (max-width: 768px) {
    .kevents-wf-volume {
        display: none;
    }
}
