/* NAONDE — "Sugestões para você" no NADE Play (prompt 29) */
.ndg { scroll-snap-align: center; scroll-snap-stop: always; display: flex; justify-content: center; padding: 28px 16px; box-sizing: border-box; color: var(--t, #f5f5f7); }
.ndg-in { width: min(760px, 100%); opacity: 0; transform: translateY(10px); transition: opacity .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1); }
.ndg.on .ndg-in { opacity: 1; transform: none; }
.ndg-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 4px 14px; border-top: 1px solid var(--l, rgba(255, 255, 255, .12)); padding-top: 18px; }
.ndg-cab h2 { margin: 0; font: 700 19px/1.2 var(--nd-fonte, system-ui, sans-serif); letter-spacing: -.01em; color: inherit; }
.ndg-cab p { margin: 4px 0 0; font-size: 13.5px; color: var(--t2, #a1a1a6); }
.ndg-setas { display: flex; gap: 8px; }
.ndg .ndg-setas button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--l, rgba(255, 255, 255, .14)); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; transition: background-color .15s, opacity .15s; }
.ndg .ndg-setas button:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.ndg .ndg-setas button:disabled { opacity: .3; cursor: default; }
.ndg-trilho { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 4px; padding: 2px 4px 8px; scrollbar-width: none; touch-action: pan-x pan-y; outline: none; }
.ndg-trilho::-webkit-scrollbar { display: none; }
.ndg-trilho:focus-visible { box-shadow: 0 0 0 2px var(--az, #0a84ff); border-radius: 14px; }
/* 4 cartões inteiros + um pedaço do próximo, para mostrar que tem mais */
.ndg-c { position: relative; flex: 0 0 calc((100% - 3 * 12px) / 4.25); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px 14px; box-sizing: border-box;
  border-radius: 16px; background: var(--f2, #1c1c1e); border: 1px solid var(--l, rgba(255, 255, 255, .08)); transition: opacity .2s ease, transform .2s ease, flex-basis .22s ease, padding .22s ease, margin .22s ease; }
.ndg-c.esq { height: 212px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: ndg-esq 1.2s linear infinite; }
@keyframes ndg-esq { to { background-position: -200% 0; } }
.ndg-c.sai { opacity: 0; transform: translateY(-8px) scale(.96); }
.ndg .ndg-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--t2, #a1a1a6); display: grid; place-items: center; cursor: pointer; }
.ndg .ndg-x:hover { background: rgba(255, 255, 255, .1); color: var(--t, #f5f5f7); }
.ndg .ndg-x::before { content: ""; position: absolute; inset: -7px; } /* área de toque de 44px no celular */
.ndg .ndg-perfil { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: center; }
.ndg-av { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--c, #636366); color: #fff; font: 700 28px/1 var(--nd-fonte, system-ui, sans-serif); margin-bottom: 8px; flex: none; }
.ndg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ndg .ndg-perfil b { display: flex; align-items: center; justify-content: center; gap: 3px; max-width: 100%; font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.ndg .ndg-perfil b svg { flex: none; }
.ndg-nome, .ndg .ndg-perfil small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndg .ndg-perfil b { text-overflow: ellipsis; }
.ndg-nome { font-size: 13px; color: var(--t2, #a1a1a6); }
.ndg .ndg-perfil small { font-size: 11.5px; color: var(--t2, #8e8e93); margin-top: 2px; min-height: 14px; }
.ndg .ndg-perfil:focus-visible { outline: 2px solid var(--az, #0a84ff); outline-offset: 4px; border-radius: 12px; }
/* Seguir: fundo branco, texto preto */
.ndg .ndg-seguir { width: 100%; height: 34px; margin-top: 2px; border: 0; border-radius: 10px; background: #fff; color: #000; font: 600 14px/1 var(--nd-fonte, system-ui, sans-serif); cursor: pointer; transition: transform .12s ease, opacity .15s; }
/* no tema claro o cartão é cinza-claro: um contorno fino mantém o botão branco visível */
.ndg .ndg-seguir { box-shadow: 0 0 0 1px rgba(0, 0, 0, .14) inset; }
html.nd-escuro .ndg .ndg-seguir { box-shadow: none; }
.ndg .ndg-seguir:hover:not(:disabled) { opacity: .9; }
.ndg .ndg-seguir:active:not(:disabled) { transform: scale(.97); }
.ndg .ndg-seguir:focus-visible { outline: 2px solid var(--az, #0a84ff); outline-offset: 2px; }
.ndg .ndg-seguir.on { background: rgba(255, 255, 255, .14); color: var(--t, #f5f5f7); }
.ndg .ndg-seguir:disabled { cursor: default; }
@media (max-width: 760px) {
  .ndg { padding: 22px 0; }
  .ndg-cab { padding: 16px 16px 12px; }
  .ndg-setas { display: none; }
  .ndg-trilho { padding: 2px 16px 8px; scroll-padding: 0 16px; gap: 10px; }
  .ndg-c { flex-basis: 42%; }
}
@media (min-width: 761px) and (max-width: 900px) { .ndg-c { flex-basis: calc((100% - 2 * 12px) / 3.3); } }
@media (prefers-reduced-motion: reduce) { .ndg-in, .ndg-c, .ndg .ndg-seguir { transition: none; } .ndg-c.esq { animation: none; } }
