const grid = document.getElementById('filmGrid'); if (filtered.length === 0) grid.innerHTML = `<div class="no-results">🎞️ No movies match "$currentSearch" in this category. Try another filter! 🎬</div>`; return;
// attach filter listeners function initFilters() const btns = document.querySelectorAll('.filter-btn'); btns.forEach(btn => btn.addEventListener('click', (e) => btns.forEach(b => b.classList.remove('active')); btn.classList.add('active'); currentFilter = btn.getAttribute('data-filter'); render(); ); ); pawan kalyan filmography
// initial load function init() updateStats(); render(); initFilters(); attachCardEvents(); const grid = document
.film-title font-size: 1.45rem; font-weight: 700; letter-spacing: -0.3px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; const grid = document.getElementById('filmGrid')
.role-badge background: #2a2e44; padding: 0.2rem 0.7rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;