/* Páginas públicas: início, entrar e sala da transmissão. */

.largura {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ───────── Topo ───────── */
.topo {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px max(24px, 5vw);
}

.marca img {
  width: 150px;
  height: auto;
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 980px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 32px;
  padding: 128px max(24px, 5vw) 88px;
  background:
    radial-gradient(60% 70% at 85% 35%, rgba(0, 145, 217, 0.28), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(29, 111, 214, 0.22), transparent 70%),
    var(--marinho);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%);
  mask: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%);
}

.hero-texto {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero h1 {
  margin: 26px 0 18px;
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 .l1 {
  display: block;
  font-weight: 600;
  color: var(--texto-2);
  font-size: 0.62em;
  letter-spacing: -0.02em;
  margin-bottom: 0.08em;
}

.hero h1 em {
  font-style: normal;
  color: var(--azul);
}

.frase {
  margin: 0 0 26px;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--texto-2);
}

.frase b {
  color: #fff;
  font-weight: 800;
}

.quando {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 17px;
  font-weight: 600;
}

.quando svg {
  width: 20px;
  height: 20px;
  color: var(--azul);
}

.hero .contagem {
  margin-bottom: 32px;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.botao.grande {
  min-height: 60px;
  padding: 0 32px;
  font-size: 17px;
}

/* Arte: paralelogramos nas cores das empresas do grupo + a "tela" da transmissão */
.hero-arte {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}

.hero-arte > .para {
  position: absolute;
  animation: flutuar var(--dur, 11s) ease-in-out var(--atraso, 0s) infinite alternate;
  will-change: transform;
}

@keyframes flutuar {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--dx, 10px), var(--dy, -14px), 0);
  }
}

.p-azul {
  width: 74%;
  right: -10%;
  top: 2%;
  background: linear-gradient(115deg, #22b0f5, #0067b8);
  --dx: -12px;
  --dy: 10px;
  --dur: 13s;
}

.p-jsl {
  width: 40%;
  left: 0;
  top: 12%;
  background: linear-gradient(115deg, #ff3a41, #b5060d);
  --dx: 14px;
  --dy: -8px;
  --dur: 10s;
}

.p-movida {
  width: 34%;
  right: 2%;
  bottom: 22%;
  background: linear-gradient(115deg, #ff9a3c, #d65c00);
  --dx: -10px;
  --dy: -16px;
  --dur: 12s;
  --atraso: -4s;
}

.p-bbc {
  width: 30%;
  left: 6%;
  bottom: 14%;
  background: linear-gradient(115deg, #ffe45c, #e8b800);
  --dx: 12px;
  --dy: 10px;
  --dur: 9s;
  --atraso: -2s;
}

.p-vamos {
  width: 22%;
  right: 22%;
  bottom: 3%;
  background: linear-gradient(115deg, #e8304a, #9c0b22);
  --dx: 8px;
  --dy: -10px;
  --dur: 11s;
  --atraso: -6s;
}

.p-linha {
  width: 46%;
  left: 18%;
  top: 0;
  background: rgba(255, 255, 255, 0.08);
  --dx: -8px;
  --dy: 12px;
  --dur: 14s;
}

.tela-sombra {
  position: absolute;
  left: 2%;
  right: 2%;
  top: 50%;
  translate: 0 -50%;
  filter: drop-shadow(0 40px 60px rgba(0, 4, 24, 0.65));
  animation: flutuar 12s ease-in-out -3s infinite alternate;
  --dx: 0px;
  --dy: -10px;
}

.tela {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 90% at 30% 20%, rgba(0, 145, 217, 0.55), transparent 60%),
    linear-gradient(140deg, #0d3a8c 0%, #021a57 55%, #000f38 100%);
}

.tela::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 5px);
}

.tela .chip {
  position: absolute;
  left: 52%;
  top: 13%;
  background: rgba(0, 0, 0, 0.35);
  font-size: 11px;
}

.tela-play {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.12), 0 0 0 26px rgba(255, 255, 255, 0.05);
  animation: respirar 2.8s ease-in-out infinite;
}

.tela-play::after {
  content: '';
  margin-left: 6px;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--marinho);
}

@keyframes respirar {
  50% {
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.1), 0 0 0 34px rgba(255, 255, 255, 0.04);
  }
}


/* ───────── Seções claras ───────── */
.secao {
  padding: 104px 0;
}

