:root {
  --ink: #132033;
  --ink-soft: #243447;
  --navy: #0b1628;
  --ice: #5ec8ff;
  --ice-deep: #2a9fd6;
  --mesh: rgba(94, 200, 255, 0.12);
  --glow: rgba(94, 200, 255, 0.28);
  --muted: #5d7088;
  --line: rgba(19, 32, 51, 0.1);
  --line-strong: rgba(94, 200, 255, 0.28);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #f7fafc;
  --side: #070e1a;
  --side-hover: rgba(255, 255, 255, 0.05);
  --side-active: rgba(94, 200, 255, 0.14);
  --shadow: 0 18px 48px rgba(11, 22, 40, 0.1);
  --shadow-soft: 0 12px 32px rgba(11, 22, 40, 0.06);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --side-w: 248px;
  --tap: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --font-display: "Syne", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  /* legacy aliases used in older rules */
  --blue: var(--ice-deep);
  --blue-deep: #1a6f9a;
}

@font-face {
  font-family: "Syne";
  src: url("./assets/fonts/syne-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("./assets/fonts/syne-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: #eef3f8;
  line-height: 1.6;
  position: relative;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.is-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% -12%, rgba(148, 210, 255, 0.45) 0%, transparent 58%),
    radial-gradient(720px 380px at 4% 22%, rgba(186, 220, 245, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, #e8f0f7 0%, #f4f7fa 42%, #fafcfe 100%);
}

.atmosphere-mesh {
  position: absolute;
  inset: -10% -5%;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(19, 32, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 51, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(900px) rotateX(58deg) scale(1.35);
  transform-origin: center top;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

.atmosphere-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.atmosphere-glow-a {
  width: 420px;
  height: 420px;
  top: 8%;
  right: 12%;
  background: rgba(94, 200, 255, 0.22);
}

.atmosphere-glow-b {
  width: 360px;
  height: 360px;
  bottom: 12%;
  left: 18%;
  background: rgba(42, 159, 214, 0.12);
}

a { color: var(--ice-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.app {
  position: relative;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* —— Sidebar —— */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(94, 200, 255, 0.16) 0%, transparent 55%),
    radial-gradient(90% 50% at 0% 100%, rgba(124, 92, 255, 0.12) 0%, transparent 50%),
    linear-gradient(165deg, #0a1424 0%, #0b1628 42%, #0e1c32 100%);
  color: #e8eefc;
  padding: 18px 12px 16px;
  z-index: 20;
  overflow: hidden;
  border-right: 1px solid rgba(94, 200, 255, 0.1);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.sidebar-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sidebar-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
}

.sidebar-orb-a {
  width: 160px;
  height: 160px;
  top: -30px;
  right: -40px;
  background: rgba(94, 200, 255, 0.22);
}

.sidebar-orb-b {
  width: 140px;
  height: 140px;
  bottom: 8%;
  left: -50px;
  background: rgba(124, 92, 255, 0.16);
}

.sidebar-dots {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(148, 210, 255, 0.55) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

.sidebar-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.side-brand,
.side-nav,
.side-foot {
  position: relative;
  z-index: 1;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 16px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.side-brand:hover { text-decoration: none; }

.side-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.side-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.side-brand em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(232, 238, 252, 0.5);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.side-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--tap);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(232, 238, 252, 0.78);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  padding: 8px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .side-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(94, 200, 255, 0.12);
  }
}

.side-item.active {
  background: linear-gradient(105deg, rgba(94, 200, 255, 0.18) 0%, rgba(124, 92, 255, 0.1) 100%);
  color: #fff;
  font-weight: 700;
  border-color: rgba(94, 200, 255, 0.22);
  box-shadow: inset 2px 0 0 var(--ice), 0 8px 20px rgba(0, 0, 0, 0.18);
}

.side-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #9ad9ff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(145deg, rgba(94, 200, 255, 0.22), rgba(11, 22, 40, 0.35));
  border: 1px solid rgba(94, 200, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.side-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.side-cat-home .side-icon { color: #d7ecff; }
.side-cat-whitepaper .side-icon {
  color: #7ed4ff;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.2), transparent 45%), linear-gradient(145deg, rgba(94,200,255,.28), rgba(11,22,40,.3));
}
.side-cat-biz-plan .side-icon {
  color: #6ee7b7;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(52,211,153,.28), rgba(11,22,40,.3));
  border-color: rgba(52, 211, 153, 0.28);
}
.side-cat-faq .side-icon {
  color: #fcd34d;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(251,191,36,.28), rgba(11,22,40,.3));
  border-color: rgba(251, 191, 36, 0.28);
}
.side-cat-license .side-icon {
  color: #c4b5fd;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(167,139,250,.28), rgba(11,22,40,.3));
  border-color: rgba(167, 139, 250, 0.28);
}
.side-cat-studio .side-icon,
.side-cat-one-pager .side-icon {
  color: #ddd6fe;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(124,92,255,.3), rgba(11,22,40,.3));
  border-color: rgba(124, 92, 255, 0.3);
}
.side-cat-promo-video .side-icon,
.side-cat-market-video .side-icon {
  color: #7dd3fc;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(14,165,233,.28), rgba(11,22,40,.3));
  border-color: rgba(14, 165, 233, 0.28);
}
.side-cat-tutorial .side-icon {
  color: #f9a8d4;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(244,114,182,.26), rgba(11,22,40,.3));
  border-color: rgba(244, 114, 182, 0.26);
}
.side-cat-announce .side-icon {
  color: #fda4af;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(251,113,133,.26), rgba(11,22,40,.3));
  border-color: rgba(251, 113, 133, 0.26);
}
.side-cat-intro .side-icon {
  color: #99f6e4;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(45,212,191,.26), rgba(11,22,40,.3));
  border-color: rgba(45, 212, 191, 0.26);
}
.side-cat-roadmap .side-icon {
  color: #fdba74;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(251,146,60,.26), rgba(11,22,40,.3));
  border-color: rgba(251, 146, 60, 0.26);
}
.side-cat-media-news .side-icon {
  color: #93c5fd;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(96,165,250,.26), rgba(11,22,40,.3));
  border-color: rgba(96, 165, 250, 0.26);
}
.side-cat-i18n .side-icon {
  color: #a5b4fc;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(129,140,248,.26), rgba(11,22,40,.3));
  border-color: rgba(129, 140, 248, 0.26);
}
.side-cat-poc .side-icon {
  color: #86efac;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(145deg, rgba(74,222,128,.26), rgba(11,22,40,.3));
  border-color: rgba(74, 222, 128, 0.26);
}

.side-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-count {
  font-size: 0.72rem;
  color: rgba(232, 238, 252, 0.4);
  font-variant-numeric: tabular-nums;
}

.side-item.active .side-count {
  color: rgba(255, 255, 255, 0.7);
}

.side-foot {
  padding: 12px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  font-size: 0.8rem;
}

.side-foot a {
  color: rgba(148, 210, 255, 0.9);
  text-decoration: none;
}

.side-foot a:hover { text-decoration: underline; }

/* —— Main —— */
.main {
  min-width: 0;
  padding: 24px 32px 64px;
  width: min(100%, 1140px);
  margin: 0 auto;
}

.main-bar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding: 8px 4px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: rise 0.55s var(--ease) both;
}

.main-bar.is-brand {
  padding-bottom: 22px;
  margin-bottom: 8px;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: 12px;
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-soft);
}

.main-bar-text { flex: 1; min-width: 0; }

.brand-kicker {
  display: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ice-deep);
  margin-bottom: 8px;
}

.main-bar.is-brand .brand-kicker { display: block; }

.main-bar-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.main-bar.is-brand .main-bar-text h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.main-bar-text p#view-desc {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 8px;
  max-width: 36rem;
}

.main-bar.is-brand .main-bar-text p#view-desc {
  font-size: 1.02rem;
  margin-top: 10px;
}

.main-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s var(--ease), background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .chip:hover {
    border-color: var(--line-strong);
    background: #fff;
    text-decoration: none;
    transform: translateY(-1px);
  }
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 16px;
  padding: 12px 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: rise 0.6s var(--ease) 0.04s both;
}

.search-row input {
  flex: 1;
  min-width: 200px;
  max-width: 440px;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  color: var(--navy);
  outline: none;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-row input:focus {
  border-color: rgba(94, 200, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(94, 200, 255, 0.16);
}

.meta-row {
  color: var(--muted);
  font-size: 0.84rem;
}

.toolbar {
  margin-bottom: 16px;
  animation: rise 0.65s var(--ease) 0.06s both;
}

.media-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.84rem;
  min-height: var(--tap);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .filter-chip:hover { border-color: var(--line-strong); }
}

.filter-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.view-pane {
  animation: fadeIn 0.28s var(--ease) both;
}

/* —— Home hub —— */
.home-hub {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 8px;
  animation: rise 0.65s var(--ease) both;
}

.hub-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 6vw, 36px) clamp(20px, 5vw, 32px);
  background:
    linear-gradient(135deg, rgba(11, 22, 40, 0.96) 0%, rgba(18, 42, 68, 0.92) 52%, rgba(42, 159, 214, 0.22) 100%);
  color: #eef6ff;
  border: 1px solid rgba(94, 200, 255, 0.18);
  box-shadow: 0 24px 56px rgba(11, 22, 40, 0.18);
}

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

