/* ============================================================
   Morphic Design System — Portfolio
   Dark cinema canvas for design storytelling
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --color-pure-black: #000000;
  --color-surface-one: #212121;
  --color-surface-two: #292929;
  --color-surface-three: #333333;
  --color-paper-white: #ffffff;
  --color-fog: #e5e7eb;
  --color-mist: #f5f5f5;
  --color-mid-gray: #999999;
  --color-steel: #737373;
  --color-graphite: #666666;
  --color-slate: #525252;
  --color-charcoal: #404040;
  --color-electric-blue: #0075ff;

  /* Typography */
  --font-inter: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;

  /* Type Scale */
  --text-caption: 10px;
  --leading-caption: 1.4;
  --tracking-caption: -0.1px;
  --text-body: 14px;
  --leading-body: 1.5;
  --tracking-body: -0.14px;
  --text-body-lg: 18px;
  --leading-body-lg: 1.4;
  --tracking-body-lg: -0.4px;
  --text-heading-sm: 20px;
  --leading-heading-sm: 1.33;
  --tracking-heading-sm: -0.44px;
  --text-heading: 40px;
  --leading-heading: 1.15;
  --tracking-heading: -1.9px;
  --text-display: 52px;
  --leading-display: 1.15;
  --tracking-display: -3.2px;

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-28: 28px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-60: 60px;
  --spacing-72: 72px;
  --spacing-80: 80px;
  --spacing-96: 96px;
  --spacing-100: 100px;
  --spacing-140: 140px;
  --spacing-180: 180px;

  /* Layout */
  --page-max-width: 1280px;
  --section-gap: 96px;
  --card-padding: 12px;
  --element-gap: 8px;

  /* Border Radius */
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 100px;

  /* Shadows */
  --shadow-xl: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.1) 0px 8px 10px -6px;
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-inter);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--color-paper-white);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

#starfield-canvas { position: fixed !important; top: 0; left: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 0%, #0a0a2a 0%, #050510 40%, #000000 100%); }
#app { position: relative; z-index: 1; background: transparent !important; }
main, .navbar, footer { position: relative; z-index: 1; }

/* ---- Layout ---- */
.container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-24);
}

section {
  padding: var(--section-gap) 0;
}

/* ---- Two-Tone Headline System ---- */
.two-tone-headline {
  margin-bottom: var(--spacing-40);
}
.two-tone-headline .line-1 {
  font-size: var(--text-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-paper-white);
  display: block;
}
.two-tone-headline .line-2 {
  font-size: var(--text-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-mid-gray);
  display: block;
}

/* Hero display size */
.hero-headline .line-1,
.hero-headline .line-2 {
  font-size: var(--text-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  font-size: var(--text-body);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  padding: 8px var(--spacing-16);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-electric-blue);
  color: var(--color-paper-white);
}
.btn-primary:hover {
  background: #0066dd;
}

.btn-secondary {
  background: var(--color-surface-two);
  color: var(--color-paper-white);
}
.btn-secondary:hover {
  background: var(--color-surface-three);
}

.btn-outline {
  background: transparent;
  color: var(--color-paper-white);
  border-color: rgba(229, 231, 235, 0.15);
}
.btn-outline:hover {
  background: var(--color-surface-two);
  border-color: rgba(229, 231, 235, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--color-mid-gray);
}
.btn-ghost:hover {
  color: var(--color-paper-white);
}

.btn-lg {
  padding: var(--spacing-12) var(--spacing-24);
  font-size: var(--text-body-lg);
}

.btn-sm {
  padding: 6px var(--spacing-12);
  font-size: 12px;
}

.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
}

/* ---- Tags / Pills ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-4);
  padding: 4px var(--spacing-12);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  color: var(--color-paper-white);
  border: 1px solid rgba(229, 231, 235, 0.15);
  border-radius: var(--radius-full);
  background: transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}
.tag:hover {
  border-color: rgba(229, 231, 235, 0.3);
  background: rgba(229, 231, 235, 0.05);
}
.tag.active {
  background: var(--color-surface-two);
  border-color: var(--color-surface-two);
  color: var(--color-paper-white);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  border-radius: var(--radius-md);
}
.badge-new {
  background: var(--color-electric-blue);
  color: var(--color-paper-white);
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 15, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-heading-sm);
  color: var(--color-paper-white);
}
.navbar-logo .logo-mark {
  width: 28px;
  height: 28px;
  background: var(--color-electric-blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: white;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-32);
}
.navbar-links a {
  font-size: var(--text-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-paper-white);
  position: relative;
  transition: color 0.15s;
}
.navbar-links a:hover {
  color: var(--color-mid-gray);
}
.navbar-links a.active {
  color: var(--color-paper-white);
}
.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-electric-blue);
  border-radius: 2px;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
}
.mobile-menu-btn {
  display: none;
  padding: 8px;
  color: var(--color-paper-white);
}

/* ---- Hero Section ---- */
.hero {
  padding: calc(64px + var(--spacing-80)) 0 var(--spacing-80);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.hero-split {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-text-side {
  flex: 1;
  min-width: 0;
}
.hero-photo-side {
  flex: 0 0 340px;
}
.hero-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}
.hero-photo-name {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
}
.hero-photo-title {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0, 117, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-announcement {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: 4px var(--spacing-12);
  background: var(--color-surface-one);
  border: 1px solid rgba(229, 231, 235, 0.1);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: var(--color-mid-gray);
  margin-bottom: var(--spacing-24);
}
.hero-announcement .arrow {
  color: var(--color-steel);
}
.hero-headline {
  margin-bottom: var(--spacing-24);
}
.hero-subtitle {
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body-lg);
  letter-spacing: var(--tracking-body-lg);
  color: var(--color-mid-gray);
  max-width: 560px;
  margin: 0 0 var(--spacing-32);
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-12);
  margin-bottom: var(--spacing-60);
}

