/* AM STREAM marketing site. Tokens mirror the app's design system (am_colors.dart).
   Layout uses logical properties (inline-start/end) so the Arabic RTL version mirrors correctly;
   artwork, logos and media are never mirrored. */
/* Fonts, served locally (SIL Open Font License 1.1, see /assets/fonts/*-OFL.txt).
   Roboto is the app's Latin typeface (Flutter's default on Android TV); Noto Sans Arabic is the
   typeface Android TV renders the app's Arabic text with. Digits always come from Roboto. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap; src: url(/assets/fonts/roboto.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/noto-sans-arabic.woff2) format("woff2"); unicode-range: U+0600-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
:root {
  --void: #07040c;
  --night: #0b0716;
  --slate: #130f22;
  --raised: #1a1425;
  --accent: #8b2fff;
  --accent-focus: #ad70ff;
  --accent-pressed: #6b22cc;
  --accent-text: #d8b4fe;
  --accent-soft: rgba(139, 47, 255, .18);
  --accent-glow: rgba(139, 47, 255, .35);
  --text: #ffffff;
  --text-2: #b8b2c8;
  --muted: #94a3b8;
  --glass-fill: rgba(255, 255, 255, .05);
  --glass-hi: rgba(255, 255, 255, .10);
  --border: rgba(255, 255, 255, .12);
  --border-soft: rgba(255, 255, 255, .07);
  --kids: #4da3ff;
  /* IPTV category colours (iptv_category_classifier.dart) */
  --c-news: #4da3ff; --c-sports: #8b2fff; --c-movies: #ff17a0; --c-general: #9c8cff; --c-gold: #ffd700; --c-other: #7c86a8;
  --radius: 24px;
  --radius-sm: 14px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --dirx: 1; /* 1 in LTR, -1 in RTL: flips 3D angles so compositions mirror */
  --font-latin: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font: var(--font-latin);
  --track-eyebrow: .22em;
  --track-tight: -.02em;
  --track-hero: -.035em;
}
[dir="rtl"] { --dirx: -1; }
:lang(ar) {
  --font: "Noto Sans Arabic", var(--font-latin);
  /* Arabic letters must never be tracked apart. */
  --track-eyebrow: 0; --track-tight: 0; --track-hero: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lang-pending body { opacity: 0; }
body {
  margin: 0; font-variant-numeric: lining-nums; background: var(--void); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; transition: opacity .25s;
}
:lang(ar) body, body:lang(ar) { line-height: 1.85; font-size: 17.5px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: var(--track-tight); line-height: 1.05; font-weight: 700; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
bdi { unicode-bidi: isolate; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.center { text-align: center; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }

/* Type helpers */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
:lang(ar) .eyebrow { font-size: 15px; text-transform: none; }
.glow-text { padding-bottom: .12em; margin-bottom: -.12em; background: linear-gradient(100deg, #fff 0%, #e9d5ff 35%, #b77bff 70%, #8b2fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .glow-text { background-image: linear-gradient(260deg, #fff 0%, #e9d5ff 35%, #b77bff 70%, #8b2fff 100%); }
.muted-2 { color: var(--text-2); }
.sub, .lead { color: var(--text-2); font-size: clamp(17px, 1.35vw, 20px); max-width: 62ch; }
.fine { color: var(--muted); font-size: 14px; }
.fine a { color: var(--accent-text); }
h2 { font-size: clamp(38px, 5.2vw, 70px); }
:lang(ar) h2 { font-size: clamp(34px, 4.6vw, 62px); }
h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.section-head { margin-bottom: 56px; }
.section-head.center .sub { margin-inline: auto; margin-top: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; transition: transform .35s var(--ease), background .3s, box-shadow .3s, border-color .3s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, #a259ff, var(--accent) 55%, var(--accent-pressed)); box-shadow: 0 10px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(139, 47, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary svg { fill: currentColor; stroke: none; }
.btn-primary[aria-disabled="true"] { background: var(--glass-hi); box-shadow: none; color: var(--text-2); cursor: default; transform: none; }
.btn-glass, .btn-ghost { background: var(--glass-fill); border-color: var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn-glass:hover, .btn-ghost:hover { background: var(--glass-hi); border-color: rgba(173, 112, 255, .55); transform: translateY(-2px); }
.btn-glass svg { fill: currentColor; stroke: none; }
.sync-copy .btn-glass svg { fill: none; stroke: currentColor; }
[dir="rtl"] .sync-copy .dir-icon { transform: scaleX(-1); }

/* Glass surface */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02) 45%, rgba(255, 255, 255, .035));
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .8);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7, 4, 12, .72); border-color: var(--border-soft); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.header-row { display: flex; align-items: center; gap: 28px; height: 78px; }
/* Brand lockup: symbol + wordmark with the official BEYOND LIMITS tagline. Always LTR, never mirrored. */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; direction: ltr; flex: none; }
.brand-symbol { height: 38px; width: auto; }
.brand-word { height: 30px; width: auto; }
.nav { display: flex; gap: 30px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .25s; }
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--glass-fill); border: 1px solid var(--border); direction: ltr; }
.lang a { min-width: 38px; padding: 5px 10px; border-radius: 999px; text-align: center; text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--text-2); font-family: var(--font-latin); transition: background .3s, color .3s; }
.lang a:hover { color: #fff; }
.lang a.on { color: #fff; background: linear-gradient(135deg, #a259ff, var(--accent)); box-shadow: 0 4px 14px -4px var(--accent-glow); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transform: scale(1.08); animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 75% 45%, rgba(139, 47, 255, .16), transparent 70%),
    linear-gradient(90deg, rgba(7, 4, 12, .97) 0%, rgba(7, 4, 12, .82) 36%, rgba(7, 4, 12, .4) 68%, rgba(7, 4, 12, .62) 100%),
    linear-gradient(180deg, rgba(7, 4, 12, .45) 0%, transparent 25%, transparent 70%, var(--void) 100%);
}
[dir="rtl"] .hero-shade {
  background:
    radial-gradient(70% 60% at 25% 45%, rgba(139, 47, 255, .16), transparent 70%),
    linear-gradient(270deg, rgba(7, 4, 12, .97) 0%, rgba(7, 4, 12, .82) 36%, rgba(7, 4, 12, .4) 68%, rgba(7, 4, 12, .62) 100%),
    linear-gradient(180deg, rgba(7, 4, 12, .45) 0%, transparent 25%, transparent 70%, var(--void) 100%);
}
.stars { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(1px 1px at 12% 22%, #fff8, transparent), radial-gradient(1px 1px at 33% 78%, #fff6, transparent), radial-gradient(1.5px 1.5px at 62% 14%, #fff9, transparent), radial-gradient(1px 1px at 84% 62%, #fff7, transparent), radial-gradient(1px 1px at 48% 44%, #fff5, transparent); animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .2; } }

/* Layer 1: a deep, slowly scrolling wall of this week's posters (TMDB) behind the TV */
.poster-wall { position: absolute; inset-block: -24%; inset-inline: 34% -12%; perspective: 1400px; opacity: 0; transition: opacity 1.8s var(--ease); pointer-events: none;
  -webkit-mask-image: radial-gradient(68% 70% at 55% 50%, #000 28%, transparent 76%); mask-image: radial-gradient(68% 70% at 55% 50%, #000 28%, transparent 76%); }
.poster-wall.ready { opacity: .38; }
.wall-plane { display: flex; gap: 18px; height: 100%; transform: rotateX(16deg) rotateY(calc(-22deg * var(--dirx))) rotateZ(calc(6deg * var(--dirx))) translateZ(-120px); transform-style: preserve-3d; }
.wall-col { display: flex; flex-direction: column; gap: 18px; flex: 1; animation: rise var(--dur, 60s) linear infinite; }
.wall-col.down { animation-name: fall; }
.wall-col img, .wall-col .ob-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 40px -12px #000; }
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes fall { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.hero-copy { position: relative; z-index: 3; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.4vw, 74px); letter-spacing: var(--track-hero); line-height: .98; margin-bottom: 26px; }
:lang(ar) .hero h1 { font-size: clamp(40px, 4.8vw, 76px); line-height: 1.25; }
.hero h1 span { display: block; }
.lead { margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: -16px 0 32px; padding-inline-start: 14px; border-inline-start: 2px solid var(--accent-focus); color: var(--accent-text); font-size: 15px; max-width: 58ch; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; color: var(--text-2); font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-focus); box-shadow: 0 0 10px var(--accent-focus); }

/* TV frame */
.hero-device, .chapter-visual { position: relative; perspective: 1600px; }
.tv { --rx: 0deg; --ry: 0deg; position: relative; border-radius: 22px; padding: 10px; transform-style: preserve-3d;
  background: linear-gradient(145deg, #2a2338, #0d0a14 40%, #1b1626); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotateX(calc(var(--rx) + var(--py, 0deg))) rotateY(calc(var(--ry) * var(--dirx) + var(--px, 0deg))); transition: transform .6s var(--ease); }
.hero-device .tv { --ry: -16deg; --rx: 6deg; z-index: 2; }
.tv-tilt-start { --ry: -10deg; --rx: 4deg; }
.tv-screen { position: relative; border-radius: 13px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.tv-screen > img { width: 100%; height: 100%; object-fit: cover; }
.glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .05)); mix-blend-mode: screen; pointer-events: none; }
.tv-glow { position: absolute; inset: 12% 8% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(139, 47, 255, .55), transparent); filter: blur(40px); opacity: .8; }
.hero-device .tv { animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }

/* Layer 2: posters floating around the TV, cross-fading to other trending titles */
.hero-orbit { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-orbit.ready { opacity: 1; }
.float { position: absolute; width: 22%; aspect-ratio: 2 / 3; border-radius: 12px; animation: bob 11s ease-in-out infinite; }
.float > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 50px -18px #000, 0 0 0 1px rgba(255, 255, 255, .08); animation: fadeIn 1.4s var(--ease) both; }
.float > .out { animation: fadeOut 1.4s var(--ease) both; }
.float-a { inset-inline-start: -13%; top: -20%; transform: rotate(calc(-8deg * var(--dirx))); z-index: 1; filter: brightness(.8); }
.float-b { inset-inline-end: -7%; top: -26%; width: 17%; transform: rotate(calc(7deg * var(--dirx))); z-index: 1; filter: brightness(.65) blur(.4px); animation-delay: -3s; }
.float-c { inset-inline-end: -10%; bottom: -24%; width: 20%; transform: rotate(calc(9deg * var(--dirx))); z-index: 3; animation-delay: -6s; }
.float-d { inset-inline-start: 6%; bottom: -30%; width: 15%; transform: rotate(calc(-5deg * var(--dirx))); z-index: 0; filter: brightness(.55) blur(1px); animation-delay: -8s; }
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes fadeIn { from { opacity: 0; scale: .94; } }
@keyframes fadeOut { to { opacity: 0; scale: 1.04; } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 14px; translate: -50% 0; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: #fff; border-radius: 2px; translate: -50% 0; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }


/* Trending marquee (posters only) */
.trending { padding: 120px 0 90px; position: relative; overflow: hidden; }
.marquee-viewport { direction: ltr; overflow: hidden; }
.marquee { display: flex; gap: 18px; width: max-content; padding: 10px 18px 10px 0; animation: marquee var(--dur, 90s) linear infinite; }
.marquee.reverse { animation-direction: reverse; margin-top: 18px; opacity: .75; }
.trending:hover .marquee, .trending:focus-within .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.poster { position: relative; flex: none; width: 168px; border-radius: 14px; overflow: hidden; background: var(--slate); text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s; box-shadow: 0 18px 30px -16px #000; }
.poster figure { margin: 0; }
.poster img, .poster .ob-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.poster figcaption { position: absolute; inset: auto 0 0; padding: 30px 12px 12px; background: linear-gradient(transparent, rgba(7, 4, 12, .95)); font-size: 13px; font-weight: 600; line-height: 1.3; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); font-family: var(--font); }
.poster figcaption span { display: block; }
.poster figcaption small { display: block; color: var(--text-2); font-weight: 500; margin-top: 2px; }
.poster:hover, .poster:focus-visible { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 0 2px var(--accent-focus), 0 24px 40px -14px var(--accent-glow); }
.poster:hover figcaption, .poster:focus-visible figcaption { opacity: 1; transform: none; }
.tmdb-credit { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 40px; color: var(--muted); font-size: 13px; }
.tmdb-mark img { width: 56px; height: auto; }
.tmdb-credit a { color: var(--text-2); }

/* Chapters */
.chapter { padding: 130px 0; position: relative; }
.chapter.alt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 30%, rgba(77, 163, 255, .07), transparent 70%); pointer-events: none; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
.chapter-copy h2 { margin-bottom: 26px; }
.chapter-copy p { color: var(--text-2); margin-bottom: 16px; max-width: 54ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 18px; }
.chips li { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--accent-text); background: var(--accent-soft); border: 1px solid rgba(173, 112, 255, .28); }

/* Source ranking card */
.rank-card { position: absolute; inset-inline-end: -5%; bottom: -16%; width: min(330px, 62%); border-radius: var(--radius-sm); padding: 16px; font-size: 13px; transform: translateZ(60px); }
.rank-head { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; }
.rank-head small { margin-inline-start: auto; color: var(--muted); font-weight: 500; }
.rank-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.rank-card ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rank-card li { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; transition: all .6s var(--ease); }
.rank-card li b { width: 52px; font-size: 15px; }
.rank-card li em { margin-left: auto; font-style: normal; font-size: 11px; color: #4ade80; font-weight: 600; opacity: 0; transition: opacity .5s; font-family: var(--font); }
.rank-card .tag { padding: 2px 7px; border-radius: 6px; font-size: 11px; color: var(--text-2); border: 1px solid var(--border); }
.rank-card .tag.hdr { color: var(--accent-text); border-color: rgba(173, 112, 255, .4); }
.rank-card.ranked li:first-child { background: var(--accent-soft); border-color: rgba(173, 112, 255, .55); box-shadow: 0 0 24px -8px var(--accent-glow); }
.rank-card.ranked li:first-child em { opacity: 1; }
.rank-card li.shuffle { transform: translateX(6px); opacity: .55; }
.rank-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent-focus); animation: spin 1s linear infinite; flex: none; }
.rank-card.ranked .spinner { border-color: #4ade80; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Onboarding-style chapters (Streaming Universe, Collections): onboarding_screen.dart */
.universe, .collections { position: relative; padding: 140px 0; overflow: hidden; isolation: isolate; }
.universe::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 72% 50%, rgba(139, 47, 255, .14), transparent 70%); }
[dir="rtl"] .universe::before { background: radial-gradient(55% 60% at 28% 50%, rgba(139, 47, 255, .14), transparent 70%); }
.collections::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 30% 50%, rgba(139, 47, 255, .12), transparent 70%); }
[dir="rtl"] .collections::before { background: radial-gradient(55% 60% at 70% 50%, rgba(139, 47, 255, .12), transparent 70%); }
.ob-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.collections .ob-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.collections .ob-copy { order: 2; }
.ob-copy h2 { margin-bottom: 24px; }
.ob-copy .chips { margin-bottom: 22px; }
/* The onboarding eyebrow: a 26 x 2 lavender bar before the label */
.ob-eyebrow { display: flex; align-items: center; gap: 12px; }
.ob-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: #b975ee; flex: none; }
.ob-copy .fine { max-width: 60ch; padding-inline-start: 14px; border-inline-start: 2px solid rgba(185, 117, 238, .45); }

