/* ==========================================================================
   BIBLIOTECA — FEED (estilo rede social, tema escuro do site)
   Feed central de uma coluna, anúncios à direita, filtros numa gaveta à
   esquerda e comentários num modal.
   ========================================================================== */

:root {
    --bib-fundo: #050505;
    --bib-card: #121417;
    --bib-card-2: #1b1e23;
    --bib-borda: rgba(255, 255, 255, 0.08);
    --bib-texto: #e4e6eb;
    --bib-texto-2: #a8adb5;
    --bib-acento: #35f4b2;
    --bib-acento-escuro: #10b981;
    --bib-azul: #4c9bff;
    --bib-raio: 14px;
    --bib-sombra: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.bib-pagina {
    background:
        radial-gradient(ellipse 90% 50% at 50% 0%, rgba(53, 244, 178, 0.06), transparent 60%),
        var(--bib-fundo);
    padding: 1.5rem 0 4rem;
    color: var(--bib-texto);
}

.bib-layout {
    display: grid;
    grid-template-columns: minmax(0, 680px);
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 992px) {
    .bib-layout {
        grid-template-columns: minmax(0, 680px) 320px;
    }
}

.bib-layout__lateral { display: none; }

@media (min-width: 992px) {
    .bib-layout__lateral { display: block; }
}

.bib-lateral {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bib-lateral__caixa {
    background: var(--bib-card);
    border: 1px solid var(--bib-borda);
    border-radius: var(--bib-raio);
    padding: 1rem;
}

.bib-lateral__titulo {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bib-texto-2);
    margin: 0 0 .75rem;
}

/* ------------------------------------------------------------- botões */

.bib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: 999px;
    padding: .6rem 1.15rem;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, transform .1s, box-shadow .15s;
}

.bib-btn:active { transform: scale(.97); }

.bib-btn--primario,
.bib-btn--filtros {
    background: var(--bib-acento);
    color: #04140e;
}

.bib-btn--primario:hover,
.bib-btn--filtros:hover {
    background: #5bf7c2;
    color: #04140e;
    box-shadow: 0 0 0 4px rgba(53, 244, 178, .18);
}

.bib-btn--fantasma {
    background: var(--bib-card-2);
    color: var(--bib-texto);
    border: 1px solid var(--bib-borda);
}

.bib-btn--fantasma:hover { background: #262a31; color: #fff; }

.bib-btn__badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: #04140e;
    color: var(--bib-acento);
    font-size: .75rem;
}

:where(.bib-pagina, .bib-modal, .bib-filtros, .bib-show-acoes) :focus-visible {
    outline: 2px solid var(--bib-acento);
    outline-offset: 2px;
}

/* ------------------------------------------------------ barra do feed */

.bib-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bib-barra__total { color: var(--bib-texto-2); font-size: .95rem; }
.bib-barra__total strong { color: var(--bib-texto); }

.bib-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.bib-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(53, 244, 178, .12);
    border: 1px solid rgba(53, 244, 178, .35);
    color: var(--bib-acento);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.bib-chip:hover { background: rgba(53, 244, 178, .22); color: #fff; }

.bib-chip--limpar {
    background: transparent;
    border-color: var(--bib-borda);
    color: var(--bib-texto-2);
}

/* --------------------------------------------------------------- post */

.bib-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bib-post {
    background: var(--bib-card);
    border: 1px solid var(--bib-borda);
    border-radius: var(--bib-raio);
    box-shadow: var(--bib-sombra);
    overflow: hidden;
    animation: bib-entrar .35s ease both;
}

@keyframes bib-entrar {
    from { opacity: 0; transform: translateY(8px); }
}

.bib-post__topo {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem .5rem;
}

.bib-post__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex: none;
}

.bib-post__quem { min-width: 0; }

.bib-post__autor {
    font-weight: 700;
    font-size: .95rem;
    color: var(--bib-texto);
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}