.secao.clara {
  background: var(--claro);
  color: var(--tinta);
  color-scheme: light;
}

.secao.branca {
  background: #fff;
  color: var(--tinta);
  color-scheme: light;
}

.secao h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--marinho);
}

.secao .sub {
  margin: 0 0 48px;
  max-width: 560px;
  font-size: 18px;
  color: var(--cinza);
}

.passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.passos li {
  position: relative;
  padding: 30px 28px 30px;
  border-radius: var(--raio);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 20, 69, 0.06), 0 20px 40px -28px rgba(0, 20, 69, 0.35);
}

.passos .num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 30px;
  margin-bottom: 22px;
  color: #fff;
  font-weight: 800;
  background: var(--azul);
  -webkit-mask: url('/img/paralelo.svg') center / 100% 100% no-repeat;
  mask: url('/img/paralelo.svg') center / 100% 100% no-repeat;
}

.passos li:nth-child(2) .num {
  background: var(--marinho-3);
}

.passos li:nth-child(3) .num {
  background: var(--jsl);
}

.passos h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--marinho);
}

.passos p {
  margin: 0;
  color: var(--cinza);
}

.nota {
  margin: 32px 0 0;
  color: var(--cinza);
}

.nota a {
  color: var(--azul);
  font-weight: 700;
}

/* Programação */
.prog-cab {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.prog-cab .sub {
  margin: 0;
}

.abas {
  display: inline-flex;
  padding: 5px;
  border-radius: 12px;
  background: rgba(0, 20, 69, 0.06);
}

.abas button {
  min-width: 96px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--cinza);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.abas button[aria-selected='true'] {
  background: var(--marinho);
  color: #fff;
}

.itens {
  list-style: none;
  margin: 0;
  padding: 0;
}

.itens li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 4px;
  border-top: 1px solid rgba(0, 20, 69, 0.1);
}

.itens .hora {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--azul);
}

.itens .titulo {
  font-size: 18px;
  font-weight: 700;
  color: var(--marinho);
}

.itens .quem {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--cinza);
}

.itens-vazio {
  padding: 28px 0;
  color: var(--cinza);
}

/* Dúvidas */
.duvidas {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.duvidas details {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 20, 69, 0.06), 0 16px 32px -26px rgba(0, 20, 69, 0.4);
}

.duvidas summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--marinho);
  cursor: pointer;
}

.duvidas summary::-webkit-details-marker {
  display: none;
}

.duvidas summary::after {
  content: '+';
  font-size: 22px;
  line-height: 1;
  color: var(--azul);
  transition: transform 0.3s var(--mola);
}

.duvidas details[open] summary::after {
  transform: rotate(45deg);
}

.duvidas details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--cinza);
}

/* Rodapé */
.rodape {
  padding: 56px 0 44px;
  background: var(--marinho);
  border-top: 1px solid var(--linha);
}

.rodape-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.rodape img {
  width: 130px;
}

.empresas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-2);
}

.empresas li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.empresas li::before {
  content: '';
  width: 18px;
  height: 8px;
  background: var(--cor);
  -webkit-mask: url('/img/paralelo.svg') center / 100% 100% no-repeat;
  mask: url('/img/paralelo.svg') center / 100% 100% no-repeat;
}

.e-jsl { --cor: var(--jsl); }
.e-movida { --cor: var(--movida); }
.e-vamos { --cor: var(--vamos); }
.e-automob { --cor: var(--automob); }
.e-csinfra { --cor: var(--csinfra); }
.e-csbrasil { --cor: var(--csbrasil); }
.e-bbc { --cor: var(--bbc); }

.rodape small {
  display: block;
  margin-top: 32px;
  color: var(--texto-3);
  font-size: 13px;
}

/* ───────── Entrar ───────── */
.pagina-entrar {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  overflow-x: hidden;
  background:
    radial-gradient(50% 60% at 80% 10%, rgba(0, 145, 217, 0.3), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(29, 111, 214, 0.25), transparent 70%),
    var(--marinho);
}

