/* EDS Core – Hero Video widget
 * Scoping: ":not(#eds)" adds ID-level specificity so theme (Hello reset.css), kit and
 * Elementor class rules can never restyle these controls. Properties driven by the
 * widget's Style controls (padding, typography) stay on plain class selectors. */

.eds-hv{--hv-fg:var(--e-global-color-accent,#fff);--hv-bg:var(--e-global-color-primary,#000);--hv-line:var(--e-global-color-eds_w20,#ffffff33);--hv-soft:var(--e-global-color-eds_w70,#ffffffb3);display:inline-block;max-width:100%}
.eds-hv__open{display:inline-flex;align-items:center;gap:12px;padding:7px 22px 7px 7px;border-radius:100px;font-family:var(--e-global-typography-accent-font-family,inherit),sans-serif;font-size:var(--e-global-typography-accent-font-size,1rem);font-weight:var(--e-global-typography-accent-font-weight,700);line-height:1.2;letter-spacing:.01em;text-transform:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.eds-hv:not(#eds) .eds-hv__open{margin:0;border:1px solid var(--hv-line);background:transparent;color:var(--hv-fg);box-shadow:none;text-decoration:none;transition:border-color .3s,background-color .3s}
.eds-hv:not(#eds) .eds-hv__open:is(:hover,:focus,:active){border-color:var(--hv-fg);background:#ffffff14;color:var(--hv-fg)}
.eds-hv:not(#eds) .eds-hv__open:focus:not(:focus-visible){border-color:var(--hv-line);background:transparent}
.eds-hv:not(#eds) .eds-hv__open:focus-visible{outline:2px solid var(--hv-fg);outline-offset:3px}
.eds-hv__open-icon{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border-radius:50%;background:var(--hv-fg);transition:transform .3s}
.eds-hv__open:hover .eds-hv__open-icon{transform:scale(1.08)}
.eds-hv__open-icon svg{width:16px;height:16px;fill:var(--hv-bg);margin-left:2px}
.eds-hv__open-time{color:var(--hv-soft);font-weight:400;font-variant-numeric:tabular-nums}
@media (max-width:767px){.eds-hv__open{justify-content:center;padding:5px 20px 5px 5px}.eds-hv__open-icon{width:36px;height:36px}}

/* background layer injected into the host container */
.eds-hv-host>.eds-hv-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;border-radius:inherit}
.eds-hv-host::before{z-index:1!important}
.eds-hv-host>.e-con-inner,.eds-hv-host>.e-con,.eds-hv-host>.elementor-element,.eds-hv-host>.elementor-container{position:relative;z-index:2}
.eds-hv-bg video{display:block;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition:opacity 1.2s ease}
.eds-hv-bg video.is-ready{opacity:1}

/* ---------- lightbox (everything scoped with :not(#eds)) ---------- */
.eds-hv-lb:not(#eds){--hv-fg:#fff;position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff;overflow:hidden;font-family:var(--e-global-typography-text-font-family,inherit),sans-serif;font-size:16px;line-height:1.4}
.eds-hv-lb:not(#eds)::backdrop{background:rgba(0,0,0,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.eds-hv-lb:not(#eds)[open]{display:grid;place-items:center;animation:eds-hv-in .35s ease both}
@keyframes eds-hv-in{from{opacity:0}to{opacity:1}}
.eds-hv-lb:not(#eds) *,.eds-hv-lb:not(#eds) *::before,.eds-hv-lb:not(#eds) *::after{box-sizing:border-box}

/* reset: wins over theme "button / button:hover / button:focus" rules */
.eds-hv-lb:not(#eds) button{all:unset;display:inline-block;box-sizing:border-box;cursor:pointer;color:#fff;-webkit-tap-highlight-color:transparent}
.eds-hv-lb:not(#eds) button:focus-visible,.eds-hv-lb:not(#eds) input:focus-visible{outline:2px solid #fff;outline-offset:3px}

.eds-hv-lb:not(#eds) .eds-hv-lb__stage{position:relative;width:min(92vw,calc(86svh * 16 / 9),1400px);aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.eds-hv-lb:not(#eds)[open] .eds-hv-lb__stage{animation:eds-hv-up .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes eds-hv-up{from{transform:translateY(16px) scale(.98);opacity:0}to{transform:none;opacity:1}}
.eds-hv-lb:not(#eds) .eds-hv-lb__stage:fullscreen{width:100%;height:100%;aspect-ratio:auto;border-radius:0}
.eds-hv-lb:not(#eds) .eds-hv-lb__stage:-webkit-full-screen{width:100%;height:100%;border-radius:0}
.eds-hv-lb:not(#eds) .eds-hv-lb__video{display:block;width:100%;height:100%;object-fit:contain;background:#000;cursor:pointer}
.eds-hv-lb:not(#eds) svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.eds-hv-lb:not(#eds) :is(.i-play,.i-pause,.i-spk){fill:currentColor;stroke:none}

.eds-hv-lb:not(#eds) .eds-hv-lb__big{position:absolute;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;padding:28px;border-radius:50%;background:rgba(255,255,255,.95);color:#000;transition:transform .25s,opacity .25s}
.eds-hv-lb:not(#eds) .eds-hv-lb__big:hover{transform:scale(1.06)}
.eds-hv-lb:not(#eds) .eds-hv-lb__big .i-play{transform:translateX(1.5px)}
.eds-hv-lb:not(#eds).is-playing .eds-hv-lb__big{opacity:0;transform:scale(.85);pointer-events:none}
.eds-hv-lb:not(#eds) .i-pause{display:none}
.eds-hv-lb:not(#eds).is-playing .eds-hv-lb__play .i-play{display:none}
.eds-hv-lb:not(#eds).is-playing .eds-hv-lb__play .i-pause{display:block}

.eds-hv-lb:not(#eds) .eds-hv-lb__close{position:absolute;top:16px;right:16px;z-index:3;width:44px;height:44px;padding:12px;border-radius:50%;background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .25s,opacity .3s,transform .3s}
.eds-hv-lb:not(#eds) .eds-hv-lb__close:hover{background:rgba(255,255,255,.2)}

.eds-hv-lb:not(#eds) .eds-hv-lb__spinner{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;opacity:0;animation:eds-hv-spin .8s linear infinite;pointer-events:none;transition:opacity .2s}
.eds-hv-lb:not(#eds).is-waiting .eds-hv-lb__spinner{opacity:1}
@keyframes eds-hv-spin{to{transform:rotate(360deg)}}

.eds-hv-lb:not(#eds) .eds-hv-lb__bar{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:40px 20px 14px;background:linear-gradient(transparent,rgba(0,0,0,.75));transition:opacity .35s,transform .35s}
.eds-hv-lb:not(#eds).is-idle :is(.eds-hv-lb__bar,.eds-hv-lb__close){opacity:0;transform:translateY(6px);pointer-events:none}
.eds-hv-lb:not(#eds).is-idle .eds-hv-lb__video{cursor:none}

.eds-hv-lb:not(#eds) .eds-hv-lb__progress{position:relative;height:18px;display:flex;align-items:center}
.eds-hv-lb:not(#eds) .eds-hv-lb__track{position:absolute;left:0;right:0;height:3px;border-radius:3px;background:rgba(255,255,255,.22);overflow:hidden;transition:height .2s}
.eds-hv-lb:not(#eds) .eds-hv-lb__progress:hover .eds-hv-lb__track{height:5px}
.eds-hv-lb:not(#eds) :is(.eds-hv-lb__buf,.eds-hv-lb__fill){position:absolute;inset:0 auto 0 0;width:0}
.eds-hv-lb:not(#eds) .eds-hv-lb__buf{background:rgba(255,255,255,.35)}
.eds-hv-lb:not(#eds) .eds-hv-lb__fill{background:#fff}

.eds-hv-lb:not(#eds) input[type=range]{-webkit-appearance:none;appearance:none;display:block;width:auto;min-height:0;background:transparent;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;color:#fff;cursor:pointer}
.eds-hv-lb:not(#eds) .eds-hv-lb__seek{position:relative;width:100%;height:18px}
.eds-hv-lb:not(#eds) input[type=range]::-webkit-slider-runnable-track{height:18px;background:transparent;border:0}
.eds-hv-lb:not(#eds) input[type=range]::-moz-range-track{height:18px;background:transparent;border:0}
.eds-hv-lb:not(#eds) input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:2px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.4);transform:scale(0);transition:transform .2s}
.eds-hv-lb:not(#eds) input[type=range]::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#fff;transform:scale(0);transition:transform .2s}
.eds-hv-lb:not(#eds) .eds-hv-lb__progress:hover input::-webkit-slider-thumb,.eds-hv-lb:not(#eds) input:focus-visible::-webkit-slider-thumb{transform:scale(1)}
.eds-hv-lb:not(#eds) .eds-hv-lb__progress:hover input::-moz-range-thumb,.eds-hv-lb:not(#eds) input:focus-visible::-moz-range-thumb{transform:scale(1)}

.eds-hv-lb:not(#eds) .eds-hv-lb__row{display:flex;align-items:center;gap:6px;margin-top:6px}
.eds-hv-lb:not(#eds) .eds-hv-lb__btn{width:40px;height:40px;padding:9px;border-radius:50%;background:transparent;transition:background .2s}
.eds-hv-lb:not(#eds) .eds-hv-lb__btn:hover{background:rgba(255,255,255,.14)}
.eds-hv-lb:not(#eds) .eds-hv-lb__mute .i-off{display:none}
.eds-hv-lb:not(#eds).is-muted .eds-hv-lb__mute .i-on{display:none}
.eds-hv-lb:not(#eds).is-muted .eds-hv-lb__mute .i-off{display:block}
.eds-hv-lb:not(#eds) .eds-hv-lb__vol{width:84px;height:18px;--v:100%}
.eds-hv-lb:not(#eds) .eds-hv-lb__vol::-webkit-slider-runnable-track{background:linear-gradient(#fff,#fff) 0 50%/var(--v) 3px no-repeat,linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,.25)) 0 50%/100% 3px no-repeat}
.eds-hv-lb:not(#eds) .eds-hv-lb__vol::-moz-range-track{background:linear-gradient(#fff,#fff) 0 50%/var(--v) 3px no-repeat,linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,.25)) 0 50%/100% 3px no-repeat}
.eds-hv-lb:not(#eds) .eds-hv-lb__vol::-webkit-slider-thumb{transform:scale(1);width:12px;height:12px;margin-top:3px}
.eds-hv-lb:not(#eds) .eds-hv-lb__vol::-moz-range-thumb{transform:scale(1);width:12px;height:12px}
.eds-hv-lb:not(#eds) .eds-hv-lb__time{margin-left:8px;font-size:.875rem;color:rgba(255,255,255,.8);font-variant-numeric:tabular-nums;white-space:nowrap}
.eds-hv-lb:not(#eds) .eds-hv-lb__fs{margin-left:auto}
@media (hover:none){.eds-hv-lb:not(#eds) .eds-hv-lb__vol{display:none}}
@media (max-width:767px){
	.eds-hv-lb:not(#eds) .eds-hv-lb__stage{width:100vw;border-radius:0;box-shadow:none}
	.eds-hv-lb:not(#eds) .eds-hv-lb__close{top:10px;right:10px;width:40px;height:40px;padding:11px}
	.eds-hv-lb:not(#eds) .eds-hv-lb__bar{padding:28px 10px 6px}
	.eds-hv-lb:not(#eds) .eds-hv-lb__big{width:68px;height:68px;margin:-34px 0 0 -34px;padding:22px}
	.eds-hv-lb:not(#eds) .eds-hv-lb__time{font-size:.8125rem;margin-left:2px}
}
@media (max-width:767px) and (orientation:landscape){.eds-hv-lb:not(#eds) .eds-hv-lb__stage{width:auto;height:100svh}}
@media (prefers-reduced-motion:reduce){.eds-hv-lb:not(#eds)[open],.eds-hv-lb:not(#eds)[open] .eds-hv-lb__stage{animation:none}.eds-hv-bg video{transition:none}}
