:root {
  color-scheme: dark;
  /* ZHENSU cold palette — deep navy-black canvas, ice-blue accent.
     Semantic variable names: --accent* / --grad-accent* / --glow-accent. */
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --ink: #e6f0f7;
  --ink-soft: #c2d2dd;
  --muted: #7e8f9b;
  --faint: #10151a;
  --surface: rgba(21, 27, 34, 0.6);
  --surface-2: rgba(27, 35, 44, 0.68);
  --surface-solid: #0d1116;
  --surface-input: #11161b;
  --line: rgba(198, 224, 240, 0.1);
  --line-strong: rgba(198, 224, 240, 0.18);
  --accent: #7dd3fc;
  --accent-soft: #38bdf8;
  --accent-deep: #0ea5e9;
  --grad-accent: linear-gradient(120deg, #bae6fd, #7dd3fc 54%, #38bdf8);
  --grad-accent-soft: linear-gradient(120deg, rgba(125, 211, 252, 0.16), rgba(56, 189, 248, 0.16) 55%, rgba(14, 165, 233, 0.16));
  --green: #7ed3a0;
  --red: #ef6f63;
  --radius: 24px;
  --radius-sm: 16px;
  --glow-accent: 0 0 0 1px rgba(125, 211, 252, 0.35), 0 18px 60px rgba(56, 189, 248, 0.2);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC";
  font-family: var(--font-cjk), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ========================================================================== 
   Client showcase V3
   A restrained cinematic portfolio for client-facing presentation. Everything
   is scoped to .client-site so the administration workspace remains isolated.
   ========================================================================== */

.client-site {
  --client-bg: #05070d;
  --client-panel: #0b111d;
  --client-panel-soft: #0e1626;
  --client-ink: #eef4fa;
  --client-soft: #c3ccd8;
  --client-muted: #7a828d;
  --client-accent: #7dd3fc;
  --client-accent-bright: #bae6fd;
  --client-line: rgba(255, 255, 255, 0.1);
  --client-line-strong: rgba(255, 255, 255, 0.18);
  color: var(--client-ink);
  background:
    radial-gradient(circle at 84% 2%, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at 8% 12%, rgba(14, 165, 233, 0.07), transparent 32%),
    linear-gradient(180deg, #05070d 0%, #070c16 45%, #04060b 100%);
  background-attachment: scroll;
}

.client-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  height: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  filter: none;
  animation: none;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

.client-site::after {
  opacity: 0.026;
  mix-blend-mode: soft-light;
}

.client-site .site-shell {
  width: min(1320px, calc(100% - 72px));
}

.client-site .scroll-progress {
  height: 2px;
  background: linear-gradient(90deg, #30689c, var(--client-accent-bright));
  box-shadow: 0 0 18px rgba(115, 189, 232,, 0.48);
}

/* Header */
.client-site .client-topbar {
  position: fixed;
  width: 100%;
  color: var(--client-ink);
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.78), transparent);
  border-bottom-color: transparent;
}

.client-site .client-topbar.is-scrolled {
  background: rgba(8, 9, 11, 0.88);
  border-bottom-color: var(--client-line);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.24);
}

.client-site .topbar-inner {
  min-height: 78px;
}

.client-brand {
  gap: 13px;
}

.client-site .client-brand .brand-mark {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 8px 18px rgba(115, 189, 232,, 0.2));
}

.brand-lockup {
  display: grid;
  line-height: 1.05;
}

.brand-lockup strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand-lockup small {
  margin-top: 5px;
  color: var(--client-muted);
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.client-nav {
  gap: 28px;
}

.client-site .client-nav .nav-link {
  color: rgba(247, 244, 237, 0.66);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.08em;
}

.client-site .client-nav .nav-link:hover {
  color: #fff;
}

.client-site .client-nav .nav-link::after {
  background: var(--client-accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--client-line-strong);
  color: var(--client-ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-cta i {
  color: var(--client-accent);
  font-style: normal;
  font-size: 15px;
}

.nav-cta:hover {
  color: #0b0c0e;
  background: var(--client-accent-bright);
  border-color: var(--client-accent-bright);
  transform: translateY(-1px);
}

.nav-cta:hover i {
  color: #0b0c0e;
}

/* Hero */
.client-hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  border-bottom: 1px solid var(--client-line);
  background:
    radial-gradient(ellipse at 82% 26%, rgba(54, 132, 196,, 0.14), transparent 38%),
    radial-gradient(ellipse at 14% 28%, rgba(77, 83, 91, 0.08), transparent 34%);
}

.client-hero-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.client-gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.07) 50%, transparent calc(50% + 1px)),
    linear-gradient(180deg, transparent 78%, rgba(255, 255, 255, 0.06) 78%, transparent calc(78% + 1px));
}

.client-orbit {
  position: absolute;
  border: 1px solid rgba(115, 189, 232,, 0.12);
  border-radius: 50%;
}

.orbit-one {
  top: -45%;
  right: -13%;
  width: 860px;
  height: 860px;
}

.orbit-two {
  right: 11%;
  bottom: -48%;
  width: 620px;
  height: 620px;
  border-color: rgba(255, 255, 255, 0.06);
}

.client-projector {
  position: absolute;
  top: -40%;
  left: 52%;
  width: 24%;
  height: 180%;
  transform: rotate(19deg);
  opacity: 0.42;
  background: linear-gradient(90deg, transparent, rgba(162, 221, 255,, 0.08), transparent);
  filter: blur(26px);
  animation: clientProjector 12s ease-in-out infinite alternate;
}

.client-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 6vw, 100px);
  min-height: 820px;
  padding: 116px 0 84px;
}

.client-hero-copy {
  position: relative;
  z-index: 3;
  padding-top: 14px;
  animation: clientRise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.client-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 26px;
  color: var(--client-accent);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.client-eyebrow span {
  width: 23px;
  height: 1px;
  background: currentColor;
}

.client-hero h1 {
  max-width: 750px;
  margin: 0;
  color: #f8f6f1;
  font-size: clamp(50px, 5vw, 78px);
  font-weight: 430;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.client-hero h1 strong {
  display: block;
  margin-top: 9px;
  color: var(--client-accent-bright);
  font-weight: 720;
  text-shadow: 0 18px 70px rgba(115, 189, 232,, 0.11);
}

.client-hero-intro {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--client-soft);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
  letter-spacing: 0.025em;
}

.client-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 38px;
}

.client-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 23px;
  border: 1px solid var(--client-line-strong);
  color: var(--client-ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.05em;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.client-button i {
  font-style: normal;
}

.client-button.primary {
  min-width: 176px;
  color: #11100d;
  background: linear-gradient(120deg, var(--client-accent-bright), #55a7dc);
  border-color: transparent;
  box-shadow: 0 18px 50px rgba(71, 151, 206,, 0.16);
}

.client-button.primary i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #d1f1ff;
  background: #1a1711;
  font-size: 9px;
}

.client-button.ghost {
  color: var(--client-soft);
  background: rgba(255, 255, 255, 0.025);
}

.client-button:hover {
  transform: translateY(-3px);
}

.client-button.ghost:hover {
  color: #fff;
  border-color: rgba(115, 189, 232,, 0.44);
  background: rgba(115, 189, 232,, 0.07);
}

.client-metrics {
  display: flex;
  align-items: stretch;
  margin-top: 48px;
}

.client-metrics > div {
  display: grid;
  align-content: center;
  min-width: 120px;
  padding: 0 28px;
  border-left: 1px solid var(--client-line);
}

.client-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.client-metrics strong {
  color: var(--client-ink);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 520;
  line-height: 1;
}

.client-metrics span {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.065em;
}

/* Hero cover composition */
.hero-reel {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 620px;
  animation: clientRise 1050ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-reel::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 8%;
  width: 72%;
  height: 74%;
  border-radius: 50%;
  background: rgba(72, 153, 212,, 0.16);
  filter: blur(78px);
  pointer-events: none;
}

.hero-reel-skeleton {
  position: absolute;
  inset: 34px 0 20px;
}

.hero-reel-skeleton span {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid var(--client-line);
  background: #141619;
}

.hero-reel-skeleton span::after,
.work-skeleton span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: clientSkeleton 1.6s ease-in-out infinite;
}

.hero-reel-skeleton span:nth-child(1) { left: 11%; top: 0; width: 59%; height: 91%; }
.hero-reel-skeleton span:nth-child(2) { right: 0; top: 12%; width: 34%; height: 37%; }
.hero-reel-skeleton span:nth-child(3) { right: 3%; bottom: 7%; width: 31%; height: 36%; }

.reel-heading,
.reel-caption {
  position: absolute;
  z-index: 8;
  display: flex;
  align-items: center;
  color: var(--client-muted);
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.reel-heading {
  top: 0;
  left: 7%;
  gap: 12px;
}

.reel-heading i {
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.reel-heading b {
  color: var(--client-accent);
  font-size: 10px;
  font-weight: 700;
}

.reel-caption {
  right: 4%;
  bottom: 0;
  gap: 16px;
}

.reel-caption strong {
  color: var(--client-soft);
  font-family: var(--font-cjk);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.reel-stack {
  position: absolute;
  inset: 34px 0 28px;
  perspective: 1200px;
}

.reel-card {
  position: absolute;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #fff;
  text-align: left;
  background: #151618;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1), filter 260ms ease;
}

.reel-card img,
.reel-card-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(145deg, #172024, #101113);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.reel-card-1 {
  z-index: 5;
  top: 0;
  left: 13%;
  width: 57%;
  height: 94%;
  animation: reelFloat 7s ease-in-out infinite alternate;
}

.reel-card-2 {
  z-index: 6;
  top: 10%;
  right: 0;
  width: 35%;
  height: 39%;
  transform: translateZ(16px);
}

.reel-card-3 {
  z-index: 6;
  right: 3%;
  bottom: 6%;
  width: 32%;
  height: 38%;
  transform: translateZ(10px);
}

.reel-card-4 {
  z-index: 2;
  left: 0;
  bottom: 13%;
  width: 26%;
  height: 51%;
  filter: brightness(0.52) saturate(0.72);
  transform: rotate(-3deg) translateZ(-20px);
}

.reel-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.86) 100%);
}

.reel-sequence {
  position: absolute;
  top: 15px;
  left: 16px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.8);
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.reel-card-copy {
  position: absolute;
  right: 17px;
  bottom: 18px;
  left: 17px;
  z-index: 2;
  display: grid;
  gap: 4px;
}

.reel-card-copy small {
  color: var(--client-accent-bright);
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.08em;
}

.reel-card-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 620;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-card-2 .reel-card-copy strong,
.reel-card-3 .reel-card-copy strong,
.reel-card-4 .reel-card-copy strong {
  font-size: 14px;
}

.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding-left: 3px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  color: #111;
  background: rgba(158, 221, 255,, 0.88);
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.84);
  transition: opacity 240ms ease, transform 300ms ease;
  font-size: 11px;
}

.reel-card-2 .reel-play,
.reel-card-3 .reel-play,
.reel-card-4 .reel-play {
  width: 38px;
  height: 38px;
  font-size: 9px;
}

.reel-card:hover {
  z-index: 10;
  border-color: rgba(144, 217, 255,, 0.62);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(115, 189, 232,, 0.12);
  transform: translateY(-8px) translateZ(28px);
  filter: none;
}

.reel-card:hover img {
  transform: scale(1.045);
}

.reel-card:hover .reel-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hero-reel-empty {
  display: grid;
  place-items: center;
  height: 100%;
  border: 1px solid var(--client-line);
  color: var(--client-muted);
}

