:root {
  /* Warmer, softer deep-ink palette — cinema projection room, not a blackout. */
  --bg: #15131a;
  --bg-deep: #110f16;
  --bg-elev: #1c1a22;
  --bg-soft: #242230;
  --ink: #f2ede4;
  --ink-soft: #a8a39a;
  --muted: #6e6a63;
  --line: rgba(242, 237, 228, 0.07);
  --line-strong: rgba(242, 237, 228, 0.16);
  --accent: #c9a961;
  --accent-hot: #e8c77a;
  --accent-deep: #8a7238;
  --danger: #e05a4f;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 40px 120px rgba(0, 0, 0, 0.65);
  --radius: 2px;
  --radius-lg: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Ambient glow moved to a fixed ::before so it doesn't repaint on every scroll frame. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 169, 97, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 100%, rgba(201, 169, 97, 0.03) 0%, transparent 55%);
}

/* HTMX: top progress bar */
.htmx-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 9998;
  pointer-events: none;
}
.htmx-progress > div {
  height: 100%; width: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201, 169, 97, 0.6);
  transition: width .3s var(--ease), opacity .3s var(--ease);
}
body.htmx-request .htmx-progress > div { width: 80%; }
.htmx-progress > div { opacity: 0; }
body.htmx-request .htmx-progress > div { opacity: 1; }

/* HTMX swap transition */
main#app.htmx-swapping { opacity: 0; transition: opacity .15s var(--ease); }
main#app.htmx-settling { opacity: 1; transition: opacity .3s var(--ease); }

/* Nav badge */
.nav-badge {
  display: inline-block;
  padding: 1px 7px; margin-left: 4px;
  font-size: 0.62rem; font-weight: 700;
  background: var(--accent); color: var(--bg-deep);
  border-radius: 10px;
}

/* Console layout */
.console { max-width: 1440px; margin: 0 auto; padding: 60px 48px 100px; }
.console-hero { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.console-hero h1 { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 10px 0 10px; }
.console-hero p { color: var(--ink-soft); }
.console-filters { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.console-search {
  flex: 1; min-width: 240px;
  padding: 12px 18px;
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  color: var(--ink); border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.92rem;
}
.console-search:focus { outline: none; border-color: var(--accent); }
.console-tabs { display: flex; gap: 2px; }
.console-tabs .tab {
  padding: 10px 18px; color: var(--ink-soft); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--line); border-right: 0;
  background: var(--bg-elev);
}
.console-tabs .tab:last-child { border-right: 1px solid var(--line); }
.console-tabs .tab:hover { color: var(--ink); }
.console-tabs .tab.is-active { color: var(--accent); border-color: var(--accent); background: rgba(201,169,97,0.06); }

.stat-link { color: inherit; display: block; }
.stat-link:hover { border-color: var(--accent); }
.stat-foot { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 12px; }

.row-muted { opacity: 0.55; }

/* Review page */
.review .rv-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 24px;
}
.review .rv-head h1 { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 2.4rem; margin: 8px 0 10px; }
.review .rv-meta { color: var(--ink-soft); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }
.rv-head-qc { display: flex; gap: 8px; align-items: center; }
.rv-banner {
  padding: 14px 20px; border-radius: var(--radius);
  margin-bottom: 24px; font-size: 0.9rem;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.rv-banner-wait { background: rgba(201,169,97,0.08); border: 1px solid var(--accent); color: var(--ink); }
.rv-banner-ok { background: rgba(127,201,155,0.08); border: 1px solid #7fc99b66; color: var(--ink); }
.rv-banner-bad { background: rgba(224,90,79,0.08); border: 1px solid #e05a4f66; color: var(--ink); }

.rv-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-bottom: 40px; }
.rv-player { }
.rv-player-meta { padding-top: 14px; color: var(--ink-soft); font-size: 0.82rem; letter-spacing: 0.1em; }

.rv-inspector { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.rv-tabs { display: flex; gap: 2px; margin-bottom: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.rv-tab {
  background: transparent; border: none;
  padding: 12px 18px; color: var(--ink-soft);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.rv-tab:hover { color: var(--ink); }
.rv-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.rv-panel { display: none; }
.rv-panel.is-active { display: block; }

.rv-track-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  margin-bottom: 12px;
}
.rv-track-head { font-size: 0.88rem; color: var(--ink); margin-bottom: 10px; }
.rv-wave {
  height: 80px; background: var(--bg-deep);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.78rem;
  margin: 8px 0;
}
.rv-wave-placeholder { padding: 18px; text-align: center; }
.rv-track-foot { font-size: 0.78rem; padding-top: 6px; }

.review-decision {
  position: sticky; bottom: 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line-strong);
  padding: 20px 28px;
  margin-left: -48px; margin-right: -48px;
  z-index: 10;
}
.rv-actions-row { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }

@media (max-width: 1080px) {
  .rv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .console { padding: 40px 24px 80px; }
  .review-decision { margin-left: -24px; margin-right: -24px; padding: 16px 24px; }
}

/* Film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: var(--ink); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: #0a0a0b; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.75) 100%);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  will-change: transform;
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.brand-logo {
  display: block;
  height: 32px;
  width: auto;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a, .nav-links button.link-btn {
  color: var(--ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--sans);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-links a:hover, .nav-links button.link-btn:hover { color: var(--ink); }
.nav-user {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .4s var(--ease);
  background: var(--accent);
  color: #0a0a0b;
  position: relative;
  overflow: hidden;
}
.btn:hover { background: var(--accent-hot); color: #0a0a0b; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(201, 169, 97, 0.25); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { background: var(--ink); color: #0a0a0b; border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-ghost:hover { color: var(--ink); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  width: 100%;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) {
  .hero { padding: 88px 0 48px; }
  .hero-inner { padding: 0 24px; }
}
.hero::after {
  content: "";
  position: absolute;
  left: 48px;
  top: 120px;
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 36px;
  font-weight: 500;
  padding-left: 20px;
  position: relative;
}
.hero .eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 1px;
  background: var(--accent);
}
.hero h1 {
  max-width: 1100px;
  margin-bottom: 36px;
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero p {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin-top: 56px;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 70% 40%, rgba(201, 169, 97, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(201, 169, 97, 0.04) 0%, transparent 50%),
              linear-gradient(180deg, #0a0a0b 0%, #141416 100%);
}

/* Main */
/* main#app is the outer shell — keep it full-width so hero/spotlight can reach the edges */
main#app { width: 100%; }
/* Use .content-container on any inner main/section that needs the 1440px cap */
.content-container { max-width: 1440px; margin: 0 auto; padding: 40px 48px 80px; }
/* Back-compat: auth pages + other bare <main> blocks inherit the old centred look */
.auth-wrap { /* already self-contained */ }

/* Wizard rail links */
.wz-rail ol a { display: flex; align-items: center; gap: 12px; color: inherit; }
.wz-rail ol a:hover { color: var(--accent); }
.wz-check { color: var(--accent); margin-left: 2px; }

/* Tier cards */
.tier-grid { grid-template-columns: repeat(3, 1fr); }
.tier-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 18px; }
.tier-price-main { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.tier-price-monthly { color: var(--ink-soft); font-size: 0.84rem; }
@media (max-width: 1024px) { .tier-grid { grid-template-columns: 1fr; } }

/* Uploader Home cards */
.uploader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.uploader-card {
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  transition: border-color .2s var(--ease);
}
.uploader-card:hover { border-color: var(--accent); }
.uploader-card-title { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 1.2rem; color: var(--ink); }
.uploader-card-meta { color: var(--ink-soft); font-size: 0.78rem; margin-top: 6px; }
.uploader-card-actions { display: flex; gap: 8px; align-items: center; }

/* Review Bay — audio tracks + wavesurfer */
.bay-audio-list { display: flex; flex-direction: column; gap: 14px; }
.bay-aud {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  transition: border-color .2s var(--ease);
}
.bay-aud:hover { border-color: var(--line-strong); }
.bay-aud.is-primary { border-color: var(--accent); background: linear-gradient(180deg, rgba(201,169,97,0.05), var(--bg-soft)); }
.bay-aud-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  margin-bottom: 12px;
}
.bay-aud-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bay-aud-title strong { color: var(--ink); font-size: 0.92rem; font-weight: 500; }
.bay-aud-source { font-size: 0.56rem !important; opacity: 0.75; }
.bay-aud-actions { display: flex; gap: 6px; }
.bay-aud-play, .bay-aud-remove {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-deep); border: 1px solid var(--line-strong);
  color: var(--ink); cursor: pointer;
  font-size: 0.8rem;
  transition: all .2s var(--ease);
}
.bay-aud-play:hover { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.bay-aud-remove:hover { background: var(--danger); color: white; border-color: var(--danger); }
.bay-aud-wave {
  background: var(--bg-deep);
  border-radius: 3px;
  padding: 8px 10px;
  min-height: 72px;
}
.bay-aud-meta {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  color: var(--ink-soft);
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}
.bay-aud-placeholder { margin-top: 8px; }

.bay-add-form { margin-top: 14px; }
.bay-check { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.82rem; text-transform: none; letter-spacing: 0; margin-top: 6px; }
.bay-check input { accent-color: var(--accent); }
.bay-notes-ta { width: 100%; background: var(--bg-deep); border: 1px solid var(--line-strong); color: var(--ink); padding: 14px; border-radius: 4px; font-family: var(--sans); font-size: 0.95rem; line-height: 1.6; resize: vertical; }
.bay-notes-ta:focus { outline: none; border-color: var(--accent); }

/* Review Bay */
.bay-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; margin: 28px 0 40px; }
.bay-player .bay-controls {
  display: flex; align-items: center; gap: 14px;
  margin-top: 12px; padding: 12px 16px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.bay-time { font-family: "SF Mono", ui-monospace, monospace; color: var(--accent); font-size: 0.95rem; }
.bay-hint { color: var(--muted); font-size: 0.74rem; margin-top: 10px; letter-spacing: 0.08em; }
.bay-hint kbd { background: var(--bg-elev); padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 0.72rem; }

.bay-side { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.bay-tabs { display: flex; gap: 2px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.bay-tab { background: none; border: none; padding: 10px 14px; color: var(--ink-soft); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bay-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.bay-panel { display: none; }
.bay-panel.is-active { display: block; }
.bay-panel h3 { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 1.3rem; margin-bottom: 14px; }

.bay-track {
  padding: 12px 14px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px;
}
.bay-track-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bay-add { margin-top: 10px; }
.bay-add summary { cursor: pointer; list-style: none; }
.bay-add summary::-webkit-details-marker { display: none; }

.bay-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.bay-ai-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; text-align: left;
  color: var(--ink); cursor: not-allowed; opacity: 0.55;
  display: flex; flex-direction: column; gap: 4px;
}
.bay-ai-card strong { font-size: 0.9rem; }
.bay-ai-card span { color: var(--ink-soft); font-size: 0.74rem; }

@media (max-width: 1080px) {
  .bay-grid { grid-template-columns: 1fr; }
}

/* ============================================= */
/*             Wizard QC status pill              */
/* ============================================= */
.wz-chrome { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 56px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.wz-chrome .wz-rail { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.wz-qc-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.wz-qc-pill:hover { border-color: var(--accent); color: var(--ink); }
.wz-qc-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.wz-qc-pill.is-running { color: var(--accent); border-color: var(--accent); }
.wz-qc-pill.is-running .wz-qc-pill-dot { background: var(--accent); animation: qcPulse 1.4s ease-in-out infinite; }
.wz-qc-pill.is-pass { color: #7fc99b; border-color: #7fc99b66; }
.wz-qc-pill.is-pass .wz-qc-pill-dot { background: #7fc99b; }
.wz-qc-pill.is-warn { color: var(--accent-hot); border-color: var(--accent); }
.wz-qc-pill.is-warn .wz-qc-pill-dot { background: var(--accent-hot); }
.wz-qc-pill.is-fail { color: var(--danger); border-color: #e05a4f66; }
.wz-qc-pill.is-fail .wz-qc-pill-dot { background: var(--danger); }

/* ============================================= */
/*                 QC Report                      */
/* ============================================= */
.qc-top {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 36px; align-items: center;
  padding: 28px; margin-bottom: 32px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.qc-score-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid var(--accent);
  background: radial-gradient(circle at 30% 30%, rgba(201,169,97,0.12), transparent 70%);
}
.qc-score-num { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 2.6rem; color: var(--ink); line-height: 1; }
.qc-score-label { font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.qc-progress { width: 100%; height: 4px; background: var(--line-strong); border-radius: 2px; overflow: hidden; margin: 14px 0 10px; }
.qc-progress-bar { height: 100%; background: var(--accent); transition: width .4s var(--ease); box-shadow: 0 0 12px rgba(201,169,97,0.4); }
.qc-progress-stats { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.qc-progress-stats span:first-child { color: var(--ink); font-weight: 600; }

.qc-section-nav {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 16px 0 20px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 5;
}
.qc-section-nav a {
  color: var(--ink-soft); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 8px 0;
}
.qc-section-nav a:hover { color: var(--accent); }
.qc-tag { color: var(--muted); margin-left: 4px; }

.qc-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.qc-section:last-child { border-bottom: none; }
.qc-section h2 {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 1.8rem; margin-bottom: 20px;
}

.qc-tabs-head {
  display: flex; gap: 2px;
  margin-bottom: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.qc-tab {
  background: transparent; border: none;
  padding: 12px 18px;
  color: var(--ink-soft);
  font-size: 0.78rem; letter-spacing: 0.1em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.qc-tab:hover { color: var(--ink); }
.qc-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.qc-empty-hint { padding: 28px; color: var(--muted); font-style: italic; border: 1px dashed var(--line); border-radius: var(--radius); }


.qc-wrap { margin-top: 8px; }
.qc-status-bar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 36px;
}
.qc-status-chip {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 2px;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--line-strong);
}
.qc-status-chip.is-running, .qc-status-chip.is-pending { color: var(--accent); border-color: var(--accent); background: rgba(201,169,97,0.08); }
.qc-status-chip.is-running::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 10px;
  animation: qcPulse 1.4s ease-in-out infinite;
}
@keyframes qcPulse { 0%,100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }
.qc-status-chip.is-pass { color: #7fc99b; border-color: #7fc99b44; background: #7fc99b11; }
.qc-status-chip.is-warn { color: var(--accent-hot); border-color: var(--accent); background: rgba(201,169,97,0.08); }
.qc-status-chip.is-fail { color: var(--danger); border-color: #e05a4f66; background: rgba(224,90,79,0.08); }
.qc-status-meta { color: var(--ink-soft); font-size: 0.88rem; }

.qc-groups { display: grid; gap: 32px; }
.qc-group h3 {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 1.3rem; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.qc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.qc-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.qc-row-empty td { color: var(--muted); font-style: italic; padding: 20px 14px; }
.qc-icon {
  width: 28px; text-align: center;
  font-weight: bold; font-size: 0.95rem;
}
.qc-row-pass .qc-icon { color: #7fc99b; }
.qc-row-warn .qc-icon { color: var(--accent-hot); }
.qc-row-fail .qc-icon { color: var(--danger); }
.qc-name { color: var(--ink); min-width: 220px; }
.qc-detail { color: var(--ink-soft); font-family: "SF Mono", ui-monospace, monospace; font-size: 0.86rem; }
.qc-row-fail .qc-detail { color: var(--danger); }
.qc-row-warn .qc-detail { color: var(--accent-hot); }

/* ============================================= */
/*                Upload Wizard                   */
/* ============================================= */
.wz {
  max-width: 1040px;
  margin: 0 auto;
  padding: 60px 48px 100px;
}
.wz-rail {
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.wz-rail ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 40px;
  counter-reset: wz;
}
.wz-rail li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.wz-rail .wz-num {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 1.15rem; color: var(--muted); letter-spacing: 0;
}
.wz-rail li.is-active { color: var(--ink); }
.wz-rail li.is-active .wz-num { color: var(--accent); }
.wz-rail li.is-done { color: var(--ink-soft); }
.wz-rail li.is-done .wz-num { color: var(--accent); }
.wz-rail li.is-done::after { content: "✓"; color: var(--accent); margin-left: 2px; font-weight: bold; letter-spacing: 0; }

.wz-head { margin-bottom: 44px; max-width: 720px; }
.wz-head h1 {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05;
  margin: 14px 0 18px;
}
.wz-head p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; max-width: 56ch; }

.wz-warn {
  margin-top: 24px; padding: 18px 22px;
  background: rgba(224, 90, 79, 0.08);
  border: 1px solid rgba(224, 90, 79, 0.3);
  border-radius: var(--radius);
  color: var(--ink-soft); font-size: 0.9rem;
}
.wz-warn code { background: rgba(245,241,234,0.08); padding: 2px 6px; border-radius: 2px; font-size: 0.8rem; }

.wz-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--line);
  gap: 14px;
}
.wz-actions .btn-gate-primary { margin-left: auto; }

/* Dropzone */
.wz-dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.wz-dropzone.is-dragover { border-color: var(--accent); background: rgba(201,169,97,0.05); }
.wz-dropzone-inner { text-align: center; width: 100%; max-width: 500px; }
.wz-dropzone-icon {
  width: 64px; height: 64px; margin: 0 auto 24px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.8rem; font-weight: 300;
}
.wz-dropzone-title {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 1.7rem; margin-bottom: 10px;
}
.wz-dropzone-sub {
  color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px;
}
.wz-dropzone-hint {
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.wz-linkbtn {
  background: none; border: none; color: var(--accent);
  cursor: pointer; font: inherit; text-decoration: underline; padding: 0;
}
.wz-file-name {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 1.3rem; margin-bottom: 22px; color: var(--ink);
}
.wz-progress {
  width: 100%; height: 4px;
  background: var(--line-strong); border-radius: 2px; overflow: hidden;
  margin-bottom: 16px;
}
.wz-progress-bar {
  height: 100%; background: var(--accent); transition: width .3s linear;
  box-shadow: 0 0 12px rgba(201,169,97,0.4);
}
.wz-progress-stats {
  display: flex; justify-content: space-between; gap: 20px;
  color: var(--ink-soft); font-size: 0.82rem; font-variant-numeric: tabular-nums;
}
.wz-progress-stats span:first-child { color: var(--ink); font-weight: 600; }
.wz-done-mark {
  width: 64px; height: 64px; margin: 0 auto 24px;
  background: var(--accent); color: #0a0a0b;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700;
}

/* QC choice cards */
.wz-qc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wz-qc-card {
  display: block; cursor: pointer;
  position: relative;
}
.wz-qc-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.wz-qc-card-inner {
  background: var(--bg-elev);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all .3s var(--ease);
  height: 100%;
  position: relative;
}
.wz-qc-card:hover .wz-qc-card-inner { border-color: var(--accent); transform: translateY(-2px); }
.wz-qc-card input[type="radio"]:checked + .wz-qc-card-inner {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(201,169,97,0.06), var(--bg-elev));
  box-shadow: 0 0 0 1px var(--accent), 0 20px 40px rgba(0,0,0,0.5);
}
.wz-qc-flag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent); color: #0a0a0b;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  border-radius: 2px; margin-bottom: 18px;
}
.wz-qc-flag-soft {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  border-radius: 2px; margin-bottom: 18px;
}
.wz-qc-card h3 {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 1.8rem; margin-bottom: 14px; color: var(--ink);
}
.wz-qc-lede { color: var(--ink-soft); margin-bottom: 22px; line-height: 1.6; }
.wz-qc-checks { list-style: none; padding: 0; margin: 0 0 22px; }
.wz-qc-checks li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.9rem; color: var(--ink);
}
.wz-qc-checks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: bold;
}
.wz-qc-providers-title {
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.wz-qc-providers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.wz-qc-chip {
  display: inline-block; padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.72rem; color: var(--ink-soft);
}
.wz-qc-chip-more { color: var(--muted); }
.wz-qc-foot {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.78rem;
}

/* Form step */
.wz-form { max-width: 640px; }
.wz-form .form-field { margin-bottom: 28px; }
.wz-form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }

/* Preview step */
.wz-preview {
  display: grid; grid-template-columns: 200px 1fr; gap: 36px;
  align-items: flex-start;
  padding: 32px; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.wz-preview-poster img { width: 100%; border-radius: var(--radius-lg); display: block; }
.wz-poster-ph {
  aspect-ratio: 2/3;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-style: italic; font-size: 3rem;
  color: var(--accent);
  background: radial-gradient(circle at 30% 30%, #2a2a2d, #0a0a0b);
  border-radius: var(--radius-lg);
}
.wz-preview-body h2 {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 2.2rem; margin: 12px 0 14px;
}
.wz-preview-meta {
  color: var(--ink-soft); font-size: 0.74rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 20px;
}
.wz-preview-body p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 28px; }
.wz-preview-facts {
  display: grid; grid-template-columns: 120px 1fr; gap: 10px 18px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.wz-preview-facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.68rem; }
.wz-preview-facts dd { color: var(--ink); margin: 0; }

@media (max-width: 860px) {
  .wz { padding: 40px 24px 80px; }
  .wz-rail ol { gap: 18px; flex-wrap: wrap; }
  .wz-rail .wz-label { display: none; }
  .wz-qc-grid { grid-template-columns: 1fr; }
  .wz-form-row { grid-template-columns: 1fr; }
  .wz-preview { grid-template-columns: 1fr; }
}

/* ============================================= */
/*            Landing page (marketing)            */
/* ============================================= */
.lx-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}
.lx-hero-backdrop {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(201, 169, 97, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(201, 169, 97, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #0a0a0b 0%, #141416 60%, #0a0a0b 100%);
}
.lx-hero-vignette {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10,10,11,0.7) 100%);
}
.lx-hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  width: 100%;
}
.lx-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 36px;
  padding-left: 28px;
  position: relative;
}
.lx-eyebrow::before {
  content: ""; position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--accent);
}
.lx-hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
  max-width: 14ch;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.lx-hero-title em { color: var(--accent); font-style: italic; }
.lx-hero-sub {
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 48px;
}
.lx-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.lx-hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lx-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }
.lx-scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  z-index: 2;
  animation: lxBob 2.4s ease-in-out infinite;
}
@keyframes lxBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Values */
.lx-values {
  padding: 120px 48px;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.lx-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
}
.lx-value { }
.lx-value-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.lx-value h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.6rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
.lx-value p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.75; max-width: 36ch; }

/* Featured rail */
.lx-featured {
  padding: 100px 48px;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.lx-section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 48px;
}
.lx-section-head h2 {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 12px;
}
.lx-section-head .lx-eyebrow { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.lx-see-all {
  grid-column: 2;
  grid-row: 2;
  color: var(--ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 12px;
}
.lx-see-all:hover { color: var(--accent); }
.lx-featured-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.lx-poster-card { color: inherit; display: block; }
.lx-poster {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.lx-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); filter: saturate(0.85); }
.lx-poster-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: var(--display);
  font-style: italic; font-size: 3rem;
  background: radial-gradient(circle at 30% 30%, #2a2a2d, #0a0a0b);
}
.lx-poster-card:hover .lx-poster { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.7); }
.lx-poster-card:hover .lx-poster img { transform: scale(1.06); filter: saturate(1); }
.lx-poster-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.lx-poster-card:hover .lx-poster-scrim { opacity: 1; }
.lx-poster-meta { padding: 16px 4px 4px; }
.lx-poster-meta h4 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.25;
  transition: color .3s var(--ease);
}
.lx-poster-card:hover .lx-poster-meta h4 { color: var(--accent); }
.lx-poster-sub {
  margin-top: 6px;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Quote */
.lx-quote {
  padding: 140px 48px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.lx-quote-mark {
  font-family: var(--display);
  font-size: 8rem;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
}
.lx-quote blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 36px;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
.lx-quote cite {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
}
.lx-quote cite em { color: var(--accent); font-style: italic; text-transform: none; letter-spacing: 0.02em; }

/* Filmmakers */
.lx-filmmakers {
  padding: 120px 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 75% 40%, rgba(201, 169, 97, 0.08) 0%, transparent 60%),
    var(--bg);
}
.lx-filmmakers-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.lx-filmmakers-inner .lx-eyebrow {
  padding-left: 0;
  margin-bottom: 32px;
}
.lx-filmmakers-inner .lx-eyebrow::before { display: none; }
.lx-filmmakers-inner h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 28px;
}
.lx-filmmakers-inner h2 em { color: var(--accent); }
.lx-filmmakers-inner p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 52ch;
  margin: 0 auto 40px;
}

