:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060608;
  --bg-elevated: #0d0e12;
  --surface: #13141a;
  --surface-hover: #1b1d26;
  --surface-glass: rgba(18, 19, 25, 0.72);
  --surface-glass-strong: rgba(16, 17, 22, 0.88);
  --ink: #f5f5f7;
  --ink-secondary: #a1a1a8;
  --ink-tertiary: #6e6e78;
  --accent: #e5c78d;
  --accent-bright: #f4dfb4;
  --accent-ink: #0a0a0c;
  --accent-soft: rgba(229, 199, 141, 0.14);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(229, 199, 141, 0.45);
  --shadow-card: 0 18px 46px rgba(0, 0, 0, 0.45);
  --shadow-dialog: 0 36px 96px rgba(0, 0, 0, 0.78);
  --stage-bg: #0c0d11;
  --header-h: 62px;
  --gutter: clamp(1rem, 4.4vw, 4.5rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", Georgia, serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f0f0f5;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --surface-glass-strong: rgba(255, 255, 255, 0.92);
  --ink: #1d1d1f;
  --ink-secondary: #515158;
  --ink-tertiary: #787882;
  --accent: #9a712e;
  --accent-bright: #b4863b;
  --accent-ink: #ffffff;
  --accent-soft: rgba(154, 113, 46, 0.11);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --border-accent: rgba(154, 113, 46, 0.48);
  --shadow-card: 0 14px 36px rgba(15, 18, 28, 0.08);
  --shadow-dialog: 0 32px 90px rgba(10, 12, 20, 0.25);
  --stage-bg: #111216;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.28s ease, color 0.28s ease;
}

body.player-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

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

.frame {
  width: min(calc(100% - 2 * var(--gutter)), 88rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 10px auto auto 10px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Sticky Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.topbar-inner {
  min-height: calc(var(--header-h) - 1px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.signature {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.signature-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(229, 199, 141, 0.2), rgba(229, 199, 141, 0.04));
  border: 1px solid var(--border-accent);
  color: var(--accent);
}

.signature-copy {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.signature-name {
  font-weight: 650;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.signature-sub {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 4px;
  border-radius: 999px;
  background: rgba(128, 128, 140, 0.08);
  border: 1px solid var(--border);
}

.topbar-nav a {
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.83rem;
  color: var(--ink-secondary);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.topbar-nav a:hover {
  color: var(--ink);
  background: rgba(128, 128, 140, 0.12);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 560;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pill-btn:active {
  transform: scale(0.98);
}

.pill-btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink-secondary);
}

.pill-btn-ghost:hover {
  color: var(--ink);
  background: rgba(128, 128, 140, 0.12);
}

.pill-btn-surface {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.pill-btn-surface:hover {
  border-color: var(--border-accent);
  background: var(--surface-hover);
}

.pill-btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 620;
}

.pill-btn-accent:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.theme-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, currentColor 42%, transparent 45%);
  box-shadow: inset -4px -3px 0 0 currentColor;
}

[data-theme="light"] .theme-icon {
  background: currentColor;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px currentColor;
  width: 9px;
  height: 9px;
  margin-inline: 2.5px;
}

/* Cinema Hero Stage — intentionally dark & optical in both themes */
.hero {
  position: relative;
  isolation: isolate;
  color: #f5f5f7;
  background: #060608;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-stage img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, 58% 42%);
  transition: opacity 0.55s ease, transform 0.9s ease;
}

.hero-video {
  opacity: 0;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, 0.42) 0%, rgba(6, 6, 8, 0.08) 38%, rgba(6, 6, 8, 0.9) 96%),
    linear-gradient(90deg, rgba(6, 6, 8, 0.88) 0%, rgba(6, 6, 8, 0.48) 44%, rgba(6, 6, 8, 0.1) 100%);
}

.hero-grid-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 75% 18%, rgba(229, 199, 141, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(110, 140, 210, 0.08), transparent 72%);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 23.5rem);
  align-items: end;
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(3.6rem, 8vw, 6.4rem) clamp(2rem, 4vw, 3rem);
  min-height: clamp(31rem, 66svh, 46rem);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.36rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #ebebf0;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5c78d;
  box-shadow: 0 0 10px rgba(229, 199, 141, 0.8);
}

