:root {
  color-scheme: dark;
  --void: #070a10;
  --surface-1: #0d121c;
  --surface-2: #131a28;
  --surface-glass: rgba(16, 22, 34, 0.72);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-bright: rgba(148, 163, 184, 0.34);
  --ink-1: #f4f7fb;
  --ink-2: #b3c0d1;
  --ink-3: #7e8ea5;
  --lumen: #38bdf8;
  --lumen-deep: #2563eb;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --aura-primary: 56, 189, 248;
  --aura-secondary: 245, 158, 11;
  --font-sans: 'PingFang SC', 'Hiragino Sans GB', 'SF Pro Display', 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--void);
  color: var(--ink-1);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--lumen);
  outline-offset: 2px;
}

kbd {
  display: inline-block;
  padding: 0.05rem 0.42rem;
  border-radius: 4px;
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-1);
}

.skip {
  position: absolute;
  left: -9999px;
  padding: 0.7rem 1rem;
  background: var(--lumen-deep);
  color: #fff;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  border-radius: var(--r-sm);
}

/* Live 3D Perspective Viewport Canvas + Dynamic Ambilight Aura */
.viewport-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.ambient-aura {
  position: fixed;
  inset: -15% -10% auto -10%;
  height: 85vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 56% 52% at 62% 24%, rgba(var(--aura-primary), 0.24), transparent 70%),
    radial-gradient(ellipse 40% 42% at 22% 18%, rgba(var(--aura-secondary), 0.14), transparent 72%);
  filter: blur(28px);
  transition: background 700ms ease;
}

main,
.topbar,
.footer {
  position: relative;
  z-index: 2;
}