.fundo-para {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fundo-para .para {
  position: absolute;
  animation: flutuar var(--dur, 12s) ease-in-out infinite alternate;
}

.fundo-para .a {
  width: min(520px, 60vw);
  right: -8%;
  top: -4%;
  background: linear-gradient(115deg, #22b0f5, #0067b8);
  opacity: 0.85;
  --dx: -14px;
  --dy: 12px;
}

.fundo-para .b {
  width: min(260px, 40vw);
  left: -4%;
  bottom: 8%;
  background: linear-gradient(115deg, #ff3a41, #b5060d);
  --dx: 12px;
  --dy: -10px;
  --dur: 10s;
}

.fundo-para .c {
  width: min(180px, 30vw);
  left: 12%;
  bottom: 2%;
  background: linear-gradient(115deg, #ffe45c, #e8b800);
  --dx: 8px;
  --dy: 8px;
  --dur: 9s;
}

.cartao {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 40px 36px 32px;
  border-radius: 22px;
  background: #fff;
  color: var(--tinta);
  color-scheme: light;
  box-shadow: 0 50px 100px -30px rgba(0, 4, 24, 0.7);
}

.cartao-logo {
  width: 132px;
}

.cartao-evento {
  margin: 14px 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e6ebf2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul);
}

.cartao h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--marinho);
}

.cartao p {
  margin: 0 0 22px;
  color: var(--cinza);
}

.cartao strong {
  color: var(--tinta);
}

.cartao label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tinta);
}

.campo {
  display: block;
  width: 100%;
  height: 54px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 1.5px solid #d4dbe6;
  border-radius: 12px;
  background: #fff;
  color: var(--tinta);
  font-size: 17px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.campo:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(0, 145, 217, 0.18);
}

.campo-codigo {
  height: 66px;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  font-variant-numeric: tabular-nums;
}

.cartao .pequeno {
  margin: 18px 0 0;
  font-size: 14px;
  text-align: center;
}

.erro {
  margin: 16px 0 0 !important;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecec;
  color: #a1141a !important;
  font-size: 14px;
  font-weight: 600;
}

.suporte {
  margin: 24px 0 0 !important;
  padding-top: 18px;
  border-top: 1px solid #e6ebf2;
  font-size: 13px;
  color: var(--cinza);
}

.ola {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--azul-claro);
  color: var(--azul);
  font-size: 20px;
  font-weight: 800;
}

/* ───────── Sala ───────── */
.pagina-sala {
  min-height: 100svh;
  background:
    radial-gradient(50% 40% at 30% 0%, rgba(0, 145, 217, 0.18), transparent 70%),
    var(--marinho);
}

.sala-topo {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
  padding: 0 max(16px, 2.4vw);
  background: rgba(0, 20, 69, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linha);
}

.sala-topo .marca img {
  width: 116px;
}

.sala-titulo {
  padding-left: 18px;
  border-left: 1px solid var(--linha);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.estado[data-status='ao_vivo'] {
  background: #e3121b;
}

.estado[data-status='ao_vivo'] .ponto-vivo {
  background: #fff;
}

.estado:not([data-status='ao_vivo']) .ponto-vivo {
  display: none;
}

.usuario {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.usuario .link {
  color: var(--texto-2);
}

.sala {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  width: min(1640px, 100%);
  margin: 0 auto;
  padding: 24px max(16px, 2.4vw) 48px;
}

.aviso {
  margin: 0 0 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bbc);
  color: var(--marinho);
  font-weight: 700;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--linha);
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-espera {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(0, 145, 217, 0.35), transparent 70%),
    linear-gradient(160deg, #0b2d72, #001033);
}

.player-espera h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.player-espera .para {
  position: absolute;
  opacity: 0.9;
}

.player-espera .p1 {
  width: 30%;
  left: -6%;
  top: 8%;
  background: linear-gradient(115deg, #22b0f5, #0067b8);
}

.player-espera .p2 {
  width: 20%;
  right: -3%;
  bottom: 10%;
  background: linear-gradient(115deg, #ff3a41, #b5060d);
}

.identidade {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--linha);
  font-size: 14px;
  color: var(--texto-2);
}

.identidade svg {
  width: 18px;
  height: 18px;
  color: var(--azul);
}

.identidade strong {
  color: #fff;
}

.identidade .regra {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 145, 217, 0.18);
  color: #9bd8f7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Lateral: chat ao vivo e programação em abas */
.lateral {
  align-self: start;
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  height: calc(100svh - 116px);
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--linha);
}

.lateral-abas {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--linha);
}

