/*  GO11 FOOTBALL — نظام التصميم
 *  ستايل nex8k.com: ورق فاتح + خلفية ميش، شريط عائم زجاجي، بطاقات
 *  زجاجية بيضاء بتوهّج يتبع المؤشر، ألواح داكنة للتباين، أزرار حبرية
 *  تنقلب ليمونية عند المرور. اللون المميّز = ليموني شعار GO11.
 *  ------------------------------------------------------------------
 *  1. الرموز   2. الأساس   3. الشريط   4. عناصر مشتركة   5. الهيرو
 *  6. مباراة الصدارة   7. شريط التواريخ   8. بطاقة المباراة   9. القنوات
 *  10. الأخبار   11. الدوريات   12. الشريط المتحرك   13. صفحة المباراة
 *  14. التذييل   15. الاستجابة
 */

/* ============================================================
   1. الرموز
   ============================================================ */

:root {
  --paper:      #eef1e8;
  --paper-2:    #ffffff;
  --ink:        #131a12;
  --muted:      #666f62;
  --ink-2:      #3b4239;
  --faint:      #96a08f;
  --line:       rgba(19, 26, 18, .10);
  --line-2:     #cdd4c6;

  --accent:     #dcf047;          /* ليموني الشعار — التعبئة والحدود */
  --accent-ink: #5d7a0d;          /* نفس الدرجة معتمة — للنصوص الصغيرة (تباين مقروء) */
  --accent-soft:#eef9c2;          /* تظليل الكلمة المميّزة وخلفيات الوسوم */
  --volt:       #dcf047;          /* الليموني على الأسطح الداكنة */
  --pitch:      #123d2b;          /* أخضر الملعب */
  --green:      #1faa6e;
  --live:       #e5342a;          /* المباريات الجارية */
  --flame:      #ff5a2c;

  --display: 'Baloo Bhaijaan 2', system-ui, sans-serif;
  --body:    'IBM Plex Sans Arabic', system-ui, sans-serif;
  --num:     'Rubik', system-ui, sans-serif;   /* أرقام لاتينية فقط — لا يُستعمل على نص عربي */

  --glass-bg: rgba(255, 255, 255, .42);
  --glass-bd: rgba(255, 255, 255, .72);
  --glass-sh: inset 0 1px 0 rgba(255,255,255,.92),
              inset 0 -10px 26px rgba(255,255,255,.22),
              0 26px 60px rgba(30, 70, 45, .13),
              0 6px 16px rgba(0,0,0,.04);

  --ease: cubic-bezier(.2, .8, .3, 1);
  --pop:  cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(1.15rem, 4.5vw, 3.5rem);
  --cw: 1240px;
}

/* ============================================================
   2. الأساس
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html { overflow-x: clip; }

body {
  background: var(--paper);
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* الخلفية الميش — أربعة تدرّجات ثابتة خلف كل شيء */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 44% at 84%  4%, rgba(220, 240, 71, .26), transparent 60%),
    radial-gradient(38% 40% at  8% 22%, rgba( 40, 150, 110, .15), transparent 60%),
    radial-gradient(42% 44% at 90% 60%, rgba( 90, 200, 210, .11), transparent 60%),
    radial-gradient(44% 46% at  6% 86%, rgba(220, 240, 71, .20), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
          backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--glass-bd);
  box-shadow: var(--glass-sh);
}

/* الأرقام دائماً لاتينية ومعزولة عن اتجاه النص العربي */
.num, .score, .min, .time, .kick {
  font-family: var(--num);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}
.num, .min, .time, .kick { direction: ltr; unicode-bidi: isolate; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 10px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ============================================================
   3. الشريط العائم
   ============================================================ */

.navwrap {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding: 0 3vw;
  transition: top .3s;
}
.navwrap.solid { top: 10px; }

#hdr {
  width: 100%; max-width: 960px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 30px; padding: 9px 9px 9px 22px;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.9);
          backdrop-filter: blur(26px) saturate(1.9);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 16px 42px rgba(20,60,40,.12);
  position: relative;
  transition: background .3s, box-shadow .3s, padding .3s, border-radius .3s;
}
.navwrap.solid #hdr {
  padding: 6px 6px 6px 18px; border-radius: 24px;
  background-color: rgba(255,255,255,.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 12px 30px rgba(20,60,40,.16);
}
#hdr > *:not(.bar-glow) { position: relative; z-index: 1; }

.bar-glow {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--gx,50%) var(--gy,50%), rgba(220,240,71,.28), transparent 62%);
}
#hdr:hover .bar-glow { opacity: 1; }

.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav ul { display: flex; gap: 4px; font-weight: 500; font-size: .95rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--muted); padding: 8px 12px; border-radius: 13px;
  transition: color .25s, transform .35s var(--pop), background .25s;
}
.nav a:hover { color: var(--accent-ink); transform: translateY(-3px) scale(1.14); }
.nav a.on { color: var(--ink); background: rgba(19,26,18,.05); }

.navtools { display: flex; align-items: center; gap: 8px; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 14px;
  place-items: center; background: rgba(255,255,255,.6);
  border: 1px solid var(--glass-bd);
}
.burger svg { width: 20px; height: 20px; }

/* القائمة على الجوال */
.mnav {
  position: fixed; inset: 0; z-index: 99; display: none;
  padding: 96px 6vw 40px;
  background: rgba(238, 241, 232, .97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.mnav.open { display: block; }
.mnav a {
  display: block; padding: 16px 4px; font-size: 1.25rem; font-family: var(--display);
  font-weight: 600; border-bottom: 1px solid var(--line);
}
.mnav a:hover { color: var(--accent-ink); }

/* ============================================================
   4. عناصر مشتركة
   ============================================================ */

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .85rem; font-weight: 600; color: var(--ink);
  padding: 8px 15px; border-radius: 100px; margin-bottom: 22px; cursor: default;
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(30,70,45,.07);
  transition: transform .35s var(--pop);
}
.eyebrow:hover { transform: translateY(-3px) scale(1.05); }
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(220,240,71,.28); transition: box-shadow .35s;
}
.eyebrow:hover .dot { box-shadow: 0 0 0 7px rgba(220,240,71,.4); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: 16px 28px; border-radius: 18px; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  transition: transform .28s var(--pop), background .3s, box-shadow .3s, color .3s;
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--accent); color: var(--ink); box-shadow: 0 18px 38px rgba(220,240,71,.42);
}
.btn .arr { transition: transform .3s; }
.btn:hover .arr { transform: translateX(-6px); }