.hero-footnote {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.28);
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.hero-footnote i {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

/* Proof strip */
.client-proof {
  overflow: hidden;
  border-bottom: 1px solid var(--client-line);
  background: #0c0d0f;
}

.proof-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-track > div {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  min-height: 104px;
  padding: 0 28px;
  border-right: 1px solid var(--client-line);
}

.proof-track > div:first-child {
  border-left: 1px solid var(--client-line);
}

.proof-track span {
  grid-row: 1 / 3;
  color: rgba(115, 189, 232,, 0.52);
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.proof-track strong {
  align-self: end;
  color: var(--client-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.proof-track small {
  align-self: start;
  color: var(--client-muted);
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.16em;
}

/* Sections */
.client-section {
  position: relative;
  padding: 132px 0;
  border-bottom: 1px solid var(--client-line);
}

.client-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}

.client-section-head.compact {
  margin-bottom: 50px;
}

.client-section-index {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 18px;
  color: var(--client-muted);
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.client-section-index span {
  color: var(--client-accent);
}

.client-section-index i {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.client-section-index b {
  font-weight: 600;
}

.client-section-head h2,
.capability-intro h2 {
  margin: 0;
  color: var(--client-ink);
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 520;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.client-section-copy {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--client-muted);
  font-size: 14px;
  line-height: 1.8;
}

.work-counter {
  flex: 0 0 auto;
  display: grid;
  min-width: 104px;
  padding-left: 22px;
  border-left: 1px solid var(--client-line);
}

.work-counter strong {
  color: var(--client-ink);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.work-counter span {
  margin-top: 4px;
  color: var(--client-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* Category tabs */
.client-site .client-tabs {
  gap: 0;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid var(--client-line);
  border-bottom: 1px solid var(--client-line);
}

.client-site .client-tabs .category-indicator {
  top: auto;
  bottom: -1px;
  height: 2px !important;
  border-radius: 0;
  background: var(--client-accent-bright);
  box-shadow: 0 0 22px rgba(115, 189, 232,, 0.4);
}

.client-site .client-tabs .category-tab {
  min-height: 66px;
  padding: 0 23px;
  border: 0;
  border-right: 1px solid var(--client-line);
  border-radius: 0;
  color: var(--client-muted);
  background: transparent;
  backdrop-filter: none;
}

.client-site .client-tabs .category-tab:first-of-type {
  border-left: 1px solid var(--client-line);
}

.client-site .client-tabs .category-tab:hover {
  transform: none;
  color: var(--client-ink);
  background: rgba(255, 255, 255, 0.025);
}

.client-site .client-tabs .category-tab span {
  color: inherit;
  font-size: 13px;
  font-weight: 570;
}

.client-site .client-tabs .category-tab small {
  min-width: auto;
  height: auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.32);
  background: none;
  font-family: Arial, sans-serif;
  font-size: 9px;
}

.client-site .client-tabs .category-tab.active,
.client-site .client-tabs .category-tab.active span {
  color: var(--client-ink);
  background: rgba(255, 255, 255, 0.018);
}

.client-site .client-tabs .category-tab.active small {
  color: var(--client-accent);
  background: none;
}

/* Portfolio grid */
.client-site .client-video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.client-site .client-work-card {
  overflow: hidden;
  border: 1px solid var(--client-line);
  border-radius: 4px;
  background: var(--client-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transform-style: flat;
  contain-intrinsic-size: 0 470px;
}

.client-site .client-work-card::before {
  z-index: 6;
  border-radius: 0;
  padding: 0;
  background: none;
  -webkit-mask: none;
  mask: none;
  border: 1px solid transparent;
  transition: border-color 220ms ease;
}

.client-site .client-work-card::after {
  z-index: 5;
  border-radius: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 30%), rgba(115, 189, 232,, 0.14), transparent 64%);
}

.client-site .client-work-card:hover {
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.52);
}

.client-site .client-work-card:hover::before,
.client-site .client-work-card.is-previewing::before {
  border-color: rgba(143, 216, 255,, 0.54);
  background: none;
}

.client-site .client-work-card.is-previewing {
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6), 0 0 46px rgba(115, 189, 232,, 0.08);
}

.client-site .client-work-card .thumb {
  aspect-ratio: 2 / 3;
  background: #111316;
}

.client-site .client-work-card .thumb::after {
  z-index: 1;
  height: 66%;
  background: linear-gradient(180deg, transparent 5%, rgba(3, 4, 5, 0.88) 100%);
}

.client-site .client-work-card .preview-poster,
.client-site .client-work-card .preview-video {
  filter: saturate(0.9) contrast(1.03);
  transition: opacity 260ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.client-site .client-work-card:hover .preview-poster,
.client-site .client-work-card:hover .preview-video {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.02);
}

.client-site .client-work-card .card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 19px;
  pointer-events: none;
}

.client-site .client-work-card .card-kicker {
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--client-accent-bright);
  background: transparent;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.client-site .client-work-card .card-title {
  color: #fff;
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 580;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.work-open {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: right;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.work-open i {
  color: var(--client-accent-bright);
  font-style: normal;
  font-size: 16px;
}

.client-work-card:hover .work-open {
  opacity: 1;
  transform: translateY(0);
}

.work-index,
.work-duration {
  position: absolute;
  top: 13px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.work-index { left: 14px; }

.work-duration {
  right: 13px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 5, 6, 0.48);
  backdrop-filter: blur(8px);
}

.client-site .client-work-card .play-badge {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 4;
  width: 58px;
  height: 58px;
  color: #14120e;
  background: rgba(149, 218, 255,, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.84);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.client-site .client-work-card .play-badge::before {
  display: none;
}

.client-site .client-work-card .play-badge i {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.client-site .client-work-card:hover .play-badge,
.client-site .client-work-card.is-previewing .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.client-site .client-work-card.is-previewing .play-badge {
  opacity: 0;
}

.client-site .client-empty {
  border-radius: 4px;
  background: #0e1012;
}

.client-site .client-load-more {
  padding-top: 34px;
}

.client-site .client-load-more .mini-button {
  min-width: 132px;
  min-height: 42px;
  border: 1px solid var(--client-line-strong);
  border-radius: 0;
  color: var(--client-ink);
  background: transparent;
}

.client-video-grid.is-loading {
  min-height: 420px;
}

.work-skeleton {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--client-line);
  background: #111316;
  animation: clientSkeletonRise 500ms var(--stagger) ease both;
}

.work-skeleton span {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-skeleton i,
.work-skeleton b {
  position: absolute;
  bottom: 24px;
  left: 18px;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.work-skeleton i { width: 32%; bottom: 45px; }
.work-skeleton b { width: 64%; }

/* Dynamic category directory */
.category-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
  background:
    radial-gradient(circle at 88% 15%, rgba(115, 189, 232,, 0.08), transparent 28%),
    #0b0c0e;
}

.category-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--client-line);
  border-left: 1px solid var(--client-line);
}

.directory-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 146px;
  padding: 26px 28px;
  overflow: hidden;
  border-right: 1px solid var(--client-line);
  border-bottom: 1px solid var(--client-line);
  color: var(--client-ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.012);
  transition: color 260ms ease, background 260ms ease;
}

.directory-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--client-accent-bright);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.directory-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -80% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(115, 189, 232,, 0.1);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 260ms ease;
}

.directory-order {
  align-self: start;
  margin-top: 5px;
  color: rgba(115, 189, 232,, 0.58);
  font-family: Arial, sans-serif;
  font-size: 9px;
}

.directory-copy {
  display: grid;
  gap: 8px;
}

.directory-copy strong {
  font-size: 20px;
  font-weight: 570;
  letter-spacing: 0.01em;
}

.directory-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.055em;
}

.directory-arrow {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--client-line);
  color: var(--client-accent);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.directory-card:hover,
.directory-card.active {
  background: rgba(115, 189, 232,, 0.055);
}

.directory-card:hover::before,
.directory-card.active::before {
  transform: scaleY(1);
}

.directory-card:hover::after {
  opacity: 1;
}

.directory-card:hover .directory-arrow {
  color: #111;
  background: var(--client-accent-bright);
  border-color: var(--client-accent-bright);
  transform: translate(2px, -2px);
}

.category-directory-empty {
  grid-column: 1 / -1;
  padding: 50px;
  border-right: 1px solid var(--client-line);
  border-bottom: 1px solid var(--client-line);
  color: var(--client-muted);
}

/* Capabilities */
.capability-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
  background: #08090b;
}

.capability-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(60px, 10vw, 160px);
}

.capability-intro h2 {
  max-width: 570px;
}

.capability-list {
  border-top: 1px solid var(--client-line);
}

.capability-list article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--client-line);
}

.capability-list article > span {
  color: rgba(115, 189, 232,, 0.58);
  font-family: Arial, sans-serif;
  font-size: 9px;
}

.capability-list h3 {
  margin: 0;
  color: var(--client-ink);
  font-size: 20px;
  font-weight: 570;
}

.capability-list p {
  max-width: 520px;
  margin: 9px 0 0;
  color: var(--client-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Footer */
.client-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
  padding: 92px 0 30px;
  background:
    radial-gradient(circle at 25% 25%, rgba(115, 189, 232,, 0.09), transparent 31%),
    #050607;
}

.footer-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 70px;
}

.footer-main img {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 24px rgba(115, 189, 232,, 0.18));
}

.footer-main h2 {
  max-width: 800px;
  margin: 0;
  color: var(--client-ink);
  font-size: clamp(34px, 4.5vw, 62px);
  font-weight: 490;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.footer-main > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--client-line-strong);
  color: var(--client-soft);
  font-size: 12px;
}

.footer-main > a span {
  color: var(--client-accent);
  font-size: 17px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--client-line);
  color: rgba(255, 255, 255, 0.3);
  font-family: Arial, var(--font-cjk), sans-serif;
  font-size: 9px;
  letter-spacing: 0.13em;
}

/* Viewer refinement */
.client-site .viewer-shell {
  border-radius: 6px;
  background: #050607;
  box-shadow: 0 44px 140px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.client-site .viewer-bar {
  background: #0c0d0f;
}

.client-site .viewer-close {
  border-radius: 0;
}

@keyframes clientProjector {
  from { transform: translateX(-8%) rotate(19deg); opacity: 0.22; }
  to { transform: translateX(10%) rotate(19deg); opacity: 0.5; }
}

@keyframes clientRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reelFloat {
  from { transform: translateY(0) rotate(0.25deg); }
  to { transform: translateY(-8px) rotate(-0.25deg); }
}

@keyframes clientSkeleton {
  0% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}

@keyframes clientSkeletonRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .client-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.78fr);
    gap: 40px;
  }

  .hero-reel {
    height: 570px;
  }

  .client-site .client-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-video-grid.is-featured .video-card:last-child {
    display: block;
  }
}

@media (max-width: 940px) {
  .client-site .site-shell {
    width: min(100% - 42px, 760px);
  }

  .client-hero,
  .client-hero-grid {
    min-height: 0;
  }

  .client-hero-grid {
    grid-template-columns: 1fr;
    padding: 132px 0 70px;
  }

  .client-hero-copy {
    max-width: 710px;
  }

  .hero-reel {
    width: min(620px, 100%);
    height: 610px;
    margin: 2px auto 0;
  }

  .hero-footnote {
    display: none;
  }

  .proof-track {
    width: max-content !important;
    min-width: 100%;
    grid-template-columns: repeat(4, 210px);
  }

  .client-proof {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .client-proof::-webkit-scrollbar {
    display: none;
  }

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

  .capability-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }
}

