/* Leagues Calendars — native a7.ae section styles (theme-aware, RTL).
   Uses the site's DaisyUI tokens so it inherits dark/light automatically. The
   subscribe UX mirrors the World Cup page but rendered with theme colours. */

/* ── design tokens — forward-compatible with the site-wide token layer; scoped
   here because leagues.css only loads on the leagues section page ── */
:root {
  --a7-radius-card: 14px;
  --a7-radius-pill: 999px;
  /* checked muted text: mixed toward the SURFACE (never `transparent`) so
     functional labels keep >=4.5:1 on tinted cards in both light + dark. */
  --a7lg-muted: color-mix(in oklch, hsl(var(--base-content)) 72%, hsl(var(--base-100)));
}

/* Visible keyboard focus on every interactive control — DaisyUI's reset drops the
   UA outline, so without this keyboard/switch users get no focus indicator. */
:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
/* 999px-radius controls: a ring reads better than a clipped outline. */
.a7lg-pill:focus-visible, .a7lg-share:focus-visible, .a7lg-pager__btn:focus-visible {
  outline: none; box-shadow: 0 0 0 2px hsl(var(--base-100)), 0 0 0 4px hsl(var(--primary));
}

.a7lg-wrap {
  max-width: 620px; margin: 0 auto; padding: 8px 20px 56px;
  display: flex; flex-direction: column;
  color: hsl(var(--base-content));
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
.a7lg-wrap--center { align-items: stretch; }

/* --tile-bg drives the circle behind each platform SVG (theme-aware) */
.a7lg-wrap, .a7lg-plats { --tile-bg: color-mix(in oklch, hsl(var(--base-content)) 8%, transparent); }

.a7lg-h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.a7lg-sub { font-size: 16px; color: var(--a7lg-muted); margin: 0 0 26px; max-width: 600px; text-wrap: balance; }
.a7lg-empty { padding: 22px; text-align: center; border-radius: var(--a7-radius-card);
  border: 1px dashed color-mix(in oklch, hsl(var(--base-content)) 16%, transparent);
  color: var(--a7lg-muted); font-size: 14px; }

.a7lg-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  color: var(--a7lg-muted);
  text-decoration: none; font-size: 14px; margin-bottom: 18px; transition: color .15s ease; }
.a7lg-back:hover { color: hsl(var(--base-content)); }

/* ── grids of leagues / teams ── */
.a7lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; align-items: start; }
.a7lg-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px;
  background: color-mix(in oklch, hsl(var(--base-content)) 4%, transparent);
  border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 10%, transparent);
  border-radius: var(--a7-radius-card); text-decoration: none; color: hsl(var(--base-content));
  transition: transform .16s cubic-bezier(.23,1,.32,1), background .16s ease, border-color .16s ease; }
@media (hover:hover) { .a7lg-tile:hover { transform: translateY(-2px);
  background: color-mix(in oklch, hsl(var(--base-content)) 8%, transparent);
  border-color: color-mix(in oklch, hsl(var(--base-content)) 22%, transparent); } }
.a7lg-tile__img { width: 56px; height: 56px; object-fit: contain; }
.a7lg-tile__emoji { font-size: 44px; line-height: 1; }
/* ONE-LINE STANDARD (owner 2026-08-21): a team/league name never wraps — uniform
   cards. House pattern = .a7lg-stack__tname (leagues-stack.js). The ellipsis is a
   structural guard; with the 2-col phone grid below, all current Arabic names fit
   full-size with zero truncation. */