.btn.ghost {
  background: rgba(255,255,255,.5); color: var(--ink);
  border: 1px solid var(--glass-bd);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(30,70,45,.1);
}
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn.volt { background: var(--volt); color: var(--ink); }
.btn.volt:hover { background: #fff; color: var(--ink); }

/* تظليل الكلمة المميّزة — خط ليموني تحت النص، تماماً كـnex8k */
.hl { position: relative; display: inline-block; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05em;
  height: .24em; background: var(--accent-soft); z-index: -1; border-radius: 4px;
}

section { padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter); position: relative; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
  max-width: var(--cw); margin-inline: auto;
}
.sec-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.3px; line-height: 1.3;
}
.sec-sub { color: var(--muted); max-width: 44ch; font-size: 1.02rem; }

.wrap { max-width: var(--cw); margin-inline: auto; }

.more {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink);
  font-weight: 600; font-size: .95rem; transition: gap .25s;
}
.more:hover { gap: 14px; }

/* يظهر بلا جافاسكربت — الإخفاء يحدث فقط حين تعمل السكربتات */
.reveal { transition: opacity .8s, transform .8s; }
.js .reveal { opacity: 0; transform: translateY(36px); }
.js .reveal.in { opacity: 1; transform: none; }

.card-glow {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--gx,50%) var(--gy,50%), rgba(220,240,71,.3), transparent 60%);
}
.mt:hover .card-glow, .nw:hover .card-glow, .lg:hover .card-glow,
.ch:hover .card-glow, .q:hover .card-glow { opacity: 1; }

/* شارة بديلة حين لا يوجد شعار — أول حرفين */
.crest, .crest img { width: 100%; height: 100%; object-fit: contain; }
.crest {
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(150deg, #fff, #e4e9dc);
  border: 1px solid var(--line);
  font-family: var(--display); font-weight: 800; color: var(--accent-ink);
  font-size: .78em; letter-spacing: -.02em;
}
.crest.has-img { background: none; border: 0; }

/* ============================================================
   5. الهيرو — توزيع غير متساوٍ: نص على جهة، ومباراة اليوم على الجهة الثانية
   ============================================================ */

.hero { padding: clamp(6.5rem, 10vw, 8rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem); }

.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 34px;
  max-width: var(--cw); margin-inline: auto; align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.04fr .96fr; gap: clamp(2rem, 4vw, 4rem); }
}

.hero-in { text-align: center; }
.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.18;
  letter-spacing: -1px; margin-inline: auto; max-width: 18ch;
}
.hero h1 > span { display: block; animation: rise .9s backwards; }
.hero h1 > span:nth-child(1) { animation-delay: .12s; }
.hero h1 > span:nth-child(2) { animation-delay: .26s; }

.hero-desc {
  color: var(--muted); font-size: 1.05rem; max-width: 46ch;
  margin: 18px auto 0; animation: rise 1s .45s backwards;
}
.hero-actions {
  display: flex; gap: 13px; flex-wrap: wrap; justify-content: center;
  margin-top: 26px; animation: rise 1s .6s backwards;
}

/* على الشاشات الواسعة يصير النص محاذياً لليمين لا وسطاً */
@media (min-width: 1000px) {
  .hero-in { text-align: start; }
  .hero h1, .hero-desc { margin-inline: 0; }
  .hero-actions, .statline { justify-content: flex-start; }
}

/* آخر الأخبار تحت نص الهيرو — سطور لا بطاقات */
.hero-news {
  margin-top: 30px; padding-top: 8px;
  border-top: 1px solid var(--line);
  animation: rise 1s .75s backwards;
  text-align: start;
}
.hero-news li { border-bottom: 1px solid var(--line); }
.hero-news li:last-child { border-bottom: 0; }
.hero-news a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 12px; padding: 11px 4px;
  transition: background .25s, padding .25s;
}
.hero-news a:hover { background: rgba(220,240,71,.14); padding-inline: 10px; border-radius: 12px; }
.hero-news .cat {
  font-size: .7rem; font-weight: 700; white-space: nowrap;
  padding: 3px 10px; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid rgba(167,205,67,.45); color: var(--accent-ink);
}
.hero-news b {
  font-weight: 600; font-size: .93rem; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-news a:hover b { color: var(--accent-ink); }
.hero-news i { font-style: normal; font-size: .76rem; color: var(--faint); white-space: nowrap; }

@media (max-width: 640px) {
  .hero-news a { grid-template-columns: auto 1fr; }
  .hero-news i { display: none; }
}

/* عمود مباراة اليوم */
.hero-side { animation: rise 1s .5s backwards; }
.hero-side .eyebrow { margin-bottom: 14px; }
.hero-side .feat { padding: clamp(1.3rem, 2.6vw, 2rem); }
.hero-side .side .crest { width: clamp(54px, 8vw, 88px); height: clamp(54px, 8vw, 88px); padding: 7px; }
.hero-side .side b { font-size: clamp(.86rem, 1.6vw, 1.1rem); }
.hero-side .mid { min-width: clamp(80px, 12vw, 130px); }
.hero-side .mid .kick { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.hero-side .mid .scoreline { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.hero-side .tvbox { margin-top: 18px; padding: 14px 16px; }
.hero-side .tvbox__t { font-size: .98rem; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .3; } }

/* ============================================================
   6. مباراة الصدارة — لوح داكن، نفس ألواح nex8k الداكنة
   ============================================================ */

.feat {
  position: relative; overflow: hidden;
  border-radius: clamp(22px, 3vw, 36px);
  padding: clamp(1.6rem, 3.8vw, 3rem);
  background: var(--ink); color: var(--paper);
  box-shadow: 0 34px 80px rgba(15,45,30,.28);
  max-width: var(--cw); margin-inline: auto;
}
.feat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 82%  8%, rgba(220,240,71,.26), transparent 60%),
    radial-gradient(40% 60% at 14% 92%, rgba( 31,170,110,.22), transparent 60%);
}
.feat > * { position: relative; z-index: 2; }

