/* ============================================================
   Pantoufa landing — "SUMI · Ink & Ember"
   Editorial film-house: warm ink-black paper, bone type, one ember
   spark. High-contrast, type-led, hairlines instead of glow.
   Mirrors lib/theme.ts (the app's single source of truth).
   ============================================================ */
:root {
  /* Ink ramp — warm near-black, tonal steps (no glass-by-default) */
  --ink: #0A0A0B;
  --ink-deep: #050506;
  --surface: #141416;
  --surface-2: #1C1C1F;

  /* Ember — the single warm spark (Play · active · primary CTA only) */
  --ember: #FF5A2C;
  --ember-deep: #D6431D;
  --ember-soft: rgba(255, 90, 44, 0.12);
  --ember-line: rgba(255, 90, 44, 0.24);

  /* Semantic — one meaning each */
  --gold: #E8B84B;
  --cyan: #5FC6D8;
  --success: #34D17E;

  /* Text — warm editorial ramp (AA-verified on ink) */
  --bone: #F4F1EA;
  --bone-soft: rgba(244, 241, 234, 0.86);
  --ash: #A8A29A;
  --ash-dim: #8C867D;
  --faint: #565049;

  /* Hairlines — no glow */
  --line: rgba(244, 241, 234, 0.07);
  --line-2: rgba(244, 241, 234, 0.11);

  /* Crisper / print radii */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 100px;

  /* The only shadow Sumi leans on — soft ambient black lift */
  --shadow-card: 0 8px 22px -6px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 30px 70px -28px rgba(0, 0, 0, 0.85);

  --ar: 'Cairo', system-ui, sans-serif;
  --latin: 'Outfit', 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ar);
  background: var(--ink);
  color: var(--bone);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--ar); font-weight: 800; line-height: 1.18; letter-spacing: -0.3px; }
::selection { background: var(--ember); color: #fff; }

/* Latin tokens (wordmark, numerals, version, index numerals) */
.latin { font-family: var(--latin); font-feature-settings: "ss01"; }

/* ============ AMBIENT BACKGROUND — restraint, not neon ============ */
/* A single faint ember dawn at the top + a barely-there hairline grid
   that fades out. No colored blobs, no scanlines, no glow. */
.bg-grid {
  position: fixed; inset: 0; z-index: -4;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(255, 90, 44, 0.10), transparent 60%),
    radial-gradient(90% 60% at 85% 110%, rgba(255, 90, 44, 0.05), transparent 55%),
    var(--ink);
}
.bg-grid::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 70%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift { to { background-position: 72px 72px, 72px 72px; } }

/* legacy layers (kept in markup) — neutralised to faint film grain */
.bg-blobs { display: none; }
#particles { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5; }
.scanlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ NAV / MASTHEAD ============ */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(18px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 9px; }
/* ember spark mark — a crisp little square, not a glowing circle */
.nav__logo {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  border: 1px solid var(--line-2);
}
.nav__name { font-family: var(--ar); font-weight: 900; font-size: 1.2rem; letter-spacing: 0; }
.nav__links { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); font-weight: 600; }
.nav__links a { color: var(--ash); transition: color .2s; font-size: .95rem; }
.nav__links a:hover { color: var(--bone); }
.nav__cta {
  background: var(--ember); color: #fff !important; font-weight: 700;
  padding: 9px 20px; border-radius: var(--r-pill);
}
.nav__cta:hover { background: var(--ember-deep); }

/* ============ BUTTONS ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-pill); font-weight: 700; font-size: 1rem;
  font-family: var(--ar); cursor: pointer; transition: transform .22s, background .22s, border-color .22s;
}
.btn__icon { width: 20px; height: 20px; }
.btn__meta { font-size: .72rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); font-style: normal; }
/* primary = the single ember action. ambient lift only, no colored halo */
.btn--primary { color: #fff; background: var(--ember); box-shadow: var(--shadow-card); }
.btn--primary:hover { transform: translateY(-2px); background: var(--ember-deep); }
.btn--lg { padding: 18px 34px; font-size: 1.06rem; }
/* ghost = hairline outline, bone label (no frosted glass) */
.btn--ghost { color: var(--bone); border: 1px solid var(--line-2); background: transparent; }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--bone-soft); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(20px, 4vw, 64px);
  padding: 130px clamp(18px, 5vw, 64px) 70px;
  max-width: 1320px; margin: 0 auto;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ember-soft); border: 1px solid var(--ember-line);
  padding: 7px 15px; border-radius: var(--r-pill); font-size: .85rem; font-weight: 700;
  color: var(--bone); margin-bottom: 24px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--ember); animation: pulse 1.9s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero__title { font-size: clamp(2.7rem, 6.6vw, 5.2rem); font-weight: 900; letter-spacing: -1.5px; line-height: 1.04; }