/* Footer CTA */
.lx-footer-cta {
  padding: 120px 48px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.lx-footer-cta h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 20px;
}
.lx-footer-cta p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .lx-hero { padding: 100px 24px 60px; }
  .lx-values, .lx-featured, .lx-quote, .lx-filmmakers, .lx-footer-cta { padding-left: 24px; padding-right: 24px; }
  .lx-section-head { grid-template-columns: 1fr; }
  .lx-section-head .lx-see-all { grid-column: 1; grid-row: 3; padding-top: 8px; }
  .lx-hero-cta { flex-direction: column; }
  .lx-hero-cta .btn { width: 100%; }
  .lx-hero-meta { flex-wrap: wrap; font-size: 0.64rem; }
  .lx-featured-rail { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
}

/* Gated card (unauthenticated hover) */
.video-card.gated .thumb { cursor: pointer; }
.video-card.gated .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(201,169,97,0) 0%, rgba(10,10,11,0.45) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.video-card.gated:hover .thumb::after { opacity: 1; }
.video-card.gated .play {
  background: rgba(201, 169, 97, 0.92);
  color: #0a0a0b;
  border-color: var(--accent);
}

/* Signup gate — full-screen cinematic takeover */
.gate-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 24px;
}
.gate-backdrop {
  position: absolute; inset: -40px;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0b;
  filter: blur(40px) saturate(1.1) brightness(0.35);
  transform: scale(1.15);
  z-index: 0;
}
.gate-vignette {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.92) 85%),
    linear-gradient(180deg, rgba(10,10,11,0.4) 0%, rgba(10,10,11,0.85) 100%);
}
.gate-close {
  position: absolute; top: 28px; right: 32px; z-index: 3;
  width: 44px; height: 44px;
  background: rgba(10, 10, 11, 0.4);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink); cursor: pointer;
  font-size: 1.5rem; line-height: 1;
  transition: all .25s var(--ease);
  backdrop-filter: blur(10px);
}
.gate-close:hover { background: var(--ink); color: #0a0a0b; border-color: var(--ink); transform: rotate(90deg); }

.gate-inner {
  position: relative; z-index: 2;
  max-width: 520px; width: 100%;
  padding: 24px;
  text-align: center;
}

.gate-brand {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 56px;
  position: relative;
  display: inline-block;
}
.gate-brand::after {
  content: ""; position: absolute;
  bottom: -18px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 1px; background: var(--accent);
}
.gate-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.gate-title {
  font-family: var(--display);
  font-style: italic; font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.gate-title em { color: var(--accent); font-style: italic; display: block; margin-top: 6px; }
.gate-sub {
  color: var(--ink-soft);
  font-size: 1.02rem; line-height: 1.75;
  max-width: 44ch;
  margin: 0 auto 40px;
}
.gate-actions {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 340px; margin: 0 auto;
}
.btn-gate-primary {
  background: var(--ink);
  color: #0a0a0b;
  letter-spacing: 0.24em;
  padding: 17px 28px;
  font-size: 0.78rem;
  font-weight: 600;
}
.btn-gate-primary:hover { background: var(--accent); color: #0a0a0b; }
.gate-aside {
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(245, 241, 234, 0.08);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.gate-aside a { color: var(--accent); margin-left: 6px; }
.gate-aside a:hover { color: var(--accent-hot); }

@media (max-width: 640px) {
  .gate-close { top: 18px; right: 18px; }
  .gate-brand { margin-bottom: 40px; }
  .gate-inner { padding: 16px; }
}

/* Studio dashboard */
.studio { padding: 40px 48px 80px; max-width: 1440px; margin: 0 auto; }
.studio-hero { padding: 40px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.studio-hero h1 { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 12px 0 10px; }
.studio-hero p { color: var(--ink-soft); font-size: 1.05rem; }
.eyebrow-top { text-transform: uppercase; letter-spacing: 0.4em; font-size: 0.68rem; color: var(--accent); font-weight: 500; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--ink-soft); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }
.back-link:hover { color: var(--accent); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 48px; }
.stat-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  padding: 26px 24px; border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease);
}
.stat-card:hover { border-color: var(--line-strong); }
.stat-label { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.stat-value { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 2.6rem; color: var(--ink); line-height: 1; }

.studio-section { margin-bottom: 64px; }

.studio-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.studio-table th {
  text-align: left; padding: 14px 16px;
  font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.studio-table td {
  padding: 16px; border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.studio-table tr:hover td { background: rgba(245, 241, 234, 0.02); }
.studio-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.studio-table .poster-cell { width: 52px; }
.studio-table .poster-cell img { width: 44px; height: 66px; object-fit: cover; border-radius: 3px; display: block; }
.studio-table .poster-ph { width: 44px; height: 66px; background: var(--bg-soft); border-radius: 3px; }
.studio-table .title-cell a { color: var(--ink); font-weight: 500; }
.studio-table .title-cell a:hover { color: var(--accent); }
.studio-table .row-link { color: var(--ink-soft); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.studio-table .row-link:hover { color: var(--accent); }
.studio-table .muted { color: var(--muted); font-size: 0.78rem; }

.chip {
  display: inline-block; padding: 3px 9px;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--ink-soft);
}
.chip-ready { color: #7fc99b; border-color: #7fc99b33; background: #7fc99b11; }
.chip-processing { color: var(--accent); border-color: var(--accent); background: rgba(201,169,97,0.08); }
.chip-failed { color: var(--danger); border-color: #e05a4f44; background: #e05a4f11; }
.chip-uploaded { color: var(--ink-soft); }
.chip-4k {
  display: inline-block; margin-left: 10px; padding: 2px 7px;
  background: var(--accent); color: #0a0a0b;
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  border-radius: 2px; vertical-align: middle;
}

.activity-feed { list-style: none; padding: 0; margin: 0; }
.activity-feed li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.activity-feed li:last-child { border-bottom: none; }
.activity-time { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; min-width: 140px; }
.activity-who { color: var(--ink); font-weight: 500; }
.activity-action { color: var(--ink-soft); }
.activity-what { color: var(--accent); font-style: italic; }

.empty-soft { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

.film-hero { display: grid; grid-template-columns: 200px 1fr; gap: 36px; margin-bottom: 48px; align-items: flex-start; }
.film-hero-poster img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.film-hero-body h1 { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 14px; }
.film-hero-body .byline { color: var(--ink-soft); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 18px; }
.film-hero-body .description { color: var(--ink-soft); line-height: 1.7; max-width: 62ch; }

.auth-aside { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.auth-aside a { color: var(--accent); }

@media (max-width: 860px) {
  .studio { padding: 24px; }
  .film-hero { grid-template-columns: 1fr; }
  .studio-table { font-size: 0.82rem; }
  .studio-table th:nth-child(3), .studio-table td:nth-child(3),
  .studio-table th:nth-child(7), .studio-table td:nth-child(7) { display: none; }
}

/* Social auth buttons */
.social-auth { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 16px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; transition: all .3s var(--ease);
}
.social-btn-icon { flex: 0 0 18px; }
.social-btn:hover { background: var(--bg-soft); border-color: var(--accent); color: var(--accent); }
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 4px 0 28px;
  color: var(--muted); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-hint {
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em;
  text-align: center; padding: 14px 10px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  margin-bottom: 28px; line-height: 1.6;
}
.role-picker ul { list-style: none; display: flex; gap: 14px; margin-top: 6px; padding: 0; }
.role-picker li { flex: 1; }
.role-picker label {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer; font-size: 0.82rem; text-transform: none; letter-spacing: 0;
  color: var(--ink); transition: all .3s var(--ease);
}
.role-picker label:hover { border-color: var(--accent); }
.role-picker input[type="radio"] { accent-color: var(--accent); }

/* 4K badge */
.badge-4k {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 9px; background: var(--accent); color: #0a0a0b;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; border-radius: 2px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-block;
  padding: 14px 22px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* Badge on card */
.video-card .badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 10px;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

/* Toolbar / section header */
.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 60px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.toolbar h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
}
.toolbar .count {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 10px;
}

/* Grid of videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 32px 28px;
}
.video-card {
  display: block;
  color: inherit;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .6s var(--ease);
}
.video-card .thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #1c1c1f 0%, #0a0a0b 100%);
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: box-shadow .6s var(--ease), transform .6s var(--ease);
}
.video-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease), opacity .4s var(--ease);
  filter: saturate(0.85) contrast(1.05);
}
/* ═══════════════════════════════════════════════
   Notification bell (nav dropdown)
   ═══════════════════════════════════════════════ */
.notif-bell-wrap { position: relative; display: inline-flex; }
.notif-bell {
  background: transparent; border: none;
  color: var(--ink-soft); padding: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  transition: color .2s var(--ease), background .2s var(--ease);
  position: relative;
}
.notif-bell:hover { color: var(--ink); background: rgba(242,237,228,0.05); }
.notif-bell-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--accent); color: var(--bg-deep);
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.notif-bell-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 340px; max-height: 440px; overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 120;
  animation: notifFade .2s var(--ease) both;
}
.notif-bell-menu[hidden] { display: none !important; }
@keyframes notifFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.notif-bell-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.notif-bell-head a { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.notif-bell-list { list-style: none; padding: 0; margin: 0; }
.notif-bell-item { border-bottom: 1px solid var(--line); }
.notif-bell-item:last-child { border-bottom: none; }
.notif-bell-item a {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s var(--ease);
}
.notif-bell-item a:hover { background: rgba(242,237,228,0.04); }
.notif-bell-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--muted); }
.notif-bell-dot-success { background: #7fc99b; }
.notif-bell-dot-warning { background: var(--accent); }
.notif-bell-dot-error { background: var(--danger); }
.notif-bell-dot-info { background: var(--ink-soft); }
.notif-bell-item.is-unread .notif-bell-dot { box-shadow: 0 0 0 3px rgba(201,169,97,0.2); }
.notif-bell-item.is-unread { background: rgba(201,169,97,0.04); }
.notif-bell-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.notif-bell-title { font-size: 0.86rem; color: var(--ink); font-weight: 500; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.notif-bell-item.is-unread .notif-bell-title { color: var(--accent-hot); }
.notif-bell-time { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; }
.notif-bell-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 0.82rem; }

/* Notifications full list page */
.notif-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 8px; }
.notif-item { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s var(--ease); }
.notif-item.is-unread { border-color: var(--accent); background: linear-gradient(90deg, rgba(201,169,97,0.05), var(--bg-elev) 30%); }
.notif-item:hover { border-color: var(--line-strong); }
.notif-item .notif-link { display: flex; gap: 14px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.notif-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
}
.notif-icon-success { color: #7fc99b; border-color: #7fc99b66; }
.notif-icon-warning { color: var(--accent); border-color: var(--accent); }
.notif-icon-error { color: var(--danger); border-color: #e05a4f66; }
.notif-icon-info { color: var(--ink-soft); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 1rem; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.notif-message { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; margin-bottom: 6px; }
.notif-meta { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; }

/* ═══════════════════════════════════════════════
   Rejection modal (consultant review)
   ═══════════════════════════════════════════════ */
.rj-overlay {
  position: fixed; inset: 0;
  z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: rjFadeIn .3s var(--ease) both;
}
.rj-overlay[hidden] { display: none !important; }
@keyframes rjFadeIn { from { opacity: 0; } to { opacity: 1; } }
.rj-backdrop {
  position: absolute; inset: 0; z-index: 0;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.rj-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 40px 44px 32px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: rjRise .4s var(--ease) .05s both;
}
@keyframes rjRise {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.rj-panel::before {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px; background: var(--accent);
}
.rj-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--ink); cursor: pointer;
  font-size: 1.3rem; line-height: 1;
  transition: all .2s var(--ease);
}
.rj-close:hover { background: var(--ink); color: var(--bg-deep); border-color: var(--ink); transform: rotate(90deg); }

.rj-title {
  font-family: var(--display);
  font-style: italic; font-weight: 300;
  font-size: 1.75rem; line-height: 1.2;
  margin: 14px 0 10px;
  color: var(--ink);
}
.rj-title em { color: var(--accent); font-style: italic; }
.rj-sub {
  color: var(--ink-soft);
  font-size: 0.92rem; line-height: 1.6;
  margin-bottom: 22px;
  max-width: 48ch;
}

.rj-form { display: flex; flex-direction: column; gap: 16px; }
.rj-label {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.rj-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 110px;
  transition: border-color .2s var(--ease);
}
.rj-textarea:focus { outline: none; border-color: var(--accent); }
.rj-textarea::placeholder { color: var(--muted); }

.rj-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
  padding: 4px 0;
}
.rj-quick-label {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-right: 6px;
}
.rj-chip {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.rj-chip:hover { background: var(--bg-soft); border-color: var(--accent); color: var(--accent); }

.rj-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.rj-submit { border-color: var(--danger) !important; color: var(--danger) !important; }
.rj-submit:hover { background: var(--danger) !important; color: white !important; border-color: var(--danger) !important; }

@media (max-width: 600px) {
  .rj-panel { padding: 32px 24px 24px; }
  .rj-title { font-size: 1.4rem; }
  .rj-actions { flex-direction: column-reverse; }
  .rj-actions .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════
   Featured spotlight — cinematic hero over the grid
   ═══════════════════════════════════════════════ */
.fx-spotlight {
  position: relative;
  width: 100%;
  margin: 0 0 56px;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
@media (min-width: 900px) { .fx-spotlight { min-height: 620px; } }

.fx-spotlight-backdrop { position: absolute; inset: 0; z-index: 0; background: var(--bg-deep); }
.fx-spotlight-img,
.fx-spotlight-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s linear, opacity 1.2s var(--ease);
  filter: saturate(0.95);
}
.fx-spotlight-video { opacity: 0; z-index: 1; }
.fx-spotlight.is-playing .fx-spotlight-video { opacity: 1; }
.fx-spotlight.is-playing .fx-spotlight-img { opacity: 0; }
.fx-spotlight.is-playing .fx-spotlight-img,
.fx-spotlight.is-playing .fx-spotlight-video { transform: scale(1.05); }

.fx-spotlight-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    /* top: blend into the nav/header background */
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(21,19,26,0.92) 6%,
      rgba(21,19,26,0.55) 18%,
      rgba(21,19,26,0.15) 36%,
      transparent 55%,
      rgba(21,19,26,0.55) 82%,
      rgba(21,19,26,0.92) 100%),
    /* soft left gradient for text legibility */
    linear-gradient(90deg, rgba(21,19,26,0.55) 0%, rgba(21,19,26,0.15) 45%, transparent 70%);
}
/* Full-width, edge-to-edge; no border radius so the fade blends seamlessly */
.fx-spotlight { border-radius: 0; border: none; }

.fx-spotlight-inner {
  position: relative; z-index: 3;
  padding: 64px 56px 52px;
  max-width: 780px;
  margin: 0 auto 0 max(48px, calc((100vw - 1440px) / 2 + 48px));
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: inherit;
  height: 560px;
}
@media (min-width: 900px) {
  .fx-spotlight-inner { padding: 80px 64px 72px; height: 620px; }
}
@media (max-width: 900px) {
  .fx-spotlight-inner { margin-left: 0; }
}

.fx-spotlight-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
  padding-left: 26px;
  position: relative;
}
.fx-spotlight-eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 16px; height: 1px; background: var(--accent);
}

.fx-spotlight-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 2px 40px rgba(0,0,0,0.65);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.fx-spotlight-meta {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.fx-spotlight-blurb {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 56ch;
  margin-bottom: 32px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}

.fx-spotlight-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.fx-spotlight-cta .btn { padding: 15px 30px; }

@media (max-width: 720px) {
  .fx-spotlight { min-height: 480px; margin: 0 0 40px; }
  .fx-spotlight-inner { padding: 40px 24px 32px; height: auto; min-height: 480px; margin-left: 0; }
  .fx-spotlight-scrim {
    background:
      linear-gradient(180deg, rgba(10,10,11,0.2) 0%, rgba(10,10,11,0.15) 40%, rgba(10,10,11,0.85) 100%);
  }
}

.thumb-trailer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
  z-index: 1;
}
.thumb-trailer.is-playing { opacity: 1; }
.thumb-poster.is-dim { opacity: 0.2; }
.lx-poster .thumb-poster.is-dim { opacity: 0.2; }
.video-card:hover .thumb { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.7); }
.video-card:hover .thumb img { transform: scale(1.06); filter: saturate(1) contrast(1.05); }
.video-card .thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-style: italic;
  font-size: 3rem; color: var(--accent);
  background: radial-gradient(circle at 30% 30%, #2a2a2d, #0a0a0b);
}
.video-card .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.video-card:hover .scrim { opacity: 1; }
.video-card .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(10, 10, 11, 0.7);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.video-card:hover .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card .body {
  padding: 18px 4px 8px;
}
.video-card h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 6px;
  line-height: 1.25;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.video-card:hover h3 { color: var(--accent); }
.video-card .meta {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
}

/* Auth / forms */
.auth-wrap {
  max-width: 440px;
  margin: 100px auto;
  padding: 56px 48px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.auth-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--accent);
}
.auth-wrap h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}
.auth-wrap .sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.form-field { margin-bottom: 26px; }
.form-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color .3s var(--ease);
}
.form-field textarea { min-height: 120px; resize: vertical; padding: 12px 0; }
.form-field input[type="file"] {
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.form-field .helptext,
.form-field .errorlist {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
  list-style: none;
}
.form-field .errorlist { color: var(--danger); }
.auth-footer {
  text-align: center;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.auth-footer a { color: var(--accent); }
.auth-footer a:hover { color: var(--accent-hot); }

/* Video detail */
.player-wrap {
  max-width: 1400px;
  margin: 40px auto;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.player-wrap video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.video-meta-block {
  max-width: 1100px;
  margin: 60px auto 40px;
  padding: 0 48px;
}
.video-meta-block .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}
.video-meta-block h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.video-meta-block .byline {
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.video-meta-block .description {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 65ch;
}
.video-meta-block .description p { margin-bottom: 1em; }

/* Empty state */
.empty {
  text-align: center;
  padding: 120px 20px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
.empty h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--ink);
}
.empty p {
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 120px;
  padding: 60px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.site-footer .accent { color: var(--accent); }
.site-footer .divider {
  width: 30px; height: 1px;
  background: var(--line-strong);
  margin: 0 auto 24px;
}

@media (max-width: 860px) {
  .nav { padding: 18px 24px; }
  .nav-links { gap: 20px; }
  .nav-links a, .nav-links button.link-btn { font-size: 0.66rem; letter-spacing: 0.18em; }
  .nav-user { display: none; }
  .hero { padding: 80px 24px 60px; min-height: 70vh; }
  .hero::after { left: 24px; }
  main { padding: 24px 24px 60px; }
  .video-meta-block { padding: 0 24px; margin-top: 40px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; }
  .auth-wrap { margin: 40px 20px; padding: 40px 28px; }
  .site-footer { padding: 40px 24px; }
  .toolbar { padding-top: 40px; }
}

/* ============================================================= */
/*                 Selectier — Editorial Light                        */
/*  Black nav + paper-white canvas. Pages that opt in via          */
/*  body.sv-light get this entire theme. Admin / studio pages      */
/*  keep the existing dark look.                                   */
/* ============================================================= */

body.sv-light {
  /* Selectier = silver. Cool-toned palette, faint brushed-metal gradient canvas,
     polished-silver accents on CTAs. Not warm paper, not flat white — silver. */
  --page-bg: #eceff2;
  --page-bg-deep: #dde1e6;
  --page-ink: #0b0c0d;
  --page-ink-soft: #3a3e44;
  --page-muted: #878d95;
  --page-line: #d6dade;
  --page-line-strong: #b6bcc3;
  --page-surface: #f5f7f9;
  --page-elev: #e3e7eb;
  --silver-100: #f4f6f8;
  --silver-200: #dee2e6;
  --silver-300: #c5cad0;
  --silver-400: #a7adb5;
  --silver-500: #868c94;

  background:
    linear-gradient(180deg, #f2f4f6 0%, #e4e8ec 60%, #d9dde1 100%);
  background-attachment: fixed;
  color: var(--page-ink);
}

body.sv-light::after,
body.sv-light::before { display: none !important; }

/* Remove the body-level scroll-edge glow under the light theme */
body.sv-light main#app { background: var(--page-bg); }

/* Nav stays dark (spec) but override link colours so the nav contrasts
   the now-light page correctly — the nav's own background is already
   opaque-enough, but we force true black for a hard top edge. */
body.sv-light .site-header {
  background: #0b0b0b;
  border-bottom: 1px solid #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Brushed-silver wordmark on the black nav — reads as the brand, Selectier. */
body.sv-light .brand {
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #c9ced4 50%, #8a9098 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.28em;
}
body.sv-light .brand .dot {
  background: linear-gradient(180deg, #f4f6f8, #a7adb5);
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
}
body.sv-light .nav-links a,
body.sv-light .nav-links button.link-btn { color: rgba(255,255,255,0.72); }
body.sv-light .nav-links a:hover { color: #fff; }

/* Light-theme footer */
body.sv-light .site-footer {
  background: #0b0b0b;
  color: rgba(255,255,255,0.55);
  border-top: none;
  margin-top: 0;
}
body.sv-light .site-footer .divider { background: rgba(255,255,255,0.15); }

/* ------------------------------------------------------------------
   FILMS list page — editorial header, cool silver tabs, and a
   two-column grid of FULL-SIZE 16:9 landscape stills.
-------------------------------------------------------------------*/
.sv-page-head {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, var(--silver-100) 0%, var(--page-bg) 100%);
  padding: 80px 64px 40px;
  border-bottom: 1px solid var(--page-line);
}
.sv-page-head-inner {
  max-width: 1600px; margin: 0 auto;
}
.sv-page-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--page-muted);
  margin-bottom: 14px;
}
.sv-page-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  letter-spacing: -0.03em;
  color: var(--page-ink);
  margin-bottom: 10px;
  line-height: 1;
  font-style: normal;
  /* subtle brushed-silver sheen on the display title */
  background: linear-gradient(180deg, #0b0c0d 0%, #2a2e33 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sv-page-sub {
  color: var(--page-ink-soft);
  font-size: 1.02rem;
  max-width: 60ch;
}

.sv-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(236,239,242,0.92) 100%);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--page-line);
}
.sv-tabs-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sv-tabs-inner::-webkit-scrollbar { display: none; }
.sv-tab {
  padding: 18px 2px 16px;
  border-bottom: 2px solid transparent;
  color: var(--page-ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.sv-tab:hover { color: var(--page-ink); }
.sv-tab.is-active {
  color: var(--page-ink);
  border-bottom-color: var(--page-ink);
  font-weight: 600;
}
.sv-tab-count {
  margin-left: auto;
  color: var(--page-muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sv-grid-section {
  padding: 48px 64px 120px;
  max-width: 1600px;
  margin: 0 auto;
}
.sv-grid-lg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 28px;
}
.sv-tile {
  display: block;
  color: inherit;
  text-decoration: none;
}
.sv-tile-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--silver-200) 0%, var(--silver-400) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 10px 30px rgba(26,32,38,0.12),
    0 2px 6px rgba(26,32,38,0.08);
  transition: transform .5s cubic-bezier(.2,.8,.2,1),
              box-shadow .5s cubic-bezier(.2,.8,.2,1);
}
/* Silver outline + soft glow that appears on hover — drawn via a
   pseudo-element so the border doesn't push the image around. */
.sv-tile-media::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(232,237,242,0) inset,
              0 0 0 0 rgba(232,237,242,0);
  pointer-events: none;
  transition: box-shadow .5s cubic-bezier(.2,.8,.2,1);
}
.sv-tile:hover .sv-tile-media {
  transform: translateY(-8px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 36px 68px rgba(26,32,38,0.26),
    0 8px 18px rgba(26,32,38,0.14);
}
.sv-tile:hover .sv-tile-media::after {
  box-shadow:
    0 0 0 1px rgba(232,237,242,0.75) inset,
    0 0 24px 0 rgba(232,237,242,0.45);
}
.sv-tile:hover .sv-tile-title {
  color: #0b0c0d;
  letter-spacing: -0.018em;
}
.sv-tile-title {
  transition: color .4s ease, letter-spacing .4s ease;
}
.sv-tile-still,
.sv-tile-trailer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .4s ease, transform .8s ease, filter .4s ease;
}
.sv-tile-still { filter: saturate(0.96); }
.sv-tile:hover .sv-tile-still { transform: scale(1.03); filter: saturate(1.04); }
.sv-tile-still.is-dim { opacity: 0; }
.sv-tile-trailer { opacity: 0; }
.sv-tile-trailer.is-playing { opacity: 1; }
.sv-tile-ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, #cfd4d9 0%, #8a9199 100%);
}
.sv-tile-badge, .sv-tile-runtime {
  position: absolute;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  backdrop-filter: blur(8px);
}
.sv-tile-badge {
  top: 14px; right: 14px;
  background: rgba(11,12,13,0.84);
  color: #fff;
}
.sv-tile-runtime {
  bottom: 14px; right: 14px;
  background: rgba(245,247,249,0.88);
  color: #0b0c0d;
}
.sv-tile-meta {
  padding: 18px 4px 0;
}
.sv-tile-title {
  font-family: var(--sans);
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--page-ink);
  line-height: 1.22;
  font-style: normal;
}
.sv-tile-sub {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--page-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Landing hero statement sub-line */
.sv-hero-statement-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 28px;
  font-weight: 400;
}