.feat__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.feat__comp { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: .98rem; }
.feat__comp .crest { width: 36px; height: 36px; flex: none; background: rgba(255,255,255,.9); border: 0; padding: 3px; }
.feat__round { color: rgba(238,241,232,.6); font-size: .88rem; }

.feat__body {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(.6rem, 3vw, 2.4rem);
}
.side { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.side .crest {
  width: clamp(64px, 12vw, 110px); height: clamp(64px, 12vw, 110px); font-size: 1.5rem;
  background: rgba(255,255,255,.94); border: 0; padding: 9px;
}
.side .crest.has-img { background: rgba(255,255,255,.94); }
.side b { font-family: var(--display); font-weight: 700; font-size: clamp(.95rem, 2.2vw, 1.35rem); line-height: 1.35; }

.mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: clamp(96px, 20vw, 180px); }
.mid .kick { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; letter-spacing: -1px; line-height: 1; color: var(--volt); }
.mid .scoreline {
  display: flex; align-items: center; gap: clamp(8px, 2vw, 16px);
  font-family: var(--num); font-size: clamp(2.2rem, 6.5vw, 3.6rem); font-weight: 800; line-height: 1;
}
.mid .scoreline i { color: rgba(238,241,232,.4); font-style: normal; font-size: .5em; }
.mid .state { font-size: .86rem; color: rgba(238,241,232,.66); }

/* شارة الحالة */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 100px; font-size: .79rem; font-weight: 700;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.6); color: var(--ink-2);
}
.feat .pill { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: var(--paper); }
.pill--live { background: rgba(229,52,42,.12); border-color: rgba(229,52,42,.4); color: #c9251c; }
.feat .pill--live { background: rgba(229,52,42,.22); border-color: rgba(229,52,42,.5); color: #ff7a72; }
.pill--live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.2s infinite; }
.pill--ft { color: var(--faint); }
.pill--soon { background: var(--accent-soft); border-color: rgba(167,205,67,.5); color: var(--accent-ink); }
.feat .pill--soon { background: rgba(220,240,71,.2); border-color: rgba(220,240,71,.4); color: var(--volt); }

/* ============================================================
   7. شريط التواريخ
   ============================================================ */

.dates {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  max-width: var(--cw); margin: 0 auto 22px; scrollbar-width: none;
}
.dates::-webkit-scrollbar { display: none; }
.dates button {
  flex: none; min-width: 96px; padding: 10px 14px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,.5); border: 1px solid var(--glass-bd);
  box-shadow: 0 6px 16px rgba(30,70,45,.06);
  transition: background .25s, border-color .25s, transform .3s var(--pop), color .25s;
}
.dates button:hover { transform: translateY(-3px); border-color: rgba(167,205,67,.55); }
.dates button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.dates button i { display: block; font-style: normal; font-size: .78rem; opacity: .7; }
.dates button b { font-family: var(--num); font-size: 1rem; }

/* مرشّحات */
.filters { display: flex; gap: 8px; flex-wrap: wrap; max-width: var(--cw); margin: 0 auto 26px; }
.filters button {
  padding: 8px 16px; border-radius: 100px; font-size: .89rem; color: var(--muted);
  background: rgba(255,255,255,.5); border: 1px solid var(--glass-bd);
  transition: all .25s;
}
.filters button:hover { color: var(--ink); border-color: rgba(167,205,67,.55); }
.filters button.on { background: var(--accent); color: var(--ink); border-color: transparent; font-weight: 600; }

/* ============================================================
   8. مجموعة البطولة + بطاقة المباراة
   ============================================================ */

.comp-group { max-width: var(--cw); margin: 0 auto 30px; }

.comp-head {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 0 6px 12px; text-align: start;
  border-bottom: 1px solid var(--line); margin-bottom: 12px;
  transition: color .25s;
}
.comp-head:hover { color: var(--accent-ink); }
.comp-head .chev { width: 18px; height: 18px; color: var(--faint); transition: transform .3s var(--ease); }
.comp-group.folded .comp-head .chev { transform: rotate(180deg); }
.comp-group.folded .comp-body { display: none; }
.comp-head .crest { width: 32px; height: 32px; flex: none; font-size: .7rem; }
.comp-head b { font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
.comp-head small { color: var(--faint); font-size: .82rem; margin-inline-start: auto; }

.mt {
  position: relative; overflow: hidden; display: block;
  border-radius: 20px; padding: 15px 17px; margin-bottom: 9px;
  background: rgba(255,255,255,.52);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-bd);
  box-shadow: 0 10px 26px rgba(30,70,45,.07);
  transition: transform .35s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}
.mt:hover {
  transform: translateX(-5px); background: rgba(255,255,255,.78);
  border-color: rgba(167,205,67,.5); box-shadow: 0 18px 40px rgba(30,70,45,.13);
}
.mt > *:not(.card-glow) { position: relative; z-index: 1; }
.mt.is-live { border-color: rgba(229,52,42,.35); }

/* رابط البطاقة كطبقة مطلقة — يترك أزرار القنوات فوقه قابلة للضغط */
.mt__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.mt > .mt__tv, .mt > .tvs { z-index: 2; }   /* أعلى تخصيصاً من قاعدة z-index:1 أعلاه */

