:root {
  color-scheme: dark;
  --bg-rgb: 5, 6, 11;
  --panel-rgb: 10, 12, 22;
  --ink-rgb: 255, 255, 255;
  --text-soft: #d6daf0;
  --eyebrow: #bff4ff;
  --ring-core: #0b0d18;
  --hero-shadow: rgba(0, 0, 0, .6);
  --card-shadow: none;
  --bg: #05060b;
  --bg-2: #0a0c16;
  --surface: rgba(var(--ink-rgb), 0.035);
  --surface-2: rgba(var(--ink-rgb), 0.06);
  --line: rgba(var(--ink-rgb), 0.08);
  --line-2: rgba(var(--ink-rgb), 0.14);
  --text: #eef1ff;
  --muted: #a3a9c7;
  --faint: #6c7293;
  --cyan: #39e0ff;
  --violet: #8b5cff;
  --pink: #ff4fd8;
  --gold: #ffc857;
  --good: #3ef0a1;
  --grad: linear-gradient(110deg, var(--cyan), var(--violet) 52%, var(--pink));
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 8px;
  --header-h: 68px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg-rgb: 246, 247, 252;
  --panel-rgb: 255, 255, 255;
  --ink-rgb: 18, 20, 45;
  --text-soft: #2c3152;
  --eyebrow: #075e73;
  --ring-core: #ffffff;
  --hero-shadow: rgba(255, 255, 255, .75);
  --card-shadow: 0 1px 2px rgba(18, 20, 45, .06), 0 8px 24px -12px rgba(18, 20, 45, .18);
  --bg: #f6f7fc;
  --bg-2: #e8eaf4;
  --surface: #ffffff;
  --surface-2: rgba(18, 20, 45, .05);
  --line: rgba(18, 20, 45, .09);
  --line-2: rgba(18, 20, 45, .16);
  --text: #0f1228;
  --muted: #4a5072;
  --faint: #737a98;
  --cyan: #0796b8;
  --violet: #6a3df2;
  --pink: #d02c9c;
  --gold: #a86a07;
  --good: #0f9a62;
}
[data-theme="light"] .orb { opacity: .28; }
[data-theme="light"] .panel, [data-theme="light"] .faq-item, [data-theme="light"] .steps li, [data-theme="light"] .episode-row, [data-theme="light"] .genre-index a { box-shadow: var(--card-shadow); }
[data-theme="light"] .card-poster, [data-theme="light"] .top10-poster { box-shadow: var(--card-shadow); }
[data-theme="light"] .wall-grid { opacity: .35; }
[data-theme="light"] .hero-scan { opacity: .15; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
h1, h2, h3, p, dd, td, a { overflow-wrap: break-word; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(139, 92, 255, .45); }

.sr-only, .sr-heading {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 6px;
  background: var(--text); color: var(--bg); font-weight: 600; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--faint); font-weight: 400; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker {
  font: 600 12px/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px;
}
.kicker a:hover { text-decoration: underline; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 68ch; }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- ambient background ---------- */
.cosmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-a { width: 46vw; height: 46vw; top: -18vw; right: -12vw; background: radial-gradient(circle, rgba(139, 92, 255, .55), transparent 65%); }
.orb-b { width: 40vw; height: 40vw; bottom: -20vw; left: -14vw; background: radial-gradient(circle, rgba(57, 224, 255, .32), transparent 65%); }
.grid-floor {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(var(--ink-rgb), .025) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--ink-rgb), .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-glow {
  color: #fff; background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 8px 28px -8px rgba(139, 92, 255, .7), inset 0 0 0 1px rgba(var(--ink-rgb), .18);
}
.btn-glow:hover { background-position: 100% 0; box-shadow: 0 10px 36px -6px rgba(255, 79, 216, .6), inset 0 0 0 1px rgba(var(--ink-rgb), .28); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(57, 224, 255, .55); box-shadow: 0 0 0 4px rgba(57, 224, 255, .08); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn svg { font-size: 18px; }
.btn-glow svg path[d^="M8 5"] { fill: currentColor; stroke: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); font-weight: 600; cursor: pointer; margin-top: 8px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .page-chat .site-header, .page-list .site-header, .page-info .site-header, .page-person .site-header, .page-error .site-header {
  background: rgba(var(--bg-rgb), .78); border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: -.01em; flex: none; }
.logo img { filter: drop-shadow(0 0 12px rgba(139, 92, 255, .55)); }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: var(--radius-pill); color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav .nav-search { display: none; }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.header-search {
  margin-left: auto; position: relative; display: flex; align-items: center;
  width: min(300px, 26vw); height: 42px; border-radius: var(--radius-pill); padding: 0 14px; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within { border-color: rgba(57, 224, 255, .6); box-shadow: 0 0 0 4px rgba(57, 224, 255, .1); }
.header-search svg { color: var(--faint); font-size: 17px; }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }
.header-search input::placeholder { color: var(--faint); }
.header-cta { min-height: 42px; padding: 0 16px; font-size: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

main { min-height: 60vh; }
.page-list main, .page-info main, .page-person main, .page-error main { padding-top: calc(var(--header-h) + 24px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 40px) 0 72px; isolation: isolate; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; margin: 0; z-index: -3; }
.hero-slide { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.06); }
.hero-slide.is-active img { animation: kenburns 14s linear forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.16) translate(-1%, -1%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), .94) 0%, rgba(var(--bg-rgb), .7) 40%, rgba(var(--bg-rgb), .05) 72%, rgba(var(--bg-rgb), .3) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(var(--bg-rgb), 0) 40%),
    linear-gradient(180deg, rgba(var(--bg-rgb), .6), rgba(var(--bg-rgb), 0) 22%),
    radial-gradient(ellipse at 20% 100%, rgba(139, 92, 255, .25), transparent 60%);
}
.hero-scan {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(var(--ink-rgb), .03) 0 1px, transparent 1px 3px);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: var(--radius-pill);
  background: rgba(57, 224, 255, .08); border: 1px solid rgba(57, 224, 255, .3); color: var(--eyebrow);
  font-size: 13px; font-weight: 500; margin-bottom: 22px; backdrop-filter: blur(8px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(62, 240, 161, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62, 240, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 240, 161, 0); } }