/* ---- Showcase Grid ---- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-8);
}
.showcase-item {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface-one);
  transition: transform 0.3s ease;
}
.showcase-item:hover {
  transform: translateY(-4px);
}
.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.showcase-item:hover img {
  transform: scale(1.05);
}
.showcase-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-16);
}
.showcase-item:hover .overlay {
  opacity: 1;
}
.showcase-item .overlay-info h4 {
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-paper-white);
  margin-bottom: 4px;
}
.showcase-item .overlay-info p {
  font-size: 12px;
  color: var(--color-mid-gray);
}

/* ---- Workflow / Horizontal Scroll ---- */
.horizontal-scroll {
  display: flex;
  gap: var(--spacing-12);
  overflow-x: auto;
  padding-bottom: var(--spacing-16);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.horizontal-scroll::-webkit-scrollbar {
  display: none;
}
.work-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: transparent;
  border: 1px solid rgba(229, 231, 235, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--spacing-12);
  transition: all 0.2s ease;
  cursor: pointer;
}
.work-card:hover {
  border-color: rgba(229, 231, 235, 0.15);
  transform: translateY(-2px);
}
.work-card .card-image {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: transparent;
  margin-bottom: var(--spacing-12);
}
.work-card .card-image.is-model {
  aspect-ratio: 4/3;
}
.work-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card .card-title {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-paper-white);
  margin-bottom: 4px;
  line-height: 1.4;
}
.work-card .card-desc {
  font-size: 12px;
  color: var(--color-mid-gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-card .card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  color: var(--color-steel);
  margin-top: var(--spacing-8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Section Header Row ---- */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--spacing-32);
}
.section-header-row .two-tone-headline {
  margin-bottom: 0;
}
.section-header-row .see-more {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  font-size: var(--text-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-steel);
  transition: color 0.15s;
}
.section-header-row .see-more:hover {
  color: var(--color-paper-white);
}

/* ---- Stats Section ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-12);
}
.stat-card {
  background: var(--color-surface-one);
  border: 1px solid rgba(229, 231, 235, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--spacing-24);
  text-align: center;
}
.stat-card .stat-num {
  font-size: 36px;
  font-weight: var(--font-weight-bold);
  letter-spacing: -1px;
  color: var(--color-paper-white);
  line-height: 1.1;
  margin-bottom: var(--spacing-8);
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--color-mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-60);
  align-items: center;
}
.about-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: transparent;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content .about-name {
  font-size: var(--text-heading);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--color-paper-white);
  margin-bottom: var(--spacing-8);
}
.about-content .about-title {
  font-size: var(--text-body-lg);
  color: var(--color-electric-blue);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-24);
}
.about-content .about-desc {
  font-size: var(--text-body);
  color: var(--color-mid-gray);
  line-height: 1.7;
  margin-bottom: var(--spacing-24);
}

/* ---- Personal Info Hero (PDF Design) ---- */
.personal-hero {
  position: relative;
  background: transparent;
  overflow: hidden;
  padding-bottom: 0;
}
.personal-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,117,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.personal-layout {
  display: flex;
  gap: 48px;
  align-items: stretch;
  padding: 60px 0 40px;
}

/* Left: Showcase image frame */
.personal-photo-wrap {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Showcase frame — transparent, blends with background */
.showcase-frame {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  background: transparent !important;
  border: none;
  box-shadow: none;
  overflow: hidden;
}
.showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Bottom gradient mask — removed to keep PNG transparency clean */
.showcase-frame::after {
  content: none;
}

/* Bottom gradient mask — removed to keep PNG transparency clean */
.showcase-gradient {
  display: none;
}

/* Title overlay with blue glow */
.showcase-title-overlay {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.showcase-title-text {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-shadow:
    0 0 10px rgba(100,160,255,0.5),
    0 0 30px rgba(80,140,255,0.25);
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.showcase-title-suffix {
  font-size: 13px;
  color: rgba(180,200,255,0.6);
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(100,160,255,0.3);
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 700;
  color: var(--color-electric-blue);
  background: var(--color-surface-three);
}

/* Right: Info panel */
.personal-info-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* Section title with orange bar */
.personal-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.title-orange-bar {
  width: 4px;
  height: 28px;
  background: #ff6b35;
  border-radius: 2px;
  flex-shrink: 0;
}
.title-cn {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-paper-white);
  letter-spacing: 0.05em;
}
.title-en {
  font-size: 14px;
  color: var(--color-steel);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Bio text */
.personal-bio {
  font-size: 14px;
  color: var(--color-mid-gray);
  line-height: 1.8;
  margin: 0 0 8px 0;
  max-width: 480px;
}

/* Info grid: 2 columns x 3 rows */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-top: 8px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-two);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  flex-shrink: 0;
}
.info-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-electric-blue);
}
.info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
  word-break: break-all;
}
.info-label {
  font-size: 11px;
  color: var(--color-steel);
  letter-spacing: 0.08em;
}
.info-value {
  font-size: 15px;
  color: var(--color-paper-white);
  font-weight: 500;
}

/* Bottom decorative text bar */
.personal-decor-bar {
  position: relative;
  padding: 40px 0 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: baseline;
  gap: 20px;
  overflow: hidden;
}
.decor-en {
  font-size: clamp(60px, 12vw, 140px);
  font-weight: 900;
  color: rgba(255,255,255,0.07);
  letter-spacing: 0.02em;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.decor-handwritten {
  font-size: clamp(18px, 2.5vw, 28px);
  color: #e63946;
  font-style: italic;
  font-family: 'Brush Script MT', cursive, sans-serif;
  transform: rotate(-5deg);
  opacity: 0.8;
  white-space: nowrap;
}

/* ---- Personal Info Responsive ---- */
@media (max-width: 900px) {
  .personal-layout {
    flex-direction: column;
    gap: 32px;
    padding: 40px 0 24px;
  }
  .personal-photo-wrap {
    flex: none;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .personal-info-panel {
    width: 100%;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .decor-en {
    font-size: 60px;
  }
}
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }
  .info-item {
    gap: 8px;
  }
  .info-icon {
    width: 32px;
    height: 32px;
  }
  .info-value {
    font-size: 13px;
  }
}


/* Skills cloud */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--spacing-40);
}

/* ---- Awards List (About Page) ---- */
.awards-block {
  margin-top: 40px;
}

.awards-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-paper-white);
  margin-bottom: 20px;
}

.awards-bar {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--color-electric-blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.awards-en {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-steel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px 24px;
}

.awards-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-mid-gray);
  padding-left: 16px;
  position: relative;
}

.awards-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-steel);
  flex-shrink: 0;
}

