/* Transmissoes no site (20/10/2026): convite, sala, Minha conta, janela e faixa. Cobre #B87333 sobre escuro. */
/* fundo, letra e cor do site (o tema pinta h1/h2 de vermelho e o <button> em maiusculas serifadas) */
.av-site { flex: 1 1 100%; width: 100%; box-sizing: border-box; padding: 32px 20px 64px; background: var(--alef-fundo, #0d0d0d); color: #e8e1d9; font-family: 'Lato', sans-serif; }
.av-site.sem-hero { padding-top: 24px; }
/* o hero e o main ficam lado a lado dentro do .ast-container (flex em linha) do tema: quebra a linha
   para o hero ocupar a largura toda e o conteudo vir embaixo (no computador o texto ficava cortado ao lado) */
.ast-container:has(> .av-site) { flex-wrap: wrap; }
.ast-container:has(> .av-site) > .arquivo-hero { flex: 0 0 auto; }
.av-site-caixa { max-width: 760px; margin: 0 auto; }
.av-site-caixa:has(.av-sala) { max-width: var(--alef-largura, 1200px); }
.av-site h1, .av-site h2, .av-site h3, .av-janela h2 { color: #f1ece6; font-family: 'Playfair Display', 'Lora', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; }
.av-site h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.av-site h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 28px 0 10px; }
.av-site .cta-botao, .av-conta .cta-botao, .av-janela .cta-botao, .av-faixa .cta-botao, .av-pip .cta-botao {
  font: 700 var(--t-16, 17px)/1.2 'Lato', sans-serif; text-transform: none; letter-spacing: normal; padding: 14px 28px; cursor: pointer; }
/* na Minha conta a regra geral de botao da loja (body .woocommerce button[type=submit], com !important)
   pinta todo <button> de cobre cheio: o vazado precisa de !important com especificidade maior */
body .woocommerce .av-conta button.cta-botao-vazado, .av-site .cta-botao-vazado, .av-janela .cta-botao-vazado, .av-pip .cta-botao-vazado { background: transparent !important; color: var(--alef-cobre, #b87333) !important; border: 2px solid var(--alef-cobre, #b87333) !important; }
body .woocommerce .av-conta button.cta-botao-vazado:hover, .av-site .cta-botao-vazado:hover, .av-janela .cta-botao-vazado:hover, .av-pip .cta-botao-vazado:hover { background: var(--alef-cobre, #b87333) !important; color: #fff !important; }
.av-conta .cta-botao { font: 700 var(--t-16, 17px)/1.2 'Lato', sans-serif; text-transform: none; letter-spacing: normal; padding: 12px 24px; cursor: pointer; }
.av-site input[type=text] { background: #141010; color: #f1ece6; border: 1px solid rgba(184,115,51,.45); border-radius: 8px; padding: 10px 12px; font: 16px 'Lato', sans-serif; }
.av-site-sobre { margin: 0; color: #c9965f; font-weight: 700; letter-spacing: .5px; }
.av-site-encontros { padding-left: 20px; }
.av-site-encontros .av-passou { opacity: .6; }
.av-site-dica { opacity: .8; font-size: .95em; }
.av-site-recado { padding: 12px 16px; border-radius: 10px; border-left: 4px solid #B87333; background: rgba(184,115,51,.12); }
.av-site-recado.is-erro { border-color: #d9534f; background: rgba(217,83,79,.12); }
.av-site-recado.is-aviso { border-color: #e0b84c; background: rgba(224,184,76,.12); }
.av-site-termo { margin: 18px 0; padding: 12px 16px; border: 1px solid rgba(184,115,51,.4); border-radius: 10px; }
.av-site-termo summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.av-site-aceite { display: flex; gap: 10px; align-items: center; min-height: 44px; margin: 8px 0 16px; }
.av-site-aceite input { width: 22px; height: 22px; accent-color: #B87333; }
.av-site-botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.av-site-botoes button, .av-acoes button { cursor: pointer; font-family: inherit; border: 0; }
.av-site-botoes .cta-botao-vazado, .av-acoes .cta-botao-vazado { border: 1px solid currentColor; }
/* sala */
.av-sala-quando { color: #c9965f; margin: 0 0 8px; }
.av-sala-status { min-height: 1.5em; text-align: center; margin: 8px 0; }
.av-sala-status.is-erro { color: #e06c66; font-weight: 700; }
.av-palco { position: relative; background: #120c09; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; user-select: none; -webkit-user-select: none; }
.av-palco:fullscreen { border-radius: 0; aspect-ratio: auto; }
.av-palco-principal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.av-palco-vazio { color: #b9aea4; }
.av-video-grande { width: 100%; height: 100%; object-fit: contain; background: #120c09; }
.av-palco-mini { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; z-index: 1; max-width: 60%; overflow-x: auto; }
.av-mini { margin: 0; width: 160px; flex: none; position: relative; }
.av-video-mini { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.5); display: block; background: #000; }
.av-mini figcaption { position: absolute; left: 6px; bottom: 4px; font-size: 12px; color: #fff; text-shadow: 0 1px 2px #000; }
.av-marca { position: absolute; z-index: 2; pointer-events: none; color: #fff; opacity: .3; font: 600 clamp(11px, 1.6vw, 16px)/1.2 'Lato', sans-serif; text-shadow: 0 1px 2px #000; white-space: nowrap; transition: left 2s ease, top 2s ease; }
.av-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0; }
.av-encerrar { color: #e06c66 !important; }
.av-lado { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.av-lado-bloco { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px 16px; }
.av-site .av-lado-bloco h2 { font-size: 20px; margin: 0 0 10px; }
.av-pessoa-nome strong, .av-chat-sala strong { color: #f1ece6; }
.av-pessoas-sala, .av-chat-sala { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.av-chat-sala { max-height: 320px; overflow-y: auto; overflow-wrap: anywhere; }
.av-pessoa-sala { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); }
.av-pessoa-sala.tem-mao { outline: 2px solid #e0b84c; }
.av-pessoa-nome { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.av-mao { color: #e0b84c; font-weight: 700; font-size: .9em; }
.av-selo { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 700 12px/1.6 'Lato', sans-serif; background: #3a2617; color: #e6b98c; }
.av-controles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.av-chave { min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #f1ece6; cursor: pointer; font: 700 13px 'Lato', sans-serif; text-transform: none; letter-spacing: normal; }
.av-chave.is-on { background: #B87333; border-color: #B87333; color: #fff; }
.av-chat-form { display: flex; gap: 8px; margin-top: 10px; }
.av-chat-form input { flex: 1; min-height: 44px; }
.av-fraco { opacity: .7; }
/* Minha conta */
.av-conta-cartao { padding: 16px; border: 1px solid rgba(184,115,51,.35); border-radius: 12px; margin-bottom: 16px; }
.av-conta-linha { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.av-conta-espera { opacity: .8; font-size: .95em; }
.av-conta-selo label { display: flex; gap: 10px; align-items: center; }
/* janela e faixa */
.av-janela { max-width: 420px; width: calc(100% - 32px); border: 1px solid #B87333; border-radius: 14px; background: #1a1210; color: #f1ece6; padding: 24px; }
.av-janela::backdrop { background: rgba(0,0,0,.6); }
.av-janela h2 { margin: 4px 0 8px; color: #f1ece6; }
.av-faixa { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; padding: 10px 16px; background: #1a1210; color: #f1ece6; border-top: 2px solid #B87333; font-weight: 700; }
.av-faixa-fraco { opacity: .8; font-weight: 400; }
@media (max-width: 600px) {
  .av-site { padding: 20px 16px 80px; }
  .av-palco { border-radius: 8px; }
  .av-mini { width: 96px; }
  .av-palco-mini { right: 6px; bottom: 6px; }
}

/* Fase de teste (21/10/2026): selo e uma linha no topo de cada pagina das transmissoes */
.av-teste-selo { display: inline-block; vertical-align: middle; border: 1px solid #c9965f; color: #c9965f; border-radius: 4px; padding: 1px 7px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.5; }
.av-teste { margin: 0 0 20px; padding: 10px 14px; border: 1px dashed rgba(201, 150, 95, .55); border-radius: 8px; font-size: 14px; line-height: 1.5; color: inherit; }
.av-teste .av-teste-selo { margin-right: 6px; }

/* Tela cheia = modo imersivo (21/10/2026): a sala inteira por cima de tudo, botoes sobre o video, chat e
   pessoas num painel. Por CSS para valer no iPhone (o Safari nao poe div em tela cheia). */
.av-so-imersivo { display: none !important; }
html.av-sem-rolagem, html.av-sem-rolagem body { overflow: hidden; }
.av-sala.av-imersivo { position: fixed; inset: 0; z-index: 100000; margin: 0; background: #000; height: 100vh; height: 100dvh; }
.av-imersivo .av-so-imersivo { display: inline-flex !important; }
.av-imersivo > h1, .av-imersivo > .av-sala-quando { display: none; }
.av-imersivo .av-palco { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.av-imersivo .av-sala-status { position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 6px; background: rgba(0,0,0,.65); max-width: 90%; }
.av-imersivo .av-sala-status:empty { display: none; }
.av-imersivo .av-acoes { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; margin: 0; gap: 8px; padding: 28px 10px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.av-imersivo .av-acoes .cta-botao { padding: 10px 14px !important; font-size: 14px !important; min-height: 44px; background-color: rgba(18,12,9,.75); }
.av-imersivo .av-acoes .cta-botao:not(.cta-botao-vazado) { background-color: var(--alef-cobre, #b87333); }
.av-imersivo .av-palco-mini { bottom: 92px; }
.av-imersivo .av-lado { display: none; position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; width: min(380px, 100%); overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: rgba(18,12,9,.97); grid-template-columns: 1fr; align-content: start; box-shadow: -4px 0 20px rgba(0,0,0,.5); }
.av-imersivo.av-painel-aberto .av-lado { display: grid; }
.av-fecha-lado { justify-self: start; }
.av-aviso-chat { position: absolute; z-index: 3; left: 12px; bottom: 96px; max-width: min(70%, 420px); padding: 8px 12px; border-radius: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .av-imersivo .av-lado { top: auto; height: 65%; width: 100%; border-radius: 14px 14px 0 0; }
  .av-imersivo .av-palco-mini { bottom: 140px; }
  .av-aviso-chat { bottom: 140px; }
}

/* Controles flutuantes do Alef (Document Picture-in-Picture) e o PDF (21/10/2026) */
body.av-pip { margin: 0; padding: 12px; background: #120c09; color: #f1ece6; font-family: 'Lato', sans-serif; }
.av-pip .av-acoes { justify-content: flex-start; margin: 10px 0 0; gap: 8px; }
.av-pip .av-acoes .cta-botao { padding: 8px 12px !important; font-size: 13px !important; min-height: 38px; }
.av-pip-info { margin: 0; font-size: 14px; color: #c9965f; }
.av-com-pip .av-palco::after { content: 'Controles na janela flutuante'; position: absolute; left: 10px; top: 10px; z-index: 3; font-size: 12px; color: #fff; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 4px; }
.av-slide-pag { align-self: center; color: #e8e1d9; font-size: 14px; padding: 0 4px; }
.av-chat-sala li.is-privado { border-left: 3px solid rgba(201,150,95,.6); padding-left: 8px; }
/* marca de fundo: o codigo da pessoa repetido em diagonal, quase invisivel (27/10/2026) */
.av-marca-fundo { position: absolute; inset: -50%; z-index: 2; pointer-events: none; color: #fff; opacity: .06; font: 700 14px/48px 'Lato', sans-serif; letter-spacing: 3px; transform: rotate(-24deg); overflow: hidden; word-spacing: 30px; white-space: normal; user-select: none; }
/* celular do Alef so como camera (27/10/2026): sem lista e sem chat, que ficam no controle */
.av-modo-camera .av-lado { display: none; }
.av-modo-camera .av-sala-quando, .av-modo-controle .av-sala-quando { margin-bottom: 4px; }
.av-modo-controle .av-palco::before { content: 'Controle: este aparelho não aparece para ninguém'; position: absolute; right: 10px; top: 10px; z-index: 3; font: 600 12px/1.4 'Lato', sans-serif; color: #fff; background: rgba(154, 91, 42, .85); padding: 3px 9px; border-radius: 4px; }