.lateral-abas button {
  position: relative;
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--texto-2);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.lateral-abas button[aria-selected='true'] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ponto-novo {
  position: absolute;
  top: 9px;
  margin-left: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bbc);
}

/* Chat */
.chat {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-grupo {
  margin: 0;
  padding: 10px 16px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--texto-3);
}

.chat-fixada {
  display: flex;
  gap: 10px;
  margin: 10px 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(251, 206, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(251, 206, 0, 0.28);
  font-size: 13.5px;
  line-height: 1.4;
}

.chat-fixada svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--bbc);
}

.chat-lista {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 8px 16px 12px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.msg {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  animation: chegar 0.35s var(--suave);
}

@keyframes chegar {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.msg-av {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c, var(--azul));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.msg-av.org {
  background: #fff;
  overflow: hidden;
}

.msg-av.org img {
  width: 30px;
  height: 30px;
}

.c0 { --c: #0091d9; }
.c1 { --c: #e2141c; }
.c2 { --c: #e8700d; }
.c3 { --c: #1d6fd6; }
.c4 { --c: #7b5cf0; }
.c5 { --c: #0e9f7e; }
.c6 { --c: #c8102e; }
.c7 { --c: #5d6f88; }

.msg-cab {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}

.msg-cab b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-emp {
  flex: none;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--texto-2);
  font-size: 11px;
  font-weight: 600;
}

.msg-cab time {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  color: var(--texto-3);
  font-variant-numeric: tabular-nums;
}

.msg p {
  margin: 2px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.msg.eu .msg-cab b {
  color: #8fd6ff;
}

.msg.org {
  margin: 6px -8px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(0, 145, 217, 0.16);
  box-shadow: inset 3px 0 0 var(--azul);
}

.msg.org .msg-emp {
  background: var(--azul);
  color: #fff;
}

.msg.pendente {
  opacity: 0.6;
}

.msg-aviso {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--bbc);
}

.chat-vazio {
  padding: 28px 8px;
  color: var(--texto-3);
  font-size: 14px;
  text-align: center;
}

.chat-novas {
  position: absolute;
  left: 50%;
  bottom: 86px;
  translate: -50% 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--azul);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  animation: surgir 0.4s var(--mola);
}

.chat-form {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--linha);
}

.chat-estado {
  margin: 0 2px 8px;
  font-size: 12px;
  color: var(--texto-3);
}

.chat-campo {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--linha);
  transition: box-shadow 0.2s;
}

.chat-campo:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--azul);
}

.chat-campo textarea {
  flex: 1;
  min-height: 40px;
  max-height: 96px;
  padding: 9px 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.chat-campo textarea::placeholder {
  color: var(--texto-3);
}

.chat-enviar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--azul);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s var(--mola), background-color 0.2s;
}

.chat-enviar svg {
  width: 20px;
  height: 20px;
}

.chat-enviar:hover:not([disabled]) {
  transform: scale(1.06);
}

.chat-enviar[disabled] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--texto-3);
  cursor: default;
}

.programa {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
}

.programa-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.programa h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.programa .abas {
  background: rgba(255, 255, 255, 0.07);
}

.programa .abas button {
  min-width: 64px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--texto-2);
}

.programa .abas button[aria-selected='true'] {
  background: var(--azul);
}

.programa .itens li {
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 13px 2px;
  border-top-color: var(--linha);
}

.programa .itens .titulo {
  font-size: 15px;
  color: #fff;
}

.programa .itens .quem {
  font-size: 13px;
  color: var(--texto-3);
}

.programa .itens .hora {
  font-size: 14px;
}

.programa .itens li.passou {
  opacity: 0.45;
}

.programa .itens li.agora {
  margin: 2px -10px;
  padding: 13px 12px;
  border-radius: 12px;
  border-top-color: transparent;
  background: rgba(0, 145, 217, 0.16);
  box-shadow: inset 3px 0 0 var(--azul);
}

.programa .itens li.agora + li {
  border-top-color: transparent;
}

.programa .itens li.agora .hora::after {
  content: 'agora';
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.programa .itens-vazio {
  color: var(--texto-3);
}

.programa .suporte {
  border-top-color: var(--linha) !important;
  color: var(--texto-3);
}

/* Cortina: tela derrubada / acesso suspenso */
.cortina {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 10, 36, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cortina-caixa {
  width: min(460px, 100%);
  padding: 36px 32px;
  border-radius: 20px;
  background: #fff;
  color: var(--tinta);
  color-scheme: light;
  text-align: center;
  animation: surgir 0.5s var(--mola);
}

.cortina-caixa h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--marinho);
}

