/* =========================================================================
   CINEMA — streaming-style design system (public pages + shared tokens)
   Netflix / Disney+ / Hulu look & feel on the existing Careers palette:
   deep navy surfaces + runtime --brand (blue) → --accent (cyan) gradient.
   Colours stay driven by ui.js (/api/settings), so client re-skins still work.
   Load AFTER every other stylesheet on a page.
   ========================================================================= */

:root {
  --brand: 59 130 246;
  --accent: 6 182 212;
  --brand-contrast: 255 255 255;
  --page-bg: 2 6 23;

  --cx-bg: rgb(var(--page-bg));
  --cx-ink: #f8fafc;
  --cx-text: #cbd5e1;
  --cx-muted: #94a3b8;
  --cx-faint: #64748b;
  --cx-line: rgba(148, 163, 184, .12);
  --cx-line-2: rgba(148, 163, 184, .22);
  --cx-s1: #070e1f;
  --cx-s2: #0b1426;
  --cx-s3: #111c33;
  --cx-s4: #17243f;
  --cx-glass: rgba(11, 20, 38, .72);
  --cx-grad: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent)));
  --cx-pay: #34d399;
  --cx-ease: cubic-bezier(.22, .61, .36, 1);
  --cx-pop: cubic-bezier(.2, .9, .3, 1.15);
  --cx-gutter: max(16px, 4vw);
  --cx-display: 'Tektur', 'Inter', system-ui, sans-serif;
  --cx-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cx-grain: 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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body.cx {
  margin: 0;
  min-height: 100vh;
  background: var(--cx-bg);
  color: var(--cx-text);
  font-family: var(--cx-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.cx ::selection { background: rgb(var(--brand) / .45); color: #fff; }
.cx .hidden { display: none !important; }
.cx a { color: inherit; text-decoration: none; }
.cx :focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 3px; border-radius: 6px; }
.cx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.6rem; border-radius: 10px; border: 0;
  font: 700 1rem/1 var(--cx-sans); letter-spacing: .005em; white-space: nowrap;
  cursor: pointer; text-decoration: none; user-select: none;
  transition: transform .2s var(--cx-ease), background-color .2s, box-shadow .25s, color .2s, opacity .2s;
}
.cx-btn svg { flex: none; }
.cx-btn:active { transform: scale(.97); }
.cx-btn-primary {
  color: rgb(var(--brand-contrast)); background-image: var(--cx-grad);
  box-shadow: 0 14px 34px -14px rgb(var(--brand) / .9), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.cx-btn-primary:hover { box-shadow: 0 18px 44px -12px rgb(var(--brand) / 1), inset 0 1px 0 rgba(255, 255, 255, .3); filter: brightness(1.07); }
.cx-btn-light { color: #050a18; background: #fff; }
.cx-btn-light:hover { background: rgba(255, 255, 255, .82); }
.cx-btn-glass {
  color: #fff; background: rgba(109, 122, 150, .38);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cx-btn-glass:hover { background: rgba(109, 122, 150, .26); }
.cx-btn-ghost { color: #e2e8f0; background: transparent; box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .28); }
.cx-btn-ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .5); color: #fff; }
.cx-btn-sm { min-height: 38px; padding: .5rem 1rem; font-size: .875rem; border-radius: 8px; }

/* ── Brand mark ───────────────────────────────────────────────────────── */
.cx-brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; color: #fff; }
.cx-brand-logo { height: 34px; width: auto; max-width: 160px; object-fit: contain; }
.cx-mark {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background-image: var(--cx-grad); color: #fff;
  box-shadow: 0 8px 22px -8px rgb(var(--brand) / .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.cx-brand-logo:not(.hidden) + .cx-mark { display: none; }
.cx-brand-name {
  font: 700 1.2rem/1 var(--cx-display); letter-spacing: -.01em; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Top navigation (transparent → solid on scroll) ───────────────────── */
.cx-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, .82) 0%, rgba(2, 6, 23, .35) 60%, transparent 100%);
  transition: background-color .4s var(--cx-ease), box-shadow .4s, backdrop-filter .4s;
}
.cx-nav.is-scrolled, .cx-nav.is-solid {
  background-color: rgba(2, 6, 23, .9);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 var(--cx-line), 0 20px 40px -30px rgba(0, 0, 0, .9);
}
.cx-nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 68px; padding: 0 var(--cx-gutter);
}
.cx-nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: 2.2rem; margin-right: auto; }
.cx-nav-links a { font-size: .9rem; font-weight: 500; color: #cbd5e1; transition: color .2s; }
.cx-nav-links a:hover { color: #fff; }
.cx-nav-links a[aria-current="page"] { color: #fff; font-weight: 700; }
.cx-nav-right { display: flex; align-items: center; gap: .75rem; }

/* Expanding search (Netflix-style) */
.cx-search {
  position: relative; display: flex; align-items: center; height: 40px; width: 40px;
  border-radius: 999px; overflow: hidden; cursor: text;
  border: 1px solid transparent; background: transparent;
  transition: width .45s var(--cx-ease), background-color .3s, border-color .3s;
}
.cx-search svg { position: absolute; left: 10px; color: #fff; pointer-events: none; }
.cx-search input {
  width: 100%; height: 100%; padding: 0 1rem 0 2.5rem; border: 0; outline: 0;
  background: transparent; color: #fff; font: 500 .9rem var(--cx-sans);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.cx-search input::placeholder { color: transparent; transition: color .3s; }
.cx-search input:focus { outline: 0; border: 0; box-shadow: none; }
.cx-search:hover { background: rgba(255, 255, 255, .06); }
.cx-search:focus-within, .cx-search:has(input:not(:placeholder-shown)) {
  width: min(320px, 56vw); background: rgba(2, 6, 23, .78); border-color: rgba(226, 232, 240, .35);
}
.cx-search:focus-within input, .cx-search:has(input:not(:placeholder-shown)) input { cursor: text; }
.cx-search:focus-within input::placeholder { color: #94a3b8; }
.cx-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }

/* ── Generated key art (posters / billboards) ─────────────────────────── */
.cx-art-bg {
  --x1: 78%; --y1: 28%; --x2: 96%; --y2: 92%; --ang: 118deg;
  --pattern: repeating-linear-gradient(var(--ang), rgba(255, 255, 255, .03) 0 1px, transparent 1px 20px);
  position: absolute; inset: 0;
  background:
    var(--cx-grain),
    linear-gradient(var(--ang), transparent 38%, rgb(var(--accent) / .16) 50%, transparent 62%),
    radial-gradient(62% 85% at var(--x1) var(--y1), rgb(var(--brand) / .62), transparent 62%),
    radial-gradient(48% 62% at var(--x2) var(--y2), rgb(var(--accent) / .5), transparent 64%),
    var(--pattern),
    linear-gradient(160deg, #0c1d44 0%, #071027 52%, #030712 100%);
  transition: transform 1.2s var(--cx-ease);
}
[data-v="1"] > .cx-art-bg, .cx-art-bg[data-v="1"] { --x1: 22%; --y1: 18%; --x2: 88%; --y2: 30%; --ang: 62deg;
  --pattern: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 16px 16px; }
[data-v="2"] > .cx-art-bg, .cx-art-bg[data-v="2"] { --x1: 90%; --y1: 80%; --x2: 12%; --y2: 10%; --ang: 150deg;
  --pattern: repeating-radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .045) 0 1px, transparent 1px 26px); }
[data-v="3"] > .cx-art-bg, .cx-art-bg[data-v="3"] { --x1: 55%; --y1: 0%; --x2: 0%; --y2: 100%; --ang: 25deg;
  --pattern: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 100%; }
[data-v="4"] > .cx-art-bg, .cx-art-bg[data-v="4"] { --x1: 8%; --y1: 85%; --x2: 92%; --y2: 12%; --ang: 98deg;
  --pattern: repeating-conic-gradient(from 0deg at 100% 0%, rgba(255, 255, 255, .03) 0 2deg, transparent 2deg 9deg); }
[data-v="5"] > .cx-art-bg, .cx-art-bg[data-v="5"] { --x1: 70%; --y1: 60%; --x2: 30%; --y2: 0%; --ang: 135deg;
  --pattern: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 14px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 14px); }
.cx-glyph {
  position: absolute; right: -6%; bottom: -14%; width: 62%; height: auto; aspect-ratio: 1;
  color: rgba(255, 255, 255, .13); transform: rotate(-12deg);
  filter: drop-shadow(0 0 28px rgb(var(--accent) / .45));
  transition: transform 1.2s var(--cx-ease), color .6s;
  pointer-events: none;
}

/* ── Billboard (hero) ─────────────────────────────────────────────────── */
.cx-billboard {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 86vh, 900px);
  background: var(--cx-bg);
}
.cx-bb-slide {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden; transition: opacity 1s var(--cx-ease), visibility 1s;
}
.cx-bb-slide.is-active { opacity: 1; visibility: visible; }
.cx-bb-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cx-bb-art .cx-art-bg { animation: cxKen 22s ease-in-out infinite alternate; }
.cx-bb-art .cx-glyph { right: 4%; bottom: auto; top: 14%; width: min(46vw, 640px); color: rgba(255, 255, 255, .09); }
.cx-bb-slide.is-active .cx-glyph { animation: cxFloat 14s ease-in-out infinite alternate; }
.cx-bb-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(77deg, rgba(2, 6, 23, .94) 0%, rgba(2, 6, 23, .7) 30%, rgba(2, 6, 23, .15) 62%, transparent 80%),
    linear-gradient(180deg, rgba(2, 6, 23, .55) 0%, transparent 22%, transparent 58%, rgb(var(--page-bg)) 100%);
}
.cx-bb-content {
  width: 100%; max-width: 820px; padding: 0 var(--cx-gutter) clamp(120px, 20vh, 200px);
}
.cx-bb-kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem;
  font: 700 .78rem/1 var(--cx-sans); letter-spacing: .22em; text-transform: uppercase; color: #e2e8f0;
}
.cx-bb-kicker b {
  display: inline-grid; place-items: center; height: 26px; padding: 0 .55rem; border-radius: 6px;
  font: 800 .72rem/1 var(--cx-display); letter-spacing: .08em; color: #fff;
  background-image: var(--cx-grad); box-shadow: 0 6px 18px -6px rgb(var(--brand) / .9);
}
.cx-bb-title {
  margin: 0; color: #fff; font: 700 clamp(2.6rem, 6.4vw, 5.9rem)/.94 var(--cx-display);
  letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 8px 50px rgba(0, 0, 0, .55);
}
.cx-bb-title em { font-style: normal; background-image: var(--cx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-bb-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .9rem; margin: 1.35rem 0 0;
  font-size: 1.02rem; font-weight: 600; color: #e2e8f0;
}
.cx-bb-meta .cx-pay { color: var(--cx-pay); font-weight: 800; }
.cx-bb-meta .cx-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(226, 232, 240, .5); }
.cx-chip {
  display: inline-flex; align-items: center; gap: .35rem; height: 24px; padding: 0 .55rem; border-radius: 5px;
  font: 700 .72rem/1 var(--cx-sans); letter-spacing: .04em; text-transform: uppercase;
  color: #e2e8f0; box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .4);
}
.cx-bb-desc {
  margin: 1.1rem 0 0; max-width: 40rem; color: #dbe3ee; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cx-bb-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.cx-bb-actions .cx-btn { min-height: 52px; padding: 0 1.9rem; font-size: 1.08rem; }
.cx-bb-dots {
  position: absolute; right: var(--cx-gutter); bottom: clamp(120px, 20vh, 200px); z-index: 3;
  display: flex; gap: .5rem;
}
.cx-bb-dot {
  position: relative; width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(226, 232, 240, .28); overflow: hidden; transition: width .4s var(--cx-ease), background .3s;
}
.cx-bb-dot::before { content: ''; position: absolute; inset: -10px 0; }
.cx-bb-dot.is-active { width: 54px; background: rgba(226, 232, 240, .35); }
.cx-bb-dot.is-active::after {
  content: ''; position: absolute; inset: 0; transform-origin: left; background: #fff;
  animation: cxProgress var(--cx-dwell, 8s) linear forwards;
}
.cx-billboard.is-paused .cx-bb-dot.is-active::after { animation-play-state: paused; }
.cx-bb-rating {
  position: absolute; right: 0; bottom: calc(clamp(120px, 20vh, 200px) + 40px); z-index: 3;
  display: flex; align-items: center; height: 38px; padding: 0 3.2rem 0 .9rem;
  border-left: 3px solid rgb(var(--accent)); background: rgba(51, 65, 85, .45);
  backdrop-filter: blur(6px); font-size: .92rem; font-weight: 600; color: #f1f5f9;
}

/* Billboard skeleton & empty hero */
.cx-bb-skeleton .cx-bb-content > * {
  border-radius: 10px; background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 70%);
  background-size: 200% 100%; animation: cxShimmer 1.4s linear infinite; color: transparent;
}
.cx-skel-line { height: 18px; margin-top: 14px; width: 60%; }
.cx-skel-title { height: 84px; width: 80%; }
.cx-skel-btns { height: 52px; width: 300px; margin-top: 28px; }

/* ── Browse area & rows ───────────────────────────────────────────────── */
.cx-browse { position: relative; z-index: 2; margin-top: clamp(-150px, -14vh, -90px); padding-bottom: 4rem; }
.cx-browse.is-searching { margin-top: 0; padding-top: 110px; }
.cx-browse-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0 var(--cx-gutter); margin-bottom: .2rem; }
.cx-browse-head:empty { display: none; }
.cx-count { margin: 0; color: var(--cx-muted); font-size: .9rem; font-weight: 500; }
.cx-results-title { margin: 0; color: #fff; font: 700 clamp(1.4rem, 2.2vw, 2rem)/1.2 var(--cx-display); letter-spacing: -.01em; }
.cx-results-title span { color: var(--cx-muted); font-weight: 500; }

.cx-row { position: relative; margin: 0 0 clamp(1.2rem, 2.6vw, 2.6rem); }
.cx-row-head { display: flex; align-items: center; gap: .9rem; padding: 0 var(--cx-gutter); }
.cx-row-title {
  margin: 0; color: #e5e7eb; font: 700 clamp(1.08rem, 1.45vw, 1.42rem)/1.3 var(--cx-sans); letter-spacing: -.005em;
}
.cx-row-count {
  display: inline-flex; align-items: center; gap: .3rem; color: rgb(var(--accent)); font-size: .82rem; font-weight: 700;
  opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .35s var(--cx-ease);
}
.cx-row:hover .cx-row-count, .cx-row:focus-within .cx-row-count { opacity: 1; transform: none; }
.cx-track {
  display: flex; gap: clamp(.55rem, .9vw, .9rem); overflow-x: auto; overflow-y: visible;
  padding: 16px var(--cx-gutter) 30px; scroll-padding-inline: var(--cx-gutter);
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.cx-track::-webkit-scrollbar { display: none; }
.cx-track > * { flex: 0 0 auto; width: clamp(250px, 22.5vw, 360px); scroll-snap-align: start; }
.cx-row-arrow {
  position: absolute; z-index: 4; top: 54px; bottom: 30px; width: calc(var(--cx-gutter) - 6px); min-width: 40px;
  display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; color: #fff;
  background: rgba(2, 6, 23, .62); opacity: 0; transition: opacity .3s, background .3s;
}
.cx-row-arrow svg { transition: transform .25s var(--cx-pop); }
.cx-row-arrow:hover { background: rgba(2, 6, 23, .82); }
.cx-row-arrow:hover svg { transform: scale(1.35); }
.cx-row-arrow.prev { left: 0; border-radius: 0 10px 10px 0; }
.cx-row-arrow.next { right: 0; border-radius: 10px 0 0 10px; }
.cx-row:hover .cx-row-arrow:not([disabled]) { opacity: 1; }
.cx-row-arrow[disabled] { opacity: 0 !important; pointer-events: none; }
.cx-row-arrow:focus-visible { opacity: 1; }

.cx-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.1rem, 1.8vw, 1.6rem) clamp(.6rem, 1vw, .9rem); padding: 1.4rem var(--cx-gutter) 0;
}

/* ── Poster cards ─────────────────────────────────────────────────────── */
.cx-card {
  position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, var(--cx-s3), var(--cx-s2));
  box-shadow: 0 26px 30px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--cx-line);
  transition: transform .45s var(--cx-ease), box-shadow .45s var(--cx-ease);
  will-change: transform; color: inherit;
}
.cx-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(249, 249, 249, 0); transition: box-shadow .35s var(--cx-ease);
}
.cx-card:hover, .cx-card:focus-visible {
  transform: translateY(-6px) scale(1.035); outline: none;
  box-shadow: 0 40px 50px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 60px -30px rgb(var(--brand) / .9);
}
.cx-card:hover::after, .cx-card:focus-visible::after { box-shadow: inset 0 0 0 3px rgba(249, 249, 249, .82); }
.cx-card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; }
.cx-card-art::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 30%, rgba(2, 6, 23, .82) 100%);
}
.cx-card:hover .cx-art-bg, .cx-card:focus-visible .cx-art-bg { transform: scale(1.1); }
.cx-card:hover .cx-glyph, .cx-card:focus-visible .cx-glyph { transform: rotate(-4deg) scale(1.08); color: rgba(255, 255, 255, .2); }
.cx-card-tag {
  position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: .45rem;
  max-width: calc(100% - 80px); font: 800 .66rem/1 var(--cx-sans); letter-spacing: .16em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.cx-card-tag i { flex: none; width: 4px; height: 15px; border-radius: 2px; background-image: var(--cx-grad); box-shadow: 0 0 10px rgb(var(--accent) / .9); }
.cx-card-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-badge-new {
  position: absolute; z-index: 2; top: 0; right: 12px; padding: .35rem .5rem .4rem; border-radius: 0 0 6px 6px;
  font: 800 .62rem/1 var(--cx-sans); letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background-image: var(--cx-grad); box-shadow: 0 6px 16px -6px rgb(var(--brand) / .9);
}
.cx-card-title {
  position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; margin: 0;
  color: #fff; font: 700 clamp(1.05rem, 1.35vw, 1.3rem)/1.12 var(--cx-display); letter-spacing: -.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cx-card-body { display: flex; flex-direction: column; gap: .55rem; padding: .85rem 1rem 1rem; flex: 1; }
.cx-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; font-size: .82rem; font-weight: 600; color: #cbd5e1; }
.cx-card-meta .cx-pay { color: var(--cx-pay); font-weight: 800; }
.cx-card-meta .cx-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(203, 213, 225, .5); }
.cx-card-sub { margin: 0; display: flex; align-items: center; gap: .4rem; color: var(--cx-muted); font-size: .8rem; font-weight: 500; overflow: hidden; }
.cx-card-sub svg { flex: none; color: rgb(var(--accent)); }
.cx-card-sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .35rem; }
.cx-card-flag { font-size: .72rem; font-weight: 700; color: #a5b4fc; color: rgb(var(--accent)); letter-spacing: .02em; }
.cx-card-cta {
  display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; height: 34px; padding: 0 .95rem; border-radius: 999px;
  font-size: .82rem; font-weight: 800; color: #050a18; background: #fff;
  transition: transform .3s var(--cx-pop), box-shadow .3s, background .3s, color .3s;
}
.cx-card:hover .cx-card-cta, .cx-card:focus-visible .cx-card-cta {
  color: rgb(var(--brand-contrast)); background-image: var(--cx-grad); box-shadow: 0 10px 24px -10px rgb(var(--brand) / 1); transform: translateX(2px);
}

/* Skeleton cards */
.cx-skel-card {
  border-radius: 12px; aspect-ratio: 16 / 12.5;
  background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .03) 70%);
  background-size: 200% 100%; animation: cxShimmer 1.4s linear infinite;
}