.shell {
  width: min(1320px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 10, 16, 0.76);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.brand strong {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand .sep {
  color: var(--ink-3);
}

.viewport-modes {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.24rem;
  border-radius: 999px;
  background: rgba(15, 22, 34, 0.85);
  border: 1px solid var(--border-subtle);
}

.modes-label {
  padding: 0 0.55rem 0 0.7rem;
  font-size: 0.74rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mode-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.mode-btn[aria-pressed='true'] {
  background: rgba(var(--aura-primary), 0.22);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(var(--aura-primary), 0.65);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.topbar nav a {
  text-decoration: none;
  font-size: 0.86rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 160ms ease;
}

.topbar nav a:hover {
  color: #ffffff;
}

/* Hero Intro */
.stage {
  padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber), 0 0 0 4px rgba(245, 158, 11, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

.hero-headline h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #ffffff;
}

.hero-headline h1 span {
  background: linear-gradient(110deg, #ffffff 10%, rgb(var(--aura-primary)) 60%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-summary p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 56ch;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  font-size: 0.74rem;
  color: var(--ink-3);
}

/* Spotlight Deck (Cinema Screen + Director Telemetry Panel) */
.spotlight-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(320px, 0.72fr);
  background: linear-gradient(155deg, rgba(19, 27, 41, 0.88), rgba(10, 14, 23, 0.94));
  border: 1px solid rgba(var(--aura-primary), 0.3);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(var(--aura-primary), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 450ms ease, box-shadow 450ms ease;
}

.cinema-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 430px;
  background: #04060a;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

.cinema-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 380ms ease;
}

.cinema-viewport:hover img {
  transform: scale(1.035);
}

/* Real Playable Unreal Viewport Shader Modes */
.shader-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(460px circle at var(--mx) var(--my), rgba(var(--aura-primary), 0.14), transparent 55%),
    linear-gradient(180deg, rgba(7, 10, 16, 0.5) 0%, transparent 26%, transparent 66%, rgba(7, 10, 16, 0.88) 100%);
  transition: opacity 260ms ease, background 260ms ease;
}

body[data-viewmode='wireframe'] .cinema-viewport img,
body[data-viewmode='wireframe'] .card-thumb img,
body[data-viewmode='wireframe'] .stop-media img {
  filter: grayscale(1) contrast(1.45) brightness(0.68) sepia(1) hue-rotate(168deg) saturate(3.2);
}

body[data-viewmode='wireframe'] .shader-fx {
  background:
    repeating-linear-gradient(0deg, rgba(56, 189, 248, 0.16) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, rgba(5, 12, 22, 0.5), rgba(5, 12, 22, 0.72));
}

body[data-viewmode='xray'] .cinema-viewport img,
body[data-viewmode='xray'] .card-thumb img,
body[data-viewmode='xray'] .stop-media img {
  filter: contrast(1.38) saturate(1.85) hue-rotate(-18deg) brightness(0.92);
}

body[data-viewmode='xray'] .shader-fx {
  background:
    repeating-linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0 2px, transparent 2px 6px),
    radial-gradient(520px circle at var(--mx) var(--my), rgba(245, 158, 11, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(16, 10, 6, 0.35), rgba(7, 10, 16, 0.78));
}

body[data-viewmode='clay'] .cinema-viewport img,
body[data-viewmode='clay'] .card-thumb img,
body[data-viewmode='clay'] .stop-media img {
  filter: grayscale(1) contrast(1.12) brightness(1.06);
}

body[data-viewmode='clay'] .shader-fx {
  background:
    radial-gradient(480px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(15, 18, 24, 0.38), transparent 30%, rgba(10, 12, 18, 0.8));
}

.viewport-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-corners {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-corners::before,
.hud-corners::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-style: solid;
  border-color: rgba(var(--aura-primary), 0.9);
}

.hud-corners::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.hud-corners::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.hud-top,
.hud-bottom-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.hud-chip {
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  background: rgba(7, 10, 16, 0.74);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--aura-primary), 0.45);
  color: #e0f2fe;
}

.hud-telemetry {
  padding: 0.28rem 0.6rem;
  border-radius: 5px;
  background: rgba(7, 10, 16, 0.68);
  backdrop-filter: blur(10px);
  color: #cbd5e1;
}

.hud-cam,
.hud-pass {
  color: rgba(226, 232, 240, 0.8);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.hud-pass {
  color: var(--amber-soft);
}

.cinema-play-trigger {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.play-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 3px;
  background: rgba(7, 10, 16, 0.46);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 36px rgba(var(--aura-primary), 0.35);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms ease, border-color 220ms ease;
}

.cinema-play-trigger:hover .play-ring {
  transform: scale(1.09);
  background: rgba(var(--aura-primary), 0.86);
  border-color: #ffffff;
  color: #060a10;
}

.play-caption {
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Director Telemetry Sidebar */
.director-panel {
  padding: 1.45rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  border-left: 1px solid var(--border-subtle);
  background: radial-gradient(ellipse at top right, rgba(var(--aura-primary), 0.12), transparent 62%);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reel-counter {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgb(var(--aura-primary));
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.reel-arrows {
  display: flex;
  gap: 0.4rem;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-1);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-bright);
}

.panel-title-group h2 {
  margin: 0;
  font-size: clamp(1.22rem, 1.8vw, 1.48rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.panel-origin {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.panel-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.panel-splits {
  display: grid;
  gap: 0.65rem;
}

.split-card {
  padding: 0.72rem 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(7, 10, 16, 0.5);
}

.split-card.is-ai {
  border-left: 2px solid var(--amber);
}

.split-card.is-ue {
  border-left: 2px solid var(--lumen);
}

.split-head {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.split-card.is-ai .split-head {
  color: var(--amber-soft);
}

.split-card.is-ue .split-head {
  color: #7dd3fc;
}

.dot-ai,
.dot-ue {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-ai {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.dot-ue {
  background: var(--lumen);
  box-shadow: 0 0 8px var(--lumen);
}

.split-card p {
  margin: 0.32rem 0 0;
  font-size: 0.8rem;
  line-height: 1.54;
  color: var(--ink-2);
}

.panel-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.6rem;
  padding-top: 0.35rem;
}

.btn-glow,
.btn-glass {
  appearance: none;
  padding: 0.66rem 0.95rem;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn-glow {
  border: 1px solid rgba(var(--aura-primary), 0.7);
  background: linear-gradient(135deg, rgb(var(--aura-primary)), var(--lumen-deep));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(var(--aura-primary), 0.28);
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(var(--aura-primary), 0.42);
}

.btn-glass {
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-1);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Filmstrip Thumbnail Switcher */
.filmstrip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.strip-item {
  appearance: none;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  padding: 0.48rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 18, 28, 0.72);
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.strip-item:hover {
  background: rgba(22, 31, 48, 0.9);
  border-color: var(--border-bright);
  color: #ffffff;
}

.strip-item[aria-pressed='true'] {
  background: rgba(var(--aura-primary), 0.14);
  border-color: rgba(var(--aura-primary), 0.85);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(var(--aura-primary), 0.18);
}

.strip-item img {
  width: 62px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
}

.strip-text {
  min-width: 0;
}

.strip-text strong {
  display: block;
  font-size: 0.79rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-text small {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Curated Viewing Routes */
.routes-section {
  padding: clamp(2.8rem, 5vw, 4.4rem) 0;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(11, 16, 26, 0.65), rgba(7, 10, 16, 0.92));
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--lumen);
}

.section-head,
.archive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-head h2,
.archive-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.route-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.route-tab {
  appearance: none;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(16, 22, 34, 0.72);
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}

.route-tab:hover {
  border-color: var(--border-bright);
  color: #ffffff;
}

.route-tab[aria-selected='true'] {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(37, 99, 235, 0.34));
  border-color: rgba(56, 189, 248, 0.78);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.route-intro {
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-md);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.15rem;
}

.route-intro h3 {
  margin: 0;
  font-size: 1.12rem;
  color: #ffffff;
}

.route-intro p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 72ch;
}

.route-stops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.stop-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  color: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.stop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.14);
}

.stop-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #04060a;
  overflow: hidden;
}

.stop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.stop-card:hover .stop-media img {
  transform: scale(1.06);
}

.stop-step {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.16rem 0.5rem;
  border-radius: 5px;
  background: rgba(7, 10, 16, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--lumen);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.stop-body {
  padding: 0.95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  flex: 1;
}

.stop-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-soft);
}

.stop-body h4 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.38;
  color: #ffffff;
}

.stop-body p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.56;
  color: var(--ink-2);
}

/* Archive Cinema Wall */
.archive-section {
  padding: clamp(2.8rem, 5vw, 4.5rem) 0 clamp(4rem, 6vw, 5.8rem);
  border-top: 1px solid var(--border-subtle);
}

.result-status {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(360px, 100%);
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  background: rgba(16, 22, 34, 0.86);
  border: 1px solid var(--border-subtle);
  color: var(--ink-3);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within {
  border-color: var(--lumen);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
}

.search-box input::placeholder {
  color: var(--ink-3);
}

.control-deck {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  padding: 0.9rem 1.05rem;
  border-radius: var(--r-md);
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
}

.track-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.track-pill {
  appearance: none;
  padding: 0.44rem 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms ease;
}

.track-pill:hover {
  border-color: var(--border-bright);
  color: #ffffff;
}

.track-pill[aria-pressed='true'] {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(37, 99, 235, 0.42));
  border-color: rgba(56, 189, 248, 0.78);
  color: #ffffff;
}

.pill-count {
  margin-left: 0.34rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.78;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.select-wrap select {
  padding: 0.38rem 0.68rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  color: var(--ink-1);
  font-size: 0.82rem;
}

.archive-utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0 1.4rem;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.swatch-ai {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.swatch-ue {
  background: var(--lumen);
  box-shadow: 0 0 8px var(--lumen);
}

.utility-actions {
  display: flex;
  gap: 0.85rem;
}

.util-btn {
  appearance: none;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms ease;
}

.util-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
}

.util-btn.is-muted {
  border-color: var(--border-subtle);
  background: transparent;
  color: var(--ink-2);
}

/* Dark-Glass Cinema Cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(20, 28, 42, 0.82), rgba(11, 15, 24, 0.94));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.52);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 26px rgba(56, 189, 248, 0.12);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #04060a;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 540ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 320ms ease;
}

.work-card:hover .card-thumb img {
  transform: scale(1.06);
}

.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.34), transparent 38%, rgba(7, 10, 16, 0.82));
  pointer-events: none;
}

.card-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.badge-ue,
.badge-dur {
  padding: 0.2rem 0.52rem;
  border-radius: 5px;
  background: rgba(7, 10, 16, 0.76);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.badge-ue {
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #bae6fd;
}

.badge-dur {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.card-play-badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 10, 16, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
  display: grid;
  place-items: center;
  padding-left: 2px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.work-card:hover .card-play-badge {
  transform: scale(1.08);
  background: var(--lumen);
  border-color: var(--lumen);
  color: #060a10;
}

.card-body {
  padding: 1rem 1.08rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.card-meta time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-body h3 {
  margin: 0.36rem 0 0;
  font-size: 1.02rem;
  line-height: 1.38;
  color: #ffffff;
}

.card-desc {
  margin: 0.44rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.56;
}

.card-split {
  margin-top: 0.82rem;
  padding-top: 0.72rem;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 0.42rem;
  font-size: 0.77rem;
  line-height: 1.48;
  color: var(--ink-2);
}

.card-split-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: baseline;
}

.tag-ai,
.tag-ue {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
  text-align: center;
}

.tag-ai {
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.34);
}

.tag-ue {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.card-split-row span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.card-play,
.card-detail {
  appearance: none;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms ease;
}

.card-play {
  padding: 0.44rem 0.85rem;
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.42);
}

.card-play:hover {
  background: var(--lumen);
  border-color: var(--lumen);
  color: #060a10;
}

.card-detail {
  padding: 0.44rem 0.78rem;
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--border-subtle);
}

.card-detail:hover {
  border-color: var(--border-bright);
  color: #ffffff;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 10, 16, 0.92);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
}

.footer h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #ffffff;
}

.footer p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 62ch;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--lumen);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Dark Theater Cinema Modal */
dialog {
  width: min(980px, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.8rem);
  padding: 0;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: var(--r-lg);
  background: #0b1019;
  color: var(--ink-1);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8), 0 0 60px rgba(56, 189, 248, 0.16);
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(3, 6, 12, 0.84);
  backdrop-filter: blur(8px);
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  background: rgba(7, 10, 16, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

.dialog-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.dialog-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dialog-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dialog-body {
  overflow-y: auto;
  max-height: calc(100dvh - 5.2rem);
}

.dialog-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #030508;
}

.dialog-player img,
.dialog-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.player-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(7, 10, 16, 0.42);
  border: 0;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.player-trigger:hover {
  background: rgba(7, 10, 16, 0.22);
}

.play-disc {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lumen), var(--lumen-deep));
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  padding-left: 4px;
  color: #ffffff;
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.45);
}

