/* ============================================================
   دليل المونديال 2026 — تصميم البثّ الاحترافي
   اتجاه جمالي: broadcast graphics × stadium night × trophy prestige
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Changa:wght@400;600;700;800&family=Cairo:wght@300;400;600;700&family=Anton&display=swap');

:root {
    /* لوحة الألوان — ملعب ليلي + ذهب الكأس + أخضر الملعب */
    --ink:        #04060d;
    --bg:         #070b1a;
    --bg-2:       #0c1430;
    --surface:    rgba(255,255,255,0.04);
    --surface-2:  rgba(255,255,255,0.07);
    --border:     rgba(255,255,255,0.09);
    --border-hot: rgba(245,184,46,0.4);

    --text:       #f5f8ff;
    --text-dim:   #a8b3cc;
    --text-mute:  #6a7592;

    --gold:       #f5b82e;
    --gold-2:     #ffd75a;
    --gold-deep:  #c8841a;
    --pitch:      #00d97e;        /* أخضر الملعب */
    --pitch-deep: #04a85e;
    --live:       #ff2d55;        /* أحمر مباشر */
    --azure:      #38bdf8;
    --violet:     #a78bfa;

    --radius:     16px;
    --radius-sm:  10px;
    --radius-lg:  26px;

    --shadow:     0 28px 70px -22px rgba(0,0,0,0.8);
    --shadow-gold:0 0 0 1px rgba(245,184,46,0.3), 0 24px 60px -20px rgba(245,184,46,0.25);
    --glow-pitch: 0 0 40px rgba(0,217,126,0.35);

    --f-display: 'Lalezar', 'Changa', cursive;
    --f-head:    'Changa', 'Cairo', sans-serif;
    --f-body:    'Cairo', system-ui, sans-serif;
    --f-num:     'Anton', 'Changa', sans-serif;
}

/* ============================ إصلاح اتجاه الأرقام (LTR دائماً) ============================ */
/* كل العناصر الرقمية (نتائج، توقيت، تواريخ، إحصائيات) تُعرض LTR لتفادي القلب في RTL */
.score__nums, .score__pen, .score__time,
.timeline__min,
.countdown__num, .countdown__sep,
.stat-row__val,
.standings .pts, .standings .rank,
.hero__stat .num,
.row-scorer__stat .v,
.podium__rank, .podium__goals,
.venue-card__meta b,
.match-card__foot span:first-child,
.head2head__num {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}
/* الخلايا الرقمية في جداول الترتيب */
.standings td { direction: ltr; unicode-bidi: plaintext; }
.standings td.team-cell { direction: rtl; unicode-bidi: isolate; }
/* صناديق النتيجة الكاملة LTR داخل سياق RTL */
.score { direction: ltr; }
.match-card__body .score { unicode-bidi: isolate; }
/* أرقام القميص والتقييمات */
.shirt-num, .rating-pill { direction: ltr; unicode-bidi: isolate; }

/* ============================ إعادة الضبط ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--f-body);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
}

/* خلفية الملعب الليلي + أضواء الكاشفات */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -3;
    background:
        radial-gradient(ellipse 90% 50% at 50% -10%, rgba(245,184,46,0.16), transparent 55%),
        radial-gradient(ellipse 50% 40% at 12% 5%, rgba(0,217,126,0.12), transparent 50%),
        radial-gradient(ellipse 50% 40% at 88% 8%, rgba(255,45,85,0.10), transparent 50%),
        radial-gradient(ellipse 80% 70% at 50% 120%, rgba(167,139,250,0.10), transparent 60%),
        linear-gradient(180deg, #070b1a 0%, #05080f 100%);
}
/* أضواء الكاشفات الدرامية */
body .beams {
    position: fixed; top: -10%; left: 0; right: 0; height: 60vh;
    z-index: -2; pointer-events: none; opacity: 0.5;
    background:
        conic-gradient(from 200deg at 20% 0%, transparent 0deg, rgba(0,217,126,0.08) 8deg, transparent 16deg),
        conic-gradient(from 160deg at 80% 0%, transparent 0deg, rgba(245,184,46,0.10) 6deg, transparent 14deg),
        conic-gradient(from 180deg at 50% 0%, transparent 0deg, rgba(56,189,248,0.06) 5deg, transparent 12deg);
    filter: blur(2px);
    animation: beams 12s ease-in-out infinite alternate;
}
@keyframes beams {
    0%   { opacity: 0.35; transform: translateY(0); }
    100% { opacity: 0.6;  transform: translateY(10px); }
}
/* خطوط الملعب */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(0,217,126,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,217,126,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 20%, transparent 75%);
}

