:root{
  --ratioW: 1080;
  --ratioH: 2120;

  /* proporções das zonas */
  --videoPart: 1920;
  --apiPart: 200;

  --bg: #0b0b0c;
  --panel: #111114;
  --border: rgba(255,255,255,.10);
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  background:#000;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

/* zona api continua responsiva (já tens) */
.zone-api{
  overflow: hidden;
  position: relative;
}

/* Wrapper que vamos escalar */
.info-scale{
  width: 1080px;   /* base original */
  height: 200px;   /* base original */
  transform-origin: top left;
  will-change: transform;
}

/* O iframe desenha sempre no “tamanho real” */
.info-frame{
  width: 1080px;
  height: 200px;
  border: 0;
  display: block;
}

/* O MUPI mantém SEMPRE a proporção 1080x1920 */
.mupi{
  aspect-ratio: calc(var(--ratioW) / var(--ratioH)); /* 9:16 */
  height: min(100vh, calc(100vw * (var(--ratioH) / var(--ratioW))));
  width:  min(100vw,  calc(100vh * (var(--ratioW) / var(--ratioH))));

  background: var(--bg);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
}

/* Zonas em proporção (1720/1920 e 200/1920) */
.zone-video{
  flex: calc(var(--videoPart)) 0 0;
  position:relative;
  overflow:hidden;
  background:#000;
}

.zone-api{
  flex: calc(var(--apiPart)) 0 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  overflow:hidden;
}

/* Vídeo preenche a zona */
.video{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center center;
  display:block;
}

/* iframe do rodapé */
.info-frame{
  width:100%;
  height:100%;
  border:0;
  display:block;
  overflow:hidden;
}