.hero h1 { font-size: clamp(38px, 5.4vw, 74px); font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.hero .lead { margin-top: 20px; color: var(--text-soft); }
.hero h1, .hero .lead, .eyebrow { filter: drop-shadow(0 2px 18px var(--hero-shadow)); }

.prompt {
  position: relative; margin-top: 30px; display: flex; align-items: center; gap: 10px; max-width: 680px;
  padding: 8px 8px 8px 50px; border-radius: var(--radius-pill);
  background: rgba(var(--panel-rgb), .72); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
}
.prompt::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); opacity: .55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.prompt:focus-within::before { opacity: 1; }
.prompt-icon { position: absolute; left: 20px; color: var(--cyan); font-size: 20px; }
.prompt input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; font-size: 16px; }
.prompt input::placeholder { color: var(--faint); }
.prompt-search { margin-top: 20px; }
.prompt-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-chips a {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 13px; color: var(--muted);
  background: rgba(var(--ink-rgb), .05); border: 1px solid var(--line); backdrop-filter: blur(8px); transition: all .2s;
}
.prompt-chips a:hover { color: var(--text); border-color: rgba(139, 92, 255, .6); background: rgba(139, 92, 255, .12); }














/* ---------- sections & rails ---------- */
.rail, .genres-block, .faq-block, .episodes { margin-top: clamp(48px, 7vw, 84px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 30px); }
.rail-controls { display: flex; align-items: center; gap: 8px; flex: none; }
.see-all { color: var(--muted); font-weight: 600; font-size: 14px; margin-right: 6px; transition: color .2s; }
.see-all:hover { color: var(--cyan); }
.rail-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-2); transition: border-color .2s, opacity .2s;
}
.rail-btn:hover { border-color: rgba(57, 224, 255, .6); }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail-btn svg { font-size: 18px; }
.rail-track {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 15vw, 196px); gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-people { grid-auto-columns: clamp(118px, 11vw, 150px); }

.card { position: relative; min-width: 0; }
.card-link { display: block; }
.card-poster {
  position: relative; margin: 0; aspect-ratio: 2 / 3; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; }