.mt__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }

/* ترتيب FotMob: الاسم على الطرف والشعار ملاصق للوقت في النص */
.team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team.a { justify-content: flex-end; }
.team.b { justify-content: flex-start; }
.team .crest { width: 36px; height: 36px; flex: none; font-size: .68rem; }
.team span {
  font-weight: 600; font-size: .98rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.mt__mid { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 78px; }
.mt__mid .score { font-size: 1.3rem; }
.mt__mid .time  { font-size: 1.08rem; font-weight: 600; }
.mt__mid small  { font-size: .73rem; color: var(--faint); }
.mt__mid .min   { color: var(--live); font-size: .78rem; font-weight: 700; }

/* النتيجة: المضيف أولاً في تدفّق RTL فيظهر رقمه يميناً */
.score { display: inline-flex; align-items: center; gap: 7px; }
.score i { color: var(--faint); font-style: normal; }

/* صف القناة الناقلة — العنصر الأهم في البطاقة */
.mt__tv {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line);
}
.mt__tv .lbl { font-size: .78rem; color: var(--faint); display: flex; align-items: center; gap: 5px; }
.mt__tv .lbl svg { width: 14px; height: 14px; }

.tv {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 5px; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid rgba(167,205,67,.5);
  font-size: .81rem; font-weight: 600; color: var(--accent-ink);
  transition: background .25s, transform .3s var(--pop), box-shadow .3s, color .25s;
}
.tv:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(167,205,67,.35); }
.tv img {
  width: 24px; height: 24px; border-radius: 50%; object-fit: contain;
  background: #fff; padding: 2px; border: 1px solid var(--line);
}
.tv .mono {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--ink); color: var(--accent);
  font-family: var(--display); font-weight: 800; font-size: .6rem;
}
.tv .free { font-size: .67rem; padding: 1px 7px; border-radius: 100px; background: var(--ink); color: var(--accent); }
.tv--none { background: rgba(255,255,255,.55); border-color: var(--line-2); color: var(--muted); }
.tv--none .mono { background: var(--line-2); color: #fff; }
.tv--big { font-size: .96rem; padding: 7px 16px 7px 7px; }
.tv--big img, .tv--big .mono { width: 32px; height: 32px; font-size: .74rem; }

.mt__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--faint); margin-inline-start: auto; }

.empty {
  text-align: center; padding: 60px 22px; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: 22px;
  max-width: var(--cw); margin-inline: auto; background: rgba(255,255,255,.35);
}

/* ============================================================
   9. القنوات
   ============================================================ */

.chans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; max-width: var(--cw); margin-inline: auto; }