/* ------------------------------------------------------------------
   FEATURED HERO on /films/ — full-bleed auto-playing trailer.
-------------------------------------------------------------------*/
.sv-feature {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  background: #0b0c0d;
  overflow: hidden;
}
.sv-feature-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
/* YouTube iframe hero — iframe can't be object-fit'd, so we scale it up
   past the viewport and center it, which crops the letterboxing and fills
   the hero. Works for 16:9 trailers; portrait sources would need different
   math but that's not expected in cinema trailers. */
.sv-feature-yt {
  position: absolute; inset: 0;
  pointer-events: none;  /* let clicks through to buttons */
  overflow: hidden;
}
.sv-feature-yt iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100vw, 177.77vh);   /* 100% of viewport width, or height/(9/16) — whichever's larger */
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.sv-feature-ph {
  background: linear-gradient(135deg, #2a2e33 0%, #0b0c0d 100%);
}
.sv-feature-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
}
.sv-feature-copy {
  position: absolute;
  left: 64px; right: 64px; bottom: 64px;
  max-width: 820px;
  color: #fff;
}
.sv-feature-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
}
.sv-feature-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: #fff;
  font-style: normal;
  background: linear-gradient(180deg, #ffffff 0%, #d2d6da 60%, #9298a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sv-feature-meta {
  display: flex; gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.sv-feature-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}
@media (max-width: 860px) {
  .sv-feature-copy { left: 24px; right: 24px; bottom: 40px; }
}

/* ------------------------------------------------------------------
   CHAPTERS on /films/ — each opens with a filmstrip banner:
   the chapter SVG (sprocket rails + silver gradient) backs the
   whole banner; the featured-film still sits inside the inner
   photo rectangle with a slow ken-burns loop; a dark-left fade
   holds the copy block; the title shimmers silver on hover.
-------------------------------------------------------------------*/
.sv-chapter {
  position: relative;
  margin-top: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1),
              transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.sv-chapter + .sv-chapter { margin-top: 72px; }
@media (prefers-reduced-motion: no-preference) {
  .sv-chapter { opacity: 0; transform: translateY(28px); }
  .sv-chapter.is-revealed { opacity: 1; transform: translateY(0); }
}

.sv-filmstrip {
  position: relative;
  width: 100%;
  height: clamp(420px, 48vw, 580px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #171a1d 0%, #0e1012 100%);
}
/* Dedicated rail SVG (2770×139 — a single perforated silver band).
   We scale it to the rail height and tile horizontally so the sprocket
   holes appear at natural scale and repeat cleanly across the banner. */
.sv-filmstrip-rail {
  position: absolute;
  left: 0; right: 0;
  height: 42px;
  background-image: url("/static/img/rail.svg");
  background-size: auto 100%;
  background-repeat: repeat-x;
  z-index: 5;
  pointer-events: none;
}
.sv-filmstrip-rail-top    { top: 0; }
/* Mirror the bottom rail vertically so the silver gradient + perforation
   bevel read as coming from below, matching the top rail symmetrically. */
.sv-filmstrip-rail-bottom { bottom: 0; transform: scaleY(-1); }

@media (max-width: 720px) {
  .sv-filmstrip-rail { height: 28px; }
}

/* Single featured still, positioned INSIDE the SVG filmstrip's photo
   rectangle (the SVG's inner area is roughly 16%–84% vertically).
   Inset clears both sprocket rows and keeps a hairline of silver
   border on the left/right so the metal frame reads cleanly. */
.sv-filmstrip-still {
  position: absolute;
  inset: 64px 0;
  z-index: 2;
  background-size: cover;
  background-position: 64% center;
  background-repeat: no-repeat;
  filter: saturate(0.86) contrast(1.04) brightness(0.96);
  transform: scale(1.02);
  will-change: transform, filter;
  overflow: hidden;
  /* Soft vertical fade at the top and bottom edges so the image blends
     into the dark mat (no hard edge, no visible ken-burns overflow). */
  -webkit-mask-image: linear-gradient(180deg,
    transparent 0%,
    rgba(0,0,0,0.3) 4%,
    #000 16%,
    #000 84%,
    rgba(0,0,0,0.3) 96%,
    transparent 100%);
  mask-image: linear-gradient(180deg,
    transparent 0%,
    rgba(0,0,0,0.3) 4%,
    #000 16%,
    #000 84%,
    rgba(0,0,0,0.3) 96%,
    transparent 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .sv-filmstrip-still {
    animation: svKenBurns 18s ease-in-out infinite alternate;
  }
}
/* Ken-burns animates ONLY transform — filter stays static so it doesn't
   force CPU recomposition every frame. Keeps the loop GPU-smooth. */
@keyframes svKenBurns {
  0%   { transform: translate3d(0, 0, 0) scale(1.03); }
  100% { transform: translate3d(-1.2%, -0.4%, 0) scale(1.08); }
}

.sv-filmstrip-still-empty {
  background:
    linear-gradient(135deg, #2a2e33 0%, #0b0c0d 100%);
}

/* Dark-to-transparent fade over the left half of the inner photo
   area. Sits above the still, below the copy block. */
.sv-filmstrip-fade {
  position: absolute; inset: 42px 0;
  z-index: 3;
  background:
    linear-gradient(90deg,
      rgba(11,12,13,0.96) 0%,
      rgba(11,12,13,0.94) 22%,
      rgba(11,12,13,0.78) 38%,
      rgba(11,12,13,0.45) 55%,
      rgba(11,12,13,0.14) 72%,
      rgba(11,12,13,0) 90%),
    linear-gradient(180deg,
      rgba(0,0,0,0.24) 0%,
      rgba(0,0,0,0) 22%,
      rgba(0,0,0,0) 78%,
      rgba(0,0,0,0.24) 100%);
  pointer-events: none;
}


.sv-filmstrip-copy {
  position: absolute;
  left: 64px;
  right: 55%;    /* copy sits on the left 45% — the dark side of the fade */
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto auto;
  column-gap: 28px; row-gap: 4px;
  align-items: center;
  color: #fff;
  z-index: 4;
}
/* Filmstrip copy is always visible. Previously hidden by default + revealed on
   scroll via IntersectionObserver — that produced flicker/fade-out bugs.
   Titles now stay put; the silver shimmer still plays. */
.sv-filmstrip-copy > * { opacity: 1; transform: none; }
.sv-filmstrip-num {
  grid-column: 1;
  grid-row: 1 / span 4;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  letter-spacing: 0.18em;
  color: rgba(232,237,242,0.82);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding-left: 18px;
  border-left: 1px solid rgba(232,237,242,0.4);
  align-self: stretch;
  min-height: 140px;
  padding: 8px 0 8px 18px;
}
.sv-filmstrip-title {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0;
  font-style: normal;
  position: relative;
  cursor: default;
  /* Silver plate — darker base (matches the darkened rails) with a
     bright specular highlight that sweeps across the letters. The
     gradient is 3× wider than the visible title; the animation pans
     it linearly from right to left so the shimmer loop is continuous
     with no visible reset. */
  background: linear-gradient(100deg,
    #6b7076 0%,
    #8b9098 22%,
    #c2c7cd 40%,
    #ffffff 50%,
    #c2c7cd 60%,
    #8b9098 78%,
    #6b7076 100%);
  background-size: 300% 100%;
  background-position: 200% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.55))
          drop-shadow(0 6px 18px rgba(0,0,0,0.55));
  will-change: background-position, transform;
  transition: transform .6s cubic-bezier(.2,.8,.2,1),
              letter-spacing .6s cubic-bezier(.2,.8,.2,1);
}
@media (prefers-reduced-motion: no-preference) {
  .sv-filmstrip-title {
    animation: svSilverShimmer 14s linear infinite;
  }
  .sv-chapter:hover .sv-filmstrip-title,
  .sv-filmstrip:hover .sv-filmstrip-title {
    transform: scale(1.012);
    letter-spacing: -0.036em;
    transition-duration: .9s;
  }
}
@keyframes svSilverShimmer {
  from { background-position: 200% 50%; }
  to   { background-position: -100% 50%; }
}

/* "Collection" suffix — contrasted typographic voice. Fraunces serif
   (already loaded in base.html), light 300, smaller, wider tracking.
   Static silver — the shimmer lives on the main title only. */
.sv-filmstrip-collection-label {
  font-family: "Fraunces", "Playfair Display", Georgia, serif;
  font-weight: 300;
  font-size: 0.38em;
  letter-spacing: 0.06em;
  margin-left: 0.22em;
  display: inline-block;
  vertical-align: baseline;
  position: relative;
  top: -0.28em;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: rgba(232, 237, 242, 0.72) !important;
  color: rgba(232, 237, 242, 0.72);
  filter: none;
  animation: none;
  text-transform: lowercase;
  font-variation-settings: "opsz" 48, "SOFT" 30;
}
.sv-filmstrip-sub {
  grid-column: 2;
  grid-row: 1;
  color: rgba(232,237,242,0.82);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 500;
}
.sv-filmstrip-count {
  grid-column: 2;
  grid-row: 3;
  color: rgba(232,237,242,0.72);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 14px;
}
.sv-filmstrip-credit {
  grid-column: 2;
  grid-row: 4;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(232,237,242,0.22);
  display: flex;
  align-items: baseline;
  gap: 14px;
  max-width: 34ch;
}
.sv-filmstrip-credit-label {
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(232,237,242,0.62);
  flex: 0 0 auto;
}
.sv-filmstrip-credit-title {
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  transition: letter-spacing .35s ease;
}
.sv-filmstrip-credit-title::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232,237,242,0.85) 20%,
    rgba(232,237,242,1) 50%,
    rgba(232,237,242,0.85) 80%,
    transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.sv-chapter:hover .sv-filmstrip-credit-title::after { transform: scaleX(1); }
.sv-chapter:hover .sv-filmstrip-credit-title { letter-spacing: 0.02em; }

/* Empty-chapter (Unassigned) — same chrome rails, dark void between. */
.sv-filmstrip-empty .sv-filmstrip-still,
.sv-filmstrip-empty .sv-filmstrip-fade {
  display: none;
}
.sv-filmstrip-empty {
  background:
    radial-gradient(ellipse at 50% 50%, #1f2328 0%, #0b0c0d 70%),
    linear-gradient(135deg, #1a1d21 0%, #0b0c0d 60%, #1a1d21 100%);
}

@media (max-width: 720px) {
  .sv-filmstrip { height: clamp(360px, 90vw, 480px); }
  .sv-filmstrip-still { background-position: center; }
  .sv-filmstrip-fade {
    background:
      linear-gradient(180deg,
        rgba(11,12,13,0) 0%,
        rgba(11,12,13,0.3) 40%,
        rgba(11,12,13,0.85) 72%,
        rgba(11,12,13,0.97) 100%);
  }
  .sv-filmstrip-copy {
    left: 24px; right: 24px;
    top: auto; bottom: 28px;
    transform: none;
    column-gap: 18px;
  }
  .sv-filmstrip-num { padding-left: 10px; font-size: 0.88rem; min-height: 90px; }
  .sv-filmstrip-count { display: none; }
  .sv-filmstrip-credit { display: none; }
}

/* ------------------------------------------------------------------
   Bento grid — asymmetric, editorial. 12-column track; the first
   item (the "hero" tile) spans 8 and is taller; the rest span 4.
   Mobile collapses to a single column.
-------------------------------------------------------------------*/
.sv-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  padding: 56px 64px 96px;
  max-width: 1600px;
  margin: 0 auto;
}
.sv-bento .sv-tile {
  grid-column: span 4;
}
.sv-bento .sv-tile-hero {
  grid-column: span 8;
  grid-row: span 2;
}
.sv-bento .sv-tile-hero .sv-tile-media {
  aspect-ratio: 16 / 9;
}
.sv-bento .sv-tile-hero .sv-tile-title {
  font-size: 1.7rem;
}
@media (max-width: 1100px) {
  .sv-bento { grid-template-columns: repeat(6, 1fr); gap: 22px; padding: 40px 32px 72px; }
  .sv-bento .sv-tile { grid-column: span 3; }
  .sv-bento .sv-tile-hero { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 720px) {
  .sv-bento { grid-template-columns: 1fr; gap: 18px; padding: 32px 20px 60px; }
  .sv-bento .sv-tile, .sv-bento .sv-tile-hero { grid-column: span 1; }
  .sv-chapter-banner-copy { left: 24px; right: 24px; bottom: 32px; column-gap: 18px; }
  .sv-chapter-num { padding-left: 10px; font-size: 0.92rem; }
  .sv-chapter-count { display: none; }
}

/* ------------------------------------------------------------------
   Chapter-nested rail — when a Collection holds more than 6 films, the
   bento shows the first 6 (one hero + five small tiles) and the rest
   spill into this horizontal scroller. The label sits inside a thin
   silver rule that visually demarcates "more in this chapter" without
   competing with the chapter banner above.
-------------------------------------------------------------------*/
.sv-chapter-rail {
  max-width: 1600px;
  margin: -56px auto 0;          /* tuck up under the bento's bottom padding */
  padding: 0 0 96px;
}
.sv-chapter-rail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 64px 22px;
}
.sv-chapter-rail-rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--silver-300) 20%,
    var(--silver-100) 50%,
    var(--silver-300) 80%,
    transparent 100%);
}
.sv-chapter-rail-label {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--page-muted);
  white-space: nowrap;
}
.sv-chapter-rail .sv-rail-scroller {
  /* tighter padding inside a chapter — the chapter band already pads */
  padding: 0 64px 14px;
  gap: 20px;
}
.sv-chapter-rail .sv-card {
  flex-basis: 320px;
}
@media (max-width: 1100px) {
  .sv-chapter-rail { margin-top: -40px; padding-bottom: 72px; }
  .sv-chapter-rail-head { padding: 0 32px 18px; }
  .sv-chapter-rail .sv-rail-scroller { padding: 0 32px 12px; gap: 16px; }
}
@media (max-width: 720px) {
  .sv-chapter-rail { margin-top: -32px; padding-bottom: 60px; }
  .sv-chapter-rail-head { padding: 0 20px 14px; gap: 12px; }
  .sv-chapter-rail-label { font-size: 0.66rem; letter-spacing: 0.18em; }
  .sv-chapter-rail .sv-rail-scroller { padding: 0 20px 12px; gap: 14px; }
  .sv-chapter-rail .sv-card { flex-basis: 78vw; }
}

.sv-empty {
  max-width: 720px; margin: 120px auto; text-align: center;
  padding: 0 24px;
}
.sv-empty h3 {
  font-family: var(--sans); font-weight: 600; font-size: 1.8rem;
  letter-spacing: -0.01em; color: var(--page-ink); margin-bottom: 14px;
  font-style: normal;
}
.sv-empty p { color: var(--page-ink-soft); margin-bottom: 28px; }

@media (max-width: 960px) {
  .sv-grid-lg { grid-template-columns: 1fr; gap: 26px; }
  .sv-page-head { padding: 60px 24px 32px; }
  .sv-tabs-inner { padding: 0 24px; gap: 20px; }
  .sv-grid-section { padding: 32px 24px 80px; }
  .sv-tile-title { font-size: 1.2rem; }
}