.bib-post__selo {
    font-size: .7rem;
    font-weight: 700;
    padding: .1rem .5rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, .14);
    color: #facc15;
}

.bib-post__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    font-size: .8rem;
    color: var(--bib-texto-2);
}

.bib-post__meta a { color: inherit; text-decoration: none; }
.bib-post__meta a:hover { text-decoration: underline; color: var(--bib-texto); }

.bib-post__texto {
    padding: 0 1rem;
    max-height: 9.6em;            /* ~ título + 4 linhas */
    overflow: hidden;
    position: relative;
    line-height: 1.45;
}

.bib-post__texto.is-aberto { max-height: none; }

.bib-post__titulo {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 .3rem;
    line-height: 1.35;
}

.bib-post__titulo a { color: var(--bib-texto); text-decoration: none; }
.bib-post__titulo a:hover { color: var(--bib-acento); }

.bib-post__descricao {
    font-size: .95rem;
    color: var(--bib-texto);
    overflow-wrap: anywhere;
}

.bib-post__ver-mais {
    display: block;
    margin: .1rem 1rem 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bib-texto);
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
}

.bib-post__ver-mais:hover { text-decoration: underline; }

.bib-hashtag {
    color: var(--bib-azul);
    font-weight: 600;
    text-decoration: none;
}

.bib-hashtag:hover { text-decoration: underline; color: #7cb6ff; }

.bib-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .5rem;
    padding: .35rem 1rem 0;
    margin: 0;
    font-size: .92rem;
}

.bib-post__midia {
    display: block;
    margin-top: .75rem;
    background: #000;
    border-top: 1px solid var(--bib-borda);
    border-bottom: 1px solid var(--bib-borda);
}

.bib-post__midia img {
    display: block;
    width: 100%;
    max-height: 640px;
    object-fit: contain;      /* não corta a imagem */
    transition: opacity .2s;
}

.bib-post__midia:hover img { opacity: .94; }

/* Prévia da publicação completa (como um link compartilhado) */
.bib-post__previa {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem 1rem;
    background: var(--bib-card-2);
    color: var(--bib-texto);
    text-decoration: none;
    border-bottom: 1px solid var(--bib-borda);
}

.bib-post__texto + .bib-post__ver-mais + .bib-post__previa,
.bib-post__texto + .bib-post__ver-mais + .bib-post__tags + .bib-post__previa {
    margin-top: .75rem;
    border-top: 1px solid var(--bib-borda);
}

