/* ═══════════════════════════════════════════════════
   biblia.css — Estilos da página Bíblia
   Rádio Remidos em Cristo
   ═══════════════════════════════════════════════════ */

/* Nav ativo */
.nav-ativo { color: var(--royal) !important; font-weight: 700; }
.nav-ativo::after { width: 80% !important; }

/* ── Contagem ── */
.bb-contagem {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

/* ── Grupo de livro ── */
.bb-livro-grupo {
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow-sm);
}

.bb-livro-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(135deg, #fff 80%, rgba(26,58,107,0.04));
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.bb-livro-header:hover { background: rgba(26,58,107,0.04); }

.bb-livro-nome {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--royal);
}
.bb-livro-seta {
  font-size: 0.75rem;
  color: var(--gold);
  transition: transform 0.2s;
}

/* ── Lista de capítulos dentro do grupo ── */
.bb-livro-capitulos {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border-blue);
  background: rgba(253,248,240,0.6);
}

.bb-item-capitulo {
  background: #fff;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 0.65rem 0.5rem;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--royal);
  text-align: center;
  text-decoration: none;
  width: 100%;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.bb-item-capitulo:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--gold-dark);
}

.bb-carregando {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Crimson Text', serif;
}

/* ── Breadcrumb ── */
.bb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding: 0;
  background: none;
  border: none;
  flex-wrap: wrap;
}
.bb-breadcrumb-home {
  background: none;
  border: none;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--royal-mid);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.bb-breadcrumb-home:hover { color: var(--royal); }
.bb-breadcrumb-sep { color: var(--gold); font-size: 0.8rem; }
.bb-breadcrumb-livro,
.bb-breadcrumb-capitulo {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.bb-breadcrumb-capitulo { color: var(--royal); font-weight: 600; }

/* ── Player box ── */
.bb-player-box {
  background: linear-gradient(135deg, var(--royal), var(--royal-mid));
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-md), 0 12px 40px rgba(26,58,107,0.2);
  margin-bottom: 1.6rem;
}
.bb-player-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212,168,75,0.8);
  margin-bottom: 0.3rem;
}
.bb-player-titulo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1.2rem;
}
.bb-player-controles {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.bb-btn-play {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: var(--royal);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.bb-btn-play:hover { transform: scale(1.06); }

.bb-progresso-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 160px;
}
.bb-tempo {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
  min-width: 30px;
}
.bb-progresso {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.bb-progresso::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.bb-progresso::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
}
.bb-velocidade {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(212,168,75,0.35);
  border-radius: 4px;
  color: #e8d8b8;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  padding: 4px 6px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}
.bb-velocidade option { color: #1a1408; }

/* ── Botões anterior / próximo — HORIZONTAL ── */
.bb-nav-capitulos {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.bb-btn-nav {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(212,168,75,0.35);
  color: #e8d8b8;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  white-space: nowrap;
}
.bb-btn-nav:hover:not(:disabled) { background: rgba(255,255,255,0.18); }
.bb-btn-nav:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Texto bíblico — estilo pergaminho ── */
.bb-texto-box {
  background: #faf6ed;
  border: 1px solid #d4b96a;
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-md);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.9;
  color: #1c1610;
}
.bb-texto-carregando {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Versículos */
.bb-texto-box [data-v] {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 0.75rem;
  margin-bottom: 0.55rem;
  align-items: baseline;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.bb-texto-box [data-v]:hover { background: rgba(184,137,42,0.07); }
.bb-texto-box [data-v].bb-ativo {
  background: rgba(184,137,42,0.13);
  box-shadow: inset 3px 0 0 #b8973a;
}
.bb-num {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  color: #b8973a;
  text-align: right;
  padding-top: 0.22em;
  user-select: none;
  font-weight: 400;
}

/* Títulos e seções no texto */
.bb-texto-box h2, .bb-texto-box h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b8973a;
  margin: 2.2rem 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bb-texto-box h2::after, .bb-texto-box h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d4b96a;
}
.bb-texto-box blockquote {
  border-left: 3px solid #b8973a;
  margin: 1.2rem 0 1.2rem 2.75rem;
  padding: 0.9rem 1.2rem;
  background: #f7f1e0;
  border-radius: 0 4px 4px 0;
  font-style: italic;
}
.bb-texto-box .bb-ref {
  font-size: 0.88rem;
  color: #5a4e38;
  font-style: italic;
  margin: -0.2rem 0 0.6rem 2.75rem;
}

/* ── Responsivo ── */
@media (max-width: 768px) {
  .bb-livro-capitulos { grid-template-columns: repeat(4, 1fr); }
  .bb-player-box { padding: 1.3rem 1.2rem; }
  .bb-progresso-wrap { width: 100%; order: 3; }
  .bb-velocidade { order: 2; }
  .bb-texto-box { padding: 1.4rem 1rem; }
  .bb-texto-box [data-v] { font-size: 1rem; }
  /* botões ficam em linha mesmo no mobile */
  .bb-nav-capitulos { flex-direction: row !important; }
  .bb-btn-nav { font-size: 0.6rem; padding: 0.45rem 0.5rem; }
}