:root {
  --cap-size: 25px;
  --cap-gap: 2px;
  --cap-radius: 4px;
  --cap-border: var(--bordas);
  --cap-bg: var(--detalhes);
  --cap-bg-hover: darkblue;
  --cap-color: var(--texto);
}
#bibliaWrap {
  background: var(--fundo-body);
  color: var(--texto);
  padding: 0;
  margin: 0;
  height: calc(100vh - 75px);
}
.ctBiblia {height: 100%;}
#colFiltro {
  background: var(--fundo-form);
  border-right: 1px solid var(--bordas);
  padding: 0;
  height: 100%;
}
#selVersao {
  margin-top: 2px;
}
#colFiltro .form-group {
  padding: 0 5px;
}
#colLeitura {
  padding: 0;
  height: 100%;
}
#colFiltro h4 {
  background: var(--barra-topo);
  text-align: center;
  padding: 5px 0;
}
/* LISTA DE LIVROS */
#listaLivros {
  list-style: none;
  padding-left: 0;
  margin: 0;
  padding: 0 5px;
  overflow-y: auto;
  border-top: 1px dashed var(--detalhes);
  height: calc(100% - 32px);
}
#listaLivros > li {
  padding: 6px 4px;
  border-bottom: 1px dashed var(--detalhes);
  cursor: pointer;
}
#listaLivros > li:hover {
  background: var(--fundo-hover);
  color: var(--texto-hover);
}