/* حبيبات الفيلم */
.grain {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    opacity: 0.4; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold-deep), var(--gold)); border-radius: 8px; }

.wrap { width: min(1280px, 94vw); margin-inline: auto; }

/* ============================ الترويسة ============================ */
.site-head {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    background: rgba(5,8,16,0.78);
    border-bottom: 1px solid var(--border);
}
.site-head__inner {
    display: flex; align-items: center; gap: 22px;
    padding-block: 13px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
    width: 50px; height: 50px; border-radius: 13px;
    background: radial-gradient(circle at 30% 25%, var(--gold-2), var(--gold) 45%, var(--gold-deep));
    display: grid; place-items: center;
    box-shadow: var(--shadow-gold), inset 0 2px 6px rgba(255,255,255,0.4);
    position: relative; flex-shrink: 0; overflow: hidden;
}
.brand__mark img { width: 88%; height: 88%; object-fit: contain; display: block; }
.brand__mark::before {
    content: ''; position: absolute; inset: -3px; border-radius: 16px;
    background: linear-gradient(135deg, var(--gold-2), transparent, var(--pitch));
    z-index: -1; opacity: 0.6; filter: blur(8px);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__title {
    font-family: var(--f-head); font-weight: 800;
    font-size: 23px; letter-spacing: 0.3px; color: var(--text);
}
.brand__sub {
    font-family: var(--f-num); font-size: 11px; color: var(--gold);
    letter-spacing: 3px; margin-top: 4px;
}

.nav { display: flex; gap: 3px; margin-inline-start: auto; }
.nav a {
    padding: 10px 17px; border-radius: 10px; font-weight: 600;
    color: var(--text-dim); font-size: 14.5px; transition: all 0.2s;
    position: relative; font-family: var(--f-head);
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--gold); background: rgba(245,184,46,0.12); }
.nav a.active::after {
    content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 18px; height: 2px; border-radius: 2px; background: var(--gold);
}

.head-meta {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 15px; border-radius: 999px;
    background: rgba(0,217,126,0.08); border: 1px solid rgba(0,217,126,0.25);
    font-size: 12.5px; color: var(--pitch); font-weight: 600;
    font-family: var(--f-head);
}
.head-meta .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--pitch);
    box-shadow: 0 0 0 0 var(--pitch); animation: ping 2s infinite;
}
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(0,217,126,0.6); }
    70% { box-shadow: 0 0 0 9px rgba(0,217,126,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,217,126,0); }
}

/* ============================ شريط النتائج المتحرك (Ticker) ============================ */
.ticker {
    background: linear-gradient(90deg, var(--ink), #0a1024, var(--ink));
    border-bottom: 1px solid var(--border);
    overflow: hidden; position: relative;
}
.ticker::before, .ticker::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.ticker::before { right: 0; background: linear-gradient(90deg, transparent, var(--ink)); }
.ticker::after  { left: 0;  background: linear-gradient(270deg, transparent, var(--ink)); }
.ticker__label {
    position: absolute; right: 0; top: 0; bottom: 0; z-index: 3;
    display: flex; align-items: center; gap: 8px;
    padding: 0 18px;
    background: var(--live);
    font-family: var(--f-num); font-size: 12px; letter-spacing: 2px;
    color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    padding-left: 28px;
}
.ticker__label .pulse {
    width: 7px; height: 7px; border-radius: 50%; background: #fff;
    animation: blink 1s infinite;
}
.ticker__track {
    display: flex; gap: 0; padding: 9px 0;
    animation: scroll-ticker 60s linear infinite;
    white-space: nowrap;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes scroll-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }   /* RTL: نتحرك للسالب بصرياً */
}
.ticker__item {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 0 22px; border-left: 1px solid var(--border);
    font-size: 13px; color: var(--text-dim); font-family: var(--f-head);
}
.ticker__item .flags { font-size: 16px; }
.ticker__item .score {
    font-family: var(--f-num); color: var(--gold); font-size: 15px; letter-spacing: 1px;
}
.ticker__item .live-dot { color: var(--live); font-weight: 700; font-size: 11px; }