.ch {
  position: relative; overflow: hidden; border-radius: 22px; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .4s var(--pop), box-shadow .4s;
}
.ch:hover { transform: translateY(-7px); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 30px 60px rgba(30,70,45,.16); }
.ch > *:not(.card-glow) { position: relative; z-index: 1; }
.ch__logo {
  width: 56px; height: 56px; border-radius: 16px; background: #fff; padding: 9px;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.ch__logo img { max-height: 100%; object-fit: contain; }
.ch__logo b { font-family: var(--display); font-size: 1rem; }
.ch b { font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
.ch p { font-size: .88rem; color: var(--muted); }
.ch__tag {
  align-self: flex-start; margin-top: auto; padding: 5px 12px; border-radius: 100px;
  font-size: .75rem; font-weight: 600;
  background: rgba(19,26,18,.05); border: 1px solid var(--line); color: var(--ink-2);
}
.ch__tag.free { background: var(--accent-soft); border-color: rgba(167,205,67,.5); color: var(--accent-ink); }

/* ============================================================
   10. الأخبار
   ============================================================ */

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; max-width: var(--cw); margin-inline: auto; }

.nw {
  position: relative; overflow: hidden; border-radius: 22px; display: flex; flex-direction: column;
  transition: transform .4s var(--pop), box-shadow .4s;
}
.nw:hover { transform: translateY(-8px); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 32px 62px rgba(30,70,45,.18); }
.nw > *:not(.card-glow) { position: relative; z-index: 1; }

.nw__img {
  aspect-ratio: 4 / 3; overflow: hidden; position: relative;
  background: #0d1a14;
}
.nw__img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 12%;      /* صور اللاعبين طولية: الوجه في الأعلى */
  transition: transform .6s var(--ease);
}
.nw:hover .nw__img img { transform: scale(1.03); }
.nw__img .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 2rem; color: rgba(220,240,71,.35);
}
.nw__cat {
  position: absolute; top: 11px; inset-inline-end: 11px; z-index: 2;
  padding: 4px 12px; border-radius: 100px; font-size: .73rem; font-weight: 700;
  background: var(--accent); color: var(--ink);
}
.nw__body { padding: 17px 18px 19px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nw__body h3 { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.45; }
.nw__body p { font-size: .9rem; color: var(--muted); flex: 1; }
.nw__foot { display: flex; gap: 12px; font-size: .78rem; color: var(--faint); margin-top: 4px; }

/* ============================================================
   11. الدوريات
   ============================================================ */

.leagues { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; max-width: var(--cw); margin-inline: auto; }

.lg {
  position: relative; overflow: hidden; border-radius: 22px; padding: 20px 18px;
  display: flex; align-items: center; gap: 15px;
  transition: transform .4s var(--pop), box-shadow .4s;
}
.lg:hover { transform: translateY(-7px); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 28px 56px rgba(30,70,45,.16); }
.lg > *:not(.card-glow) { position: relative; z-index: 1; }
/* إطار موحّد: الشعارات تختلف في المقاس والنسبة، فنثبّت المربّع
   ونجعل الشعار يتقولب داخله محاذياً للوسط. */
.lg .crest {
  width: 56px; height: 56px; flex: none; font-size: .74rem;
  border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 7px;
}
.lg .crest.has-img { background: #fff; border: 1px solid var(--line); }
.lg .crest img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.lg b { font-family: var(--display); font-weight: 700; font-size: 1.02rem; display: block; }
.lg small { color: var(--muted); font-size: .83rem; }
.lg .tvmini { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: .77rem; color: var(--accent-ink); font-weight: 600; }
.lg .tvmini img {
  width: 22px; height: 22px; border-radius: 6px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); padding: 2px;
}

/* ============================================================
   12. الشريط المتحرك (الأندية)
   ============================================================ */

.band {
  overflow: hidden; direction: ltr; padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.band .track {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 14px;
  width: max-content;
  animation: scroll var(--t, 120s) linear infinite;
  will-change: transform;                 /* يمنع التقطيع أثناء الدوران */
}
.band.rev .track { animation-direction: reverse; }
.band:hover .track { animation-play-state: paused; }
/* -50% لأن المسار نسختان متطابقتان — فتكون العودة غير مرئية */
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.chip {
  flex: none; display: grid; place-items: center;
  width: 104px; height: 92px; padding: 0 14px;
  border-radius: 20px;
  transition: background .3s, transform .35s var(--pop);
}
.chip:hover { background: rgba(255,255,255,.55); transform: translateY(-4px); }
.chip img {
  max-height: 58px; max-width: 58px; width: auto; height: auto;
  filter: grayscale(1); opacity: .62;
  transition: filter .3s, opacity .3s;
}
.chip:hover img { filter: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) { .band .track { animation: none; } }

/* ============================================================
   13. صفحة المباراة
   ============================================================ */

.mpage { padding-top: clamp(6.5rem, 10vw, 8rem); }

.tvbox {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-radius: 22px; padding: 18px 20px; margin-top: 24px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
}
.tvbox__t { font-family: var(--display); font-weight: 700; font-size: 1.06rem; }
.tvbox__t small { display: block; font-family: var(--body); font-weight: 400; font-size: .83rem; color: rgba(238,241,232,.66); }
.tvbox .tvs { display: flex; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; }

.info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 20px; }
.info div {
  border-radius: 18px; padding: 15px 16px;
  background: rgba(255,255,255,.5); border: 1px solid var(--glass-bd);
  box-shadow: 0 8px 20px rgba(30,70,45,.06);
}
.info small { display: block; color: var(--faint); font-size: .77rem; margin-bottom: 3px; }
.info b { font-weight: 600; font-size: .96rem; }

.events { max-width: 760px; margin: 0 auto; }
.ev {
  display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.ev:last-child { border-bottom: 0; }
.ev .min {
  display: grid; place-items: center; height: 30px; border-radius: 10px;
  background: rgba(19,26,18,.05); font-size: .84rem;
}
.ev__b { display: flex; align-items: center; gap: 10px; }
.ev__b svg { width: 20px; height: 20px; flex: none; color: var(--accent-ink); }
.ev__b b { font-weight: 600; }
.ev__b small { color: var(--muted); font-size: .83rem; }
.ev.away { direction: ltr; text-align: left; }
.ev.away .ev__b { flex-direction: row-reverse; }

/* ============================================================
   14. التذييل
   ============================================================ */

footer {
  margin-top: 40px; padding: clamp(2.8rem, 5vw, 4rem) var(--gutter) 26px;
  background: var(--ink); color: var(--paper); position: relative;
  isolation: isolate;      /* بدل overflow:hidden الذي كان يقصّ الشعار */
}
footer::after { border-radius: inherit; }
footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 70% at 88% 0%, rgba(220,240,71,.2), transparent 60%);
}
footer > * { position: relative; z-index: 1; }
.f-in {
  max-width: var(--cw); margin-inline: auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.f-in h4 { font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.f-in li { margin-bottom: 7px; }
.f-in a { color: rgba(238,241,232,.62); font-size: .9rem; transition: color .25s; }
.f-in a:hover { color: var(--volt); }
.f-in p { color: rgba(238,241,232,.62); font-size: .9rem; max-width: 34ch; }
.f-in img { height: 34px; width: auto; margin: 0 0 14px; display: block; }
.f-bot {
  max-width: var(--cw); margin: 28px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; color: rgba(238,241,232,.5); font-size: .84rem;
}

/* ============================================================
   15. الاستجابة
   ============================================================ */

@media (max-width: 1040px) {
  .chans, .leagues { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: repeat(2, 1fr); }
  .info { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .navtools .btn { display: none; }
  /* على الجوال: الشعار يسار تماماً وزر القائمة يمين تماماً */
  #hdr { flex-direction: row-reverse; justify-content: space-between; padding: 8px 10px; }
  .brand { margin: 0; }
  .brand img { height: 30px; }
  .navtools { margin: 0; }
}

@media (max-width: 700px) {
  .quick { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr; }
  .chans, .leagues { grid-template-columns: 1fr; }
  .f-in { grid-template-columns: 1fr 1fr; }

  .team .crest { width: 32px; height: 32px; }
  .team span { font-size: .89rem; }
  .mt__mid { min-width: 64px; }
  .feat__body { gap: .4rem; }
  .mt__meta { width: 100%; margin-inline-start: 0; }
}

@media (max-width: 420px) {
  .team span { font-size: .81rem; }
  .f-in { grid-template-columns: 1fr; }
}

/* ============================================================
   16. شريط أهم المباريات المتحرك
   ============================================================ */

.ticker {
  position: relative; z-index: 2;
  margin: 0 auto; max-width: none;
  padding: 10px 0;
  background: rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-block: 1px solid var(--glass-bd);
  box-shadow: 0 10px 30px rgba(30,70,45,.07);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__rail { display: flex; width: max-content; animation: tick var(--t, 60s) linear infinite; }
.ticker:hover .ticker__rail { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__rail { animation: none; }
  .ticker { overflow-x: auto; }
}

.tk {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  padding: 7px 18px; border-inline-end: 1px solid var(--line);
  white-space: nowrap; font-size: .88rem;
  transition: background .25s;
}
.tk:hover { background: rgba(220,240,71,.16); }
.tk__c { width: 22px; height: 22px; flex: none; }
.tk__c .crest { font-size: .5rem; }
.tk__s { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.tk__s .crest { width: 22px; height: 22px; flex: none; font-size: .5rem; }
.tk__v {
  font-family: var(--num); font-weight: 700; font-size: .92rem;
  padding: 2px 9px; border-radius: 8px; background: rgba(19,26,18,.06);
  direction: ltr; unicode-bidi: isolate;
}
.tk.is-live .tk__v { background: rgba(229,52,42,.14); color: #c9251c; }
.tk__tv {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 600; color: var(--accent-ink);
  padding: 2px 9px 2px 3px; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid rgba(167,205,67,.45);
}
.tk__tv img { width: 17px; height: 17px; border-radius: 50%; background: #fff; }
.tk__tv .mono {
  width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--accent);
  font-family: var(--display); font-weight: 800; font-size: .48rem;
}

/* الشريط داخل الحاوية بحواف مدوّرة.
   width:100% ضروري: بدونه يصير عنصر flex بعرض max-content فيقفز
   إلى 1240px داخل شاشة الجوال ويكسر التمرير بتجاوز أفقي. */
.ticker {
  width: 100%; max-width: var(--cw); margin: 0 auto;
  border-radius: 20px; border: 1px solid var(--glass-bd);
}

@media (max-width: 700px) {
  .tk { padding: 6px 13px; font-size: .82rem; }
  .tk__s span { max-width: 8ch; overflow: hidden; text-overflow: ellipsis; }
}

/* ملاحظة تظهر حين لا توجد مباريات باليوم المختار */
.note {
  max-width: var(--cw); margin: 0 auto 20px; padding: 12px 16px;
  border-radius: 14px; font-size: .88rem; color: var(--ink-2);
  background: var(--accent-soft); border: 1px solid rgba(167,205,67,.45);
}
.note[hidden] { display: none; }

/* ============================================================
   17. لوح أهم المباريات — رأس بطولة واحد ثم صفوف سطر واحد
   ============================================================ */

.top {
  position: relative; overflow: hidden;
  border-radius: clamp(20px, 3vw, 28px);
  padding: 6px clamp(.8rem, 1.8vw, 1.2rem) 12px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 34px 80px rgba(15,45,30,.28);
}
.top::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 60% at 84%  6%, rgba(220,240,71,.2), transparent 60%),
    radial-gradient(42% 60% at 12% 94%, rgba( 31,170,110,.16), transparent 60%);
}
.top > * { position: relative; z-index: 2; }

/* رأس البطولة يُكتب مرّة واحدة لكل مجموعة */
.top__gh {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 4px 9px; font-size: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.top__gh .crest {
  width: 20px; height: 20px; flex: none; font-size: .46rem;
  background: rgba(255,255,255,.92); border: 0; padding: 2px;
}
.top__gh b { font-weight: 600; color: rgba(238,241,232,.85); }
.top__gh i { font-style: normal; margin-inline-start: auto; color: rgba(238,241,232,.45); font-size: .75rem; }

/* الصف: وقت · مضيف · ضيف · شعار القناة — بلا تكرار وبلا شارات ضخمة */
.tp {
  display: grid; grid-template-columns: auto 1fr 1fr auto;
  align-items: center; gap: 10px;
  padding: 11px 4px; border-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .25s, padding .25s;
}
.top__g > .tp:last-child { border-bottom: 0; }
.tp:hover { background: rgba(255,255,255,.07); padding-inline: 10px; }

.tp__time {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: .88rem; font-weight: 700; min-width: 52px; text-align: center;
  padding: 4px 8px; border-radius: 9px;
  background: rgba(255,255,255,.09); color: rgba(238,241,232,.9);
  direction: ltr; unicode-bidi: isolate;
}
.tp__time--live { background: rgba(229,52,42,.26); color: #ff9a94; }

.tp__t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tp__t--b { flex-direction: row-reverse; }
.tp__t .crest {
  width: 26px; height: 26px; flex: none; font-size: .52rem;
  background: rgba(255,255,255,.94); border: 0; padding: 3px;
}
.tp__t span {
  font-weight: 600; font-size: .88rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.tp__ch { flex: none; }
.tp__ch img, .tp__ch .mono {
  width: 24px; height: 24px; border-radius: 50%; object-fit: contain;
  background: #fff; padding: 2px;
}
.tp__ch .mono {
  display: grid; place-items: center; background: var(--volt); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: .56rem; padding: 0;
}

@media (max-width: 480px) {
  .tp { gap: 7px; }
  .tp__t span { font-size: .8rem; }
  .tp__time { min-width: 46px; font-size: .82rem; }
}

/* ============================================================
   18. واجهة الأخبار — الخبر الرئيسي والعناوين والانتقالات
   ============================================================ */

.top-news { padding-top: clamp(6.5rem, 10vw, 8rem); }

.news-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px;
  max-width: var(--cw); margin-inline: auto;
}
@media (min-width: 1000px) { .news-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; } }

/* الخبر الرئيسي */
.lead {
  position: relative; overflow: hidden; display: block;
  border-radius: clamp(20px, 3vw, 30px);
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--glass-sh);
  transition: transform .4s var(--pop), box-shadow .4s;
}
.lead:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 34px 66px rgba(30,70,45,.2); }
.lead__img {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; position: relative;
  background: #0f1c16;
}
.lead__img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 12%;      /* صور اللاعبين طولية: الوجه في الأعلى */
  transition: transform .6s var(--ease);
}
.lead:hover .lead__img img { transform: scale(1.02); }
.lead__img .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem);
  color: rgba(220,240,71,.35);
}
.lead__body { display: block; padding: clamp(1.1rem, 2.4vw, 1.8rem); }
.lead__cat {
  display: inline-block; margin-bottom: 12px;
  padding: 4px 13px; border-radius: 100px; font-size: .74rem; font-weight: 700;
  background: var(--accent); color: var(--ink);
}
.lead__body h2 {
  font-family: var(--display); font-weight: 800; line-height: 1.35;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
}
.lead__body p { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.lead__foot { display: flex; gap: 14px; margin-top: 14px; font-size: .8rem; color: var(--faint); }

/* العناوين الثانوية */
.side-list { display: flex; flex-direction: column; }
.side-list .eyebrow { align-self: flex-start; }
.sd {
  display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start;
  padding: 14px 6px; border-bottom: 1px solid var(--line);
  transition: background .25s, padding .25s;
}
.sd:last-child { border-bottom: 0; }
.sd:hover { background: rgba(255,255,255,.5); padding-inline: 12px; border-radius: 14px; }
.sd__n {
  font-family: var(--num); font-weight: 800; font-size: 1.15rem;
  color: var(--accent-ink); opacity: .5; min-width: 22px;
}
.sd__b { display: block; min-width: 0; }
.sd__cat { display: block; font-size: .72rem; font-weight: 700; color: var(--accent-ink); margin-bottom: 3px; }
.sd__b b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.5; }
.sd:hover .sd__b b { color: var(--accent-ink); }
.sd__b i { font-style: normal; font-size: .75rem; color: var(--faint); }

