# monga.headlinesevent.com ## Pages - [](https://monga.headlinesevent.com/19-2/): ',link:"#",enabled:!0},{id:"ad4",position:"inline",type:"image",title:"اعلان وسط القائمة",content:"",link:"#",enabled:!0}];function Yf(){let[e,n]=P.useState("home"),[t,r]=P.useState("all"),[l,u]=P.useState("today"),[o,c]=P.useState(l0),[d,s]=P.useState(()=>l0[0]),[g,m]=P.useState("HD"),[h,_]=P.useState(1),[C,N]=P.useState(""),[I,v]=P.useState(""),[p,y]=P.useState(!1),[k,T]=P.useState(!1),[D,V]=P.useState(""),[B,M]=P.useState(!1),[U,Ue]=P.useState(new Date),[Kf,f0]=P.useState(0),a0=P.useRef(null),[Ff,st]=P.useState(""),[Xf,ro]=P.useState(!1),[c0,fr]=P.useState(!1),[d0,wl]=P.useState(!1),[Gf,lo]=P.useState(""),[Zf,Jf]=P.useState(!1),[Af,uo]=P.useState(""),[vt,oo]=P.useState(()=>{try{return localStorage.getItem("adminPassword")||"admin123"}catch{return"admin123"}}),[Kn,qf]=P.useState("matches"),[ar,Mf]=P.useState(null),[io,Cl]=P.useState(""),[yt,zl]=P.useState(""),[xf,Nl]=P.useState(""),[bf,p0]=P.useState(!1),[jf,s0]=P.useState(!1),[ea,v0]=P.useState(!1),[Pl,We]=P.useState(null),[fo,y0]=P.useState(12482),dy="220df2acb0a01c6ddc8fc5a1618b5aa9",[py,sy]=P.useState("220df2acb0a01c6ddc8fc5a1618b5aa9"),[vy,yy]=P.useState("220df2acb0a01c6ddc8fc5a1618b5aa9"),[hy,gy]=P.useState(!1),[my,ky]=P.useState(!0),[Pe,h0]=P.useState(60),[na,g0]=P.useState(()=>new Date),[m0,ta]=P.useState(0),[Sy,k0]=P.useState("connected"),[S0,E0]=P.useState("يعمل أوتوماتيكياً للأبد ♾️ - مفعل لكل الزوار بدون تسجيل دخول"),[ra,la]=P.useState(!1),[Ey,_0]=P.useState(null),[_y,wy]=P.useState(!1),[Cy,zy]=P.useState(""),[ao,Tl]=P.useState(60),[ua,oa]=P.useState([]),Ny=(a)=>{if(!a)return"****";if(a.length{let a=o.find((w)=>w.id===d.id);if(a&&JSON.stringify(a)!==JSON.stringify(d))s(a);else if(!a&&o.length)s(o[0])},[o]),P.useEffect(()=>{let a=setInterval(()=>Ue(new Date),30000);return()=>clearInterval(a)},[]),P.useEffect(()=>{if(!po)return;ia(5);let a=setInterval(()=>{ia((w)=>{if(wclearInterval(a)},[po]);let fa=(a=!1)=>{let w=new Date,R=w.toLocaleTimeString("ar-EG",{hour:"2-digit",minute:"2-digit",second:"2-digit"});c((ee)=>ee.map((nn)=>{if(nn.status!=="live")return nn;let dr=(nn.minute??0)+1;if(dr>=90)return{...nn,status:"finished",minute:90};let pr=nn.scoreA??0,ya=nn.scoreB??0;if(Math.random()>0.92)if(Math.random()>0.5)pr+=1;else ya+=1;return{...nn,minute:dr,scoreA:pr,scoreB:ya}})),s((ee)=>{if(ee.status!=="live")return ee;let ho=(ee.minute??0)+1;if(ho>=90)return{...ee,status:"finished",minute:90};let dr=ee.scoreA??0,pr=ee.scoreB??0;if(Math.random()>0.92)if(Math.random()>0.5)dr+=1;else pr+=1;return{...ee,minute:ho,scoreA:dr,scoreB:pr}}),y0((ee)=>Math.max(8000,ee+Math.floor(Math.random()*400-200))),g0(w),ta(0);let O=o.filter((ee)=>ee.status==="live").length,x=o.filter((ee)=>ee.status==="live"&&(ee.minute??0)>=89).length,cr=a?`تحديث يدوي • ${O} مباشر • ${x>0?`${x} انتهت`:"جاري"}`:`تحديث تلقائي • ${O} مباشر • ${x>0?`${x} مباراة انتهت ⏹️`:"تحديث الدقائق"}`;oa((ee)=>{return[{time:w.toISOString(),detail:cr,timeLabel:R},...ee].slice(0,5)}),_0({time:w.toISOString(),liveCount:O,note:"تحديث محلي تلقائي - يعمل للأبد ♾️",isManual:a}),k0("connected"),E0(`يعمل أوتوماتيكياً للأبد ♾️ • آخر تحديث ${R}`)},w0=async(a=!1)=>{if(a)la(!0);await new Promise((w)=>setTimeout(w,300)),fa(a),la(!1)};P.useEffect(()=>{Tl(Pe);let a=setInterval(()=>{Tl((w)=>{if(ww+1)},1000);return()=>clearInterval(a)},[Pe]),P.useEffect(()=>{Tl(Pe)},[Pe]),P.useEffect(()=>{let a=new Date;oa([{time:a.toISOString(),timeLabel:a.toLocaleTimeString("ar-EG",{hour:"2-digit",minute:"2-digit",second:"2-digit"}),detail:"بدأ النظام التلقائي ♾️ • يعمل للأبد"}])},[]);let C0=o.filter((a)=>{let w=a.dateTab===l,R=t==="all"||a.leagueId===t,O=D===""||a.teamA.name.includes(D)||a.teamB.name.includes(D)||a.leagueName.includes(D);return w&&R&&O}),aa=o.filter((a)=>{let w=a.dateTab===l,R=D===""||a.teamA.name.includes(D)||a.teamB.name.includes(D)||a.leagueName.includes(D);return w&&R}),ca=C0.reduce((a,w)=>{if(!a[w.leagueName])a[w.leagueName]=[];return a[w.leagueName].push(w),a},{}),da=aa.reduce((a,w)=>{if(!a[w.leagueName])a[w.leagueName]=[];return a[w.leagueName].push(w),a},{}),Dl=(a)=>{if(s(a),n("match"),yn.find((R)=>R.position==="overlay"&&R.enabled)&&a.status!=="finished")so(!0);window.scrollTo({top:0,behavior:"smooth"})},z0=()=>{if(C.trim())v(C.trim()),y(!1),so(!0)},pa=()=>{let a=(()=>{try{return localStorage.getItem("adminPassword")||vt}catch{return vt}})();if(Gf===a)oo(a),wl(!0),lo(""),uo(""),Jf(!1);else uo("كلمة المرور غير صحيحة")},N0=()=>{if(We(null),!io){We({type:"error",text:"أدخل كلمة المرور الحالية"});return}if(io!==vt){We({type:"error",text:"كلمة المرور الحالية غير صحيحة"});return}if(!yt||yt.length{wl(!1),Cl(""),zl(""),Nl(""),We(null),lo("")},1500)},sa=()=>{if(!confirm("هل أنت متأكد من إعادة تعيين كلمة المرور إلى admin123؟"))return;try{localStorage.setItem("adminPassword","admin123")}catch{}oo("admin123"),We({type:"success",text:"تمت إعادة التعيين إلى admin123 • سجّل الدخول مجدداً"}),setTimeout(()=>{wl(!1),Cl(""),zl(""),Nl(""),We(null)},1200)},va=()=>{re({leagueId:"ucl",dateTab:"today",teamA:{name:"",short:"",color:"#ffffff"},teamB:{name:"",short:"",color:"#000000"},time:"21:00",status:"upcoming",stadium:"",scoreA:0,scoreB:0,minute:0,streamUrl:""}),Mf(null)},P0=()=>{if(!$.teamA?.name||!$.teamB?.name){alert("أدخل اسم الفريقين");return}let a=Lf.find((R)=>R.id===$.leagueId)||Lf[0],w={id:ar||`m${Date.now()}`,leagueId:$.leagueId||"ucl",leagueName:a.full||a.name||"دوري",leagueLogo:a.icon,dateTab:$.dateTab||"today",teamA:{name:$.teamA.name,short:$.teamA.short||$.teamA.name.slice(0,3).toUpperCase(),color:$.teamA.color||"#ffffff"},teamB:{name:$.teamB.name,short:$.teamB.short||$.teamB.name.slice(0,3).toUpperCase(),color:$.teamB.color||"#000000"},time:$.time||"21:00",status:$.status||"upcoming",stadium:$.stadium||"",scoreA:Number($.scoreA)||0,scoreB:Number($.scoreB)||0,minute:Number($.minute)||0,streamUrl:$.streamUrl||""};if(ar)c((R)=>R.map((O)=>O.id===ar?w:O));else c((R)=>[w,...R]);va()},T0=(a)=>{re({leagueId:a.leagueId,dateTab:a.dateTab,teamA:{...a.teamA},teamB:{...a.teamB},time:a.time,status:a.status,stadium:a.stadium,scoreA:a.scoreA,scoreB:a.scoreB,minute:a.minute,streamUrl:a.streamUrl}),Mf(a.id),qf("matches")},D0=(a)=>{if(!confirm("حذف المباراة؟"))return;c((w)=>w.filter((R)=>R.id!==a))},R0=()=>{if(!ie.title){alert("أدخل عنوان الإعلان");return}let a={id:`ad${Date.now()}`,position:ie.position||"top",type:ie.type||"image",title:ie.title||"",content:ie.content||"",link:ie.link||"#",enabled:!0};co((w)=>[a,...w]),gt({position:"top",type:"image",title:"",content:"",link:"#",enabled:!0})},O0=I.includes("Dl(O),className:`w-full h-11 rounded-full font-black text-[13px] flex items-center justify-center gap-2 transition-all shadow-[0_4px_14px_rgba(0,0,0,0.2)] ${O.status==="live"?"bg-[var(--red-live)] text-white hover:bg-[#ff1f4d] animate-[pulseLive_2s_infinite]":O.status==="upcoming"?"bg-white text-black hover:bg-zinc-100":"bg-[var(--surface-3)] text-white border border-[var(--border)] hover:bg-[var(--surface-2)]"}`,children:O.status==="live"?f(ge,{children:[f("span",{className:"relative flex h-2 w-2",children:[i("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-white opacity-75"}),i("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-white"})]})," مشاهدة المباراة - بث مباشر الآن"]}):O.status==="upcoming"?f(ge,{children:[i(ft,{className:"w-4 h-4 fill-black"})," مشاهدة المباراة - بث مباشر"]}):f(ge,{children:[i(be,{className:"w-4 h-4"})," مشاهدة الإعادة والأهداف"]})})})]}),cr&&i("div",{className:"p-3 bg-[#0e1d36] border-y border-[var(--border)]",children:f("div",{className:"rounded-[14px] bg-gradient-to-br from-[#1a2f5a] to-[#122444] border border-[var(--border)] p-3 flex items-center gap-3",children:[i("div",{className:"w-10 h-10 rounded-full bg-[var(--yellow)] flex items-center justify-center text-black font-black",children:"%"}),f("div",{className:"flex-1",children:[i("div",{className:"font-black text-[12px]",children:"عرض الموسم - اشتراك البرو بخصم 50%"}),i("div",{className:"text-[11px] text-white/60",children:"إعلان وسط الجدول • 300x100"})]}),i("span",{className:"text-[9px] bg-black/40 px-2 py-1 rounded-full border border-white/10",children:"إعلان"})]})})]},O.id)})})]},a))})]}),f("aside",{className:"col-span-12 lg:col-span-4 space-y-4",children:[f("div",{className:"bg-[var(--surface)] border border-[var(--border)] rounded-[18px] p-4",children:[f("h3",{className:"font-black text-[14px] mb-3 flex items-center gap-2",children:[i(yl,{className:"w-4 h-4 text-[var(--red-live)]"})," مباريات مباشرة الآن"]}),f("div",{className:"space-y-2",children:[o.filter((a)=>a.status==="live").map((a)=>f("button",{onClick:()=>Dl(a),className:"w-full text-right flex items-center justify-between bg-[#0e1d36] border border-[var(--border)] rounded-[12px] p-3 hover:border-[var(--red-live)]/30 transition",children:[f("div",{className:"flex items-center gap-2",children:[i("span",{className:"w-2 h-2 bg-[var(--red-live)] rounded-full animate-pulse"}),f("span",{className:"font-bold text-[13px] truncate",children:[a.teamA.name," ",a.scoreA," - ",a.scoreB," ",a.teamB.name]})]}),f("span",{className:"text-[11px] bg-[var(--red-live)] text-white px-2 py-0.5 rounded-full font-bold",children:[a.minute,"'"]})]},a.id)),o.filter((a)=>a.status==="live").length===0&&i("div",{className:"text-[12px] text-[var(--text-muted)] text-center py-6",children:"لا يوجد بث مباشر الآن • المباريات القادمة قريباً"})]})]}),i("div",{className:"w-full h-[280px] rounded-[18px] border border-[var(--border)] overflow-hidden bg-[#0e1d36] flex flex-col",children:Rl?f(ge,{children:[f("div",{className:"flex-1 bg-gradient-to-br from-[#1e3a5a] to-[#0f1e3a] flex flex-col items-center justify-center p-5 text-center",children:[i("div",{className:"w-14 h-14 rounded-[16px] bg-white text-black font-black flex items-center justify-center text-[18px] shadow-lg mb-3",children:"AD"}),i("div",{className:"font-black text-[14px]",children:Rl.title}),i("div",{className:"text-[12px] text-white/60 mt-1 leading-relaxed",children:"تابع كل المباريات على جوالك • بث مباشر بدون تقطيع"}),i("button",{className:"mt-4 h-9 px-5 rounded-full bg-[var(--green)] text-black font-black text-[12px]",children:"تحميل التطبيق"})]}),f("div",{className:"h-8 bg-black/50 flex items-center justify-between px-3 text-[10px] text-white/50 border-t border-white/5",children:[i("span",{children:"300x250 • بانر جانبي"}),i("span",{children:"إعلان"})]})]}):f("div",{className:"flex-1 flex items-center justify-center text-[12px] text-[var(--text-dim)] gap-2",children:[i(bt,{className:"w-4 h-4"})," بانر جانبي 300x250"]})}),f("div",{className:"bg-[var(--surface)] border border-[var(--border)] rounded-[18px] p-4",children:[f("div",{className:"flex items-center justify-between mb-3",children:[f("h3",{className:"font-black text-[14px] flex items-center gap-2",children:[i(ir,{className:"w-4 h-4 text-[var(--yellow)]"})," الأخبار السريعة"]}),i("button",{className:"text-[11px] text-[var(--text-muted)] hover:text-white font-bold",children:"عرض الكل ←"})]}),i("div",{className:"space-y-3",children:u0.map((a)=>f("div",{className:"flex gap-3 p-2.5 rounded-[12px] hover:bg-[var(--surface-2)] transition border border-transparent hover:border-[var(--border)]",children:[i("div",{className:"w-1.5 self-stretch rounded-full shrink-0",style:{background:a.color}}),f("div",{className:"flex-1 min-w-0",children:[f("div",{className:"flex items-center gap-2 mb-1",children:[i("span",{className:"text-[10px] font-black px-2 py-0.5 rounded-full text-white",style:{background:a.color},children:a.tag}),i("span",{className:"text-[11px] text-[var(--text-dim)]",children:a.time})]}),i("div",{className:"text-[13px] font-bold leading-snug line-clamp-2",children:a.title})]})]},a.id))})]}),f("div",{className:"bg-[var(--bg-soft)] border border-[var(--border)] rounded-[14px] p-3 flex items-center gap-2 text-[11px] text-[var(--text-muted)]",children:[i(Ie,{className:"w-4 h-4 shrink-0"})," يتم تحديث النتائج كل 60 ثانية تلقائياً • بتوقيت مكة المكرمة GMT+3"]})]})]})]}):f(ge,{children:[f("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 mt-4 flex items-center gap-3",children:[f("button",{onClick:()=>n("home"),className:"h-10 px-4 rounded-full bg-[var(--surface)] border border-[var(--border)] text-[13px] font-black flex items-center gap-2 hover:bg-[var(--surface-2)] hover:border-[var(--border-2)] transition",children:[i(dl,{className:"w-4 h-4"})," رجوع لجدول المباريات ←"]}),f("div",{className:"h-10 px-4 rounded-full bg-[#101c34] border border-[var(--border)] flex items-center gap-2 text-[12px] font-bold",children:[i("span",{className:"text-[14px]",children:d.leagueLogo}),d.leagueName," • ",d.teamA.name," vs ",d.teamB.name," ",d.status==="live"&&f("span",{className:"bg-[var(--red-live)] text-white px-2 py-0.5 rounded-full text-[10px] animate-pulse ml-1",children:["مباشر ",d.minute,"'"]})]})]}),i("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 mt-4",children:i("div",{className:"relative overflow-hidden rounded-[20px] border border-[var(--border)] bg-gradient-to-br from-[#0f1e3a] via-[#122444] to-[#0a162c] p-[1px]",children:f("div",{className:"rounded-[19px] bg-[radial-gradient(120%_120%_at_80%_0%,rgba(0,255,156,0.15),transparent_50%),radial-gradient(100%_100%_at_0%_100%,rgba(0,198,255,0.18),transparent_60%),linear-gradient(180deg,#13264a,#0d1a32)] p-4 md:p-6",children:[f("div",{className:"flex flex-wrap items-center justify-between gap-3 mb-5",children:[f("div",{className:"flex items-center gap-3",children:[f("div",{className:"flex items-center gap-2 bg-black/40 border border-white/10 rounded-full px-3 h-8",children:[f("span",{className:"relative flex h-3 w-3",children:[i("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-500 opacity-75"}),i("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-[var(--red-live)]"})]}),i("span",{className:"text-[12px] font-black tracking-widest text-white",children:"مباشر الآن"}),f("span",{className:"text-[11px] bg-[var(--red-live)] text-white px-2 py-0.5 rounded-full font-bold",children:["LIVE • ",d.minute,"'"]})]}),f("div",{className:"hidden md:flex items-center gap-2 text-[12px] text-white/70 bg-white/5 border border-white/10 rounded-full px-3 h-8",children:[i(en,{className:"w-3.5 h-3.5"})," ",d.leagueName," • ",d.stadium]})]}),f("div",{className:"flex items-center gap-2 text-[11px] text-white/60",children:[i(lr,{className:"w-3.5 h-3.5 text-[var(--green)]"})," جودة البث تتكيف تلقائياً • بدون تقطيع"]})]}),f("div",{className:"grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] md:grid-cols-[1fr_auto_1fr] items-center gap-2 md:gap-10",children:[f("div",{className:"flex items-center gap-2 md:gap-5 justify-end min-w-0 overflow-hidden",children:[f("div",{className:"text-right min-w-0",children:[i("div",{className:"font-black text-[15px] md:text-[26px] leading-none truncate",children:d.teamA.name}),f("div",{className:"text-[11px] text-white/50 mt-1 hidden md:block",children:[d.teamA.short," • مستضيف"]})]}),i("div",{className:"w-10 h-10 md:w-16 md:h-16 rounded-[14px] md:rounded-[16px] bg-white shadow-[0_8px_24px_rgba(0,0,0,0.35)] flex items-center justify-center font-black text-black text-[14px] border border-white/20 shrink-0",style:{background:`radial-gradient(circle at 30% 30%, ${d.teamA.color}, #fff)`},children:d.teamA.short[0]})]}),f("div",{className:"flex flex-col items-center shrink-0",children:[f("div",{className:"bg-black/50 backdrop-blur border border-white/10 rounded-[14px] md:rounded-[18px] px-3 md:px-8 py-2 md:py-3 flex items-center gap-2 md:gap-6 shadow-[inset_0_1px_0_rgba(255,255,255,0.08)]",children:[i("div",{className:"text-[22px] md:text-[42px] font-black tabular-nums leading-none",children:d.scoreA??0}),f("div",{className:"flex flex-col items-center gap-1",children:[i("div",{className:"w-6 h-6 md:w-8 md:h-8 rounded-full bg-white/10 flex items-center justify-center",children:i("span",{className:"w-1.5 h-1.5 rounded-full bg-white/60 block"})}),f("div",{className:"text-[9px] md:text-[10px] font-bold px-2 py-0.5 rounded-full bg-[var(--red-live)] text-white animate-pulse",children:[d.minute,"'"]})]}),i("div",{className:"text-[22px] md:text-[42px] font-black tabular-nums leading-none",children:d.scoreB??0})]}),i("div",{className:"mt-2 text-[10px] md:text-[11px] text-white/50 font-medium",children:"الشوط الثاني"})]}),f("div",{className:"flex items-center gap-2 md:gap-5 justify-start min-w-0 overflow-hidden",children:[i("div",{className:"w-10 h-10 md:w-16 md:h-16 rounded-[14px] md:rounded-[16px] bg-white shadow-[0_8px_24px_rgba(0,0,0,0.35)] flex items-center justify-center font-black text-black text-[14px] border border-white/20 shrink-0",style:{background:`radial-gradient(circle at 30% 30%, ${d.teamB.color}, #fff)`},children:d.teamB.short[0]}),f("div",{className:"text-right min-w-0",children:[i("div",{className:"font-black text-[15px] md:text-[26px] leading-none truncate",children:d.teamB.name}),f("div",{className:"text-[11px] text-white/50 mt-1 hidden md:block",children:[d.teamB.short," • ضيف"]})]})]})]})]})})}),i("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 mt-4",children:i("div",{className:"relative w-full h-[90px] rounded-[16px] border border-[var(--border)] bg-[var(--surface)] overflow-hidden flex items-center justify-center",children:mt?f("div",{className:"w-full h-full bg-gradient-to-r from-[#122444] via-[#1a2f5a] to-[#0f1e3a] flex items-center justify-center relative",children:[f("div",{className:"absolute top-2 right-2 text-[9px] bg-black/50 border border-white/10 px-2 py-0.5 rounded-full",children:["إعلان • ",mt.title]}),f("div",{className:"flex items-center gap-4",children:[i("div",{className:"w-12 h-12 rounded-[12px] bg-white flex items-center justify-center font-black text-black",children:"AD"}),f("div",{className:"text-right",children:[i("div",{className:"font-black text-[15px]",children:mt.title}),i("div",{className:"text-[12px] text-white/60",children:"728x90 • أعلى المشغل"})]}),i("button",{className:"h-9 px-5 rounded-full bg-white text-black font-black text-[12px]",children:"اشترك الآن"})]})]}):f("div",{className:"text-[12px] text-[var(--text-dim)] flex items-center gap-2",children:[i(je,{className:"w-4 h-4"})," مساحة إعلانية علوية 728x90"]})})}),f("div",{className:"max-w-[1440px] mx-auto px-4 lg:px-6 mt-6 grid grid-cols-12 gap-5 items-start pb-10",children:[i("aside",{className:"col-span-12 lg:col-span-4 xl:col-span-3 order-2 lg:order-1",children:f("div",{className:"bg-[var(--surface)] border border-[var(--border)] rounded-[18px] overflow-hidden sticky top-[84px]",children:[f("div",{className:"p-3 border-b border-[var(--border)]",children:[f("div",{className:"flex items-center justify-between mb-3",children:[f("h2",{className:"font-black text-[15px] flex items-center gap-2",children:[i("span",{className:"w-1.5 h-6 bg-[var(--green)] rounded-full block"})," مباريات اليوم"]}),f("span",{className:"text-[11px] bg-[var(--surface-2)] border border-[var(--border)] rounded-full px-2.5 py-1 font-bold text-[var(--text-muted)]",children:[aa.length," مباراة"]})]}),i("div",{className:"grid grid-cols-3 gap-1.5 bg-[var(--bg-soft)] p-1 rounded-full border border-[var(--border)]",children:[{id:"yesterday",label:"الأمس"},{id:"today",label:"اليوم"},{id:"tomorrow",label:"الغد"}].map((a)=>i("button",{onClick:()=>u(a.id),className:`h-8 rounded-full text-[13px] font-bold transition ${l===a.id?"bg-white text-black shadow":"text-[var(--text-muted)] hover:text-white"}`,children:a.label},a.id))})]}),i("div",{className:"max-h-[820px] overflow-y-auto",children:Object.keys(da).length===0?i("div",{className:"p-8 text-center text-[var(--text-muted)] text-[13px]",children:"لا توجد مباريات"}):Object.entries(da).map(([a,w])=>f("div",{className:"border-b border-[var(--border)] last:border-0",children:[f("div",{className:"sticky top-0 z-10 bg-[var(--surface-2)]/90 backdrop-blur px-3 py-2 flex items-center gap-2 text-[11px] font-bold text-[var(--text-muted)] border-b border-[var(--border)]/50",children:[i("span",{className:"text-[14px]",children:w[0].leagueLogo})," ",a]}),i("div",{className:"divide-y divide-[var(--border)]/50",children:w.map((R)=>{let O=d.id===R.id;return f("button",{onClick:()=>Dl(R),className:`w-full text-right p-3 flex items-center gap-3 transition text-[13px] ${O?"bg-[var(--surface-3)] border-r-2 border-r-[var(--green)]":"hover:bg-[var(--surface-2)]"}`,children:[f("div",{className:"flex-1",children:[f("div",{className:"flex items-center justify-between gap-2",children:[f("div",{className:"flex items-center gap-2",children:[i("div",{className:"w-6 h-6 rounded-full bg-white flex items-center justify-center text-[10px] font-black text-black border",children:R.teamA.short[0]}),i("span",{className:`${O?"font-black text-white":"font-bold"} truncate`,children:R.teamA.name})]}),R.status!=="upcoming"&&i("span",{className:"font-black tabular-nums",children:R.scoreA})]}),f("div",{className:"flex items-center justify-between gap-2 mt-2",children:[f("div",{className:"flex items-center gap-2",children:[i("div",{className:"w-6 h-6 rounded-full bg-white flex items-center justify-center text-[10px] font-black text-black border",children:R.teamB.short[0]}),i("span",{className:`${O?"font-black text-white":"font-bold"} truncate`,children:R.teamB.name})]}),R.status!=="upcoming"&&i("span",{className:"font-black tabular-nums",children:R.scoreB})]})]}),f("div",{className:"flex flex-col items-center gap-1 shrink-0 w-[54px]",children:[R.status==="live"&&f(ge,{children:[f("span",{className:"text-[10px] font-black bg-[var(--red-live)] text-white px-2 py-0.5 rounded-full animate-pulse flex items-center gap-1",children:[i("span",{className:"w-1 h-1 bg-white rounded-full"})," مباشر"]}),f("span",{className:"text-[11px] font-mono font-bold text-[var(--red-live)]",children:[R.minute,"'"]})]}),R.status==="upcoming"&&f(ge,{children:[i("span",{className:"text-[11px] font-bold bg-[var(--surface-2)] border border-[var(--border)] rounded-full px-2 py-0.5",children:R.time}),i("span",{className:"text-[10px] text-[var(--text-dim)]",children:"لم تبدأ"})]}),R.status==="finished"&&f(ge,{children:[i("span",{className:"text-[10px] font-bold bg-white/10 rounded-full px-2 py-0.5",children:"انتهت"}),i("span",{className:"text-[10px] text-[var(--text-dim)]",children:R.time})]})]})]},R.id)})})]},a))}),i("div",{className:"p-3 border-t border-[var(--border)] bg-[var(--bg-soft)]",children:i("div",{className:"w-full h-[250px] rounded-[14px] border border-[var(--border)] overflow-hidden bg-[#0e1d36] relative flex flex-col",children:Rl?f(ge,{children:[f("div",{className:"flex-1 bg-gradient-to-br from-[#1e3a5a] to-[#0f1e3a] flex flex-col items-center justify-center p-4 text-center",children:[i("div",{className:"w-14 h-14 rounded-[16px] bg-white text-black font-black flex items-center justify-center text-[18px] shadow-lg mb-3",children:"AD"}),i("div",{className:"font-black text-[14px]",children:Rl.title}),i("div",{className:"text-[12px] text-white/60 mt-1 leading-relaxed",children:"تابع كل المباريات على جوالك • بث مباشر"}),i("button",{className:"mt-4 h-9 px-5 rounded-full bg-[var(--green)] text-black font-black text-[12px]",children:"تحميل التطبيق"})]}),f("div",{className:"h-7 bg-black/50 flex items-center justify-between px-3 text-[10px] text-white/50 border-t border-white/5",children:[i("span",{children:"300x250 • بانر جانبي"}),i("span",{children:"إعلان"})]})]}):f("div",{className:"flex-1 flex items-center justify-center text-[12px] text-[var(--text-dim)] gap-2",children:[i(bt,{className:"w-4 h-4"})," بانر جانبي 300x250"]})})})]})}),f("main",{className:"col-span-12 lg:col-span-8 xl:col-span-9 order-1 lg:order-2 space-y-4",ref:a0,children:[f("div",{className:"bg-[#050a14] border border-[var(--border)] rounded-[18px] overflow-hidden shadow-[0_20px_60px_rgba(0,0,0,0.5)]",children:[f("div",{className:"h-[52px] px-4 flex items-center justify-between bg-[#0b162c] border-b border-[var(--border)]",children:[i("div",{className:"flex items-center gap-3",children:f("div",{className:"flex items-center gap-2 text-[12px] font-bold",children:[i("div",{className:"w-8 h-8 rounded-full bg-white/10 flex items-center justify-center",children:i(dt,{className:"w-4 h-4"})}),f("div",{className:"leading-tight",children:[f("div",{className:"flex items-center gap-2",children:[d.teamA.name," vs ",d.teamB.name," ",i(sl,{className:"w-3 h-3 text-[var(--text-dim)]"})]}),f("div",{className:"text-[10px] text-[var(--text-muted)] font-medium",children:[d.leagueName," • ",d.stadium]})]})]})}),f("div",{className:"flex items-center gap-2",children:[i("div",{className:"hidden md:flex items-center gap-1 bg-black/40 border border-white/10 rounded-full p-1",children:["FHD","HD","SD"].map((a)=>i("button",{onClick:()=>m(a),className:`px-3 h-6 rounded-full text-[11px] font-black transition ${g===a?"bg-white text-black":"text-white/60 hover:text-white"}`,children:a},a))}),i("div",{className:"hidden md:flex items-center gap-1 bg-black/40 border border-white/10 rounded-full p-1",children:[1,2,3].map((a)=>f("button",{onClick:()=>_(a),className:`px-2.5 h-6 rounded-full text-[11px] font-bold transition ${h===a?"bg-[var(--green)] text-black":"text-white/60 hover:text-white"}`,children:["S",a]},a))}),f("button",{onClick:()=>y((a)=>!a),className:"h-8 px-3 rounded-full bg-[var(--surface-2)] border border-[var(--border)] text-[12px] font-bold flex items-center gap-1.5 hover:bg-[var(--surface-3)] transition",children:[i(at,{className:"w-3.5 h-3.5"})," تعديل البث"]})]})]}),p&&i("div",{className:"p-4 bg-[#0e1d36] border-b border-[var(--border)]",children:f("div",{className:"flex items-start gap-3",children:[i("div",{className:"w-9 h-9 rounded-full bg-[var(--green-soft)] border border-[var(--green)]/30 flex items-center justify-center shrink-0",children:i(Ie,{className:"w-5 h-5 text-[var(--green)]"})}),f("div",{className:"flex-1",children:[i("h4",{className:"font-black text-[13px]",children:"أين أضع رابط البث الخاص بي؟"}),f("p",{className:"text-[12px] text-[var(--text-muted)] mt-1 leading-relaxed",children:["هذا المشغل هو ",i("b",{className:"text-white",children:"واجهة عرض فقط"}),". [comment]: # (Generated by Hostinger Tools Plugin)