/* Apka Sathi storefront ? navy + teal, human-crafted academy */

:root {
  --navy: #0f172a;
  --navy-hover: #020617;
  --ink: #1e293b;
  --black: #0b1220;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f6;
  --teal: #14b8a6;
  --teal-d: #0f766e;
  --teal-soft: #ccfbf1;
  --mint: #d1fae5;
  --wash: #f8fafc;
  --surface: #ffffff;
  --card: #f1f5f9;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --ok: #166534;
  --ok-bg: #dcfce7;
  --white: #fff;
  --max: 1680px;
  --max-wide: 1680px;
  --gutter: clamp(20px, 3.2vw, 48px);
  --radius: 8px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --font-display: Outfit, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 500;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
#main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal-d); }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }

.container { width: min(var(--max), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.container-wide { width: min(var(--max-wide), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
[x-cloak] { display: none !important; }

/* Typography */
h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--black);
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.05rem; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 36rem; margin-top: var(--space-3); line-height: 1.65; }
.meta, .fine, .sub, .trial, .plan-desc { color: var(--muted); font-size: 0.875rem; }
.section-kicker, .eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-d);
  margin-bottom: var(--space-2);
}
.text-link { color: var(--teal-d); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header.scrolled { box-shadow: none; border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-3);
  width: min(var(--max-wide), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
  line-height: 0;
}
.brand:hover { color: var(--black); }
.brand img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  background: transparent;
}
.brand span { display: none; }
.header-search {
  display: flex;
  flex: 1;
  max-width: 360px;
  height: 38px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.header-search input,
.catalog-search input,
.mobile-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 12px;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
}
.header-search button,
.catalog-search button,
.mobile-search button {
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 0 14px;
  font-weight: 600;
  font-size: 0.8rem;
}
.header-search button:hover,
.catalog-search button:hover { background: var(--navy-hover); }
.mobile-search {
  display: none;
  max-width: none;
  margin: 0 auto 12px;
  width: min(var(--max-wide), calc(100% - (var(--gutter) * 2)));
  height: 40px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.nav a {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
}
.nav a:hover { color: var(--teal-d); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }
.nav form { margin: 0; display: flex; align-items: center; }
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 9px;
  background: var(--navy);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 0.9rem;
  padding: 10px 18px;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.btn:hover { transform: none; text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-hover); color: #fff; border-color: var(--navy-hover); }
.btn-teal { background: var(--teal); color: #042f2e; border-color: var(--teal); }
.btn-teal:hover { background: #2dd4bf; color: #042f2e; }
.btn-ghost, .btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover, .btn-secondary:hover {
  border-color: #cbd5e1;
  background: var(--wash);
  color: var(--ink);
}
.btn-danger {
  background: transparent;
  border-color: #fecaca;
  color: var(--danger);
}
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-lg { padding: 12px 22px; font-size: 0.95rem; }
.btn-sm { padding: 7px 12px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.875rem;
  border-radius: 0;
  min-height: 0;
}
.btn-link:hover { color: var(--teal-d); text-decoration: underline; }
.nav .btn-link { color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Account menu */
.account-menu { position: relative; }
.account-face {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius);
  cursor: pointer;
}
.account-face:hover { border-color: #cbd5e1; }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.account-name { font-weight: 650; font-size: 0.85rem; color: var(--ink); }
.account-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 70;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.account-drop-name { margin: 4px 8px 0; font-weight: 700; color: var(--black); font-size: 0.9rem; }
.account-drop-meta { margin: 2px 8px 8px; color: var(--muted); font-size: 12px; }
.account-drop a,
.account-drop button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px;
  border: 0;
  background: 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
}
.account-drop a i { width: 16px; color: var(--muted); font-size: 0.8rem; text-align: center; }
.account-drop a:hover,
.account-drop button:hover { background: var(--wash); color: var(--navy); }

/* Toasts */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  opacity: 0;
  transition: 0.25s;
  z-index: 80;
  pointer-events: none;
  font-weight: 600;
  font-size: 0.875rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-ok,
.toast.toast-err {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 0;
  left: auto;
  bottom: auto;
  text-align: center;
  font-weight: 650;
}
.toast-ok { background: var(--mint); color: var(--teal-d); }
.toast-err { background: var(--danger-bg); color: var(--danger); }

/* Forms */
.form { display: grid; gap: 12px; }
.form label,
.auth-card label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.form input,
.form textarea,
.auth-card input,
.auth-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.form input:focus,
.form textarea:focus,
.auth-card input:focus,
.auth-card textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  border-color: var(--teal-d);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 12px 0 4px;
  border: 1px solid #fecaca;
}
.note { font-size: 0.85rem; color: var(--muted); }

/* Empty */
.empty {
  grid-column: 1 / -1;
  padding: 28px 24px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty h2 { margin-bottom: 6px; }
.empty p { margin-bottom: 14px; }
.learn-empty { padding: 40px 28px; text-align: left; }

/* Page hero */
.page-hero {
  padding: 36px 0 28px;
  background: var(--wash);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { margin: 0; }
.page-hero p { color: var(--muted); max-width: 40rem; margin-top: 8px; font-size: 0.95rem; }
.page-hero .meta { margin-top: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); }

/* ??? Marketing home ??? */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 72%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 38rem; }
.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  font-weight: 700;
  max-width: 16ch;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.hero .lead {
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 34rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}
.hero-trust li {
  list-style: none;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--black);
  font-weight: 700;
}
.hero-stats span { color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.hero-aside { min-width: 0; }
.hero-feature {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.hero-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  color: inherit;
  text-decoration: none;
}
.hero-feature-media { position: relative; background: var(--card); }
.hero-feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-feature-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
}
.hero-aside-body { padding: 18px 20px 20px; }
.hero-aside-body .cat {
  margin: 0 0 6px;
  color: var(--teal-d);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-aside-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.25;
}
.hero-aside-body p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.5;
}
.hero-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}
a.hero-feature:hover .hero-feature-link { color: var(--teal-d); }

.section { padding: 64px 0; }
.section-muted { background: var(--wash); border-block: 1px solid var(--line-soft); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head-stack { align-items: flex-start; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-intro { max-width: 36rem; color: var(--muted); margin: 10px 0 0; font-size: 1rem; line-height: 1.65; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  min-height: 100%;
}
.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-d);
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.benefit h3 { margin: 0 0 8px; font-size: 1.02rem; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.feature-list { display: grid; gap: 20px; margin-top: 8px; }
.feature-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.feature-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-d);
  font-size: 0.9rem;
  padding-top: 2px;
}
.feature-item h3 { margin: 0 0 4px; font-size: 1rem; }
.feature-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.step {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-height: 0;
}
.step em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-d);
}
.step h3 { font-size: 1rem; margin: 10px 0 8px; line-height: 1.3; }
.step p { color: var(--muted); font-size: 0.88rem; margin: 0; line-height: 1.55; }

/* Course grid */
.library { padding: 40px 0; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}
.course-card { color: inherit; text-decoration: none; min-width: 0; }
.course-card:hover { text-decoration: none; color: inherit; }
.course-card:hover .course-body h3 { color: var(--teal-d); }
.course-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.thumb-fallback.large { min-height: 200px; border-radius: var(--radius); }
.course-body { padding: 12px 2px 0; }
.course-body .cat {
  margin: 0 0 4px;
  color: var(--teal-d);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.course-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 4px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-body .meta { margin: 0; font-size: 0.8rem; }
.later-meta { display: inline-flex; align-items: center; gap: 5px; }

.cat-block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.cat-block-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 14px;
  color: var(--black);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.cat-card:hover {
  text-decoration: none;
  border-color: var(--navy);
  color: inherit;
}
.cat-card strong { display: block; font-size: 0.92rem; color: var(--black); }
.cat-card span { display: block; color: var(--muted); margin-top: 4px; font-size: 0.8rem; }

/* Chips / filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}
.chip:hover { text-decoration: none; border-color: #cbd5e1; color: var(--ink); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.on:hover { color: #fff; }

.catalog-search {
  display: flex;
  max-width: 420px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}

/* Pricing */
.pricing {
  padding: 72px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.price-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}
.price-copy h2 { max-width: 14ch; }
.price-copy .checks { margin-top: 22px; }
.price-card {
  border-radius: 14px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  max-width: none;
}
.price-card .tag {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-d);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.member-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 14px 0 8px;
  color: var(--black);
  font-weight: 700;
}
.price-card .amt,
.price {
  font-family: var(--font-display);
  font-size: 2.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 12px 0 8px;
  color: var(--black);
  font-weight: 700;
}
.price-card .amt small,
.price small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}
.trial-line {
  display: inline-block;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.price-card > p { color: var(--muted); font-size: 0.9rem; }
.price-card ul { margin: 18px 0 22px; }
.price-card li {
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--ink);
}
.price-card li:last-child { border-bottom: 0; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23042f2e' stroke-width='2' d='M2 6l3 3 5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.checks { margin: 16px 0; }
.checks li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.9rem;
  color: var(--ink);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
}

/* Testimonials */
.feedback { padding: 72px 0; background: var(--wash); border-block: 1px solid var(--line-soft); }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 0.8;
  color: var(--teal);
  margin-bottom: 8px;
  font-weight: 700;
}
.quote-card p {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}
.person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.person img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.person strong { display: block; font-size: 0.875rem; }
.person span { color: var(--muted); font-size: 0.78rem; }

/* FAQ */
.faq { padding: 80px 0; }
.faq-pro {
  background:
    linear-gradient(180deg, #f8fafc 0%, #fff 42%, #fff 100%);
  border-top: 1px solid var(--line-soft);
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: 96px;
}
.faq-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.faq-intro .section-intro {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.faq-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.faq-topics li {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--teal-d);
  background: var(--teal-soft);
  border: 1px solid #99f6e4;
  padding: 6px 11px;
  border-radius: 999px;
}
.faq-support {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}
.faq-support-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-support-copy strong {
  font-size: 0.95rem;
  color: var(--navy);
  font-family: var(--font-display);
}
.faq-support-copy span {
  font-size: 0.82rem;
  color: var(--muted);
}
.faq-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
}
.faq-mail:hover { color: var(--teal-d); }
.faq-mail i { color: var(--teal); }

