:root{
  --bg:#060b10; --bg2:#0a1219; --surface:#0e1822; --surface2:#132230;
  --line:rgba(255,255,255,.08); --text:#eaf3f7; --muted:#8ba0ad;
  --green:#35e07d; --gold:#f3c455; --red:#ff5d5d;
  --r:16px; --shadow:0 18px 40px rgba(0,0,0,.45);
  --font:"Cairo",system-ui,-apple-system,"Segoe UI",sans-serif;
  --display:"Changa","Cairo",system-ui,sans-serif;
  --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(53,224,125,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(243,196,85,.07), transparent 55%),
    var(--bg);
  color:var(--text); font-family:var(--font); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; min-height:100vh;
}
a{color:inherit;text-decoration:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* top bar */
.topbar{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:10px 16px;background:rgba(6,11,16,.82);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-mark{width:44px;height:auto;filter:drop-shadow(0 4px 14px rgba(243,196,85,.25))}
.brand-name{display:flex;flex-direction:column;font-weight:900;font-size:19px;line-height:1.2}
.brand-name small{font-family:var(--display);font-size:9px;letter-spacing:3px;color:var(--gold);font-weight:700}
.topbar-actions{display:flex;align-items:center;gap:8px}
.live-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--green);
  background:rgba(53,224,125,.1);border:1px solid rgba(53,224,125,.25);border-radius:999px;padding:5px 10px}
.live-pill i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 0 rgba(53,224,125,.6);animation:pulse 1.8s infinite}
.icon-btn{font-family:var(--font);font-size:13px;font-weight:700;color:#04120a;background:var(--green);
  border:0;border-radius:999px;padding:8px 14px;cursor:pointer}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(53,224,125,.55)}70%{box-shadow:0 0 0 10px rgba(53,224,125,0)}100%{box-shadow:0 0 0 0 rgba(53,224,125,0)}}

/* shell */
.shell{display:grid;grid-template-columns:268px minmax(0,1fr);gap:0;align-items:start}
.sidebar{position:sticky;top:57px;height:calc(100vh - 57px);padding:20px 16px;border-inline-start:1px solid var(--line);
  background:linear-gradient(180deg,rgba(14,24,34,.6),rgba(6,11,16,0));display:flex;flex-direction:column;gap:18px}
.side-nav{display:flex;flex-direction:column;gap:4px}
.side-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;font-weight:700;color:var(--muted);font-size:15px}
.side-nav a:hover{background:var(--surface);color:var(--text)}
.side-nav a[aria-current="page"]{background:var(--surface2);color:var(--text);box-shadow:inset -3px 0 0 var(--green)}
.rail-title{font-size:12px;color:var(--muted);font-weight:700}
.league-rail{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.league-rail li a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:10px;font-size:14px;color:var(--muted)}
.league-rail li a:hover{background:var(--surface);color:var(--text)}
.league-rail b{font-family:var(--display);font-size:13px;color:var(--text);opacity:.75}
.side-foot{margin-top:auto;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px}

.main{min-width:0;padding:24px 16px 40px;max-width:1180px;width:100%}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 12px}
.section-head h2{margin:0;font-size:20px;font-weight:900;line-height:1.5;padding-top:2px}
.badge-demo{font-size:11px;font-weight:700;color:var(--gold);background:rgba(243,196,85,.1);
  border:1px solid rgba(243,196,85,.28);border-radius:999px;padding:4px 9px;white-space:nowrap}