.bib-post__previa:hover { background: #22262c; color: #fff; }

.bib-post__previa-icone {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(53, 244, 178, .12);
    color: var(--bib-acento);
}

.bib-post__previa-texto { min-width: 0; flex: 1; display: flex; flex-direction: column; }

.bib-post__previa-titulo {
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bib-post__previa-sub { font-size: .78rem; color: var(--bib-texto-2); }
.bib-post__previa-seta { color: var(--bib-texto-2); }

/* -------------------------------------------- Curtir · Comentar · Compartilhar */

.bib-acoes {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .35rem .6rem;
}

.bib-acao {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .75rem;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--bib-texto-2);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.bib-acao i { font-size: 1.1rem; }
.bib-acao:hover { background: rgba(255, 255, 255, .06); color: var(--bib-texto); }
.bib-acao:disabled { cursor: progress; }

.bib-acao--curtir.is-ativo { color: var(--bib-azul); }
.bib-acao--curtir.is-pulso i { animation: bib-pulso .4s ease; }

@keyframes bib-pulso {
    40% { transform: scale(1.35) rotate(-12deg); }
}

.bib-acoes__selos {
    margin-left: auto;
    display: inline-flex;
}

.bib-acoes__selo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: .6rem;
    color: #fff;
    border: 2px solid var(--bib-card);
}

.bib-acoes__selo + .bib-acoes__selo { margin-left: -5px; }
.bib-acoes__selo--like { background: linear-gradient(#4c9bff, #1877f2); }
.bib-acoes__selo--love { background: linear-gradient(#ff6b81, #e41e3f); }

/* Menu de compartilhar */
.bib-share { position: relative; }

.bib-share__menu {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 30;
    min-width: 210px;
    padding: .4rem;
    border-radius: 12px;
    background: #23262b;
    border: 1px solid var(--bib-borda);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
    display: flex;
    flex-direction: column;
    animation: bib-menu .14s ease both;
}

.bib-share__menu.is-acima { top: auto; bottom: calc(100% + 6px); }
.bib-share__menu[hidden] { display: none; }

@keyframes bib-menu {
    from { opacity: 0; transform: translateY(-4px) scale(.98); }
}

.bib-share__menu button {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .7rem;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--bib-texto);
    font-size: .92rem;
    text-align: left;
    cursor: pointer;
}

.bib-share__menu button i { width: 1.2rem; text-align: center; font-size: 1.1rem; }
.bib-share__menu button:hover,
.bib-share__menu button:focus-visible { background: rgba(255, 255, 255, .08); }

/* ------------------------------------------------------------ anúncios */

.bib-anuncio {
    position: relative;
    background: var(--bib-card);
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: var(--bib-raio);
    padding: 1.6rem .75rem .75rem;
}

.bib-anuncio__rotulo {
    position: absolute;
    top: .45rem;
    left: .85rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bib-texto-2);
}

/* Espaço reservado para o Google (evita o layout "pular" quando o anúncio chega) */
.bib-anuncio--feed .bib-anuncio__slot { min-height: 250px; }
.bib-anuncio--lateral .bib-anuncio__slot { min-height: 600px; }

.bib-anuncio__casa {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    color: var(--bib-texto);
    text-decoration: none;
}

.bib-anuncio--feed .bib-anuncio__casa { flex-direction: row; align-items: center; }

.bib-anuncio__casa-arte {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    background:
        radial-gradient(circle at 30% 30%, rgba(53, 244, 178, .35), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(76, 155, 255, .35), transparent 55%),
        #0b1520;
    overflow: hidden;
}

.bib-anuncio--feed .bib-anuncio__casa-arte { width: 160px; }

.bib-anuncio__casa-arte img { border-radius: 50%; background: #fff; position: relative; z-index: 1; }

.bib-anuncio__casa-arte i {
    position: absolute;
    color: rgba(255, 255, 255, .22);
    font-size: 1.4rem;
}

.bib-anuncio__casa-arte i:nth-of-type(1) { top: 12%; left: 12%; }
.bib-anuncio__casa-arte i:nth-of-type(2) { top: 14%; right: 12%; }
.bib-anuncio__casa-arte i:nth-of-type(3) { bottom: 12%; left: 44%; }

.bib-anuncio__casa-texto { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--bib-texto-2); }
.bib-anuncio__casa-texto strong { color: var(--bib-texto); font-size: 1rem; }
.bib-anuncio__casa-cta { color: var(--bib-acento); font-weight: 700; }
.bib-anuncio__casa:hover .bib-anuncio__casa-cta { text-decoration: underline; }

@media (max-width: 575.98px) {
    .bib-anuncio--feed .bib-anuncio__casa { flex-direction: column; align-items: stretch; }
    .bib-anuncio--feed .bib-anuncio__casa-arte { width: 100%; }
}

/* ------------------------------------- fim do feed / esqueleto / vazio */

.bib-feed__fim {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.bib-feed__acabou { color: var(--bib-texto-2); font-size: .9rem; margin: .5rem 0 0; }
.bib-feed__acabou i { color: var(--bib-acento); }

.bib-esqueleto {
    width: 100%;
    background: var(--bib-card);
    border: 1px solid var(--bib-borda);
    border-radius: var(--bib-raio);
    padding: 1rem;
}

.bib-esqueleto[hidden] { display: none; }

.bib-esqueleto__topo { display: flex; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.bib-esqueleto__topo span:first-child { width: 40px; height: 40px; border-radius: 50%; }
.bib-esqueleto__topo span:last-child { width: 40%; height: 12px; border-radius: 6px; }
.bib-esqueleto__linha { height: 12px; border-radius: 6px; margin-bottom: .6rem; }
.bib-esqueleto__linha--curta { width: 60%; }
.bib-esqueleto__midia { height: 220px; border-radius: 10px; margin-top: .9rem; }

.bib-esqueleto__topo span,
.bib-esqueleto__linha,
.bib-esqueleto__midia {
    background: linear-gradient(90deg, #1b1e23 0%, #262a31 50%, #1b1e23 100%);
    background-size: 200% 100%;
    animation: bib-brilho 1.2s linear infinite;
}

@keyframes bib-brilho {
    to { background-position: -200% 0; }
}

.bib-vazio {
    text-align: center;
    background: var(--bib-card);
    border: 1px solid var(--bib-borda);
    border-radius: var(--bib-raio);
    padding: 3rem 1.5rem;
}

.bib-vazio > i { font-size: 2.6rem; color: var(--bib-acento); margin-bottom: 1rem; }
.bib-vazio h2 { font-size: 1.25rem; font-weight: 700; }
.bib-vazio p { color: var(--bib-texto-2); }

/* ---------------------------------------------- gaveta de filtros */

.bib-filtros.offcanvas {
    --bs-offcanvas-width: 360px;
    background: #0e1013;
    color: var(--bib-texto);
    border-right: 1px solid var(--bib-borda);
}

.bib-filtros .offcanvas-header { border-bottom: 1px solid var(--bib-borda); }
.bib-filtros .offcanvas-title { font-weight: 700; display: flex; gap: .6rem; align-items: center; }
.bib-filtros .offcanvas-title i { color: var(--bib-acento); }

.bib-filtros__form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding-bottom: 0;
}

.bib-filtros__grupo { border: 0; margin: 0; padding: 0; min-width: 0; }

.bib-filtros__titulo {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bib-texto-2);
    margin-bottom: .6rem;
    float: none;
    width: auto;
    padding: 0;
}

.bib-filtros__busca {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 0 .9rem;
    border-radius: 999px;
    background: var(--bib-card-2);
    border: 1px solid var(--bib-borda);
}

.bib-filtros__busca:focus-within { border-color: var(--bib-acento); }
.bib-filtros__busca i { color: var(--bib-texto-2); }

.bib-filtros__busca input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--bib-texto);
    padding: .65rem 0;
    outline: none;
}

.bib-filtros__pilulas { display: flex; flex-wrap: wrap; gap: .45rem; }

.bib-pilula input,
.bib-filtros__opcao input,
.bib-filtros__switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bib-pilula span {
    display: inline-block;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: var(--bib-card-2);
    border: 1px solid var(--bib-borda);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}

.bib-pilula span:hover { border-color: rgba(53, 244, 178, .5); }
.bib-pilula input:checked + span { background: var(--bib-acento); color: #04140e; border-color: var(--bib-acento); }
.bib-pilula input:focus-visible + span { outline: 2px solid var(--bib-acento); outline-offset: 2px; }

.bib-filtros__lista { display: flex; flex-direction: column; gap: .15rem; }

.bib-filtros__opcao {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .55rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s;
}

.bib-filtros__opcao:hover { background: rgba(255, 255, 255, .05); }

.bib-filtros__icone {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bib-card-2);
    color: var(--bib-texto-2);
    flex: none;
}

.bib-filtros__nome { flex: 1; font-weight: 600; font-size: .95rem; }

.bib-filtros__total {
    font-size: .78rem;
    color: var(--bib-texto-2);
    background: var(--bib-card-2);
    border-radius: 999px;
    padding: .1rem .55rem;
}

.bib-filtros__opcao:has(input:checked) { background: rgba(53, 244, 178, .1); }
.bib-filtros__opcao input:checked ~ .bib-filtros__icone { background: var(--bib-acento); color: #04140e; }
.bib-filtros__opcao input:focus-visible ~ .bib-filtros__nome { text-decoration: underline; }

.bib-filtros__switch {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: .9rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .92rem;
}

.bib-filtros__switch i { color: #facc15; }

.bib-filtros__switch-trilho {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #2b2f36;
    position: relative;
    transition: background-color .15s;
    flex: none;
}

.bib-filtros__switch-trilho::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s;
}

.bib-filtros__switch input:checked + .bib-filtros__switch-trilho { background: var(--bib-acento); }
.bib-filtros__switch input:checked + .bib-filtros__switch-trilho::after { transform: translateX(18px); }
.bib-filtros__switch input:focus-visible + .bib-filtros__switch-trilho { outline: 2px solid var(--bib-acento); outline-offset: 2px; }

.bib-filtros__tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.bib-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(76, 155, 255, .1);
    color: var(--bib-azul);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.bib-tag small { color: var(--bib-texto-2); font-weight: 500; }
.bib-tag:hover { background: rgba(76, 155, 255, .2); color: #9cc8ff; }
.bib-tag.is-ativa { background: var(--bib-azul); color: #fff; }
.bib-tag.is-ativa small { color: rgba(255, 255, 255, .8); }

.bib-filtros__rodape {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: .6rem;
    margin: auto -1rem 0;
    padding: 1rem;
    background: linear-gradient(transparent, #0e1013 30%);
}

.bib-filtros__rodape .bib-btn { flex: 1; }

/* O h2 global do site é grande: o título da gaveta fica no tamanho certo */
.bib-filtros .offcanvas-title { font-size: 1.1rem !important; line-height: 1.3 !important; margin: 0; }
.bib-filtros__titulo { font-size: .72rem !important; line-height: 1.3 !important; }

/* ----- Gaveta no celular: mais estreita e compacta ----- */
@media (max-width: 575.98px) {
    .bib-filtros.offcanvas { --bs-offcanvas-width: min(86vw, 330px); }
    .bib-filtros .offcanvas-header { padding: .75rem 1rem; }
    .bib-filtros .offcanvas-title { font-size: 1rem !important; gap: .5rem; }
    .bib-filtros__form { gap: 1rem; padding: .85rem 1rem 0; }
    .bib-filtros__titulo { font-size: .66rem !important; margin-bottom: .4rem; }
    .bib-filtros__busca { padding: 0 .7rem; }
    .bib-filtros__busca input { padding: .5rem 0; font-size: .88rem; }
    .bib-filtros__pilulas { gap: .35rem; }
    .bib-pilula span { padding: .28rem .65rem; font-size: .78rem; }
    .bib-filtros__lista { gap: 0; }
    .bib-filtros__opcao { gap: .55rem; padding: .32rem .4rem; }
    .bib-filtros__icone { width: 28px; height: 28px; font-size: .8rem; }
    .bib-filtros__nome { font-size: .86rem; }
    .bib-filtros__switch { font-size: .86rem; }
    .bib-tag { font-size: .76rem; }
    .bib-filtros__rodape { margin: auto -1rem 0; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); }
    .bib-filtros__rodape .bib-btn { padding: .55rem .8rem; font-size: .88rem; }
}

/* ----------------------------------------------- modal de comentários */

.bib-modal .modal-content {
    background: var(--bib-card);
    color: var(--bib-texto);
    border: 1px solid var(--bib-borda);
    border-radius: 16px;
    overflow: hidden;
}

.bib-modal .modal-header {
    position: relative;
    justify-content: center;
    border-bottom: 1px solid var(--bib-borda);
    padding: .9rem 3.5rem;
}

.bib-modal .modal-title { font-weight: 700; font-size: 1.15rem; text-align: center; }

.bib-modal__fechar {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--bib-card-2);
    color: var(--bib-texto);
    font-size: 1.1rem;
}

.bib-modal__fechar:hover { background: #2b2f36; }

.bib-modal .modal-body { padding: 0 0 .5rem; }

.bib-post--no-modal {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    animation: none;
    border-bottom: 1px solid var(--bib-borda);
}

.bib-post--no-modal .bib-post__midia img { max-height: 480px; }

.bib-modal__titulo-post { padding: 1rem; margin: 0; font-weight: 700; border-bottom: 1px solid var(--bib-borda); }

.bib-modal__ordem { padding: .7rem 1rem .2rem; }

.bib-modal__ordem select {
    appearance: none;
    border: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23a8adb5'/%3E%3C/svg%3E") no-repeat right center / 9px;
    color: var(--bib-texto);
    font-weight: 700;
    font-size: .92rem;
    padding-right: 1.1rem;
    cursor: pointer;
}

.bib-modal__ordem select option { background: #1b1e23; }

.bib-modal__lista { padding: .3rem 1rem 0; margin: 0; }

.bib-modal__vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 2rem 1rem;
    color: var(--bib-texto-2);
    text-align: center;
}

.bib-modal__vazio i { font-size: 2rem; color: var(--bib-acento); }

.bib-modal__carregando {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem;
    color: var(--bib-texto-2);
}

.bib-modal__carregando[hidden] { display: none; }

.bib-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .15);
    border-top-color: var(--bib-acento);
    animation: bib-girar .7s linear infinite;
}

@keyframes bib-girar { to { transform: rotate(360deg); } }

.bib-modal__mais {
    display: block;
    margin: .3rem 1rem;
    padding: .3rem 0;
    border: 0;
    background: none;
    color: var(--bib-texto-2);
    font-weight: 700;
}

.bib-modal__mais:hover { text-decoration: underline; color: var(--bib-texto); }

/* Comentário */
.bib-com {
    display: flex;
    gap: .55rem;
    padding: .4rem 0;
}

.bib-com.is-novo > .bib-com__corpo .bib-com__bolha { animation: bib-destaque 1.6s ease; }
.bib-com.is-saindo { opacity: .4; pointer-events: none; }

@keyframes bib-destaque {
    0%, 40% { box-shadow: 0 0 0 2px rgba(53, 244, 178, .7); }
}

.bib-com__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex: none;
    background: var(--bib-card-2);
}

.bib-com--resposta .bib-com__avatar { width: 28px; height: 28px; }

.bib-com__corpo { min-width: 0; flex: 1; }
.bib-com__linha { display: flex; align-items: center; gap: .3rem; }

.bib-com__bolha {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: .5rem .8rem;
    border-radius: 18px;
    background: var(--bib-card-2);
}

.bib-com.is-editando .bib-com__bolha { display: block; flex: 1; }

.bib-com__nome {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    font-size: .85rem;
}

.bib-com__voce {
    font-size: .65rem;
    font-weight: 700;
    padding: .05rem .4rem;
    border-radius: 6px;
    background: rgba(53, 244, 178, .15);
    color: var(--bib-acento);
}

.bib-com__texto {
    font-size: .93rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: normal;
}

.bib-com__curtidas {
    position: absolute;
    right: -6px;
    bottom: -10px;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .1rem .4rem .1rem .15rem;
    border-radius: 999px;
    background: #2b2f36;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    font-size: .75rem;
    color: var(--bib-texto-2);
}

.bib-com__curtidas[hidden] { display: none; }

.bib-com__curtidas i {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: .55rem;
    color: #fff;
    background: linear-gradient(#4c9bff, #1877f2);
}

.bib-com__acoes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .9rem;
    padding: .25rem .8rem 0;
    font-size: .78rem;
    color: var(--bib-texto-2);
}

.bib-com__acoes button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--bib-texto-2);
    font-weight: 700;
    font-size: .78rem;
    cursor: pointer;
}