.faq-acc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: #cbd5e1;
}
.faq-item.is-open {
  border-color: #99f6e4;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #fff 0%, #f0fdfa 100%);
}
.faq-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 18px 18px 16px;
  cursor: pointer;
  color: var(--navy);
  font-family: inherit;
}
.faq-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal-d);
  min-width: 28px;
}
.faq-q {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.faq-icon i {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-icon {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.faq-item.is-open .faq-icon i {
  transform: rotate(45deg);
}
.faq-ans {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.faq-item.is-open .faq-ans {
  grid-template-rows: 1fr;
}
.faq-ans-inner {
  overflow: hidden;
}
.faq-ans-inner p {
  margin: 0;
  padding: 0 18px 20px 58px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 62ch;
}

/* Legacy accordion (kept for older markup) */
.acc { max-width: none; margin-top: 0; }
.item { border-bottom: 1px solid var(--line); }
.item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 40px 18px 0;
  font-size: 1rem;
  font-weight: 650;
  position: relative;
  color: var(--black);
}
.item button::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.item.open button::after { content: "?"; color: var(--navy); border-color: var(--navy); }
.item .ans { display: none; padding: 0 40px 18px 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.item.open .ans { display: block; }
.faq-cta { margin-top: 32px; }
.faq-cta .kicker { margin-bottom: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .faq-intro { position: static; }
  .faq-ans-inner p { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-ans { transition: none; }
  .faq-icon, .faq-icon i { transition: none; }
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 52px 0;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 0 0 8px; }
.cta-band p { color: #94a3b8; margin: 0; font-size: 0.95rem; max-width: 36rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .btn-primary { background: var(--teal); color: #042f2e; border-color: var(--teal); }
.cta-band .btn-primary:hover { background: #2dd4bf; color: #042f2e; }
.cta-ghost {
  background: transparent;
  border-color: #334155;
  color: #fff;
}
.cta-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: #64748b;
  color: #fff;
}

/* Inner pages */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0 64px;
}
.prose p { color: var(--muted); margin-bottom: 14px; font-size: 1rem; line-height: 1.7; }
.frame {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 360px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.legal { max-width: 720px; padding: 8px 0 72px; }
.legal h2 { font-size: 1.1rem; margin: 24px 0 8px; line-height: 1.3; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; line-height: 1.7; }
.legal ul { padding-left: 18px; list-style: disc; }

/* Footer */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 48px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 32px;
}
.footer .brand { color: #fff; margin-bottom: 10px; }
.footer .brand:hover { color: #fff; }
.footer .brand img {
  height: 64px;
  max-width: 220px;
  background: transparent;
}
.footer p { color: #64748b; font-size: 0.875rem; max-width: 28rem; line-height: 1.6; }
.footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.footer a {
  color: #94a3b8;
  display: block;
  margin: 8px 0;
  font-size: 0.875rem;
}
.footer a:hover { color: var(--teal); }
.legal-meta {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.legal-meta a { display: inline; margin: 0; }

/* Pagination */
.pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pager-meta { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.pager-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.pager-btn:hover { text-decoration: none; border-color: var(--navy); color: var(--ink); }
.pager-btn.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager-btn.is-off { opacity: 0.35; pointer-events: none; }

/* Course detail */
.course-layout { padding: 12px 0 64px; }
.lessons { margin: 0; padding: 0; }
.lessons li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.lessons p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.lessons span { color: var(--muted-2); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.buy-box { position: sticky; top: 84px; max-width: none; }
.buy-box img {
  border-radius: var(--radius);
  margin-bottom: 14px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

/* Browse / rails */
.spotlight {
  padding: 48px 0 36px;
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-soft);
}
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.spotlight h1 { max-width: 18ch; }
.spotlight-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  background: var(--card);
}
.spotlight-media img {
  width: 100%;
  border-radius: 0;
  max-height: none;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 0;
}
.spotlight-media .thumb-fallback.large {
  min-height: 280px;
  border-radius: 0;
}
.join-strip { background: var(--navy); color: #fff; }
.join-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  flex-wrap: wrap;
  width: min(var(--max-wide), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}
.join-strip strong { display: block; font-size: 0.95rem; }
.join-strip p { margin: 4px 0 0; color: #94a3b8; font-size: 0.85rem; }
.join-strip .btn-primary {
  background: var(--teal);
  color: #042f2e;
  border-color: var(--teal);
}
.rail { padding: 28px 0 8px; }
.rail:last-of-type { padding-bottom: 48px; }
.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}
.rail-head h2 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); margin: 0; font-weight: 700; letter-spacing: -0.03em; }
.rail-head a { font-weight: 700; font-size: 0.875rem; color: var(--teal-d); }
.rail-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track .course-card {
  flex: 0 0 290px;
  width: 290px;
  min-width: 290px;
  max-width: 290px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.rail-track .empty { flex: 1; }

/* Auth / checkout / account */
.login-split {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  width: min(960px, calc(100% - (var(--gutter) * 2)));
  margin: 48px auto 80px;
  align-items: start;
}
.login-split .lead { margin-top: 12px; }

/* Login page ? premium OTP flow */
.page-login .header-search { display: none; }
.login-page {
  position: relative;
  padding: 28px 0 72px;
  min-height: calc(100vh - 180px);
  background:
    radial-gradient(ellipse 80% 55% at 12% 0%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(15, 23, 42, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #fff 55%, #fff 100%);
}
.login-shell {
  width: min(1100px, calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.login-brand {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  color: #e2e8f0;
  background:
    linear-gradient(155deg, #0f172a 0%, #0f172a 42%, #134e4a 100%);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.login-brand::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 70%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.22), transparent 65%);
  pointer-events: none;
}
.login-brand-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.login-brand-mark:hover { color: #fff; text-decoration: none; }
.login-brand-mark img {
  width: auto;
  height: 64px;
  max-width: 220px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}
.login-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
}
.login-brand h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 14ch;
}
.login-lead {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 36ch;
}
.login-points {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.login-points li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.login-points i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(94, 234, 212, 0.12);
  color: #5eead4;
  font-size: 0.9rem;
}
.login-points strong {
  display: block;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.login-points span {
  display: block;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.45;
}
.login-trust {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 28px;
  color: #64748b;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-trust i { color: #5eead4; }

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}
.login-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.login-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted-2);
}
.login-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff;
  color: var(--muted);
}
.login-step.is-current { color: var(--navy); }
.login-step.is-current .login-step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.login-step.is-done { color: var(--teal-d); }
.login-step.is-done .login-step-num {
  background: var(--teal-soft);
  border-color: #99f6e4;
  color: var(--teal-d);
}
.login-step-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 72px;
}

.login-card {
  width: 100%;
  max-width: none;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}
.login-card-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.login-card-head p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.login-form label:first-of-type { margin-top: 8px; }
.login-submit { margin-top: 20px; }
.login-resend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--muted);
}
.login-foot {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.auth-page {
  padding: 40px 0 80px;
  display: grid;
  justify-items: center;
}
.auth-card {
  width: min(400px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-card.wide { width: min(460px, calc(100% - 24px)); }
.auth-card h2 { font-size: 1.2rem; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.pay-box {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 14px 0;
}
.pay-box p { color: var(--muted); font-size: 0.875rem; margin-bottom: 10px; }
.checkout-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--wash);
  color: var(--ink);
  border: 1px solid var(--line);
}
.checkout-status.is-wait { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.checkout-status.is-err { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 80px;
}
.account-grid .auth-card { width: auto; }
.ok { color: var(--ok); font-weight: 650; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand {
    min-height: 0;
    padding: 28px 24px;
  }
  .login-brand h1 { max-width: none; }
  .login-points { margin-top: 24px; }
  .login-trust { margin-top: 24px; padding-top: 20px; }
}

/* Learn */
.learn-resume { padding: 24px 0 0; }
.resume-card {
  display: grid;
  grid-template-columns: minmax(200px, 36%) 1fr;
  gap: 24px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  background: #fff;
}
.resume-card:hover { text-decoration: none; border-color: #cbd5e1; color: inherit; }
.resume-art { border-radius: var(--radius); overflow: hidden; background: var(--card); }
.resume-art img,
.resume-art .thumb-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  min-height: 0;
}
.resume-art .thumb-fallback.large { min-height: 0; border-radius: 0; }
.resume-copy .section-kicker { margin-bottom: 6px; }
.resume-copy h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin: 0 0 6px; }
.resume-copy p { color: var(--muted); margin: 0 0 14px; font-size: 0.9rem; }
.learn-shelf { padding: 24px 0 64px; }
.learn-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.learn-quiet { margin: 0; }
.learn-quiet button {
  border: 0;
  background: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.learn-quiet button:hover { color: var(--navy); }

/* Watch player */
.page-watch { background: #fff; }
.page-watch .header { background: #fff; }

.watch { padding: 10px 0 64px; background: #fff; }
.watch-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
}
.watch-crumb a {
  max-width: min(40ch, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.watch-crumb a:hover { color: var(--ink); }

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.watch-stage {
  position: relative;
  background: #0f0f0f;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  -webkit-touch-callout: none;
  user-select: none;
}
.watch-media {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  object-fit: contain;
}
.watch-media::-webkit-media-controls-enclosure { overflow: hidden; }
.watch-empty, .watch-vacant {
  min-height: 240px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  color: var(--muted);
  padding: 40px 24px;
}
.watch-empty { height: 100%; color: #94a3b8; }
.watch-empty strong { color: #fff; font-size: 1rem; font-weight: 700; }
.watch-vacant { padding: 72px 0; }
.watch-vacant strong { color: var(--black); font-size: 1.1rem; display: block; margin-bottom: 6px; }
.watch-vacant p { margin: 0 0 16px; }

.watch-stage:fullscreen,
.watch-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  border-radius: 0;
  background: #000;
}
.watch-stage:fullscreen .watch-media,
.watch-stage:-webkit-full-screen .watch-media {
  width: 100%;
  height: 100%;
}

.watch.is-theater .watch-crumb { margin-bottom: 10px; }
.watch.is-theater .watch-shell { padding: 0; }
.watch.is-theater .watch-grid {
  width: min(1680px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.watch.is-theater .watch-stage {
  border-radius: 16px;
  max-height: min(84vh, calc((100vw - 32px) * 9 / 16));
}
.watch.is-theater .watch-rail {
  position: static;
  max-height: none;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.watch-info { padding: 16px 0 0; }
.watch-info h1 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 6px;
  font-weight: 700;
}
.watch-line {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}
.watch-line span { margin: 0 7px; color: #cbd5e1; font-weight: 500; }

.watch-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2px 0 12px;
  border-bottom: 1px solid var(--line-soft);
}
.watch-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.watch-acts form { margin: 0; }
.watch-ico,
.watch-auto {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
}
.watch-ico i { font-size: 0.9rem; }
.watch-ico:hover,
.watch-auto:hover { background: #f1f5f9; color: var(--navy); }
.watch-ico:focus-visible,
.watch-auto:focus-visible { outline: 2px solid var(--teal-d); outline-offset: 2px; }
.watch-ico.is-on { color: var(--navy); }
.watch-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.watch-tip em { font-style: normal; opacity: 0.55; font-size: 10px; }
.watch-ico:hover .watch-tip,
.watch-ico:focus-visible .watch-tip,
.watch-auto:hover .watch-tip { opacity: 1; }

.watch-auto { width: auto; padding: 0 8px; cursor: pointer; }
.watch-knob {
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: #d6dee8;
  position: relative;
  transition: background 0.15s ease;
}
.watch-knob::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.watch-auto:has(input:checked) .watch-knob { background: var(--navy); }
.watch-auto:has(input:checked) .watch-knob::after { transform: translateX(14px); }

.watch-rate { width: auto; min-width: 36px; padding: 0 8px; }
.watch-rate b {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}
.watch-fly { position: relative; }
.watch-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  min-width: 112px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.watch-pop button {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: left;
}
.watch-pop button:hover,
.watch-pop button.is-on { background: #f8fafc; }

.watch-desc-box { margin-top: 14px; max-width: 42rem; }
.watch-desc {
  color: #64748b;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.watch-desc.is-open { display: block; overflow: visible; -webkit-line-clamp: unset; }
.watch-more {
  margin-top: 4px;
  border: 0;
  background: 0;
  padding: 0;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.watch-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.watch-nav a,
.watch-nav span { font-size: 0.84rem; font-weight: 650; color: var(--ink); }
.watch-nav a:hover { color: var(--teal-d); }
.watch-nav .is-next { color: var(--navy); }
.watch-nav .is-off { color: #cbd5e1; }

.watch-protect {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
}
.watch-lessons-btn { display: none; }

.watch-notes { margin-top: 24px; }
.watch-notes-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-soft);
}
.watch-notes-head h2 {
  font-size: 0.9rem;
  margin: 0;
  font-family: var(--font-body);
  letter-spacing: 0;
  font-weight: 700;
}
.watch-notes-head span { font-size: 0.75rem; font-weight: 600; color: #94a3b8; }
.watch-pdf { width: 100%; min-height: 520px; border: 0; background: #f8fafc; }

.watch-rail {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 88px);
}
.watch-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 0 10px;
}
.watch-rail-head h2 {
  font-size: 0.9rem;
  margin: 0 0 2px;
  font-family: var(--font-body);
  letter-spacing: 0;
  font-weight: 700;
}
.watch-rail-head p { margin: 0; color: #94a3b8; font-size: 0.75rem; font-weight: 600; }
.watch-rail-close {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: 0;
  color: var(--muted);
  padding: 0;
}
.watch-rail-progress { height: 2px; background: #eef2f6; }
.watch-rail-progress i { display: block; height: 100%; background: var(--navy); }
.watch-list { display: flex; flex-direction: column; overflow: auto; padding: 8px 0 0; }

.watch-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 6px;
  color: inherit;
  border-radius: 6px;
}
.watch-item:hover { background: #f8fafc; text-decoration: none; }
.watch-item.is-on { background: transparent; }
.watch-item-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
  border-radius: 10px;
}
.watch-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.watch-item-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
.watch-item-time {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
}
.watch-item-copy em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.watch-item-copy strong {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--black);
}
.watch-item.is-on .watch-item-copy strong { color: var(--navy); }
.watch-now {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal-d);
}
.watch-veil { display: none; }

/* Responsive */
@media (max-width: 1200px) {
  .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .container,
  .container-wide,
  .header-inner,
  .join-strip-inner,
  .mobile-search { width: min(var(--max-wide), calc(100% - 32px)); }
  .header-search { display: none; }
  .mobile-search { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn, .nav .btn-link { padding: 10px 4px; }
  .menu-toggle { display: block; }
  .hero-grid,
  .feature-split,
  .step-list,
  .quote-grid,
  .spotlight-grid,
  .login-split,
  .login-shell,
  .account-grid,
  .split,
  .footer-grid,
  .price-layout,
  .faq-layout { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .resume-card { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .watch-grid { grid-template-columns: 1fr; }
  .watch-lessons-btn { display: inline-flex; }
  [data-watch-theater] { display: none; }
  .watch-rail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(360px, 92vw);
    max-height: none;
    padding: 16px 14px;
    background: #fff;
    transform: translateX(105%);
    transition: transform 0.2s ease;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.1);
  }
  .watch-rail.is-open { transform: translateX(0); }
  .watch-rail-close { display: block; }
  .watch-veil {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(15, 23, 42, 0.32);
  }
  .watch.is-theater .watch-grid { width: calc(100% - 24px); }
  .hero { padding: 40px 0 36px; }
  .hero::before { display: none; }
  .section, .pricing, .feedback, .faq { padding: 48px 0; }
}

@media (max-width: 640px) {
  .pager-bar { flex-direction: column; align-items: flex-start; }
  .course-grid,
  .cat-grid,
  .benefit-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero h1 { max-width: none; }
  .account-name { display: none; }
  .brand img {
    height: 46px;
    max-width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ??? Advanced polish layer ??? */
body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(20, 184, 166, 0.07), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 23, 42, 0.05), transparent 50%),
    var(--surface);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.18);
  margin-bottom: 14px;
}

.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-glow {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(20, 184, 166, 0.15);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(15, 23, 42, 0.06), transparent 50%),
    linear-gradient(180deg, #f1f5f9 0%, #ffffff 68%);
}
.hero::before { width: 5px; background: linear-gradient(180deg, var(--teal), #0f766e 60%, transparent); }
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 8%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: heroPulse 7s ease-in-out infinite;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--teal-d), #0f172a 55%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.hero-trust li i { color: var(--teal-d); font-size: 0.75rem; }
.hero-feature {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.12),
    0 2px 0 rgba(255,255,255,0.8) inset;
}
.hero-feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(20,184,166,0.45), transparent 40%, rgba(15,23,42,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-feature-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
a.hero-feature:hover .hero-feature-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.hero-feature-media img { transition: transform 0.45s ease; }
a.hero-feature:hover .hero-feature-media img { transform: scale(1.04); }

.benefit {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.benefit::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.benefit:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}
.benefit:hover::after { opacity: 1; }
.benefit-icon {
  background: linear-gradient(145deg, #ccfbf1, #e0f2fe);
  box-shadow: 0 6px 14px rgba(20, 184, 166, 0.18);
}

.course-card {
  transition: transform 0.2s ease;
}
.course-card:hover { transform: translateY(-4px); }
.course-thumb {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.course-thumb img {
  transition: transform 0.45s ease;
}
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.75rem;
  opacity: 1;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}
.course-card:hover .course-play {
  background: var(--teal-d);
  transform: translate(-50%, -50%) scale(1.06);
}
.course-thumb:has(.video-poster) .course-play { display: none; }
.course-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 6px;
}
.course-chip-free { background: rgba(15, 118, 110, 0.92); }

.step {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.step:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.price-card-pro {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, rgba(20,184,166,0.55), rgba(15,23,42,0.2), rgba(20,184,166,0.25)) border-box;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
}
.price-card-pro::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.18), transparent 70%);
  pointer-events: none;
}

.quote-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}
.quote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.spotlight {
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(20,184,166,0.1), transparent 55%),
    linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
}
.spotlight-media {
  position: relative;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}
.spotlight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,23,42,0.18));
  pointer-events: none;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(20,184,166,0.2), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #0f172a 50%, #134e4a 140%);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.join-strip {
  background: linear-gradient(90deg, #0b1220, #0f172a 55%, #115e59);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.cat-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-delay { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.nav a[aria-current="page"] {
  position: relative;
  color: var(--navy);
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

@media (max-width: 980px) {
  .hero-glow { display: none; }
  .hero-grid-lines { opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow { animation: none; }
}

/* ??? Creative pro layer ??? */
.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20,184,166,0.2);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(20,184,166,0.18); }
  50% { box-shadow: 0 0 0 6px rgba(20,184,166,0.08); }
}
.kicker-on-dark {
  background: rgba(20,184,166,0.15);
  border-color: rgba(20,184,166,0.35);
  color: #5eead4;
}

.hero-pro { padding-bottom: 28px; }
.hero-pro .hero-grid { align-items: end; gap: 40px; }
.hero-pro h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.4rem);
  max-width: 15ch;
  line-height: 1.05;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-proof p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.hero-proof strong { color: var(--black); }
.hero-avatars { display: flex; }
.hero-avatars img {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #fff; object-fit: cover;
  margin-left: -10px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.12);
}
.hero-avatars img:first-child { margin-left: 0; }

.hero-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.hero-main-card {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(15,23,42,0.16);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease;
}
a.hero-main-card:hover { transform: translateY(-4px); color: inherit; }
.hero-main-media { position: relative; }
.hero-main-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.15), transparent 40%, rgba(15,23,42,0.45));
  display: grid; place-items: center;
}
.hero-live {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font-size: 0.7rem; font-weight: 750;
  padding: 6px 10px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-live i { color: #ef4444; font-size: 0.45rem; animation: pulseDot 1.5s ease infinite; }
.hero-main-meta { padding: 16px 18px 18px; }
.hero-main-meta .cat {
  display: block; margin-bottom: 4px;
  color: var(--teal-d); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-main-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: -0.02em;
  color: var(--black); line-height: 1.25;
}
.hero-stack {
  position: absolute;
  inset: 10% 0 auto auto;
  width: 46%;
  height: 70%;
  pointer-events: none;
}
.hero-stack-card {
  position: absolute;
  right: calc(var(--i) * -18px);
  top: calc(var(--i) * 28px + 24px);
  width: 78%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #fff;
  box-shadow: 0 16px 36px rgba(15,23,42,0.18);
  transform: rotate(calc(4deg + var(--i) * 3deg));
  opacity: 0.92;
  background: var(--navy);
}
.hero-stack-card img,
.hero-stack-card .thumb-fallback {
  width: 100%; height: 100%; object-fit: cover;
}

.topic-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(226,232,240,0.9);
}
.topic-rail-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.topic-rail-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.topic-rail-track::-webkit-scrollbar { display: none; }
.topic-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.topic-chip em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--wash);
  padding: 2px 7px;
  border-radius: 999px;
}
.topic-chip:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
}
.topic-chip-all {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.topic-chip-all:hover { color: #fff; background: var(--navy-hover); }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.bento-item {
  background: linear-gradient(165deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15,23,42,0.08);
}
.bento-lg { grid-row: span 2; display: flex; flex-direction: column; }
.bento-wide {
  grid-column: 2 / -1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.bento-item h3 { margin: 0 0 8px; font-size: 1.15rem; }
.bento-item p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.bento-points {
  margin-top: auto;
  padding-top: 20px;
  display: grid;
  gap: 8px;
}
.bento-points li {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.bento-points li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}

/* Mixed library */
.library-mix {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 22px;
  align-items: start;
}
.feature-course {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(15,23,42,0.07);
  transition: transform 0.2s ease;
}
.feature-course:hover { transform: translateY(-3px); color: inherit; }
.feature-course-media { position: relative; }
.feature-course-media img,
.feature-course-media .thumb-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.feature-course-body { padding: 18px 18px 20px; }
.feature-course-body h3 {
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.feature-course-body p { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; }
.feature-course-body .meta { margin-bottom: 14px; }
.course-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Journey */
.journey {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 8px 0 0;
  position: relative;
}
.journey::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), #94a3b8 50%, var(--teal));
  opacity: 0.35;
}
.journey-step {
  position: relative;
  padding: 0 12px 0 0;
  display: grid;
  gap: 14px;
  justify-items: start;
}
.journey-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(20,184,166,0.35);
  z-index: 1;
}
.journey-step h3 { margin: 0 0 4px; font-size: 1rem; }
.journey-step p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Dark membership */
.membership-panel {
  padding: 72px 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(20,184,166,0.18), transparent 50%),
    linear-gradient(145deg, #0b1220 0%, #0f172a 55%, #134e4a 160%);
  color: #e2e8f0;
}
.membership-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.membership-copy h2 {
  color: #fff;
  max-width: 14ch;
  margin: 0 0 14px;
}
.membership-copy > p {
  color: #94a3b8;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.65;
}
.membership-checks { margin-top: 22px; display: grid; gap: 12px; }
.membership-checks li {
  display: flex; align-items: center; gap: 10px;
  color: #cbd5e1; font-size: 0.95rem; font-weight: 600;
}
.membership-checks i {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(20,184,166,0.2); color: #5eead4; font-size: 0.65rem;
}
.membership-card {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.28);
}
.membership-card-top { margin-bottom: 8px; }
.membership-card .amt { margin: 12px 0; }
.membership-card ul { margin: 16px 0 22px; }
.membership-card li {
  padding: 8px 0 8px 26px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.membership-card li:last-child { border-bottom: 0; }
.membership-card li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23042f2e' stroke-width='2' d='M2 6l3 3 5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.membership-login { margin-top: 14px; text-align: center; }

/* Stories */
.feedback-pro { padding: 72px 0; }
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 16px;
}
.story-lead {
  background: linear-gradient(160deg, #0f172a, #134e4a);
  color: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.story-lead .quote-mark { color: #5eead4; }
.story-lead p {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  margin: 0 0 28px;
  font-weight: 550;
  color: #f8fafc;
  flex: 1;
}
.story-lead .person strong { color: #fff; }
.story-lead .person span { color: #94a3b8; }
.story-side { display: grid; gap: 16px; }

/* Floating join bar */
.float-join {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(120%);
  z-index: 70;
  width: min(560px, calc(100% - 24px));
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.float-join.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.float-join-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px 12px 18px;
  background: rgba(15,23,42,0.94);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}
.float-join-inner strong { display: block; font-size: 0.9rem; }
.float-join-inner span { color: #94a3b8; font-size: 0.78rem; }
.float-join .btn-primary {
  background: var(--teal);
  color: #042f2e;
  border-color: var(--teal);
  box-shadow: none;
}

@media (max-width: 980px) {
  .bento,
  .library-mix,
  .membership-grid,
  .story-grid,
  .journey { grid-template-columns: 1fr; }
  .bento-lg { grid-row: auto; }
  .bento-wide { grid-column: auto; }
  .journey::before { display: none; }
  .hero-stack { display: none; }
  .hero-stage { min-height: 0; }
  .course-grid-compact { grid-template-columns: 1fr 1fr; }
  .topic-rail { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .course-grid-compact { grid-template-columns: 1fr; }
  .float-join-inner { flex-direction: column; align-items: stretch; text-align: center; }
}

.header-search { position: relative; }
.header-search .search-ico {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 0.78rem;
  pointer-events: none;
}
.header-search input { padding-left: 34px; }

/* ??? High-traffic UX polish ??? */
.section,
.membership-panel,
.feedback,
.faq,
.library,
.rail {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}
.hero, .hero-pro { content-visibility: visible; }

.btn.is-busy,
.btn[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
  cursor: wait;
}

.phone-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 52px;
}
.phone-prefix {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--wash);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.phone-field input,
.phone-field input[type="text"],
.phone-field input[type="tel"],
.login-modal .phone-field input,
.login-form .phone-field input,
.auth-card .phone-field input {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: #fff !important;
  padding: 14px 16px !important;
  font-size: 1.05rem !important;
  font-weight: 650;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.phone-field:focus-within {
  border-color: var(--teal-d);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}
.phone-field input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
.field-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.optional { color: var(--muted); font-weight: 500; }
.otp-input {
  letter-spacing: 0.42em;
  font-size: 1.35rem !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding-left: 18px !important;
  min-height: 52px;
  border-radius: 10px !important;
}
.auth-card-pro {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.page-login .auth-card-pro {
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.page-hero-compact { padding: 28px 0 20px; }
.catalog-search-pro { position: relative; max-width: 520px; }
.catalog-search-pro .search-ico {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}
.catalog-search-pro input { padding-left: 38px; }
.filter-status {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.library-catalog { padding-top: 8px; }
.chips-sticky {
  position: sticky;
  top: 60px;
  z-index: 20;
  padding: 10px 0 14px;
  background: linear-gradient(180deg, #fff 70%, rgba(255,255,255,0));
  margin-bottom: 8px;
}

.float-join-actions { display: flex; align-items: center; gap: 6px; }
.float-join-close {
  width: 32px; height: 32px;
  border: 0; border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
}
.float-join-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

.toast.toast-ok,
.toast.toast-err {
  position: sticky;
  top: 60px;
  z-index: 55;
  animation: toastIn 0.25s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.chip:focus-visible,
.topic-chip:focus-visible {
  outline: 2px solid var(--teal-d);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .chips-sticky { top: 0; }
  body::before { opacity: 0.02; }
  .hero-glow { display: none !important; }
}

/* ??? Hero fix: balanced, no empty top, no messy stack ??? */
.hero.hero-pro {
  padding: 36px 0 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
  overflow: visible;
}
.hero.hero-pro::before { display: none; }
.hero.hero-pro .hero-glow,
.hero.hero-pro .hero-grid-lines { display: none !important; }
.hero.hero-pro .hero-grid {
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.hero.hero-pro .hero-copy {
  max-width: none;
  padding-top: 0;
}
.hero.hero-pro h1 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  max-width: 16ch;
  margin: 0;
}
.hero.hero-pro .lead {
  margin-top: 14px;
  max-width: 36rem;
  font-size: 1.02rem;
}
.hero.hero-pro .hero-actions { margin-top: 22px; }
.hero.hero-pro .hero-proof {
  margin-top: 22px;
  padding-top: 18px;
}

.hero-stage {
  min-height: 0 !important;
  display: block;
  place-items: unset;
}
.hero-visual {
  display: grid;
  gap: 12px;
  width: 100%;
}
.hero-main-card {
  width: 100% !important;
  max-width: none;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}
.hero-main-media img {
  aspect-ratio: 16 / 10;
  display: block;
}
.hero-main-meta {
  padding: 14px 16px 16px;
}
.hero-main-meta strong {
  font-size: 1.1rem;
}
.hero-feature-play {
  opacity: 0;
}
a.hero-main-card:hover .hero-feature-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.hero-feature-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-mini-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.hero-mini-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-mini-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
.hero-mini:hover {
  background: var(--wash);
  color: inherit;
}
.hero-mini img,
.hero-mini .thumb-fallback {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.hero-mini .thumb-fallback {
  font-size: 0.9rem;
  place-items: center;
  display: grid;
}
.hero-mini strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--black);
}
.hero-mini em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.hero.hero-pro .topic-rail {
  margin-top: 28px;
  padding-top: 18px;
}

/* Kill old floating stack completely */
.hero-stack { display: none !important; }

@media (max-width: 980px) {
  .hero.hero-pro { padding: 24px 0 16px; }
  .hero.hero-pro .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero.hero-pro h1 { max-width: none; }
  .hero-mini-list { grid-template-columns: 1fr; }
}

/* ??? Hero v2: clean split redesign ??? */
.hero-v2 {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: min(560px, 72vh);
  padding-block: 48px;
}
.hero-v2-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(24px, 4vw, 56px);
  padding-block: 12px;
}
.hero-v2-eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-d);
}
.hero-v2 h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 12ch;
  color: var(--black);
  font-weight: 800;
}
.hero-v2-lead {
  margin: 18px 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}
.hero-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-v2-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.hero-v2-stats div { min-width: 0; }
.hero-v2-stats dt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
}
.hero-v2-stats dd {
  margin: 2px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-v2-media {
  display: flex;
  align-items: center;
}
.hero-v2-shot {
  position: relative;
  display: block;
  width: min(100%, 340px);
  margin-left: auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 9 / 16;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
  color: #fff;
  text-decoration: none;
}
.hero-v2-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
a.hero-v2-shot:hover { color: #fff; }
a.hero-v2-shot:hover img { transform: scale(1.04); }
.hero-v2-shot-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 56px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(11, 18, 32, 0.88));
  display: grid;
  gap: 4px;
}
.hero-v2-shot-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
}
.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 28% 18%, rgba(45, 212, 191, 0.42), transparent 34%),
    linear-gradient(165deg, #115e59 0%, #0f172a 68%);
}
.video-poster span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.hero-v2-shot .video-poster,
.explore-hero-media .video-poster,
.course-page-art .video-poster,
.about-figure .video-poster {
  padding-bottom: 28px;
}
.hero-v2-shot .video-poster span,
.explore-hero-media .video-poster span,
.course-page-art .video-poster span,
.about-figure .video-poster span {
  font-size: clamp(4rem, 7vw, 6rem);
}
.hero-v2-shot .video-poster { padding-bottom: 72px; }
.video-poster i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.95rem;
}
.about-figure { position: relative; }
.course-page-art { position: relative; }
.course-page-art .video-poster { min-height: 220px; position: relative; aspect-ratio: 16 / 9; }
.explore-hero-media:has(.video-poster) .explore-hero-play { display: none; }
.hero-v2-shot-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-v2-shot-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.hero-v2-topics {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding: 14px 0;
}
.hero-v2-topics .topic-rail {
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width: 980px) {
  .hero-v2-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 28px;
    gap: 24px;
  }
  .hero-v2-copy { padding-right: 0; }
  .hero-v2 h1 { max-width: none; }
  .hero-v2-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-v2-shot { aspect-ratio: 16 / 10; border-radius: 14px; }
}

/* ??? Topic running line (proper marquee) ??? */
.hero-v2-topics { display: none !important; }

.topic-ticker {
  border-top: 1px solid var(--line);
  background: #0f172a;
  color: #fff;
  padding: 18px 0 20px;
  overflow: hidden;
}
.topic-ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.topic-ticker-head span {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}
.topic-ticker-head a {
  font-size: 0.85rem;
  font-weight: 700;
  color: #5eead4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topic-ticker-head a:hover { color: #99f6e4; }

.topic-ticker-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.topic-ticker-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: topicRun 38s linear infinite;
}
.topic-ticker:hover .topic-ticker-track {
  animation-play-state: paused;
}
.topic-ticker-group {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.topic-ticker-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.topic-ticker-item:hover {
  background: rgba(20, 184, 166, 0.18);
  border-color: rgba(94, 234, 212, 0.45);
  color: #fff;
}
.topic-ticker-item strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.topic-ticker-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

@keyframes topicRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .topic-ticker-track { animation: none; }
  .topic-ticker-viewport { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

/* Light topic ticker + library section redesign */
.topic-ticker.topic-ticker-light {
  background: #f8fafc;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.topic-ticker-light .topic-ticker-head span { color: var(--muted); }
.topic-ticker-light .topic-ticker-head a { color: var(--teal-d); }
.topic-ticker-light .topic-ticker-head a:hover { color: var(--navy); }
.topic-ticker-light .topic-ticker-item {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  padding: 10px 16px;
}
.topic-ticker-light .topic-ticker-item:hover {
  background: #fff;
  border-color: var(--navy);
  color: var(--navy);
}
.topic-ticker-light .topic-ticker-viewport {
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.library-section {
  padding: 64px 0;
  background: #fff;
}
.library-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}
.library-head h2 { margin: 0; max-width: 18ch; }
.library-lead {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  margin-bottom: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.library-lead:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.library-lead-media {
  min-height: 260px;
  background: var(--card);
}
.library-lead-media img,
.library-lead-media .thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}
.library-lead-copy {
  padding: 28px 28px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.library-lead-copy .cat {
  margin: 0 0 8px;
  color: var(--teal-d);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.library-lead-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}
.library-lead-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36rem;
}
.library-lead-copy .meta { margin-bottom: 18px; }
.library-lead-copy .btn { align-self: flex-start; }

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}

@media (max-width: 1100px) {
  .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .library-lead { grid-template-columns: 1fr; }
  .library-lead-copy { padding: 20px; }
  .library-head { flex-direction: column; align-items: flex-start; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .library-grid { grid-template-columns: 1fr; }
}

/* Reviews full-width carousel */
.feedback-pro .story-grid { display: none; }
.feedback-pro {
  overflow: hidden;
}
.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.reviews-head h2 { margin: 0; }
.reviews-nav { display: flex; gap: 8px; flex-shrink: 0; }
.reviews-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.reviews-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.reviews-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.reviews-slider {
  position: relative;
  width: 100%;
}
.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.reviews-track.is-jumping {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.reviews-track::-webkit-scrollbar { display: none; }

.reviews-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  min-height: 280px;
  color: #fff;
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.reviews-slide.tone-navy {
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 55%, #134e4a 100%);
}
.reviews-slide.tone-teal {
  background: linear-gradient(155deg, #0f766e 0%, #134e4a 50%, #0f172a 100%);
}
.reviews-slide.tone-ink {
  background: linear-gradient(155deg, #111827 0%, #1e3a5f 60%, #0f766e 100%);
}
.reviews-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.reviews-slide .quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 0.8;
  color: #5eead4;
  margin-bottom: 12px;
  font-weight: 700;
}
.reviews-slide > p {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.5;
  font-weight: 550;
  color: #f8fafc;
  flex: 1;
}
.reviews-slide .person strong { color: #fff; display: block; }
.reviews-slide .person span { color: #94a3b8; }
.reviews-slide .person img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.reviews-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: #cbd5e1;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}
.reviews-dots button.is-on {
  width: 24px;
  background: var(--teal);
}

@media (max-width: 1024px) {
  .reviews-slide {
    flex-basis: calc((100% - 20px) / 2);
    min-height: 260px;
  }
}
@media (max-width: 720px) {
  .reviews-head { flex-direction: column; align-items: flex-start; }
  .reviews-slide {
    flex-basis: 88%;
    min-height: 240px;
    padding: 24px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-track { scroll-behavior: auto; }
  .reviews-slide { transition: none; }
}

/* Login modal popup */
body.login-modal-open { overflow: hidden; }
.login-modal[hidden] { display: none !important; }
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}
.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.login-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  outline: none;
  animation: loginModalIn 0.28s ease;
}
@keyframes loginModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}
.login-modal-close:hover { background: #fff; color: var(--teal-d); }
.login-modal-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 480px;
}
.login-modal-brand {
  padding: 36px 28px;
  color: #e2e8f0;
  background: linear-gradient(155deg, #0f172a 0%, #0f172a 45%, #134e4a 100%);
  border-radius: 22px 0 0 22px;
  display: flex;
  flex-direction: column;
}
.login-modal-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 28px;
}
.login-modal-brand-mark img {
  width: auto;
  height: 64px;
  max-width: 220px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}
.login-modal-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
}
.login-modal-brand h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.login-modal-lead {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
}
.login-modal-points {
  list-style: none;
  margin: auto 0 0;
  padding: 28px 0 0;
  display: grid;
  gap: 12px;
}
.login-modal-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #cbd5e1;
}
.login-modal-points i {
  color: #5eead4;
  width: 18px;
  text-align: center;
}
.login-modal-body {
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.login-modal-body .login-steps { margin-bottom: 18px; }
.login-modal-body .login-card-head h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.login-modal-body .login-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.login-modal .login-form label {
  display: block;
  margin: 14px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.login-modal .login-form > input:not([type="hidden"]) {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.98rem;
  background: #fff;
  color: var(--ink);
  min-height: 52px;
  box-sizing: border-box;
}
.login-modal .login-form > input:not([type="hidden"]):focus {
  outline: none;
  border-color: var(--teal-d);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}
.login-modal .phone-field {
  width: 100%;
  box-sizing: border-box;
}
.login-modal-alert {
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 650;
}
.login-modal-alert.is-err {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
}
.login-modal-alert.is-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid #bbf7d0;
}
.login-modal-body .login-foot { margin-top: auto; padding-top: 18px; }

.login-page-shell {
  min-height: 40vh;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  color: var(--muted);
  text-align: center;
}
.login-page-shell h1 {
  color: var(--navy);
  font-family: var(--font-display);
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .login-modal-grid { grid-template-columns: 1fr; }
  .login-modal-brand {
    border-radius: 22px 22px 0 0;
    padding: 24px 22px 20px;
  }
  .login-modal-points { display: none; }
  .login-modal-body { padding: 22px 20px 24px; }
  .login-modal-close {
    background: rgba(15, 23, 42, 0.5);
    color: #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-modal-dialog { animation: none; }
}

/* Catalog page ? clean library browse */
.page-catalog .header { border-bottom-color: transparent; }
.catalog-hero {
  padding: clamp(28px, 4vw, 44px) 0 8px;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(20, 184, 166, 0.1), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-soft);
}
.catalog-hero-inner {
  display: grid;
  gap: 22px;
}
.catalog-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}
.catalog-hero-copy p {
  margin: 10px 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.catalog-search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  padding: 6px 6px 6px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.catalog-search-bar:focus-within {
  border-color: var(--teal-d);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.catalog-search-ico {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 0.9rem;
  pointer-events: none;
}
.catalog-search-bar input[type="search"] {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 12px 36px 12px 28px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  min-width: 0;
}
.catalog-search-bar input[type="search"]::-webkit-search-decoration,
.catalog-search-bar input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.catalog-search-clear {
  position: absolute;
  right: 108px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
  background: var(--wash);
}
.catalog-search-clear:hover { color: var(--navy); background: var(--line-soft); }
.catalog-search-bar .btn {
  border-radius: 10px;
  padding: 11px 18px;
  white-space: nowrap;
}

.catalog-body {
  padding: 28px 0 72px;
}
.catalog-topics {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 18px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line-soft);
}
.catalog-topics::-webkit-scrollbar { display: none; }
.catalog-topic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.catalog-topic:hover {
  text-decoration: none;
  border-color: #cbd5e1;
  color: var(--navy);
  background: var(--wash);
}
.catalog-topic.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.catalog-topic.is-on:hover { color: #fff; background: var(--navy-hover); border-color: var(--navy-hover); }
.catalog-topic em {
  font-style: normal;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.7;
}
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.catalog-filters a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.catalog-filters a:hover { color: var(--navy); background: var(--wash); text-decoration: none; }
.catalog-filters a.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.catalog-filters a.is-on:hover { color: #fff; }
.page-catalog .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-catalog .course-body { padding: 12px 2px 4px; }
.page-catalog .course-body h3 { min-height: 2.7em; }

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 20px;
}
.catalog-count {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.catalog-count strong { color: var(--navy); font-weight: 750; }
.catalog-count span { color: var(--ink); font-weight: 650; }
.catalog-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--teal-d);
  text-decoration: none;
}
.catalog-reset:hover { text-decoration: underline; }

.catalog-grid {
  gap: 28px 20px;
}
.page-catalog .course-card {
  transition: transform 0.2s ease;
}
.page-catalog .course-card:hover {
  transform: translateY(-3px);
}
.page-catalog .course-thumb {
  border-radius: 14px;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.page-catalog .course-card:hover .course-thumb {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}
.page-catalog .course-body {
  padding: 14px 4px 0;
}
.page-catalog .course-body h3 {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.page-catalog .course-body .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.page-catalog .meta-dot { opacity: 0.55; }

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: var(--wash);
  border: 1px dashed var(--line);
  border-radius: 18px;
}
.catalog-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-d);
  font-size: 1.25rem;
}
.catalog-empty h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
}
.catalog-empty p {
  margin: 0 auto 20px;
  max-width: 36ch;
  color: var(--muted);
  line-height: 1.6;
}

.page-catalog .pager-bar {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 640px) {
  .catalog-search-bar {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }
  .catalog-search-ico { left: 22px; top: 28px; transform: none; }
  .catalog-search-bar input[type="search"] { padding-left: 34px; padding-right: 40px; }
  .catalog-search-clear { right: 18px; top: 22px; transform: none; }
  .catalog-search-bar .btn { width: 100%; }
  .page-catalog .course-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-catalog .course-card { transition: none; }
}

/* Catalog v2 extras */
.catalog-hero-v2 { padding: clamp(32px, 4.5vw, 52px) 0 28px; }
.catalog-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}
.catalog-search-bar-v2 {
  max-width: none;
  width: 100%;
  border-radius: 16px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.catalog-body-v2 { padding: 20px 0 80px; }
.catalog-topics-v2 {
  position: sticky;
  top: 60px;
  z-index: 25;
  margin: 0 0 18px;
  padding: 12px 0 14px;
  background: linear-gradient(180deg, #fff 72%, rgba(255, 255, 255, 0));
  border-bottom: 0;
}
.catalog-topic { gap: 8px; }
.catalog-topic em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--wash);
  border-radius: 999px;
  padding: 2px 7px;
  font-variant-numeric: tabular-nums;
}
.catalog-topic.is-on em {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.catalog-grid-v2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
.course-card-catalog {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  transition: transform 0.2s ease;
}
.course-card-catalog:hover { transform: translateY(-4px); }
.course-card-catalog .course-thumb {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.course-card-catalog:hover .course-thumb {
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}
.course-card-catalog .course-thumb img { transition: transform 0.35s ease; }
.course-card-catalog:hover .course-thumb img { transform: scale(1.04); }
.course-card-catalog .course-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 6px 0;
}
.course-card-catalog .course-body h3 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.course-excerpt {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card-catalog .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
}
.course-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--teal-d);
}
.course-card-catalog:hover .course-cta { color: var(--navy); }
.course-cta i { font-size: 0.7rem; transition: transform 0.2s ease; }
.course-card-catalog:hover .course-cta i { transform: translateX(3px); }
.catalog-join {
  margin-top: 48px;
  padding: 24px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.catalog-join strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.catalog-join p { margin: 0; color: #94a3b8; font-size: 0.9rem; }
.catalog-join-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-join .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.catalog-join .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.catalog-join .btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #042f2e;
}
.catalog-join .btn-primary:hover {
  background: #2dd4bf;
  border-color: #2dd4bf;
  color: #042f2e;
}
@media (max-width: 1100px) {
  .catalog-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .catalog-hero-row { grid-template-columns: 1fr; }
  .catalog-topics-v2 { top: 0; }
}
@media (max-width: 640px) {
  .catalog-grid-v2 { grid-template-columns: 1fr; }
  .course-card-catalog:hover { transform: none; }
  .course-card-catalog:hover .course-thumb img { transform: none; }
}

/* Checkout / subscribe page */
.checkout-page {
  padding: 36px 0 80px;
  min-height: calc(100vh - 200px);
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(20, 184, 166, 0.1), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #fff 50%, #fff 100%);
}
.checkout-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
.checkout-plan {
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  color: #e2e8f0;
  background: linear-gradient(155deg, #0f172a 0%, #0f172a 42%, #134e4a 100%);
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.checkout-plan h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 12ch;
}
.checkout-lead {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 36ch;
}
.checkout-price-block {
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.checkout-price-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5eead4;
}
.checkout-price-amt {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.checkout-price-amt small {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0;
}
.checkout-price-then {
  margin: 10px 0 0;
  color: #cbd5e1;
  font-size: 0.92rem;
}
.checkout-price-desc {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.5;
}
.checkout-benefits {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checkout-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.45;
}
.checkout-benefits i {
  color: #5eead4;
  margin-top: 3px;
}
.checkout-trust {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.82rem;
}
.checkout-trust i { color: #5eead4; }

.checkout-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted-2);
}
.checkout-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff;
  color: var(--muted);
}
.checkout-step.is-current { color: var(--navy); }
.checkout-step.is-current .checkout-step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.checkout-step.is-done { color: var(--teal-d); }
.checkout-step.is-done .checkout-step-num {
  background: var(--teal-soft);
  border-color: #99f6e4;
  color: var(--teal-d);
}
.checkout-step-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 48px;
}

.checkout-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}
.checkout-card-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.checkout-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.checkout-card-head strong { color: var(--ink); }

.checkout-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--wash);
}
.checkout-box-ok {
  background: var(--ok-bg);
  border-color: #bbf7d0;
  display: grid;
  gap: 14px;
}
.checkout-box-ok .checkout-box-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ok);
  font-size: 1.2rem;
}
.checkout-box-ok strong {
  display: block;
  color: var(--ok);
  font-size: 1rem;
  margin-bottom: 2px;
}
.checkout-box-ok p {
  margin: 0;
  color: #166534;
  font-size: 0.88rem;
}
.checkout-howto {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.checkout-box-pay .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.checkout-fine {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 650;
  background: var(--wash);
  color: var(--ink);
  border: 1px solid var(--line);
}
.checkout-status.is-wait { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.checkout-status.is-err { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }
.checkout-status.is-ok { background: var(--ok-bg); border-color: #bbf7d0; color: var(--ok); }

.checkout-wait {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 650;
  color: #9a3412;
}
.checkout-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fed7aa;
  border-top-color: #c2410c;
  animation: checkoutSpin 0.7s linear infinite;
}
@keyframes checkoutSpin {
  to { transform: rotate(360deg); }
}
.checkout-start { margin-top: 20px; }
.checkout-foot {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .checkout-shell { grid-template-columns: 1fr; }
  .checkout-plan { min-height: 0; }
  .checkout-plan h1 { max-width: none; }
  .checkout-trust { margin-top: 24px; padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-spinner { animation: none; border-top-color: #fed7aa; }
}

/* Explore (logged-in home) + scrollable rails */
.page-explore .header { border-bottom-color: transparent; }
.explore-hero {
  padding: clamp(28px, 4vw, 48px) 0 28px;
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(20, 184, 166, 0.1), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #fff 70%);
  border-bottom: 1px solid var(--line-soft);
}
.explore-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.explore-hello {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-d);
}
.explore-hero-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
  max-width: 16ch;
}
.explore-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 40ch;
}
.explore-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
}
.explore-quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.explore-quick a:hover { color: var(--teal-d); }
.explore-quick i { color: var(--teal-d); font-size: 0.78rem; }

.explore-hero-media {
  position: relative;
  display: block;
  width: min(100%, 320px);
  margin-left: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  aspect-ratio: 9 / 16;
  background: var(--navy);
  color: inherit;
  text-decoration: none;
}
.explore-hero-media img,
.explore-hero-media .thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.explore-hero-media .thumb-fallback {
  min-height: 100%;
  border-radius: 0;
}
.explore-hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  opacity: 0.92;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.explore-hero-media:hover .explore-hero-play {
  transform: translate(-50%, -50%) scale(1);
  background: var(--teal-d);
}

.explore-join {
  background: var(--navy);
  color: #fff;
}
.explore-join-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0;
}
.explore-join strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}
.explore-join p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 0.86rem;
}

