function render(){ let l=document.getElementById('list'); if(!Array.isArray(matchesList)) matchesList=[]; let f=[...matchesList]; function getStatus(m){ let s = m.status; if(!s) return 'NS'; if(typeof s === 'string') return s; if(typeof s === 'object') return s.short || s.type || s.name || 'NS'; return String(s); } if(curF=="LIVE") f=f.filter(m=>{let s=getStatus(m).toUpperCase(); return s.includes('LIVE')||['1H','2H','HT','ET','LIVE'].includes(s);}); if(curF=="FINISHED") f=f.filter(m=>{let s=getStatus(m).toUpperCase(); return s.includes('FIN')||['FT','AET','PEN','FINISHED'].includes(s);}); if(curF=="UPCOMING") f=f.filter(m=>{let s=getStatus(m).toUpperCase(); return s==''||['NS','TBD','PST','CANC','SCHEDULED','NOT STARTED'].includes(s);}); if(!f.length){l.innerHTML='