/* ------------------------------------------------------------------
   HERO — full-bleed 16:9 still or muted video of the Prestige film.
   The hero takes the viewport minus the nav; gradient fades to the
   page canvas so the rails below feel like a continuous document.
-------------------------------------------------------------------*/
.sv-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  min-height: 560px;
  overflow: hidden;
  background: #0b0b0b;
}
.sv-hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.sv-hero-ph {
  background: radial-gradient(circle at 30% 30%, #232323, #050505);
}
.sv-hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.75) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
}
.sv-hero-copy {
  position: absolute;
  left: 64px; right: 64px; bottom: 64px;
  max-width: 780px;
  color: #fff;
}
.sv-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.sv-hero-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #fff;
  font-style: normal;
}
.sv-hero-meta {
  display: flex; gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.sv-hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ------------------------------------------------------------------
   Buttons — sv-btn family. Primary is solid black on white; on the
   dark hero the CSS below recolors the primary to solid white/black.
-------------------------------------------------------------------*/
.sv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none;
  font-style: normal;
}
.sv-btn-primary {
  background: #0e0e0e;
  color: #fff;
  border-color: #0e0e0e;
}
.sv-btn-primary:hover { background: #fff; color: #0e0e0e; border-color: #fff; }

.sv-btn-secondary {
  background: transparent;
  color: #0e0e0e;
  border-color: #0e0e0e;
}
.sv-btn-secondary:hover { background: #0e0e0e; color: #fff; }

.sv-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.sv-btn-ghost:hover { background: #fff; color: #0e0e0e; border-color: #fff; }

/* ------------------------------------------------------------------
   Rails — horizontal, scroll-snap. Each collection is its own band.
   Cards are 16:9 landscape. First card in a "video"-style rail
   (Prestige) is 2× wide with an autoplay muted trailer.
-------------------------------------------------------------------*/
.sv-rail {
  padding: 88px 0 40px;
  color: var(--page-ink);
  position: relative;
}
.sv-rail::before {
  /* whisper-thin silver separator line with a centered bright pixel,
     mimicking the seam on brushed chrome panels */
  content: "";
  position: absolute; top: 0; left: 64px; right: 64px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--silver-300) 20%,
    var(--silver-100) 50%,
    var(--silver-300) 80%,
    transparent 100%);
}
.sv-rail:first-of-type::before { display: none; }
.sv-rail-head {
  padding: 0 64px 28px;
  max-width: 1600px;
  margin: 0 auto;
}
.sv-rail-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--page-ink);
  margin-bottom: 8px;
  font-style: normal;
  background: linear-gradient(180deg, #0b0c0d 0%, #2f343a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sv-rail-sub {
  color: var(--page-ink-soft);
  font-size: 0.98rem;
  max-width: 52ch;
  font-style: normal;
}
.sv-rail-scroller {
  display: flex;
  gap: 22px;
  padding: 0 64px 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.sv-rail-scroller::-webkit-scrollbar { display: none; }
.sv-rail-scroller.is-dragging { cursor: grabbing; user-select: none; }

/* ------------------------------------------------------------------
   Card — 16:9 landscape. Image only; title sits *below* the card.
-------------------------------------------------------------------*/
.sv-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  color: inherit;
  text-decoration: none;
  display: block;
}
.sv-card-wide {
  flex-basis: 740px;
}
.sv-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 6px;
  transition: transform .4s ease, box-shadow .4s ease;
}
.sv-card:hover .sv-card-media {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}
.sv-card-still,
.sv-card-trailer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .4s ease, transform .8s ease, filter .4s ease;
}
.sv-card-still { filter: saturate(0.96); }
.sv-card:hover .sv-card-still { transform: scale(1.03); filter: saturate(1.05); }
.sv-card-still.is-dim { opacity: 0; }
.sv-card-trailer { opacity: 0; }
.sv-card-trailer.is-playing { opacity: 1; }
.sv-card-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #0b0b0b 100%);
}
.sv-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(11,11,11,0.82);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}
.sv-card-meta {
  padding: 14px 4px 0;
}
.sv-card-title {
  font-family: var(--sans);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--page-ink);
  line-height: 1.3;
  font-style: normal;
}
.sv-card-sub {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--page-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------
   JOIN CTA band — silver, sits between the rails and the filmmaker
   band. One button. Short copy.
-------------------------------------------------------------------*/
.sv-join {
  /* brushed-chrome band — dark charcoal with a specular highlight bar */
  background:
    radial-gradient(ellipse at 50% 0%, rgba(199,205,212,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #1a1d21 0%, #0b0c0d 50%, #1a1d21 100%);
  color: #fff;
  padding: 120px 64px;
  position: relative;
  overflow: hidden;
}
.sv-join::before, .sv-join::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(199,205,212,0.28) 50%, transparent 100%);
}
.sv-join::before { top: 0; }
.sv-join::after { bottom: 0; }
.sv-join-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.sv-join h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: #fff;
  margin-bottom: 20px;
  font-style: normal;
}
.sv-join p {
  color: rgba(255,255,255,0.76);
  font-size: 1.04rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 auto 36px;
}
.sv-join .sv-btn-primary {
  background: #fff; color: #0e0e0e; border-color: #fff;
}
.sv-join .sv-btn-primary:hover { background: #fafaf7; color: #0e0e0e; }

/* ------------------------------------------------------------------
   FOR-FILMMAKERS band — the last thing on the page before the footer.
-------------------------------------------------------------------*/
.sv-filmmakers {
  background: var(--page-bg);
  padding: 100px 64px 120px;
  border-top: 1px solid var(--page-line);
}
.sv-filmmakers-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.sv-filmmakers-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--page-muted);
  margin-bottom: 22px;
}
.sv-filmmakers h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--page-ink);
  font-style: normal;
}
.sv-filmmakers p {
  color: var(--page-ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 auto 32px;
}

/* ------------------------------------------------------------------
   Mobile
-------------------------------------------------------------------*/
@media (max-width: 860px) {
  .sv-hero { height: 72vh; min-height: 420px; }
  .sv-hero-copy { left: 24px; right: 24px; bottom: 40px; }
  .sv-hero-title { font-size: clamp(2rem, 8vw, 3.6rem); }
  .sv-rail { padding: 56px 0 28px; }
  .sv-rail-head { padding: 0 24px 20px; }
  .sv-rail-scroller { padding: 0 24px 20px; gap: 14px; }
  .sv-card { flex-basis: 78vw; }
  .sv-card-wide { flex-basis: 88vw; }
  .sv-join { padding: 80px 24px; }
  .sv-filmmakers { padding: 72px 24px 88px; }
}

/* ------------------------------------------------------------------
   Kill italics everywhere (meeting request: "remove italics or
   cursive font"). This is site-wide — the Fraunces italic display
   face is no longer used. The upright serif is still available for
   headings that want it, but the landing is sans-only.
-------------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6,
.lx-hero-title, .lx-hero-title em,
.lx-value-num, .lx-value h3,
.lx-section-head h2,
.lx-poster-meta h4,
.lx-quote blockquote, .lx-quote cite em,
.lx-filmmakers-inner h2, .lx-filmmakers-inner h2 em,
.lx-footer-cta h2,
.console-hero h1,
.review .rv-head h1,
.tier-price-main,
.uploader-card-title,
.bay-panel h3,
.qc-score-num,
.qc-empty-hint,
.qc-row-empty td,
.empty h3,
.hero h1, .hero h1 .accent {
  font-style: normal !important;
}

/* ==================================================================
   STUDIO SHELL — SaaS sidebar layout used by every authenticated
   filmmaker / consultant page. Activated by `body.sv-studio`.
   The public site keeps its top-nav magazine layout untouched.
   ================================================================== */
body.sv-studio {
  /* Same silver palette as body.sv-light — ensures every var(--page-*)
     reference inside the consultant/filmmaker shell resolves. Without
     this, sv-segmented-item.is-active, slider thumbs, and any other
     rule that uses var(--page-ink) for a background would render
     transparent (i.e. white-on-white). */
  --page-bg: #eceff2;
  --page-bg-deep: #dde1e6;
  --page-ink: #0b0c0d;
  --page-ink-soft: #3a3e44;
  --page-muted: #878d95;
  --page-line: #d6dade;
  --page-line-strong: #b6bcc3;
  --page-surface: #f5f7f9;
  --page-elev: #e3e7eb;
  background: var(--page-bg);
  color: var(--page-ink);
}
body.sv-studio .site-header { display: none; }       /* shell uses its own rail */
body.sv-studio .site-footer { display: none; }       /* shell renders no footer */
body.sv-studio main#app { max-width: none; }         /* shell handles layout */

.sv-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  background: var(--page-bg);
}
.sv-shell-rail {
  position: sticky; top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #f7f9fb 0%, #eceff2 100%);
  border-right: 1px solid var(--page-line);
  display: flex; flex-direction: column;
  overflow-y: auto;
  z-index: 20;
}
.sv-shell-brand {
  padding: 26px 24px 18px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--page-line);
}
.sv-shell-brand img { height: 26px; width: auto; }
.sv-shell-brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--page-ink);
}
.sv-shell-rail-section {
  padding: 22px 14px 8px;
}
.sv-shell-rail-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--page-muted);
  padding: 0 14px 10px;
}
.sv-shell-rail-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.sv-shell-rail-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--page-ink);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.sv-shell-rail-link:hover {
  background: rgba(11, 12, 13, 0.05);
}
.sv-shell-rail-link.is-active {
  background: #0b0c0d;
  color: #fafaf7;
}
.sv-shell-rail-link.is-active .sv-shell-rail-icon { color: #fafaf7; }
.sv-shell-rail-icon {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  color: var(--page-muted);
}
.sv-shell-rail-link:hover .sv-shell-rail-icon { color: var(--page-ink); }
.sv-shell-rail-badge {
  margin-left: auto;
  background: #e05a4f;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 18px; text-align: center;
}
.sv-shell-rail-foot {
  margin-top: auto;
  padding: 16px 14px 22px;
  border-top: 1px solid var(--page-line);
  background: rgba(255,255,255,0.4);
}
.sv-shell-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
}
.sv-shell-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2c30, #0b0c0d);
  color: #fff;
  font-weight: 600;
  font-size: 0.94rem;
  display: flex; align-items: center; justify-content: center;
}
.sv-shell-user-body {
  flex: 1; min-width: 0;
}
.sv-shell-user-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--page-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sv-shell-user-role {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--page-muted);
}
.sv-shell-signout {
  display: block;
  margin-top: 10px;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--page-ink-soft);
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--page-line-strong);
  transition: background .15s ease, color .15s ease;
}
.sv-shell-signout:hover {
  background: var(--page-ink);
  color: #fff;
  border-color: var(--page-ink);
}

.sv-shell-main {
  min-width: 0;
  display: flex; flex-direction: column;
}
.sv-shell-topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 40px;
  background: var(--page-bg);
  border-bottom: 1px solid var(--page-line);
  position: sticky; top: 0;
  z-index: 15;
  backdrop-filter: saturate(140%) blur(6px);
  background: rgba(236, 239, 242, 0.86);
}
.sv-shell-topbar-title {
  font-family: var(--sans);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--page-ink);
}
.sv-shell-topbar-spacer { flex: 1; }
.sv-shell-topbar .notif-bell {
  background: transparent;
  border: 1px solid var(--page-line-strong);
  color: var(--page-ink);
}
.sv-shell-topbar .notif-bell:hover { background: rgba(11,12,13,0.05); }
.sv-shell-content {
  padding: 36px 40px 80px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

/* ------------------------------------------------------------------
   Page header — used by every shell page
-------------------------------------------------------------------*/
.sv-pagehead {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--page-line);
}
.sv-pagehead-eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 8px;
}
.sv-pagehead h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--page-ink);
  margin: 0;
  font-style: normal;
}
.sv-pagehead-sub {
  margin-top: 6px;
  color: var(--page-ink-soft);
  font-size: 0.96rem;
  max-width: 60ch;
}

/* ------------------------------------------------------------------
   Stat grid — KPI tiles
-------------------------------------------------------------------*/
.sv-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.sv-stat-card {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  padding: 20px 22px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.sv-stat-card:hover {
  box-shadow: 0 12px 32px rgba(11,12,13,0.06);
  transform: translateY(-1px);
}
.sv-stat-label {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 10px;
}
.sv-stat-value {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--page-ink);
  line-height: 1;
}
.sv-stat-delta {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--page-muted);
}

/* ------------------------------------------------------------------
   Section block — content panel
-------------------------------------------------------------------*/
.sv-section {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  margin-bottom: 28px;
  overflow: hidden;
}
.sv-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--page-line);
}
.sv-section-head h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--page-ink);
  margin: 0;
  font-style: normal;
}
.sv-section-head-sub {
  color: var(--page-muted);
  font-size: 0.84rem;
}
.sv-section-body {
  padding: 8px 0;
  overflow-x: auto;
}
.sv-section-pad {
  padding: 22px 24px;
}

/* ------------------------------------------------------------------
   Status pills — derived from friendly_status() chip_class
-------------------------------------------------------------------*/
.sv-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sv-status-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.sv-status-pill.is-live {
  background: rgba(64, 145, 95, 0.12);
  color: #2f6f48;
}
.sv-status-pill.is-pending {
  background: rgba(184, 134, 11, 0.14);
  color: #8a6308;
}
.sv-status-pill.is-rejected {
  background: rgba(224, 90, 79, 0.13);
  color: #b03c33;
}
.sv-status-pill.is-draft {
  background: rgba(45, 113, 184, 0.13);
  color: #2a6294;
}
.sv-status-pill.is-finish {
  background: rgba(11, 12, 13, 0.86);
  color: #fff;
}
.sv-status-pill.is-finish::before { background: #fafaf7; }

/* ------------------------------------------------------------------
   Data table — clean SaaS row with hover and poster-thumb columns
-------------------------------------------------------------------*/
.sv-table {
  width: 100%;
  border-collapse: collapse;
}
.sv-table th, .sv-table td {
  padding: 14px 24px;
  text-align: left;
  font-size: 0.92rem;
  vertical-align: middle;
}
.sv-table thead th {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--page-muted);
  border-bottom: 1px solid var(--page-line);
  background: var(--page-bg);
}
.sv-table tbody tr {
  border-bottom: 1px solid var(--page-line);
  transition: background .12s ease;
}
.sv-table tbody tr:last-child { border-bottom: none; }
.sv-table tbody tr:hover { background: rgba(11,12,13,0.025); }
.sv-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sv-table .muted { color: var(--page-muted); }
.sv-table tbody td a { color: var(--page-ink); }
.sv-table tbody td.muted a { color: var(--page-ink-soft); }
.sv-table tbody td a:hover { color: var(--accent-deep, #8a7238); text-decoration: underline; }
.sv-table .actions {
  text-align: right;
  white-space: nowrap;
}
.sv-table .actions a {
  font-size: 0.84rem;
  color: var(--page-ink);
  text-decoration: none;
  margin-left: 14px;
  font-weight: 500;
}
.sv-table .actions a:hover { color: var(--accent-deep, #8a7238); text-decoration: underline; }

.sv-demo-delete {
  margin-left: 14px;
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--danger, #e05a4f);
  background: transparent;
  border: 1px solid var(--danger, #e05a4f);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.sv-demo-delete:hover {
  background: var(--danger, #e05a4f);
  color: #fff;
  transform: translateY(-1px);
}
.sv-demo-delete:active { transform: translateY(0); }

.sv-table-poster {
  width: 84px;
}
.sv-table-poster-img {
  display: block;
  width: 64px; height: 38px;
  object-fit: cover;
  border-radius: 4px;
  background: #ddd;
}
.sv-table-poster-ph {
  display: block;
  width: 64px; height: 38px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ddd, #bbb);
}
.sv-table-title {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--page-ink);
  text-decoration: none;
}
.sv-table-title:hover { text-decoration: underline; }
.sv-table-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--page-muted);
  font-weight: 400;
  letter-spacing: 0;
}

/* ------------------------------------------------------------------
   SaaS button vocabulary — light theme. Reuses sv-btn primitives
   defined elsewhere; this is the page-bg specific palette.
-------------------------------------------------------------------*/
.sv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  white-space: nowrap;
}
body.sv-studio .sv-btn-primary,
body.sv-studio a.sv-btn-primary,
body.sv-studio button.sv-btn-primary,
body.sv-studio .sv-btn-primary:link,
body.sv-studio .sv-btn-primary:visited {
  background: #0b0c0d !important;
  color: #fafaf7 !important;
  border-color: #0b0c0d !important;
  text-decoration: none !important;
}
body.sv-studio .sv-btn-primary:hover,
body.sv-studio a.sv-btn-primary:hover,
body.sv-studio button.sv-btn-primary:hover,
body.sv-studio .sv-btn-primary:focus,
body.sv-studio .sv-btn-primary:active {
  background: #1a1c1f !important;
  color: #fafaf7 !important;
  border-color: #1a1c1f !important;
  transform: translateY(-1px);
}
body.sv-studio .sv-btn-secondary {
  background: #fff;
  color: var(--page-ink);
  border-color: var(--page-line-strong);
}
body.sv-studio .sv-btn-secondary:hover {
  background: var(--page-bg);
  border-color: var(--page-ink);
}
body.sv-studio .sv-btn-ghost {
  background: transparent;
  color: var(--page-ink);
  border-color: transparent;
}
body.sv-studio .sv-btn-ghost:hover {
  background: rgba(11,12,13,0.05);
}
.sv-btn-danger {
  background: #b03c33;
  color: #fff;
  border-color: #b03c33;
}
.sv-btn-danger:hover { background: #8c2e26; border-color: #8c2e26; }

/* ------------------------------------------------------------------
   Hero card — used on studio_film for the film-detail header
-------------------------------------------------------------------*/
.sv-film-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.sv-film-hero-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
}
.sv-film-hero-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.sv-film-hero-body { display: flex; flex-direction: column; min-width: 0; }
.sv-film-hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 8px;
}
.sv-film-hero-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--page-ink);
  margin: 0 0 10px;
  font-style: normal;
}
.sv-film-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px; margin-bottom: 14px;
  color: var(--page-ink-soft);
  font-size: 0.92rem;
}
.sv-film-hero-meta span + span::before {
  content: "·"; margin-right: 12px; color: var(--page-muted);
}
.sv-film-hero-desc {
  color: var(--page-ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 0 22px;
}
.sv-film-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: auto;
}

/* ------------------------------------------------------------------
   Edit-section index — list of editable areas on studio_film_edit
-------------------------------------------------------------------*/
.sv-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.sv-edit-card {
  display: flex; flex-direction: column;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--page-line-strong);
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--page-ink) !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
  min-height: 180px;
}
.sv-edit-card:hover {
  border-color: var(--page-ink);
  background: #fafbfc;
  box-shadow: 0 16px 40px rgba(11,12,13,0.08);
  transform: translateY(-2px);
}
.sv-edit-card-icon {
  width: 28px; height: 28px;
  margin-bottom: 16px;
  color: var(--page-ink) !important;
  opacity: 0.7;
  display: block;
  transition: opacity .15s ease;
}
.sv-edit-card:hover .sv-edit-card-icon { opacity: 1; }
.sv-edit-card-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.12rem !important;
  letter-spacing: -0.01em;
  color: var(--page-ink) !important;
  margin-bottom: 8px;
  line-height: 1.3;
}
.sv-edit-card-desc {
  color: var(--page-ink-soft) !important;
  font-size: 0.92rem;
  line-height: 1.55;
}
.sv-edit-card-arrow {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.86rem;
  color: var(--page-ink) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 4px;
}
.sv-edit-card:hover .sv-edit-card-arrow { gap: 8px; }

/* ------------------------------------------------------------------
   Banner — used to surface "you're editing a live film" notices
-------------------------------------------------------------------*/
.sv-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.sv-banner-info {
  background: rgba(45, 113, 184, 0.07);
  border: 1px solid rgba(45, 113, 184, 0.2);
  color: #2a6294;
}
.sv-banner-success {
  background: rgba(64, 145, 95, 0.08);
  border: 1px solid rgba(64, 145, 95, 0.2);
  color: #2f6f48;
}
.sv-banner-warn {
  background: rgba(184, 134, 11, 0.09);
  border: 1px solid rgba(184, 134, 11, 0.22);
  color: #8a6308;
}
.sv-banner-icon { flex: 0 0 18px; }

/* ------------------------------------------------------------------
   Modal — reused for "Notify consultant of edits"
-------------------------------------------------------------------*/
.sv-modal {
  position: fixed; inset: 0;
  background: rgba(11,12,13,0.55);
  z-index: 80;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.sv-modal.is-open { display: flex; }
.sv-modal-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(11,12,13,0.4);
}
.sv-modal-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 8px;
}
.sv-modal-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--page-ink);
  margin: 0 0 8px;
  font-style: normal;
}
.sv-modal-sub {
  color: var(--page-ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 20px;
}
.sv-modal textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.94rem;
  border: 1px solid var(--page-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--page-ink);
  resize: vertical;
  min-height: 96px;
}
.sv-modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px;
}

/* ------------------------------------------------------------------
   Empty state — light theme variant
-------------------------------------------------------------------*/
.sv-empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--page-ink-soft);
}
.sv-empty-state h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-ink);
  margin-bottom: 10px;
  font-style: normal;
}
.sv-empty-state p { margin-bottom: 18px; }

/* ------------------------------------------------------------------
   Activity feed
-------------------------------------------------------------------*/
.sv-activity {
  list-style: none; margin: 0; padding: 0;
}
.sv-activity li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--page-line);
  font-size: 0.92rem;
}
.sv-activity li:last-child { border-bottom: none; }
.sv-activity-time {
  color: var(--page-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  min-width: 90px;
}
.sv-activity-who {
  font-weight: 600;
  color: var(--page-ink);
}
.sv-activity-action {
  color: var(--page-ink-soft);
}
.sv-activity-what {
  color: var(--page-ink);
  text-decoration: none;
  font-weight: 500;
}
.sv-activity-what:hover { color: var(--accent-deep, #8a7238); text-decoration: underline; }

/* ------------------------------------------------------------------
   Mobile — rail collapses to a top hamburger drawer
-------------------------------------------------------------------*/
.sv-shell-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--page-line-strong);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--page-ink);
}
#sv-shell-toggle { display: none; }

@media (max-width: 1024px) {
  .sv-shell { grid-template-columns: 1fr; }
  .sv-shell-rail {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 80px rgba(11,12,13,0);
  }
  #sv-shell-toggle:checked ~ .sv-shell .sv-shell-rail {
    transform: translateX(0);
    box-shadow: 0 0 80px rgba(11,12,13,0.3);
  }
  .sv-shell-burger { display: inline-flex; }
  .sv-shell-content { padding: 24px 20px 60px; }
  .sv-shell-topbar { padding: 14px 20px; }
  .sv-film-hero { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sv-table th, .sv-table td { padding: 12px 16px; font-size: 0.86rem; }
  .sv-table .actions a { margin-left: 10px; }
  .sv-section-head { padding: 14px 18px; }
  .sv-stat-grid { gap: 10px; }
  .sv-stat-card { padding: 16px 18px; }
  .sv-stat-value { font-size: 1.6rem; }
  .sv-pagehead { flex-direction: column; align-items: flex-start; }
}

/* ==================================================================
   Wizard stepper — SaaS-styled. Sits at the top of every step_*.html
   page inside body.sv-studio. Numbered chips + connector line.
   ================================================================== */
.sv-stepper {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
}
.sv-stepper ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
  flex: 1 1 auto;
}
.sv-stepper-item {
  display: flex; align-items: center;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--page-muted);
  font-weight: 500;
}
.sv-stepper-item + .sv-stepper-item::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--page-line-strong);
  margin: 0 6px;
}
.sv-stepper-item > a, .sv-stepper-item > span {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px !important;
  border-radius: 100px !important;
  text-decoration: none !important;
  color: var(--page-ink-soft) !important;
  background: transparent;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.sv-stepper-item > a:hover {
  background: rgba(11,12,13,0.05) !important;
  color: var(--page-ink) !important;
}
.sv-stepper-item > span { opacity: 0.55; cursor: not-allowed; }
.sv-stepper-num {
  position: relative;
  font-family: var(--sans) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  border: 1px solid var(--page-line-strong) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: var(--page-muted) !important;
  flex: 0 0 26px !important;
  text-indent: 0 !important;
  overflow: visible !important;
  line-height: 1 !important;
}
.sv-stepper-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
}