/* NO gradient text — the second line is carried by the ember itself */
.grad-text { display: block; color: var(--ember); }
.hero__sub { color: var(--ash); font-size: clamp(1rem, 1.4vw, 1.2rem); margin: 24px 0 34px; max-width: 540px; line-height: 1.8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--bone);
}
.chip--muted { background: transparent; border-color: var(--line); color: var(--ash-dim); }
.chip__pulse { width: 7px; height: 7px; border-radius: 2px; background: var(--ember); animation: pulse 1.7s infinite; }

/* hero art */
.hero__art { position: relative; perspective: 1200px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero__glow {
  position: absolute; inset: -6% -4% -10% -4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255, 90, 44, 0.16), transparent 62%);
  filter: blur(48px);
}
.float-card {
  position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: rgba(20, 20, 22, 0.82); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 12px 18px;
  box-shadow: var(--shadow-card); animation: floaty 5s ease-in-out infinite;
}
.float-card strong { font-family: var(--latin); font-size: 1.4rem; font-weight: 900; color: var(--ember); letter-spacing: -.5px; }
.float-card span { font-size: .72rem; color: var(--ash); font-weight: 600; }
.float-card--1 { top: 12%; left: calc(50% - 232px); right: auto; animation-delay: .4s; }
.float-card--3 { bottom: 14%; right: calc(50% - 232px); left: auto; top: auto; animation-delay: .9s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--ink-deep);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 30px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--ar); font-weight: 800; font-size: 1.25rem; }
.marquee__track span { color: var(--ash); white-space: nowrap; letter-spacing: -.2px; }
.marquee__track span:nth-child(2n) { color: var(--faint); font-weight: 400; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ============ SECTIONS ============ */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ash); font-weight: 700; letter-spacing: 2.5px; font-size: .78rem;
  margin-bottom: 16px; text-transform: uppercase;
}
.kicker::before { content: ""; width: 14px; height: 2px; background: var(--ember); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--bone); }
.section-head p { color: var(--ash); margin-top: 14px; font-size: 1.06rem; }

.features, .install { padding: clamp(72px, 10vw, 120px) clamp(18px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-card); }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.55rem;
  border-radius: var(--r); background: var(--ember-soft); border: 1px solid var(--ember-line);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 8px; color: var(--bone); }
.card p { color: var(--ash); font-size: .97rem; }