.bib-com__acoes button:hover { text-decoration: underline; color: var(--bib-texto); }
.bib-com__curtir.is-curtido { color: var(--bib-azul) !important; }
.bib-com__editado { font-style: italic; }

/* Menu "..." do dono */
.bib-com__menu { position: relative; flex: none; opacity: 0; transition: opacity .15s; }
.bib-com__linha:hover .bib-com__menu,
.bib-com__menu:focus-within { opacity: 1; }

@media (hover: none) {
    .bib-com__menu { opacity: 1; }
}

.bib-com__menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: none;
    color: var(--bib-texto-2);
}

.bib-com__menu-btn:hover { background: rgba(255, 255, 255, .07); }

.bib-com__menu-lista {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 5;
    min-width: 150px;
    padding: .35rem;
    border-radius: 10px;
    background: #2b2f36;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
    display: flex;
    flex-direction: column;
}

.bib-com__menu-lista[hidden] { display: none; }

.bib-com__menu-lista button {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .6rem;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--bib-texto);
    font-size: .88rem;
    text-align: left;
}

.bib-com__menu-lista button:hover { background: rgba(255, 255, 255, .08); }
.bib-com__menu-lista .is-perigo { color: #ff8a8a; }

.bib-com__editar {
    width: 100%;
    min-width: 220px;
    border: 1px solid var(--bib-acento);
    border-radius: 10px;
    background: #121417;
    color: var(--bib-texto);
    padding: .45rem .6rem;
    resize: none;
    outline: none;
    font-size: .93rem;
}

.bib-com__editar-barra { display: flex; gap: .8rem; margin-top: .35rem; font-size: .78rem; }
.bib-com__editar-barra button { border: 0; background: none; padding: 0; font-weight: 700; }
.bib-com__editar-barra .is-salvar { color: var(--bib-acento); }
.bib-com__editar-barra .is-cancelar { color: var(--bib-texto-2); }

.bib-com__ver-respostas {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: .35rem 0 0 .8rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bib-texto-2);
    font-weight: 700;
    font-size: .85rem;
}

