/* ═══════════════════════════════════════════════════════
   HAZA SPORTS PRO — SAUDI ARENA Unified CSS
   All plugin pages · Light-first · Dark mode · RTL
   ═══════════════════════════════════════════════════════ */

/* ═══ 1. SHARED BASE (League Page = most complete) ═══ */
/* ═══ SAUDI ARENA — Design Tokens (same as homepage) ═══ */
:root{
--bg:#f5f5f4;--s-low:#eeeeed;--s-cont:#e7e6e5;--s-high:#ffffff;--s-top:#ffffff;
--on-s:#1c1b1b;--on-s-v:#5a6558;--outline:#c8d0c6;
--pri:#036d36;--pri-c:#d4f5df;--on-pri:#ffffff;
--sec:#b8960e;--sec-c:#f5e6a0;
--err:#d32f2f;--err-c:#fde8e8;
--shadow:0 4px 16px rgba(0,0,0,.05);--shadow-lg:0 8px 32px rgba(0,0,0,.08);
--r:16px;--r-lg:20px;--r-xl:24px;
}
html.dark{
--bg:#131313;--s-low:#1c1b1b;--s-cont:#201f1f;--s-high:#2a2a2a;--s-top:#353534;
--on-s:#e5e2e1;--on-s-v:#becabd;--outline:#3f4940;
--pri:#80d996;--pri-c:#006c35;--on-pri:#003919;
--sec:#e9c349;--sec-c:#af8d11;
--err:#ffb4ab;--err-c:rgba(255,180,171,.08);
--shadow:0 8px 32px rgba(0,0,0,.35);--shadow-lg:0 20px 40px rgba(0,0,0,.4);
}
*{margin:0;padding:0;box-sizing:border-box}
body{background:var(--bg);color:var(--on-s);font-family:'Almarai','Manrope',sans-serif;line-height:1.6;overflow-x:hidden;transition:background .3s,color .3s;padding-bottom:80px}
@media(min-width:992px){body{padding-bottom:0}}
a{color:inherit;text-decoration:none}img{display:block;max-width:100%;object-fit:cover}
.material-symbols-outlined{font-variation-settings:'FILL' 0,'wght' 400;direction:ltr;line-height:1}
.no-sb::-webkit-scrollbar{display:none}.no-sb{scrollbar-width:none}
.wrap{max-width:1400px;margin:0 auto;padding:0 16px}
@media(min-width:768px){.wrap{padding:0 24px}}
.fl{font-family:'Lexend','Almarai',sans-serif}

/* ═══ HEADER (same as homepage) ═══ */
.hdr{position:fixed;top:0;width:100%;z-index:100;background:var(--bg);box-shadow:var(--shadow);transition:background .3s}
.hdr-in{display:flex;justify-content:space-between;align-items:center;max-width:1400px;margin:0 auto;padding:0 16px;height:60px}
@media(min-width:768px){.hdr-in{padding:0 24px;height:68px}}
.logo{font-family:'Lexend';font-weight:900;font-size:18px;color:var(--pri);text-transform:uppercase;letter-spacing:3px}
@media(min-width:768px){.logo{font-size:22px}}
.hdr-nav{display:none;gap:24px;align-items:center;position:absolute;left:50%;transform:translateX(50%)}
@media(min-width:992px){.hdr-nav{display:flex}}
.hdr-nav a{font-size:14px;font-weight:700;color:var(--on-s-v);transition:.2s}.hdr-nav a:hover,.hdr-nav a.on{color:var(--pri)}
.hdr-r{display:flex;align-items:center;gap:6px}
.hdr-btn{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s;color:var(--on-s-v);background:none;border:none;font-family:inherit}
.hdr-btn:hover{background:var(--s-low)}
.hdr-menu{display:flex}@media(min-width:992px){.hdr-menu{display:none}}
.page{padding-top:72px}@media(min-width:768px){.page{padding-top:82px}}

/* ═══ LEAGUE HERO ═══ */
.lg-hero{background:var(--s-low);padding:24px 0;margin-bottom:8px}
.lg-hero-in{display:flex;align-items:center;gap:16px}
.lg-hero-logo{width:56px;height:56px;object-fit:contain;flex-shrink:0}
@media(min-width:768px){.lg-hero-logo{width:72px;height:72px}}
.lg-hero-info h1{font-size:24px;font-weight:900}
@media(min-width:768px){.lg-hero-info h1{font-size:32px}}
.lg-hero-info p{font-size:13px;color:var(--on-s-v);font-weight:700}
.lg-hero-meta{display:flex;gap:10px;margin-top:6px}
.lg-hero-tag{font-size:11px;font-weight:800;padding:3px 10px;border-radius:8px;background:var(--pri-c);color:var(--pri)}

/* ═══ SECTION TABS ═══ */
.lg-tabs{display:flex;gap:0;overflow-x:auto;-webkit-overflow-scrolling:touch;border-bottom:2px solid var(--s-cont);margin-bottom:24px;position:sticky;top:60px;background:var(--bg);z-index:50;transition:background .3s}
@media(min-width:768px){.lg-tabs{top:68px}}
.lg-tab{flex-shrink:0;padding:12px 18px;font-size:14px;font-weight:800;color:var(--on-s-v);cursor:pointer;border-bottom:3px solid transparent;transition:.2s;white-space:nowrap}
.lg-tab:hover{color:var(--on-s)}
.lg-tab.on{color:var(--pri);border-bottom-color:var(--pri)}

/* ═══ SEC HEAD ═══ */
.sec-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.sec-t{font-size:22px;font-weight:900;display:flex;align-items:center;gap:10px}
.sec-t .material-symbols-outlined{color:var(--pri);font-size:24px}
.sec-link{font-size:13px;font-weight:800;color:var(--pri)}
.sec{margin-bottom:32px;scroll-margin-top:120px}

/* ═══ STANDINGS TABLE ═══ */
.st-card{background:var(--s-high);border-radius:var(--r-xl);box-shadow:var(--shadow);overflow:hidden}
.st-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.st-tbl{width:100%;border-collapse:collapse;min-width:580px}
.st-tbl th{font-size:11px;font-weight:800;color:var(--on-s-v);text-transform:uppercase;letter-spacing:.5px;padding:14px 8px;text-align:center;background:var(--s-low)}
.st-tbl th:nth-child(2){text-align:right}
.st-tbl td{padding:14px 8px;font-size:14px;font-weight:700;text-align:center;border-bottom:1px solid rgba(0,0,0,.03);transition:.15s}
html.dark .st-tbl td{border-bottom-color:rgba(255,255,255,.03)}
.st-tbl tr:hover td{background:rgba(0,0,0,.01)}
html.dark .st-tbl tr:hover td{background:rgba(255,255,255,.02)}
.st-tbl tr:last-child td{border-bottom:none}
.st-team{display:flex;align-items:center;gap:10px;text-align:right}
.st-team img{width:26px;height:26px;object-fit:contain;flex-shrink:0}
.st-team span{font-weight:900;font-size:15px}
/* Rank circles */
.st-rank{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-size:11px;font-weight:900;margin:0 auto}
.st-rank-1{background:var(--pri);color:#fff}.st-rank-2,.st-rank-3{border:2px solid var(--pri);color:var(--pri)}
.st-rank-dn{color:var(--err)}
/* Points */
.st-pts{font-family:'Lexend';font-size:18px;font-weight:900;color:var(--pri)}
.st-pts-dn{color:var(--err)}
/* Row highlights */
.st-row-top{background:var(--pri-c)}
html.dark .st-row-top{background:rgba(128,217,150,.04)}
.st-row-dn{background:var(--err-c)}
html.dark .st-row-dn{background:rgba(255,180,171,.04)}
/* Goal diff */
.st-gd-pos{color:var(--pri)}.st-gd-neg{color:var(--err)}

/* ═══ STATS CENTER ═══ */
.stats-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:768px){.stats-grid{grid-template-columns:1fr 1fr 1fr}}

/* Scorers Card (featured) */
.sc-card{background:var(--s-high);border-radius:var(--r-xl);padding:20px;box-shadow:var(--shadow);position:relative;overflow:hidden}
@media(min-width:768px){.sc-card.feat{grid-column:1/-1}}
.sc-glow{position:absolute;top:-40px;right:-40px;width:140px;height:140px;background:rgba(3,109,54,.06);border-radius:50%;filter:blur(40px);transition:.5s}
html.dark .sc-glow{background:rgba(128,217,150,.08)}
.sc-card:hover .sc-glow{transform:scale(1.5)}
.sc-head{display:flex;align-items:center;gap:10px;margin-bottom:18px;position:relative;z-index:1}
.sc-head .material-symbols-outlined{font-size:24px;color:var(--pri)}
.sc-head h3{font-size:18px;font-weight:900}

/* Scorer rows */
.sc-row{display:flex;align-items:center;gap:12px;padding:10px 12px;background:var(--s-low);border-radius:12px;margin-bottom:8px;position:relative;z-index:1;transition:.15s}
.sc-row:hover{background:var(--s-cont)}
.sc-row.dim{opacity:.7}
.sc-pos{font-family:'Lexend';font-size:14px;font-weight:800;color:var(--on-s-v);min-width:20px;text-align:center}
.sc-row:first-of-type .sc-pos{color:var(--sec)}
.sc-photo{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid var(--s-cont)}
.sc-row:first-of-type .sc-photo{border-color:var(--pri)}
.sc-info{flex:1;min-width:0}
.sc-name{font-size:14px;font-weight:800;display:block}
.sc-club{font-size:11px;color:var(--on-s-v)}
.sc-val{font-family:'Lexend';font-size:22px;font-weight:900;color:var(--pri);min-width:32px;text-align:center}
.sc-val.sec{color:var(--sec)}
.sc-val.dim{color:var(--on-s);font-size:18px}

/* Full list button */
.sc-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:12px;margin-top:12px;background:var(--s-low);border:none;border-radius:12px;font-size:13px;font-weight:800;color:var(--pri);cursor:pointer;font-family:inherit;transition:.2s}
.sc-btn:hover{background:var(--s-cont)}

/* ═══ NEWS ═══ */
.news-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:600px){.news-grid{grid-template-columns:1fr 1fr}}
@media(min-width:900px){.news-grid{grid-template-columns:1fr 1fr 1fr}}
.news-hero{position:relative;border-radius:var(--r-xl);overflow:hidden;height:300px;display:block}
@media(min-width:600px){.news-hero{grid-column:1/-1;height:380px}}
.news-hero img{position:absolute;inset:0;width:100%;height:100%;transition:.6s}
.news-hero:hover img{transform:scale(1.04)}
.news-hero-ov{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.9) 0%,transparent 60%);display:flex;align-items:flex-end;padding:20px}
@media(min-width:768px){.news-hero-ov{padding:28px}}
.news-hero h3{font-size:20px;font-weight:900;color:#fff;line-height:1.55}
@media(min-width:768px){.news-hero h3{font-size:26px}}

.news-card{display:flex;gap:14px;background:var(--s-high);border-radius:var(--r);padding:12px;transition:.2s;box-shadow:var(--shadow)}
.news-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.news-card-img{width:90px;height:75px;border-radius:12px;overflow:hidden;flex-shrink:0}
.news-card-img img{width:100%;height:100%}
.news-card-body{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.news-card-body h4{font-size:14px;font-weight:800;line-height:1.55}
.news-card-body span{font-size:10px;color:var(--on-s-v);margin-top:4px}

/* ═══ MATCHES — horizontal scroll ═══ */
.mx-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:8px}
.mx-track::-webkit-scrollbar{display:none}.mx-track{scrollbar-width:none}
.mx-card{flex-shrink:0;width:260px;scroll-snap-align:start;background:var(--s-high);border-radius:var(--r-xl);padding:18px;box-shadow:var(--shadow);transition:.2s;border:1px solid transparent}
@media(min-width:768px){.mx-card{width:280px}}
.mx-card:hover{transform:translateY(-3px);border-color:var(--pri);box-shadow:var(--shadow-lg)}
.mx-card.live{border-color:var(--pri);background:var(--pri-c)}
html.dark .mx-card.live{background:rgba(128,217,150,.05)}
.mx-top{display:flex;justify-content:space-between;font-size:11px;font-weight:800;color:var(--on-s-v);margin-bottom:14px}
.mx-live{color:var(--pri);display:flex;align-items:center;gap:4px}
.mx-live-dot{width:6px;height:6px;border-radius:50%;background:var(--pri);animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.3;transform:scale(.7)}}
.mx-teams{display:flex;justify-content:space-between;align-items:center}
.mx-team{display:flex;flex-direction:column;align-items:center;gap:6px;width:35%}
.mx-team img{width:44px;height:44px;object-fit:contain}
.mx-team span{font-size:13px;font-weight:900;text-align:center}
.mx-mid{text-align:center;flex:1}
.mx-score{font-family:'Lexend';font-size:28px;font-weight:900;direction:ltr}
.mx-score.live-sc{color:var(--pri)}
.mx-vs{font-family:'Lexend';font-size:18px;font-weight:800;color:var(--on-s-v)}
.mx-time{font-size:10px;color:var(--on-s-v);margin-top:4px}

/* ═══ BOTTOM NAV (mobile only) ═══ */
.bnav{position:fixed;bottom:0;left:0;width:100%;z-index:100;background:var(--s-high);border-top:1px solid rgba(0,0,0,.04);padding:8px 16px 20px;display:flex;justify-content:space-around;align-items:center;box-shadow:0 -4px 16px rgba(0,0,0,.04)}
html.dark .bnav{border-top-color:rgba(255,255,255,.03);box-shadow:0 -4px 24px rgba(0,0,0,.3)}
@media(min-width:992px){.bnav{display:none}}
.bnav-item{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--on-s-v);font-size:10px;font-weight:800;opacity:.5;transition:.2s;cursor:pointer;padding:4px 12px;border-radius:12px}
.bnav-item:hover{opacity:.8}
.bnav-item.on{opacity:1;color:var(--pri);background:var(--pri-c)}
html.dark .bnav-item.on{background:rgba(128,217,150,.1)}
.bnav-item .material-symbols-outlined{font-size:22px}

/* ═══ FOOTER (same as homepage — desktop only) ═══ */
.ftr{background:var(--s-low);padding:40px 24px;margin-top:48px;transition:background .3s}
@media(max-width:991px){.ftr{display:none}}
.ftr-in{max-width:1400px;margin:0 auto}
.ftr-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr 1fr;gap:32px;margin-bottom:32px}
.ftr-brand .logo{font-size:24px;margin-bottom:12px;display:block}
.ftr-brand p{font-size:13px;color:var(--on-s-v);line-height:1.7;margin-bottom:16px}
.ftr-col h5{font-size:14px;font-weight:800;margin-bottom:12px}.ftr-col a{display:block;font-size:13px;color:var(--on-s-v);padding:5px 0;font-weight:600;transition:.15s}.ftr-col a:hover{color:var(--pri)}
.ftr-bottom{text-align:center;padding-top:20px;border-top:1px dashed rgba(0,0,0,.06)}
html.dark .ftr-bottom{border-top-color:rgba(255,255,255,.04)}
.ftr-bottom span{font-size:12px;color:var(--on-s-v)}

/* ═══ 2. CLUB PAGE ═══ */
/* ═══ SAUDI ARENA — Design Tokens ═══ */
@media(min-width:768px){.wrap{padding:0 24px}}

/* ═══ HEADER ═══ */
@media(min-width:768px){.hdr-in{padding:0 24px;height:68px}}
@media(min-width:768px){.logo{font-size:22px}}
@media(min-width:992px){.hdr-nav{display:flex}}