/* ============================ البطل ============================ */
.hero {
    position: relative; padding: 60px 0 30px;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }

.hero__kicker {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px 8px 9px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(245,184,46,0.12), rgba(0,217,126,0.08));
    border: 1px solid var(--border-hot);
    font-family: var(--f-head); font-size: 13px; color: var(--gold); font-weight: 600;
    margin-bottom: 26px;
}
.hero__kicker .flag-pair { display: flex; font-size: 19px; gap: 2px; }

.hero__title {
    font-family: var(--f-display); font-weight: 400;
    font-size: clamp(44px, 7vw, 86px); line-height: 0.98;
    letter-spacing: 0.5px; margin-bottom: 22px;
}
.hero__title .accent {
    background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 35%, #fff8e0 50%, var(--gold-2) 65%, var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
    display: inline-block;
}
@keyframes shine { to { background-position: 200% 0; } }
.hero__title .stroke {
    -webkit-text-stroke: 2.5px var(--gold);
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero__title .pitch-word {
    color: var(--pitch);
    text-shadow: 0 0 30px rgba(0,217,126,0.5);
}
.hero__lead {
    font-size: clamp(15.5px, 1.3vw, 18px); color: var(--text-dim);
    max-width: 540px; margin-bottom: 32px; line-height: 1.75;
}

.hero__stats {
    display: flex; flex-wrap: wrap; gap: 14px;
}
.hero__stat {
    padding: 14px 20px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border);
    min-width: 90px;
}
.hero__stat .num {
    font-family: var(--f-num); font-size: 30px; color: var(--gold);
    letter-spacing: 1px; line-height: 1;
}
.hero__stat .num.pitch { color: var(--pitch); }
.hero__stat .num.live  { color: var(--live); }
.hero__stat .lbl { font-size: 12px; color: var(--text-mute); margin-top: 6px; font-family: var(--f-head); }

/* البطاقة اليمنى: الكأس + العدّ التنازلي */
.hero__visual {
    position: relative; aspect-ratio: 1/1; max-width: 440px; justify-self: center;
}
.hero__visual::before {
    content: ''; position: absolute; inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,184,46,0.35), rgba(245,184,46,0) 70%);
    filter: blur(20px); animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%,100% { opacity: 0.5; transform: scale(1); }
    50%     { opacity: 0.9; transform: scale(1.08); }
}
.trophy {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: clamp(140px, 22vw, 240px);
    filter: drop-shadow(0 20px 50px rgba(245,184,46,0.4));
    animation: float 5s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0) rotate(-2deg); }
    50%     { transform: translateY(-12px) rotate(2deg); }
}
/* الرقم 26 خلفية ضخمة */
.hero__visual .big-26 {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--f-num); font-size: clamp(180px, 32vw, 320px);
    color: transparent; -webkit-text-stroke: 2px rgba(245,184,46,0.15);
    z-index: -1; line-height: 0.8;
}

