/* Comunidade — postagens, grupos e moderação */
/* A comunidade sai da caixa estreita do site (main.container) e usa a largura
   da tela, até 1560px: grupos na esquerda, feed no meio, widgets na direita */
.cm-page { --cm-largura: min(1560px, calc(100vw - 40px)); width: var(--cm-largura); position: relative; left: 50%; margin-left: calc(var(--cm-largura) / -2); padding: 18px 0 80px; }
.cm-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cm-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.cm-box { background: rgba(10,12,28,0.72); border: 1px solid rgba(var(--galaxy-accent-rgb),0.16); border-radius: 16px; overflow: hidden; }
.cm-box-head { padding: 12px 16px; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--galaxy-gradient-end); border-bottom: 1px solid rgba(var(--galaxy-accent-rgb),0.1); display: flex; align-items: center; gap: 8px; }
.cm-box-body { padding: 12px 14px; }

/* Grupos */
.cm-groups { display: flex; flex-direction: column; gap: 2px; padding: 6px; }
.cm-group-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #d1d5db; text-decoration: none; font-size: 0.88rem; }
.cm-group-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.cm-group-item.active { background: rgba(var(--galaxy-accent-rgb),0.15); color: #fff; }
.cm-group-ico { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: color-mix(in srgb, var(--gc, var(--galaxy-accent)) 20%, transparent); color: var(--gc, var(--galaxy-accent)); }
.cm-group-item small { margin-left: auto; color: #6b7280; font-size: 0.72rem; }
.cm-official { color: #fbbf24; font-size: 0.7rem; margin-left: 4px; }

/* Cabeçalho do grupo */
.cm-ghead { padding: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
    background: linear-gradient(135deg, color-mix(in srgb, var(--gc, var(--galaxy-accent)) 22%, transparent), rgba(10,12,28,0.7)); }
.cm-ghead .cm-group-ico { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 16px; }
.cm-ghead h1 { font-size: 1.35rem; font-weight: 900; margin: 0; color: #fff; }
.cm-ghead p { margin: 4px 0 0; color: #cbd5e1; font-size: 0.88rem; }
.cm-ghead-stats { color: #9ca3af; font-size: 0.78rem; margin-top: 6px; }
.cm-ghead-actions { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; }

/* Abas do feed */
.cm-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.cm-tab { flex: 1; text-align: center; padding: 10px; border-radius: 12px; background: rgba(10,12,28,0.6); border: 1px solid rgba(255,255,255,0.06); color: #9ca3af; font-weight: 700; font-size: 0.86rem; cursor: pointer; }
.cm-tab.active { color: #fff; border-color: rgba(var(--galaxy-accent-rgb),0.5); background: rgba(var(--galaxy-accent-rgb),0.12); }

/* Botões */
.cm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 0.86rem; font-weight: 700; cursor: pointer; border: 1px solid rgba(var(--galaxy-accent-rgb),0.35); background: rgba(var(--galaxy-accent-rgb),0.12); color: #fff; text-decoration: none; }
.cm-btn:hover { background: rgba(var(--galaxy-accent-rgb),0.24); color: #fff; }
.cm-btn-primary { background: linear-gradient(135deg, var(--galaxy-gradient-start), var(--galaxy-gradient-end)); border: none; }
.cm-btn-primary:hover { filter: brightness(1.1); }
.cm-btn-danger { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.12); color: #fca5a5; }
.cm-btn:disabled { opacity: .6; cursor: default; }
.cm-icon-btn { width: 34px; height: 34px; border-radius: 9px; border: none; background: transparent; color: #9ca3af; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cm-icon-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Compositor */
.cm-composer { padding: 14px; margin-bottom: 14px; }
.cm-composer textarea { width: 100%; min-height: 84px; resize: vertical; background: rgba(0,0,0,0.3); color: #f3f4f6; border: 1px solid rgba(var(--galaxy-accent-rgb),0.2); border-radius: 12px; padding: 12px; font-size: 0.95rem; }
.cm-composer textarea:focus { outline: none; border-color: var(--galaxy-accent); }
.cm-composer-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.cm-composer select, .cm-composer input[type=text] { background: rgba(0,0,0,0.3); color: #f3f4f6; border: 1px solid rgba(var(--galaxy-accent-rgb),0.2); border-radius: 10px; min-height: 40px; padding: 0 10px; font-size: 0.86rem; }
.cm-composer-venda { display: none; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cm-composer-venda.on { display: flex; }
.cm-composer-venda input { flex: 1 1 140px; }
.cm-preview-img { position: relative; margin-top: 10px; display: inline-block; }
.cm-preview-img img { max-height: 180px; border-radius: 10px; }
.cm-preview-img button { position: absolute; top: 6px; right: 6px; }
.cm-locked { padding: 16px; text-align: center; color: #cbd5e1; font-size: 0.9rem; }

/* Postagem */
.cm-list { display: flex; flex-direction: column; gap: 12px; }
.cm-post { background: rgba(10,12,28,0.72); border: 1px solid rgba(var(--galaxy-accent-rgb),0.14); border-left: 3px solid var(--ac, rgba(var(--galaxy-accent-rgb),0.4)); border-radius: 16px; padding: 14px 16px; }
.cm-post.is-hidden { opacity: .85; border-style: dashed; }
.cm-hidden-note { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; border-radius: 10px; padding: 8px 12px; font-size: 0.8rem; margin-bottom: 10px; }
.cm-post-head { display: flex; gap: 10px; align-items: center; }
.cm-avatar img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #0b0d1c; border: 2px solid var(--ac, rgba(var(--galaxy-accent-rgb),0.4)); }
.cm-who { min-width: 0; flex: 1; }
.cm-nick { color: #fff; font-weight: 800; text-decoration: none; }
.cm-nick:hover { text-decoration: underline; color: #fff; }
.cm-badge { font-size: 0.64rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; }
.cm-badge-admin { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.35); }
.cm-badge-mod { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.35); }
.cm-meta, .cm-meta a { color: #8b93a7; font-size: 0.76rem; text-decoration: none; }
.cm-meta a:hover { color: #cbd5e1; }
.cm-text { color: #e5e7eb; margin-top: 10px; line-height: 1.55; word-break: break-word; font-size: 0.95rem; }
.cm-text a { color: var(--galaxy-accent); }
.cm-image { display: block; margin-top: 10px; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.3); }
.cm-image img { width: 100%; max-height: 520px; object-fit: contain; display: block; }
.cm-venda { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.cm-venda-tag { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); border-radius: 999px; padding: 3px 10px; font-size: 0.74rem; font-weight: 800; }
.cm-venda-preco { font-weight: 900; color: #fde68a; font-size: 1.05rem; }
.cm-venda-srv { color: #9ca3af; font-size: 0.8rem; }
.cm-actions { display: flex; gap: 4px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 8px; }
.cm-act { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; color: #9ca3af; padding: 6px 10px; border-radius: 9px; cursor: pointer; font-size: 0.86rem; }
.cm-act:hover { background: rgba(255,255,255,0.06); color: #fff; }
.cm-act.cm-like.on { color: #f43f5e; }
.cm-act:disabled { opacity: .5; cursor: default; }

/* Comentários */
.cm-comments { margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
.cm-cmt { display: flex; gap: 8px; margin-bottom: 10px; }
.cm-cmt img { width: 30px; height: 30px; border-radius: 50%; }
.cm-cmt-body { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 8px 12px; flex: 1; min-width: 0; }
.cm-cmt-text { color: #d1d5db; font-size: 0.88rem; word-break: break-word; }
.cm-cmt-del { float: right; border: none; background: none; color: #6b7280; cursor: pointer; }
.cm-cmt-del:hover { color: #f87171; }
.cm-cmt-form { display: flex; gap: 6px; }
.cm-cmt-form input { flex: 1; background: rgba(0,0,0,0.3); color: #f3f4f6; border: 1px solid rgba(var(--galaxy-accent-rgb),0.2); border-radius: 999px; padding: 8px 14px; font-size: 0.88rem; min-width: 0; }

.cm-empty { text-align: center; color: #8b93a7; padding: 40px 16px; background: rgba(10,12,28,0.5); border-radius: 16px; border: 1px dashed rgba(255,255,255,0.08); }
.cm-empty i { font-size: 2rem; opacity: .5; display: block; margin-bottom: 8px; }
.cm-empty-sm { color: #8b93a7; font-size: 0.84rem; padding: 6px 0; }
.cm-loading { text-align: center; padding: 18px; color: #9ca3af; }
.cm-more { width: 100%; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(10,12,28,0.6); color: #cbd5e1; font-weight: 700; cursor: pointer; }

.cm-user-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: #e5e7eb; text-decoration: none; }
.cm-user-row:hover { background: rgba(255,255,255,0.05); color: #fff; }
.cm-user-row img { width: 36px; height: 36px; border-radius: 50%; }
.cm-user-row .ms-auto { font-size: 0.72rem; }

.cm-modal .modal-content { background: rgba(10,12,28,0.98); border: 1px solid rgba(var(--galaxy-accent-rgb),0.3); border-radius: 18px; color: #e5e7eb; }
.cm-modal .modal-header, .cm-modal .modal-footer { border-color: rgba(var(--galaxy-accent-rgb),0.15); }
.cm-modal label { font-size: 0.8rem; font-weight: 700; color: #cbd5e1; margin-bottom: 4px; }
.cm-modal .form-control, .cm-modal .form-select { background: rgba(0,0,0,0.35); color: #f3f4f6; border-color: rgba(var(--galaxy-accent-rgb),0.25); }
.cm-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-icons button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: #cbd5e1; }
.cm-icons button.active { border-color: var(--galaxy-accent); color: #fff; background: rgba(var(--galaxy-accent-rgb),0.2); }

.cm-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: rgba(16,185,129,0.95); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 9999; max-width: 90vw; text-align: center; }
.cm-toast.erro { background: rgba(220,38,38,0.95); }
.cm-toast.show { opacity: 1; transform: translate(-50%, 0); }

.cm-mobile-groups { display: none; }
/* Faixa de aniversariantes do dia */
.cm-aniv { margin-bottom: 12px; padding: 12px 16px; border-radius: 16px; color: #fff;
    background: linear-gradient(110deg, rgba(236,72,153,0.35), rgba(249,115,22,0.3), rgba(168,85,247,0.35)); border: 1px solid rgba(236,72,153,0.45); }
.cm-aniv-titulo { font-weight: 900; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cm-aniv-titulo i { color: #fbcfe8; }
.cm-aniv-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-aniv-lista a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(0,0,0,0.3); color: #fff; text-decoration: none; font-weight: 800; font-size: 0.86rem; position: relative; }
.cm-aniv-lista a:hover { background: rgba(0,0,0,0.5); color: #fff; }
.cm-aniv-lista img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cm-aniv-lista small { opacity: .8; font-weight: 600; }
.cm-aniv-dica { font-size: 0.8rem; opacity: .85; margin-top: 8px; }
/* Faixa de atalhos (no celular sempre; na aba Skins também no computador) */
.cm-mobile-groups { gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.cm-mobile-groups::-webkit-scrollbar { display: none; }
.cm-mobile-groups a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(10,12,28,0.7); border: 1px solid rgba(255,255,255,0.08); color: #d1d5db; text-decoration: none; font-size: 0.84rem; font-weight: 700; }
.cm-mobile-groups a:hover { color: #fff; }
.cm-mobile-groups a.active { border-color: var(--galaxy-accent); color: #fff; }

@media (max-width: 1100px) {
    .cm-page { --cm-largura: calc(100vw - 24px); }
    .cm-layout { grid-template-columns: 250px minmax(0, 1fr); }
    .cm-right { display: none; }
}
@media (max-width: 760px) {
    .cm-page { padding: 10px 8px 80px; }
    .cm-layout { grid-template-columns: 1fr; }
    .cm-left { display: none; }
    .cm-mobile-groups { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
    .cm-mobile-groups::-webkit-scrollbar { display: none; }
    .cm-post { padding: 12px; }
    .cm-composer textarea, .cm-composer input, .cm-composer select, .cm-cmt-form input { font-size: 16px; }
    .cm-ghead-actions .cm-btn { flex: 1; }
}

/* ===== Menções, marcações e post oficial ===== */
.cm-mencao { color: var(--galaxy-accent); font-weight: 700; text-decoration: none; }
.cm-mencao:hover { text-decoration: underline; }
.cm-badge-oficial { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.cm-fixado { margin-left: 8px; font-size: 0.66rem; font-weight: 800; color: #fbbf24; text-transform: uppercase; letter-spacing: .04em; }
.cm-mencionados { margin-top: 8px; font-size: 0.8rem; color: #9ca3af; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-mencionados i { color: var(--galaxy-accent); }
.cm-mencionados a { color: #e5e7eb; font-weight: 700; text-decoration: none; }
.cm-mencionados a:hover { color: #fff; text-decoration: underline; }

/* Foto com pessoas marcadas */
.cm-foto { position: relative; margin-top: 10px; }
.cm-foto .cm-image { margin-top: 0; }
.cm-ponto { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.cm-ponto i { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--galaxy-accent); box-shadow: 0 0 0 4px rgba(255,255,255,0.25), 0 2px 8px rgba(0,0,0,0.5); animation: cm-ponto 2s ease-in-out infinite; }
@keyframes cm-ponto { 0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 2px 8px rgba(0,0,0,0.5); } 50% { box-shadow: 0 0 0 7px rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.5); } }
.cm-ponto b { margin-top: 4px; background: rgba(0,0,0,0.8); color: #fff; font-size: 0.72rem; padding: 3px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; transform: translateY(-3px); transition: opacity .15s, transform .15s; pointer-events: none; }
.cm-ponto:hover b, .mostrar-pontos .cm-ponto b { opacity: 1; transform: none; }
.cm-marcados-btn { position: absolute; left: 10px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 999px; padding: 6px 11px; background: rgba(0,0,0,0.7); color: #fff; font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.mostrar-pontos .cm-marcados-btn { background: var(--galaxy-accent); color: #06121f; }

/* Cenário do post de aniversário */
.cm-post-aniv { border-left-color: #ec4899; }
.cm-post-fixado { box-shadow: 0 0 0 1px rgba(251,191,36,0.35); }
.cm-festa { position: relative; margin-top: 12px; border-radius: 16px; overflow: hidden; min-height: 340px;
    background: radial-gradient(ellipse at 50% 100%, rgba(236,72,153,0.35), transparent 60%), linear-gradient(180deg, #1e1b4b 0%, #3b0764 55%, #4c1d95 100%); }
.cm-festa-varal { position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 2;
    background: conic-gradient(from 135deg at 50% 0, #ec4899 0 25%, transparent 0 75%, #ec4899 0) 0 0 / 28px 26px,
                conic-gradient(from 135deg at 50% 0, #facc15 0 25%, transparent 0 75%, #facc15 0) 14px 0 / 28px 26px; opacity: .9; }
.cm-festa-titulo { position: relative; z-index: 2; text-align: center; padding: 36px 14px 0; overflow-wrap: anywhere; font-family: 'Press Start 2P', monospace; font-size: clamp(0.62rem, 1.8vw, 0.95rem); color: #fff; text-shadow: 0 3px 0 #be185d, 0 0 18px rgba(236,72,153,0.6); line-height: 1.6; }
.cm-festa-titulo span { color: #fde68a; font-size: .8em; }
.cm-festa-bandeira { position: absolute; top: 96px; right: 14px; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5)); animation: clan-vento 4s ease-in-out infinite; transform-origin: top center; }
@keyframes clan-vento { 0%, 100% { transform: skewY(0deg); } 50% { transform: skewY(1.5deg); } }
.cm-festa-palco { position: relative; height: 250px; margin-top: 8px; }
/* Clan atrás, espalhado de ponta a ponta (sobra espaço dos lados da frente) */
.cm-festa-fundo { position: absolute; bottom: 52px; display: flex; align-items: flex-end; opacity: .92; }
.cm-festa-fundo.esq { left: 3%; } .cm-festa-fundo.dir { right: 3%; flex-direction: row-reverse; }
.cm-festa-fundo .cm-festa-pessoa + .cm-festa-pessoa { margin-left: -14px; }
.cm-festa-fundo.dir .cm-festa-pessoa + .cm-festa-pessoa { margin-left: 0; margin-right: -14px; }
.cm-festa-fundo .cm-festa-pessoa:nth-child(even) { margin-bottom: 14px; z-index: -1; }
.cm-festa-frente { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: flex-end; gap: 26px; z-index: 2; }
.cm-festa-pessoa { position: relative; display: flex; justify-content: center; }
.cm-festa-pessoa img { image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.5)); }
.cm-festa-pessoa.fundo img { height: 100px; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.5)) brightness(.8); }
.cm-festa-frente .cm-festa-pessoa img { height: 150px; }
.cm-festa-frente .cm-festa-pessoa.centro img { height: 170px; }
.cm-festa-chapeu { position: absolute; top: -18px; left: 50%; transform: translateX(-30%) rotate(14deg); width: 0; height: 0;
    border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 24px solid #facc15; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4)); }
.cm-festa-chapeu::after { content: ''; position: absolute; top: -6px; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: #ec4899; }
.cm-festa-mesa { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; width: 150px; height: 46px; display: flex; justify-content: center; align-items: flex-end;
    background: linear-gradient(180deg, #92400e, #78350f); border-radius: 8px 8px 0 0; box-shadow: 0 -4px 0 #b45309 inset; }
.cm-bolo { position: absolute; bottom: 34px; width: 96px; image-rendering: pixelated; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.5)); }
.cm-chama { animation: cm-chama .5s steps(2) infinite; }
@keyframes cm-chama { 50% { fill: #facc15; transform: translateY(-1px); } }
.cm-festa .cm-ponto { transform: translate(-50%, -100%); }
@media (prefers-reduced-motion: reduce) { .cm-chama, .cm-festa-bandeira, .cm-ponto i { animation: none; } }
@media (max-width: 640px) {
    .cm-festa { min-height: 290px; }
    .cm-festa-palco { height: 210px; }
    .cm-festa-pessoa.fundo img { height: 82px; }
    .cm-festa-frente .cm-festa-pessoa img { height: 118px; }
    .cm-festa-frente .cm-festa-pessoa.centro img { height: 132px; }
    .cm-festa-fundo { bottom: 46px; }
    .cm-festa-fundo .cm-festa-pessoa + .cm-festa-pessoa { margin-left: -22px; }
    .cm-festa-fundo.dir .cm-festa-pessoa + .cm-festa-pessoa { margin-right: -22px; }
    .cm-festa-frente { gap: 14px; }
    .cm-festa-mesa { width: 120px; height: 38px; }
    .cm-bolo { width: 76px; bottom: 28px; }
    .cm-festa-bandeira { display: none; }
}

/* Compositor: marcar pessoas na foto */
.cm-preview-img.cm-foto { display: inline-block; max-width: 100%; }
.cm-preview-img.marcando img { cursor: crosshair; outline: 2px dashed var(--galaxy-accent); outline-offset: 2px; }
.cm-preview-img .cm-ponto b { opacity: 1; transform: none; pointer-events: auto; }
.cm-preview-img .cm-ponto b a { color: #f87171; margin-left: 4px; text-decoration: none; font-weight: 900; }
.cm-tira-foto { position: absolute; top: 6px; right: 6px; z-index: 5; }
.cm-marcar-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* Widget de aniversariantes */
.cm-aniv-widget { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.cm-aniv-sub { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; margin: 6px 4px 2px; }
.cm-aniv-sub.hoje { color: #f472b6; }
.cm-aniv-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: #e5e7eb; text-decoration: none; }
.cm-aniv-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.cm-aniv-item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.cm-aniv-item b { display: block; font-size: 0.86rem; }
.cm-aniv-item small { display: block; font-size: 0.72rem; color: #9ca3af; }
.cm-aniv-sub.hoje + .cm-aniv-item, .cm-aniv-sub.hoje ~ .cm-aniv-item:not(.cm-aniv-sub ~ .cm-aniv-sub ~ .cm-aniv-item) { background: rgba(236,72,153,0.1); }

/* Widget do Discord */
.cm-discord { background: linear-gradient(160deg, rgba(88,101,242,0.35), rgba(10,12,28,0.85) 55%); border-color: rgba(88,101,242,0.45); padding: 14px; }
.cm-dc-topo { display: flex; align-items: center; gap: 10px; }
.cm-dc-icone { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: #5865F2; color: #fff; font-size: 1.4rem; flex-shrink: 0; }
.cm-dc-topo b { display: block; color: #fff; font-size: 0.95rem; }
.cm-dc-topo small { display: flex; align-items: center; gap: 6px; color: #c7d2fe; font-size: 0.76rem; }
.cm-dc-on { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 6px #23a55a; display: inline-block; }
.cm-dc-logo { margin-left: auto; font-size: 1.6rem; color: rgba(255,255,255,0.35); }
.cm-dc-pessoas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cm-dc-pessoa { position: relative; }
.cm-dc-pessoa img { width: 30px; height: 30px; border-radius: 50%; }
.cm-dc-pessoa i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #1e1f3a; background: #80848e; }
.cm-dc-pessoa i.online { background: #23a55a; } .cm-dc-pessoa i.idle { background: #f0b232; } .cm-dc-pessoa i.dnd { background: #f23f43; }
.cm-dc-entrar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; min-height: 40px; border-radius: 10px; background: #5865F2; color: #fff; font-weight: 800; font-size: 0.88rem; text-decoration: none; }
.cm-dc-entrar:hover { background: #4752c4; color: #fff; }

/* Banner do grupo: fundo do item da lista e do cabeçalho */
.cm-group-item.tem-banner { position: relative; isolation: isolate; overflow: hidden; min-height: 50px;
    background: linear-gradient(90deg, rgba(8,10,22,0.92) 0%, rgba(8,10,22,0.7) 55%, rgba(8,10,22,0.35) 100%), var(--gb) center / cover no-repeat; color: #fff; }
.cm-group-item.tem-banner:hover { background: linear-gradient(90deg, rgba(8,10,22,0.85) 0%, rgba(8,10,22,0.55) 55%, rgba(8,10,22,0.2) 100%), var(--gb) center / cover no-repeat; }
.cm-group-item.tem-banner.active { box-shadow: inset 0 0 0 1px rgba(var(--galaxy-accent-rgb),0.55); }
.cm-group-item.tem-banner span:not(.cm-group-ico) { text-shadow: 0 1px 3px rgba(0,0,0,0.8); font-weight: 700; }
.cm-group-item.tem-banner small { color: #e5e7eb; background: rgba(0,0,0,0.45); padding: 1px 7px; border-radius: 999px; }
.cm-ghead-box.tem-banner .cm-ghead { padding-top: 120px;
    background: linear-gradient(180deg, rgba(8,10,22,0.05) 0%, rgba(8,10,22,0.55) 45%, rgba(8,10,22,0.94) 100%), var(--gb) center / cover no-repeat; }
.cm-ghead-box.tem-banner .cm-ghead .cm-group-ico { background: rgba(8,10,22,0.75); box-shadow: 0 6px 20px rgba(0,0,0,0.5); border: 2px solid color-mix(in srgb, var(--gc, var(--galaxy-accent)) 60%, transparent); }
.cm-ghead-box.tem-banner .cm-ghead h1, .cm-ghead-box.tem-banner .cm-ghead p { text-shadow: 0 2px 6px rgba(0,0,0,0.85); }
.cm-ghead-box.tem-banner .cm-ghead-stats { color: #d1d5db; }
@media (max-width: 640px) { .cm-ghead-box.tem-banner .cm-ghead { padding-top: 80px; } }
.cm-gbanner-edit { aspect-ratio: 3 / 1; border-radius: 12px; border: 1px dashed rgba(255,255,255,0.18); background: rgba(0,0,0,0.3) center / cover no-repeat;
    display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 0.85rem; }
.cm-gbanner-edit.tem { border-style: solid; }
.cm-gbanner-edit.tem span { display: none; }

/* Widget de servidores */
.cm-srv { position: relative; }
.cm-srv-total { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #34d399; text-transform: none; letter-spacing: 0; font-size: 0.74rem; }
.cm-srv-total i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.cm-srv { overflow: hidden; }
.cm-srv-trilho { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.cm-srv-slide { flex: 0 0 100%; min-width: 0; }
.cm-srv-img { position: relative; aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(8,10,22,0) 55%, rgba(8,10,22,0.55) 100%), var(--sb, linear-gradient(135deg, rgba(var(--galaxy-accent-rgb),0.35), rgba(10,12,28,0.9))) center / cover no-repeat; }
.cm-srv-semimg { font-size: 2.6rem; color: rgba(255,255,255,0.25); }
.cm-srv-status { position: absolute; left: 10px; bottom: 10px; }
.cm-srv-on { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(8,10,22,0.82); border: 1px solid rgba(34,197,94,0.45);
    color: #d1fae5; font-size: 0.78rem; backdrop-filter: blur(4px); }
.cm-srv-on b { color: #fff; }
.cm-srv-on small { color: #9ca3af; }
.cm-srv-on i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: cmSrvPulso 2s infinite; }
.cm-srv-on.off { color: #9ca3af; border-color: rgba(255,255,255,0.12); }
.cm-srv-on.off i { background: #6b7280; animation: none; }
@keyframes cmSrvPulso { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.cm-srv-info { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px 14px; }
.cm-srv-ico { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    background: rgba(var(--galaxy-accent-rgb),0.14); color: var(--galaxy-accent); border: 1px solid rgba(var(--galaxy-accent-rgb),0.3); }
.cm-srv-txt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cm-srv-txt b { display: block; max-width: 100%; color: #fff; font-size: 0.98rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-srv-txt small { color: #6b7280; font-size: 0.74rem; }
.cm-srv-ip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: #9ca3af; font-size: 0.78rem; font-weight: 700; cursor: pointer; max-width: 100%; }
.cm-srv-ip:hover { color: #fff; }
.cm-srv-ip i { color: var(--galaxy-accent); font-size: 0.7rem; }
.cm-srv-pontos { position: absolute; right: 14px; bottom: 30px; display: flex; gap: 5px; }
.cm-srv-pontos button { width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,0.35); transition: width .25s, background .25s; }
.cm-srv-pontos button.ativo { width: 18px; background: var(--galaxy-accent); }

/* Anúncio na lateral direita: a coluna rola normal e o anúncio (último item)
   fica preso no topo até o fim da página */
.cm-right.cm-com-anuncio { position: static; align-self: stretch; }
.cm-right.cm-com-anuncio .cm-ad-fixo { position: sticky; top: 84px; }

/* Impulsionar (repost) */
.cm-impulso { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #9ca3af; margin: -4px 0 8px; font-weight: 600; }
.cm-impulso i { color: #34d399; }
.cm-impulso a { color: #d1d5db; text-decoration: none; font-weight: 800; }
.cm-impulso a:hover { color: #fff; }
.cm-impulso span { color: #6b7280; }
.cm-act.cm-rp.on { color: #34d399; }

/* Prévia do comentário mais curtido */
.cm-top-cmt { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 12px; border: 0; text-align: left;
    background: rgba(255,255,255,0.035); color: #d1d5db; cursor: pointer; font-size: 0.86rem; }
.cm-top-cmt:hover { background: rgba(255,255,255,0.06); }
.cm-top-cmt img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.cm-top-cmt-txt { flex: 1; min-width: 0; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-top-cmt-txt b { color: #fff; margin-right: 4px; }
.cm-top-cmt-likes { flex-shrink: 0; font-size: 0.74rem; color: #f43f5e; display: inline-flex; align-items: center; gap: 4px; }
.cm-post.cmt-aberto .cm-top-cmt { display: none; }

/* Comentários: curtir, responder e respostas recolhidas */
.cm-cmt-grupo { margin-bottom: 4px; }
.cm-cmt-acoes { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cm-cmt-acoes button { border: 0; background: none; padding: 0; color: #9ca3af; font-size: 0.76rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cm-cmt-acoes button:hover { color: #fff; }
.cm-cmt-like.on { color: #f43f5e !important; }
.cm-ver-resps { border: 0; background: none; color: #9ca3af; font-size: 0.76rem; font-weight: 700; padding: 0 0 8px 40px; cursor: pointer; }
.cm-ver-resps:hover { color: #fff; }
.cm-resps { padding-left: 38px; }
.cm-cmt-resp img { width: 24px; height: 24px; }
.cm-cmt-novo .cm-cmt-body { animation: cmCmtNovo 2.2s ease; }
@keyframes cmCmtNovo { 0% { background: rgba(var(--galaxy-accent-rgb),0.35); } 100% { background: rgba(255,255,255,0.04); } }
.cm-resp-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.78rem; color: #cbd5e1; background: rgba(var(--galaxy-accent-rgb),0.12);
    border-radius: 10px 10px 0 0; padding: 6px 12px; margin-bottom: -2px; }
.cm-resp-chip button { border: 0; background: none; color: #9ca3af; }
.cm-resp-chip button:hover { color: #fff; }

/* Aviso de novidades no feed */
.cm-novidades { position: sticky; top: 76px; z-index: 6; display: block; margin: 0 auto 12px; border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 0.84rem;
    color: #fff; background: linear-gradient(135deg, var(--galaxy-accent), var(--galaxy-gradient-end, #87CEEB)); box-shadow: 0 8px 24px rgba(var(--galaxy-accent-rgb),0.45); animation: cmNovidades .3s ease; }
@keyframes cmNovidades { from { transform: translateY(-8px); opacity: 0; } }

/* Grupos no celular: cards com o banner, como a lista do PC */
.cm-mobile-groups a.cm-mg { flex: 0 0 auto; width: 158px; min-height: 58px; border-radius: 14px; padding: 8px 10px; display: flex; align-items: center; gap: 9px;
    background: rgba(10,12,28,0.72); border: 1px solid rgba(255,255,255,0.08); color: #d1d5db; text-decoration: none; }
.cm-mobile-groups a.cm-mg.tem-banner { background: linear-gradient(90deg, rgba(8,10,22,0.9) 0%, rgba(8,10,22,0.55) 100%), var(--gb) center / cover no-repeat; }
.cm-mobile-groups a.cm-mg.active { border-color: var(--galaxy-accent); box-shadow: inset 0 0 0 1px var(--galaxy-accent); color: #fff; }
.cm-mobile-groups a.cm-mg .cm-group-ico { width: 34px; height: 34px; }
.cm-mg-txt { min-width: 0; display: flex; flex-direction: column; }
.cm-mg-txt b { color: #fff; font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.cm-mg-txt small { color: #9ca3af; font-size: 0.7rem; }
.cm-mobile-groups a.cm-mg.tem-banner .cm-mg-txt small { color: #e5e7eb; }

/* Imagem da postagem em tela cheia */
.cm-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(3,4,10,0.92); display: flex; align-items: center; justify-content: center; padding: 56px 16px 16px;
    opacity: 0; transition: opacity .2s; backdrop-filter: blur(4px); }
.cm-lightbox.on { opacity: 1; }
.cm-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); transform: scale(.96); transition: transform .2s; }
.cm-lightbox.on img { transform: none; }
.cm-lb-topo { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #e5e7eb; font-weight: 700; }
.cm-lb-topo span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-lb-topo a, .cm-lb-topo button { width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.cm-lb-topo a:hover, .cm-lb-topo button:hover { background: rgba(255,255,255,0.2); }

/* Compositor: arrastar imagem pra dentro */
.cm-composer.cm-arrastando { border-color: var(--galaxy-accent) !important; box-shadow: 0 0 0 2px rgba(var(--galaxy-accent-rgb),0.4); }

/* Marcar pessoa na foto: popup com busca e sugestões */
.cm-preview-img { position: relative; }
.cm-tag-pop { position: absolute; z-index: 20; width: 0; height: 0; }
.cm-tag-alvo { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; background: rgba(var(--galaxy-accent-rgb),0.6);
    box-shadow: 0 0 0 4px rgba(var(--galaxy-accent-rgb),0.35), 0 4px 12px rgba(0,0,0,0.5); animation: cmTagPulso 1.4s infinite; }
@keyframes cmTagPulso { 50% { box-shadow: 0 0 0 9px rgba(var(--galaxy-accent-rgb),0.12), 0 4px 12px rgba(0,0,0,0.5); } }
.cm-tag-card { position: absolute; top: 18px; left: -20px; width: 250px; background: rgba(12,14,30,0.98); border: 1px solid rgba(var(--galaxy-accent-rgb),0.4);
    border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.6); overflow: hidden; animation: cmTagEntra .15s ease; }
.cm-tag-pop.esq .cm-tag-card { left: auto; right: -20px; }
.cm-tag-pop.cima .cm-tag-card { top: auto; bottom: 18px; }
@keyframes cmTagEntra { from { opacity: 0; transform: translateY(-4px); } }
.cm-tag-busca { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); color: #9ca3af; }
.cm-tag-busca input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: 0.9rem; }
.cm-tag-busca button { border: 0; background: none; color: #9ca3af; padding: 2px 4px; }
.cm-tag-busca button:hover { color: #fff; }
.cm-tag-lista { max-height: 240px; overflow-y: auto; padding: 4px; }
.cm-tag-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 7px 8px; border-radius: 10px; color: #e5e7eb; text-align: left; font-weight: 700; font-size: 0.88rem; }
.cm-tag-item img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cm-tag-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cm-tag-item small { font-size: 0.68rem; color: #34d399; font-weight: 700; }
.cm-tag-item:hover, .cm-tag-item.on { background: rgba(var(--galaxy-accent-rgb),0.18); color: #fff; }
.cm-tag-vazio { padding: 12px; color: #9ca3af; font-size: 0.82rem; text-align: center; }
@media (max-width: 575px) { .cm-tag-card { width: 220px; } .cm-tag-busca input { font-size: 16px; } }
.cm-preview-img .cm-tag-pop button { position: static; }
.cm-composer { overflow: visible; }

/* Editar postagem */
.cm-ed-rot { display: block; font-size: 0.82rem; font-weight: 700; color: #cbd5e1; margin-bottom: 4px; }
.cm-ed-foto .cm-preview-img { margin-top: 0; }
.cm-ed-foto .cm-preview-img img { max-height: 360px; max-width: 100%; }
.cm-editado { color: #6b7280; font-style: italic; }

/* Classificação (+13/+18), aviso antes e spoiler */
.cm-classif { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 0.7rem; font-weight: 900;
    margin-left: 6px; color: #fff; vertical-align: middle; }
.cm-classif.c13 { background: #d97706; }
.cm-classif.c18 { background: #dc2626; }
.cm-classif-sel { background: rgba(0,0,0,0.35); color: #e5e7eb; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 0 8px; min-height: 38px; font-weight: 700; font-size: 0.82rem; }
.cm-corpo { position: relative; }
.cm-sensivel:not(.revelado) > :not(.cm-sensivel-aviso) { filter: blur(22px); pointer-events: none; user-select: none; }
.cm-sensivel:not(.revelado) { min-height: 150px; overflow: hidden; border-radius: 12px; }
.cm-sensivel-aviso { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px;
    background: rgba(8,10,22,0.55); color: #e5e7eb; }
.cm-sensivel-aviso .cm-classif { margin: 0; height: 28px; min-width: 48px; font-size: 0.9rem; }
.cm-sensivel-aviso small { color: #cbd5e1; }
.cm-sensivel-aviso .cm-btn { margin-top: 6px; }
.cm-sensivel.revelado .cm-sensivel-aviso { display: none; }
.cm-restrito { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 16px; margin: 6px 0; border-radius: 12px;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 12px, rgba(255,255,255,0.06) 12px 24px); border: 1px dashed rgba(255,255,255,0.15); color: #e5e7eb; }
.cm-restrito .cm-classif { margin: 0; height: 28px; min-width: 48px; font-size: 0.9rem; }
.cm-restrito small { color: #9ca3af; }
.cm-restrito .cm-btn { margin-top: 6px; }
.cm-spoiler { overflow: hidden; border-radius: 12px; }
.cm-spoiler:not(.revelado) img { filter: blur(26px) brightness(.7); transform: scale(1.06); }
.cm-spoiler:not(.revelado) .cm-ponto, .cm-spoiler:not(.revelado) .cm-marcados-btn { display: none; }
.cm-spoiler-capa { position: absolute; inset: 0; z-index: 4; border: 0; background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cm-spoiler-capa i { font-size: 1.6rem; }
.cm-spoiler-capa b { font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.cm-spoiler-capa small { color: #e5e7eb; }
.cm-spoiler.revelado .cm-spoiler-capa { display: none; }
.cm-spoiler-tg { margin: 0; }

/* Postagem em popup, estilo Instagram */
.cm-post-modal .modal-dialog { width: fit-content; max-width: min(1400px, 96vw); }
.cm-post-modal .modal-content { position: relative; background: rgba(10,12,28,0.98); border: 1px solid rgba(var(--galaxy-accent-rgb),0.25); border-radius: 18px; overflow-y: auto; max-height: 94vh; }
.cm-pm-fechar { position: absolute; top: 10px; right: 10px; z-index: 30; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.6); color: #fff; }
.cm-pm-fechar:hover { background: rgba(0,0,0,0.85); }
/* A coluna da foto tem a largura da própria foto (sem faixas pretas); a da conversa
   não estica a linha (contain: size) — os comentários rolam dentro dela */
.cm-ig { --ig-h: min(84vh, 780px); --ig-lado: 400px; display: grid; grid-template-columns: auto var(--ig-lado); }
.cm-ig:not(.sem-midia) .cm-ig-lado { contain: size; }
.cm-ig.sem-midia { grid-template-columns: 1fr; height: auto; width: min(720px, 92vw); margin: 0 auto; }
.cm-ig-midia { position: relative; background: #05060c; display: flex; align-items: center; justify-content: center; min-height: 480px; max-height: var(--ig-h); overflow: hidden; isolation: isolate; }
/* Sobra de espaço (foto larga e baixa): a própria foto borrada no fundo, em vez de preto */
.cm-ig-midia::before { content: ''; position: absolute; inset: -40px; z-index: -1; background: var(--ig-fundo, none) center / cover no-repeat; filter: blur(34px) brightness(.45) saturate(1.2); }
/* A caixa da foto tem exatamente o tamanho da imagem: os pontos das marcações ficam no lugar certo */
.cm-ig-midia .cm-foto { position: relative; display: inline-block; margin: 0; max-width: 100%; border-radius: 0; line-height: 0; }
.cm-ig-midia .cm-foto > :not(.cm-image) { line-height: normal; }
.cm-ig-midia .cm-image { display: block; }
.cm-ig-midia .cm-image img { display: block; max-width: calc(min(1400px, 96vw) - var(--ig-lado) - 4px); max-height: var(--ig-h); width: auto; height: auto; object-fit: contain; border-radius: 0; }
.cm-ig-midia.cm-ig-sensivel .cm-foto { filter: blur(26px); pointer-events: none; }
.cm-ig-lado { min-width: 0; min-height: 0; display: flex; }
.cm-ig-lado .cm-post { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding-top: 52px; }
.cm-ig:not(.sem-midia) .cm-ig-lado .cm-post { border-left: 1px solid rgba(255,255,255,0.06); }
.cm-ig:not(.sem-midia) .cm-ig-lado .cm-comments { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cm-ig:not(.sem-midia) .cm-ig-lado .cm-cmt-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.cm-ig:not(.sem-midia) .cm-ig-lado .cm-corpo { max-height: 34%; overflow-y: auto; flex-shrink: 0; }
.cm-mais { padding: 18px 20px 22px; border-top: 1px solid rgba(255,255,255,0.06); }
.cm-mais h2 { font-size: 1rem; font-weight: 800; color: #e5e7eb; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.cm-mais h2 a { color: var(--galaxy-gradient-end, #87CEEB); text-decoration: none; }
.cm-mais-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.cm-mais-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center; text-decoration: none; color: #e5e7eb; }
.cm-mais-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.cm-mais-item:hover img { transform: scale(1.04); }
.cm-mais-item.borrado img { filter: blur(18px); }
.cm-mais-txt { padding: 14px; font-size: 0.86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.cm-mais-info { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; background: rgba(0,0,0,0.5); color: #fff; font-weight: 800; opacity: 0; transition: opacity .2s; }
.cm-mais-item:hover .cm-mais-info { opacity: 1; }
.cm-mais-tag { position: absolute; top: 8px; right: 8px; }
.cm-mais-tag .cm-classif { margin: 0; }
.cm-mais-lock { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #9ca3af; font-size: 0.8rem; }
.cm-image { cursor: zoom-in; }
@media (max-width: 991px) {
    .cm-post-modal .modal-content { max-height: none; border-radius: 0; }
    .cm-post-modal .modal-dialog { width: auto; }
    .cm-ig, .cm-ig.sem-midia { grid-template-columns: 1fr; height: auto; width: auto; --ig-h: 70vh; }
    .cm-ig:not(.sem-midia) .cm-ig-lado { contain: none; }
    .cm-ig-midia { min-height: 0; }
    .cm-ig-midia .cm-image img { max-width: 100%; }
    .cm-ig-lado .cm-post { padding-top: 12px; }
    .cm-ig:not(.sem-midia) .cm-ig-lado .cm-post { border-left: 0; border-top: 1px solid rgba(255,255,255,0.06); }
    .cm-ig:not(.sem-midia) .cm-ig-lado .cm-cmt-list, .cm-ig:not(.sem-midia) .cm-ig-lado .cm-corpo { max-height: none; overflow: visible; }
    .cm-mais-grade { grid-template-columns: repeat(3, 1fr); gap: 3px; }
}

/* Popup do post: "Mais postagens" não alarga o popup (largura vem da foto + conversa);
   foto pequena cresce até uma altura mínima */
.cm-post-modal .cm-mais { width: 0; min-width: 100%; box-sizing: border-box; }
.cm-ig-midia .cm-image img { min-height: min(480px, var(--ig-h)); }
@media (max-width: 991px) { .cm-ig-midia .cm-image img { min-height: 0; } .cm-post-modal .cm-mais { width: auto; } }

/* Popup do post: conversa à direita na altura toda (foto + "mais postagens" à esquerda) */
.cm-ig { grid-template-areas: "midia lado" "mais lado"; grid-template-rows: auto 1fr; }
.cm-ig.sem-midia { grid-template-areas: "lado" "mais"; }
.cm-ig-midia { grid-area: midia; }
.cm-ig-lado { grid-area: lado; }
.cm-ig > .cm-mais { grid-area: mais; }
.cm-ig:not(.sem-midia) > .cm-mais { border-top: 1px solid rgba(255,255,255,0.06); }
@media (max-width: 991px) {
    .cm-ig, .cm-ig.sem-midia { grid-template-areas: "midia" "lado" "mais"; grid-template-rows: auto; }
}

/* Servidor mencionado na postagem */
.cm-srv-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; text-decoration: none; color: #e5e7eb;
    background: linear-gradient(135deg, rgba(var(--galaxy-accent-rgb),0.16), rgba(255,255,255,0.03)); border: 1px solid rgba(var(--galaxy-accent-rgb),0.3); max-width: 100%; }
.cm-srv-chip:hover { border-color: var(--galaxy-accent); color: #fff; }
.cm-srv-chip img, .cm-srv-chip > i:first-child { width: 44px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--galaxy-accent-rgb),0.2); color: var(--galaxy-accent); }
.cm-srv-chip span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.cm-srv-chip small { font-size: 0.64rem; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; font-weight: 800; }
.cm-srv-chip b { font-size: 0.88rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-srv-chip-seta { font-size: 0.7rem; color: #9ca3af; margin-left: 4px; }

/* Sem comentários: campo de comentar no topo e sem esticar a lista vazia */
.cm-comments.cm-sem-cmts .cm-cmt-form { margin: 4px 0 6px; }
.cm-ig:not(.sem-midia) .cm-ig-lado .cm-comments.cm-sem-cmts .cm-cmt-list { flex: 0 0 auto; }
.cm-comments.cm-sem-cmts .cm-empty-sm { padding-top: 6px; }

/* Popup: foto em pé não deixa o popup estreito — a coluna da foto tem largura
   mínima e a sobra é preenchida pela própria foto borrada (--ig-fundo) */
@media (min-width: 992px) {
    .cm-ig:not(.sem-midia) .cm-ig-midia { min-width: min(560px, calc(96vw - var(--ig-lado))); }
}
/* "Mais postagens": sempre miniaturas em 3 colunas (antes 1 miniatura gigante na coluna estreita) */
.cm-mais-grade { grid-template-columns: repeat(3, 1fr) !important; gap: 4px; }
.cm-mais-item { border-radius: 8px; }