/* Título do livro + grade de capítulos */
#listaLivros ul {
  list-style: none;
  margin: 2px 0 0 0;
  padding: 0;

  /* 🔧 transforma a lista de capítulos em uma GRADE SIMÉTRICA */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--cap-size), 1fr));
  gap: var(--cap-gap);
  align-items: start;
  justify-items: start;
}
#listaLivros ul li {
  margin: 0;
  padding: 0;
}
#listaLivros ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: var(--cap-size);
  height: var(--cap-size);

  border: 1px solid var(--cap-border);
  border-radius: var(--cap-radius);
  text-decoration: none;

  background: var(--cap-bg);
  color: var(--cap-color);
  line-height: 1;
  user-select: none;
  font-size: 12px;
}
#listaLivros ul li span.active, #listaLivros ul li span:hover {
  background: var(--cap-bg-hover);
  color: #fff;
  cursor: pointer;
  border: none;
}
#topoLeitura {
  background: var(--fundo-form);
  border-bottom: 1px solid var(--bordas);
  padding: 2px;
}
#titLeitura {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
  display: table;
}
#titLeitura button, .dvLocalRead {
  display: table-cell
}
.dvLocalRead {
  padding: 0 5px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
#capConteudo {
  background: var(--fundo-form);
  padding: 0px;
  overflow-y: auto;
  line-height: 1.6em;
  font-size: 16px;
  height: calc(100% - 30px);
}
#topoLeitura .col-xs-12 {
  padding: 0;
}
#topoLeitura .vLiv {
  font-size: 32px;
  line-height: 12px;
  cursor: pointer;
  width: 35px;
  text-align: center;
  display: table-cell;
  border-radius: 3px;
}
#topoLeitura .vLiv:before {
  position: relative;
  top: +8px;
}
#areaControles button {
  height: 30px;
}
.lnVerso {
  padding: 4px 2px;
  border-bottom: 1px dashed var(--detalhes);
  word-wrap: break-word;
}
#lbCap, #lbLivro {
  position: relative;
  top: +3px;
}
.numVerso {
  display: inline-block;
  min-width: 26px;
  padding: 0 6px;
  margin-right: 6px;
  border-radius: 3px;
  color: var(--texto-detalhes);
  background: var(--bordas);
}
.txtBus {
  width: calc(100% - 140px);
  display: flex;
}
#tamFonte {width: 60px;}
.txtBus #campoBusca {
  width: calc(100% - 40px);
}
.txtBus .fa-search {
  width: 35px;
  text-align: center;
  border: solid 1px #aaa;
  border-radius: 5px;
  height: 30px;
  font-size: 15px;
  padding-top: 5px;
  cursor: pointer;
}
.txtBus .fa-search:hover, .txtBus .fa-search:hover {background: #eee;}
#areaControles .form-control {
  height: 30px;
  padding: 4px 8px;
}
#areaControles input[disabled] {
  background: #fff;
  cursor: default;
}
#verCapitulo {
  padding: 0;
}
#verCapitulo p {
  display: table;
}
#verCapitulo span {
  display: table-cell;
  width: calc(100% - 20px);
}
#verCapitulo .marcar span {
  font-style: italic;
  font-weight: bold;
  text-decoration: underline;
  background: #ffa;
  padding: 5px 0;
  color: #006;
}   
.resBsuca {
  text-align: center;
  margin: 5px 0;
  border-bottom: dashed 1px #999;
  padding: 5px 0;
  font-size: 16px;
  font-weight: normal;
  color: #666;
}
.resBsuca i {
  font-weight: bold;
  color: #000;
}
#verCapitulo b {
  font-weight: bold;
  font-family: 'Sans Serif';
  font-size: 12px;
  display: table-cell;
  padding-right: 5px;
  white-space: nowrap;
  font-style: italic;
  color: #666;
  width: 25px;
  text-align: right;
}
#verCapitulo .mark {
  font-weight: bold;
  background: #fcf;
  border-radius: 10px;
}
.resBusca {
  width: 100%;
  cursor: pointer;
  padding: 10px 0 10px 10px;
}
.resBusca h5 {
  width: 250px;
  font-size: 14px;
  font-family: 'Times New Roman';
  font-style: italic;
  color: #333;
  margin: 0;
  margin-left: 10px;
}
.resBusca h5:hover {
  text-decoration: underline;
  color: #000;
}
.resBusca:hover {
  background: #eee;
}
.resBusca:hover h5 {
  font-weight: bold;
  color: #000;
}
#titLeitura #btnAbreFiltro {
  display: none;
  margin-bottom: 8px;
}
#btnMaisBus {
  text-align: center;
  font-size: 16px;
  border-top: dashed 1px #666;
  padding: 5px 0;
  cursor: pointer;
  color: #666;
  font-style: italic;
  width: 35px;
}
#btnMaisBus:hover {
  text-decoration: underline;
  color: #000;
}
@media (max-width: 767px) {
  #btnAbreFiltro { 
    display: inline-block; 
    margin-left: 5px;
  }
  #areaControles .col-xs-12 {
    margin: 2px 0 0 0;
    padding: 0 3px;
    display: flex;
  }
  #titLeitura {
    line-height: 0;
    width: 100%;
    display: flex;
    height: 30px;
  }
  #titLeitura #btnAbreFiltro {
    display: inline-block;
  }
  .dvLocalRead, #areaControles button {
    display: inline-block;
    height: 30px;
    margin: 0;
    font-size: 12px;
    line-height: 14px;
    font-weight: normal;
  }
  .dvLocalRead {
    width: 100%;
    margin: 0;
    text-align: center;
    padding: 0;
  }
  .txtBus {
    width: calc(100% - 115px);
    display: inline-block;
    padding: 0;
  }
  .txtFonts {
    display: inline-block;
  }
  #tamFonte {
    width: 40px;
  }
  #campoBusca {
    float: left;
  }
  .form-group {
    padding: 0;
    margin: 0;
  }
  #topoLeitura {padding: 0;}
  .txtBus .fa-search {float: right;}
  #lbCap, #lbLivro {top: +5px;}
  #capConteudo {
    height: calc(100vh - 140px);

  }
  .form-inline {
    margin: 0;
    padding: 0;
    border: none;
    height: 32px;
  }
  #colFiltro {
    position: absolute;
    display: none;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    z-index: 9999;
    width: 100%;
    top: 34px;
  }
  #btnMaisBus {
    width: 100%;
    font-size: 14px;
    padding: 0;
  }
  #topoLeitura .vLiv {
    display: none;
  }
}
