:root { --fundo: #0e0d14; --painel: #17151f; --linha: #2a2735; --texto: #ecebf2; --suave: #9a97a8; --acento: #8b5cf6; --vermelho: #ef4444; --verde: #22c55e; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: #c4b5fd; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: #2a2638; border: 1px solid #3a3550; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
button:hover { background: #343048; }
button.prim { background: var(--acento); border-color: var(--acento); color: #fff; }
button.perigo { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
button.ativo { outline: 2px solid var(--acento); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { background: #0f0e16; border: 1px solid var(--linha); border-radius: 8px; padding: 8px 10px; width: 100%; }
textarea { min-height: 70px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--suave); margin: 10px 0 4px; }
.caixa { background: var(--painel); border: 1px solid var(--linha); border-radius: 12px; padding: 16px; }
.linha { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.suave { color: var(--suave); font-size: 13px; }
.selo { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; background: #2a2638; }
.selo.vivo { background: var(--vermelho); color: #fff; }
.selo.ok { background: #14532d; color: #bbf7d0; }
.centro { max-width: 520px; margin: 8vh auto; padding: 0 16px; }
h1 { font-size: 22px; margin: 0 0 4px; } h2 { font-size: 15px; margin: 0 0 8px; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }

/* cena 16:9 */
.cena { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--cor, #14121f); overflow: hidden; container-type: inline-size; border-radius: 6px;
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.07), transparent 60%); }
.cena-titulo { position: absolute; left: 3%; top: 3.4%; font-weight: 700; font-size: 2.6cqw; letter-spacing: .01em; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); white-space: nowrap; overflow: hidden; max-width: 70%; text-overflow: ellipsis; }
.cena-logo { position: absolute; right: 3%; top: 2.6%; height: 8.5%; max-width: 22%; object-fit: contain; }
.cena-tile { position: absolute; border-radius: 1.1cqw; overflow: hidden; background: #24212f; transition: left .35s, top .35s, width .35s, height .35s; box-shadow: 0 .4cqw 1.6cqw rgba(0,0,0,.35); }
.cena-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.cena-tile.com-video video { display: block; }
.cena-avatar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5cqw; font-weight: 700; color: #cfc8ff; }
.cena-tile.pequeno .cena-avatar { font-size: 2.4cqw; }
.cena-nome { position: absolute; left: 4%; bottom: 5%; background: rgba(0,0,0,.6); color: #fff; padding: .25cqw .8cqw; border-radius: .5cqw; font-size: 1.35cqw; font-weight: 600; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cena-tile.pequeno .cena-nome { font-size: 1cqw; }
.cena-mudo { position: absolute; right: 4%; bottom: 5%; font-size: 1.4cqw; display: none; background: rgba(0,0,0,.6); border-radius: .5cqw; padding: .15cqw .4cqw; }
.cena-tile.mudo .cena-mudo { display: block; }
.cena-tile.falando { box-shadow: 0 0 0 .3cqw var(--acento), 0 .4cqw 1.6cqw rgba(0,0,0,.35); }
.cena-faixa { position: absolute; left: 3%; bottom: 7%; max-width: 70%; background: #fff; color: #111; font-weight: 700; font-size: 2cqw; padding: .7cqw 1.6cqw; border-left: .8cqw solid var(--acento); border-radius: .4cqw; transform: translateX(-120%); opacity: 0; transition: transform .45s ease, opacity .45s; z-index: 5; box-shadow: 0 .4cqw 1.6cqw rgba(0,0,0,.35); }
.cena-faixa.on { transform: translateX(0); opacity: 1; }

/* estúdio */
.estudio { display: grid; grid-template-columns: 1fr 360px; gap: 16px; padding: 16px; min-height: 100vh; }
.estudio .palco-area { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lateral { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: calc(100vh - 32px); }
.pessoa { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--linha); }
.pessoa:last-child { border-bottom: 0; }
.pessoa .nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa button { padding: 4px 10px; font-size: 13px; }
.grav { border-top: 1px solid var(--linha); padding: 10px 0; }
.grav:first-child { border-top: 0; }
.grav video { width: 100%; border-radius: 8px; margin-top: 6px; background: #000; }
.grav details { margin-top: 6px; } .grav summary { cursor: pointer; color: #c4b5fd; }
.grav pre { white-space: pre-wrap; background: #0f0e16; padding: 8px; border-radius: 8px; font-size: 13px; }
.controles { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.controles select { width: auto; max-width: 220px; }
.copiar { display: flex; gap: 6px; } .copiar input { font-size: 12px; }
@media (max-width: 900px) { .estudio { grid-template-columns: 1fr; } .lateral { max-height: none; } }
