function render(list) { results.innerHTML = ""; if (!list.length) { noResults.style.display = "block"; return; } noResults.style.display = "none"; list.forEach(d => { const div = document.createElement("div"); div.className = "card"; div.innerHTML = `
${d.contenido_raw}
`;
results.appendChild(div);
});
}