.cortina-caixa p {
  margin: 0 0 24px;
  color: var(--cinza);
}

@keyframes surgir {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

/* 404 */
.pagina-404 {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

/* ───────── Telas menores ───────── */
@media (max-width: 1080px) {
  .sala {
    grid-template-columns: 1fr;
  }

  .lateral {
    position: static;
    height: 72svh;
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 112px;
    padding-bottom: 64px;
  }

  .hero-arte {
    order: -1;
    justify-self: center;
    max-width: 460px;
    margin: -24px 0 -40px;
  }

  .passos {
    grid-template-columns: 1fr;
  }

  .secao {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .topo {
    padding: 18px 16px;
  }

  .marca img {
    width: 120px;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero-arte {
    max-width: 340px;
    margin: -8px 0 -28px;
  }

  .largura {
    width: calc(100% - 32px);
  }

  .contagem {
    gap: 8px;
  }

  .contagem div {
    min-width: 0;
    flex: 1;
  }

  .contagem b {
    font-size: 26px;
  }

  .acoes .botao {
    flex: 1 1 100%;
  }

  .cartao {
    padding: 32px 22px 24px;
  }

  .sala-topo {
    gap: 10px;
  }

  .sala-titulo,
  .usuario [data-nome] {
    display: none;
  }

  .sala {
    padding: 0 0 40px;
    gap: 16px;
  }

  .player {
    border-radius: 0;
  }

  .aviso {
    margin: 12px 16px;
  }

  .identidade {
    margin: 12px 16px 0;
  }

  .identidade .regra {
    margin-left: 0;
  }

  .lateral {
    margin: 0 16px;
  }
}

/* Selo da versão de demonstração (variável DEMO=1 na publicação) */
.selo-demo {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bbc);
  color: var(--marinho);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.cartao .selo-demo {
  position: absolute;
  top: 42px;
  right: 36px;
  margin: 0;
}

@media (max-width: 420px) {
  .sala-topo .selo-demo {
    display: none;
  }

  .hero-texto .selo-demo {
    margin: 10px 0 0;
  }
}

/* Player próprio por cima do YouTube */
.player .yt,
.player .yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* nenhum clique chega no YouTube */
}

.escudo {
  position: absolute;
  inset: 0;
  z-index: 2;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.controles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 8, 30, 0.78));
  opacity: 0;
  transition: opacity 0.3s;
}

.escudo.ativo .controles,
.escudo:focus-visible .controles {
  opacity: 1;
}

.controles .espaco {
  flex: 1;
}

.pilula-vivo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #e3121b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.pilula-vivo .ponto-vivo {
  background: #fff;
}

.pilula-vivo.atras {
  background: rgba(255, 255, 255, 0.18);
}

.pilula-vivo.atras [data-vivo-texto]::after {
  content: ' · voltar';
}

.ctl {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ctl:hover {
  background: rgba(255, 255, 255, 0.24);
}

.ctl svg {
  width: 22px;
  height: 22px;
}

.volume {
  width: 110px;
  accent-color: #fff;
  cursor: pointer;
}

.som-grande {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 12, 44, 0.78);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  animation: respirar-som 2.4s ease-in-out infinite;
}

.som-grande svg {
  width: 24px;
  height: 24px;
}

@keyframes respirar-som {
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  }
}

.capa {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(0, 145, 217, 0.35), transparent 70%),
    linear-gradient(160deg, #0b2d72, #001033);
  transition: opacity 0.6s var(--suave), visibility 0.6s;
}

.capa p {
  margin: 0;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
}

.capa .girando {
  margin: 0;
}

.capa.sumiu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player:fullscreen,
.player:-webkit-full-screen {
  border-radius: 0;
}

.player.cheia-falsa {
  position: fixed;
  inset: 0;
  z-index: 100;
  border-radius: 0;
  aspect-ratio: auto;
}

.travar-rolagem {
  overflow: hidden;
}

@media (hover: none) {
  .volume {
    display: none; /* no celular o volume é o do aparelho */
  }
}

.capa .botao svg {
  width: 22px;
  height: 22px;
}