/* ═══ CLUB HERO ═══ */
.lg-hero{background:var(--s-low);padding:32px 0;margin-bottom:32px;position:relative;overflow:hidden}
.lg-hero-bg{position:absolute;inset:0;opacity:0.1;background:url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=1200&fit=crop') center/cover;pointer-events:none}
.lg-hero-in{display:flex;align-items:center;gap:24px;position:relative;z-index:2}
.lg-hero-logo{width:80px;height:80px;object-fit:contain;flex-shrink:0;background:var(--s-high);border-radius:50%;padding:10px;box-shadow:var(--shadow-lg)}
@media(min-width:768px){.lg-hero-logo{width:110px;height:110px;padding:15px}}
.lg-hero-info h1{font-size:28px;font-weight:900}
@media(min-width:768px){.lg-hero-info h1{font-size:40px}}
.lg-hero-meta{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.lg-hero-tag{font-size:12px;font-weight:800;padding:4px 12px;border-radius:8px;background:var(--s-cont);color:var(--on-s);display:flex;align-items:center;gap:4px}
.lg-hero-tag .material-symbols-outlined{font-size:16px;color:var(--pri)}

/* ═══ SECTIONS ═══ */
.sec-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.sec-t{font-size:22px;font-weight:900;display:flex;align-items:center;gap:10px}
.sec-t .material-symbols-outlined{color:var(--pri);font-size:26px}
.sec-link{font-size:13px;font-weight:800;color:var(--pri);cursor:pointer}
.sec{margin-bottom:48px}

/* ═══ NEXT MATCH & H2H ═══ */
.mx-hero-card{background:var(--s-high);border-radius:var(--r-xl);padding:24px;box-shadow:var(--shadow);margin-bottom:24px}
.mx-hero-lbl{font-size:12px;font-weight:900;color:var(--sec);text-transform:uppercase;text-align:center;margin-bottom:20px;display:block}
.mx-hero-teams{display:flex;justify-content:space-around;align-items:center}
.mx-hero-team{display:flex;flex-direction:column;align-items:center;gap:8px;width:30%}
.mx-hero-team img{width:60px;height:60px;object-fit:contain}
.mx-hero-team span{font-size:15px;font-weight:900;text-align:center}
.mx-hero-time{display:flex;flex-direction:column;align-items:center}
.mx-hero-time strong{font-family:'Lexend';font-size:28px;color:var(--on-s);line-height:1}
.mx-hero-time span{font-size:12px;color:var(--on-s-v);font-weight:800;margin-top:4px}
.h2h-bar{background:var(--s-low);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px;align-items:center;margin-top:24px}
@media(min-width:480px){.h2h-bar{flex-direction:row;justify-content:space-between}}
.h2h-title{font-size:13px;font-weight:800;color:var(--on-s-v)}
.h2h-badges{display:flex;gap:8px}
.h2h-b{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;font-family:'Lexend'}
.h2h-w{background:var(--pri-c);color:var(--pri)}
.h2h-d{background:var(--sec-c);color:var(--sec)}
.h2h-l{background:var(--err-c);color:var(--err)}

/* ═══ SMART STANDINGS ═══ */
.st-card{background:var(--s-high);border-radius:var(--r-xl);box-shadow:var(--shadow);overflow:hidden}
.st-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.st-tbl{width:100%;border-collapse:collapse;min-width:580px}
.st-tbl th{font-size:11px;font-weight:800;color:var(--on-s-v);text-transform:uppercase;padding:14px 8px;text-align:center;background:var(--s-low)}
.st-tbl th:nth-child(2){text-align:right}
.st-tbl td{padding:14px 8px;font-size:14px;font-weight:700;text-align:center;border-bottom:1px solid rgba(0,0,0,.03)}
html.dark .st-tbl td{border-bottom-color:rgba(255,255,255,.03)}
.st-team{display:flex;align-items:center;gap:10px;text-align:right}
.st-team img{width:26px;height:26px;object-fit:contain}
.st-team span{font-weight:900;font-size:15px}
.st-rank{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-size:11px;font-weight:900;margin:0 auto}
.st-rank-1{background:var(--pri);color:#fff}.st-rank-2,.st-rank-3{border:2px solid var(--pri);color:var(--pri)}
.st-pts{font-family:'Lexend';font-size:18px;font-weight:900;color:var(--pri)}
.st-row-top{background:var(--pri-c)} html.dark .st-row-top{background:rgba(128,217,150,.04)}
/* Smart Highlight for the Club */
.st-row-hl td{background:var(--sec-c);border-bottom:none;position:relative}
html.dark .st-row-hl td{background:rgba(233, 195, 73, 0.15)}
.st-row-hl td:first-child::before{content:'';position:absolute;right:0;top:0;bottom:0;width:4px;background:var(--sec)}

/* ═══ PROFESSIONAL EDITORIAL NEWS (NEW ADDITION) ═══ */
.news-bento{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.news-bento{grid-template-columns:repeat(2, 1fr)}}
@media(min-width:1024px){.news-bento{grid-template-columns:repeat(3, 1fr)}}

.n-card{position:relative;border-radius:var(--r-xl);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;aspect-ratio:4/3;box-shadow:var(--shadow);transition:transform 0.3s ease;cursor:pointer}
.n-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.n-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 0.5s ease}
.n-card:hover img{transform:scale(1.05)}
/* Gradient overlays for white text readability in both Light and Dark modes */
.n-overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%)}
.n-content{position:relative;z-index:2;padding:20px;color:#ffffff}
.n-title{font-size:16px;font-weight:800;line-height:1.5;margin-bottom:8px;text-shadow:0 2px 4px rgba(0,0,0,0.6)}
.n-meta{font-size:11px;color:#e0e0e0;display:flex;align-items:center;gap:4px;font-weight:700}
.n-badge{position:absolute;top:16px;right:16px;background:var(--pri);color:#fff;padding:6px 12px;font-size:11px;font-weight:900;border-radius:8px;z-index:2}

/* Featured Top Article */
.n-card.featured{aspect-ratio:auto;height:320px}
@media(min-width:640px){.n-card.featured{grid-column:1 / -1;height:400px}}
.n-card.featured .n-title{font-size:24px}
@media(min-width:768px){.n-card.featured .n-title{font-size:32px}}

/* ═══ SQUAD HORIZONTAL TRACK (NEW ADDITION) ═══ */
.sq-group{margin-bottom:32px}
.sq-group-t{font-size:18px;font-weight:900;color:var(--on-s);margin-bottom:16px;display:flex;align-items:center;gap:8px}
.sq-count{font-size:12px;font-weight:700;color:var(--on-s-v);background:var(--s-low);padding:2px 8px;border-radius:12px}

/* The magic horizontal scroll container */
.sq-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:16px}
.sq-track::-webkit-scrollbar{display:none}.sq-track{scrollbar-width:none}

.sq-card{flex:0 0 130px;scroll-snap-align:start;background:var(--s-high);border-radius:16px;padding:16px 12px;text-align:center;box-shadow:var(--shadow);transition:.2s;border:1px solid transparent}
@media(min-width:768px){.sq-card{flex:0 0 150px}}
.sq-card:hover{transform:translateY(-4px);border-color:var(--pri);box-shadow:var(--shadow-lg)}
.sq-img{width:64px;height:64px;border-radius:50%;object-fit:cover;margin:0 auto 12px;border:3px solid var(--s-low)}
.sq-num{font-family:'Lexend';font-weight:900;color:var(--pri);font-size:16px;margin-bottom:4px;display:block}
.sq-name{font-size:13px;font-weight:800;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sq-nat{font-size:11px;color:var(--on-s-v);margin-top:4px;display:block}

/* ═══ BOTTOM NAV ═══ */
@media(min-width:992px){.bnav{display:none}}
.bnav-item .material-symbols-outlined{font-size:22px}

/* ═══ 3. PLAYER PAGE ═══ */
/* ═══ SAUDI ARENA — Design Tokens ═══ */
/* تأمين الموبايل لمنع الخروج عن الإطار */
html, body { overflow-x: hidden; width: 100vw; max-width: 100%; }
@media(min-width:768px){.wrap{padding:0 24px}}

/* ═══ HEADER ═══ */
@media(min-width:768px){.hdr-in{height:68px}}
@media(min-width:992px){.hdr-nav{display:flex}}

/* ═══ PLAYER HERO ═══ */
.pl-hero{background:var(--s-low);padding:32px 0;margin-bottom:32px;border-radius:0 0 var(--r-xl) var(--r-xl);box-shadow:var(--shadow)}
.pl-hero-in{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;width:100%}
@media(min-width:768px){.pl-hero-in{flex-direction:row;text-align:right}}
.pl-img-wrap{position:relative;width:120px;height:120px;flex-shrink:0}
@media(min-width:768px){.pl-img-wrap{width:160px;height:160px}}
.pl-img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:4px solid var(--pri);background:var(--s-high)}
.pl-num{position:absolute;bottom:0;right:0;background:var(--sec);color:#000;font-family:'Lexend';font-weight:900;font-size:20px;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:3px solid var(--s-low)}
@media(min-width:768px){.pl-num{width:48px;height:48px;font-size:24px}}
.pl-info{flex:1;min-width:0;width:100%}
.pl-info h1{font-size:28px;font-weight:900;margin-bottom:12px;line-height:1.2;word-wrap:break-word}
@media(min-width:768px){.pl-info h1{font-size:40px}}
.pl-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
@media(min-width:768px){.pl-tags{justify-content:flex-start}}
.pl-tag{background:var(--s-high);padding:6px 12px;border-radius:12px;font-size:12px;font-weight:800;display:flex;align-items:center;gap:6px;box-shadow:var(--shadow)}
.pl-tag img{width:16px;height:16px}

/* ═══ MAIN GRID (CSS Grid Blowout Fix: min-width:0) ═══ */
.pl-grid{display:grid;grid-template-columns:1fr;gap:24px;width:100%}
@media(min-width:992px){.pl-grid{grid-template-columns:1fr 350px}}
.grid-col{min-width:0;width:100%} /* هذه الكلاس تمنع أي تمدد يكسر الموبايل */

.sec-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.sec-t{font-size:20px;font-weight:900;display:flex;align-items:center;gap:10px}
@media(min-width:768px){.sec-t{font-size:22px}}
.sec-t .material-symbols-outlined{color:var(--pri);font-size:24px}
.sec{margin-bottom:40px}

/* ═══ STATS & TOGGLE (Fully Responsive) ═══ */
.toggle-wrap{display:flex;width:100%;background:var(--s-high);border-radius:12px;padding:4px;margin-bottom:20px;box-shadow:var(--shadow)}
.toggle-btn{flex:1;background:transparent;border:none;color:var(--on-s-v);font-family:'Almarai';font-weight:800;font-size:12px;padding:10px 4px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:.2s}
@media(min-width:480px){.toggle-btn{font-size:13px;padding:10px 16px}}
.toggle-btn.on{background:var(--pri-c);color:var(--pri)}
.toggle-btn img{width:16px;height:16px}

.st-bento{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:480px){.st-bento{gap:16px}}
.st-box{background:var(--s-high);border-radius:var(--r-lg);padding:16px;text-align:center;display:flex;flex-direction:column;justify-content:center;box-shadow:var(--shadow)}
.st-box-v{font-family:'Lexend';font-size:28px;font-weight:900;color:var(--pri);line-height:1}
@media(min-width:480px){.st-box-v{font-size:32px}}
.st-box-l{font-size:11px;font-weight:800;color:var(--on-s-v);margin-top:8px}

/* ═══ CAREER TIMELINE (Full-Bleed Horizontal Scroll Fix) ═══ */
/* هذا التعديل يتيح التمرير للمس الشاشة بالكامل بدون كسر إطار الصفحة */
.tl-container{margin-left:-16px;margin-right:-16px;position:relative}
@media(min-width:768px){.tl-container{margin-left:0;margin-right:0}}
.tl-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:0 16px 16px 16px}
@media(min-width:768px){.tl-track{padding:0 0 16px 0}}
.tl-card{flex:0 0 160px;scroll-snap-align:start;background:var(--s-high);border-radius:var(--r-lg);padding:16px;text-align:center;box-shadow:var(--shadow);border-top:3px solid transparent}
@media(min-width:480px){.tl-card{flex:0 0 180px;padding:20px}}
.tl-card:hover{border-top-color:var(--pri)}
.tl-year{font-family:'Lexend';font-size:11px;color:var(--on-s-v);font-weight:900;margin-bottom:12px;display:block;letter-spacing:1px}
.tl-img{width:40px;height:40px;margin:0 auto 12px;object-fit:contain}
.tl-club{font-size:13px;font-weight:900;margin-bottom:8px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-stats{display:flex;justify-content:center;gap:12px;font-size:11px;font-weight:800;color:var(--on-s-v)}
.tl-stats span{display:flex;align-items:center;gap:4px}

/* ═══ EDITORIAL NEWS (الاحترافية - تم نقلها من النادي) ═══ */
.news-bento{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.news-bento{grid-template-columns:repeat(2, 1fr)}}

.n-card{position:relative;border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;aspect-ratio:4/3;box-shadow:var(--shadow);cursor:pointer}
.n-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.n-overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%)}
.n-content{position:relative;z-index:2;padding:16px;color:#ffffff}
.n-title{font-size:14px;font-weight:800;line-height:1.5;margin-bottom:8px;text-shadow:0 2px 4px rgba(0,0,0,0.6)}
.n-meta{font-size:10px;color:#e0e0e0;display:flex;align-items:center;gap:4px;font-weight:700}
.n-badge{position:absolute;top:12px;right:12px;background:var(--pri);color:#fff;padding:4px 10px;font-size:10px;font-weight:900;border-radius:6px;z-index:2}

.n-card.featured{aspect-ratio:auto;height:280px}
@media(min-width:640px){.n-card.featured{grid-column:1 / -1;height:350px}}
.n-card.featured .n-title{font-size:18px}
@media(min-width:768px){.n-card.featured .n-title{font-size:24px}}

/* ═══ BIO SIDEBAR ═══ */
.bio-card{background:var(--s-high);border-radius:var(--r-xl);padding:20px;box-shadow:var(--shadow);width:100%}
.bio-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid rgba(0,0,0,.05);font-size:13px}
html.dark .bio-row{border-bottom-color:rgba(255,255,255,.05)}
.bio-row:last-child{border-bottom:none;padding-bottom:0}
.bio-lbl{color:var(--on-s-v);font-weight:700}
.bio-val{font-weight:900;text-align:left}

/* ═══ BOTTOM NAV (Mobile Safe) ═══ */
@media(min-width:992px){.bnav{display:none}}
.bnav-item .material-symbols-outlined{font-size:22px}

/* ═══ 4. MATCH PAGE ═══ */
/* ═══ DESIGN TOKENS ═══ */
html, body { overflow-x: hidden; width: 100vw; max-width: 100%; }
@media(min-width:768px){.wrap{padding:0 24px}}

/* ═══ STATE CONTROLLER (للتجربة) ═══ */
.state-switcher{position:fixed;top:0;left:0;width:100%;background:var(--s-high);z-index:999;display:flex;justify-content:center;gap:8px;padding:8px;border-bottom:2px solid var(--pri)}
.state-btn{background:var(--s-low);color:var(--on-s);border:1px solid var(--outline);padding:6px 16px;border-radius:8px;font-family:'Almarai';font-weight:800;cursor:pointer;font-size:12px;transition:.3s}
.state-btn.active{background:var(--pri-c);color:var(--pri);border-color:var(--pri)}

/* ═══ HEADER ═══ */

/* ═══ SMART LAYOUT ═══ */
.match-main{display:flex;flex-direction:column;gap:32px;padding-top:130px}
.state-pre #s-hero { order: 1; }
.state-pre #s-info { order: 2; }
.state-pre #s-lineup { order: 3; }
.state-pre #s-news { order: 4; }
.state-pre #s-events, .state-pre #s-video { display: none; }

.state-live #s-hero { order: 1; }
.state-live #s-events { order: 2; }
.state-live #s-lineup { order: 3; }
.state-live #s-news { order: 4; }
.state-live #s-info { order: 5; }
.state-live #s-video { display: none; }

.state-post #s-hero { order: 1; }
.state-post #s-video { order: 2; }
.state-post #s-events { order: 3; }
.state-post #s-lineup { order: 4; }
.state-post #s-news { order: 5; }
.state-post #s-info { order: 6; }

/* ═══ HERO (MATCH CARD) ═══ */
.hero-card{background:var(--s-cont);border-radius:var(--r-xl);padding:32px 16px;position:relative;overflow:hidden;box-shadow:var(--shadow);text-align:center;border:1px solid rgba(255,255,255,0.05);transition:all 0.3s ease}
.hero-bg{position:absolute;inset:0;background:url('https://images.unsplash.com/photo-1518605368461-1e1e38ce81ba?w=1200&fit=crop') center/cover;opacity:0.1;mask-image:linear-gradient(to bottom,black,transparent);-webkit-mask-image:linear-gradient(to bottom,black,transparent)}
.hero-content{position:relative;z-index:2}
.status-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;border-radius:12px;font-size:12px;font-weight:900;margin-bottom:24px;font-family:'Lexend'}

.state-pre .status-badge{background:var(--s-high);color:var(--on-s-v)}
.state-live .status-badge{background:var(--err-c);color:var(--err);animation:pulse-bg 2s infinite}
.state-post .status-badge{background:var(--s-high);color:var(--sec)}
@keyframes pulse-bg{0%,100%{box-shadow:0 0 0 0 rgba(255,113,108,0.4)}50%{box-shadow:0 0 0 10px rgba(255,113,108,0)}}

.match-teams{display:flex;justify-content:center;align-items:center;gap:16px;width:100%}
@media(min-width:768px){.match-teams{gap:40px}}
.m-team{display:flex;flex-direction:column;align-items:center;gap:12px;flex:1}
.m-logo{width:70px;height:70px;object-fit:contain;background:var(--s-high);border-radius:50%;padding:10px;box-shadow:0 8px 24px rgba(0,0,0,0.5)}
@media(min-width:768px){.m-logo{width:110px;height:110px;padding:16px}}
.m-name{font-size:18px;font-weight:900}
.m-score-box{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100px}
.m-score-val{font-family:'Lexend';font-size:40px;font-weight:900;letter-spacing:4px;line-height:1}
@media(min-width:768px){.m-score-val{font-size:64px}}
.state-pre .m-score-val{font-size:24px;letter-spacing:1px;color:var(--pri)}
.state-live .m-score-val{color:var(--err)}

/* ═══ GOAL SCORERS (مسجلي الأهداف - إضافة جديدة وحاسمة) ═══ */
.match-scorers{display:none;width:100%;max-width:600px;margin:24px auto 0;border-top:1px dashed rgba(255,255,255,0.1);padding-top:16px;animation:fadeIn 0.5s ease}
/* يظهر فقط في حالة المباشر ونهاية المباراة */
.state-live .match-scorers, .state-post .match-scorers {display:flex;justify-content:space-between}

.scorers-col{display:flex;flex-direction:column;gap:8px;flex:1}
/* عمود صاحب الأرض (يمين) */
.scorers-col.home{align-items:flex-start;text-align:right;padding-left:12px;border-left:1px solid rgba(255,255,255,0.05)}
/* عمود الضيف (يسار) */
.scorers-col.away{align-items:flex-end;text-align:left;padding-right:12px}

.scorer-item{font-size:12px;font-weight:800;color:var(--on-s-v);display:flex;align-items:center;gap:6px;line-height:1.2}
.scorer-item .material-symbols-outlined{font-size:14px;color:var(--on-s)}
.scorer-time{font-family:'Lexend';font-weight:900;color:var(--sec);font-size:11px;background:var(--s-low);padding:2px 6px;border-radius:6px}
/* تمييز أيقونة الكرة حسب الفريق */
.scorers-col.home .scorer-item .material-symbols-outlined{color:var(--sec)}
.scorers-col.away .scorer-item .material-symbols-outlined{color:var(--pri)}

/* ═══ SECTION TITLES ═══ */
.sec-h{display:flex;align-items:center;gap:8px;margin-bottom:20px;font-size:22px;font-weight:900}
.sec-h .material-symbols-outlined{color:var(--pri);font-size:28px}

/* ═══ MATCH INFO ═══ */
.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media(min-width:768px){.info-grid{grid-template-columns:repeat(4,1fr)}}
.info-card{background:var(--s-high);padding:16px;border-radius:16px;display:flex;align-items:center;gap:12px;border:1px solid rgba(255,255,255,0.02)}
.info-icon{width:40px;height:40px;border-radius:10px;background:var(--s-low);display:flex;align-items:center;justify-content:center;color:var(--pri)}
.info-data{display:flex;flex-direction:column}
.info-lbl{font-size:10px;font-weight:800;color:var(--on-s-v)}
.info-val{font-size:13px;font-weight:900;color:var(--on-s)}

/* ═══ TACTICAL LINEUPS (Tabs) ═══ */
.lineup-tabs{display:flex;background:var(--s-high);border-radius:12px;padding:4px;margin-bottom:24px;width:100%;box-shadow:var(--shadow)}
.l-tab-btn{flex:1;background:transparent;border:none;color:var(--on-s-v);font-family:'Almarai';font-weight:900;font-size:14px;padding:12px;border-radius:8px;cursor:pointer;transition:.2s;display:flex;align-items:center;justify-content:center;gap:8px}
.l-tab-btn img{width:20px;height:20px;object-fit:contain}
.l-tab-btn.active{background:var(--s-low);color:var(--on-s)}

.lineup-team-view{display:none;animation:fadeIn 0.3s ease}
.lineup-team-view.active{display:block}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

.pitch-2d-wrap{background:var(--s-cont);border-radius:var(--r-xl);padding:20px;margin-bottom:24px;border:1px solid rgba(255,255,255,0.05)}
.formation-lbl{text-align:center;font-size:12px;color:var(--on-s-v);font-weight:800;margin-bottom:16px;letter-spacing:1px}
.pitch-2d{width:100%;max-width:400px;aspect-ratio:3/4;margin:0 auto;background:repeating-linear-gradient(0deg, #015e2a, #015e2a 10%, #01662e 10%, #01662e 20%);border:2px solid rgba(255,255,255,0.4);border-radius:8px;position:relative;overflow:hidden;box-shadow:inset 0 0 40px rgba(0,0,0,0.5)}
.pitch-2d::before{content:'';position:absolute;top:50%;left:0;width:100%;height:2px;background:rgba(255,255,255,0.4);transform:translateY(-50%)}
.pitch-2d::after{content:'';position:absolute;top:50%;left:50%;width:80px;height:80px;border:2px solid rgba(255,255,255,0.4);border-radius:50%;transform:translate(-50%,-50%)}
.p-box-top{position:absolute;top:0;left:50%;transform:translateX(-50%);width:50%;height:15%;border:2px solid rgba(255,255,255,0.4);border-top:none}
.p-box-bot{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:50%;height:15%;border:2px solid rgba(255,255,255,0.4);border-bottom:none}

.pl-node{position:absolute;transform:translate(-50%, 50%);display:flex;flex-direction:column;align-items:center;width:60px;cursor:pointer;transition:transform 0.2s}
.pl-node:hover{transform:translate(-50%, 50%) scale(1.1);z-index:10}
.pl-node img{width:36px;height:36px;border-radius:50%;border:2px solid var(--s-high);background:var(--s-low);object-fit:cover;box-shadow:0 4px 10px rgba(0,0,0,0.5)}
.pl-name{background:rgba(0,0,0,0.8);color:#fff;font-size:10px;font-weight:900;padding:2px 6px;border-radius:4px;margin-top:4px;white-space:nowrap;text-align:center}

.squad-section{background:var(--s-high);border-radius:var(--r-xl);padding:24px;border:1px solid rgba(255,255,255,0.02)}
.sq-title{font-size:14px;font-weight:900;color:var(--on-s-v);margin-bottom:16px;display:flex;align-items:center;gap:8px;border-bottom:1px dashed rgba(255,255,255,0.05);padding-bottom:12px}
.coach-row{display:flex;align-items:center;gap:12px;margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid rgba(255,255,255,0.05)}
.coach-row img{width:48px;height:48px;border-radius:12px;object-fit:cover;border:1px solid var(--outline)}
.coach-info{display:flex;flex-direction:column}
.subs-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(min-width:640px){.subs-grid{grid-template-columns:repeat(3,1fr)}}
.sub-row{display:flex;align-items:center;gap:10px;background:var(--s-low);padding:8px 12px;border-radius:12px}
.sub-row img{width:32px;height:32px;border-radius:50%;object-fit:cover}
.sub-info{display:flex;flex-direction:column;flex:1}
.sub-num{font-family:'Lexend';font-size:10px;color:var(--pri);font-weight:900}
.sub-name{font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ═══ LIVE EVENTS TIMELINE ═══ */
.events-box{background:var(--s-high);border-radius:var(--r-xl);padding:24px;border:1px solid rgba(255,255,255,0.02)}
.ev-row{display:flex;align-items:flex-start;gap:16px;margin-bottom:24px;position:relative}
.ev-row:last-child{margin-bottom:0}
.ev-row::before{content:'';position:absolute;right:22px;top:30px;bottom:-30px;width:2px;background:var(--s-low);z-index:1}
.ev-row:last-child::before{display:none}
.ev-time{width:46px;height:30px;background:var(--s-low);border-radius:8px;display:flex;align-items:center;justify-content:center;font-family:'Lexend';font-weight:900;font-size:13px;color:var(--on-s-v);z-index:2;position:relative}
.ev-card{flex:1;background:var(--s-cont);padding:16px;border-radius:16px;display:flex;align-items:center;gap:12px;border-right:3px solid transparent}
.ev-card.goal{border-right-color:var(--sec)}
.ev-card.card-y{border-right-color:var(--sec)}
.ev-card.sub{border-right-color:var(--pri)}
.ev-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--s-low)}
.ev-goal-icon{color:var(--sec)}
.ev-card-icon{width:12px;height:16px;background:#facc15;border-radius:2px}
.ev-info{flex:1}
.ev-title{font-size:14px;font-weight:900}
.ev-sub{font-size:11px;color:var(--on-s-v);margin-top:4px}
.ev-player-img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid var(--s-high)}

/* ═══ HIGHLIGHTS VIDEO ═══ */
.video-wrap{position:relative;width:100%;padding-bottom:56.25%;background:#000;border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow)}
.video-wrap iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:none}

/* ═══ NEWS BENTO 5 ═══ */
.news-5{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:992px){
    .news-5{grid-template-columns:repeat(3, 1fr);grid-template-rows:repeat(2, 220px)}
    .n-feat{grid-column:1 / 3;grid-row:1 / 3}
    .n-small{grid-column:span 1;grid-row:span 1}
}
.n-card{position:relative;border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:var(--shadow);min-height:200px}
.n-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:0.5s}
.n-card:hover img{transform:scale(1.05)}
.n-overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 70%, transparent 100%)}
.n-content{position:relative;z-index:2;padding:20px;color:#fff}
.n-title{font-size:14px;font-weight:800;line-height:1.5;margin-bottom:8px}
.n-feat .n-title{font-size:24px}
.n-meta{font-size:11px;color:var(--pri);font-weight:900;display:flex;align-items:center;gap:4px}

/* ═══ BOTTOM NAV ═══ */
@media(min-width:992px){.bnav{display:none}}

/* ═══ 5. NATIONAL TEAM ═══ */
/* ═══ SAUDI ARENA — CORE & THEME SYSTEM ═══ */
:root {
    --bg: #131313;
    --s-low: #1c1b1b;
    --s-cont: #201f1f;
    --s-high: #2a2a2a;
    --on-s: #e5e2e1;
    --on-s-v: #becabd;
    --shadow: 0 8px 32px rgba(0,0,0,0.35);
    --border: rgba(255,255,255,0.05);
    --on-solid: #ffffff;
    --r-lg: 20px; --r-xl: 24px;

    /* ألوان المنتخب الافتراضية (السعودية) */
    --t-pri: #008c3c;
    --t-pri-c: rgba(0, 140, 60, 0.15);
    --t-sec: #ffffff;
}

[data-theme="light"] {
    --bg: #f3f4f6;
    --s-low: #ffffff;
    --s-cont: #f9fafb;
    --s-high: #ffffff;
    --on-s: #111827;
    --on-s-v: #4b5563;
    --shadow: 0 8px 24px rgba(0,0,0,0.06);
    --border: rgba(0,0,0,0.08);
    --on-solid: #ffffff;

    --t-pri: #006c2e;
    --t-pri-c: rgba(0, 108, 46, 0.1);
}

body.team-other {
    --t-pri: #facc15;
    --t-pri-c: rgba(250, 204, 21, 0.15);
    --t-sec: #15803d;
    --on-solid: #000;
}
[data-theme="light"] body.team-other {
    --t-pri: #ca8a04;
    --t-pri-c: rgba(202, 138, 4, 0.1);
    --on-solid: #fff;
}
body:not(.team-other) { --on-solid: #fff; }

html, body { overflow-x: hidden; width: 100vw; max-width: 100%; transition: background-color 0.3s, color 0.3s; }
body { background:var(--bg); color:var(--on-s); font-family:'Almarai',sans-serif; line-height:1.6; padding-bottom:90px; }
@media(min-width:768px){ .wrap{padding:0 24px} }

/* ═══ TEAM SWITCHER ═══ */
.team-switcher{position:fixed;top:60px;left:0;width:100%;background:var(--s-high);z-index:80;display:flex;justify-content:center;gap:8px;padding:8px;border-bottom:1px solid var(--border);transition:0.3s}
@media(min-width:768px){.team-switcher{top:68px}}
.t-btn{background:var(--s-low);color:var(--on-s);border:1px solid var(--border);padding:6px 16px;border-radius:8px;font-family:'Almarai';font-weight:800;cursor:pointer;font-size:12px;transition:.3s;display:flex;align-items:center;gap:6px}
.t-btn img{width:16px;height:16px;border-radius:2px}
.t-btn.active{background:var(--t-pri-c);color:var(--t-pri);border-color:var(--t-pri)}

/* ═══ HEADER ═══ */
@media(min-width:768px){.hdr-in{height:68px}}
@media(min-width:992px){.hdr-nav{display:flex}}
.hdr-actions{display:flex;gap:8px;align-items:center}

/* ═══ NATIONAL TEAM HERO ═══ */
.nt-hero{position:relative;margin-bottom:40px;border-radius:0 0 var(--r-xl) var(--r-xl);overflow:hidden;background:var(--s-cont);border-bottom:1px solid var(--t-pri)}
.nt-hero-bg{position:absolute;inset:0;opacity:0.3;background-size:cover;background-position:center;mask-image:linear-gradient(to top, var(--bg), transparent);-webkit-mask-image:linear-gradient(to top, transparent, black);transition:0.3s}
.nt-hero-in{position:relative;z-index:2;padding:40px 16px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}
.nt-logo-wrap{position:relative;width:120px;height:120px;display:flex;align-items:center;justify-content:center;background:var(--s-low);border-radius:50%;box-shadow:0 12px 40px rgba(0,0,0,0.4);border:4px solid var(--t-pri);padding:16px}
.nt-logo{width:100%;height:100%;object-fit:contain}
.nt-rank-badge{position:absolute;bottom:-10px;background:var(--t-pri);color:var(--on-solid);font-family:'Lexend';font-weight:900;font-size:14px;padding:4px 12px;border-radius:12px;border:3px solid var(--s-low);display:flex;align-items:center;gap:4px}
.nt-name{font-size:36px;font-weight:900;line-height:1.2;margin-bottom:4px}
.nt-nickname{font-size:16px;color:var(--t-pri);font-weight:800;margin-bottom:16px}
.nt-meta{display:flex;gap:16px;flex-wrap:wrap;justify-content:center}
.nt-meta-item{display:flex;align-items:center;gap:6px;background:var(--s-high);padding:6px 16px;border-radius:12px;font-size:12px;font-weight:800;border:1px solid var(--border);color:var(--on-s-v)}

/* ═══ SECTION TITLES ═══ */
.sec-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.sec-t{font-size:20px;font-weight:900;display:flex;align-items:center;gap:10px}
@media(min-width:768px){.sec-t{font-size:24px}}
.sec-t .material-symbols-outlined{color:var(--t-pri);font-size:28px}
.sec{margin-bottom:48px}

/* ═══ NEXT MATCH CARD ═══ */
.match-card{background:linear-gradient(135deg, var(--s-high), var(--t-pri-c));border-radius:var(--r-xl);padding:24px;border:1px solid var(--border);box-shadow:var(--shadow);position:relative;overflow:hidden}
.match-badge{display:inline-flex;align-items:center;gap:6px;background:var(--t-pri);color:var(--on-solid);padding:4px 16px;border-radius:8px;font-size:11px;font-weight:900;margin-bottom:20px}
.match-teams{display:flex;justify-content:center;align-items:center;gap:24px}
.m-team{display:flex;flex-direction:column;align-items:center;gap:12px;width:30%}
.m-team img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:3px solid var(--s-low);box-shadow:0 4px 12px rgba(0,0,0,0.2)}
.m-team span{font-size:14px;font-weight:900;text-align:center}
.m-time{display:flex;flex-direction:column;align-items:center}
.m-time-val{font-family:'Lexend';font-size:32px;font-weight:900;color:var(--on-s);line-height:1}
.m-date{font-size:12px;color:var(--on-s-v);margin-top:4px}

/* ═══ NEWS BENTO ═══ */
.news-5{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:992px){
    .news-5{grid-template-columns:repeat(3, 1fr);grid-template-rows:repeat(2, 220px)}
    .n-feat{grid-column:1 / 3;grid-row:1 / 3}
    .n-small{grid-column:span 1;grid-row:span 1}
}
.n-card{position:relative;border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:var(--shadow);min-height:200px}
.n-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:0.5s}
.n-card:hover img{transform:scale(1.05)}
.n-overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 70%, transparent 100%)}
.n-content{position:relative;z-index:2;padding:20px;color:#ffffff}
.n-title{font-size:14px;font-weight:800;line-height:1.5;margin-bottom:8px}
.n-feat .n-title{font-size:24px}
.n-meta{font-size:11px;color:var(--t-pri);display:flex;align-items:center;gap:4px;font-weight:900}

/* ═══ SQUAD (القائمة المفصلة) ═══ */
.squad-group{margin-bottom:32px}
.squad-group-title{font-size:16px;font-weight:900;color:var(--on-s-v);margin-bottom:16px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border);padding-bottom:8px}
.squad-wrap{display:flex;gap:16px;overflow-x:auto;padding-bottom:16px;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
@media(min-width:768px){.squad-wrap{margin-left:0;margin-right:0;padding-left:0;padding-right:0}}
.sq-card{min-width:120px;background:var(--s-high);padding:16px 12px;border-radius:16px;text-align:center;border:1px solid var(--border);position:relative;transition:0.3s;box-shadow:var(--shadow)}
.sq-card:hover{transform:translateY(-4px);border-color:var(--t-pri)}
.sq-img{width:64px;height:64px;border-radius:50%;object-fit:cover;margin:0 auto 12px;border:2px solid var(--s-cont);background:var(--bg)}
.sq-name{font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--on-s);margin-bottom:4px}
.sq-club{font-size:11px;color:var(--on-s-v);display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sq-club img{width:16px;height:16px;border-radius:2px;background:#fff;padding:1px}

/* ═══ TROPHY CABINET ═══ */
.trophy-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));gap:16px}
.trophy-card{background:var(--s-high);border:1px solid var(--border);border-radius:16px;padding:24px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:0.3s;box-shadow:var(--shadow)}
.trophy-card:hover{background:var(--t-pri-c);border-color:var(--t-pri)}
.trophy-icon{font-size:48px;color:var(--t-pri);margin-bottom:16px}
.trophy-count{font-family:'Lexend';font-size:28px;font-weight:900;color:var(--on-s);margin-bottom:4px;line-height:1}
.trophy-name{font-size:13px;font-weight:800;color:var(--on-s-v)}