.hub-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.hub-orb-a {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -20px;
  background: rgba(94, 200, 255, 0.35);
}

.hub-orb-b {
  width: 140px;
  height: 140px;
  bottom: -30px;
  left: 10%;
  background: rgba(42, 159, 214, 0.28);
}

.hub-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
}

.hub-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  color: rgba(94, 200, 255, 0.6);
}

.hub-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hub-hero-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(148, 220, 255, 0.88);
  margin-bottom: 10px;
}

.hub-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hub-hero-desc {
  font-size: clamp(0.92rem, 3.5vw, 1.02rem);
  color: rgba(232, 244, 255, 0.82);
  max-width: 36ch;
  margin-bottom: 18px;
}

.hub-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 0.84rem;
  color: rgba(220, 236, 252, 0.78);
}

.hub-stat strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05em;
}

.hub-stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(94, 200, 255, 0.55);
}

.hub-hero-blog {
  margin: 16px 0 0;
  font-size: 0.92rem;
}

.hub-hero-blog a {
  color: rgba(148, 220, 255, 0.95);
  text-decoration: none;
}

.hub-hero-blog a:hover {
  text-decoration: underline;
}

.hub-section {
  animation: rise 0.65s var(--ease) both;
}

.hub-section-docs { animation-delay: 0.04s; }
.hub-section-studio { animation-delay: 0.08s; }
.hub-section-explore { animation-delay: 0.12s; }