.rail-pro { padding: 32px 0 12px; }
.rail-pro:last-of-type { padding-bottom: 64px; }
.rail-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rail-see-all {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--teal-d);
  text-decoration: none;
}
.rail-see-all:hover { text-decoration: underline; }
.rail-nav {
  display: flex;
  gap: 6px;
}
.rail-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.rail-btn:hover:not(:disabled) {
  background: var(--teal-d);
  border-color: var(--teal-d);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}
.rail-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}
.rail:not(.is-scrollable) .rail-nav { display: none; }

.rail-viewport {
  position: relative;
}
.rail-pro .rail-track {
  display: flex !important;
  gap: 20px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  padding: 8px 4px 24px !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}
.rail-pro .rail-track::-webkit-scrollbar { display: none !important; }
.rail-pro .rail-track .course-card {
  flex: 0 0 290px !important;
  width: 290px !important;
  min-width: 290px !important;
  max-width: 290px !important;
  flex-shrink: 0 !important;
  scroll-snap-align: start !important;
}
.rail-pro .course-thumb {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.rail-pro .course-card:hover .course-thumb {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}
.rail-pro .course-body { padding-top: 12px; }

@media (max-width: 900px) {
  .explore-hero-grid { grid-template-columns: 1fr; }
  .explore-hero-copy h1 { max-width: none; }
  .explore-hero-media { order: -1; max-height: none; width: min(100%, 220px); margin-inline: auto; }
}
@media (max-width: 640px) {
  .rail-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  .rail-pro .rail-track {
    gap: 14px !important;
  }
  .rail-pro .rail-track .course-card {
    flex: 0 0 250px !important;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rail-pro .rail-track { scroll-behavior: auto; }
  .explore-hero-play { transition: none; }
}

/* Content pages ? About / Contact / FAQ */
.page-content .header { border-bottom-color: transparent; }
.content-hero {
  padding: clamp(32px, 4.5vw, 52px) 0 28px;
  background:
    radial-gradient(ellipse 70% 70% at 0% 0%, rgba(20, 184, 166, 0.1), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--line-soft);
}
.content-hero-inner h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}
.content-hero-inner p {
  margin: 12px 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.content-body { padding: 40px 0 80px; }

.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.about-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}
.about-copy > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 54ch;
}
.about-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.about-points li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}
.about-points i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-d);
}
.about-points strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.about-points span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.about-aside { display: grid; gap: 16px; }
.about-figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  background: var(--card);
}
.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-card {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.about-card strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.about-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}
.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.contact-panel-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
}
.contact-panel-head p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}
.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 12px 0 20px;
}
.contact-field-full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-d);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}
.contact-aside { display: grid; gap: 14px; }
.contact-info-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.contact-info-soft { background: var(--wash); }
.contact-info-card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--navy);
}
.contact-info-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.contact-info-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.contact-mail:hover { color: var(--teal-d); }
.contact-mail i { color: var(--teal); }