/* ═══ BOTTOM NAV ═══ */
@media(min-width:992px){.bnav{display:none}}

/* ═══ 6. ACL — دوري أبطال آسيا ═══ */
/* ═══ SAUDI ARENA — Design Tokens ═══ */
html, body { overflow-x: hidden; width: 100vw; max-width: 100%; }
@media(min-width:768px){.wrap{padding:0 24px}}

/* ═══ HEADER ═══ */
@media(min-width:768px){.hdr-in{height:68px}}
@media(min-width:992px){.hdr-nav{display:flex}}

/* ═══ TOURNAMENT HERO ═══ */
.lg-hero{background:var(--s-low);padding:40px 0;margin-bottom:40px;position:relative;overflow:hidden;border-bottom:1px solid rgba(255,255,255,0.05)}
.lg-hero-bg{position:absolute;inset:0;opacity:0.1;background:url('https://images.unsplash.com/photo-1518605368461-1e1e38ce81ba?w=1200&fit=crop') center/cover;mask-image:linear-gradient(to top,transparent,black);-webkit-mask-image:linear-gradient(to top,transparent,black)}
.lg-hero-in{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;position:relative;z-index:2}
.lg-hero-logo{width:100px;height:100px;object-fit:contain;background:var(--s-high);border-radius:50%;padding:15px;box-shadow:0 0 40px rgba(233,195,73,0.15);border:2px solid var(--sec)}
.lg-hero-info h1{font-size:32px;font-weight:900;line-height:1.2;margin-bottom:8px}
.lg-hero-tag{background:var(--pri-c);color:var(--pri);padding:6px 16px;border-radius:12px;font-size:13px;font-weight:900;display:inline-flex;align-items:center;gap:6px}

/* ═══ SECTION HEADERS ═══ */
.sec-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.sec-t{font-size:20px;font-weight:900;display:flex;align-items:center;gap:10px}
@media(min-width:768px){.sec-t{font-size:24px}}
.sec-t .material-symbols-outlined{color:var(--pri);font-size:28px}
.sec{margin-bottom:56px}

/* ═══ SMART BRACKET NAVIGATOR ═══ */
.bracket-nav-wrap{margin-bottom:24px;display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:8px}
.b-nav-btn{white-space:nowrap;background:var(--s-high);border:1px solid rgba(255,255,255,0.05);color:var(--on-s-v);font-family:'Almarai';font-weight:800;font-size:13px;padding:10px 20px;border-radius:12px;cursor:pointer;transition:.3s}
.b-nav-btn.active{background:var(--pri-c);color:var(--pri);border-color:var(--pri)}