.a7lg-tile__name { font-size: 14px; font-weight: 600; text-align: center; line-height: 1.3;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── league page header + two options ── */
.a7lg-hdr { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.a7lg-badge__img, .a7lg-hdr .a7lg-badge__img { width: 64px; height: 64px; object-fit: contain; }
.a7lg-badge__emoji { font-size: 52px; line-height: 1; }
.a7lg-opts { display: flex; flex-direction: column; gap: 14px; }
.a7lg-opt { display: flex; align-items: center; gap: 16px; padding: 20px;
  background: color-mix(in oklch, hsl(var(--base-content)) 4%, transparent);
  border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 10%, transparent);
  border-radius: var(--a7-radius-card); text-decoration: none; color: hsl(var(--base-content));
  transition: transform .16s cubic-bezier(.23,1,.32,1), background .16s ease; }
@media (hover:hover) { .a7lg-opt:hover { transform: translateY(-2px);
  background: color-mix(in oklch, hsl(var(--base-content)) 8%, transparent); } }
.a7lg-opt__ic { flex-shrink: 0; display: flex; align-items: center;
  color: color-mix(in oklch, var(--lg-accent, hsl(var(--primary))) 55%, hsl(var(--base-content))); }
.a7lg-opt__ic svg { width: 28px; height: 28px; display: block; }
.a7lg-opt__tx { flex: 1; min-width: 0; }
.a7lg-opt__chev { width: 20px; height: 20px; flex-shrink: 0; opacity: .45; }
.a7lg-wrap[dir="rtl"] .a7lg-opt__chev { transform: scaleX(-1); }
.a7lg-opt__t { font-size: 18px; font-weight: 700; display: block; }
.a7lg-opt__d { font-size: 13px; color: var(--a7lg-muted); margin-top: 2px; display: block; }

/* ── subscribe: badge + 4 platform columns ── */
.a7lg-wrap--center .a7lg-badge { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center; padding: 8px;
  background: hsl(var(--base-100));
  box-shadow: 0 8px 24px -8px color-mix(in oklch, hsl(var(--base-content)) 30%, transparent); }
.a7lg-plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 8px 0 24px; }
.a7lg-plat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.a7lg-plat__ic { width: 60px; height: 60px; transition: transform .15s ease; }
.a7lg-plat:hover .a7lg-plat__ic { transform: scale(1.05); }
.a7lg-plat__ic svg { width: 100%; height: 100%; display: block; }
/* platform names are functional (they tell the visitor which button to press) →
   solid muted, never a sub-AA alpha dim. */
.a7lg-plat__l { font-size: 14px; font-weight: 600; color: var(--a7lg-muted); }
.a7lg-pills { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.a7lg-pill { display: flex; align-items: center; justify-content: center; text-decoration: none;
  min-height: 44px; padding: 8px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease, background .15s ease; }
/* Arabic is the site's primary language → it is the filled primary CTA; English is
   the quiet ghost alternative (hierarchy was previously inverted). */
.a7lg-pill--ar { background: hsl(var(--primary)); color: hsl(var(--primary-content, var(--base-100))); border-color: hsl(var(--primary)); }
.a7lg-pill--en { background: hsl(var(--base-100)); color: hsl(var(--base-content));
  border-color: color-mix(in oklch, hsl(var(--base-content)) 20%, transparent); }
.a7lg-pill:hover { transform: translateY(-1px); }
.a7lg-pill--ar:hover { opacity: .9; }

.a7lg-hint { border-radius: var(--a7-radius-card); padding: 14px 18px; font-size: 13px; line-height: 1.7;
  background: color-mix(in oklch, hsl(var(--base-content)) 5%, transparent);
  border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 10%, transparent);
  color: var(--a7lg-muted); }
.a7lg-hint b { color: hsl(var(--base-content)); font-weight: 600; }

@media (max-width: 480px) {
  .a7lg-wrap { padding: 4px 14px 40px; }
  .a7lg-h1 { font-size: 24px; }
  .a7lg-plats { gap: 10px; }
  .a7lg-plat__ic { width: 52px; height: 52px; }
  .a7lg-pill { font-size: 11px; padding: 6px 8px; }
  /* Phones are ALWAYS 2-up: the auto-fill 3-col band (≥408px, Pro-Max class)
     shrank the text box to ~100px and wrapped long names (ديبورتيفو لاكورونيا…).
     Two columns give every name ≥135px — one line at full size on all devices. */
  .a7lg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ── Breadcrumb ── */
.a7lg-bc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px;
  padding: 0 2px; margin: 2px 0 16px; color: hsl(var(--base-content)); }
