/* WL Video */
.wl-video{
    --wl-play-size:80px;
    --wl-play-icon:28px;
    --wl-play-scale:1.08;
    --wl-play-speed:2s;
    --wl-video-justify:center;
    --wl-video-align:center;
    position:relative;
}
.wl-video__frame{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#000;
    isolation:isolate;
}
.wl-video__cover,
.wl-video__frame iframe,
.wl-video__frame video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    display:block;
    object-fit:cover;
    max-width:none;
}
.wl-video__frame video{object-fit:contain;background:#000}
.wl-video__cover{transition:transform .6s ease}
.wl-video-zoom-yes .wl-video__frame:hover .wl-video__cover{transform:scale(1.06)}

/* Cała okładka jest przyciskiem */
.wl-video__trigger{
    all:unset;
    box-sizing:border-box;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}
.wl-video__overlay{
    position:absolute;
    inset:0;
    z-index:2;
    display:flex;
    justify-content:var(--wl-video-justify);
    align-items:var(--wl-video-align);
    padding:clamp(12px,4%,40px);
    transition:background-color .3s ease;
}
.wl-video--button{display:flex;justify-content:var(--wl-video-justify)}
.wl-video__trigger--solo{display:inline-flex;position:relative}
.wl-video__trigger:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* Przycisk play */
.wl-video__play{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-width:var(--wl-play-size);
    min-height:var(--wl-play-size);
    border-radius:50%;
    color:#fff;
    background-color:#e1306c;
    --wl-play-ring:currentColor;
    border:0 solid transparent;
    transition:transform .3s ease,background-color .3s ease,color .3s ease,border-color .3s ease;
    line-height:1;
}
.wl-video__play--icon{width:var(--wl-play-size);height:var(--wl-play-size);padding:0}
.wl-video__play--text,
.wl-video__play--both{padding:.8em 1.6em;min-width:0;min-height:0;border-radius:999px}
.wl-video-icon-above .wl-video__play--both{flex-direction:column}
.wl-video-icon-after .wl-video__play--both{flex-direction:row-reverse}
.wl-video__trigger:hover .wl-video__play,
.wl-video__trigger:focus-visible .wl-video__play{transform:scale(var(--wl-play-scale))}
.wl-video__play-icon{display:inline-flex;font-size:var(--wl-play-icon);line-height:0}
.wl-video__play-icon svg,
.wl-video__play-icon i{width:1em;height:1em;font-size:inherit;fill:currentColor}
/* Wbudowany trójkąt optycznie wyśrodkowany */
.wl-video__play--icon .wl-video__play-icon > svg[viewBox="0 0 24 24"]{margin-left:.12em}

/* Animacje */
.wl-video__play::before,
.wl-video__play::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    pointer-events:none;
    z-index:-1;
}
.wl-video-anim-pulse .wl-video__play::before{
    background:var(--wl-play-ring);
    animation:wl-video-pulse var(--wl-play-speed) ease-out infinite;
}
.wl-video-anim-wave .wl-video__play::before,
.wl-video-anim-wave .wl-video__play::after{
    border:2px solid var(--wl-play-ring);
    animation:wl-video-wave var(--wl-play-speed) ease-out infinite;
}
.wl-video-anim-wave .wl-video__play::after{animation-delay:calc(var(--wl-play-speed) / 2)}
.wl-video-anim-beat .wl-video__play{animation:wl-video-beat var(--wl-play-speed) ease-in-out infinite}
.wl-video-anim-beat .wl-video__trigger:hover .wl-video__play{animation-play-state:paused}
@keyframes wl-video-pulse{0%{transform:scale(1);opacity:.55}100%{transform:scale(1.7);opacity:0}}
@keyframes wl-video-wave{0%{transform:scale(1);opacity:.8}100%{transform:scale(1.9);opacity:0}}
@keyframes wl-video-beat{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@media (prefers-reduced-motion:reduce){
    .wl-video__play,.wl-video__play::before,.wl-video__play::after{animation:none!important}
}

/* Po uruchomieniu w miejscu */
.wl-video.is-playing .wl-video__overlay,
.wl-video.is-playing .wl-video__cover{display:none}

.wl-video__empty{padding:24px;border:1px dashed #c3c4c7;text-align:center;font-size:14px;color:#646970}

/* Okienko (lightbox) */
.wl-video-lb{
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:clamp(16px,4vw,60px);
    background:rgba(0,0,0,.85);
    opacity:0;
    transition:opacity .25s ease;
}
.wl-video-lb.is-open{opacity:1}
.wl-video-lb__box{
    position:relative;
    width:min(100%,var(--wl-lb-width,1100px));
    max-height:100%;
    aspect-ratio:16/9;
    background:#000;
}
.wl-video-lb__box iframe,
.wl-video-lb__box video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.wl-video-lb__close{
    all:unset;
    position:absolute;
    top:-44px;
    right:-4px;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    color:#fff;
    font-size:30px;
    line-height:1;
}
.wl-video-lb__close:focus-visible{outline:2px solid currentColor;outline-offset:2px}
html.wl-video-lock{overflow:hidden}
@supports (scrollbar-gutter:stable){html.wl-video-lock{scrollbar-gutter:stable}}
