/*
 * AVISO DE PROVENIÊNCIA — Gerado no ambiente da Prime Holding.
 * Modelo: Claude Opus 5.5 (claude-opus-5-5, Claude Code)
 * Solicitante: 1.home.automation.technology@gmail.com
 * Este aviso é obrigatório e não deve ser removido.
 */
/* Ao vivo das câmeras (2026-11-21): tela cheia escura, mosaico ou uma câmera */
.aovivo { position: fixed; inset: 0; background: rgba(2, 4, 8, 0.96); backdrop-filter: blur(10px); display: flex; flex-direction: column; padding: 18px 22px; gap: 14px; animation: fade 0.2s; }
.av-topo { display: flex; align-items: center; justify-content: space-between; }
.av-topo h3 { font-family: var(--tit); font-weight: 500; font-size: 20px; margin: 2px 0 0; }
.av-topo .sobre { color: #ff8a9b; margin: 0; }
.av-topo .sobre::before { display: none; }
.av-grade { flex: 1; min-height: 0; display: grid; gap: 10px; grid-template-columns: repeat(var(--col), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.av-cam { position: relative; border-radius: 14px; overflow: hidden; background: #06080c; border: 1px solid var(--linha2); cursor: zoom-in; min-height: 120px; }
.aovivo.unico .av-cam { cursor: default; }
.av-cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.3s; }
.av-cam.ok img { opacity: 1; }
.av-cam.ok .av-esp { display: none; }
.av-esp { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--txt3); font-size: 12.5px; text-align: center; padding: 16px; }
.av-nome { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); font-size: 12.5px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.av-hora { font-family: var(--mono); font-size: 10.5px; color: var(--txt2); }
.av-cam::before { content: 'AO VIVO'; position: absolute; top: 9px; left: 10px; z-index: 2; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: #ffd0d7; padding: 2px 7px 2px 17px; border-radius: 5px; background: rgba(0, 0, 0, 0.55); }
.av-cam::after { content: ''; position: absolute; top: 14px; left: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--cr); box-shadow: 0 0 8px var(--cr); z-index: 3; animation: pisca 1.4s infinite; }
.cam[data-aovivo], .dv.cam-dv { cursor: zoom-in; }
.cam[data-aovivo]:hover { border-color: rgba(2, 177, 232, 0.5); box-shadow: 0 0 24px -8px rgba(2, 177, 232, 0.7); }
@media (max-width: 820px) { .av-grade { grid-template-columns: repeat(min(var(--col), 2), minmax(0, 1fr)); } .aovivo { padding: 12px; } }
