/* MSUPTECH_VIDEO_HD_V1 + MSUPTECH_FALAR_PELA_CAMERA_V1 — barra do visor da câmera (HD e "segure para falar"). */
.aovivo-video{display:block;width:100%;max-height:100%;background:#000;object-fit:contain}
.aovivo-barra{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 4px 2px}
.aovivo-barra button{min-height:44px;padding:0 16px;border-radius:44px;font-weight:700;font-size:14px;border:1px solid rgba(255,255,255,.35);background:rgba(10,20,34,.75);color:#fff;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none}
.aovivo-hd[aria-pressed=true]{background:#0b78c2;border-color:transparent}
.aovivo-falar{flex:1 1 180px}
.aovivo-falar.falando{background:#c81e35;border-color:transparent;animation:aovivo-pulso 1s ease-in-out infinite}
@keyframes aovivo-pulso{50%{filter:brightness(1.25)}}
@media (prefers-reduced-motion:reduce){.aovivo-falar.falando{animation:none}}
.aovivo-rotulo{flex:1 1 100%;order:-1;font-size:13px;color:inherit;opacity:.85}
.aovivo-rotulo:empty{display:none}
.visor .aovivo-barra{color:#e8eef5}

/* MSUPTECH_VIDEO_WEBRTC_V3 (07/10/2026, Marcus: "a imagem ficou menor, foge da moldura; virou o celular de lado, tem
   que abrir do tamanho da tela; de pé volta ao normal"). O vídeo ocupa a moldura inteira, igual à foto de antes. */
.visor-imagem .aovivo-video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
.camera-ao-vivo .aovivo-video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover}
@media (orientation:landscape) and (max-height:540px){
  .visor{grid-template-rows:1fr}
  .visor .visor-topo,.visor .aovivo-barra{display:none}
  .visor-imagem{padding:0}
  .painel.aberto .camera-ao-vivo{position:fixed;inset:0;z-index:1000;aspect-ratio:auto;border-radius:0;border:0;padding:0;background:#000}
  .painel.aberto .camera-ao-vivo img,.painel.aberto .camera-ao-vivo .aovivo-video{object-fit:contain}
}

/* MSUPTECH_GRAVACOES_V1 (07/10/2026) — visual aprovado pelo Marcus (prévia v3): aço escovado CLARO com ícone gravado escuro,
   azul metálico = o que está escolhido / ação principal, vermelho metálico = ao vivo. Texturas reais do app (comum/hiper). */
.aovivo-barra{--rv-aco:url(/comum/hiper/tex-aco.webp);--rv-azul:url(/comum/hiper/tex-azul-metal.webp);--rv-gun:url(/comum/hiper/tex-gunmetal.webp)}
/* MSUPTECH_GRAVACOES_V5 (08/10, escolha do Marcus: opção B "cromo polido") — metal espelhado como botão de relógio;
   o escolhido em azul-marinho esmaltado, ao vivo em vinho. Nada de cor chapada. */
div.aovivo-barra .rv-metal,.aovivo-barra .aovivo-hd{background:linear-gradient(180deg,#fbfcfd 0%,#d5d9df 42%,#a2a9b3 52%,#e2e5e9 100%);border:1px solid #00000099;color:#1a1f27;text-shadow:0 1px 0 #ffffffa0;box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 #0000004d,0 4px 9px #000c;font-weight:700;cursor:pointer;text-decoration:none}
div.aovivo-barra .rv-metal:active{box-shadow:inset 0 2px 5px #0006,0 1px 2px #000c;filter:brightness(.96)}
div.aovivo-barra .rv-azul,div.aovivo-barra .rv-metal[aria-pressed=true],.aovivo-barra .aovivo-falar{background:linear-gradient(180deg,#2f4f88 0%,#1d3561 45%,#13264a 55%,#2a4a80 100%);border:1px solid #0a1a35;color:#fff;text-shadow:0 -1px 0 #0008;box-shadow:inset 0 1px 0 #ffffff55,inset 0 -1px 0 #0006,0 4px 9px #000c}
div.aovivo-barra .aovivo-modo button[aria-selected=true]{color:#14181e;text-shadow:0 1px 0 #ffffffb0;background:linear-gradient(180deg,#ffffff 0%,#d7dbe1 40%,#9aa1ab 52%,#e6e9ed 100%);box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 #00000040,0 3px 8px #000}
div.aovivo-barra .rv-vermelho,.aovivo-barra .aovivo-falar.falando{background:linear-gradient(180deg,#a9333b 0%,#7c1820 45%,#5e0f16 55%,#93262e 100%);border:1px solid #3a070b;color:#fff;text-shadow:0 -1px 0 #0008;box-shadow:inset 0 1px 0 #ffffff55,0 4px 9px #000c}
div.aovivo-barra .rv-ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
div.aovivo-barra .aovivo-modo{flex:1 1 100%;display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:14px;background:linear-gradient(180deg,#0c0e11,#15181d);box-shadow:inset 0 2px 5px #000,0 1px 0 #ffffff12}
div.aovivo-barra .aovivo-modo button{min-height:42px;border:0;background:none;color:#9aa3ad;font-weight:700;font-size:14px;border-radius:10px;padding:0 8px;touch-action:manipulation}
.aovivo-barra.revendo .aovivo-hd,.aovivo-barra.revendo .aovivo-falar{display:none}
div.aovivo-barra .aovivo-rever{flex:1 1 100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:4px 0 12px;color:#e9ecef}
div.aovivo-barra .aovivo-rever button,div.aovivo-barra .aovivo-rever a{touch-action:manipulation;min-height:0;font-size:inherit}
div.aovivo-barra .rv-tempo{display:grid;gap:4px}
div.aovivo-barra .rv-faixa{position:relative;height:18px;touch-action:none;cursor:pointer}
div.aovivo-barra .rv-faixa i{position:absolute;display:block}
div.aovivo-barra .rv-trilha{left:0;right:0;top:8px;height:2px;border-radius:1px;background:#ffffff26}
div.aovivo-barra .rv-feito{left:0;top:8px;height:2px;border-radius:1px;background:#fff;width:0}
div.aovivo-barra .rv-bola{top:3px;width:12px;height:12px;margin-left:-6px;border-radius:50%;left:0;background:radial-gradient(circle at 35% 30%,#fff,#c9ced3 60%,#8d949b);box-shadow:0 1px 3px #000}
div.aovivo-barra .rv-tempos{display:flex;justify-content:space-between;gap:8px;font:500 12px/1.2 ui-monospace,Consolas,monospace;color:#8f979f;font-variant-numeric:tabular-nums}
div.aovivo-barra .rv-tempos b{color:#fff;font-weight:600;text-align:center}
div.aovivo-barra .rv-toca{display:flex;align-items:center;justify-content:center;gap:12px}
div.aovivo-barra .rv-toca .rv-metal{min-height:46px;min-width:54px;border-radius:12px;display:grid;place-items:center;padding:0 12px;font-size:13px}
div.aovivo-barra .rv-toca .rv-play{width:58px;height:58px;border-radius:50%}
div.aovivo-barra .rv-toca .rv-vermelho{grid-auto-flow:column;gap:6px}
div.aovivo-barra .rv-toca .rv-vermelho i{width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 6px #fff}
div.aovivo-barra .rv-tit{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px}
div.aovivo-barra .rv-tit h4{margin:0;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8f979f}
div.aovivo-barra .rv-tit small{font-size:12px;color:#8f979f}.rv-tit small b{color:#e9ecef}
div.aovivo-barra .rv-rolo{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:none;scroll-snap-type:x proximity}
div.aovivo-barra .rv-rolo::-webkit-scrollbar{display:none}
div.aovivo-barra .rv-dia{flex:none;width:58px;border-radius:12px;padding:8px 0 9px;display:grid;justify-items:center;gap:2px;font-size:11px;scroll-snap-align:start}
div.aovivo-barra .rv-dia b{font-size:18px;line-height:1.1}
div.aovivo-barra .rv-hora,div.aovivo-barra .rv-min{padding:0;border:0;background:none;color:#e9ecef;text-align:left;min-width:0}
div.aovivo-barra .rv-hora{flex:none;width:112px;scroll-snap-align:start}
div.aovivo-barra .rv-foto{position:relative;display:block;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#111;border:1px solid #000;box-shadow:0 0 0 1px #ffffff14,0 3px 6px #000a}
div.aovivo-barra .rv-foto img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
div.aovivo-barra .rv-sem{position:absolute;inset:0;display:none;place-items:center;font-size:11px;color:#8f979f;text-align:center}
div.aovivo-barra .rv-foto.vazia img{display:none}.rv-foto.vazia .rv-sem{display:grid}
div.aovivo-barra .rv-h{position:absolute;left:6px;bottom:5px;font-weight:700;font-size:15px;color:#fff;text-shadow:0 1px 3px #000}
div.aovivo-barra .rv-t{display:block;margin-top:5px;font:500 12px/1 ui-monospace,Consolas,monospace;color:#8f979f;font-variant-numeric:tabular-nums}
div.aovivo-barra .rv-hora[aria-pressed=true] .rv-foto,div.aovivo-barra .rv-min[aria-pressed=true] .rv-foto{box-shadow:0 0 0 2px #4f9bff,0 3px 6px #000a}
div.aovivo-barra .rv-min[aria-pressed=true] .rv-t{color:#fff}
div.aovivo-barra .rv-minutos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
div.aovivo-barra .rv-salvar{border-radius:14px;padding:12px;display:grid;gap:10px;background:#121519;border:1px solid #1d2126}
div.aovivo-barra .rv-salvar p{margin:0;font-size:13px;color:#8f979f}.rv-salvar p b{color:#e9ecef}
div.aovivo-barra .rv-tam{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
div.aovivo-barra .rv-tam .rv-metal{border-radius:10px;padding:8px 0;font-size:13px}
div.aovivo-barra .rv-par{display:grid;grid-template-columns:1fr 1fr;gap:8px}
div.aovivo-barra .rv-par.rv-um{grid-template-columns:1fr;margin-top:8px} /* MSUPTECH_COFRE_V1 */
div.aovivo-barra .rv-par .rv-metal{border-radius:12px;padding:12px 8px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px}
div.aovivo-barra .rv-par .rv-ico{width:18px;height:18px}
div.aovivo-barra .rv-aviso:empty{display:none}
div.aovivo-barra .rv-vazio{margin:0;font-size:13px;color:#8f979f}
/* a fileira de fotos rola dentro dela: não pode alargar a tela */
div.aovivo-barra .aovivo-rever>*{min-width:0}
.aovivo-barra{min-width:0;max-width:100%}
.visor{grid-template-columns:minmax(0,1fr)}
/* visor do morador em pé: vídeo colado no topo, opções embaixo (rolando) — como na prévia aprovada */
@media (orientation:portrait){
  .visor{grid-template-rows:auto auto 1fr;overflow-y:auto;overscroll-behavior:contain}
  .visor .visor-imagem{aspect-ratio:16/9;width:100%;padding:0}
  .visor .aovivo-barra{padding:10px 14px calc(16px + env(safe-area-inset-bottom))}
}

/* MSUPTECH_MOSAICO_WEBRTC_V1 — vídeo leve por cima da foto do cartão; a foto continua por baixo (se o vídeo cair, ela aparece). */
.camera .mosaico-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;background:#000;pointer-events:none}
.camera.com-video .sinal,.camera.com-video .rotulo,.camera.com-video .fala-cam{z-index:2}

/* MSUPTECH_GRAVACOES_V2 — dica no lugar do vídeo até escolher o horário */
.rv-dica{position:absolute;inset:0;display:grid;place-items:center;padding:16px;text-align:center;color:#9aa3ad;font-size:14px;z-index:1}

/* MSUPTECH_GRAVACOES_V5 — ícone gravado no cromo */
div.aovivo-barra .rv-metal .rv-ico{filter:drop-shadow(0 1px 0 #ffffffb3)}
div.aovivo-barra .rv-azul .rv-ico,div.aovivo-barra .rv-metal[aria-pressed=true] .rv-ico,div.aovivo-barra .rv-vermelho .rv-ico{filter:drop-shadow(0 -1px 0 #0008)}
/* MSUPTECH_GRAVACOES_V5 (08/10, Marcus: "30 s, 1 min, 2 min, 5 min bem no meio") — o estilo do app alinha botão à esquerda */
div.aovivo-barra .rv-tam .rv-metal{display:grid;place-items:center;text-align:center;padding:9px 0;line-height:1}
div.aovivo-barra .rv-par .rv-metal{justify-content:center;text-align:center;white-space:nowrap;font-size:13px;padding:12px 6px}
/* MSUPTECH_REVER_REGUA_V1 (08/10/2026, Marcus: "feio, confuso; deixa a barrinha que vai com o dedo; embaixo o que passou").
   Ao vivo: abas e botões colados embaixo do vídeo (antes ficavam no meio do preto). */
.visor .aovivo-barra{align-content:flex-start;align-items:flex-start}
div.aovivo-barra .aovivo-rever{gap:14px}
div.aovivo-barra .rv-cab{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:0 2px}
div.aovivo-barra .rv-cab b{font-size:20px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;letter-spacing:.01em}
div.aovivo-barra .rv-cab small{font-size:12px;color:#8f979f;white-space:nowrap}
div.aovivo-barra .rv-regua-caixa{position:relative;border-radius:14px;background:linear-gradient(180deg,#14181d,#0b0d10);border:1px solid #23282e;box-shadow:inset 0 2px 8px #000c;overflow:hidden}
div.aovivo-barra .rv-regua{height:66px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;cursor:grab;touch-action:pan-x}
div.aovivo-barra .rv-regua::-webkit-scrollbar{display:none}
div.aovivo-barra .rv-trilho{position:relative;height:100%;
  background:
    repeating-linear-gradient(90deg,#ffffff59 0 1px,transparent 1px 150px) 0 0/100% 22px no-repeat,
    repeating-linear-gradient(90deg,#ffffff26 0 1px,transparent 1px 25px) 0 0/100% 10px no-repeat}
div.aovivo-barra .rv-hr{position:absolute;top:44px;margin-left:5px;font:600 11px/1 ui-monospace,Consolas,monospace;color:#8f979f;pointer-events:none}
div.aovivo-barra .rv-gravados i{position:absolute;top:24px;height:14px;border-radius:3px;background:linear-gradient(180deg,#5d86c9,#2f4f88 55%,#1d3561);box-shadow:0 0 6px #2f4f8899}
div.aovivo-barra .rv-futuro{position:absolute;top:0;bottom:0;right:-200px;background:repeating-linear-gradient(135deg,#ffffff0d 0 6px,transparent 6px 12px);border-left:1px dashed #ffffff40}
div.aovivo-barra .rv-agulha{position:absolute;top:0;bottom:0;left:50%;width:2px;margin-left:-1px;background:#ff4d55;box-shadow:0 0 8px #ff4d55;pointer-events:none}
div.aovivo-barra .rv-agulha::before{content:"";position:absolute;top:0;left:-6px;border:7px solid transparent;border-top-color:#ff4d55;border-bottom:0}
div.aovivo-barra .rv-toca{gap:14px}
div.aovivo-barra .rv-dias{gap:6px}
div.aovivo-barra .rv-dias .rv-dia{width:auto;display:inline-flex;align-items:baseline;gap:5px;padding:9px 14px;border-radius:99px;font-size:13px}
div.aovivo-barra .rv-dias .rv-dia b{font-size:14px}
div.aovivo-barra .rv-passou{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
div.aovivo-barra .rv-passa{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:0;border:0;background:none;color:#e9ecef;text-align:left;min-width:0;cursor:pointer}
div.aovivo-barra .rv-passa .rv-foto{grid-column:1/-1;margin-bottom:6px}
div.aovivo-barra .rv-passa b{font:700 14px/1 ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums}
div.aovivo-barra .rv-passa small{justify-self:end;font-size:12px;color:#8f979f}
div.aovivo-barra .rv-passa[aria-pressed=true] .rv-foto{box-shadow:0 0 0 2px #4f9bff,0 3px 6px #000a}
div.aovivo-barra details.rv-salvar{display:block}
div.aovivo-barra details.rv-salvar>summary{cursor:pointer;list-style:none;font-size:14px;font-weight:700;color:#cfd6dd;display:flex;align-items:center;justify-content:space-between}
div.aovivo-barra details.rv-salvar>summary::after{content:"＋";color:#8f979f}
div.aovivo-barra details.rv-salvar[open]>summary::after{content:"－"}
div.aovivo-barra details.rv-salvar>summary::-webkit-details-marker{display:none}
div.aovivo-barra details.rv-salvar[open]{display:grid;gap:10px}
div.aovivo-barra .rv-mais{grid-column:1/-1;border-radius:12px;padding:12px;font-size:14px}
div.aovivo-barra .rv-gravados i.cont{top:29px;height:4px;background:#4a5d7a;box-shadow:none}
/* MSUPTECH_REVER_REGUA_V2 (10/10, Marcus: "precisa melhorar, ficou escondido") — no app da equipe (tela clara) os textos
   claros da régua sumiam: o painel de rever tem fundo escuro próprio, igual ao do vídeo. Dias quebram linha (antes rolavam
   de lado sem aviso e cortavam na borda). */
div.aovivo-barra .aovivo-rever{background:linear-gradient(180deg,#14181d,#0b0d10);border:1px solid #23282e;border-radius:16px;padding:14px;color:#e9ecef}
div.aovivo-barra .rv-dias{flex-wrap:wrap;overflow:visible}
div.aovivo-barra .rv-cab small,div.aovivo-barra .rv-tit small{color:#b4bcc4}
/* MSUPTECH_REVER_REGUA_V3 (10/10, Marcus no computador: "ficou escondido") — no computador o painel lateral tem 480 px;
   ao rever, ele abre largo (vídeo maior, mais passagens por linha) e volta ao normal no "Ao vivo". */
div.aovivo-barra .rv-passou{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
@media (min-width:900px){.painel.aberto:has(.aovivo-barra.revendo){width:min(940px,94vw)}}

/* MSUPTECH_WEB_V1 (15/10/2026, Marcus: "Ao vivo e Rever gravação sem sentido, as cores; não precisa a barra desse tamanho,
   tampando a tela; algo menor, profissional"). Seletor compacto no centro: o escolhido acende (texto claro + luz: vermelha
   no Ao vivo, azul no Rever), o outro fica apagado. Sem barra de ponta a ponta. */
.visor .aovivo-barra{justify-content:center;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
div.aovivo-barra .aovivo-modo{flex:0 0 auto;display:inline-flex;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);box-shadow:none}
div.aovivo-barra .aovivo-modo button{min-height:32px;display:inline-flex;align-items:center;gap:8px;padding:0 16px;border-radius:999px;font-size:13px;
  letter-spacing:.02em;color:#8d96a1;background:none;box-shadow:none;text-shadow:none;cursor:pointer}
div.aovivo-barra .aovivo-modo button::before{content:"";width:7px;height:7px;border-radius:50%;background:#3d444d;flex:none}
div.aovivo-barra .aovivo-modo button:hover{color:#d7dde4}
div.aovivo-barra .aovivo-modo button[aria-selected=true]{color:#fff;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);text-shadow:none}
div.aovivo-barra .aovivo-modo button[data-modo=vivo][aria-selected=true]::before{background:#ff3b3b;box-shadow:0 0 8px #ff3b3b;animation:aovivo-luz 1.6s ease-in-out infinite}
div.aovivo-barra .aovivo-modo button[data-modo=rever][aria-selected=true]::before{background:#4da3ff;box-shadow:0 0 8px #4da3ff}
@keyframes aovivo-luz{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){div.aovivo-barra .aovivo-modo button::before{animation:none!important}}