/* ═══ TOURNAMENT BRACKET (دور 16 إلى النهائي) ═══ */
.bracket-wrap{margin-left:-16px;margin-right:-16px;padding:0 16px;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
@media(min-width:768px){.bracket-wrap{margin:left:0;margin-right:0;padding:0}}
.bracket-container{display:flex;gap:40px;padding-bottom:24px;min-width:max-content}
.bracket-col{display:flex;flex-direction:column;justify-content:space-around;gap:24px;width:260px;position:relative}

/* Match Card */
.b-match{background:var(--s-high);border-radius:16px;border:1px solid rgba(255,255,255,0.05);padding:14px;box-shadow:var(--shadow);position:relative;z-index:2;transition:all .3s ease;cursor:pointer;display:block;text-align:right}
.b-match:hover{transform:translateY(-4px);border-color:var(--pri);box-shadow:0 12px 40px rgba(128,217,150,0.15)}
.b-match::before{content:'';position:absolute;inset:0;background:var(--pri-c);opacity:0;transition:0.3s;border-radius:16px;z-index:-1}
.b-match:hover::before{opacity:0.3}

/* Aggregate & Score */
.b-agg{font-size:10px;font-weight:900;color:var(--on-s-v);background:var(--s-low);padding:4px 8px;border-radius:6px;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.b-agg-score{color:var(--pri);font-family:'Lexend'}
.b-team{display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:14px;font-weight:800}
.b-team:first-of-type{border-bottom:1px solid rgba(255,255,255,0.05)}
.b-team-info{display:flex;align-items:center;gap:10px}
.b-team-info img{width:24px;height:24px;object-fit:contain}
.b-score{font-family:'Lexend';font-weight:900;font-size:16px;color:var(--on-s-v);background:var(--s-low);width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px}
.b-team.winner .b-score{color:var(--pri);background:var(--pri-c)}
.b-team.winner span:not(.b-score){color:#fff}

/* CSS Connecting Lines (4 Columns logic) */
.bracket-col:not(:last-child) .b-match::after{content:'';position:absolute;right:-20px;top:50%;width:20px;height:2px;background:rgba(255,255,255,0.1);z-index:1}
.bracket-col:not(:first-child) .b-match::before{content:'';position:absolute;left:-20px;top:50%;width:20px;height:2px;background:rgba(255,255,255,0.1);z-index:1}
.bracket-col:nth-child(1) .b-match:nth-child(odd)::after,
.bracket-col:nth-child(2) .b-match:nth-child(odd)::after{right:-20px;width:20px;border-right:2px solid rgba(255,255,255,0.1);height:calc(50% + 12px);top:50%}
.bracket-col:nth-child(1) .b-match:nth-child(even)::after,
.bracket-col:nth-child(2) .b-match:nth-child(even)::after{right:-20px;width:20px;border-right:2px solid rgba(255,255,255,0.1);height:calc(50% + 12px);bottom:50%;top:auto}

/* ═══ MODAL (تفاصيل الذهاب والإياب) ═══ */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.8);backdrop-filter:blur(8px);z-index:999;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:0.3s ease;padding:16px}
.modal-overlay.active{opacity:1;pointer-events:all}
.modal-content{background:var(--bg);width:100%;max-width:450px;border-radius:var(--r-xl);border:1px solid rgba(255,255,255,0.1);box-shadow:var(--shadow-lg);transform:translateY(20px);transition:0.3s ease;overflow:hidden}
.modal-overlay.active .modal-content{transform:translateY(0)}
.modal-header{background:var(--s-high);padding:20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,0.05)}
.modal-title{font-size:16px;font-weight:900;color:var(--pri)}
.modal-close{background:none;border:none;color:var(--on-s-v);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:50%;transition:0.2s}
.modal-close:hover{background:var(--s-low);color:#fff}
.modal-body{padding:20px;max-height:70vh;overflow-y:auto}

.leg-card{background:var(--s-high);border-radius:16px;padding:16px;margin-bottom:16px;border:1px solid rgba(255,255,255,0.03)}
.leg-card:last-child{margin-bottom:0}
.leg-header{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:800;color:var(--on-s-v);margin-bottom:16px;padding-bottom:12px;border-bottom:1px dashed rgba(255,255,255,0.05)}
.leg-badge{background:var(--s-low);padding:4px 10px;border-radius:6px;color:var(--on-s)}
.leg-match{display:flex;justify-content:space-between;align-items:center}
.leg-team{display:flex;flex-direction:column;align-items:center;gap:8px;width:30%}
.leg-team img{width:40px;height:40px;object-fit:contain}
.leg-team span{font-size:12px;font-weight:900;text-align:center}
.leg-score{font-family:'Lexend';font-size:24px;font-weight:900;color:var(--on-s)}

/* ═══ MODERN NEWS BENTO (5 Items ONLY) ═══ */
.news-5{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:992px){
    .news-5{grid-template-columns:repeat(3, 1fr);grid-template-rows:repeat(2, 220px)}
    .n-feat{grid-column:1 / 3;grid-row:1 / 3}
    .n-small{grid-column:span 1;grid-row:span 1}
}
.n-card{position:relative;border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:var(--shadow);cursor:pointer;min-height:200px}
.n-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 0.5s ease}
.n-card:hover img{transform:scale(1.05)}
.n-overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 70%, transparent 100%)}
.n-content{position:relative;z-index:2;padding:20px;color:#ffffff}
.n-title{font-size:14px;font-weight:800;line-height:1.5;margin-bottom:8px}
.n-feat .n-title{font-size:20px} @media(min-width:992px){.n-feat .n-title{font-size:28px}}
.n-meta{font-size:11px;color:var(--pri);display:flex;align-items:center;gap:4px;font-weight:900}
.n-badge{position:absolute;top:16px;right:16px;background:var(--sec);color:#000;padding:4px 10px;font-size:11px;font-weight:900;border-radius:6px;z-index:2}

/* ═══ TOP 5 STATS ═══ */
.stats-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:992px){.stats-grid{grid-template-columns:1fr 1fr}}
.stat-panel{background:var(--s-high);border-radius:var(--r-xl);padding:24px;box-shadow:var(--shadow)}
.stat-panel-t{font-size:18px;font-weight:900;color:var(--on-s);margin-bottom:20px;display:flex;align-items:center;gap:8px}
.stat-list{display:flex;flex-direction:column;gap:12px}
.stat-row{display:flex;align-items:center;gap:12px;padding:12px;background:var(--s-low);border-radius:12px;transition:.2s}
.stat-row:hover{transform:translateX(-4px);background:var(--s-cont)}
.stat-rank{font-family:'Lexend';font-size:16px;font-weight:900;color:var(--on-s-v);width:24px;text-align:center}
.stat-row:nth-child(1) .stat-rank{color:var(--sec);font-size:20px}
.stat-img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid var(--s-high)}
.stat-info{flex:1;display:flex;flex-direction:column}
.stat-name{font-size:14px;font-weight:800}
.stat-club{font-size:11px;color:var(--on-s-v);display:flex;align-items:center;gap:4px;margin-top:2px}
.stat-club img{width:12px;height:12px}
.stat-val{font-family:'Lexend';font-size:22px;font-weight:900;color:var(--pri)}