/* Modo seguro: player padrão do YouTube, sem a camada */
.player.seguro .yt iframe {
  pointer-events: auto;
}

.player.seguro .escudo {
  display: none;
}

.anti-robo:not(:empty) {
  margin: 0 0 14px;
}

/* Sala aberta pelo painel (organização) */
.faixa-org {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 145, 217, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 145, 217, 0.45);
  font-size: 14px;
}

.faixa-org .botao {
  min-height: 36px;
  box-shadow: none;
}

@media (max-width: 640px) {
  .faixa-org {
    margin: 12px 16px 0;
  }
}

/* ───────── Camadas da sala: espera, sorteio e pop-up ───────── */

.player {
  container-type: inline-size;
}

.player-midia {
  position: absolute;
  inset: 0;
}

/* Tela de espera / intervalo / encerrado (por cima do vídeo, também em tela cheia) */
.tela-espera {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 50% -10%, rgba(0, 145, 217, 0.42), transparent 70%),
    radial-gradient(50% 60% at 100% 110%, rgba(226, 20, 28, 0.18), transparent 70%),
    linear-gradient(160deg, #0b2d72, #001033 70%);
  transition: opacity 0.7s var(--suave), visibility 0.7s;
}

.tela-espera.sumiu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tela-espera .para {
  position: absolute;
  opacity: 0.9;
  animation: flutuar var(--dur, 11s) ease-in-out var(--atraso, 0s) infinite alternate;
  will-change: transform;
}