@media (max-width: 700px) {
  .client-site .site-shell {
    width: calc(100% - 32px);
  }

  .client-site .topbar-inner {
    min-height: 66px;
  }

  .client-site .client-brand .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-lockup strong {
    font-size: 15px;
  }

  .brand-lockup small {
    font-size: 7px;
  }

  .client-nav {
    gap: 0;
  }

  .client-nav .nav-link {
    display: none;
  }

  .nav-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .client-hero-grid {
    gap: 54px;
    padding: 112px 0 62px;
  }

  .client-eyebrow {
    margin-bottom: 19px;
    font-size: 8px;
  }

  .client-hero h1 {
    font-size: clamp(38px, 11.2vw, 52px);
    line-height: 1.16;
  }

  .client-hero h1 strong {
    margin-top: 6px;
  }

  .client-hero-intro {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.82;
  }

  .client-hero-actions {
    margin-top: 29px;
  }

  .client-button {
    flex: 1 1 auto;
    min-height: 49px;
    padding: 0 16px;
    font-size: 11px;
  }

  .client-button.primary {
    min-width: 160px;
  }

  .client-metrics {
    margin-top: 36px;
  }

  .client-metrics > div {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
  }

  .client-metrics strong {
    font-size: 19px;
  }

  .client-metrics span {
    font-size: 10.5px;
    letter-spacing: 0.035em;
  }

  .hero-reel {
    height: 440px;
  }

  .reel-stack {
    inset: 29px 0 24px;
  }

  .reel-card-1 {
    left: 8%;
    width: 61%;
    height: 94%;
  }

  .reel-card-2 {
    width: 37%;
    height: 38%;
  }

  .reel-card-3 {
    right: 1%;
    width: 34%;
    height: 38%;
  }

  .reel-card-4 {
    left: -2%;
    width: 24%;
  }

  .reel-card-copy {
    right: 11px;
    bottom: 13px;
    left: 11px;
  }

  .reel-card-copy strong,
  .reel-card-2 .reel-card-copy strong,
  .reel-card-3 .reel-card-copy strong,
  .reel-card-4 .reel-card-copy strong {
    font-size: 12px;
  }

  .reel-card-copy small,
  .reel-card-4 .reel-card-copy {
    display: none;
  }

  .reel-play {
    display: none;
  }

  .proof-track > div {
    min-height: 88px;
    padding: 0 20px;
  }

  .client-section {
    padding: 86px 0;
  }

  .client-section-head {
    display: block;
    margin-bottom: 32px;
  }

  .client-section-head h2,
  .capability-intro h2 {
    font-size: clamp(34px, 9.6vw, 44px);
  }

  .client-section-copy {
    margin-top: 14px;
    font-size: 12px;
  }

  .work-counter {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
    border: 0;
  }

  .work-counter strong {
    font-size: 11px;
  }

  .work-counter span {
    margin: 0;
    font-size: 9px;
  }

  .client-site .client-tabs {
    width: calc(100% + 16px);
    margin-right: -16px;
    margin-bottom: 22px;
  }

  .client-site .client-tabs .category-tab {
    min-height: 56px;
    padding: 0 17px;
  }

  .client-site .client-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .client-site .client-work-card .card-body {
    padding: 14px 11px;
  }

  .client-site .client-work-card .card-kicker {
    margin-bottom: 5px;
    font-size: 8px;
  }

  .client-site .client-work-card .card-title {
    font-size: 14px;
  }

  .work-open {
    display: none;
  }

  .client-site .client-work-card .play-badge {
    width: 44px;
    height: 44px;
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1);
  }

  .client-site .client-work-card .play-badge i {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 9px;
  }

  .work-index {
    top: 9px;
    left: 9px;
  }

  .work-duration {
    top: 8px;
    right: 8px;
    padding: 3px 5px;
    font-size: 8px;
  }

  .category-directory {
    grid-template-columns: 1fr;
  }

  .directory-card {
    min-height: 112px;
    padding: 22px 20px;
  }

  .directory-copy strong {
    font-size: 18px;
  }

  .capability-grid {
    gap: 42px;
  }

  .capability-list article {
    grid-template-columns: 34px 1fr;
    gap: 13px;
    padding: 24px 0;
  }

  .capability-list h3 {
    font-size: 18px;
  }

  .footer-main {
    display: block;
    padding-bottom: 52px;
  }

  .footer-main > a {
    margin-top: 32px;
  }

  .footer-bottom {
    display: grid;
    gap: 10px;
    line-height: 1.6;
  }

  .client-site .viewer {
    padding: 0;
  }

  .client-site .viewer-shell {
    max-height: 100vh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-projector,
  .reel-card-1,
  .hero-reel-skeleton span::after,
  .work-skeleton span::after {
    animation: none !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(135% 120% at 50% 0%, transparent 52%, rgba(0, 0, 0, 0.58) 100%),
    radial-gradient(circle at 82% 4%, rgba(94, 164, 224,, 0.2), transparent 42%),
    radial-gradient(circle at 6% 2%, rgba(60, 118, 201,, 0.14), transparent 40%),
    radial-gradient(circle at 50% 122%, rgba(133, 193, 236,, 0.1), transparent 50%),
    linear-gradient(180deg, #0d0a08 0%, #120e0a 50%, #0b0806 100%);
  background-attachment: fixed;
}

/* Drifting cold ambience */
body::before {
  content: "";
  position: fixed;
  inset: -25% -15% auto;
  z-index: -2;
  height: 72vh;
  background:
    radial-gradient(circle at 18% 38%, rgba(133, 193, 236,, 0.16), transparent 24%),
    radial-gradient(circle at 74% 22%, rgba(74, 116, 201,, 0.12), transparent 24%),
    radial-gradient(circle at 48% 70%, rgba(94, 164, 224,, 0.16), transparent 28%);
  filter: blur(30px);
  animation: ambientDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Faint film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

body.admin-body {
  background:
    radial-gradient(circle at 86% -4%, rgba(94, 164, 224,, 0.14), transparent 38%),
    radial-gradient(circle at 4% 0%, rgba(60, 118, 201,, 0.1), transparent 36%),
    linear-gradient(180deg, #0d0a08, #120e0a);
  background-attachment: fixed;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

body.viewer-open {
  overflow: hidden;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0;
  height: 3px;
  background: var(--grad-accent);
  box-shadow: 0 0 14px rgba(133, 193, 236,, 0.6);
  transition: width 90ms linear;
}

.site-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(13, 10, 8, 0.34);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  transition: background 240ms ease, border-color 240ms ease;
}

.topbar.is-scrolled {
  background: rgba(13, 10, 8, 0.82);
  border-bottom-color: var(--line);
}

/* Without backdrop blur (old Chrome) the translucent bar is unreadable over
   scrolling content — fall back to a near-solid background. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar {
    background: rgba(13, 10, 8, 0.94);
  }
}

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

.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(133, 193, 236,, 0.35));
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 4px;
  background: var(--grad-accent);
  transition: width 220ms ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding: 64px 0 48px;
  overflow: hidden;
}

/* Cinematic backdrop: drifting warm aurora, a slow light beam, rising embers. */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-aurora {
  position: absolute;
  inset: -30% -12% auto;
  height: 150%;
  background:
    radial-gradient(38% 48% at 18% 28%, rgba(94, 164, 224,, 0.26), transparent 70%),
    radial-gradient(34% 44% at 82% 18%, rgba(74, 116, 201,, 0.2), transparent 70%),
    radial-gradient(46% 56% at 62% 78%, rgba(154, 210, 243,, 0.16), transparent 72%);
  filter: blur(46px);
  animation: auroraDrift 17s ease-in-out infinite alternate;
}

.hero-beam {
  position: absolute;
  top: -45%;
  left: -30%;
  width: 46%;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(154, 210, 243,, 0.12), transparent);
  transform: translateX(-30%) rotate(18deg);
  filter: blur(22px);
  animation: beamSweep 11s ease-in-out infinite;
}

.hero-embers {
  position: absolute;
  inset: 0;
}

.ember {
  position: absolute;
  bottom: -12px;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 210, 243,, 0.95), rgba(94, 164, 224,, 0.25) 65%, transparent 75%);
  box-shadow: 0 0 9px rgba(133, 193, 236,, 0.6);
  opacity: 0;
  animation: emberRise var(--dur, 9s) linear var(--delay, 0s) infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy-block {
  max-width: 760px;
  animation: heroRise 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1,
.hero-title {
  position: relative;
  max-width: none;
  margin: 0;
  min-height: 2.36em;
  font-size: 40px;
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  font-weight: 800;
  text-wrap: balance;
  background: linear-gradient(104deg, #ffffff 0%, #c8e4f6 46%, #d0e6f3 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hueShift 11s ease-in-out infinite;
}

/* The rotating phrase gets the ice-blue gradient; the lead stays bright white. */
.type-rotate {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.96em;
  margin-left: 6px;
  vertical-align: -0.1em;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(133, 193, 236,, 0.8);
  animation: caretBlink 1.05s steps(1) infinite;
}

.hero-copy {
  max-width: 56ch;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 1.78;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--grad-accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dotPulse 2.4s ease-in-out infinite;
}


.hero-actions,
.form-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 36px;
}

.button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 680;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 200ms ease, background 200ms ease, color 180ms ease, border-color 180ms ease;
}

.button {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  padding: 0 28px;
  color: #05060a;
  font-weight: 720;
  background: var(--grad-accent);
  box-shadow: 0 14px 40px rgba(133, 193, 236,, 0.26);
}

.button::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -45%;
  width: 42%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: buttonSweep 4.4s ease-in-out infinite;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(92, 154, 211,, 0.42);
}

.button.secondary {
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.button.secondary::after {
  display: none;
}

.button.secondary:hover {
  border-color: rgba(133, 193, 236,, 0.5);
  box-shadow: var(--glow-accent);
}

/* ---------- Library section ---------- */
.section {
  padding: 14px 0 104px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: 34px;
  font-size: clamp(30px, 5.4vw, 50px);
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.load-more-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 72px;
  padding-top: 22px;
  text-align: center;
}

.load-more-wrap[hidden] {
  display: none;
}

/* ---------- Category tabs (horizontal pill row) ---------- */
.category-tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 11px;
  margin: 0 0 34px;
  padding: 3px 2px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: var(--grad-accent);
  box-shadow: 0 12px 36px rgba(133, 193, 236,, 0.3);
  opacity: 0;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), width 380ms cubic-bezier(0.16, 1, 0.3, 1), height 380ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
  pointer-events: none;
}

.category-tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
  backdrop-filter: blur(16px);
  scroll-snap-align: start;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.category-tab:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  color: var(--ink);
}

.category-tab span {
  font-size: 15px;
  font-weight: 620;
}

.category-tab small {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 660;
}

.category-tab.active {
  color: #05060a;
  background: transparent;
  border-color: transparent;
}

.category-tab.active span {
  color: #05060a;
}

.category-tab.active small {
  background: rgba(5, 6, 10, 0.18);
  color: #05060a;
}

/* ---------- Video cards ---------- */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: opacity 520ms ease var(--stagger, 0ms), transform 520ms cubic-bezier(0.16, 1, 0.3, 1) var(--stagger, 0ms), box-shadow 240ms ease;
  transform-style: preserve-3d;
  content-visibility: auto;
  contain-intrinsic-size: 0 520px;
}

/* Hide cards up front only when JS confirmed a working IntersectionObserver
   (html.js-reveal). Without it (very old browsers / scripts failed), cards
   stay visible rather than getting stuck at opacity:0. */
html.js-reveal .video-card {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
}

/* accent gradient border */
.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 260ms ease, opacity 260ms ease;
  pointer-events: none;
}

/* pointer-follow glow */
.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(133, 193, 236,, 0.16), transparent 60%);
  transition: opacity 240ms ease;
  pointer-events: none;
}

html.js-reveal .video-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.video-card:hover {
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(133, 193, 236,, 0.18);
}

.video-card:hover::before,
.video-card.is-previewing::before {
  background: var(--grad-accent);
  opacity: 0.9;
}

.video-card:hover::after {
  opacity: 1;
}

.video-card.is-previewing {
  box-shadow: 0 34px 88px rgba(133, 193, 236,, 0.24);
}

.thumb {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(133, 193, 236,, 0.12), transparent),
    #14100c;
}

/* Old browsers without aspect-ratio (Chrome < 88): hold the 2:3 poster shape
   with the classic padding-bottom ratio hack. Children fill via top/left/etc. */
@supports not (aspect-ratio: 1 / 1) {
  .thumb {
    height: 0;
    padding-bottom: 150%;
  }
}

.thumb-button {
  cursor: pointer;
  text-align: left;
}

.preview-video,
.preview-poster {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 260ms ease, transform 700ms ease;
}

.preview-video {
  opacity: 0;
  background: #000;
}

.preview-poster {
  opacity: 1;
}

.empty-preview {
  background:
    radial-gradient(circle at 30% 24%, rgba(133, 193, 236,, 0.16), transparent 34%),
    linear-gradient(135deg, #14100c, #141c24);
}

.video-card.is-previewing .preview-video {
  opacity: 1;
}

.video-card.is-previewing .preview-poster {
  opacity: 0;
}

.video-card:hover .preview-poster,
.video-card:hover .preview-video {
  transform: scale(1.05);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #05060a;
  background: var(--grad-accent);
  box-shadow: 0 8px 26px rgba(133, 193, 236,, 0.45);
  transition: transform 220ms ease;
}

.video-card:hover .play-badge {
  transform: scale(1.08);
}

.play-badge::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.card-body {
  position: relative;
  z-index: 4;
  padding: 12px 13px 14px;
}

.card-title {
  display: -webkit-box;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 680;
  letter-spacing: -0.005em;
  color: var(--ink);
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(133, 193, 236,, 0.1);
  border: 1px solid rgba(133, 193, 236,, 0.22);
  font-size: 11px;
  font-weight: 640;
  letter-spacing: 0.04em;
}

/* Poster wall keeps cards uniform — description/tags live in the player view. */
.video-card .card-copy,
.video-card .tag-row {
  display: none;
}

.card-copy {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
  word-break: break-word;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.empty-state {
  padding: 52px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}

/* ---------- Viewer modal ---------- */
.viewer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.viewer[hidden] {
  display: none;
}

.viewer-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 220ms ease;
}

.viewer-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border-radius: 26px;
  background: #080605;
  box-shadow: 0 40px 130px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.95) translateY(14px);
  transition: opacity 200ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.viewer.active .viewer-backdrop {
  opacity: 1;
}