.hub-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hub-section-head-row {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.hub-section-head-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hub-section-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--ice-deep);
  background: rgba(94, 200, 255, 0.12);
  border: 1px solid rgba(94, 200, 255, 0.22);
}

.hub-section-icon svg {
  width: 28px;
  height: 28px;
}

.hub-section-icon-studio {
  color: #7c5cff;
  background: rgba(124, 92, 255, 0.1);
  border-color: rgba(124, 92, 255, 0.22);
}

.hub-section-icon-explore {
  color: var(--ink-soft);
  background: rgba(19, 32, 51, 0.06);
  border-color: rgba(19, 32, 51, 0.08);
}

.hub-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  line-height: 1.2;
  color: var(--ink);
}

.hub-section-sub {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 2px;
}

.hub-section-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ice-deep);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(94, 200, 255, 0.1);
  border: 1px solid rgba(94, 200, 255, 0.2);
  text-decoration: none;
  white-space: nowrap;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.hub-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-section-link-alt {
  background: rgba(124, 92, 255, 0.1);
  border-color: rgba(124, 92, 255, 0.22);
  color: #6d4ce6;
}

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

.hub-doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 16px;
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 248, 255, 0.9) 100%);
  border: 1px solid rgba(19, 32, 51, 0.07);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 168px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.hub-doc-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hub-doc-art {
  position: absolute;
  right: -6px;
  top: -4px;
  width: 68%;
  height: 100%;
  opacity: 0.95;
}

.hub-doc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(19, 32, 51, 0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(135deg, transparent 30%, rgba(0,0,0,.8) 100%);
}

.hub-doc-whitepaper {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(94, 200, 255, 0.28), transparent 55%),
    linear-gradient(160deg, #f7fbff 0%, #e8f5fc 100%);
  border-color: rgba(42, 159, 214, 0.18);
}