/* الانتقالات */
.tr {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 16px; border-radius: 20px;
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  box-shadow: 0 10px 26px rgba(30,70,45,.07);
  transition: transform .35s var(--pop);
}
.tr:hover { transform: translateY(-5px); }
.tr > *:not(.card-glow) { position: relative; z-index: 1; }
.tr__p .crest { width: 54px; height: 54px; }
.tr__b b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.tr__move { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.tr__move .crest { width: 26px; height: 26px; }
.tr__move i { font-style: normal; color: var(--accent-ink); font-weight: 700; }
.tr__b small { color: var(--muted); font-size: .84rem; }

.empty small { display: block; margin-top: 6px; font-size: .82rem; color: var(--faint); }

/* رابط «جدول المباريات كاملاً» بجانب الشريط */
.tickerwrap {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.ticker__all {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; color: var(--accent-ink);
  transition: gap .25s;
}
.ticker__all:hover { gap: 14px; }

/* شرائح القنوات في الشريط — إطار أوسع لأن شعاراتها أفقية */
.chip--tv {
  width: 138px; height: 86px; padding: 0;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(30,70,45,.06);
}
.chip--tv:hover { background: #fff; }
/* الشعارات تختلف نسبها كثيراً — نثبّت صندوقاً واحداً ونقولبها داخله */
.chip--tv img {
  width: 82px; height: 40px; max-width: none; max-height: none;
  object-fit: contain; object-position: center;
  filter: grayscale(1); opacity: .6;          /* رمادية، وتتلوّن عند المرور */
  transition: filter .3s, opacity .3s;
}
.chip--tv:hover img { filter: none; opacity: 1; }
.chip--tv .txt {
  font-family: var(--display); font-weight: 700; font-size: .84rem;
  color: var(--muted); text-align: center; direction: rtl;
}

/* إسناد المصدر على بطاقة الخبر */
.nw__src {
  margin-inline-start: auto; padding: 2px 9px; border-radius: 100px;
  background: rgba(19,26,18,.05); border: 1px solid var(--line);
  font-size: .72rem; color: var(--ink-2);
}

/* ============================================================
   19. بنر المباريات — تبويب أمس/اليوم/غداً + بطاقات أفقية
   ============================================================ */

.mbarwrap { padding-block: clamp(1.2rem, 2.5vw, 2rem); }

.mbar {
  border-radius: clamp(18px, 2.6vw, 26px); overflow: hidden;
  background: rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--glass-bd);
  box-shadow: 0 14px 36px rgba(30,70,45,.09);
}

.mbar__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
}
.mbar__tabs { display: flex; gap: 4px; background: rgba(19,26,18,.05); padding: 4px; border-radius: 14px; }
.mbar__tabs button {
  padding: 7px 18px; border-radius: 11px; font-size: .89rem; font-weight: 600; color: var(--muted);
  transition: background .25s, color .25s;
}
.mbar__tabs button:hover { color: var(--ink); }
.mbar__tabs button.on { background: var(--ink); color: var(--paper); }
.mbar__all { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--accent-ink); transition: gap .25s; }
.mbar__all:hover { gap: 14px; }