/* ═══ ARCHIVE GROUPS (أرشيف المجموعات) ═══ */
.tabs-wrap{display:flex;background:var(--s-high);border-radius:12px;padding:4px;margin-bottom:24px;width:fit-content;box-shadow:var(--shadow)}
.tab-btn{background:transparent;border:none;color:var(--on-s-v);font-family:'Almarai';font-weight:900;font-size:14px;padding:10px 32px;border-radius:8px;cursor:pointer;transition:.2s}
.tab-btn.on{background:var(--s-low);color:var(--sec)}
.st-card{background:var(--s-high);border-radius:var(--r-xl);box-shadow:var(--shadow);overflow:hidden;display:none}
.st-card.active{display:block;animation:fadeIn 0.3s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.st-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.st-tbl{width:100%;border-collapse:collapse;min-width:400px}
.st-tbl th{font-size:11px;font-weight:800;color:var(--on-s-v);padding:14px 8px;text-align:center;background:var(--s-low)}
.st-tbl th:nth-child(2){text-align:right}
.st-tbl td{padding:12px 8px;font-size:13px;font-weight:700;text-align:center;border-bottom:1px solid rgba(255,255,255,.03)}
.st-team{display:flex;align-items:center;gap:10px;text-align:right}
.st-team img{width:24px;height:24px}
.st-rank{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-size:11px;font-weight:900;margin:0 auto}
.st-row-q td{background:rgba(128,217,150,.04);position:relative}
.st-row-q td:first-child::before{content:'';position:absolute;right:0;top:0;bottom:0;width:3px;background:var(--pri)}
.st-pts{font-family:'Lexend';font-weight:900;color:var(--pri);font-size:16px}

/* ═══ BOTTOM NAV ═══ */
@media(min-width:992px){.bnav{display:none}}
.bnav-item .material-symbols-outlined{font-size:22px}

/* ═══ 7. KING CUP — كأس خادم الحرمين ═══ */
/* ═══ SAUDI ARENA — Design Tokens ═══ */
html, body { overflow-x: hidden; width: 100vw; max-width: 100%; }
@media(min-width:768px){.wrap{padding:0 24px}}

/* ═══ HEADER ═══ */
@media(min-width:768px){.hdr-in{height:68px}}
@media(min-width:992px){.hdr-nav{display:flex}}

/* ═══ TOURNAMENT HERO ═══ */
.lg-hero{background:var(--s-low);padding:40px 0;margin-bottom:40px;position:relative;overflow:hidden;border-bottom:1px solid rgba(233,195,73,0.1)}
.lg-hero-bg{position:absolute;inset:0;opacity:0.1;background:url('https://images.unsplash.com/photo-1518605368461-1e1e38ce81ba?w=1200&fit=crop') center/cover;mask-image:linear-gradient(to top,transparent,black);-webkit-mask-image:linear-gradient(to top,transparent,black)}
.lg-hero-in{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;position:relative;z-index:2}
.lg-hero-logo{width:100px;height:100px;object-fit:contain;background:var(--s-high);border-radius:50%;padding:15px;box-shadow:0 0 50px rgba(233,195,73,0.2);border:2px solid var(--sec);display:flex;align-items:center;justify-content:center}
.lg-hero-logo .material-symbols-outlined{font-size:60px;color:var(--sec)}
.lg-hero-info h1{font-size:32px;font-weight:900;line-height:1.2;margin-bottom:8px;color:var(--sec)}
.lg-hero-tag{background:var(--sec-c);color:var(--sec);padding:6px 16px;border-radius:12px;font-size:13px;font-weight:900;display:inline-flex;align-items:center;gap:6px}

/* ═══ SECTION HEADERS ═══ */
.sec-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.sec-t{font-size:20px;font-weight:900;display:flex;align-items:center;gap:10px}
@media(min-width:768px){.sec-t{font-size:24px}}
.sec-t .material-symbols-outlined{color:var(--sec);font-size:28px}
.sec{margin-bottom:56px}

/* ═══ SMART BRACKET NAVIGATOR ═══ */
.bracket-nav-wrap{margin-bottom:24px;display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:8px}
.b-nav-btn{white-space:nowrap;background:var(--s-high);border:1px solid rgba(255,255,255,0.05);color:var(--on-s-v);font-family:'Almarai';font-weight:800;font-size:13px;padding:10px 20px;border-radius:12px;cursor:pointer;transition:.3s}
.b-nav-btn.active{background:var(--sec-c);color:var(--sec);border-color:var(--sec)}

/* ═══ SINGLE-ELIMINATION BRACKET ═══ */
.bracket-wrap{margin-left:-16px;margin-right:-16px;padding:0 16px;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
@media(min-width:768px){.bracket-wrap{margin:left:0;margin-right:0;padding:0}}
.bracket-container{display:flex;gap:40px;padding-bottom:24px;min-width:max-content}
.bracket-col{display:flex;flex-direction:column;justify-content:space-around;gap:24px;width:260px;position:relative}

/* Match Card Button */
.b-match{background:var(--s-high);border-radius:16px;border:1px solid rgba(255,255,255,0.05);padding:14px;box-shadow:var(--shadow);position:relative;z-index:2;transition:all .3s ease;display:block;text-align:right;cursor:pointer;width:100%}
.b-match:hover{transform:translateY(-4px);border-color:var(--sec);box-shadow:0 12px 40px rgba(233,195,73,0.15)}
.b-match::before{content:'';position:absolute;inset:0;background:var(--sec-c);opacity:0;transition:0.3s;border-radius:16px;z-index:-1}
.b-match:hover::before{opacity:0.2}

.b-status{font-size:10px;font-weight:900;color:var(--on-s-v);background:var(--s-low);padding:4px 8px;border-radius:6px;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.b-status-txt{color:var(--sec)}
.st-postponed{color:var(--warn) !important; background:var(--warn-c) !important; padding:2px 8px; border-radius:4px}
.st-canceled{color:var(--err) !important; background:var(--err-c) !important; padding:2px 8px; border-radius:4px}

.b-team{display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:14px;font-weight:800}
.b-team:first-of-type{border-bottom:1px solid rgba(255,255,255,0.05)}
.b-team-info{display:flex;align-items:center;gap:10px}
.b-team-info img{width:24px;height:24px;object-fit:contain}
.b-score{font-family:'Lexend';font-weight:900;font-size:16px;color:var(--on-s-v);background:var(--s-low);width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px}
.b-team.winner .b-score{color:#000;background:var(--sec)}
.b-team.winner span:not(.b-score){color:#fff}

/* CSS Connecting Lines */
.bracket-col:not(:last-child) .b-match::after{content:'';position:absolute;right:-20px;top:50%;width:20px;height:2px;background:rgba(255,255,255,0.1);z-index:1}
.bracket-col:not(:first-child) .b-match-line::before{content:'';position:absolute;left:-20px;top:50%;width:20px;height:2px;background:rgba(255,255,255,0.1);z-index:1}
.bracket-col:nth-child(1) .b-match:nth-child(odd)::after,
.bracket-col:nth-child(2) .b-match:nth-child(odd)::after{right:-20px;width:20px;border-right:2px solid rgba(255,255,255,0.1);height:calc(50% + 12px);top:50%}
.bracket-col:nth-child(1) .b-match:nth-child(even)::after,
.bracket-col:nth-child(2) .b-match:nth-child(even)::after{right:-20px;width:20px;border-right:2px solid rgba(255,255,255,0.1);height:calc(50% + 12px);bottom:50%;top:auto}

/* ═══ UNIVERSAL MODAL ═══ */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.85);backdrop-filter:blur(10px);z-index:999;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:0.3s ease;padding:16px}
.modal-overlay.active{opacity:1;pointer-events:all}
.modal-content{background:var(--bg);width:100%;max-width:450px;border-radius:var(--r-xl);border:1px solid rgba(255,255,255,0.1);box-shadow:var(--shadow);transform:translateY(20px);transition:0.3s ease;overflow:hidden;display:flex;flex-direction:column;max-height:90vh}
.modal-overlay.active .modal-content{transform:translateY(0)}

.modal-header{background:var(--s-high);padding:16px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,0.05)}
.modal-title{font-size:14px;font-weight:900;color:var(--sec);display:flex;align-items:center;gap:8px}
.modal-close{background:none;border:none;color:var(--on-s-v);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:50%;transition:0.2s}
.modal-close:hover{background:var(--s-low);color:#fff}

.modal-body{padding:24px 20px;overflow-y:auto}
.md-status{text-align:center;margin-bottom:20px}
.md-status-badge{display:inline-block;padding:4px 16px;border-radius:12px;font-size:11px;font-weight:900;background:var(--s-low);color:var(--on-s-v)}
.md-status-badge.live{background:var(--err-c);color:var(--err);animation:pulse-bg 2s infinite}
.md-status-badge.postponed{background:var(--warn-c);color:var(--warn)}
.md-status-badge.canceled{background:var(--err-c);color:var(--err)}
@keyframes pulse-bg{0%,100%{box-shadow:0 0 0 0 rgba(255,113,108,0.4)}50%{box-shadow:0 0 0 10px rgba(255,113,108,0)}}

.md-match-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.md-team{display:flex;flex-direction:column;align-items:center;gap:8px;width:30%}
.md-team img{width:60px;height:60px;object-fit:contain;background:var(--s-high);border-radius:50%;padding:8px}
.md-team span{font-size:13px;font-weight:900;text-align:center}
.md-score-wrap{display:flex;flex-direction:column;align-items:center;gap:4px}
.md-score{font-family:'Lexend';font-size:36px;font-weight:900;color:var(--on-s);letter-spacing:2px;line-height:1}
.md-pens{font-family:'Lexend';font-size:12px;color:var(--sec);font-weight:900;background:var(--sec-c);padding:2px 8px;border-radius:6px;display:none}

.md-scorers-box{border-top:1px dashed rgba(255,255,255,0.1);padding-top:16px;margin-top:16px;display:flex;justify-content:space-between;gap:8px}
.md-sc-col{display:flex;flex-direction:column;gap:8px;flex:1}
.md-sc-col.home{align-items:flex-start;text-align:right}
.md-sc-col.away{align-items:flex-end;text-align:left}
.md-sc-item{font-size:11px;font-weight:800;color:var(--on-s-v);display:flex;align-items:center;gap:4px;line-height:1.2}
.md-sc-item .material-symbols-outlined{font-size:12px;color:var(--sec)}
.md-sc-time{font-family:'Lexend';font-weight:900;color:var(--on-s);font-size:10px;background:var(--s-low);padding:2px 4px;border-radius:4px}

.md-msg-box{background:var(--s-low);padding:16px;border-radius:12px;text-align:center;font-size:12px;color:var(--on-s-v);display:none;margin-top:16px}

/* ═══ MODERN NEWS BENTO ═══ */
.news-5{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:992px){
    .news-5{grid-template-columns:repeat(3, 1fr);grid-template-rows:repeat(2, 220px)}
    .n-feat{grid-column:1 / 3;grid-row:1 / 3}
    .n-small{grid-column:span 1;grid-row:span 1}
}
.n-card{position:relative;border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:var(--shadow);cursor:pointer;min-height:200px}
.n-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 0.5s ease}
.n-card:hover img{transform:scale(1.05)}
.n-overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 70%, transparent 100%)}
.n-content{position:relative;z-index:2;padding:20px;color:#ffffff}
.n-title{font-size:14px;font-weight:800;line-height:1.5;margin-bottom:8px}
.n-feat .n-title{font-size:24px} @media(min-width:992px){.n-feat .n-title{font-size:28px}}
.n-meta{font-size:11px;color:var(--sec);display:flex;align-items:center;gap:4px;font-weight:900}
.n-badge{position:absolute;top:16px;right:16px;background:var(--sec);color:#000;padding:4px 10px;font-size:11px;font-weight:900;border-radius:6px;z-index:2}

/* ═══ TOP STATS ═══ */
.stats-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:992px){.stats-grid{grid-template-columns:1fr 1fr}}
.stat-panel{background:var(--s-high);border-radius:var(--r-xl);padding:24px;box-shadow:var(--shadow);border:1px solid rgba(233,195,73,0.05)}
.stat-panel-t{font-size:18px;font-weight:900;color:var(--on-s);margin-bottom:20px;display:flex;align-items:center;gap:8px}
.stat-list{display:flex;flex-direction:column;gap:12px}
.stat-row{display:flex;align-items:center;gap:12px;padding:12px;background:var(--s-low);border-radius:12px;transition:.2s;overflow:hidden}
.stat-row:hover{transform:translateX(-4px);background:var(--s-cont)}
.stat-rank{font-family:'Lexend';font-size:16px;font-weight:900;color:var(--on-s-v);width:24px;text-align:center;flex-shrink:0}
.stat-row:nth-child(1) .stat-rank{color:var(--sec);font-size:20px}
.stat-img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid var(--s-high);flex-shrink:0}
.stat-info{flex:1;display:flex;flex-direction:column;min-width:0}
.stat-name{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat-club{font-size:11px;color:var(--on-s-v);display:flex;align-items:center;gap:4px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat-club img{width:12px;height:12px;flex-shrink:0}
.stat-val{font-family:'Lexend';font-size:22px;font-weight:900;color:var(--sec);flex-shrink:0}

/* ═══ BOTTOM NAV ═══ */
@media(min-width:992px){.bnav{display:none}}
.bnav-item .material-symbols-outlined{font-size:22px}

/* ═══ 8. SUPER CUP — السوبر السعودي ═══ */
/* ═══ SAUDI ARENA — THEME SYSTEM ═══ */
:root {
    /* DARK MODE (الافتراضي) */
    --bg: #131313;
    --s-low: #1c1b1b;
    --s-cont: #201f1f;
    --s-high: #2a2a2a;
    --on-s: #e5e2e1;
    --on-s-v: #becabd;
    --pri: #80d996;
    --pri-c: #006c35;
    --sec: #e9c349;
    --sec-c: #af8d11;
    --err: #ff716c;
    --err-c: #9f0519;
    --warn: #facc15;
    --warn-c: #7a620b;
    --shadow: 0 8px 32px rgba(0,0,0,0.35);
    --border: rgba(255,255,255,0.05);
    --on-solid: #000000; /* لون النص فوق الأزرار الملونة */

    --r: 16px; --r-lg: 20px; --r-xl: 24px;
}

[data-theme="light"] {
    /* LIGHT MODE (الوضع النهاري) */
    --bg: #f3f4f6;
    --s-low: #ffffff;
    --s-cont: #f9fafb;
    --s-high: #ffffff;
    --on-s: #111827;
    --on-s-v: #4b5563;
    /* تعتيم الألوان الأساسية قليلاً لتناسب الخلفية البيضاء */
    --pri: #008a3d;
    --pri-c: #def7e5;
    --sec: #b48600;
    --sec-c: #fef3c7;
    --err: #dc2626;
    --err-c: #fee2e2;
    --warn: #d97706;
    --warn-c: #fef3c7;
    --shadow: 0 8px 24px rgba(0,0,0,0.06);
    --border: rgba(0,0,0,0.08);
    --on-solid: #ffffff; /* لون النص في النهار يصبح أبيض فوق الأزرار الداكنة */
}

html, body { overflow-x: hidden; width: 100vw; max-width: 100%; transition: background-color 0.3s ease, color 0.3s ease; }
body { background:var(--bg); color:var(--on-s); font-family:'Almarai',sans-serif; line-height:1.6; padding-bottom:90px; }
@media(min-width:768px){ .wrap{padding:0 24px} }

/* ═══ HEADER ═══ */
@media(min-width:768px){.hdr-in{height:68px}}
@media(min-width:992px){.hdr-nav{display:flex}}
.hdr-actions{display:flex;gap:8px;align-items:center}

/* ═══ TOURNAMENT HERO ═══ */
.lg-hero{background:var(--s-low);padding:40px 0;margin-bottom:40px;position:relative;overflow:hidden;border-bottom:1px solid var(--border);transition:0.3s}
.lg-hero-bg{position:absolute;inset:0;opacity:0.05;background:url('https://images.unsplash.com/photo-1518605368461-1e1e38ce81ba?w=1200&fit=crop') center/cover;mask-image:linear-gradient(to top,transparent,black);-webkit-mask-image:linear-gradient(to top,transparent,black)}
.lg-hero-in{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;position:relative;z-index:2}
.lg-hero-logo{width:100px;height:100px;object-fit:contain;background:var(--s-high);border-radius:50%;padding:15px;box-shadow:var(--shadow);border:2px solid var(--sec);display:flex;align-items:center;justify-content:center}
.lg-hero-logo .material-symbols-outlined{font-size:60px;color:var(--sec)}
.lg-hero-info h1{font-size:32px;font-weight:900;line-height:1.2;margin-bottom:8px;color:var(--sec)}
.lg-hero-tag{background:var(--sec-c);color:var(--sec);padding:6px 16px;border-radius:12px;font-size:13px;font-weight:900;display:inline-flex;align-items:center;gap:6px}

/* ═══ SECTION HEADERS ═══ */
.sec-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.sec-t{font-size:20px;font-weight:900;display:flex;align-items:center;gap:10px}
@media(min-width:768px){.sec-t{font-size:24px}}
.sec-t .material-symbols-outlined{color:var(--sec);font-size:28px}
.sec{margin-bottom:56px}

/* ═══ SMART BRACKET NAVIGATOR ═══ */
.bracket-nav-wrap{margin-bottom:24px;display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:8px}
.b-nav-btn{white-space:nowrap;background:var(--s-high);border:1px solid var(--border);color:var(--on-s-v);font-family:'Almarai';font-weight:800;font-size:13px;padding:10px 20px;border-radius:12px;cursor:pointer;transition:.3s}
.b-nav-btn.active{background:var(--sec-c);color:var(--sec);border-color:var(--sec)}

/* ═══ SUPER CUP BRACKET (مكثفة: عمودين فقط) ═══ */
.bracket-wrap{margin-left:-16px;margin-right:-16px;padding:0 16px;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
@media(min-width:768px){.bracket-wrap{margin:left:0;margin-right:0;padding:0}}
.bracket-container{display:flex;gap:40px;padding-bottom:24px;min-width:max-content}
.bracket-col{display:flex;flex-direction:column;justify-content:space-around;gap:24px;width:280px;position:relative}

/* Match Card */
.b-match{background:var(--s-high);border-radius:16px;border:1px solid var(--border);padding:14px;box-shadow:var(--shadow);position:relative;z-index:2;transition:all .3s ease;display:block;text-align:right;cursor:pointer;width:100%}
.b-match:hover{transform:translateY(-4px);border-color:var(--sec)}
.b-match::before{content:'';position:absolute;inset:0;background:var(--sec-c);opacity:0;transition:0.3s;border-radius:16px;z-index:-1}
.b-match:hover::before{opacity:0.2}

.b-status{font-size:10px;font-weight:900;color:var(--on-s-v);background:var(--s-low);padding:4px 8px;border-radius:6px;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.b-status-txt{color:var(--sec)}

.b-team{display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:14px;font-weight:800}
.b-team:first-of-type{border-bottom:1px solid var(--border)}
.b-team-info{display:flex;align-items:center;gap:10px}
.b-team-info img{width:28px;height:28px;object-fit:contain;background:var(--s-low);border-radius:50%;padding:2px;border:1px solid var(--border)}
.b-score{font-family:'Lexend';font-weight:900;font-size:16px;color:var(--on-s-v);background:var(--s-low);width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px}

/* تغيير لون النص للأسماء والنتيجة عند الفوز حسب الثيم */
.b-team.winner .b-score{color:var(--on-solid);background:var(--sec)}
.b-team.winner span:not(.b-score){color:var(--on-s)}

/* CSS Connecting Lines (مخصصة لعمودين فقط) */
.bracket-col:not(:last-child) .b-match::after{content:'';position:absolute;right:-20px;top:50%;width:20px;height:2px;background:var(--border);z-index:1}
.bracket-col:not(:first-child) .b-match-line::before{content:'';position:absolute;left:-20px;top:50%;width:20px;height:2px;background:var(--border);z-index:1}
.bracket-col:nth-child(1) .b-match:nth-child(1)::after{right:-20px;width:20px;border-right:2px solid var(--border);height:calc(50% + 12px);top:50%}
.bracket-col:nth-child(1) .b-match:nth-child(2)::after{right:-20px;width:20px;border-right:2px solid var(--border);height:calc(50% + 12px);bottom:50%;top:auto}

/* ═══ UNIVERSAL MODAL ═══ */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.6);backdrop-filter:blur(8px);z-index:999;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:0.3s ease;padding:16px}
.modal-overlay.active{opacity:1;pointer-events:all}
.modal-content{background:var(--bg);width:100%;max-width:450px;border-radius:var(--r-xl);border:1px solid var(--border);box-shadow:var(--shadow);transform:translateY(20px);transition:0.3s ease;overflow:hidden;display:flex;flex-direction:column;max-height:90vh}
.modal-overlay.active .modal-content{transform:translateY(0)}
.modal-header{background:var(--s-high);padding:16px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border)}
.modal-title{font-size:14px;font-weight:900;color:var(--sec);display:flex;align-items:center;gap:8px}
.modal-close{background:var(--s-low);border:1px solid var(--border);color:var(--on-s-v);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:50%;transition:0.2s}
.modal-close:hover{color:var(--err);border-color:var(--err)}

.modal-body{padding:24px 20px;overflow-y:auto}
.md-status{text-align:center;margin-bottom:20px}
.md-status-badge{display:inline-block;padding:4px 16px;border-radius:12px;font-size:11px;font-weight:900;background:var(--s-low);color:var(--on-s-v);border:1px solid var(--border)}
.md-match-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.md-team{display:flex;flex-direction:column;align-items:center;gap:8px;width:30%}
.md-team img{width:60px;height:60px;object-fit:contain;background:var(--s-low);border-radius:50%;padding:8px;border:1px solid var(--border)}
.md-team span{font-size:13px;font-weight:900;text-align:center;color:var(--on-s)}
.md-score-wrap{display:flex;flex-direction:column;align-items:center;gap:4px}
.md-score{font-family:'Lexend';font-size:36px;font-weight:900;color:var(--on-s);letter-spacing:2px;line-height:1}

.md-scorers-box{border-top:1px dashed var(--border);padding-top:16px;margin-top:16px;display:flex;justify-content:space-between;gap:8px}
.md-sc-col{display:flex;flex-direction:column;gap:8px;flex:1}
.md-sc-col.home{align-items:flex-start;text-align:right}
.md-sc-col.away{align-items:flex-end;text-align:left}
.md-sc-item{font-size:11px;font-weight:800;color:var(--on-s-v);display:flex;align-items:center;gap:4px;line-height:1.2}
.md-sc-item .material-symbols-outlined{font-size:12px;color:var(--sec)}
.md-sc-time{font-family:'Lexend';font-weight:900;color:var(--on-s);font-size:10px;background:var(--s-low);padding:2px 4px;border-radius:4px;border:1px solid var(--border)}

/* ═══ MODERN NEWS BENTO ═══ */
.news-5{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:992px){
    .news-5{grid-template-columns:repeat(3, 1fr);grid-template-rows:repeat(2, 220px)}
    .n-feat{grid-column:1 / 3;grid-row:1 / 3}
    .n-small{grid-column:span 1;grid-row:span 1}
}
.n-card{position:relative;border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:var(--shadow);cursor:pointer;min-height:200px}
.n-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 0.5s ease}
.n-card:hover img{transform:scale(1.05)}
/* Overlay uses solid black alpha, so text is ALWAYS white regardless of theme */
.n-overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 70%, transparent 100%)}
.n-content{position:relative;z-index:2;padding:20px;color:#ffffff}
.n-title{font-size:14px;font-weight:800;line-height:1.5;margin-bottom:8px}
.n-feat .n-title{font-size:24px} @media(min-width:992px){.n-feat .n-title{font-size:28px}}
.n-meta{font-size:11px;color:var(--sec);display:flex;align-items:center;gap:4px;font-weight:900}
.n-badge{position:absolute;top:16px;right:16px;background:var(--sec);color:var(--on-solid);padding:4px 10px;font-size:11px;font-weight:900;border-radius:6px;z-index:2}

/* ═══ TOP STATS ═══ */
.stats-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:992px){.stats-grid{grid-template-columns:1fr 1fr}}
.stat-panel{background:var(--s-high);border-radius:var(--r-xl);padding:24px;box-shadow:var(--shadow);border:1px solid var(--border)}
.stat-panel-t{font-size:18px;font-weight:900;color:var(--on-s);margin-bottom:20px;display:flex;align-items:center;gap:8px}
.stat-list{display:flex;flex-direction:column;gap:12px}
.stat-row{display:flex;align-items:center;gap:12px;padding:12px;background:var(--s-low);border-radius:12px;transition:.2s;overflow:hidden;border:1px solid transparent}
.stat-row:hover{transform:translateX(-4px);border-color:var(--border)}
.stat-rank{font-family:'Lexend';font-size:16px;font-weight:900;color:var(--on-s-v);width:24px;text-align:center;flex-shrink:0}
.stat-row:nth-child(1) .stat-rank{color:var(--sec);font-size:20px}
.stat-img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid var(--border);flex-shrink:0}
.stat-info{flex:1;display:flex;flex-direction:column;min-width:0}
.stat-name{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--on-s)}
.stat-club{font-size:11px;color:var(--on-s-v);display:flex;align-items:center;gap:4px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat-club img{width:12px;height:12px;flex-shrink:0}
.stat-val{font-family:'Lexend';font-size:22px;font-weight:900;color:var(--sec);flex-shrink:0}

/* ═══ BOTTOM NAV ═══ */
@media(min-width:992px){.bnav{display:none}}

/* ═══ 9. WORLD CUP — كأس العالم ═══ */
/* ═══ SAUDI ARENA — THEME SYSTEM ═══ */
:root {
    --bg: #131313;
    --s-low: #1c1b1b;
    --s-cont: #201f1f;
    --s-high: #2a2a2a;
    --on-s: #e5e2e1;
    --on-s-v: #becabd;
    --pri: #80d996;
    --pri-c: #006c35;
    --sec: #e9c349;
    --sec-c: #af8d11;
    --ksa: #008c3c; /* لون المنتخب السعودي */
    --ksa-c: rgba(0, 140, 60, 0.15);
    --shadow: 0 8px 32px rgba(0,0,0,0.35);
    --border: rgba(255,255,255,0.05);
    --on-solid: #000000;
    --r-lg: 20px; --r-xl: 24px;
}

[data-theme="light"] {
    --bg: #f3f4f6;
    --s-low: #ffffff;
    --s-cont: #f9fafb;
    --s-high: #ffffff;
    --on-s: #111827;
    --on-s-v: #4b5563;
    --pri: #008a3d;
    --pri-c: #def7e5;
    --sec: #b48600;
    --sec-c: #fef3c7;
    --ksa: #006c2e;
    --ksa-c: rgba(0, 108, 46, 0.1);
    --shadow: 0 8px 24px rgba(0,0,0,0.06);
    --border: rgba(0,0,0,0.08);
    --on-solid: #ffffff;
}

html, body { overflow-x: hidden; width: 100vw; max-width: 100%; transition: background-color 0.3s ease, color 0.3s ease; }
body { background:var(--bg); color:var(--on-s); font-family:'Almarai',sans-serif; line-height:1.6; padding-bottom:90px; }
@media(min-width:768px){ .wrap{padding:0 24px} }

/* ═══ STATE CONTROLLER (للتجربة) ═══ */
.state-switcher{position:fixed;top:60px;left:0;width:100%;background:var(--s-high);z-index:80;display:flex;justify-content:center;gap:8px;padding:8px;border-bottom:1px solid var(--border);transition:0.3s}
@media(min-width:768px){.state-switcher{top:68px}}
.state-btn{background:var(--s-low);color:var(--on-s);border:1px solid var(--border);padding:6px 16px;border-radius:8px;font-family:'Almarai';font-weight:800;cursor:pointer;font-size:12px;transition:.3s}
.state-btn.active{background:var(--pri-c);color:var(--pri);border-color:var(--pri)}

/* ═══ HEADER ═══ */
@media(min-width:768px){.hdr-in{height:68px}}
@media(min-width:992px){.hdr-nav{display:flex}}
.hdr-actions{display:flex;gap:8px;align-items:center}

/* ═══ SMART LAYOUT (ترتيب الأقسام التلقائي) ═══ */
.wc-layout{display:flex;flex-direction:column;gap:40px;margin-bottom:40px}

/* حالة المجموعات */
body.state-groups #sec-knockouts { display: none; }
body.state-groups #sec-ksa-match { order: 1; }
body.state-groups #sec-groups { order: 2; }
body.state-groups #sec-news { order: 3; }
body.state-groups #sec-stats { order: 4; }

/* حالة الإقصائيات (تنزل المجموعات للأسفل وتظهر الشجرة) */
body.state-knockouts #sec-ksa-match { order: 1; }
body.state-knockouts #sec-knockouts { display: block; order: 2; animation: fadeIn 0.5s ease; }
body.state-knockouts #sec-news { order: 3; }
body.state-knockouts #sec-stats { order: 4; }
body.state-knockouts #sec-groups { order: 5; opacity: 0.7; } /* المجموعات تصبح أرشيفية */
@keyframes fadeIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

/* ═══ HERO ═══ */
.lg-hero{background:var(--s-low);padding:40px 0;margin-bottom:40px;position:relative;overflow:hidden;border-bottom:1px solid var(--border);transition:0.3s}
.lg-hero-bg{position:absolute;inset:0;opacity:0.1;background:url('https://images.unsplash.com/photo-1518605368461-1e1e38ce81ba?w=1200&fit=crop') center/cover;mask-image:linear-gradient(to top,transparent,black);-webkit-mask-image:linear-gradient(to top,transparent,black)}
.lg-hero-in{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;position:relative;z-index:2}
.lg-hero-logo{width:110px;height:110px;object-fit:contain;background:var(--s-high);border-radius:50%;padding:15px;box-shadow:var(--shadow);border:2px solid var(--pri)}
.lg-hero-info h1{font-size:32px;font-weight:900;line-height:1.2;margin-bottom:8px;color:var(--on-s)}
.lg-hero-tag{background:var(--s-cont);color:var(--on-s-v);padding:6px 16px;border-radius:12px;font-size:13px;font-weight:900;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border)}