.viewer.active .viewer-shell {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.viewer-video {
  display: block;
  width: 100%;
  max-height: min(78vh, 780px);
  background: #000;
}

/* Vertical (9:16) clips: shrink the shell so the video isn't lost in side bars. */
.viewer.is-portrait .viewer-shell {
  width: min(440px, 100%);
}

.viewer.is-portrait .viewer-video {
  max-height: min(82vh, 900px);
  object-fit: contain;
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  color: #fff;
  background: rgba(13, 10, 8, 0.96);
  border-top: 1px solid var(--line);
}

.viewer-title {
  font-size: 18px;
  font-weight: 740;
}

.viewer-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.viewer-quality {
  margin: 0;
  justify-content: flex-end;
}

.viewer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-size: 24px;
  line-height: 1;
  transition: background 180ms ease, transform 220ms ease;
}

.viewer-close:hover {
  background: rgba(74, 116, 201,, 0.4);
  transform: rotate(90deg);
}

/* ---------- Watch page ---------- */
.watch-page {
  padding: 36px 0 100px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.player-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

.video-player {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #000;
}

/* Center vertical clips in a portrait-width frame instead of a wide letterbox. */
.watch-page.is-portrait .player-frame {
  max-width: 460px;
  margin-inline: auto;
}

.watch-page.is-portrait .video-player {
  max-height: 82vh;
}

.watch-meta {
  margin-top: 32px;
}

.watch-meta h1 {
  margin: 0;
  font-size: 38px;
  font-size: clamp(30px, 7vw, 58px);
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.watch-meta p {
  max-width: 72ch;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.74;
  word-break: break-word;
}

.quality-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ---------- Admin ---------- */
.admin-layout {
  min-height: 100vh;
  padding: 20px 0 72px;
}

.admin-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  margin: -20px -16px 24px;
  padding: 0 20px;
  background: rgba(13, 10, 8, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.admin-title h1,
.login-card h1 {
  margin: 0;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.1;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.admin-title p {
  margin: 10px 0 0;
  color: var(--muted);
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.catalog-admin {
  position: static;
  margin-bottom: 22px;
}

.catalog-config-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.catalog-config-block {
  min-width: 0;
  padding: 24px;
  background: var(--surface-solid);
}

.config-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.config-heading p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.category-manager {
  display: grid;
  gap: 10px;
}

.category-manage-row {
  display: grid;
  grid-template-columns: 28px minmax(130px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.category-manage-row .input {
  padding: 11px 12px;
}

.category-order {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(133, 193, 236,, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.category-count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.category-row-actions {
  grid-column: 2 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.category-row-actions .mini-button {
  min-height: 34px;
  padding: 0 11px;
}

.category-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.featured-slots {
  display: grid;
  gap: 12px;
}

.compact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

button:disabled,
.mini-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.admin-panel,
.library-panel,
.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.admin-panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 6px 0 0;
  font-size: 21px;
  font-weight: 720;
}

.admin-form {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.input,
.textarea,
.file,
select.input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-input);
  color: var(--ink);
  outline: none;
  padding: 15px 16px;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #52606b;
}

select.input option {
  background: #1b1611;
  color: var(--ink);
}

.input:focus,
.textarea:focus,
.file:focus,
select.input:focus {
  border-color: rgba(133, 193, 236,, 0.6);
  box-shadow: 0 0 0 4px rgba(133, 193, 236,, 0.15);
  background: #141b22;
}

.textarea {
  min-height: 120px;
  line-height: 1.6;
  resize: vertical;
}

.file {
  padding: 12px;
  color: var(--ink-soft);
}

.file::file-selector-button {
  margin-right: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}

.file-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.progress-panel {
  display: none;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(133, 193, 236,, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(133, 193, 236,, 0.06);
}

.progress-panel.active {
  display: grid;
}

.progress-line {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-accent);
  box-shadow: 0 0 16px rgba(133, 193, 236,, 0.6);
  transition: width 120ms linear;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.form-actions {
  margin-top: 22px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  color: var(--ink-soft);
  font-weight: 600;
}

.switch input {
  width: 19px;
  height: 19px;
  accent-color: var(--accent);
}

.library-panel {
  overflow: hidden;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.library-toolbar h2 {
  margin: 6px 0 0;
  font-size: 21px;
  font-weight: 720;
}

.admin-list {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.admin-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 180ms ease, transform 180ms ease;
}

.admin-item:hover {
  border-color: rgba(133, 193, 236,, 0.32);
  transform: translateY(-1px);
}

.admin-item img,
.admin-item .no-cover {
  width: 84px;
  height: 126px;
  border-radius: 14px;
  object-fit: cover;
  background: #1b1611;
}

.admin-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.admin-item .muted {
  margin-top: 6px;
  font-size: 13.5px;
}

.admin-item-desc {
  display: -webkit-box;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.admin-actions {
  margin-top: 16px;
}

.mini-button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--accent);
  background: rgba(133, 193, 236,, 0.1);
  border: 1px solid rgba(133, 193, 236,, 0.22);
}

.mini-button:hover {
  background: rgba(133, 193, 236,, 0.18);
  box-shadow: var(--glow-accent);
}

.mini-button.danger {
  color: var(--red);
  background: rgba(255, 107, 120, 0.1);
  border-color: rgba(255, 107, 120, 0.28);
}

.mini-button.danger:hover {
  background: rgba(255, 107, 120, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 107, 120, 0.4), 0 14px 40px rgba(255, 107, 120, 0.22);
}

.mini-button.active {
  color: #05060a;
  background: var(--grad-accent);
  border-color: transparent;
}

.status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.status.success {
  color: var(--green);
}

.status.error {
  color: var(--red);
}

.login-card {
  width: min(440px, calc(100% - 32px));
  margin: 16vh auto;
  padding: 30px;
}

.login-card p {
  margin: 12px 0 26px;
  color: var(--muted);
}

/* ---------- Admin enhancements ---------- */
.toast-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(440px, calc(100% - 24px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 18, 26, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.toast.success::before {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.toast.error::before {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.dropzone {
  position: relative;
  margin-bottom: 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}

.dropzone:hover {
  border-color: rgba(133, 193, 236,, 0.5);
}

.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(133, 193, 236,, 0.08);
}

.dz-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 36px 22px;
  text-align: center;
  color: var(--muted);
}

.dz-empty strong {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 660;
}

.dz-empty span {
  font-size: 13px;
  line-height: 1.5;
  max-width: 38ch;
}

.dz-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-accent-soft);
  color: var(--accent);
  font-size: 21px;
  border: 1px solid var(--line);
}

.dz-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.dz-video {
  width: 116px;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 16px;
  background: #000;
  flex: 0 0 auto;
}

.dz-file {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dz-file strong {
  font-size: 15px;
  word-break: break-all;
}

.dz-file span {
  color: var(--muted);
  font-size: 13px;
}

.dz-file .mini-button {
  justify-self: start;
  margin-top: 8px;
}

.cover-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  align-items: start;
}

.cover-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  background: linear-gradient(135deg, #14100c, #141c24);
  border: 1px solid var(--line);
}

.cover-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cover-fields {
  display: grid;
  gap: 12px;
  align-content: start;
}

.library-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 24px 18px;
}

.library-filters .input {
  padding: 12px 14px;
}

.admin-item {
  position: relative;
}

.admin-item.draggable-on {
  cursor: grab;
}

.admin-item.dragging {
  opacity: 0.5;
}

.admin-item.drop-target {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

.admin-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-item-head h3 {
  margin: 0;
}

.vstatus {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
}

.vstatus::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.vstatus.ready {
  color: var(--green);
  border-color: rgba(78, 233, 166, 0.3);
  background: rgba(78, 233, 166, 0.08);
}

.vstatus.ready::before {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.vstatus.processing {
  color: var(--accent);
  border-color: rgba(133, 193, 236,, 0.3);
  background: rgba(133, 193, 236,, 0.08);
}

.vstatus.processing::before {
  background: var(--accent);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.vstatus.failed {
  color: var(--red);
  border-color: rgba(255, 107, 120, 0.3);
  background: rgba(255, 107, 120, 0.08);
}

.vstatus.failed::before {
  background: var(--red);
}

.vmini-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 12px;
}

.vmini-progress > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(133, 193, 236,, 0.5);
  transition: width 300ms ease;
}

.reorder-hint {
  padding: 0 24px 14px;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- Keyframes ---------- */
@keyframes ambientDrift {
  from {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 26px, 0) scale(1.06);
  }
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(-3%, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.1);
  }
}

@keyframes beamSweep {
  0%, 100% {
    transform: translateX(-30%) rotate(18deg);
    opacity: 0.4;
  }
  50% {
    transform: translateX(360%) rotate(18deg);
    opacity: 0.9;
  }
}

@keyframes emberRise {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translate(var(--drift, 0), -82vh) scale(1.15);
    opacity: 0;
  }
}

@keyframes caretBlink {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}

@keyframes hueShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes buttonSweep {
  0%, 55% {
    left: -45%;
  }
  100% {
    left: 120%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .video-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(1200px, calc(100% - 24px));
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero h1 {
    font-size: clamp(26px, 7.2vw, 36px);
    line-height: 1.22;
    max-width: 100%;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.72;
    max-width: 100%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .topnav {
    gap: 14px;
  }

  .admin-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .admin-item img,
  .admin-item .no-cover {
    width: 72px;
    height: 108px;
  }

  .cover-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .viewer {
    padding: 0;
  }

  .viewer-shell {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .viewer-video {
    max-height: 82vh;
  }

  .viewer-bar {
    align-items: start;
    flex-direction: column;
  }
}

@media (min-width: 720px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .card-body {
    padding: 14px 15px 16px;
  }

  .card-title {
    font-size: 16.5px;
  }

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

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

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

  .field.full,
  .cover-card,
  .progress-panel {
    grid-column: 1 / -1;
  }

  /* Give the cover preview + fields a roomy single row on wider screens. */
  .cover-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (min-width: 1080px) {
  .hero {
    padding: 72px 0 48px;
  }

  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }

  .admin-dashboard {
    grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .admin-panel,
  .library-panel {
    position: sticky;
    top: 90px;
  }

  .catalog-admin {
    position: static;
  }
}

@media (hover: none) {
  .video-card.is-visible {
    transform: none;
  }

  /* background-attachment: fixed forces costly full-screen repaints on every
     scroll on touch devices (and is flaky on old WebViews) — let it scroll. */
  body,
  body.admin-body {
    background-attachment: scroll;
  }
}

/* ========================================================================== 
   Admin workspace V2
   A task-oriented operations UI. Scoped to .admin-v2 so the public gallery
   keeps its cinematic visual language without inheriting dashboard rules.
   ========================================================================== */

body.admin-v2 {
  --ops-bg: #0b0d10;
  --ops-sidebar: #0e1014;
  --ops-panel: #14171c;
  --ops-panel-2: #181c22;
  --ops-input: #101318;
  --ops-line: #292e37;
  --ops-line-soft: #20242c;
  --ops-text: #f5f2ea;
  --ops-soft: #c5c8ce;
  --ops-muted: #858b96;
  --ops-accent: #7dd3fc;
  --ops-accent-ink: #061520;
  --ops-blue: #87aefb;
  --ops-green: #74d39a;
  --ops-red: #f47d78;
  min-height: 100vh;
  color: var(--ops-text);
  background: var(--ops-bg);
  background-attachment: scroll;
}

body.admin-v2::before,
body.admin-v2::after {
  display: none;
}

.admin-v2 [hidden] {
  display: none !important;
}

body.editor-open {
  overflow: hidden;
}

/* Login */
.auth-layout {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(11, 13, 16, 0.7), rgba(11, 13, 16, 0.96)),
    radial-gradient(circle at 18% 12%, rgba(125, 199, 240,, 0.18), transparent 32%),
    radial-gradient(circle at 85% 84%, rgba(135, 174, 251, 0.1), transparent 34%);
}

.auth-card {
  width: min(460px, 100%);
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 28px;
  background: rgba(20, 23, 28, 0.96);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--ops-line-soft);
  background: rgba(255, 255, 255, 0.015);
}

.auth-brand img {
  width: 42px;
  height: 42px;
  border-radius: 16px;
}

.auth-brand div {
  display: grid;
  line-height: 1.25;
}

.auth-brand strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.auth-brand span {
  margin-top: 4px;
  color: var(--ops-muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-copy {
  padding: 34px 34px 12px;
}

.auth-kicker,
.confirm-kicker {
  color: var(--ops-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.auth-copy h1 {
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.auth-copy p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 20px 34px 28px;
}

.auth-form .input {
  height: 52px;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
}

.auth-footnote {
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--ops-line-soft);
  color: var(--ops-muted);
  background: #111419;
  font-size: 12px;
  text-align: center;
}

/* Workspace shell */
.ops-app {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.ops-sidebar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  width: 244px;
  height: 100vh;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--ops-line-soft);
  background: var(--ops-sidebar);
}

.ops-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 10px 18px;
  border-bottom: 1px solid var(--ops-line-soft);
}

.ops-brand img {
  width: 36px;
  height: 36px;
  border-radius: 14px;
}

.ops-brand > span {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.ops-brand strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-brand small {
  margin-top: 4px;
  color: var(--ops-muted);
  font-size: 11px;
}

.ops-nav {
  display: grid;
  gap: 5px;
  margin-top: 22px;
}

.ops-nav::before {
  content: "工作区";
  margin: 0 12px 8px;
  color: #626873;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.ops-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ops-muted);
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ops-nav-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ops-nav-item:hover {
  color: var(--ops-text);
  background: rgba(255, 255, 255, 0.035);
}

.ops-nav-item.active {
  color: var(--ops-text);
  border-color: rgba(125, 199, 240,, 0.16);
  background: rgba(125, 199, 240,, 0.08);
}

.ops-nav-item.active::before {
  content: "";
  position: absolute;
  left: -15px;
  width: 3px;
  height: 22px;
  border-radius: 0 6px 6px 0;
  background: var(--ops-accent);
}

.ops-nav-item.active svg {
  color: var(--ops-accent);
}

.ops-sidebar-foot {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ops-line-soft);
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--ops-muted);
  background: transparent;
  font-size: 12px;
  text-align: left;
}

.sidebar-link:hover {
  color: var(--ops-text);
  background: rgba(255, 255, 255, 0.04);
}

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

.ops-commandbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(22px, 3vw, 42px);
  border-bottom: 1px solid var(--ops-line-soft);
  background: rgba(11, 13, 16, 0.9);
  backdrop-filter: blur(18px);
}

.ops-commandbar > div:first-child {
  display: grid;
  line-height: 1.35;
}

.command-kicker {
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.ops-commandbar strong {
  margin-top: 3px;
  color: var(--ops-soft);
  font-size: 13px;
  font-weight: 600;
}

.command-actions,
.editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-action,
.secondary-action,
.ghost-button,
.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 720;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.primary-action {
  color: var(--ops-accent-ink);
  background: var(--ops-accent);
}

.primary-action:hover,
.secondary-action:hover,
.danger-action:hover {
  transform: translateY(-1px);
}

.primary-action.has-changes {
  box-shadow: 0 0 0 4px rgba(125, 199, 240,, 0.12);
}

.action-plus {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(6, 21, 32,, 0.12);
  font-size: 17px;
  line-height: 1;
}

.secondary-action {
  color: var(--ops-accent);
  border-color: rgba(125, 199, 240,, 0.3);
  background: rgba(125, 199, 240,, 0.08);
}

.ghost-button {
  color: var(--ops-soft);
  border-color: var(--ops-line);
  background: #171a20;
}

.ghost-button:hover {
  color: var(--ops-text);
  border-color: #3b414c;
  background: #1b1f26;
}

.danger-action {
  color: #240706;
  background: var(--ops-red);
}

.danger-action.is-neutral {
  color: #0b1422;
  background: var(--ops-blue);
}

.ops-content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 38px clamp(22px, 3vw, 42px) 100px;
}

.ops-welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.ops-welcome .eyebrow,
.ops-section .eyebrow {
  color: var(--ops-accent);
}

.ops-welcome h1 {
  margin: 5px 0 7px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ops-welcome p:not(.eyebrow) {
  margin: 0;
  color: var(--ops-muted);
  font-size: 14px;
}

.live-state {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(116, 211, 154, 0.18);
  border-radius: 999px;
  color: var(--ops-green);
  background: rgba(116, 211, 154, 0.06);
  font-size: 11px;
  font-weight: 650;
}

.live-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ops-green);
  box-shadow: 0 0 0 4px rgba(116, 211, 154, 0.1);
}

/* Overview stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat-card {
  position: relative;
  min-width: 0;
  padding: 20px 21px;
  overflow: hidden;
  border: 1px solid var(--ops-line-soft);
  border-radius: 18px;
  background: var(--ops-panel);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 2px;
  background: var(--ops-accent);
  opacity: 0.65;
}

.stat-card > span {
  display: block;
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-card strong b {
  font: inherit;
}

.stat-card strong em {
  margin-left: 4px;
  color: var(--ops-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.stat-card small {
  color: #676d78;
  font-size: 11px;
}

/* Shared operation sections */
.ops-section {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--ops-line-soft);
  border-radius: 20px;
  background: var(--ops-panel);
  scroll-margin-top: 98px;
}

.ops-section-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 25px 27px;
  border-bottom: 1px solid var(--ops-line-soft);
}

.section-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(125, 199, 240,, 0.24);
  border-radius: 16px;
  color: var(--ops-accent);
  background: rgba(125, 199, 240,, 0.06);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-copy > span {
  display: block;
  color: var(--ops-accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.section-copy h2 {
  margin: 2px 0 5px;
  font-size: 22px;
  line-height: 1.25;
}

.section-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--ops-muted);
  font-size: 12.5px;
}

.section-state {
  align-self: center;
  padding: 7px 10px;
  border-radius: 12px;
  color: var(--ops-muted);
  background: #101318;
  font-size: 11px;
}

.section-state b {
  color: var(--ops-text);
}

/* Featured homepage editor */
.featured-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}

.featured-pick {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 18px;
  background: #101318;
  transition: border-color 180ms ease, transform 180ms ease;
}

.featured-pick:hover {
  transform: translateY(-2px);
  border-color: #3a414d;
}

.featured-pick.is-selected {
  border-color: rgba(125, 199, 240,, 0.32);
}

.featured-pick-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--ops-line-soft);
  color: #606671;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent),
    #0d1014;
  font-size: 11px;
}

.featured-pick-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-placeholder {
  max-width: 80%;
  color: var(--ops-soft);
  text-align: center;
}

.featured-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--ops-accent-ink);
  background: var(--ops-accent);
  font-size: 12px;
  font-weight: 900;
}

.featured-pick-body {
  position: relative;
  padding: 14px;
}

.slot-number {
  position: absolute;
  top: -28px;
  left: 11px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #101318;
  border-radius: 14px;
  color: var(--ops-accent-ink);
  background: var(--ops-accent);
  font-size: 10px;
  font-weight: 850;
}

.featured-pick .field {
  gap: 6px;
}

.featured-pick .field > span {
  color: var(--ops-muted);
  font-size: 10px;
}

.featured-pick .input {
  height: 42px;
  padding: 0 11px;
  border-radius: 12px;
  font-size: 12px;
}

.featured-pick-meta {
  margin-top: 8px;
  overflow: hidden;
  color: #727985;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  border-top: 1px solid var(--ops-line-soft);
  background: #111419;
}

.section-savebar > div {
  display: grid;
  line-height: 1.35;
}

.section-savebar strong {
  font-size: 12px;
}

.section-savebar span {
  margin-top: 2px;
  color: var(--ops-muted);
  font-size: 10.5px;
}

.section-savebar span.success {
  color: var(--ops-green);
}

.section-savebar span.warning {
  color: var(--ops-accent);
}

.section-savebar span.error {
  color: var(--ops-red);
}

/* Categories */
.category-table-head {
  display: grid;
  grid-template-columns: 76px minmax(360px, 1fr) 90px 300px;
  gap: 16px;
  padding: 11px 22px;
  border-bottom: 1px solid var(--ops-line-soft);
  color: #656b76;
  background: #111419;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.category-manager {
  display: grid;
  gap: 0;
}

.category-record {
  display: grid;
  grid-template-columns: 76px minmax(360px, 1fr) 90px 300px;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--ops-line-soft);
  background: var(--ops-panel);
  transition: background 160ms ease;
}