.eyebrow-domain {
  color: #e5c78d;
  font-weight: 560;
}

.hero h1 {
  margin-top: 1.25rem;
  font: 700 clamp(2.65rem, 5.5vw, 4.9rem) / 1.06 var(--sans);
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: #ffffff;
}

.hero-lead {
  margin-top: 1.1rem;
  max-width: 48ch;
  color: rgba(245, 245, 247, 0.82);
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 620;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-primary {
  background: #f5f5f7;
  color: #09090b;
}

.cta-primary:hover {
  background: #f4dfb4;
}

.cta-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f5f5f7;
  backdrop-filter: blur(14px);
}

.cta-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(229, 199, 141, 0.6);
}

.cta-play-icon {
  width: 0;
  height: 0;
  border-block: 5.5px solid transparent;
  border-left: 9px solid currentColor;
}

.ambient-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(245, 245, 247, 0.78);
  font-size: 0.76rem;
  cursor: pointer;
}

.ambient-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.ambient-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5eead4;
}

.ambient-btn.is-paused .ambient-dot {
  background: #8e8e98;
}

/* Hero Showreel Switcher */
.hero-rail {
  padding: 0.9rem;
  border-radius: var(--radius-lg);
  background: rgba(14, 15, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
}

.hero-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-inline: 0.25rem;
  margin-bottom: 0.65rem;
}

