* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0d0d12;
    color: #e8e8ec;
    line-height: 1.5;
}
a { color: #8fb8ff; }
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #26262f;
}
.site-header-title { margin: 0; font-size: 20px; font-weight: bold; display: flex; align-items: center; }
.site-header-left { display: flex; align-items: center; gap: 12px; }
.site-logo { max-height: 32px; display: block; }

/* ---------- menu hambúrguer (referência: babesource.com) ---------- */
.nav-drawer-toggle {
    background: none; border: none; color: #e8e8ec; font-size: 22px; line-height: 1;
    cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.nav-drawer-toggle:hover { background: #17171f; }
.nav-drawer-overlay {
    position: fixed; inset: 0; z-index: 90; background: rgba(6,6,10,.7);
}
.nav-drawer-overlay[hidden] { display: none; }
.nav-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 91;
    width: 280px; max-width: 85vw; background: #131319; border-right: 1px solid #26262f;
    padding: 16px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer-close {
    align-self: flex-end; background: none; border: none; color: #9a9aad; font-size: 18px;
    cursor: pointer; padding: 4px 8px; margin-bottom: 8px;
}
.nav-drawer-close:hover { color: #e8e8ec; }
.nav-drawer-brand { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 12px; }
.nav-drawer-divider { border-top: 1px solid #26262f; margin: 10px 0; }
.nav-drawer a {
    display: block; padding: 10px 8px; border-radius: 6px; color: #d3d3dc; text-decoration: none; font-size: 15px;
}
.nav-drawer a:hover { background: #1f1f29; color: #fff; }
.nav-drawer-count { color: #6f6f80; font-size: 12px; }

/* Seção que abre/fecha (referência: menus tipo babesource.com, com
   cabeçalho + corpo recolhível — cores e forma seguem a paleta que o
   site já usa, não uma cópia literal). */
.nav-drawer-section { border-radius: 8px; overflow: hidden; margin: 2px 0; }
.nav-drawer-section-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: #1a1a23; border: none; color: #9a9aad; font-size: 12px; font-weight: bold;
    text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-radius: 8px;
    cursor: pointer; font-family: inherit;
}
.nav-drawer-section-toggle:hover { color: #e8e8ec; }
.nav-drawer-section-toggle[aria-expanded="true"] { background: #21212e; color: #fff; border-radius: 8px 8px 0 0; }
.nav-drawer-chevron { color: #3a3af0; font-size: 11px; }
.nav-drawer-section-body { display: flex; flex-direction: column; gap: 1px; padding: 4px 0 6px; background: #16161d; border-radius: 0 0 8px 8px; }
.nav-drawer-section-body[hidden] { display: none; }
.nav-drawer-section-body a { padding-left: 16px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.nav-drawer-partner-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }

.search-form { display: flex; gap: 6px; flex: 1 1 auto; max-width: 320px; }
.search-form input {
    background: #17171f;
    border: 1px solid #2c2c38;
    color: #e8e8ec;
    padding: 6px 10px;
    border-radius: 6px;
    min-width: 0;
    flex: 1 1 auto;
}
.search-form button {
    background: #3a3af0;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}
/* Largura ampla pro feed masonry (pedido do briefing: "pode ocupar uma
   largura maior do que o carrossel"); carrossel/pills/banner continuam
   centralizados num miolo mais estreito via .page-narrow por dentro. */
main { max-width: 1600px; margin: 0 auto; padding: 24px 20px; }
.page-narrow { max-width: 1100px; margin: 0 auto; }
.entity-group { margin-bottom: 32px; }
.entity-group h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; color: #9a9aad; }
.entity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.entity-group-more {
    display: block; text-align: center; margin-top: 14px; padding: 10px;
    color: #8fb8ff; font-size: 13px; text-decoration: none; border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px; background: #14141b;
}
.entity-group-more:hover { border-color: #3a3af0; }

/* ---------- pills de categoria dinâmicas (uma por entity_type) ---------- */
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.category-pill {
    display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
    letter-spacing: .02em; text-decoration: none; color: #fff; background: var(--pill-color, #3a3af0);
    opacity: .78; transition: opacity .15s ease, transform .15s ease;
}
.category-pill:hover { opacity: 1; }
.category-pill.active { opacity: 1; box-shadow: 0 0 0 2px rgba(255,255,255,.55) inset; }

/* ---------- feed masonry unificado (fotos, vídeos, artigos, etc.) ----------
   CSS multi-column em vez de masonry calculado em JS: alturas variáveis
   de verdade (cada <img> mantém a proporção natural, sem crop forçado),
   e principalmente — crítico pro infinite scroll — cards novos só são
   ACRESCENTADOS ao fim do fluxo HTML, então o navegador nunca reposiciona
   um card que a pessoa já está vendo (um masonry em JS por "coluna mais
   curta" reflui tudo a cada novo lote, o que embaralha a leitura).
   Dentro de cada coluna a ordem é estritamente cronológica, porque é a
   ordem em que o PHP já devolveu os itens (unifiedFeedPage(), mais
   recente primeiro) — só a DISTRIBUIÇÃO entre colunas é automática. */
.feed-masonry {
    column-count: 1; column-gap: 14px;
}
@media (min-width: 480px) { .feed-masonry { column-count: 2; } }
@media (min-width: 720px) { .feed-masonry { column-count: 3; } }
@media (min-width: 980px) { .feed-masonry { column-count: 4; } }
@media (min-width: 1280px) { .feed-masonry { column-count: 5; } }
@media (min-width: 1560px) { .feed-masonry { column-count: 6; } }

.feed-card {
    display: block; break-inside: avoid; margin: 0 0 14px;
    position: relative; background: #17171f; border: 1px solid #2c2c38; border-radius: 10px;
    overflow: hidden; text-decoration: none; color: #e8e8ec;
}
.feed-card:hover { border-color: #3a3af0; }
.feed-card-media { position: relative; display: block; background: #0d0d12; }
.feed-card-media img { display: block; width: 100%; height: auto; }
.feed-card-play {
    position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(6,6,10,.72); color: #fff; font-size: 11px; display: flex; align-items: center;
    justify-content: center; padding-left: 2px;
}
.feed-card-duration {
    position: absolute; bottom: 8px; right: 8px; background: rgba(6,6,10,.82); color: #fff;
    font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}
.feed-card-overlay {
    display: block; padding: 12px 14px 13px;
}
.feed-card-tag {
    display: inline-block; color: #fff; font-size: 10px; text-transform: uppercase;
    letter-spacing: .04em; padding: 3px 8px; border-radius: 5px; margin-bottom: 6px;
}
.feed-card-title { display: block; font-size: 14px; font-weight: bold; color: #fff; line-height: 1.3; transition: color .15s ease; }
.feed-card:hover .feed-card-title { color: #8fb8ff; text-decoration: underline; }

.feed-sentinel { height: 1px; }
.feed-status { text-align: center; color: #6f6f80; font-size: 13px; padding: 18px 0 6px; }

/* ---------- Advertisement (fim da home) ---------- */
.ad-slot { max-width: 728px; margin: 32px auto 8px; text-align: center; }
.ad-slot-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #6f6f80; margin: 0 0 8px; }
.ad-slot img { max-width: 100%; height: auto; border-radius: 8px; display: inline-block; }
.ad-slot .block-widget-embed { margin: 0 auto; max-width: 100%; }
.entity-card {
    position: relative;
    display: block;
    aspect-ratio: 2/3;
    background: #17171f;
    border: 1px solid #2c2c38;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #e8e8ec;
}
.entity-card:hover { border-color: #3a3af0; }
.entity-card-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.entity-card-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; display: block;
    padding: 14px 14px 12px;
    background: linear-gradient(to top, rgba(6,6,10,.92), rgba(6,6,10,.45) 65%, rgba(6,6,10,0));
}
.entity-card-tag {
    display: inline-block; background: #3a3af0; color: #fff;
    font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 5px; margin-bottom: 6px;
}
.entity-card-title { display: block; font-size: 14px; font-weight: bold; color: #fff; line-height: 1.3; transition: color .15s ease; }
.entity-card:hover .entity-card-title { color: #8fb8ff; text-decoration: underline; }
.entity-card-stats { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.entity-card-stat { font-size: 11px; color: #b8b8c4; }
.entity-card-new { color: #3ec763; font-weight: bold; }
.entity-classification { display: inline-flex; gap: 5px; font-size: 11px; color: #b8b8c4; margin-top: 2px; }
.entity-classification-sep { color: #4a4a58; }

/* ---------- faixa de texto corrido (topo da home) ----------
   Loop infinito sem salto visível: o conteúdo aparece DUAS vezes lado a
   lado (.site-marquee-line × 2, cada uma já repetindo a frase várias
   vezes por dentro), a animação desloca exatamente metade da largura
   total (translateX(-50%)) — no corte, a segunda cópia já está
   exatamente onde a primeira começou.
   Cada "unidade" (.site-marquee-line) tem largura FIXA = 100% da faixa
   visível (não do conteúdo) — de propósito: é isso que deixa o vazio
   depois de poucas repetições aparecer de verdade, em vez da segunda
   cópia colar logo depois preenchendo tudo (efeito relatado pelo
   operador com repeat baixo "não fazendo diferença"). Repetição alta o
   bastante pra estourar a largura da tela simplesmente é cortada
   (overflow:hidden por linha) — comportamento esperado, não bug. */
#site-marquee {
    width: 100%; overflow: hidden; background: #14141b;
    border-top: 1px solid rgba(58,58,240,.35); border-bottom: 1px solid rgba(58,58,240,.35);
    padding: 9px 0; margin-bottom: 20px;
}
#site-marquee-track { display: flex; width: 200%; animation: site-marquee-scroll 24s linear infinite; }
.site-marquee-line {
    display: flex; align-items: center; width: 50%; flex-shrink: 0; overflow: hidden;
    white-space: nowrap; font-weight: bold; font-size: 14px; letter-spacing: .03em; color: #8a8af8;
}
.site-marquee-line > span { flex-shrink: 0; }
.site-marquee-sep { margin: 0 var(--marquee-gap, 18px); color: rgba(138,138,248,.5); }
@keyframes site-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { #site-marquee-track { animation: none; } }

/* ---------- carrossel de destaque (curadoria manual, home) ----------
   Um slide por vez (transform via JS em carousel.js), sem biblioteca —
   mesmo espírito vanilla do resto do projeto. Sem slide/JS: degrada pra
   mostrar só o primeiro card estático (nenhum <script> quebra o layout). */
.featured-carousel { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 32px; }
.featured-track { display: flex; transition: transform .5s ease; }
.featured-card {
    position: relative; flex: 0 0 100%; width: 100%; aspect-ratio: var(--featured-ratio, 16/9);
    background-color: #17171f; background-size: cover; background-position: var(--featured-focal, center);
    display: flex; align-items: flex-end; text-decoration: none;
}
.featured-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,6,10,.9), rgba(6,6,10,.2) 60%, rgba(6,6,10,0));
}
.featured-card-content { position: relative; z-index: 1; padding: 20px; }
.featured-card-tag {
    display: inline-block; background: #3a3af0; color: #fff; font-size: 11px; text-transform: uppercase;
    letter-spacing: .05em; padding: 3px 10px; border-radius: 5px; margin: 0 0 8px;
}
.featured-card h2 { margin: 0; font-size: 22px; color: #fff; line-height: 1.25; }
.featured-card-subtitle { color: #e2e2e8; font-size: 14px; margin: 6px 0 0; }
.featured-dots {
    position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
    display: flex; justify-content: center; gap: 8px;
}
.featured-dot {
    width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%;
    background: rgba(255,255,255,.4); cursor: pointer; transition: background .15s, transform .15s;
}
.featured-dot.active { background: #fff; transform: scale(1.3); }
.breadcrumbs { max-width: 1100px; margin: 16px auto 0; padding: 0 20px; color: #9a9aad; font-size: 14px; }
.site-footer { max-width: 1100px; margin: 24px auto 0; padding: 16px 20px 32px; border-top: 1px solid #26262f; font-size: 13px; }
.site-footer a { color: #6f6f80; }
.site-footer a:hover { color: #8fb8ff; }
.entity-detail { max-width: 1100px; margin: 0 auto; padding: 16px 20px 40px; }
.entity-type-label { color: #9a9aad; margin-top: -8px; }
.entity-subtitle-plain { color: #c2c2cc; font-size: 17px; margin-top: 4px; }
.entity-byline { color: #9a9aad; font-size: 14px; margin-top: 8px; }
.article-hero-content .entity-byline { color: #d3d3dc; }
.entity-byline a { color: #8fb8ff; }
.entity-share { margin: 16px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-share {
    background: #17171f; border: 1px solid #2c2c38; color: #e8e8ec;
    padding: 8px 16px; border-radius: 8px; font-size: 13px; cursor: pointer;
}
.btn-share:hover { border-color: #3a3af0; }
.btn-share:disabled { cursor: default; }
.btn-share.btn-liked { border-color: #3ec763; color: #7be3a0; }

/* ---------- produto pago (arquivo protegido) ---------- */
.product-box {
    margin: 20px 0; padding: 18px; border-radius: 12px; background: #14141b;
    border: 1px solid rgba(255,255,255,.08); text-align: center;
}
.product-preview-blur, .product-preview {
    max-width: 320px; width: 100%; border-radius: 8px; display: block; margin: 0 auto 14px;
}
.product-preview-blur { filter: blur(14px); transform: scale(1.02); }
.product-price { font-size: 22px; font-weight: bold; color: #fff; margin: 0 0 12px; }
.product-unlocked { color: #7be3a0; font-weight: bold; margin: 0 0 12px; }
.product-buy-btn, .product-download-btn {
    display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: bold;
    text-decoration: none; font-size: 15px;
}
.product-buy-btn { background: #3a3af0; color: #fff; }
.product-buy-btn:hover { background: #4a4af5; }
.product-recover-link { margin: 10px 0 0; font-size: 12px; }
.product-recover-link a { color: #9a9aad; }
.product-download-btn { background: #3ec763; color: #05130a; }
.product-download-btn:hover { background: #4dd873; }
.product-viewer-video, .product-viewer-html { width: 100%; max-width: 640px; border-radius: 8px; display: block; margin: 0 auto 14px; background: #000; }
.product-viewer-video { max-height: 70vh; }
.product-viewer-html { aspect-ratio: 16/10; border: none; }
.product-viewer-audio { width: 100%; max-width: 420px; display: block; margin: 0 auto 14px; }
.product-viewer-pdf { width: 100%; max-width: 720px; height: 70vh; border: none; border-radius: 8px; display: block; margin: 0 auto 14px; background: #fff; }

/* ---------- recover.php ---------- */
.recover-box { max-width: 380px; margin: 80px auto; text-align: center; padding: 0 20px; }
.recover-hint { color: #9a9aad; font-size: 14px; margin: 8px 0 18px; }
.recover-error { color: #ff6b6b; font-size: 14px; margin: 0 0 12px; }
.recover-box form { display: flex; flex-direction: column; gap: 10px; }
.recover-box input[type=email] {
    background: #17171f; border: 1px solid #2c2c38; color: #e8e8ec;
    padding: 10px 14px; border-radius: 8px; font-size: 14px;
}

/* ---------- age_gate.js (aviso 18+) ---------- */
.age-gate-overlay {
    position: fixed; inset: 0; z-index: 200; background: rgba(6,6,10,.92);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.age-gate-overlay[hidden] { display: none; }
.age-gate-box {
    background: #14141b; border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
    padding: 28px; max-width: 420px; text-align: center;
}
.age-gate-box h2 { margin: 0 0 12px; color: #fff; font-size: 19px; }
.age-gate-box p { color: #c2c2cc; font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.age-gate-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.age-gate-actions .btn-share { width: 100%; padding: 12px; font-size: 14px; font-weight: bold; }
.age-gate-exit { color: #6f6f80; font-size: 13px; text-decoration: none; }
.age-gate-exit:hover { color: #9a9aad; }

/* ---------- hero (capa em destaque) ---------- */
.article-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    margin-top: 12px;
}
.article-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,6,10,.92), rgba(6,6,10,.25) 65%, rgba(6,6,10,0));
}
.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 28px 20px 24px;
}
.article-hero-content .entity-type-label { margin-top: 0; color: #d3d3dc; font-size: 13px; }
.article-hero-content h1 { margin: 4px 0 0; font-size: 30px; color: #fff; line-height: 1.2; }
.article-hero-subtitle { color: #e2e2e8; font-size: 17px; margin: 8px 0 0; }
.entity-fields dt { color: #9a9aad; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-top: 16px; }
.entity-fields dd { margin: 4px 0 0; }
.entity-fields img { max-width: 100%; border-radius: 8px; }
.related ul { list-style: none; padding: 0; }
.related li { padding: 6px 0; border-bottom: 1px solid #1e1e28; }
.rel-type { color: #6f6f80; font-size: 13px; }

/* ---------- browse.php (listagem por tipo, paginada) ---------- */
.hint-count { color: #6f6f80; font-size: 14px; font-weight: normal; }
.toolbar { display: flex; gap: 16px; align-items: center; margin-top: 24px; color: #9a9aad; font-size: 14px; }

/* ---------- campo tipo "gallery" + lightbox ---------- */
.entity-gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
    margin: 20px 0;
}
.entity-gallery-thumb-link { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 2/3; }
.entity-gallery-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s ease; }
@media (hover: hover) and (pointer: fine) {
    .entity-gallery-thumb-link:hover .entity-gallery-thumb { transform: scale(1.05); }
}

/* ---------- bloco "video_gallery" (grade de vídeo, mesmo padrão da de imagem) ---------- */
.entity-video-gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
    margin: 20px 0;
}
.entity-video-gallery-thumb-link { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 2/3; }
.entity-video-gallery-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s ease; background: #0f0f0f; }
.video-thumb-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 16px; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .entity-video-gallery-thumb-link:hover .entity-video-gallery-thumb { transform: scale(1.05); }
}

.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(6,6,10,.96);
    display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img, .lightbox-video { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-video[hidden] { display: none; }
.lightbox-img[hidden] { display: none; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255,255,255,.08); color: #fff; border: none; border-radius: 50%;
    cursor: pointer; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.18); }
.lightbox-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #c2c2cc; font-size: 13px; }

/* ---------- blocos de conteúdo ---------- */
.content-blocks { max-width: 720px; margin-top: 8px; }
.content-blocks h2, .content-blocks h3, .content-blocks h4 { margin-top: 32px; margin-bottom: 8px; color: #f2f2f5; }
.content-blocks p { margin: 0 0 16px; }
.content-blocks a { color: #8fb8ff; }
.block-prose h2, .block-prose h3 { margin: 28px 0 8px; color: #f2f2f5; }
.block-prose p { margin: 0 0 16px; }
.block-prose ul, .block-prose ol { margin: 0 0 16px; padding-left: 24px; }
.block-prose li { margin-bottom: 6px; }
.block-prose a { color: #8fb8ff; }
.block-image { margin: 20px 0; }
.block-image img { max-width: 100%; border-radius: 10px; display: block; width: 100%; }
.block-image figcaption { color: #9a9aad; font-size: 13px; margin-top: 6px; }
.block-image.block-image-w-small { max-width: 240px; }
.block-image.block-image-w-medium { max-width: 480px; }
.block-image.block-image-w-large { max-width: 720px; }
.block-image.block-image-w-full { max-width: 100%; }
.block-image.block-image-align-left { margin-right: auto; }
.block-image.block-image-align-center { margin-left: auto; margin-right: auto; }
.block-image.block-image-align-right { margin-left: auto; }
.block-link { margin: 20px 0; }
.block-link a {
    display: inline-block; background: #17171f; border: 1px solid #3a3af0; color: #8fb8ff;
    padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: bold;
}
.block-entity-ref {
    display: inline-flex; flex-direction: column; gap: 2px; background: #17171f; border: 1px solid #2c2c38;
    border-radius: 10px; padding: 10px 14px; margin: 12px 0; text-decoration: none; max-width: 320px;
}
.block-entity-ref-type { color: #6f6f80; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.block-entity-ref-title { color: #e8e8ec; font-weight: bold; }
.block-entity-ref:hover { border-color: #3a3af0; }
.block-embed { position: relative; padding-top: 56.25%; margin: 20px 0; background: #17171f; border-radius: 10px; overflow: hidden; }
.block-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
/* Irmão do .block-embed, sem a reserva de espaço 16:9 — a altura vem
   inline (style="height:...") do próprio bloco, do tamanho que o widget
   declarou, sem esticar/sobrar espaço. */
.block-widget-embed { margin: 20px 0; background: #17171f; border-radius: 10px; overflow: hidden; max-width: 100%; }
.block-widget-embed iframe { width: 100%; height: 100%; border: none; display: block; }
/* Irmão dos dois acima — pra conteúdo nativamente vertical (TikTok/Reels,
   câmera 9:16 tipo o CCTV do WaifuGame). Nem 16:9 (.block-embed) nem altura
   declarada (.block-widget-embed) servem pra isso: um estica horizontal
   demais, o outro não tem controle de largura nenhum. aspect-ratio:9/16
   mantém a proporção certa em qualquer largura; max-width por tamanho dá o
   controle que faltava, centralizado como uma "coluna" dentro do artigo. */
.block-vertical-embed { position: relative; aspect-ratio: 9 / 16; margin: 20px auto; background: #17171f; border-radius: 10px; overflow: hidden; width: 100%; }
.block-vertical-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.block-vertical-embed-small { max-width: 240px; }
.block-vertical-embed-medium { max-width: 360px; }
.block-vertical-embed-large { max-width: 480px; }