/* Empty / error states */
.cx-empty { padding: 3.5rem var(--cx-gutter) 1rem; text-align: center; }
.cx-empty-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 18px;
  color: rgb(var(--accent)); background: rgb(var(--brand) / .12); box-shadow: inset 0 0 0 1px rgb(var(--brand) / .3);
}
.cx-empty p:first-of-type { margin: 0; color: #fff; font: 700 1.25rem/1.3 var(--cx-display); }
.cx-empty p + p { margin: .45rem 0 0; color: var(--cx-muted); }
.cx-alert {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 1.5rem var(--cx-gutter) 0; padding: 1.1rem 1.25rem; border-radius: 12px;
  background: rgba(244, 63, 94, .1); box-shadow: inset 0 0 0 1px rgba(244, 63, 94, .3); color: #fecdd3; font-weight: 600;
}
.cx-alert p { margin: 0; }

/* "Coming soon" hero (no open roles) */
.cx-soon-perks { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.cx-soon-perk {
  display: flex; align-items: center; gap: .7rem; padding: .8rem 1.05rem; border-radius: 12px;
  background: rgba(11, 20, 38, .6); box-shadow: inset 0 0 0 1px var(--cx-line-2); backdrop-filter: blur(10px);
  color: #e2e8f0; font-size: .9rem; font-weight: 600;
}
.cx-soon-perk svg { color: rgb(var(--accent)); flex: none; }

/* ── Value strip (Hulu-style hub tiles) ───────────────────────────────── */
.cx-hubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 1vw, 1rem); padding: .6rem var(--cx-gutter) 0; margin-top: 1rem; }
.cx-hub {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; gap: 1rem; min-height: 132px;
  padding: 1.25rem 1.35rem; border-radius: 14px; isolation: isolate;
  background: linear-gradient(180deg, var(--cx-s3), var(--cx-s1)); box-shadow: inset 0 0 0 1px var(--cx-line);
}
.cx-hub::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: radial-gradient(80% 120% at 100% 0%, rgb(var(--brand) / .28), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgb(var(--accent) / .14), transparent 60%);
}
.cx-hub-num { font: 700 2.6rem/1 var(--cx-display); color: transparent; -webkit-text-stroke: 1.5px rgba(226, 232, 240, .55); }
.cx-hub h3 { margin: 0; color: #fff; font: 700 1.05rem/1.25 var(--cx-sans); }
.cx-hub p { margin: .3rem 0 0; color: var(--cx-muted); font-size: .86rem; line-height: 1.45; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.cx-footer { padding: 3rem var(--cx-gutter) 3.2rem; color: var(--cx-faint); font-size: .86rem; border-top: 1px solid rgba(148, 163, 184, .08); }
.cx-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; max-width: 1200px; }
.cx-footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.cx-footer a { color: var(--cx-muted); transition: color .2s; }
.cx-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cx-footer-brand { display: flex; align-items: center; gap: .55rem; color: var(--cx-muted); }

/* ── Sign-in (Netflix-style poster mosaic backdrop) ───────────────────── */
.cx-auth { min-height: 100vh; display: flex; flex-direction: column; }
.cx-auth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #030712; }
.cx-mosaic {
  position: absolute; left: 50%; top: 50%; width: 170vmax; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px;
  transform: translate(-50%, -50%) perspective(1400px) rotateX(22deg) rotateZ(-14deg) scale(1.08);
  animation: cxDrift 60s linear infinite alternate;
}
.cx-tile { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px -20px #000; }
.cx-tile .cx-glyph { width: 70%; right: -12%; bottom: -8%; color: rgba(255, 255, 255, .22); }
.cx-tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .12); }
.cx-tile:nth-child(3n) { opacity: .7; }
.cx-tile:nth-child(5n+2) { opacity: .85; }
.cx-auth-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(42% 58% at 50% 50%, rgba(2, 6, 23, .7), rgba(2, 6, 23, .3) 70%, rgba(2, 6, 23, .55) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, .82) 0%, rgba(2, 6, 23, .12) 22%, rgba(2, 6, 23, .12) 70%, rgba(2, 6, 23, .9) 100%);
}
.cx-auth-main { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 104px 16px 56px; }
.cx-auth-card {
  width: 100%; max-width: 450px; padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 62px) clamp(28px, 4vw, 44px);
  border-radius: 14px; background: rgba(2, 6, 23, .78);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(148, 163, 184, .14), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: cxRise .8s var(--cx-ease) both;
}
.cx-auth-kicker { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgb(var(--accent)); }
.cx-auth-kicker i { width: 18px; height: 2px; background-image: var(--cx-grad); }
.cx-auth-title { margin: 0; color: #fff; font: 700 2rem/1.1 var(--cx-display); letter-spacing: -.015em; }
.cx-auth-sub { margin: .6rem 0 0; color: var(--cx-muted); font-size: .95rem; }
.cx-field { position: relative; margin-top: 1rem; }
.cx-field input {
  display: block; width: 100%; height: 58px; padding: 1.45rem 1rem .45rem 3rem; border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .32); background: rgba(15, 23, 42, .72); color: #fff;
  font: 500 1rem var(--cx-sans); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.cx-field input::placeholder { color: transparent; }
.cx-field label {
  position: absolute; left: 3rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1rem; pointer-events: none;
  transition: top .2s var(--cx-ease), font-size .2s, transform .2s var(--cx-ease), color .2s;
}
.cx-field input:focus + label, .cx-field input:not(:placeholder-shown) + label { top: 12px; transform: none; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.cx-field input:focus { border-color: rgb(var(--accent)); background: rgba(15, 23, 42, .9); box-shadow: 0 0 0 3px rgb(var(--brand) / .28); }
.cx-field input:focus + label { color: rgb(var(--accent)); }
.cx-field svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; transition: color .2s; }
.cx-field:focus-within svg { color: rgb(var(--accent)); }
.cx-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #0f172a inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.cx-auth .cx-btn-block { width: 100%; margin-top: 1.6rem; height: 52px; }
.cx-auth-error {
  margin-top: 1rem; padding: .8rem 1rem; border-radius: 8px; font-size: .88rem; font-weight: 600;
  color: #fff; background: #e87c03; background: rgba(232, 124, 3, .9); box-shadow: 0 10px 24px -14px rgba(232, 124, 3, .9);
}
.cx-auth-alt { margin: 1.6rem 0 0; color: var(--cx-muted); font-size: .95rem; }
.cx-auth-alt a { color: #fff; font-weight: 700; }
.cx-auth-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cx-auth-note { margin: 1rem 0 0; color: var(--cx-faint); font-size: .8rem; line-height: 1.5; }

/* Presentation-mode controls (inline-styled by ui.js; demo mode only) */
#presentationControls { position: relative; z-index: 5; }
#presentationControls button, [data-presentation-action] button {
  color: #cbd5e1 !important; border: 1px solid rgba(148, 163, 184, .28) !important; background: rgba(15, 23, 42, .6) !important;
  border-radius: 999px !important; padding: 8px 16px !important; backdrop-filter: blur(8px); font-weight: 600 !important;
}
#presentationControls button:hover, [data-presentation-action] button:hover { color: #fff !important; border-color: rgba(226, 232, 240, .5) !important; }

/* ── Motion ───────────────────────────────────────────────────────────── */
@keyframes cxShimmer { to { background-position: -200% 0; } }
@keyframes cxKen { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-2%, -1.5%, 0); } }
@keyframes cxFloat { from { transform: rotate(-12deg) translate3d(0, 0, 0); } to { transform: rotate(-6deg) translate3d(-3%, 4%, 0); } }
@keyframes cxProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cxRise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes cxDrift { from { transform: translate(-50%, -50%) perspective(1400px) rotateX(22deg) rotateZ(-14deg) scale(1.08); } to { transform: translate(-46%, -53%) perspective(1400px) rotateX(22deg) rotateZ(-14deg) scale(1.12); } }
.cx-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--cx-ease), transform .8s var(--cx-ease); }
.cx-reveal.is-in { opacity: 1; transform: none; }
.cx-bb-slide.is-active .cx-bb-content > * { animation: cxRise .9s var(--cx-ease) both; }
.cx-bb-slide.is-active .cx-bb-content > :nth-child(2) { animation-delay: .08s; }
.cx-bb-slide.is-active .cx-bb-content > :nth-child(3) { animation-delay: .16s; }
.cx-bb-slide.is-active .cx-bb-content > :nth-child(4) { animation-delay: .24s; }
.cx-bb-slide.is-active .cx-bb-content > :nth-child(5) { animation-delay: .32s; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cx-nav-links { display: none; }
  .cx-hubs { grid-template-columns: 1fr; }
  .cx-hub { min-height: 0; }
}
@media (max-width: 640px) {
  .cx-nav-inner { height: 60px; gap: .5rem; }
  .cx-brand-name { font-size: 1.05rem; }
  .cx-mark { width: 30px; height: 30px; border-radius: 9px; }
  .cx-search:focus-within, .cx-search:has(input:not(:placeholder-shown)) { width: min(220px, 52vw); }
  .cx-billboard { min-height: max(600px, 92svh); }
  .cx-bb-shade {
    background:
      linear-gradient(180deg, rgba(2, 6, 23, .6) 0%, rgba(2, 6, 23, .15) 26%, rgba(2, 6, 23, .55) 52%, rgb(var(--page-bg)) 94%);
  }
  .cx-bb-art .cx-glyph { width: 86vw; right: -18%; top: 9%; }
  .cx-bb-content { padding-bottom: 150px; text-align: left; }
  .cx-bb-meta { font-size: .92rem; }
  .cx-bb-actions .cx-btn { flex: 1; padding: 0 1rem; min-height: 50px; font-size: 1rem; }
  .cx-bb-dots { left: var(--cx-gutter); right: auto; bottom: 108px; }
  .cx-bb-rating { display: none; }
  .cx-browse { margin-top: -80px; }
  .cx-track > * { width: 76vw; }
  .cx-row-arrow { display: none; }
  .cx-card:hover, .cx-card:focus-visible { transform: none; }
  .cx-auth-card { background: rgba(2, 6, 23, .86); }
  .cx-footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (hover: none) {
  .cx-row-count { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cx *, .cx *::before, .cx *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .cx-reveal { opacity: 1; transform: none; }
}