.card-poster::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: linear-gradient(135deg, rgba(57, 224, 255, .18), transparent 40%, rgba(255, 79, 216, .18));
}
.card-link:hover .card-poster, .card-link:focus-visible .card-poster {
  transform: translateY(-6px); border-color: rgba(139, 92, 255, .6);
  box-shadow: 0 18px 40px -16px rgba(139, 92, 255, .65), 0 0 0 1px rgba(57, 224, 255, .25);
}
.card-link:hover .card-poster::after { opacity: 1; }
.card-type {
  position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; background: rgba(var(--bg-rgb), .72); border: 1px solid var(--line-2); backdrop-filter: blur(6px);
}
.card .ring { position: absolute; right: 8px; bottom: 8px; transition: opacity .25s; }
.card-title { margin-top: 10px; font: 600 15px/1.3 "Inter", sans-serif; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--faint); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-person { text-align: center; }
.avatar-lg {
  margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg-2);
  border: 2px solid var(--line-2); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.card-person .card-link:hover .avatar-lg { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 255, .2), 0 12px 30px -10px rgba(139, 92, 255, .7); transform: translateY(-4px); }

/* rating ring */
.ring {
  --c: var(--good);
  display: grid; place-items: center; border-radius: 50%; flex: none;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(var(--ink-rgb), .12) 0);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.ring b { display: grid; place-items: center; border-radius: 50%; background: var(--ring-core); font: 700 12px/1 var(--display); }
.ring-sm { width: 38px; height: 38px; }
.ring-sm b { width: 31px; height: 31px; }
.ring-lg { width: 64px; height: 64px; }
.ring-lg b { width: 54px; height: 54px; font-size: 19px; }
.ring[style*="--p: 6"], .ring[style*="--p: 5"] { --c: var(--gold); }
.ring[style*="--p: 4"], .ring[style*="--p: 3"], .ring[style*="--p: 2"], .ring[style*="--p: 1"] { --c: #ff6b6b; }
.ring[style*="--p: 100"] { --c: var(--good); }

/* top 10 */
.top10 .rail-track { grid-auto-columns: clamp(190px, 21vw, 250px); counter-reset: n; }
.top10-item { position: relative; display: flex; align-items: flex-end; }
.top10-num {
  font: 700 clamp(110px, 12vw, 160px)/.78 var(--display); letter-spacing: -0.08em; margin-right: -22px; z-index: 0;
  color: transparent; -webkit-text-stroke: 2px rgba(139, 92, 255, .75);
  text-shadow: 0 0 30px rgba(139, 92, 255, .35);
}
.top10-poster {
  position: relative; z-index: 1; flex: 1; min-width: 0; aspect-ratio: 2 / 3; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line-2); transition: transform .35s var(--ease), box-shadow .35s;
}
.top10-poster img { width: 100%; height: 100%; object-fit: cover; }
.top10-poster .ring { position: absolute; right: 8px; bottom: 8px; }
.top10-poster:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -14px rgba(255, 79, 216, .6); }




.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.steps span { font: 700 14px/1 var(--display); color: var(--cyan); padding-top: 4px; }
.steps h3 { font-size: 17px; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 4px; }





.bubble-me { justify-self: end; max-width: 80%; padding: 10px 14px; border-radius: 10px 10px 2px 10px; background: linear-gradient(135deg, #3b5bff, var(--violet)); font-size: 14px; }
.bubble-ai { justify-self: start; width: 88%; padding: 12px 14px; border-radius: 10px 10px 10px 2px; background: rgba(var(--ink-rgb), .05); border: 1px solid var(--line); font-size: 14px; display: grid; gap: 10px; }
.mock-row { display: flex; align-items: center; gap: 12px; }
.mock-row img { border-radius: 6px; width: 46px; height: 69px; object-fit: cover; }
.mock-row strong { display: block; font-size: 14px; }
.mock-row em { display: block; font-style: normal; color: var(--gold); font-size: 12px; }
.typing-dots { width: auto; display: flex; gap: 5px; padding: 14px 16px; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.4s infinite both; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* genres */
.genre-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 40vw), 1fr)); gap: 14px; }
.genre-tile { position: relative; aspect-ratio: 16 / 8; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); isolation: isolate; }
.genre-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease), filter .6s; filter: saturate(.9); }
.genre-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(var(--bg-rgb), .92) 20%, rgba(var(--bg-rgb), .35)); }
.genre-tile span { position: absolute; left: 16px; bottom: 14px; font: 700 20px/1 var(--display); }
.genre-tile:hover img { transform: scale(1.08); filter: saturate(1.2); }
.genre-tile:hover { border-color: rgba(57, 224, 255, .5); }

