:root {
  --bg: #0b0b0e;
  --bg-elevado: #17171c;
  --borda: #26262e;
  --texto: #f5f5f7;
  --texto-suave: #9a9aa5;
  --destaque: #e50914;
  --raio: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- header ---- */
.topo {
  padding: 24px 4vw 8px;
}
.marca { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nome { font-weight: 800; letter-spacing: .5px; font-size: 1.15rem; color: var(--destaque); }

.carregando { padding: 60px 4vw; color: var(--texto-suave); }

/* ---- caixa do ícone: sempre contido, nunca esticado ---- */
.icone-caixa {
  flex-shrink: 0;
  border-radius: 20%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.icone-caixa img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.icone-caixa video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- grid único, tudo lado a lado ---- */
.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  padding: 16px 4vw 60px;
  max-width: 1400px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  background: var(--bg-elevado);
  padding: 22px 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #3a3a45;
  box-shadow: 0 16px 32px -16px rgba(0,0,0,.7);
}
.card .icone-caixa { width: 72px; height: 72px; }
.card-tag {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--destaque);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}
.card-nome { font-weight: 700; font-size: .95rem; margin: 0; }
.card-copy {
  margin: 0;
  font-size: .78rem;
  line-height: 1.35;
  color: var(--texto-suave);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vazio { text-align: center; color: var(--texto-suave); padding: 80px 4vw 60px; }

.rodape { text-align: center; padding: 30px; }
.rodape a { color: var(--texto-suave); font-size: .75rem; text-decoration: none; opacity: .5; }
.rodape a:hover { opacity: 1; }

@media (max-width: 520px) {
  .grade { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}