.faq-page-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.faq-page-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}
.faq-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 4px;
}
.faq-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-layout,
  .contact-layout,
  .faq-page-layout { grid-template-columns: 1fr; }
  .faq-page-aside { position: static; }
  .about-figure { aspect-ratio: 16 / 10; max-height: 320px; }
  .contact-fields { grid-template-columns: 1fr; }
}

/* Legal pages ? Brandbaba-style clarity */
.page-legal .header { border-bottom-color: transparent; }
.legal-hero {
  padding: clamp(32px, 4.5vw, 52px) 0 28px;
  background:
    radial-gradient(ellipse 70% 70% at 0% 0%, rgba(20, 184, 166, 0.1), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--line-soft);
}
.legal-hero-inner h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}
.legal-effective {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-body {
  padding: 0 0 80px;
  background: #fff;
}
.legal-doc {
  max-width: 820px;
  padding-top: 36px;
}
.legal-intro {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.legal-intro p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}
.legal-intro p:last-child { margin-bottom: 0; }

.legal-block {
  margin-bottom: 28px;
}
.legal-block h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.3;
}
.legal-block p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}
.legal-block ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
  list-style: disc;
}
.legal-block li {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.legal-block li strong { color: var(--ink); font-weight: 700; }

.legal-ack {
  margin: 36px 0 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .legal-doc { padding-top: 28px; }
}

/* Legal pages v2 ? full-width (no left/right empty space) */
.page-legal .header { border-bottom-color: transparent; }
.legal-page {
  padding: clamp(28px, 4vw, 48px) 0 72px;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(20, 184, 166, 0.08), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #ffffff 100%);
}
.legal-page-head {
  max-width: none !important;
  width: 100%;
  margin: 0 0 24px !important;
  text-align: center !important;
}
.legal-page-kicker {
  margin: 0 0 12px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-d);
  background: var(--teal-soft);
  border: 1px solid #99f6e4;
  padding: 6px 12px;
  border-radius: 999px;
}
.legal-page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}
.legal-page-date {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.legal-page-rule {
  width: 56px;
  height: 3px;
  margin: 18px auto 0 !important;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
}
.legal-page-card {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 40px) clamp(22px, 3.5vw, 48px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}
.legal-page-intro {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.legal-page-intro p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.75;
}
.legal-page-intro p:last-child { margin-bottom: 0; }
.legal-sec { margin-bottom: 28px; }
.legal-sec:last-of-type { margin-bottom: 0; }
.legal-sec h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.legal-sec p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.8;
}
.legal-sec a {
  color: var(--teal-d);
  font-weight: 650;
  text-decoration: none;
}
.legal-sec a:hover { text-decoration: underline; }
.legal-sec ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.legal-sec li {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 36px;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.7;
  background: var(--wash);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.legal-sec li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.legal-sec li strong { color: var(--navy); font-weight: 700; }
.legal-page-ack {
  margin: 32px 0 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdfa, #f8fafc);
  border: 1px solid #99f6e4;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.6;
}
.legal-page-support {
  max-width: none !important;
  margin: 18px 0 0 !important;
  text-align: left !important;
  padding: 0 !important;
  color: var(--muted);
  font-size: 0.9rem;
}
.legal-page-support strong {
  display: inline;
  color: var(--navy);
  margin-right: 6px;
  font-size: 0.92rem;
}
.legal-page-support p { margin: 0; display: inline; }
.legal-page-support a {
  color: var(--teal-d);
  font-weight: 650;
  text-decoration: none;
}
.legal-page-support a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .legal-page-card { padding: 20px 16px; border-radius: 14px; }
  .legal-page-head h1 { font-size: 1.85rem; }
  .legal-sec li { padding-left: 32px; }
}
/* My learning page */
.page-learn .header { border-bottom-color: transparent; }
.learn-hero {
  padding: clamp(28px, 4vw, 44px) 0 28px;
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(20, 184, 166, 0.1), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #fff 70%);
  border-bottom: 1px solid var(--line-soft);
}
.learn-hero-row {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.95fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}
.learn-hero-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}
.learn-hero-copy > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 42ch;
}
.learn-hero-copy strong { color: var(--ink); }
.learn-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
}
.learn-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
}
.learn-badge-ok {
  background: var(--teal-soft);
  border-color: #99f6e4;
  color: var(--teal-d);
}
.learn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.learn-resume-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.learn-resume-card:hover {
  text-decoration: none;
  color: inherit;
  border-color: #cbd5e1;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}
.learn-resume-art {
  position: relative;
  min-height: 180px;
  background: var(--navy);
}
.learn-resume-art img,
.learn-resume-art .thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 180px;
}
.learn-resume-art .thumb-fallback { border-radius: 0; }
.learn-resume-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}
.learn-resume-card:hover .learn-resume-play { background: var(--teal-d); }
.learn-resume-copy {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.learn-resume-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-d);
  margin-bottom: 8px;
}
.learn-resume-copy h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--navy);
}
.learn-resume-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.learn-empty-panel {
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 28px 24px;
  display: grid;
  gap: 8px;
  align-content: center;
  text-align: center;
}
.learn-empty-panel strong {
  color: var(--navy);
  font-size: 1.05rem;
}
.learn-empty-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.learn-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-d);
  font-size: 1.1rem;
}