/* Pending steps without an <a> wrapper (locked) — render as muted */
.sv-stepper-item span > .sv-stepper-num { background: var(--page-bg); }

/* Active step — solid dark pill, white label, inverted number circle */
.sv-stepper-item.is-active > a,
.sv-stepper-item.is-active > a:link,
.sv-stepper-item.is-active > a:visited {
  background: #0b0c0d !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(11,12,13,0.18);
}
.sv-stepper-item.is-active > a:hover {
  background: #1a1c1f !important;
  color: #ffffff !important;
}
.sv-stepper-item.is-active > a > .sv-stepper-num {
  background: #ffffff !important;
  color: #0b0c0d !important;
  border-color: #ffffff !important;
}
.sv-stepper-item.is-active > a > .sv-stepper-label {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Done step — number stays visible (white on solid black disc). No checkmark
   trick, no ::before overlay. Just real text with real color so it's always
   readable. */
.sv-stepper-item.is-done > a > .sv-stepper-num,
.sv-stepper-item.is-done > a:link > .sv-stepper-num,
.sv-stepper-item.is-done > a:visited > .sv-stepper-num {
  background: #0b0c0d !important;
  color: #ffffff !important;
  border-color: #0b0c0d !important;
}
.sv-stepper-item.is-done > a > .sv-stepper-label,
.sv-stepper-item.is-done > a:link > .sv-stepper-label,
.sv-stepper-item.is-done > a:visited > .sv-stepper-label {
  color: var(--page-ink) !important;
  font-weight: 600 !important;
}
.sv-stepper-item.is-done > a:hover {
  background: rgba(11,12,13,0.04) !important;
}
.sv-stepper-item.is-done > a:hover > .sv-stepper-num {
  background: #1a1c1f !important;
}

.sv-stepper-qc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 100px;
  background: var(--page-bg);
  border: 1px solid var(--page-line-strong);
  color: var(--page-ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.sv-stepper-qc:hover { color: var(--page-ink); border-color: var(--page-ink); }
.sv-stepper-qc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--page-muted); }
.sv-stepper-qc.is-running { color: #2a6294; border-color: #b3c7df; background: rgba(45,113,184,0.06); }
.sv-stepper-qc.is-running .sv-stepper-qc-dot { background: #2a6294; animation: qcPulse 1.4s ease-in-out infinite; }
.sv-stepper-qc.is-pass { color: #2f6f48; border-color: #aedabb; background: rgba(64,145,95,0.06); }
.sv-stepper-qc.is-pass .sv-stepper-qc-dot { background: #2f6f48; }
.sv-stepper-qc.is-warn { color: #8a6308; border-color: #e8d690; background: rgba(184,134,11,0.06); }
.sv-stepper-qc.is-warn .sv-stepper-qc-dot { background: #8a6308; }
.sv-stepper-qc.is-fail { color: #b03c33; border-color: #f0aaa3; background: rgba(224,90,79,0.06); }
.sv-stepper-qc.is-fail .sv-stepper-qc-dot { background: #b03c33; }

/* ==================================================================
   Wizard step layout — content panels, form fields, dropzone, form rows
   ================================================================== */
.sv-wz-head {
  margin-bottom: 28px;
}
.sv-wz-head h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--page-ink);
  margin: 4px 0 8px;
  font-style: normal;
}
.sv-wz-head p {
  color: var(--page-ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 64ch;
  margin: 0;
}
.sv-wz-head-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--page-muted);
}

.sv-wz-form {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 28px;
  max-width: 720px;
}
.sv-wz-form .form-field {
  margin-bottom: 22px;
}
.sv-wz-form .form-field:last-of-type { margin-bottom: 0; }
.sv-wz-form label {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--page-ink-soft);
  margin-bottom: 8px;
}
.sv-wz-form input[type="text"],
.sv-wz-form input[type="email"],
.sv-wz-form input[type="url"],
.sv-wz-form input[type="number"],
.sv-wz-form select,
.sv-wz-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.96rem;
  border: 1px solid var(--page-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--page-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sv-wz-form input[type="text"]:focus,
.sv-wz-form input[type="email"]:focus,
.sv-wz-form input[type="url"]:focus,
.sv-wz-form select:focus,
.sv-wz-form textarea:focus {
  outline: none;
  border-color: var(--page-ink);
  box-shadow: 0 0 0 3px rgba(11,12,13,0.08);
}
.sv-wz-form input[type="file"] {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--page-ink-soft);
}
.sv-wz-form .helptext {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--page-muted);
  line-height: 1.5;
}
.sv-wz-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.sv-wz-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.sv-wz-actions-end {
  display: flex; gap: 10px; align-items: center;
}

/* Dropzone — file upload landing zone */
.sv-wz-dropzone {
  background: #fff;
  border: 2px dashed var(--page-line-strong);
  border-radius: 14px;
  padding: 60px 32px;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
  margin-bottom: 28px;
}
.sv-wz-dropzone.is-dragover {
  border-color: var(--page-ink);
  background: rgba(11,12,13,0.03);
}
.sv-wz-dropzone-icon {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--page-muted);
  margin-bottom: 14px;
  font-family: var(--sans);
}
.sv-wz-dropzone-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--page-ink);
  margin-bottom: 6px;
  font-style: normal;
}
.sv-wz-dropzone-sub {
  color: var(--page-ink-soft);
  font-size: 0.94rem;
  margin-bottom: 4px;
}
.sv-wz-dropzone-hint {
  color: var(--page-muted);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 10px;
}
.sv-wz-linkbtn {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--page-ink);
  font-weight: 600;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.sv-wz-linkbtn:hover { color: var(--accent-deep, #8a7238); }
.sv-wz-progress {
  width: 100%;
  height: 8px;
  background: var(--page-bg);
  border-radius: 100px;
  overflow: hidden;
  margin: 18px 0 12px;
}
.sv-wz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--page-ink) 0%, #2a2c30 100%);
  transition: width .25s ease;
}
.sv-wz-progress-stats {
  display: flex; justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--page-ink-soft);
  font-variant-numeric: tabular-nums;
}
.sv-wz-done-mark {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #2f6f48;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
}
.sv-wz-file-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--page-ink);
}
.sv-wz-warn {
  background: rgba(224,90,79,0.06);
  border: 1px solid rgba(224,90,79,0.25);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #b03c33;
  font-size: 0.94rem;
}

/* Wizard preview block — used on step_preview */
.sv-wz-preview {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.sv-wz-preview-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #ddd, #bbb);
}
.sv-wz-preview-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.sv-wz-preview-body h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--page-ink);
  margin: 4px 0 6px;
  font-style: normal;
}
.sv-wz-preview-meta {
  color: var(--page-ink-soft);
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.sv-wz-preview-body p {
  color: var(--page-ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 60ch;
}
.sv-wz-preview-facts {
  margin-top: 18px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  font-size: 0.92rem;
}
.sv-wz-preview-facts dt {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--page-muted);
}
.sv-wz-preview-facts dd {
  margin: 0;
  color: var(--page-ink);
}

@media (max-width: 720px) {
  .sv-stepper { flex-direction: column; align-items: flex-start; }
  .sv-stepper ol { gap: 4px; }
  .sv-stepper-item + .sv-stepper-item::before { width: 12px; }
  .sv-stepper-label { display: none; }
  .sv-wz-form { padding: 20px; }
  .sv-wz-dropzone { padding: 40px 20px; }
  .sv-wz-preview { grid-template-columns: 1fr; }
}

/* ==================================================================
   Light-theme overrides for legacy wizard classes — keeps the existing
   QC card grid, Review Bay, and form-field markup readable when
   wrapped in body.sv-studio (which paints the page light).
   ================================================================== */
body.sv-studio .wz-qc-form { color: var(--page-ink); }
body.sv-studio .wz-qc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
body.sv-studio .wz-qc-grid.tier-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
body.sv-studio .wz-qc-card {
  display: block;
  position: relative;
  cursor: pointer;
}
body.sv-studio .wz-qc-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
body.sv-studio .wz-qc-card-inner {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
body.sv-studio .wz-qc-card:hover .wz-qc-card-inner {
  border-color: var(--page-ink);
  box-shadow: 0 12px 32px rgba(11,12,13,0.06);
  transform: translateY(-1px);
}
body.sv-studio .wz-qc-card input[type="radio"]:checked + .wz-qc-card-inner {
  border-color: var(--page-ink);
  background: #0b0c0d;
  color: #fafaf7;
}
body.sv-studio .wz-qc-card input[type="radio"]:checked + .wz-qc-card-inner h3,
body.sv-studio .wz-qc-card input[type="radio"]:checked + .wz-qc-card-inner .wz-qc-checks li {
  color: #fafaf7;
}
body.sv-studio .wz-qc-card input[type="radio"]:checked + .wz-qc-card-inner .wz-qc-foot,
body.sv-studio .wz-qc-card input[type="radio"]:checked + .wz-qc-card-inner .wz-qc-lede {
  color: rgba(250,250,247,0.78);
}
body.sv-studio .wz-qc-flag {
  display: inline-block;
  background: #0b0c0d;
  color: #fafaf7;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
body.sv-studio .wz-qc-flag-soft {
  display: inline-block;
  background: var(--page-bg);
  color: var(--page-ink-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
body.sv-studio .wz-qc-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--page-ink);
  margin: 0 0 8px;
  font-style: normal;
}
body.sv-studio .wz-qc-lede {
  color: var(--page-ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 14px;
}
body.sv-studio .wz-qc-checks {
  list-style: none; margin: 0 0 14px; padding: 0;
  font-size: 0.86rem;
  color: var(--page-ink-soft);
}
body.sv-studio .wz-qc-checks li { padding: 3px 0; }
body.sv-studio .wz-qc-checks li::before { content: "✓ "; color: var(--page-ink); font-weight: 600; }
body.sv-studio .wz-qc-foot {
  font-size: 0.78rem;
  color: var(--page-muted);
  letter-spacing: 0.06em;
  margin-top: auto;
}
body.sv-studio .wz-qc-providers-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 8px;
}
body.sv-studio .wz-qc-providers {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
body.sv-studio .wz-qc-chip {
  background: var(--page-bg);
  border: 1px solid var(--page-line);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--page-ink-soft);
}
body.sv-studio .wz-qc-card input[type="radio"]:checked + .wz-qc-card-inner .wz-qc-chip {
  background: rgba(250,250,247,0.1);
  border-color: rgba(250,250,247,0.2);
  color: #fafaf7;
}

/* Tier-card price display */
body.sv-studio .tier-price {
  display: flex; align-items: baseline; gap: 8px;
  margin: 12px 0 16px;
}
body.sv-studio .tier-price-main {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--page-ink);
}
body.sv-studio .wz-qc-card input[type="radio"]:checked + .wz-qc-card-inner .tier-price-main { color: #fafaf7; }
body.sv-studio .tier-price-monthly {
  font-size: 0.86rem;
  color: var(--page-muted);
}

/* QC report tables */
body.sv-studio .qc-wrap { color: var(--page-ink); }
body.sv-studio .qc-section {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
}
body.sv-studio .qc-section h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--page-ink);
  margin: 0 0 8px;
  font-style: normal;
}
body.sv-studio .qc-section-hint {
  color: var(--page-muted);
  font-size: 0.86rem;
  margin: 0 0 14px;
}
body.sv-studio .qc-table,
body.sv-studio .qc-findings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
body.sv-studio .qc-table thead th,
body.sv-studio .qc-findings-table thead th {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--page-muted);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--page-line-strong);
  background: var(--page-bg);
  white-space: nowrap;
}
body.sv-studio .qc-table thead th:first-child,
body.sv-studio .qc-findings-table thead th:first-child { border-top-left-radius: 8px; }
body.sv-studio .qc-table thead th:last-child,
body.sv-studio .qc-findings-table thead th:last-child { border-top-right-radius: 8px; }
body.sv-studio .qc-table td,
body.sv-studio .qc-findings-table td {
  padding: 14px;
  border-bottom: 1px solid var(--page-line);
  font-size: 0.92rem;
  vertical-align: middle;
  color: var(--page-ink);
}
body.sv-studio .qc-findings-table tbody tr {
  transition: background .12s ease;
}
body.sv-studio .qc-findings-table tbody tr:hover { background: rgba(11,12,13,0.025); }
body.sv-studio .qc-findings-table tbody tr.qc-row-empty:hover { background: transparent; }
body.sv-studio .qc-tc {
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.84rem;
  color: var(--page-ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
body.sv-studio .qc-findings-table .muted {
  font-size: 0.74rem;
  color: var(--page-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 6px;
}
body.sv-studio .qc-findings-table tbody tr td b {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--page-ink);
  font-size: 0.94rem;
}
body.sv-studio .qc-findings-table img {
  display: block;
  border: 1px solid var(--page-line);
  background: #000;
  border-radius: 6px;
  max-height: 56px !important;
  max-width: 100px !important;
  object-fit: cover;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.sv-studio .qc-findings-table a:hover img {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(11,12,13,0.18);
}
body.sv-studio .qc-sev {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 24px;
  padding: 0 8px !important;
  border-radius: 100px !important;
  font-family: var(--sans);
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
  background: transparent !important;
  border: 1px solid currentColor;
}
body.sv-studio .qc-sev-1 { background: rgba(135,141,149,0.12) !important; color: var(--page-ink-soft) !important; border-color: transparent; }
body.sv-studio .qc-sev-2 { background: rgba(184,134,11,0.16) !important; color: #8a6308 !important; border-color: transparent; }
body.sv-studio .qc-sev-3 { background: rgba(224,90,79,0.14) !important; color: #b03c33 !important; border-color: transparent; }
body.sv-studio .qc-sev-4 { background: #b03c33 !important; color: #fff !important; border-color: transparent; }
body.sv-studio .qc-frow-info td b { color: var(--page-ink); }
body.sv-studio .qc-frow-info td:nth-child(3) b::before {
  content: "ⓘ";
  margin-right: 6px;
  color: #2a6294;
  font-style: normal;
}
body.sv-studio .qc-frow-sev3,
body.sv-studio .qc-frow-sev4 { background: rgba(224,90,79,0.025); }
body.sv-studio .qc-frow-sev3:hover,
body.sv-studio .qc-frow-sev4:hover { background: rgba(224,90,79,0.05) !important; }
body.sv-studio .qc-frow-sev3 td:first-child,
body.sv-studio .qc-frow-sev4 td:first-child { box-shadow: inset 3px 0 0 #b03c33; }
body.sv-studio .qc-frow-sev2 td:first-child { box-shadow: inset 3px 0 0 #c8a04a; }
body.sv-studio .qc-frow-sev1 td:first-child { box-shadow: inset 3px 0 0 #c5cad0; }
body.sv-studio .qc-row .qc-icon {
  width: 28px;
  font-weight: 600;
}
body.sv-studio .qc-row-pass .qc-icon { color: #2f6f48; }
body.sv-studio .qc-row-warn .qc-icon { color: #8a6308; }
body.sv-studio .qc-row-fail .qc-icon { color: #b03c33; }
body.sv-studio .qc-row-empty td { color: var(--page-muted); padding: 14px 10px; font-style: italic; }
body.sv-studio .qc-section-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 18px;
}
body.sv-studio .qc-section-nav a {
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--page-ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
  font-family: var(--sans);
}
body.sv-studio .qc-section-nav a:hover { background: rgba(11,12,13,0.05); color: var(--page-ink); }
body.sv-studio .qc-tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.74rem;
  color: var(--page-muted);
  background: var(--page-bg);
  border-radius: 100px;
  padding: 1px 7px;
}
body.sv-studio .qc-top {
  display: flex; gap: 28px; align-items: stretch;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
}
body.sv-studio .qc-score-ring {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4f6f8, #dee2e6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 0 0 110px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--page-line);
}
body.sv-studio .qc-score-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  color: var(--page-ink);
  line-height: 1;
  font-style: normal;
}
body.sv-studio .qc-score-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-top: 6px;
}
body.sv-studio .qc-top-main { flex: 1; min-width: 0; }
body.sv-studio .qc-status-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
body.sv-studio .qc-status-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
body.sv-studio .qc-status-chip.is-pass { background: rgba(64,145,95,0.13); color: #2f6f48; }
body.sv-studio .qc-status-chip.is-warn { background: rgba(184,134,11,0.14); color: #8a6308; }
body.sv-studio .qc-status-chip.is-fail { background: rgba(224,90,79,0.13); color: #b03c33; }
body.sv-studio .qc-status-chip.is-running { background: rgba(45,113,184,0.14); color: #2a6294; }
body.sv-studio .qc-status-meta { color: var(--page-muted); font-size: 0.84rem; }
body.sv-studio .qc-progress {
  width: 100%;
  height: 8px;
  background: var(--page-bg);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}
body.sv-studio .qc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0b0c0d, #2a2c30);
  transition: width .25s ease;
}
body.sv-studio .qc-progress-stats {
  display: flex; justify-content: space-between;
  font-size: 0.82rem;
  color: var(--page-muted);
  font-variant-numeric: tabular-nums;
}
body.sv-studio .qc-empty-hint {
  color: var(--page-muted);
  font-size: 0.92rem;
  font-style: italic;
}
body.sv-studio .qc-clearance {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
}
body.sv-studio .qc-clearance-A { background: rgba(64,145,95,0.13); color: #2f6f48; }
body.sv-studio .qc-clearance-B { background: rgba(45,113,184,0.13); color: #2a6294; }
body.sv-studio .qc-clearance-C { background: rgba(224,90,79,0.13); color: #b03c33; }

/* Review Bay (legacy bay-* classes) light-theme */
body.sv-studio .bay-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  margin-bottom: 28px;
}
body.sv-studio .bay-player,
body.sv-studio .bay-side {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 18px;
}
body.sv-studio .bay-controls {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
}
body.sv-studio .bay-time {
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.86rem;
  color: var(--page-muted);
  margin-left: auto;
}
body.sv-studio .bay-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--page-muted);
  font-family: var(--sans);
}
body.sv-studio .bay-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--page-line);
  margin-bottom: 14px;
}
body.sv-studio .bay-tab {
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--page-ink-soft);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
body.sv-studio .bay-tab.is-active { color: var(--page-ink); border-color: var(--page-ink); }
body.sv-studio .bay-tab:hover { color: var(--page-ink); }
body.sv-studio .bay-panel { padding: 0; }
body.sv-studio .bay-panel h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--page-ink);
  margin: 0 0 8px;
  font-style: normal;
}

/* Legacy console / studio classes — light-theme reskin so console
   templates that haven't been fully rewritten still look right. */
body.sv-studio .console,
body.sv-studio .studio { padding: 0; max-width: none; }
body.sv-studio .console-hero,
body.sv-studio .studio-hero {
  border-bottom: 1px solid var(--page-line);
  padding-bottom: 18px;
  margin-bottom: 28px;
}
body.sv-studio .console-hero h1,
body.sv-studio .studio-hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--page-ink);
  font-style: normal;
}
body.sv-studio .console-hero p,
body.sv-studio .studio-hero p {
  color: var(--page-ink-soft);
  margin-top: 6px;
  font-size: 0.96rem;
}
body.sv-studio .eyebrow-top {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 8px;
  display: block;
}
body.sv-studio .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
body.sv-studio .stat-card {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--page-ink);
  text-decoration: none;
  display: block;
}
body.sv-studio .stat-card.stat-link:hover { border-color: var(--page-ink); }
body.sv-studio .stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 8px;
}
body.sv-studio .stat-value {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--page-ink);
  font-style: normal;
}
body.sv-studio .stat-foot {
  font-size: 0.78rem;
  color: var(--page-muted);
  margin-top: 4px;
}
body.sv-studio .studio-section {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
}
body.sv-studio .studio-section .toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--page-line);
}
body.sv-studio .studio-section .toolbar h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--page-ink);
  margin: 0;
  font-style: normal;
}
body.sv-studio .studio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
body.sv-studio .studio-table th {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--page-muted);
  padding: 12px 22px;
  text-align: left;
  border-bottom: 1px solid var(--page-line);
  background: var(--page-bg);
}
body.sv-studio .studio-table td {
  padding: 12px 22px;
  border-bottom: 1px solid var(--page-line);
  color: var(--page-ink);
  vertical-align: middle;
}
body.sv-studio .studio-table tbody tr:last-child td { border-bottom: none; }
body.sv-studio .studio-table tbody tr:hover td { background: rgba(11,12,13,0.025); }
body.sv-studio .studio-table .poster-cell { width: 84px; }
body.sv-studio .studio-table .poster-cell img {
  width: 64px; height: 38px;
  object-fit: cover; border-radius: 4px; display: block;
}
body.sv-studio .studio-table .poster-ph {
  width: 64px; height: 38px; border-radius: 4px;
  background: linear-gradient(135deg, #ddd, #bbb);
}
body.sv-studio .studio-table .title-cell a {
  color: var(--page-ink);
  font-weight: 600;
  text-decoration: none;
}
body.sv-studio .studio-table .title-cell a:hover { text-decoration: underline; }
body.sv-studio .studio-table .num { text-align: right; font-variant-numeric: tabular-nums; }
body.sv-studio .row-link {
  font-size: 0.84rem;
  color: var(--page-ink);
  text-decoration: none;
  font-weight: 500;
}
body.sv-studio .row-link:hover { color: var(--accent-deep, #8a7238); text-decoration: underline; }
body.sv-studio .row-muted td { color: var(--page-ink-soft); }
body.sv-studio .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--page-bg);
  color: var(--page-ink-soft);
}
body.sv-studio .chip-ready { background: rgba(64,145,95,0.13); color: #2f6f48; }
body.sv-studio .chip-processing { background: rgba(184,134,11,0.14); color: #8a6308; }
body.sv-studio .chip-failed { background: rgba(224,90,79,0.13); color: #b03c33; }
body.sv-studio .chip-pending { background: var(--page-bg); color: var(--page-ink-soft); }
body.sv-studio .chip-4k {
  background: #0b0c0d;
  color: #fafaf7;
  font-size: 0.66rem;
  margin-left: 6px;
}
body.sv-studio .empty-soft,
body.sv-studio .empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--page-ink-soft);
}
body.sv-studio .activity-feed {
  list-style: none; margin: 0; padding: 0;
}
body.sv-studio .activity-feed li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--page-line);
  font-size: 0.92rem;
}
body.sv-studio .activity-feed li:last-child { border-bottom: none; }
body.sv-studio .activity-time {
  color: var(--page-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  min-width: 90px;
}
body.sv-studio .activity-who { font-weight: 600; color: var(--page-ink); }
body.sv-studio .activity-action { color: var(--page-ink-soft); }
body.sv-studio .activity-what {
  color: var(--page-ink);
  text-decoration: none;
  font-weight: 500;
}
body.sv-studio .activity-what:hover { text-decoration: underline; }
body.sv-studio .back-link {
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--page-ink-soft);
  text-decoration: none;
  margin-bottom: 16px;
}
body.sv-studio .back-link:hover { color: var(--page-ink); }

