/* الأهلي 4U — كوّن تشكيلك */
.a4u{--bg:#0d1117;--bg2:#161b22;--bg3:#1c2230;--bd:#2a3442;--tx:#e9edf5;--mu:#96a2b8;--red:#e30613;--grn:#2fa84f;
 font-family:'Cairo',system-ui,Tahoma,sans-serif;color:var(--tx);direction:rtl;max-width:1500px;margin:0 auto;padding:12px}
.a4u *{box-sizing:border-box}
.a4u-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:14px;align-items:start}
.a4u-box{background:var(--bg2);border:1px solid var(--bd);border-radius:14px;padding:14px;margin-bottom:14px}
.a4u-h{font-size:14px;font-weight:800;margin-bottom:10px}

/* المباراة */
.a4u-vs{display:flex;align-items:center;justify-content:space-between;gap:8px}
.a4u-team{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;font-size:12px;font-weight:700;text-align:center}
.a4u-team img{width:46px;height:46px;object-fit:contain}
.a4u-logo-ph{width:46px;height:46px;border-radius:50%;background:var(--bg3);display:block}
.a4u-vs-x{font-size:13px;font-weight:900;color:var(--mu)}
.a4u-when{text-align:center;font-size:11px;color:var(--mu);margin:10px 0}
.a4u-count{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0}
.a4u-cell{background:var(--bg3);border:1px solid var(--bd);border-radius:10px;padding:8px 2px;text-align:center}
.a4u-cell b{display:block;font-size:18px;font-weight:900}
.a4u-cell span{font-size:10px;color:var(--mu)}
.a4u-started{background:var(--bg3);border-radius:10px;padding:10px;text-align:center;font-weight:800;font-size:13px}
.a4u-state{background:var(--red);color:#fff;border-radius:10px;padding:9px;text-align:center;font-size:12px;font-weight:800}

/* الخطط */
.a4u-plans{display:flex;flex-wrap:wrap;gap:6px}
.a4u-chip{background:var(--bg3);border:1px solid var(--bd);color:var(--tx);border-radius:8px;padding:7px 13px;
 font-family:inherit;font-size:12px;font-weight:800;cursor:pointer;direction:ltr}
.a4u-chip:hover{border-color:var(--red)}
.a4u-chip.on{background:var(--red);border-color:var(--red);color:#fff}

/* قائمة اللاعبين */
.a4u-search{width:100%;background:var(--bg3);border:1px solid var(--bd);border-radius:9px;padding:9px 12px;
 color:var(--tx);font-family:inherit;font-size:13px;margin-bottom:10px}
.a4u-list{max-height:420px;overflow-y:auto;scrollbar-width:thin}
.a4u-p{display:flex;align-items:center;gap:9px;padding:7px;border-radius:9px;cursor:grab;border:1px solid transparent}
.a4u-p:hover{background:var(--bg3);border-color:var(--bd)}
.a4u-p.drag{opacity:.5}
.a4u-p.used{opacity:.35;cursor:not-allowed}
.a4u-p.sel{background:rgba(227,6,19,.18);border-color:var(--red);box-shadow:0 0 0 1px var(--red) inset}
.a4u-p-av{width:34px;height:34px;border-radius:50%;overflow:hidden;background:var(--bg3);flex-shrink:0;
 display:flex;align-items:center;justify-content:center;color:var(--mu)}
.a4u-p-av img{width:100%!important;height:100%!important;object-fit:cover;border-radius:50%;display:block}
.a4u-p-av svg{width:18px;height:18px}
.a4u-p-i{flex:1;min-width:0}
.a4u-p-i b{display:block;font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a4u-p-i i{font-style:normal;font-size:10.5px;color:var(--mu)}
.a4u-p-n{font-size:12px;font-weight:900;color:var(--mu);min-width:22px;text-align:center}
.a4u-empty{color:var(--mu);font-size:12px;text-align:center;padding:14px}

/* الملعب */
.a4u-main{background:var(--bg2);border:1px solid var(--bd);border-radius:14px;padding:14px}
.a4u-hint{font-size:12px;color:var(--mu);margin-bottom:10px;text-align:center}
.a4u-pitch{position:relative;width:100%;max-width:620px;margin:0 auto;aspect-ratio:70/94;border-radius:12px;overflow:hidden;
 background:repeating-linear-gradient(0deg,rgba(255,255,255,.045) 0 7%,rgba(0,0,0,.03) 7% 14%),
 linear-gradient(180deg,#2b8f4e,#1e7040);border:2px solid rgba(255,255,255,.45);container-type:inline-size}
.a4u-ln{position:absolute;background:rgba(255,255,255,.5)}
.a4u-mid{left:0;right:0;top:50%;height:2px}
.a4u-circle{position:absolute;left:50%;top:50%;width:20%;aspect-ratio:1;transform:translate(-50%,-50%);
 border:2px solid rgba(255,255,255,.5);border-radius:50%}
.a4u-box-top,.a4u-box-bot{position:absolute;left:50%;transform:translateX(-50%);width:46%;height:13%;
 border:2px solid rgba(255,255,255,.5)}
.a4u-box-top{top:0;border-top:0}
.a4u-box-bot{bottom:0;border-bottom:0}
.a4u-plan-tag{position:absolute;bottom:10px;right:12px;background:rgba(0,0,0,.45);color:#fff;
 font-size:13px;font-weight:900;padding:4px 14px;border-radius:14px;direction:ltr;letter-spacing:1px}

/* المراكز */
.a4u-slot{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;
 gap:4px;width:clamp(54px,13cqw,96px);cursor:pointer;z-index:2}
.a4u-wrap{position:relative;display:block;width:clamp(40px,9.5cqw,68px);aspect-ratio:1}
.a4u-av{position:absolute;inset:0;border-radius:50%;background:#0e1a26;border:3px solid #fff;overflow:hidden;
 display:flex;align-items:center;justify-content:center;color:#9fb0c4;box-shadow:0 3px 8px rgba(0,0,0,.4)}
.a4u-av img{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;
 object-position:top center;border-radius:50%;display:block;margin:0!important}
.a4u-av svg{width:46%;height:46%}
.a4u-av.empty{background:rgba(0,0,0,.3);border-style:dashed;border-color:rgba(255,255,255,.7);
 color:#fff;font-size:clamp(16px,4cqw,24px);font-weight:300}
.a4u-slot.over .a4u-av{border-color:#ffd400;box-shadow:0 0 0 4px rgba(255,212,0,.35)}
.a4u-slot.moving .a4u-av{border-color:#ffd400;box-shadow:0 0 0 4px rgba(255,212,0,.5)}
.a4u-slot.moving{animation:a4uPulse 1.1s ease-in-out infinite}
@keyframes a4uPulse{50%{transform:translate(-50%,-50%) scale(1.07)}}
.a4u-num{position:absolute;top:-4px;left:-6px;min-width:clamp(17px,3.6cqw,22px);height:clamp(17px,3.6cqw,22px);
 line-height:clamp(17px,3.6cqw,22px);background:#fff;color:#16233a;border-radius:11px;
 font-size:clamp(9px,2cqw,12px);font-weight:900;text-align:center;padding:0 4px;z-index:3}
.a4u-x{position:absolute;top:-6px;right:-6px;width:clamp(17px,3.4cqw,21px);height:clamp(17px,3.4cqw,21px);
 line-height:clamp(15px,3cqw,18px);text-align:center;background:var(--red);color:#fff;border-radius:50%;
 font-size:clamp(11px,2.4cqw,15px);font-weight:700;z-index:4;border:2px solid #fff;cursor:pointer}
.a4u-nm{font-size:clamp(9px,2.1cqw,13px);font-weight:800;color:#fff;text-align:center;line-height:1.2;
 text-shadow:0 1px 3px rgba(0,0,0,.95);max-width:100%;word-break:break-word}
.a4u-nm.role{color:rgba(255,255,255,.8);font-weight:600;font-size:clamp(8px,1.8cqw,11px)}

/* الأزرار */
.a4u-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.a4u-btn{flex:1;min-width:150px;border:0;border-radius:11px;padding:13px;font-family:inherit;font-size:14px;
 font-weight:800;cursor:pointer}
.a4u-primary{background:var(--red);color:#fff}
.a4u-ghost{background:var(--bg3);color:var(--tx);border:1px solid var(--bd)}
.a4u-msg{margin-top:10px;font-size:13px;font-weight:700;text-align:center;min-height:20px}
.a4u-msg.ok{color:#3ec46d}
.a4u-msg.er{color:#ff6b6b}

@media(max-width:980px){
 .a4u-grid{grid-template-columns:1fr}
 .a4u-list{max-height:260px}
 .a4u-slot{min-width:48px}
}

/* ===== صفحة عرض التشكيل ===== */
.a4u-view{max-width:820px;margin:0 auto;background:var(--bg2);border:1px solid var(--bd);border-radius:16px;padding:20px}
.a4u-view-t{font-size:26px;font-weight:900;margin:0 0 6px;color:var(--tx)}
.a4u-view-s{font-size:13px;color:var(--mu);margin-bottom:16px}
.a4u-view-img{width:100%;height:auto;border-radius:12px;display:block;margin-bottom:18px;border:1px solid var(--bd)}
.a4u-view-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:18px}
.a4u-view-p{display:flex;align-items:center;gap:9px;background:var(--bg3);border:1px solid var(--bd);
 border-radius:10px;padding:8px 10px}
.a4u-view-p .a4u-p-av{width:34px;height:34px;border-radius:50%;overflow:hidden;background:var(--bg2);flex-shrink:0}
.a4u-view-p .a4u-p-av img{width:100%!important;height:100%!important;object-fit:cover;border-radius:50%;display:block}
.a4u-share{border-top:1px solid var(--bd);padding-top:16px}
.a4u-share-btns{display:flex;flex-wrap:wrap;gap:8px}
.a4u-sb{display:inline-block;padding:10px 18px;border-radius:10px;font-size:13px;font-weight:800;
 color:#fff;text-decoration:none;border:0;cursor:pointer;font-family:inherit}
.a4u-sb.fb{background:#1877f2}
.a4u-sb.x{background:#000;border:1px solid #333}
.a4u-sb.wa{background:#25d366;color:#04301a}
.a4u-sb.tg{background:#229ed9}
.a4u-sb.cp,.a4u-sb.vw{background:var(--bg3);border:1px solid var(--bd);color:var(--tx)}
@media(max-width:640px){.a4u-view-list{grid-template-columns:1fr}}

/* ===== صفحة المباراة ===== */
.a4u-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}
.a4u-stat{background:var(--bg2);border:1px solid var(--bd);border-radius:14px;padding:16px 10px;text-align:center}
.a4u-stat b{display:block;font-size:22px;font-weight:900;color:var(--tx);margin-bottom:4px;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a4u-stat span{font-size:11.5px;color:var(--mu)}
.a4u-top{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.a4u-top-p{background:var(--bg3);border:1px solid var(--bd);border-radius:12px;padding:12px 6px;text-align:center}
.a4u-top-p .a4u-p-av{width:52px;height:52px;margin:0 auto 8px;border-radius:50%;overflow:hidden;
 background:var(--bg2);display:block}
.a4u-top-p .a4u-p-av img{width:100%!important;height:100%!important;object-fit:cover;border-radius:50%;display:block}
.a4u-top-p b{display:block;font-size:12.5px;font-weight:800;margin-bottom:3px}
.a4u-top-p i{font-style:normal;font-size:11px;color:var(--red);font-weight:700}
.a4u-bar{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.a4u-bar-n{width:62px;font-size:12.5px;font-weight:800;text-align:center}
.a4u-bar-t{flex:1;height:12px;background:var(--bg3);border-radius:6px;overflow:hidden}
.a4u-bar-t span{display:block;height:100%;background:linear-gradient(90deg,var(--red),#ff5a4d);border-radius:6px}
.a4u-bar-c{width:46px;font-size:12px;color:var(--mu);text-align:left}
.a4u-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.a4u-card{background:var(--bg3);border:1px solid var(--bd);border-radius:12px;overflow:hidden}
.a4u-card img{width:100%;height:auto;display:block}
.a4u-card-ph{display:flex;align-items:center;justify-content:center;height:110px;font-size:34px;background:var(--bg2)}
.a4u-card-b{display:flex;align-items:center;gap:8px;padding:10px}
.a4u-card-b b{flex:1;font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a4u-card-b span{font-size:11px;color:var(--mu);background:var(--bg2);padding:2px 8px;border-radius:8px}
.a4u-like{background:var(--bg2);border:1px solid var(--bd);color:var(--tx);border-radius:8px;
 padding:5px 10px;font-family:inherit;font-size:12px;font-weight:800;cursor:pointer}
.a4u-like:hover{border-color:var(--red)}
.a4u-like.done{background:var(--red);border-color:var(--red);color:#fff;cursor:default}
.a4u-like em{font-style:normal}
@media(max-width:900px){.a4u-cards{grid-template-columns:repeat(2,1fr)}.a4u-top{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.a4u-stats{grid-template-columns:repeat(2,1fr)}.a4u-cards{grid-template-columns:1fr}
 .a4u-top{grid-template-columns:repeat(2,1fr)}}

/* فاصل قسم الإحصائيات أسفل المحرّر */
.a4u-mstats{margin-top:6px;padding-top:18px;border-top:2px solid var(--bd)}
.a4u-sec-t{font-size:18px;font-weight:900;color:var(--tx);margin-bottom:14px}

/* ترتيب المدربين */
.a4u-tabs{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}
.a4u-tab{background:var(--bg3);border:1px solid var(--bd);color:var(--mu);border-radius:8px;
 padding:7px 14px;font-family:inherit;font-size:12px;font-weight:800;cursor:pointer}
.a4u-tab.on{background:var(--red);border-color:var(--red);color:#fff}
.a4u-lb-r{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;
 border:1px solid transparent}
.a4u-lb-r:nth-child(odd){background:var(--bg3);border-color:var(--bd)}
.a4u-lb-i{width:26px;height:26px;line-height:26px;text-align:center;border-radius:50%;
 background:var(--bg2);color:var(--mu);font-size:12px;font-weight:900;flex-shrink:0}
.a4u-lb-i.top{background:var(--red);color:#fff}
.a4u-lb-n{font-size:13px;font-weight:800;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a4u-lb-m{font-size:11px;color:var(--mu);white-space:nowrap}
.a4u-lb-p{font-size:12.5px;font-weight:900;color:var(--red);white-space:nowrap}
.a4u-lb-note{font-size:11px;color:var(--mu);margin-top:10px;text-align:center}
@media(max-width:600px){.a4u-lb-m{display:none}}

/* المقارنة بالتشكيل الرسمي */
.a4u-cmp{background:var(--bg3);border:1px solid var(--bd);border-radius:14px;padding:16px;margin-bottom:18px;
 display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.a4u-cmp-h{width:100%;font-size:14px;font-weight:800;color:var(--tx)}
.a4u-cmp-ring{width:112px;height:112px;border-radius:50%;flex-shrink:0;display:flex;flex-direction:column;
 align-items:center;justify-content:center;
 background:conic-gradient(var(--red) calc(var(--p)*1%),var(--bg2) 0);position:relative}
.a4u-cmp-ring::before{content:'';position:absolute;inset:9px;background:var(--bg3);border-radius:50%}
.a4u-cmp-ring b{position:relative;font-size:26px;font-weight:900;color:var(--tx);line-height:1}
.a4u-cmp-ring span{position:relative;font-size:10.5px;color:var(--mu);margin-top:3px}
.a4u-cmp-n{display:flex;gap:10px;flex:1;flex-wrap:wrap}
.a4u-cmp-n>div{flex:1;min-width:88px;background:var(--bg2);border:1px solid var(--bd);border-radius:10px;
 padding:12px 8px;text-align:center}
.a4u-cmp-n b{display:block;font-size:20px;font-weight:900;color:var(--tx)}
.a4u-cmp-n span{font-size:11px;color:var(--mu)}
.a4u-view-p.hit{border-color:var(--grn);background:rgba(47,168,79,.12)}
.a4u-hit{color:var(--grn);font-weight:900;font-size:14px}
.a4u-lb-n a{color:inherit;text-decoration:none}
.a4u-lb-n a:hover{color:var(--red)}

/* تحليل الذكاء الاصطناعي */
.a4u-ai{background:var(--bg3);border:1px solid var(--bd);border-radius:14px;padding:16px;margin:18px 0}
.a4u-ai-d{font-size:12.5px;color:var(--mu);margin:0 0 12px}
.a4u-ai .a4u-btn{max-width:230px;background:linear-gradient(90deg,#7b2ff7,#e30613)}
.a4u-ai-out{font-size:13.5px;line-height:2;color:var(--tx);white-space:pre-wrap;margin-top:12px}

/* التعليقات */
.a4u-cm{background:var(--bg3);border:1px solid var(--bd);border-radius:14px;padding:16px;margin:18px 0}
.a4u-cm-form{position:relative;display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.a4u-cm-form textarea{resize:vertical;min-height:56px;font-family:inherit}
.a4u-cm-form .a4u-btn{max-width:160px}
.a4u-cm-msg{font-size:12px;min-height:16px}
.a4u-cm-msg.ok{color:var(--grn)}
.a4u-cm-msg.er{color:#ff6b6b}
.a4u-cm-i{background:var(--bg2);border:1px solid var(--bd);border-radius:10px;padding:10px 12px;margin-bottom:8px}
.a4u-cm-i b{display:block;font-size:12.5px;font-weight:800;color:var(--red);margin-bottom:3px}
.a4u-cm-i p{margin:0;font-size:13px;line-height:1.8;color:var(--tx)}

/* عبارات التحفيز */
.a4u-cta{background:linear-gradient(135deg,rgba(227,6,19,.16),rgba(227,6,19,.04));
 border:1px solid rgba(227,6,19,.4);border-radius:14px;padding:16px 18px;margin-bottom:14px}
.a4u-cta-t{font-size:19px;font-weight:900;color:var(--tx);margin-bottom:8px}
.a4u-cta-d{font-size:13px;line-height:1.9;color:var(--mu)}
.a4u-cta-d strong{color:var(--tx)}
.a4u-join{background:linear-gradient(135deg,rgba(227,6,19,.18),rgba(227,6,19,.05));
 border:1px solid rgba(227,6,19,.45);border-radius:14px;padding:18px;margin-bottom:18px;text-align:center}
.a4u-join-t{font-size:18px;font-weight:900;color:var(--tx);margin-bottom:8px}
.a4u-join-d{font-size:13px;line-height:1.9;color:var(--mu);margin-bottom:14px}
.a4u-join-d strong{color:var(--tx)}
.a4u-join-b{display:inline-block;max-width:280px;text-decoration:none;text-align:center;padding:13px 26px}
@media(max-width:600px){.a4u-cta-t,.a4u-join-t{font-size:16px}}

/* ===== الأهلي 4U — توقّع النتيجة (مرحلة ١) ===== */
.a4u-predict{background:#0f1b2a;border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:14px 12px;margin:14px 0 4px;text-align:center}
.a4u-predict-t{font-weight:800;font-size:16px;color:#fff;margin-bottom:10px}
.a4u-predict-row{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.a4u-predict-team{font-weight:800;color:#e8eef5;max-width:38%;font-size:15px;line-height:1.2}
.a4u-predict-dash{font-weight:900;color:#9fb0c3;font-size:22px}
.a4u-score{width:56px;height:52px;text-align:center;font-size:24px;font-weight:900;color:#0f1b2a;background:#fff;border:2px solid #e30613;border-radius:12px;outline:none;-moz-appearance:textfield}
.a4u-score::-webkit-outer-spin-button,.a4u-score::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.a4u-score:focus{box-shadow:0 0 0 3px rgba(227,6,19,.25)}
.a4u-predict-note{margin-top:10px;font-size:13px;color:#c6d2df;line-height:1.6}
.a4u-predict-note b{color:#ffd23f}
.a4u-pred{background:linear-gradient(180deg,#12203200,#122032);border:1px solid rgba(227,6,19,.35);border-radius:14px;padding:14px;margin:14px 0;text-align:center}
.a4u-pred-h{font-weight:800;color:#fff;font-size:15px;margin-bottom:8px}
.a4u-pred-score{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
.a4u-pred-score b{background:#e30613;color:#fff;font-size:26px;font-weight:900;padding:4px 16px;border-radius:10px;direction:ltr}
.a4u-pred-tm{font-weight:800;color:#e8eef5;font-size:16px}
.a4u-pred-say{margin-top:10px;color:#ffd23f;font-weight:800;font-size:14px}
.a4u-hype{background:linear-gradient(135deg,#7a0410,#3a0209);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:14px 16px;margin:14px 0;text-align:center;color:#ffe;line-height:1.8;font-size:14px}
.a4u-hype b{color:#ffd23f}
.a4u-pred-dash2{font-weight:900;color:#fff;font-size:22px;align-self:center}