/* steps — editorial ember index numerals (a Sumi signature) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 28px;
}
.step__num {
  display: block; font-family: var(--latin); font-weight: 900; font-size: 3rem; line-height: 1;
  color: var(--ember); letter-spacing: -2px; margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--bone); }
.step p { color: var(--ash); font-size: .95rem; }

.download-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 48px);
  position: relative; overflow: hidden;
}
.download-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 8% 0%, rgba(255, 90, 44, 0.10), transparent 60%);
}
.download-banner > div { position: relative; }
.download-banner h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--bone); }
.download-banner p { color: var(--ash); margin-top: 6px; max-width: 520px; }
.download-banner .btn { position: relative; }

/* ============ FOOTER ============ */
.footer { text-align: center; padding: 64px 20px 52px; border-top: 1px solid var(--line); }
.footer__logo { width: 48px; height: 48px; border-radius: 13px; margin: 0 auto 16px; border: 1px solid var(--line-2); }
.footer__name { font-family: var(--ar); font-weight: 900; font-size: 1.3rem; color: var(--bone); }
.footer__name span { font-family: var(--latin); color: var(--ash-dim); font-size: .85rem; font-weight: 600; margin-inline-start: 4px; }
.footer__copy { color: var(--faint); font-size: .85rem; margin-top: 10px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 85ms); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 116px; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  .hero__art { margin-top: 36px; max-width: 460px; margin-inline: auto; }
  .float-card--1 { top: 5%; left: -2%; } .float-card--3 { bottom: 11%; right: -2%; }
  .grid, .steps { grid-template-columns: 1fr; }
  .nav__links a:not(.nav__cta) { display: none; }
}
@media (max-width: 520px) {
  .float-card { padding: 9px 13px; } .float-card strong { font-size: 1.1rem; }
  .download-banner { flex-direction: column; text-align: center; align-items: stretch; }
  .download-banner .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   PHONE MOCKUPS — faithful reproduction of the live SUMI app
   (Ink & Ember: warm ink-black, bone type, one ember spark,
    hairlines instead of glow)
   ============================================================ */
:root {
  --app-bg: #0A0A0B; --app-surface: #141416; --app-2: #1C1C1F;
  --app-ember: #FF5A2C; --app-bone: #F4F1EA; --app-ash: #A8A29A;
  --app-dim: #8C867D; --app-faint: #565049; --app-gold: #E8B84B;
  --app-line: rgba(244, 241, 234, 0.08); --app-line2: rgba(244, 241, 234, 0.12);
}

.device {
  position: relative; flex-shrink: 0;
  width: min(340px, 80vw); aspect-ratio: 410 / 860;
  background: linear-gradient(160deg, #1a1a1d, #050506);
  border-radius: 42px; padding: 9px;
  border: 1px solid var(--app-line2);
  box-shadow: var(--shadow-lift);
}
.device__notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 19px; background: #050506; border-radius: 0 0 14px 14px; z-index: 6;
}
.device__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 34px; overflow: hidden; background: var(--app-bg);
  font-family: var(--ar); color: var(--app-bone); line-height: 1.5;
}
.device--hero { animation: floaty 6s ease-in-out infinite; }

.app { position: relative; width: 100%; }
.app--scroll { animation: appScroll 17s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes appScroll {
  0%, 8%   { transform: translateY(0); }
  50%, 60% { transform: translateY(-21%); }
  100%     { transform: translateY(0); }
}

/* masthead — ember spark square + Outfit wordmark */
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 10px; }
.app-logo { display: flex; align-items: center; gap: 6px; color: var(--app-bone); font-family: var(--latin); font-weight: 900; font-size: 17px; letter-spacing: -.6px; }
.app-logo__dot { width: 7px; height: 7px; border-radius: 2px; background: var(--app-ember); }
.app-topbtns { display: flex; gap: 8px; }
.app-glassbtn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; color: var(--app-bone); background: rgba(244, 241, 234, 0.04); border: 1px solid var(--app-line2); }
.app-glassbtn.sm { width: 28px; height: 28px; font-size: 15px; }
.app-glassbtn.ember { color: var(--app-ember); }

/* hero — full-bleed art, AA scrim, big bone title, outline tags */
.app-hero { position: relative; height: 224px; background-size: cover; background-position: center 18%; }
.app-hero__shade { position: absolute; inset: 0; background: linear-gradient(transparent 24%, rgba(10, 10, 11, 0.45) 56%, rgba(10, 10, 11, 0.92) 84%, var(--app-bg)); }
.app-hero__body { position: absolute; bottom: 22px; inset-inline: 0; padding: 0 14px; display: flex; flex-direction: column; gap: 9px; }
.app-chips { display: flex; gap: 6px; }
.app-chip { font-size: 8.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; color: var(--app-ash); background: transparent; border: 1px solid var(--app-line2); }
.app-hero__title { font-size: 23px; font-weight: 800; letter-spacing: -.6px; color: var(--app-bone); }
.app-hero__desc { font-size: 9px; color: var(--app-ash); line-height: 1.6; max-width: 82%; }
.app-hero__btns { display: flex; gap: 7px; margin-top: 4px; }
.app-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; font-weight: 700; padding: 9px 14px; border-radius: var(--r-pill); flex: 1; }
.app-btn--accent { color: #fff; background: var(--app-ember); }
.app-btn--ghost { color: var(--app-bone); background: transparent; border: 1px solid var(--app-line2); }
.app-btn.wide { width: 100%; padding: 11px; font-size: 11px; flex: none; }
.app-dots { position: absolute; bottom: 9px; inset-inline: 0; display: flex; justify-content: center; gap: 4px; }
.app-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(244, 241, 234, 0.22); }
.app-dots i.on { width: 16px; background: var(--app-ember); }

