/* 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. */

.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;
}
.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: color-mix(in oklch, hsl(var(--base-content)) 60%, transparent); margin: 0 0 26px; max-width: 480px; }
.a7lg-empty { padding: 22px; text-align: center; border-radius: 14px;
  border: 1px dashed color-mix(in oklch, hsl(var(--base-content)) 16%, transparent);
  color: color-mix(in oklch, hsl(var(--base-content)) 55%, transparent); font-size: 14px; }

.a7lg-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  color: color-mix(in oklch, hsl(var(--base-content)) 60%, transparent);
  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; }
.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: 16px; 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; }
.a7lg-tile__name { font-size: 14px; font-weight: 600; text-align: center; line-height: 1.3; }

/* ── 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: 16px; 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 { font-size: 30px; flex-shrink: 0; }
.a7lg-opt__t { font-size: 18px; font-weight: 700; display: block; }
.a7lg-opt__d { font-size: 13px; color: color-mix(in oklch, hsl(var(--base-content)) 55%, transparent); 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; }
.a7lg-plat__l { font-size: 14px; font-weight: 500; color: color-mix(in oklch, hsl(var(--base-content)) 60%, transparent); }
.a7lg-pills { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.a7lg-pill { display: flex; align-items: center; justify-content: center; text-decoration: none;
  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; }
.a7lg-pill--ar { background: hsl(var(--base-100)); color: hsl(var(--base-content));
  border-color: color-mix(in oklch, hsl(var(--base-content)) 20%, transparent); }
.a7lg-pill--en { background: hsl(var(--primary)); color: hsl(var(--primary-content, var(--base-100))); border-color: hsl(var(--primary)); }
.a7lg-pill:hover { transform: translateY(-1px); }
.a7lg-pill--en:hover { opacity: .9; }

.a7lg-hint { border-radius: 14px; 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: color-mix(in oklch, hsl(var(--base-content)) 60%, transparent); }
.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; }
  .a7lg-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 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: .55; text-decoration: none; color: inherit; transition: opacity .18s ease-out; }
.a7lg-bc__a:hover { opacity: 1; }
.a7lg-bc__sep { opacity: .3; }
.a7lg-bc__cur { font-weight: 600; opacity: .9; }

/* ── 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;
  background: linear-gradient(to right, color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
.a7lg-titlerow__line:last-child {
  background: linear-gradient(to left, color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
.a7lg-titlerow__t { font-size: 22px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.a7lg-sub--center { text-align: center; margin-inline: auto; }
.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; gap: 8px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; 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; }
.a7lg-tile--sk { position: relative; overflow: hidden; min-height: 128px; border-radius: 16px;
  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; } }

.a7lg-adbox { margin: 22px auto 8px; max-width: min(970px, 100%); width: 100%; }

/* ── 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: 16px;
  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; }
.a7lg-cd__lead { font-size: 12.5px; font-weight: 700;
  color: color-mix(in oklch, var(--lg-accent, hsl(var(--base-content))) 72%, 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))) 92%, 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; } }