/* العدّ التنازلي */
.countdown {
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; padding: 12px 16px;
    background: rgba(5,8,16,0.85); backdrop-filter: blur(12px);
    border: 1px solid var(--border-hot); border-radius: 16px;
    box-shadow: var(--shadow);
}
.countdown__unit {
    text-align: center; min-width: 50px;
}
.countdown__num {
    font-family: var(--f-num); font-size: 28px; color: var(--gold); line-height: 1;
}
.countdown__lbl { font-size: 10px; color: var(--text-mute); font-family: var(--f-head); margin-top: 3px; }
.countdown__sep { font-family: var(--f-num); color: var(--gold-deep); font-size: 24px; align-self: flex-start; }

/* ============================ شارات الحالة ============================ */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 6px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px;
    font-family: var(--f-head); text-transform: uppercase;
}
.badge--live  { background: rgba(255,45,85,0.16); color: var(--live); border: 1px solid rgba(255,45,85,0.4); }
.badge--soon  { background: rgba(245,184,46,0.13); color: var(--gold); border: 1px solid var(--border-hot); }
.badge--done  { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.badge--group { background: rgba(56,189,248,0.13); color: var(--azure); border: 1px solid rgba(56,189,248,0.32); }
.badge--ko    { background: rgba(167,139,250,0.15); color: var(--violet); border: 1px solid rgba(167,139,250,0.32); }

.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
@keyframes blink { 0%,70% { opacity: 1; } 71%,100% { opacity: 0.2; } }

/* ============================ عنوان قسم ============================ */
.section { padding: 34px 0; }
.section__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.section__title {
    font-family: var(--f-head); font-weight: 800;
    font-size: clamp(22px, 2.6vw, 30px); display: flex; align-items: center; gap: 14px;
    letter-spacing: 0.3px;
}
.section__title::before {
    content: ''; width: 6px; height: 30px; border-radius: 4px;
    background: linear-gradient(var(--gold), var(--gold-deep));
    box-shadow: 0 0 12px rgba(245,184,46,0.5);
}
.section__sub { color: var(--text-mute); font-size: 13.5px; margin-top: 5px; font-family: var(--f-head); }
.section__actions { display: flex; gap: 10px; align-items: center; }

/* ============================ شبكة ============================ */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ============================ بطاقة المباراة — نمط lower-thirds ============================ */
.match-card {
    position: relative; padding: 0; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), border-color 0.28s, background 0.28s;
    overflow: hidden; isolation: isolate;
}
.match-card::before {
    content: ''; position: absolute; top: 0; right: 0; width: 90px; height: 90px; z-index: 0;
    background: radial-gradient(circle at 100% 0%, rgba(245,184,46,0.16), transparent 65%);
    opacity: 0; transition: opacity 0.3s;
}
.match-card::after {
    /* شريط قطري broadcast */
    content: ''; position: absolute; top: 0; right: 0; width: 4px; height: 100%; z-index: 2;
    background: linear-gradient(var(--gold), var(--gold-deep));
    transform: scaleY(0); transform-origin: top; transition: transform 0.3s;
}
.match-card:hover { transform: translateY(-5px); border-color: var(--border-hot); background: var(--surface-2); }
.match-card:hover::before { opacity: 1; }
.match-card:hover::after { transform: scaleY(1); }
.match-card.is-live { border-color: rgba(255,45,85,0.45); }
.match-card.is-live::before {
    opacity: 1;
    background: radial-gradient(circle at 100% 0%, rgba(255,45,85,0.18), transparent 65%);
}
.match-card.is-live::after { background: var(--live); transform: scaleY(1); }

.match-card__inner { padding: 18px 20px; position: relative; z-index: 1; }

.match-card__top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; font-size: 11.5px; color: var(--text-mute);
    font-family: var(--f-head);
}
.match-card__round { display: flex; align-items: center; gap: 8px; }
.match-card__venue { display: flex; align-items: center; gap: 5px; }

