/* Custom video controls (zk-video.php, Boss 21. 11. 2026): amber circle with the arrow on the poster; while playing a thin bar —
   play/pause, time, progress line with an amber fill, sound, full screen. Buttons are 34px circles like the language circles
   (play/pause amber, sound and full screen light grey, hover amber); icons drawn as the cart icon (24px grid, stroke 2). */
.zk-video{position:relative;overflow:hidden;background:#000;line-height:0;outline:0;-webkit-tap-highlight-color:transparent}
.zk-video video{cursor:pointer}
html.zk-keyboard-input .zk-video:focus-visible{outline:2px solid #FFBE55;outline-offset:5px}
.zk-video button{appearance:none;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;line-height:0;cursor:pointer}
/* Big play button */
.zk-video .zk-video-big{position:absolute;left:50%;top:50%;z-index:2;display:flex;align-items:center;justify-content:center;width:88px;height:88px;margin:-44px 0 0 -44px;border-radius:50%;background:rgba(255,190,85,.82);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#000;transition:transform .25s cubic-bezier(.2,.7,.2,1),opacity .2s ease,background-color .2s ease}
.zk-video .zk-video-big svg{width:34px;height:34px}
@media(hover:hover){.zk-video .zk-video-big:hover{transform:scale(1.07);background:#FFBE55}}
.zk-video.is-playing .zk-video-big{opacity:0;pointer-events:none;transform:scale(.9)}
/* Bar */
.zk-video .zk-video-bar{position:absolute;left:0;right:0;bottom:0;z-index:1;display:flex;align-items:center;gap:12px;padding:56px 20px 20px;background:linear-gradient(to top,rgba(0,0,0,.6),rgba(0,0,0,0));color:#FFFFFF;line-height:1;opacity:0;pointer-events:none;transition:opacity .25s ease}
.zk-video.is-started .zk-video-bar{opacity:1;pointer-events:auto}
.zk-video.is-started.is-idle:not(.is-seeking):not(:focus-within) .zk-video-bar{opacity:0;pointer-events:none}
.zk-video.is-idle.is-playing video{cursor:none}
.zk-video .zk-video-button{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:rgba(191,191,191,.82);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#000;transition:background-color .45s cubic-bezier(.16,1,.3,1)}
.zk-video .zk-video-toggle{background:rgba(255,190,85,.82)}
.zk-video .zk-video-mute{margin-left:4px}
.zk-video .zk-video-button svg{width:16px;height:16px}
@media(hover:hover){.zk-video .zk-video-button:hover{background:#FFBE55}}
html.zk-keyboard-input .zk-video :is(.zk-video-button,.zk-video-big,.zk-video-track):focus-visible{outline:2px solid #FFFFFF;outline-offset:3px}
.zk-video .zk-video-time{flex:none;min-width:34px;font:500 12px/1 var(--wp--preset--font-family--google-sans),Europa,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.04em;text-align:center}
/* Progress: an 18px hit area around a 2px line */
.zk-video .zk-video-track{position:relative;flex:1 1 auto;display:flex;align-items:center;height:18px;cursor:pointer;touch-action:none;outline:0}
.zk-video .zk-video-line{position:relative;display:block;width:100%;height:2px;background:rgba(255,255,255,.3)}
.zk-video :is(.zk-video-loaded,.zk-video-fill){position:absolute;left:0;top:0;height:100%;width:0}
.zk-video .zk-video-loaded{background:rgba(255,255,255,.35)}
.zk-video .zk-video-fill{background:#FFBE55}
.zk-video .zk-video-knob{position:absolute;top:50%;left:0;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:#FFBE55;transform:scale(0);transition:transform .15s ease}
.zk-video .zk-video-track:hover .zk-video-knob,.zk-video.is-seeking .zk-video-knob,.zk-video .zk-video-track:focus-visible .zk-video-knob{transform:scale(1)}
/* Full screen: the whole figure, so the controls stay */
.zk-video:fullscreen{width:100vw;height:100vh;max-width:none;margin:0}
.zk-video:fullscreen video{width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:contain}
.zk-video:-webkit-full-screen{width:100vw;height:100vh;max-width:none;margin:0}
.zk-video:-webkit-full-screen video{width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:contain}
@media(max-width:767px){
 .zk-video .zk-video-big{width:64px;height:64px;margin:-32px 0 0 -32px}
 .zk-video .zk-video-big svg{width:26px;height:26px}
 .zk-video .zk-video-bar{gap:6px;padding:30px 8px 8px}
 .zk-video .zk-video-mute{margin-left:0}
 .zk-video .zk-video-time{min-width:30px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.zk-video *{transition:none!important}}
/* Subtitles (Boss 27. 11. 2026): own text layer, white text on a dark band per line, bottom centre; lifted above the bar
   while the bar is visible. */
.zk-video .zk-video-subs{position:absolute;left:50%;bottom:28px;z-index:1;display:flex;flex-direction:column;align-items:center;gap:2px;width:max-content;max-width:86%;transform:translateX(-50%);pointer-events:none;text-align:center;transition:bottom .25s ease}
.zk-video .zk-video-subs span{display:inline-block;padding:3px 10px 4px;background:rgba(0,0,0,.72);color:#FFFFFF;font:400 clamp(14px,1.6vw,24px)/1.3 var(--wp--preset--font-family--europa),Europa,sans-serif}
.zk-video.is-started:not(.is-idle) .zk-video-subs,.zk-video.is-started:focus-within .zk-video-subs,.zk-video.is-seeking .zk-video-subs{bottom:86px}
.zk-video.is-full .zk-video-subs span{font-size:clamp(18px,2.2vw,36px)}
.zk-video .zk-video-cc.is-off{opacity:.55}
@media(max-width:767px){
 .zk-video .zk-video-subs{bottom:12px;max-width:94%}
 .zk-video .zk-video-subs span{padding:2px 6px 3px;font-size:12px}
 .zk-video.is-started:not(.is-idle) .zk-video-subs,.zk-video.is-started:focus-within .zk-video-subs,.zk-video.is-seeking .zk-video-subs{bottom:50px}
}