.award-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: 1px;
  letter-spacing: 0.02em;
}

.tag-gold {
  background: rgba(255, 182, 0, 0.15);
  color: #FFB600;
  border: 1px solid rgba(255, 182, 0, 0.3);
}

.tag-silver {
  background: rgba(168, 168, 168, 0.15);
  color: #C0C0C0;
  border: 1px solid rgba(168, 168, 168, 0.3);
}

.tag-bronze {
  background: rgba(205, 127, 50, 0.15);
  color: #CD7F32;
  border: 1px solid rgba(205, 127, 50, 0.3);
}

@media (max-width: 768px) {
  .awards-list {
    grid-template-columns: 1fr;
  }
}

/* ---- Catalog Directory Layout (Works Page) ---- */
.catalog-section {
  position: relative;
  background: transparent;
  overflow: hidden;
  min-height: 80vh;
  padding-bottom: 80px;
}
.catalog-glow {
  position: absolute;
  top: 0;
  left: -10%;
  width: 70%;
  height: 500px;
  background: radial-gradient(ellipse at 30% 20%, rgba(0,117,255,0.06) 0%, transparent 50%);
  pointer-events: none;
  transform: rotate(-15deg);
}

/* Catalog header */
.catalog-header {
  text-align: center;
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}
.catalog-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--color-paper-white);
  letter-spacing: 0.15em;
  margin: 0 0 8px 0;
}
.catalog-subtitle {
  font-size: 13px;
  color: var(--color-steel);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
}

/* 4-column grid */
.catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* Tree node (category or subcategory) */
.tree-node {
  position: relative;
}
.tree-category {
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 6px;
}
.tree-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.tree-header:hover {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}
.tree-category-header {
  padding: 16px 18px;
}
.tree-chevron {
  color: rgba(255,255,255,0.3);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.tree-node.collapsed .tree-chevron {
  transform: rotate(-90deg);
}
.tree-num {
  font-size: 13px;
  font-weight: 700;
  color: rgba(0,168,255,0.5);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  min-width: 24px;
}
.tree-label {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.tree-subcategory .tree-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}
.tree-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--color-steel);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 400;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Children container */
.tree-children {
  padding: 0 18px 8px 32px;
  overflow: hidden;
  max-height: 9999px;
  transition: max-height 0.4s ease;
}
.tree-node.collapsed > .tree-children {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Subcategory within category */
.tree-subcategory {
  margin-bottom: 2px;
}
.tree-subcategory .tree-header {
  padding: 10px 14px;
}
.tree-subcategory .tree-children {
  padding: 0 8px 6px 20px;
}

/* Leaf node (work item) */
.tree-leaf {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, padding 0.2s;
}
.tree-leaf:hover {
  background: rgba(0,168,255,0.06);
  padding-left: 18px;
}
.tree-leaf-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-steel);
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.tree-leaf:hover .tree-leaf-dot {
  background: var(--color-electric-blue);
  box-shadow: 0 0 8px rgba(0,168,255,0.5);
}
.tree-leaf-text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-leaf:hover .tree-leaf-text {
  color: var(--color-electric-blue);
}
.tree-leaf-sub {
  font-size: 11px;
  color: var(--color-steel);
  margin-left: auto;
  flex-shrink: 0;
}

/* Empty / loading */
.tree-empty {
  color: var(--color-slate);
  font-size: 13px;
  padding: 8px 14px;
}
.catalog-empty {
  color: var(--color-slate);
  font-size: 13px;
  padding: 8px 0;
}
.catalog-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

/* View toggle */
.catalog-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-surface-two);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--color-mid-gray);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.toggle-btn:hover {
  border-color: rgba(0,117,255,0.3);
  color: var(--color-paper-white);
}
.toggle-btn.active {
  background: rgba(0,117,255,0.1);
  border-color: var(--color-electric-blue);
  color: var(--color-electric-blue);
}

@media (max-width: 768px) {
  .catalog-grid {
    max-width: 100%;
  }
  .tree-header {
    padding: 12px 14px;
  }
  .tree-children {
    padding-left: 24px;
  }
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--color-surface-two);
  border: 1px solid rgba(229, 231, 235, 0.08);
  border-radius: 50px;
  font-size: var(--text-body);
  color: var(--color-paper-white);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--color-electric-blue);
  border-color: var(--color-electric-blue);
  transform: translateY(-2px);
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-8);
}