.a7lg-bc__a { opacity: .72; text-decoration: none; color: inherit; transition: opacity .18s ease-out; }
.a7lg-bc__a:hover { opacity: 1; }
.a7lg-bc__sep { opacity: .5; }
.a7lg-bc__cur { font-weight: 600; opacity: 1; }

/* ── Titlerow (centered, flanked by fade lines) ── */
.a7lg-wrap--hub { max-width: 900px; align-items: stretch; }
.a7lg-titlerow { display: flex; align-items: center; gap: 16px; padding: 0 4px; margin: 6px 0 10px; }
.a7lg-titlerow__line { flex: 1; height: 1px; }
/* Solid near the title, transparent toward the OUTER edge (LTR + RTL). */
.a7lg-titlerow__line:first-child { background: linear-gradient(to left,  color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
.a7lg-titlerow__line:last-child  { background: linear-gradient(to right, color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
[dir="rtl"] .a7lg-titlerow__line:first-child { background: linear-gradient(to right, color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
[dir="rtl"] .a7lg-titlerow__line:last-child  { background: linear-gradient(to left,  color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
.a7lg-titlerow__t { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
/* Hub subtitle: full hub width + a slightly smaller size so the long sentence
   sits on ONE line on desktop (16px in the 900px hub forced an awkward 2-line
   wrap); wraps naturally on mobile. */
.a7lg-sub--center { text-align: center; margin-inline: auto; max-width: min(920px, 100%); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.a7lg-h1--center { text-align: center; }

/* ── Share row (subscribe views) ── */
.a7lg-sharerow { display: flex; justify-content: center; margin-top: 22px; }
.a7lg-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; min-height: 44px; padding: 9px 18px; border-radius: 999px; color: hsl(var(--base-content));
  background: color-mix(in oklch, hsl(var(--base-content)) 6%, transparent);
  border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 14%, transparent); transition: background .15s ease, transform .15s ease; }
.a7lg-share:hover { transform: translateY(-1px); background: color-mix(in oklch, hsl(var(--base-content)) 12%, transparent); }

/* ── Skeleton placeholders (CLS guard, no blank first paint) ── */
.a7lg-stack--skeleton { display: block !important; height: clamp(210px, 24vw, 280px); border-radius: 18px;
  background: color-mix(in oklch, hsl(var(--base-content)) 5%, transparent); position: relative; overflow: hidden; margin: 8px 0 34px; }
/* Match the REAL stack's mobile height (leagues-stack.js @<=720px) so the skeleton
   → live-stack swap doesn't shove the grid ~30px on phones. */
@media (max-width: 720px) {
  .a7lg-stack--skeleton { height: clamp(200px, 56vw, 260px); margin: 6px 0 54px; }
}
.a7lg-tile--sk { position: relative; overflow: hidden; min-height: 128px; border-radius: var(--a7-radius-card);
  background: color-mix(in oklch, hsl(var(--base-content)) 4%, transparent); }
.a7lg-stack--skeleton::after, .a7lg-tile--sk::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, hsl(var(--base-content)) 7%, transparent), transparent);
  transform: translateX(-100%); animation: a7lgShim 1.3s infinite; }
@keyframes a7lgShim { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .a7lg-stack--skeleton::after, .a7lg-tile--sk::after { animation: none; } }

/* Numbered pager (prev/next + page indicator) — ported byte-for-byte from the
   /news section spec (.a7n-pager) so it looks identical across the site. The
   previous block used `var(--base-content, currentColor)` directly, but
   --base-content is an HSL *triplet* — so the color-mix() was an invalid color
   and the border/background silently dropped, leaving bare-text buttons.
   Correct form is hsl(var(--base-content)), matching the rest of this file. */
.a7lg-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 32px 0 4px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.a7lg-pager__btn {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 14%, transparent);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background .18s ease-out,
              border-color .18s ease-out,
              transform .22s cubic-bezier(0.23, 1, 0.32, 1);
}
.a7lg-pager__btn:disabled { opacity: .4; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .a7lg-pager__btn:not(:disabled):hover {
    background: color-mix(in oklch, hsl(var(--base-content)) 7%, transparent);
    border-color: color-mix(in oklch, hsl(var(--base-content)) 24%, transparent);
  }
}
.a7lg-pager__btn:not(:disabled):active { transform: scale(.96); transition: transform 100ms; }
.a7lg-pager__info { opacity: .72; font-weight: 500; }

/* Ad = same footprint as a league card: ONE grid cell that stretches to the
   tile row height (never a full-width giant). */
.a7lg-adbox { align-self: stretch; min-height: 124px; border-radius: var(--a7-radius-card); overflow: hidden; }
/* In the HUB grid the banner matches the league card's HEIGHT exactly (they are
   ~124px tall, not square). The tall (9:16) native image was DICTATING the box
   height — `height:100%` collapses when the parent has only `min-height`, so the
   <img> fell back to its intrinsic aspect and stretched the cell. Positioning the
   image absolutely lets it FILL the cell (object-fit:cover crops) WITHOUT growing
   it, so the box stays at the tile height (align-self:stretch + min-height:124).
   Scoped to `.a7lg-grid` so the league-DETAIL wide banner (.a7lg-detad-host) is
   untouched. */
.a7lg-grid .a7lg-adbox { align-self: stretch; }
.a7lg-grid .a7lg-adbox__native { height: 100%; }
.a7lg-grid .a7lg-adbox__native img { position: absolute; inset: 0; }
.a7lg-adbox__native { position: relative; display: block; width: 100%; height: 100%; border-radius: var(--a7-radius-card); overflow: hidden; text-decoration: none;
  background: color-mix(in oklch, hsl(var(--base-content)) 6%, transparent);
  border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 10%, transparent); }
.a7lg-adbox__native img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.a7lg-adbox__native img.is-on { opacity: 1; }
/* Subtle bottom scrim so the CTA pill stays readable over any image */
.a7lg-adbox__native::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 46%; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent); pointer-events: none; }
.a7lg-adbox__cta { position: absolute; inset-inline: 0; bottom: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 auto; width: max-content; max-width: 88%;
  padding: 5px 14px; border-radius: 999px;
  font-weight: 700; font-size: 12px; line-height: 1.1; color: #fff;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(6px) saturate(1.4); backdrop-filter: blur(6px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.28); box-shadow: 0 2px 6px rgba(0,0,0,.3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: transform .15s ease, background .15s, border-color .15s; }
.a7lg-adbox__native:hover .a7lg-adbox__cta { transform: scale(1.06);
  background: rgba(0,0,0,.62); border-color: rgba(255,255,255,.55); }
.a7lg-adbox__cta-ic { flex: 0 0 auto; width: 14px; height: 14px; }
.a7lg-adbox .adsbygoogle { display: block; width: 100%; height: 100%; min-height: 124px; }
/* Google ad slot: PIN to the league-card footprint (fixed height + clip) so the
   responsive AdSense unit can never balloon a grid row into a half-page banner.
   A bounded-height container makes AdSense pick a fitting small ad (no clipping). */
/* Card-sized, BOUNDED height ≈ a league tile. A responsive AdSense unit only
   picks a small ad when its container height is FIXED — an auto/stretch height
   lets it balloon into a tall multiplex/list ad that then stretches the whole
   grid row. Fixed height + overflow:hidden clips any overflow, so the ad can
   never be taller than a card. !important beats AdSense's inline height. */
/* Google ad = card footprint. adsbygoogle.js writes `height:auto!important;
   min-height:0!important` (and for MULTIPLEX/matched-content ads also
   `max-height:none!important`) INLINE up the WHOLE ancestor chain incl. the grid
   cell — so height / min-height / max-height caps ALL lose. The one box metric
   Google never touches is PADDING: give the clip its height via padding-bottom
   (content height stays 0), and position the ad ABSOLUTELY so a tall multiplex
   ad overflows and is clipped instead of stretching the whole grid row. */
.a7lg-adbox--gclip { align-self: start; position: relative; height: 0; padding-bottom: 126px; overflow: hidden; }
.a7lg-adbox--gclip .a7lg-adbox--g { position: absolute; inset: 0 0 auto 0; width: 100%; height: 100%; }
.a7lg-adbox--gclip .adsbygoogle { display: block; width: 100%; }
/* Loading skeleton for the ad slot (reserved before the async ad fetch resolves) */
.a7lg-adbox--sk { position: relative; overflow: hidden; min-height: 124px; border-radius: var(--a7-radius-card);
  background: color-mix(in oklch, hsl(var(--base-content)) 4%, transparent); }
.a7lg-adbox--sk::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, hsl(var(--base-content)) 7%, transparent), transparent);
  transform: translateX(-100%); animation: a7lgShim 1.3s infinite; }