/* ==================================================================
   SaaS toolbar — search input + segmented filter, sits below page-head.
   Used on /console/filmmakers, /console/members, /console/review etc.
   ================================================================== */
.sv-toolbar {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.sv-search {
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
}
.sv-search-icon {
  position: absolute !important;
  top: 50% !important; left: 14px !important;
  width: 16px !important; height: 16px !important;
  margin-top: -8px !important;
  color: var(--page-muted);
  pointer-events: none;
  flex: none;
}
.sv-search > .sv-search-icon { box-sizing: border-box; }
.sv-search-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  font-family: var(--sans);
  font-size: 0.94rem;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 100px;
  color: var(--page-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sv-search-input:focus {
  outline: none;
  border-color: var(--page-ink);
  box-shadow: 0 0 0 3px rgba(11,12,13,0.06);
}
.sv-search-input::placeholder { color: var(--page-muted); }

.sv-segmented {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}
.sv-segmented-item {
  padding: 7px 16px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--page-ink-soft);
  text-decoration: none;
  border-radius: 100px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.sv-segmented-item {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}
.sv-segmented-item:hover {
  color: var(--page-ink);
  background: rgba(11, 12, 13, 0.05);
}
.sv-segmented-item.is-active {
  background: #0b0c0d;
  color: #fafaf7;
  border-color: #0b0c0d;
  box-shadow: 0 1px 4px rgba(11, 12, 13, 0.18);
}

@media (max-width: 720px) {
  .sv-toolbar { gap: 10px; }
  .sv-segmented { width: 100%; overflow-x: auto; }
  .sv-segmented-item { padding: 7px 12px; }
}

/* ==================================================================
   SPOTLIGHT — per-chapter editorial picker. sv-chapter-style banners
   show the live preview; controls below let the consultant pick
   the anchor film and which of its images becomes the banner.
   ================================================================== */

/* Global hero preview — large 16:9 with the chosen film's image */
.sv-spot-hero { background: #fff; border: 1px solid var(--page-line); border-radius: 12px; margin-bottom: 28px; overflow: hidden; }
.sv-spot-hero-preview {
  position: relative;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #2a2c30, #0b0c0d) center/cover;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.sv-spot-hero-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.32) 50%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
}
.sv-spot-hero-copy {
  position: absolute;
  bottom: 28px; left: 36px; right: 36px;
  z-index: 2; max-width: 580px;
}
.sv-spot-hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.78);
  margin-bottom: 10px;
}
.sv-spot-hero-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #fff;
  font-style: normal;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #b9bdc4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sv-spot-hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  color: rgba(245,241,234,0.72);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sv-spot-tagline-form {
  display: flex; gap: 10px; align-items: center;
}
.sv-spot-tagline-form input { flex: 1; }

/* Chapter card — sv-chapter-styled banner + controls below */
.sv-spot-chapter {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 14px;
  margin-bottom: 28px;
  overflow: hidden;
}
.sv-spot-chapter-banner {
  position: relative;
  aspect-ratio: 24 / 9;
  background: linear-gradient(135deg, #2a2c30, #0b0c0d) center/cover;
  overflow: hidden;
}
.sv-spot-chapter-banner.sv-spot-chapter-banner-empty {
  background: linear-gradient(135deg, #c5cad0, #868c94);
}
.sv-spot-chapter-banner > .sv-filmstrip-rail {
  background-image: repeating-linear-gradient(90deg, rgba(245,241,234,0.0) 0 30px, rgba(245,241,234,0.22) 30px 32px);
}
.sv-spot-chapter-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.32) 60%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.45) 100%);
}
.sv-spot-chapter-copy {
  position: absolute;
  left: 40px; top: 50%; transform: translateY(-50%);
  z-index: 2; max-width: 60%;
}
.sv-spot-chapter-num {
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  color: rgba(245,241,234,0.6);
  margin-bottom: 14px;
}
.sv-spot-chapter-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0 0 10px;
  color: #fff;
  font-style: normal;
  background: linear-gradient(180deg, #ffffff 0%, #b9bdc4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sv-spot-chapter-sub {
  color: rgba(245,241,234,0.72);
  font-size: 0.92rem;
  margin: 0 0 14px;
  max-width: 50ch;
}
.sv-spot-chapter-credit {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--sans);
  color: rgba(245,241,234,0.86);
}
.sv-spot-chapter-credit-label {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
}
.sv-spot-chapter-credit-title {
  font-size: 0.96rem;
  font-weight: 500;
  font-style: italic;
  font-family: var(--display);
}

/* Controls strip below banner */
.sv-spot-controls {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column; gap: 26px;
}
.sv-spot-block { }
.sv-spot-block-head { margin-bottom: 14px; }
.sv-spot-block-head h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--page-ink);
  margin: 0 0 4px;
  font-style: normal;
}
.sv-spot-block-head p {
  font-size: 0.86rem;
  color: var(--page-ink-soft);
  margin: 0;
}

/* Anchor film picker — horizontal scrolling row of film thumbs */
.sv-spot-films {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.sv-spot-films::-webkit-scrollbar { height: 6px; }
.sv-spot-films::-webkit-scrollbar-thumb { background: var(--page-line-strong); border-radius: 100px; }
.sv-spot-film {
  flex: 0 0 200px;
  margin: 0; padding: 0;
  scroll-snap-align: start;
}
.sv-spot-film-btn {
  width: 100%;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  display: block;
  color: inherit;
  font: inherit;
}
.sv-spot-film-btn:hover {
  background: rgba(11,12,13,0.04);
  transform: translateY(-1px);
}
.sv-spot-film.is-active .sv-spot-film-btn {
  border-color: var(--page-ink);
  background: #fff;
  box-shadow: 0 8px 24px rgba(11,12,13,0.06);
}
.sv-spot-film-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #ddd, #bbb);
  margin-bottom: 8px;
}
.sv-spot-film-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sv-spot-film-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #ddd, #bbb);
}
.sv-spot-film-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--page-ink);
  color: #fafaf7;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 100px;
}
.sv-spot-film-meta { padding: 0 4px; }
.sv-spot-film-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--page-ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-spot-film-sub {
  font-size: 0.78rem;
  color: var(--page-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Image picker — small thumbnail grid for the active anchor's images */
.sv-spot-images {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.sv-spot-image { margin: 0; padding: 0; }
.sv-spot-image-btn {
  width: 160px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
  font: inherit;
  color: inherit;
}
.sv-spot-image-btn:hover { background: rgba(11,12,13,0.04); }
.sv-spot-image-btn.is-active {
  border-color: var(--page-ink);
  background: #fff;
}
.sv-spot-image-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #ddd, #bbb);
  margin-bottom: 6px;
}
.sv-spot-image-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sv-spot-image-tile-auto {
  background: linear-gradient(135deg, #f4f6f8, #c5cad0);
}
.sv-spot-image-auto {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--page-ink);
}
.sv-spot-image-label {
  font-size: 0.78rem;
  color: var(--page-ink-soft);
  letter-spacing: 0.02em;
}

/* ==================================================================
   Inline-editable text — consultant only. Hover shows a soft outline
   and pencil hint; focus shows a stronger outline; saved flashes a
   green check briefly. Sits invisibly to non-editors.
   ================================================================== */
.sv-edit {
  position: relative;
  outline: none;
  cursor: text;
  transition: background .15s ease, box-shadow .15s ease;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -4px;
}
.sv-edit::before {
  content: "✎";
  position: absolute;
  top: -10px; right: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent, #c9a961);
  color: #0a0a0b;
  font-size: 0.74rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .15s ease, transform .15s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.sv-edit:hover { background: rgba(201,169,97,0.08); box-shadow: inset 0 0 0 1px rgba(201,169,97,0.45); }
.sv-edit:hover::before { opacity: 1; transform: scale(1); }
.sv-edit:focus {
  background: rgba(201,169,97,0.14);
  box-shadow: inset 0 0 0 2px rgba(201,169,97,0.85);
  cursor: text;
}
.sv-edit.is-saving::before { content: "…"; background: #2a6294; color: #fff; }
.sv-edit.is-saved::before { content: "✓"; background: #2f6f48; color: #fff; }
.sv-edit.is-error::before { content: "✕"; background: #b03c33; color: #fff; }

/* ==================================================================
   HTMX-friendly micro-animations for the spotlight (and reusable for
   any partial-swap target). Honours prefers-reduced-motion.
   ================================================================== */

/* Pop-in when a chapter card is freshly swapped in */
.sv-anim-pop { animation: sv-anim-pop .26s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes sv-anim-pop {
  0%   { opacity: 0; transform: translateY(6px) scale(0.995); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Fade for small status pills, badges, etc. */
.sv-anim-fadein { animation: sv-anim-fadein .22s ease-out both; }
@keyframes sv-anim-fadein {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gentle cross-fade when the chapter banner changes (image swap) */
.sv-anim-banner { animation: sv-anim-banner .42s ease-out both; }
@keyframes sv-anim-banner {
  0%   { opacity: 0.55; filter: blur(6px) saturate(0.85); transform: scale(1.012); }
  100% { opacity: 1;    filter: blur(0)   saturate(1);     transform: scale(1); }
}

/* HTMX swap stages — fade out the OLD content before swap, fade in the new.
   The `swap:160-200ms` we set in hx-swap matches sv-htmx-swapping duration. */
.htmx-swapping { opacity: 0.55; transition: opacity .12s ease; }
.htmx-settling { opacity: 1; transition: opacity .14s ease; }

/* Disable when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sv-anim-pop, .sv-anim-fadein, .sv-anim-banner { animation: none !important; }
  .htmx-swapping, .htmx-settling { transition: none !important; opacity: 1 !important; }
}

/* Live indicator when a request is in flight (htmx adds .htmx-request) */
.sv-spot-toggle.htmx-request { opacity: 0.6; }
.sv-spot-film-btn.htmx-request,
.sv-spot-image-btn.htmx-request { opacity: 0.55; }

/* ==================================================================
   Manage chapters — top of the spotlight page. Editable list + add form.
   Clean SaaS row: drag handle · circular initial · name+tagline · count
   · live toggle · delete. No yellow stain on hover (the .sv-edit base
   rule handles the editable affordance subtly enough on its own).
   ================================================================== */
/* ===== Manage chapters — fresh `mc-*` namespace, no `sv-chap-*` left ===== */

.mc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mc-list > li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--page-ink);
}
.mc-list > li:hover { border-color: var(--page-line-strong); }
.mc-list > li.mc-hidden { opacity: 0.55; }

.mc-grip {
  flex: 0 0 12px;
  color: var(--page-muted);
  font-size: 13px;
  cursor: grab;
  user-select: none;
}
.mc-thumb {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0f2f5, #c5cad0) center/cover;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--page-ink);
}

.mc-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.mc-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--page-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
  outline: none;
  border-radius: 3px;
  line-height: 1.25;
}
.mc-tagline {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--page-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 4px 0 0 0;
  padding: 0;
  outline: none;
  border-radius: 3px;
  line-height: 1.25;
}
.mc-name:hover, .mc-tagline:hover { background: rgba(11,12,13,0.05); }
.mc-name:focus, .mc-tagline:focus { background: rgba(11,12,13,0.08); }
.mc-name::before, .mc-tagline::before { display: none !important; }

.mc-count {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--page-ink-soft);
  background: var(--page-bg);
  border: 1px solid var(--page-line);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
}

.mc-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0 6px 0 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.mc-toggle-knob {
  width: 30px; height: 17px;
  border-radius: 100px;
  background: #c5cad0;
  position: relative;
  transition: background .2s ease;
}
.mc-toggle-knob::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform .22s cubic-bezier(.16,1,.3,1);
}
.mc-toggle.mc-on .mc-toggle-knob {
  background: linear-gradient(180deg, #3e8a5e, #2f6f48);
}
.mc-toggle.mc-on .mc-toggle-knob::after { transform: translateX(13px); }
.mc-toggle-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--page-bg);
  color: var(--page-muted);
  border: 1px solid var(--page-line);
}
.mc-toggle-pill::after { content: "Hidden"; }
.mc-toggle.mc-on .mc-toggle-pill {
  background: #2f6f48;
  color: #fff;
  border-color: #2f6f48;
}
.mc-toggle.mc-on .mc-toggle-pill::after { content: "Live"; }

.mc-del {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--page-line);
  background: #fff;
  color: var(--page-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mc-del:hover {
  background: #b03c33;
  color: #fff;
  border-color: #b03c33;
}

.mc-add {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--page-bg);
  border: 1px dashed var(--page-line-strong);
  border-radius: 10px;
  display: flex;
  gap: 10px;
}
.mc-add input {
  padding: 9px 12px;
  font-family: var(--sans);
  font-size: 14px;
  border: 1px solid var(--page-line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--page-ink);
  min-width: 0;
}
.mc-add input:focus { outline: none; border-color: var(--page-ink); }
.mc-add-name { flex: 0 0 200px; }
.mc-add-tag { flex: 1 1 auto; }
.mc-add .sv-btn { flex: 0 0 auto; }

@media (max-width: 720px) {
  .mc-add { flex-direction: column; }
  .mc-add-name { flex: 1 1 auto; }
}

/* Chapter display settings — toggles + layout switch */
.sv-spot-settings {
  background: var(--page-bg);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 4px;
}
.sv-spot-toggles {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
}
.sv-spot-toggle-form { margin: 0; padding: 0; }
.sv-spot-toggle {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 100px;
  font: inherit; color: inherit;
  cursor: pointer;
  padding: 10px 18px 10px 10px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.sv-spot-toggle:hover {
  border-color: var(--page-line-strong);
}
.sv-spot-toggle.is-on {
  border-color: #2f6f48;
  background: linear-gradient(90deg, rgba(64,145,95,0.10) 0%, #fff 60%);
  box-shadow: 0 0 0 1px rgba(64,145,95,0.18) inset;
}
.sv-spot-toggle-knob {
  position: relative;
  display: inline-block;
  width: 46px; height: 26px;
  border-radius: 100px;
  background: #c5cad0;
  transition: background .25s ease;
  flex: 0 0 46px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
}
.sv-spot-toggle-knob::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .26s cubic-bezier(.16,1,.3,1), box-shadow .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
}
.sv-spot-toggle.is-on .sv-spot-toggle-knob {
  background: linear-gradient(180deg, #3e8a5e 0%, #2f6f48 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.18), 0 0 12px rgba(64,145,95,0.35);
}
.sv-spot-toggle.is-on .sv-spot-toggle-knob::after {
  transform: translateX(20px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}
.sv-spot-toggle-label {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.94rem;
  color: var(--page-ink-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .18s ease;
  text-align: left;
}
.sv-spot-toggle.is-on .sv-spot-toggle-label {
  color: var(--page-ink);
  font-weight: 600;
}
.sv-spot-toggle-label code {
  background: rgba(11,12,13,0.06);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-family: "SF Mono", "JetBrains Mono", monospace;
  color: var(--page-ink-soft);
}
.sv-spot-toggle.is-on .sv-spot-toggle-label code {
  background: rgba(64,145,95,0.12);
  color: #2f6f48;
}
.sv-spot-toggle-state {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--page-bg);
  color: var(--page-muted);
  border: 1px solid var(--page-line);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sv-spot-toggle-state::after { content: attr(data-state-off); }
.sv-spot-toggle.is-on .sv-spot-toggle-state {
  background: #2f6f48;
  color: #fff;
  border-color: #2f6f48;
  box-shadow: 0 4px 12px rgba(64,145,95,0.28);
}
.sv-spot-toggle.is-on .sv-spot-toggle-state::after { content: attr(data-state-on); }

/* Segmented control with a smooth indicator. Use !important on the
   active state so it always beats any button-default styling that
   bleeds in (browsers + body.sv-studio button rules). */
.sv-segmented-pop .sv-segmented-item {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--page-ink-soft);
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.sv-segmented-pop .sv-segmented-item:hover { color: var(--page-ink); }
.sv-segmented-pop .sv-segmented-item.is-active,
.sv-segmented-pop button.sv-segmented-item.is-active {
  background: #0b0c0d !important;
  color: #fafaf7 !important;
  box-shadow: 0 4px 14px rgba(11,12,13,0.22);
  font-weight: 600 !important;
}

.sv-spot-layout {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--page-line);
}
.sv-spot-layout-label {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--page-ink-soft);
}

/* Reorder list — numbered, drag-to-reorder, top 6 spotlighted */
.sv-spot-order {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.sv-spot-order-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  cursor: grab;
  transition: border-color .12s ease, background .12s ease, transform .15s ease, opacity .15s ease;
}
.sv-spot-order-row:active,
.sv-spot-order-row.is-dragging {
  cursor: grabbing;
  opacity: 0.6;
  transform: scale(0.99);
  border-color: var(--page-ink);
}
.sv-spot-order-row.is-spotlight {
  border-left: 3px solid #2f6f48;
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(64,145,95,0.04) 0%, #fff 30%);
}
.sv-spot-order-row.is-overflow { opacity: 0.78; }
.sv-spot-order-grip {
  color: var(--page-muted);
  font-size: 1rem;
  letter-spacing: -1px;
  font-family: var(--sans);
  user-select: none;
  flex: 0 0 18px;
}
.sv-spot-order-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--page-ink);
  min-width: 28px;
  text-align: center;
  background: var(--page-bg);
  padding: 4px 8px;
  border-radius: 6px;
}
.sv-spot-order-row.is-spotlight .sv-spot-order-num {
  background: var(--page-ink);
  color: #fafaf7;
}
.sv-spot-order-thumb {
  width: 80px; height: 45px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #ddd, #bbb);
  flex: 0 0 80px;
  position: relative;
}
.sv-spot-order-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sv-spot-order-meta {
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.sv-spot-order-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--page-ink);
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sv-spot-order-sub {
  font-size: 0.78rem;
  color: var(--page-muted);
  letter-spacing: 0.04em;
}
.sv-spot-order-divider {
  display: flex; justify-content: space-between;
  list-style: none;
  margin: 8px 4px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--page-muted);
  border-top: 1px dashed var(--page-line-strong);
  cursor: default;
  user-select: none;
}
.sv-spot-order-divider span { padding-top: 6px; }

/* CTA row — promote to global hero / clear anchor */
.sv-spot-block-cta {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--page-line);
}
.sv-spot-cta-form { margin: 0; padding: 0; display: inline-flex; }

@media (max-width: 720px) {
  .sv-spot-chapter-copy { left: 22px; right: 22px; max-width: none; }
  .sv-spot-chapter-banner { aspect-ratio: 16 / 10; }
  .sv-spot-controls { padding: 18px 18px 22px; gap: 22px; }
  .sv-spot-film { flex-basis: 160px; }
  .sv-spot-image-btn { width: 130px; }
}

/* Promotional stills — multi-file grid on the metadata wizard step.
   Each tile shows the still with a small caption + remove (×) button. */
.sv-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.sv-promo-tile {
  position: relative;
  background: var(--page-bg);
  border: 1px solid var(--page-line);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.sv-promo-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sv-promo-tile-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.65) 100%);
  color: #fafaf7;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-promo-tile-x {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(11,12,13,0.7);
  color: #fafaf7;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease;
}
.sv-promo-tile-x:hover {
  background: #b03c33;
  transform: scale(1.08);
}

/* Existing-file panel — shown on step_file when a master is already uploaded */
.sv-existing-card {
  display: flex; align-items: center;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 28px;
}
.sv-existing-icon {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4f6f8, #dee2e6);
  display: flex; align-items: center; justify-content: center;
  color: #2f6f48;
}
.sv-existing-icon svg { width: 28px; height: 28px; }
.sv-existing-body { flex: 1; min-width: 0; }
.sv-existing-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2f6f48;
  margin-bottom: 4px;
}
.sv-existing-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--page-ink);
  word-break: break-all;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.sv-existing-meta {
  font-size: 0.86rem;
  color: var(--page-muted);
}
.sv-existing-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .sv-existing-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sv-existing-actions { width: 100%; }
}

/* Generic form-field inside sv-studio */
body.sv-studio .form-field {
  margin-bottom: 18px;
}
body.sv-studio .form-field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--page-ink-soft);
  margin-bottom: 8px;
}
body.sv-studio .form-field input[type="text"],
body.sv-studio .form-field input[type="email"],
body.sv-studio .form-field input[type="url"],
body.sv-studio .form-field input[type="number"],
body.sv-studio .form-field input[type="password"],
body.sv-studio .form-field select,
body.sv-studio .form-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 0.94rem;
  border: 1px solid var(--page-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--page-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.sv-studio .form-field input:focus,
body.sv-studio .form-field select:focus,
body.sv-studio .form-field textarea:focus {
  outline: none;
  border-color: var(--page-ink);
  box-shadow: 0 0 0 3px rgba(11,12,13,0.08);
}
body.sv-studio .form-field input[type="file"] {
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--page-ink-soft);
}

/* ==================================================================
   Studio film — video player + engagement heatmap
   ================================================================== */