.category-record:hover {
  background: var(--ops-panel-2);
}

.category-rank {
  display: grid;
  line-height: 1.25;
}

.category-rank span {
  color: var(--ops-accent);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.category-rank small {
  margin-top: 3px;
  color: #656b76;
  font-size: 9px;
}

.category-definition {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: end;
  gap: 14px;
  min-width: 0;
}

.category-definition label {
  display: grid;
  gap: 5px;
}

.category-definition label > span,
.category-preview > span {
  color: #727884;
  font-size: 9.5px;
  font-weight: 650;
}

.category-definition .input {
  height: 40px;
  padding: 0 11px;
  border-radius: 12px;
  font-size: 12px;
}

.category-preview {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.category-preview b {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 150px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid rgba(125, 199, 240,, 0.2);
  border-radius: 999px;
  color: var(--ops-accent);
  background: rgba(125, 199, 240,, 0.07);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-volume {
  display: grid;
  line-height: 1.25;
}

.category-volume strong {
  font-size: 18px;
}

.category-volume span {
  margin-top: 3px;
  color: var(--ops-muted);
  font-size: 9.5px;
}

.category-record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.order-actions {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
}

.order-actions button {
  min-height: 34px;
  padding: 0 8px;
  color: var(--ops-muted);
  background: #111419;
  font-size: 10px;
}

.order-actions button + button {
  border-left: 1px solid var(--ops-line);
}

.order-actions button:hover:not(:disabled) {
  color: var(--ops-text);
  background: #1c2027;
}

.record-save,
.record-delete {
  min-height: 35px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
}

.record-save {
  color: var(--ops-accent-ink);
  background: var(--ops-accent);
}

.record-delete {
  color: var(--ops-red);
  border: 1px solid rgba(244, 125, 120, 0.2);
  background: rgba(244, 125, 120, 0.05);
}

.record-save:disabled,
.record-delete:disabled {
  color: #656b75;
  border-color: var(--ops-line-soft);
  background: #111419;
}

.category-create {
  display: grid;
  grid-template-columns: 38px minmax(190px, 1fr) minmax(180px, 280px) auto;
  align-items: center;
  gap: 14px;
  margin: 18px;
  padding: 15px;
  border: 1px dashed #39404b;
  border-radius: 16px;
  background: #111419;
}

.category-create-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: var(--ops-accent);
  background: rgba(125, 199, 240,, 0.08);
  font-size: 21px;
}

.category-create > div:nth-child(2) {
  display: grid;
  line-height: 1.4;
}

.category-create strong {
  font-size: 12px;
}

.category-create span {
  color: var(--ops-muted);
  font-size: 9.5px;
}

.category-create .input {
  height: 40px;
  padding: 0 11px;
  border-radius: 12px;
  font-size: 12px;
}

/* Library */
.library-toolbar-v2 {
  display: block;
  border-bottom: 1px solid var(--ops-line-soft);
  background: #101318;
}

.library-toolbar-main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(390px, 0.9fr);
  align-items: stretch;
  gap: 12px;
  padding: 18px 20px 14px;
}

.search-box {
  position: relative;
  display: block;
  min-width: 0;
  height: 58px;
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  background: #0c0f13;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(125, 199, 240,, 0.5);
  background: #0e1116;
  box-shadow: 0 0 0 3px rgba(125, 199, 240,, 0.07);
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #7f8792;
  stroke-linecap: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box > span {
  position: absolute;
  top: 8px;
  left: 44px;
  color: #747b86;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 100%;
  padding: 19px 16px 3px 44px;
  border: 0;
  border-radius: inherit;
  color: var(--ops-text);
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 560;
}

.search-box input::placeholder {
  color: #5f6670;
  font-weight: 500;
}

.toolbar-filter-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toolbar-filter {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 58px;
  padding: 0 12px;
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  background: #0c0f13;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.toolbar-filter-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #292e36;
  border-radius: 14px;
  color: #8b929d;
  background: #13171c;
  pointer-events: none;
}

.toolbar-filter-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.toolbar-filter-icon.status-icon b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #89919c;
  box-shadow: 0 0 0 4px rgba(137, 145, 156, 0.1);
}

.toolbar-filter-copy {
  display: grid;
  min-width: 0;
  pointer-events: none;
}

.toolbar-filter-copy small {
  color: #747b86;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1;
}

.toolbar-filter-copy select {
  width: 100%;
  height: 29px;
  margin: 0;
  padding: 5px 0 0;
  overflow: hidden;
  border: 0;
  color: #c9ced6;
  background: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  cursor: pointer;
  pointer-events: auto;
}

.toolbar-filter-copy select option {
  color: var(--ops-text);
  background: #14171c;
}

.toolbar-filter > i {
  justify-self: center;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #767e89;
  border-bottom: 1.5px solid #767e89;
  transform: rotate(45deg);
  pointer-events: none;
}

.toolbar-filter:focus-within,
.toolbar-filter.is-active {
  border-color: rgba(125, 199, 240,, 0.45);
  background: rgba(125, 199, 240,, 0.045);
}

.toolbar-filter:focus-within {
  box-shadow: 0 0 0 3px rgba(125, 199, 240,, 0.07);
}

.toolbar-filter:focus-within .toolbar-filter-icon,
.toolbar-filter.is-active .toolbar-filter-icon {
  border-color: rgba(125, 199, 240,, 0.2);
  color: var(--ops-accent);
  background: rgba(125, 199, 240,, 0.07);
}

.toolbar-filter:focus-within .toolbar-filter-copy small,
.toolbar-filter.is-active .toolbar-filter-copy small {
  color: #6b9bb6;
}

.toolbar-filter.is-active .status-icon b {
  background: var(--ops-accent);
  box-shadow: 0 0 0 4px rgba(125, 199, 240,, 0.1);
}

.toolbar-filter[data-status="published"] .status-icon b {
  background: var(--ops-green);
  box-shadow: 0 0 0 4px rgba(116, 211, 154, 0.1);
}

.toolbar-filter[data-status="processing"] .status-icon b {
  background: var(--ops-blue);
  box-shadow: 0 0 0 4px rgba(135, 174, 251, 0.1);
}

.toolbar-filter[data-status="failed"] .status-icon b {
  background: var(--ops-red);
  box-shadow: 0 0 0 4px rgba(244, 125, 120, 0.1);
}

.toolbar-filter:focus-within > i,
.toolbar-filter.is-active > i {
  border-color: var(--ops-accent);
}

.library-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 9px 20px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  background: #0e1115;
}