/* ═══ SECTION TITLES ═══ */
.sec-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.sec-t{font-size:20px;font-weight:900;display:flex;align-items:center;gap:10px}
@media(min-width:768px){.sec-t{font-size:24px}}
.sec-t .material-symbols-outlined{color:var(--pri);font-size:28px}

/* ═══ KSA NEXT MATCH (مباراة المنتخب) ═══ */
.ksa-match-card{background:linear-gradient(135deg, var(--s-high), var(--ksa-c));border-radius:var(--r-xl);padding:24px;border:1px solid rgba(0,140,60,0.3);box-shadow:var(--shadow);position:relative;overflow:hidden}
.ksa-badge{position:absolute;top:16px;right:16px;background:var(--ksa);color:#fff;padding:4px 12px;border-radius:8px;font-size:11px;font-weight:900;display:flex;align-items:center;gap:4px}
.ksa-teams{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:16px}
.ksa-team{display:flex;flex-direction:column;align-items:center;gap:8px}
.ksa-team img{width:70px;height:70px;border-radius:50%;object-fit:cover;border:3px solid var(--s-low);box-shadow:0 4px 12px rgba(0,0,0,0.2)}
.ksa-team span{font-size:16px;font-weight:900}
.ksa-time{display:flex;flex-direction:column;align-items:center}
.ksa-time-val{font-family:'Lexend';font-size:32px;font-weight:900;color:var(--pri);line-height:1}
.ksa-date{font-size:12px;color:var(--on-s-v);margin-top:4px}

/* ═══ GROUPS STANDINGS (ترتيب المجموعات) ═══ */
.st-card{background:var(--s-high);border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--border);margin-bottom:24px}
.st-card-title{background:var(--s-low);padding:16px;font-size:16px;font-weight:900;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px}
.st-wrap{overflow-x:auto}
.st-tbl{width:100%;border-collapse:collapse;min-width:400px}
.st-tbl th{font-size:11px;color:var(--on-s-v);padding:14px 8px;background:var(--s-low);text-align:center} .st-tbl th:nth-child(2){text-align:right}
.st-tbl td{padding:12px 8px;font-size:13px;font-weight:700;text-align:center;border-bottom:1px solid var(--border)}
.st-team{display:flex;align-items:center;gap:10px;text-align:right} .st-team img{width:24px;height:24px;border-radius:4px}
.st-rank{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;margin:0 auto}
.pts{font-family:'Lexend';color:var(--pri);font-weight:900;font-size:16px}

/* KSA Highlight Row */
.ksa-row{background:var(--ksa-c) !important;}
.ksa-row td:first-child::before{content:'';position:absolute;right:0;top:0;bottom:0;width:4px;background:var(--ksa)}
.ksa-row .st-team span{color:var(--on-s);font-weight:900}
.q-next td{background:rgba(128,217,150,.03)}

/* ═══ KNOCKOUT BRACKET ═══ */
.bracket-wrap{margin-left:-16px;margin-right:-16px;padding:0 16px;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(min-width:768px){.bracket-wrap{margin:left:0;margin-right:0;padding:0}}
.bracket-container{display:flex;gap:40px;padding-bottom:24px;min-width:max-content}
.bracket-col{display:flex;flex-direction:column;justify-content:space-around;gap:24px;width:240px;position:relative}
.b-match{background:var(--s-high);border-radius:12px;border:1px solid var(--border);padding:12px;box-shadow:var(--shadow);position:relative;z-index:2;display:block}
.b-status{font-size:10px;font-weight:900;color:var(--on-s-v);margin-bottom:8px;background:var(--s-low);display:inline-block;padding:2px 8px;border-radius:4px}
.b-team{display:flex;justify-content:space-between;align-items:center;padding:6px 0;font-size:13px;font-weight:800}
.b-team:first-of-type{border-bottom:1px solid var(--border)}
.b-team-info{display:flex;align-items:center;gap:8px} .b-team-info img{width:20px;height:20px;border-radius:2px}
.b-score{font-family:'Lexend';font-weight:900;font-size:14px;color:var(--on-s-v);background:var(--s-low);width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:6px}
.b-team.winner .b-score{color:var(--on-solid);background:var(--pri)}
.b-team.winner span:not(.b-score){color:var(--on-s)}

.bracket-col:not(:last-child) .b-match::after{content:'';position:absolute;right:-20px;top:50%;width:20px;height:2px;background:var(--border);z-index:1}
.bracket-col:not(:first-child) .b-match::before{content:'';position:absolute;left:-20px;top:50%;width:20px;height:2px;background:var(--border);z-index:1}
.bracket-col:nth-child(1) .b-match:nth-child(odd)::after{right:-20px;width:20px;border-right:2px solid var(--border);height:calc(50% + 12px);top:50%}
.bracket-col:nth-child(1) .b-match:nth-child(even)::after{right:-20px;width:20px;border-right:2px solid var(--border);height:calc(50% + 12px);bottom:50%;top:auto}

/* ═══ NEWS BENTO ═══ */
.news-5{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:992px){
    .news-5{grid-template-columns:repeat(3, 1fr);grid-template-rows:repeat(2, 220px)}
    .n-feat{grid-column:1 / 3;grid-row:1 / 3}
    .n-small{grid-column:span 1;grid-row:span 1}
}
.n-card{position:relative;border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:var(--shadow);min-height:200px}
.n-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:0.5s}
.n-card:hover img{transform:scale(1.05)}
.n-overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 70%, transparent 100%)}
.n-content{position:relative;z-index:2;padding:20px;color:#ffffff}
.n-title{font-size:14px;font-weight:800;line-height:1.5;margin-bottom:8px}
.n-feat .n-title{font-size:24px}
.n-meta{font-size:11px;color:var(--pri);display:flex;align-items:center;gap:4px;font-weight:900}

/* ═══ STATS ═══ */
.stats-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:992px){.stats-grid{grid-template-columns:repeat(3, 1fr)}}
.stat-panel{background:var(--s-high);border-radius:var(--r-xl);padding:24px;box-shadow:var(--shadow);border:1px solid var(--border)}
.stat-panel-t{font-size:18px;font-weight:900;color:var(--on-s);margin-bottom:20px;display:flex;align-items:center;gap:8px}
.stat-list{display:flex;flex-direction:column;gap:12px}
.stat-row{display:flex;align-items:center;gap:12px;padding:12px;background:var(--s-low);border-radius:12px;transition:.2s;overflow:hidden;border:1px solid transparent}
.stat-row:hover{transform:translateX(-4px);border-color:var(--border)}
.stat-rank{font-family:'Lexend';font-size:16px;font-weight:900;color:var(--on-s-v);width:24px;text-align:center;flex-shrink:0}
.stat-row:nth-child(1) .stat-rank{color:var(--pri);font-size:20px}
.stat-img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid var(--border);flex-shrink:0}
.stat-info{flex:1;display:flex;flex-direction:column;min-width:0}
.stat-name{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--on-s)}
.stat-club{font-size:11px;color:var(--on-s-v);display:flex;align-items:center;gap:4px;margin-top:2px}
.stat-val{font-family:'Lexend';font-size:22px;font-weight:900;color:var(--pri);flex-shrink:0}

/* البطل السابق */
.champ-card{background:linear-gradient(135deg, var(--s-high), rgba(233,195,73,0.1));border:1px solid rgba(233,195,73,0.3);border-radius:var(--r-xl);padding:24px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}
.champ-card img{width:80px;height:80px;border-radius:50%;margin-bottom:16px;border:3px solid var(--sec);box-shadow:0 0 20px rgba(233,195,73,0.4)}
.champ-card h3{font-size:20px;font-weight:900;color:var(--sec);margin-bottom:4px}
.champ-card p{font-size:12px;color:var(--on-s-v);font-weight:800}

/* ═══ BOTTOM NAV ═══ */
@media(min-width:992px){.bnav{display:none}}

/* ═══ COMPETITION RENDER FUNCTIONS (bootstrap.php) ═══ */
/* ==================================================
   🔥 Competitions 2030 (Bento, Brackets, Groups) 🔥
   ================================================== */