.match-card__body {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px;
    align-items: center;
}
.team {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; min-width: 0;
}
.team__flag {
    width: 54px; height: 54px; border-radius: 12px;
    background: linear-gradient(145deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    display: grid; place-items: center; font-size: 30px;
    overflow: hidden;
    transition: transform 0.25s;
}
.team__flag img.flag-svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.team__flag .flag-fallback {
    font-family: var(--f-num); font-size: 14px; color: var(--gold); font-weight: 700;
    letter-spacing: 1px;
}
/* أعلام صغيرة (ticker، الترتيب) */
.flags img.flag-svg { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; vertical-align: middle; }
.flags .flag-fallback { font-size: 12px; }
.standings .team-cell img.flag-svg { width: 26px; height: 18px; border-radius: 3px; }
.standings .team-cell .flag-fallback { font-size: 11px; color: var(--gold); }
.match-card:hover .team__flag { transform: scale(1.05); }
.team__flag img { width: 100%; height: 100%; object-fit: cover; }
.team__name {
    font-family: var(--f-head); font-weight: 700; font-size: 14.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.score {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    min-width: 78px;
}
.score__nums {
    font-family: var(--f-num); font-size: 36px; color: var(--text);
    letter-spacing: 2px; line-height: 1;
    text-shadow: 0 0 24px rgba(245,184,46,0.25);
}
.score__sep { color: var(--gold); margin: 0 5px; }
.score__pen { font-size: 11.5px; color: var(--text-mute); font-weight: 600; font-family: var(--f-head); }
.score__time {
    font-size: 11px; color: var(--text-mute); margin-top: 4px;
    font-family: var(--f-head); font-weight: 600;
}
.score__time.live { color: var(--live); font-weight: 700; }
.score__time.vs { color: var(--gold); font-weight: 700; font-family: var(--f-num); letter-spacing: 1px; font-size: 13px; }

.match-card__foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border);
    font-size: 12px; color: var(--text-dim); font-family: var(--f-head);
}
.match-card__cta {
    color: var(--gold); font-weight: 700; display: inline-flex; gap: 5px; align-items: center;
    font-family: var(--f-head); font-size: 12.5px;
}
.match-card__cta::after { content: '←'; transition: transform 0.2s; }
.match-card:hover .match-card__cta::after { transform: translateX(-4px); }

/* بطلة المباراة (صفحة التفاصيل) */
.match-hero {
    position: relative; padding: 44px 40px; border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(245,184,46,0.16), transparent 60%),
        radial-gradient(ellipse 60% 80% at 0% 100%, rgba(0,217,126,0.12), transparent 60%),
        var(--surface);
    border: 1px solid var(--border); overflow: hidden;
}
.match-hero__stage {
    text-align: center; font-size: 12px; color: var(--gold);
    letter-spacing: 4px; font-weight: 700; text-transform: uppercase;
    margin-bottom: 8px; font-family: var(--f-head);
}
.match-hero__venue { text-align: center; color: var(--text-dim); font-size: 14px; margin-bottom: 32px; font-family: var(--f-head); }
.match-hero__body {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
}
@media (max-width: 700px) { .match-hero__body { gap: 14px; } }
.match-hero .team__flag { width: 100px; height: 100px; font-size: 60px; border-radius: 22px; }
.match-hero .team__flag img.flag-svg { width: 100%; height: 100%; }
.match-hero .team__name { font-size: 22px; font-family: var(--f-head); font-weight: 800; }
.match-hero .score__nums { font-size: clamp(52px, 9vw, 88px); }

/* ============================ خط الزمن ============================ */
.timeline__item {
    display: grid; grid-template-columns: 48px 1fr auto; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--border);
    align-items: center;
}
.timeline__min {
    font-family: var(--f-num); color: var(--gold); font-size: 15px;
    text-align: center; letter-spacing: 0.5px;
}
.timeline__body { display: flex; align-items: center; gap: 12px; min-width: 0; }
.timeline__icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0;
    font-size: 18px;
}
.timeline__icon.goal    { background: rgba(0,217,126,0.16); color: var(--pitch); box-shadow: var(--glow-pitch); }
.timeline__icon.yellow  { background: rgba(245,184,46,0.16); color: var(--gold); }
.timeline__icon.red     { background: rgba(255,45,85,0.16); color: var(--live); }
.timeline__icon.sub     { background: rgba(56,189,248,0.16); color: var(--azure); }
.timeline__player { font-weight: 700; font-size: 14.5px; font-family: var(--f-head); }
.timeline__detail { font-size: 12.5px; color: var(--text-mute); font-family: var(--f-head); }
.timeline__team { font-size: 11.5px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; white-space: nowrap; font-family: var(--f-head); }

