:root {
  --bg: #0a0c10;
  --bg-elev: #11151d;
  --bg-card: #131822;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(232, 184, 120, 0.45);
  --text: #f3f1ec;
  --text-muted: #9aa3b2;
  --text-dim: #6e7787;
  --accent: #e8b878;
  --accent-soft: rgba(232, 184, 120, 0.14);
  --live: #6be3b7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.ambient-glow {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 420px at 18% 12%, rgba(232, 184, 120, 0.11), transparent 70%),
    radial-gradient(640px 460px at 82% 18%, rgba(107, 227, 183, 0.07), transparent 72%);
}

.container {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

/* Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 12, 16, 0.78);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(232, 184, 120, 0.75);
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.brand-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--accent);
  color: #14110c;
  box-shadow: 0 8px 26px rgba(232, 184, 120, 0.24);
}

.btn-primary:hover {
  background: #f0c78d;
  box-shadow: 0 10px 30px rgba(232, 184, 120, 0.34);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Hero Section */
.hero {
  padding: 46px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 410px);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--live);
  box-shadow: 0 0 10px rgba(107, 227, 183, 0.85);
  animation: pulse 2.2s ease-in-out infinite;
}

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

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.1vw, 3.35rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-desc {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 58ch;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.stat {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.stat-val {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero Featured Dynamic Stage */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.3s ease;
}

.stage-frame:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.stage-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stage-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: var(--text);
}

.stage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 16px;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.92), rgba(10, 12, 16, 0.38) 65%, transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.stage-title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
}

.stage-sub {
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.stage-open-hint {
  white-space: nowrap;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 600;
}

.stage-dots {
  display: flex;
  gap: 8px;
}

.stage-dot {
  width: 26px;
  height: 5px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}

.stage-dot.active {
  width: 42px;
  background: var(--accent);
}

/* Gallery Controls */
.gallery-section {
  padding: 18px 0 72px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.8);
  border: 1px solid var(--border);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.pill.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(232, 184, 120, 0.35);
}

.pill .count {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  opacity: 0.8;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.toggle-btn[aria-pressed="false"] .live-dot {
  background: var(--text-dim);
  box-shadow: none;
  animation: none;
}

/* 4-Column Responsive Card Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0d1016;
  overflow: hidden;
}

.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.card:hover .card-media video {
  transform: scale(1.025);
}

.card-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.card-num {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
}

.card-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(107, 227, 183, 0.28);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--live);
  letter-spacing: 0.05em;
}

.card-live.paused {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
}

.card-live.paused .live-dot {
  background: var(--text-dim);
  box-shadow: none;
  animation: none;
}

.card-body {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-struct {
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 600;
}

.card-season {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.card-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text);
}

.card-motion {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Open Source Section */
.opensource-section {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 21, 29, 0.55), transparent);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.pipe-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.pipe-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.pipe-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.pipe-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  color: #f6dcb2;
}

.quickstart-box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d1017;
  margin-bottom: 24px;
}

.qs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.quickstart-box pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
}

.quickstart-box pre code {
  background: transparent;
  padding: 0;
  color: #e6ecf5;
  font-size: 0.88rem;
  line-height: 1.65;
}

.copy-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
  background: rgba(232, 184, 120, 0.16);
  border-color: rgba(232, 184, 120, 0.4);
  color: var(--accent);
}

.release-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232, 184, 120, 0.12), rgba(107, 227, 183, 0.06));
  border: 1px solid rgba(232, 184, 120, 0.28);
}

.release-banner h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.release-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 34px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer a:hover {
  color: var(--accent);
}

/* Lightbox Modal */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 11, 0.90);
  backdrop-filter: blur(14px);
}

.lb-dialog {
  position: relative;
  z-index: 2;
  width: min(1680px, 97vw);
  height: 94vh;
  max-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 390px);
  background: #11151d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72);
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 16, 0.76);
  color: var(--text);
  font-size: 1rem;
}

.lb-close:hover {
  background: rgba(232, 184, 120, 0.22);
  border-color: var(--accent);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 12, 16, 0.74);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

.lb-nav:hover {
  background: rgba(232, 184, 120, 0.25);
  border-color: var(--accent);
}

.lb-prev { left: 14px; }
.lb-next { right: 14px; }

.lb-media {
  position: relative;
  background: #080a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100%;
  min-height: 600px;
}

.lb-media video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.lb-media video[hidden],
.lb-3d-wrap[hidden],
.loader-overlay[hidden] {
  display: none !important;
}

/* Interactive 3D Stage & Controls */
.stage-3d {
  cursor: grab;
}

.stage-3d:active {
  cursor: grabbing;
}

.stage-3d:hover {
  transform: none;
}

.canvas-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.three-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  outline: none;
}

.loader-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(6px);
  color: var(--text-muted);
  font-size: 0.84rem;
  pointer-events: none;
}

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2.5px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stage-expand-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.stage-expand-btn:hover {
  background: rgba(232, 184, 120, 0.2);
  border-color: var(--accent);
}

.drag-hint {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.74rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.drag-hint.faded {
  opacity: 0;
}

.stage-caption-3d {
  pointer-events: none;
}

.stage-reset-mini {
  pointer-events: auto;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 16, 0.75);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.stage-reset-mini:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-tip {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.lb-mode-bar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mode-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.mode-pill.active {
  background: var(--accent);
  color: #14110c;
}

.lb-3d-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  cursor: grab;
}

.lb-3d-wrap:active {
  cursor: grabbing;
}

.lb-3d-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.ctrl-chip {
  pointer-events: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 16, 0.76);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ctrl-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.ctrl-chip.active {
  background: rgba(232, 184, 120, 0.18);
  border-color: rgba(232, 184, 120, 0.55);
  color: var(--accent);
}

.ctrl-hint {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.62);
  color: var(--text-dim);
  font-size: 0.72rem;
}

.lb-info {
  padding: 28px 54px 28px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lb-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lb-id {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}

.lb-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.lb-season {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.lb-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.3;
}

.lb-en {
  margin: -10px 0 0;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.lb-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.lb-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.lb-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lb-spec {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.lb-spec span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.lb-spec strong {
  display: block;
  font-size: 0.82rem;
  margin-top: 2px;
  color: var(--text);
}

.lb-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0a0d13;
  border: 1px solid var(--border);
}

.lb-cmd code {
  background: transparent;
  padding: 0;
  color: #e6ecf5;
  font-size: 0.72rem;
  overflow-x: auto;
  white-space: nowrap;
}

.lb-cmd .copy-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.lb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
  }
  .lb-dialog {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 370px);
  }
}

@media (max-width: 860px) {
  .brand-sub, .nav-link {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
  .lb-dialog {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 94vh;
    overflow-y: auto;
  }
  .lb-media {
    min-height: 420px;
    height: 58vh;
    max-height: 62vh;
  }
  .lb-3d-wrap {
    min-height: 420px;
  }
  .toolbar-tip, .ctrl-hint {
    display: none;
  }
  .lb-media video {
    max-height: 62vh;
  }
  .lb-info {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1320px, calc(100% - 24px));
  }
  .topbar-actions .btn-outline {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .lb-specs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
