:root{
  --w: 1080px;
  --h: 1920px;
  --video-h: 1720px;
  --api-h: 200px;

  --bg: #0b0b0c;
  --panel: #111114;
  --text: #ffffff;
  --muted: rgba(255,255,255,.75);
  --muted2: rgba(255,255,255,.55);
  --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;
}

/* “Canvas” com dimensões fixas */
.mupi{
  width: var(--w);
  height: var(--h);
  background: var(--bg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

/* Zonas fixas */
.zone{
  width: 100%;
  overflow: hidden;
}
.zone-video{ height: var(--video-h); position: relative; background:#000; }
.zone-api{
  height: var(--api-h);
  background: var(--panel);
  border-top: 1px solid var(--border);
  display:flex;
  flex-direction:column;
}

/* Vídeo */
.zone-video{
  width: 100%;
  height: 1720px;     /* altura fixa da zona vídeo */
  position: relative;
  overflow: hidden;
  background: #000;
}

.video{
  width: 100%;
  height: 100%;
  object-fit: cover;   /* preenche completamente */
  object-position: center center;
  display: block;
}

/* Fallback vídeo */
.video-fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #000;
}
.hidden{ display:none !important; }

.fallback-inner{
  text-align:center;
  color: var(--text);
}
.fallback-title{
  font-size: 42px;
  font-weight: 700;
}
.fallback-sub{
  margin-top: 10px;
  font-size: 22px;
  color: var(--muted);
}

/* Header API */
.api-wrap{
  height: 72px;
  padding: 14px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid var(--border);
}
.api-title{
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.api-sub{
  font-size: 18px;
  margin-top: 4px;
  color: var(--muted2);
}
.api-clock{
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
}

/* Conteúdo API */
.api-content{
  flex: 1;
  padding: 14px 22px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  color: var(--text);
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.label{
  font-size: 22px;
  color: var(--muted);
  min-width: 160px;
}
.value{
  font-size: 22px;
  font-weight: 600;
  text-align:right;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  flex:1;
}
.info-frame{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  overflow: hidden;
}