/* featured */
.featured{position:relative;overflow:hidden;border-radius:22px;border:1px solid var(--line);box-shadow:var(--shadow);
  background:linear-gradient(135deg,#0d1a24 0%,#091119 55%,#0c1a14 100%);padding:26px 22px 22px;isolation:isolate}
.featured::before{content:"";position:absolute;inset:-40% -10% auto auto;width:70%;height:180%;
  background:radial-gradient(circle at 50% 40%,rgba(53,224,125,.20),transparent 60%);z-index:-1}
.featured::after{content:"";position:absolute;inset:auto auto -50% -10%;width:60%;height:150%;
  background:radial-gradient(circle at 50% 50%,rgba(243,196,85,.16),transparent 62%);z-index:-1}
.featured-tag{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;line-height:1.5;
  color:#1a1200;background:linear-gradient(180deg,#ffe6a6,#f3c455);border-radius:999px;padding:5px 11px}
.featured-league{margin:12px 0 4px;font-size:12px;color:var(--muted);font-weight:700}
.featured-title{margin:0;font-size:30px;line-height:1.15;font-weight:900}
.featured-title em{font-style:normal;color:var(--green)}
.matchup{display:grid;grid-template-columns:auto auto auto;justify-content:start;align-items:center;gap:16px;margin:20px 0 4px;max-width:100%}
.matchup .side{display:flex;align-items:center;gap:8px}
.matchup .side.away{justify-content:flex-end}
.matchup .team-name{font-size:15px;font-weight:800}
.matchup .score{font-family:var(--display);font-size:40px;font-weight:800;line-height:1}
.matchup .score .sep{opacity:.4;font-size:34px}
.featured-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.chip{font-size:12px;font-weight:700;color:var(--text);background:rgba(255,255,255,.05);
  border:1px solid var(--line);border-radius:999px;padding:6px 11px}
.chip.live{color:var(--green);border-color:rgba(53,224,125,.3);background:rgba(53,224,125,.1)}
.featured-cta{display:inline-flex;align-items:center;gap:8px;margin-top:18px;font-weight:800;font-size:14px;color:var(--green)}

/* league blocks */
.filter-row{display:flex;gap:8px;align-items:center;margin:0 0 10px;justify-content:flex-start}
.comp-filter{min-width:200px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:10px;
  padding:7px 10px;font:inherit;font-size:13px;font-weight:700;max-width:70vw;cursor:pointer}
.league-blocks{display:flex;flex-direction:row;gap:12px;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin;
  padding:2px 2px 10px;align-items:flex-start;overscroll-behavior-x:contain;cursor:grab}
.league-blocks.grab{cursor:grabbing;scroll-snap-type:none;user-select:none}
.col{flex:0 0 340px;max-width:340px;scroll-snap-align:start;display:flex;flex-direction:column;gap:12px;min-width:0}
@media (max-width:900px){.col{flex-basis:88vw;max-width:88vw}}
.lg-group{background:linear-gradient(180deg,var(--surface),var(--bg2));border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.lg-label{display:flex;align-items:center;gap:8px;padding:9px 12px;font-size:13px;font-weight:800;
  background:linear-gradient(90deg,rgba(53,224,125,.16),rgba(53,224,125,.02));border-bottom:1px solid var(--line)}
.lg-label .lg-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lg-label b{font-family:var(--display);font-size:11px;color:var(--muted);font-weight:700;flex:0 0 auto}
.lg-label .logo{width:18px;height:18px}
@keyframes ksIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.league-blocks.anim .lg-group{animation:ksIn .38s cubic-bezier(.2,.7,.3,1) both}
.lg-group{transition:border-color .22s ease,box-shadow .22s ease}
.lg-group:hover{border-color:rgba(53,224,125,.32);box-shadow:0 8px 24px rgba(0,0,0,.28)}
.match-wrap{border-bottom:1px solid rgba(255,255,255,.04)}
.match-wrap:last-child{border-bottom:0}
.match-wrap .match-row{border-bottom:0}
.more-btn{background:transparent;border:0;color:var(--muted);font:inherit;font-size:10px;font-weight:700;
  cursor:pointer;padding:2px 0 0;text-decoration:underline;opacity:.85}
.more-btn:hover{color:var(--text)}
.match-more[hidden]{display:none}
.match-more{padding:2px 14px 10px;background:rgba(255,255,255,.025);font-size:12px;color:var(--muted);
  display:flex;flex-direction:column;gap:3px}
.match-more .fact{display:flex;gap:8px;justify-content:space-between}
.match-more .fact span{opacity:.75}
.match-more .fact b{color:var(--text);font-weight:700;text-align:start}
.match-row{transition:background .16s ease}
.match-row:hover{background:rgba(255,255,255,.035)}
.featured-tag{animation:ksPulse 2.6s ease-in-out infinite}
@keyframes ksPulse{0%,100%{opacity:1}50%{opacity:.6}}
.league-block{background:linear-gradient(180deg,var(--surface),var(--bg2));border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.league-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line)}
.league-head h3{margin:0;font-size:14px;font-weight:800;display:flex;align-items:center;gap:8px}
.league-head span{font-size:11px;color:var(--muted);font-weight:700}
.match-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid rgba(255,255,255,.04)}
.match-row:last-child{border-bottom:0}
.match-row .team{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;min-width:0}
.match-row .team.away{justify-content:flex-start;flex-direction:row-reverse}
.match-row .dot{width:22px;height:22px;border-radius:50%;background:var(--surface2);border:1px solid var(--line);flex:0 0 auto}
.match-row .center{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:64px}
.match-row .score{font-family:var(--display);font-size:19px;font-weight:800;letter-spacing:.5px;font-variant-numeric:tabular-nums}
.match-row .time{font-family:var(--display);font-size:15px;color:var(--muted);font-weight:700}
.match-row .minute{font-size:10px;font-weight:800;color:var(--green)}
.match-row .minute.ft{color:var(--muted)}
.match-row.is-live{background:linear-gradient(90deg,rgba(53,224,125,.07),transparent 70%)}

/* analysis */
.analysis-rail{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.analysis-card{background:linear-gradient(180deg,var(--surface),var(--bg2));border:1px solid var(--line);border-radius:var(--r);padding:16px}
.analysis-card .kicker{font-size:12px;font-weight:800;color:var(--gold)}
.analysis-card h3{margin:8px 0 6px;font-size:17px;line-height:1.35;font-weight:900}
.analysis-card p{margin:0;font-size:14px;color:var(--muted)}
.analysis-card .meta{margin-top:12px;font-size:11px;color:var(--muted);font-weight:700}

/* match detail */
.match-detail{background:linear-gradient(180deg,var(--surface),var(--bg2));border:1px solid var(--line);border-radius:var(--r);padding:18px}
.stat{margin:14px 0}
.stat-top{display:flex;justify-content:space-between;font-size:13px;font-weight:700;margin-bottom:6px}
.stat-top b{font-family:var(--display)}
.bar{height:8px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden;display:flex}
.bar i{display:block;height:100%;background:linear-gradient(90deg,#2bbf6a,var(--green));transition:width .8s cubic-bezier(.2,.7,.2,1)}
.bar i.away{background:linear-gradient(90deg,#c99a2e,var(--gold))}
.detail-teams{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.detail-teams .t{font-weight:900;font-size:16px}
.detail-teams .s{font-family:var(--display);font-size:34px;font-weight:800}
.note{margin-top:16px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px}

/* tabbar (mobile) */
.tabbar{display:none;position:fixed;inset-inline:0;bottom:0;z-index:30;background:rgba(8,14,20,.94);
  backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:8px 6px calc(8px + var(--safe-b))}
.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;color:var(--muted);padding:4px}
.tabbar a span{font-size:18px}
.tabbar a[aria-current="page"]{color:var(--green)}

.page-foot{max-width:1180px;margin:0 auto;padding:26px 16px 34px;display:flex;flex-direction:column;gap:4px;
  font-size:12px;color:var(--muted);border-top:1px solid var(--line)}
.page-foot b{color:var(--text);font-size:13px}

@media (max-width:900px){
  .shell{grid-template-columns:1fr}
  .sidebar{display:none}
  .main{padding:14px 14px 96px}
  .tabbar{display:flex}
  .featured{padding:20px 16px;border-radius:18px}
  .featured-title{font-size:24px}
  .featured-score .score{font-size:44px}
  .analysis-rail{grid-template-columns:1fr}
  .lg-label{padding:8px 11px}
  .page-foot{padding-bottom:96px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* icons */
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.ico{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}
.tabbar .ico{width:22px;height:22px;stroke-width:1.8}
.brand-mark{background:transparent}

/* scores as separate numbers so RTL keeps home on the right */
.score-nums{display:flex;align-items:center;gap:6px;direction:rtl}
.score-nums .sep{opacity:.45;font-weight:700}

/* team logos */
.logo{width:22px;height:22px;object-fit:contain;flex:0 0 auto}
.match-row .logo{width:22px;height:22px}
.league-head .lg-logo{width:18px;height:18px}
.matchup .hero-logo{width:30px;height:30px}
@media (max-width:900px){.match-row .logo{width:18px;height:18px}.matchup .hero-logo{width:26px;height:26px}}

/* team dots */
.match-row .dot{width:8px;height:8px;border-radius:50%;background:var(--green);opacity:.55;border:0}
.match-row .team.away .dot{background:var(--gold);opacity:.5}

/* watermark on the empty side of the hero */
.featured .wm{position:absolute;inset-block-start:50%;inset-inline-end:-40px;transform:translateY(-50%);
  width:250px;opacity:.055;pointer-events:none;z-index:-1;filter:grayscale(1)}
@media (max-width:900px){.featured .wm{width:210px;inset-inline-end:-58px;opacity:.06}}
.install-hint{color:var(--gold);font-size:11px;font-weight:700}

.day-strip{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 12px;margin:0 0 8px;scrollbar-width:none}
.day-strip::-webkit-scrollbar{display:none}
.day{flex:0 0 auto;min-width:62px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 10px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:inherit;font:inherit;cursor:pointer}
.day b{font-size:1.15rem}.day small{font-size:.72rem;opacity:.75}
.day.on{background:#f5c542;color:#0a0f14;border-color:#f5c542}.day.on small{opacity:.9}
.data-status{font-size:.78rem;opacity:.7}
.featured[hidden]{display:none}
.league-head .src{font-size:.7rem;opacity:.65;margin-inline-start:8px}

/* ---- spacing and density pass (Arabic RTL) ---- */
body{line-height:1.7;word-spacing:.04em;text-rendering:optimizeLegibility}
h1,h2,h3,h4{line-height:1.45}
p{line-height:1.8}
.main{padding:18px 16px 36px}
.section-head{margin:18px 0 8px;flex-wrap:wrap;row-gap:2px}
.section-head h2{font-size:19px}
.data-status{font-size:12px;opacity:.7;line-height:1.6}
.featured{padding:16px 18px 14px;border-radius:18px}
.featured-tag{font-size:12px;padding:3px 11px}
.featured-league{margin:8px 0 2px;font-size:13px;line-height:1.6}
.matchup{margin:10px 0 2px;gap:14px}
.matchup .team-name{font-size:16px;line-height:1.5}
.matchup .score{font-size:36px}
.matchup .score .sep{font-size:26px}
.featured-meta{margin-top:8px}
.chip{font-size:12px;padding:3px 10px;line-height:1.6}
.day-strip{gap:6px;padding:2px 2px 8px;margin:0 0 4px}
.day{min-width:54px;padding:5px 8px;border-radius:12px;gap:0}
.day b{font-size:1.05rem;line-height:1.35}
.day small{font-size:.7rem;line-height:1.5}
.league-blocks{gap:10px}
.league-head{padding:8px 12px;cursor:pointer;user-select:none;min-height:40px}
.league-head h3{font-size:15px;line-height:1.5}
.league-head span,.league-head small{font-size:12px}
.league-head::after{content:"";width:8px;height:8px;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(45deg);margin-inline-start:4px;margin-top:-3px;flex:0 0 auto;transition:transform .2s}
.league-block.collapsed .league-head::after{transform:rotate(-135deg);margin-top:3px}
.league-block.collapsed .match-row{display:none}
.league-block.collapsed .league-head{border-bottom:0}
.match-row{padding:7px 12px;gap:8px}
.match-row .team{font-size:14px;line-height:1.5;gap:6px}
.match-row .team span:last-child{overflow-wrap:anywhere}
.match-row .center{min-width:60px;gap:0}
.match-row .minute{font-size:11px;line-height:1.5}
.match-row .time{font-size:14px}
.side-nav a{padding:8px 12px}
.league-rail li a{padding:6px 10px;line-height:1.5}
.page-foot{padding:16px 16px 24px;gap:2px;line-height:1.7}
.page-foot span{overflow-wrap:anywhere}
.note{line-height:1.8}
@media (max-width:900px){
  .main{padding:10px 12px 88px}
  .featured{padding:12px 14px 10px;border-radius:16px}
  .featured-title{font-size:22px;line-height:1.4}
  .matchup .score{font-size:32px}
  .page-foot{padding-bottom:88px}
  .section-head{margin:12px 0 6px}
  .topbar{padding:6px 12px}
  .brand-mark{width:38px}
}

.page-foot{align-items:center;text-align:center;justify-content:center;margin-inline:auto}
.page-foot span,.page-foot b{text-align:center;width:100%}
.side-foot{display:none}

.src-note{margin:8px 0 0;font-size:11px;color:var(--muted);opacity:.85}

/* ---------- لوحة البطولة: ترتيب + هدافين ---------- */
body.dash-open{overflow:hidden}
.dash-ov{position:fixed;inset:0;z-index:60;background:rgba(4,8,12,.72);backdrop-filter:blur(6px);
  display:flex;align-items:flex-end;justify-content:center;padding:0}
.dash-ov[hidden]{display:none}
@media(min-width:760px){.dash-ov{align-items:center;padding:24px}}
.dash{width:100%;max-width:720px;max-height:88vh;display:flex;flex-direction:column;
  background:linear-gradient(180deg,var(--surface),var(--bg2));border:1px solid var(--line);
  border-radius:20px 20px 0 0;box-shadow:var(--shadow);overflow:hidden;animation:ksUp .26s cubic-bezier(.2,.7,.3,1) both}
@media(min-width:760px){.dash{border-radius:20px;max-height:82vh}}
@keyframes ksUp{from{transform:translateY(18px);opacity:.4}to{transform:none;opacity:1}}
.dash-head{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;border-bottom:1px solid var(--line)}
.dash-logo{width:30px;height:30px}
.dash-title{margin:0;font-size:16px;font-weight:800;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-x{flex:0 0 auto;width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:var(--surface2);
  color:var(--muted);font-size:14px;font-family:var(--font);cursor:pointer;line-height:1}
.dash-x:hover{color:var(--text);border-color:rgba(53,224,125,.4)}
.dash-tabs{display:flex;gap:6px;padding:10px 16px 0}
.dash-tab{font-family:var(--font);font-size:13px;font-weight:800;color:var(--muted);background:transparent;
  border:1px solid var(--line);border-radius:999px;padding:7px 16px;cursor:pointer}
.dash-tab.on{color:#04120a;background:var(--green);border-color:var(--green)}
.dash-body{padding:12px 12px 20px;overflow:auto;-webkit-overflow-scrolling:touch}
.dash-load,.dash-empty,.dash-note{margin:14px 6px;color:var(--muted);font-size:14px}
.dash-note{color:var(--gold);font-size:13px}
.dash-gname{margin:14px 6px 8px;font-size:12px;font-weight:800;color:var(--muted);letter-spacing:.2px}
.dash-tables{display:flex;flex-direction:column}
.dash-table{width:100%;border-collapse:collapse;font-size:13px}
.dash-table th{position:sticky;top:0;background:var(--bg2);color:var(--muted);font-weight:700;font-size:11px;
  text-align:center;padding:6px 4px;border-bottom:1px solid var(--line);z-index:1}
.dash-table td{text-align:center;padding:8px 4px;border-bottom:1px solid rgba(255,255,255,.04);white-space:nowrap}
.dash-table tbody tr:hover{background:rgba(53,224,125,.05)}
.dash-table th.d-team,.dash-table td.d-team{text-align:start}
.dash-table td.d-team{display:flex;align-items:center;gap:8px;min-width:0;max-width:44vw}
.dash-table td.d-team span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-table .logo{width:20px;height:20px}
.dash-table .d-rank{color:var(--muted);font-weight:700;width:26px}
.dash-table .d-pts{font-family:var(--display);font-weight:800;color:var(--green)}
.dash-table .d-gf{color:var(--muted);font-size:12px}
.dash-table tbody tr:nth-child(-n+1) .d-rank{color:var(--gold)}
.dash-scorers td.d-team span{font-weight:600}
@media(max-width:520px){
  .dash-table{font-size:12px}
  .dash-table td{padding:7px 3px}
  .dash-table th:nth-child(3),.dash-table td:nth-child(3),
  .dash-table th:nth-child(4),.dash-table td:nth-child(4),
  .dash-table th:nth-child(5),.dash-table td:nth-child(5),
  .dash-table th:nth-child(6),.dash-table td:nth-child(6){display:none}
}
.lg-tap{cursor:pointer}
.lg-tap:hover{background:rgba(53,224,125,.07)}
.lg-tap:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.lg-chev{flex:0 0 auto;color:var(--muted);font-size:16px;line-height:1;font-weight:700}
.lg-tap:hover .lg-chev{color:var(--green)}

/* ---------- v32: تنظيم الشاشات + أيقونات السايدبار ---------- */
/* المحتوى في النص عشان مفيش فراغ ميت على الشمال */
.main{max-width:1320px;margin-inline:auto;padding:24px 24px 48px}

/* شاشات كبيرة: البلوكات تملأ العرض بدل سطر بيتسحب أفقي */
@media (min-width:1180px){
  .league-blocks{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;
    overflow:visible;overflow-x:visible;cursor:auto}
  .league-blocks .col{display:contents}
  .lg-group{scroll-margin-top:76px}
}
@media (min-width:901px) and (max-width:1179px){
  .league-blocks .col{flex:0 0 300px;max-width:300px}
}

/* السايدبار: أزرار أوضح، وحالة نشطة باللون الأخضر */
.side-nav a{gap:11px;padding:10px 12px;border-radius:12px;font-size:14.5px;
  transition:background .18s ease,color .18s ease,border-color .18s ease;border:1px solid transparent}
.side-nav a .ico{width:20px;height:20px;stroke-width:1.75}
.side-nav a:hover{background:rgba(255,255,255,.045);color:var(--text)}
.side-nav a[aria-current="page"]{background:linear-gradient(90deg,rgba(53,224,125,.16),rgba(53,224,125,.03));
  color:var(--text);border-color:rgba(53,224,125,.22);box-shadow:inset -3px 0 0 var(--green)}
.side-nav a[aria-current="page"] .ico{color:var(--green)}

/* تابلت: السايدبار يتحول لشريط أيقونات رفيع بدل ما يختفي */
@media (min-width:901px) and (max-width:1179px){
  .shell{grid-template-columns:78px minmax(0,1fr)}
  .sidebar{padding:16px 8px;align-items:center;gap:14px}
  .side-nav{width:100%;gap:6px}
  .side-nav a{justify-content:center;padding:12px 0;border-radius:14px}
  .side-nav a .ico{width:23px;height:23px;stroke-width:1.8}
  .side-nav a .nav-label{display:none}
  .rail-title,.league-rail,.side-foot{display:none}
  .side-nav a[aria-current="page"]{box-shadow:none;border-color:rgba(53,224,125,.35)}
}

/* موبايل: تاب بار أوضح ولمسات أكبر */
@media (max-width:900px){
  .main{padding:14px 14px calc(92px + var(--safe-b))}
  .tabbar a{padding:6px 4px;border-radius:12px;gap:3px}
  .tabbar a[aria-current="page"]{color:var(--green);background:rgba(53,224,125,.10)}
  .tabbar .ico{width:23px;height:23px}
}
@media (max-width:420px){
  .main{padding:12px 10px calc(92px + var(--safe-b))}
  .section-head h2{font-size:18px}
  .day-strip{gap:6px}
}
/* موبايل: كارت البطولة ياخد العرض كامل بدل ما يبان طرف الكارت اللي بعده */
@media (max-width:900px){
  .league-blocks .col{flex:0 0 100%;max-width:100%}
}

/* ---- v33: كارت ماتش اليوم على الموبايل + سطر الموسم في لوحة البطولة ---- */
.dash-season{font-size:12px;font-weight:700;opacity:.7;margin:0 0 8px}
@media (max-width:600px){
  .featured::before,.featured::after{display:none}
  .featured .wm{display:none}
  .featured{background:linear-gradient(165deg,#0c1a24 0%,#0a1219 60%,#0b1a14 100%)}
  .matchup{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);width:100%;gap:6px;justify-content:stretch}
  .matchup .side{min-width:0;overflow:hidden}
  .matchup .team-name{display:block;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .matchup .score{font-size:32px}
  .featured-title{font-size:20px;overflow-wrap:anywhere}
  html,body{overflow-x:hidden}
}

/* ---- v36: no alpha gradients (iOS rendered them as flat green blocks) ---- */
body{background:var(--bg)!important;background-image:none!important}
.featured::before,.featured::after{display:none!important}
.featured{background:#0b141c!important}
.match-row.is-live{background:rgba(53,224,125,.06)!important;background-image:none!important;box-shadow:inset -3px 0 0 var(--green)}
.lg-label{background:rgba(53,224,125,.08)!important;background-image:none!important}
.side-nav a[aria-current="page"]{background:rgba(53,224,125,.12)!important;background-image:none!important}

/* ---- v39: center + balance the cards grid at tablet/desktop; no mid-word breaks in club names ---- */
@media (min-width:901px){
  .league-blocks{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;
    overflow:visible!important;overflow-x:visible!important;cursor:auto;justify-content:center;
    width:100%;max-width:1240px;margin-inline:auto}
  .league-blocks .col{display:contents!important;flex:none;max-width:none}
}
.match-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.match-row .center{min-width:56px}
.match-row .team span:last-child{overflow-wrap:normal!important;word-break:normal!important;hyphens:manual;line-height:1.35}
@media (min-width:901px) and (max-width:1279px){
  .match-row{padding:11px 10px;gap:6px}
  .match-row .team{font-size:13px;gap:6px}
}

/* ---- v43: masonry (CSS columns) so cards pack top to bottom with no row gaps ---- */
@media (min-width:901px){
  .league-blocks{display:block!important;column-width:300px;column-gap:14px;column-fill:balance;
    max-width:1240px;margin-inline:auto;width:100%}
  .league-blocks .col{display:contents!important}
  .league-blocks .lg-group{break-inside:avoid;-webkit-column-break-inside:avoid;page-break-inside:avoid;
    margin:0 0 14px;display:block}
}

/* ---- v44: كارت لكل ماتش (شكل كروت كبيرة) في أعمدة، وتمرير عمودي ---- */
.mcard{border-radius:22px;background:linear-gradient(180deg,var(--surface),var(--bg2));border:1px solid rgba(53,224,125,.22)}
.mcard.is-live-card{border-color:rgba(53,224,125,.65)}
.mcard .lg-label{background:linear-gradient(90deg,rgba(53,224,125,.16),rgba(53,224,125,.02))!important;padding:14px 18px;font-size:14px;border-bottom:1px solid rgba(255,255,255,.06)}
.mcard .lg-label .lg-chev{display:none}
.mcard .lg-label .lg-date{margin-inline-start:auto;font-size:12px;color:var(--muted)}
.mcard .match-wrap{border-bottom:0}
.mcard .match-row,.mcard .match-row.is-live{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:20px 12px 6px;gap:6px;align-items:center;background:none!important;box-shadow:none;border:0}
.mcard .match-row .team,.mcard .match-row .team.away{flex-direction:column;justify-content:flex-start;text-align:center;gap:10px;font-size:14px;line-height:1.35}
.mcard .match-row .team .logo,.mcard .match-row .team .dot{width:56px;height:56px}
.mcard .match-row .center{min-width:92px;gap:8px}
.mcard .match-row .score{font-size:32px}
.mcard .match-row .time{font-size:22px}
.mcard .match-row .minute{border:1px solid rgba(53,224,125,.5);border-radius:999px;padding:3px 12px;font-size:12px;background:rgba(53,224,125,.08)}
.mcard .match-row .minute.ft{border-color:var(--line);background:rgba(255,255,255,.05)}
.mcard .more-btn{margin-top:2px}
.mcard .match-more{padding:8px 16px 14px}
@media (max-width:900px){
  .league-blocks{flex-direction:column;overflow:visible;scroll-snap-type:none;cursor:auto;padding:2px 0 10px;gap:12px}
  .league-blocks .col{flex:none;max-width:100%;width:100%;gap:12px}
  .mcard .match-row .team .logo,.mcard .match-row .team .dot{width:48px;height:48px}
}

/* ---- v46: موبايل: ٤ كروت بالحجم الكامل في العمود، وسحب أفقي بين الأعمدة ---- */
@media (max-width:900px){
  .league-blocks{flex-direction:row;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;gap:10px;padding:2px 2px 12px;cursor:auto;align-items:flex-start}
  .league-blocks .col{flex:0 0 100%;max-width:100%;width:100%;scroll-snap-align:center;scroll-snap-stop:always;gap:12px;display:flex;flex-direction:column}
}

/* ---------- التوقعات ---------- */
#predictRoot{max-width:760px}
.pd-join,.pd-profile,.pd-board,.pd-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px;margin:0 0 12px}
.pd-join h3,.pd-board h3{margin:0 0 6px;font-size:18px;font-weight:900}
.pd-join p{margin:0 0 12px;color:var(--muted);font-size:14px}
.pd-name{display:block;width:100%;font-family:var(--font);font-size:16px;color:var(--text);background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:11px 12px;margin:0 0 10px}
.pd-btn{font-family:var(--font);font-size:15px;font-weight:800;color:#04120a;background:var(--green);border:0;border-radius:12px;padding:11px 18px;cursor:pointer;width:100%}
.pd-btn:disabled{background:var(--surface2);color:var(--muted);cursor:default}
.pd-link{font-family:var(--font);font-size:12px;font-weight:700;color:var(--gold);background:none;border:0;padding:4px;cursor:pointer}
.pd-ptop{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}
.pd-pname{font-size:17px;font-weight:900}
.pd-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.pd-stat{background:var(--bg2);border-radius:12px;padding:10px 4px;text-align:center}
.pd-stat b{display:block;font-family:var(--display);font-size:22px;color:var(--green)}
.pd-stat span{font-size:11px;color:var(--muted);font-weight:700}
.pd-days{display:flex;gap:8px;margin:0 0 8px}
.pd-day{font-family:var(--font);font-size:14px;font-weight:800;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:7px 18px;cursor:pointer}
.pd-day.on{color:#04120a;background:var(--green);border-color:var(--green)}
.pd-rule,.pd-note{font-size:12px;color:var(--muted);margin:0 0 12px;line-height:1.7}
.pd-note{margin:8px 0 0}
.pd-card.live{border-color:var(--red)}
.pd-head{display:flex;justify-content:space-between;font-size:12px;font-weight:700;color:var(--muted);margin:0 0 10px}
.pd-card.live .pd-time{color:var(--red)}
.pd-teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin:0 0 12px}
.pd-side{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:14px;font-weight:800;line-height:1.35;overflow-wrap:break-word;word-break:normal;min-width:0}
.pd-logo{width:40px;height:40px;object-fit:contain}
.pd-mid{font-family:var(--display);font-size:20px;font-weight:800;color:var(--text);min-width:52px;text-align:center}
.pd-opts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin:0 0 10px}
.pd-opt{font-family:var(--font);font-size:13px;font-weight:800;color:var(--text);background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:10px 4px;cursor:pointer;line-height:1.35;overflow-wrap:break-word}
.pd-opt.on{background:var(--green);color:#04120a;border-color:var(--green)}
.pd-score{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 12px;font-size:13px}
.pd-num{width:56px;font-family:var(--display);font-size:20px;text-align:center;color:var(--text);background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:6px 0}
.pd-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:14px;font-weight:700}
.pd-muted{color:var(--muted);font-size:13px;font-weight:600}
.pd-res{font-size:13px;border-radius:999px;padding:3px 10px}
.pd-res.ok{background:var(--surface2);color:var(--green)}
.pd-res.x{background:var(--green);color:#04120a}
.pd-res.no{background:var(--surface2);color:var(--red)}
.pd-empty{color:var(--muted);text-align:center;padding:24px 0}
.pd-lb-row{display:flex;align-items:center;gap:10px;background:var(--bg2);border-radius:12px;padding:10px 12px;font-weight:800}
.pd-lb-row.me{border:1px solid var(--green)}
.pd-rank{font-family:var(--display);color:var(--gold);font-size:18px}
.pd-lb-name{flex:1}
@media(max-width:900px){#predictRoot{padding-bottom:70px}}

/* ---------- الأهداف / الملخصات ---------- */
#hlRoot{max-width:760px}
.hl-links{display:flex;flex-wrap:wrap;gap:8px}
.hl-btn{flex:1 1 140px;text-align:center;font-family:var(--font);font-size:13px;font-weight:800;color:#04120a;background:var(--green);border-radius:12px;padding:10px 8px;text-decoration:none}
.hl-btn.alt{color:var(--text);background:var(--bg2);border:1px solid var(--line)}

/* ---------- غرفة الملابس ---------- */
#lkRoot{max-width:760px}
.lk-hero{background:#0d1a14;border:1px solid var(--line);border-radius:var(--r);padding:18px 16px;margin:0 0 12px;border-inline-start:4px solid var(--gold)}
.lk-hero b{display:block;font-family:var(--display);font-size:24px;font-weight:800;color:var(--gold)}
.lk-hero span{font-size:13px;color:var(--muted)}
.lk-match{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px;margin:0 0 12px}
.lk-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lk-team{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-family:var(--font);font-size:14px;font-weight:800;color:var(--text);background:#0d1a14;border:1px solid var(--line);border-bottom:3px solid var(--gold);border-radius:12px;padding:12px 6px;cursor:pointer;line-height:1.35;overflow-wrap:break-word;min-width:0}
.lk-team em{font-style:normal;font-size:11px;font-weight:700;color:var(--gold)}
.lk-team.off{cursor:default;border-bottom-color:var(--line)}
.lk-team.off em{color:var(--muted)}
body.lk-open{overflow:hidden}
.lk-sheet{position:fixed;inset:0;z-index:100;background:#050a0d;overflow-y:auto;-webkit-overflow-scrolling:touch}
.lk-room{max-width:560px;margin:0 auto;min-height:100%;padding:12px 12px calc(24px + var(--safe-b));background:repeating-linear-gradient(90deg,#0b1218 0 78px,#0e161d 78px 80px)}
.lk-top{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.lk-x{font-size:16px;font-weight:800;color:var(--text);background:var(--surface2);border:0;border-radius:50%;width:38px;height:38px;cursor:pointer;flex:none}
.lk-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex:1;min-width:0}
.lk-tab{display:flex;align-items:center;justify-content:center;gap:6px;font-family:var(--font);font-size:13px;font-weight:800;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 6px;cursor:pointer;min-width:0}
.lk-tab span{overflow-wrap:break-word;min-width:0}
.lk-tab.on{color:#04120a;background:var(--gold);border-color:var(--gold)}
.lk-tlogo{width:22px;height:22px;object-fit:contain;flex:none}
.lk-sub{text-align:center;font-size:12px;color:var(--muted);font-weight:700;margin:0 0 6px}
.lk-form{text-align:center;font-family:var(--display);font-size:18px;font-weight:800;color:var(--gold);margin:0 0 10px}
.lk-empty{text-align:center;color:var(--muted);padding:40px 12px;line-height:1.8}
.lk-pitch{position:relative;direction:ltr;height:560px;border-radius:16px;border:2px solid #cfe9d6;background:repeating-linear-gradient(0deg,#1b6b3a 0 56px,#1f7a43 56px 112px);overflow:hidden}
.lk-line{position:absolute;left:0;right:0;top:50%;height:2px;background:#cfe9d6}
.lk-circle{position:absolute;left:50%;top:50%;width:90px;height:90px;margin:-45px 0 0 -45px;border:2px solid #cfe9d6;border-radius:50%}
.lk-row{position:absolute;left:0;right:0;display:flex;justify-content:space-around;align-items:flex-end;transform:translateY(0)}
.lk-p{display:flex;flex-direction:column;align-items:center;width:70px}
.lk-shirt{width:44px;height:41px}
.lk-name{font-size:11px;font-weight:800;color:#ffffff;background:#0a1219;border-radius:6px;padding:1px 5px;margin-top:2px;text-align:center;max-width:76px;line-height:1.4;direction:auto}
.lk-bh{margin:18px 0 8px;font-size:15px;font-weight:900;color:var(--gold)}
.lk-bench{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lk-b{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:13px;font-weight:700;min-width:0}
.lk-b b{font-family:var(--display);color:var(--gold);font-size:16px;min-width:22px}
.lk-b span{overflow-wrap:break-word;min-width:0}
@media(max-width:900px){#lkRoot{padding-bottom:70px}.lk-pitch{height:520px}}

/* hero: Palestine flag wrap on the left 32%, highlighted league names, live progress bar (flat colors, no animation) */
.featured{padding-left:calc(min(32%,280px) + 14px)}
.fl-wrap{position:absolute;left:0;top:0;bottom:0;width:34%;max-width:290px;z-index:0;pointer-events:none;filter:drop-shadow(4px 0 0 #000)}
.fl-svg{display:block;width:100%;height:100%}
.featured>*:not(.fl-wrap){position:relative;z-index:1}
.featured .wm{display:none}
.featured-league{display:inline-block;background:#f3c455;color:#0a0f14;padding:1px 10px;border-radius:8px;font-weight:800;box-shadow:0 0 12px rgba(243,196,85,.5)}
.league-head h3,.pd-comp{color:#f3c455;text-shadow:0 0 10px rgba(243,196,85,.45)}
.fl-prog{position:relative;height:6px;border-radius:3px;background:#17303a;margin-top:12px;overflow:hidden;direction:rtl}
.fl-prog i{position:absolute;inset-block:0;inset-inline-start:0;background:#35e07d;border-radius:3px}
.fl-prog b{position:absolute;inset-block:0;inset-inline-start:50%;width:2px;background:#0a1219}
@media (max-width:900px){.featured{padding-left:calc(27% + 14px)}.fl-wrap{width:27%;max-width:none}.matchup{gap:8px}.matchup .team-name{font-size:13px}.matchup .score{font-size:32px}}

/* hero v2: Palestine flag ribbon, 3 wave loops, rising above the card's top-left (hand drawing 26419307) */
.featured{overflow:visible;padding-left:calc(200px + 10px)}
.fl-wrap{left:4px;top:-26px;bottom:auto;width:200px;height:176px;max-width:none;filter:none;overflow:visible}
.fl-svg{overflow:visible}
@media (max-width:900px){.featured{padding-left:calc(96px + 8px)}.fl-wrap{left:2px;top:-18px;width:100px;height:88px}}

/* hero v3: ribbon wraps over the card's top edge (loops straddle the border) */
.fl-wrap{top:-24px;height:176px;z-index:3!important}
@media (max-width:900px){.fl-wrap{top:-12px;width:100px;height:80px}}

/* hero v4: a real waving Palestinian flag draped over the card's top-left corner */
.fl-wrap{left:-16px;top:-22px;width:230px;height:174px;z-index:3!important}
.featured{padding-left:calc(210px + 10px)}
@media (max-width:900px){.fl-wrap{left:-8px;top:-14px;width:122px;height:92px}.featured{padding-left:calc(104px + 8px)}}

/* منع قايمة الضغط المطوّل (iOS) على اللوجوهات والصفحة، مع إبقاء الكتابة في الخانات */
html, body { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
img, svg { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* hero v5: flag wound around the card's left third as a spiral ribbon (flat colors, static), gold pill league names, open right side */
.featured{overflow:hidden;padding-left:calc(230px + 18px);background:#0c1a15}
.fl-wrap{left:0;top:0;bottom:0;width:230px;height:auto;z-index:0!important;border-inline-end:2px solid rgba(243,196,85,.55);background:#0a1410}
.fl-svg{width:100%;height:100%}
.featured::before,.featured::after{display:none}
.featured-league{font-size:13px}
.featured .score{font-size:44px}
.featured-meta .chip{border:1px solid rgba(255,255,255,.15)}
.mcard .lg-label .lg-name,.league-head h3{flex:0 1 auto;display:inline-flex;align-items:center;background:#f3c455;color:#0a0f14;padding:2px 11px;border-radius:8px;font-weight:800;text-shadow:none}
@media (max-width:900px){.featured{padding-left:calc(96px + 12px)}.fl-wrap{width:96px}.featured .score{font-size:34px}}


/* v86: جدول الترتيب - الخلية table-cell عشان الخطوط ماتتقطعش، والاسم يتقص من الآخر */
.dash-table td.d-team{display:table-cell;max-width:0;width:100%;overflow:hidden;white-space:nowrap}
.dash-table td.d-team .logo{display:inline-block;vertical-align:middle;margin-inline-end:8px}
.dash-table td.d-team span{display:inline-block;vertical-align:middle;max-width:calc(100% - 30px);unicode-bidi:plaintext;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-scorers td.d-team:nth-child(3){width:auto;max-width:none}

/* v87: زرار القفل ثابت دايماً + الجدول يتحرك جوه الصندوق بس (iOS) */
.dash-ov{overflow:hidden;overscroll-behavior:contain}
.dash{max-height:90vh;max-height:90dvh;min-height:0}
@media(min-width:760px){.dash{max-height:82vh}}
.dash-head,.dash-tabs{flex:0 0 auto}
.dash-head{position:relative;z-index:2;background:var(--surface)}
.dash-body{flex:1 1 auto;min-height:0;overscroll-behavior:contain}
.dash-body{padding-top:0}.dash-tables,.dash-scorers{padding-top:6px}.dash-table th{background:var(--surface)}

/* v89: فلتر البطولات (شيت) - ألوان ثابتة، من غير أنيميشن */
.filter-row.fx .comp-filter{display:none}
.fx-btn{display:flex;align-items:center;gap:10px;min-height:46px;min-width:230px;max-width:100%;padding:6px 14px;background:#0e1822;color:var(--text);border:1px solid rgba(53,224,125,.35);border-radius:14px;font:inherit;font-size:14px;font-weight:800;cursor:pointer;-webkit-tap-highlight-color:transparent}
.fx-btn .fx-nm{flex:1 1 auto;text-align:start;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fx-btn .fx-chev{color:var(--green);font-size:13px}
.fx-ic{flex:0 0 auto;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;color:var(--muted)}
.fx-ic .logo{width:26px;height:26px}
.fx-ic.live{color:var(--green)}
.fx-n{flex:0 0 auto;min-width:26px;text-align:center;padding:2px 9px;border-radius:999px;background:#f3c455;color:#0a0f14;font-size:12px;font-weight:800}
.fx-ov{position:fixed;inset:0;z-index:70;background:rgba(4,8,12,.78);display:flex;align-items:flex-end;justify-content:center}
.fx-ov[hidden]{display:none}
body.fx-open{overflow:hidden}
.fx-panel{width:100%;max-width:520px;max-height:82vh;max-height:82dvh;display:flex;flex-direction:column;background:#0b141c;border:1px solid var(--line);border-radius:20px 20px 0 0;overflow:hidden}
@media(min-width:760px){.fx-ov{align-items:center}.fx-panel{border-radius:20px;max-height:80vh}}
.fx-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,rgba(53,224,125,.16),rgba(53,224,125,.02))}
.fx-head h3{margin:0;font-size:16px;font-weight:800}
.fx-x{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:#0e1822;color:var(--text);font-size:14px;cursor:pointer}
.fx-list{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:8px 10px calc(14px + var(--safe-b,0px))}
.fx-sec{margin:12px 6px 6px;font-size:12px;font-weight:800;color:var(--muted)}
.fx-row{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;margin:0 0 6px;padding:6px 12px;background:#0e1822;color:var(--text);border:1px solid transparent;border-radius:12px;font:inherit;font-size:15px;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent}
.fx-row .fx-nm{flex:1 1 auto;text-align:start;min-width:0}
.fx-row.on{border-color:var(--green);background:#0f2a22}
.fx-row.dim{opacity:.5}
.fx-row.dim .fx-n{background:#1b2a36;color:var(--muted)}

/* v92: معاينة - اللوجو + الاسم وحدة واحدة (?hl=a / b / c) - مش الافتراضي */
html[class*="hl-"] .mcard .lg-label .lg-name{background:transparent;color:inherit;padding:0;border:0;border-radius:0;font-weight:inherit;display:inline;flex:none}
html[class*="hl-"] .lg-unit{display:inline-flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0;font-weight:800}
html[class*="hl-"] .lg-unit .logo{width:22px;height:22px;flex:0 0 auto}
html.hl-a .lg-unit{background:#123a2d;color:#35e07d;border:1px solid rgba(53,224,125,.35);border-radius:8px;padding:3px 11px 3px 12px}
html.hl-b .lg-unit{background:transparent;color:var(--text);border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:3px 14px 3px 12px;font-weight:700}
html.hl-c .lg-unit{background:transparent;color:var(--text);border:0;border-inline-start:4px solid var(--green);border-radius:0;padding:2px 0;padding-inline-start:10px}
html.hl-d .mcard .lg-label{background:#0f2a22!important}
html.hl-d .lg-unit{color:#fff;gap:10px}
html.hl-d .lg-unit .logo{width:26px;height:26px;padding:3px;background:#f2f5f7;border-radius:50%;box-sizing:border-box}
html.hl-e .lg-unit{background:#16222d;color:var(--text);border-radius:12px;border-bottom:2px solid var(--green);padding:5px 12px 4px}
html.hl-f .lg-unit{background:#16222d;color:var(--text);border-radius:14px;border-bottom:2px solid var(--green);padding:3px 14px 3px 4px;gap:8px}
html.hl-f .lg-unit .logo{width:26px;height:26px;padding:3px;box-sizing:border-box;background:#0b141c;border:1px solid rgba(53,224,125,.4);border-radius:50%}
html.hl-g .lg-unit{background:#14212c;color:var(--text);border-radius:10px;border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 0 0 2px #0f1a23;padding:4px 12px}
html.hl-h .lg-unit{background:#12202a;color:var(--text);border-radius:999px;padding:4px 14px 4px 12px;gap:8px}
html.hl-h .lg-unit::before{content:"";flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:#f3c455}
html.hl-h .lg-unit .lg-name{border-inline-start:1px solid rgba(255,255,255,.22);padding-inline-start:10px}
html.hl-i .lg-unit{background:transparent;color:var(--text);border-radius:10px;border:1px solid rgba(53,224,125,.7);outline:1px solid rgba(255,255,255,.2);outline-offset:2px;padding:3px 12px;margin:3px}

/* ?card=1 */
html.cd-1 .mcard .more-btn.pill{display:flex;align-items:center;justify-content:center;gap:12px;width:calc(100% - 28px);margin:6px 14px 14px;height:48px;border:1.5px solid #4a545c;border-radius:999px;background:#111a22;color:#c9cfd4;font-size:15px;font-weight:700}
html.cd-1 .more-btn.pill .chev{width:9px;height:9px;border-right:2px solid #c9cfd4;border-bottom:2px solid #c9cfd4;transform:rotate(45deg);margin-top:-4px}
html.cd-1 .more-btn.pill[aria-expanded="true"] .chev{transform:rotate(-135deg);margin-top:4px}
html.cd-1 .mcard .match-row,html.cd-1 .mcard .match-row.is-live{padding-bottom:12px}

html.cd-1 .more-btn.pill{text-decoration:none}
/* hl-j */
html.hl-j .mcard .lg-label{padding:12px 14px;gap:12px;background:#10241f!important}
html.hl-j .j-tile{flex:0 0 auto;width:54px;height:54px;border-radius:16px;background:#1d3a2f;display:flex;align-items:center;justify-content:center}
html.hl-j .j-blk{display:flex;flex-direction:column;gap:6px;min-width:0}
html.hl-j .j-name{font-size:17px;font-weight:800;color:#f1f5f2;line-height:1.2}
html.hl-j .j-sub{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#8fa79b}
html.hl-j .j-sep{width:1px;height:12px;background:#4a5e55}
html.hl-j .j-chev{margin-inline-start:auto;color:#9fb3a8;font-size:22px;line-height:1}
html.hl-j .mcard .lg-label .lg-date{margin-inline-start:0;font-size:13px;color:#b9c7bf}
html.hl-j .j-tile .lg-logo{width:36px;height:36px;object-fit:contain}
html.hl-j .j-name{font-size:15px;white-space:nowrap}
html.hl-j .mcard .lg-label .lg-date{font-size:11px;white-space:nowrap}
html.hl-j .mcard .lg-label{gap:10px;padding:12px}

html[class*="bg-"] body{background:transparent!important}

/* merged live: compact hl-j + cd-1 default */
html.hl-j .mcard .lg-label{padding:8px 10px;gap:8px} html.hl-j .j-tile{width:40px;height:40px;border-radius:12px} html.hl-j .j-tile .lg-logo{width:26px;height:26px} html.hl-j .j-blk{gap:3px} html.hl-j .j-name{font-size:13px} html.hl-j .j-sub{font-size:10px;gap:6px} html.hl-j .j-sep{height:9px} html.hl-j .j-chev{font-size:17px} html.hl-j .mcard .lg-label .lg-date{font-size:10px}


/* ---- mb preview: match-of-the-day banner variants (?mb=1..4). Preview only, default banner untouched ---- */
#featured.mbp{padding:0;overflow:hidden;border-radius:18px}
#featured.mbp .mb-in{position:relative;z-index:1;padding:13px 11px 13px;overflow:hidden;border-radius:18px}
/* v108: عمود الأهداف في جدول الترتيب - "له : عليه" في سطر واحد */
.dash-table th{white-space:nowrap}
.dash-table th.th-goals{font-size:10px;font-weight:700;color:var(--muted)}


@keyframes mb5pulse{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes mb7glow{0%,100%{opacity:.4}50%{opacity:.9}}
/* 8: George's animated banner - his artwork as base, light CSS cloth motion, optional canvas warp */
#featured.mbp.mbp8{padding:0;overflow:hidden;border-radius:16px;background:#030b12}
#featured.mbp .mb8{position:relative;padding:0;overflow:hidden;border-radius:14px;container-type:inline-size;aspect-ratio:1495/527;background:#030b12 url(1-mb8e.webp) center/100% 100% no-repeat;isolation:isolate}
#featured.mbp .mb8::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(46% 64% at 54% 50%,rgba(53,224,125,.10),rgba(53,224,125,0) 72%);animation:mb7glow 6.5s ease-in-out infinite}
#featured.mbp .mb8::after{content:"";position:absolute;z-index:1;pointer-events:none;top:11%;right:11%;bottom:11%;left:26%;background:radial-gradient(62% 76% at 56% 50%,rgba(2,12,9,.55),rgba(2,12,9,.22) 62%,rgba(2,12,9,0) 82%)}
#featured.mbp .mb8-col{position:absolute;z-index:2;left:26.6%;right:13.4%;top:12%;bottom:12%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1cqw}
#featured.mbp .mb8-pill{display:inline-flex;align-items:center;gap:1cqw;font-size:2.3cqw;font-weight:800;color:#1a1200;background:linear-gradient(180deg,#ffe6a6,#f3c455);border-radius:999px;padding:.5cqw 2.3cqw;box-shadow:0 0 14px rgba(243,196,85,.5);white-space:nowrap}
#featured.mbp .mb8-pill .mb8-dot{width:1.4cqw;height:1.4cqw;border-radius:50%;background:#1a1200;flex:0 0 auto}
#featured.mbp .mb8-pill.is-live .mb8-dot{animation:mb5pulse 1.8s ease-in-out infinite}
#featured.mbp .mb8-lg{font-size:2.45cqw;font-weight:700;color:#d3e6da;text-shadow:0 1px 5px rgba(0,0,0,.95);text-align:start;line-height:1.3;max-width:100%;white-space:normal;overflow-wrap:break-word}
#featured.mbp .mb8-score{display:flex;align-items:center;gap:1.2cqw;max-width:100%;flex-wrap:nowrap}
#featured.mbp .mb8-tm{display:inline-flex;align-items:center;gap:1cqw;min-width:0}
#featured.mbp .mb8-logo{width:5.2cqw;height:5.2cqw;object-fit:contain;flex:0 0 auto;filter:drop-shadow(0 1px 3px rgba(0,0,0,.8))}
#featured.mbp .mb8-nm{font-size:2.85cqw;font-weight:800;color:#f7fbf8;text-shadow:0 1px 4px rgba(0,0,0,.95);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:17cqw}
#featured.mbp .mb8-n{font-family:var(--display);font-size:4.4cqw;font-weight:800;color:#fff;letter-spacing:.5px;text-shadow:0 0 10px rgba(53,224,125,.45),0 1px 3px rgba(0,0,0,.9);white-space:nowrap}
#featured.mbp .mb8-min{position:absolute;z-index:3;left:27%;top:9%;font-size:2.5cqw;font-weight:800;color:#fff;background:#e5233a;border-radius:999px;padding:.4cqw 1.8cqw;box-shadow:0 0 10px rgba(229,35,58,.65)}
#featured.mbp .mb8 canvas{position:absolute;inset:0;z-index:0;width:100%;height:100%;display:block}
@media (prefers-reduced-motion:reduce){
 #featured.mbp .mb8::before,#featured.mbp .mb8-pill.is-live .mb8-dot{animation:none}
}
/* 8 effects: light sweep, floodlight flare, slow drift - GPU only, paused offscreen/hidden */
#featured.mbp .mb8{background-size:100% 100%}
#featured.mbp .mb8-drift{position:absolute;inset:0;z-index:0;pointer-events:none;background:url(1-mb8e.webp) center/100% 100% no-repeat;animation:mb8drift 22s ease-in-out infinite}
@keyframes mb8drift{0%{transform:scale(1.035) rotate(-.22deg) translate3d(0,0,0)}50%{transform:scale(1.05) rotate(.18deg) translate3d(-.5%,-.4%,0)}100%{transform:scale(1.04) rotate(-.12deg) translate3d(.4%,.3%,0)}}
#featured.mbp .mb8-sweep{position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(104deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.20) 47%,rgba(214,255,232,.30) 50%,rgba(255,255,255,.18) 53%,rgba(255,255,255,0) 62%);transform:translate3d(-70%,0,0);animation:mb8sweep 9s cubic-bezier(.4,0,.2,1) infinite;mix-blend-mode:screen}
@keyframes mb8sweep{0%{transform:translate3d(-70%,0,0)}55%,100%{transform:translate3d(70%,0,0)}}
#featured.mbp .mb8-flare{position:absolute;z-index:3;left:14%;top:18%;width:26%;height:46%;pointer-events:none;background:radial-gradient(closest-side,rgba(198,236,255,.42),rgba(150,220,255,.12) 58%,rgba(150,220,255,0) 78%);animation:mb8flare 4.6s ease-in-out infinite;mix-blend-mode:screen}
@keyframes mb8flare{0%,100%{opacity:.55}35%{opacity:1}48%{opacity:.72}62%{opacity:.95}}
#featured.mbp .mb8.mb8-paused *{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){
 #featured.mbp .mb8-drift,#featured.mbp .mb8-sweep,#featured.mbp .mb8-flare{animation:none;display:none}
}
/* smart=1 preview: goal glow, GOAL word, countdown, bell */
.match-row{position:relative}
.ks-bell{position:absolute;top:3px;left:3px;z-index:4;width:22px;height:22px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(8,18,14,.62);color:#9fb3a8;font-size:11px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.ks-bell.on{color:#08150f;background:#35e07d;border-color:#35e07d;box-shadow:0 0 10px rgba(53,224,125,.55)}
.ks-cd{display:block;font-size:10px;font-weight:800;color:#ffd166;margin-top:2px}
.match-row.ks-goal-h{box-shadow:inset 3px 0 0 #35e07d,0 0 18px rgba(53,224,125,.4);animation:ksGlow 4s ease-out}
.match-row.ks-goal-a{box-shadow:inset -3px 0 0 #35e07d,0 0 18px rgba(53,224,125,.4);animation:ksGlow 4s ease-out}
@keyframes ksGlow{0%{background-color:rgba(53,224,125,.22)}100%{background-color:transparent}}
.ks-goal-word{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;font-family:var(--display);font-size:26px;font-weight:900;letter-spacing:3px;color:#fff;text-shadow:0 0 18px rgba(53,224,125,.95),0 2px 8px rgba(0,0,0,.8);pointer-events:none;animation:ksGoal 4s ease-out forwards}
@keyframes ksGoal{0%{opacity:0;transform:scale(.55)}16%{opacity:1;transform:scale(1.12)}30%{transform:scale(1)}72%{opacity:1}100%{opacity:0;transform:scale(1.18)}}
@media (prefers-reduced-motion:reduce){.ks-goal-word{animation:none;opacity:1}.match-row.ks-goal-h,.match-row.ks-goal-a{animation:none}}

/* ---- التوقعات: كارت التوقع الجديد (pdc) ---- */
#predictRoot .pdc{background:#0e1a22;border:1px solid rgba(255,255,255,.07);border-radius:18px;padding:12px 12px 14px;margin:0 0 12px;box-shadow:0 10px 24px rgba(0,0,0,.35)}
#predictRoot .pdc.live{border-color:rgba(53,224,125,.45);box-shadow:0 0 0 1px rgba(53,224,125,.18),0 10px 24px rgba(0,0,0,.35)}
#predictRoot .pdc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
#predictRoot .pdc-comp{color:#e8c26a;font-weight:800;font-size:.82rem}
#predictRoot .pdc-time{display:inline-flex;align-items:center;gap:6px;color:#b9cbd8;font-weight:700;font-size:.8rem;font-variant-numeric:tabular-nums}
#predictRoot .pdc-clock{width:14px;height:14px;border-radius:50%;border:2px solid #b9cbd8;display:inline-block;position:relative}
#predictRoot .pdc-clock::after{content:"";position:absolute;inset:2px 4.5px 4.5px 2px;border-left:2px solid #b9cbd8;border-bottom:2px solid #b9cbd8;border-radius:1px}
#predictRoot .pdc-body{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:8px}
#predictRoot .pdc-tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:12px 6px 10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);border-radius:16px;color:inherit;font:inherit;cursor:pointer;transition:background .18s,border-color .18s,transform .12s}
#predictRoot .pdc-tile:active{transform:scale(.985)}
#predictRoot .pdc-tile.on{background:linear-gradient(180deg,#1d6b45,#14512f);border-color:rgba(53,224,125,.6);box-shadow:0 0 0 1px rgba(53,224,125,.25) inset}
#predictRoot .pdc-logobox{width:56px;height:56px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
#predictRoot .pdc-logobox img,#predictRoot .pdc-logobox .pd-logo{width:46px;height:46px;object-fit:contain}
#predictRoot .pdc-name{font-weight:800;font-size:.86rem;color:#f2f7f4;text-align:center;line-height:1.25;max-width:100%;overflow-wrap:break-word}
#predictRoot .pdc-lab{font-size:.78rem;font-weight:700;color:#8fa5b4}
#predictRoot .pdc-tile.on .pdc-lab{color:#6ff2a6}
#predictRoot .pdc-mid{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:0 2px}
#predictRoot .pdc-vs{font-weight:900;font-size:1.15rem;color:#9fb3c8;letter-spacing:.5px}
#predictRoot .pdc-draw{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.07);color:#cfe0d6;font:inherit;font-size:.78rem;font-weight:800;padding:7px 10px;border-radius:999px;cursor:pointer}
#predictRoot .pdc-draw.on{background:#35e07d;border-color:#35e07d;color:#06210f}
#predictRoot .pdc-scorerow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:8px 10px}
#predictRoot .pdc-scorelab{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:800;color:#cfdae3;white-space:nowrap}
#predictRoot .pdc-target{width:15px;height:15px;border-radius:50%;border:2px solid #e8c26a;position:relative;flex:0 0 auto}
#predictRoot .pdc-target::after{content:"";position:absolute;left:50%;top:50%;width:4px;height:4px;background:#e8c26a;border-radius:50%;transform:translate(-50%,-50%)}
#predictRoot .pdc-steps{display:inline-flex;align-items:center;gap:6px}
#predictRoot .pdc-step{display:inline-flex;align-items:center;gap:6px}
#predictRoot .pdc-sbtn{width:32px;height:32px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:transparent;color:#e6f2ea;font-size:1.05rem;font-weight:800;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
#predictRoot .pdc-sbtn:active{background:rgba(255,255,255,.12)}
#predictRoot .pdc-val{min-width:20px;text-align:center;font-size:1.15rem;font-weight:900;color:#fff;font-variant-numeric:tabular-nums}
#predictRoot .pdc-colon{color:#8fa5b4;font-weight:900;padding:0 2px}
#predictRoot .pdc-btn{margin-top:12px;width:100%;min-height:46px;border:0;border-radius:14px;background:linear-gradient(180deg,#63f0a6,#35e07d);color:#06210f;font:inherit;font-size:1rem;font-weight:900;cursor:pointer;box-shadow:0 6px 16px rgba(53,224,125,.28)}
#predictRoot .pdc-btn[disabled]{opacity:.45;box-shadow:none;cursor:default}
#predictRoot .pdc-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;font-size:.85rem;font-weight:700;color:#dbe8e1}
#predictRoot .pdc-body.closed{opacity:.95}

/* كروت التوقعات: الكريستة على البلاطة مباشرة من غير صندوق أبيض */
#predictRoot .pdc-logobox{background:transparent;border-radius:0;overflow:visible;width:58px;height:58px}
#predictRoot .pdc-logobox img,#predictRoot .pdc-logobox .pd-logo{width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 2px 5px rgba(0,0,0,.6))}
/* GOAL overlay: anchor to the match row itself so iOS Safari paints it on top */
.match-row{position:relative}
#featured .ks-goal-word,.ks-goal-word{z-index:9;will-change:opacity,transform}

/* banner text block: centered in the artwork panel, scales 320px -> desktop (container query units) */
#featured.mbp .mb8-col{left:24.5%;right:14%;top:7%;bottom:7%;align-items:center;justify-content:center;text-align:center;gap:.7cqw}
#featured.mbp .mb8-pill{font-size:2.1cqw;padding:.45cqw 1.9cqw;gap:.9cqw}
#featured.mbp .mb8-pill .mb8-dot{width:1.2cqw;height:1.2cqw}
#featured.mbp .mb8-lg{font-size:2.25cqw;text-align:center;line-height:1.28;white-space:normal}
#featured.mbp .mb8-score{justify-content:center;align-items:center;flex-wrap:nowrap;gap:.9cqw;width:100%}
#featured.mbp .mb8-tm{flex:0 1 auto;gap:.6cqw;min-width:0}
#featured.mbp .mb8-logo{width:4.4cqw;height:4.4cqw}
#featured.mbp .mb8-nm{font-size:2.5cqw;max-width:14cqw}
#featured.mbp .mb8-n{font-size:3.9cqw}
/* favourite teams picker */
.fav-btn{display:flex;align-items:center;gap:6px;min-height:46px;padding:6px 12px;background:#0e1822;color:var(--text);border:1px solid rgba(53,224,125,.35);border-radius:14px;font:inherit;font-size:13px;font-weight:800;cursor:pointer;flex:0 0 auto;-webkit-tap-highlight-color:transparent}
.fav-btn .fav-star{color:#35e07d;font-size:13px;line-height:1}
.fav-btn.on{color:#08150f;background:#35e07d;border-color:#35e07d}
.fav-btn.on .fav-star{color:#08150f}
.fav-ov{position:fixed;inset:0;z-index:130;background:rgba(2,8,6,.74);display:flex;align-items:flex-start;justify-content:center}
.fav-ov[hidden]{display:none}
.fav-panel{position:relative;width:calc(100% - 16px);max-width:560px;margin-top:max(10px,env(safe-area-inset-top));height:max(320px,min(470px,52vh));height:max(320px,min(470px,52dvh));display:flex;flex-direction:column;background:#08131a;border:1px solid rgba(53,224,125,.25);border-radius:18px;padding:14px;gap:10px}
.fav-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.fav-head h3{margin:0;font-size:15px;font-weight:800}
.fav-x{width:32px;height:32px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:transparent;color:#cfe;font-size:15px;cursor:pointer;line-height:1}
.fav-note{font-size:12px;color:#9fb3a8;line-height:1.55}
.fav-in{width:100%;min-height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:#0d1c24;color:#eaf4ee;font:inherit;font-size:16px;padding:8px 12px}
.fav-list{overflow:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:6px;padding:2px;min-height:80px}
.fav-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:12px;background:#0d1c24;border:1px solid rgba(255,255,255,.08);color:#eaf4ee;font:inherit;font-size:14px;font-weight:700;text-align:start;cursor:pointer;width:100%}
.fav-row.on{border-color:#35e07d;box-shadow:inset 0 0 0 1px rgba(53,224,125,.4)}
.fav-row img{width:26px;height:26px;object-fit:contain;flex:0 0 auto}
.fav-row .fav-star{margin-inline-start:auto;color:#35e07d;font-size:14px}
.fav-toast{position:absolute;left:50%;top:104px;transform:translateX(-50%);background:#35e07d;color:#06150d;font-size:13px;font-weight:800;padding:6px 16px;border-radius:999px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:2;box-shadow:0 4px 14px rgba(0,0,0,.4)}
.fav-toast.on{opacity:1}
.fav-empty{font-size:13px;color:#9fb3a8;padding:8px}
body.fav-open{overflow:hidden}
/* predictions exact-score row: never wider than the card; label on top, steppers centred below */
#predictRoot .pdc,#predictRoot .pdc-body,#predictRoot .pdc-scorerow{min-width:0;max-width:100%;box-sizing:border-box}
#predictRoot .pdc-scorerow{flex-wrap:wrap;justify-content:center;row-gap:8px;column-gap:10px;overflow:hidden}
#predictRoot .pdc-scorelab{flex:1 1 100%;justify-content:center}
#predictRoot .pdc-steps{flex:0 1 auto;max-width:100%;justify-content:center;gap:10px}
#predictRoot .pdc-step{gap:4px}
#predictRoot .pdc-sbtn{width:30px;height:30px;flex:0 0 auto}
#predictRoot .pdc-val{min-width:18px}
@media (max-width:359px){#predictRoot .pdc-steps{gap:6px}#predictRoot .pdc-sbtn{width:28px;height:28px}}
/* banner: long team names wrap to two lines instead of being cut */
#featured.mbp .mb8-nm{white-space:normal;overflow:visible;text-overflow:clip;max-width:16cqw;line-height:1.12;text-align:center;font-size:2.6cqw;overflow-wrap:anywhere}
#featured.mbp .mb8-tm{max-width:22cqw}
#featured.mbp .mb8-score{gap:1.2cqw}

/* v138: standalone safe-area, exact banner centering, favourites list */
.topbar{padding-top:calc(6px + env(safe-area-inset-top,0px));padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
@media(min-width:761px){.topbar{padding-top:calc(10px + env(safe-area-inset-top,0px))}}
.dash-head{padding-top:max(14px,env(safe-area-inset-top,0px))}
#featured.mbp .mb8-col{left:27%;right:13%;top:7%;bottom:7%;align-items:center;justify-content:center;text-align:center}
#featured.mbp .mb8-score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;justify-content:center;width:100%;gap:1.4cqw}
#featured.mbp .mb8-score .mb8-tm{max-width:none;min-width:0}
#featured.mbp .mb8-score .mb8-tm:first-child{justify-content:flex-end}
#featured.mbp .mb8-score .mb8-tm:last-child{justify-content:flex-start}
#featured.mbp .mb8-nm{max-width:none;white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:normal;word-break:normal;line-height:1.12;text-align:center;font-size:2.5cqw;min-width:0}
#featured.mbp .mb8-n{text-align:center}
.fav-row .fav-nm{display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1}.fav-row .fav-ph{width:26px;height:26px;flex:0 0 auto;border-radius:50%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);display:block}html[data-theme="light"] .fav-row .fav-ph{background:rgba(9,32,22,.06);border-color:rgba(9,32,22,.14)}
.fav-en{font-size:.72rem;font-weight:600;color:#8fa5b4;direction:ltr}

/* v139: crests in the cleared ball area, names get the full row */
#featured.mbp .mb8-crests{position:absolute;z-index:2;left:11.6%;width:16.4%;top:44%;height:38%;display:flex;align-items:center;justify-content:center;gap:.9cqw;pointer-events:none}
#featured.mbp .mb8-crests .mb8-logo{width:7.4cqw;height:7.4cqw;max-width:none;object-fit:contain;filter:drop-shadow(0 2px 5px rgba(0,0,0,.85))}
#featured.mbp .mb8-col{left:29%;right:13%}
#featured.mbp .mb8-nm{font-size:2.9cqw}
#featured.mbp .mb8-score{gap:1.8cqw}

/* v143: only the away crest sits in the cleared ball spot; both crests bigger and aligned with the score row */
#featured.mbp .mb8-crests{left:12%;width:15.6%;top:42.4%;height:40%;gap:0}
#featured.mbp .mb8-crests .mb8-logo{width:10.4cqw;height:10.4cqw}
#featured.mbp .mb8-score .mb8-tm .mb8-logo{width:6.6cqw;height:6.6cqw}
#featured.mbp .mb8-score .mb8-tm{gap:1.2cqw}

/* banner layout previews (only active with ?bv=) */
.bv-b #featured.mbp .mb8-col{left:27%;right:13%;top:6%;bottom:6%;gap:.5cqw}
.bv-b #featured.mbp .mb8-vb{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;width:100%;gap:1.4cqw}
.bv-b #featured.mbp .mb8-vcell{display:flex;flex-direction:column;align-items:center;gap:.6cqw;min-width:0}
.bv-b #featured.mbp .mb8-vcell .mb8-logo{width:11.5cqw;height:11.5cqw}
.bv-b #featured.mbp .mb8-vcell .mb8-nm{font-size:2.7cqw;text-align:center;white-space:normal;max-width:none}
.bv-b #featured.mbp .mb8-vb .mb8-n{font-size:6.2cqw}
.bv-c #featured.mbp .mb8-col{left:11%;right:11%;top:6%;bottom:6%;gap:.8cqw}
.bv-c #featured.mbp .mb8-vc{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:2cqw;align-items:center;width:100%}
.bv-c #featured.mbp .mb8-vg{display:flex;align-items:center;gap:2cqw;min-width:0;max-width:100%}
.bv-c #featured.mbp .mb8-vg:first-child{justify-self:end}
.bv-c #featured.mbp .mb8-vg:last-child{justify-self:start}
.bv-c #featured.mbp .mb8-vcr{display:flex;flex:none;align-items:center;justify-content:center}
.bv-c #featured.mbp .mb8-vcr .mb8-logo{width:13.5cqw;height:13.5cqw;object-fit:contain;display:block}
.bv-c #featured.mbp .mb8-vc .mb8-n .mb8-min,.bv-b #featured.mbp .mb8-vb .mb8-n .mb8-min{left:50%;top:100%;transform:translateX(-50%);margin-top:.5cqw;white-space:nowrap;line-height:1.2;font-size:2.7cqw;color:#fff;background:#e5233a;box-shadow:0 0 10px rgba(229,35,58,.65),0 0 0 .3cqw rgba(0,0,0,.35)}
.bv-c #featured.mbp .mb8-vc .mb8-n{position:relative;font-size:7.2cqw;line-height:1;text-align:center}
.bv-b #featured.mbp .mb8-vb .mb8-n{position:relative}
.bv-c #featured.mbp .mb8-vc .mb8-nm{min-width:0;font-size:2.9cqw;line-height:1.25;text-align:center;white-space:normal;overflow-wrap:anywhere}

/* banner effects preview (only with ?bv=c&fx=1): transform/opacity only, paused offscreen via .mb8-paused */
@keyframes bvin{from{opacity:0;transform:translate3d(0,6%,0)}to{opacity:1;transform:none}}
@keyframes bvcrest{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
@keyframes bvglow{0%,100%{opacity:.25;transform:scale(.92)}50%{opacity:.7;transform:scale(1.06)}}
@keyframes bvfloat{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-5%,0)}}
.bv-fx #featured.mbp .mb8-col>*{animation:bvin .7s cubic-bezier(.2,.7,.2,1) both}
.bv-fx #featured.mbp .mb8-col>*:nth-child(2){animation-delay:.08s}
.bv-fx #featured.mbp .mb8-col>*:nth-child(3){animation-delay:.16s}
.bv-fx #featured.mbp .mb8-vc .mb8-n{position:relative;isolation:isolate}
.bv-fx #featured.mbp .mb8-vc .mb8-n::before{content:"";position:absolute;z-index:-1;inset:-35% -30%;background:radial-gradient(closest-side,rgba(53,224,125,.5),rgba(53,224,125,0) 72%);animation:bvglow 3.8s ease-in-out infinite;will-change:opacity,transform}
.bv-fx #featured.mbp .mb8-vcr{animation:bvcrest .8s cubic-bezier(.2,.7,.2,1) .15s both}
.bv-fx #featured.mbp .mb8-vcr .mb8-logo{animation:bvfloat 5.2s ease-in-out infinite;will-change:transform}
.bv-fx #featured.mbp .mb8-vg:last-child .mb8-vcr .mb8-logo{animation-delay:-2.6s}
@media (prefers-reduced-motion:reduce){.bv-fx #featured.mbp .mb8-col>*,.bv-fx #featured.mbp .mb8-vc .mb8-n::before,.bv-fx #featured.mbp .mb8-vcr,.bv-fx #featured.mbp .mb8-vcr .mb8-logo{animation:none!important}}

/* polling re-render: no entrance animations, so nothing fades or jumps */
.ks-quiet #featured .mb8-col>*,.ks-quiet #featured .mb8-vcr,.ks-quiet .league-blocks .lg-group,.ks-quiet .league-blocks .col{animation:none!important}

/* flicker fix: no looping ambient layers on the banner, no live blur behind moving content (weak iPhone GPUs) */
#featured.mbp .mb8::before,#featured.mbp .mb8-drift,#featured.mbp .mb8-sweep,#featured.mbp .mb8-flare,.bv-fx #featured.mbp .mb8-vc .mb8-n::before{animation:none!important}
#featured.mbp .mb8-sweep,#featured.mbp .mb8-flare{display:none}
#featured.mbp .mb8-drift{transform:none!important}
.bv-fx #featured.mbp .mb8-vcr .mb8-logo{animation:none!important;will-change:auto}
.bv-fx #featured.mbp .mb8-vc .mb8-n::before{opacity:.55}
.topbar,header.top,.tabbar{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.tabbar{background:rgba(8,14,20,.98)}
.topbar{background:rgba(6,11,16,.97)}
/* v166: banner team names never break a word in half — fit by shrinking the font instead */
.bv-c #featured.mbp .mb8-vc .mb8-nm,#featured.mbp .mb8-vc .mb8-nm{overflow-wrap:normal;word-break:keep-all;hyphens:none;white-space:normal;min-width:0;line-height:1.15;text-align:center}
.bv-c #featured.mbp .mb8-vc .mb8-vg{gap:.7cqw}
/* v166: minute badge sits clear of the score, never tucked under the digits */
.bv-c #featured.mbp .mb8-vc .mb8-n .mb8-min{top:100%;margin-top:1.3cqw;z-index:4;line-height:1.15}

/* ================= v166: الوضع الفاتح (اختياري) — الوضع الغامق هو الافتراضي وزي ما هو ================= */
.th-btn{padding:8px 11px;font-size:15px;line-height:1;background:var(--surface2);color:var(--text);border:1px solid var(--line)}
html[data-theme="light"]{
  --bg:#eef2f0; --bg2:#e6ece9; --surface:#ffffff; --surface2:#eff4f1;
  --line:rgba(9,32,22,.13); --text:#0c1a13; --muted:#5a6f65;
  --green:#0e9a56; --gold:#a9770f; --red:#d02b2b;
  --shadow:0 14px 34px rgba(10,38,25,.14);
  color-scheme:light;
}
html[data-theme="light"] body{
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(14,154,86,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(169,119,15,.09), transparent 55%),
    var(--bg);
}
html[data-theme="light"] .topbar{background:rgba(255,255,255,.9)}
html[data-theme="light"] .sidebar{background:linear-gradient(180deg,#fff,#f3f8f5)}
html[data-theme="light"] .brand-mark{filter:drop-shadow(0 4px 12px rgba(169,119,15,.18))}
html[data-theme="light"] .th-btn{background:#fff;color:#0c1a13;border-color:rgba(9,32,22,.16)}
html[data-theme="light"] .icon-btn,
html[data-theme="light"] .dash-tab.on,
html[data-theme="light"] .pd-btn,
html[data-theme="light"] .pd-day.on,
html[data-theme="light"] .pd-opt.on,
html[data-theme="light"] .hl-btn,
html[data-theme="light"] .pd-res.x{background:#2ecb76;border-color:#2ecb76;color:#04120a}
html[data-theme="light"] .chip{background:rgba(9,32,22,.05)}
html[data-theme="light"] .chip.live{background:rgba(14,154,86,.12);border-color:rgba(14,154,86,.35)}
html[data-theme="light"] .live-pill{background:rgba(14,154,86,.12);border-color:rgba(14,154,86,.32)}
html[data-theme="light"] .match-row:hover{background:rgba(9,32,22,.04)}
html[data-theme="light"] .match-more{background:rgba(9,32,22,.03)}
html[data-theme="light"] .bar{background:rgba(9,32,22,.08)}
html[data-theme="light"] .mcard .lg-label{background:linear-gradient(90deg,rgba(14,154,86,.14),rgba(14,154,86,.02))!important}
html[data-theme="light"] .mcard .match-row .minute.ft{background:rgba(9,32,22,.05)}
html[data-theme="light"] .dash-table td{border-bottom-color:rgba(9,32,22,.06)}
html[data-theme="light"] .dash-table tbody tr:hover{background:rgba(14,154,86,.07)}
html[data-theme="light"] .dash-ov,
html[data-theme="light"] .fx-ov,
html[data-theme="light"] .fav-ov{background:rgba(12,32,24,.42)}
html[data-theme="light"] .fx-panel{background:#fff}
html[data-theme="light"] .fx-head{background:linear-gradient(90deg,rgba(14,154,86,.14),rgba(14,154,86,.02))}
html[data-theme="light"] .fx-btn,
html[data-theme="light"] .fx-x,
html[data-theme="light"] .fx-row{background:#f3f7f4}
html[data-theme="light"] .fx-row.on{background:#e3f5ea;border-color:var(--green)}
html[data-theme="light"] .fx-row.dim .fx-n{background:#e6ece9;color:var(--muted)}
html[data-theme="light"] .fav-panel{background:#fff;border-color:var(--line)}
html[data-theme="light"] .fav-row,
html[data-theme="light"] .fav-in{background:#f3f7f4;color:var(--text);border-color:rgba(9,32,22,.14)}
html[data-theme="light"] .fav-btn{background:#f3f7f4}
html[data-theme="light"] .fav-btn.on{background:#2ecb76;border-color:#2ecb76;color:#04120a}
html[data-theme="light"] .fav-btn.on .fav-star{color:#04120a}
html[data-theme="light"] .fav-note,
html[data-theme="light"] .fav-empty,
html[data-theme="light"] .fav-en{color:var(--muted)}
html[data-theme="light"] .fav-x{color:var(--muted);border-color:rgba(9,32,22,.16)}
html[data-theme="light"].hl-j .mcard .lg-label{background:#e8f3ec!important}
html[data-theme="light"] .j-tile{background:#d5ebde}
html[data-theme="light"] .j-name{color:#0c1a13}
html[data-theme="light"] .j-sub,
html[data-theme="light"] .j-chev,
html[data-theme="light"].hl-j .mcard .lg-label .lg-date{color:#5a6f65}
html[data-theme="light"] .j-sep{background:#b9cfc2}
html[data-theme="light"].cd-1 .mcard .more-btn.pill{border-color:#c3d2ca;color:var(--text)}
html[data-theme="light"] .more-btn.pill .chev{border-color:#5a6f65}
html[data-theme="light"] #predictRoot .pdc{background:#fff;border-color:rgba(9,32,22,.12);box-shadow:0 8px 20px rgba(10,38,25,.08)}
html[data-theme="light"] #predictRoot .pdc-comp{color:#a9770f}
html[data-theme="light"] #predictRoot .pdc-time{color:#5a6f65}
html[data-theme="light"] #predictRoot .pdc-clock{border-color:#5a6f65}
html[data-theme="light"] #predictRoot .pdc-clock::after{border-left-color:#5a6f65;border-bottom-color:#5a6f65}
html[data-theme="light"] #predictRoot .pdc-tile{background:rgba(9,32,22,.04);border-color:rgba(9,32,22,.10)}
html[data-theme="light"] #predictRoot .pdc-name{color:#0c1a13}
html[data-theme="light"] #predictRoot .pdc-lab{color:#5a6f65}
html[data-theme="light"] #predictRoot .pdc-tile.on{background:linear-gradient(180deg,#d9f4e3,#c3ebd3);border-color:rgba(14,154,86,.45);box-shadow:none}
html[data-theme="light"] #predictRoot .pdc-tile.on .pdc-lab{color:#0e7d47}
html[data-theme="light"] #predictRoot .pdc-vs{color:#5a6f65}
html[data-theme="light"] #predictRoot .pdc-draw{background:#f3f7f4;border-color:rgba(9,32,22,.14);color:#0c1a13}
html[data-theme="light"] #predictRoot .pdc-scorerow{background:#f3f7f4;border-color:rgba(9,32,22,.12)}
html[data-theme="light"] #predictRoot .pdc-scorelab,
html[data-theme="light"] #predictRoot .pdc-foot{color:#3d534a}
html[data-theme="light"] #predictRoot .pdc-sbtn{border-color:rgba(9,32,22,.18);color:#0c1a13}
html[data-theme="light"] #predictRoot .pdc-val{color:#0c1a13}
html[data-theme="light"] #predictRoot .pdc-btn{background:linear-gradient(180deg,#4cdc92,#2ecb76);color:#04120a}
/* v167: كروت الماتش في الوضع الفاتح — طبقة بيضاء فوق تدرّج ألوان الفريق (يحافظ على لون كل فريق) */
html[data-theme="light"] .mcard{position:relative;isolation:isolate}
html[data-theme="light"] .mcard::before{content:"";position:absolute;inset:0;border-radius:inherit;background:rgba(255,255,255,.88);z-index:0;pointer-events:none}
html[data-theme="light"] .mcard>*{position:relative;z-index:1}
html[data-theme="light"].cd-1 .more-btn.pill{background:#f1f6f3!important;border-color:#c3d2ca;color:var(--text)}
html[data-theme="light"] .mcard .team .nm,
html[data-theme="light"] .mcard .team b{color:#0c1a13}
html[data-theme="light"] .mcard .vs,
html[data-theme="light"] .mcard .time{color:#5a6f65}
/* v168: الوضع الفاتح — التبويبات، الكارت المميز، غرفة الملابس */
html[data-theme="light"] .tabbar{background:rgba(255,255,255,.96);border-top:1px solid var(--line)}
html[data-theme="light"] .featured{background:linear-gradient(165deg,#f7fbf8,#eef4f0)}
html[data-theme="light"] .fl-prog{background:#d8e5dc}
html[data-theme="light"] .fl-prog b{background:#fff}
html[data-theme="light"] .lk-hero{background:#eef6f1}
html[data-theme="light"] .lk-team{background:#f2f8f4}
html[data-theme="light"] .lk-sheet{background:#f4f8f5}
html[data-theme="light"] .lk-room{background:repeating-linear-gradient(90deg,#f7fbf8 0 78px,#eef4f0 78px 80px)}
html[data-theme="light"] .lk-pitch{border-color:#bfe0cb;background:repeating-linear-gradient(0deg,#2f8f52 0 56px,#349a59 56px 112px)}
html[data-theme="light"] .lk-line{background:#eaf6ee}
html[data-theme="light"] .lk-name{color:#0c1a13;background:rgba(255,255,255,.94)}
html[data-theme="light"] .lk-x{background:#e7efea}
html[data-theme="light"] .lk-tab{background:#fff}
html[data-theme="light"] .lk-b{background:#fff}

/* ================= v169: ملاءمة الشاشات الكبيرة (لابتوب/ديسكتوب) — من غير ما نلمس شكل الموبايل ================= */
@media (min-width:761px){
  .fav-ov{align-items:center;padding:24px}
  .fav-panel{width:min(680px,92vw);max-width:680px;height:auto;max-height:min(80dvh,760px);margin-top:0}
  .fav-list{flex:1 1 auto;min-height:0;padding-bottom:16px;overscroll-behavior:contain;-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 16px),transparent)}
  .fx-ov{align-items:center;padding:24px}
  .fx-panel{max-width:640px;max-height:min(84dvh,820px);border-radius:20px}
  .dash-ov{align-items:center;padding:24px}
  .dash{max-width:880px;max-height:min(90dvh,900px)}
  .lk-room{max-width:760px}
  .lk-pitch{height:min(560px,58dvh)}
  .pd-board,.pd-card{max-width:920px;margin-inline:auto}
}
/* قايمة البطولات */
.fav-row .comp-sub{font-style:normal;font-size:11px;font-weight:600;color:#9fb3a8;margin-top:2px}
[data-theme="light"] .fav-row .comp-sub{color:#5c6f65}
.fav-row b{font-size:14px;font-weight:800}
.fav-list{scrollbar-width:thin;scrollbar-color:rgba(53,224,125,.5) transparent}
.fav-list::-webkit-scrollbar{width:6px;height:6px}
.fav-list::-webkit-scrollbar-thumb{background:rgba(53,224,125,.45);border-radius:99px}
.fav-list::-webkit-scrollbar-track{background:transparent}
.dash-body{scrollbar-width:thin;scrollbar-color:rgba(53,224,125,.5) transparent}
.dash-body::-webkit-scrollbar{width:6px;height:6px}
.dash-body::-webkit-scrollbar-thumb{background:rgba(53,224,125,.45);border-radius:99px}
.dash-body::-webkit-scrollbar-track{background:transparent}

/* v176: minute badge built from ordered spans so RTL never flips "45+5" */
#featured.mbp .mb8-min{display:inline-flex;flex-direction:row;align-items:baseline;gap:0;direction:ltr;unicode-bidi:isolate}
#featured.mbp .mb8-min .mb8-mnum,#featured.mbp .mb8-min .mb8-mplus,#featured.mbp .mb8-min .mb8-map{display:inline-block;font:inherit;color:inherit;line-height:inherit}
/* v176: banner crests stop growing on wide windows (was unbounded 13.5cqw) */
.bv-c #featured.mbp .mb8-vcr .mb8-logo{width:min(11cqw,100px);height:min(11cqw,100px)}

/* QA fixes: formation badge spacing in the lineup sheet */
.lk-form b{display:inline-block;margin-inline-start:10px;padding:1px 10px;border-radius:999px;background:rgba(255,255,255,.09);font-size:15px;line-height:1.7;vertical-align:middle}
[data-theme="light"] .lk-form b{background:rgba(12,32,22,.08)}
/* QA fixes: keep the footer at the bottom on short pages */
.shell{min-height:calc(100dvh - 170px)}

/* v180 QA: light-mode contrast for countdown, comp label and star glyph */
html[data-theme="light"] .ks-cd{color:#8a5b06}
html[data-theme="light"] .pd-comp{color:#8a5b06;text-shadow:none}
html[data-theme="light"] .fav-star{color:#0e7d47}

/* ---- v182: صف الفلاتر يتمرر أفقيًا على الموبايل بدل ما يتقطع أو يوسّع الصفحة ---- */
.ks-notes{display:block;width:100%;max-width:100%}
.ks-notes .note{width:100%;max-width:100%;text-align:center;margin:14px 0 0;padding-top:12px}
@media (max-width:900px){
  .filter-row{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-width:100%;min-width:0;gap:6px;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
    padding-bottom:2px;scroll-snap-type:x proximity}
  .filter-row::-webkit-scrollbar{display:none}
  .filter-row>*{flex:0 0 auto;scroll-snap-align:start}
  .filter-row .fx-btn{min-width:140px;padding-inline:10px;gap:6px}
  .filter-row .fav-btn{padding-inline:10px}
  .filter-row .comp-filter{min-width:160px;max-width:58vw}
}

/* v183: نافذة جداول البطولات: بطول الشاشة على الموبايل + بحث بيصغّرها + من غير الكلام الصغير */
#compSheet{top:var(--vvt,0px);bottom:auto;height:var(--vvh,100%)}
#compSheet .fav-row[hidden]{display:none}
#compSheet .fav-list{flex:1 1 auto;min-height:0}
#compSheet .fav-in{flex:0 0 auto}
@media (max-width:760px){
  #compSheet .fav-panel{height:calc(100% - max(10px,env(safe-area-inset-top)) - 10px);max-height:none}
  #compSheet.q .fav-panel{height:auto;max-height:calc(100% - max(10px,env(safe-area-inset-top)) - 10px)}
}

/* v184: سايدبار الديسكتوب: أيقونات بس، وبيتفتح على الهوفر (أو الفوكس بالكيبورد) فوق المحتوى من غير ما يزحزحه */
@media (min-width:901px){
  .shell{grid-template-columns:78px minmax(0,1fr)}
  .sidebar{width:78px;justify-self:start;z-index:45;overflow:hidden;padding:16px 12px;align-items:stretch;gap:14px;transition:width .22s ease,box-shadow .22s ease,background-color .22s ease}
  .side-nav{width:100%;gap:6px}
  .side-nav a{justify-content:flex-start;padding:12px 14px;border-radius:14px;white-space:nowrap;overflow:hidden}
  .side-nav a .ico{flex:0 0 auto;width:23px;height:23px;stroke-width:1.8}
  .side-nav a .nav-label{display:inline;opacity:0;transition:opacity .16s ease}
  .side-nav a[aria-current="page"]{box-shadow:none;border-color:rgba(53,224,125,.35)}
  .rail-title{display:block;white-space:nowrap;visibility:hidden;opacity:0;transition:opacity .16s ease}
  .league-rail{display:flex;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;visibility:hidden;opacity:0;transition:opacity .16s ease;scrollbar-width:thin;overscroll-behavior:contain}
  .league-rail li a{white-space:nowrap}
  .sidebar:hover{width:268px}
  .sidebar:hover .nav-label{opacity:1}
  .sidebar:hover .rail-title,.sidebar:hover .league-rail{visibility:visible;opacity:1;transition-delay:.06s}
  .sidebar:hover .side-nav a[aria-current="page"]{box-shadow:inset -3px 0 0 var(--green)}
  html:not([data-theme="light"]) .sidebar:hover{background:#09111a;box-shadow:-16px 0 36px rgba(0,0,0,.5)}
  html[data-theme="light"] .sidebar:hover{box-shadow:-12px 0 30px rgba(10,40,25,.18)}
  .sidebar:has(:focus-visible){width:268px}
  .sidebar:has(:focus-visible) .nav-label{opacity:1}
  .sidebar:has(:focus-visible) .rail-title,.sidebar:has(:focus-visible) .league-rail{visibility:visible;opacity:1;transition-delay:.06s}
  .sidebar:has(:focus-visible) .side-nav a[aria-current="page"]{box-shadow:inset -3px 0 0 var(--green)}
  html:not([data-theme="light"]) .sidebar:has(:focus-visible){background:#09111a;box-shadow:-16px 0 36px rgba(0,0,0,.5)}
  html[data-theme="light"] .sidebar:has(:focus-visible){box-shadow:-12px 0 30px rgba(10,40,25,.18)}
  .side-nav a:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
}
@media (min-width:901px) and (prefers-reduced-motion:reduce){
  .sidebar,.side-nav a .nav-label,.rail-title,.league-rail{transition:none}
}

/* Refresh-safe: anchor the minute badge to the score even before the layout variant initializes. */
#featured.mbp .mb8-score .mb8-n{position:relative}
#featured.mbp .mb8-score .mb8-n .mb8-min{left:50%;top:100%;transform:translateX(-50%);margin-top:1.3cqw;white-space:nowrap;line-height:1.15;z-index:4}

/* Compact live status, same 26px height as the former pill; no card/layout changes. */
.match-row .minute.ks-live-minute,.mcard .match-row .minute.ks-live-minute{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;height:26px;min-height:26px;box-sizing:border-box;border:0;padding:0;background:none;white-space:nowrap;line-height:1}
.match-row .ks-live-label{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;font-size:10px;line-height:10px;font-weight:700}
.match-row .ks-live-dot{display:inline-block;width:4px;height:4px;border-radius:50%;background:currentColor;flex:none}
.match-row .ks-live-clock{display:inline-flex;align-items:baseline;justify-content:center;direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;font-weight:800;line-height:16px;font-size:17px;letter-spacing:0}
.match-row .ks-live-clock[hidden]{display:none}
.match-row .ks-live-extra{position:relative;top:-3px;font-size:10px;line-height:1;color:#eac455;vertical-align:baseline}
.match-row .ks-live-break{color:#eac455}
html[data-theme="light"] .match-row .ks-live-extra,html[data-theme="light"] .match-row .ks-live-break{color:#956400}