.hub-doc-biz-plan {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(52, 211, 153, 0.26), transparent 55%),
    linear-gradient(160deg, #f4fdf8 0%, #e8f8f0 100%);
  border-color: rgba(16, 185, 129, 0.18);
}

.hub-doc-faq {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(251, 191, 36, 0.28), transparent 55%),
    linear-gradient(160deg, #fffdf5 0%, #fef6e0 100%);
  border-color: rgba(245, 158, 11, 0.2);
}

.hub-doc-license {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(167, 139, 250, 0.28), transparent 55%),
    linear-gradient(160deg, #f8f5ff 0%, #efe9ff 100%);
  border-color: rgba(124, 92, 255, 0.2);
}

.hub-doc-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--ice-deep);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 50%),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 159, 214, 0.18);
  box-shadow: 0 8px 18px rgba(11, 22, 40, 0.08);
}

.hub-doc-whitepaper .hub-doc-icon { color: #1d8fbf; border-color: rgba(42, 159, 214, 0.22); }
.hub-doc-biz-plan .hub-doc-icon { color: #059669; border-color: rgba(16, 185, 129, 0.22); }
.hub-doc-faq .hub-doc-icon { color: #d97706; border-color: rgba(245, 158, 11, 0.24); }
.hub-doc-license .hub-doc-icon { color: #6d4ce6; border-color: rgba(124, 92, 255, 0.24); }

.hub-doc-icon svg {
  width: 28px;
  height: 28px;
}

.hub-doc-body,
.hub-doc-count,
.hub-doc-arrow {
  position: relative;
  z-index: 1;
}

.hub-doc-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.hub-doc-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
}

.hub-doc-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-doc-count {
  font-size: 0.76rem;
  color: var(--ice-deep);
  font-weight: 600;
  margin-top: auto;
}

.hub-doc-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ice-deep);
  font-size: 1rem;
  border: 1px solid rgba(42, 159, 214, 0.18);
  box-shadow: 0 6px 14px rgba(11, 22, 40, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .hub-doc-card:hover,
  .hub-explore-tile:hover,
  .hub-studio-card:hover,
  .hub-section-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(94, 200, 255, 0.28);
    text-decoration: none;
  }
}

.hub-studio-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hub-studio-track::-webkit-scrollbar { display: none; }

.hub-studio-card {
  flex: 0 0 min(72vw, 240px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(19, 32, 51, 0.07);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hub-studio-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(145deg, rgba(124, 92, 255, 0.08), rgba(94, 200, 255, 0.12)),
    #eef4f9;
  overflow: hidden;
}

.hub-studio-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-studio-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
}

.hub-studio-fallback span {
  display: block;
  width: 48%;
  height: 8px;
  border-radius: 999px;
  background: rgba(19, 32, 51, 0.08);
}

.hub-studio-fallback span:last-child { width: 32%; }

.hub-studio-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-studio-tag {
  font-size: 0.72rem;
  color: #7c5cff;
  font-weight: 600;
}

.hub-studio-title {
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.play-sm {
  width: 44px !important;
  height: 44px !important;
}

.play-sm::before {
  left: 17px !important;
  top: 13px !important;
  border-left-width: 14px !important;
  border-top-width: 9px !important;
  border-bottom-width: 9px !important;
}

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

.hub-explore-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  border-radius: 16px;
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(94, 200, 255, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 32, 51, 0.06);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hub-explore-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(rgba(19, 32, 51, 0.07) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}

.hub-explore-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--ice-deep);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.85), transparent 50%),
    rgba(94, 200, 255, 0.14);
  border: 1px solid rgba(94, 200, 255, 0.2);
  box-shadow: 0 6px 14px rgba(11, 22, 40, 0.06);
}

.hub-explore-icon svg {
  width: 26px;
  height: 26px;
}