@media (prefers-reduced-motion: reduce) { .a7lg-adbox--sk::after { animation: none; } }

/* League-detail in-content ad: ONE card-sized unit in the seam below the option
   cards and above the standings table. A clear «إعلان» label keeps it from reading
   as content next to the table; it never mimics the tappable .a7lg-opt cards. */
.a7lg-detad-host { width: 100%; }
.a7lg-adlabel { display: flex; align-items: center; gap: 7px; margin: 2px 2px 9px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in oklch, hsl(var(--base-content)) 44%, transparent); }
.a7lg-adlabel::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 999px;
  background: color-mix(in oklch, hsl(var(--base-content)) 30%, transparent); }
.a7lg-detad-host .a7lg-adbox__native { height: 126px; }
/* Detail-page google ad = a horizontal leaderboard band (shorter than the hub's
   126px card), so a forced-horizontal creative fills it cleanly with no cut-off. */
.a7lg-detad-host .a7lg-adbox--gclip { padding-bottom: 100px; min-height: 0; }
/* Reveal-on-fill: 0-height while AdSense decides, so an unfilled slot never flashes */
.a7lg-detad-host .a7lg-adbox--gclip.a7lg-detad--pending { padding-bottom: 0; }

/* ── Next-match countdown hero (league + subscribe views) — per-league accent ── */
.a7lg-cd-host { width: 100%; }
.a7lg-cd { width: 100%; box-sizing: border-box; margin: 2px 0 24px; padding: 16px 18px; border-radius: var(--a7-radius-card);
  background: color-mix(in oklch, var(--lg-accent, hsl(var(--base-content))) 6%, hsl(var(--base-100)));
  border: 1px solid color-mix(in oklch, var(--lg-accent, hsl(var(--base-content))) 24%, transparent);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
/* Accent only TINTS the foreground — base-content stays dominant so a light
   per-league accent can never wash the label/number below AA. */
.a7lg-cd__lead { font-size: 12.5px; font-weight: 700;
  color: color-mix(in oklch, var(--lg-accent, hsl(var(--base-content))) 45%, hsl(var(--base-content))); }
.a7lg-cd__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.a7lg-cd__team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.a7lg-cd__crest { width: 32px; height: 32px; object-fit: contain; }
.a7lg-cd__crestx { font-size: 26px; line-height: 1; }
.a7lg-cd__vs { font-size: 13px; font-weight: 800; opacity: .5; }
.a7lg-cd__when { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-size: 14px; font-variant-numeric: tabular-nums; color: color-mix(in oklch, hsl(var(--base-content)) 62%, transparent); }
.a7lg-cd__timer { font-weight: 800; padding: 4px 12px; border-radius: 999px; min-height: 1em;
  color: color-mix(in oklch, var(--lg-accent, hsl(var(--primary))) 38%, hsl(var(--base-content)));
  background: color-mix(in oklch, var(--lg-accent, hsl(var(--base-content))) 12%, transparent); }
@media (max-width: 520px) { .a7lg-cd__team { font-size: 14px; } .a7lg-cd__crest { width: 28px; height: 28px; } }

/* ── Section closure — SHARED design (.a7cs-* mirrors the Card Designer / prompts closure, verbatim) ── */
.a7cs-wrap {
  --cs-accent: hsl(var(--primary));
  --cs-accent-press: color-mix(in oklch, hsl(var(--primary)) 82%, #000);
  --cs-accent-soft: color-mix(in oklch, hsl(var(--primary)) 12%, transparent);
  --cs-text: hsl(var(--base-content));
  --cs-muted: color-mix(in oklch, hsl(var(--base-content)) 62%, transparent);
  --cs-faint: color-mix(in oklch, hsl(var(--base-content)) 72%, hsl(var(--base-100)));
  --cs-surface-2: hsl(var(--base-200));
  --cs-border: color-mix(in oklch, hsl(var(--base-content)) 12%, transparent);
  --cs-border-strong: color-mix(in oklch, hsl(var(--base-content)) 18%, transparent);
  min-height: 74vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 22px; font-family: inherit; color: var(--cs-text);
  background: radial-gradient(120% 80% at 50% -10%, color-mix(in oklch, hsl(var(--base-content)) 5%, transparent), transparent 60%);
}
.a7cs-card { width: 100%; max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.a7cs-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: var(--cs-accent-soft); color: var(--cs-accent); font-size: 13px; font-weight: 700;
  margin-bottom: 30px; border: 1px solid color-mix(in oklch, hsl(var(--primary)) 22%, transparent); }
.a7cs-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cs-accent); position: relative; }
.a7cs-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cs-accent);
  animation: a7cs-pulse 1.8s cubic-bezier(.22,.61,.36,1) infinite; }
