/* Administrador — visual de central multimídia (metal escovado), claro/escuro */
:root, [data-tema="escuro"] {
    --fundo: #15161a;
    --fundo-2: #1d1f24;
    --painel: #23262c;
    --borda: #343842;
    --texto: #eceef2;
    --texto-2: #a3a9b5;
    --metal: conic-gradient(from 200deg at 50% 50%, #3a3e46, #2a2d33, #444952, #2a2d33, #3a3e46);
    --acento: #ff7a1a;
    --acento-2: #8e3fd0;
    --ok: #2e9d58;
    --erro: #e0473c;
    --sombra: 0 6px 18px rgba(0,0,0,.45);
}
[data-tema="claro"] {
    --fundo: #e9ebef;
    --fundo-2: #f4f5f7;
    --painel: #ffffff;
    --borda: #d3d7de;
    --texto: #1c1f25;
    --texto-2: #5c6370;
    --metal: conic-gradient(from 200deg at 50% 50%, #f4f5f7, #d9dce1, #fbfbfc, #d5d8de, #f4f5f7);
    --sombra: 0 6px 16px rgba(30,40,60,.15);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--fundo); color: var(--texto); min-height: 100vh;
}
a { color: var(--acento); }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sub { color: var(--texto-2); margin: .25rem 0 .75rem; }

/* Topo */
.topo {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .6rem 1.2rem; background: var(--metal); border-bottom: 1px solid var(--borda);
    box-shadow: var(--sombra); position: sticky; top: 0; z-index: 5;
}
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--texto); }
.marca img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff; }
.marca strong { display: block; font-size: 1.1rem; }
.marca small { color: var(--texto-2); text-transform: capitalize; }
.seletor select {
    font: inherit; padding: .45rem .7rem; border-radius: 10px; border: 1px solid var(--borda);
    background: var(--painel); color: var(--texto); min-width: 200px;
}
.topo-acoes { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.topo-acoes form { margin: 0; }
.usuario { color: var(--texto-2); }
.btn-icone, .btn-sair {
    font: inherit; cursor: pointer; border: 1px solid var(--borda); background: var(--painel);
    color: var(--texto); border-radius: 10px; padding: .4rem .8rem;
}
.btn-icone { padding: .35rem .55rem; display: grid; place-items: center; }
.btn-icone svg { width: 22px; height: 22px; fill: currentColor; }

.conteudo { max-width: 1200px; margin: 0 auto; padding: 1.4rem 1.2rem 3rem; }
.titulo-pagina { margin: .3rem 0 1rem; font-size: 1.6rem; }
.titulo-com-acao { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.voltar { display: inline-block; margin-bottom: .4rem; text-decoration: none; font-weight: 600; }

/* Painel de botões grandes */
.grade-botoes {
    display: grid; gap: 1.1rem;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.botao-tela {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .8rem; min-height: 170px; padding: 1.2rem; border-radius: 22px; text-decoration: none;
    color: var(--texto); background: var(--metal); border: 1px solid var(--borda); box-shadow: var(--sombra);
    transition: transform .12s ease, box-shadow .12s ease;
}
.botao-tela:hover, .botao-tela:focus-visible { transform: translateY(-3px); outline: none; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.botao-tela:active { transform: translateY(0) scale(.98); }
.botao-tela.em-breve { opacity: .62; }
.botao-icone {
    display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--cor) 70%, #fff), var(--cor) 70%);
    box-shadow: inset 0 -4px 8px rgba(0,0,0,.25), 0 4px 10px rgba(0,0,0,.3);
}
.botao-icone svg { width: 40px; height: 40px; fill: #fff; }
.botao-icone.grande { width: 110px; height: 110px; }
.botao-icone.grande svg { width: 60px; height: 60px; }
.botao-icone.mini { width: 28px; height: 28px; box-shadow: none; }
.botao-icone.mini svg { width: 16px; height: 16px; }
.botao-nome { font-size: 1.15rem; font-weight: 700; text-align: center; }
.selo-breve {
    position: absolute; top: .7rem; right: .7rem; font-size: .72rem; padding: .1rem .5rem;
    border-radius: 99px; background: var(--fundo-2); color: var(--texto-2); border: 1px solid var(--borda);
}
.vazio { text-align: center; padding: 3rem 1rem; }
.vazio .botao-icone { margin: 0 auto 1rem; }

/* Escolha de rádio */
.grade-radios { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grade-radios form { margin: 0; }
.cartao-radio {
    width: 100%; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .8rem;
    padding: 1.4rem; border-radius: 20px; border: 1px solid var(--borda); background: var(--metal);
    color: var(--texto); box-shadow: var(--sombra); font-size: 1.1rem; font-weight: 700;
}
.cartao-radio img { width: 110px; height: 110px; border-radius: 18px; object-fit: cover; background: #fff; }

/* Blocos, alertas, formulários */
.painel-bloco {
    background: var(--painel); border: 1px solid var(--borda); border-radius: 16px;
    padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; box-shadow: var(--sombra);
}
.painel-bloco h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.painel-bloco h2 + .grade-campos { margin-top: .3rem; }
.alerta { padding: .75rem 1rem; border-radius: 12px; background: var(--fundo-2); border: 1px solid var(--borda); }
.alerta.ok { border-color: var(--ok); color: var(--ok); }
.alerta.erro { border-color: var(--erro); color: var(--erro); }
.alerta.aviso { border-color: #e0a100; color: #e0a100; }
.grade-campos { display: grid; gap: .9rem 1.1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.campo { display: flex; flex-direction: column; gap: .3rem; }
.campo.largura-toda { grid-column: 1 / -1; }
.campo > span { font-weight: 600; font-size: .95rem; }
.campo input, .campo select {
    font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1px solid var(--borda);
    background: var(--fundo-2); color: var(--texto); min-height: 46px;
}
.campo input[readonly] { opacity: .7; }
.campo input:focus, .campo select:focus { outline: 2px solid var(--acento); outline-offset: 1px; }
.campo small, .erro-campo { color: var(--erro); min-height: 1em; font-size: .85rem; }
.campo.com-erro input, .campo.com-erro select { border-color: var(--erro); }
.grade-cores { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: 1rem; }
.campo-cor { display: flex; align-items: center; gap: .6rem; }
.campo-cor input { width: 52px; height: 40px; border: 1px solid var(--borda); border-radius: 8px; padding: 2px; background: none; cursor: pointer; }
.previa-degrade { margin-top: 1rem; padding: 1rem; border-radius: 12px; color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.linha-logo { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.logo-atual { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; background: #fff; border: 1px solid var(--borda); }
.form-logo { display: flex; flex-direction: column; gap: .5rem; flex: 1; min-width: 240px; }
.acoes-form { display: flex; justify-content: flex-end; margin-top: .6rem; }
.btn-principal, .btn-secundario {
    font: inherit; font-weight: 700; cursor: pointer; border-radius: 12px; padding: .75rem 1.4rem;
    text-decoration: none; display: inline-block; text-align: center; border: 0;
}
.btn-principal { background: linear-gradient(135deg, var(--acento), #e9531a); color: #fff; box-shadow: 0 4px 12px rgba(233,83,26,.35); }
.btn-secundario { background: var(--fundo-2); color: var(--texto); border: 1px solid var(--borda); align-self: flex-start; }
.btn-principal.largo { width: 100%; }
fieldset { border: 1px solid var(--borda); border-radius: 12px; margin: 1rem 0 0; padding: .8rem 1rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.papel-escolha label { display: block; padding: .35rem 0; }
.telas-escolha { display: grid; gap: .4rem 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.telas-escolha legend { grid-column: 1 / -1; }
.tela-opcao { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; cursor: pointer; }
.tela-opcao input { width: 20px; height: 20px; flex: none; }
.tela-opcao small { white-space: nowrap; font-size: .78rem; margin: 0; }

/* Tabelas */
.tabela-rolagem { overflow-x: auto; margin-bottom: 1.2rem; }
.tabela { width: 100%; border-collapse: collapse; background: var(--painel); border-radius: 14px; overflow: hidden; }
.tabela th, .tabela td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--borda); vertical-align: middle; }
.tabela th { background: var(--fundo-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--texto-2); }
.tabela td.telas { color: var(--texto-2); font-size: .9rem; max-width: 280px; }
.tabela td.acoes { white-space: nowrap; display: flex; gap: .8rem; align-items: center; }
.tabela td.acoes form { margin: 0; }
.link-perigo { font: inherit; background: none; border: 0; color: var(--erro); cursor: pointer; padding: 0; text-decoration: underline; }
.selo { font-size: .72rem; padding: .05rem .45rem; border-radius: 99px; background: var(--acento-2); color: #fff; }
.papel { font-size: .8rem; padding: .15rem .55rem; border-radius: 99px; border: 1px solid var(--borda); text-transform: capitalize; }
.papel-gestor { background: color-mix(in srgb, var(--acento) 18%, transparent); }
.papel-operador { background: color-mix(in srgb, var(--acento-2) 18%, transparent); }

/* Ao vivo */
.numeros { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.numero { background: var(--metal); border: 1px solid var(--borda); border-radius: 18px; padding: 1.1rem; text-align: center; box-shadow: var(--sombra); }
.numero b { display: block; font-size: 2.6rem; line-height: 1.1; }
.numero span { color: var(--texto-2); }
.numero.destaque b { color: var(--acento); font-size: 3.4rem; }
.atualizado { color: var(--texto-2); text-align: right; font-size: .85rem; margin: .5rem 0 1rem; }
.duas-colunas { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.lista-ouvintes, .lista-cidades { list-style: none; margin: 0; padding: 0; }
.lista-ouvintes li, .lista-cidades li { display: flex; gap: .7rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--borda); }
.lista-ouvintes li span { color: var(--texto-2); flex: 1; }
.lista-ouvintes li small { color: var(--texto-2); }
.lista-cidades li span { flex: 1; }
.lista-cidades li b { background: var(--fundo-2); border-radius: 99px; padding: .05rem .6rem; }

/* Login */
.pagina-login { display: grid; place-items: center; padding: 1rem; background: var(--fundo); }
.caixa-login {
    width: min(400px, 100%); background: var(--metal); border: 1px solid var(--borda);
    border-radius: 22px; padding: 2rem 1.6rem; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: .9rem;
}
.caixa-login h1 { margin: 0; text-align: center; }
.caixa-login .sub { text-align: center; margin: 0 0 .4rem; }
.login-icone { width: 76px; height: 76px; border-radius: 16px; margin: 0 auto; }

@media (max-width: 640px) {
    .topo { padding: .5rem .8rem; }
    .usuario { display: none; }
    .seletor { order: 3; width: 100%; }
    .seletor select { width: 100%; }
    .grade-botoes { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .botao-tela { min-height: 140px; border-radius: 18px; }
    .botao-icone { width: 60px; height: 60px; }
    .botao-icone svg { width: 32px; height: 32px; }
    .botao-nome { font-size: 1rem; }
}

/* Rádios: nome clicável e aviso de rádio sem gestor */
.form-inline { margin: 0; }
.link-radio { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; color: var(--acento); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.selo-alerta { font-size: .78rem; padding: .1rem .55rem; border-radius: 99px; background: color-mix(in srgb, #f5a623 22%, transparent); border: 1px solid #f5a623; white-space: nowrap; }
h2 .opcional { font-weight: 400; color: var(--texto-2); font-size: .85rem; }

/* Filtros (chips) */
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .2rem 0 1rem; }
.chip {
    font: inherit; font-size: .95rem; cursor: pointer; text-decoration: none; color: var(--texto);
    padding: .5rem 1rem; border-radius: 99px; border: 1px solid var(--borda); background: var(--painel);
}
.chip.ativo { background: var(--acento); border-color: var(--acento); color: #fff; font-weight: 700; }
.filtro-dia { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0; }
.filtro-dia label { display: flex; gap: .35rem; align-items: center; color: var(--texto-2); }
.filtro-dia input[type=date] {
    font: inherit; padding: .42rem .6rem; border-radius: 10px; border: 1px solid var(--borda);
    background: var(--painel); color: var(--texto); color-scheme: light dark;
}
.acoes-topo { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Aniversariantes */
.lista-aniversariantes { list-style: none; margin: 0; padding: 0; }
.lista-aniversariantes li { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--borda); }
.lista-aniversariantes .quem { flex: 1; display: flex; flex-direction: column; }
.lista-aniversariantes .quem strong { font-size: 1.1rem; }
.lista-aniversariantes .quem span, .lista-aniversariantes .quem small { color: var(--texto-2); }
.dia-aniv { font-weight: 800; color: var(--acento); min-width: 3.2rem; }
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; text-decoration: none;
    background: #25d366; color: #fff; font-weight: 700; padding: .6rem 1rem; border-radius: 12px;
}
.btn-whatsapp svg { width: 20px; height: 20px; fill: #fff; }

/* Relatórios */
.numeros.quatro { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1.4rem; }
.numero b.menor { font-size: 2rem; padding: .3rem 0; }
.titulo-secao { font-size: 1.2rem; margin: 1.2rem 0 .7rem; }
.titulo-secao small { font-weight: 400; color: var(--texto-2); font-size: .85rem; }
.barras { list-style: none; margin: 0; padding: 0; }
.barras li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: .7rem; align-items: center; padding: .35rem 0; }
.barra-nome { overflow-wrap: anywhere; line-height: 1.25; }
.duas-colunas.perfil { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .duas-colunas.perfil { grid-template-columns: 1fr; } }
.barra-trilho { height: 14px; border-radius: 99px; background: var(--fundo-2); overflow: hidden; }
.barra { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acento-2), var(--acento)); }
.barra-valor { color: var(--texto-2); font-size: .9rem; white-space: nowrap; text-align: right; }
.barras.dias .barra-nome { font-variant-numeric: tabular-nums; }
.legenda { text-align: right; font-size: .82rem; margin-top: .4rem; }

/* Impressão: só o conteúdo, fundo branco */
@media print {
    .topo, .nao-imprimir { display: none !important; }
    body { background: #fff; color: #000; }
    .conteudo { padding: 0; max-width: none; }
    .painel-bloco, .numero { box-shadow: none; background: #fff; border-color: #ccc; color: #000; }
    .duas-colunas { display: block; }
    .barra { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sub, .barra-valor, .lista-aniversariantes .quem span { color: #333; }
}

@media (max-width: 640px) {
    .lista-aniversariantes li { flex-wrap: wrap; gap: .4rem .8rem; }
    .lista-aniversariantes .quem { min-width: 0; flex-basis: 60%; }
    .btn-whatsapp { flex-basis: 100%; justify-content: center; }
    .titulo-com-acao .btn-secundario { padding: .5rem .9rem; }
    .barras li { grid-template-columns: minmax(90px, 40%) 1fr auto; gap: .5rem; }
    .numero b { font-size: 2rem; }
    .numero.destaque b { font-size: 2.4rem; }
}

.dica { font-style: normal; font-weight: 400; color: var(--texto-2); font-size: .82rem; }

/* Vídeos */
.campo-texto { font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1px solid var(--borda); background: var(--fundo-2); color: var(--texto); min-height: 46px; }
.lista-videos { list-style: none; margin: 0; padding: 0; }
.lista-videos li { display: flex; gap: 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--borda); flex-wrap: wrap; }
.lista-videos li.escondido { opacity: .55; }
.miniatura { position: relative; flex: none; width: 160px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.selo-live { position: absolute; left: 6px; bottom: 6px; background: #e00; color: #fff; font-size: .7rem; font-weight: 800; padding: 1px 6px; border-radius: 5px; }
.lista-videos .info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: .2rem; }
.lista-videos .info .sub { margin: 0; }
.selo-fixado { color: var(--acento); }
.selo-escondido { color: var(--erro); }
.acoes-video { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.acoes-video form { margin: 0; }
.acoes-video .btn-secundario { padding: .5rem .9rem; font-size: .9rem; }
@media (max-width: 640px) { .miniatura { width: 120px; } .acoes-video { width: 100%; } }

/* Mensagens (chat com os ouvintes) */
.selo-contador {
    display: inline-block; min-width: 22px; padding: 0 7px; height: 22px; line-height: 22px;
    border-radius: 99px; background: #e00; color: #fff; font-size: .78rem; font-weight: 800; text-align: center;
}
.botao-tela .selo-contador { position: absolute; top: .7rem; right: .7rem; font-size: .9rem; height: 26px; line-height: 26px; min-width: 26px; }
.conexao-off { font-size: .85rem; font-weight: 400; color: #f5a623; }
.mensagens {
    display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 1rem;
    height: calc(100dvh - 190px); min-height: 460px;
}
.mensagens-lista, .mensagens-conversa {
    background: var(--painel); border: 1px solid var(--borda); border-radius: 16px; box-shadow: var(--sombra);
    display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.mensagens-lista .filtros { padding: .7rem .7rem 0; margin: 0 0 .5rem; }
#conversas { overflow-y: auto; flex: 1; }
.vazio-lista { padding: 0 1rem; }
.lista-conversas { list-style: none; margin: 0; padding: 0; }
.item-conversa {
    width: 100%; text-align: left; font: inherit; color: var(--texto); background: none; border: 0;
    border-bottom: 1px solid var(--borda); padding: .7rem .9rem; cursor: pointer; display: flex; flex-direction: column; gap: .15rem;
}
.item-conversa:hover { background: var(--fundo-2); }
.item-conversa.aberta { background: color-mix(in srgb, var(--acento) 14%, transparent); }
.item-conversa .linha1, .item-conversa .linha3 { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.item-conversa .linha1 small, .item-conversa .linha2 small { color: var(--texto-2); }
.item-conversa .linha2 { display: flex; gap: .5rem; }
.item-conversa .previa { color: var(--texto-2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-conversa.nao-lida .previa { color: var(--texto); font-weight: 600; }
.tipo-msg { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--acento); }

.vazio-conversa { margin: auto; text-align: center; padding: 2rem; }
.conversa-topo { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--borda); }
.conversa-topo .quem { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.conversa-topo .quem small { color: var(--texto-2); }
.ouvindo { color: var(--ok); }
.btn-voltar-lista { display: none; font: inherit; font-size: 1.3rem; background: none; border: 0; color: var(--texto); cursor: pointer; }
.aviso-bloqueado { margin: .6rem 1rem 0; }
.conversa-mensagens { list-style: none; margin: 0; padding: 1rem; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.balao { max-width: 75%; padding: .55rem .85rem; border-radius: 14px; display: flex; flex-direction: column; gap: .15rem; }
.balao.do-ouvinte { align-self: flex-start; background: var(--fundo-2); border: 1px solid var(--borda); border-bottom-left-radius: 4px; }
.balao.da-radio { align-self: flex-end; background: linear-gradient(135deg, var(--acento), #e9531a); color: #fff; border-bottom-right-radius: 4px; }
.balao .meta { font-size: .72rem; opacity: .8; }
.balao.da-radio .tipo-msg { color: #fff; }
.balao .texto { white-space: pre-wrap; overflow-wrap: anywhere; }
.form-resposta { display: flex; gap: .6rem; padding: .7rem; border-top: 1px solid var(--borda); align-items: flex-end; flex-wrap: wrap; }
.form-resposta .alerta { width: 100%; margin: 0; }
.form-resposta textarea {
    flex: 1; font: inherit; padding: .6rem .8rem; border-radius: 12px; border: 1px solid var(--borda);
    background: var(--fundo-2); color: var(--texto); resize: vertical; min-height: 46px;
}
@media (max-width: 760px) {
    .mensagens { grid-template-columns: 1fr; height: calc(100dvh - 150px); }
    .mensagens .mensagens-conversa { display: none; }
    .mensagens.com-conversa .mensagens-lista { display: none; }
    .mensagens.com-conversa .mensagens-conversa { display: flex; }
    .btn-voltar-lista { display: block; }
    .balao { max-width: 88%; }
    .conversa-topo .btn-bloquear { padding: .45rem .7rem; font-size: .85rem; }
}

/* Aviso de mensagens no topo (todas as telas) */
.aviso-mensagens {
    position: relative; display: grid; place-items: center; width: 40px; height: 38px; border-radius: 10px;
    border: 1px solid var(--borda); background: var(--painel); color: var(--texto-2); text-decoration: none;
}
.aviso-mensagens svg { width: 22px; height: 22px; fill: currentColor; }
.aviso-mensagens.tem-novas { color: var(--acento); border-color: var(--acento); }
.aviso-mensagens .selo-contador { position: absolute; top: -8px; right: -8px; height: 20px; line-height: 20px; min-width: 20px; padding: 0 5px; font-size: .72rem; }
.selo-contador[hidden] { display: none; }

/* Notícias */
.lista-noticias { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cartao-noticia {
    display: flex; gap: 1rem; align-items: center; padding: .7rem; border-radius: 14px; text-decoration: none;
    color: var(--texto); background: var(--painel); border: 1px solid var(--borda); box-shadow: var(--sombra);
}
.cartao-noticia:hover { border-color: var(--acento); }
.cartao-noticia .miniatura { width: 150px; }
.cartao-noticia .info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.cartao-noticia .info .sub { margin: 0; }
.sem-capa { display: grid; place-items: center; width: 100%; height: 100%; color: #999; font-size: .8rem; background: var(--fundo-2); }
.selo-publicada { font-size: .75rem; padding: .1rem .5rem; border-radius: 99px; background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.selo-rascunho { font-size: .75rem; padding: .1rem .5rem; border-radius: 99px; background: var(--fundo-2); color: var(--texto-2); border: 1px solid var(--borda); }
.texto-noticia { font: inherit; line-height: 1.5; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--borda); background: var(--fundo-2); color: var(--texto); resize: vertical; }
.capa-atual { width: 220px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid var(--borda); }
.grade-fotos { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.grade-fotos li { position: relative; }
.grade-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.remover-foto {
    position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0;
    background: rgba(0,0,0,.7); color: #fff; font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.acoes-noticia { gap: .7rem; flex-wrap: wrap; }
.zona-perigo { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.zona-perigo form { margin: 0; }
@media (max-width: 640px) { .cartao-noticia .miniatura { width: 100px; } .capa-atual { width: 100%; } }

/* Promoções */
.selo-aberta { font-size: .75rem; padding: .1rem .5rem; border-radius: 99px; background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.selo-encerrada { font-size: .75rem; padding: .1rem .5rem; border-radius: 99px; background: var(--fundo-2); color: var(--texto-2); border: 1px solid var(--borda); }
.link-participantes { margin-left: .7rem; font-weight: 700; text-decoration: none; }

/* ---------- Sorteio e ganhadores ---------- */
.bloco-sorteio p { margin: .2rem 0 .8rem; }
.btn-sortear { font-size: 1.15rem; padding: .9rem 1.4rem; margin: .4rem 0 .8rem; }
.lista-ganhadores { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.ganhador { margin: 0; }
.ganhador p { margin: .3rem 0; }
.ganhador-topo { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ganhador-topo strong { font-size: 1.1rem; }
.ganhador-vencido { opacity: .65; }
.acoes-ganhador { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; align-items: center; }
.acoes-ganhador form { margin: 0; }
.td-semente, .semente { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; word-break: break-all; max-width: 16rem; color: var(--texto-2); }
.link-sorteio { margin-left: .8rem; }

.promo-lista-sorteio {
    display: flex; align-items: center; justify-content: flex-end; gap: .8rem; flex-wrap: wrap;
    padding: .55rem .8rem; margin-top: -1px; background: var(--fundo-2); border: 1px solid var(--borda);
    border-top: 1px dashed var(--borda); border-radius: 0 0 14px 14px; box-shadow: var(--sombra);
}
li:has(.promo-lista-sorteio) .cartao-noticia { border-radius: 14px 14px 0 0; box-shadow: none; }
.promo-lista-sorteio span { font-weight: 600; }
.promo-lista-sorteio a { text-decoration: none; }

.foto-ganhador { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: .7rem 0 .2rem; }
.foto-ganhador img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--borda); display: block; }
.foto-ganhador-acoes { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.foto-ganhador-acoes form { margin: 0; }
.btn-foto { cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.foto-no-app label { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.foto-no-app small { color: var(--texto-2); }

/* ---------- Regulamento e Privacidade ---------- */
.abas-doc { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1rem; border-bottom: 1px solid var(--borda); }
.abas-doc a { padding: .6rem 1rem; text-decoration: none; color: var(--texto-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.abas-doc a.ativa { color: var(--texto); border-bottom-color: var(--acento); }
.doc-ajuda { margin-bottom: .6rem; }
.texto-doc { width: 100%; box-sizing: border-box; font: inherit; font-size: .95rem; line-height: 1.5; padding: .8rem; border-radius: 10px;
    border: 1px solid var(--borda); background: var(--fundo); color: var(--texto); resize: vertical; min-height: 24rem; }
.previa-doc { padding: .4rem 1rem 1rem; border-radius: 10px; border: 1px dashed var(--borda); max-width: 46rem; }
.previa-doc h1 { font-size: 1.4rem; }
.previa-doc h2 { font-size: 1.05rem; margin: 1.3rem 0 .3rem; color: var(--acento); }
.previa-doc p { line-height: 1.55; margin: .4rem 0; }
.acoes-doc { margin-top: .8rem; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* ---------- Relatórios: horários ---------- */
.bloco-largo { grid-column: 1 / -1; }
.tabela-horarios th, .tabela-horarios td { text-align: center; white-space: nowrap; text-transform: none; }
.tabela-horarios tbody th { text-align: left; font-weight: 600; }
.tabela-horarios td.pico { font-weight: 800; outline: 2px solid var(--acento); outline-offset: -2px; }
.tabela-horarios td.total { color: var(--texto-2); }
.resumo-horarios { margin: .8rem 0 0; padding-left: 1.2rem; }
.resumo-horarios li { margin: .25rem 0; }
@media print { .tabela-horarios td { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- Pedidos de música ---------- */
.lista-pedidos { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pedido { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .9rem; align-items: center; margin: 0; }
.pedido-hora { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--texto-2); }
.pedido-texto strong { font-size: 1.1rem; display: block; }
.pedido-texto p { margin: .2rem 0; font-style: italic; }
.pedido-acoes { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pedido-acoes form { margin: 0; }
.pedido-tocado { opacity: .6; }
.separador-filtros { width: 1px; align-self: stretch; background: var(--borda); margin: 0 .3rem; }
.link-pedidos { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; text-decoration: none; }
@media (max-width: 640px) { .pedido { grid-template-columns: 1fr; } .pedido-acoes { justify-content: flex-start; } }

/* ---------- Programação ---------- */
.no-ar-agora { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin: .4rem 0 1rem; }
.ponto-ao-vivo { width: .7rem; height: .7rem; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); animation: pulso-ao-vivo 1.6s infinite; }
@keyframes pulso-ao-vivo { 70% { box-shadow: 0 0 0 .5rem rgba(229, 57, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); } }
.grade-semana { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 1.5rem; }
.dia-grade { margin: 0; padding: .8rem; }
.dia-grade h3 { margin: 0 0 .5rem; font-size: 1rem; }
.dia-grade h3 small { color: var(--acento); font-weight: 700; }
.dia-hoje { outline: 2px solid var(--acento); }
.dia-grade ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.dia-grade li a { display: grid; padding: .4rem .5rem; border-radius: 8px; text-decoration: none; color: inherit; background: var(--fundo); }
.dia-grade li a:hover { outline: 1px solid var(--borda); }
.dia-grade .faixa { font-size: .78rem; font-weight: 700; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.dia-grade .nome { font-weight: 600; }
.item-no-ar a { outline: 2px solid #e53935; }
.item-conflito a { background: color-mix(in srgb, #e0a100 18%, var(--fundo)); }
.capa-vazia { display: grid; place-items: center; font-size: 2rem; background: var(--fundo); }
.linha-horario { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding: .7rem 0; border-top: 1px dashed var(--borda); }
.linha-horario label { display: flex; align-items: center; gap: .4rem; }
.linha-horario input[type=time] { font: inherit; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--borda); background: var(--fundo); color: var(--texto); }
.dias-horario { display: flex; gap: .3rem; flex-wrap: wrap; }
.chip-dia input { position: absolute; opacity: 0; pointer-events: none; }
.chip-dia span { display: inline-block; padding: .35rem .6rem; border-radius: 999px; border: 1px solid var(--borda); cursor: pointer; font-size: .85rem; user-select: none; }
.chip-dia input:checked + span { background: var(--acento); border-color: var(--acento); color: #fff; font-weight: 700; }
.chip-dia input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.campo-foto-programa { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: .6rem 0; }
.campo-foto-programa img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; border: 1px solid var(--borda); }
.zona-excluir { margin-top: 1.5rem; }

.lista-programas .cartao-noticia { display: flex; align-items: center; gap: .9rem; }
.lista-programas .cartao-noticia img, .lista-programas .capa-vazia { width: 64px; height: 64px; min-width: 64px; object-fit: cover; border-radius: 10px; }

/* Recado de voz do ouvinte */
.balao .audio-recado { width: 260px; max-width: 100%; height: 40px; margin-top: .2rem; }
.balao .acoes-audio { display: flex; gap: .75rem; align-items: center; font-size: .85rem; }
.balao .acoes-audio a { color: inherit; }
.btn-guardar-audio { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: .15rem .65rem; font: inherit; cursor: pointer; opacity: .85; }
.btn-guardar-audio.guardado { font-weight: 700; opacity: 1; }
.balao .audio-expirado { font-style: italic; opacity: .75; }

/* Mural dos ouvintes */
.lista-mural { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .9rem; }
.recado-mural { display: flex; gap: 1rem; align-items: flex-start; }
.recado-foto { flex: none; }
.recado-foto img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; display: block; }
.recado-corpo { flex: 1; min-width: 0; display: grid; gap: .5rem; }
.recado-texto { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; }
.recado-corpo audio { width: 100%; max-width: 360px; height: 40px; }
.recado-acoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.recado-acoes form { margin: 0; }
.btn-perigo { color: #c62828; }
@media (max-width: 600px) {
    .recado-mural { flex-direction: column; }
    .recado-foto img { width: 100%; height: auto; max-height: 320px; }
}

/* Patrocinadores */
.lista-patrocinadores { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .9rem; }
.patrocinador { display: flex; gap: 1rem; align-items: center; }
.patrocinador.vencido, .patrocinador.pausado { opacity: .65; }
.patrocinador-banner { flex: none; width: 280px; max-width: 45%; }
.patrocinador-banner img { width: 100%; aspect-ratio: 4 / 1; object-fit: contain; border-radius: 10px; display: block; background: #fff; }
.patrocinador-dados { flex: 1; min-width: 0; display: grid; gap: .35rem; }
.patrocinador-topo { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.patrocinador-acoes { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.selo-plano { font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; border: 1px solid currentColor; }
.selo-plano.plano-Bronze { color: #a0522d; }
.selo-plano.plano-Prata { color: #78909c; }
.selo-plano.plano-Ouro { color: #c99a00; }
.selo-situacao { font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; background: var(--fundo-2); color: var(--texto-2); }
.selo-situacao.no-ar { background: #2e7d32; color: #fff; }
.selo-situacao.vencido { background: #c62828; color: #fff; }
.selo-vence { font-size: .8rem; font-weight: 700; color: #e0a100; }
.campo-banner { display: grid; gap: .6rem; }
.campo-banner img { width: 100%; max-width: 600px; aspect-ratio: 4 / 1; object-fit: contain; border-radius: 10px; background: #fff; }
.opcoes-quando { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-bottom: .6rem; }
.quando-programa[hidden], .quando-horarios[hidden] { display: none; }
.filtro-periodo { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.cartoes-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin: 1rem 0; }
.cartao-numero { display: grid; gap: .2rem; }
.cartao-numero span { color: var(--texto-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.cartao-numero strong { font-size: 2rem; }
.cartao-numero small { color: var(--texto-2); }
.tabela .num { text-align: right; }
@media (max-width: 600px) {
    .patrocinador { flex-direction: column; align-items: stretch; }
    .patrocinador-banner { width: 100%; max-width: none; }
}

.previa-banner { display: grid; gap: .35rem; }
.previa-banner[hidden] { display: none; }
.previa-banner .rotulo-previa { font-size: .85rem; color: var(--texto-2); }
.previa-celular { width: 230px; padding: 10px; border-radius: 14px; background: #2a1650; }
.previa-faixa { position: relative; width: 100%; aspect-ratio: 3.4 / 1; border-radius: 8px; overflow: hidden; background: #fff; }
.previa-faixa img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
.previa-fundo { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) brightness(.7); display: none; }
.previa-faixa.completada .previa-fundo { display: block; }
.previa-faixa.liso .previa-fundo { display: none; }
.aviso-proporcao { color: #e0a100; font-weight: 600; font-size: .9rem; }
.aviso-proporcao[hidden] { display: none; }

/* Painel: alerta da transmissão; tela "Aviso no app" */
.alerta-transmissao { margin-bottom: 1rem; font-weight: 700; }
.botao-tela .selo-contador.selo-ativo { background: #2e7d32; padding: 0 9px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.aviso-app { max-width: 760px; }
.aviso-form { display: grid; grid-template-columns: 1fr 240px; gap: .8rem 1rem; align-items: end; }
.aviso-form .campo { margin: 0; }
.aviso-botoes-admin { grid-column: 1 / -1; display: flex; gap: .6rem; }
.aviso-situacao { margin: .2rem 0 .8rem; color: var(--texto-2, inherit); }
.aviso-situacao.valendo { color: var(--ok); font-weight: 700; }
@media (max-width: 700px) { .aviso-form { grid-template-columns: 1fr; } }
.aviso-previa-area { grid-column: 1 / -1; display: grid; gap: .35rem; }
.aviso-previa {
    display: flex; align-items: center; gap: 10px; max-width: 440px; padding: 10px 12px 10px 14px;
    border-radius: 14px; color: #fff; font-size: .92rem; background: linear-gradient(135deg, #f08b00, #ce3c91);
}
.aviso-previa b { flex: 1; overflow-wrap: anywhere; }
.aviso-previa-x { width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.18); display: grid; place-items: center; }

/* Ouvintes ao vivo: recado para quem está ouvindo e botão de mensagem */
.recado-ao-vivo { margin-bottom: 1rem; max-width: 760px; }
.recado-ao-vivo summary { cursor: pointer; font-weight: 700; }
.recado-ao-vivo[open] summary { margin-bottom: .8rem; }
.recado-form { display: grid; gap: .6rem; }
.recado-form textarea {
    width: 100%; box-sizing: border-box; resize: vertical; font: inherit; padding: .6rem .7rem;
    border: 1px solid var(--borda); border-radius: 10px; background: var(--fundo-2); color: var(--texto);
}
.recado-form textarea:focus { outline: 2px solid var(--acento); outline-offset: 1px; }
.recado-botoes { display: flex; align-items: center; gap: .8rem; }
.recados-titulo { margin: 1rem 0 .4rem; font-size: 1rem; }
.recados-enviados { list-style: none; margin: 0; padding: 0; }
.recados-enviados li { padding: .55rem 0; border-bottom: 1px solid var(--borda); }
.recados-enviados p { margin: 0 0 .2rem; white-space: pre-line; overflow-wrap: anywhere; }
.recados-enviados small { opacity: .75; }
.lista-ouvintes .btn-mensagem {
    margin-left: auto; white-space: nowrap; font-size: .85rem; text-decoration: none; padding: .25rem .6rem;
    border: 1px solid var(--borda); border-radius: 999px; color: inherit;
}
.lista-ouvintes .btn-mensagem:hover { border-color: var(--acento); color: var(--acento); }
.recado-ao-vivo .legenda { text-align: left; }

/* Sorteio com confirmação: cartão do sorteado */
.cartao-sorteado { border: 2px solid var(--acento); max-width: 760px; }
.cartao-sorteado-rotulo { margin: 0; font-weight: 700; color: var(--acento); text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }
.cartao-sorteado-nome { margin: .3rem 0 .2rem; font-size: 1.6rem; }
.cartao-sorteado-local { margin: 0 0 .8rem; font-size: 1.05rem; }
.cartao-sorteado-distancia { font-weight: 700; }
.cartao-sorteado-premios { background: var(--fundo-2); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .8rem; }
.cartao-sorteado-premios p { margin: 0; }
.cartao-sorteado-premios ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.cartao-sorteado-premios li { margin: .2rem 0; }
.cartao-sorteado-premios .primeira-vez { font-weight: 700; color: var(--ok); }
.cartao-sorteado-acoes { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; margin-top: .6rem; }
.novo-sorteio { flex: 1 1 320px; }
.novo-sorteio summary { list-style: none; display: inline-block; cursor: pointer; }
.novo-sorteio summary::-webkit-details-marker { display: none; }
.novo-sorteio[open] summary { margin-bottom: .6rem; }
.form-descarte { display: grid; gap: .6rem; padding: .8rem; border: 1px solid var(--borda); border-radius: 10px; }
.form-descarte .campo { margin: 0; }
.tabela tr.sorteio-descartado td { opacity: .75; }
.tabela tr.sorteio-descartado td.resultado { color: var(--erro); opacity: 1; }
.tabela tr.sorteio-pendente td.resultado { color: #e0a100; font-weight: 700; }
.tabela td.resultado { min-width: 220px; }

/* Promoção: região de participação */
.regiao-opcoes { display: grid; gap: .55rem; }
.regiao-opcoes > label { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.regiao-opcoes .campo-km { width: 90px; font: inherit; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--borda); background: var(--fundo-2); color: var(--texto); }
.regiao-opcoes .campo-km:disabled { opacity: .5; }
.regiao-ufs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .3rem .5rem; padding: .3rem 0 .3rem 1.6rem; }
.regiao-ufs[hidden] { display: none; }
.regiao-ufs .uf { display: flex; align-items: center; gap: .3rem; font-size: .92rem; }
.regiao-promocao.com-erro { border-color: var(--erro); }

/* Rádios: situação, editar, desativar */
.selo-ativa, .selo-desativada { font-size: .78rem; padding: .1rem .55rem; border-radius: 99px; white-space: nowrap; }
.selo-ativa { background: color-mix(in srgb, var(--ok) 18%, transparent); border: 1px solid var(--ok); }
.selo-desativada { background: color-mix(in srgb, var(--erro) 15%, transparent); border: 1px solid var(--erro); }
.tabela tr.radio-desativada td { opacity: .7; }
.tabela tr.radio-desativada td.acoes-radio { opacity: 1; }
.acoes-radio { white-space: nowrap; }
.acoes-radio .form-inline { display: inline-block; margin: 0 .2rem 0 0; }
.btn-pequeno { padding: .3rem .75rem; font-size: .85rem; }
.faixa-desativada {
    margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 10px;
    background: color-mix(in srgb, var(--erro) 14%, transparent); border: 1px solid var(--erro);
}
.faixa-desativada a { color: inherit; font-weight: 700; }

/* Ouvintes ao vivo: lista por cidade que abre e fecha */
.busca-ao-vivo { display: block; max-width: 760px; margin: 0 0 1rem; }
.busca-ao-vivo input {
    width: 100%; box-sizing: border-box; font: inherit; padding: .65rem .8rem; border-radius: 10px;
    border: 1px solid var(--borda); background: var(--fundo-2); color: var(--texto);
}
.busca-ao-vivo input:focus { outline: 2px solid var(--acento); outline-offset: 1px; }
.legenda-cidades { margin-top: -.3rem; }
.cidades-ao-vivo { list-style: none; margin: 0; padding: 0; }
.cidade-ao-vivo { border-bottom: 1px solid var(--borda); }
.cidade-ao-vivo[hidden] { display: none; }
.cidade-linha { display: flex; align-items: baseline; gap: .6rem; padding: .65rem .2rem; }
summary.cidade-linha { cursor: pointer; list-style: none; border-radius: 8px; }
summary.cidade-linha::-webkit-details-marker { display: none; }
summary.cidade-linha:hover { background: var(--fundo-2); }
.cidade-seta { width: 1rem; flex: none; color: var(--acento); font-weight: 700; transition: transform .15s; display: inline-block; }
details[open] > summary .cidade-seta { transform: rotate(90deg); }
.cidade-nome { flex: 1; font-weight: 600; }
.cidade-num { color: var(--texto-2); white-space: nowrap; }
.cidade-num b { color: var(--texto); background: var(--fundo-2); border-radius: 99px; padding: .05rem .55rem; }
.cidade-ao-vivo details .lista-ouvintes { margin: 0 0 .5rem 1.6rem; }
.cidade-ao-vivo details .lista-ouvintes li[hidden] { display: none; }
.ver-todas { margin-top: .8rem; }
@media (max-width: 560px) {
    .cidade-linha { flex-wrap: wrap; }
    .cidade-num { width: 100%; padding-left: 1.6rem; }
}
.cidade-ao-vivo details .lista-ouvintes li { align-items: center; }
.cidade-ao-vivo details .lista-ouvintes li strong { flex: 1; min-width: 0; }
.cidade-ao-vivo details .lista-ouvintes li > span:empty { display: none; }
.cidade-ao-vivo details .lista-ouvintes li small { white-space: nowrap; }

/* Promoção: região por cidades e "só quem estiver ouvindo" */
.regiao-cidades { padding: .2rem 0 .3rem 1.6rem; display: grid; gap: .5rem; max-width: 560px; }
.regiao-cidades[hidden] { display: none; }
.cidades-escolhidas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.cidades-escolhidas:empty { display: none; }
.cidades-escolhidas li { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .3rem .25rem .7rem; border-radius: 99px; background: color-mix(in srgb, var(--acento) 16%, transparent); border: 1px solid var(--acento); font-size: .92rem; }
.tirar-cidade { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: .85rem; padding: .1rem .35rem; border-radius: 99px; }
.tirar-cidade:hover { background: color-mix(in srgb, var(--acento) 30%, transparent); }
.busca-cidade { position: relative; }
.busca-cidade input { width: 100%; box-sizing: border-box; font: inherit; padding: .5rem .7rem; border-radius: 10px; border: 1px solid var(--borda); background: var(--fundo-2); color: var(--texto); }
.sugestoes-cidade { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: .3rem; border-radius: 10px; border: 1px solid var(--borda); background: var(--fundo); box-shadow: 0 8px 24px rgba(0,0,0,.25); max-height: 260px; overflow-y: auto; }
.sugestoes-cidade[hidden] { display: none; }
.sugestoes-cidade li { padding: .45rem .6rem; border-radius: 8px; cursor: pointer; }
.sugestoes-cidade li.ativa, .sugestoes-cidade li:hover { background: var(--fundo-2); }
.sugestoes-cidade li.nada { cursor: default; opacity: .7; }
.opcao-ouvindo { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.opcao-ouvindo input { margin-top: .25rem; }
.opcao-ouvindo small { color: var(--texto-2); }
.concorrem-agora { margin: .2rem 0 .6rem; font-size: 1.02rem; }
.concorrem-agora small { color: var(--texto-2); font-size: .8rem; }
.regra-ouvindo { color: var(--texto); }

/* Promoção: regras automáticas do sorteio */
.regras-sorteio { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--borda); display: grid; gap: .8rem; }
.regras-sorteio .regra { display: grid; gap: .3rem; }
.regras-sorteio .regra > span { font-weight: 700; }
.regras-sorteio select { max-width: 320px; font: inherit; padding: .4rem .5rem; border-radius: 8px; border: 1px solid var(--borda); background: var(--fundo-2); color: var(--texto); }
.regra-campos { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.campo-curto { width: 84px; font: inherit; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--borda); background: var(--fundo-2); color: var(--texto); }
.regras-sorteio .com-erro .campo-curto { border-color: var(--erro); }
.regras-ativas { margin: .3rem 0 .8rem; padding-left: 1.2rem; }
.regras-ativas li { margin: .15rem 0; }
.concorrem-agora .fora-regras { color: var(--texto-2); font-size: .9rem; }

/* Promoção travada: reabrir ou encerrar */
.promo-travada { border: 2px solid #e0a100; max-width: 900px; }
.promo-travada h2 { margin-top: 0; }
.travada-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.travada-opcao { display: grid; gap: .6rem; align-content: start; padding: .9rem; border: 1px solid var(--borda); border-radius: 12px; }
.travada-opcao h3 { margin: 0; font-size: 1.05rem; }
.travada-opcao .campo { margin: 0; }
.promo-encerrada-aviso { border-left: 4px solid var(--erro); max-width: 900px; }
.promo-encerrada-aviso p { margin: .2rem 0; }
.reaberturas { list-style: none; padding: 0; margin: .6rem 0 0; }

/* Usuários: inativo nesta rádio / login bloqueado */
.linha-inativa td { opacity: .6; }
.linha-inativa td.acoes { opacity: 1; }
.link-acao { font: inherit; background: none; border: 0; color: var(--acento); cursor: pointer; padding: 0; text-decoration: underline; }
.selo-bloqueado { border-color: var(--erro); background: color-mix(in srgb, var(--erro) 15%, transparent); }
.situacao-usuario form { margin-top: .5rem; }
.situacao-usuario .btn-perigo { font: inherit; font-weight: 700; padding: .55rem 1rem; border-radius: 10px; border: 1px solid #c62828; background: transparent; cursor: pointer; }