.hub-explore-promo-video .hub-explore-icon,
.hub-explore-market-video .hub-explore-icon { color: #0284c7; background: radial-gradient(circle at 30% 25%, #fff, transparent 50%), rgba(14,165,233,.16); border-color: rgba(14,165,233,.24); }
.hub-explore-tutorial .hub-explore-icon { color: #db2777; background: radial-gradient(circle at 30% 25%, #fff, transparent 50%), rgba(244,114,182,.16); border-color: rgba(244,114,182,.24); }
.hub-explore-announce .hub-explore-icon { color: #e11d48; background: radial-gradient(circle at 30% 25%, #fff, transparent 50%), rgba(251,113,133,.16); border-color: rgba(251,113,133,.24); }
.hub-explore-intro .hub-explore-icon { color: #0d9488; background: radial-gradient(circle at 30% 25%, #fff, transparent 50%), rgba(45,212,191,.16); border-color: rgba(45,212,191,.24); }
.hub-explore-roadmap .hub-explore-icon { color: #ea580c; background: radial-gradient(circle at 30% 25%, #fff, transparent 50%), rgba(251,146,60,.16); border-color: rgba(251,146,60,.24); }
.hub-explore-media-news .hub-explore-icon { color: #2563eb; background: radial-gradient(circle at 30% 25%, #fff, transparent 50%), rgba(96,165,250,.16); border-color: rgba(96,165,250,.24); }
.hub-explore-i18n .hub-explore-icon { color: #4f46e5; background: radial-gradient(circle at 30% 25%, #fff, transparent 50%), rgba(129,140,248,.16); border-color: rgba(129,140,248,.24); }
.hub-explore-poc .hub-explore-icon { color: #16a34a; background: radial-gradient(circle at 30% 25%, #fff, transparent 50%), rgba(74,222,128,.16); border-color: rgba(74,222,128,.24); }

.hub-explore-name {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.hub-explore-count {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  color: var(--muted);
}

.hub-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 12px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 0;
  padding: 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(19, 32, 51, 0.06);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.card.is-in {
  opacity: 1;
  transform: translateY(0);
}

.card:focus-visible {
  outline: 3px solid rgba(94, 200, 255, 0.4);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(94, 200, 255, 0.22);
  }

  .card.is-in:hover {
    transform: translateY(-5px);
  }

  .card:hover .cover-media {
    transform: scale(1.035);
  }

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

  .video-poster:hover .video-poster-play {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
  }

  .chip:hover,
  .btn-ghost:hover,
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
  }
}

.cover {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}

.card-cinema .cover {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(10, 20, 40, 0.58) 100%);
  pointer-events: none;
  z-index: 1;
}

.cover-has-media { background: #0f1b33; }

.cover-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform 0.7s var(--ease);
}

.cover-has-media::after {
  background: linear-gradient(180deg, transparent 48%, rgba(10, 20, 40, 0.66) 100%);
}

.detail-stage .cover-media {
  object-fit: contain;
  background: #0b1428;
  transition: none;
}

.card:hover .detail-stage .cover-media {
  transform: none;
}

.stage-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(94, 200, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #091325 0%, #122448 100%);
}

.stage-media-video {
  padding: 18px;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(280px, 56vw, 520px);
  background: #081224;
  isolation: isolate;
}

.video-shell::before {
  content: "";
  position: absolute;
  inset: -18% -8%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(94, 200, 255, 0.16), transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(11, 22, 40, 0.5), transparent 60%);
  filter: blur(28px);
  opacity: 0.85;
  pointer-events: none;
}

.video-shell-glow {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(42px) saturate(1.15);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.05);
}

.video-shell.is-portrait {
  aspect-ratio: 9 / 16;
  width: min(100%, 420px, calc(min(78vh, 720px) * 9 / 16));
  margin-inline: auto;
  min-height: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #081224;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}

.video-poster-image,
.video-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-poster-image {
  object-fit: contain;
  display: block;
  background: #081224;
}

.video-poster-fallback {
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 700;
  background:
    radial-gradient(circle at 50% 35%, rgba(94, 200, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #091325 0%, #122448 100%);
}

.video-poster-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 19, 37, 0.06) 0%, rgba(9, 19, 37, 0.38) 100%);
}

.video-poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
  pointer-events: none;
}

.video-poster-play::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 25px;
  width: 0;
  height: 0;
  border-left: 22px solid var(--navy);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.video-poster-chip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 27, 51, 0.84);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.cover-media-video {
  position: relative;
  inset: auto;
  width: auto;
  max-width: min(100%, 960px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #040914;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.stage-media-video.is-portrait .cover-media-video {
  width: min(100%, 420px);
  max-height: 100%;
}

.stage-media-video.is-landscape .cover-media-video {
  width: min(100%, 960px);
  max-height: 100%;
}

.video-shell .stage-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.detail-stage .cover-has-media::after {
  background: linear-gradient(180deg, transparent 70%, rgba(10, 20, 40, 0.35) 100%);
}

.doc-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 140px;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(94, 200, 255, 0.18), transparent 40%),
    linear-gradient(135deg, #edf4fa 0%, #d8e8f4 45%, #c3daf0 100%);
}

.doc-banner-mark,
.doc-card-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(11, 22, 40, 0.18);
}

.doc-card-mark {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  font-size: 0.7rem;
}

.doc-banner strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.doc-banner p {
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-doc .detail-stage {
  min-height: 0;
  box-shadow: none;
  background: transparent;
  border: 0;
}

.pdf-frame-wrap {
  width: 100%;
  height: min(78vh, 920px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a1a1a;
  box-shadow: var(--shadow);
}

.pdf-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #525659;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.pdf-actions .btn-ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.detail-actions .btn-ghost,
.detail-actions .btn-primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.js-download.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.detail-body-doc {
  font-size: 1.06rem;
  line-height: 1.9;
  max-width: 42rem;
}

.card-doc .cover {
  background:
    radial-gradient(circle at 18% 24%, rgba(94, 200, 255, 0.2), transparent 42%),
    linear-gradient(145deg, #e8f1f8 0%, #d2e4f2 52%, #b8d4ea 100%);
}

.card-doc .cover-title {
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: var(--navy);
  text-shadow: none;
}

.detail-summary:empty { display: none; }

.cover-photo {
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.45), transparent 28%),
    linear-gradient(145deg, #9ec5ff 0%, #2a9fd6 48%, #0b1628 100%);
}

.cover-video {
  background:
    radial-gradient(circle at 70% 20%, rgba(94, 200, 255, 0.18), transparent 35%),
    linear-gradient(160deg, #0b1730 0%, #163a5c 55%, #2a9fd6 100%);
}

.cover-doc,
.cover-document,
.cover-image-document {
  background: linear-gradient(135deg, #eef4ff 0%, #d7e6ff 45%, #b9d0ff 100%);
}

.cover-animation {
  background: linear-gradient(145deg, #0b1628, #2a9fd6 60%, #dbeafe);
}

.cover-text,
.cover-default {
  background: linear-gradient(145deg, #dbe7ff, #7eb8d8 55%, #0b1628);
}

.cover-shapes {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.cover-shapes span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.cover-shapes span:nth-child(1) { width: 120px; height: 120px; top: -30px; left: -20px; }
.cover-shapes span:nth-child(2) { width: 80px; height: 80px; right: 18%; bottom: 18%; }
.cover-shapes span:nth-child(3) {
  width: 46px;
  height: 46px;
  right: 12%;
  top: 18%;
  border-radius: 12px;
  transform: rotate(18deg);
}

.asset-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(160deg, rgba(15, 27, 51, 0.96), rgba(28, 47, 92, 0.88));
  color: rgba(255, 255, 255, 0.92);
  z-index: 1;
}

.asset-fallback-mark {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.asset-fallback p {
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.cover .play,
.card-cinema .play {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease);
  opacity: 1;
  pointer-events: none;
}

.cover .play::before,
.card-cinema .play::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 14px solid var(--navy);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

.cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
}

.card-cinema .cover-badge,
.card-studio .cover-badge {
  background: rgba(11, 22, 40, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

.cover-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 14px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.card-caption {
  padding: 8px 14px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cinema .card-caption {
  -webkit-line-clamp: 1;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.btn-ghost,
.btn-primary,
.btn-quiet {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 650;
  min-height: var(--tap);
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 16px;
}

.btn-quiet:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  display: inline-flex;
  text-decoration: none;
}

.btn-primary:hover { text-decoration: none; color: #fff; }

.detail {
  padding-top: 6px;
}

.detail.hidden,
.hidden { display: none !important; }

.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 0 4px;
  animation: fadeIn 0.28s var(--ease) both;
}

.detail-nav-right { display: flex; gap: 8px; }

.btn-text {
  border: 0;
  background: transparent;
  color: var(--ice-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: var(--tap);
  padding: 10px 8px;
  -webkit-tap-highlight-color: transparent;
}

.detail-stage {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 22px;
  min-height: 0;
  position: relative;
  background: #0b1428;
  border: 1px solid rgba(94, 200, 255, 0.1);
  box-shadow: 0 28px 64px rgba(11, 22, 40, 0.16);
  animation: stageIn 0.4s var(--ease) both;
}

.detail-stage .cover {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  min-height: clamp(280px, 56vw, 520px);
}

.detail-stage .cover:has(.stage-media-video.is-portrait) {
  aspect-ratio: 9 / 16;
  width: min(100%, 420px, calc(min(78vh, 720px) * 9 / 16));
  margin-inline: auto;
  min-height: 0;
}

.detail-stage .cover-title { display: none; }

.stage-zoom {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  width: 100%;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.stage-zoom-chip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 27, 51, 0.84);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.detail-stage-cta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
}

.media-host-hint {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(94, 200, 255, 0.07);
  border: 1px solid var(--line);
}

.detail-main {
  width: min(760px, 100%);
  margin: 0 auto;
  animation: fadeIn 0.4s var(--ease) 0.08s both;
}

.detail-section {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag {
  font-size: 0.75rem;
  color: var(--blue-deep);
  background: rgba(94, 200, 255, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}

.detail-main h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.detail-summary {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.98rem;
  line-height: 1.85;
  max-width: 42rem;
}

.caption-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.detail-body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink);
  max-width: 40rem;
}

.detail-body a { word-break: break-all; }

.detail-meta {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.detail-meta:empty { display: none; }

.meta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.meta-pair span {
  min-width: 3rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-pair strong,
.meta-pair a {
  color: var(--ink);
  font-weight: 600;
}

.share-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px dashed rgba(94, 200, 255, 0.22);
}

.share-hint { font-size: 0.8rem; }

.album-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.album-list a {
  font-size: 0.84rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 48px 12px;
}

.footer {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  min-height: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 28, 0.45);
  z-index: 40;
  opacity: 1;
  transition: opacity 0.28s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.scrim.hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(16px, var(--safe-top))
    max(16px, var(--safe-right))
    max(16px, var(--safe-bottom))
    max(16px, var(--safe-left));
  background: rgba(6, 12, 24, 0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
  overscroll-behavior: contain;
}

.lightbox:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.lightbox.hidden {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-image {
  max-width: min(96vw, 1400px);
  max-height: min(88vh, calc(100dvh - 96px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  background: #0b1428;
  transform: scale(0.96);
  transition: transform 0.32s var(--ease);
}

.lightbox:not(.hidden) .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: max(12px, var(--safe-top));
  right: max(12px, var(--safe-right));
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
}

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

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

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

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding:
      max(18px, var(--safe-top))
      12px
      max(16px, var(--safe-bottom))
      max(12px, var(--safe-left));
    transform: translateX(-105%);
    transition: transform 0.32s var(--ease);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
    z-index: 50;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.open { transform: translateX(0); }

  .menu-btn {
    display: inline-grid;
    place-items: center;
    position: relative;
    z-index: 12;
  }

  .main {
    padding:
      0
      max(16px, var(--safe-right))
      max(48px, calc(32px + var(--safe-bottom)))
      max(16px, var(--safe-left));
    width: 100%;
  }

  .main-bar {
    position: sticky;
    top: 0;
    z-index: 12;
    align-items: center;
    gap: 12px;
    margin: 0 calc(-1 * max(16px, var(--safe-left))) 12px calc(-1 * max(16px, var(--safe-right)));
    padding:
      max(10px, var(--safe-top))
      max(16px, var(--safe-right))
      12px
      max(16px, var(--safe-left));
    background: rgba(238, 243, 248, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(19, 32, 51, 0.06);
  }

  .main-bar.is-brand {
    padding-bottom: 14px;
    margin-bottom: 4px;
  }

  .main-bar-text h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .main-bar.is-brand .main-bar-text h1 {
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
  }

  .main-bar.is-brand .brand-kicker {
    letter-spacing: 0.14em;
    font-size: 0.68rem;
  }

  .main-actions {
    width: 100%;
    padding-top: 0;
    order: 3;
  }

  .main-bar {
    flex-wrap: wrap;
  }

  .main-bar .menu-btn { order: 0; }
  .main-bar-text { order: 1; flex: 1; min-width: 0; }
  .main-actions { order: 2; flex: 1 1 auto; justify-content: flex-start; }

  .search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .search-row input {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: var(--tap);
    font-size: 1rem; /* avoid iOS zoom on focus */
  }

  .meta-row {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .media-filters {
    gap: 8px;
  }

  .grid {
    gap: 16px;
  }

  .home-hub {
    gap: 22px;
    margin-bottom: 4px;
  }

  .hub-hero {
    padding: 22px 18px 24px;
    border-radius: 18px;
  }

  .hub-doc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hub-doc-card {
    min-height: 0;
    padding: 16px 52px 16px 16px;
  }

  .hub-studio-card {
    flex-basis: min(78vw, 220px);
  }

  .hub-explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hub-explore-tile {
    padding: 14px 8px 12px;
  }

  .hub-section-links {
    width: 100%;
  }

  .hub-section-link {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .detail-stage {
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .detail-section,
  .detail-meta {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .detail-main h2 {
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .pdf-frame-wrap {
    height: min(70dvh, 720px);
    border-radius: 12px;
  }

  .toast {
    bottom: max(20px, var(--safe-bottom));
    max-width: calc(100vw - 32px);
    text-align: center;
  }
}

@media (min-width: 900px) {
  .hub-doc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hub-explore-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .hub-doc-grid {
    grid-template-columns: 1fr;
  }

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

  .main-bar.is-brand .main-bar-text h1 {
    font-size: clamp(1.4rem, 7.5vw, 1.85rem);
  }

  .main-bar.is-brand .main-bar-text p#view-desc {
    font-size: 0.92rem;
  }

  .main-actions .chip {
    width: 100%;
    justify-content: center;
  }

  .cover .play,
  .card-cinema .play {
    width: 56px;
    height: 56px;
  }

  .detail-stage .cover {
    aspect-ratio: 16 / 9;
    min-height: clamp(200px, 52vw, 320px);
  }

  .video-shell {
    min-height: clamp(200px, 52vw, 320px);
  }

  .stage-media-video {
    padding: 10px;
  }

  .video-shell.is-portrait,
  .detail-stage .cover:has(.stage-media-video.is-portrait) {
    width: min(100%, 340px, calc(min(68dvh, 560px) * 9 / 16));
    min-height: 0;
  }

  .video-poster-play {
    width: 72px;
    height: 72px;
  }

  .video-poster-play::before {
    left: 29px;
    top: 22px;
    border-left-width: 18px;
    border-top-width: 12px;
    border-bottom-width: 12px;
  }

  .video-poster-chip,
  .stage-zoom-chip,
  .detail-stage-cta {
    right: 12px;
    bottom: 12px;
  }

  .lightbox {
    padding:
      max(8px, var(--safe-top))
      max(8px, var(--safe-right))
      max(8px, var(--safe-bottom))
      max(8px, var(--safe-left));
  }

  .lightbox-image {
    max-width: 100%;
    max-height: calc(100dvh - 72px - var(--safe-top) - var(--safe-bottom));
    border-radius: 10px;
  }

  .lightbox-close {
    top: auto;
    bottom: max(16px, calc(12px + var(--safe-bottom)));
    right: max(16px, calc(12px + var(--safe-right)));
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    font-size: 1.65rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }

  .doc-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    min-height: 0;
  }

  .album-list a {
    min-height: var(--tap);
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
  }
}

@media (max-width: 400px) {
  .main-bar.is-brand .main-bar-text h1 {
    font-size: 1.32rem;
    line-height: 1.15;
  }

  .filter-chip {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

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

  .card,
  .main-bar,
  .search-row,
  .toolbar,
  .view-pane,
  .detail-stage,
  .detail-main,
  .detail-nav,
  .lightbox,
  .lightbox-image,
  .cover-media,
  .video-poster-play,
  .sidebar,
  .scrim {
    animation: none !important;
    transition: none !important;
  }

  .card {
    opacity: 1;
    transform: none;
  }

  .card:hover .cover-media {
    transform: none;
  }

  .lightbox.hidden {
    display: none !important;
  }

  .scrim.hidden {
    display: none !important;
  }
}