/* ============================ الإحصائيات ============================ */
.stat-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.stat-row__label {
    text-align: center; font-size: 13px; color: var(--text-dim);
    margin-bottom: 9px; font-weight: 700; font-family: var(--f-head);
}
.stat-row__bar {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.stat-row__val { font-family: var(--f-num); font-size: 17px; min-width: 50px; }
.stat-row__val.home { text-align: end; color: var(--gold); }
.stat-row__val.away { text-align: start; color: var(--violet); }
.stat-row__track {
    height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden;
    display: flex;
}
.stat-row__fill-h { background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); height: 100%; transition: width 0.7s ease; }
.stat-row__fill-a { background: linear-gradient(90deg, #7c5cf0, var(--violet)); height: 100%; margin-inline-start: auto; transition: width 0.7s ease; }

/* ============================ منصة الهدافين ============================ */
.podium {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    margin-bottom: 26px; align-items: end;
}
@media (max-width: 700px) { .podium { grid-template-columns: 1fr; } }
.podium__card {
    text-align: center; padding: 28px 18px 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    position: relative; transition: transform 0.3s;
}
.podium__card:hover { transform: translateY(-4px); }
.podium__card.first {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,184,46,0.22), transparent 70%),
        var(--surface);
    border-color: var(--border-hot); transform: translateY(-12px);
    box-shadow: var(--shadow-gold);
}
.podium__card.first:hover { transform: translateY(-16px); }
.podium__rank {
    font-family: var(--f-num); font-size: 40px; line-height: 1;
    margin-bottom: 14px; color: var(--text-mute);
}
.podium__card.first .podium__rank { color: var(--gold); }
.podium__avatar {
    width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px;
    background: linear-gradient(145deg, var(--surface-2), var(--surface));
    border: 2px solid var(--border); display: grid; place-items: center;
    font-size: 38px;
}
.podium__card.first .podium__avatar {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(245,184,46,0.4);
}
.podium__name { font-family: var(--f-head); font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.podium__team { font-size: 12.5px; color: var(--text-mute); margin-bottom: 14px; font-family: var(--f-head); }
.podium__goals {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 999px;
    background: rgba(245,184,46,0.14); color: var(--gold); font-weight: 700;
    font-family: var(--f-num); font-size: 18px;
}

.row-scorer {
    display: grid; grid-template-columns: 40px 1fr auto auto auto;
    gap: 14px; align-items: center; padding: 14px 16px;
    border-radius: var(--radius-sm); transition: background 0.2s;
}
.row-scorer:hover { background: var(--surface); }
.row-scorer__rank { font-family: var(--f-num); color: var(--text-mute); font-size: 16px; text-align: center; }
.row-scorer__rank.top { color: var(--gold); }
.row-scorer__name { font-weight: 700; font-family: var(--f-head); }
.row-scorer__team { font-size: 12px; color: var(--text-mute); margin-top: 2px; font-family: var(--f-head); }
.row-scorer__stat { text-align: center; min-width: 52px; }
.row-scorer__stat .v { font-family: var(--f-num); font-size: 18px; }
.row-scorer__stat .l { font-size: 11px; color: var(--text-mute); font-family: var(--f-head); }
@media (max-width: 600px) {
    .row-scorer { grid-template-columns: 32px 1fr auto; }
    .row-scorer__stat.hide-sm { display: none; }
}

/* ============================ الترتيب ============================ */
.standings { width: 100%; border-collapse: separate; border-spacing: 0; }
.standings th, .standings td { padding: 11px 8px; text-align: center; font-size: 14px; font-family: var(--f-head); }
.standings thead th {
    color: var(--text-mute); font-weight: 700; font-size: 11.5px;
    border-bottom: 1px solid var(--border); letter-spacing: 0.6px; text-transform: uppercase;
}
.standings tbody tr { transition: background 0.2s; }
.standings tbody tr:hover { background: var(--surface); }
.standings tbody td { border-bottom: 1px solid var(--border); }
.standings .team-cell { text-align: start; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.standings .rank { color: var(--text-mute); width: 26px; font-family: var(--f-num); }
.standings .rank.q { color: var(--pitch); }
.standings .pts { color: var(--gold); font-weight: 700; font-family: var(--f-num); font-size: 16px; }
.standings__card {
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    overflow: hidden; padding: 4px;
}

/* ============================ الملاعب ============================ */
.venue-card {
    position: relative; padding: 0; border-radius: var(--radius); overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    transition: transform 0.28s, border-color 0.28s;
}
.venue-card:hover { transform: translateY(-5px); border-color: var(--border-hot); }
.venue-card__hero {
    height: 170px; position: relative; overflow: hidden;
    background:
        linear-gradient(180deg, transparent 25%, rgba(4,6,13,0.96)),
        repeating-linear-gradient(90deg, rgba(0,217,126,0.22) 0 36px, rgba(0,217,126,0.08) 36px 72px),
        radial-gradient(circle at 50% -20%, rgba(245,184,46,0.3), transparent 60%),
        linear-gradient(180deg, #0c1430, #04060d);
    display: flex; align-items: flex-end; padding: 18px;
}
.venue-card__hero::after {
    content: '🏟️'; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
    font-size: 46px; opacity: 0.85;
    filter: drop-shadow(0 6px 20px rgba(0,217,126,0.4));
}
.venue-card__badge {
    position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
    background: rgba(4,6,13,0.78); backdrop-filter: blur(6px);
    border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px;
    font-size: 11.5px; color: var(--gold); font-weight: 700; font-family: var(--f-head);
}
.venue-card__body { padding: 18px 20px; }
.venue-card__name { font-family: var(--f-head); font-weight: 800; font-size: 19px; margin-bottom: 5px; }
.venue-card__city { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; font-family: var(--f-head); }
.venue-card__meta { display: flex; gap: 18px; font-size: 13px; color: var(--text-mute); font-family: var(--f-head); }
.venue-card__meta b { color: var(--text); font-family: var(--f-num); }

.group-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; border-radius: 8px;
    background: rgba(56,189,248,0.13); color: var(--azure);
    font-weight: 700; font-family: var(--f-head); font-size: 12.5px;
    border: 1px solid rgba(56,189,248,0.28);
}

/* ============================ أفضل لاعب ============================ */
.mom-card {
    display: flex; align-items: center; gap: 18px; padding: 22px;
    border-radius: var(--radius); background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(245,184,46,0.16), transparent 60%),
        var(--surface);
    border: 1px solid var(--border-hot); position: relative; overflow: hidden;
}
.mom-card::before {
    content: '★'; position: absolute; inset-inline-end: -10px; top: -30px;
    font-size: 170px; color: rgba(245,184,46,0.07); line-height: 1;
}
.mom-card__avatar {
    width: 80px; height: 80px; border-radius: 20px; flex-shrink: 0;
    background: radial-gradient(circle at 30% 25%, var(--gold-2), var(--gold-deep));
    display: grid; place-items: center; font-size: 42px;
    box-shadow: var(--shadow-gold), inset 0 2px 6px rgba(255,255,255,0.4);
}
.mom-card__title { font-size: 11.5px; color: var(--gold); letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; font-family: var(--f-head); }
.mom-card__name { font-family: var(--f-head); font-size: 24px; font-weight: 800; margin: 4px 0; }
.mom-card__team { color: var(--text-dim); font-size: 14px; font-family: var(--f-head); }
.mom-card__rating { margin-inline-start: auto; text-align: center; }
.mom-card__rating .v { font-family: var(--f-num); font-size: 38px; color: var(--gold); }
.mom-card__rating .l { font-size: 11px; color: var(--text-mute); font-family: var(--f-head); }

.chip {
    display: inline-flex; padding: 5px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 12.5px; color: var(--text-dim); font-family: var(--f-head);
}

/* ============================ التذييل ============================ */
.site-foot {
    margin-top: 80px; padding: 44px 0 30px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(4,6,13,0.7));
    position: relative;
}
.site-foot::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.site-foot__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-foot__brand { max-width: 320px; }
.site-foot__brand p { color: var(--text-mute); font-size: 13.5px; margin-top: 12px; line-height: 1.7; }
.site-foot__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.site-foot__col h4 { font-family: var(--f-head); font-size: 14px; margin-bottom: 12px; color: var(--gold); font-weight: 800; }
.site-foot__col a { display: block; color: var(--text-dim); font-size: 14px; padding: 4px 0; transition: color 0.2s; font-family: var(--f-head); }
.site-foot__col a:hover { color: var(--text); }
.site-foot__base {
    margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    color: var(--text-mute); font-size: 12.5px; font-family: var(--f-head);
}