@keyframes a7cs-pulse { 0% { transform: scale(1); opacity: .6 } 70% { transform: scale(3); opacity: 0 } 100% { opacity: 0 } }
.a7cs-iconwrap { position: relative; width: 128px; height: 128px; margin-bottom: 34px; display: flex; align-items: center; justify-content: center; }
.a7cs-ring { position: absolute; inset: 0; border-radius: 34px; border: 1.5px solid var(--cs-border-strong); animation: a7cs-floaty 5s ease-in-out infinite; }
.a7cs-ring--b { inset: -14px; border-radius: 42px; opacity: .5; animation-delay: .4s; }
.a7cs-iconbox { width: 96px; height: 96px; border-radius: 28px;
  background: linear-gradient(155deg, hsl(var(--primary)), var(--cs-accent-press));
  display: flex; align-items: center; justify-content: center; color: hsl(var(--primary-content));
  box-shadow: 0 14px 34px -10px color-mix(in oklch, hsl(var(--primary)) 45%, transparent);
  animation: a7cs-floaty 5s ease-in-out infinite; }
.a7cs-iconbox svg { width: 48px; height: 48px; }
@keyframes a7cs-floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
.a7cs-title { font-family: inherit; font-weight: 800; font-size: clamp(22px, 3.8vw, 28px);
  line-height: 1.3; margin: 0 0 14px; letter-spacing: -.3px; color: var(--cs-text); text-wrap: balance; }