.sv-player-wrap {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
  aspect-ratio: 16 / 9;
}
.sv-player-wrap video,
.sv-player-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.sv-heatmap {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 28px;
}
.sv-heatmap-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.sv-heatmap-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--page-ink);
}
.sv-heatmap-sub {
  font-size: 0.84rem;
  color: var(--page-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sv-heatmap-bars {
  display: flex; align-items: flex-end;
  gap: 2px;
  height: 80px;
  padding: 0 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(11,12,13,0.04) 100%);
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}
.sv-heatmap-bar {
  flex: 1 1 0;
  min-width: 0;
  background: linear-gradient(180deg, #e05a4f 0%, #d23a4e 60%, #b03c33 100%);
  border-radius: 2px 2px 0 0;
  transition: opacity .15s ease;
}
.sv-heatmap-bars:hover .sv-heatmap-bar { opacity: 0.55; }
.sv-heatmap-bars .sv-heatmap-bar:hover { opacity: 1; }
.sv-heatmap-axis {
  display: flex; justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--page-muted);
  margin-top: 8px;
}
.sv-heatmap-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--page-muted);
  font-size: 0.94rem;
}
.sv-heatmap-peak {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #b03c33;
}
.sv-heatmap-peak::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d23a4e;
}

/* ==================================================================
   BRAND LOGO — single class, theme-aware via background-image swap.
   Default surface is dark ⇒ render the white logo. Light-themed
   bodies (sv-light, sv-studio) and white auth-cards override with
   the black logo. Surfaces explicitly tagged dark (sv-feature, gate
   modal interior, .sv-on-dark) force the white logo.
   ================================================================== */
.sv-brand-logo {
  display: inline-block;
  width: 96px; height: 28px;
  background: url("../img/silvr_logo_white.svg") no-repeat center / contain;
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: middle;
}
body.sv-light .sv-brand-logo,
body.sv-studio .sv-brand-logo,
.sv-auth-card .sv-brand-logo {
  background-image: url("../img/silvr_logo_black.svg");
}
/* Dark-surface overrides — these MUST beat the body.sv-light/sv-studio
   light-surface rules above (which have higher specificity by way of the
   body class). Using !important is the simplest way to keep the rule
   reliable when a dark island sits inside a light-themed body. */
.nav .sv-brand-logo,
.gate-inner .sv-brand-logo,
.sv-feature .sv-brand-logo,
.sv-on-dark .sv-brand-logo,
.sv-watch-hero .sv-brand-logo,
.sv-auth-card .sv-brand-logo,
body.sv-auth .sv-brand-logo {
  background-image: url("../img/silvr_logo_white.svg") !important;
}
.sv-brand-logo-sm { width: 76px; height: 22px; }
.sv-brand-logo-lg { width: 132px; height: 38px; }

/* ==================================================================
   AUTH CARD — full-page cinematic sign-in / sign-up. Same recipe as
   the signup-gate modal but as a standalone route. Dark backdrop
   (still image, blurred + dimmed), silver vignette, centered card.
   ================================================================== */
body.sv-auth {
  background: #0a0a0b;
  color: var(--ink);
  min-height: 100vh;
}
body.sv-auth .site-header,
body.sv-auth .site-footer { display: none; }
body.sv-auth main#app { max-width: none; padding: 0; margin: 0; }

.sv-auth-overlay {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  overflow: hidden;
}
.sv-auth-backdrop {
  position: absolute; inset: -40px;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0b;
  filter: blur(34px) saturate(1.1) brightness(0.32);
  transform: scale(1.15);
  z-index: 0;
}
.sv-auth-vignette {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(10,10,11,0.45) 0%, rgba(10,10,11,0.92) 85%),
    linear-gradient(180deg, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0.78) 100%);
}
.sv-auth-rails {
  position: absolute; left: 0; right: 0; z-index: 1;
  height: 18px;
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(245,241,234,0.18) 18%, rgba(245,241,234,0.04) 50%, rgba(245,241,234,0.18) 82%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(245,241,234,0.0) 0 30px, rgba(245,241,234,0.18) 30px 32px);
  pointer-events: none;
}
.sv-auth-rails-top { top: 0; }
.sv-auth-rails-bottom { bottom: 0; }

.sv-auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  padding: 48px 40px 40px;
  text-align: center;
  background: rgba(15, 15, 17, 0.6);
  border: 1px solid rgba(245, 241, 234, 0.08);
  border-radius: 4px;
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 40px 120px rgba(0,0,0,0.65);
}
.sv-auth-card .sv-brand-logo {
  margin: 0 auto 36px;
  display: block;
}
.sv-auth-card .gate-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.sv-auth-card .gate-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--ink);
}
.sv-auth-card .gate-sub {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 36ch;
  margin: 0 auto 30px;
}

.sv-auth-form {
  display: flex; flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-bottom: 18px;
}
.sv-auth-field { display: flex; flex-direction: column; gap: 6px; }
.sv-auth-field label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sv-auth-input,
body.sv-auth input[type="text"],
body.sv-auth input[type="email"],
body.sv-auth input[type="password"],
body.sv-auth input[type="url"] {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 0.96rem;
  background: rgba(10, 10, 11, 0.6);
  border: 1px solid rgba(245, 241, 234, 0.14);
  border-radius: 3px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.sv-auth-input:focus,
body.sv-auth input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201,169,97,0.2);
  background: rgba(10, 10, 11, 0.8);
}
.sv-auth-input::placeholder,
body.sv-auth input::placeholder { color: var(--muted); }
.sv-auth-form .errorlist {
  list-style: none; padding: 0; margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}
.sv-auth-nonfield {
  font-size: 0.86rem;
  color: var(--danger);
  background: rgba(224,90,79,0.07);
  border: 1px solid rgba(224,90,79,0.22);
  padding: 10px 14px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.sv-auth-submit {
  display: block;
  width: 100%;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--ink);
  color: #0a0a0b;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.sv-auth-submit:hover {
  background: var(--accent);
  color: #0a0a0b;
  border-color: var(--accent);
}
.sv-auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.sv-auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 18px;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.sv-auth-divider::before,
.sv-auth-divider::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245,241,234,0.16) 50%, transparent 100%);
}

.sv-auth-social {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.sv-auth-social a, .sv-auth-social button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(245, 241, 234, 0.04);
  border: 1px solid rgba(245, 241, 234, 0.12);
  border-radius: 3px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.sv-auth-social a:hover, .sv-auth-social button:hover {
  background: rgba(245, 241, 234, 0.08);
  border-color: rgba(245, 241, 234, 0.28);
  color: var(--ink);
}
.sv-auth-social svg, .sv-auth-social img {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.sv-auth-foot {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 241, 234, 0.08);
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.sv-auth-foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-left: 6px;
}
.sv-auth-foot a:hover { color: var(--accent-hot); }
.sv-auth-aside {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.sv-auth-aside a { color: var(--accent); text-decoration: none; }
.sv-auth-aside a:hover { color: var(--accent-hot); }

@media (max-width: 540px) {
  .sv-auth-overlay { padding: 20px; }
  .sv-auth-card { padding: 36px 24px 28px; }
  .sv-auth-social { grid-template-columns: 1fr; }
}

/* ==================================================================
   Cinematic livery upgrades for the auth pages — film-grain overlay,
   slow Ken-Burns backdrop drift, animated silver spotlight, italic
   Fraunces title, and a slowly drifting marquee of film posters along
   the bottom edge so the page feels like the lobby of a screening
   room rather than a sign-in form.
   ================================================================== */

/* Backdrop — slow Ken-Burns drift on the still */
.sv-auth-backdrop {
  animation: sv-auth-burns 38s ease-in-out infinite alternate;
  filter: blur(34px) saturate(1.05) brightness(0.34) contrast(1.05);
}
@keyframes sv-auth-burns {
  0%   { transform: scale(1.18) translate3d(-1.5%, -1.5%, 0); }
  100% { transform: scale(1.22) translate3d(1.5%, 1.5%, 0); }
}

/* Animated silver spotlight that breathes behind the card */
.sv-auth-overlay::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 1100px; height: 1100px;
  margin: -550px 0 0 -550px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(199,205,212,0.22) 0%,
    rgba(199,205,212,0.10) 28%,
    rgba(10,10,11,0) 70%);
  z-index: 1;
  pointer-events: none;
  animation: sv-auth-spot 14s ease-in-out infinite alternate;
}
@keyframes sv-auth-spot {
  0%   { transform: translate3d(-2%, -3%, 0) scale(0.92); opacity: 0.85; }
  100% { transform: translate3d(2%, 3%, 0) scale(1.08); opacity: 1; }
}

/* Film-grain overlay across the whole canvas */
.sv-auth-overlay::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0 0.89  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  animation: sv-auth-grain 1.4s steps(6) infinite;
}
@keyframes sv-auth-grain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-5%, 4%, 0); }
  40%  { transform: translate3d(7%, -3%, 0); }
  60%  { transform: translate3d(-3%, 6%, 0); }
  80%  { transform: translate3d(4%, -5%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Card refinements — taller eyebrow rule, italic Fraunces title, ring */
.sv-auth-card {
  padding: 56px 44px 40px;
  background: linear-gradient(180deg, rgba(20,20,22,0.62) 0%, rgba(13,13,15,0.78) 100%);
  border: 1px solid rgba(245, 241, 234, 0.10);
  box-shadow:
    0 0 0 1px rgba(199,205,212,0.06),
    0 50px 140px rgba(0,0,0,0.72),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
}
.sv-auth-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.6;
}
.sv-auth-card .gate-eyebrow {
  position: relative;
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.5em;
  color: var(--accent);
  margin-bottom: 22px;
  padding: 0 4px;
}
.sv-auth-card .gate-eyebrow::before,
.sv-auth-card .gate-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,0.55), transparent);
}
.sv-auth-card .gate-eyebrow::before { right: 100%; margin-right: 12px; }
.sv-auth-card .gate-eyebrow::after  { left: 100%; margin-left: 12px; }

.sv-auth-card .gate-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.sv-auth-card .sv-brand-logo {
  margin-bottom: 30px;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.6));
}

/* Cinema strip eyebrow above the brand — small italic credit-line */
.sv-auth-credit {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 20px;
  letter-spacing: 0.02em;
  opacity: 0.78;
}
.sv-auth-credit::before {
  content: "—";
  margin-right: 6px;
  color: var(--accent);
}

/* Field polish */
.sv-auth-input,
body.sv-auth input[type="text"],
body.sv-auth input[type="email"],
body.sv-auth input[type="password"],
body.sv-auth input[type="url"] {
  background: rgba(8, 8, 10, 0.65);
  border-color: rgba(245, 241, 234, 0.10);
  letter-spacing: 0.01em;
}
.sv-auth-input:focus,
body.sv-auth input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201,169,97,0.22), 0 8px 24px rgba(201,169,97,0.08);
}

/* Submit — silver pill that catches the spotlight */
.sv-auth-submit {
  background: linear-gradient(180deg, #f5f3ec 0%, #d6d4cd 100%);
  color: #0a0a0b;
  border: none;
  letter-spacing: 0.32em;
  padding: 18px 28px;
  position: relative;
  overflow: hidden;
}
.sv-auth-submit::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  transition: left .8s ease;
  pointer-events: none;
}
.sv-auth-submit:hover::before { left: 130%; }
.sv-auth-submit:hover {
  background: var(--accent);
  color: #0a0a0b;
}

/* Marquee — slowly drifting strip of film posters along the bottom */
.sv-auth-marquee {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.sv-auth-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 0 14px;
  animation: sv-auth-marquee 80s linear infinite;
}
@keyframes sv-auth-marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.sv-auth-poster {
  position: relative;
  flex: 0 0 168px;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2c30, #0b0c0d);
  opacity: 0.32;
  transition: opacity .3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.sv-auth-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) saturate(0.85) contrast(1.05);
}
.sv-auth-poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* Hide the marquee on tighter heights so the card has room */
@media (max-height: 760px) {
  .sv-auth-marquee { display: none; }
  .sv-auth-card { padding: 40px 36px 28px; }
}
@media (max-width: 540px) {
  .sv-auth-marquee { display: none; }
  .sv-auth-card { padding: 32px 22px 22px; }
}

/* ==================================================================
   WATCH PAGE — cinematic player + "more from this collection" rail.
   Lives on body.sv-light to match /films/. The hero uses a dark
   strip behind the player (player is the centerpiece) with silver
   film-strip rails hugging the top/bottom edges.
   ================================================================== */
.sv-watch-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #0a0a0b;
  padding: 28px 0 28px;
  overflow: hidden;
}
.sv-watch-hero::before,
.sv-watch-hero::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--silver-300) 20%,
    var(--silver-100) 50%,
    var(--silver-300) 80%,
    transparent 100%);
  opacity: 0.4;
}
.sv-watch-hero::before { top: 0; }
.sv-watch-hero::after { bottom: 0; }
.sv-watch-player-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.sv-watch-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.sv-watch-player video,
.sv-watch-player iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* Skip ±10s buttons + toast — works on any player (sv-watch-player or
   sv-player-wrap). Buttons appear on hover, fade in/out smoothly. The
   curved-arrow SVG fills the button and the "10" sits centered inside
   the ring's open interior. */
.sv-player-skip {
  position: absolute;
  top: 50%;
  width: 60px; height: 60px;
  margin-top: -30px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(11,12,13,0.48);
  color: #fafaf7;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease, transform .15s ease;
  backdrop-filter: blur(8px);
  z-index: 4;
  font-family: var(--sans);
  padding: 0;
  overflow: hidden;
}
.sv-player-skip svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  padding: 9px;
  box-sizing: border-box;
  color: currentColor;
  pointer-events: none;
}
.sv-player-skip-num {
  position: relative;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fafaf7;
  pointer-events: none;
  line-height: 1;
  /* Optically nudge to align with the open part of the curved arrow */
  margin-top: 2px;
}
.sv-player-skip-back { left: 14%; }
.sv-player-skip-fwd  { right: 14%; }
.sv-watch-player:hover .sv-player-skip,
.sv-player-wrap:hover .sv-player-skip {
  opacity: 1;
}
.sv-player-skip:hover {
  background: rgba(11,12,13,0.85);
  border-color: rgba(255,255,255,0.55);
  transform: scale(1.06);
}
.sv-player-skip:active { transform: scale(0.94); }
.sv-player-skip.is-spinning svg { animation: sv-skip-spin .4s ease; transform-origin: 50% 50%; }
@keyframes sv-skip-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
.sv-player-skip-fwd.is-spinning svg { animation: sv-skip-spin-fwd .4s ease; transform-origin: 50% 50%; }
@keyframes sv-skip-spin-fwd {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sv-player-toast {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(11,12,13,0.78);
  backdrop-filter: blur(12px);
  color: #fafaf7;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, transform .25s ease;
  z-index: 5;
  white-space: nowrap;
}
.sv-player-toast.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 720px) {
  .sv-player-skip { width: 44px; height: 44px; margin-top: -22px; }
  .sv-player-skip-back { left: 8%; }
  .sv-player-skip-fwd  { right: 8%; }
  .sv-player-toast { font-size: 1.1rem; padding: 10px 16px; }
}

.sv-watch-meta {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}
.sv-watch-back {
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--page-ink-soft);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color .15s ease;
}
.sv-watch-back:hover { color: var(--page-ink); }
.sv-watch-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 14px;
}
.sv-watch-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0 0 18px;
  color: var(--page-ink);
  background: linear-gradient(180deg, #0b0c0d 0%, #2f343a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}
.sv-watch-byline {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--page-ink-soft);
  font-size: 0.96rem;
}
.sv-watch-byline span + span::before {
  content: "·";
  color: var(--page-muted);
  margin-right: 14px;
}
.sv-watch-desc {
  color: var(--page-ink);
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 60ch;
  margin: 0 0 28px;
  font-weight: 400;
}
.sv-watch-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 8px;
}
.sv-watch-actions .sv-btn-ghost {
  background: transparent;
  border: 1px solid var(--page-line-strong);
  color: var(--page-ink);
}
.sv-watch-actions .sv-btn-ghost:hover {
  background: var(--page-ink);
  color: var(--page-bg);
  border-color: var(--page-ink);
}

.sv-watch-rail {
  margin-top: 60px;
}

@media (max-width: 720px) {
  .sv-watch-hero { padding: 18px 0; }
  .sv-watch-player-wrap { padding: 0 14px; }
  .sv-watch-meta { padding: 36px 20px 16px; }
}

/* ==================================================================
   REVIEW PAGE  (sv-rvw-*)  — consultant /console/review/<pk>/
   Two-column layout: player on the left, inspector tabs on the right.
   Lives on body.sv-light. Uses the global sv-section / sv-table /
   sv-status-pill / sv-segmented vocabulary; only adds layout glue.
================================================================= */
.sv-banner-error {
  background: rgba(224, 90, 79, 0.08);
  border: 1px solid rgba(224, 90, 79, 0.22);
  color: #b03c33;
}

.sv-rvw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 1100px) {
  .sv-rvw-grid { grid-template-columns: 1fr; }
}

.sv-rvw-player-section .sv-section-pad { padding: 0; }
.sv-rvw-player-section .sv-player-wrap {
  margin: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: #000;
}
.sv-rvw-player-section .sv-player-wrap video {
  width: 100%;
  display: block;
  background: #000;
}

.sv-rvw-inspector {
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 480px;
}

.sv-rvw-inspector-tabs {
  margin: 14px 16px 6px;
  align-self: flex-start;
}

.sv-rvw-panel {
  display: none;
  padding: 18px 20px 22px;
}
.sv-rvw-panel.is-active { display: block; }

.sv-rvw-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 4px;
}

.sv-rvw-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--page-line);
  margin-bottom: 14px;
}
.sv-rvw-panel-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.005em;
}

.sv-rvw-external {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--page-bg);
  border: 1px solid var(--page-line);
  border-radius: 8px;
  margin-bottom: 14px;
}
.sv-rvw-external-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-muted);
}
.sv-rvw-external-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--page-ink);
}
.sv-rvw-external-ref {
  font-size: 0.78rem;
  color: var(--page-ink-soft);
  margin-top: 2px;
}

.sv-rvw-qc-table {
  margin: 4px 0 0;
}
.sv-rvw-qc-table th, .sv-rvw-qc-table td {
  padding: 10px 12px;
  font-size: 0.85rem;
}
.sv-rvw-qc-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}
.sv-rvw-qc-pass .sv-rvw-qc-icon {
  background: rgba(64, 145, 95, 0.14);
  color: #2f6f48;
}
.sv-rvw-qc-warn .sv-rvw-qc-icon {
  background: rgba(184, 134, 11, 0.16);
  color: #8a6308;
}
.sv-rvw-qc-fail .sv-rvw-qc-icon {
  background: rgba(224, 90, 79, 0.15);
  color: #b03c33;
}

.sv-rvw-track {
  padding: 14px 16px;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  background: var(--page-bg);
  margin-bottom: 12px;
}
.sv-rvw-track-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.sv-rvw-track-head strong {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--page-ink);
}
.sv-rvw-track-meta {
  font-size: 0.8rem;
  color: var(--page-muted);
  letter-spacing: 0.02em;
}
.sv-rvw-track-wave {
  height: 64px;
  background: #fff;
  border: 1px dashed var(--page-line-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 4px;
}
.sv-rvw-track-placeholder {
  font-size: 0.78rem;
  color: var(--page-muted);
}
.sv-rvw-track-foot {
  font-size: 0.74rem;
  color: var(--page-muted);
}

.sv-rvw-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 0 0 16px;
}
.sv-rvw-facts dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--page-muted);
  align-self: center;
}
.sv-rvw-facts dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--page-ink);
}

.sv-rvw-synopsis {
  padding-top: 14px;
  border-top: 1px solid var(--page-line);
  color: var(--page-ink-soft);
  line-height: 1.65;
  font-size: 0.92rem;
}
.sv-rvw-synopsis p { margin: 0 0 8px; }