.bib-com__ver-respostas[hidden],
.bib-com__respostas[hidden] { display: none; }
.bib-com__ver-respostas:hover { text-decoration: underline; color: var(--bib-texto); }
.bib-com__respostas { margin: .2rem 0 0; padding: 0; }

/* Escrever comentário (fixo no rodapé do modal) */
.bib-composer {
    display: block;
    border-top: 1px solid var(--bib-borda);
    padding: .7rem 1rem .8rem;
    background: var(--bib-card);
}

.bib-composer > * { margin: 0; }

.bib-composer__respondendo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .45rem !important;
    padding: .3rem .4rem .3rem .75rem;
    border-radius: 8px;
    background: rgba(53, 244, 178, .08);
    font-size: .82rem;
    color: var(--bib-acento);
}

.bib-composer__respondendo[hidden] { display: none; }

.bib-composer__respondendo button {
    border: 0;
    background: none;
    color: var(--bib-texto-2);
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.bib-composer__form { display: flex; gap: .55rem; align-items: flex-start; }

.bib-composer__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex: none;
    background: var(--bib-card-2);
}

.bib-composer__caixa {
    flex: 1;
    min-width: 0;
    background: var(--bib-card-2);
    border-radius: 18px;
    padding: .45rem .8rem .35rem;
    border: 1px solid transparent;
    transition: border-color .15s;
}

