:root {
  --bg-canvas: #111115;
  --bg-elevated: #17171d;
  --bg-surface: #1d1d25;
  --bg-surface-hover: #24242f;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.24);
  --border-gold-strong: rgba(212, 175, 55, 0.52);

  --gold: #d4af37;
  --gold-light: #ebd183;
  --gold-dim: #9e812b;
  --gold-tint: rgba(212, 175, 55, 0.1);

  --text-primary: #f4efe6;
  --text-secondary: #c2bcb0;
  --text-muted: #938d82;
  --text-on-gold: #111115;

  --danger: #e26d6d;
  --success: #5bbd8a;

  --font-display: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container-max: 1240px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
}

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

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* =========================================================
   Top Navigation Bar (3-Zone Contract)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  background-color: rgba(17, 17, 21, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-block: 6px;
  transition: color 180ms var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold-light);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background-color: var(--gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold) 0%, #b89128 100%);
  color: var(--text-on-gold);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 180ms var(--ease-out), filter 180ms var(--ease-out);
}

.header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  z-index: 45;
  background-color: rgba(17, 17, 21, 0.98);
  padding: 24px;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.mobile-drawer-link.is-active {
  color: var(--gold-light);
}

/* =========================================================
   Buttons & Controls
   ========================================================= */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold) 0%, #ba932b 100%);
  color: var(--text-on-gold);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 180ms var(--ease-out), filter 180ms var(--ease-out);
}

.btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--gold-light);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid var(--border-gold-strong);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.btn-outline:hover {
  background-color: var(--gold-tint);
  border-color: var(--gold);
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.btn-subtle:hover,
.btn-subtle.is-active {
  color: var(--gold-light);
  border-color: var(--border-gold-strong);
  background-color: var(--bg-surface-hover);
}

/* =========================================================
   Sections & Headings
   ========================================================= */
.section {
  padding-block: 68px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-alt {
  background-color: var(--bg-elevated);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  text-wrap: balance;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 65ch;
}

.section-more {
  font-size: 0.875rem;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease-out);
}

.section-more:hover {
  border-bottom-color: var(--gold);
}

/* =========================================================
   Hero Section (Immediate Zero-Latency Paint)
   ========================================================= */
.hero-section {
  padding-block: 64px 72px;
  background: radial-gradient(circle at 75% 22%, rgba(212, 175, 55, 0.09) 0%, rgba(17, 17, 21, 0) 56%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
  text-wrap: balance;
}

.hero-title-accent {
  color: var(--gold-light);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background-color: var(--bg-surface);
  min-height: 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-stage-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.hero-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

.hero-stage-link:hover .hero-stage-img {
  transform: scale(1.03);
}

.hero-stage-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 21, 0.1) 0%, rgba(17, 17, 21, 0.45) 55%, rgba(17, 17, 21, 0.94) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.hero-stage-meta {
  font-size: 0.8125rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.hero-stage-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stage-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
}

.hero-tab-btn {
  padding: 12px 10px;
  border: none;
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.hero-tab-btn:last-child {
  border-right: none;
}

.hero-tab-btn.is-active,
.hero-tab-btn:hover {
  color: var(--gold-light);
  background-color: var(--gold-tint);
}

/* =========================================================
   Company Metrics Strip (Full-Width 4-Column Row)
   ========================================================= */
.metrics-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
}

.metric-cell {
  padding: 24px 22px;
  border-right: 1px solid var(--border-subtle);
}

.metric-cell:last-child {
  border-right: none;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.metric-label {
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-note {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =========================================================
   Image Frame + Graceful CSS/SVG Fallback
   ========================================================= */
.poster-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(155deg, #22222c 0%, #15151a 100%);
  overflow: hidden;
}

.poster-frame-wide {
  aspect-ratio: 16 / 10;
}

.poster-frame-square {
  aspect-ratio: 1 / 1;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms var(--ease-out);
}

.media-card:hover .poster-img,
.product-bento-card:hover .poster-img,
.news-card:hover .poster-img {
  transform: scale(1.04);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: radial-gradient(circle at 80% 18%, rgba(212, 175, 55, 0.16) 0%, #17171f 62%);
  border-bottom: 1px solid var(--border-gold);
}

.poster-frame.is-fallback .poster-img {
  display: none;
}

.poster-frame.is-fallback .poster-fallback {
  display: flex;
}

.fallback-kicker {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.fallback-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.fallback-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================================
   Core Products Bento Grid
   ========================================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.product-bento-card {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  overflow: hidden;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.product-bento-card:hover {
  border-color: var(--border-gold-strong);
  transform: translateY(-2px);
}

.product-bento-card.is-wide {
  grid-column: span 7;
}

.product-bento-card.is-compact {
  grid-column: span 5;
}

.bento-media-link {
  display: block;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
}

.bento-media-link .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

.bento-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.bento-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
}

.bento-title {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bento-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =========================================================
   Movie / Video Grids (20 Hot, 10 Latest, 10 Flagship)
   ========================================================= */
.media-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

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

.media-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  overflow: hidden;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.media-card:hover {
  border-color: var(--border-gold-strong);
  transform: translateY(-2px);
}

.media-card-link {
  display: block;
  position: relative;
}

.media-score-overlay {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  background-color: rgba(17, 17, 21, 0.86);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
}

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

.media-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card-desc {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Flagship Horizontal Spotlight + Grid */
.flagship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.flagship-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  overflow: hidden;
  transition: border-color 180ms var(--ease-out);
}

.flagship-card:hover {
  border-color: var(--border-gold-strong);
}

.flagship-poster-link {
  display: block;
  height: 100%;
}

.flagship-poster-link .poster-frame {
  height: 100%;
  aspect-ratio: 3 / 4;
}

.flagship-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.flagship-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.flagship-cast {
  font-size: 0.8125rem;
  color: var(--gold-light);
}

.flagship-synopsis {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   VIP Membership & Referral Section
   ========================================================= */
.vip-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.vip-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  background: linear-gradient(145deg, #1d1c24 0%, #141419 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.vip-tier-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.vip-tier-btn {
  padding: 8px 16px;
  border-radius: 3px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.vip-tier-btn.is-active {
  background-color: var(--gold);
  color: var(--text-on-gold);
  font-weight: 600;
}

.vip-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.vip-price {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold-light);
}

.vip-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.vip-perks li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.referral-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.referral-code-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.referral-link-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gold-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

/* =========================================================
   News Section (6+ Items) & 20 Entertainment Updates
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  overflow: hidden;
  transition: border-color 180ms var(--ease-out);
}

.news-card:hover {
  border-color: var(--border-gold-strong);
}

.news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.news-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.news-summary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.update-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 160ms var(--ease-out);
}

.update-item:hover {
  background-color: var(--bg-surface);
}

.update-thumb-link {
  display: block;
  width: 76px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.update-thumb-link .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

.update-title {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.update-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =========================================================
   App Download Banner (Home + App Page)
   ========================================================= */
.app-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, #1b1a23 0%, #121217 100%);
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
}

.qr-svg-wrap {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  padding: 8px;
  background-color: #f4efe6;
  border-radius: var(--radius-sm);
}

/* =========================================================
   Products Filter Workspace (products.html)
   ========================================================= */
.filter-panel {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

.search-input:focus {
  border-color: var(--gold);
  outline: none;
}

.filter-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-label {
  min-width: 56px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-btn {
  padding: 6px 14px;
  min-height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.filter-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface);
}

.filter-btn.is-active {
  color: var(--text-on-gold);
  background-color: var(--gold);
  font-weight: 600;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.sort-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.pagination-bar {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding-inline: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-light);
}

.page-btn.is-active {
  background-color: var(--gold);
  color: var(--text-on-gold);
  border-color: var(--gold);
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.empty-state {
  padding: 56px 24px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
}

/* =========================================================
   About, Contact, Detail & App Subpage Layouts
   ========================================================= */
.page-hero {
  padding-block: 48px 40px;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.08) 0%, rgba(17, 17, 21, 0) 55%);
}

.page-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  text-wrap: balance;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.timeline-card {
  padding: 22px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

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

.team-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.form-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  padding: 10px 14px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

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

.form-error {
  font-size: 0.8125rem;
  color: var(--danger);
}

.form-success-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(91, 189, 138, 0.4);
  background-color: rgba(91, 189, 138, 0.1);
  color: var(--text-primary);
}

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

.info-box {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.map-frame-wrap {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background-color: var(--bg-surface);
}

.map-iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* Detail Layout */
.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}

.episode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.episode-btn {
  min-width: 72px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.episode-btn.is-active {
  border-color: var(--gold);
  background-color: var(--gold-tint);
  color: var(--gold-light);
  font-weight: 600;
}

/* =========================================================
   Floating App Download Button & Support Drawer
   ========================================================= */
.floating-app-btn {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold) 0%, #b89128 100%);
  color: var(--text-on-gold);
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 180ms var(--ease-out);
}

.floating-app-btn:hover {
  transform: translateY(-2px);
}

/* Modal & Support Drawer */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(8, 8, 11, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  background-color: var(--bg-elevated);
  padding: 28px;
}

.support-drawer {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 55;
  width: min(380px, calc(100vw - 32px));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  background-color: var(--bg-elevated);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.support-drawer.is-open {
  display: flex;
}

.support-messages {
  padding: 16px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 88%;
}

.chat-bubble.is-bot {
  align-self: flex-start;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.chat-bubble.is-user {
  align-self: flex-end;
  background-color: var(--gold);
  color: var(--text-on-gold);
  font-weight: 500;
}

/* =========================================================
   Scroll Reveal Animation (Compositor-Only)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background-color: #0b0b0e;
  padding-block: 52px 84px;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-heading {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gold-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1120px) {
  .media-grid-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .timeline-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .vip-grid,
  .app-banner,
  .contact-grid,
  .detail-grid,
  .flagship-grid {
    grid-template-columns: 1fr;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-cell:nth-child(2) {
    border-right: none;
  }
  .metric-cell:nth-child(1),
  .metric-cell:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }
  .product-bento-card,
  .product-bento-card.is-wide,
  .product-bento-card.is-compact {
    grid-column: span 12;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .media-grid-5,
  .media-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .site-header {
    height: 56px;
  }
  .primary-nav,
  .header-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .container {
    padding-inline: 16px;
  }
  .section {
    padding-block: 44px;
  }
  .hero-section {
    padding-block: 32px 44px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .media-grid-5,
  .media-grid-4,
  .news-grid,
  .updates-grid,
  .timeline-list,
  .team-grid,
  .info-grid-2,
  .vip-perks,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .media-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .metrics-strip {
    grid-template-columns: 1fr;
  }
  .metric-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .metric-cell:last-child {
    border-bottom: none;
  }
  .hero-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-tab-btn:nth-child(2) {
    border-right: none;
  }
  .hero-tab-btn:nth-child(1),
  .hero-tab-btn:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }
  .search-row {
    flex-wrap: wrap;
  }
  .search-input {
    width: 100%;
    flex: 1 1 100%;
  }
  .vip-card,
  .referral-card,
  .app-banner {
    padding: 20px;
  }
  .vip-tier-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vip-tier-btn {
    padding: 8px 6px;
    font-size: 0.8125rem;
  }
  .referral-code-box {
    flex-wrap: wrap;
  }
  .qr-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-bento-card {
    grid-template-columns: 1fr;
  }
  .flagship-card {
    grid-template-columns: 112px 1fr;
  }
  .floating-app-btn {
    right: 12px;
    bottom: 14px;
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}
