/* دمج الودجت المستخرجة داخل ثيم El-90 Plus */
.go4kora-widget-mount{width:100%;margin:0 auto 16px;min-width:0}
.go4m-widget-section{max-width:100%;margin:0 auto 16px!important;border-radius:18px;overflow:hidden}
.go4m-widget-section.go4m--slider{background:#f8fafc;border:1px solid #e5e7eb;box-shadow:0 8px 24px rgba(15,23,42,.08)}
.go4m-widget-section.go4m--table{background:#f8fafc;border:1px solid #e5e7eb;padding-bottom:10px}
.go4m-widget-section .go4m-toolbar{border-radius:0;background:#fff}
.go4m-widget-section .go4m-tabs{margin:10px 10px 12px}
.go4m-widget-section .go4m-list{padding:0 10px}
.go4m-widget-section .go4m-match{box-shadow:0 6px 18px rgba(15,23,42,.06)}
.go4m-widget-section .go4m-slider__track{transition:transform .25s ease}
.go4m-widget-section .go4m-slider__item{min-width:calc(25% - 9px)}
.go4m-widget-section .go4m-widget-logo{display:block;width:42px;height:42px;object-fit:contain;border:0;background:transparent}
.go4m-widget-section .go4m-widget-logo--fallback{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e5ecfd;color:#2563eb;font-weight:800}
.go4m-widget-section .go4m-match--large .go4m-widget-logo{width:48px;height:48px}
.go4m-widget-section .go4m-match--large .go4m-team__logo{background:#f1f5f9}
.go4m-widget-section .go4m-slider__nav{z-index:3}
.go4m-widget-details{margin-top:12px}
.go4m-widget-details .go4m-stats{margin-bottom:12px}
.go4m-widget-details .go4m-stats__header{min-height:62px;padding:12px 16px}
.go4m-rankings.go4m-widget-section{max-width:620px;margin-inline:auto!important}
.go4m-rankings.go4m-widget-section .go4m-rankings__logo img,.go4m-rankings.go4m-widget-section .go4m-widget-logo{width:48px;height:48px;object-fit:contain}
.go4m-rankings.go4m-widget-section .go4m-rankings__action{border:0;background:transparent;color:#2563eb;font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:2px}
.go4m-rankings.go4m-widget-section .go4m-rankings__favorite.is-active{color:#f59e0b;background:rgba(245,158,11,.1)}
.go4m-rankings.go4m-widget-section .go4m-rankings__favorite.is-active path{fill:currentColor}
@media(max-width:600px){.go4m-widget-section .go4m-slider__item{min-width:calc(100% - 8px)}.go4m-widget-section .go4m-match__body{grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr);padding:9px 7px 7px}.go4m-widget-section .go4m-center__time{font-size:18px}.go4m-widget-section .go4m-team__name{font-size:11px}.go4m-rankings.go4m-widget-section{max-width:100%}}

.go4m-rankings__item,.go4m-rankings__favorite,.go4m-rankings__action,.go4m-tab,.go4m-live-filter,.go4m-slider__nav{transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.go4m-rankings__item:active,.go4m-rankings__favorite:active,.go4m-rankings__action:active,.go4m-tab:active,.go4m-live-filter:active,.go4m-slider__nav:active{transform:scale(.96)}
.go4m-rankings__item:active{box-shadow:0 2px 5px rgba(15,23,42,.14)}
.go4m-rankings__favorite:focus-visible,.go4m-rankings__action:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}
.go4m-stats__team .go4m-widget-logo{width:32px;height:32px;flex:0 0 32px;object-fit:contain}

/* صفحة ترتيب البطولة المستقلة */
.ranking-detail-view{max-width:760px;margin:0 auto;animation:ranking-page-in .28s ease both}
@keyframes ranking-page-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.ranking-back{margin:4px 0 14px;max-width:220px}
.ranking-page-head{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-bottom:14px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.07)}
.ranking-page-head p{margin:0 0 3px;color:#64748b;font-size:11px;font-weight:700}
.ranking-page-head h2{margin:0;color:#111827;font-size:21px}
.ranking-page-head h2:before{display:none}
.ranking-page-logo{display:grid;place-items:center;width:72px;height:72px;flex:0 0 72px;border:1px solid #e5e7eb;border-radius:16px;background:#f8fafc}
.ranking-page-logo .go4m-widget-logo{width:58px;height:58px;object-fit:contain}
.ranking-page-logo .go4m-widget-logo--fallback{display:grid;place-items:center;border-radius:50%;background:#e5ecfd;color:#2563eb;font-size:25px;font-weight:800}
.ranking-table-card{margin:0!important;border-radius:18px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 8px 24px rgba(15,23,42,.07)}
.ranking-table-card .go4m-stats__table{min-width:0}
.ranking-table-card .go4m-stats__table-wrap{margin:0;border:0;border-radius:18px}
.go4m-rankings__item.is-opening{animation:ranking-press .42s ease both}
@keyframes ranking-press{0%{transform:scale(1);box-shadow:0 2px 7px rgba(15,23,42,.025)}45%{transform:scale(.95);box-shadow:0 0 0 4px rgba(37,99,235,.15)}100%{transform:scale(1);box-shadow:0 2px 7px rgba(15,23,42,.025)}}
@media(max-width:600px){.ranking-page-head{padding:13px}.ranking-page-logo{width:60px;height:60px;flex-basis:60px}.ranking-page-logo .go4m-widget-logo{width:48px;height:48px}.ranking-page-head h2{font-size:18px}.ranking-table-card .go4m-stats__table th,.ranking-table-card .go4m-stats__table td{padding:7px 4px;font-size:10px}}

/* إصلاح أسماء الفرق على الشاشات الصغيرة: اسم أفقي واضح مع تمرير أفقي للجدول */
.ranking-table-card .go4m-stats__table{min-width:560px;table-layout:fixed}
.ranking-table-card .go4m-stats__col-team{width:205px!important}
.ranking-table-card .go4m-stats__team{width:100%;min-width:0;gap:7px}
.ranking-table-card .go4m-stats__team-copy{min-width:135px;width:135px;overflow:hidden}
.ranking-table-card .go4m-stats__team-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:right}
.ranking-table-card .go4m-widget-logo{width:32px;height:32px;flex:0 0 32px}

/* القوالب تتبع ثيم الموقع، مع إبقاء الكروت مقروءة في الوضع الداكن */
html:not([data-theme="light"]) .go4m-widget-section.go4m--slider,
html:not([data-theme="light"]) .go4m-widget-section.go4m--table,
html:not([data-theme="light"]) .ranking-table-card{background:var(--card2);border-color:var(--bd);color:var(--tx)}
html:not([data-theme="light"]) .go4m-widget-section .go4m-toolbar,
html:not([data-theme="light"]) .go4m-widget-section .go4m-tabs,
html:not([data-theme="light"]) .go4m-widget-section .go4m-match,
html:not([data-theme="light"]) .go4m-widget-section .go4m-stats__table-wrap{background:var(--card);color:var(--tx);border-color:var(--bd)}
html:not([data-theme="light"]) .go4m-widget-section .go4m-match--slider{background:var(--card);border-color:var(--bd)}
html:not([data-theme="light"]) .go4m-widget-section .go4m-timezone__select,
html:not([data-theme="light"]) .go4m-widget-section .go4m-tab{background:var(--card2);color:var(--tx);border-color:var(--bd)}
html:not([data-theme="light"]) .go4m-stats.go4m-stats--light,
html:not([data-theme="light"]) .go4m-stats.go4m-stats--light .go4m-stats__table-wrap{--go4m-stats-bg:var(--card2);--go4m-stats-surface:var(--card);--go4m-stats-card:var(--card);--go4m-stats-border:var(--bd);--go4m-stats-border-strong:#3b4d6d;--go4m-stats-text:var(--tx);--go4m-stats-muted:var(--mu);--go4m-stats-soft:rgba(255,255,255,.09);background:var(--card2);color:var(--tx)}
html:not([data-theme="light"]) .ranking-page-head{background:var(--card);border-color:var(--bd);color:var(--tx)}
html:not([data-theme="light"]) .ranking-page-head h2{color:var(--tx)}
html:not([data-theme="light"]) .ranking-page-logo{background:var(--card2);border-color:var(--bd)}
@media(max-width:600px){.ranking-table-card .go4m-stats__table{min-width:560px}.ranking-table-card .go4m-stats__table th,.ranking-table-card .go4m-stats__table td{padding:7px 6px;font-size:11px}.ranking-table-card .go4m-stats__col-team{width:205px!important}}

/* الصفحة الرئيسية: فاصل هادئ ثم خبر رئيسي كبير وأخبار جانبية صغيرة */
.home-section-divider{height:1px;margin:14px 0 16px;background:linear-gradient(90deg,transparent,var(--bd),transparent)}
.home-news-title{margin:0 2px 9px;font-size:15px}
.home-news-title svg{width:18px;height:18px}
#newsHero.news-hero{width:100%;margin:0 0 18px;align-items:stretch}
#newsHero .news-hero-main{min-height:300px}
#newsHero .news-hero-side-list{min-width:0}
#newsHero .news-hero-side b{overflow-wrap:anywhere}
/* لا تسمح لاسم الفريق أن ينهار إلى حروف منفردة مهما كان عرض الهاتف */
.ranking-table-card .go4m-stats__table{min-width:720px!important}
.ranking-table-card .go4m-stats__team-name{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important}
.ranking-table-card .go4m-stats__team-copy{min-width:165px!important;width:165px!important}
@media(max-width:600px){
  #newsHero.news-hero{grid-template-columns:minmax(0,1.55fr) minmax(118px,1fr);gap:7px}
  #newsHero .news-hero-main{min-height:250px}
  #newsHero .news-hero-main b{font-size:14px}
  #newsHero .news-hero-side{grid-template-columns:64px minmax(0,1fr);min-height:77px}
  #newsHero .news-hero-side .news-thumb,#newsHero .news-hero-side .nimg{width:64px;min-height:77px}
  #newsHero .news-hero-side b{font-size:10px;line-height:1.4}
  .ranking-table-card .go4m-stats__table{min-width:720px!important}
}

/* أولوية نهائية بعد تحميل كل ملفات الودجت: خبر رئيسي كامل ثم قائمة رأسية */
#newsHero.news-hero{display:block!important;direction:rtl}
#newsHero .news-hero-main{width:100%;min-height:330px;margin-bottom:10px}
#newsHero .news-hero-side-list{display:flex!important;flex-direction:column!important;gap:8px;width:100%}
#newsHero .news-hero-side{display:grid!important;grid-template-columns:minmax(0,1fr) 104px!important;direction:rtl;width:100%;min-height:84px}
#newsHero .news-hero-side .news-thumb,#newsHero .news-hero-side .nimg{grid-column:2!important;grid-row:1!important;width:104px!important;height:100%;min-height:84px;margin:0;object-fit:cover}
#newsHero .news-hero-side .hero-copy{grid-column:1!important;grid-row:1!important;padding:9px 11px;display:flex;flex-direction:column;justify-content:center;direction:rtl;text-align:right}
@media(max-width:600px){#newsHero .news-hero-main{min-height:260px}#newsHero .news-hero-side{grid-template-columns:minmax(0,1fr) 78px!important;min-height:76px}#newsHero .news-hero-side .news-thumb,#newsHero .news-hero-side .nimg{width:78px!important;min-height:76px}}

/* Go4Kora lead-news extraction: primary story alone, then vertical secondary stories */
#newsHero.news-hero{display:grid!important;grid-template-areas:"primary" "secondary"!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;direction:rtl!important}
#newsHero .news-hero-main{grid-area:primary!important;position:relative;width:100%;min-height:390px;margin:0;overflow:hidden;border-radius:16px;background:#1c2534}
#newsHero .news-hero-main .news-thumb,#newsHero .news-hero-main .nimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;margin:0;border-radius:0}
#newsHero .news-hero-main:after{content:"";position:absolute;inset:22% 0 0;background:linear-gradient(180deg,rgba(12,18,32,.01),rgba(12,18,32,.88));z-index:1}
#newsHero .news-hero-main .hero-copy{position:absolute;inset-inline:0;bottom:0;z-index:2;padding:clamp(18px,4vw,36px);color:#fff;text-align:right}
#newsHero .news-hero-main .hero-copy b{display:block;max-width:780px;margin:8px 0 10px;color:#fff;font-size:clamp(22px,3vw,38px);line-height:1.38}
#newsHero .news-hero-main .hero-copy p{max-width:690px;margin:0;color:rgba(255,255,255,.85);font-size:14px;line-height:1.8}
#newsHero .news-hero-meta{font-size:11px;font-weight:700;opacity:.82}
#newsHero .news-hero-side-list{grid-area:secondary!important;display:flex!important;flex-direction:column!important;gap:17px!important;width:100%}
#newsHero .news-hero-side{display:grid!important;grid-template-columns:minmax(0,1fr) 145px!important;gap:16px;align-items:stretch;width:100%;min-height:108px;border:0;border-radius:0;background:transparent;direction:rtl}
#newsHero .news-hero-side .news-thumb,#newsHero .news-hero-side .nimg{grid-column:2!important;grid-row:1!important;width:145px!important;height:100%!important;min-height:108px!important;aspect-ratio:1.15;object-fit:cover;border-radius:10px;margin:0}
#newsHero .news-hero-side .hero-copy{grid-column:1!important;grid-row:1!important;padding:7px 0;direction:rtl;text-align:right;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
#newsHero .news-hero-side .hero-copy b{display:block;margin:7px 0 0;color:var(--tx);font-size:17px;line-height:1.52;letter-spacing:-.25px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#newsHero .news-hero-side .news-hero-meta{color:var(--mu)}
@media(max-width:600px){#newsHero.news-hero{gap:14px!important}#newsHero .news-hero-main{min-height:290px}#newsHero .news-hero-main .hero-copy b{font-size:25px}#newsHero .news-hero-main .hero-copy p{display:none}#newsHero .news-hero-side{grid-template-columns:minmax(0,1fr) 120px!important;gap:13px;min-height:92px}#newsHero .news-hero-side .news-thumb,#newsHero .news-hero-side .nimg{width:120px!important;min-height:92px!important}#newsHero .news-hero-side .hero-copy b{font-size:15px}}

/* تحسين ترتيب البطولة على الهاتف: كل الإحصاءات داخل عرض الشاشة بدون قص */
.ranking-table-card .go4m-stats__table-wrap{overflow:hidden!important;padding:0!important}
.ranking-table-card .go4m-stats__table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse}
.ranking-table-card .go4m-stats__table th,
.ranking-table-card .go4m-stats__table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;padding:8px 3px;font-size:11px}
.ranking-table-card .go4m-stats__table .go4m-stats__col-team{text-align:right;width:39%!important}
.ranking-table-card .go4m-stats__table th:not(.go4m-stats__col-team),
.ranking-table-card .go4m-stats__table td:not(.go4m-stats__col-team){width:8.7%}
.ranking-table-card .go4m-stats__team{display:flex;align-items:center;gap:5px;width:100%;min-width:0}
.ranking-table-card .go4m-stats__team-copy{display:block;min-width:0!important;width:auto!important;flex:1;overflow:hidden}
.ranking-table-card .go4m-stats__team-name{display:block;min-width:0;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;word-break:keep-all!important}
.ranking-table-card .go4m-stats__team .go4m-widget-logo{width:28px;height:28px;flex:0 0 28px}
.ranking-table-card .go4m-stats__gd{font-weight:800;color:var(--go4m-accent,#2563eb)}
@media(max-width:600px){
  .ranking-table-card .go4m-stats__table th,
  .ranking-table-card .go4m-stats__table td{padding:7px 2px;font-size:9px;line-height:1.2}
  .ranking-table-card .go4m-stats__table .go4m-stats__col-team{width:38%!important}
  .ranking-table-card .go4m-stats__table th:not(.go4m-stats__col-team),
  .ranking-table-card .go4m-stats__table td:not(.go4m-stats__col-team){width:8.85%}
  .ranking-table-card .go4m-stats__team{gap:3px}
  .ranking-table-card .go4m-stats__team .go4m-widget-logo{width:24px;height:24px;flex-basis:24px}
}

/* مجموعات الترتيب: اسم واضح وفاصل أخضر يحدد أول مركز غير متأهل */
.ranking-groups{display:grid;gap:16px}
.ranking-group-card{margin:0!important;overflow:hidden}
.ranking-group-head{display:flex;align-items:center;gap:9px;min-height:48px;padding:9px 13px;background:var(--card);border-bottom:1px solid var(--bd);color:var(--tx)}
.ranking-group-head h3{margin:0;flex:1;font-size:15px;font-weight:800}
.ranking-group-index{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#16a34a;color:#fff;font-size:12px;font-weight:800}
.ranking-group-qualify{font-size:10px;font-weight:700;color:#15803d;white-space:nowrap}
.ranking-group-card .go4m-stats__table{border-collapse:separate;border-spacing:0}
.ranking-group-card .go4m-stats__table tr.go4m-qualified-row td:first-child{border-inline-start:3px solid #22c55e}
.ranking-group-card .go4m-stats__table tr.go4m-qualified-row td:last-child{border-inline-end:3px solid #22c55e}
.ranking-group-card .go4m-stats__table tr.go4m-qualification-cut td{border-top:3px solid #22c55e}
.ranking-group-card .go4m-qualified-label{display:block;color:#16a34a;font-size:8px;font-weight:800;line-height:1.1}
html:not([data-theme="light"]) .ranking-group-head{background:var(--card);border-color:var(--bd)}
@media(max-width:600px){.ranking-group-head{min-height:44px;padding:8px 10px}.ranking-group-head h3{font-size:13px}.ranking-group-qualify{font-size:9px}.ranking-group-card .go4m-qualified-label{font-size:7px}}