/* sections — crisp ember marginal rule + heavy bone title */
.app-sec { padding: 17px 14px 0; }
.app-sec__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; margin-bottom: 11px; color: var(--app-bone); }
.app-sec__head.sm { font-size: 12px; margin-top: 14px; }
.app-tick { width: 3px; height: 15px; border-radius: 0; background: var(--app-ember); }
.app-seeall { margin-inline-start: auto; font-size: 8.5px; font-weight: 600; color: var(--app-ash); }
.app-row { display: flex; gap: 10px; overflow: hidden; }

/* poster rank cards — artwork-first, oversized editorial numeral */
.app-card { position: relative; flex-shrink: 0; width: 86px; height: 122px; border-radius: var(--r); background-size: cover; background-position: center; border: 1px solid var(--app-line); box-shadow: var(--shadow-card); }
.app-rank { position: absolute; bottom: -9px; inset-inline-start: -3px; font-family: var(--latin); font-size: 40px; font-weight: 900; line-height: 1; color: var(--app-bone); letter-spacing: -2px; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.app-rate { position: absolute; top: 6px; inset-inline-end: 6px; font-family: var(--latin); font-size: 8px; font-weight: 700; color: var(--app-gold); background: rgba(0, 0, 0, .55); border: 1px solid var(--app-line2); padding: 2px 5px; border-radius: 5px; }

/* episode cards */
.app-ep { position: relative; flex-shrink: 0; width: 132px; height: 76px; border-radius: var(--r); background-size: cover; background-position: center; border: 1px solid var(--app-line); display: grid; place-items: center; overflow: hidden; }
.app-ep::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 11, 0.32); }
.app-ep__play { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; color: #fff; background: var(--app-ember); }
.app-ep__time { position: absolute; z-index: 2; bottom: 6px; inset-inline-start: 6px; font-family: var(--latin); font-size: 7.5px; color: var(--app-bone); background: rgba(0, 0, 0, .6); padding: 1px 5px; border-radius: 4px; }
.app-badge { position: absolute; z-index: 2; top: 6px; inset-inline-end: 6px; font-size: 7px; font-weight: 800; color: #fff; background: var(--app-ember); padding: 2px 6px; border-radius: 4px; }
.app-prog { position: absolute; z-index: 2; bottom: 0; inset-inline: 0; height: 3px; background: rgba(244, 241, 234, 0.18); }
.app-prog i { display: block; height: 100%; background: var(--app-ember); }

/* categories — surface tiles + hairline + ember mark (no rainbow gradients) */
.app-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.app-cat { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 13px; border-radius: var(--r); font-size: 10.5px; font-weight: 700; color: var(--app-bone); background: var(--app-surface); border: 1px solid var(--app-line); }
.app-cat::before { content: ""; width: 4px; height: 16px; border-radius: 0; background: var(--app-ember); }

/* floating nav — flat ink bar + hairline; active = ink-high chip + ember */
.app-nav { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: var(--r-pill); background: rgba(10, 10, 11, 0.86); backdrop-filter: blur(12px); border: 1px solid var(--app-line2); z-index: 8; box-shadow: 0 14px 30px -10px #000; }
.app-nav__item { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--app-dim); padding: 8px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.app-nav__item.on { font-size: 10px; font-weight: 700; color: var(--app-ember); background: var(--app-2); padding: 8px 13px; }
.app-nav__item.on::after { content: ""; width: 4px; height: 4px; border-radius: 2px; background: var(--app-ember); }

/* discover / my list */
.app-disc__head { display: flex; align-items: center; gap: 9px; padding: 18px 14px 10px; }
.app-disc__title { font-size: 19px; font-weight: 900; color: var(--app-bone); letter-spacing: -.4px; }
.app-count { font-family: var(--latin); font-size: 9px; font-weight: 700; color: var(--app-ember); background: var(--app-ember-soft, rgba(255, 90, 44, 0.12)); border: 1px solid var(--ember-line); padding: 2px 9px; border-radius: var(--r-pill); }
.app-search { display: flex; align-items: center; gap: 8px; margin: 0 14px 12px; height: 38px; padding: 0 13px; border-radius: var(--r); font-size: 10px; color: var(--app-dim); background: var(--app-surface); border: 1px solid var(--app-line); }
.app-search span { font-size: 13px; }
.app-gchips { display: flex; gap: 7px; padding: 0 14px 12px; overflow: hidden; }
.app-gchip { flex-shrink: 0; font-size: 9.5px; font-weight: 600; padding: 6px 13px; border-radius: var(--r-pill); color: var(--app-ash); background: var(--app-surface); border: 1px solid var(--app-line); white-space: nowrap; }
.app-gchip.on { color: #fff; background: var(--app-ember); border-color: transparent; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px; }
.app-grid span { aspect-ratio: 3 / 4; border-radius: var(--r); background-size: cover; background-position: center; border: 1px solid var(--app-line); }

/* anime detail */
.app-det__hero { position: relative; height: 215px; background-size: cover; background-position: center 15%; }
.app-det__top { position: absolute; top: 16px; inset-inline: 0; display: flex; justify-content: space-between; padding: 0 14px; z-index: 2; }
.app-det__shade { position: absolute; inset: 0; background: linear-gradient(transparent 34%, rgba(10, 10, 11, 0.72) 74%, var(--app-bg)); }
.app-det__body { position: relative; margin-top: -16px; padding: 0 14px; display: flex; flex-direction: column; gap: 9px; }
.app-det__title { font-size: 19px; font-weight: 900; color: var(--app-bone); letter-spacing: -.4px; }
.app-det__meta { display: flex; align-items: center; gap: 7px; font-family: var(--latin); font-size: 9px; color: var(--app-ash); }
.app-det__meta .app-rate { position: static; color: var(--app-gold); background: none; border: none; padding: 0; }
.app-eplist { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.app-eprow { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r); background: var(--app-surface); border: 1px solid var(--app-line); }
.app-eprow b { font-family: var(--latin); min-width: 18px; font-size: 13px; font-weight: 800; color: var(--app-ember); }
.app-eprow span { flex: 1; font-size: 10px; color: var(--app-bone); }
.app-eprow i { font-style: normal; font-size: 10px; color: var(--app-ember); }

/* ============ VIDEO PLAYER (true black, purposeful glass) ============ */
.app-player { position: relative; width: 100%; height: 100%; background: #000; background-size: cover; background-position: center; }
.app-player__scrim { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 38%, rgba(0, 0, 0, .65)); }
.app-pl__top { position: absolute; top: 16px; inset-inline: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; z-index: 3; }
.app-pl__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-pl__title b { font-size: 11px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-pl__title span { font-size: 8.5px; color: rgba(255, 255, 255, .7); }
.app-pl__icons { display: flex; gap: 9px; color: rgba(255, 255, 255, .9); font-size: 14px; }
.app-pl__center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 26px; z-index: 2; }
.app-pl__skip { font-size: 17px; color: rgba(255, 255, 255, .85); }
.app-pl__play { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #fff; background: var(--app-ember); }
.app-pl__bottom { position: absolute; bottom: 18px; inset-inline: 0; padding: 0 14px; z-index: 3; display: flex; flex-direction: column; gap: 9px; }
.app-pl__times { display: flex; justify-content: space-between; font-family: var(--latin); font-size: 8.5px; color: rgba(255, 255, 255, .85); font-weight: 600; }
.app-pl__bar { position: relative; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.app-pl__bar i { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 38%; border-radius: 3px; background: var(--app-ember); }
.app-pl__bar i::after { content: ""; position: absolute; inset-inline-end: -5px; top: 50%; transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%; background: var(--app-ember); box-shadow: 0 0 0 3px rgba(10, 10, 11, .55); }
.app-pl__ctrls { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.app-pl__ctrls span { font-size: 13px; color: rgba(255, 255, 255, .82); }
.app-pl__q { font-family: var(--latin); font-size: 8.5px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); padding: 3px 8px; border-radius: 5px; }

/* showcase layout */
.showcase { padding: clamp(60px, 9vw, 110px) clamp(18px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.phones { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.5vw, 30px); flex-wrap: wrap; }
.device--mini { width: 212px; animation: floaty 7s ease-in-out infinite; }
.device--center { width: 244px; z-index: 2; transform: translateY(-16px); animation: floaty 6.5s ease-in-out infinite .5s; }
.device--mini:nth-of-type(3) { animation-delay: 1s; }

@media (max-width: 900px) {
  .device--center { transform: none; }
  .phones { gap: 18px; }
}
