/* ═══════════════════════════════════════════════════════════════════
   AJUSTES DE VISIBILIDADE — out/2026
   Carregado por ÚLTIMO nas duas interfaces (desktop e celular).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Listas de seleção: as opções abertas herdavam texto claro sobre o
      fundo branco do sistema e "sumiam" (Orações → "A Jesus", Novenas…) ── */
select option, select optgroup { background-color: #fffaf0 !important; color: #2a1a06 !important; }
html[data-tema="escuro"] select option, html[data-tema="escuro"] select optgroup { background-color: #1d140b !important; color: #f3e9d2 !important; }

/* ── Colorir: botões ficam dentro da área branca do desenho ── */
.clr-btn {
  background: #f6ead2 !important; color: #3a2508 !important;
  border: 1px solid #c9a060 !important; font-weight: 700 !important;
}
.clr-btn:hover { background: #efdcb6 !important; }

/* ── Orações: contador "Marcar como rezada" / Zerar / 0/1 ── */
.counter-card .counter-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.counter-card .counter-btn {
  background: #7a4a16 !important; color: #fff8e8 !important; border: 0 !important;
  border-radius: 999px !important; padding: 10px 16px !important; font-weight: 800 !important; font-size: 15px !important;
  box-shadow: 0 2px 6px rgba(80, 45, 10, .25); cursor: pointer;
}
.counter-card .counter-btn.counter-reset { background: #3b2a1f !important; }
.counter-card .counter-value {
  font-size: 17px !important; font-weight: 700 !important; padding: 6px 12px; border-radius: 999px;
  background: #fff3da !important; color: #4b2d15 !important; border: 1px solid rgba(122, 74, 22, .35);
}
.counter-card .counter-value b { color: #2a1a06 !important; display: inline !important; font-size: inherit !important; margin: 0 !important; font-family: inherit !important; }
.counter-card .counter-progress { background: #ead7b0 !important; height: 9px !important; }
.counter-card .counter-progress span { background: linear-gradient(90deg, #9a5f12, #d9a441) !important; }

/* ── Almas do purgatório: barras e contas do terço no tema claro ── */
html[data-tema="claro"] .al-prog { background: rgba(122, 74, 18, .18) !important; box-shadow: inset 0 0 0 1px rgba(122, 74, 18, .18); height: 8px !important; }
html[data-tema="claro"] .al-prog i { background: linear-gradient(90deg, #9a5f12, #d9a441) !important; }
html[data-tema="claro"] .al-conta { background: rgba(122, 74, 18, .22) !important; box-shadow: inset 0 0 0 1px rgba(122, 74, 18, .28); }
html[data-tema="claro"] .al-conta.on { background: linear-gradient(135deg, #d9a441, #9a5f12) !important; box-shadow: 0 0 0 2px rgba(217, 164, 65, .35); }
html[data-tema="claro"] .al-bx { border-color: #9a6a24 !important; }

/* ── Sino da oração: interruptor desligado visível no tema claro ── */
html[data-tema="claro"] .sino-sw span { background: #d9cbb0 !important; box-shadow: inset 0 0 0 1px rgba(90, 60, 20, .35); }
html[data-tema="claro"] .sino-sw span:before { box-shadow: 0 1px 4px rgba(60, 35, 5, .45); }
html[data-tema="claro"] .sino-sw input:checked + span { background: linear-gradient(135deg, #d9a441, #9a5f12) !important; box-shadow: none; }
.sino-sw input:focus-visible + span { outline: 2px solid #c88a2b; outline-offset: 2px; }

/* ── Pedidos e Graças: quadradinhos dos dias da agenda ── */
html[data-tema="claro"] .dv-dia { border: 1px solid rgba(138, 100, 24, .38) !important; background-color: #fffdf8 !important; }
html[data-tema="escuro"] .dv-dia { border: 1px solid rgba(255, 228, 160, .2) !important; }

/* ── Novenas (filtros) no tema escuro: nomes mais legíveis ── */
html[data-tema="escuro"].sg-mob .filter-btn:not(.active) { color: #f3e9d2 !important; border-color: rgba(255, 228, 160, .32) !important; }
html.sg-mob .filter-btn.active { color: #1e1204 !important; text-shadow: none !important; }

/* ── Evangelho do dia (computador): letras maiores ── */
html.sg-desk #gospel-panel .gospel-title, html.sg-desk #gospel-panel .gospel-title span { font-size: clamp(20px, 1.7vw, 30px) !important; line-height: 1.3 !important; }
#gospel-panel .evdia-tag, .evdia-tag { font-size: 13px !important; padding: 4px 11px !important; }
#gospel-panel .evdia-ref { font-size: 16px !important; font-weight: 700 !important; }
html.sg-desk #gospel-panel .evdia-txt p { font-size: clamp(20px, 1.55vw, 27px) !important; line-height: 1.8 !important; }
#gospel-panel .evdia-extra > summary, .evdia-extra > summary { font-size: 16px !important; padding: 10px 0 !important; }
#gospel-panel .evdia-btn, .evdia-btn { font-size: 14px !important; padding: 8px 14px !important; }
#gospel-panel .evdia-fonte, .evdia-fonte { font-size: 13px !important; }
html.sg-mob .evdia-txt p { font-size: 1.12rem !important; line-height: 1.85 !important; }

/* ── Literatura: A−/A+ no computador (uma regra geral travava em 14 px) ── */
#lit-corpo p, #lit-corpo li, #lit-corpo blockquote { font-size: inherit !important; line-height: inherit !important; }
html[data-tema="claro"] #lit-au-stop, html[data-tema="claro"] #lit-au-rate,
html[data-tema="claro"] #lit-root button[onclick^="litFonte"], html[data-tema="claro"] #lit-root-desktop button[onclick^="litFonte"] {
  background: #f3e4c4 !important; color: #5a320a !important; border: 1px solid #b0802c !important; font-weight: 700 !important;
}
#lit-au-stop { min-width: 84px; }

/* ── Terço guiado (computador) ── */
html[data-tema="claro"] #rezar-overlay { background-image: linear-gradient(#f7f1e6, #efe4cf) !important; }
html[data-tema="escuro"] #rezar-overlay { background-image: linear-gradient(#120b07, #0b0812) !important; }
#rezar-overlay .rezar-topbar-title { font-size: 18px !important; letter-spacing: .04em; }
#rezar-overlay .rezar-topbar-counter { font-size: 15px !important; font-weight: 700 !important; }
#rezar-overlay .rezar-close-btn { font-size: 15px !important; padding: 7px 14px !important; }
html[data-tema="claro"] #rezar-overlay .rezar-subtitulo { color: #8a5a12 !important; }
#rezar-overlay .rezar-subtitulo { font-size: 15px !important; letter-spacing: .14em !important; font-weight: 700 !important; }
#rezar-overlay .rezar-titulo { font-size: clamp(26px, 2.2vw, 36px) !important; }
#rezar-overlay .rezar-texto { font-size: clamp(20px, 1.6vw, 26px) !important; line-height: 1.75 !important; }
#rezar-overlay .rezar-nav-btn { font-size: 15px !important; padding: 11px 22px !important; }
#rezar-overlay #rezar-pct-val { font-size: 15px !important; font-weight: 700 !important; }
#rezar-overlay .rezar-footer-hint { font-size: 13px !important; }

/* ── Botão "Criar card com o trecho" agora acompanha a seleção ── */
.cs-pill { transition: top .15s ease, left .15s ease; max-width: calc(100vw - 16px); }

/* ── Karaokê ── */
.ka-ltr .ka-l-heb { direction: ltr !important; text-align: center; }
.ka-word.sung { color: var(--text-gold, #e0ac4e) !important; }
.ka-word.singing { background: #ffd24a !important; color: #1e1204 !important; border-radius: 6px; padding: 0 4px; text-shadow: none !important; }
html[data-tema="claro"] .ka-word.sung { color: #8a5a12 !important; }
.ka-m-letra { color: #fff; }
html[data-tema="claro"] .ka-m-letra { color: #2a1a06; }
.ka-m-letra .ka-m-cantada { color: #ffe4a0; }
html[data-tema="claro"] .ka-m-letra .ka-m-cantada { color: #8a5a12; }
.ka-m-letra .ka-m-agora { background: #ffd24a !important; color: #1e1204 !important; }

/* ── Papéis de parede animados ── */
.nv-wall-anim { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.nv-wall-anim .nv-anim { border-radius: 14px; overflow: hidden; border: 1px solid rgba(200, 138, 43, .35); background: #000; display: flex; flex-direction: column; }
.nv-wall-anim video, .nv-wall-anim img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.nv-wall-anim .nv-anim-t { font-size: 13px; padding: 8px 10px 4px; color: #f3e9d2; }
.nv-wall-anim .nv-anim-b { display: flex; gap: 6px; padding: 6px 8px 10px; }
.nv-wall-anim .nv-anim-b a { flex: 1; white-space: nowrap; text-align: center; font-size: 12px; font-weight: 700; padding: 7px 4px; border-radius: 9px; text-decoration: none; background: #f3e4c4; color: #5a320a; }
html[data-tema="claro"] .nv-wall-anim .nv-anim { background: #fffaf0; }
html[data-tema="claro"] .nv-wall-anim .nv-anim-t { color: #2a1a06; }
@media (prefers-reduced-motion: reduce) { .nv-wall-anim video { display: none; } }
