/* Shared video controls: kept outside the picture, including native container fullscreen. */
.lt-video-controls[hidden]{display:none!important}
.lt-video-active{box-sizing:border-box;display:flex;flex-direction:column;min-width:0;min-height:0;background:#05090f;isolation:isolate}
.lt-video-active>.lt-video-media{box-sizing:border-box;position:relative;flex:0 1 auto;min-height:32px;min-width:0;width:100%;aspect-ratio:auto!important;border-radius:0!important;overflow:hidden;background:#000}
.lt-video-media iframe{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;border:0!important}
.lt-video-controls{box-sizing:border-box;position:relative;flex:0 0 auto;padding:12px;background:linear-gradient(135deg,#0c1729,#12223b);border-top:1px solid #34435c;color:#f7f9ff;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.4;z-index:2}
.lt-video-buttons{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.lt-video-controls .lt-video-button{box-sizing:border-box;appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:54px;width:100%;padding:10px 14px;border:1px solid #53739f;border-radius:12px;background:#1a2f4c;color:#fff;cursor:pointer;box-shadow:0 4px 14px #0003;font:inherit;line-height:1.25;text-align:left;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.lt-video-controls .lt-video-sound{background:linear-gradient(115deg,#1753a2,#274dcc);border-color:#6ba6ff}
.lt-video-controls .lt-video-sound-active{background:linear-gradient(115deg,#125940,#19634e);border-color:#67cda3}
.lt-video-button>svg{flex:0 0 24px;width:24px;height:24px;max-width:none}
.lt-video-button>span{display:block;min-width:0}
.lt-video-button strong{display:block;font-size:15px;font-weight:750;color:#fff;overflow-wrap:anywhere}
.lt-video-button small{display:block;margin-top:3px;font-size:11px;font-weight:450;color:#e0eaff;overflow-wrap:anywhere}
.lt-video-button i{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#b6c6e1}
.lt-video-sound-active i{background:#99f4c9;box-shadow:0 0 0 3px #99f4c921}
.lt-video-controls .lt-video-button:focus-visible{outline:3px solid #aaceff;outline-offset:3px}
.lt-video-controls .lt-video-button:active{transform:translateY(1px)}
@media(hover:hover){.lt-video-controls .lt-video-button:hover{filter:brightness(1.14)}}
.lt-video-controls .lt-video-status{margin:8px 0 0;padding:0;border:0;text-align:center;color:#c2d0e3;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.lt-video-controls .lt-video-warning{color:#ffe1a6;font-weight:600}
/* Keep the main controls visible even when the older footer has many links. */
#modal.show .box{display:flex;flex-direction:column;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
#modal .box>.bar{flex:0 0 auto}
#modal .box>.bar .ttl{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#modal .box>.foot{flex:0 0 auto;max-height:22vh;overflow:auto;overscroll-behavior:contain}
#modal .lt-video-stage{min-height:0;min-width:0}
#video-dialog .video-dialog-panel{display:flex;flex-direction:column;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto}
#video-dialog .video-dialog-copy,#video-dialog .video-dialog-actions{flex:0 0 auto}
#video-dialog .video-dialog-actions{max-height:22vh;overflow:auto;overscroll-behavior:contain}
#video-dialog .lt-video-stage{border:1px solid #34435c;border-radius:16px;overflow:hidden}
#video-dialog .video-dialog-copy h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Fullscreen does not crop/rotate the pixels: Vimeo fits them to the available rectangle. */
.lt-video-active:fullscreen{width:100%;height:100%;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;padding:0!important;display:flex!important;flex-direction:column}
.lt-video-active:-webkit-full-screen{width:100%;height:100%;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;padding:0!important;display:flex!important;flex-direction:column}
.lt-video-active.lt-video-in-fullscreen>.lt-video-media,.lt-video-active.lt-video-pagefull>.lt-video-media{flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;border:0!important;border-radius:0!important}
.lt-video-in-fullscreen .lt-video-controls,.lt-video-pagefull .lt-video-controls{padding-bottom:max(10px,env(safe-area-inset-bottom));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
.lt-video-in-fullscreen .lt-video-buttons,.lt-video-pagefull .lt-video-buttons{max-width:900px;margin-inline:auto}
.lt-video-active.lt-video-pagefull{position:fixed!important;inset:0!important;width:100%!important;height:100vh!important;height:var(--lt-video-viewport-height,100dvh)!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;z-index:2147483646!important}
.lt-video-full-ancestor{transform:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;contain:none!important;overflow:visible!important;will-change:auto!important}
#video-dialog.lt-video-pagefull-host,#modal.lt-video-pagefull-host{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important}
@media(max-width:540px){
 .lt-video-controls{padding:9px}
 .lt-video-buttons{gap:8px}
 .lt-video-controls .lt-video-button{min-height:54px;padding:9px 8px;gap:7px;border-radius:10px}
 .lt-video-button strong{font-size:13px}
 .lt-video-button small{font-size:10px}
 .lt-video-button>svg{width:21px;height:21px;flex-basis:21px}
 .lt-video-controls .lt-video-status{font-size:10px;margin-top:6px}
 #video-dialog .video-dialog-copy p:not(.eyebrow){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
@media(max-height:520px){
 .lt-video-controls{padding:6px 10px}
 .lt-video-controls .lt-video-button{min-height:44px;padding:7px 10px}
 .lt-video-button small{display:none}
 .lt-video-controls .lt-video-status:not(.lt-video-warning){display:none}
 #video-dialog .video-dialog-copy{padding:2px 42px 6px 2px}
 #video-dialog .video-dialog-copy h2{font-size:15px;line-height:1.25;margin:0;-webkit-line-clamp:1}
 #video-dialog .video-dialog-copy p{display:none!important}
 #modal .box>.bar{padding:6px 10px}
 #modal .box>.foot{max-height:60px;padding:6px 8px}
 #video-dialog .video-dialog-actions{padding-top:6px;max-height:54px}
}
@media(prefers-reduced-motion:reduce){.lt-video-button{transition:none!important}}