.bib-composer__caixa:focus-within { border-color: rgba(53, 244, 178, .45); }

.bib-composer__quem { font-size: .75rem; color: var(--bib-texto-2); }

.bib-composer__quem button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--bib-acento);
    font-size: .75rem;
    font-weight: 600;
}

.bib-composer__nome {
    display: block;
    width: 100%;
    margin: .3rem 0 .2rem;
    border: 1px solid var(--bib-borda);
    border-radius: 8px;
    background: #121417;
    color: var(--bib-texto);
    padding: .35rem .6rem;
    font-size: .85rem;
    outline: none;
}

.bib-composer__nome[hidden] { display: none; }
.bib-composer__nome:focus { border-color: var(--bib-acento); }

.bib-composer textarea {
    display: block;
    width: 100%;
    border: 0;
    background: none;
    color: var(--bib-texto);
    resize: none;
    outline: none;
    padding: .25rem 0;
    font-size: .95rem;
    line-height: 1.4;
    max-height: 160px;
}

.bib-composer textarea::placeholder { color: var(--bib-texto-2); }

.bib-composer__barra { display: flex; align-items: center; gap: .5rem; }

.bib-composer__nota {
    flex: 1;
    font-size: .68rem;
    color: #7d838c;
    line-height: 1.25;
}