.filter-scope {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: #818894;
  font-size: 10.5px;
}

.filter-scope > i {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #626a75;
}

.filter-scope.is-active {
  color: #81b1c8;
}

.filter-scope.is-active > i {
  background: var(--ops-accent);
  box-shadow: 0 0 0 4px rgba(125, 199, 240,, 0.08);
}

.library-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.toolbar-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #858c96;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10.5px;
}

.toolbar-clear:hover:not(:disabled) {
  color: var(--ops-text);
  border-color: var(--ops-line);
  background: rgba(255, 255, 255, 0.045);
}

.toolbar-clear:disabled {
  opacity: 0.35;
  cursor: default;
}

.library-total {
  padding-left: 13px;
  border-left: 1px solid var(--ops-line);
  color: var(--ops-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.reorder-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 18px 0;
  padding: 11px 13px;
  border: 1px solid rgba(135, 174, 251, 0.13);
  border-radius: 14px;
  color: var(--ops-blue);
  background: rgba(135, 174, 251, 0.045);
}

.reorder-notice > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: rgba(135, 174, 251, 0.08);
  font-weight: 800;
}

.reorder-notice > div {
  display: grid;
  line-height: 1.35;
}

.reorder-notice strong {
  font-size: 10.5px;
}

.reorder-notice small {
  margin-top: 2px;
  color: #6f7785;
  font-size: 9.5px;
}

.reorder-notice.is-category-scope {
  border-color: rgba(125, 199, 240,, 0.2);
  color: var(--ops-accent);
  background: rgba(125, 199, 240,, 0.055);
}

.reorder-notice.is-category-scope > span {
  background: rgba(125, 199, 240,, 0.09);
}

.drag-scroll-feedback {
  position: fixed;
  right: max(20px, calc((100vw - 1480px) / 2 + 28px));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(125, 199, 240,, 0.28);
  border-radius: 999px;
  color: #91d3f2;
  background: rgba(12, 15, 19, 0.92);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 180ms ease, top 180ms ease, bottom 180ms ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.drag-scroll-feedback i {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(125, 199, 240,, 0.1);
  font-style: normal;
}

.drag-scroll-feedback strong {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.drag-scroll-feedback.is-up {
  top: 86px;
  bottom: auto;
  opacity: 1;
  transform: translateY(0);
}

.drag-scroll-feedback.is-down {
  top: auto;
  bottom: 22px;
  opacity: 1;
  transform: translateY(0);
}

.asset-list {
  gap: 10px;
  padding: 18px;
}

.asset-item {
  display: grid;
  grid-template-columns: 18px 104px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--ops-line-soft);
  border-radius: 16px;
  background: #111419;
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.asset-item:hover {
  border-color: #343a44;
  background: #13171c;
  transform: none;
}

.asset-item.dragging {
  opacity: 0.5;
}

.asset-item.drop-target {
  border-color: var(--ops-accent);
  box-shadow: inset 0 0 0 1px var(--ops-accent);
}

.asset-drag {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, 3px);
  gap: 3px;
  padding: 10px 2px;
  cursor: grab;
  opacity: 0.28;
  touch-action: none;
}

.asset-drag:focus-visible {
  border-radius: 10px;
  outline: 2px solid var(--ops-accent);
  outline-offset: 2px;
}

.asset-item.draggable-on .asset-drag {
  opacity: 0.7;
}

.asset-drag i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #8a909a;
}

.asset-cover {
  position: relative;
  align-self: start;
  width: 104px;
  height: 138px;
  overflow: hidden;
  border-radius: 14px;
  background: #0b0e12;
}

.asset-cover img,
.asset-cover .no-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-cover .no-cover {
  display: grid;
  place-items: center;
  color: #555b65;
  background: #0d1014;
  font-size: 9px;
}

.home-marker,
.duration-marker {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
}

.home-marker {
  top: 7px;
  left: 7px;
  color: var(--ops-accent-ink);
  background: var(--ops-accent);
}

.duration-marker {
  right: 6px;
  bottom: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
}

.asset-content {
  min-width: 0;
}

.asset-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.asset-title-row > div {
  min-width: 0;
}

.asset-id {
  display: block;
  margin-bottom: 3px;
  color: #5e6570;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.asset-title-row h3 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.asset-badges > span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--ops-line-soft);
  border-radius: 10px;
  color: #888f99;
  background: #0e1115;
  font-size: 9.5px;
}

.asset-badges .asset-category {
  color: var(--ops-accent);
  border-color: rgba(125, 199, 240,, 0.15);
  background: rgba(125, 199, 240,, 0.04);
}

.asset-badges .visibility-badge.is-public {
  color: var(--ops-green);
  border-color: rgba(116, 211, 154, 0.14);
}

.asset-badges .visibility-badge.is-hidden {
  color: #a2a7b0;
}

.asset-description {
  display: -webkit-box;
  max-width: 850px;
  margin: 9px 0 0;
  overflow: hidden;
  color: #858b95;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.asset-description.is-empty {
  color: #555b65;
}

.asset-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.asset-actions a,
.asset-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  color: #9aa0a9;
  background: #15191f;
  font-size: 9.5px;
  font-weight: 650;
}

.asset-actions a:hover,
.asset-actions button:hover {
  color: var(--ops-text);
  border-color: #414854;
}

.asset-actions .asset-edit {
  color: var(--ops-accent-ink);
  border-color: var(--ops-accent);
  background: var(--ops-accent);
}

.asset-actions .asset-delete {
  margin-left: auto;
  color: var(--ops-red);
  border-color: rgba(244, 125, 120, 0.16);
  background: rgba(244, 125, 120, 0.04);
}

.vstatus {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 750;
}

.vstatus.ready {
  color: var(--ops-green);
  background: rgba(116, 211, 154, 0.08);
}

.vstatus.processing {
  color: var(--ops-blue);
  background: rgba(135, 174, 251, 0.08);
}

.vstatus.failed {
  color: var(--ops-red);
  background: rgba(244, 125, 120, 0.08);
}

.asset-processing {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  max-width: 520px;
  margin-top: 10px;
  color: var(--ops-blue);
  font-size: 9.5px;
}

.asset-processing .vmini-progress {
  grid-column: 1 / -1;
  margin: 0;
}

.asset-error {
  margin: 9px 0 0;
  color: var(--ops-red);
  font-size: 10px;
}

.asset-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 30px;
  border: 1px dashed var(--ops-line);
  border-radius: 16px;
  color: var(--ops-muted);
  text-align: center;
}

.asset-empty span {
  font-size: 16px;
  font-weight: 700;
}

.asset-empty strong {
  margin-top: -60px;
  color: #686e78;
  font-size: 11px;
  font-weight: 500;
}

/* Admin controls */
.admin-v2 .input,
.admin-v2 .textarea,
.admin-v2 .file,
.admin-v2 select.input {
  border-color: var(--ops-line);
  color: var(--ops-text);
  background: var(--ops-input);
}

.admin-v2 .input:focus,
.admin-v2 .textarea:focus,
.admin-v2 .file:focus,
.admin-v2 select.input:focus {
  border-color: rgba(125, 199, 240,, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 199, 240,, 0.08);
  background: #12161b;
}

.admin-v2 select.input option {
  background: #14171c;
}

.admin-v2 .field > span {
  color: var(--ops-soft);
  font-size: 11px;
}

.admin-v2 .field > span em {
  margin-left: 4px;
  color: var(--ops-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.admin-v2 .status.warning {
  color: var(--ops-accent);
}

/* Video editor drawer */
.editor-overlay,
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.editor-backdrop,
.confirm-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 8, 0.76);
  opacity: 0;
  transition: opacity 220ms ease;
}

.editor-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--ops-line);
  background: #101318;
  box-shadow: -30px 0 100px rgba(0, 0, 0, 0.48);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.editor-overlay.active .editor-backdrop,
.confirm-overlay.active .confirm-backdrop {
  opacity: 1;
}

.editor-overlay.active .editor-drawer {
  transform: translateX(0);
}

.editor-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--ops-line-soft);
  background: rgba(16, 19, 24, 0.96);
}

.editor-head > div {
  display: grid;
  line-height: 1.25;
}

.editor-head span {
  color: var(--ops-accent);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.editor-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  color: var(--ops-soft);
  background: #15191f;
  font-size: 24px;
  line-height: 1;
}

.editor-form {
  flex: 1 1 auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.editor-form-section {
  padding: 23px 24px;
  border-bottom: 1px solid var(--ops-line-soft);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.form-section-title > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 12px;
  color: var(--ops-accent-ink);
  background: var(--ops-accent);
  font-size: 10px;
  font-weight: 850;
}

.form-section-title > div {
  display: grid;
  line-height: 1.35;
}

.form-section-title strong {
  font-size: 12.5px;
}

.form-section-title small {
  margin-top: 2px;
  color: var(--ops-muted);
  font-size: 9.5px;
}

.editor-form .dropzone {
  margin: 0;
  border-color: #39404b;
  background: #0d1014;
}

.editor-form .dropzone:hover,
.editor-form .dropzone:focus-visible {
  border-color: var(--ops-accent);
  outline: none;
}

.editor-form .dz-empty {
  padding: 32px 20px;
}

.editor-form .form-grid {
  gap: 15px;
}

.editor-form .input {
  min-height: 45px;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 12px;
}

.editor-form .textarea {
  min-height: 92px;
}

.visibility-field {
  align-content: start;
}

.visibility-control {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  color: var(--ops-soft);
  background: var(--ops-input);
  cursor: pointer;
}

.visibility-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.visibility-control b {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: #343a44;
  transition: background 160ms ease;
}

.visibility-control b::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.visibility-control input:checked + b {
  background: var(--ops-green);
}

.visibility-control input:checked + b::after {
  transform: translateX(15px);
}

.visibility-control > span {
  font-size: 11px;
  font-weight: 650;
}

.editor-form .cover-card {
  margin: 0;
  padding: 14px;
  border-color: var(--ops-line);
  background: #0d1014;
}

.editor-form .cover-preview {
  background: #111419;
}

.editor-form .progress-panel {
  margin: 20px 24px;
  border-color: rgba(135, 174, 251, 0.2);
  background: rgba(135, 174, 251, 0.05);
}

.editor-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 15px 20px;
  border-top: 1px solid var(--ops-line);
  background: rgba(16, 19, 24, 0.96);
  backdrop-filter: blur(16px);
}