.player-hint {
  font-size: 0.82rem;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dialog-content {
  padding: 1.45rem 1.6rem 1.8rem;
}

.dialog-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.28;
  color: #ffffff;
}

.dialog-original {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-3);
}

.dialog-desc {
  margin: 0.95rem 0 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 70ch;
}

.dialog-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.dialog-split-box {
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

.dialog-split-box.is-ai {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.32);
}

.dialog-split-box.is-ue {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.32);
}

.dialog-split-box h3 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.dialog-split-box.is-ai h3 {
  color: var(--amber-soft);
}

.dialog-split-box.is-ue h3 {
  color: #7dd3fc;
}

.dialog-split-box p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.62;
  color: var(--ink-1);
}

.dialog-note {
  margin: 1.15rem 0 0;
  padding: 0.95rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--lumen);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.dialog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.tool-chip {
  padding: 0.24rem 0.62rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-1);
}

.dialog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.54rem 1rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: all 160ms ease;
}

.ext-link:first-child {
  background: linear-gradient(135deg, var(--lumen), var(--lumen-deep));
  border-color: var(--lumen);
}

.ext-link:hover {
  border-color: var(--lumen);
  transform: translateY(-1px);
}

.dialog-related {
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
}

.dialog-related h3 {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: var(--ink-3);
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.related-btn {
  appearance: none;
  padding: 0.48rem 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-1);
  font-size: 0.82rem;
  cursor: pointer;
}

.related-btn:hover {
  border-color: var(--lumen);
  color: var(--lumen);
}

/* Responsive */
@media (max-width: 1120px) {
  .hero-intro,
  .spotlight-deck {
    grid-template-columns: 1fr;
  }
  .cinema-viewport {
    min-height: 320px;
  }
  .director-panel {
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }
  .filmstrip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .route-stops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modes-label {
    display: none;
  }
}

@media (max-width: 980px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 0.55rem 0;
  }
  .viewport-modes {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: space-between;
  }
}

@media (max-width: 740px) {
  .shell {
    width: calc(100% - 1.5rem);
  }
  .topbar nav {
    gap: 0.85rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filmstrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route-stops,
  .work-grid,
  .dialog-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse-dot {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