.bib-composer__icone,
.bib-composer__enviar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: none;
    color: var(--bib-texto-2);
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    flex: none;
}

.bib-composer__icone:hover { background: rgba(255, 255, 255, .07); color: var(--bib-texto); }
.bib-composer__enviar { color: var(--bib-acento); }
.bib-composer__enviar:disabled { color: #4a4f57; cursor: default; }
.bib-composer__enviar:not(:disabled):hover { background: rgba(53, 244, 178, .12); }

.bib-composer__erro { margin: .3rem 0 0; color: #ff8a8a; font-size: .8rem; }
.bib-composer__erro[hidden] { display: none; }

/* Emojis */
.bib-emoji { position: relative; }

.bib-emoji__painel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: -8px;
    z-index: 20;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .6);
    background: #1b1e23;
    min-width: 200px;
}

.bib-emoji__painel[hidden] { display: none; }

.bib-emoji__picker {
    --background: #1b1e23;
    --border-color: rgba(255, 255, 255, .08);
    --indicator-color: #35f4b2;
    --input-border-color: rgba(255, 255, 255, .15);
    --input-font-color: #e4e6eb;
    --button-hover-background: rgba(255, 255, 255, .08);
    --button-active-background: rgba(53, 244, 178, .2);
    --outline-color: #35f4b2;
    width: min(352px, calc(100vw - 48px));
    height: 360px;
}

