/* Promo clip window and bar (home, ru and es). Tokens of the release look (style.base.css). Nothing is put over the top third of the picture (the subtitles are burned in there). */
.vm{box-sizing:border-box;padding:16px;margin:auto;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:visible;border:1px solid var(--line);border-radius:16px;background:var(--surf);color:var(--ink);box-shadow:0 24px 64px rgba(0,0,0,.35);opacity:0;transform:scale(.92);transition:opacity .16s ease-in,transform .16s ease-in}
.vm.vm-in{opacity:1;transform:none;transition:opacity .24s cubic-bezier(.2,.8,.2,1),transform .24s cubic-bezier(.2,.8,.2,1)}
.vm::backdrop{background:rgba(10,11,20,.72);opacity:0;transition:opacity .2s}
.vm.vm-in::backdrop{opacity:1}
.vm-box{display:grid;grid-template-columns:auto 280px;gap:24px;align-items:start}
.vm-frame{position:relative;height:min(70dvh,720px);aspect-ratio:9/16;border-radius:12px;background:#000;overflow:hidden}
.vm-frame video{display:block;width:100%;height:100%;object-fit:contain;background:#000;cursor:pointer}
.vm-sound .vm-frame video{cursor:auto}
.vm-badge{position:absolute;left:12px;bottom:12px;width:40px;height:40px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;pointer-events:none}
.vm-prog{position:absolute;left:0;right:0;bottom:0;height:3px;pointer-events:none}
.vm-prog i{display:block;height:100%;background:rgba(255,255,255,.85);transform:scaleX(0);transform-origin:0 50%}
.vm-sound .vm-badge,.vm-sound .vm-prog{display:none}
.vm-col{display:flex;flex-direction:column;align-items:stretch;gap:14px;min-width:0;max-height:min(70dvh,720px);overflow:auto}
.vm-x{align-self:flex-end;flex:none;width:48px;height:48px;display:grid;place-items:center;border:0;border-radius:12px;background:var(--surf2);color:var(--ink);cursor:pointer}
.vm-x:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.vm-h{font-size:1.25rem;line-height:1.25;font-weight:700;color:var(--ink);margin:0}
.vm-go,.vm-snd{width:100%;min-height:48px}
.vm-hint{margin:0;font-size:.95rem;line-height:1.4;color:var(--muted)}
.vm-sound .vm-snd,.vm-sound .vm-hint{display:none}
.vm-live{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.vm-tl{color:var(--ink);text-decoration:underline;text-underline-offset:3px;font-weight:600}
.vm .promo-cap{margin:0;padding-top:12px;border-top:1px solid var(--line);font-size:.875rem;line-height:1.5;color:var(--muted)}
.vm .promo-cap a{color:var(--muted)}
/* phone, narrow or low window: the picture alone on a dark background, the cross above the picture */
@media (max-width:899px),(max-height:639px){
  .vm{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;max-width:100vw;max-height:100dvh;overflow:auto;color:var(--ondark)}
  .vm::backdrop{background:rgba(0,0,0,.9)}
  .vm-box{display:flex;flex-direction:column;align-items:center;gap:16px;padding-top:calc(64px + env(safe-area-inset-top,0px) - 16px)}
  .vm-frame{height:auto;width:min(calc(100vw - 32px),calc((100dvh - 152px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * 9 / 16))}
  .vm-col{display:contents}
  .vm-x{position:fixed;top:calc(8px + env(safe-area-inset-top,0px));right:8px;z-index:2;background:rgba(255,255,255,.12);color:#fff}
  .vm-h{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .vm-go,.vm-snd{width:auto;padding:0 22px}
  .vm-hint{color:var(--ondark);text-align:center}
  .vm-tl{color:var(--ondark);font-size:.875rem;font-weight:400}
  .vm .promo-cap{width:min(calc(100vw - 32px),560px);box-sizing:border-box;margin:0 0 calc(16px + env(safe-area-inset-bottom,0px));border-top-color:rgba(238,240,255,.16);color:var(--ondark)}
  .vm .promo-cap a{color:var(--ondark)}
}
/* small bar */
.vp{box-sizing:border-box;position:fixed;z-index:26;left:16px;right:56px;bottom:calc(68px + env(safe-area-inset-bottom,0px));height:48px;display:flex;background:var(--surf);border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 16px rgba(15,18,34,.18);opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s}
.vp[hidden],.vp.vp-kb{display:none}
.vp[data-on]{opacity:1;transform:none}
.vp button{font:inherit;color:var(--ink);background:none;border:0;cursor:pointer}
.vp-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:0 12px;text-align:left;font-weight:600;font-size:.95rem;border-radius:12px 0 0 12px}
.vp-ico{flex:none;width:28px;height:28px;border-radius:50%;background:var(--pri);color:var(--onpri);display:grid;place-items:center}
.vp-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vp-x{flex:none;width:48px;border-left:1px solid var(--line);color:var(--muted);display:grid;place-items:center;border-radius:0 12px 12px 0}
.vp button:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
@media (min-width:900px){
  .vp{left:max(28px,calc((100vw - 1120px) / 2 + 28px));right:auto;bottom:26px;max-width:360px}
  body.vp-on{padding-bottom:96px}
}
@media (prefers-reduced-motion:reduce){
  .vm,.vm.vm-in,.vm::backdrop,.vp{transition:none}
  .vm{transform:none}
  .vp{transform:none}
}
@media print{.vm,.vp{display:none}}