.hero-rail-kicker {
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  color: #e5c78d;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-rail-caption {
  font-size: 0.74rem;
  color: rgba(245, 245, 247, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-reel-list {
  display: grid;
  gap: 0.45rem;
}

.reel-tab {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.38rem;
  border-radius: 11px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.reel-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.reel-tab[aria-selected="true"] {
  background: rgba(229, 199, 141, 0.13);
  border-color: rgba(229, 199, 141, 0.46);
}

.reel-thumb {
  width: 58px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  background: #14151a;
}

.reel-info {
  min-width: 0;
}

.reel-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f5f5f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-tag {
  display: block;
  font-size: 0.71rem;
  color: rgba(245, 245, 247, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-go {
  font-size: 0.72rem;
  color: #e5c78d;
  padding-right: 0.35rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.reel-tab[aria-selected="true"] .reel-go,
.reel-tab:hover .reel-go {
  opacity: 1;
}

/* Hero Metrics Strip */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.15rem 1.4rem;
  gap: 0.9rem 1.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.metric-value {
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 680;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #f4dfb4;
}

.metric-label {
  font-size: 0.78rem;
  color: rgba(245, 245, 247, 0.72);
}

/* Section Blocks */
.section-block {
  padding-block: clamp(2.6rem, 5.2vw, 4.5rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.section-kicker {
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-head h2,
.catalog-top h2 {
  margin-top: 0.35rem;
  font: 700 clamp(1.65rem, 3vw, 2.55rem) / 1.14 var(--sans);
  letter-spacing: -0.035em;
}

.section-side-note {
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

/* Featured Grid */
.featured-section {
  border-bottom: 1px solid var(--border);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

/* Market Catalog Hub */
.catalog-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(100%, 24rem);
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  color: var(--ink);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.86rem;
  color: var(--ink);
}

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

.search-clear {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(128, 128, 140, 0.2);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

/* Market Navigation Grid */
.market-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.market-nav:empty {
  display: none;
}

.market-link,
.work-card,
.audio-row,
.section-block,
#collection {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.market-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 60px;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.market-link:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.market-link[aria-current="page"] {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border-color: var(--border-accent);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
}

.market-link-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.market-code {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
  flex-shrink: 0;
}

.market-link[aria-current="page"] .market-code {
  color: var(--accent);
}

.market-label {
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.3;
  color: var(--ink);
}

.market-link[aria-current="page"] .market-label {
  font-weight: 660;
}

.market-count-chip {
  flex-shrink: 0;
  min-width: 28px;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(128, 128, 140, 0.12);
  color: var(--ink-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.market-link[aria-current="page"] .market-count-chip {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Collection Header */
.collection {
  margin-top: clamp(1.8rem, 3.6vw, 2.8rem);
}

.collection-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.15rem 1.8rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.collection-info {
  min-width: 0;
  max-width: 44rem;
}

.collection-meta-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}

.market-badge {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.market-en {
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.1em;
  color: var(--ink-tertiary);
}

.collection-heading h3 {
  font-size: clamp(1.38rem, 2.4vw, 1.95rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.market-desc {
  margin-top: 0.48rem;
  color: var(--ink-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.market-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.72rem;
}

.market-cap-pill {
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: rgba(128, 128, 140, 0.1);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--ink-secondary);
}

.collection-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.format-filter {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.filter-chip {
  padding: 0.3rem 0.78rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 540;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.filter-chip.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 620;
}

.collection-actions-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.market-count {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

/* Video Grid & Cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem clamp(0.9rem, 1.8vw, 1.45rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.work-stage-link {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--stage-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.work-card:hover .work-stage-link,
.work-stage-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-accent);
}

.work-poster,
.work-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.work-card:hover .work-stage-link:not(.is-portrait) .work-poster {
  transform: scale(1.035);
}

/* Portrait 9:16 Ambient Stage (No Ugly Black Bars) */
.work-stage-link.is-portrait .work-ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(1.28) brightness(0.46);
  transform: scale(1.18);
  pointer-events: none;
}

.work-portrait-frame {
  position: relative;
  z-index: 1;
  height: 88%;
  aspect-ratio: var(--item-ratio, 9 / 16);
  overflow: hidden;
  border-radius: 10px;
  background: #0c0d11;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-portrait-frame {
  transform: scale(1.03);
}

.work-stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, transparent 32%, transparent 62%, rgba(0, 0, 0, 0.56) 100%);
  pointer-events: none;
}

.work-preview-video {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.work-preview-video.is-playing {
  opacity: 1;
}

.card-badge-top {
  position: absolute;
  top: 0.62rem;
  left: 0.62rem;
  z-index: 3;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #f5f5f7;
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.card-badge-top.is-portrait-badge {
  color: #f4dfb4;
  border-color: rgba(229, 199, 141, 0.38);
}

.card-badge-preview {
  display: none;
  position: absolute;
  top: 0.62rem;
  right: 0.62rem;
  z-index: 3;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  background: rgba(229, 199, 141, 0.92);
  color: #0b0b0e;
  font-size: 0.67rem;
  font-weight: 700;
  pointer-events: none;
}

.work-stage-link.is-previewing .card-badge-preview {
  display: inline-block;
}

.card-duration {
  position: absolute;
  bottom: 0.62rem;
  left: 0.62rem;
  z-index: 3;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
  font-size: 0.71rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.work-quickplay {
  position: absolute;
  right: 0.62rem;
  bottom: 0.62rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 17, 22, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.work-card:hover .work-quickplay {
  transform: scale(1.06);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.icon-play {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-block: 5px solid transparent;
  border-left: 8.5px solid currentColor;
}

.preview-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-stage-link.is-previewing .preview-progress {
  opacity: 1;
}

.preview-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: #f4dfb4;
}

.work-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.75rem;
}

.work-title-link {
  min-width: 0;
  flex: 1;
}

.work-name {
  font-size: 1rem;
  font-weight: 640;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color 0.16s ease;
}

.work-title-link:hover .work-name,
.work-card:hover .work-name {
  color: var(--accent);
}

.work-note {
  margin-top: 0.24rem;
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--ink-secondary);
  overflow-wrap: anywhere;
}

.work-market-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 580;
}

.card-copy-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.card-copy-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--surface-hover);
}

/* Music Studio View */
.music-studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--border-accent);
}

.music-studio-copy h4 {
  font-size: 1rem;
  font-weight: 650;
}

.music-studio-copy p {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.audio-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audio-row {
  display: grid;
  grid-template-columns: 28px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.audio-row:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.audio-row.is-playing {
  border-color: var(--border-accent);
  background: linear-gradient(90deg, var(--accent-soft), var(--surface));
}

.audio-index {
  font-size: 0.78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
  text-align: center;
}

.audio-row.is-playing .audio-index {
  color: var(--accent);
}

.audio-play-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--stage-bg);
  cursor: pointer;
}

.audio-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-play-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(12, 13, 18, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.audio-play-trigger:hover .audio-play-badge,
.audio-row.is-playing .audio-play-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.06);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.eq-bars span {
  width: 2px;
  background: currentColor;
  border-radius: 2px;
  animation: eqPulse 0.9s ease-in-out infinite alternate;
}

.eq-bars span:nth-child(2) { animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { animation-delay: 0.4s; }

@keyframes eqPulse {
  from { height: 3px; }
  to { height: 11px; }
}

.audio-main {
  min-width: 0;
}

.audio-title-link {
  display: inline-block;
  font-size: 0.96rem;
  font-weight: 630;
  color: var(--ink);
}

.audio-title-link:hover {
  color: var(--accent);
}

.audio-desc {
  margin-top: 0.18rem;
  font-size: 0.8rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.audio-row-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-length {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
  margin-right: 0.25rem;
}

/* Capabilities Section */
.capabilities {
  border-top: 1px solid var(--border);
}

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

.cap-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.cap-index {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.cap-card h3 {
  margin-top: 0.65rem;
  font-size: 1.02rem;
  font-weight: 640;
}

.cap-card p {
  margin-top: 0.48rem;
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--ink-secondary);
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.8rem 2.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand {
  color: var(--ink);
  font-weight: 620;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.text-action {
  padding: 0.35rem 0.1rem;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 560;
  cursor: pointer;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-top:hover {
  color: var(--ink);
}

/* Screening Room Dialog */
#screening {
  width: min(72rem, calc(100% - 2rem));
  max-width: unset;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
  overscroll-behavior: contain;
}

#screening:has(.player-media.is-portrait) {
  width: min(48rem, calc(100% - 2rem));
}

#screening:has(audio) {
  width: min(44rem, calc(100% - 2rem));
}

#screening::backdrop {
  background: rgba(4, 4, 6, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.screening-panel {
  padding: clamp(0.95rem, 2.2vw, 1.5rem);
}

.screening-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.screening-crumbs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.screening-market-pill {
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 620;
  white-space: nowrap;
}

.screening-counter {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.screening-top-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.screening-nav-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.icon-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border-accent);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.player-media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #070709;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-media:not(.is-portrait):not(:has(audio)) {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.player-media:not(.is-portrait):not(:has(audio)) video {
  display: block;
  width: min(100%, calc(min(56dvh, 40rem) * var(--media-ratio-num, 1.7778)));
  height: auto;
  max-height: min(56dvh, 40rem);
  aspect-ratio: var(--media-ratio, 16 / 9);
  object-fit: contain;
}

/* Portrait Lightbox Stage with Ambient Blur */
.player-media.is-portrait {
  padding: clamp(0.75rem, 2vw, 1.25rem);
  min-height: clamp(17rem, 52dvh, 36rem);
}

.player-ambient-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(42px) saturate(1.3) brightness(0.42);
  transform: scale(1.22);
  pointer-events: none;
}

.player-media.is-portrait video {
  display: block;
  width: min(100%, calc(min(54dvh, 35rem) * var(--media-ratio-num, 0.5625)));
  height: auto;
  max-height: min(54dvh, 35rem);
  aspect-ratio: var(--media-ratio, 9 / 16);
  border-radius: 12px;
  background: #0c0d11;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.18);
  object-fit: contain;
}

.player-media:has(audio) {
  gap: 1.1rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: radial-gradient(ellipse at 70% 15%, rgba(229, 199, 141, 0.16), transparent 60%), #101117;
}

.player-cover {
  width: clamp(7rem, 24vw, 11.5rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.player-media audio {
  width: min(100%, 38rem);
}

.player-error {
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 0.88rem;
}

.text-button {
  border: 0;
  padding: 0.25rem 0.5rem;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.screening-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.05rem;
}

.screening-copy {
  min-width: 0;
}

.screening-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.screening-badges:empty {
  display: none;
}

.detail-badge {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(128, 128, 140, 0.14);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--ink-secondary);
}

.screening-details h2 {
  font-size: clamp(1.22rem, 2.5vw, 1.75rem);
  font-weight: 680;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.player-summary {
  margin-top: 0.28rem;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.player-role {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 560;
}

.player-description {
  margin-top: 0.5rem;
  max-width: 60ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
}

.screening-share-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.48rem;
  flex-shrink: 0;
}

.copy-status {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 560;
}

.share-url {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.82rem;
}

/* Floating Audio Mini Dock */
.audio-dock {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(26rem, calc(100vw - 2rem));
  padding: 0.62rem 0.72rem;
  border-radius: 16px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-accent);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--shadow-dialog);
}

.dock-cover {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.dock-meta {
  flex: 1;
  min-width: 0;
}

.dock-title {
  font-size: 0.84rem;
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-sub {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.dock-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.dock-seek {
  width: 100%;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dock-actions .icon-btn {
  width: 32px;
  height: 32px;
}

.dock-play-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Global Toast HUD */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.4rem, env(safe-area-inset-bottom));
  z-index: 70;
  transform: translateX(-50%);
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  max-width: calc(100vw - 2rem);
  text-align: center;
  transition: bottom 0.2s ease;
}

body:has(.audio-dock:not([hidden])) .toast {
  bottom: calc(max(1.4rem, env(safe-area-inset-bottom)) + 4.8rem);
}

.catalog-message {
  padding: 2rem 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

/* Tablet & Small Desktop */
@media (max-width: 1060px) {
  .topbar-nav {
    display: none;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 3rem 2rem;
  }

  .hero-rail {
    max-width: 100%;
  }

  .hero-reel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .market-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-controls {
    align-items: flex-start;
  }
}

/* Mobile Experience (390px and below) */
@media (max-width: 580px) {
  :root {
    --header-h: 54px;
    --gutter: 1rem;
  }

  .signature-sub {
    display: none;
  }

  .theme-label {
    display: none;
  }

  .pill-btn {
    padding: 0.38rem 0.72rem;
    font-size: 0.78rem;
  }

  .hero-shell {
    padding-block: 2.2rem 1.4rem;
    gap: 1.35rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9.8vw, 2.9rem);
  }

  .hero-lead {
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .cta-btn {
    width: 100%;
    min-height: 44px;
  }

  .hero-reel-list {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
  }

  .featured-grid,
  .work-grid,
  .cap-grid {
    grid-template-columns: 1fr;
  }

  .market-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .market-link {
    min-height: 48px;
    padding: 0.55rem 0.68rem;
  }

  .market-label {
    font-size: 0.8rem;
  }

  .audio-row {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.62rem 0.7rem;
  }

  .audio-index {
    display: none;
  }

  .audio-play-trigger {
    width: 46px;
    height: 46px;
  }

  #screening,
  #screening:has(.player-media.is-portrait),
  #screening:has(audio) {
    width: 100%;
    max-height: 100dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    border-inline: 0;
    border-bottom: 0;
  }

  .screening-panel {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .player-media.is-portrait {
    min-height: 16rem;
    padding: 0.75rem;
  }

  .player-media.is-portrait video {
    width: min(100%, calc(min(52dvh, 30rem) * var(--media-ratio-num, 0.5625)));
    max-height: min(52dvh, 30rem);
  }

  .screening-details {
    flex-direction: column;
  }

  .screening-share-box {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .screening-share-box .pill-btn {
    flex: 1;
  }

  .audio-dock {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
