/* Amelix landing — the app's theme (Figma A046_ShortDrama): ground #110F10, cards #2B2629 / #342E31, lines #675D62,
   muted text #A49EA1, primary red #DB2E4A with its gradient to #FF6D3B, gold #F4B63F for HOT. Raleway for titles,
   Roboto for text; Noto Sans Arabic / Devanagari / JP / KR / SC where the script needs them.
   Logical properties throughout so Arabic and Persian (dir="rtl") mirror cleanly. */

:root {
  --bg: #110f10;
  --bg-2: #0b0a0b;
  --card: #1c191b;
  --card-2: #2b2629;
  --card-3: #342e31;
  --line: rgba(255, 255, 255, .08);
  --line-2: #675d62;
  --red: #db2e4a;
  --orange: #ff6d3b;
  --gold: #f4b63f;
  --grad: linear-gradient(135deg, #db2e4a 0%, #ff6d3b 100%);
  --grad-text: linear-gradient(100deg, #ff6d8a 0%, #ff6d3b 100%);
  --white: #fff;
  --body: #d8d3d5;
  --muted: #a49ea1;
  --shadow: 0 14px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, .6);
  --glow: 0 10px 28px rgba(219, 46, 74, .4);
  --title: 'Raleway', 'Roboto', system-ui, sans-serif;
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
html[data-script="grek"] { --title: 'Roboto', system-ui, sans-serif; }
html[data-script="arab"] { --font: 'Noto Sans Arabic', 'Roboto', system-ui, sans-serif; --title: var(--font); }
html[data-script="deva"] { --font: 'Noto Sans Devanagari', 'Roboto', system-ui, sans-serif; --title: var(--font); }
html[data-script="jp"] { --font: 'Noto Sans JP', 'Roboto', system-ui, sans-serif; --title: var(--font); }
html[data-script="kr"] { --font: 'Noto Sans KR', 'Roboto', system-ui, sans-serif; --title: var(--font); }
html[data-script="sc"] { --font: 'Noto Sans SC', 'Roboto', system-ui, sans-serif; --title: var(--font); }

*, *::before, *::after { box-sizing: border-box; }
/* the ground lives on <html> so the fixed cinema layer (z-index -1) paints above it — a body background would cover it */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); color: var(--body); font-size: 16px; line-height: 1.6;
  background: transparent;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100vh;
}
html[dir="rtl"] body { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.i18n-wait main, .i18n-wait .site-header { opacity: 0; }
main, .site-header { transition: opacity .25s; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: #fff; color: #000; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.container { width: min(1180px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ambient { display: none; }
/* ---------- the cinema: the app's posters, blurred and dissolving into one another behind everything (cinema.js) ---------- */
.cinema { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.cinema .still { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; opacity: 0; transition: opacity 2.6s ease; will-change: opacity, transform; }
.cinema .still.on { opacity: .9; }
.cinema .still:is(.on, .out) { animation: pan 11s linear both; }
.cinema .still.alt:is(.on, .out) { animation-name: pan2; }
@keyframes pan { from { transform: scale(1.02) translate3d(-2%, 1.5%, 0); } to { transform: scale(1.14) translate3d(2%, -1.5%, 0); } }
@keyframes pan2 { from { transform: scale(1.14) translate3d(2%, 1%, 0); } to { transform: scale(1.03) translate3d(-2%, -1%, 0); } }
.cinema::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(130% 85% at 50% 0%, rgba(17, 15, 16, .05), rgba(17, 15, 16, .62) 62%, rgba(17, 15, 16, .9) 100%),
    linear-gradient(180deg, rgba(219, 46, 74, .14), rgba(17, 15, 16, 0) 40%); }
.lite .cinema .still.on { opacity: .75; }

/* ---------- buttons, cards ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 22px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .25s var(--spring), box-shadow .25s, background-color .2s; -webkit-user-select: none; user-select: none; }
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(219, 46, 74, .55); transform: translateY(-2px); }
.btn-ghost { color: var(--white); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.card { position: relative; padding: 18px 20px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--title); font-size: 16px; font-weight: 700; color: var(--white); }
.card-title .ic { width: 18px; height: 18px; color: var(--red); }
.card-title.small { font-size: 13px; color: var(--muted); margin: 14px 0 8px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 8px; font-family: var(--title); font-size: 12px; font-weight: 600; font-style: normal; letter-spacing: .02em; color: #fff; background: var(--red); }
.badge.hot { background: var(--red); color: #fff; }
.badge.new { background: var(--gold); color: #110f10; }
.badge .ic { width: 14px; height: 14px; color: #ffb36b; }
.kw .badge { height: 18px; padding: 0 6px; border-radius: 6px; font-size: 10px; }
.kw .badge .ic { width: 11px; height: 11px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.facts .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: #fff; background: var(--grad); }
.facts b { display: block; font-family: var(--title); font-size: 15.5px; color: var(--white); }
.facts span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.hint { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.hint .ic { color: var(--orange); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top); transition: background-color .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(17, 15, 16, .86); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.lite .site-header.is-scrolled { background: rgba(17, 15, 16, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 18px rgba(219, 46, 74, .35); }
.brand-name { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 21px; color: var(--white); line-height: 1; letter-spacing: -.01em; }
.main-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.main-nav a { padding: 9px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; white-space: nowrap; }
.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.main-nav a.is-active { color: var(--white); background: rgba(219, 46, 74, .2); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }
.lang-menu { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--white); font-weight: 700; font-size: 13px; }
.lang-btn .chev { width: 14px; height: 14px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; max-height: min(70vh, 460px); overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: #1c191b; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); z-index: 10; }
.lang-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--body); }
.lang-list li small { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.lang-list li:hover, .lang-list li:focus { background: rgba(255, 255, 255, .06); outline: none; color: var(--white); }
.lang-list li[aria-selected="true"] { color: var(--white); background: rgba(219, 46, 74, .22); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.menu-toggle span { position: absolute; inset-inline-start: 12px; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.progress-track { position: absolute; inset: auto 0 0; height: 2px; }
.progress-fill { height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .progress-fill { transform-origin: 100% 50%; }
.site-header.is-compact .main-nav { display: none; }
.site-header.is-compact .menu-toggle { display: block; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 116px) 0; overflow-x: clip; }
.section-head { max-width: 760px; margin: 0 auto clamp(34px, 5vw, 52px); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #ffd0d8; background: rgba(219, 46, 74, .16); box-shadow: inset 0 0 0 1px rgba(219, 46, 74, .35); }
.kicker .ic { width: 17px; height: 17px; color: var(--orange); }
.section-title { margin: 0; font-family: var(--title); font-weight: 800; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; color: var(--white); letter-spacing: -.015em; text-wrap: balance; }
.section-sub { margin: 16px auto 0; max-width: 640px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); text-wrap: pretty; }
.form-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.form-note .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--orange); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; justify-content: center; }
.demo-grid.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
.demo-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; border: 0; border-radius: 999px; padding: 9px 16px; background: none; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: var(--glow); }

/* ============ HERO ============ */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: calc(var(--header-h) + 28px) 0 70px; overflow-x: clip; }
.hero-grid { position: relative; }
.hero-copy { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "chip visual" "title visual" "sub visual" "ctas visual" "feats visual"; column-gap: 40px; align-items: center; }
.live-chip { grid-area: chip; align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: #ffd0d8; background: rgba(219, 46, 74, .14); box-shadow: inset 0 0 0 1px rgba(219, 46, 74, .4); }
.live-chip b { font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 109, 59, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 109, 59, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 109, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 109, 59, 0); } }
.hero-title { grid-area: title; margin: 0; font-family: var(--title); font-weight: 800; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; color: var(--white); letter-spacing: -.02em; text-wrap: balance; }
.hero-sub { grid-area: sub; margin: 22px 0 0; max-width: 560px; font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--body); }
.hero-ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-features { grid-area: feats; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero-features li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--white); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.hero-features .ic { width: 17px; height: 17px; color: var(--orange); }
.hero-visual { grid-area: visual; position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage3d { position: relative; width: 100%; aspect-ratio: 1; max-width: 620px; margin-inline: auto; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.stage-fallback { position: absolute; left: 50%; top: 50%; width: 46%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; transform: translate(-50%, -50%) rotate(-4deg); box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.stage3d.is-3d .stage-fallback { opacity: 0; transition: opacity .8s; animation: none; }
/* the fallback art stays under the canvas: it must never catch the pointer, or the browser starts an image drag and
   cancels the spin (pointercancel) */
.stage3d img { pointer-events: none; -webkit-user-drag: none; }
.stage3d:active, .stage3d.is-grabbing { cursor: grabbing; }
.stage3d canvas { position: absolute; inset: -10%; width: 120% !important; height: 120% !important; pointer-events: none; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
/* "Tonight's pick" under the 3D screen: placed by hero3d.js (--x / --y from the screen's bottom edge) */
.now-showing { position: absolute; left: 0; top: 0; z-index: 3; display: grid; justify-items: center; gap: 2px; max-width: min(92%, 440px); padding: 8px 20px 9px; border: 0; border-radius: 10px; color: #fff; text-align: center; cursor: pointer;
  background: linear-gradient(180deg, rgba(46, 12, 19, .94), rgba(22, 7, 9, .94)); box-shadow: 0 12px 30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 210, 122, .32), 0 0 26px rgba(255, 180, 90, .16);
  transform: translate(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) + 10px)); opacity: 0; transition: opacity .5s, box-shadow .25s; }
.now-showing.is-shown { opacity: 1; }
.now-showing:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 210, 122, .6), 0 0 34px rgba(255, 180, 90, .3); }
.now-showing small { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd27a; }
.now-showing b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Oswald', var(--title); font-size: 17px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.25; }
.now-showing span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.stage-hint { display: flex; align-items: center; gap: 8px; max-width: 420px; margin: 4px auto 0; font-size: 12.5px; color: var(--muted); text-align: center; justify-content: center; }
.stage-hint .ic { width: 16px; height: 16px; color: var(--orange); }
.scroll-cue { position: absolute; bottom: 22px; inset-inline-start: 50%; width: 26px; height: 42px; margin-inline-start: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--red); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.is-paused .stage-fallback, .is-paused .live-dot { animation-play-state: paused; }