.a7cs-sub { font-size: clamp(15px, 2.4vw, 18px); color: var(--cs-muted); line-height: 1.7; margin: 0 0 34px; max-width: 430px; }
.a7cs-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.a7cs-btn { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: var(--a7-radius-card);
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; font-family: inherit;
  transition: transform .08s, background .14s; }
.a7cs-btn svg { width: 18px; height: 18px; }
.a7cs-wrap[dir="rtl"] .a7cs-btn svg { transform: scaleX(-1); }
.a7cs-btn:active { transform: scale(.97); }
.a7cs-btn--primary { background: hsl(var(--primary)); color: hsl(var(--primary-content));
  box-shadow: 0 6px 18px -4px color-mix(in oklch, hsl(var(--primary)) 55%, transparent); }
.a7cs-btn--primary:hover { background: var(--cs-accent-press); }
.a7cs-progress { margin-top: 40px; width: 100%; max-width: 300px; }
.a7cs-bar { height: 6px; border-radius: 999px; background: var(--cs-surface-2); overflow: hidden; border: 1px solid var(--cs-border); }
.a7cs-fill { height: 100%; width: var(--cs-progress, 0%); border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--primary)), var(--cs-accent-press)); animation: a7cs-grow 2.4s cubic-bezier(.22,.61,.36,1) both; }
@keyframes a7cs-grow { from { width: 0 } to { width: var(--cs-progress, 0%) } }
.a7cs-lbl { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--cs-faint); }
@media (prefers-reduced-motion: reduce) { .a7cs-ring, .a7cs-iconbox, .a7cs-pulse::after, .a7cs-fill { animation: none !important; } }