/* ---- Footer ---- */
.footer {
  padding: var(--spacing-60) 0 var(--spacing-40);
  border-top: 1px solid rgba(229, 231, 235, 0.06);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-32);
}
.footer-brand {
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-paper-white);
  margin-bottom: var(--spacing-8);
}
.footer-tagline {
  font-size: 12px;
  color: var(--color-mid-gray);
}
.footer-links {
  display: flex;
  gap: var(--spacing-40);
}
.footer-link-col h5 {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-paper-white);
  margin-bottom: var(--spacing-12);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-link-col a {
  display: block;
  font-size: 12px;
  color: var(--color-mid-gray);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-link-col a:hover {
  color: var(--color-paper-white);
}
.footer-bottom {
  margin-top: var(--spacing-40);
  padding-top: var(--spacing-24);
  border-top: 1px solid rgba(229, 231, 235, 0.06);
  font-size: 11px;
  color: var(--color-slate);
  text-align: center;
}
.footer-icp {
  margin-left: 12px;
  color: var(--color-slate);
  text-decoration: none;
  opacity: 0.8;
}
.footer-icp:hover {
  color: var(--color-slate);
  opacity: 1;
  text-decoration: underline;
}

/* ---- Modal / Lightbox ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-24);
  animation: fadeIn 0.2s ease;
}
.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
}
.modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-paper-white);
  font-size: 20px;
  cursor: pointer;
  background: var(--color-surface-one);
  border-radius: 50%;
}
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-one);
  border-radius: 50%;
  color: var(--color-paper-white);
  cursor: pointer;
  font-size: 20px;
  transition: background 0.15s;
}
.modal-nav:hover {
  background: var(--color-surface-two);
}
.modal-nav.prev { left: -72px; }
.modal-nav.next { right: -72px; }
.modal-caption {
  text-align: center;
  margin-top: var(--spacing-16);
  color: var(--color-mid-gray);
  font-size: 13px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Works Filter Bar ---- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-32);
  flex-wrap: wrap;
  gap: var(--spacing-16);
}
.filter-tags {
  display: flex;
  gap: var(--spacing-8);
  flex-wrap: wrap;
}
.search-box {
  position: relative;
}
.search-box input {
  width: 240px;
  padding: 8px var(--spacing-12) 8px 36px;
  background: var(--color-surface-one);
  border: 1px solid rgba(229, 231, 235, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-paper-white);
  font-size: var(--text-body);
  outline: none;
  transition: border-color 0.15s;
}
.search-box input:focus {
  border-color: var(--color-electric-blue);
}
.search-box input::placeholder {
  color: var(--color-steel);
}
.search-box .search-icon {
  position: absolute;
  left: var(--spacing-12);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-steel);
  font-size: 14px;
}

/* ---- Works Grid ---- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-20);
}
.work-grid-card {
  background: transparent;
  border: 1px solid rgba(229, 231, 235, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}
.work-grid-card:hover {
  border-color: rgba(229, 231, 235, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.work-grid-card .card-cover {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: transparent;
}
.work-grid-card .card-cover.is-model {
  aspect-ratio: 4/3;
}
.work-grid-card .card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-grid-card:hover .card-cover img {
  transform: scale(1.05);
}
.work-grid-card .card-body {
  padding: var(--spacing-16);
}
.work-grid-card .card-category {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  color: var(--color-electric-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.work-grid-card .card-title {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-paper-white);
  margin-bottom: 6px;
  line-height: 1.3;
}
.work-grid-card .card-desc {
  font-size: 12px;
  color: var(--color-mid-gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Load More ---- */
.load-more-wrap {
  text-align: center;
  margin-top: var(--spacing-40);
}

/* ---- Work Detail Page ---- */
.work-detail-hero {
  padding: calc(64px + var(--spacing-60)) 0 var(--spacing-40);
  text-align: center;
}
.work-detail-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-4);
  font-size: 12px;
  color: var(--color-mid-gray);
  margin-bottom: var(--spacing-24);
  cursor: pointer;
  transition: color 0.15s;
}
.work-detail-hero .back-link:hover {
  color: var(--color-paper-white);
}
.work-detail-hero .work-category {
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: var(--color-electric-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-16);
}
.work-detail-hero h1 {
  font-size: var(--text-display);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  color: var(--color-paper-white);
  margin-bottom: var(--spacing-16);
}
.work-detail-hero .work-subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-mid-gray);
  max-width: 600px;
  margin: 0 auto;
}

.work-detail-cover {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: transparent;
  margin-bottom: var(--spacing-60);
}
.work-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Full-view cover for exhibition boards (e.g. 破障先锋) — no cropping, clickable */
.work-detail-cover.cover-fullview {
  aspect-ratio: auto;
  overflow: visible;
}
.work-detail-cover.cover-fullview img {
  object-fit: contain;
  cursor: zoom-in;
  border-radius: var(--radius-2xl);
}
.work-detail-cover video.hero-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0,0,0,0.5);
}
.work-detail-cover.mv-video-cover {
  aspect-ratio: 16/9;
}
.work-detail-cover.mv-video-cover video.hero-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0,0,0,0.5);
}
.bilibili-embeds {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}
.bili-video h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-paper-white);
}
.bili-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-2xl);
}
.bili-video video.local-video-player {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-2xl);
  background: rgba(0,0,0,0.5);
}

.work-detail-content {
  max-width: 800px;
  margin: 0 auto;
}
.work-detail-content h2 {
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.8px;
  color: var(--color-paper-white);
  margin: var(--spacing-40) 0 var(--spacing-16);
}
.work-detail-content h3 {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-paper-white);
  margin: var(--spacing-32) 0 var(--spacing-12);
}
.work-detail-content p {
  font-size: var(--text-body);
  color: var(--color-mid-gray);
  line-height: 1.8;
  margin-bottom: var(--spacing-16);
}
.work-detail-content ul {
  padding-left: var(--spacing-20);
  margin-bottom: var(--spacing-16);
}
.work-detail-content li {
  font-size: var(--text-body);
  color: var(--color-mid-gray);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 6px;
}

/* Rich content HTML inside work detail */
.work-content-html h3 {
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-paper-white);
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--color-electric-blue);
}

.work-content-html p {
  font-size: 14px;
  color: var(--color-mid-gray);
  line-height: 1.8;
  margin-bottom: 12px;
}

.work-content-html strong {
  color: var(--color-paper-white);
  font-weight: 600;
}

.work-content-html em {
  color: var(--color-steel);
  font-style: italic;
}

.work-content-html blockquote {
  margin: 16px 0;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--color-electric-blue);
  border-radius: 0 6px 6px 0;
}

.work-content-html blockquote p {
  margin-bottom: 0;
  color: var(--color-light-gray);
  font-size: 13px;
  line-height: 2;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.content-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.2s;
}

.content-card:hover {
  border-color: rgba(0,168,255,0.2);
}

.content-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-electric-blue);
  margin-bottom: 6px;
}

.content-card p {
  font-size: 13px;
  color: var(--color-mid-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

.content-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.flow-step {
  flex: 1;
  min-width: 140px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px;
  position: relative;
}

.flow-step::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-steel);
  font-size: 16px;
}

.flow-step:last-child::after {
  display: none;
}

.flow-step h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-electric-blue);
  margin-bottom: 4px;
}

.flow-step p {
  font-size: 12px;
  color: var(--color-mid-gray);
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .content-flow {
    flex-direction: column;
  }
  .flow-step::after {
    content: '↓';
    right: 50%;
    top: auto;
    bottom: -14px;
    transform: translateX(50%);
  }
}

/* GIF Interactive Showcase — Hierarchical */
.gif-showcase-section {
  background: #050505;
  padding: 40px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.gif-showcase-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0 24px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.gif-showcase-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: rgba(0,168,255,0.5);
}