/* ============ PHONE ============ */
.phone { position: relative; width: 100%; max-width: 380px; height: 760px; justify-self: center; overflow: hidden; border-radius: 42px; background: var(--bg); box-shadow: var(--shadow-lg), 0 0 0 10px #050405, 0 0 0 11px #2b2629, 0 0 90px rgba(219, 46, 74, .14); -webkit-user-select: none; user-select: none; display: flex; flex-direction: column; }
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
.wordmark { height: 22px; width: auto; }
.ph-icon { width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: #fff; }
.ph-icon .ic { width: 22px; height: 22px; }
.ph-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.ph-scroll::-webkit-scrollbar { display: none; }
.ph-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px calc(10px + 4px); background: #0c0a0b; border-top: 1px solid var(--line); }
.ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); }
.ph-tabs span b { font-weight: 500; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ph-tabs span.on { color: var(--red); }
.ph-tabs .ic { width: 21px; height: 21px; }

/* ---- Home (Figma A046 self-host: ScrHome, ScrHome · Scrolled) ---- */
.ph-home .ph-top { position: absolute; inset: 0 0 auto; z-index: 4; padding: 22px 18px 12px; transition: background-color .3s, box-shadow .3s; }
.ph-home .ph-top.solid { background: rgba(17, 15, 16, .97); box-shadow: 0 1px 0 var(--line); }
.ph-home .ph-top .ic { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.banner { position: relative; height: 480px; overflow: hidden; touch-action: pan-y; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.slide.on { opacity: 1; z-index: 1; }
.slide .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.04); transition: transform 4.5s linear; }
.slide.on .bg { transform: scale(1.12); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 15, 16, .5) 0%, rgba(17, 15, 16, 0) 16%, rgba(17, 15, 16, 0) 40%, rgba(17, 15, 16, .78) 68%, #110f10 97%); }
.slide-copy { position: absolute; inset: auto 20px 34px; z-index: 1; }
.pick { display: inline-block; margin: 0 0 10px; padding: 4px 8px; border-radius: 8px; font-family: var(--title); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #110f10; background: var(--gold); }
.slide-copy h5 { margin: 0; font-family: var(--title); font-size: 30px; font-weight: 700; line-height: 1.22; color: #fff; }
.slide-copy .meta { margin: 6px 0 14px; font-size: 14px; color: var(--muted); }
.slide-btns, .dt-btns { display: flex; gap: 12px; }
.pbtn, .gbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 48px; padding: 0 10px; border: 0; border-radius: 12px; font-family: var(--title); font-weight: 600; font-size: 15.5px; color: #fff; white-space: nowrap; }
.pbtn { background: var(--grad); }
.gbtn { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.gbtn.on { color: var(--gold); }
.pbtn .ic, .gbtn .ic { flex: none; width: 20px; height: 20px; }
.dots { position: absolute; inset: auto 0 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 4px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); transition: width .3s; }
.dots i.on { width: 20px; background: var(--red); }
.chip-row { display: flex; gap: 8px; padding: 14px 20px 2px; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row button { flex: none; height: 36px; padding: 0 18px; border: 0; border-radius: 999px; font-family: var(--title); font-size: 14px; font-weight: 600; color: var(--muted); background: var(--card-3); }
.chip-row button[aria-selected="true"] { color: #fff; background: var(--red); }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 20px 12px; }
.row-head h4 { margin: 0; font-family: var(--title); font-size: 20px; font-weight: 600; color: #fff; }
.row-head button { display: inline-flex; align-items: center; gap: 2px; flex: none; border: 0; background: none; font-family: var(--title); font-size: 14px; font-weight: 600; color: var(--muted); }
.row-head button .ic { width: 16px; height: 16px; }
.card-row { display: flex; gap: 12px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 20px; }
.card-row::-webkit-scrollbar { display: none; }
.pcard { position: relative; flex: none; width: 140px; aspect-ratio: 136 / 184; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--card-2); scroll-snap-align: start; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pcard:hover img { transform: scale(1.05); }
.pcard .badge { position: absolute; top: 8px; inset-inline-start: 8px; }
.views { position: absolute; inset-inline-start: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px 0 6px; border-radius: 999px; font-size: 12px; font-weight: 500; font-style: normal; color: #fff; background: rgba(17, 17, 17, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.views .ic { width: 12px; height: 12px; }
.ccard { flex: none; width: 100px; padding: 0; border: 0; background: none; text-align: start; scroll-snap-align: start; }
.cthumb { position: relative; display: block; aspect-ratio: 96 / 128; border-radius: 12px; overflow: hidden; background: var(--card-2); }
.cthumb img { width: 100%; height: 100%; object-fit: cover; }
.bar { position: absolute; inset: auto 0 0; display: block; height: 4px; background: rgba(255, 255, 255, .2); }
.bar > i { display: block; height: 100%; background: var(--red); }
.ccard b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-family: var(--title); font-size: 14px; font-weight: 600; line-height: 1.4; color: #fff; }
.ccard small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.top-list { list-style: none; margin: 0; padding: 0 20px 4px; display: grid; gap: 14px; }
.rrow { display: grid; grid-template-columns: 30px 64px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 0; border: 0; background: none; text-align: start; }
.rrow img, .crow .thumb img { width: 64px; height: 88px; object-fit: cover; border-radius: 8px; display: block; }
.rank { font-family: var(--title); font-size: 28px; font-weight: 600; line-height: 1; color: var(--line-2); text-align: center; }
.rank.gold { color: var(--gold); }
.rtext b, .ctext b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--title); font-size: 16px; font-weight: 600; line-height: 1.3; color: #fff; }
.rtext small, .ctext small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
small.eps { display: inline-flex; align-items: center; gap: 6px; }
small.eps .ic { width: 14px; height: 14px; color: var(--muted); }

/* ---- Drama detail, sliding over Home (ScrDramaDetail) ---- */
.detail { position: absolute; inset: 0 0 60px; z-index: 5; display: flex; flex-direction: column; background: var(--bg); transform: translateX(100%); transition: transform .3s var(--ease); }
html[dir="rtl"] .detail { transform: translateX(-100%); }
.detail.on { transform: none !important; }
.dt-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 6px; padding: 20px 12px 6px; }
.dt-head b { font-family: var(--title); font-size: 18px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-body { flex: 1; overflow-y: auto; padding: 12px 20px 20px; scrollbar-width: none; overscroll-behavior: contain; }
.dt-body::-webkit-scrollbar { display: none; }
.dt-top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
.dt-poster img { display: block; width: 112px; height: 152px; object-fit: cover; border-radius: 12px; }
.dt-top h5 { margin: 8px 0 0; font-family: var(--title); font-size: 20px; font-weight: 600; line-height: 1.2; color: #fff; }
.dt-top .meta { margin: 6px 0 0; font-size: 12px; line-height: 1.35; color: var(--muted); }
.stats { display: flex; gap: 20px; margin: 12px 0 0; }
.stats div { display: grid; }
.stats b { font-family: var(--title); font-size: 16px; font-weight: 600; color: #fff; }
.stats small { font-size: 12px; color: var(--muted); }
.dt-btns { margin-top: 18px; }
.dt-btns .pbtn { flex: 1.6; }
.synopsis { margin: 16px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.gold-line { height: 1px; margin: 16px 0 14px; border: 0; background: linear-gradient(90deg, rgba(244, 182, 63, .1), #f4b63f 50%, rgba(244, 182, 63, .1)); }
.ranges, .ml-tabs { display: flex; gap: 22px; }
.ranges { margin: 0 0 14px; }
.ranges button, .ml-tabs button { position: relative; padding: 4px 0 10px; border: 0; background: none; font-family: var(--title); font-size: 16px; font-weight: 600; color: var(--muted); }
.ranges button[aria-selected="true"], .ml-tabs button[aria-selected="true"] { color: #fff; }
.ranges button[aria-selected="true"]::after, .ml-tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 20px; height: 3px; margin-left: -10px; border-radius: 2px; background: var(--red); }
.ep-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ep-grid button { position: relative; height: 42px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff; background: var(--card-3); transition: background-color .2s; }
.ep-grid button.now, .ep-grid button:hover { background: var(--red); }
.ep-grid .ad { position: absolute; top: 3px; inset-inline-end: 3px; padding: 0 3px; border-radius: 3px; font-size: 7.5px; font-weight: 700; font-style: normal; line-height: 11px; color: #2b2629; background: var(--muted); }

/* ============ FOR YOU (Figma A046 self-host: ScrForYou) ============ */
.fy-stage { position: relative; flex: 1; overflow: hidden; outline: none; touch-action: pan-y; cursor: grab; }
.fy-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 16px 18px; overflow: hidden; transition: transform .55s var(--ease); }
.fy-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); pointer-events: none; }
.fy-card.on .fy-poster { animation: fyDrift 9s ease-out both; }
@keyframes fyDrift { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-1.5%); } }
.fy-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(17, 15, 16, .35) 0%, rgba(17, 15, 16, 0) 16%, rgba(17, 15, 16, 0) 46%, rgba(17, 15, 16, .82) 76%, #110f10 100%); }
.fy-rail { position: absolute; z-index: 2; inset-inline-end: 8px; bottom: 150px; display: flex; flex-direction: column; gap: 16px; }
.fy-rail button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 48px; border: 0; background: none; color: #fff; font-size: 12px; font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.fy-rail .ic { width: 30px; height: 30px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.fy-rail [data-like] .ic { color: #ff3d5e; }
.fy-rail [data-like].on .ic { animation: pop .35s var(--spring); }
@keyframes pop { 50% { transform: scale(1.3); } }
.fy-rail [data-save].on .ic { color: var(--gold); }
.fy-info { position: relative; z-index: 1; padding-inline-end: 58px; }
.fy-info h5 { margin: 0; font-family: var(--title); font-size: 20px; font-weight: 600; line-height: 1.25; color: #fff; }
.fy-info p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.fy-watch { display: flex; align-items: center; gap: 8px; width: calc(100% + 58px); height: 44px; margin-top: 14px; padding: 0 14px; border: 0; border-radius: 12px; color: #fff; background: rgba(17, 15, 16, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.fy-watch .ic { flex: none; width: 18px; height: 18px; }
.fy-watch b { font-family: var(--title); font-size: 15px; font-weight: 600; }
.fy-watch span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: start; font-size: 12px; color: var(--muted); }
.fy-watch .chev { width: 16px; height: 16px; color: var(--muted); }
.fy-line { display: block; width: calc(100% + 58px); height: 3px; margin-top: 12px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .18); }
.fy-line > i { display: block; width: 4%; height: 100%; background: var(--grad); }
.fy-card.on .fy-line > i { animation: fyLine 5s linear both; }
.is-touched .fy-card.on .fy-line > i { animation: none; width: 38%; }
@keyframes fyLine { from { width: 4%; } to { width: 100%; } }
.fy-end { align-items: center; justify-content: center; }
.fy-end .unlock { position: relative; z-index: 1; }
.fy-nav { position: absolute; inset-inline-end: 12px; top: 14px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.fy-nav button { width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .45); }
.fy-nav button:disabled { opacity: .3; cursor: default; }

/* My List beside the feed (ScrMyList: Saved / History) */
.ml-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.ml-top .card-title { margin: 0; }
.ml-pane { max-height: 440px; overflow-y: auto; scrollbar-width: thin; }
.ml-pane .empty { margin: 8px 0; font-size: 14px; color: var(--muted); }
.ml-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 2px; font-size: 14px; color: var(--muted); }
.ml-clear { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font-size: 14px; color: var(--muted); }
.ml-clear .ic { width: 18px; height: 18px; }
.ml-day { margin: 16px 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.my-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; animation: rowIn .35s var(--spring); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } }
.ml-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 0; border: 0; background: none; text-align: start; }
.ml-item img { width: 56px; height: 76px; object-fit: cover; border-radius: 8px; }
.ml-item b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--title); font-size: 15px; font-weight: 600; color: #fff; }
.ml-item small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.ml-item .bar { position: relative; margin-top: 8px; height: 3px; border-radius: 2px; }
.ml-item .bar > i { background: var(--grad); border-radius: 2px; }
.ml-play { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--red); background: rgba(219, 46, 74, .16); box-shadow: inset 0 0 0 1.5px var(--red); }
.ml-play .ic { width: 16px; height: 16px; margin-inline-start: 2px; }
.ml-x { width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: none; }

/* ============ CHARTS & SEARCH ============ */
.charts-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.chart, .results { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.crow { display: grid; grid-template-columns: 34px 64px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 6px 4px; border: 0; border-radius: 12px; background: none; text-align: start; transition: background-color .2s; }
.results .crow { grid-template-columns: 64px minmax(0, 1fr); }
.crow:hover { background: rgba(255, 255, 255, .04); }
.crow .thumb { display: block; width: 64px; height: 88px; border-radius: 8px; overflow: hidden; background: var(--card-2); }
.chart-card .tabs { gap: 22px; padding: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.chart-card .tabs button { position: relative; flex: none; padding: 4px 0 12px; border-radius: 0; font-family: var(--title); font-size: 16px; font-weight: 600; background: none; box-shadow: none; }
.chart-card .tabs button[aria-selected="true"] { color: #fff; background: none; box-shadow: none; }
.chart-card .tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 20px; height: 3px; margin-left: -10px; border-radius: 2px; background: var(--red); }
.is-locked-row { filter: blur(4px); opacity: .45; pointer-events: none; }
.lock-row { display: flex; justify-content: center; margin-top: -48px; position: relative; z-index: 1; }
.results .lock-row { margin-top: 2px; }
.lock-row .unlock { margin: 0; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.search-field .ic { color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; color: #fff; }
.search-field:focus-within { box-shadow: inset 0 0 0 2px var(--red); }
.kw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kw { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 999px; font-size: 13px; color: var(--body); background: var(--card-2); }
.kw:hover { background: var(--card-3); color: #fff; }
.search-count { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
.feature { position: relative; display: flex; flex-direction: column; text-align: start; border: 0; padding: 0; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .3s, opacity .8s var(--ease); --rx: 0deg; --ry: 0deg; }
.feature.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.feature:hover { box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(219, 46, 74, .5); }
.feature-art { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card-2); }
.feature-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature-art img { transform: scale(1.05); }
.feature-text { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.feature-text b { font-family: var(--title); font-size: 17px; font-weight: 700; color: #fff; line-height: 1.25; }
.feature-text > span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.feature-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .12), transparent 45%); opacity: 0; transition: opacity .3s; }
.feature:hover .feature-sheen { opacity: 1; }

/* ============ DOWNLOAD ============ */
.download-card { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 32px; overflow: hidden; background: radial-gradient(circle at 18% 50%, rgba(219, 46, 74, .4), transparent 55%), linear-gradient(140deg, #2b1418, #151213 70%); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(219, 46, 74, .3); }
.dl-art { position: relative; aspect-ratio: 1; width: min(100%, 380px); margin-inline: auto; }
.dl-card { position: absolute; top: 8%; width: 44%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-lg); }
.dl-card.c1 { left: 4%; transform: rotate(-12deg); animation: float 7s ease-in-out infinite; }
.dl-card.c2 { left: 28%; top: 2%; z-index: 1; animation: float 7s ease-in-out -2.3s infinite; }
.dl-card.c3 { left: 52%; transform: rotate(12deg); animation: float 7s ease-in-out -4.6s infinite; }
.dl-icon { position: absolute; left: 34%; bottom: 0; z-index: 2; width: 32%; height: auto; border-radius: 22%; box-shadow: 0 24px 60px rgba(219, 46, 74, .5); }
.dl-copy .section-title { text-align: start; }
.dl-copy .section-sub { margin-inline: 0; }
.dl-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.play-badge img { width: 200px; height: auto; }
.qr-mini { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); max-width: 210px; }
.qr-mini .qr-tile { padding: 8px; border-radius: 12px; background: #fff; flex: none; }
.qr-mini .qr-tile img { width: 80px; height: 80px; }
.dl-meta { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.is-paused .dl-card { animation-play-state: paused; }

/* ============ FOOTER ============ */
.site-footer { position: relative; padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(8, 7, 8, .8); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-brand { max-width: 440px; }
.footer-brand p { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; }
.footer-links a { font-size: 14.5px; font-weight: 500; color: var(--body); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 760px; }

/* ============ DOCK · MODAL · TOAST ============ */
.get-dock { display: none; }
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.modal-dialog { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; padding: 28px; border-radius: 26px; background: radial-gradient(circle at 50% 0%, rgba(219, 46, 74, .22), transparent 55%), #181516; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); animation: pop .35s var(--spring); outline: none; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.modal-app { display: flex; gap: 14px; align-items: center; padding-inline-end: 44px; }
.modal-app img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 22px rgba(219, 46, 74, .4); }
.modal-app-name { margin: 0; font-weight: 700; color: #fff; }
.modal-app-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.modal-title { margin: 22px 0 6px; font-family: var(--title); font-weight: 800; font-size: 24px; line-height: 1.25; color: #fff; }
.modal-sub { margin: 0; color: var(--body); font-size: 15px; }
.modal-visual { display: flex; justify-content: center; gap: 10px; margin: 18px 0 0; }
.modal-visual:empty { display: none; }
.modal-visual img { height: 130px; width: auto; max-width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.modal-get { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.qr-block { text-align: center; }
.qr-block p { margin: 8px 0 0; font-size: 12px; color: var(--muted); max-width: 150px; }
.qr-tile { position: relative; padding: 10px; border-radius: 16px; background: #fff; }
.qr-tile img { width: 140px; height: 140px; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 34px !important; height: 34px !important; margin: -17px 0 0 -17px; border-radius: 9px; box-shadow: 0 0 0 4px #fff; }
.modal-actions .play-badge img { width: 180px; }
.modal-steps { margin: 14px 0 0; padding-inline-start: 20px; font-size: 14px; color: var(--body); display: grid; gap: 4px; }
.modal-steps .step-tap { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 500; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #fff; background: #2b2629; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
html.modal-open { overflow: hidden; }

/* ============ TEASERS — a taste here, the rest in the app ============ */
.unlock { display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: 100%; margin: 14px auto 0; padding: 10px 18px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; color: #2a1100; background: linear-gradient(135deg, #ffd27a, #f4b63f 55%, #ff8a3d); box-shadow: 0 8px 24px rgba(244, 182, 63, .3); transition: transform .25s var(--spring), box-shadow .25s; }
.unlock .ic { width: 18px; height: 18px; }
.unlock:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(244, 182, 63, .45); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) { .main-nav a { padding: 8px 9px; font-size: 13.5px; } }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.is-open { display: flex; position: absolute; top: calc(var(--header-h) + env(safe-area-inset-top)); inset-inline: 12px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; background: #1c191b; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
  .main-nav.is-open a { padding: 13px 16px; font-size: 16px; }
  .header-actions { margin-inline-start: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 22px); }
  .hero-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chip" "title" "visual" "sub" "ctas" "feats"; text-align: center; justify-items: center; }
  .live-chip { justify-self: center; }
  .hero-visual { width: 100%; margin: 6px 0 0; }
  .stage3d { max-width: 520px; }
  /* phones and tablets: the canvas runs to the screen edges so the reel isn't cut at the stage */
  .stage3d canvas { inset: -4% auto auto -16px; width: calc(100% + 32px) !important; height: 108% !important; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-features { justify-content: center; }
  .scroll-cue { display: none; }
  .demo-grid, .demo-grid.flip { grid-template-columns: minmax(0, 1fr); }
  .demo-grid.flip .phone { order: -1; }
  .demo-side { max-width: 620px; width: 100%; margin-inline: auto; }
  .charts-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-inline: auto; }
  .download-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .dl-copy .section-title { text-align: center; }
  .dl-copy .section-sub { margin-inline: auto; }
  .dl-actions { justify-content: center; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; --radius: 18px; }
  .container { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .header-cta { display: none; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 28px; }
  .stage3d { max-width: 420px; }
  .phone { max-width: 340px; height: 680px; border-radius: 36px; }
  .banner { height: 290px; }
  .crow { grid-template-columns: auto 96px minmax(0, 1fr); gap: 10px; }
  .results .crow { grid-template-columns: 96px minmax(0, 1fr); }
  .qr-mini { display: none; }
  .modal { place-items: end stretch; padding: 0; }
  .modal-dialog { width: 100%; max-height: calc(100dvh - 30px); border-radius: 26px 26px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); animation: sheetIn .35s var(--ease); }
  .modal-dialog::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .modal-get { grid-template-columns: 1fr; }
  .qr-block { display: none; }
  .modal-steps .step-scan { display: none; }
  .modal-steps .step-tap { display: list-item; }
  .modal-actions { display: flex; flex-direction: column; align-items: center; }
  .get-dock { position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; background: rgba(28, 25, 27, .97); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); transform: translateY(140%); transition: transform .4s var(--ease); }
  html.show-dock .get-dock { transform: none; }
  html.modal-open .get-dock { transform: translateY(140%); }
  .get-dock img { width: 40px; height: 40px; border-radius: 11px; }
  .get-dock-text { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .get-dock-text strong { font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .get-dock-text small { font-size: 12px; color: var(--muted); }
  html.show-dock .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .hero-title { font-size: 36px; }
  .hero-features li { font-size: 12px; padding: 6px 10px; }
  .btn-lg { --h: 52px; padding: 0 22px; font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .feature-grid { gap: 10px; }
  .feature-text { padding: 10px 12px 14px; }
  .feature-text b { font-size: 15px; }
  .feature-text > span { font-size: 12.5px; }
  .phone { height: 660px; }
  .banner { height: 430px; }
  .slide-copy { inset: auto 16px 30px; }
  .slide-copy h5 { font-size: 26px; }
  .pbtn, .gbtn { font-size: 14.5px; }
  .chip-row, .card-row, .top-list { padding-inline: 16px; }
  .card-row { scroll-padding-inline: 16px; }
  .row-head { padding: 20px 16px 10px; }
  .row-head h4 { font-size: 18px; }
  .pcard { width: 126px; }
  .dt-top { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
  .dt-poster img { width: 100px; height: 136px; }
  .dt-body { padding-inline: 16px; }
  .ep-grid { gap: 6px; }
  .fy-info h5 { font-size: 18px; }
}
@media (max-width: 370px) {
  .lang-btn { padding: 0 9px; }
  .lang-btn .chev { display: none; }
  .brand-name { display: none; }
}
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover, .btn-ghost:hover { transform: none; }
  .feature:hover .feature-art img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ CINEMA THEME — velvet curtains, a marquee in lights, ticket stubs, film strips, seats ============ */
/* poster headlines: Oswald, upper case, for the scripts it covers (Latin, Cyrillic, Vietnamese) */
html:is([data-script="latin"], [data-script="cyrl"], [data-script="viet"]) :is(.hero-title, .section-title, .modal-title) {
  font-family: 'Oswald', var(--title); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.04;
}
html:is([data-script="latin"], [data-script="cyrl"], [data-script="viet"]) .hero-title { font-size: clamp(46px, 6.4vw, 86px); }

/* film grain over everything and a projector's flicker on the screen light */
body::after { content: ''; position: fixed; inset: -50%; z-index: 250; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-5%, -2%); } 80% { transform: translate(4%, 4%); } 100% { transform: translate(0, 0); } }
.lite body::after { animation: none; opacity: .04; }
.cinema { animation: flicker 7s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .9; } 49% { opacity: 1; } 76% { opacity: .95; } 77% { opacity: 1; } }

/* velvet curtains at the sides of the hero, drawn open when the page arrives */
.curtain { position: absolute; top: 0; bottom: 0; z-index: 1; width: clamp(40px, 9vw, 150px); pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, .35) 32%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .4) 64%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, .5)),
    linear-gradient(180deg, #7a0f22, #4e0815 55%, #2a040b);
  box-shadow: 0 0 60px rgba(0, 0, 0, .7); animation: curtain 1.8s cubic-bezier(.6, 0, .2, 1) both; }
.curtain.left { left: 0; transform-origin: left center; border-radius: 0 0 60% 0 / 0 0 8% 0; }
.curtain.right { right: 0; transform-origin: right center; border-radius: 0 0 0 60% / 0 0 0 8%; }
@keyframes curtain { from { transform: scaleX(5.6); } to { transform: scaleX(1); } }
.hero::before { content: ''; position: absolute; inset: 0 0 auto; height: calc(var(--header-h) + 34px); z-index: 1; pointer-events: none;
  background: radial-gradient(40px 26px at 40px 100%, transparent 98%, #3a0710) 0 0 / 80px 100% repeat-x, linear-gradient(180deg, #5c0b19, #3a0710);
  -webkit-mask: linear-gradient(#000 calc(100% - 26px), transparent 0), radial-gradient(40px 26px at 40px 0, #000 98%, transparent 100%) 0 100% / 80px 26px repeat-x;
  mask: linear-gradient(#000 calc(100% - 26px), transparent 0), radial-gradient(40px 26px at 40px 0, #000 98%, transparent 100%) 0 100% / 80px 26px repeat-x;
  opacity: .9; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.hero .container { z-index: 2; }

/* the chip as a marquee in lights */
.marquee { position: relative; padding: 11px 20px; border-radius: 12px; background: linear-gradient(180deg, #2a0c12, #170709); box-shadow: 0 0 30px rgba(255, 180, 90, .18), inset 0 0 0 1px rgba(255, 210, 122, .25); color: #ffe7b5; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
html:not([data-script="latin"]):not([data-script="cyrl"]):not([data-script="viet"]) .marquee { text-transform: none; letter-spacing: 0; font-size: 14px; }
.marquee .live-dot { background: #ffd27a; box-shadow: 0 0 10px #ffd27a; animation: none; }
.bulbs { position: absolute; inset: -7px; border-radius: 16px; padding: 7px; pointer-events: none;
  background: radial-gradient(circle, #fff3c9 0 2.2px, rgba(255, 196, 92, .9) 2.6px, transparent 4.2px) 0 0 / 13px 13px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(255, 190, 90, .9)); animation: chase 1.1s linear infinite; }
@keyframes chase { to { background-position: 13px 0; } }

/* theatre seats along the bottom of the hero */
.seats { position: absolute; inset: auto 0 0; height: 120px; z-index: 1; pointer-events: none;
  background:
    radial-gradient(30px 34px at 50% 100%, #050405 97%, transparent 100%) 0 100% / 68px 52px repeat-x,
    radial-gradient(31px 36px at 50% 100%, rgba(219, 46, 74, .28) 97%, transparent 100%) 0 calc(100% + 1px) / 68px 54px repeat-x,
    radial-gradient(28px 30px at 50% 100%, #0b0809 97%, transparent 100%) 34px calc(100% - 34px) / 68px 44px repeat-x,
    linear-gradient(180deg, transparent, rgba(5, 4, 5, .85) 70%); }
.hero .scroll-cue { z-index: 2; }

/* section labels as ticket stubs */
.kicker { border-radius: 6px; padding: 8px 18px; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: #ffe7b5; background: linear-gradient(180deg, #3a0f17, #250a0f); box-shadow: none;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 6px, #000 6.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 6px, #000 6.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 6px, #000 6.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 6px, #000 6.5px) right / 51% 100% no-repeat;
  outline: 1px dashed rgba(255, 210, 122, .3); outline-offset: -5px; }
html:not([data-script="latin"]):not([data-script="cyrl"]):not([data-script="viet"]) .kicker { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.kicker .ic { color: #ffd27a; }

/* a strip of film between sections */
.section + .section::before { content: ''; position: absolute; inset: 0 0 auto; height: 26px; opacity: .55; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, .16) 9px 19px, transparent 19px 28px) 0 4px / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, .16) 9px 19px, transparent 19px 28px) 0 16px / 100% 6px no-repeat,
    #0a0809; }

/* the download card as a cinema ticket */
.ticket { border-radius: 26px;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 20px, #000 20.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 20px, #000 20.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 20px, #000 20.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 20px, #000 20.5px) right / 51% 100% no-repeat;
  background: radial-gradient(circle at 18% 50%, rgba(219, 46, 74, .45), transparent 55%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 9px), linear-gradient(140deg, #3a0f17, #160809 72%); }
.ticket::after { content: ''; position: absolute; inset: 14px; border: 1.5px dashed rgba(255, 210, 122, .28); border-radius: 18px; pointer-events: none; }

/* the cinema hall in 3D (hero3d.js): on wide screens it is the whole hero, the copy over its dark side; the CSS
   curtains, valance and seats are then drawn by the hall itself */
.hall { position: absolute; inset: 0; z-index: 0; display: none; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  -webkit-mask: linear-gradient(180deg, #000 80%, transparent); mask: linear-gradient(180deg, #000 80%, transparent); }
.hall canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hall::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 8, 9, .93), rgba(11, 8, 9, .8) 34%, rgba(11, 8, 9, 0) 56%); }
html[dir="rtl"] .hall::after { background: linear-gradient(270deg, rgba(11, 8, 9, .93), rgba(11, 8, 9, .8) 34%, rgba(11, 8, 9, 0) 56%); }
@media (min-width: 981px) {
  .hero:not(.no-hall) :is(.curtain, .seats), .hero:not(.no-hall)::before { display: none; }
  .hero.is-hall .hall { display: block; }
  .hero.is-hall.is-lit .hall { opacity: 1; }
  .hero.is-hall .stage3d { display: none; }
  .hero.is-hall .hero-visual { align-self: end; }
  .hero.is-hall .stage-hint { margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(11, 8, 9, .62); color: #d8cfd2; }
  .hero.is-hall { touch-action: pan-y; }
  .hero.is-hall.on-screen { cursor: pointer; }
  .hero.is-hall.is-grabbing { cursor: grabbing; }
  .hero.is-hall .hero-title { text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
}
/* narrow screens: the hall in the stage, its edges fading into the page */
.stage3d canvas { -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 86%, transparent); mask-composite: intersect; }
.stage3d.on-screen, .hero.on-screen .stage3d { cursor: pointer; }

@media (max-width: 720px) {
  .now-showing { padding: 6px 14px 7px; }
  .now-showing b { font-size: 14.5px; }
  .now-showing small { font-size: 9.5px; }
  .now-showing span { font-size: 11px; }
  .curtain { width: 26px; }
  .seats { height: 86px; background-size: 52px 40px, 52px 42px, 52px 34px, auto; background-position: 0 100%, 0 calc(100% + 1px), 26px calc(100% - 26px), 0 0; }
  .hero::before { height: calc(var(--header-h) + 22px); }
}
@media (prefers-reduced-motion: reduce) {
  .curtain { animation: none; }
  .bulbs, body::after, .cinema { animation: none; }
}
/* stacked Vietnamese marks need room between upper-case poster lines */
html[data-script="viet"] :is(.hero-title, .section-title, .modal-title) { line-height: 1.22; }