/* ── standings table (جدول الترتيب) ─────────────────────────────────── */
.a7lg-standings { margin-top: 26px; }
.a7lg-st__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.a7lg-st__title { font-size: 1.15rem; font-weight: 800; margin: 0; color: hsl(var(--base-content)); }
.a7lg-st__auto { font-size: .72rem; opacity: .72; color: hsl(var(--base-content)); white-space: nowrap; }
.a7lg-st__alert { background: color-mix(in srgb, #f59e0b 14%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 42%, transparent); color: hsl(var(--base-content));
  border-radius: 12px; padding: 11px 14px; font-size: .86rem; line-height: 1.5; margin-bottom: 14px; }
.a7lg-st__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid color-mix(in srgb, hsl(var(--base-content)) 10%, transparent); border-radius: var(--a7-radius-card); }
.a7lg-st__table { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 360px;
  color: hsl(var(--base-content)); font-variant-numeric: tabular-nums; }
.a7lg-st__table th, .a7lg-st__table td { padding: 10px 8px; text-align: center; white-space: nowrap; }
/* column headers define what each number means → keep them legible (>=AA). */
.a7lg-st__table thead th { font-size: .72rem; font-weight: 700; opacity: .78;
  border-bottom: 1px solid color-mix(in srgb, hsl(var(--base-content)) 12%, transparent); }
.a7lg-st__rank { width: 34px; opacity: .7; }
/* Team cell = flex row; reversed under RTL so the club NAME hugs the reading (right)
   edge next to the rank, with the crest to its left (owner: «الأسماء يمين صوب الرقم»). */
.a7lg-st__team { display: flex; align-items: center; gap: 8px; justify-content: flex-start; text-align: start; min-width: 156px; }
/* Arabic: crest FIRST (rightmost, next to the rank), club name to its left,
   the pair hugging the right edge toward the numbers. English stays crest-left. */
.a7lg-wrap[dir="rtl"] .a7lg-st__team { flex-direction: row; }
.a7lg-st__crest, .a7lg-st__crestx { width: 22px; height: 22px; object-fit: contain;
  display: inline-block; vertical-align: middle; }
.a7lg-st__crestx { font-size: 17px; line-height: 22px; text-align: center; }
.a7lg-st__tn { vertical-align: middle; font-weight: 600; }
.a7lg-st__row:not(:last-child) td { border-bottom: 1px solid color-mix(in srgb, hsl(var(--base-content)) 6%, transparent); }
.a7lg-st__row--lead td { background: color-mix(in srgb, var(--lg-accent, hsl(var(--primary))) 11%, transparent); }
/* Rank + points are load-bearing numbers → base-content stays dominant, the
   per-league accent only tints (a light accent can never make them invisible). */
