:root {
  --bg: #0F0F14; --surface: #1B1B23; --surface2: #23232E;
  --ink: #F2EFE9; --muted: #A9A395;
  --gold: #E3B23C; --gold-soft: #F0C169; --gold-ink: #2A2008;
  --border: rgba(227, 178, 60, 0.18); --radius: 20px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: "Lora", Georgia, serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
img { max-width: 100%; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 96px; padding-bottom: 64px; min-height: 70vh; }

/* header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(15,15,20,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar { display: flex; align-items: center; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: "Lora", serif; font-weight: 600; color: var(--ink); white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.menu { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: .9rem; overflow-x: auto; }
.menu a { color: var(--muted); white-space: nowrap; }
.menu a.on, .menu a:hover { color: var(--gold); }
.menu a.cta { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--gold-ink); font-weight: 600; padding: 7px 15px; border-radius: 999px; }
@media (max-width: 640px) { .brand span { display: none; } .menu { gap: 12px; font-size: .84rem; } }

/* estrutura comum */
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 12px; line-height: 1.25; }
h2 { font-size: 1.3rem; margin: 34px 0 14px; color: var(--gold-soft); }
.lead-left { color: var(--muted); margin-bottom: 24px; max-width: 640px; }
.kicker-left { color: var(--gold); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.muted { color: var(--muted); }
.painel { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 26px; align-items: center; }
.botao {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--gold-ink) !important;
  font-weight: 600; border: 0; cursor: pointer; font-size: .95rem;
}
.botao.fantasma { background: var(--surface); color: var(--ink) !important; border: 1px solid var(--border); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.chip {
  background: var(--surface); border: 1px solid rgba(255,255,255,.07); color: var(--ink);
  padding: 9px 16px; border-radius: 999px; font-size: .9rem; transition: border-color .15s;
}
.chip:hover { border-color: var(--border); color: var(--gold-soft); }
.grade-caps { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.num, .dia {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
  color: var(--ink); font-weight: 600; font-size: .95rem;
}
.num:hover, .dia:hover { border-color: var(--gold); color: var(--gold); }
details { margin-bottom: 12px; background: var(--surface); border-radius: var(--radius); padding: 14px 18px; }
summary { cursor: pointer; font-family: "Lora", serif; font-size: 1.05rem; color: var(--gold-soft); }

/* leitor */
.leitor-topo { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.leitor-controles { display: flex; gap: 8px; align-items: center; }
.leitor-controles select, .leitor-controles button {
  background: var(--surface); color: var(--ink); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 8px 10px; font-size: .88rem; cursor: pointer;
}
.versos { list-style: none; margin: 18px 0 10px; font-size: var(--fonte-leitor, 1.06rem); }
.versos li { padding: 5px 0; }
.versos li::before { content: attr(value); color: var(--gold); font-weight: 700; font-size: .72em; vertical-align: super; margin-right: 7px; }
.versos li:target { background: rgba(227,178,60,.14); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.atrib-versao { font-size: .78rem; color: var(--muted); margin-bottom: 20px; }
.pagina-nav { display: flex; justify-content: space-between; gap: 10px; margin: 26px 0; font-size: .92rem; flex-wrap: wrap; }
.estudo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; margin: 26px 0; }
.estudo h2 { margin-top: 0; }
.estudo h3 { color: var(--gold); font-size: .95rem; margin: 18px 0 6px; }
.estudo p, .estudo li { color: var(--ink); opacity: .92; font-size: .97rem; }
.estudo ul { padding-left: 20px; }
.promo { background: var(--surface2); border-radius: var(--radius); padding: 16px 20px; margin: 26px 0; font-size: .92rem; color: var(--muted); }

/* devocional / frases / temas */
.verso-card { background: var(--surface); border-left: 3px solid var(--gold); border-radius: 14px; padding: 20px 22px; margin: 18px 0; }
.verso-card p { font-size: 1.08rem; line-height: 1.6; }
.verso-card cite { display: block; margin-top: 10px; color: var(--gold-soft); font-style: normal; font-size: .88rem; }
.prosa p { margin-bottom: 16px; font-size: 1.02rem; }
.declare, .oracao { background: var(--surface); border-radius: var(--radius); padding: 22px; margin: 22px 0; }
.declare h2, .oracao h2 { margin-top: 0; font-size: 1.05rem; }
.declare p { font-size: 1.1rem; font-style: italic; }
.lista-frases { display: grid; gap: 14px; margin: 20px 0; }
.card-frase { background: var(--surface); border-radius: 16px; padding: 18px 20px; position: relative; }
.card-frase .num-dia { position: absolute; top: 14px; right: 16px; color: var(--muted); font-size: .75rem; }
.card-frase p { font-size: 1.02rem; }
.card-frase cite { color: var(--gold-soft); font-style: normal; font-size: .84rem; }

/* vídeos */
.card-video { margin-bottom: 34px; }
.card-video h3 { margin-top: 14px; }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.grade-shorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 16px 0; }
.card-short { background: var(--surface); border-radius: 14px; overflow: hidden; color: var(--ink); font-size: .84rem; }
.card-short img { width: 100%; aspect-ratio: 9/12; object-fit: cover; }
.card-short span { display: block; padding: 10px 12px; }

/* trilhas / livros */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 20px 0; }
.card-trilha { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.card-trilha .emoji { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.card-trilha h3 { margin-bottom: 6px; font-size: 1.08rem; }
.selo { font-size: .62rem; letter-spacing: .08em; background: var(--gold); color: var(--gold-ink); border-radius: 999px; padding: 2px 8px; vertical-align: middle; font-family: sans-serif; font-weight: 700; }
.selo.gratis { background: #4CAF7D; color: #06130c; }

/* busca */
#q { flex: 1; min-width: 220px; background: var(--surface); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 16px; color: var(--ink); font-size: 1rem; }
#versao-busca { background: var(--surface); color: var(--ink); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px; }
.resultado { background: var(--surface); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.resultado cite { color: var(--gold-soft); font-style: normal; font-size: .85rem; }
.resultado mark { background: rgba(227,178,60,.35); color: var(--ink); border-radius: 3px; padding: 0 2px; }

/* footer */
footer { border-top: 1px solid rgba(255,255,255,.06); padding: 30px 0 44px; color: var(--muted); font-size: .84rem; }
.foot p { margin-bottom: 8px; }
.atrib { font-size: .76rem; opacity: .8; }