.gif-showcase-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.gif-showcase-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Group (level 1: 1.2.3 热点, 1.2.4 节日) */
.gif-group {
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.gif-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.gif-group-header:hover {
  background: rgba(255,255,255,0.04);
}

.gif-group-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.gif-group-count {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.gif-group-chevron {
  margin-left: auto;
  color: rgba(255,255,255,0.3);
  transition: transform 0.3s;
}

.gif-group.collapsed .gif-group-chevron {
  transform: rotate(-90deg);
}

.gif-group.collapsed > .gif-subgroup {
  display: none;
}

/* Subgroup (level 2: 世界杯, 星座神兽, etc.) */
.gif-subgroup {
  padding: 0 18px 16px;
}

.gif-subgroup-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,168,255,0.5);
  letter-spacing: 0.08em;
  margin: 12px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Tile grid */
.gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.gif-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: gifFadeIn 0.6s ease forwards;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

@keyframes gifFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gif-tile:hover {
  transform: scale(1.05);
  border-color: rgba(0,168,255,0.3);
  box-shadow: 0 8px 32px rgba(0,168,255,0.12);
  z-index: 2;
}

.gif-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gif-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.gif-tile:hover::after {
  opacity: 1;
}

.gif-tile-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.gif-tile:hover .gif-tile-label {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .gif-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
  }
  .gif-showcase-header {
    padding: 0 16px 20px;
  }
  .gif-showcase-body {
    padding: 0 16px;
  }
  .gif-subgroup {
    padding: 0 12px 12px;
  }
}

/* PPT seamless slide display */
.ppt-seamless {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.ppt-seamless img {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  cursor: zoom-in;
}

/* Immersive music player */
.mp-immersive {
  position: relative;
  margin: 0 0 32px 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  min-height: 480px;
}

.mp-bg-blur {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(60,30,100,0.35), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(120,40,60,0.25), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(30,30,80,0.2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mp-left {
  position: relative;
  z-index: 1;
  padding: 32px 28px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mp-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.mp-lyrics-viewport {
  flex: 1;
  position: relative;
  max-height: 360px;
  overflow: hidden;
}

.mp-lyrics {
  height: 100%;
  overflow-y: auto;
  padding: 150px 0 140px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.mp-lyrics::-webkit-scrollbar {
  width: 4px;
}

.mp-lyrics::-webkit-scrollbar-track {
  background: transparent;
}

.mp-lyrics::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.mp-lyrics-center-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,120,255,0.15) 15%, rgba(168,120,255,0.15) 85%, transparent);
  pointer-events: none;
  z-index: 2;
}

.mp-lyric-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(168,120,255,0.5);
  margin: 20px 0 8px;
  text-transform: uppercase;
}

.mp-lyric-section:first-child {
  margin-top: 0;
}

.mp-lyric-credit {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.2);
  margin: 0;
  padding: 1px 0;
  cursor: pointer;
  transition: color 0.3s, font-size 0.3s;
}

.mp-lyric-credit.active {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 500;
}

.mp-lyric {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.35);
  margin: 0;
  padding: 2px 0;
  cursor: pointer;
  transition: color 0.3s, font-size 0.3s, font-weight 0.3s, line-height 0.3s;
}

.mp-lyric:hover {
  color: rgba(255,255,255,0.6);
}

.mp-lyric.active {
  font-size: 17px;
  font-weight: 600;
  line-height: 2;
  background: linear-gradient(90deg,
    #c8a0ff 0%,
    #c8a0ff var(--karaoke, 0%),
    rgba(255,255,255,0.3) var(--karaoke, 0%),
    rgba(255,255,255,0.3) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mp-right {
  position: relative;
  z-index: 1;
  padding: 32px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-left: 1px solid rgba(255,255,255,0.04);
}

.mp-vinyl {
  position: relative;
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.6));
}

.mp-vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: url('/assets/nuoying-disc.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  will-change: transform;
  transition: none;
  animation: mp-spin 60s linear infinite paused;
}

.mp-immersive.playing .mp-vinyl-disc {
  animation-play-state: running;
}

@keyframes mp-spin {
  from { transform: rotate(0deg) translateZ(0); }
  to { transform: rotate(360deg) translateZ(0); }
}

/* Tonearm */
.mp-tonearm {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  z-index: 3;
  transform: rotate(-28deg);
  transform-origin: 14px 14px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mp-immersive.playing .mp-tonearm {
  transform: rotate(6deg);
}

.mp-tonearm-pivot {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5a5a5a, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  z-index: 2;
}

.mp-tonearm-pivot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #888, #333);
  transform: translate(-50%, -50%);
}

.mp-tonearm-arm {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 105px;
  height: 3px;
  background: linear-gradient(90deg, #3a3a3a, #8a8a8a, #3a3a3a);
  border-radius: 2px;
  transform-origin: left center;
  transform: rotate(132deg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.mp-tonearm-arm::before {
  content: '';
  position: absolute;
  right: -2px;
  top: -1px;
  width: 6px;
  height: 5px;
  background: linear-gradient(135deg, #6a6a6a, #2a2a2a);
  border-radius: 1px;
}

.mp-tonearm-counterweight {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4a4a4a, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.08);
  transform-origin: left center;
  transform: rotate(132deg) translate(-22px, -6px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.mp-vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
}

.mp-vinyl-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  z-index: 2;
}

.mp-song-info {
  text-align: center;
}

.mp-song-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.mp-artist {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.mp-meta-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.mp-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(168,120,255,0.12);
  color: #a878ff;
  border: 1px solid rgba(168,120,255,0.2);
  letter-spacing: 0.05em;
}

.mp-album-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}

.mp-netease-link {
  font-size: 12px;
  color: #ee1414;
  text-decoration: none;
  transition: opacity 0.2s;
}

.mp-netease-link:hover {
  opacity: 0.75;
}

.mp-controls {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.mp-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #0a0a0a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.2s;
}

.mp-play-btn:hover {
  transform: scale(1.08);
  background: #f0f0f0;
}

.mp-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-time-current, .mp-time-total {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 36px;
}

.mp-progress-bar-bg {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.mp-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #ee1414);
  border-radius: 2px;
  width: 0;
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  .mp-immersive {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .mp-right {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 24px;
  }
  .mp-vinyl {
    width: 140px;
    height: 140px;
  }
  .mp-lyrics-viewport {
    max-height: 240px;
  }
}

/* Album bookshelf */
.mp-bookshelf {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 24px 0;
}

.mp-book {
  width: 160px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.mp-book:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.mp-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-book-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* Book viewer - 3D page flip */
.mp-book-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 2500px;
  animation: fadeIn 0.2s;
}

.mp-book-spread {
  position: relative;
  width: min(95vw, 1100px);
  aspect-ratio: 2;
  max-height: 85vh;
  display: flex;
  transform-style: preserve-3d;
}

.mp-book-page {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  user-select: none;
}

.mp-book-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.mp-book-page-left {
  border-radius: 4px 0 0 4px;
  box-shadow: inset -12px 0 20px -8px rgba(0,0,0,0.5);
}

.mp-book-page-right {
  border-radius: 0 4px 4px 0;
  box-shadow: inset 12px 0 20px -8px rgba(0,0,0,0.5);
}

.mp-book-page.blank {
  background: transparent;
  box-shadow: none;
}

.mp-book-page.blank img {
  opacity: 0;
}

.mp-book-spread::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.35), transparent 50%, rgba(0,0,0,0.35));
  z-index: 1;
  pointer-events: none;
}