.sv-rvw-decision-section { margin-top: 8px; }
.sv-rvw-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Rejection modal ------------------------------------------- */
.sv-rvw-modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.sv-rvw-modal[hidden] { display: none; }
.sv-rvw-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(11,12,13,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sv-rvw-modal-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 14px;
  padding: 32px 36px 28px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(11,12,13,0.32);
}
.sv-rvw-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--page-muted);
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
}
.sv-rvw-modal-close:hover { background: var(--page-bg); color: var(--page-ink); }
.sv-rvw-modal-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 6px 0 6px;
  letter-spacing: -0.01em;
}
.sv-rvw-modal-title em { font-style: italic; }
.sv-rvw-modal-sub {
  color: var(--page-ink-soft);
  font-size: 0.92rem;
  margin: 0 0 18px;
  line-height: 1.55;
}
.sv-rvw-modal-form { margin: 0; }
.sv-rvw-modal-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 6px;
}
.sv-rvw-modal-textarea {
  width: 100%;
  border: 1px solid var(--page-line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
  background: #fff;
  color: var(--page-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sv-rvw-modal-textarea:focus {
  outline: none;
  border-color: var(--accent-deep, #8a7238);
  box-shadow: 0 0 0 3px rgba(138, 114, 56, 0.15);
}
.sv-rvw-quick {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sv-rvw-quick-label {
  font-size: 0.74rem;
  color: var(--page-muted);
  margin-right: 4px;
}
.sv-rvw-chip {
  background: var(--page-bg);
  border: 1px solid var(--page-line);
  color: var(--page-ink-soft);
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sv-rvw-chip:hover {
  background: var(--page-ink);
  color: #fafaf7;
  border-color: var(--page-ink);
}
.sv-rvw-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* ==================================================================
   DEMO FILMS list (sv-demo-*) — /console/demo-films/
   Editable inline catalogue for placeholder seed films. Sits inside
   sv-table; only adds the contenteditable / image-swap chrome.
================================================================= */
.sv-demo-table tbody td {
  vertical-align: middle;
  padding: 14px 16px;
}
.sv-demo-table .sv-table-poster {
  width: 132px;
  padding: 12px 12px 12px 16px;
}

.sv-demo-image {
  position: relative;
  width: 116px;
  height: 66px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--page-line);
  background: var(--page-bg);
}
.sv-demo-image-preview {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--page-bg-deep);
  display: flex; align-items: center; justify-content: center;
}
.sv-demo-image-empty {
  font-size: 0.78rem;
  color: var(--page-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sv-demo-image-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 4px 0;
  background: rgba(11,12,13,0.78);
  color: #fafaf7;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .15s ease;
}
.sv-demo-image:hover .sv-demo-image-overlay { opacity: 1; }

.sv-demo-meta {
  min-width: 280px;
  max-width: 460px;
}
.sv-demo-name {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--page-ink);
  line-height: 1.25;
  padding: 4px 6px;
  margin: -4px -6px 2px;
  border-radius: 5px;
  cursor: text;
  outline: none;
  transition: background .12s ease, box-shadow .12s ease;
}
.sv-demo-name:hover { background: rgba(11,12,13,0.04); }
.sv-demo-name:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(138, 114, 56, 0.4);
}
.sv-demo-desc {
  display: block;
  font-size: 0.84rem;
  color: var(--page-ink-soft);
  line-height: 1.45;
  padding: 4px 6px;
  margin: 4px -6px 0;
  border-radius: 5px;
  cursor: text;
  outline: none;
  transition: background .12s ease, box-shadow .12s ease;
  /* Keep the row a sane height — don't let long synopses stretch it. */
  max-height: 4.6em;
  overflow-y: auto;
}
.sv-demo-desc:hover { background: rgba(11,12,13,0.04); }
.sv-demo-desc:focus {
  background: #fff;
  max-height: none;
  box-shadow: 0 0 0 2px rgba(138, 114, 56, 0.4);
}

.sv-demo-inline {
  display: inline-block;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.88rem;
  color: var(--page-ink);
  cursor: text;
  outline: none;
  transition: background .12s ease, box-shadow .12s ease;
}
.sv-demo-inline:hover { background: rgba(11,12,13,0.04); }
.sv-demo-inline:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(138, 114, 56, 0.4);
}

.sv-demo-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid var(--page-line);
  color: var(--page-ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 6px 26px 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23878d95' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sv-demo-select:hover { border-color: var(--page-line-strong); }
.sv-demo-select:focus {
  outline: none;
  border-color: var(--accent-deep, #8a7238);
  box-shadow: 0 0 0 3px rgba(138, 114, 56, 0.15);
}

.sv-lf-form { margin: 0; }
.sv-lf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (max-width: 720px) { .sv-lf-grid { grid-template-columns: 1fr; } }
.sv-lf-field { display: flex; flex-direction: column; gap: 5px; }
.sv-lf-col-2 { grid-column: 1 / -1; }
.sv-lf-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-muted);
}
.sv-lf-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--page-line);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--page-ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sv-lf-input:focus {
  outline: none;
  border-color: var(--accent-deep, #8a7238);
  box-shadow: 0 0 0 3px rgba(138, 114, 56, 0.15);
}
textarea.sv-lf-input { resize: vertical; min-height: 70px; }
.sv-lf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* ==================================================================
   QC REPORT PANEL  (sv-rvw-qc-*)  — server-rendered HTMX panel for
   /studio/film/<pk>/ and /console/review/<pk>/. Light theme; mirrors
   the studio QC layout structurally without the JS polling.
================================================================= */
.sv-rvw-qc-section { margin-top: 0; }

.sv-rvw-qc-top {
  display: grid;
  grid-template-columns: 144px 1fr;
  gap: 28px;
  align-items: center;
  padding: 8px 4px 22px;
  border-bottom: 1px solid var(--page-line);
  margin-bottom: 22px;
}
@media (max-width: 720px) {
  .sv-rvw-qc-top { grid-template-columns: 1fr; gap: 18px; text-align: center; }
}

.sv-rvw-score-ring {
  width: 132px; height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 60%, transparent 61%),
    conic-gradient(var(--accent-deep, #8a7238) calc(var(--score, 0) * 1%), var(--page-line) 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--page-line);
  box-shadow: 0 2px 14px rgba(11,12,13,0.06);
  margin: 0 auto;
}
.sv-rvw-score-ring[data-score]      { --score: attr(data-score); }
.sv-rvw-score-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--page-ink);
  line-height: 1;
}
.sv-rvw-score-label {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-top: 6px;
}

.sv-rvw-qc-summary h3 {
  margin: 4px 0 6px;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  color: var(--page-ink);
}
.sv-rvw-qc-summary p {
  margin: 0;
  color: var(--page-ink-soft);
  line-height: 1.55;
  max-width: 64ch;
}

.sv-rvw-clearance {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sv-rvw-clearance-A {
  background: rgba(64, 145, 95, 0.14);
  color: #2f6f48;
}
.sv-rvw-clearance-B {
  background: rgba(184, 134, 11, 0.16);
  color: #8a6308;
}
.sv-rvw-clearance-C {
  background: rgba(224, 90, 79, 0.13);
  color: #b03c33;
}

.sv-rvw-qc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  padding: 12px 4px 18px;
  border-bottom: 1px solid var(--page-line);
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.sv-rvw-qc-nav a {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--page-ink-soft);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.sv-rvw-qc-nav a:hover { color: var(--accent-deep, #8a7238); }
.sv-rvw-qc-count {
  background: var(--page-bg);
  color: var(--page-muted);
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

.sv-rvw-qc-block {
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--page-line);
  margin-bottom: 4px;
}
.sv-rvw-qc-block:last-child { border-bottom: none; }
.sv-rvw-qc-blockhead {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--page-ink);
}
.sv-rvw-qc-blockhint {
  margin: 0 0 14px;
  color: var(--page-muted);
  font-size: 0.86rem;
}

.sv-rvw-qc-tracktabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
  border-bottom: 1px solid var(--page-line);
  padding-bottom: 8px;
}
.sv-rvw-qc-tracktab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 5px 12px;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--page-ink-soft);
  cursor: pointer;
}
.sv-rvw-qc-tracktab:hover { background: var(--page-bg); color: var(--page-ink); }
.sv-rvw-qc-tracktab.is-active {
  background: var(--page-ink);
  color: #fafaf7;
  border-color: var(--page-ink);
}
.sv-rvw-qc-trackpanel { display: none; }
.sv-rvw-qc-trackpanel.is-active { display: block; }

.sv-rvw-tc {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--page-ink);
  white-space: nowrap;
}

.sv-rvw-finding-thumb {
  max-height: 56px;
  max-width: 96px;
  border-radius: 4px;
  display: block;
}

.sv-rvw-finding-sev4 td:first-child { box-shadow: inset 3px 0 0 #b03c33; }
.sv-rvw-finding-sev3 td:first-child { box-shadow: inset 3px 0 0 #d8643a; }
.sv-rvw-finding-sev2 td:first-child { box-shadow: inset 3px 0 0 #b88a26; }
.sv-rvw-finding-sev1 td:first-child { box-shadow: inset 3px 0 0 var(--page-muted); }

.sv-rvw-sev {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
.sv-rvw-sev-4 { background: #b03c33; }
.sv-rvw-sev-3 { background: #d8643a; }
.sv-rvw-sev-2 { background: #b88a26; }
.sv-rvw-sev-1 { background: #878d95; }

/* ---- Danger zone — destructive actions on the review page ---- */
.sv-rvw-danger { border: 1px solid rgba(224, 90, 79, 0.3); }
.sv-rvw-danger .sv-section-head { border-bottom-color: rgba(224, 90, 79, 0.18); }
.sv-rvw-danger .sv-section-head h2 { color: #b03c33; }
.sv-rvw-danger-card {
  background: rgba(224, 90, 79, 0.04);
  border: 1px solid rgba(224, 90, 79, 0.18);
  border-radius: 10px;
  padding: 18px 22px;
}
.sv-rvw-danger-head strong {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--page-ink);
  margin-bottom: 6px;
}
.sv-rvw-danger-head p {
  margin: 0 0 14px;
  color: var(--page-ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 70ch;
}
.sv-rvw-danger-form {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.sv-rvw-danger-label {
  display: block;
  flex: 1 1 100%;
  font-size: 0.84rem;
  color: var(--page-ink-soft);
  margin-bottom: 4px;
}
.sv-rvw-danger-label code {
  background: rgba(11,12,13,0.05);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  color: var(--page-ink);
  margin-left: 4px;
}
.sv-rvw-danger-input {
  flex: 1 1 280px;
  padding: 9px 12px;
  border: 1px solid var(--page-line-strong);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.92rem;
  background: #fff;
  color: var(--page-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sv-rvw-danger-input:focus {
  outline: none;
  border-color: #b03c33;
  box-shadow: 0 0 0 3px rgba(224, 90, 79, 0.18);
}
.sv-rvw-danger-btn {
  background: #b03c33;
  color: #fff;
  border: 1px solid #9a3329;
  padding: 9px 18px;
}
.sv-rvw-danger-btn:hover:not(:disabled) { background: #9a3329; }
.sv-rvw-danger-btn:disabled {
  background: var(--page-bg-deep);
  color: var(--page-muted);
  border-color: var(--page-line);
  cursor: not-allowed;
}


/* ==================================================================
   SPOTLIGHT — Global Hero booth (sv-spot-booth-*) and film picker
   modal (sv-spot-pick-*). Live preview reuses .sv-spot-hero-* shape.
================================================================= */
.sv-spot-hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  z-index: 0;
}
.sv-spot-hero-still {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.sv-spot-hero-copy { z-index: 2; }
.sv-spot-hero-grad { z-index: 1; }

.sv-spot-booth {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 0;
}
.sv-spot-booth-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--page-line);
}
.sv-spot-booth-row:last-child { border-bottom: none; }
@media (max-width: 720px) {
  .sv-spot-booth-row { grid-template-columns: 1fr; gap: 8px; }
}
.sv-spot-booth-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--page-muted);
  padding-top: 9px;
}
.sv-spot-booth-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  align-items: flex-start;  /* don't stretch buttons to full width */
}
.sv-spot-booth-control > form,
.sv-spot-booth-control > .sv-spot-booth-current,
.sv-spot-booth-control > .sv-spot-cut-state {
  align-self: stretch;  /* but DO let single-line forms / current-pick rows fill */
}

.sv-spot-booth-current {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  background: var(--page-bg);
}
.sv-spot-booth-current img,
.sv-spot-booth-current-ph {
  flex: 0 0 88px;
  width: 88px; height: 50px;
  object-fit: cover;
  border-radius: 5px;
  background: linear-gradient(135deg, #ddd, #b9bdc4);
}
.sv-spot-booth-current-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sv-spot-booth-current-meta strong {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--page-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-spot-booth-current-meta span {
  font-size: 0.78rem;
  color: var(--page-muted);
  letter-spacing: 0.04em;
}

.sv-spot-source-toggle { width: max-content; }

.sv-spot-cut-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sv-spot-cut-name {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  color: var(--page-ink);
  background: var(--page-bg);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--page-line);
}
.sv-spot-cut-hint {
  font-size: 0.78rem;
  color: var(--page-muted);
}

.sv-spot-loop-form {
  display: flex; gap: 14px; align-items: center;
}
.sv-spot-window-form {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%;
}
.sv-spot-window-row {
  display: grid;
  grid-template-columns: 56px 1fr 64px;
  gap: 14px;
  align-items: center;
}
.sv-spot-window-row label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-muted);
}
.sv-spot-cut-active {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 8px 12px;
  border: 1px dashed var(--page-line-strong);
  border-radius: 6px;
  background: var(--page-bg);
  font-size: 0.84rem;
}
.sv-spot-cut-active-label {
  color: var(--page-muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sv-spot-cut-active-url {
  font-family: "SF Mono", ui-monospace, monospace;
  color: var(--page-ink);
  text-decoration: none;
  word-break: break-all;
}
.sv-spot-cut-active-url:hover { color: var(--accent-deep, #8a7238); text-decoration: underline; }

.sv-spot-preview-label {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sv-spot-preview-label::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c83838;
  box-shadow: 0 0 0 4px rgba(200, 56, 56, 0.16);
  animation: sv-spot-pulse 1.6s ease-in-out infinite;
}
@keyframes sv-spot-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.18); }
}
.sv-spot-loop-slider {
  flex: 1;
  max-width: 360px;
  -webkit-appearance: none; appearance: none;
  height: 6px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-deep, #8a7238) 0%, var(--page-line) 100%);
  outline: none;
}
.sv-spot-loop-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--page-ink);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(11,12,13,0.25);
}
.sv-spot-loop-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--page-ink);
  border: 2px solid #fff;
  cursor: pointer;
}
.sv-spot-loop-readout {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--page-ink);
  min-width: 48px;
  text-align: right;
}

/* ---- Film picker modal --------------------------------------- */
.sv-spot-pick-modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.sv-spot-pick-modal.is-open { display: flex; }
.sv-spot-pick-backdrop {
  position: absolute; inset: 0;
  background: rgba(11,12,13,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sv-spot-pick-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--page-line);
  border-radius: 14px;
  width: 100%;
  max-width: 760px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(11,12,13,0.32);
  overflow: hidden;
}
.sv-spot-pick-head {
  padding: 22px 24px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--page-line);
}
.sv-spot-pick-head h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.sv-spot-pick-search {
  padding: 14px 24px 0;
}
.sv-spot-pick-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px;
  overflow-y: auto;
  flex: 1;
}
.sv-spot-pick-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.sv-spot-pick-row:hover {
  background: rgba(11,12,13,0.03);
  border-color: var(--page-line);
}
.sv-spot-pick-row.is-current {
  background: rgba(138, 114, 56, 0.08);
  border-color: rgba(138, 114, 56, 0.25);
}
.sv-spot-pick-thumb img,
.sv-spot-pick-thumb-ph {
  display: block;
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 5px;
  background: linear-gradient(135deg, #ddd, #b9bdc4);
}
.sv-spot-pick-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sv-spot-pick-meta strong {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--page-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-spot-pick-meta span {
  font-size: 0.8rem;
  color: var(--page-muted);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ============================================================= */
/*  MOBILE — edge-to-edge for the editorial-light pages          */
/* ============================================================= */
/* Phones (iOS app + mobile Safari) demand a native-app feel: no  */
/* gutters around media, cards run flush to the screen edges.     */
/* Only typographic blocks (rail titles, hero copy) keep a thin   */
/* 12px reading inset so words don't touch the bezel. Everything  */
/* else is zero — kills the double-gutter that the 24px `main`    */
/* + 24px rail padding stacked on top of each other.              */
/* `!important` is intentional here: the underlying rules are     */
/* inside the global 860px breakpoint and we need to win the      */
/* specificity war without rewriting every rule individually.     */
@media (max-width: 860px) {
  body.sv-light main { padding-left: 0 !important; padding-right: 0 !important; }
  /* Media rails — cards touch the edges. */
  body.sv-light .sv-rail-scroller         { padding-left: 0 !important; padding-right: 0 !important; }
  body.sv-light .sv-chapter-rail          { padding-left: 0 !important; padding-right: 0 !important; }
  body.sv-light .sv-chapter-rail .sv-rail-scroller { padding-left: 0 !important; padding-right: 0 !important; }
  body.sv-light .sv-grid-section          { padding-left: 0 !important; padding-right: 0 !important; }
  /* Hero feature already edge-to-edge; the inner copy block keeps a tiny inset. */
  body.sv-light .sv-feature-copy          { padding-left: 12px; padding-right: 12px; }
  /* Text headers keep a small reading inset so titles don't slam the bezel. */
  body.sv-light .sv-rail-head             { padding-left: 12px !important; padding-right: 12px !important; }
  body.sv-light .sv-chapter-rail-head     { padding-left: 12px !important; padding-right: 12px !important; }
  body.sv-light .sv-pagehead              { padding-left: 12px; padding-right: 12px; }
}

/* ==========================================================================
   PWA / standalone (installed to home screen)
   These rules only bite when the app is launched from the home screen, so the
   normal browser experience is untouched.
   ========================================================================== */

:root {
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left, 0px);
  --safe-right:  env(safe-area-inset-right, 0px);
}

/* Safe-area handling applies ALWAYS, not only in standalone.
   A WKWebView (the iOS app) reports display-mode "browser", so gating this on
   standalone left the nav colliding with the clock and battery. env() is 0 on
   every device without insets, so applying it unconditionally is harmless. */
.site-header {
  padding-top:   var(--safe-top);
  padding-left:  var(--safe-left);
  padding-right: var(--safe-right);
}

/* Fixed / sticky bottom furniture clears the home indicator. */
.site-footer { padding-bottom: calc(24px + var(--safe-bottom)); }

@media (display-mode: standalone), (display-mode: fullscreen) {
  body {
    padding-bottom: var(--safe-bottom);
    overscroll-behavior-y: none;   /* kill the rubber-band that exposes the page edge */
  }

  /* Web-only affordances that give the game away inside a "native" app. */
  .pwa-hide,
  .install-hint { display: none !important; }
}

/* Same suppression for the native wrapper, which is not "standalone". */
body.is-standalone .install-hint,
body.is-standalone .pwa-hide { display: none !important; }

/* Native-feeling touch behaviour. Safe everywhere, essential once installed. */
body.is-standalone {
  -webkit-touch-callout: none;          /* no long-press "Copy / Share" sheet */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}
/* ...but text people legitimately need to select or type stays selectable. */
body.is-standalone input,
body.is-standalone textarea,
body.is-standalone [contenteditable="true"],
body.is-standalone .selectable {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* "Add to Home Screen" hint — shown only to iOS Safari visitors who have not
   installed yet. Hidden in standalone by the media query above. */
.install-hint {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 900;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(20, 20, 22, .94);
  color: #f4f2ee;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: .86rem;
  line-height: 1.35;
}
.install-hint.is-visible { display: flex; }
.install-hint img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.install-hint p { margin: 0; flex: 1; }
.install-hint b { font-weight: 600; }
.install-hint button {
  flex: none;
  background: none;
  border: 0;
  color: inherit;
  opacity: .55;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
}

/* --- Brand logo -----------------------------------------------------------
   The wordmark ships in two forms: white-on-transparent for the dark shell,
   full-colour (gradient bed) for the light theme, where white would vanish. */
.brand { gap: 0; letter-spacing: normal; }
.brand-logo { height: 30px; width: auto; display: block; }

/* The sidebar rails are light in BOTH themes, so they carry the black mark. */
.sv-shell-brand img { height: 26px; width: auto; display: block; }

/* Auth + gate brand lockups (login, signup, filmmaker signup, members gate). */
.sv-auth-brand {
  display: block;
  text-decoration: none;
  margin: 0 auto 36px;
  width: 132px;
}
.sv-auth-brand img { display: block; width: 100%; height: auto; }
.sv-gate-brand { display: block; width: 168px; margin: 0 auto 56px; }
.sv-gate-brand img { display: block; width: 100%; height: auto; }

/* The brand slot holds an <img> now, not text. The old silver text-gradient
   treatment (body.sv-light .brand) still painted a filled box behind it,
   which read as a second logo — neutralise it in both themes. */
.brand,
body.sv-light .brand {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit;
  letter-spacing: normal;
}
.brand .dot { display: none; }

/* ==========================================================================
   Brand reveal — the iridescent veil lifting off the wordmark.

   Two stacked copies of the logo: the colour plate (gradient bed) sits over
   the clean white wordmark. On load the colour plate slides up and fades,
   as though a sheet of foil is being lifted away, leaving the mark behind.
   Honours prefers-reduced-motion.
   ========================================================================== */

.sv-brand-reveal {
  position: relative;
  display: inline-block;
  line-height: 0;
  isolation: isolate;
}
.sv-brand-reveal img { display: block; width: 100%; height: auto; }

/* The clean mark underneath — fades up as the veil clears. */
.sv-brand-reveal .sv-brand-mark {
  opacity: 0;
  transform: translateY(4px);
  animation: sv-mark-in 900ms cubic-bezier(.22,.61,.36,1) 420ms forwards;
}

/* The foil veil on top. */
.sv-brand-reveal .sv-brand-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-origin: 50% 100%;
  animation: sv-veil-lift 1500ms cubic-bezier(.65,.02,.24,1) 180ms forwards;
  will-change: transform, opacity, clip-path;
}

@keyframes sv-mark-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sv-veil-lift {
  0% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    clip-path: inset(0 0 0 0);
    filter: brightness(1);
  }
  38% {
    opacity: 1;
    transform: translateY(-2%) scaleY(1.015);
    filter: brightness(1.25);          /* catches the light as it peels */
  }
  100% {
    opacity: 0;
    transform: translateY(-118%) scaleY(1.08);
    clip-path: inset(0 0 100% 0);      /* wipes upward as it lifts */
    filter: brightness(1.5);
  }
}

/* A soft specular sweep that crosses the mark once the veil is gone. */
.sv-brand-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg,
              transparent 38%,
              rgba(255,255,255,.34) 50%,
              transparent 62%);
  transform: translateX(-120%);
  animation: sv-sheen 1100ms ease-out 1150ms 1 forwards;
}
@keyframes sv-sheen {
  to { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .sv-brand-reveal .sv-brand-mark { opacity: 1; transform: none; animation: none; }
  .sv-brand-reveal .sv-brand-veil { display: none; }
  .sv-brand-reveal::after { animation: none; opacity: 0; }
}

/* ==========================================================================
   TV / ten-foot UI  (Samsung Tizen, Android TV)
   Activated by <body class="is-tv">, set by the TV bridge in base.html.
   A TV has no pointer: everything is driven by the D-pad, so focus must be
   loud and unmissable from three metres away.
   ========================================================================== */

body.is-tv {
  font-size: 20px;
  cursor: none;                 /* no mouse on a TV */
  overscroll-behavior: none;
}

/* Overscan safety: many TVs crop ~3% of every edge. */
body.is-tv .site-header,
body.is-tv main,
body.is-tv .site-footer { padding-left: 3.5vw; padding-right: 3.5vw; }

body.is-tv .install-hint { display: none !important; }

/* The focus ring. Deliberately heavy — this is the only cue a TV user gets. */
body.is-tv a:focus,
body.is-tv button:focus,
body.is-tv [tabindex]:focus,
body.is-tv input:focus,
body.is-tv select:focus {
  outline: 4px solid #f4f2ee;
  outline-offset: 4px;
  border-radius: 8px;
  box-shadow: 0 0 0 10px rgba(244, 242, 238, .16),
              0 14px 40px rgba(0, 0, 0, .55);
  transform: scale(1.04);
  transition: transform .16s ease, box-shadow .16s ease;
  z-index: 5;
  position: relative;
}

/* Poster tiles lift rather than outline — reads better on artwork. */
body.is-tv .film-card:focus,
body.is-tv .film-card:focus-within {
  outline: none;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px #f4f2ee, 0 24px 60px rgba(0, 0, 0, .7);
  z-index: 6;
}

/* Hover effects are meaningless without a pointer and cause flicker. */
body.is-tv *:hover { transition: none; }

body.is-tv .site-header { font-size: 22px; }
body.is-tv .nav-links { gap: 44px; }