.learn-shelf-pro { padding: 28px 0 72px; }
.learn-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.learn-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}
.learn-tab em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--wash);
  border-radius: 999px;
  padding: 2px 7px;
  font-variant-numeric: tabular-nums;
}
.learn-tab:hover {
  text-decoration: none;
  border-color: #cbd5e1;
  background: var(--wash);
  color: var(--navy);
}
.learn-tab.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.learn-tab.is-on em {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.learn-tab-browse { margin-left: auto; }

.learn-grid { gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.learn-tile { display: flex; flex-direction: column; min-width: 0; }
.page-learn .learn-tile .course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.page-learn .learn-tile .course-card:hover { color: inherit; border-color: #cbd5e1; }
.page-learn .learn-tile .course-thumb {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.page-learn .learn-tile .course-body { padding: 12px 14px 8px; }
.page-learn .learn-tile .course-body h3 { min-height: 0; }
.page-learn .learn-quiet {
  margin: 0;
  padding: 0 14px 12px;
}
.page-learn .learn-quiet button {
  font-size: 0.78rem;
  color: var(--muted);
}
.page-learn .learn-quiet button:hover { color: var(--navy); }

.learn-empty-block {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--wash);
  border: 1px dashed var(--line);
  border-radius: 18px;
}
.learn-empty-block h2 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
}
.learn-empty-block p {
  margin: 0 auto 18px;
  max-width: 40ch;
  color: var(--muted);
  line-height: 1.6;
}
.learn-empty-block .learn-empty-icon { margin-bottom: 4px; }

@media (max-width: 980px) {
  .page-catalog .course-grid,
  .learn-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .learn-hero-row { grid-template-columns: 1fr; }
  .learn-resume-card { grid-template-columns: 1fr; }
  .learn-tab-browse { margin-left: 0; }
  .learn-resume-art,
  .learn-resume-art img,
  .learn-resume-art .thumb-fallback { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
}
@media (max-width: 640px) {
  .page-catalog .course-grid,
  .learn-grid { grid-template-columns: 1fr; }
  .learn-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; }
  .learn-tab { flex: none; }
  .catalog-toolbar { align-items: flex-start; }
  .catalog-filters { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .learn-resume-card { transition: none; }
}

/* Account page */
.page-account .header { border-bottom-color: transparent; }
.acc-hero {
  padding: clamp(28px, 4vw, 44px) 0 0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.acc-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.acc-hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.acc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.acc-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-d);
}
.acc-hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
}
.acc-hero-meta {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.acc-dot { color: #cbd5e1; }
.acc-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}
.acc-pill.is-on {
  background: var(--teal-soft);
  border-color: #99f6e4;
  color: var(--teal-d);
}
.acc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.acc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.acc-stat {
  padding: 18px 16px;
  border-right: 1px solid var(--line-soft);
}
.acc-stat:last-child { border-right: 0; }
.acc-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.acc-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.acc-body { padding: 28px 0 80px; }
.acc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
}
.acc-main, .acc-side { display: grid; gap: 20px; }

.acc-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 24px 24px;
}
.acc-panel-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.acc-panel-head h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.acc-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.acc-panel-head h3,
.acc-refunds h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--navy);
}