.a7lg-st__row--lead .a7lg-st__rank { color: color-mix(in oklch, var(--lg-accent, hsl(var(--primary))) 45%, hsl(var(--base-content))); font-weight: 800; opacity: 1; }
.a7lg-st__pts { font-weight: 800; }
.a7lg-st__table tbody .a7lg-st__pts { color: color-mix(in oklch, var(--lg-accent, hsl(var(--base-content))) 40%, hsl(var(--base-content))); }
/* standings loading skeleton (never a blank gap while the table loads) */
.a7lg-stsk { display: flex; flex-direction: column; gap: 8px; padding: 10px;
  border: 1px solid color-mix(in srgb, hsl(var(--base-content)) 10%, transparent); border-radius: var(--a7-radius-card); }
.a7lg-stsk__row { height: 34px; border-radius: 8px;
  background: linear-gradient(90deg,
    color-mix(in srgb, hsl(var(--base-content)) 6%, transparent) 25%,
    color-mix(in srgb, hsl(var(--base-content)) 13%, transparent) 37%,
    color-mix(in srgb, hsl(var(--base-content)) 6%, transparent) 63%);
  background-size: 400% 100%; animation: a7lg-stsk-shim 1.4s ease infinite; }
@keyframes a7lg-stsk-shim { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }
@media (prefers-reduced-motion: reduce) { .a7lg-stsk__row { animation: none } }
/* next-match hero skeleton — pixel-twin of .a7lg-cd, never a blank gap */
.a7lg-cd--sk { min-height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.a7lg-cdsk { display: inline-block; border-radius: 8px; background: linear-gradient(90deg,
  color-mix(in srgb, hsl(var(--base-content)) 6%, transparent) 25%,
  color-mix(in srgb, hsl(var(--base-content)) 13%, transparent) 37%,
  color-mix(in srgb, hsl(var(--base-content)) 6%, transparent) 63%);
  background-size: 400% 100%; animation: a7lg-stsk-shim 1.4s ease infinite; }
.a7lg-cdsk--lead { width: 90px; height: 13px; }
.a7lg-cdsk--crest { width: 32px; height: 32px; border-radius: 50%; }
.a7lg-cdsk--tn { width: 64px; height: 15px; }
.a7lg-cdsk--vs { width: 20px; height: 13px; }
.a7lg-cdsk--when { width: 150px; height: 15px; }
@media (prefers-reduced-motion: reduce) { .a7lg-cdsk { animation: none } }
/* reorderable fade divider (خط فاصل) — a horizontal rule that fades to transparent
   at both ends; placement controlled from the dashboard «ترتيب عناصر الصفحة». */
.a7lg-rule { border: 0; height: 1px; width: 100%; max-width: 900px; margin: 22px auto;
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, hsl(var(--base-content)) 22%, transparent) 50%, transparent); }
[data-block="divider"] { display: block; }

/* EGPL league logo is 100% black ink (leaguelogo/519.png, pixel-verified) —
   invisible on the dark theme (1.12:1). Inverting in dark mode reproduces
   FotMob's own official dark variant (dark/519.png = white) without a second
   asset or markup change. Scoped to this one logo; all other league/team
   crests are multicolour and untouched. */
.dark img[src*="leaguelogo/519"],
[data-theme="dark"] img[src*="leaguelogo/519"] { filter: invert(1); }

/* Champions League starball is the same case: single-colour near-black ink
   (leaguelogo/42.png, #363636 on 100% of opaque pixels, pixel-verified
   2026-09-14) — ~1.3:1 on the dark base. FotMob's dark/42.png is its white
   twin; inverting reproduces it with no second asset. */
.dark img[src*="leaguelogo/42."],
[data-theme="dark"] img[src*="leaguelogo/42."] { filter: invert(1); }