/* ============================ أدوات ============================ */
.muted { color: var(--text-mute); }
.gold  { color: var(--gold); }
.emerald { color: var(--pitch); }
.center { text-align: center; }
.empty {
    padding: 60px 20px; text-align: center; color: var(--text-mute);
    border: 1px dashed var(--border); border-radius: var(--radius);
    background: var(--surface);
}
.empty__icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

.fade-in { animation: fadeIn 0.6s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } }
.stagger > * { animation: fadeIn 0.5s cubic-bezier(.2,.8,.2,1) backwards; }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.10s; }
.stagger > *:nth-child(4) { animation-delay: 0.14s; }
.stagger > *:nth-child(5) { animation-delay: 0.18s; }
.stagger > *:nth-child(6) { animation-delay: 0.22s; }
.stagger > *:nth-child(7) { animation-delay: 0.26s; }
.stagger > *:nth-child(8) { animation-delay: 0.30s; }
.stagger > *:nth-child(9) { animation-delay: 0.34s; }

.flash { animation: flash 1s ease; }
@keyframes flash { 0% { background: rgba(0,217,126,0.18); } 100% { background: transparent; } }

.panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}
.panel__title {
    font-family: var(--f-head); font-weight: 800; font-size: 18px;
    margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}

.sync-alert {
    position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 200;
    padding: 12px 18px; border-radius: 12px;
    background: rgba(4,6,13,0.92); backdrop-filter: blur(10px);
    border: 1px solid var(--border-hot); color: var(--text);
    font-size: 13px; display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow); transform: translateY(100px); opacity: 0;
    transition: all 0.3s; font-family: var(--f-head);
}
.sync-alert.show { transform: translateY(0); opacity: 1; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
    padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 700;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-dim); transition: all 0.2s; font-family: var(--f-head);
}
.tab:hover { color: var(--text); }
.tab.active { background: rgba(245,184,46,0.14); color: var(--gold); border-color: var(--border-hot); }

.day-block { margin-bottom: 40px; }
.day-block__head {
    display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.day-block__date { font-family: var(--f-head); font-weight: 800; font-size: 20px; }
.day-block__meta { color: var(--text-mute); font-size: 13px; font-family: var(--f-head); }

.live-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }

.flag-emoji { font-size: 1em; line-height: 1; }

/* الأكواد البرمجية في صفحة الإعداد */
pre {
    background: var(--bg-2); padding: 14px; border-radius: 10px;
    direction: ltr; overflow: auto; font-size: 12.5px;
    font-family: 'SF Mono', 'Monaco', monospace;
    border: 1px solid var(--border);
}
code { font-family: 'SF Mono', 'Monaco', monospace; color: var(--gold); }