/* The onboarding's empty-poster placeholder (_poster): no text, no artwork */
.ob-poster { display: block; aspect-ratio: 2 / 3; border-radius: 10px; background: linear-gradient(160deg, #2a1a52, #120c26); border: 1px solid rgba(255, 255, 255, .19); box-shadow: 0 14px 26px -16px #000; }
.wall-col .ob-poster, .poster .ob-poster { width: 100%; }

/* Streaming Universe: eight service tiles on an ellipse around the AM symbol */
.uni-stage { position: relative; width: 100%; max-width: 660px; margin-inline: auto; aspect-ratio: 1.2 / 1; }
.uni-stage::before { content: ""; position: absolute; inset: 18% 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 47, 255, .5), rgba(139, 47, 255, .12) 60%, transparent); filter: blur(30px); }
.uni-ring, .uni-ring::before { position: absolute; border-radius: 50%; border: 1px solid rgba(173, 112, 255, .22); }
.uni-ring { inset: 10% 12.5%; box-shadow: inset 0 0 60px -20px rgba(139, 47, 255, .45); }
.uni-ring::before { content: ""; inset: 18%; border-style: dashed; border-color: rgba(173, 112, 255, .16); animation: spin 90s linear infinite; }
.uni-mark { position: absolute; left: 50%; top: 50%; width: 19%; translate: -50% -50%; filter: drop-shadow(0 0 34px rgba(139, 47, 255, .7)); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { scale: 1.05; filter: drop-shadow(0 0 48px rgba(173, 112, 255, .85)); } }
.brand-tile {
  --glow: #8b2fff; position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: var(--z, 1); width: 25%; aspect-ratio: 2 / 1;
  translate: -50% -50%; scale: var(--s, 1); display: grid; place-items: center; border-radius: 10% / 20%; container-type: inline-size; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--glow) 55%, transparent);
  box-shadow: 0 0 34px -8px color-mix(in srgb, var(--glow) 70%, transparent), 0 22px 40px -20px #000, inset 0 1px 0 rgba(255, 255, 255, .2);
  animation: tileBob 7s ease-in-out infinite; animation-delay: var(--delay, 0s);
}
.brand-tile::after { content: ""; position: absolute; inset: 0 0 55%; background: linear-gradient(rgba(255, 255, 255, .14), transparent); pointer-events: none; }
@keyframes tileBob { 50% { transform: translateY(-6%); } }
.brand-tile span { position: relative; font-family: var(--font-latin); font-weight: 800; font-size: 13cqw; line-height: 1; color: #fff; white-space: nowrap; letter-spacing: -.01em; }
.bt-netflix { --glow: #e50914; background: linear-gradient(160deg, #240407, #000); }
.bt-netflix span { color: #e50914; font-size: 15cqw; font-weight: 900; letter-spacing: .02em; transform: scaleY(1.12); }
.bt-hulu { --glow: #1ce783; background: linear-gradient(160deg, #0b2216, #040a07); }
.bt-hulu span { color: #1ce783; font-size: 17cqw; letter-spacing: -.03em; }
.bt-apple { --glow: #d9d9e0; background: linear-gradient(160deg, #3a3a40, #0b0b0d); }
.bt-apple span { font-weight: 600; }
.bt-disney { --glow: #2350f0; background: linear-gradient(160deg, #2350f0, #0b1f78 55%, #02021f); }
.bt-disney span { font-style: italic; font-size: 14cqw; }
.bt-prime { --glow: #00a8e1; background: linear-gradient(160deg, #0a6f96, #0a2a3d 55%, #0a1622); }
.bt-prime span { font-weight: 700; font-size: 11.5cqw; letter-spacing: -.02em; display: grid; justify-items: center; }
.bt-prime span i { display: block; width: 46%; height: 3.4cqw; margin-top: 1.5cqw; border: 1.6cqw solid #00a8e1; border-top: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.bt-crunchyroll { --glow: #f47521; background: linear-gradient(160deg, #ff8a3d, #f47521 50%, #b8480a); }
.bt-crunchyroll span { font-size: 11cqw; }
.bt-max { --glow: #7a2cf5; background: linear-gradient(160deg, #7a2cf5, #3a0e8f 55%, #14052e); }
.bt-paramount { --glow: #1a73ff; background: linear-gradient(160deg, #1a73ff, #0050cc 55%, #001f4d); }
.bt-paramount span { font-size: 11.5cqw; }

/* Collections: two tilted rows of posters behind "My Collections" */
.lib-stage { position: relative; aspect-ratio: 16 / 11.5; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 70% at 50% 20%, #1d1238, #0b0716 70%); border: 1px solid var(--border-soft); box-shadow: 0 50px 90px -40px #000, inset 0 1px 0 rgba(255, 255, 255, .06); }
.lib-wall { position: absolute; inset: -6% -14% 34%; perspective: 1100px; z-index: -1;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 62%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(transparent, #000 18%, #000 62%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
.lib-plane { display: grid; gap: 2.4%; transform: rotateX(9.2deg) rotateZ(-1.7deg); transform-origin: 50% 0; padding-top: 4%; }
.lib-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1.6%; animation: libDrift 26s ease-in-out infinite alternate; }
.lib-row-1 { animation-direction: alternate-reverse; margin-inline-start: -5%; }
.lib-row .ob-poster { border-radius: 8px; }
.lib-row .ob-poster:nth-child(3n) { filter: brightness(1.18); } .lib-row .ob-poster:nth-child(4n + 1) { filter: brightness(.82); }
@keyframes libDrift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
.lib-stage::after { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(transparent, rgba(7, 4, 12, .92) 45%); }
.lib-front { position: absolute; inset: auto 5% 7%; display: grid; gap: 16px; }
.lib-head { display: flex; align-items: center; gap: 10px; font-size: clamp(15px, 1.4vw, 19px); }
.lib-head svg { width: 22px; height: 22px; color: var(--accent-text); fill: currentColor; stroke: none; }
.lib-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4%; }
.lib-tile { margin: 0; display: grid; gap: 10px; min-width: 0; }
.lib-tile .mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 36px -18px #000; transition: transform .6s var(--ease), border-color .5s, box-shadow .5s; }
.lib-tile .mosaic i { background: linear-gradient(160deg, #2a1a52, #120c26); }
.lib-tile .mosaic i:nth-child(2) { background: linear-gradient(160deg, #33205f, #160e2e); }
.lib-tile .mosaic i:nth-child(3) { background: linear-gradient(160deg, #241645, #100a22); }
.lib-tile .mosaic i:nth-child(4) { background: linear-gradient(160deg, #2e1c57, #140d2a); }
.lib-tile.on .mosaic { border-color: #8b2fff; transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 1px rgba(173, 112, 255, .4), 0 18px 40px -12px rgba(139, 47, 255, .6); }
.marks { position: absolute; top: 7%; inset-inline-end: 5%; display: flex; gap: 5px; }
.marks em { display: grid; place-items: center; width: clamp(20px, 1.9vw, 26px); aspect-ratio: 1; border-radius: 50%; background: rgba(10, 6, 20, .78); border: 1px solid rgba(255, 255, 255, .12); }
.marks svg { width: 62%; height: 62%; color: var(--accent-text); fill: currentColor; stroke: none; }
.lib-tile figcaption { display: grid; gap: 2px; min-width: 0; }
.lib-tile figcaption b { font-size: clamp(13px, 1.05vw, 15px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-tile figcaption small { font-size: clamp(12px, .9vw, 13px); color: rgba(255, 255, 255, .54); }

/* ---------- Live TV: the app's IPTV screen on its own 1920 x 1080 grid (iptv_live_page.dart) */
.live-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: end; margin-bottom: 56px; }
.live-head .chips { margin-bottom: 0; }
.tv-flat { max-width: 1180px; margin: 0 auto; }
.ip { font-family: var(--font-latin); color: #fff; line-height: 1.25; letter-spacing: 0;
  background: radial-gradient(60% 70% at 85% 95%, rgba(110, 40, 190, .32), transparent 70%), radial-gradient(50% 60% at 10% 0%, rgba(60, 40, 120, .22), transparent 70%), #0a0815; }
.ip svg { fill: currentColor; stroke: none; }
.ip-canvas { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform: scale(var(--k, .5)); transform-origin: 0 0; }
.ip-canvas > * { position: absolute; }
/* Sidebar (sidebar_nav.dart) */
.ip-side { left: 22px; top: 38px; width: 106px; height: 1004px; border-radius: 53px; background: rgba(255, 255, 255, .025); border: 2px solid rgba(255, 255, 255, .06);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 54px; padding-bottom: 60px; }
.ip-side > svg { width: 40px; height: 40px; color: rgba(255, 255, 255, .7); }
.ip-side > svg.on { width: 80px; height: 78px; padding: 19px; margin: -19px 0; border-radius: 24px; background: rgba(139, 47, 255, .2); color: #fff; }
.ip-avatar { position: absolute; bottom: 30px; width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(173, 112, 255, .6); }
/* Top bar: content tabs, provider selector, refresh, search, voice */
.ip-top { left: 167px; top: 55px; width: 1650px; height: 73px; }
.ip-seg { position: absolute; top: 0; height: 73px; display: flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 37px; border: 2px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.ip-tabs { left: 0; width: 641px; }
.ip-prov { left: 673px; width: 530px; }
.ip-seg span { display: flex; align-items: center; gap: 14px; height: 61px; padding: 0 31px; border-radius: 31px; font-size: 28px; font-weight: 500; color: #b8b2c8; white-space: nowrap; border: 3px solid transparent; transition: background .4s, border-color .4s, color .4s; }
.ip-seg span svg { width: 26px; height: 26px; }
.ip-tabs span:first-child svg { color: #b8b2c8; }
.ip-seg span.on { color: #fff; font-weight: 600; background: rgba(139, 47, 255, .26); border-color: #9d5cff; box-shadow: 0 0 22px -4px rgba(139, 47, 255, .7); }
.ip-tabs span.on svg { color: #d8b4fe; }
.ip-prov span:not(.on) { padding: 0 38px; }
.ip-circle { position: absolute; top: 0; display: grid; place-items: center; width: 73px; height: 73px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }
.ip-circle svg { width: 34px; height: 34px; }
.ip-circle:nth-of-type(1) { left: 1223px; } .ip-search { left: 1476px; } .ip-mic { left: 1576px; }
/* Shared list styles (IptvType: label 11.5 w700 ls 1.4, row 14.5, count 12 w600 tabular) */
.ip h5 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: #b8b2c8; }
.ip-view { display: none; inset: 0; }
.ip[data-view="live"] .ip-live, .ip[data-view="fav"] .ip-favs, .ip[data-view="movie"] .ip-vod, .ip[data-view="series"] .ip-vod { display: block; animation: ipIn .5s var(--ease) both; }
@keyframes ipIn { from { opacity: 0; } }
.ip-view > * { position: absolute; }
.ip-cats { left: 170px; top: 182px; width: 345px; }
.ip-cats h5 { padding-inline-start: 21px; margin-bottom: 30px; }
.ip-cats li { position: relative; display: flex; align-items: center; justify-content: space-between; height: 71px; margin-bottom: 9px; padding: 0 16px 0 28px; border-radius: 16px; font-size: 29px; font-weight: 500; color: #e6e1ef; }
.ip-cats li small { font-size: 23px; font-weight: 600; color: #b8b2c8; font-variant-numeric: tabular-nums; }
.ip-cats li.on { background: rgba(139, 47, 255, .17); color: #fff; }
.ip-cats li.on::before { content: ""; position: absolute; left: 8px; top: 18px; width: 6px; height: 35px; border-radius: 3px; background: #d8b4fe; }
.ip-live .ip-cats::after { content: ""; position: absolute; left: 362px; top: 50px; width: 2px; height: 840px; background: linear-gradient(transparent, rgba(255, 255, 255, .06) 20%, rgba(255, 255, 255, .06) 80%, transparent); }
.ip-chans { left: 568px; top: 182px; width: 450px; height: 860px; }
.ip-chans h5 { padding-inline-start: 7px; margin-bottom: 38px; }
.ip-chans ul { width: 372px; }
.ip-chans > ul > li { position: relative; display: flex; align-items: center; gap: 22px; height: 80px; margin: 0 -8px 12px; padding: 0 8px; border-radius: 16px; border: 3px solid transparent; transition: background .4s, border-color .4s, box-shadow .4s; }
.ip-chans > ul > li div { display: grid; gap: 4px; }
.ip-chans > ul > li b { font-size: 30px; font-weight: 500; white-space: nowrap; }
.ip-chans > ul > li small { font-size: 21px; color: #94a3b8; }
.ip-chans > ul > li.focus { background: rgba(139, 47, 255, .16); border-color: #9d5cff; box-shadow: 0 0 26px -6px rgba(139, 47, 255, .8); }
.ip-chans > ul > li .star { margin-inline-start: auto; width: 30px; height: 30px; color: #d8b4fe; animation: pop .6s var(--ease) both; }
.ip-logo { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 12px; background: #221a2e; color: #e8e2f2; font-size: 30px; font-weight: 600; }
.ip-logo-lg { width: 96px; height: 96px; border-radius: 16px; font-size: 40px; }
.ip-logo-xl { width: 168px; height: 168px; border-radius: 26px; font-size: 76px; }
.ip-letters { position: absolute; left: 392px; top: 53px; width: 50px; height: 795px; border-radius: 25px; border: 2px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 20px; font-weight: 600; color: #b8b2c8; }
.ip-letters li { display: grid; place-items: center; width: 32px; height: 26px; }
.ip-letters li.on { width: 34px; height: 34px; border-radius: 50%; background: rgba(139, 47, 255, .35); color: #fff; }
.ip-right { left: 1053px; top: 237px; width: 830px; }
.ip-preview { position: relative; width: 807px; height: 455px; border-radius: 30px; background: #08060d; border: 2px solid rgba(255, 255, 255, .07); display: grid; place-items: center; }
.ip-preview > .ip-logo-xl { margin-top: -86px; }
.ip-pv-meta { position: absolute; left: 30px; bottom: 28px; display: flex; align-items: center; gap: 24px; }
.ip-pv-meta .ip-logo { width: 68px; height: 68px; }
.ip-pv-meta b { display: block; font-size: 35px; font-weight: 700; letter-spacing: .5px; }
.ip-pv-meta small { display: block; margin-top: 6px; font-size: 25px; color: #d4cfe0; }
.ip-line { height: 2px; margin: 15px 0 26px; background: linear-gradient(90deg, transparent, rgba(173, 112, 255, .7) 30%, rgba(173, 112, 255, .5) 70%, transparent); box-shadow: 0 0 14px rgba(139, 47, 255, .8); width: 807px; }
.ip-right h6 { margin: 0 0 22px; font-size: 31px; font-weight: 600; letter-spacing: 2.5px; }
.ip-recent { display: flex; gap: 30px; width: 830px; overflow: hidden; }
.ip-card { flex: none; width: 264px; }
.ip-card-art { display: grid; place-items: center; height: 146px; margin-bottom: 18px; border-radius: 22px; background: rgba(139, 47, 255, .09); border: 2px solid rgba(255, 255, 255, .06); }
.ip-card-art .ip-logo { width: 76px; height: 76px; background: #1f1730; }
.ip-card b { display: block; font-size: 26px; font-weight: 500; white-space: nowrap; }
.ip-card small { display: block; margin-top: 6px; font-size: 20px; color: #94a3b8; }
/* Favorites view (iptv_favorite_rails.dart): banner, info bar, one rail at a time */
.ip-banner { left: 167px; top: 160px; width: 1693px; height: 500px; border-radius: 36px; overflow: hidden; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .06);
  background: radial-gradient(40% 70% at 50% 45%, rgba(120, 90, 150, .38), transparent 70%), radial-gradient(30% 60% at 12% 40%, rgba(120, 20, 40, .3), transparent 70%), radial-gradient(30% 60% at 90% 60%, rgba(60, 20, 90, .35), transparent 70%), #0d0a14; }
.ip-banner .ip-logo-xl { background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.ip-info { left: 167px; top: 676px; width: 1693px; height: 110px; border-radius: 24px; display: flex; align-items: center; gap: 24px; padding: 0 26px; background: rgba(139, 47, 255, .07); border: 2px solid rgba(255, 255, 255, .07); }
.ip-info .ip-logo { width: 82px; height: 82px; }
.ip-info-name { width: 410px; display: grid; gap: 4px; }
.ip-info-name b { font-size: 36px; font-weight: 700; white-space: nowrap; }
.ip-info-name small { font-size: 25px; color: #b8b2c8; }
.ip-epg { flex: 1; display: flex; align-items: center; gap: 22px; height: 76px; padding-inline-start: 32px; border-inline: 2px solid rgba(255, 255, 255, .08); font-size: 28px; color: #b8b2c8; }
.ip-epg svg { width: 34px; height: 34px; }
.ip-info-r { display: grid; justify-items: end; gap: 8px; padding-inline-start: 8px; }
.ip-info-r b { font-size: 23px; font-weight: 700; letter-spacing: 4px; color: #d8b4fe; }
.ip-info-r small { font-size: 23px; color: #b8b2c8; letter-spacing: 1px; }
.ip-favs > .ip-line { left: 167px; top: 790px; width: 1693px; margin: 0; }
.ip-rail { left: 167px; top: 858px; width: 1693px; height: 152px; display: flex; align-items: center; gap: 30px; overflow: hidden; }
.ip-square { flex: none; display: grid; place-items: center; align-content: center; gap: 14px; width: 150px; height: 152px; border-radius: 18px; background: color-mix(in srgb, var(--kc) 16%, #0e1222); border: 2px solid color-mix(in srgb, var(--kc) 30%, transparent); }
.ip-square svg { width: 42px; height: 42px; color: var(--kc); }
.ip-square b { font-size: 19px; letter-spacing: 2px; }
.ip-square.pulse { animation: squarePulse 1.2s ease-in-out 2; }
@keyframes squarePulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--kc) 60%, transparent), 0 0 40px color-mix(in srgb, var(--kc) 70%, transparent); } }
.k-news { --kc: #4da3ff; } .k-sports { --kc: #a970ff; } .k-movies { --kc: #ff17a0; } .k-general { --kc: #9c8cff; } .k-music, .k-entertainment, .k-education { --kc: #7c86a8; }
.ip-divider { flex: none; width: 2px; height: 110px; background: rgba(139, 47, 255, .25); }
.ip-fav { flex: none; display: flex; align-items: center; gap: 26px; width: 446px; height: 152px; padding: 0 18px; border-radius: 22px; background: rgba(139, 47, 255, .06); border: 2px solid rgba(255, 255, 255, .07); }
.ip-fav .ip-logo { width: 118px; height: 116px; border-radius: 18px; background: #2a1a4a; font-size: 46px; }
.ip-fav > div { display: grid; gap: 6px; min-width: 0; }
.ip-fav em { font-style: normal; font-size: 22px; font-weight: 700; letter-spacing: 4px; color: #d8b4fe; }
.ip-fav b { font-size: 31px; font-weight: 600; white-space: nowrap; }
.ip-fav small { display: flex; gap: 34px; font-size: 21px; color: #94a3b8; }
.ip-fav small span + span { color: #b8b2c8; }
.ip-fav.fresh { animation: pop .7s var(--ease) both; border-color: #9d5cff; box-shadow: 0 0 30px -6px rgba(139, 47, 255, .8); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.85); } }
.ip-more { left: 167px; top: 1014px; width: 1693px; display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; color: #b8b2c8; letter-spacing: .5px; }
.ip-more svg { width: 26px; height: 26px; }
/* Movie / Series view: categories and a 4-column poster grid */
.ip-vod .ip-cats { width: 385px; }
.ip-vodgrid { left: 603px; top: 182px; width: 1252px; height: 898px; }
.ip-vodgrid h5 { padding-inline-start: 16px; margin-bottom: 0; }
.ip-posters { position: absolute; left: 0; top: 52px; width: 1252px; height: 846px; overflow: hidden; }
.ip-posters { display: grid; grid-template-columns: repeat(4, 287px); column-gap: 34px; row-gap: 33px; align-content: start; }
.ip-poster { display: grid; gap: 10px; align-content: start; }
.ip-poster:nth-child(-n + 4) { margin-top: -266px; }
.ip-poster .ob-poster { width: 287px; height: 430px; aspect-ratio: auto; border-radius: 18px; }
.ip-poster.focus .ob-poster { outline: 5px solid #a06bff; outline-offset: 0; box-shadow: 0 0 40px -6px rgba(139, 47, 255, .85); }
.ip-skel { display: block; width: 210px; height: 22px; margin-top: 12px; border-radius: 11px; background: rgba(255, 255, 255, .14); }
.ip-poster:nth-child(2n) .ip-skel { width: 170px; }
.ip-poster.focus .ip-skel { background: rgba(255, 255, 255, .3); }
.ip-poster small { font-size: 21px; color: #94a3b8; }
/* View switch and caption under the screen */
.ip-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; width: fit-content; margin: 28px auto 0; padding: 5px; border-radius: 999px; background: var(--glass-fill); border: 1px solid var(--border); }
.ip-switch button { padding: 9px 20px; border: 1px solid transparent; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.ip-switch button:hover { color: #fff; }
.ip-switch button[aria-selected="true"] { color: #fff; background: var(--accent-soft); border-color: rgba(173, 112, 255, .6); }
.ip-caption { margin: 16px auto 0; max-width: 70ch; }

.live-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 64px; }
.fav-explainer, .vod { padding: 36px; border-radius: 26px; background: linear-gradient(180deg, var(--slate), var(--night)); border: 1px solid var(--border-soft); }
.fav-explainer h3, .vod h3 { margin-bottom: 14px; }
.fav-explainer > p:not(.eyebrow), .vod > p:not(.eyebrow) { color: var(--text-2); }
.steps { display: grid; gap: 10px; margin-top: 24px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-soft); background: rgba(255, 255, 255, .025); transition: .5s var(--ease); }
.steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--glass-hi); font-weight: 700; font-family: var(--font-latin); flex: none; transition: .5s var(--ease); }
.steps b { font-weight: 600; }
.steps li.on { border-color: rgba(173, 112, 255, .55); background: var(--accent-soft); }
.steps li.on span { background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.byo { margin-top: 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(173, 112, 255, .3); background: rgba(139, 47, 255, .08); color: var(--accent-text); font-size: 15px; }

/* Subtitles + profiles */
.duo { padding: 120px 0; }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, var(--slate), var(--night)); border: 1px solid var(--border-soft); display: flex; flex-direction: column; }
.panel-scene { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.panel-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--slate)); pointer-events: none; }
.panel-copy { padding: 8px 36px 40px; }
.panel-copy h3 { margin-bottom: 14px; }
.panel-copy p:not(.eyebrow) { color: var(--text-2); }
.subline { position: absolute; left: 50%; translate: -50% 0; z-index: 2; padding: 4px 12px; border-radius: 6px; background: rgba(0, 0, 0, .55); font-size: clamp(15px, 1.5vw, 20px); font-weight: 600; white-space: nowrap; text-shadow: 0 2px 6px #000; }
.subline[lang="ar"] { bottom: 44%; font-family: "Noto Sans Arabic", var(--font-latin); }
.subline.en { bottom: 31%; font-family: var(--font-latin); }
.sync-bar { position: absolute; left: 50%; bottom: 10%; translate: -50% 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; font-size: 13px; width: min(420px, 86%); }
.sync-label { font-weight: 600; color: var(--accent-text); font-family: var(--font); white-space: nowrap; }
.sync-track { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); }
.sync-track::before { content: ""; position: absolute; left: 50%; top: -5px; width: 2px; height: 14px; background: rgba(255, 255, 255, .5); }
.sync-dot { position: absolute; top: 50%; left: 22%; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-focus); box-shadow: 0 0 14px var(--accent); translate: -50% -50%; transition: left 1.8s var(--ease); }
.sync-dot.locked { left: 50%; background: #4ade80; box-shadow: 0 0 14px #4ade80; }
.sync-value { width: 54px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }

.orbit-scene { background: radial-gradient(50% 60% at 50% 50%, #2a1450, var(--night) 75%); display: grid; place-items: center; }
.orbit { position: absolute; width: 86%; height: 92%; direction: ltr; }
.orbit img { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: clamp(54px, 15%, 92px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(173, 112, 255, .6);
  box-shadow: 0 10px 24px -8px #000, 0 0 0 4px rgba(139, 47, 255, .12); translate: -50% -50%; scale: var(--s, 1); opacity: var(--o, 1); z-index: var(--z, 1); }
.orbit-center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 10px; padding: 20px 26px; border-radius: 20px; }
.kids-badge { padding: 6px 16px; border-radius: 999px; background: rgba(77, 163, 255, .18); border: 1px solid rgba(77, 163, 255, .5); color: #bfdbfe; font-weight: 700; letter-spacing: .04em; }
:lang(ar) .kids-badge { letter-spacing: 0; }
.pin-dots { display: flex; gap: 10px; }
.pin-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-focus); box-shadow: 0 0 10px var(--accent); animation: pin 2.4s ease-in-out infinite; }
.pin-dots i:nth-child(2) { animation-delay: .2s; } .pin-dots i:nth-child(3) { animation-delay: .4s; } .pin-dots i:nth-child(4) { animation-delay: .6s; }
@keyframes pin { 0%, 100% { opacity: .25; } 40%, 70% { opacity: 1; } }
.orbit-center small { color: var(--muted); font-size: 12px; }

/* One account, every screen */
.sync { padding: 130px 0; }
.sync-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.sync-copy h2 { margin-bottom: 26px; }
.sync-copy p { color: var(--text-2); margin-bottom: 30px; max-width: 54ch; }
.hub { position: relative; aspect-ratio: 1 / .92; max-width: 560px; margin-inline: auto; width: 100%; }
.hub-links { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow { fill: none; stroke: rgba(173, 112, 255, .28); stroke-width: 1.4; stroke-dasharray: 5 9; }
.flow.live { stroke: rgba(173, 112, 255, .75); animation: dash 2.6s linear infinite; }
[dir="rtl"] .hub-links { transform: scaleX(-1); }
@keyframes dash { to { stroke-dashoffset: -56; } }
.hub-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; display: grid; justify-items: center; gap: 10px; padding: 24px 26px; border-radius: 24px; text-align: center; font-size: 13px; color: var(--text-2); max-width: 44%; box-shadow: 0 0 70px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .1); }
.hub-core img { width: 44px; height: auto; }
.dev { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 4px; width: 30%; padding: 16px 10px 14px; border-radius: 18px; text-align: center; translate: -50% -50%; }
.dev svg { width: 30px; height: 30px; color: var(--text-2); margin-bottom: 4px; }
.dev b { font-size: 15px; }
.dev small { font-size: 12px; color: var(--muted); }
.dev.on { border-color: rgba(173, 112, 255, .55); box-shadow: 0 0 40px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .1); }
.dev.on svg { color: #fff; }
.dev:not(.on) { opacity: .82; }
.soon-tag { padding: 2px 10px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .25); color: var(--text-2) !important; }
.dev-tv { left: 19.5%; top: 19.5%; } .dev-web { left: 80.5%; top: 19.5%; } .dev-mobile { left: 19.5%; top: 80.5%; } .dev-win { left: 80.5%; top: 80.5%; }
[dir="rtl"] .dev-tv, [dir="rtl"] .dev-mobile { left: 80.5%; } [dir="rtl"] .dev-web, [dir="rtl"] .dev-win { left: 19.5%; }
.sync-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: absolute; inset: auto 0 -64px; }
.sync-items li { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); background: rgba(7, 4, 12, .6); }

/* Recap tiles */
.recap { padding: 130px 0 110px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { padding: 30px; border-radius: 20px; transition: transform .5s var(--ease), border-color .4s; }
.tile:hover { transform: translateY(-6px); border-color: rgba(173, 112, 255, .45); }
.tile svg { width: 30px; height: 30px; color: var(--accent-focus); margin-bottom: 20px; }
.tile h3 { font-size: 20px; margin-bottom: 10px; }
.tile p { color: var(--text-2); font-size: 15px; }

/* Get the app */
.download { position: relative; padding: 140px 0 120px; overflow: hidden; isolation: isolate; }
.download-bg { position: absolute; inset: 0; z-index: -1; }
.download-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.download-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--void), rgba(7, 4, 12, .55) 40%, var(--void)); }
.platforms { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 18px; margin-bottom: 40px; }
.platform { padding: 30px 26px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.platform svg { width: 34px; height: 34px; color: var(--accent-text); margin-bottom: 8px; }
.platform h3 { font-size: 22px; }
.platform p { color: var(--text-2); font-size: 15px; flex: 1; }
.platform.primary { border-color: rgba(173, 112, 255, .45); background: linear-gradient(160deg, rgba(139, 47, 255, .22), rgba(255, 255, 255, .03)); }
.platform .btn { align-self: flex-start; margin-top: 10px; }
.soon { align-self: flex-start; margin-top: 10px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: var(--text-2); border: 1px solid var(--border); }

/* Footer */
.site-footer { border-top: 1px solid var(--border-soft); padding: 70px 0 40px; background: linear-gradient(var(--void), #05030a); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.6fr; gap: 40px; }
.brand-foot { margin-bottom: 18px; }
.brand-foot .brand-symbol { height: 34px; } .brand-foot .brand-word { height: 26px; }
.footer-brand p, .footer-tmdb p { color: var(--muted); font-size: 14px; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
:lang(ar) .site-footer h4 { letter-spacing: 0; font-size: 14px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: #fff; }
.footer-tmdb { display: grid; gap: 10px; align-content: start; }
.footer-tmdb .tmdb-mark img { width: 72px; }
.footer-tmdb a { color: var(--text-2); }
.tmdb-notice { font-family: var(--font-latin); color: #7b748f !important; font-size: 13px !important; }
[dir="rtl"] .tmdb-notice { text-align: right; }
.footer-legal { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border-soft); display: grid; gap: 10px; color: #6b6480; font-size: 13px; }

/* Reveal motion */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } }

/* Responsive */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .brand-word { height: 26px; } .brand-symbol { height: 34px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .hero-grid, .chapter-grid, .sync-grid, .ob-grid, .collections .ob-grid, .live-head { grid-template-columns: 1fr; gap: 56px; }
  .collections .ob-copy { order: 0; }
  .uni-stage { max-width: 600px; }
  .lib-stage { max-width: 760px; width: 100%; margin-inline: auto; }
  .live-head { gap: 18px; }
  .hero { padding-top: 130px; }
  .hero-device { max-width: 760px; }
  .float-a { top: -10%; } .float-b { top: -12%; }
  .poster-wall { inset-inline: -10% -30%; inset-block: -10%; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rank-card { inset-inline-end: 2%; bottom: -16%; }
  .live-pair { grid-template-columns: 1fr; }
  .hub { margin-bottom: 60px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .hide-sm { display: none; }
  .header-row { gap: 12px; height: 68px; }
  .brand { gap: 8px; }
  .brand-word { height: 21px; }
  .brand-symbol { height: 30px; }
  .header-actions { gap: 8px; }
  .duo-grid, .tiles { grid-template-columns: 1fr; }
  .chapter, .sync, .duo, .recap { padding: 90px 0; }
  .universe, .collections { padding: 96px 0; }
  .lib-stage { aspect-ratio: 4 / 3.6; border-radius: 20px; }
  .lib-front { inset: auto 4% 5%; gap: 10px; }
  .lib-tiles { gap: 3%; }
  .lib-tile { gap: 6px; }
  .lib-tile figcaption b { font-size: 12px; white-space: normal; line-height: 1.3; }
  .lib-tile figcaption small { font-size: 11px; }
  .marks em { width: 18px; }
  .ip-switch button { padding: 8px 14px; font-size: 13px; }
  .hero-device .tv { --ry: -8deg; --rx: 4deg; }
  .float-b, .float-d { display: none; }
  .float-a { inset-inline-start: -4%; top: -16%; width: 20%; }
  .float-c { inset-inline-end: -3%; bottom: -18%; width: 19%; }
  .rank-card { position: relative; inset-inline-end: auto; bottom: auto; width: 100%; margin-top: 18px; transform: none; }
  .platforms, .footer-grid { grid-template-columns: 1fr; }
  .poster { width: 128px; }
  .panel-copy { padding: 4px 24px 30px; }
  .hero-points { gap: 8px 16px; }
  .tv-flat { padding: 5px; border-radius: 14px; }
  .tv-flat .tv-screen { border-radius: 9px; }
  .fav-explainer, .vod { padding: 26px 22px; }
  .hub { aspect-ratio: 1 / 1.05; }
  .dev { width: 36%; padding: 12px 6px 10px; }
  .dev b { font-size: 13px; }
  .hub-core { max-width: 40%; padding: 16px 12px; font-size: 11.5px; }
  .hub-core img { width: 34px; }
  .sync-items { bottom: -84px; }
}
@media (max-width: 379px) {
  .brand-word { display: none; }
}
@media (max-width: 400px) {
  .lang a { min-width: 34px; padding: 5px 8px; }
  .btn-sm { padding: 8px 13px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee.reverse { display: none; }
}

/* 404 */
.nf { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.nf-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.nf-card { position: relative; max-width: 560px; padding: 44px 40px; border-radius: 28px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.nf-card > img { width: 110px; }
.nf-card h1 { font-size: clamp(28px, 4vw, 40px); }
.nf-card .sub { margin-bottom: 10px; }
.nf-ar { font-family: "Noto Sans Arabic", var(--font-latin); color: var(--text-2); line-height: 1.8; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