.editor-actions > div {
  align-self: center;
  min-width: 0;
}

.editor-actions .status {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Confirmation dialog */
.confirm-overlay {
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
}

.confirm-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  width: min(470px, 100%);
  padding: 23px;
  border: 1px solid var(--ops-line);
  border-radius: 22px;
  background: #171a20;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.confirm-overlay.active .confirm-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: var(--ops-red);
  background: rgba(244, 125, 120, 0.1);
  font-size: 19px;
  font-weight: 850;
}

.confirm-icon.is-neutral {
  color: var(--ops-blue);
  background: rgba(135, 174, 251, 0.1);
}

.confirm-dialog h2 {
  margin: 4px 0 7px;
  font-size: 19px;
  line-height: 1.35;
}

.confirm-dialog p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 12px;
  line-height: 1.6;
}

.confirm-dialog footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 7px;
}

/* Toasts */
.admin-v2 .toast-wrap {
  top: 18px;
  z-index: 200;
}

.admin-v2 .toast {
  border-color: var(--ops-line);
  color: var(--ops-text);
  background: rgba(25, 29, 35, 0.98);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.44);
  font-size: 12px;
}

/* Responsive admin */
@media (max-width: 1260px) {
  .featured-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-table-head,
  .category-record {
    grid-template-columns: 64px minmax(300px, 1fr) 72px 270px;
    gap: 12px;
  }

  .library-toolbar-main {
    grid-template-columns: minmax(240px, 1fr) minmax(350px, 0.9fr);
  }
}