.mp-book-flip {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
  z-index: 2;
  will-change: transform;
}

.mp-book-flip-right {
  left: 50%;
  transform-origin: left center;
}

.mp-book-flip-left {
  left: 0;
  transform-origin: right center;
}

.mp-book-flip-front,
.mp-book-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
}

.mp-book-flip-front {
  transform: rotateY(0deg);
}

.mp-book-flip-back {
  transform: rotateY(180deg);
}

.mp-book-flip-front img,
.mp-book-flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.mp-book-flip-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.3), transparent 50%);
  opacity: var(--shadow, 0.5);
  pointer-events: none;
  transition: opacity 0.1s;
}

.mp-book-flip-back::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.3), transparent 50%);
  opacity: var(--shadow, 0.5);
  pointer-events: none;
  transition: opacity 0.1s;
}

.mp-book-viewer-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  letter-spacing: 1px;
}

.mp-book-viewer-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.mp-book-viewer-close:hover {
  background: rgba(255,255,255,0.2);
}

.mp-book-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .mp-book { width: 110px; }
  .mp-bookshelf { gap: 12px; }
  .mp-book-spread { width: 95vw; }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s;
  user-select: none;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  will-change: transform;
  -webkit-user-drag: none;
  pointer-events: auto;
}

.lightbox-overlay.lb-dragging {
  cursor: grabbing !important;
}

.lightbox-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 1px;
  pointer-events: none;
  animation: fadeIn 0.3s 0.3s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-12);
  margin: var(--spacing-40) 0;
}
.work-gallery .gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}
.work-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.work-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-12);
  margin: var(--spacing-32) 0;
}
.feature-card {
  background: var(--color-surface-one);
  border: 1px solid rgba(229, 231, 235, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--spacing-20);
}
.feature-card .feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 117, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-electric-blue);
  font-size: 18px;
  margin-bottom: var(--spacing-12);
}
.feature-card h4 {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-paper-white);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 12px;
  color: var(--color-mid-gray);
  line-height: 1.6;
  margin: 0;
}

/* ---- Admin ---- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: var(--color-surface-one);
  border-right: 1px solid rgba(229, 231, 235, 0.06);
  padding: var(--spacing-24) 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}
.admin-sidebar .sidebar-logo {
  padding: 0 var(--spacing-20) var(--spacing-24);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: var(--color-paper-white);
  border-bottom: 1px solid rgba(229, 231, 235, 0.06);
  margin-bottom: var(--spacing-16);
}
.admin-sidebar .sidebar-menu {
  padding: 0 var(--spacing-12);
}
.admin-sidebar .sidebar-menu a {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  padding: var(--spacing-12) var(--spacing-12);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--color-mid-gray);
  transition: all 0.15s;
  cursor: pointer;
  margin-bottom: 4px;
}
.admin-sidebar .sidebar-menu a:hover {
  background: var(--color-surface-two);
  color: var(--color-paper-white);
}
.admin-sidebar .sidebar-menu a.active {
  background: var(--color-surface-two);
  color: var(--color-paper-white);
}
.admin-main {
  flex: 1;
  margin-left: 240px;
  padding: var(--spacing-24);
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-24);
}
.admin-header h1 {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  color: var(--color-paper-white);
}

.admin-table {
  width: 100%;
  background: var(--color-surface-one);
  border: 1px solid rgba(229, 231, 235, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-table table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  padding: var(--spacing-12) var(--spacing-16);
  text-align: left;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-steel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-surface-two);
  border-bottom: 1px solid rgba(229, 231, 235, 0.06);
}
.admin-table td {
  padding: var(--spacing-12) var(--spacing-16);
  font-size: 13px;
  color: var(--color-paper-white);
  border-bottom: 1px solid rgba(229, 231, 235, 0.04);
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table .table-actions {
  display: flex;
  gap: var(--spacing-8);
}
.admin-table .table-actions button {
  padding: 4px var(--spacing-8);
  font-size: 11px;
  border-radius: var(--radius-md);
  background: var(--color-surface-two);
  color: var(--color-paper-white);
  cursor: pointer;
}
.admin-table .table-actions button.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.form-group {
  margin-bottom: var(--spacing-20);
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: var(--color-paper-white);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px var(--spacing-12);
  background: var(--color-surface-one);
  border: 1px solid rgba(229, 231, 235, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-paper-white);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-electric-blue);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-16);
}

.admin-panel {
  background: var(--color-surface-one);
  border: 1px solid rgba(229, 231, 235, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--spacing-24);
}

/* ---- Login Page ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-24);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-surface-one);
  border: 1px solid rgba(229, 231, 235, 0.08);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-40);
}
.login-card .login-logo {
  text-align: center;
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  color: var(--color-paper-white);
  margin-bottom: var(--spacing-8);
}
.login-card .login-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--color-mid-gray);
  margin-bottom: var(--spacing-32);
}
.login-card .btn {
  width: 100%;
  margin-top: var(--spacing-8);
}

/* ---- Loading ---- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-60);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-surface-three);
  border-top-color: var(--color-electric-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: var(--spacing-60);
  color: var(--color-mid-gray);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Media Gallery (Work Detail) ---- */