.acc-form { display: grid; gap: 16px; max-width: 420px; }
.acc-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.acc-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.acc-field input:focus {
  outline: 2px solid rgba(20, 184, 166, 0.35);
  border-color: var(--teal);
}
.acc-field input:disabled {
  background: var(--wash);
  color: var(--muted);
  cursor: not-allowed;
}
.acc-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.acc-empty {
  padding: 28px 20px;
  text-align: center;
  background: var(--wash);
  border: 1px dashed var(--line);
}
.acc-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}
.acc-empty p {
  margin: 0 auto 16px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.acc-pay-list { display: grid; gap: 0; }
.acc-pay {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.acc-pay:last-child { border-bottom: 0; }
.acc-pay-main { min-width: 0; }
.acc-pay-main strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 3px;
}
.acc-pay-main p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.acc-pay-main p span { color: #cbd5e1; margin: 0 4px; }
.acc-pay-fail {
  margin-top: 6px !important;
  color: var(--danger) !important;
}
.acc-pay-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex-shrink: 0;
}
.acc-pay-amt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.acc-pay-amt.is-zero { color: var(--muted); font-weight: 650; }
.acc-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: -0.01em;
}
.acc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
}
.acc-badge-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.acc-badge-bad {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.acc-badge-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.acc-badge-muted {
  background: var(--wash);
  border-color: var(--line);
  color: var(--muted);
}
.acc-refunds {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.acc-member-status {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  margin-bottom: 16px;
  background: var(--wash);
  border: 1px solid var(--line);
}
.acc-member-status.is-on {
  background: var(--teal-soft);
  border-color: #99f6e4;
}
.acc-member-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}
.acc-member-status.is-on .acc-member-dot { background: var(--teal-d); }
.acc-member-status strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.acc-member-status p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.acc-dl {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.acc-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.acc-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.acc-dl dt {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}
.acc-dl dd {
  margin: 0;
  text-align: right;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
}

.acc-side-actions {
  display: grid;
  gap: 8px;
}
.acc-cancel { color: var(--danger) !important; border-color: #fecaca !important; }
.acc-cancel:hover { background: #fef2f2 !important; }

.acc-links {
  display: grid;
  gap: 2px;
}
.acc-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 6px;
}
.acc-links a:hover {
  background: var(--wash);
  color: var(--navy);
  text-decoration: none;
}
.acc-links i {
  width: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-stats { grid-template-columns: 1fr 1fr; }
  .acc-stat:nth-child(2n) { border-right: 0; }
  .acc-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}
.yt { position: absolute; inset: 0; }
.yt-video { width: 100%; height: 100%; cursor: pointer; background: #0f0f0f; }
.yt-big {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.78);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.yt-big i { font-size: 1.35rem; }
.yt.is-paused .yt-big i { margin-left: 3px; }
.yt-big { pointer-events: none; }
.yt:not(.is-paused) .yt-big { opacity: 0; }
.yt-resume {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.84);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
}
.yt-resume button {
  border: 0;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}
.yt-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 42px 8px 4px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.92) 100%);
  transition: opacity 0.2s ease;
}
.yt.is-quiet .yt-chrome { opacity: 0; pointer-events: none; }
.yt-seek {
  position: relative;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.yt-seek-buf,
.yt-seek-play {
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 99px;
  pointer-events: none;
}
.yt-seek-buf { background: rgba(255,255,255,0.35); }
.yt-seek-play { background: #ff0033; }
.yt-seek-knob {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff0033;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.yt-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  color: #fff;
}
.yt-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.yt-btn:hover,
.yt-btn:focus-visible { background: rgba(255,255,255,0.14); }
.yt-rate { width: auto; min-width: 36px; padding: 0 8px; font-weight: 750; font-size: 0.82rem; }
.yt-time {
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.yt-grow { flex: 1; }
.yt-vol { width: 78px; accent-color: #fff; cursor: pointer; }
.watch-item-time { border-radius: 4px; }
.watch-notes { border-radius: 16px; overflow: hidden; }
.watch-pdf { border-radius: 0 0 16px 16px; }
.yt-gesture {
  position: absolute;
  inset: 0;
  z-index: 2;
  touch-action: manipulation;
}
.yt-chrome { z-index: 5; }
.yt-resume { z-index: 6; }
.yt-skip {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 52px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
}
.yt-skip-mark {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.yt-skip i { font-size: 1.25rem; }
.yt-skip b { font-size: 0.92rem; font-weight: 750; letter-spacing: -0.02em; }
.yt-skip-left {
  left: 0;
  justify-content: flex-start;
  padding-left: 8%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.2) 46%, rgba(0, 0, 0, 0) 100%);
}
.yt-skip-right {
  right: 0;
  justify-content: flex-end;
  padding-right: 8%;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.2) 46%, rgba(0, 0, 0, 0) 100%);
}
.yt-skip.is-on { animation: yt-skip-in 0.8s ease; }
@keyframes yt-skip-in {
  0% { opacity: 0; }
  14% { opacity: 1; }
  62% { opacity: 0.72; }
  100% { opacity: 0; }
}
.watch-notes-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.watch-notes-card h2 { margin: 0 0 4px; font-size: 1rem; }
.watch-notes-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.watch-notes-card .btn { flex: none; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; }
.reader { padding: 18px 0 48px; }
.reader-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.reader-bar strong { flex: 1; min-width: 140px; font-size: 0.95rem; }
.reader-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reader-tools button, .reader-back {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.reader-stage {
  display: grid;
  justify-items: center;
  overflow: auto;
  max-height: calc(100vh - 180px);
  padding: 12px;
  border-radius: 16px;
  background: #0f172a;
  -webkit-user-select: none;
  user-select: none;
}
.reader-stage canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.reader-note { margin: 10px 0 0; color: var(--muted); font-size: 0.8rem; }
.reader-error { color: #b91c1c; font-weight: 700; }
@media print {
  .reader-stage, .reader-tools { display: none !important; }
}
@media (max-width: 720px) {
  .watch-stage, .watch.is-theater .watch-stage { border-radius: 12px; }
  .yt-vol { display: none; }
  .yt-big { width: 58px; height: 58px; }
  .yt-time { font-size: 0.72rem; }
  .yt-skip { padding-bottom: 46px; }
  .yt-skip b { font-size: 0.82rem; }
  .yt-skip-left { padding-left: 6%; }
  .yt-skip-right { padding-right: 6%; }
  .watch-notes-card { flex-direction: column; align-items: stretch; border-radius: 14px; }
  .watch-notes-card .btn { justify-content: center; min-height: 44px; }
  .reader-bar { align-items: stretch; }
  .reader-bar strong { flex-basis: 100%; }
  .reader-stage { max-height: none; border-radius: 12px; }
}

.page-watch .watch-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 402px); gap: 24px; }
.watch-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #606060;
  font-size: 0.86rem;
  font-weight: 650;
}
.watch-by a { color: #0f0f0f; font-weight: 750; }
.watch-by a:hover { color: var(--teal-d); }
.watch-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #0f0f0f;
  font-size: 0.75rem;
  font-weight: 750;
}
.watch-about {
  margin-top: 14px;
  padding: 12px 14px 10px;
  border-radius: 12px;
  background: #f2f2f2;
}
.watch-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.watch-facts span {
  display: block;
  color: #606060;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.watch-facts strong {
  display: block;
  margin-top: 2px;
  color: #0f0f0f;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
}
.watch-about .watch-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px;
  color: #0f0f0f;
  font-size: 0.9rem;
  line-height: 1.55;
}
.watch-about.is-open .watch-desc {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.watch-about .watch-desc b { font-weight: 750; }
.watch-about .watch-more { color: #0f0f0f; font-weight: 750; }
.page-watch .watch-rail {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  max-height: calc(100vh - 88px);
}
.page-watch .watch-rail-head { padding: 12px 12px 8px; }
.page-watch .watch-rail-head h2 {
  font-size: 1rem;
  line-height: 1.35;
}
.page-watch .watch-list { padding: 4px 6px 10px; }
.page-watch .watch-item {
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  align-items: center;
}
.page-watch .watch-item.is-on { background: #f2f2f2; }
.page-watch .watch-item-thumb { border-radius: 8px; }
.page-watch .watch-item-time { border-radius: 4px; padding: 1px 4px; }
.page-watch .watch-item-copy strong {
  font-size: 0.84rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-watch .watch-item-copy em {
  margin-top: 3px;
  color: #606060;
  font-size: 0.75rem;
  font-weight: 600;
}
.page-watch .watch-now,
.page-watch .watch-part {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 0.75rem;
  font-weight: 700;
}
.page-watch .watch-now { color: #0f0f0f; }
.page-watch .watch-part { color: #606060; font-weight: 650; }
.yt-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: transparent;
}
.yt-loader[hidden] { display: none; }
.yt-spin {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.22);
  border-top-color: rgba(255,255,255,0.92);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.18);
  animation: yt-spin 0.7s linear infinite;
}
@keyframes yt-spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) {
  .page-watch .watch-grid { grid-template-columns: 1fr; }
  .page-watch .watch-rail {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-height: none;
    transform: none;
    box-shadow: none;
    padding: 0;
    margin-top: 8px;
  }
  .page-watch .watch-rail-close,
  .page-watch .watch-lessons-btn,
  .page-watch .watch-veil { display: none !important; }
  .watch-facts { grid-template-columns: 1fr 1fr; }
  .watch-toolbar { align-items: stretch; }
  .watch-pills { justify-content: flex-start; }
}

.page-watch .watch-toolbar { align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 0; padding-bottom: 2px; }
.watch-course {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
}
.watch-course:hover { text-decoration: none; color: inherit; }
.watch-course-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f0f0f;
  color: #fff;
  font-weight: 800;
  flex: none;
}
.watch-course strong, .watch-course em {
  display: block;
  font-style: normal;
}
.watch-course strong {
  font-size: 0.95rem;
  line-height: 1.25;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch-course em { color: #606060; font-size: 0.75rem; font-weight: 650; }
.watch-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.watch-pills form { margin: 0; }
.watch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #f2f2f2;
  color: #0f0f0f;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.watch-pill:hover { background: #e5e5e5; }
.watch-pill.is-on { background: #0f0f0f; color: #fff; }
.watch-share { position: relative; }
.watch-share-box {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 8;
  width: min(360px, 78vw);
  padding: 12px;
  border-radius: 12px;
  background: #0f0f0f;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.watch-share-box strong { display: block; margin-bottom: 8px; font-size: 0.82rem; }
.watch-share-box input {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #272727;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
}
.watch-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.watch-share-box button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #0f0f0f;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.watch-pill.is-liked { color: #0f0f0f; }
.watch-pill.is-liked i,
.cmt-like.is-liked { color: #e11d48; }
.watch-pill:focus-visible,
.watch-share-box button:focus-visible,
.watch-comment-form button:focus-visible,
.cmt-tools button:focus-visible,
.cmt-edit button:focus-visible,
.cmt-confirm button:focus-visible,
.watch-comment-more:focus-visible {
  outline: 2px solid #0f0f0f;
  outline-offset: 2px;
}
.watch-pill:disabled { opacity: 0.65; cursor: default; }
.watch-comments { margin-top: 18px; padding-top: 4px; }
.watch-comments h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.watch-comments h2 span { color: #606060; font-size: 0.92rem; }
.watch-comment-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0;
  padding: 8px 2px;
  font: inherit;
  background: transparent;
}
.watch-comment-form textarea:focus { outline: none; border-bottom-color: #0f0f0f; }
.watch-comment-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 8px; }
.watch-comment-bar p { margin: 0; margin-right: auto; color: #b91c1c; font-size: 0.82rem; }
.watch-comment-bar button,
.cmt-edit button,
.cmt-confirm button,
.watch-comment-more {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #0f0f0f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.watch-comment-bar button:disabled { opacity: 0.6; }
.watch-comment-state { color: #606060; font-size: 0.9rem; }
.cmt { padding: 12px 0; border-top: 1px solid #f1f1f1; }
.cmt-head { display: flex; gap: 8px; align-items: baseline; }
.cmt-head strong { font-size: 0.86rem; }
.cmt-head time { color: #606060; font-size: 0.75rem; }
.cmt-body { margin: 6px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.92rem; }
.cmt-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cmt-tools button,
.cmt-like {
  border: 0;
  background: transparent;
  color: #0f0f0f;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  padding: 4px 8px;
}
.cmt-like { display: inline-flex; align-items: center; gap: 6px; }
.cmt-like:hover, .cmt-tools button:hover { background: #f2f2f2; }
.cmt-edit, .cmt-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.cmt-edit textarea { flex: 1 1 220px; min-height: 64px; font: inherit; border-radius: 8px; border: 1px solid #e5e5e5; padding: 8px; }
.cmt-edit .is-quiet, .cmt-confirm .is-quiet { background: #f2f2f2; color: #0f0f0f; }
.cmt-note { flex-basis: 100%; margin: 0; color: #b91c1c; font-size: 0.8rem; }
.watch-comment-more { margin-top: 8px; background: #f2f2f2; color: #0f0f0f; }
.lesson-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f0f0f;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lesson-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.course-page-hero { padding: clamp(22px, 3vw, 36px) 0 8px; }
.course-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.course-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
.course-crumb a { color: var(--ink); }
.course-crumb a:hover { color: var(--teal-d); }
.course-page-copy h1 { margin: 0; max-width: 18ch; }
.course-lead {
  margin: 12px 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}
.course-meta-dot { color: var(--muted-2); }
.course-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.course-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.course-page-art {
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.course-page-art img,
.course-page-art .thumb-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  min-height: 0;
  border-radius: 0;
}
.course-page-body { padding: 28px 0 72px; }
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.syllabus-head { margin-bottom: 14px; }
.syllabus-head h2 { margin: 0 0 4px; font-size: 1.25rem; }
.syllabus-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.syllabus { display: grid; gap: 8px; }
.syllabus-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
a.syllabus-row:hover {
  color: inherit;
  border-color: #cbd5e1;
  background: var(--wash);
  text-decoration: none;
}
.syllabus-row.is-locked { color: var(--muted); }
.syllabus-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--wash);
  color: var(--navy);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.syllabus-copy { min-width: 0; display: grid; gap: 2px; }
.syllabus-copy strong {
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--navy);
}
.syllabus-row.is-locked .syllabus-copy strong { color: var(--ink); }
.syllabus-copy em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.syllabus-side {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
a.syllabus-row .syllabus-side { color: var(--teal-d); }
.course-side { position: sticky; top: 88px; }
.course-side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.course-side-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.course-side-card p { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.course-side-card ul { margin: 0 0 16px; display: grid; gap: 8px; }
.course-side-card li {
  padding-left: 18px;
  position: relative;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}
.course-side-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.course-related { margin-top: 36px; }
@media (max-width: 980px) {
  .course-page-grid,
  .course-layout { grid-template-columns: 1fr; }
  .course-page-art { order: -1; }
  .course-side { position: static; }
  .course-page-copy h1 { max-width: none; }
}
@media (max-width: 640px) {
  .syllabus-row { grid-template-columns: 40px minmax(0, 1fr); }
  .syllabus-side { grid-column: 2; }
}
@media (max-width: 720px) {
  .watch-share-box { right: auto; left: 0; }
  .watch-comment-bar { align-items: stretch; }
}

@media (max-width: 640px) {
  .acc-hero-identity { align-items: flex-start; }
  .acc-avatar { width: 52px; height: 52px; font-size: 1rem; }
  .acc-panel { padding: 18px 16px 20px; }
  .acc-pay { flex-direction: column; gap: 10px; }
  .acc-pay-side { justify-items: start; flex-direction: row; display: flex; align-items: center; gap: 10px; }
}

.home-feed {
  padding: 8px 0 12px;
  background: #fff;
}
.home-feed .home-tops,
.home-feed .rail-pro {
  padding: 28px 0 6px;
}
.home-tops-head,
.home-feed .rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.home-tops-head h2,
.home-feed .rail-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--black);
}
.home-feed .rail-head-copy { min-width: 0; }
.home-feed .rail-head p {
  margin: 4px 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}
.home-tops-head a,
.home-feed .rail-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-d);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.home-tops-head a:hover,
.home-feed .rail-see-all:hover { text-decoration: underline; color: var(--teal-d); }
.home-feed .rail-head-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.top-cat-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.top-cat-row::-webkit-scrollbar { display: none; }
.top-cat {
  flex: 0 0 120px;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}
.top-cat-face {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #ccfbf1, #e0f2fe);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.top-cat-face img { width: 100%; height: 100%; object-fit: cover; }
.top-cat-face span {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal-d);
}
.top-cat strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.top-cat:hover { color: var(--ink); text-decoration: none; }
.top-cat:hover .top-cat-face {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.home-feed .course-body { padding: 10px 2px 0; }
.home-feed .course-body .cat {
  margin: 0 0 3px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-d);
}
.home-feed .course-body h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--black);
}
.home-feed .course-body .meta {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.home-feed .course-card:hover .course-body h3 { color: var(--teal-d); }
@media (max-width: 640px) {
  .home-feed .home-tops,
  .home-feed .rail-pro { padding-top: 22px; }
  .home-tops-head,
  .home-feed .rail-head { align-items: flex-start; }
  .top-cat { flex-basis: 96px; }
  .top-cat-face { width: 72px; height: 72px; border-radius: 20px; }
}

.course-length {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  padding: 0.12rem 0.42rem;
  border-radius: 6px;
  background: rgba(8, 12, 20, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Portrait clips play in a Shorts-style reel. Landscape stays in the wide player. */
.page-watch .watch.is-reel .watch-stage {
  width: min(420px, calc(100vw - 32px), calc((100vh - 168px) * 9 / 16));
  aspect-ratio: 9 / 16;
  max-height: none;
  margin-inline: auto;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}
.page-watch .watch.is-reel .watch-media {
  object-fit: cover;
  background: #000;
}
.page-watch .watch.is-reel .watch-stage:fullscreen,
.page-watch .watch.is-reel .watch-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
.page-watch .watch.is-reel .watch-stage:fullscreen .watch-media,
.page-watch .watch.is-reel .watch-stage:-webkit-full-screen .watch-media {
  object-fit: contain;
}
@media (max-width: 720px) {
  .page-watch .watch.is-reel .watch-stage {
    width: min(100%, calc((100vh - 132px) * 9 / 16));
    border-radius: 16px;
  }
}

.home-feed .rail-pro .rail-track .course-card {
  flex: 0 0 176px !important;
  width: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
}
.home-feed .course-thumb {
  aspect-ratio: 9 / 16 !important;
  border-radius: 16px;
}
.home-feed .course-body { padding-top: 8px; }
.home-feed .course-body h3 {
  font-size: 0.92rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .home-feed .rail-pro .rail-track .course-card {
    flex: 0 0 148px !important;
    width: 148px !important;
    min-width: 148px !important;
    max-width: 148px !important;
  }
}

body.page-reels {
  background: #070b14 !important;
  color: #fff;
  overflow: hidden;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-reels main {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: auto !important;
  background: #070b14;
  display: flex;
}
.shorts {
  flex: 1;
  width: 100%;
  height: calc(100vh - 68px);
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  background:
    radial-gradient(circle at 80% 0%, rgba(20, 184, 166, 0.16), transparent 28%),
    #070b14;
  color: #fff;
}
.shorts-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: #070b14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.shorts-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: #fff;
  text-decoration: none;
}
.shorts-brand img {
  height: 40px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
}
.shorts-brand strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.shorts-brand:hover { color: #fff; }
.shorts-bar > .site-search {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 38vw);
  max-width: 560px;
  min-width: 260px;
  margin: 0;
  z-index: 2;
}
.site-search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.site-search i { color: #94a3b8; font-size: 0.85rem; }
.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.site-search input::placeholder { color: #94a3b8; }
.site-search button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #042f2e;
  font-weight: 800;
  font-size: 0.82rem;
}
.site-search-drawer {
  max-width: none;
  min-width: 0;
  margin: 0 0 8px;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.site-search-drawer i,
.site-search-drawer input { color: #0f172a; }
.site-search-drawer input::placeholder { color: #64748b; }
.shorts-kicker {
  display: grid;
  gap: 1px;
  margin: 0;
  min-width: 0;
}
.shorts-kicker,
.shorts-kicker span {
  color: #fff;
}
.shorts-kicker {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.shorts-kicker span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shorts-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.shorts-nav a {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.shorts-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.shorts-nav a.is-on { background: var(--teal); color: #042f2e; }
.shorts-nav a.is-on:hover { color: #042f2e; background: #2dd4bf; }
.shorts-account {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #042f2e;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
}
.shorts-account:hover { color: #042f2e; }
.site-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}
.site-login,
.site-join {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
}
.site-login { background: transparent; color: #fff; }
.site-login:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-join { background: var(--teal); color: #042f2e; }
.site-join:hover { color: #042f2e; background: #2dd4bf; }
.site-account { position: relative; }
.site-account summary { list-style: none; }
.site-account summary::-webkit-details-marker { display: none; }
.site-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 230px;
  padding: 8px;
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.site-account-menu p {
  margin: 0;
  padding: 8px 10px 10px;
  font-weight: 800;
  color: #0f172a;
}
.site-account-menu a,
.site-account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
}
.site-account-menu a:hover,
.site-account-menu button:hover { background: #f1f5f9; color: #0f172a; }
.site-drawer { display: none; position: relative; }
.site-drawer summary {
  list-style: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
}
.site-drawer summary::-webkit-details-marker { display: none; }
.site-drawer-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(260px, calc(100vw - 24px));
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  display: grid;
}
.site-drawer-panel a,
.site-drawer-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.site-drawer-panel a:hover,
.site-drawer-panel button:hover { background: #f1f5f9; color: #0f172a; }
.shorts { overflow: hidden; }
.shorts-scroller {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
}
.shorts-scroller.is-smooth { scroll-behavior: smooth; }
.shorts-scroller::-webkit-scrollbar { display: none; }
.shorts-slide {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 20px 18px;
  box-sizing: border-box;
}
.shorts-frame {
  position: relative;
  width: min(calc((100vh - 116px) * 9 / 16), calc(100vw - 48px));
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.shorts-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
  cursor: pointer;
}
.shorts-loader {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
}
.shorts-slide.is-loading .shorts-loader {
  opacity: 1;
  animation: shorts-spin 0.7s linear infinite;
}
@keyframes shorts-spin { to { transform: rotate(360deg); } }
.shorts-pause {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 11, 20, 0.45);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.shorts-slide.is-playing .shorts-pause,
.shorts-slide.is-loading .shorts-pause { opacity: 0; pointer-events: none; }
.shorts-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.shorts-tag strong {
  color: #042f2e;
  background: var(--teal);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shorts-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.05) 16%, transparent 28%),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.18) 62%, rgba(0, 0, 0, 0.78) 100%);
}
.shorts-caption {
  position: absolute;
  left: 0;
  right: 76px;
  bottom: 44px;
  z-index: 3;
  padding: 0 14px 8px;
  background: none;
  pointer-events: none;
}
.shorts-caption p {
  margin: 0 0 4px;
  color: #99f6e4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shorts-caption h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.shorts-caption span { color: #e2e8f0; font-size: 0.84rem; font-weight: 600; }
.shorts-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 700;
}
.shorts-views i { font-size: 0.9rem; }
.course-card .meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.course-card .meta i { color: #0f766e; font-size: 0.82rem; }
.shorts-timeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(7, 11, 20, 0.92);
}
.shorts-time {
  position: static;
  z-index: 1;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
}
.shorts-time span + span::before { content: "/"; margin-right: 6px; color: #cbd5e1; }
.shorts-seek {
  position: relative;
  flex: 1;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.shorts-seek::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}
.shorts-seek span {
  position: absolute;
  left: 0;
  top: 5px;
  height: 4px;
  width: 0;
  border-radius: 99px;
  background: var(--teal);
}
.shorts-rail {
  position: absolute;
  right: 10px;
  bottom: 52px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.shorts-rail button {
  width: 68px;
  border-radius: 16px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 2px 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
}
.shorts-rail button span {
  display: block;
  max-width: 68px;
  text-align: center;
  color: #fff;
}
.shorts-rail button i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.05rem;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.shorts-rail button:hover i { background: rgba(15, 23, 42, 0.78); }
.shorts-rail button.is-liked i {
  color: #ff2b3a;
  background: rgba(15, 23, 42, 0.78);
  border-color: #ff2b3a;
}
.shorts-rail button.is-saved i {
  color: #042f2e;
  background: #5eead4;
  border-color: #5eead4;
}
.shorts-rail button.is-open i {
  color: #042f2e;
  background: #fff;
  border-color: #fff;
}
.shorts-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  padding: 40px 20px;
}
.shorts-empty h1 { color: #fff; }
.shorts-empty p { color: #94a3b8; }
.shorts-empty a {
  margin-top: 8px;
  background: var(--teal);
  color: #042f2e;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
}
.shorts-empty a:hover { color: #042f2e; }
@media (max-width: 860px) {
  .shorts-kicker span { display: none; }
  .shorts-bar .shorts-nav { display: none; }
  .site-drawer { display: block; }
  .site-login, .site-join { display: none; }
  .site-search { display: none; }
  .site-search-drawer { display: flex; }
}
@media (max-width: 720px) {
  .shorts-bar { height: 58px; padding: 0 12px; gap: 10px; }
  .shorts { height: calc(100vh - 58px); grid-template-rows: minmax(0, 1fr); }
  .shorts-brand img { height: 32px; }
  .shorts-slide { padding: 0; display: block; }
  .shorts-frame {
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
  .shorts-brand strong { display: none; }
  .site-search { display: none; }
  .shorts-rail {
    right: 8px;
    bottom: 48px;
    top: auto;
    transform: none;
    z-index: 5;
    gap: 2px;
  }
  .shorts-rail button { width: 58px; }
  .shorts-rail button i {
    width: 42px;
    height: 42px;
    background: rgba(7, 11, 20, 0.55);
    backdrop-filter: blur(8px);
  }
  .shorts-caption { right: 70px; padding-bottom: 34px; }
  .shorts-caption h1 { font-size: 1.15rem; }
}
.shorts-sheet {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  width: auto;
  display: flex;
  flex-direction: column;
  background: #101828;
  color: #fff;
  border: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.shorts-sheet[hidden] { display: none !important; }
.shorts-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.shorts-sheet-head::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 42px;
  height: 4px;
  margin-left: -21px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}
.shorts-sheet-head { position: relative; padding-top: 18px; }
.shorts-sheet-head strong { font-size: 1rem; color: #fff; }
.shorts-sheet-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.shorts-sheet-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px 8px;
  display: grid;
  align-content: start;
  gap: 14px;
}
.shorts-comment {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.shorts-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #134e4a;
  color: #ccfbf1;
  font-weight: 800;
  font-size: 0.85rem;
}
.shorts-comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.shorts-comment strong { font-size: 0.86rem; color: #fff; }
.shorts-comment p { margin: 3px 0 0; color: #e2e8f0; font-size: 0.92rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.shorts-comment button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0;
}
.shorts-comment-empty { color: #94a3b8; margin: 12px 0; }
.shorts-sheet-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.shorts-sheet-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
  padding: 11px 14px;
  outline: none;
}
.shorts-sheet-form button {
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #042f2e;
  font-weight: 800;
  padding: 0 16px;
}
.shorts-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 50;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.shorts-toast[hidden] { display: none; }

.home-welcome {
  padding: 28px 0 6px;
  background: linear-gradient(180deg, #e8f7f4 0%, #f8fafc 78%);
}
.home-welcome-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 28px;
  align-items: center;
}
.home-welcome-copy h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  max-width: 16ch;
}
.home-welcome-copy > p { color: #64748b; max-width: 42rem; margin: 0; }
.home-welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.home-welcome-reel {
  position: relative;
  display: block;
  width: 176px;
  margin-left: auto;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.home-welcome-reel .video-poster,
.home-welcome-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-welcome-reel > span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ccfbf1;
}
.page-explore .home-feed { padding-top: 8px; }
@media (max-width: 720px) {
  .home-welcome-inner { grid-template-columns: 1fr; }
  .home-welcome-reel { margin: 4px auto 0; }
  .home-welcome-copy h1 { max-width: none; }
}

body.page-home {
  background: #f3f4f6 !important;
}
body.page-home main {
  background: #f3f4f6;
}
.sk-guest {
  background: #fff;
  border-bottom: 1px solid #eceef2;
}
.sk-guest-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}
.sk-guest-brand {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}
.sk-guest h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #111827;
}
.sk-guest h1 + p {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 1.05rem;
  font-weight: 600;
}
.sk-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}
.sk-home { padding: 6px 0 28px; background: transparent; }
.sk-cats { padding: 18px 0 4px; }
.sk-cat-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.sk-cat-row::-webkit-scrollbar { display: none; }
.sk-cat {
  flex: 0 0 84px;
  text-align: center;
  text-decoration: none;
  color: #111827;
}
.sk-cat-face {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(calc(150 + var(--sk-i, 0) * 28) 62% 42%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.sk-cat-face img { width: 100%; height: 100%; object-fit: cover; }
.sk-cat-face span,
.sk-cat-face i {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}
.sk-cat-all { flex-basis: 88px; }
.sk-cat-face.is-all {
  background: #111827;
  color: #fff;
  border: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.sk-cat-face.is-all svg { display: block; width: 26px; height: 26px; }
.sk-cat-all strong {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  white-space: nowrap;
}
.sk-cat strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}
.sk-cat:hover { color: #111827; text-decoration: none; }
.sk-cat:hover .sk-cat-face { transform: translateY(-2px); }
.sk-block { padding: 22px 0 4px; }
.sk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sk-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}
.sk-head-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.sk-head-side > a {
  color: #374151;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
.sk-head-side > a:hover { color: #111827; }
.sk-arrows { display: flex; gap: 6px; }
.sk-arrows button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  cursor: pointer;
}
.sk-arrows button:disabled { opacity: 0.35; cursor: default; }
.sk-scroller { margin: 0 -4px; }
.sk-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 4px 12px;
}
.sk-track::-webkit-scrollbar { display: none; }
.sk-card {
  flex: 0 0 156px;
  width: 156px;
  scroll-snap-align: start;
  text-decoration: none;
  color: #111827;
}
.sk-poster,
.sk-rank-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
}
.sk-poster img,
.sk-rank-poster img,
.sk-poster .video-poster,
.sk-rank-poster .video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sk-card strong,
.sk-rank strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #111827;
}
.sk-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
}
.sk-meta i { font-size: 0.72rem; }
.sk-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.72rem;
}
.sk-card:hover strong,
.sk-rank:hover strong { color: #0f766e; }
.sk-track-rank { gap: 8px; align-items: start; }
.sk-rank {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 52px 132px;
  grid-template-rows: 176px auto;
  text-decoration: none;
  color: #111827;
  scroll-snap-align: start;
}
.sk-rank-num {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  z-index: 2;
  margin: 0 -8px 6px 0;
  height: 0.78em;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.08em;
  color: #fff;
  -webkit-text-stroke: 2px #111827;
  paint-order: stroke fill;
}
.sk-scroller { position: relative; }
.sk-side {
  position: absolute;
  top: 78px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sk-side-prev { left: 6px; }
.sk-side-next { right: 6px; }
.sk-side:disabled { visibility: hidden; }
.sk-scroller:has(.sk-track-rank) .sk-side { top: 72px; }
.sk-arrows { display: none !important; }
.sk-rank-poster { grid-column: 2; grid-row: 1; height: 176px; aspect-ratio: auto; }
.sk-rank strong { grid-column: 2; grid-row: 2; }
.sk-join {
  margin: 8px 0 28px;
}
.sk-join-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
}
.sk-join-inner strong { display: block; font-size: 1.05rem; }
.sk-join-inner p { margin: 4px 0 0; color: #d1d5db; }
@media (max-width: 720px) {
  .sk-guest-inner,
  .sk-join-inner { flex-direction: column; align-items: flex-start; }
  .sk-arrows { display: none; }
  .sk-card { flex-basis: 140px; width: 140px; }
  .sk-rank { grid-template-columns: 42px 112px; grid-template-rows: 148px auto; }
  .sk-rank-poster { height: 148px; }
  .sk-rank-num { font-size: 4.2rem; }
  .sk-cat { flex-basis: 74px; }
  .sk-cat-face { width: 64px; height: 64px; }
}


.all-cats { position: relative; }
.all-cats summary {
  list-style: none;
  cursor: pointer;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
}
.all-cats summary::-webkit-details-marker { display: none; }
.all-cats summary:hover,
.all-cats[open] summary { background: #f3f4f6; }
.all-cats-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(640px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  z-index: 80;
}
.all-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 10px;
}
.all-cats-grid a {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  padding: 6px;
  border-radius: 12px;
}
.all-cats-grid a:hover { background: #f8fafc; color: #111827; }
.all-cats-grid span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-weight: 800;
}
.all-cats-grid img { width: 100%; height: 100%; object-fit: cover; }
.all-cats-grid strong {
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 700;
}

.sk-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sk-head-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
  background: hsl(calc(150 + var(--sk-i, 0) * 28) 62% 38%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}
.sk-head-mark img { width: 100%; height: 100%; object-fit: cover; }
.sk-rank { grid-template-rows: 196px; }
.sk-rank-poster { height: 196px; }
.sk-rank-poster em {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sk-rank-poster::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}
.sk-preview {
  position: fixed;
  z-index: 70;
  width: 320px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  pointer-events: none;
}
.sk-preview[hidden] { display: none !important; }
.sk-preview-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
}
.sk-preview-poster img,
.sk-preview-poster span {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
}
.sk-preview strong {
  display: block;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.3;
}
.sk-preview p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 0.8rem;
  line-height: 1.45;
}
.sk-footer {
  background: #fff;
  border-top: 1px solid #eceff3;
  color: #374151;
  padding: 36px 0 18px;
}
.sk-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr;
  gap: 28px;
}
.sk-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  text-decoration: none;
  font-weight: 800;
}
.sk-footer-brand img { height: 36px; width: auto; }
.sk-foot-line { margin: 12px 0 0; color: #4b5563; font-weight: 600; }
.sk-foot-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.sk-foot-actions a { color: #111827; font-weight: 800; text-decoration: none; }
.sk-footer h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
}
.sk-foot-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.sk-foot-links a,
.sk-foot-links button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #4b5563;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.sk-foot-links a:hover,
.sk-foot-links button:hover { color: #111827; }
.sk-footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #eceff3;
  color: #9ca3af;
  font-size: 0.82rem;
}
.sk-footer-base a { color: #9ca3af; text-decoration: none; }
@media (max-width: 860px) {
  .all-cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sk-footer-grid { grid-template-columns: 1fr; }
  .sk-preview { display: none !important; }
}
@media (max-width: 720px) {
  .sk-rank { grid-template-rows: 148px; }
  .sk-rank-poster { height: 148px; }
}

.cat-page { padding: 28px 0 56px; background: #fff; }
.cat-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 0 22px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
}
.cat-search i { color: #6b7280; font-size: 0.9rem; }
.cat-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
}
.cat-search input::placeholder { color: #9ca3af; font-weight: 500; }
.cat-filter-empty {
  margin: 8px 0 0;
  color: #111827;
  font-weight: 700;
}
[data-cat-tile][hidden] { display: none !important; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 16px;
}
.cat-tile {
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.cat-tile-art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 36%),
    hsl(calc(152 + var(--sk-i, 0) * 24) 58% 36%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-tile-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 28px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}
.cat-tile-art strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 36px 10px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.cat-tile:hover { color: #fff; text-decoration: none; }
.cat-tile:hover .cat-tile-art {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .cat-tile-art { border-radius: 14px; }
  .cat-tile-art strong { font-size: 0.78rem; padding-bottom: 10px; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.vid-page { padding: 28px 0 64px; background: transparent; }
.vid-grid {
  width: min(1120px, calc(100% - 160px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.vid-stage {
  position: relative;
  height: min(820px, calc(100vh - 132px));
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.vid-stage video,
.vid-stage iframe,
.vid-stage img,
.vid-stage .video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  background: #000;
}
.vid-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}
.vid-stage.is-playing .vid-play { opacity: 0; }
.vid-stage.is-playing:hover .vid-play { opacity: 1; }
.vid-play i { margin-left: 3px; }
.vid-timeline {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}
.vid-time {
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.vid-seek {
  position: relative;
  display: block;
  width: 100%;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.vid-seek::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}
.vid-seek span {
  position: absolute;
  left: 0;
  top: 7px;
  height: 4px;
  width: 0;
  border-radius: 99px;
  background: #2dd4bf;
}
.vid-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.vid-main h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}
.vid-chip {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #14532d;
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.vid-desc { margin-top: 14px; max-width: 40rem; }
.vid-desc p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vid-desc.is-open p { display: block; -webkit-line-clamp: unset; }
.vid-desc button {
  margin-top: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #e5e7eb;
  font-weight: 700;
  cursor: pointer;
}
.vid-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #6d28d9;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.vid-like.is-liked { background: #5b21b6; }
.vid-like i { font-size: 1rem; }
.vid-reco-title {
  margin: 28px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}
.vid-reco {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: 14px;
}
.vid-reco-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.vid-reco-card.is-on .vid-reco-poster { outline: 2px solid #a78bfa; outline-offset: 2px; }
.vid-reco-poster {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
}
.vid-reco-poster img,
.vid-reco-poster .video-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-reco-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  color: #fff;
}
.vid-reco-card em {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
}
.vid-side-empty { margin: 12px 0 0; color: #9ca3af; }
@media (max-width: 1100px) {
  .vid-reco { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .vid-grid { width: min(100% - 32px, 1180px); grid-template-columns: 1fr; gap: 22px; }
  .vid-stage { height: auto; width: min(100%, 420px); max-height: 72vh; margin: 0 auto; }
  .vid-reco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body:not(.page-reels),
body:not(.page-reels) main {
  background: #f3f4f6 !important;
  color: #111827;
}
body:not(.page-reels) main h1,
body:not(.page-reels) main h2,
body:not(.page-reels) main h3 {
  color: #111827;
}
.sk-home,
.cat-page,
.vid-page,
.sk-footer,
.vid-side {
  background: transparent;
  color: #111827;
}
.sk-head h2,
.sk-card strong,
.sk-rank,
.sk-cat,
.sk-cat:hover,
.vid-main h1,
.vid-side h2,
.vid-side-card,
.vid-clips li,
.vid-clips a,
.sk-footer-brand,
.sk-footer h2,
.sk-foot-actions a,
.vid-desc button,
.vid-reco-card strong {
  color: #111827;
}
.sk-head-side > a,
.sk-head-side > a:hover,
.sk-meta,
.vid-meta,
.vid-desc p,
.vid-side > p,
.vid-side-copy em,
.vid-clips em,
.sk-foot-line,
.sk-foot-links a,
.sk-foot-links button,
.sk-footer-base,
.sk-footer-base a,
.vid-reco-card em {
  color: #4b5563;
}
.sk-foot-links a:hover,
.sk-foot-links button:hover,
.vid-kicker a { color: #5eead4; }
.sk-footer { border-top-color: rgba(255, 255, 255, 0.08); }
.sk-footer-base { border-top-color: rgba(255, 255, 255, 0.08); }
.vid-clips li { border-top-color: rgba(255, 255, 255, 0.08); }
.sk-card:hover strong,
.sk-rank:hover strong { color: #0f766e; }
.sk-side {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
}
.catalog-hero,
.catalog-body,
.section,
.course-page-hero,
.course-page-body {
  background: transparent;
  color: #e5e7eb;
}

.sk-home { padding-top: 8px; }
.sk-cats { padding-top: 8px; }
.sk-poster img,
.sk-rank-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.sk-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 14px 12px 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 46%),
    linear-gradient(168deg, hsl(calc(160 + var(--sk-i, 0) * 32) 68% 46%) 0%, #070b14 78%);
}

.sk-track-rank {
  align-items: flex-end;
  gap: 22px;
  padding: 6px 12px 10px 8px;
}
.sk-rank {
  position: relative;
  display: block;
  width: 250px;
  height: 236px;
  flex: 0 0 250px;
  margin: 0;
  overflow: visible;
}
.sk-rank-poster {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 158px;
  height: 222px;
  aspect-ratio: auto;
  border-radius: 16px;
  overflow: hidden;
}
.sk-rank-num {
  position: absolute;
  left: 0;
  bottom: -4px;
  z-index: 3;
  width: 168px;
  height: auto;
  margin: 0;
  overflow: visible;
  bottom: 0;
  font-family: var(--font-display);
  font-size: 176px;
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: rgba(163, 163, 163, 0.92);
  -webkit-text-stroke: 0;
  pointer-events: none;
}
@media (max-width: 720px) {
  .sk-rank { width: 196px; height: 190px; flex-basis: 196px; }
  .sk-rank-poster { width: 124px; height: 178px; }
  .sk-rank-num { width: 132px; font-size: 132px; bottom: 0; }
  .sk-track-rank { gap: 14px; padding-left: 4px; }
}

.sk-rank-static .sk-track {
  overflow: visible;
  flex-wrap: wrap;
  scroll-snap-type: none;
}
.sk-block[data-rail] .sk-track-rank {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.cat-show { padding: 22px 0 36px; }
.cat-show-kicker { margin: 0 0 6px; }
.cat-show-kicker a { color: #5eead4; font-weight: 800; text-decoration: none; }
  overflow: hidden;
  touch-action: pan-y;
}
[data-rail] .sk-track {
  scroll-snap-type: none;
  scroll-behavior: auto;
  overflow: hidden;
  touch-action: pan-y;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.cat-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 18px 14px;
}
.cat-video-grid .sk-card { width: 100%; max-width: 180px; flex: none; }

.sk-home { padding-top: 18px; }
.sk-head { margin-bottom: 16px; align-items: baseline; }
.sk-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #111827;
}
.sk-head-side > a,
.sk-head-side > a:hover {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #4b5563;
}
.sk-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #111827;
}
.sk-meta {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: #6b7280;
}
.sk-fill {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
@media (max-width: 720px) {
  .sk-head h2 { font-size: 1.15rem; }
  .sk-card strong { font-size: 0.88rem; }
}

body.page-account,
body.page-content,
body.page-legal,
body.page-checkout,
body.page-catalog,
body.page-login,
body.page-reader,
body.page-account main,
body.page-content main,
body.page-legal main,
body.page-checkout main,
body.page-catalog main,
body.page-login main,
body.page-reader main {
  background: #f8fafc !important;
  color: #0f172a !important;
}
body.page-account main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th, input, textarea, select),
body.page-content main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th, input, textarea, select),
body.page-legal main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th, input, textarea, select),
body.page-checkout main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th, input, textarea, select),
body.page-catalog main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th, input, textarea, select),
body.page-login main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th, input, textarea, select),
body.page-reader main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th, input, textarea, select) {
  color: #0f172a !important;
}
body.page-account main :is(.btn, .btn-primary, .acc-avatar, .acc-pill.is-on),
body.page-content main :is(.btn, .btn-primary),
body.page-checkout main :is(.btn, .btn-primary),
body.page-catalog main :is(.btn, .btn-primary),
body.page-login main :is(.btn, .btn-primary) {
  color: #fff !important;
}
.login-modal-body,
.login-modal-body :is(h3, p, label, span, a, input) {
  color: #0f172a !important;
}
.login-modal-body .btn,
.login-modal-body .btn-primary {
  color: #fff !important;
}
.site-search,
.catalog-search-bar {
  position: relative;
}
.shorts-bar > .site-search {
  position: absolute;
}
.live-search {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 360px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.live-search-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a !important;
}
.live-search-item strong {
  color: #0f172a !important;
  font-weight: 700;
}
.live-search-item em {
  color: #64748b !important;
  font-style: normal;
  font-size: 0.78rem;
}
.live-search-item:hover,
.live-search-item.is-on {
  background: #f1f5f9;
}
.live-search-empty {
  margin: 0;
  padding: 12px;
  color: #475569 !important;
  font-weight: 600;
}

body.page-home .sk-head h2,
body.page-home .sk-card strong,
body.page-home .sk-footer-brand,
body.page-home .sk-footer h2,
body.page-home .sk-foot-actions a,
body.page-home .vid-main h1,
body.page-home .vid-reco-card strong,
body.page-categories .cat-page h1,
body.page-home .cat-show h1 {
  color: #111827 !important;
}
body.page-home .sk-head-side > a,
body.page-home .sk-head-side > a:hover,
body.page-home .sk-meta,
body.page-home .sk-foot-line,
body.page-home .sk-foot-links a,
body.page-home .sk-foot-links button,
body.page-home .vid-desc p,
body.page-home .vid-reco-card em {
  color: #374151 !important;
}
body.page-home .sk-rank-num {
  color: #ffffff !important;
}

/* Dark storefront. Reel player stays on its own full-screen theme. */
html:has(body:not(.page-reels)) {
  background: #070b14;
}
body:not(.page-reels) {
  background: #070b14 !important;
  color: #e5e7eb !important;
  color-scheme: dark;
}
body:not(.page-reels) main {
  background: #070b14 !important;
  color: #e5e7eb !important;
}
body:not(.page-reels) main :is(h1, h2, h3, h4, p, li, label, span, strong, em, small, td, th) {
  color: #f3f4f6;
}
body:not(.page-reels) main :is(h1, h2, h3, h4) {
  color: #f9fafb !important;
}
body.page-home .sk-head h2,
body.page-home .sk-card strong,
body.page-home .sk-rank strong,
body.page-home .sk-footer-brand,
body.page-home .sk-footer h2,
body.page-home .sk-foot-actions a,
body.page-home .vid-main h1,
body.page-home .vid-side h2,
body.page-home .vid-reco-card strong,
body.page-home .cat-show h1,
body.page-categories .cat-page h1 {
  color: #f9fafb !important;
}
body.page-home .sk-head-side > a,
body.page-home .sk-meta,
body.page-home .sk-foot-line,
body.page-home .sk-foot-links a,
body.page-home .sk-foot-links button,
body.page-home .vid-desc p,
body.page-home .vid-meta,
body.page-home .vid-reco-card em,
body.page-home .cat-show-kicker,
body.page-home .cat-filter-empty {
  color: #9ca3af !important;
}
body.page-home .sk-head-side > a:hover,
body.page-home .sk-foot-links a:hover,
body.page-home .sk-foot-links button:hover,
body.page-home .sk-card:hover strong,
body.page-home .sk-rank:hover strong,
body.page-home .vid-kicker a,
body.page-home .cat-show-kicker a {
  color: #5eead4 !important;
}
body.page-home .sk-rank-num {
  color: #ffffff !important;
}
body:not(.page-reels) :is(
  .sk-footer,
  .sk-guest,
  .acc-panel,
  .acc-hero,
  .content-hero,
  .legal-page-card,
  .legal-page-support,
  .about-card,
  .contact-panel,
  .contact-info-card,
  .faq-item,
  .faq-support,
  .checkout-card,
  .checkout-panel,
  .catalog-hero,
  .catalog-empty,
  .course-card,
  .learn-hero,
  .learn-empty-panel,
  .watch,
  .watch-shell,
  .watch-notes-card,
  .login-page-shell,
  .cat-page,
  .vid-page,
  .sk-home
) {
  background: #101722 !important;
  color: #e5e7eb !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body:not(.page-reels) .content-hero {
  background:
    radial-gradient(ellipse 70% 70% at 0% 0%, rgba(45, 212, 191, 0.14), transparent 55%),
    #070b14 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
body:not(.page-reels) :is(.sk-home, .cat-page, .vid-page, .catalog-hero, .acc-hero, .login-page-shell) {
  background: transparent !important;
}
body:not(.page-reels) .sk-footer {
  background: #0b101a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body:not(.page-reels) main :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="file"]),
  textarea,
  select
) {
  background: #0c1220 !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
body:not(.page-reels) main :is(input, textarea)::placeholder {
  color: #94a3b8 !important;
}
body:not(.page-reels) main :is(input, textarea, select):focus {
  outline: none;
  border-color: #2dd4bf !important;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}
body:not(.page-reels) main :is(.btn, .btn-primary, .acc-avatar, .acc-pill.is-on) {
  color: #fff !important;
}
body:not(.page-reels) main :is(table, tr, td, th) {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}
.cat-search,
.catalog-search-bar,
.live-search,
.site-drawer-panel,
.login-modal-dialog,
.login-modal-body {
  background: #101722 !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.cat-search i,
.catalog-search-bar i { color: #9ca3af !important; }
.live-search-item,
.live-search-item strong,
.site-drawer-panel a,
.site-drawer-panel button,
.login-modal-body :is(h3, p, label, span, a) {
  color: #f8fafc !important;
}
.live-search-item em,
.live-search-empty,
.login-modal-body .login-card-head p {
  color: #9ca3af !important;
}
.live-search-item:hover,
.live-search-item.is-on,
.site-drawer-panel a:hover,
.site-drawer-panel button:hover {
  background: #1c2636 !important;
  color: #f8fafc !important;
}
.login-modal-body :is(input, textarea, select) {
  background: #0c1220 !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
.login-modal-body .btn,
.login-modal-body .btn-primary,
.login-modal-close {
  color: #fff !important;
}
.login-modal-close {
  background: rgba(255, 255, 255, 0.08) !important;
}
.sk-side {
  background: #fff !important;
  color: #111827 !important;
  border-color: transparent !important;
}
.cat-tile,
.cat-tile-art strong,
.cat-tile-mark,
.sk-fill,
.sk-lock {
  color: #fff !important;
}
body.page-account main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th),
body.page-content main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th),
body.page-legal main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th),
body.page-checkout main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th),
body.page-catalog main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th),
body.page-login main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th),
body.page-reader main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th),
body.page-watch main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th),
body.page-learn main :is(h1, h2, h3, h4, p, label, li, span, strong, a, td, th) {
  color: #f3f4f6 !important;
}
body:not(.page-reels) .sk-footer :is(h2, strong, a, p, span, button) {
  color: #d1d5db !important;
}
body:not(.page-reels) .sk-footer h2,
body:not(.page-reels) .sk-footer-brand strong {
  color: #f9fafb !important;
}
body:not(.page-reels) .sk-footer a:hover,
body:not(.page-reels) .sk-footer button:hover {
  color: #5eead4 !important;
}
body:not(.page-reels) main :is(.btn, .btn-primary, .acc-avatar, .acc-pill.is-on, .site-login) {
  color: #fff !important;
}
body:not(.page-reels) :is(.btn-ghost, .btn-secondary) {
  background: transparent !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
body:not(.page-reels) :is(.btn-ghost, .btn-secondary):hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}
body:not(.page-reels) .btn-teal {
  background: #2dd4bf !important;
  color: #042f2e !important;
  border-color: #2dd4bf !important;
}
.phone-field {
  background: #0c1220 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
.phone-prefix {
  background: #1c2636 !important;
  color: #f8fafc !important;
  border-right-color: rgba(255, 255, 255, 0.12) !important;
}
.phone-field input {
  background: #0c1220 !important;
  color: #f8fafc !important;
}
.catalog-topic,
.catalog-filters a {
  background: #1c2636 !important;
  color: #f3f4f6 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.catalog-topic.is-on,
.catalog-filters a.is-on,
.catalog-topic.is-on:hover,
.catalog-filters a.is-on:hover {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #fff !important;
}
.catalog-topic em { color: #d1d5db !important; }
.faq-topics li {
  background: rgba(45, 212, 191, 0.12) !important;
  color: #5eead4 !important;
  border-color: rgba(45, 212, 191, 0.35) !important;
}
.legal-page,
.legal-hero,
.legal-body {
  background: #070b14 !important;
  color: #e5e7eb !important;
}
.legal-page-kicker {
  background: rgba(45, 212, 191, 0.12) !important;
  color: #5eead4 !important;
  border-color: rgba(45, 212, 191, 0.35) !important;
}
.legal-page-head h1,
.legal-sec h2,
.legal-sec li strong {
  color: #f9fafb !important;
}
.legal-page-date,
.legal-sec p,
.legal-sec li {
  color: #d1d5db !important;
}
.legal-sec li,
.legal-page-ack {
  background: #0c1220 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.phone-field input,
.phone-field input[type="text"],
.phone-field input[type="tel"],
.login-modal .phone-field input,
.login-form .phone-field input,
.auth-card .phone-field input {
  background: #0c1220 !important;
  color: #f8fafc !important;
}

html,
body:not(.page-reels),
body:not(.page-reels) main,
body:not(.page-reels) .sk-footer,
body:not(.page-reels) .sk-home,
body:not(.page-reels) .cat-page,
body:not(.page-reels) .cat-show,
body:not(.page-reels) .vid-page {
  background: #070b14 !important;
  color: #e5e7eb;
}
.cat-show {
  padding: 28px 0 56px;
}
.cat-show h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff !important;
}
.cat-show-kicker { margin: 0 0 8px; }
.vid-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.vid-top {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.vid-page { padding: 28px 0 64px !important; }
.vid-stage {
  position: relative;
  width: 380px;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 9 / 16;
  min-width: 0;
  border-radius: 24px;
}
.vid-stage img,
.vid-stage video,
.vid-stage iframe,
.vid-stage .video-poster {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
.vid-main h1 {
  color: #fff !important;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}
.vid-chip {
  background: rgba(20, 83, 45, 0.85);
  color: #86efac !important;
}
.vid-desc p { color: #d1d5db !important; }
.vid-desc button { color: #fff !important; }
.vid-like {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  margin-top: 22px;
  padding: 14px 22px !important;
  border-radius: 14px !important;
  background: #6d28d9 !important;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}
.vid-reco-block { margin-top: 42px; }
.vid-reco-title {
  margin: 0 0 16px;
  color: #fff !important;
  letter-spacing: 0.12em;
}
.vid-reco {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 14px;
}
.vid-reco-card strong { color: #f9fafb !important; }
.vid-reco-card em { color: #9ca3af !important; }
.vid-reco-card.is-on .vid-reco-poster {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .vid-reco { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .vid-wrap { width: min(100% - 28px, 1180px); }
  .vid-top { grid-template-columns: 1fr; gap: 22px; }
  .vid-stage { height: auto; width: min(100%, 420px); max-height: 72vh; margin: 0 auto; }
  .vid-reco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sk-preview {
  position: fixed;
  z-index: 90;
  width: max-content;
  max-width: 420px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  background: #121826 !important;
  color: #f3f4f6 !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.sk-preview strong {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.sk-preview .sk-meta {
  display: block;
  margin-top: 6px;
  color: #9ca3af !important;
}
.sk-preview p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
  color: #cbd5e1 !important;
  font-size: 0.84rem;
  line-height: 1.45;
}
.sk-preview-poster {
  position: relative;
  width: 132px;
  height: 176px;
  border-radius: 12px;
  overflow: hidden;
  background: #070b14;
}
.sk-preview-poster img,
.sk-preview-poster span {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  display: block !important;
}
.sk-preview-poster span {
  display: grid !important;
  place-items: center;
  color: #fff !important;
  font-size: 2rem;
  font-weight: 800;
}
.sk-preview-poster img[hidden],
.sk-preview-poster span[hidden] {
  display: none !important;
}
.vid-lock {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  background: rgba(0, 0, 0, 0.28);
}
.vid-lock .btn-ghost {
  background: rgba(0, 0, 0, 0.72) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
.vid-reco-card { width: 100%; text-align: left; }
.vid-reco-poster { width: 100%; }
