/* القناة العلمية | WahmLab — one light theme, Arabic first. No dark mode, no toggles. */

@font-face {
  font-family: 'Tajawal Num';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/tajawal-500-num.woff') format('woff');
  unicode-range: U+0025, U+002B, U+0030-0039, U+0660-0669, U+066B-066C;
}

@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/readex-ar-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/readex-la-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --surface: #faf8ff;
  --surface-low: #f2f3ff;
  --surface-mid: #eaedff;
  --surface-high: #e2e7ff;
  --surface-highest: #dae2fd;
  --card: #ffffff;
  --ink: #131b2e;
  --ink-2: #3e4947;
  --outline: #6e7977;
  --line: #bdc9c6;
  --primary: #12344e;
  --primary-hover: #1d4b6e;
  --primary-soft: #d6e5f2;
  --secondary: #4b41e1;
  --secondary-soft: #e2dfff;
  --tertiary: #005683;
  --tertiary-soft: #cce5ff;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ba1a1a;
  --shadow-sm: 0 1px 2px rgba(19, 27, 46, .05), 0 0 0 1px rgba(19, 27, 46, .09);
  --shadow-md: 0 4px 12px -2px rgba(19, 27, 46, .10), 0 0 0 1px rgba(19, 27, 46, .035);
  --shadow-lg: 0 16px 32px -12px rgba(19, 27, 46, .22), 0 0 0 1px rgba(19, 27, 46, .035);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 24px;
  --t-fast: .15s ease;
  --t-med: .25s ease;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; } /* full-bleed sections use 100vw, which includes the scrollbar on desktop */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Readex Pro', Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