.h2030-comp-page { padding-bottom: 60px; background: var(--bg-matrix); }
.h2030-section-wrapper { margin-bottom: 34px; }
.h2030-section-head { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.h2030-section-title { font-size:24px; font-weight:900; color:var(--text-matrix); margin:0; border-right:4px solid var(--accent-matrix, #10b981); padding-right:15px; line-height:1.25; }
.h2030-section-desc { margin:0; color:#64748b; font-size:13px; font-weight:700; line-height:1.8; }
.h2030-empty-state { background:var(--surface-matrix); padding:30px; border-radius:16px; text-align:center; border:1px solid var(--border-matrix); color:#64748b; font-weight:800; box-shadow: var(--shadow-soft); }

/* الهيدر المشترك للبطولات */
.h2030-comp-hero { position: relative; background: #0f172a; padding: 40px 0; overflow: hidden; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.h2030-comp-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 50%); }
.h2030-hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; opacity:.12; filter:blur(28px); transform:scale(1.08); }
.h2030-comp-hero-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content:space-between; gap: 20px; flex-wrap:wrap; }
.h2030-comp-hero-main { display:flex; align-items:center; gap:20px; min-width:280px; flex:1; }
.h2030-comp-logo { width: 100px; height: 100px; background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); padding: 15px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.h2030-comp-logo img { width: 100%; height: 100%; object-fit: contain; }
.h2030-comp-fallback { font-size:42px; }
.h2030-comp-copy { display:flex; flex-direction:column; gap:10px; }
.h2030-comp-title { color: #fff; font-size: 32px; font-weight: 900; margin: 0; line-height:1.12; }
.h2030-comp-desc { margin:0; color:#cbd5e1; line-height:1.85; font-size:14px; max-width:760px; }
.h2030-comp-badge { align-self:flex-start; background: rgba(255,255,255,0.1); color: #cbd5e1; padding: 4px 12px; border-radius: 8px; font-size: 13px; font-weight: 800; }
.h2030-comp-facts { display:grid; grid-template-columns:repeat(2, minmax(0, 180px)); gap:12px; margin-top:6px; }
.h2030-comp-fact { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:12px; display:flex; flex-direction:column; gap:6px; }
.h2030-comp-fact span { font-size:12px; font-weight:800; color:#cbd5e1; }
.h2030-comp-fact strong { font-size:18px; font-weight:900; color:#fff; }
.h2030-comp-leader { min-width:260px; max-width:280px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.1); border-radius:18px; padding:16px; box-shadow:0 10px 25px rgba(0,0,0,.18); }
.h2030-comp-leader-kicker { display:block; color:#dbeafe; font-size:12px; font-weight:900; margin-bottom:10px; }
.h2030-comp-leader-team { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.h2030-comp-leader-team img { width:40px; height:40px; object-fit:contain; }
.h2030-comp-leader-team strong { color:#fff; font-size:18px; font-weight:900; }
.h2030-comp-leader-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; color:#cbd5e1; font-size:12px; font-weight:800; }
.h2030-comp-leader-meta b { color:#fff; font-size:14px; font-weight:900; }

/* 1. نظام الدوري */
.h2030-league-table-card { background: var(--surface-matrix); border: 1px solid var(--border-matrix); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-soft); overflow-x: auto; }
.h2030-table { width: 100%; border-collapse: collapse; text-align: right; min-width: 600px; }
.h2030-table th { color: #64748b; font-size: 12px; font-weight: 800; padding: 12px; border-bottom: 1px solid var(--border-matrix); text-align:center; white-space:nowrap; }
.h2030-table td { padding: 12px; font-size: 14px; font-weight: 800; color: var(--text-matrix); border-bottom: 1px dashed rgba(15,23,42,0.05); text-align:center; white-space:nowrap; }
.h2030-table .is-right { text-align:right; }
.h2030-table tr.is-top { background: rgba(16, 185, 129, 0.05); }
.h2030-table tr.is-danger { background: rgba(239, 68, 68, 0.05); }
.h2030-team-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.h2030-team-cell img { width: 24px; height: 24px; object-fit:contain; }
.h2030-team-cell a, .h2030-team-cell span { color:var(--text-matrix); text-decoration:none; font-weight:800; }
.h2030-team-cell a:hover { color:var(--accent-matrix); }
.h2030-row-badge { margin-inline-start:auto; display:inline-flex; align-items:center; justify-content:center; min-height:24px; padding:0 8px; border-radius:999px; font-size:10px; font-weight:900; }
.h2030-row-badge.is-top { background:rgba(16,185,129,.12); color:#047857; }
.h2030-row-badge.is-danger { background:rgba(239,68,68,.12); color:#b91c1c; }
.h2030-pts { color: #10b981; font-weight: 900; font-size: 16px; }

/* 2. شجرة الإقصائيات */
.h2030-bracket-wrapper { width: 100%; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 0 16px; scrollbar-width: thin; }
.h2030-bracket-tree { display: flex; gap: 18px; min-width: max-content; padding: 0 4px; align-items:flex-start; }
.h2030-bracket-col { display: flex; flex-direction: column; gap: 14px; flex: 0 0 290px; scroll-snap-align: start; }
.h2030-round-title { text-align: center; font-size: 14px; font-weight: 900; color: #fff; background: #0f172a; padding: 10px; border-radius: 12px; margin-bottom: 2px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.h2030-match-node { display:block; background: var(--surface-matrix); border: 1px solid var(--border-matrix); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-soft); position: relative; text-decoration:none; }
.h2030-match-node::after { content: ''; position: absolute; right: -18px; top: 50%; width: 18px; height: 2px; background: var(--border-matrix); }
.h2030-bracket-col:last-child .h2030-match-node::after { display: none; }
.h2030-node-team { display: flex; justify-content: space-between; align-items: center; gap:8px; padding: 8px 0; border-bottom: 1px solid rgba(15,23,42,0.05); }
.h2030-node-team:last-child { border: none; }
.h2030-n-info { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--text-matrix); min-width:0; }
.h2030-n-info span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.h2030-n-info img { width: 22px; height: 22px; object-fit:contain; flex:0 0 22px; }
.h2030-n-score { font-size: 16px; font-weight: 900; color: var(--text-matrix); }
.h2030-node-team.is-winner .h2030-n-score { color: #10b981; }

/* 3. شبكة المجموعات */
.h2030-groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.h2030-regions-grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.h2030-group-card { background: var(--surface-matrix); border: 1px solid var(--border-matrix); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-soft); }
.h2030-group-card .h2030-league-table-card { padding:0; border:0; box-shadow:none; background:transparent; }
.h2030-group-name { font-size: 18px; font-weight: 900; color: var(--text-matrix); margin: 0 0 15px 0; padding-right: 12px; border-right: 4px solid #3b82f6; }
.h2030-group-name.is-west { border-color:#10b981; }
.h2030-group-name.is-east { border-color:#ef4444; }

/* 4. بطاقات الإحصائيات */
.h2030-stats-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:20px; }
.h2030-stat-box { background:var(--surface-matrix); padding:20px; border-radius:20px; box-shadow:var(--shadow-soft); border:1px solid var(--border-matrix); }
.h2030-stat-box h4 { font-size:18px; font-weight:900; margin:0 0 20px; color:var(--text-matrix); }
.h2030-stat-box ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.h2030-stat-box li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:12px; border-bottom:1px dashed var(--border-matrix); }
.h2030-stat-box li:last-child { border-bottom:0; padding-bottom:0; }
.h2030-stat-rank { font-weight:900; color:#64748b; font-size:14px; background:var(--bg-matrix); width:24px; height:24px; display:flex; align-items:center; justify-content:center; border-radius:6px; flex:0 0 24px; }
.h2030-stat-player { display:flex; flex-direction:column; gap:4px; flex:1; min-width:0; }
.h2030-stat-player strong { font-size:14px; font-weight:800; color:var(--text-matrix); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.h2030-stat-player small { font-size:12px; color:#64748b; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.h2030-stat-box b { color:#10b981; font-size:18px; font-weight:900; }
.h2030-stat-box b.is-assist { color:#3b82f6; }

/* 5. Universal Match Card 2030 */
.h2030-comp-matches-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 15px; 
    margin-bottom: 10px;
}
.h2030-comp-match-card { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--surface-matrix); 
    border: 1px solid var(--border-matrix); 
    border-radius: 16px; 
    padding: 18px 15px; 
    box-shadow: var(--shadow-soft); 
    transition: 0.3s ease; 
    text-decoration: none !important;
}
.h2030-comp-match-card:hover { 
    transform: translateY(-4px); 
    border-color: var(--accent-matrix); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.h2030-comp-match-team { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
    flex: 1; 
    min-width: 0; 
}
.h2030-comp-match-team img { 
    width: 45px; 
    height: 45px; 
    object-fit: contain; 
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}
.h2030-comp-match-team .t-name { 
    font-size: 14px; 
    font-weight: 800; 
    color: var(--text-matrix); 
    text-align: center; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    width: 100%; 
}
.h2030-comp-match-center { 
    flex: 0 0 90px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    border-left: 1px dashed var(--border-matrix);
    border-right: 1px dashed var(--border-matrix);
    padding: 0 10px;
}
.h2030-comp-match-center .m-score { 
    font-size: 26px; 
    font-weight: 900; 
    color: var(--text-matrix); 
    line-height: 1; 
    letter-spacing: 1px;
}
.h2030-comp-match-center .m-status-finished { 
    font-size: 11px; 
    font-weight: 800; 
    color: #64748b; 
    margin-top: 6px; 
    background: rgba(15,23,42,0.05); 
    padding: 2px 8px; 
    border-radius: 6px;
    text-align:center;
}
.h2030-comp-match-center .m-time { 
    font-size: 22px; 
    font-weight: 900; 
    color: #10b981; 
    line-height: 1; 
    letter-spacing: 1px;
}
.h2030-comp-match-center .m-date { 
    font-size: 12px; 
    font-weight: 800; 
    color: var(--text-matrix); 
    margin-top: 6px; 
}

/* 6. أخبار البطولة */
.h2030-news-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:15px; }
.h2030-news-card { display:flex; gap:15px; align-items:center; background: var(--surface-matrix); border: 1px solid var(--border-matrix); border-radius: 16px; padding: 12px; transition: 0.3s; text-decoration:none; box-shadow:var(--shadow-soft); }
.h2030-news-card:hover { transform:translateY(-3px); border-color:var(--accent-matrix); }
.h2030-news-thumb { width: 100px; height: 100px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background:#e2e8f0; display:flex; align-items:center; justify-content:center; color:#475569; font-weight:800; }
.h2030-news-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.h2030-news-body { flex:1; min-width:0; }
.h2030-news-body h4 { color: var(--text-matrix); font-size: 14px; font-weight: 800; margin: 0 0 10px 0; line-height: 1.6; }
.h2030-news-body time { display:flex; align-items:center; gap:5px; color: #64748b; font-size: 11px; font-weight: 700; }

@media (max-width: 991px) {
  .h2030-comp-hero-content { flex-direction:column; align-items:stretch; }
  .h2030-comp-leader { max-width:none; }
}

@media (max-width: 767px) {
  .h2030-league-table-card {
    overflow: hidden;
    border-radius: 18px;
  }

  .h2030-table {
    min-width: 0;
    table-layout: fixed;
  }

  .h2030-table .hide-sm,
  .h2030-table .hide-md {
    display: none !important;
  }

  .h2030-table th,
  .h2030-table td {
    padding: 10px 6px;
    font-size: 12px;
  }

  .h2030-table .td-rank {
    width: 34px;
    font-size: 13px;
  }

  .h2030-table .td-played,
  .h2030-table .td-points {
    width: 52px;
    font-size: 13px;
  }

  .h2030-team-cell {
    min-width: 0;
    gap: 6px;
  }

  .h2030-team-cell img {
    width: 20px;
    height: 20px;
  }

  .h2030-team-cell a,
  .h2030-team-cell span {
    font-size: 12px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .h2030-row-badge {
    display: none;
  }

  .h2030-stars-box {
    padding: 14px;
    border-radius: 18px;
  }

  .h2030-star-item {
    grid-template-columns: 30px minmax(0,1fr) 54px;
    padding: 10px;
    border-radius: 14px;
  }

  .h2030-star-rank {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 12px;
  }

  .h2030-star-copy strong {
    font-size: 14px;
  }

  .h2030-star-copy small {
    font-size: 11px;
  }

  .h2030-star-metric {
    min-width: 54px;
    padding: 8px 6px;
  }

  .h2030-star-metric b {
    font-size: 16px;
  }

  .h2030-comp-match-card {
    grid-template-columns: minmax(0,1fr) 82px minmax(0,1fr);
    min-height: 96px;
    padding: 14px 10px;
    gap: 8px;
    border-radius: 18px;
  }

  .h2030-comp-match-team {
    gap: 8px;
  }

  .h2030-comp-match-team img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .h2030-comp-match-team .t-name {
    font-size: 13px;
  }

  .h2030-comp-match-center {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
    padding: 0 6px;
  }

  .h2030-comp-match-center .m-score,
  .h2030-comp-match-center .m-time {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
    .h2030-comp-matches-grid { grid-template-columns: 1fr; gap: 12px; }
    .h2030-comp-match-card { padding: 15px 10px; }
    .h2030-comp-match-team img { width: 38px; height: 38px; }
    .h2030-comp-match-team .t-name { font-size: 13px; }
    .h2030-comp-match-center { flex: 0 0 80px; }
    .h2030-comp-match-center .m-score { font-size: 22px; }
    .h2030-comp-match-center .m-time { font-size: 18px; }
    .h2030-comp-facts { grid-template-columns:1fr; }
    .h2030-groups-grid, .h2030-stats-grid, .h2030-news-grid { grid-template-columns:1fr; }
}

@media (max-width: 575px) {
  .h2030-table { min-width: 420px; }
  .h2030-table .hide-md { display:none; }
  .h2030-team-cell { min-width: 160px; }
  .h2030-team-cell img { width:22px; height:22px; }
  .h2030-team-cell a, .h2030-team-cell span { font-size:12px; }
  .h2030-bracket-col { flex-basis: 232px; }
  .h2030-round-title { font-size:13px; }
  .h2030-n-info { font-size:13px; }
}


/* ==================================================
   🔥 Saudi League final polish (responsive cards/table/stars) 🔥
   ================================================== */
.h2030-league-table-card { overflow: visible; }
.h2030-table { table-layout: fixed; }
.h2030-table .td-rank,
.h2030-table .td-played,
.h2030-table .td-points { font-weight: 900; }
.h2030-table .td-points { color: #10b981; }

.h2030-stars-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr);
  gap: 18px;
}
.h2030-stars-box {
  background: var(--surface-matrix, #ffffff);
  border: 1px solid var(--border-matrix, #e2e8f0);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.h2030-stars-box.is-assists {
  background: var(--surface-matrix, #ffffff);
}
.h2030-stars-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.h2030-stars-head h4 {
  margin: 0;
  color: var(--text-matrix, #0f172a) !important;
  font-size: 18px;
  font-weight: 900;
}
.h2030-stars-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-matrix, #f8fafc);
  color: var(--text-matrix, #475569);
  font-size: 11px;
  font-weight: 900;
}
.h2030-stars-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.h2030-star-item {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border-matrix, #e2e8f0);
  background: var(--bg-matrix, #f8fafc);
}
.h2030-star-rank {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.06);
  color: var(--text-matrix, #475569);
  font-size: 13px;
  font-weight: 900;
}
.h2030-star-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.h2030-star-copy strong {
  color: var(--text-matrix, #0f172a) !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h2030-star-copy small {
  color: var(--text-matrix, #64748b) !important;
  opacity: .82;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h2030-star-metric {
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(16,185,129,.12);
}
.h2030-star-metric.is-assist {
  background: rgba(59,130,246,.12);
}
.h2030-star-metric b {
  color: #059669;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.h2030-star-metric.is-assist b {
  color: #2563eb;
}
.h2030-star-metric span {
  color: var(--text-matrix, #64748b);
  opacity: .82;
  font-size: 10px;
  font-weight: 900;
}

.h2030-comp-matches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.h2030-comp-match-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  flex-direction: row !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 10px;
  min-height: 112px;
  padding: 16px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #081325 0%, #0f1d35 100%);
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 18px 38px rgba(2,8,23,.14);
  direction: ltr;
}
.h2030-comp-match-card:hover {
  border-color: rgba(16,185,129,.45);
  box-shadow: 0 18px 38px rgba(2,8,23,.18);
}
.h2030-comp-match-team {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  min-width: 0;
  text-align: center;
}
.h2030-comp-match-team.is-home {
  direction: rtl;
}
.h2030-comp-match-team.is-away {
  direction: rtl;
}
.h2030-comp-match-team img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}
.h2030-comp-match-team .t-name {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h2030-comp-match-center {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px dashed rgba(255,255,255,.14);
  border-right: 1px dashed rgba(255,255,255,.14);
  padding: 0 8px;
}
.h2030-comp-match-center .m-score {
  color: #ffffff;
  font-size: 24px;
}
.h2030-comp-match-center .m-status-finished {
  color: #dbe4f0;
  background: rgba(255,255,255,.08);
}
.h2030-comp-match-center .m-time {
  color: #22c55e;
  font-size: 24px;
}
.h2030-comp-match-center .m-date {
  color: #cbd5e1;
  font-size: 12px;
}

@media (max-width: 991px) {
  .h2030-stars-grid,
  .h2030-comp-matches-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .h2030-league-table-card {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .h2030-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .h2030-table thead {
    display: none;
  }

  .h2030-table tbody {
    display: block;
  }

  .h2030-table tr {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 58px 62px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--surface-matrix, #ffffff);
    border: 1px solid var(--border-matrix, #e2e8f0);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 10px;
  }

  .h2030-table td {
    border: 0;
    padding: 0;
    white-space: normal;
  }

  .h2030-table .hide-sm,
  .h2030-table .hide-md {
    display: none !important;
  }

  .h2030-table .td-rank {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--bg-matrix, #f8fafc);
    font-size: 15px;
    font-weight: 900;
  }

  .h2030-table .td-team {
    grid-column: 2 / 5;
    grid-row: 1;
  }

  .h2030-table .td-played,
  .h2030-table .td-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    background: var(--bg-matrix, #f8fafc);
    font-weight: 900;
  }

  .h2030-table .td-played::before,
  .h2030-table .td-points::before {
    content: attr(data-label);
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 3px;
  }

  .h2030-table .td-played { grid-column: 3; grid-row: 2; }
  .h2030-table .td-points { grid-column: 4; grid-row: 2; }

  .h2030-team-cell {
    min-width: 0;
    gap: 8px;
  }

  .h2030-team-cell img {
    width: 24px;
    height: 24px;
  }

  .h2030-team-cell a,
  .h2030-team-cell span {
    font-size: 13px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .h2030-row-badge {
    display: none;
  }

  .h2030-stars-box {
    padding: 14px;
    border-radius: 18px;
  }

  .h2030-star-item {
    grid-template-columns: 30px minmax(0,1fr) 54px;
    padding: 10px;
    border-radius: 14px;
  }

  .h2030-star-rank {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 12px;
  }

  .h2030-star-copy strong {
    font-size: 14px;
  }

  .h2030-star-copy small {
    font-size: 11px;
  }

  .h2030-star-metric {
    min-width: 54px;
    padding: 8px 6px;
  }

  .h2030-star-metric b {
    font-size: 16px;
  }

  .h2030-comp-match-card {
    grid-template-columns: minmax(0,1fr) 82px minmax(0,1fr);
    min-height: 96px;
    padding: 14px 10px;
    gap: 8px;
    border-radius: 18px;
  }

  .h2030-comp-match-team {
    gap: 8px;
  }

  .h2030-comp-match-team img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .h2030-comp-match-team .t-name {
    font-size: 13px;
  }

  .h2030-comp-match-center {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
    padding: 0 6px;
  }

  .h2030-comp-match-center .m-score,
  .h2030-comp-match-center .m-time {
    font-size: 20px;
  }
}


/* ==================================================
   🔥 Final mobile corrections (league table + dates/cards) 🔥
   ================================================== */
.h2030-league-table-card {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.h2030-league-table-card::-webkit-scrollbar { display: none; }

@media (max-width: 767px) {
  .h2030-league-table-card {
    overflow-x: hidden !important;
    border-radius: 18px;
  }

  .h2030-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }

  .h2030-table thead {
    display: table-header-group !important;
  }

  .h2030-table tbody {
    display: table-row-group !important;
  }

  .h2030-table tr {
    display: table-row !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  .h2030-table th,
  .h2030-table td {
    display: table-cell !important;
    padding: 10px 4px !important;
    border-bottom: 1px solid var(--border-matrix) !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    background: transparent !important;
    font-size: 12px !important;
  }

  .h2030-table .hide-sm,
  .h2030-table .hide-md,
  .h2030-table .h2030-row-badge {
    display: none !important;
  }

  .h2030-table .td-rank {
    width: 32px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .h2030-table .td-played,
  .h2030-table .td-points {
    width: 46px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .h2030-table .is-right,
  .h2030-table .td-team {
    text-align: right !important;
  }

  .h2030-team-cell {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  .h2030-team-cell img {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
  }

  .h2030-team-cell a,
  .h2030-team-cell span {
    display: block !important;
    min-width: 0 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .h2030-table tbody tr.is-top td:first-child {
    box-shadow: inset 3px 0 0 #10b981;
  }

  .h2030-table tbody tr.is-danger td:first-child {
    box-shadow: inset 3px 0 0 #ef4444;
  }

  .h2030-comp-matches-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .h2030-comp-match-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr) !important;
    align-items: center !important;
    min-height: 96px !important;
    padding: 14px 10px !important;
    gap: 8px !important;
    border-radius: 18px !important;
    direction: ltr !important;
  }

  .h2030-comp-match-team {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .h2030-comp-match-team.is-home,
  .h2030-comp-match-team.is-away {
    direction: rtl !important;
  }

  .h2030-comp-match-team img {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }

  .h2030-comp-match-team .t-name {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .h2030-comp-match-center {
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    padding: 0 6px !important;
  }

  .h2030-comp-match-center .m-score,
  .h2030-comp-match-center .m-time {
    font-size: 20px !important;
  }

  .h2030-comp-match-center .m-date,
  .h2030-comp-match-center .m-status-finished {
    font-size: 11px !important;
  }
}


/* ==================================================
   🔥 World Cup Special (Saudi Highlights) 🔥
   ================================================== */
.h2030-worldcup-saudi-wrap .h2030-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.h2030-worldcup-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.h2030-worldcup-kicker .h2030-section-head {
  margin: 0;
}
.h2030-worldcup-kicker .h2030-section-title {
  margin-bottom: 0;
}
.h2030-worldcup-kicker-flag {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(16,185,129,.12);
  font-size: 18px;
}
.h2030-worldcup-groups-grid {
  align-items: start;
}
.h2030-worldcup-group-card {
  padding: 18px;
}
.h2030-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.h2030-group-header .h2030-group-name {
  margin: 0;
  padding: 0;
  border: 0;
}
.h2030-worldcup-group-table-wrap {
  overflow: hidden;
  border-radius: 16px;
}
.h2030-worldcup-table {
  min-width: 0;
  table-layout: fixed;
}
.h2030-worldcup-table th,
.h2030-worldcup-table td {
  padding: 11px 8px;
}
.h2030-worldcup-table th:first-child,
.h2030-worldcup-table td:first-child {
  width: auto;
}
.h2030-worldcup-table th:nth-child(2),
.h2030-worldcup-table td:nth-child(2),
.h2030-worldcup-table th:nth-child(3),
.h2030-worldcup-table td:nth-child(3),
.h2030-worldcup-table th:nth-child(4),
.h2030-worldcup-table td:nth-child(4) {
  width: 56px;
}
.h2030-worldcup-table .h2030-team-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px 22px minmax(0,1fr);
  gap: 8px;
  align-items: center;
}
.h2030-worldcup-rank {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  background: var(--bg-matrix);
  border-radius: 999px;
}
.h2030-worldcup-table .h2030-team-cell img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.h2030-worldcup-team-name {
  min-width: 0;
  color: var(--text-matrix);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h2030-worldcup-team-name.is-saudi-team {
  color: #10b981;
  font-weight: 900;
}
.is-saudi-group {
  background: linear-gradient(145deg, var(--surface-matrix), rgba(16,185,129,0.05));
  border: 2px solid #10b981;
  box-shadow: 0 10px 30px rgba(16,185,129,0.12);
  position: relative;
  z-index: 2;
}
.saudi-group-badge {
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(16,185,129,0.25);
  white-space: nowrap;
}
.is-highlighted-team td {
  background: rgba(16,185,129,0.08) !important;
}

@media (max-width: 767px) {
  .h2030-worldcup-groups-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .h2030-worldcup-group-card {
    padding: 14px;
    border-radius: 18px;
  }

  .h2030-group-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    align-items: flex-start;
  }

  .saudi-group-badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  .h2030-worldcup-table th,
  .h2030-worldcup-table td {
    padding: 9px 6px;
    font-size: 12px;
  }

  .h2030-worldcup-table th:nth-child(3),
  .h2030-worldcup-table td:nth-child(3) {
    display: none;
  }

  .h2030-worldcup-table th:nth-child(2),
  .h2030-worldcup-table td:nth-child(2),
  .h2030-worldcup-table th:nth-child(4),
  .h2030-worldcup-table td:nth-child(4) {
    width: 48px;
  }

  .h2030-worldcup-table .h2030-team-cell {
    grid-template-columns: 20px 18px minmax(0,1fr);
    gap: 6px;
  }

  .h2030-worldcup-table .h2030-team-cell img {
    width: 18px;
    height: 18px;
  }

  .h2030-worldcup-rank {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .h2030-worldcup-team-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════════════
   TABBED KNOCKOUT ROUNDS — proto-kings-cup-v3 style
   Scrollable pill tabs + match cards per round
   ═══════════════════════════════════════════════════════ */

.hz-cp-round-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 12px;
}
.hz-cp-round-tabs::-webkit-scrollbar { display: none; }

.hz-cp-round-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hz-cp-round-tab:active { transform: scale(.96); }
.hz-cp-round-tab.active {
  background: #059669;
  color: #fff;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5,150,105,.2);
}
.hz-cp-round-tab.final::before {
  content: "🏆";
  margin-left: 4px;
  font-size: 11px;
}

/* Round panels */
.hz-cp-round-panel {
  display: none;
}
.hz-cp-round-panel.active {
  display: block;
  animation: hz-cp-fadeUp .25s ease;
}
@keyframes hz-cp-fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════ KNOCKOUT MATCH CARDS ═══════ */

.hz-cp-ko-match {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.03);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}
a.hz-cp-ko-match:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* Final card special */
.hz-cp-ko-match.hz-cp-ko-final {
  border: 2px solid #eab308;
  box-shadow: 0 4px 20px rgba(234,179,8,.08);
}
.hz-cp-ko-match.hz-cp-ko-final .hz-cp-ko-head {
  background: linear-gradient(135deg, #fef9c3, #fef3c7);
}
.hz-cp-ko-match.hz-cp-ko-final .hz-cp-ko-row.winner .hz-cp-ko-team span {
  color: #b45309;
}
.hz-cp-ko-match.hz-cp-ko-final .hz-cp-ko-row.winner .hz-cp-ko-score {
  color: #b45309;
}

/* Head bar */
.hz-cp-ko-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #f8f9fb;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  gap: 6px;
}
.hz-cp-ko-status {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
}
.hz-cp-ko-status.done { background: #e2e8f0; color: #64748b; }
.hz-cp-ko-status.live { background: #10b981; color: #fff; }
.hz-cp-ko-status.soon { background: rgba(5,150,105,.08); color: #059669; }
.hz-cp-ko-pen {
  font-size: 9px;
  font-weight: 800;
  color: #059669;
}

/* Body — two team rows */
.hz-cp-ko-body {
  padding: 14px;
}
.hz-cp-ko-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.hz-cp-ko-row + .hz-cp-ko-row {
  border-top: 1px solid #e2e8f0;
}
.hz-cp-ko-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.hz-cp-ko-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.hz-cp-ko-team span {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hz-cp-ko-score {
  font-size: 20px;
  font-weight: 900;
  min-width: 28px;
  text-align: center;
}

/* Winner / Loser / Pending */
.hz-cp-ko-row.winner .hz-cp-ko-team span { font-weight: 900; color: #10b981; }
.hz-cp-ko-row.winner .hz-cp-ko-score { color: #10b981; }
.hz-cp-ko-row.loser .hz-cp-ko-team span { opacity: .4; }
.hz-cp-ko-row.loser .hz-cp-ko-score { opacity: .4; }
.hz-cp-ko-row.pending .hz-cp-ko-score { color: #94a3b8; font-size: 12px; font-weight: 700; }
.hz-cp-ko-row.pending .hz-cp-ko-team span { color: #94a3b8; }

/* ═══════ ACL TOGGLE ═══════ */

.hz-cp-acl-toggle {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.hz-cp-acl-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #64748b;
  transition: .2s;
  font-family: inherit;
}
.hz-cp-acl-btn.active {
  background: #0f172a;
  color: #fff;
}
.hz-cp-acl-section {
  display: none;
}
.hz-cp-acl-section.active {
  display: block;
}

/* ═══════ REGIONS (ACL west/east) ═══════ */

.hz-cp-regions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hz-cp-region {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 14px;
}
.hz-cp-region-name {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #0f172a;
}

@media (max-width: 900px) {
  .hz-cp-round-tab { padding: 7px 14px; font-size: 11px; }
  .hz-cp-ko-team img { width: 24px; height: 24px; }
  .hz-cp-ko-team span { font-size: 12px; }
  .hz-cp-ko-score { font-size: 18px; }
}
/* ═══════ LEADER BAR (golden under hero) ═══════ */

.hz-cp-leader-bar {
    max-width: 900px;
    margin: -1px auto 0;
    background: linear-gradient(135deg, #fef9c3, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 0 0 16px 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.03);
}
.hz-cp-leader-bar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
.hz-cp-leader-bar-info {
    flex: 1;
    min-width: 0;
}
.hz-cp-leader-bar-info b {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: #92400e;
}
.hz-cp-leader-bar-info b a {
    color: #92400e;
    text-decoration: none;
}
.hz-cp-leader-bar-info span {
    font-size: 10px;
    color: #a16207;
    font-weight: 700;
}
.hz-cp-leader-bar-pts {
    text-align: center;
    flex-shrink: 0;
}
.hz-cp-leader-bar-pts b {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #b45309;
    line-height: 1;
}
.hz-cp-leader-bar-pts span {
    font-size: 8px;
    color: #a16207;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .hz-cp-leader-bar {
        padding: 18px 24px;
    }
    .hz-cp-leader-bar-logo { width: 44px; height: 44px; }
    .hz-cp-leader-bar-info b { font-size: 16px; }
    .hz-cp-leader-bar-pts b { font-size: 26px; }
}

/* ═══════ PREVIOUS CHAMPION ═══════ */

.hz-cp-prev-champ {
    background: linear-gradient(135deg, #fef9c3, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.03);
}
.hz-cp-prev-champ img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}
.hz-cp-prev-champ-info {
    flex: 1;
}
.hz-cp-prev-champ-name {
    font-size: 16px;
    font-weight: 900;
    color: #92400e;
}
.hz-cp-prev-champ-detail {
    font-size: 11px;
    color: #a16207;
    font-weight: 700;
    margin-top: 2px;
}

@media (min-width: 1024px) {
    .hz-cp-prev-champ { padding: 22px 28px; }
    .hz-cp-prev-champ img { width: 56px; height: 56px; }
    .hz-cp-prev-champ-name { font-size: 18px; }
    .hz-cp-prev-champ-detail { font-size: 13px; }
}

/* ═══════ COMPETITION STARS — bigger on desktop ═══════ */

@media (min-width: 1024px) {
    .hz-cp-stars { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
    .hz-cp-matches { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .hz-cp-mx { padding: 16px 14px !important; }
    .hz-cp-mx-team img { width: 36px !important; height: 36px !important; }
    .hz-cp-mx-team span { font-size: 13px !important; max-width: 100px !important; }
    .hz-cp-mx-center strong { font-size: 18px !important; }
}

/* ═══ COMPETITION HERO ═══ */
/* COMPETITION PAGES — hz-cp-* — matches proto-roshn/kings-cup/acl/worldcup */
.hz-cp{padding-bottom:40px;background:#f8f9fb}
.hz-cp-hero{position:relative;background:linear-gradient(165deg,#1e1044,#4c1d95,#7c3aed);padding:28px 20px 24px;color:#fff;overflow:hidden}
.hz-cp-hero::after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.03);top:-100px;right:-80px}
.hz-cp-hero-bg{position:absolute;inset:0;background-size:contain;background-position:center;background-repeat:no-repeat;opacity:.06;filter:blur(20px)}
.hz-cp-hero-inner{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;max-width:900px;margin:0 auto}
.hz-cp-hero-main{display:flex;align-items:center;gap:14px;flex:1;min-width:240px}
.hz-cp-logo{width:76px;height:76px;flex-shrink:0;border-radius:18px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;overflow:hidden;padding:10px}
.hz-cp-logo img{width:100%;height:100%;object-fit:contain}
.hz-cp-logo span{font-size:36px}
.hz-cp-info{display:flex;flex-direction:column;gap:6px}
.hz-cp-badge{align-self:flex-start;font-size:9px;font-weight:800;padding:3px 10px;border-radius:99px;background:rgba(255,255,255,.1)}
.hz-cp-name{margin:0;font-size:clamp(18px,4vw,24px);font-weight:900;line-height:1.15}
.hz-cp-desc{margin:0;font-size:11px;opacity:.65}
.hz-cp-facts{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.hz-cp-fact{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.05);border-radius:10px;padding:8px 12px;display:flex;flex-direction:column;gap:1px}
.hz-cp-fact span{font-size:8px;opacity:.5;font-weight:700}
.hz-cp-fact strong{font-size:14px;font-weight:900}
.hz-cp-leader{min-width:200px;max-width:240px;background:rgba(245,158,11,.08);backdrop-filter:blur(10px);border:1px solid rgba(245,158,11,.15);border-radius:18px;padding:14px;flex-shrink:0}
.hz-cp-leader-top{display:flex;align-items:center;gap:8px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.08)}
.hz-cp-leader-top span{font-size:12px;color:#fbbf24;font-weight:800;flex:1}
.hz-cp-leader-top strong{font-size:22px;color:#fff;font-weight:900;line-height:1}
.hz-cp-leader-top small{font-size:10px;color:#94a3b8}
.hz-cp-leader-team{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.hz-cp-leader-team img{width:28px;height:28px;object-fit:contain}
.hz-cp-leader-team b{color:#fff;font-size:14px;font-weight:900}
.hz-cp-leader-stats{display:flex;gap:12px;font-size:11px;color:#94a3b8;font-weight:700}

.hz-cp-sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:20px 20px 12px;flex-wrap:wrap;max-width:900px}
.hz-cp-sec-t{font-size:15px;font-weight:900;margin:0;display:flex;align-items:center;gap:7px}
.hz-cp-sec-t::before{content:"";width:6px;height:6px;border-radius:50%;background:#7c3aed}
.hz-cp-sec-desc{font-size:11px;color:#64748b;font-weight:700;margin:0}
.hz-cp-empty{padding:24px 20px;background:#fff;border-radius:16px;text-align:center;color:#64748b;font-weight:700;font-size:13px;margin:0 20px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.03)}

/* TABLE */
.hz-cp-table-wrap{overflow-x:auto;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.03);margin:0 20px;max-width:900px}
.hz-cp-table{width:100%;border-collapse:collapse;min-width:420px}
.hz-cp-table th{background:#f8f9fb;color:#94a3b8;font-size:9px;font-weight:700;padding:8px 6px;text-align:center;white-space:nowrap}
.hz-cp-table td{padding:8px 6px;font-size:11px;text-align:center;border-bottom:1px solid #e2e8f0;white-space:nowrap}
.hz-cp-table tbody tr:last-child td{border:none}
.hz-cp-table tbody tr:hover{background:rgba(124,58,237,.02)}
.hz-cp-t-right{text-align:right!important}
.hz-cp-team-cell{display:flex;align-items:center;gap:6px;min-width:120px}
.hz-cp-team-cell img{width:20px;height:20px;object-fit:contain;flex-shrink:0}
.hz-cp-team-cell a,.hz-cp-team-cell span{font-size:11px;font-weight:700;color:#0f172a;text-decoration:none}
.hz-cp-team-cell a:hover{color:#7c3aed}
.hz-cp-zone-badge{display:inline-block;font-size:8px;padding:1px 5px;border-radius:3px;margin-right:3px;font-weight:800}
.hz-cp-zone-top{background:rgba(16,185,129,.08);color:#10b981}
.hz-cp-zone-dn{background:rgba(239,68,68,.08);color:#ef4444}
.hz-cp-td-rank{font-weight:900;width:24px}
.hz-cp-td-pts{font-weight:900;color:#065f46}
.hz-cp-row-top td:first-child{box-shadow:inset 3px 0 0 #10b981}
.hz-cp-row-danger td:first-child{box-shadow:inset 3px 0 0 #ef4444}
.hz-cp-hide-sm{}
.hz-cp-hide-md{}
@media(max-width:520px){.hz-cp-hide-sm{display:none!important}.hz-cp-table{min-width:0;width:100%;table-layout:fixed}.hz-cp-table th,.hz-cp-table td{padding:7px 4px;font-size:10px}.hz-cp-team-cell{min-width:0;gap:4px}.hz-cp-team-cell img{width:16px;height:16px}}
@media(max-width:400px){.hz-cp-hide-md{display:none!important}}

/* STARS */
.hz-cp-stars{display:grid;grid-template-columns:1fr;gap:12px;margin:0 20px;max-width:900px}
.hz-cp-stars-panel{background:#fff;border-radius:16px;padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.03);overflow:hidden}
.hz-cp-stars-assists{border-top:3px solid #0ea5e9}
.hz-cp-stars-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #e2e8f0}
.hz-cp-stars-head h4{margin:0;font-size:14px;font-weight:900}
.hz-cp-stars-head span{font-size:10px;color:#64748b;font-weight:700}
.hz-cp-stars-list{display:flex;flex-direction:column;gap:5px}
.hz-cp-star{display:flex;align-items:center;gap:8px;padding:8px;border-radius:10px;background:#f8f9fb}
.hz-cp-star-r{width:24px;height:24px;border-radius:50%;background:rgba(245,158,11,.1);color:#b7791f;font-weight:900;font-size:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hz-cp-star-info{flex:1;min-width:0}
.hz-cp-star-info strong{display:block;font-size:12px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hz-cp-star-info small{font-size:9px;color:#94a3b8;font-weight:700}
.hz-cp-star-val{display:flex;flex-direction:column;align-items:center;flex-shrink:0}
.hz-cp-star-val b{font-size:18px;font-weight:900;color:#059669;line-height:1}
.hz-cp-star-val span{font-size:8px;color:#94a3b8;font-weight:700}
.hz-cp-star-assist b{color:#0ea5e9}

/* MATCH CARDS */
.hz-cp-matches{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 20px;max-width:900px}
.hz-cp-mx{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px;padding:12px 10px;background:#fff;border-radius:14px;text-decoration:none;color:inherit;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.03)}
.hz-cp-mx-live{border:1.5px solid #10b981}
.hz-cp-mx-team{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;min-width:0}
.hz-cp-mx-team img{width:30px;height:30px;object-fit:contain}
.hz-cp-mx-team span{font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70px;display:block}
.hz-cp-mx-center{text-align:center;min-width:40px}
.hz-cp-mx-center strong{display:block;font-size:16px;font-weight:900;line-height:1;direction:ltr;unicode-bidi:isolate}
.hz-cp-mx-center span{font-size:9px;color:#94a3b8;font-weight:700;display:block;margin-top:2px}
.hz-cp-live-dot{color:#10b981;position:relative;padding-right:10px}
.hz-cp-live-dot::before{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:50%;background:#10b981;animation:hz-cp-pulse 1.5s infinite}
@keyframes hz-cp-pulse{0%,100%{opacity:1}50%{opacity:.3}}
@media(max-width:400px){.hz-cp-matches{grid-template-columns:1fr}.hz-cp-mx-team img{width:26px;height:26px}}

/* BRACKET — round tabs */
.hz-cp-bracket{display:flex;flex-direction:column;gap:8px;margin:0 20px;max-width:900px}
.hz-cp-bk-round{margin-bottom:4px}
.hz-cp-bk-title{font-size:12px;font-weight:900;color:#64748b;text-align:center;margin-bottom:8px;padding:6px 12px;background:#f8f9fb;border-radius:8px}
.hz-cp-bk-matches{display:flex;flex-direction:column;gap:8px}
.hz-cp-bk-node{display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.03);text-decoration:none;color:inherit}
.hz-cp-bk-team{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #e2e8f0}
.hz-cp-bk-team:last-child{border:none}
.hz-cp-bk-team-info{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.hz-cp-bk-team-info img{width:22px;height:22px;object-fit:contain;flex-shrink:0}
.hz-cp-bk-team-info span{font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hz-cp-bk-score{font-size:16px;font-weight:900;min-width:22px;text-align:center}
.hz-cp-bk-win{background:rgba(16,185,129,.04)}
.hz-cp-bk-win .hz-cp-bk-team-info span{font-weight:900;color:#10b981}
.hz-cp-bk-win .hz-cp-bk-score{color:#10b981}

/* NEWS */
.hz-cp-news{display:flex;flex-direction:column;gap:8px;margin:0 20px;max-width:900px}
.hz-cp-news-card{display:block;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.03);text-decoration:none;color:inherit}
.hz-cp-news-img{height:130px;overflow:hidden}
.hz-cp-news-img img{width:100%;height:100%;object-fit:cover}
.hz-cp-news-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:22px;background:#f8f9fb}
.hz-cp-news-body{padding:10px 14px}
.hz-cp-news-body h4{font-size:13px;font-weight:800;line-height:1.55;margin:0 0 3px}
.hz-cp-news-body time{font-size:10px;color:#94a3b8;font-weight:600}
.hz-cp-news-feat .hz-cp-news-img{height:190px}
.hz-cp-news-feat .hz-cp-news-body h4{font-size:15px}

/* GROUPS */
.hz-cp-groups{display:flex;flex-direction:column;gap:12px;margin:0 20px;max-width:900px}
.hz-cp-group-card{background:#fff;border-radius:16px;padding:14px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.03)}
.hz-cp-group-name{font-size:14px;font-weight:900;margin:0 0 10px;padding-right:10px;border-right:3px solid #eab308}

@media(max-width:520px){.hz-cp-hero-inner{flex-direction:column;align-items:stretch}.hz-cp-leader{max-width:none}.hz-cp-hero-main{flex-direction:column;align-items:flex-start;gap:10px}}
.hz-cp-mx-fin .hz-cp-mx-center span{color:#64748b}

/* ═══════ Competition hero color overrides ═══════ */
/* League (Roshn) = default purple — already set */
/* Cup (King's Cup / Super Cup) = green */
.hz-cp-cup .hz-cp-hero{background:linear-gradient(165deg,#064e3b,#059669,#10b981)}
/* ACL = deep blue */
.hz-cp-acl .hz-cp-hero{background:linear-gradient(165deg,#0c1e3f,#1e3a8a,#3b82f6)}
/* World Cup = dark */
.hz-cp-worldcup .hz-cp-hero{background:linear-gradient(165deg,#0f172a,#1e293b,#334155)}

/* Tablet */
@media(min-width:769px){
.hz-cp-hero-inner,.hz-cp .container{max-width:900px;margin-left:auto;margin-right:auto}
.hz-cp-hero{padding:32px 20px 28px}
.hz-cp-name{font-size:28px}
}

/* Desktop */
@media(min-width:1200px){
.hz-cp-hero-inner,.hz-cp .container{max-width:1000px}
.hz-cp-hero{padding:36px 24px 32px}
.hz-cp-name{font-size:32px}
}