.media-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.stat-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--color-paper-white);
  background: rgba(0,117,255,0.12);
  border: 1px solid rgba(0,117,255,0.25);
}

.media-gallery-section {
  padding: 60px 0;
  background: transparent;
}

.media-group {
  margin-bottom: 48px;
}
.media-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-paper-white);
  margin: 0 0 24px 0;
}
.media-group-bar {
  width: 3px;
  height: 18px;
  background: var(--color-electric-blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.media-group-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-steel);
  background: var(--color-surface-two);
  padding: 2px 10px;
  border-radius: 10px;
}

/* Videos */
.media-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.media-video-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.media-video-player {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  display: block;
}
.media-video-drama .media-video-player {
  aspect-ratio: 9/16;
}
.media-metaverse .media-video-player {
  aspect-ratio: 16/9;
  object-fit: contain;
}
.media-video-drama .media-video-player:fullscreen {
  width: auto;
  height: 100vh;
  max-width: calc(100vh * 9 / 16);
  aspect-ratio: 9/16;
  object-fit: contain;
  margin: 0 auto;
}
.media-drama .media-image-full {
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Images — 3:4 display window */
.media-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.media-image-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.media-image-full {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.media-image-full:hover {
  opacity: 0.9;
}

/* 喜语展板 — larger display, natural aspect ratio */
.xiyu-gallery .media-images {
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
}
.xiyu-gallery .media-image-full {
  aspect-ratio: auto;
  object-fit: contain;
}

/* 元宇宙展板 — larger display */
.media-metaverse.media-images {
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
}
.media-metaverse .media-image-full {
  aspect-ratio: auto;
  object-fit: contain;
}

/* File links (models, docs) */
.media-files {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

/* 3D Model Viewers */
.media-models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.model-viewer-slot {
  display: block;
}
.model-inline-viewer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.model-canvas-wrap {
  cursor: grab;
}
.model-canvas-wrap:active {
  cursor: grabbing;
}
.model-fullscreen-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--color-paper-white);
  padding: 6px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.model-fullscreen-btn:hover {
  background: rgba(0,117,255,0.3);
  border-color: var(--color-electric-blue);
}

/* 3D Viewer Modal */
.model-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.model-modal {
  width: 90vw;
  height: 90vh;
  max-width: 1200px;
  background: var(--color-surface-one);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.model-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--color-surface-two);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.model-modal-title {
  font-size: 14px;
  color: var(--color-paper-white);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-modal-close {
  background: none;
  border: none;
  color: var(--color-mid-gray);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s;
}
.model-modal-close:hover {
  color: var(--color-paper-white);
  background: var(--color-surface-three);
}
.model-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
}
.model-modal-hints {
  display: flex;
  gap: 16px;
  padding: 8px 20px;
  background: var(--color-surface-two);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: var(--color-mid-gray);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.model-modal-hints kbd {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  background: var(--color-surface-three);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: var(--color-paper-white);
  font-family: monospace;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .media-models {
    grid-template-columns: 1fr;
  }
  .model-modal {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
  }
  .model-modal-hints {
    font-size: 10px;
    gap: 8px;
  }
}
.media-file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--color-surface-two);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--color-paper-white);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.media-file-link:hover {
  border-color: var(--color-electric-blue);
  color: var(--color-electric-blue);
}
.file-icon {
  font-size: 11px;
  color: var(--color-steel);
  text-transform: uppercase;
}
.file-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-type {
  font-size: 11px;
  color: var(--color-steel);
  background: var(--color-surface-three);
  padding: 2px 6px;
  border-radius: 4px;
}

.media-file-name {
  font-size: 12px;
  color: var(--color-mid-gray);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .media-videos {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .media-images {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .xiyu-gallery .media-images {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  :root {
    --text-display: 36px;
    --text-heading: 28px;
    --section-gap: 60px;
  }
  .navbar-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .work-gallery {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-box input {
    width: 100%;
  }
  .search-box {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 150;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-nav.prev { left: var(--spacing-8); }
  .modal-nav.next { right: var(--spacing-8); }
}

@media (max-width: 480px) {
  :root {
    --text-display: 28px;
    --text-heading: 22px;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-split {
    flex-direction: column;
  }
  .hero-photo-side {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ===== Cast List (演职人员表) ===== */
.cast-section {
  padding: 48px 0;
  background: var(--color-surface-one);
}
.cast-era {
  margin-bottom: 32px;
}
.cast-era-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-electric-blue);
  margin: 0 0 16px 0;
  letter-spacing: 0.05em;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 20px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cast-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: transform 0.25s;
  -webkit-mask: radial-gradient(circle, #000 100%, transparent 100%);
  mask: radial-gradient(circle, #000 100%, transparent 100%);
}
.cast-card:hover .cast-avatar {
  transform: scale(1.06);
}
.cast-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cast-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-paper-white);
}
.cast-name-cn {
  font-size: 12px;
  color: var(--color-steel);
}
.cast-role {
  font-size: 11px;
  color: var(--color-steel);
}

/* ===== Doc Cards (expandable file windows) ===== */
.doc-cards-section {
  padding: 0 0 var(--spacing-60);
}
.doc-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.doc-card {
  background: var(--color-surface-one);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
}
.doc-card:hover {
  background: var(--color-surface-two);
}
.doc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
}
.doc-card-icon {
  color: var(--color-electric-blue);
  flex-shrink: 0;
}
.doc-card-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.doc-card-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-paper-white);
}
.doc-card-count {
  font-size: 12px;
  color: var(--color-steel);
}
.doc-card-chevron {
  color: var(--color-steel);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.doc-card.doc-card-expanded .doc-card-chevron {
  transform: rotate(180deg);
}
.doc-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}
.doc-card.doc-card-expanded .doc-card-body {
  max-height: 2000px;
  padding-bottom: 20px;
}
.doc-card-link {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  color: var(--color-mid-gray);
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
  cursor: pointer;
}
.doc-card-link:hover {
  color: var(--color-electric-blue);
}
.doc-link {
  cursor: pointer;
  color: var(--color-electric-blue);
}
@media (max-width: 768px) {
  .doc-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Document Viewer (文档在线阅读器，内容受保护) ===== */
.doc-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  animation: fadeIn 0.2s ease;
}
.doc-viewer {
  background: #fafaf7;
  border-radius: 14px;
  width: 100%;
  max-width: 880px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.doc-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #f2f1ec;
  flex-shrink: 0;
}
.doc-viewer-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-viewer-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.doc-viewer-close:hover {
  background: rgba(0,0,0,0.08);
  color: #111;
}
.doc-viewer-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 36px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.doc-viewer-body::-webkit-selection,
.doc-viewer-body *::selection {
  background: transparent;
}
.doc-viewer-text {
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.9;
  color: #262626;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.doc-viewer-p {
  font-size: 14.5px;
  line-height: 1.9;
  color: #262626;
  margin: 0 0 1em;
}
.doc-viewer-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}
.doc-viewer-error {
  text-align: center;
  color: #a33;
  padding: 60px 0;
  font-size: 14px;
}
.doc-viewer-footer {
  flex-shrink: 0;
  padding: 10px 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #f2f1ec;
  text-align: center;
  font-size: 12px;
  color: #999;
  letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .doc-viewer-body {
    padding: 20px 18px;
  }
}

/* ===== Media Tree (素材层级树) ===== */
.media-tree-root {
  margin-bottom: 24px;
  border-left: none;
}
.media-tree-sub {
  margin-bottom: 12px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.media-tree-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.media-tree-header:hover {
  background: rgba(255,255,255,0.02);
}
.media-tree-bar {
  width: 3px;
  height: 18px;
  background: var(--color-electric-blue);
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.8;
}
.media-tree-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-steel);
  flex-shrink: 0;
}
.media-tree-chevron {
  color: rgba(255,255,255,0.3);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.tree-collapsed > .media-tree-header .media-tree-chevron {
  transform: rotate(-90deg);
}
.media-tree-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-paper-white);
  margin: 0;
  letter-spacing: 0.02em;
}
.media-tree-sub .media-tree-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.media-tree-body {
  overflow: hidden;
  max-height: 9999px;
  transition: max-height 0.4s ease;
}
.tree-collapsed > .media-tree-body {
  max-height: 0;
  overflow: hidden;
}

/* ---- APK Download Card ---- */
.apk-download-card {
  background: var(--color-surface-one);
  border: 1px solid var(--color-charcoal);
  border-radius: var(--radius-2xl);
  padding: 20px 24px;
  transition: border-color 0.25s, background 0.25s;
}
.apk-download-card:hover {
  border-color: var(--color-electric-blue);
  background: var(--color-surface-two);
}
.apk-download-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.apk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #00c853, #00897b);
  color: #fff;
  flex-shrink: 0;
}
.apk-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.apk-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-paper-white);
}
.apk-sub {
  font-size: 12px;
  color: var(--color-mid-gray);
}
.apk-download-icon {
  color: var(--color-mid-gray);
  transition: color 0.25s, transform 0.25s;
}
.apk-download-card:hover .apk-download-icon {
  color: var(--color-electric-blue);
  transform: translateY(2px);
}

