.wvp {
  --wvp-ink: var(--ink, #1d2130);
  --wvp-text: var(--text, #626678);
  --wvp-line: var(--border, #dbdcea);
  --wvp-bg: var(--card, #fff);
  --wvp-accent: #ff9b57;
  --wvp-stage: #15151c;
  color: var(--wvp-ink);
  container-type: inline-size;
  width: 100%;
}
.wvp *, .wvp *::before, .wvp *::after { box-sizing: border-box; }
.wvp [hidden] { display: none !important; }
.wvp-layout { display: grid; grid-template: "intro" "stage" "versions" / minmax(0, 1fr); gap: 18px; }
.wvp-intro { grid-area: intro; }
.wvp-stage {
  grid-area: stage;
  align-self: center;
  justify-self: center;
  width: min(100%, 346px);
  isolation: isolate;
  background: var(--wvp-stage);
  border-radius: 20px;
  color: #fff;
  padding: 5px;
  overflow: hidden;
  box-shadow: 0 1px 3px #13132028, 0 11px 28px #14122220;
}
.wvp-screen { position: relative; border-radius: 16px; overflow: hidden; background: #101117; aspect-ratio: 9/16; }
.wvp .wvp-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #101117; border: 0; }
.wvp-stage:focus-within { outline: 2px solid #bc680c; outline-offset: 4px; }
.wvp-versions { grid-area: versions; min-width: 0; }
.wvp-links { display: grid; gap: 8px; }
.wvp .wvp-version {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  border: 1px solid var(--wvp-line);
  border-radius: 12px;
  padding: 8px 14px 8px 8px;
  min-height: 58px;
  background: var(--wvp-bg);
  color: var(--wvp-ink);
  text-align: left;
  text-decoration: none;
  line-height: 1.3;
}
.wvp-version:hover { border-color: #9e8b7c; }
.wvp-version:focus-visible, .wvp button:focus-visible, .wvp input:focus-visible, .wvp-video:focus-visible {
  outline: 3px solid #b95709; outline-offset: 3px;
}
.wvp .wvp-version[aria-current="true"] { background: #211d2a; border-color: #211d2a; color: #fff6ed; }
.wvp-version img { width: 58px; height: 48px; border-radius: 6px; display: block; object-fit: cover; object-position: 50% 34%; }
.wvp-version-text { min-width: 0; }
.wvp-version strong { display: block; font-family: inherit; line-height:1.28; font-size: 15px; font-weight: 750; }
.wvp-version small { display: block; color: var(--wvp-text); font-size: 12px; line-height: 1.45; margin-top: 2px; }
.wvp-version[aria-current="true"] small { color: #d8ceda; }
.wvp-version::after { content: ''; justify-self: end; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid #958b94; }
.wvp-version[aria-current="true"]::after { width: 13px; height: 13px; border: 0; background: linear-gradient(0deg,var(--wvp-accent),var(--wvp-accent)) 0 55%/3px 7px, linear-gradient(0deg,var(--wvp-accent),var(--wvp-accent)) 5px 50%/3px 13px, linear-gradient(0deg,var(--wvp-accent),var(--wvp-accent)) 10px 60%/3px 9px; background-repeat:no-repeat; }
.wvp-version:not(:has(img)) .wvp-version-text { grid-column: 1/3; }
.wvp-status { position: absolute; bottom: 16px; inset-inline: 12px; padding: 10px 12px; color: white; background: #16151ce8; font-size: 13px; }
.wvp-status a { color: white; text-decoration: underline; }
.wvp button.wvp-hero {
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:grid;place-items:center;width:62px;height:62px;padding:0;
  border:1px solid #fff9;border-radius:50%;background:#17151bc9;color:#fff;cursor:pointer;
  box-shadow:0 3px 22px #0004;
}
.wvp .wvp-hero svg { width:24px;height:24px;margin-left:3px; }
.wvp button.wvp-hero:hover { background:#231f2bf5; }
.wvp-transport { padding: 4px 10px 1px; font: 13px/1.25 'DM Sans', system-ui, sans-serif; color: #fff; }
.wvp .wvp-seek {
  appearance:none; -webkit-appearance:none; display:block; border:0; outline:0; height:22px; width:100%; min-width:0;
  padding:0; margin:0; background:transparent; border-radius:2px; cursor:pointer;
}
.wvp-seek::-webkit-slider-runnable-track { height:4px; border-radius:3px; background:linear-gradient(to right,var(--wvp-accent) var(--played,0%),#5b585f var(--played,0%)); }
.wvp-seek::-moz-range-track { height:4px; border-radius:3px; background:#5b585f; }
.wvp-seek::-moz-range-progress { height:4px; background:var(--wvp-accent); }
.wvp-seek::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; background:var(--wvp-accent); width:12px; height:12px; border-radius:50%; border:0; margin-top:-4px; }
.wvp-seek::-moz-range-thumb { background:var(--wvp-accent); width:12px; height:12px; border-radius:50%; border:0; }
.wvp-buttons { display:flex; align-items:center; gap:2px; }
.wvp button.wvp-btn { color:#fff; width:40px; height:40px; display:grid; place-items:center; padding:0; background:transparent; border:0; border-radius:7px; cursor:pointer; }
.wvp button.wvp-btn:hover, .wvp button.wvp-btn[aria-pressed="true"] { background:#373139; }
.wvp button.wvp-btn[aria-pressed="true"] { color:var(--wvp-accent); }
.wvp-btn svg { width:19px;height:19px; }
.wvp-clock { white-space:nowrap; font-size:12px; color:#b4b0b8; font-variant-numeric: tabular-nums; }
.wvp-now { color:#fff; }
.wvp-spacer { flex:1; }
.wvp :is(.wvp-btn,.wvp-hero,.wvp-seek,.wvp-video):focus-visible { outline:2px solid var(--wvp-accent); outline-offset:-2px; }
.wvp-compact .wvp-stage { width:min(100%,270px,calc(50vh * .5625)); min-width:min(215px,100%); }
.wvp-compact.wvp-wide .wvp-stage { width:min(100%,500px); }
.wvp-compact .wvp-links { display:flex; flex-wrap:wrap; justify-content:center; }
.wvp-compact .wvp-version { display:flex; min-height:38px; padding:8px 11px; }
.wvp-compact .wvp-version img, .wvp-compact .wvp-version::after, .wvp-compact .wvp-version small { display:none; }
.wvp-compact .wvp-version strong { font-size:13px; }
.wvp-compact .wvp-layout { gap:10px; }
.wvp-compact .wvp-transport { padding-inline:4px; }
.wvp-compact button.wvp-btn {width:33px;height:35px;}
.wvp-single .wvp-versions {display:none;}
.wvp-stage:fullscreen { display:flex; flex-direction:column; width:100%; height:100%; border-radius:0; padding:0; justify-content:center; }
.wvp-stage:fullscreen .wvp-screen { flex:1; width:100%; min-height:0; border-radius:0; }
.wvp-stage:fullscreen .wvp-transport { flex:none; width:min(960px,100%); align-self:center; padding:2px 18px 10px; }
@container (min-width: 640px) {
  .wvp-layout { grid-template: ". stage" 1fr "intro stage" auto "versions stage" auto ". stage" 1fr / minmax(0,1.15fr) minmax(0,.85fr); column-gap:clamp(32px,6cqw,90px); row-gap:0; }
  .wvp-intro { margin-bottom:22px; }
  .wvp-versions { align-self:center; }
  .wvp-stage { width:min(100%,352px); }
  .wvp-compact .wvp-layout { display:flex;flex-direction:column;align-items:center;gap:10px; }
}
@container (max-width: 639px) {
  .wvp:not(.wvp-compact) .wvp-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wvp:not(.wvp-compact) .wvp-version { display:block; padding:10px 11px; }
  .wvp:not(.wvp-compact) .wvp-version img, .wvp:not(.wvp-compact) .wvp-version::after { display:none; }
  .wvp .wvp-version strong { font-size:14px; }
  .wvp-stage { width:min(100%,330px,calc(68svh * .5625)); min-width:min(250px,100%); }
}
@media (prefers-reduced-motion: no-preference) {
  .wvp-version,.wvp-hero { transition:background-color .16s,border-color .16s; }
}