/* Aviso rápido (link copiado etc.) */
.bib-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2000;
    transform: translate(-50%, 20px);
    opacity: 0;
    padding: .7rem 1.1rem;
    border-radius: 10px;
    background: #e4e6eb;
    color: #111;
    font-weight: 600;
    font-size: .92rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    transition: opacity .2s, transform .2s;
}

.bib-toast.is-visivel { opacity: 1; transform: translate(-50%, 0); }

/* Barra de ações na página da publicação */
.bib-show-acoes .bib-acoes {
    border-top: 1px solid var(--bib-borda);
    border-bottom: 1px solid var(--bib-borda);
    padding-left: 0;
    padding-right: 0;
}

.bib-show-acoes .bib-acoes__selo { border-color: #0a0a0a; }

/* Celular */
@media (max-width: 575.98px) {
    .bib-pagina { padding-top: 1rem; }
    .bib-layout { padding: 0 8px; }
    .bib-post { border-radius: 10px; }
    .bib-acao { padding: .5rem .6rem; }
    .bib-composer__nota { display: none; }
    .bib-modal .modal-content { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bib-post,
    .bib-share__menu,
    .bib-acao--curtir.is-pulso i,
    .bib-com.is-novo > .bib-com__corpo .bib-com__bolha { animation: none; }

    .bib-esqueleto__topo span,
    .bib-esqueleto__linha,
    .bib-esqueleto__midia { animation: none; }
}
