:root {
  --feed-accent: #12e06c;
  --feed-accent-soft: rgba(18, 224, 108, .1);
  --feed-page: #050b08;
  --feed-header: #07110c;
  --feed-surface: #0b1510;
  --feed-surface-soft: #101c15;
  --feed-border: #22342a;
  --feed-text: #f4faf6;
  --feed-muted: #9eb0a4;
  --feed-danger: #ff6178;
}

.body-feed {
  min-height: 100vh;
  color: var(--feed-text);
  background:
    radial-gradient(circle at 44% 0%, rgba(18, 224, 108, .08), transparent 31rem),
    var(--feed-page);
}

.feed-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.body-feed svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed-main {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
  justify-content: center;
  align-items: start;
  gap: 32px;
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 26px 0 96px;
}

.feed-coluna { min-width: 0; }

.feed-cabecalho-pagina {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.feed-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--feed-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.feed-cabecalho-pagina h1 {
  margin: 0;
  color: var(--feed-text);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.feed-cabecalho-pagina p {
  margin: 7px 0 0;
  color: var(--feed-muted);
  font-size: 13px;
}

.feed-destaques {
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px 12px;
  overflow-x: auto;
  background: var(--feed-surface);
  border: 1px solid var(--feed-border);
  border-radius: 18px;
  scrollbar-width: none;
}

.feed-destaques::-webkit-scrollbar { display: none; }

.feed-destaque {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 78px;
  color: var(--feed-muted);
  font-size: 11px;
  text-align: center;
  text-decoration: none;
}

.feed-destaque:hover { color: var(--feed-text); }

.feed-destaque-circulo {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: var(--feed-text);
  background:
    linear-gradient(var(--feed-surface-soft), var(--feed-surface-soft)) padding-box,
    linear-gradient(135deg, #35ffa0, var(--feed-accent) 45%, #0a5a2c) border-box;
  border: 2.5px solid transparent;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--feed-surface);
  font-size: 10px;
  font-weight: 900;
  transition: transform .15s ease;
}

.feed-destaque:hover .feed-destaque-circulo { transform: scale(1.05); }

.feed-destaque-circulo.feed-destaque-novo {
  color: var(--feed-accent);
  background: var(--feed-surface-soft);
  border: 2px dashed #3a5042;
  box-shadow: none;
}

.feed-destaque:hover .feed-destaque-novo { border-color: var(--feed-accent); }

.feed-compositor-compacto {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--feed-surface);
  border: 1px solid var(--feed-border);
  border-radius: 18px;
}

.feed-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: #031108;
  background: linear-gradient(145deg, var(--feed-accent), #087838);
  border: 2px solid var(--feed-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--feed-border);
  font-size: 12px;
  font-weight: 900;
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-compositor-chamada {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  overflow: hidden;
  color: var(--feed-muted);
  background: var(--feed-surface-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
}

.feed-compositor-chamada:hover { color: var(--feed-text); border-color: var(--feed-border); }

.feed-compositor-atalhos {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.feed-compositor-atalhos button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--feed-muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  cursor: pointer;
}

.feed-compositor-atalhos button:hover { color: var(--feed-text); background: var(--feed-surface-soft); }
.feed-compositor-atalhos svg { width: 18px; height: 18px; }

.feed-compositor-ajuda {
  grid-column: 2;
  min-height: 16px;
  margin: -2px 2px 0;
  color: #788a7e;
  font-size: 10px;
}

.feed-filtros {
  display: flex;
  gap: 7px;
  margin: 20px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-filtros::-webkit-scrollbar { display: none; }

.feed-filtros button {
  min-height: 34px;
  padding: 7px 12px;
  color: var(--feed-muted);
  background: transparent;
  border: 1px solid var(--feed-border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.feed-filtros button:hover { color: var(--feed-text); border-color: #486052; }
.feed-filtros button.ativo { color: #031108; background: var(--feed-accent); border-color: var(--feed-accent); }

.feed-resumo {
  min-height: 18px;
  margin: 0 0 10px;
  color: #7f9185;
  font-size: 10px;
}

.feed-lista { display: grid; gap: 16px; }

.feed-post {
  overflow: hidden;
  background: var(--feed-surface);
  border: 1px solid var(--feed-border);
  border-radius: 18px;
}

.feed-post-topo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
}

.feed-post-avatar-link {
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
}

.feed-post-avatar-link:focus-visible,
.feed-post-autor-link:focus-visible,
.feed-comentario-avatar-link:focus-visible,
.feed-comentario-autor:focus-visible {
  outline: 2px solid var(--feed-accent);
  outline-offset: 3px;
}

.feed-post-autor {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.feed-post-autor a,
.feed-post-autor span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-post-autor a {
  color: var(--feed-text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.feed-post-autor a:hover { color: var(--feed-accent); }
.feed-post-autor span { color: var(--feed-muted); font-size: 10px; }

.feed-post-categoria {
  padding: 5px 8px;
  color: #a5f3c4;
  background: var(--feed-accent-soft);
  border: 1px solid rgba(18, 224, 108, .18);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feed-icone-botao,
.feed-post-acao {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--feed-text);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.feed-icone-botao:hover,
.feed-post-acao:hover { background: var(--feed-surface-soft); }
.feed-post-excluir { color: var(--feed-danger); }

.feed-post-midia {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  overflow: hidden;
  background: #020704;
}

.feed-post-midia img,
.feed-post-midia video {
  display: block;
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  background: #020704;
  border: 0;
  outline: none;
}

.feed-video-alternar {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* box-sizing é border-box no projeto, então a medida é o círculo inteiro e o
   padding define o tamanho do triângulo dentro dele. Precisa da mesma força de
   ".body-feed .feed-video-icone" para não herdar os 18px do ícone pequeno. */
.body-feed .feed-video-icone-central {
  width: 62px;
  height: 62px;
  padding: 16px;
  color: #fff;
  background: rgba(0, 0, 0, .42);
  border-radius: 50%;
  transition: opacity .18s ease;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .45));
}

.feed-video-alternar.tocando .feed-video-icone-central { opacity: 0; }
.feed-video-alternar.tocando:hover .feed-video-icone-central,
.feed-video-alternar.tocando:focus-visible .feed-video-icone-central { opacity: 1; }

.feed-video-mudo {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* Precisa de dois níveis de classe para vencer ".body-feed svg { fill: none }",
   senão o triângulo do play sai vazado em vez de sólido. */
.body-feed .feed-video-icone {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

/* Ondas do volume e X do mudo continuam só traço: preenchê-las vira um borrão.
   Como CSS vence atributo de apresentação, o fill="none" precisa ser repetido aqui. */
.body-feed .feed-video-icone [fill="none"] { fill: none; }

.feed-post-acoes {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 8px 10px 0;
}

.feed-post-acoes svg { width: 24px; height: 24px; transition: transform .15s ease; }

.feed-post-acao.salvo { margin-left: auto; }
.feed-post-acao.curtido { color: var(--feed-danger); background: rgba(255, 97, 120, .08); }
.feed-post-acao.salvo.ativo { color: var(--feed-accent); background: var(--feed-accent-soft); }
.feed-post-acao.curtido svg { fill: currentColor; }
.feed-post-acao.salvo.ativo svg { fill: currentColor; }
.feed-post-acao.curtido svg,
.feed-post-acao.salvo.ativo svg { animation: feedAcaoPop .34s ease; }

@keyframes feedAcaoPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.32); }
  60% { transform: scale(.92); }
  100% { transform: scale(1); }
}

.feed-coracao-flutuante {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 96px;
  height: 96px;
  color: #fff;
  fill: #fff;
  stroke: #fff;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .5));
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.4);
  animation: feedCoracaoFlutuante .8s cubic-bezier(.2, 1.4, .4, 1) forwards;
}

@keyframes feedCoracaoFlutuante {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  32% { transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.feed-post-conteudo { padding: 0 16px 16px; }

.feed-post-contagem {
  margin: 3px 0 8px;
  color: var(--feed-text);
  font-size: 11px;
  font-weight: 900;
}

.feed-post-texto {
  margin: 0;
  color: #d4ddd6;
  font-size: 13px;
  line-height: 1.58;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.feed-post-texto .feed-post-autor-link {
  margin-right: 5px;
  color: var(--feed-text);
  font-weight: 800;
  text-decoration: none;
}

.feed-post-texto .feed-post-autor-link:hover { color: var(--feed-accent); }

.feed-post-texto-clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-post-texto-mais {
  margin-top: 2px;
  padding: 0;
  color: var(--feed-muted);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.feed-post-texto-mais:hover { color: var(--feed-text); }

.feed-comentarios-abrir {
  margin-top: 9px;
  padding: 0;
  color: var(--feed-muted);
  background: transparent;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}

.feed-comentarios-abrir:hover { color: var(--feed-text); }

.feed-comentarios {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--feed-border);
}

.feed-comentarios[hidden] { display: none; }

.feed-comentarios-lista {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.feed-comentarios-mais {
  min-height: 40px;
  margin: 0 0 12px;
  padding: 8px 12px;
  color: var(--feed-muted);
  background: transparent;
  border: 1px solid var(--feed-border);
  border-radius: 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.feed-comentarios-mais:hover,
.feed-comentarios-mais:focus-visible {
  color: var(--feed-text);
  border-color: rgba(18, 224, 108, .45);
}

.feed-comentarios-mais[hidden] { display: none; }

.feed-comentario {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: #cbd6ce;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.feed-comentario p { margin: 1px 0 0; }
.feed-comentario-avatar-link { flex: 0 0 auto; border-radius: 50%; }
.feed-comentario-avatar { width: 28px; height: 28px; font-size: 9px; }
.feed-comentario-autor {
  margin-right: 5px;
  color: var(--feed-text);
  font-weight: 800;
  text-decoration: none;
}
.feed-comentario-autor:hover { color: var(--feed-accent); }
.feed-comentario-vazio { color: var(--feed-muted); font-style: italic; }

.feed-comentario-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.feed-comentario-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--feed-text);
  background: var(--feed-surface-soft);
  border: 1px solid var(--feed-border);
  border-radius: 10px;
  font: inherit;
  font-size: 11px;
}

.feed-comentario-form button {
  min-height: 42px;
  padding: 0 14px;
  color: #031108;
  background: var(--feed-accent);
  border: 0;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.feed-comentario-form button:disabled { cursor: wait; opacity: .55; }

.feed-vazio {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 24px;
  color: var(--feed-muted);
  background: rgba(11, 21, 16, .72);
  border: 1px dashed var(--feed-border);
  border-radius: 18px;
  text-align: center;
  line-height: 1.6;
}

.feed-vazio strong { color: var(--feed-text); }

.feed-vazio button {
  min-height: 38px;
  padding: 0 14px;
  color: #031108;
  background: var(--feed-accent);
  border: 0;
  border-radius: 9px;
  font-weight: 900;
  cursor: pointer;
}

.feed-post-skeleton { padding: 17px; }
.feed-post-skeleton span {
  display: block;
  height: 12px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #122019 20%, #1b2c22 48%, #122019 76%);
  background-size: 220% 100%;
  border-radius: 999px;
  animation: feedSkeleton 1.4s ease infinite;
}
.feed-post-skeleton span:first-child { width: 38%; }
.feed-post-skeleton span:nth-child(2) { width: 92%; }
.feed-post-skeleton span:last-child { width: 70%; }

@keyframes feedSkeleton { to { background-position: -220% 0; } }

.feed-lateral {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 15px;
}

.feed-lateral-perfil,
.feed-lateral-card {
  padding: 18px;
  background: var(--feed-surface);
  border: 1px solid var(--feed-border);
  border-radius: 18px;
}

.feed-lateral-perfil {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.feed-lateral-perfil div:nth-child(2) { min-width: 0; }
.feed-lateral-perfil strong,
.feed-lateral-perfil span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-lateral-perfil strong { color: var(--feed-text); font-size: 11px; }
.feed-lateral-perfil span { margin-top: 3px; color: var(--feed-muted); font-size: 9px; }
.feed-lateral-perfil > a { color: var(--feed-accent); font-size: 10px; font-weight: 900; text-decoration: none; }

.feed-lateral-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.feed-lateral-card h2 { margin: 0; color: var(--feed-text); font-size: 14px; }
.feed-lateral-titulo > a,
.feed-regras > a { color: var(--feed-accent); font-size: 9px; font-weight: 900; text-decoration: none; }

.feed-sugestao {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  color: var(--feed-text);
  text-decoration: none;
}

.feed-sugestao + .feed-sugestao { border-top: 1px solid var(--feed-border); }
.feed-sugestao:hover strong { color: var(--feed-accent); }

.feed-sugestao-icone {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--feed-accent);
  background: var(--feed-accent-soft);
  border-radius: 50%;
}

.feed-sugestao strong,
.feed-sugestao small { display: block; }
.feed-sugestao strong { font-size: 10px; }
.feed-sugestao small { margin-top: 3px; color: var(--feed-muted); font-size: 9px; }

.feed-regras .feed-kicker { margin-bottom: 8px; }
.feed-regras p { margin: 9px 0 14px; color: var(--feed-muted); font-size: 10px; line-height: 1.65; }

.feed-mobile-nav { display: none; }

.feed-publicador-dialog {
  width: min(570px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 36px));
  padding: 0;
  overflow: auto;
  color: var(--feed-text);
  background: var(--feed-surface);
  border: 1px solid var(--feed-border);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .58);
}

.feed-publicador-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.feed-publicador-dialog[open] { animation: feedDialogEntrada .18s ease-out; }

@keyframes feedDialogEntrada {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
}

.feed-dialog-cabecalho {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--feed-border);
}

.feed-dialog-cabecalho h2 { margin: 0; font-size: 15px; text-align: center; }
.feed-dialog-conteudo { padding: 18px; }

.feed-dialog-autor {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.feed-dialog-autor strong,
.feed-dialog-autor span { display: block; }
.feed-dialog-autor strong { font-size: 11px; }
.feed-dialog-autor span { margin-top: 3px; color: var(--feed-muted); font-size: 9px; }

.feed-tipos-publicacao {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.feed-tipos-publicacao button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--feed-muted);
  background: var(--feed-surface-soft);
  border: 1px solid var(--feed-border);
  border-radius: 10px;
  font-size: 10px;
  cursor: pointer;
}

.feed-tipos-publicacao button.ativo {
  color: var(--feed-accent);
  background: var(--feed-accent-soft);
  border-color: var(--feed-accent);
}

#feed-texto {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 13px;
  resize: vertical;
  color: var(--feed-text);
  background: var(--feed-surface-soft);
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}

#feed-texto::placeholder { color: #73857a; }

.feed-midia-area { margin-top: 12px; }
.feed-midia-area[hidden] { display: none; }

.feed-escolher-arquivo {
  display: grid;
  width: 100%;
  min-height: 160px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  color: var(--feed-muted);
  background: var(--feed-surface-soft);
  border: 1px dashed #3a5042;
  border-radius: 12px;
  cursor: pointer;
}

.feed-escolher-arquivo:hover { color: var(--feed-text); border-color: var(--feed-accent); }
.feed-escolher-arquivo svg { width: 30px; height: 30px; color: var(--feed-accent); }
.feed-escolher-arquivo strong { color: var(--feed-text); font-size: 12px; }
.feed-escolher-arquivo span { font-size: 10px; }

.feed-midia-preview {
  position: relative;
  overflow: hidden;
  background: #020704;
  border: 1px solid var(--feed-border);
  border-radius: 12px;
}

.feed-midia-preview[hidden] { display: none; }
.feed-midia-preview img,
.feed-midia-preview video { display: block; width: 100%; max-height: 330px; object-fit: contain; }

.feed-midia-preview img[hidden],
.feed-midia-preview video[hidden] { display: none; }

.feed-remover-arquivo {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 34px;
  padding: 0 11px;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: 9px;
  cursor: pointer;
}

.feed-alt-container { display: grid; gap: 6px; margin-top: 11px; color: var(--feed-muted); font-size: 9px; }
.feed-alt-container[hidden] { display: none; }
.feed-alt-container input {
  min-height: 40px;
  padding: 0 11px;
  color: var(--feed-text);
  background: var(--feed-surface-soft);
  border: 1px solid var(--feed-border);
  border-radius: 9px;
  font: inherit;
  font-size: 10px;
}

.feed-dialog-opcoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

#feed-categoria {
  min-height: 38px;
  padding: 0 30px 0 10px;
  color: #c4d0c8;
  background: var(--feed-surface-soft);
  border: 1px solid var(--feed-border);
  border-radius: 9px;
  font: inherit;
  font-size: 10px;
}

#feed-contador { color: var(--feed-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.feed-status { min-height: 18px; margin: 9px 0; color: var(--feed-muted); font-size: 10px; }
.feed-status.erro { color: #ff9eac; }
.feed-status.sucesso { color: #8df1b6; }

.feed-publicar {
  width: 100%;
  min-height: 44px;
  color: #031108;
  background: var(--feed-accent);
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.feed-publicar:hover:not(:disabled) { filter: brightness(1.08); }
.feed-publicar:disabled { cursor: wait; opacity: .55; }

.feed-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 2000;
  max-width: min(440px, calc(100% - 28px));
  padding: 11px 15px;
  color: #031108;
  background: var(--feed-accent);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .42);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
}

.feed-toast[hidden] { display: none; }

.body-feed button:focus-visible,
.body-feed a:focus-visible,
.body-feed input:focus-visible,
.body-feed textarea:focus-visible,
.body-feed select:focus-visible {
  outline: 3px solid #f4fbf6;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .feed-main { grid-template-columns: minmax(0, 760px); }
  .feed-lateral { display: none; }
}

@media (max-width: 760px) {
  .body-feed { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .body-feed .main-header { margin-bottom: 0; }

  .feed-main {
    display: block;
    width: 100%;
    padding: 18px 0 30px;
  }

  .feed-cabecalho-pagina { padding: 0 16px; }
  .feed-cabecalho-pagina p { font-size: 11px; }

  .feed-destaques,
  .feed-compositor-compacto,
  .feed-post {
    border-inline: 0;
    border-radius: 0;
  }

  .feed-destaques {
    grid-template-columns: repeat(5, 78px);
    justify-content: start;
    padding-inline: 12px;
  }

  .feed-filtros,
  .feed-resumo { margin-inline: 14px; }
  .feed-lista { gap: 12px; }
  .feed-post-midia { min-height: 260px; }
  .feed-post-midia img,
  .feed-post-midia video { max-height: min(760px, 76svh); }

  .feed-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(7, 17, 12, .97);
    border-top: 1px solid var(--feed-border);
    backdrop-filter: blur(14px);
  }

  .feed-mobile-nav a {
    display: grid;
    min-width: 0;
    min-height: 50px;
    place-items: center;
    align-content: end;
    gap: 4px;
    color: var(--feed-muted);
    font-size: 8px;
    text-decoration: none;
  }

  .feed-mobile-nav a.ativo { color: var(--feed-accent); font-weight: 900; }
  .feed-mobile-nav svg { width: 19px; height: 19px; }

  .feed-mobile-centro {
    display: grid;
    width: 46px;
    height: 46px;
    margin-top: -22px;
    place-items: center;
    color: #031108;
    background: var(--feed-accent);
    border: 4px solid var(--feed-header);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(18, 224, 108, .22);
  }

  .feed-publicador-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 22px);
    margin: auto 0 0;
    border-inline: 0;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
  }

  .feed-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* Alvos de toque confortáveis em celular e tablet. As duas condições se somam de
   propósito: aparelhos de toque entram por "pointer: coarse" e telas estreitas
   entram pela largura, mesmo quando o navegador não informa o tipo de ponteiro. */
@media (pointer: coarse), (max-width: 1024px) {
  .feed-filtros button { min-height: 40px; padding-inline: 14px; }
  .feed-video-mudo { right: 10px; bottom: 10px; width: 40px; height: 40px; }
  .body-feed .feed-video-icone-central { width: 66px; height: 66px; padding: 18px; }
  .feed-post-texto-mais { min-height: 34px; padding-block: 6px; }
  .feed-vazio button { min-height: 44px; }
  .feed-comentarios-abrir { min-height: 34px; }
}

@media (max-width: 430px) {
  .feed-cabecalho-pagina p { display: none; }
  .feed-compositor-atalhos button span { display: none; }
  .feed-post-categoria { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .feed-post-topo { padding-inline: 13px; }
  .feed-post-conteudo { padding-inline: 13px; }
  .feed-comentario-form { grid-template-columns: 1fr; }
  .feed-comentario-form button { width: 100%; }
  .feed-mobile-nav a > span:last-child { display: none; }
  .feed-tipos-publicacao button { gap: 4px; }
}

@media (max-width: 350px) {
  .feed-post-categoria { display: none; }
  .feed-tipos-publicacao button svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .feed-publicador-dialog[open],
  .feed-post-skeleton span,
  .feed-coracao-flutuante,
  .feed-post-acao.curtido svg,
  .feed-post-acao.salvo.ativo svg { animation: none; }
}
