/* Biblioteca: janela com as pastas e arquivos dentro do portal */
.bib-fundo {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 16px; overflow-y: auto;
}
.bib-fundo[hidden] { display: none; }
.bib-janela {
  background: var(--true-white); width: min(920px, 100%); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden;
}
.bib-topo {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 26px 14px; border-bottom: 1px solid var(--border);
}
.bib-topo h2 { margin: 0 0 4px; font-size: 1.35rem; line-height: 1.2; }
.bib-topo p { margin: 0; color: var(--granite-grey); font-size: .95rem; }
.bib-fechar {
  border: 0; background: var(--sterling-light); width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer; flex: none;
}
.bib-fechar:hover { background: var(--sterling-grey); }
.bib-trilha {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 12px 26px; font-size: .92rem; background: var(--sterling-light);
}
.bib-trilha button {
  border: 0; background: none; padding: 2px 4px; color: var(--bni-red); font: inherit;
  font-weight: 600; cursor: pointer; border-radius: 4px;
}
.bib-trilha button:hover { text-decoration: underline; }
.bib-trilha .bib-atual { font-weight: 700; color: var(--power-black); }
.bib-trilha .bib-sep { color: var(--granite-grey); }
.bib-corpo { padding: 10px 14px 18px; max-height: 68vh; overflow-y: auto; }
.bib-lista { list-style: none; margin: 0; padding: 0; }
.bib-item {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px;
}
.bib-item + .bib-item { border-top: 1px solid var(--border); }
.bib-item:hover { background: var(--sterling-light); }
.bib-icone {
  flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: #FBE9EB; color: var(--bni-red);
}
.bib-icone svg { width: 22px; height: 22px; }
.bib-nome { flex: 1; min-width: 0; }
.bib-nome strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
.bib-nome span { color: var(--granite-grey); font-size: .85rem; }
.bib-pasta-btn {
  border: 0; background: none; padding: 0; text-align: left; font: inherit; cursor: pointer; flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 14px;
}
.bib-acoes { display: flex; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.bib-acoes a, .bib-acoes button {
  font: inherit; font-size: .88rem; font-weight: 700; color: var(--bni-red); background: none;
  border: 1px solid var(--bni-red); border-radius: 999px; padding: 6px 14px; cursor: pointer; text-decoration: none;
}
.bib-acoes a:hover, .bib-acoes button:hover { background: var(--bni-red); color: var(--true-white); }
.bib-estado { padding: 34px 20px; text-align: center; color: var(--granite-grey); }
.bib-estado a { color: var(--bni-red); font-weight: 700; }
.bib-player { padding: 8px 12px 12px; }
.bib-player video, .bib-player audio { width: 100%; border-radius: 12px; background: #000; }
.bib-player img { max-width: 100%; border-radius: 12px; display: block; margin: 0 auto; }
.bib-player h3 { margin: 0 0 10px; font-size: 1.05rem; overflow-wrap: anywhere; }
.bib-rodape { padding: 12px 26px 18px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--granite-grey); }
.bib-rodape a { color: var(--granite-grey); }
@media (max-width: 560px) {
  .bib-item { flex-wrap: wrap; }
  .bib-acoes { width: 100%; justify-content: flex-start; padding-left: 56px; }
  .bib-topo, .bib-trilha, .bib-rodape { padding-left: 16px; padding-right: 16px; }
}