.tela-espera .p1 {
  --dur: 13s;
  --dx: 18px;
  --dy: 10px;
  width: 30%;
  left: -7%;
  top: 7%;
  background: linear-gradient(115deg, #22b0f5, #0067b8);
}

.tela-espera .p2 {
  --dur: 10s;
  --atraso: -3s;
  --dx: -14px;
  --dy: -12px;
  width: 19%;
  right: -4%;
  bottom: 9%;
  background: linear-gradient(115deg, #ff3a41, #b5060d);
}

.tela-espera .p3 {
  --dur: 15s;
  --atraso: -6s;
  --dx: 10px;
  --dy: -16px;
  width: 11%;
  right: 12%;
  top: 10%;
  opacity: 0.35;
  background: linear-gradient(115deg, #ffffff, #8fd3f7);
}

.espera-conteudo {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(6px, 1.5cqw, 22px);
  padding: clamp(14px, 3cqw, 48px);
  text-align: center;
}

.espera-marca {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4cqw, 18px);
}

.espera-marca img {
  width: clamp(84px, 12cqw, 210px);
  height: auto;
}

.espera-selo {
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: clamp(10px, 1.3cqw, 18px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.espera-chip {
  font-size: clamp(10px, 1.1cqw, 15px);
}

.tela-espera[data-status='intervalo'] .espera-chip .ponto-vivo {
  background: #fbce00;
  animation: none;
}

.tela-espera[data-status='encerrado'] .espera-chip .ponto-vivo {
  display: none;
}

.tela-espera h2 {
  margin: 0;
  font-size: clamp(24px, 5.6cqw, 88px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.espera-texto {
  max-width: 34em;
  margin: 0;
  font-size: clamp(13px, 1.9cqw, 28px);
  font-weight: 600;
  color: var(--texto-2);
  text-wrap: balance;
}

.espera-contagem {
  display: grid;
  justify-items: center;
  gap: clamp(4px, 0.8cqw, 12px);
}

.espera-contagem p {
  margin: 0;
  font-size: clamp(10px, 1.2cqw, 16px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9bd8f7;
}

.relogio {
  display: flex;
  gap: clamp(6px, 1.2cqw, 18px);
}

.relogio div {
  min-width: clamp(58px, 10cqw, 160px);
  padding: clamp(8px, 1.3cqw, 20px) clamp(6px, 1cqw, 14px);
  border-radius: clamp(10px, 1.4cqw, 20px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.relogio b {
  display: block;
  font-size: clamp(26px, 6.4cqw, 104px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.relogio span {
  display: block;
  margin-top: 0.5em;
  font-size: clamp(9px, 1cqw, 14px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.espera-frase {
  margin: 0;
  font-size: clamp(12px, 1.5cqw, 20px);
  color: var(--texto-2);
}

.espera-frase b {
  color: #fff;
}

.espera-som svg {
  width: 18px;
  height: 18px;
}

.espera-som[disabled] {
  opacity: 0.85;
  cursor: default;
}

/* Vídeo pequeno (celular): só o essencial cabe na altura do 16:9. */
@container (max-width: 520px) {
  .espera-conteudo {
    gap: 5px;
    padding: 8px 12px;
  }
  .espera-marca img {
    width: 76px;
  }
  .espera-som,
  .espera-frase {
    display: none;
  }
  .relogio div {
    min-width: 50px;
    padding: 6px 6px 5px;
  }
  .relogio span {
    margin-top: 0.3em;
    font-size: 8px;
  }
}

/* Sorteio: roleta por cima da live */
.palco-sorteio {
  position: absolute;
  inset: 0;
  z-index: 8;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(251, 206, 0, 0.18), transparent 70%),
    radial-gradient(80% 90% at 50% 100%, rgba(0, 145, 217, 0.35), transparent 70%),
    rgba(0, 12, 46, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: aparecer 0.5s var(--suave);
  transition: opacity 0.4s;
}

.palco-sorteio.sumiu {
  opacity: 0;
}

@keyframes aparecer {
  from {
    opacity: 0;
  }
}

.palco-roleta {
  position: absolute;
  inset: 0;
}

.palco-fechar {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.palco-fechar:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Faixa fixa do sorteio, logo abaixo do vídeo */
.faixa-sorteio {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  margin-top: 14px;
  padding: 14px 16px 14px 14px;
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(251, 206, 0, 0.16), rgba(0, 145, 217, 0.16));
  box-shadow: inset 0 0 0 1px rgba(251, 206, 0, 0.45);
  animation: surgir 0.5s var(--mola);
}

.faixa-icone {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fbce00;
  color: var(--marinho);
}

.faixa-icone svg {
  width: 24px;
  height: 24px;
}

.faixa-textos {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.faixa-textos small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe169;
}

.faixa-textos b {
  font-size: 18px;
  line-height: 1.2;
}

.faixa-textos span {
  font-size: 14px;
  color: var(--texto-2);
}

.faixa-sorteio.inscrito .faixa-icone {
  background: #2ecc71;
  color: #fff;
}

.faixa-botao {
  flex: none;
  background: #fbce00;
  color: var(--marinho);
  box-shadow: 0 10px 30px -12px rgba(251, 206, 0, 0.8);
  animation: chamar 2.2s ease-in-out infinite;
}

.faixa-botao:hover {
  background: #ffe169;
}

@keyframes chamar {
  50% {
    box-shadow: 0 0 0 8px rgba(251, 206, 0, 0.16), 0 10px 30px -12px rgba(251, 206, 0, 0.8);
  }
}

@media (max-width: 640px) {
  .faixa-sorteio {
    flex-wrap: wrap;
  }
  .faixa-sorteio .botao {
    width: 100%;
  }
}

/* Pop-up de aviso da organização */
.popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 10, 36, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: aparecer 0.3s var(--suave);
}

.popup-caixa {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(480px, 100%);
  padding: 32px 30px 28px;
  border-radius: 20px;
  background: #fff;
  color: var(--tinta);
  color-scheme: light;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  animation: surgir 0.5s var(--mola);
}

.popup-etiqueta {
  justify-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--azul-claro);
  color: var(--azul);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.popup-caixa h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: var(--marinho);
}

.popup-caixa p {
  margin: 0;
  color: var(--cinza);
  white-space: pre-line;
}

.popup-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.popup-botoes .botao {
  flex: 1 1 auto;
}

.botao.contorno-escuro {
  background: transparent;
  color: var(--marinho);
  box-shadow: inset 0 0 0 1.5px rgba(0, 20, 69, 0.25);
}

.botao.contorno-escuro:hover {
  background: rgba(0, 20, 69, 0.05);
}

.popup-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 20, 69, 0.06);
  color: var(--marinho);
  font-size: 15px;
  cursor: pointer;
}

/* Página do QR code do sorteio */
.etiqueta-sorteio {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff3bf;
  color: #8a6d00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.etiqueta-sorteio.ok {
  background: #e3f6ec;
  color: #15803d;
}

.botao-sorteio {
  background: #fbce00;
  color: var(--marinho);
  box-shadow: 0 10px 30px -12px rgba(180, 140, 0, 0.8);
}

.botao-sorteio:hover {
  background: #ffdb33;
}