@media (max-width: 980px) {
  .ops-app {
    display: block;
  }

  .ops-sidebar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    height: 64px;
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--ops-line-soft);
  }

  .ops-brand {
    min-height: 63px;
    padding: 0 16px 0 0;
    border: 0;
  }

  .ops-brand small {
    display: none;
  }

  .ops-nav {
    display: flex;
    justify-content: flex-end;
    gap: 3px;
    margin: 0;
    overflow-x: auto;
  }

  .ops-nav::before,
  .ops-sidebar-foot {
    display: none;
  }

  .ops-nav-item {
    flex: 0 0 auto;
    min-height: 63px;
    padding: 0 11px;
    border-radius: 0;
  }

  .ops-nav-item.active {
    border-color: transparent;
    background: transparent;
  }

  .ops-nav-item.active::before {
    top: auto;
    right: 8px;
    bottom: 0;
    left: 8px;
    width: auto;
    height: 2px;
    border-radius: 4px 4px 0 0;
  }

  .ops-commandbar {
    top: 64px;
  }

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

  .category-table-head {
    display: none;
  }

  .category-record {
    grid-template-columns: 56px minmax(0, 1fr) 70px;
  }

  .category-record-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .category-create {
    grid-template-columns: 38px 1fr auto;
  }

  .category-create > div:nth-child(2) {
    grid-column: 2 / -1;
  }

  .category-create .input {
    grid-column: 2;
  }

  .library-toolbar-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .auth-layout {
    padding: 14px;
  }

  .auth-copy,
  .auth-form {
    padding-right: 22px;
    padding-left: 22px;
  }

  .ops-sidebar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ops-brand > span {
    display: none;
  }

  .ops-brand {
    padding-right: 8px;
  }

  .ops-nav-item {
    min-width: 48px;
    justify-content: center;
    padding: 0 10px;
  }

  .ops-nav-item span {
    display: none;
  }

  .ops-commandbar {
    min-height: 68px;
    padding: 10px 14px;
  }

  .ops-commandbar > div:first-child {
    display: none;
  }

  .command-actions {
    width: 100%;
    justify-content: space-between;
  }

  .command-actions .ghost-button {
    padding: 0 12px;
  }

  .ops-content {
    padding: 24px 14px 72px;
  }

  .ops-welcome {
    align-items: start;
    flex-direction: column;
  }

  .ops-welcome h1 {
    font-size: 31px;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card strong {
    font-size: 26px;
  }

  .ops-section {
    border-radius: 18px;
  }

  .ops-section-head {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 16px;
  }

  .section-index {
    width: 36px;
    height: 36px;
  }

  .section-copy h2 {
    font-size: 19px;
  }

  .section-state,
  .section-upload {
    grid-column: 2;
    justify-self: start;
  }

  .featured-editor {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .featured-pick {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .featured-pick-preview {
    aspect-ratio: auto;
    min-height: 140px;
    border-right: 1px solid var(--ops-line-soft);
    border-bottom: 0;
  }

  .slot-number {
    top: 9px;
    left: -18px;
  }

  .featured-pick-body {
    align-self: center;
  }

  .section-savebar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-record {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 15px;
  }

  .category-definition {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-preview {
    display: none;
  }

  .category-volume {
    grid-column: 1;
    grid-row: 2;
  }

  .category-record-actions {
    grid-column: 2;
    flex-wrap: wrap;
  }

  .category-create {
    grid-template-columns: 36px minmax(0, 1fr);
    margin: 12px;
  }

  .category-create > div:nth-child(2),
  .category-create .input,
  .category-create .secondary-action {
    grid-column: 2;
  }

  .library-toolbar-main {
    padding: 12px;
  }

  .toolbar-filter-group {
    gap: 7px;
  }

  .toolbar-filter {
    grid-template-columns: 29px minmax(0, 1fr) 12px;
    gap: 8px;
    padding: 0 9px;
  }

  .toolbar-filter-icon {
    width: 29px;
    height: 29px;
  }

  .library-toolbar-meta {
    flex-wrap: wrap;
    padding: 9px 12px 10px;
  }

  .drag-scroll-feedback {
    right: 14px;
  }

  .reorder-notice {
    margin: 12px 12px 0;
  }

  .asset-list {
    padding: 12px;
  }

  .asset-item {
    grid-template-columns: 12px 78px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .asset-cover {
    width: 78px;
    height: 110px;
  }

  .asset-title-row {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .asset-title-row h3 {
    font-size: 14px;
  }

  .asset-description {
    display: none;
  }

  .asset-actions {
    grid-column: 1 / -1;
  }

  .asset-actions .asset-delete {
    margin-left: 0;
  }

  .editor-drawer {
    width: 100vw;
    max-width: none;
    border-left: 0;
  }

  .editor-form-section {
    padding: 20px 16px;
  }

  .editor-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .editor-form .field.full,
  .editor-form .cover-card,
  .editor-form .progress-panel {
    grid-column: auto;
  }

  .editor-form .cover-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .editor-actions {
    grid-template-columns: 1fr 1fr;
  }

  .editor-actions > div {
    grid-column: 1 / -1;
  }

  .confirm-dialog {
    padding: 19px;
  }
}

/* ========================================================================== 
   Mobile-first 3D showreel
   Only the active panel owns a video source. Side panels remain lightweight
   posters, giving the carousel depth without multiplying mobile downloads.
   ========================================================================== */

.client-site .client-hero-grid {
  grid-template-rows: auto auto;
  column-gap: clamp(48px, 6vw, 100px);
  row-gap: 0;
}

.client-site .client-hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.client-hero-lower {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.client-site .hero-reel {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  height: 630px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.client-site .hero-reel::before {
  top: 17%;
  right: 7%;
  width: 86%;
  height: 70%;
  opacity: 0.8;
}

.reel-stage {
  position: absolute;
  inset: 34px 0 82px;
  overflow: visible;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.reel-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(58%, 330px);
  height: 92%;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  text-align: left;
  background: #111315;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.64);
  opacity: 0;
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  transition:
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 440ms ease,
    filter 440ms ease,
    border-color 260ms ease,
    box-shadow 300ms ease;
}

.reel-panel[data-position="active"] {
  z-index: 5;
  opacity: 1;
  transform: translate(-50%, -50%) translateZ(92px) rotateY(0deg) scale(1);
}

.reel-panel[data-position="prev"] {
  z-index: 3;
  opacity: 0.5;
  filter: brightness(0.56) saturate(0.72);
  transform: translate(-103%, -50%) translateZ(-125px) rotateY(24deg) scale(0.82);
}

.reel-panel[data-position="next"] {
  z-index: 4;
  opacity: 0.58;
  filter: brightness(0.62) saturate(0.76);
  transform: translate(3%, -50%) translateZ(-115px) rotateY(-24deg) scale(0.82);
}

.reel-panel[data-position="far"] {
  z-index: 1;
  opacity: 0.15;
  filter: brightness(0.38) saturate(0.55);
  pointer-events: none;
  transform: translate(-50%, -50%) translateZ(-310px) rotateY(0) scale(0.68);
}

.reel-panel:hover {
  border-color: rgba(149, 218, 255,, 0.62);
}

.reel-panel[data-position="active"]:hover {
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.72), 0 0 52px rgba(115, 189, 232,, 0.09);
  transform: translate(-50%, -51.2%) translateZ(102px) scale(1.008);
}

.reel-panel[data-position="prev"]:hover {
  opacity: 0.7;
  filter: brightness(0.72) saturate(0.86);
  transform: translate(-101%, -51%) translateZ(-95px) rotateY(21deg) scale(0.84);
}

.reel-panel[data-position="next"]:hover {
  opacity: 0.76;
  filter: brightness(0.76) saturate(0.9);
  transform: translate(1%, -51%) translateZ(-85px) rotateY(-21deg) scale(0.84);
}

.reel-video,
.reel-poster,
.reel-card-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(145deg, #172024, #101113);
}

.reel-video {
  z-index: 0;
  opacity: 1;
}

.reel-poster {
  z-index: 1;
  opacity: 1;
  transition: opacity 420ms ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-panel.is-playing .reel-poster {
  opacity: 0;
}

.reel-panel[data-position="active"]:hover .reel-poster {
  transform: scale(1.025);
}

.reel-panel .reel-shade {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 35%);
}

.reel-panel .reel-sequence,
.reel-panel .reel-card-copy,
.reel-panel .reel-play,
.reel-panel .reel-live {
  z-index: 3;
}

.reel-panel .reel-sequence {
  top: 16px;
  left: 17px;
}

.reel-panel .reel-card-copy {
  right: 18px;
  bottom: 22px;
  left: 18px;
}

.reel-panel .reel-card-copy strong {
  font-size: clamp(17px, 1.65vw, 22px);
}

.reel-live {
  position: absolute;
  top: 13px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(3, 4, 5, 0.42);
  backdrop-filter: blur(10px);
  font-size: 8px;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.reel-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #81e1a8;
  box-shadow: 0 0 9px rgba(129, 225, 168, 0.7);
}

.reel-panel.is-playing .reel-live {
  opacity: 1;
  transform: translateY(0);
}

.reel-panel .reel-play {
  opacity: 0;
}

.reel-panel[data-position="active"]:not(.is-playing):hover .reel-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reel-panel[data-position="prev"] .reel-card-copy,
.reel-panel[data-position="next"] .reel-card-copy,
.reel-panel[data-position="prev"] .reel-live,
.reel-panel[data-position="next"] .reel-live {
  opacity: 0;
}

.reel-controller {
  position: absolute;
  right: 4%;
  bottom: 29px;
  left: 7%;
  z-index: 9;
  display: grid;
  grid-template-columns: 34px auto minmax(60px, 1fr) 34px;
  align-items: center;
  gap: 13px;
}

.reel-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--client-line-strong);
  border-radius: 50%;
  color: var(--client-soft);
  background: rgba(255, 255, 255, 0.025);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.reel-arrow:hover {
  color: #111;
  border-color: var(--client-accent-bright);
  background: var(--client-accent-bright);
  transform: scale(1.06);
}

.reel-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.reel-dots button {
  display: grid;
  place-items: center;
  width: 19px;
  height: 30px;
  padding: 0;
  background: transparent;
}

.reel-dots button span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  transition: width 220ms ease, border-radius 220ms ease, background 220ms ease;
}

.reel-dots button.active span {
  width: 16px;
  border-radius: 999px;
  background: var(--client-accent-bright);
}

.reel-progress {
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.reel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #3775ad, var(--client-accent-bright));
}

.client-site .reel-caption {
  right: 4%;
  bottom: 0;
  gap: 14px;
}

@keyframes reelProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 1180px) and (min-width: 941px) {
  .client-site .hero-reel {
    height: 590px;
  }

  .reel-panel {
    width: min(60%, 300px);
  }

  .reel-panel[data-position="prev"] {
    transform: translate(-100%, -50%) translateZ(-120px) rotateY(24deg) scale(0.8);
  }

  .reel-panel[data-position="next"] {
    transform: translate(0, -50%) translateZ(-110px) rotateY(-24deg) scale(0.8);
  }
}

@media (max-width: 940px) {
  .client-site .client-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 0;
  }

  .client-site .client-hero-copy,
  .client-site .hero-reel,
  .client-hero-lower {
    grid-column: 1;
    grid-row: auto;
  }

  .client-site .client-hero-copy {
    align-self: auto;
  }

  .client-site .hero-reel {
    width: min(620px, 100%);
    height: 640px;
    margin: 34px auto 0;
  }

  .client-hero-lower {
    width: min(620px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .client-site .client-hero-grid {
    padding-bottom: 54px;
  }

  .client-site .hero-reel {
    width: 100%;
    height: 510px;
    margin-top: 24px;
  }

  .reel-stage {
    inset: 27px -3px 76px;
    perspective: 820px;
  }

  .reel-panel {
    width: min(70%, 274px);
    height: 94%;
    border-radius: 10px;
  }

  .reel-panel[data-position="active"] {
    transform: translate(-50%, -50%) translateZ(70px) scale(1);
  }

  .reel-panel[data-position="prev"] {
    opacity: 0.44;
    transform: translate(-103%, -50%) translateZ(-100px) rotateY(27deg) scale(0.78);
  }

  .reel-panel[data-position="next"] {
    opacity: 0.52;
    transform: translate(3%, -50%) translateZ(-90px) rotateY(-27deg) scale(0.78);
  }

  .reel-panel[data-position="far"] {
    transform: translate(-50%, -50%) translateZ(-260px) scale(0.64);
  }

  .reel-panel[data-position="active"]:hover {
    transform: translate(-50%, -50%) translateZ(70px) scale(1);
  }

  .reel-panel .reel-card-copy {
    right: 14px;
    bottom: 17px;
    left: 14px;
  }

  .reel-panel .reel-card-copy small {
    display: block;
  }

  .reel-panel .reel-card-copy strong {
    font-size: 17px;
  }

  .reel-panel .reel-play {
    display: grid;
    width: 46px;
    height: 46px;
  }

  .reel-live {
    top: 10px;
    right: 10px;
  }

  .reel-controller {
    right: 1%;
    bottom: 28px;
    left: 1%;
    grid-template-columns: 32px auto minmax(36px, 1fr) 32px;
    gap: 9px;
  }

  .reel-arrow {
    width: 32px;
    height: 32px;
  }

  .client-site .reel-caption {
    right: 1%;
    bottom: 1px;
    left: 1%;
    justify-content: space-between;
  }

  .client-site .reel-caption strong {
    font-size: 9px;
  }

  .client-hero-lower .client-hero-actions {
    margin-top: 4px;
  }

  .client-hero-lower .client-metrics {
    margin-top: 32px;
  }
}

@media (max-width: 390px) {
  .client-site .hero-reel {
    height: 486px;
  }

  .reel-stage {
    right: -5px;
    left: -5px;
  }

  .reel-panel {
    width: min(69%, 250px);
  }

  .reel-controller {
    grid-template-columns: 30px auto minmax(24px, 1fr) 30px;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel-panel {
    transition-duration: 1ms;
  }

  .reel-progress span {
    animation: none !important;
  }
}

/* ========================================================================== 
   Showreel comfort pass
   Softer geometry, finger-follow drag feedback and a rounded visual language.
   ========================================================================== */

.client-site [hidden] {
  display: none !important;
}

.client-site .nav-cta,
.client-site .client-button {
  border-radius: 18px;
}

.client-site .client-button.primary {
  box-shadow: 0 16px 46px rgba(71, 151, 206,, 0.18);
}

.client-site .reel-stage {
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: translate3d(0, 0, 0);
}

.client-site .reel-stage.is-dragging {
  cursor: grabbing;
  transition: none;
}

.client-site .reel-stage.is-settling {
  transition: transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.client-site .reel-panel {
  overflow: hidden;
  border-radius: 28px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.54),
    0 2px 0 rgba(255, 255, 255, 0.05) inset;
  transition:
    transform 920ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 620ms ease,
    border-color 320ms ease,
    box-shadow 380ms ease;
}

.client-site .reel-panel[data-position="active"] {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%) translateZ(96px) rotateY(0deg) scale(1);
}

.client-site .reel-panel[data-position="prev"] {
  opacity: 0.48;
  filter: brightness(0.6) saturate(0.78) blur(0.2px);
  transform: translate(-101%, -50%) translateZ(-118px) rotateY(19deg) scale(0.83);
}

.client-site .reel-panel[data-position="next"] {
  opacity: 0.56;
  filter: brightness(0.66) saturate(0.82) blur(0.2px);
  transform: translate(1%, -50%) translateZ(-108px) rotateY(-19deg) scale(0.83);
}

.client-site .reel-panel[data-position="far"] {
  border-radius: 26px;
  transform: translate(-50%, -50%) translateZ(-300px) scale(0.7);
}

.client-site .reel-panel[data-position="active"]:hover {
  transform: translate(-50%, -50.7%) translateZ(102px) scale(1.004);
}

.client-site .reel-panel[data-position="prev"]:hover {
  transform: translate(-100%, -50%) translateZ(-100px) rotateY(18deg) scale(0.84);
}

.client-site .reel-panel[data-position="next"]:hover {
  transform: translate(0, -50%) translateZ(-90px) rotateY(-18deg) scale(0.84);
}

.client-site .reel-video,
.client-site .reel-poster,
.client-site .reel-shade {
  border-radius: inherit;
}

.client-site .reel-controller {
  right: 6%;
  bottom: 25px;
  left: 6%;
  gap: 11px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(12, 13, 15, 0.58);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

.client-site .reel-arrow {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.client-site .reel-caption {
  right: 7%;
  left: 7%;
}

.client-site .client-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--client-line);
  border-radius: 20px;
}

.client-site .client-tabs .category-tab {
  min-height: 60px;
}

.client-site .category-directory {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 0;
}

.client-site .directory-card {
  border: 1px solid var(--client-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.018);
}

.client-site .directory-card::before {
  top: 22px;
  bottom: 22px;
  left: 0;
  border-radius: 0 6px 6px 0;
}

.client-site .directory-arrow {
  border-radius: 16px;
}

.client-site .client-work-card,
.client-site .work-skeleton,
.client-site .client-empty {
  border-radius: 24px;
}

.client-site .client-work-card::before,
.client-site .client-work-card::after {
  border-radius: inherit;
}

.client-site .client-work-card .thumb,
.client-site .client-work-card .preview-video,
.client-site .client-work-card .preview-poster {
  border-radius: inherit;
}

.client-site .viewer-shell {
  border-radius: 28px;
}

.viewer-buffering {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(5, 6, 7, 0.64);
  opacity: 0;
  transform: translate(-50%, -38%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease;
}

.viewer-buffering i {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--client-accent-bright);
  border-radius: 50%;
  animation: viewerSpin 700ms linear infinite;
}

.viewer-buffering b {
  font-size: 10px;
  font-weight: 520;
  letter-spacing: 0.06em;
}

.viewer.is-buffering .viewer-buffering {
  opacity: 1;
  transform: translate(-50%, -50%);
}

@keyframes viewerSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 940px) {
  .client-site .category-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .client-site .reel-panel {
    border-radius: 26px;
    transition:
      transform 860ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 560ms ease,
      border-color 280ms ease,
      box-shadow 320ms ease;
  }

  .client-site .reel-panel[data-position="active"] {
    transform: translate(-50%, -50%) translateZ(72px) scale(1);
  }

  .client-site .reel-panel[data-position="prev"] {
    transform: translate(-101%, -50%) translateZ(-96px) rotateY(21deg) scale(0.79);
  }

  .client-site .reel-panel[data-position="next"] {
    transform: translate(1%, -50%) translateZ(-88px) rotateY(-21deg) scale(0.79);
  }

  .client-site .reel-panel[data-position="active"]:hover {
    transform: translate(-50%, -50%) translateZ(72px) scale(1);
  }

  .client-site .reel-controller {
    right: 0;
    bottom: 23px;
    left: 0;
  }

  .client-site .client-tabs {
    width: 100%;
    margin-right: 0;
    border-radius: 18px;
  }

  .client-site .category-directory {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .client-site .directory-card {
    border-radius: 20px;
  }

  .client-site .client-work-card,
  .client-site .work-skeleton,
  .client-site .client-empty {
    border-radius: 18px;
  }

  .client-site .viewer-shell {
    border-radius: 26px 26px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viewer-buffering i {
    animation: none;
  }
}

/* ==========================================================================
   ZHENSU glass material pass (appended overrides)
   Frosted translucency, hairline highlights and larger Apple-style radii for
   bars, cards, buttons, tabs and dialogs. Same selectors as above, so these
   later rules win where the cascade ties.
   ========================================================================== */

.client-site .client-topbar.is-scrolled {
  background: rgba(5, 8, 15, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 18px 50px rgba(0, 0, 0, 0.35);
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.client-button {
  border-radius: 999px;
}

.client-button.ghost {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
}

/* Category directory: hairline grid -> floating glass cards */
.category-directory {
  gap: 16px;
  border-top: 0;
  border-left: 0;
}

.directory-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.directory-card:hover,
.directory-card.active {
  background: rgba(125, 211, 252, 0.07);
  border-color: rgba(125, 211, 252, 0.22);
}

.directory-arrow {
  border-radius: 999px;
}

.category-directory-empty {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

/* Category tabs: underline segmented bar -> frosted pill group */
.client-site .client-tabs {
  gap: 6px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.client-site .client-tabs .category-tab,
.client-site .client-tabs .category-tab:first-of-type {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.client-site .client-tabs .category-indicator {
  top: 0;
  bottom: 0;
  height: 100% !important;
  border-radius: 999px;
  background: var(--grad-accent);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

/* Video cards */
.video-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
}

/* Player overlay */
.viewer-shell {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background: rgba(8, 11, 18, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: 0 40px 130px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Shared buttons & inputs */
.mini-button,
.auth-submit {
  border-radius: 999px;
}

.input,
.textarea,
.file,
select.input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.input:focus,
.textarea:focus,
.file:focus,
select.input:focus {
  background: rgba(125, 211, 252, 0.06);
}

/* Admin workspace */
body.admin-v2 {
  background:
    radial-gradient(ellipse at 85% -10%, rgba(56, 189, 248, 0.1), transparent 46%),
    radial-gradient(ellipse at -10% 115%, rgba(14, 165, 233, 0.07), transparent 42%),
    var(--ops-bg);
}

.auth-card {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(16, 20, 28, 0.72);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 34px 100px rgba(0, 0, 0, 0.5);
}

.ops-sidebar {
  background: rgba(10, 13, 20, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
}

.stat-card,
.ops-section,
.featured-pick,
.category-create,
.reorder-notice {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 40px rgba(0, 0, 0, 0.25);
}

.asset-item {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.primary-action,
.secondary-action,
.ghost-button,
.danger-action {
  border-radius: 999px;
}

.primary-action {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 26px rgba(56, 189, 248, 0.22);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.search-box,
.toolbar-filter,
.dropzone {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.editor-drawer {
  background: rgba(13, 17, 25, 0.86);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.07), -30px 0 90px rgba(0, 0, 0, 0.5);
}

.confirm-dialog {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 20, 28, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 30px 90px rgba(0, 0, 0, 0.55);
}

.toast {
  background: rgba(16, 20, 28, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
}