.mbar__rail {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.mbar__rail::-webkit-scrollbar { height: 6px; }
.mbar__rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 100px; }
.mbar__empty { padding: 34px 20px; width: 100%; text-align: center; color: var(--muted); font-size: .92rem; }

/* بطاقة مباراة داخل البنر */
.mc {
  flex: none; width: clamp(220px, 25vw, 258px); scroll-snap-align: start;
  display: grid; grid-template-rows: auto 1fr auto; gap: 11px;
  padding: 13px 13px 12px;
  border-inline-end: 1px solid var(--line);
  transition: background .25s;
}
.mc:hover { background: rgba(220,240,71,.13); }
.mc.is-live { background: rgba(229,52,42,.05); }

.mc__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc__comp { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); min-width: 0; }
.mc__comp .crest { width: 18px; height: 18px; flex: none; font-size: .4rem; }
.mc__comp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc__top .pill { padding: 2px 9px; font-size: .68rem; flex: none; }

.mc__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 6px; }
.mc__t { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; min-width: 0; }
.mc__t .crest { width: 36px; height: 36px; flex: none; font-size: .6rem; }
.mc__t b {
  font-weight: 600; font-size: .79rem; line-height: 1.35; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* الوسط: النتيجة أو الموعد، وتحتها السطر الصغير — لا سطر منفصل بالأسفل */
.mc__mid2 { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 4px; min-width: 58px; }
.mc__mid2 small { font-size: .7rem; color: var(--faint); }
.mc__sc, .mc__kick {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--num); font-weight: 800; line-height: 1;
  direction: ltr; unicode-bidi: isolate;
}
.mc__sc { font-size: 1.32rem; }
.mc__kick { font-size: 1.12rem; color: var(--ink); }
.mc__sc i { color: var(--faint); font-style: normal; font-size: .68em; }
.mc.is-live .mc__sc { color: var(--live); }
.mc.is-live .mc__mid2 small { color: var(--live); font-weight: 700; }