/* ============================================================
   Premium Effects — GSAP + taste-skill high-end aesthetics
   ============================================================ */

/* Premium easing variables */
:root {
  --ease-premium: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Navbar glass morphism on scroll */
.nav-scrolled {
  background: rgba(5, 5, 15, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Work card 3D tilt prep */
.work-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.4s var(--ease-soft);
}

/* Premium button hover */
.btn-primary, .btn-lg {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
  will-change: transform;
}

.btn-primary::after, .btn-lg::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s var(--ease-premium);
}

.btn-primary:hover::after, .btn-lg:hover::after {
  left: 100%;
}

/* Hero announcement pill — premium glass */
.hero-announcement {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s var(--ease-premium);
}

.hero-announcement:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Badge new — premium glow */
.badge-new {
  box-shadow: 0 0 20px rgba(0, 117, 255, 0.4), 0 0 40px rgba(0, 117, 255, 0.15);
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 117, 255, 0.4), 0 0 40px rgba(0, 117, 255, 0.15); }
  50% { box-shadow: 0 0 30px rgba(0, 117, 255, 0.6), 0 0 60px rgba(0, 117, 255, 0.25); }
}

/* Two-tone headline — premium text rendering */
.two-tone-headline {
  will-change: transform, opacity, filter;
}

/* Section reveal base (before GSAP kicks in, prevent FOUC) */
.work-card:not([style]),
.section-title:not([style]) {
  opacity: 1;
}

/* Ambient glow — enhanced existing hero::before */
.hero::before {
  filter: blur(40px);
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Scroll-down indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  pointer-events: none;
}

.hero-scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(12px); opacity: 0.9; }
}

/* Premium card shadow */
.work-card:hover {
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5),
              0 18px 36px -18px rgba(0,0,0,0.4),
              0 0 0 1px rgba(255,255,255,0.04);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* 唱片旋转（60s/圈）是温和的装饰动画，必须豁免：
     0.01ms × infinite 迭代会把缓慢旋转变成疯狂频闪 */
  .mp-vinyl-disc,
  .mp-immersive.playing .mp-vinyl-disc {
    animation-duration: 60s !important;
    animation-iteration-count: infinite !important;
  }
  .work-card, .btn-primary, .btn-lg {
    transform: none !important;
  }
}

/* ===== Board Grid (展板展示) ===== */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.board-item {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-surface-one);
  transition: transform 0.3s var(--ease-premium, cubic-bezier(0.32,0.72,0,1));
}
.board-item:hover {
  transform: translateY(-4px);
}
.board-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.board-item:hover img {
  transform: scale(1.06);
}
.board-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}
.board-detail-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,117,255,0.85);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Board Viewer (展板放大查看) */
.board-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
}
.board-viewer-inner {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  gap: 24px;
  align-items: center;
}
.board-viewer-img {
  max-width: 70vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.board-viewer-side {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.board-viewer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.board-viewer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-electric-blue, #0075ff);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.board-viewer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,117,255,0.4);
}
.board-viewer-close {
  position: absolute;
  top: 20px; right: 30px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.board-viewer-close:hover {
  background: rgba(255,255,255,0.2);
}
@media (max-width: 768px) {
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .board-viewer-inner {
    flex-direction: column;
    gap: 16px;
  }
  .board-viewer-side {
    width: 100%;
    align-items: center;
  }
}