time { color: var(--outline); font-size: .85em; }
time::before {
  content: ''; display: inline-block; width: .9em; height: .9em; margin-inline-end: 5px;
  vertical-align: -1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.muted { color: var(--ink-2); }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60;
  background: var(--primary); color: #fff; padding: 8px 16px; border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip:focus { top: 8px; color: #fff; }

:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(19, 27, 46, .06);
}
.top-in {
  display: flex; align-items: center; gap: 16px;
  padding-block: 10px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem;
  flex-shrink: 0;
}
.brand .logo { border-radius: 12px; box-shadow: var(--shadow-sm); }
.head-nav ul { display: flex; gap: 4px; }
.head-nav a {
  display: block; padding: 6px 12px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.head-nav a:hover { background: var(--surface-mid); color: var(--ink); }
.head-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-more { position: relative; }
.nav-more > summary {
  display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  color: var(--ink-2); font-size: .95rem; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary:hover { background: var(--surface-mid); color: var(--ink); }
.nav-more > summary svg { transition: rotate var(--t-fast); }
.nav-more[open] > summary { background: var(--primary); color: #fff; font-weight: 600; }
/* Only one nav item reads as active at a time: while المزيد is open it owns the highlight. */
.head-nav ul:has(.nav-more[open]) > li > a[aria-current="page"] { background: transparent; color: var(--ink-2); font-weight: 500; }
.nav-more[open] > summary svg { rotate: 180deg; }
.nav-more > ul {
  display: grid; gap: 2px;
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 70;
  min-width: 190px; max-width: calc(100vw - 28px);
  background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 6px;
}
.nav-more > ul a {
  display: block; padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.nav-more > ul a:hover { background: var(--surface-low); color: var(--primary); }
.nav-more > ul a[aria-current="page"] { color: var(--primary); font-weight: 600; }
/* Install item: a button inside the menu list, styled exactly like the links next to it. */
.nav-more > ul button.nav-install {
  display: block; width: 100%; text-align: start;
  padding: 8px 14px; border-radius: var(--r-sm);
  background: none; border: 0; cursor: pointer;
  color: var(--ink); font-family: inherit; font-size: .95rem; font-weight: 500; line-height: inherit;
}
.nav-more > ul button.nav-install:hover { background: var(--surface-low); color: var(--primary); }
.nav-more > ul button.nav-install:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* The hidden attribute must win over any display rule set on the list items. */
[hidden] { display: none !important; }

/* Backdrop blur behind the open header menu: pure CSS, no JS, the page stays readable. */
body:has(.nav-more[open])::before {
  content: ""; position: fixed; inset: 0; z-index: 45;
  background: rgba(19, 27, 46, .30);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
@keyframes navpop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav-more[open] > ul { animation: navpop .13s ease-out; }
.head-search {
  flex: 1; min-width: 180px;
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px; box-shadow: var(--shadow-sm);
}
.head-search:focus-within { border-color: var(--secondary); box-shadow: 0 0 0 2px var(--secondary-soft); }
.head-search input {
  flex: 1; min-width: 0; border: 0; background: none; padding: 6px 0;
  font: inherit; font-size: .95rem; color: var(--ink);
}
.head-search input::placeholder { color: var(--outline); }
.head-search input:focus { outline: none; }
.head-search input::-webkit-search-cancel-button { display: none; }
.hs-go {
  display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0;
  border: 0; border-radius: 50%; background: var(--primary); color: #fff;
  transition: background var(--t-fast);
}
.hs-go:hover { background: var(--primary-hover); }
@media (max-width: 640px) {
  .top-in { gap: 8px 10px; }
  .brand { order: 1; }
  .head-search { order: 2; flex: 1 1 130px; min-width: 0; padding: 3px 12px; }
  .head-nav { order: 3; flex: 1 0 100%; }
  .head-nav ul { flex-wrap: wrap; }
}

/* ---------- main / sections ---------- */
main { padding-block: 24px 48px; }
main p { line-height: 1.8; }
.page-h {
  font-size: 1.6rem; margin-block: 4px 20px;
  background: linear-gradient(180deg, var(--surface-low), var(--surface-mid));
  border-radius: var(--r-lg); padding: 14px 20px;
}
.sec { margin-block: 28px; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-block-end: 14px;
}
.sec-head h2 { margin: 0; font-size: 1.25rem; position: relative; padding-block-end: 8px; }
.sec-head h2::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 42px; height: 3px; border-radius: 2px; background: var(--secondary);
}
.more { font-size: .9rem; white-space: nowrap; }

/* ---------- mini hero (homepage) ---------- */
.hero-mini {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--surface-low), var(--surface-mid));
  border-radius: var(--r-xl);
  padding: clamp(18px, 4vw, 28px);
  margin-block: 8px 28px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) {
  .hero-mini { gap: 12px; padding: 16px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--primary); color: #fff;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 10px 22px; border-radius: var(--r-md); border: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn:active { transform: scale(.98); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-wide { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-wide { grid-template-columns: 1fr 1fr; } }
.grid-tall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.card { position: relative; }
.card-link {
  display: block; background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  color: var(--ink); text-decoration: none;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.thumb { position: relative; display: block; overflow: hidden; background: var(--surface-high); }
.thumb-wide { aspect-ratio: 16 / 9; }
.thumb-tall { aspect-ratio: 9 / 16; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.play {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%; z-index: 2;
  width: 52px; height: 52px;
  background: rgba(19, 27, 46, .55); border-radius: 50%;
  display: grid; place-items: center;
}
.play::after {
  content: ''; border-inline-start: 15px solid #fff;
  border-block: 10px solid transparent; margin-inline-start: 4px;
}
.play-lg { width: 72px; height: 72px; }
.play-lg::after { border-inline-start-width: 20px; border-block-width: 14px; }
.dur {
  position: absolute; inset-inline-end: 8px; bottom: 8px;
  background: rgba(19, 27, 46, .8); color: #fff;
  font-size: .78rem; padding: 1px 8px; border-radius: 999px; line-height: 1.6;
}
.tag {
  display: inline-block; margin: 12px 14px 0;
  background: var(--secondary-soft); color: var(--secondary);
  font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  text-decoration: none; line-height: 1.7;
}
.card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 8px 14px 16px; font-weight: 600; font-size: 1rem; line-height: 1.6;
  transition: color var(--t-fast);
}
.seen-badge {
  position: absolute; inset-inline-end: 10px; top: 10px; z-index: 2;
  width: 26px; height: 26px; display: none; place-items: center;
  background: var(--ok); color: #fff; border-radius: 50%;
  font-size: .9rem; font-weight: 700; box-shadow: var(--shadow-md);
}
.seen > .seen-badge, .card.seen .seen-badge, .ws-row.seen .seen-badge { display: grid; }

@media (hover: hover) and (pointer: fine) {
  .card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
  .card-link:hover .thumb img { transform: scale(1.05); }
  .card-link:hover .card-title { color: var(--primary); }
}
.card-link:active { transform: scale(.985); }
.card[hidden], .post[hidden] { display: none; }

/* ---------- shorts rail (homepage) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 140px; gap: 12px;
  overflow-x: auto; scroll-snap-type: inline mandatory;
  padding-block-end: 8px;
  -webkit-overflow-scrolling: touch;
}
.rail > li { scroll-snap-align: start; }

/* ---------- explore: search, counter, chips ---------- */
.filter-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); margin-block-end: 8px;
}
.filter-wrap:focus-within { border-color: var(--secondary); box-shadow: 0 0 0 2px var(--secondary-soft); }
.filter {
  flex: 1; border: 0; background: none; padding: 12px 16px;
  font: inherit; color: var(--ink);
}
.filter::placeholder { color: var(--outline); }
.filter:focus { outline: none; }
.filter::-webkit-search-cancel-button { display: none; }
.flt-clear {
  border: 0; background: var(--surface-high); color: var(--ink-2);
  width: 30px; height: 30px; border-radius: 50%; margin-inline-end: 10px;
  font-size: 1.1rem; line-height: 1; display: grid; place-items: center;
}
.filter-wrap.quick {
  max-width: 320px; background: var(--surface-mid); border-color: transparent;
  border-radius: 999px; box-shadow: none; margin-block-end: 10px;
}
.filter-wrap.quick:focus-within { background: var(--card); border-color: var(--secondary); box-shadow: 0 0 0 2px var(--secondary-soft); }
.filter-wrap.quick .filter { padding: 7px 12px; font-size: .9rem; }
.flt-ico { display: grid; place-items: center; margin-inline-start: 12px; color: var(--outline); flex: 0 0 auto; }
@media (max-width: 480px) { .filter-wrap.quick { max-width: 100%; } }
.flt-count { color: var(--outline); font-size: .88rem; min-height: 1.6em; margin-block-end: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 6px 16px; font-size: .92rem; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { background: var(--surface-mid); }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- watch page ---------- */
.watch-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .watch-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .watch-side { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
}
.player { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #000; }
.player-wide { aspect-ratio: 16 / 9; }
.player-tall { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.player-fallback { position: relative; display: block; width: 100%; height: 100%; }
.player-fallback img { width: 100%; height: 100%; object-fit: cover; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.watch-info { padding-block-start: 18px; }
.watch-info .tag { margin: 0 0 10px; }
.watch-info h1 { font-size: 1.4rem; }
.watch-info .meta { margin-block: 4px 14px; }
.watch-cta { margin-block: 16px; }
.h3 { font-size: 1.1rem; margin-block: 22px 10px; }
.short-bridge {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-low); border-radius: var(--r-md);
  padding: 10px; margin-block: 14px;
}
.bridge-art img { width: 96px; border-radius: var(--r-sm); }
.bridge-meta { display: block; font-size: .78rem; color: var(--outline); font-weight: 600; }
.bridge-title { font-weight: 600; text-decoration: none; font-size: .95rem; line-height: 1.5; }
.watch-side {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 16px;
}
.ws-list { display: grid; gap: 4px; }
.ws-row {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none;
  transition: background var(--t-fast);
}
.ws-row img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.ws-row:hover { background: var(--surface-low); color: var(--ink); }
.ws-row.is-current {
  background: var(--primary-soft);
  box-shadow: inset -4px 0 0 var(--primary);
}
.ws-t { font-size: .9rem; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ws-row .seen-badge { position: static; width: 22px; height: 22px; font-size: .8rem; flex-shrink: 0; margin-inline-start: auto; }

/* question of the day (episode pages) */
.dq li {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 16px 18px; margin-block-end: 12px;
}
.mf-q { font-weight: 600; margin-block-end: 10px; }
.mf-a { color: var(--ink-2); }
.dq-btn { font-size: .88rem; padding: 6px 16px; }

/* ---------- posts ---------- */
.posts { display: grid; gap: 14px; }
.post {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}
.post h3 { font-size: 1.05rem; margin-block: 8px 4px; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--primary); }
.post p {
  color: var(--ink-2); margin-block-end: 8px;
  font-size: .92rem; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.post .tag { margin: 0; }
.post-has-art { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: start; }
.post-art { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--surface-high); }
.post-art img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { min-width: 0; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.post-foot time { color: var(--outline); font-size: .85rem; }

/* ---------- page with sidebar ---------- */
.page-split { display: grid; gap: 24px; align-items: start; }
.page-main { min-width: 0; }
.side-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 14px 16px; }
.side-h { font-size: .95rem; margin-block-end: 10px; }
.side-rows { display: grid; gap: 4px; }
.side-row {
  display: flex; align-items: center; gap: 10px; padding: 6px;
  border-radius: var(--r-sm); color: var(--ink); text-decoration: none;
}
.side-row img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.side-t { display: block; font-size: .88rem; font-weight: 600; line-height: 1.5; }
.side-d { display: block; font-size: .78rem; color: var(--outline); margin-block-start: 2px; }
@media (min-width: 900px) {
  .page-split { grid-template-columns: minmax(0, 1fr) 296px; }
  .page-side { position: sticky; top: 92px; display: grid; gap: 14px; }
}
@media (max-width: 560px) {
  .post-has-art { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
}

/* ---------- chips on watch page ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
.chips li, .chips a {
  background: var(--surface-mid); color: var(--ink-2);
  border-radius: 999px; padding: 3px 12px; font-size: .85rem; text-decoration: none;
}
.chips-links a:hover { background: var(--surface-high); color: var(--ink); }

/* ---------- prose pages (about, privacy, contact, 404) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.15rem; margin-block-start: 26px; }

/* ---------- sources / registry / corrections ---------- */
.source-records { display: grid; gap: 12px; margin-block: 10px; }
.source-records li {
  background: var(--card); border-inline-start: 4px solid var(--tertiary);
  border-radius: var(--r-sm); box-shadow: var(--shadow-sm); padding: 12px 16px;
}
.source-records h3 { font-size: .95rem; margin-block-end: 4px; }
.source-records p { color: var(--ink-2); margin-block-end: 6px; font-size: .92rem; }
.source-note { background: var(--tertiary-soft); border-radius: var(--r-sm); padding: 10px 14px; font-size: .92rem; }
.registry-list { display: grid; gap: 16px; }
.registry-entry { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px 20px; }
.registry-entry h2 { font-size: 1.1rem; margin-block: 8px; }
.registry-entry .tag { margin: 0; }
.correction-list { display: grid; gap: 16px; }
.correction-list article { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px 20px; }
.correction-list dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; }
.correction-list dt { font-weight: 600; color: var(--outline); }
.correction-list dd { margin: 0; }

/* ---------- platforms ---------- */
.plats { display: grid; gap: 12px; }
.plats li a {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  padding: 12px 16px; text-decoration: none; transition: box-shadow var(--t-fast);
}
.plats li a:hover { box-shadow: var(--shadow-md); }
.plats li a span { color: var(--ink-2); font-size: .88rem; }
.plats-row { display: flex; flex-wrap: wrap; gap: 10px; }
.plats-row li a {
  flex-direction: row; align-items: center; padding: 10px 20px; border-radius: 999px;
  color: var(--primary); font-weight: 600;
}

/* ---------- notify page ---------- */
.notify-list { display: grid; gap: 12px; }
.notify-list li a {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 14px 18px; text-decoration: none; color: var(--ink);
  transition: box-shadow var(--t-fast);
}
.notify-list li a:hover { box-shadow: var(--shadow-md); color: var(--ink); }
.notify-list strong { font-size: 1.05rem; }
.notify-list span { color: var(--ink-2); font-size: .9rem; grid-column: 2; }
.notify-list small { grid-column: 2; color: var(--outline); }
.social-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-mid); grid-row: span 3; }
.social-logo svg { width: 24px; height: 24px; fill: var(--ink); }

/* ---------- contact form ---------- */
.contact-form { display: grid; gap: 14px; margin-block: 16px; }
.cf-row { display: grid; gap: 6px; margin: 0; }
.cf-row label { font-weight: 600; font-size: .95rem; }
.cf-row input, .cf-row textarea {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
  padding: 10px 14px; font: inherit; color: var(--ink); box-shadow: var(--shadow-sm);
}
.cf-row input:focus, .cf-row textarea:focus { outline: 3px solid var(--secondary); outline-offset: 1px; border-color: var(--secondary); }
.cf-row input::placeholder, .cf-row textarea::placeholder { color: var(--outline); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-send { justify-self: start; }
.cf-msg { background: var(--primary-soft); border-radius: var(--r-sm); padding: 10px 14px; margin: 0; }
.cf-msg.is-err { background: #fdeaea; color: var(--danger); }
.cf-note { font-size: .85rem; }

/* ---------- share ---------- */
.share-item { display: inline-block; margin-block: 6px; }
.share-item > summary {
  display: inline-block; list-style: none; cursor: pointer;
  color: var(--primary); font-weight: 600; font-size: .9rem;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.share-item > summary::-webkit-details-marker { display: none; }
.share-item[open] > summary { background: var(--primary-soft); }
.share-panel {
  margin-block-start: 10px; background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 14px; max-width: 26rem;
}
.share-panel p { font-size: .88rem; color: var(--ink-2); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px; }
.share-actions .btn { font-size: .85rem; padding: 8px 16px; }
.share-whatsapp { display: inline-flex; align-items: center; gap: 8px; }
.wa-glyph { width: 18px; height: 18px; }
.share-url {
  display: block; background: var(--surface-low); border-radius: var(--r-sm);
  padding: 8px 12px; font-size: .8rem; direction: ltr; text-align: start;
  word-break: break-all; user-select: all;
}
.share-status { font-size: .85rem; min-height: 1.4em; margin-block-start: 6px; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .88rem; color: var(--outline); margin-block-end: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- misc ---------- */
.feed-discuss { font-size: .9rem; }
.seen-count { color: var(--outline); font-size: .9rem; text-align: center; margin-block: 24px; }
.back-top {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: #c8a45e; color: #fff; border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22); opacity: 0; visibility: hidden;
  transform: translateY(calc(100% + 36px));
  transition: transform .5s cubic-bezier(.45, 0, .35, 1), opacity .38s ease-in, visibility 0s linear .5s;
}
.back-top:hover { background: #b8934d; color: #fff; }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: transform .3s cubic-bezier(.22, .8, .3, 1), opacity .3s ease, visibility 0s; }
/* Gold disc, white double chevron, soft shadow; reads on both the light page and the navy footer. */

/* ---------- footer ---------- */
.foot {
  background: var(--primary); color: #dce6f2;
  padding-block: 40px 76px; margin-block-start: 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 28px 36px; padding-block-end: 26px;
}
.foot-brand .brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.foot-brand .logo { border-radius: 11px; }
.foot-tag { color: #a9bcd4; font-size: .9rem; line-height: 1.6; margin-block-start: 12px; max-width: 32ch; }
.foot-copy { color: #8ba3c0; font-size: .82rem; margin-block-start: 12px; }
.foot-h { font-size: .84rem; font-weight: 700; color: #fff; margin-block-end: 12px; }
.foot-col ul { display: grid; gap: 9px; }
.foot-col a { color: #dce6f2; font-size: .9rem; text-decoration: none; }
.foot-col button.foot-install { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; color: #dce6f2; font-size: .9rem; text-align: start; }
.foot-col button.foot-install:hover { color: #fff; text-decoration: underline; }
.foot-col button.foot-install:focus-visible { outline: 2px solid var(--primary-soft); outline-offset: 2px; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-col a[aria-current="page"] { color: var(--primary-soft); font-weight: 600; }
.foot-social { display: grid; gap: 10px; }
.foot-social a { display: inline-flex; align-items: center; gap: 10px; }
.fs-badge {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.fs-badge svg { width: 15px; height: 15px; fill: currentColor; }
.foot-social a:hover .fs-badge { background: #fff; color: var(--primary); border-color: #fff; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 24px; border-block-start: 1px solid rgba(255, 255, 255, .16);
  padding-block-start: 16px;
}
.foot-base p { color: #a9bcd4; font-size: .86rem; }
.foot-base a { color: #dce6f2; text-decoration: none; }
.foot-base a:hover { color: #fff; text-decoration: underline; }
.foot :where(a):focus-visible { outline-color: #fff; }
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .foot-col a, .foot-col button.foot-install { font-size: .86rem; }
}


/* ---------- filter tabs (one pattern, every list page) ---------- */
.tabs-wrap {
  position: static; /* scrolls away with the page; only the header stays pinned */
  margin-block: 14px 16px; padding-block: 8px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.tabs ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.tabs ul::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2);
  font: inherit; font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tab bdi { color: var(--outline); font-size: .78rem; font-weight: 600; }
.tab:hover { background: var(--surface-mid); color: var(--ink); }
.tab.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab.is-on bdi { color: var(--primary-soft); }

/* ---------- mixed feed (homepage + explore) ---------- */
.feed { display: grid; gap: 14px; }
.feed-feat, .feed-row { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.feed-feat { overflow: hidden; }
.feat-art { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-high); }
.feat-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feat-body { padding: 16px 18px 18px; }
.feat-body h2 { font-size: 1.25rem; line-height: 1.5; margin-block: 4px 8px; }
.feat-body h2 a { color: var(--ink); text-decoration: none; }
.feat-body h2 a:hover { color: var(--primary); }
.feat-cta { margin-block-start: 14px; margin-block-end: 0; }
.feed-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 12px; align-items: start; }
.feed-art {
  position: relative; display: block; height: 96px; flex: none;
  border-radius: 10px; overflow: hidden; background: var(--surface-high);
}
.feed-art.art-wide { aspect-ratio: 16 / 9; }
.feed-art.art-tall { aspect-ratio: 9 / 16; }
.feed-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feed-body { min-width: 0; }
.feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .8rem; color: var(--outline); line-height: 1.4; }
.feed-meta .tag { margin: 0; }
.feed-body h3 { font-size: 1.02rem; line-height: 1.5; margin-block: 0 4px; }
.feed-body h3 a { color: var(--ink); text-decoration: none; }
.feed-body h3 a:hover { color: var(--primary); }
.feed-desc {
  margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pill-new {
  background: var(--tertiary-soft); color: var(--tertiary);
  font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px;
}
@media (max-width: 640px) {
  .tab { padding: 6px 10px; font-size: .84rem; gap: 5px; }
  .tab bdi { font-size: .72rem; }
  .tabs ul { gap: 5px; }
  .feed-art { height: 84px; }
  .feed-row { gap: 12px; padding: 10px; }
  .feed-body h3 { font-size: .98rem; }
  .feat-body { padding: 14px; }
  .feat-body h2 { font-size: 1.1rem; }
}

/* 404 */
.nf-main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 32px; }
.nf-page { text-align: center; padding-block: 12px; }
.nf-orb { position: relative; width: 220px; height: 150px; margin-inline: auto; color: #7c64d8; display: grid; place-items: center; }
.nf-num { font-size: 4.6rem; font-weight: 800; line-height: 1; letter-spacing: .02em; color: var(--primary); direction: ltr; }
.nf-orbit { position: absolute; inset: -25px 0 -25px; width: 100%; height: calc(100% + 50px); animation: nf-float 5s ease-in-out 3 alternate; }
@keyframes nf-float { from { transform: translateY(-5px) rotate(-3deg); } to { transform: translateY(5px) rotate(3deg); } }
.nf-page h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); color: var(--primary); margin-block: 14px 8px; }
.nf-lead { max-width: 30rem; margin-inline: auto; color: var(--ink-2); font-size: 1.05rem; line-height: 1.9; }
.nf-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-block-start: 20px; }
.btn.nf-alt { background: var(--card); color: var(--primary); border: 1px solid var(--line); }
.btn.nf-alt:hover { background: var(--surface-mid); color: var(--primary); }
.nf-links { max-width: 720px; width: 100%; margin: 32px auto 0; }
.nf-links h2 { font-size: 1.05rem; margin-block-end: 14px; color: var(--ink-2); text-align: center; }
.nf-links ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.nf-links a { display: grid; gap: 4px; height: 100%; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: background var(--t-fast), transform var(--t-fast); }
.nf-links a strong { color: var(--primary); font-size: 1rem; }
.nf-links a span { color: var(--ink-2); font-size: .82rem; line-height: 1.6; }
.nf-links a:hover { background: var(--surface-mid); transform: translateY(-2px); }
@media (max-width: 640px) { .nf-links ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .nf-links ul { grid-template-columns: 1fr; } }
.nf-links a:focus-visible, .nf-cta a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* one unified filter control: tabs + quick filter in a single card */
.tabs-wrap.has-quick {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.tabs-wrap.has-quick .tabs { flex: 1 1 auto; min-width: 0; }
.tabs-wrap.has-quick .filter-wrap.quick { flex: 0 0 240px; max-width: 240px; margin: 0; }
@media (max-width: 640px) {
  .tabs-wrap.has-quick { flex-direction: column; align-items: stretch; gap: 8px; }
  .tabs-wrap.has-quick .filter-wrap.quick { order: -1; flex: none; max-width: none; }
}

.post-img { margin: 16px 0; }
.post-img img { display: block; max-width: 100%; height: auto; border-radius: var(--r-md); }
.post-img figcaption { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.7; color: var(--text); }
.post-img { max-width: 720px; }
.post-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { display: inline-block; margin: 2px 0 8px; font-size: .92rem; font-weight: 600; color: var(--primary, #4f46e5); text-decoration: none; }
.post-more:hover { text-decoration: underline; }

/* clear tap affordances: link-coloured underlined titles, button-style read-more, whole card tappable */
.post, .feed-row, .feed-feat { position: relative; cursor: pointer; transition: box-shadow .15s ease, transform .1s ease; }
.post h3 a, .feed-body h3 a, .feat-body h2 a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--primary-soft); text-underline-offset: 4px; }
.card-title { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--primary-soft); text-underline-offset: 4px; }
.post h3 a::after, .feed-body h3 a::after, .feat-body h2 a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.post-chips a, .post-foot, .feed-feat .btn, .post .post-more { position: relative; z-index: 1; }
.post-more { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 10px; padding: 8px 16px; min-height: 40px; font-size: .95rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; text-decoration: none; }
.post-more::after { content: '\2190'; font-weight: 700; }
:lang(en) .post-more::after, [dir="ltr"] .post-more::after { content: '\2192'; }
.post-more:hover, .post-more:focus-visible { background: var(--primary); color: #fff; text-decoration: none; }
@media (hover: hover) {
  .post:hover, .feed-row:hover { box-shadow: var(--shadow-lg); }
  .post:hover h3 a, .feed-row:hover h3 a, .feed-feat:hover h2 a { text-decoration-color: var(--primary); }
}
.post:active, .feed-row:active, .feed-feat:active { transform: scale(.99); }

/* animated logo (transparent WebP: 2s draw-in, 1s hold, loops forever) */
.brand .logo { background: none; box-shadow: none; border-radius: 0; }

/* ---------- stats band (count-up): full-bleed, episode art + violet overlay ---------- */
body { overflow-x: clip; }
.stats-band {
  position: relative; isolation: isolate; overflow: hidden;
  margin-block: 6px 28px; margin-inline: calc(50% - 50vw + var(--sbw, 0px) / 2); width: calc(100vw - var(--sbw, 0px));
  padding: clamp(30px, 6vw, 56px) 16px;
  background: #3b2f8f;
}
.band-art { position: absolute; inset: -8px; z-index: -2; display: flex; gap: 0; filter: blur(5px) saturate(.9); }
.band-art img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; }
.stats-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(40, 30, 120, .86), rgba(98, 54, 180, .8)); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 26px 10px; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; text-align: center; }
.stats li { display: flex; flex-direction: column; gap: 6px; }
.stats span { order: -1; color: #fff; font-size: clamp(1.15rem, 4.4vw, 1.45rem); font-weight: 500; letter-spacing: .02em; }
.stats b { font-family: 'Tajawal Num', 'Readex Pro', sans-serif; font-size: clamp(4rem, 19vw, 6.6rem); line-height: 1; color: #fff; font-weight: 500; letter-spacing: .02em; text-shadow: 0 2px 14px rgba(20, 10, 70, .25); }
/* Phone: one stat per row, full width (like ep-forum mobile); each count-up fires as its own row enters view. */
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; gap: 58px; max-width: 460px; }
  .stats li { gap: 12px; }
  .stats span { font-size: clamp(1.35rem, 5.6vw, 1.7rem); }
  .stats b { font-size: clamp(4.8rem, 27vw, 6.4rem); }
}

/* ---------- fade-up on scroll (JS adds .rv, so nothing is hidden without JS) ---------- */
.rv { opacity: 0; transform: translateY(var(--rv-y, 22px)); transition: opacity .5s ease-out, transform .5s cubic-bezier(.22, .8, .3, 1); transition-delay: var(--rv-d, 0ms); }
.rv.rv-in { opacity: 1; transform: none; }
/* ---------- hero (home): violet gradient, gold word, round play button, episode art behind ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-block: 0 28px; margin-inline: calc(50% - 50vw + var(--sbw, 0px) / 2); width: calc(100vw - var(--sbw, 0px)); border-radius: 0;
  --hdr: 72px; min-height: calc(100vh - var(--hdr)); min-height: calc(100dvh - var(--hdr));
  display: grid; align-content: center;
  background: linear-gradient(135deg, #1b2f5a 0%, #3b2f8f 55%, #6a43c4 100%);
  color: #fff;
}
.hero-art { position: absolute; inset: 0; z-index: -1; display: flex; gap: 6px; opacity: .3; filter: saturate(.9); transform: rotate(-4deg) scale(1.25); }
.hero-art img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; border-radius: 10px; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27, 47, 90, .15), rgba(27, 47, 90, .55)); }
.hero-in { padding: clamp(26px, 6vw, 56px) clamp(18px, 5vw, 44px); max-width: 640px; }
.hero h1 { margin: 0; font-size: clamp(1.55rem, 7.2vw, 3.2rem); line-height: 1.25; font-weight: 800; color: #fff; }
.hero .gold { color: #e9c46a; }
.hero-tag { margin: 6px 0 0; font-size: 1.1rem; font-weight: 700; color: #f1ecff; }
.hero-sub { margin: 10px 0 0; color: #ddd8f7; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 20px; }
.hero-play { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.hero-play:hover { color: #fff; }
.play-ico { position: relative; width: 54px; height: 54px; border-radius: 50%; background: #c8a45e; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); flex: none; }
.play-ico svg { margin-inline-start: -3px; transform: scaleX(-1); }
.play-ico::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(233, 196, 106, .6); animation: playpulse 2.2s ease-out 3; }
@keyframes playpulse { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.hero-play:hover .play-ico { background: #b8934d; }
.btn-gold { display: inline-block; background: #e9c46a; color: #2a2150; font-weight: 800; padding: 11px 22px; border-radius: 6px; text-decoration: none; transform: skewX(-6deg); box-shadow: 0 4px 12px rgba(0, 0, 0, .22); }
.btn-gold:hover { background: #f1d283; color: #2a2150; }

/* ---------- preloader: light overlay, violet/gold bouncing dots, fades out on ready ---------- */
.preloader { position: fixed; inset: 0; z-index: 9999; background: #faf8ff; display: grid; place-items: center; transition: opacity .35s ease, visibility .35s ease; animation: pre-auto .35s ease 1.6s forwards; }
.preloader.pre-out { opacity: 0; visibility: hidden; }
.pre-dots { display: flex; gap: 12px; }
.pre-dots i { width: 13px; height: 13px; border-radius: 50%; background: #6d4bd8; animation: pre-bounce .65s cubic-bezier(.4, 0, .3, 1) infinite alternate; }
.pre-dots i:nth-child(2) { background: #e9c46a; animation-delay: .16s; }
.pre-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes pre-bounce { from { transform: translateY(6px); opacity: .55; } to { transform: translateY(-10px); opacity: 1; } }
@keyframes pre-auto { to { opacity: 0; visibility: hidden; } }
@media (max-width: 900px) { .hero:not(.nf) { --hdr: 142px; } }

/* The hero starts on a fixed delay (about when the preloader begins to fade), so it never depends on JS to un-pause. */
/* ---------- hero entrance: copied from the reference site (animate.css bounceInDown / bounceIn, 1.25s). Text block and CTA row each animate as ONE unit, together, once. ---------- */
@keyframes bounce-in-down {
  60%, 75%, 90%, 0%, 100% { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
  0% { opacity: 0; transform: translate3d(0, -3000px, 0); }
  60% { opacity: 1; transform: translate3d(0, 25px, 0); }
  75% { transform: translate3d(0, -10px, 0); }
  90% { transform: translate3d(0, 5px, 0); }
  100% { transform: none; }
}
@keyframes bounce-in {
  20%, 40%, 60%, 80%, 0%, 100% { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
  0% { opacity: 0; transform: scale3d(.3, .3, .3); }
  20% { transform: scale3d(1.1, 1.1, 1.1); }
  40% { transform: scale3d(.9, .9, .9); }
  60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
  80% { transform: scale3d(.97, .97, .97); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}
.hero:not(.nf) .hero-text { animation: bounce-in-down 1.25s .45s both; }
.hero:not(.nf) .hero-cta { animation: bounce-in 1.25s .45s both; }

/* Install help page: one real screenshot, kept small and light. */
.install-shot { margin: 18px 0; }
.install-shot img { display: block; width: 100%; max-width: 218px; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.install-shot figcaption { margin-top: 8px; color: var(--ink-2); font-size: .9rem; }

.install-shot.install-wide img { max-width: 360px; }
#android, #iphone { scroll-margin-top: 80px; }
.install-steps { list-style: decimal; padding-inline-start: 1.6em; margin: 12px 0; }
.install-steps > li { margin: 0 0 14px; padding-inline-start: .3em; }
.install-steps > li::marker { font-weight: 700; color: var(--ink-2); }
.hero h1 .hero-bar { opacity: .7; margin: 0 .15em; font-weight: 400; }
.dots-ic { display: inline-block; vertical-align: -4px; margin: 0 2px; padding: 1px 6px; border: 1px solid var(--line, #d8d3ea); border-radius: 8px; background: var(--card, #fff); color: var(--ink, #12344e); box-sizing: content-box; }

.plat-h{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