/* شارة القناة باسمها ورقمها، بعرض البطاقة */
.mc__tv {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 4px; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid rgba(167,205,67,.45);
  font-size: .75rem; font-weight: 600; color: var(--accent-ink);
}
.mc__tv img, .mc__tv .mono {
  width: 21px; height: 21px; border-radius: 50%; flex: none;
  object-fit: contain; background: #fff; padding: 1px;
}
.mc__tv .mono { display: grid; place-items: center; background: var(--ink); color: var(--accent);
  font-family: var(--display); font-weight: 800; font-size: .5rem; padding: 0; }
.mc__tv span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 620px) {
  .mbar__top { flex-wrap: wrap; justify-content: center; }
  .mbar__tabs { flex: 1 1 100%; justify-content: center; }
  .mc { width: 196px; padding: 12px 11px; }
  .mc__t b { font-size: .76rem; }
}

/* ============================================================
   20. سلايدر الأخبار الرئيسية
   ============================================================ */

.slider { position: relative; }
/* العرض يجب أن يُحسم من الحاوية لا من المحتوى، وإلا انتفخت الشرائح */
.slider { min-width: 0; }
.slider__win { width: 100%; overflow: hidden; border-radius: clamp(20px, 3vw, 30px); }
.slider__rail { display: flex; width: 100%; transition: transform .55s var(--ease); }
.slider__rail > .lead {
  flex: 0 0 100%; min-width: 0; max-width: 100%;
  border-radius: 0; border: 0; box-shadow: none; background: transparent;
}

.slider__nav {
  position: absolute; top: 34%; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  background: rgba(255,255,255,.9); color: var(--ink);
  border: 1px solid var(--glass-bd); box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transition: transform .25s var(--pop), background .25s;
}
.slider__nav:hover { transform: scale(1.1); background: var(--accent); }
.slider__nav--prev { inset-inline-start: 12px; }
.slider__nav--next { inset-inline-end: 12px; }

.slider__dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.slider__dots button {
  width: 8px; height: 8px; border-radius: 100px; background: var(--line-2);
  transition: width .3s, background .3s;
}
.slider__dots button.on { width: 26px; background: var(--accent-ink); }

/* الشريحة داخل السلايدر لا ترتفع عند المرور */
.slider .lead:hover { transform: none; box-shadow: var(--glass-sh); }

/* خلفية مموّهة من الصورة نفسها بدل الأسود الصلب */


@media (max-width: 620px) {
  .slider__nav { width: 36px; height: 36px; top: 28%; }
}

/* ============================================================
   21. صفحة المقال
   ============================================================ */

.art { max-width: 760px; margin-inline: auto; padding-bottom: 20px; }
.art__cat {
  display: inline-block; margin-bottom: 14px;
  padding: 5px 14px; border-radius: 100px; font-size: .78rem; font-weight: 700;
  background: var(--accent); color: var(--ink);
}
.art h1 {
  font-family: var(--display); font-weight: 800; line-height: 1.32;
  font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: -.3px;
}
.art__lede { margin-top: 14px; font-size: 1.08rem; color: var(--ink-2); line-height: 1.85; }
.art__meta { display: flex; gap: 14px; margin-top: 14px; font-size: .82rem; color: var(--faint); }

.art__img {
  margin: 24px 0; border-radius: clamp(16px, 2.4vw, 24px); overflow: hidden;
  border: 1px solid var(--glass-bd); box-shadow: 0 18px 44px rgba(30,70,45,.14);
  background: #0f1c16;
}
.art__img img { width: 100%; height: auto; display: block; }

.art__body p { margin-bottom: 18px; font-size: 1.02rem; line-height: 2; color: var(--ink-2); }
.art__body p:first-child { font-weight: 500; color: var(--ink); }

.art__src {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 9px 16px; border-radius: 100px; font-size: .88rem; font-weight: 600;
  background: var(--accent-soft); border: 1px solid rgba(167,205,67,.45); color: var(--accent-ink);
  transition: gap .25s, background .25s;
}
.art__src:hover { gap: 14px; background: var(--accent); color: var(--ink); }

/* ============================================================
   22. صف الأخبار المتحرك — عدة بطاقات ظاهرة معاً
   ============================================================ */

.rail { position: relative; }
.rail__track {
  display: flex; gap: 17px; overflow-x: auto; scroll-snap-type: x proximity;
  /* overflow-x يقصّ رأسياً أيضاً — حشوة علوية تستوعب ارتفاع البطاقة عند المرور */
  padding: 16px 0 24px; margin: -16px 0 -24px;   /* بلا هامش أفقي سالب حتى لا تُقصّ البطاقة */
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > .nw {
  flex: 0 0 clamp(258px, 30%, 340px); scroll-snap-align: start;
}

.rail__nav {
  position: absolute; top: 34%; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  background: rgba(255,255,255,.94); color: var(--ink);
  border: 1px solid var(--glass-bd); box-shadow: 0 10px 26px rgba(30,70,45,.2);
  transition: transform .25s var(--pop), background .25s;
}
.rail__nav:hover { transform: scale(1.1); background: var(--accent); }
.rail__nav--prev { inset-inline-start: -8px; }
.rail__nav--next { inset-inline-end: -8px; }

@media (max-width: 760px) {
  .rail__nav { display: none; }              /* السحب باللمس يكفي على الجوال */
  .rail__track { gap: 12px; }
  .rail__track > .nw { flex: 0 0 min(86%, 330px); }
}