/* poster wall CTA */
.wall { position: relative; margin-top: clamp(64px, 9vw, 120px); padding: clamp(80px, 12vw, 150px) 0; overflow: hidden; isolation: isolate; text-align: center; }
.wall-grid {
  position: absolute; inset: -20% -10%; z-index: -2; display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px;
  transform: rotate(-8deg) perspective(900px) rotateX(18deg); opacity: .5;
}
.wall-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.wall::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(var(--bg-rgb), .7), var(--bg) 72%); }
.wall h2 { font-size: clamp(32px, 5vw, 64px); }
.wall p { color: var(--muted); font-size: 18px; margin: 14px 0 28px; }

/* faq */
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq-item[open] { border-color: rgba(139, 92, 255, .45); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--cyan); transition: transform .25s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary h2, .faq-item summary h3 { font: 600 17px/1.4 "Inter", sans-serif; letter-spacing: 0; display: inline; }
.faq-item p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- title pages ---------- */
.title-hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + 28px) 0 48px; overflow: hidden; }
.title-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; z-index: -2; }
.title-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), .97) 25%, rgba(var(--bg-rgb), .78) 60%, rgba(var(--bg-rgb), .55)),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 40%);
}
.crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--faint); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current] { color: var(--muted); }
.title-grid { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.title-poster { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(139, 92, 255, .15); }
.title-poster img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.title-info h1 { font-size: clamp(32px, 4.6vw, 58px); }
.title-year { color: var(--muted); font-weight: 500; }
.facts-line { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.facts-line li + li::before { content: "•"; margin-right: 18px; color: var(--faint); }
.facts-line .cert { border: 1px solid var(--line-2); border-radius: 6px; padding: 0 8px; color: var(--text); font-weight: 600; font-size: 13px; line-height: 24px; }
.facts-line .cert + li::before { content: none; }
.tags, .keywords { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a, .keywords li {
  display: inline-block; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line-2); transition: border-color .2s, color .2s;
}
.tags a:hover { border-color: var(--cyan); color: var(--cyan); }
.keywords li { color: var(--muted); }
.score-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; }
.score-row > p { display: flex; flex-direction: column; line-height: 1.3; margin-right: 8px; }
.score-row > p span { color: var(--faint); font-size: 13px; }
.tagline { margin-top: 24px; color: var(--muted); font-style: italic; font-size: 17px; }
.overview { margin-top: 12px; font-size: 17px; line-height: 1.7; max-width: 72ch; color: var(--text-soft); }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 16px 24px; margin: 26px 0 0; }
.credits dt { color: var(--faint); font-size: 13px; }
.credits dd { margin: 2px 0 0; font-weight: 600; }
.credits a:hover, .facts a:hover, .filmography a:hover, .prose a:hover { color: var(--cyan); }
.title-hero-compact .title-grid { grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); }
.season-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.season-switch a { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.season-switch a[aria-current] { background: var(--grad); border-color: transparent; }

.title-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 8px; align-items: start; }
.title-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.title-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; position: sticky; top: calc(var(--header-h) + 16px); }
.panel { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: 21px; margin-bottom: 16px; }
.container.panel { margin-top: 24px; }
.provider-group + .provider-group { margin-top: 16px; }
.provider-group h3 { font: 600 12px/1 "Inter"; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.provider-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.provider-group li { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.provider-group img { width: 34px; height: 34px; border-radius: 8px; }
.fine { color: var(--faint); font-size: 13px; margin-top: 16px; }
.fine a { text-decoration: underline; }
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: #000; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s, transform .6s var(--ease); }
.video-thumb:hover img { opacity: 1; transform: scale(1.03); }
.play-orb {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 0 10px rgba(var(--ink-rgb), .1), 0 10px 40px rgba(139, 92, 255, .8);
}
.play-orb svg { font-size: 30px; fill: #fff; stroke: none; margin-left: 4px; }
.video-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; text-align: left; font-weight: 600; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
.episode-card { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.episode-card img { border-radius: 6px; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.episode-card h3 { font-size: 18px; margin-bottom: 6px; }
.episode-card p:not(.kicker) { color: var(--muted); font-size: 15px; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.season-card { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.season-card:hover { border-color: rgba(139, 92, 255, .6); transform: translateY(-2px); }
.season-card img { width: 58px; height: 87px; object-fit: cover; border-radius: 8px; }
.season-card strong { display: block; }
.season-card em { font-style: normal; color: var(--faint); font-size: 13px; }
.ask-panel { background: linear-gradient(140deg, rgba(57, 224, 255, .08), rgba(139, 92, 255, .1) 50%, rgba(255, 79, 216, .07)); border-color: rgba(139, 92, 255, .3); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-chips .btn, .score-row .btn-ghost { white-space: normal; text-align: left; line-height: 1.3; padding-block: 8px; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts dt { color: var(--faint); font-size: 13px; }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.facts-inline { grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); margin-top: 18px; }

/* episodes list */
.episodes h2 { font-size: 26px; margin-bottom: 18px; }
.episode-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.episode-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: start; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.episode-row img { border-radius: 6px; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); }
.episode-row h3 { font-size: 18px; margin-bottom: 6px; }
.episode-row p:not(.kicker) { color: var(--muted); font-size: 15px; }

/* person */
.person-grid { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.person-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -24px rgba(139, 92, 255, .55); }
.person-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.person-info h1 { font-size: clamp(34px, 4.8vw, 60px); }
.bio { margin-top: 22px; color: var(--text-soft); font-size: 16px; line-height: 1.75; max-width: 75ch; }
.bio p + p { margin-top: 12px; }
.bio.is-clamped { max-height: 15.5em; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.filmography h2 { display: flex; align-items: center; gap: 10px; }
.count { font: 600 13px/1 "Inter"; padding: 5px 9px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--muted); }
.filmography table { width: 100%; border-collapse: collapse; font-size: 15px; }
.filmography th { text-align: left; color: var(--faint); font-weight: 500; font-size: 13px; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.filmography td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.filmography td:first-child { color: var(--muted); width: 70px; font-variant-numeric: tabular-nums; }
.filmography td:nth-child(2) a { font-weight: 600; }
.media-tag { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); color: var(--faint); margin-left: 6px; }

/* lists */
.page-head { padding-bottom: 8px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 12px; }
.tabs, .genre-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 22px; padding-bottom: 4px; }
.tabs::-webkit-scrollbar, .genre-chips::-webkit-scrollbar { display: none; }
.tabs a, .genre-chips a { flex: none; padding: 9px 16px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: all .2s; }
.genre-chips a { padding: 7px 13px; font-size: 13px; }
.tabs a:hover, .genre-chips a:hover { color: var(--text); border-color: var(--line-2); }
.tabs a[aria-current], .genre-chips a[aria-current] { color: #fff; background: var(--grad); border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 42vw), 1fr)); gap: 28px clamp(12px, 2vw, 22px); margin-top: 28px; }
.genre-index { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.genre-index a { display: block; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; transition: border-color .2s, transform .2s; }
.genre-index a:hover { border-color: var(--violet); transform: translateY(-2px); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 48px 0 0; }
.pager ol { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.pager a, .pager span, .pager .gap { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.pager .gap { border: 0; background: none; color: var(--faint); }
.pager a:hover { border-color: var(--cyan); }
.pager [aria-current] { background: var(--grad); border-color: transparent; }

/* prose & error */
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 14px; }
.prose h2 { font-size: 24px; margin: 38px 0 12px; }
.prose p, .prose li { color: var(--text-soft); font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose .btn { margin-top: 28px; }
.prose .faq-list { margin-top: 28px; }
.prose .faq-item summary h2 { margin: 0; font-size: 17px; }
.prose .faq-list + p { margin-top: 28px; }
.error-block { text-align: center; padding-block: 60px 20px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; }
.error-code { font: 700 clamp(96px, 18vw, 180px)/1 var(--display); letter-spacing: -0.05em; }
.error-block h1 { font-size: clamp(28px, 4vw, 44px); }
.error-block .prompt { width: 100%; max-width: 560px; padding-left: 18px; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--panel-rgb), .4), var(--bg)); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin: 16px 0 20px; max-width: 38ch; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav h2 { font: 600 13px/1 "Inter"; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.site-footer nav a { color: var(--muted); font-size: 15px; transition: color .2s; }
.site-footer nav a:hover { color: var(--text); }
.footer-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--faint); font-size: 13px; }
.footer-legal a:not(.tmdb) { color: var(--muted); text-decoration: underline; }
.tmdb { width: max-content; }

/* ---------- trailer modal ---------- */
.trailer-modal { width: min(1100px, 94vw); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: #000; overflow: visible; color: var(--text); }
.trailer-modal::backdrop { background: rgba(3, 4, 8, .86); backdrop-filter: blur(8px); }
.trailer-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.trailer-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer-close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
.trailer-close svg { font-size: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-search { width: min(320px, 34vw); }
  .main-nav.is-open {
    display: flex; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; padding: 12px var(--gutter) 20px;
    background: rgba(var(--bg-rgb), .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px);
  }
  .main-nav.is-open a { padding: 14px 12px; font-size: 17px; }
  .main-nav.is-open .nav-search { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .title-body { grid-template-columns: 1fr; }
  .title-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {


  .wall-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .header-row { gap: 10px; }
  .header-search { display: none; }
  .theme-toggle { margin-left: auto; }
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 8%, rgba(var(--bg-rgb), .82) 55%, rgba(var(--bg-rgb), .55)); }

  .prompt { padding-left: 44px; border-radius: 8px; flex-wrap: wrap; }
  .prompt-icon { left: 16px; top: 22px; }
  .prompt .btn { width: 100%; }
  .prompt-search, .error-block .prompt { flex-wrap: nowrap; padding-left: 44px; border-radius: var(--radius-pill); }
  .prompt-search .btn, .error-block .prompt .btn { width: auto; }
  .error-block .prompt { padding-left: 18px; }
  .title-grid, .person-grid { grid-template-columns: 1fr; }
  .title-poster, .person-photo { width: min(230px, 60vw); }
  .title-hero-compact .title-grid { grid-template-columns: 1fr; }
  .rail-btn { display: none; }
  .episode-card, .episode-row { grid-template-columns: 1fr; }
  .episode-row .ring { justify-self: start; }
  .filmography td:nth-child(3) { display: none; }
  .filmography th:nth-child(3) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .genre-tile span { font-size: 16px; left: 12px; bottom: 10px; }
}
@media (max-width: 380px) {
  .header-cta { padding: 0 12px; }
}
@media (max-width: 350px) {
  .header-cta span { display: none; }
}
@media (max-width: 380px) {
  .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  transition: border-color .2s, transform .2s var(--ease);
}
.theme-toggle:hover { border-color: rgba(57, 224, 255, .6); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { font-size: 19px; }
.theme-toggle .icon-sun, [data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* ---------- always-light text on media ---------- */
.video-name, .bubble-me, .trailer-close { color: #fff; }
.trailer-close { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }

/* ---------- section accents ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- trending ticker ---------- */
.ticker {
  position: relative; overflow: hidden; border-block: 1px solid var(--line);
  background: rgba(var(--panel-rgb), .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; font: 600 15px/1 var(--display); white-space: nowrap; color: var(--muted); transition: color .2s; }
.ticker li a:hover { color: var(--text); }
.ticker li a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.ticker li b { color: var(--gold); font-weight: 600; font-size: 13px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- poster hover preview ---------- */
.card-hover {
  position: absolute; inset: auto 0 0; padding: 40px 12px 12px; font-size: 12.5px; line-height: 1.45; color: #e9ecfb;
  background: linear-gradient(0deg, rgba(5, 6, 11, .95) 55%, transparent);
  opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
@media (hover: hover) {
  .card-link:hover .card-hover, .card-link:focus-visible .card-hover { opacity: 1; transform: none; }
  .card-link:hover .card-poster .ring { opacity: 0; }
}
@media (hover: none) { .card-hover { display: none; } }

/* ---------- AI x cinema motion ---------- */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.hero-neural { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
[data-theme="light"] .hero-neural { opacity: .45; }
.hero-beam {
  position: absolute; left: 0; right: 0; top: 0; height: 180px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(57, 224, 255, .07) 42%, rgba(57, 224, 255, .28) 50%, rgba(139, 92, 255, .07) 58%, transparent);
  animation: beam 8s cubic-bezier(.55, 0, .45, 1) infinite;
}
@keyframes beam {
  0% { transform: translateY(-200px); opacity: 0; }
  12%, 82% { opacity: 1; }
  100% { transform: translateY(1000px); opacity: 0; }
}

.prompt::before { background: conic-gradient(from var(--spin), var(--cyan), var(--violet), var(--pink), var(--cyan)); animation: spin 5s linear infinite; }
.prompt { box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .55), 0 0 40px -12px rgba(139, 92, 255, .45); }
@keyframes spin { to { --spin: 360deg; } }

.grad-text {
  background-image: linear-gradient(110deg, var(--cyan), var(--violet) 25%, var(--pink) 50%, var(--violet) 75%, var(--cyan));
  background-size: 200% auto; animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }





.ticker { border: 0; padding-block: 9px; }
.ticker::before, .ticker::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(var(--ink-rgb), .2) 0 10px, transparent 10px 22px);
}
.ticker::before { top: 3px; }
.ticker::after { bottom: 3px; }

.top10-num { background: linear-gradient(180deg, rgba(139, 92, 255, .35), transparent 80%); -webkit-background-clip: text; background-clip: text; }

.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }













@media (prefers-reduced-motion: reduce) {
  .hero-beam, .hero-neural { display: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

[data-theme="light"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), .96) 0%, rgba(var(--bg-rgb), .82) 45%, rgba(var(--bg-rgb), .45) 78%, rgba(var(--bg-rgb), .6) 100%),
    linear-gradient(0deg, var(--bg) 4%, rgba(var(--bg-rgb), 0) 45%),
    linear-gradient(180deg, rgba(var(--bg-rgb), .7), rgba(var(--bg-rgb), 0) 25%);
}
[data-theme="light"] .hero-slide img, [data-theme="light"] .title-backdrop { filter: saturate(.85) brightness(1.15); }
[data-theme="light"] .title-shade {
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), .97) 30%, rgba(var(--bg-rgb), .86) 65%, rgba(var(--bg-rgb), .7)),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 40%);
}

/* ---------- chatbot-first layout ---------- */
.hero-inner { grid-template-columns: minmax(0, 1fr) 400px; }
.hero h1 { max-width: 15ch; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.hero-trust span::before { content: "\2713"; color: var(--good); font-weight: 700; margin-right: 6px; }

.hero-chat {
  position: relative; display: grid; border-radius: var(--radius); overflow: hidden;
  background: rgba(var(--panel-rgb), .78); border: 1px solid var(--line-2);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(139, 92, 255, .18), 0 0 60px -20px rgba(139, 92, 255, .55);
}
.hero-chat::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.hero-chat-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hero-chat-avatar img { border-radius: 8px; }
.hero-chat-bar b { display: block; font: 600 15px/1.2 var(--display); }
.hero-chat-bar em { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: 12px; color: var(--good); }
.hero-chat-bar .pulse { width: 6px; height: 6px; }
.hero-chat-body { position: relative; min-height: 340px; padding: 16px; }
.demo { display: none; gap: 12px; }
.demo.is-active { display: grid; }
.demo .bubble-ai { width: 100%; }
.demo .typing-dots { width: max-content; display: none; }
.mock-row { padding: 4px; margin: -4px; border-radius: 8px; transition: background .2s; }
.mock-row:hover { background: rgba(var(--ink-rgb), .06); }
.hero-chat-input {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 16px 16px; padding: 10px 10px 10px 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: rgba(var(--ink-rgb), .04); color: var(--faint); font-size: 14px;
  transition: border-color .2s;
}
.hero-chat-input:hover { border-color: rgba(57, 224, 255, .6); color: var(--muted); }
.send-dot { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.send-dot svg { font-size: 16px; }

.js .demo.is-active .bubble-me { animation: pop .45s var(--ease) both; }
.js .demo.is-active .typing-dots { display: flex; animation: typing-show 1.3s .45s both; }
.js .demo.is-active .demo-answer { animation: pop .5s var(--ease) 1.7s both; }
.js .demo.is-active .demo-answer .mock-row { animation: pop .45s var(--ease) both; }
.js .demo.is-active .demo-answer .mock-row:nth-of-type(1) { animation-delay: 2s; }
.js .demo.is-active .demo-answer .mock-row:nth-of-type(2) { animation-delay: 2.2s; }
.js .demo.is-active .demo-answer .mock-row:nth-of-type(3) { animation-delay: 2.4s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes typing-show { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.section-head-center { justify-content: center; text-align: center; }
.section-head-center .kicker { justify-content: center; }
.section-lead { color: var(--muted); margin-top: 10px; font-size: 17px; }
.ask-grid-block, .how-block { margin-top: clamp(56px, 8vw, 96px); }
.ask-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.ask-card {
  position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--card-shadow); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.ask-card:hover { border-color: rgba(139, 92, 255, .5); transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(139, 92, 255, .6); }
.ask-icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 14px; color: #fff;
  background: var(--grad); box-shadow: 0 8px 20px -8px rgba(139, 92, 255, .8);
}
.ask-icon svg { font-size: 22px; }
.ask-card h3 { font-size: 19px; }
.ask-card > p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.ask-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ask-card li a {
  display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-soft);
  background: rgba(var(--ink-rgb), .04); border: 1px solid var(--line); transition: border-color .2s, color .2s, background .2s;
}
.ask-card li a::after { content: " \2192"; color: var(--cyan); opacity: 0; transition: opacity .2s; }
.ask-card li a:hover { border-color: rgba(57, 224, 255, .5); color: var(--text); background: rgba(57, 224, 255, .06); }
.ask-card li a:hover::after { opacity: 1; }

.steps-row { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin: 0; }
.center-cta { text-align: center; margin-top: 28px; }

.ask-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
  color: var(--text); background: rgba(139, 92, 255, .12); border: 1px solid rgba(139, 92, 255, .35); margin-right: 6px;
  max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, border-color .2s;
}
.ask-link::before { content: "\2726"; color: var(--cyan); }
.ask-link:hover { background: rgba(139, 92, 255, .22); border-color: rgba(139, 92, 255, .6); }

.nav-ai { display: inline-flex; align-items: center; gap: 6px; color: var(--text) !important; }
.nav-ai svg { color: var(--cyan); font-size: 15px; }

.prompt-inline { margin: 4px 0 16px; max-width: none; }
.ask-panel .kicker { margin-bottom: 4px; }

.ask-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; max-width: min(320px, calc(100vw - 32px));
  background: rgba(var(--panel-rgb), .9); border: 1px solid rgba(139, 92, 255, .45); color: var(--text); font-weight: 600; font-size: 15px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -12px rgba(139, 92, 255, .65), 0 0 0 1px rgba(57, 224, 255, .12);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.ask-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 48px -12px rgba(255, 79, 216, .6), 0 0 0 1px rgba(57, 224, 255, .3); }
.ask-fab-orb { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; }
.ask-fab-orb::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(139, 92, 255, .6); animation: fab-ring 2.4s var(--ease) infinite; }
.ask-fab-orb svg { font-size: 19px; }
.ask-fab-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes fab-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-chat { max-width: 560px; }
  .main-nav.is-open .nav-ai { display: inline-flex; }
}
@media (max-width: 760px) {
  .hero-chat-body { min-height: 300px; }
  .ask-link { display: none; }
  .ask-fab { padding: 8px; }
  .ask-fab-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .demo .typing-dots { display: none !important; }
}

/* ---------- performance ---------- */
.demo { grid-template-areas: "question" "answer"; }
.demo .bubble-me { grid-area: question; }
.demo .typing-dots, .demo .demo-answer { grid-area: answer; align-self: start; }
.hero-slide:not(.is-active) img:not([src]) { visibility: hidden; }

@media (max-width: 760px), (hover: none) {
  .hero-neural, .hero-beam, .hero-scan { display: none; }
  .prompt::before, .grad-text { animation: none; }
  .hero-slide.is-active img { animation: none; }
}
