:root {
  --ink-900: #0f1720;
  --ink-800: #17212c;
  --ink-700: #2a3644;
  --ink-500: #5b6776;
  --ink-300: #c9d0d9;
  --ink-100: #eef2f6;
  --paper: #f7f8fa;
  --white: #ffffff;

  --primary-600: #1d6fa3;
  --primary-500: #2a88c4;
  --primary-100: #e3f1fa;
  --accent-500: #d9a441;
  --accent-100: #fbf3e2;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --shadow-soft: 0 12px 32px rgba(15, 23, 32, 0.08);
  --shadow-lift: 0 20px 40px rgba(15, 23, 32, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  color: var(--ink-900);
  font-weight: 700;
}

p {
  margin: 0;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 16px;
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading h2,
.split h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.section-note {
  margin-top: 16px;
  color: var(--ink-500);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(24px, 4vw, 56px);
  color: var(--white);
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-900);
  box-shadow: 0 1px 0 var(--ink-100);
  backdrop-filter: blur(8px);
}

.brand {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  position: relative;
  font-size: 15px;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink-900);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(48vh) scale(2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 32, 0.35) 0%,
    rgba(15, 23, 32, 0.55) 55%,
    rgba(15, 23, 32, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
  padding: 160px 0 128px;
  animation: rise-in 1s ease-out both;
}

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

.hero h1 {
  color: var(--white);
  font-size: clamp(64px, 11vw, 136px);
  letter-spacing: 0.04em;
}

.hero-subtitle {
  margin-top: 8px;
  font-size: clamp(18px, 2.4vw, 24px);
  opacity: 0.85;
  letter-spacing: 0.08em;
}

.hero-lede {
  max-width: 560px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.btn {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--accent-500);
  color: var(--ink-900);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #e6b155;
  box-shadow: 0 12px 24px rgba(217, 164, 65, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-actions .btn {
  margin-top: 0;
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 1;
  width: 28px;
  height: 44px;
  margin-left: -14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
}

.scroll-cue span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: var(--white);
  animation: cue-bounce 1.6s ease-in-out infinite;
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

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

@keyframes cue-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* About */
.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.prose p + p {
  margin-top: 24px;
}

.prose p {
  font-size: 17px;
  line-height: 1.5;
}

/* Timeline */
.timeline-section {
  background: var(--white);
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 87px;
  width: 2px;
  background: var(--ink-100);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline .year {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-600);
  padding-top: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 83px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
}

.timeline h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.timeline p {
  color: var(--ink-500);
}

/* Songs */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.song-card {
  position: relative;
  min-height: 200px;
  padding: 32px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.8s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.song-card:hover,
.song-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--primary-100);
  outline: none;
}

.song-index {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-500);
}

.song-card h3 {
  font-size: 22px;
  margin-top: 24px;
}

.song-card .song-desc {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-600);
}

.song-card .song-hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-500);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.song-card.is-open .song-hint {
  opacity: 1;
  transform: translateY(0);
  color: var(--ink-700);
}

/* Tour */
.tour {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  color: var(--white);
  background: var(--ink-900);
}

.tour-bg {
  position: absolute;
  inset: 0;
}

.tour-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.tour-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 32, 0.95), rgba(15, 23, 32, 0.6));
}

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

.tour .eyebrow {
  color: var(--accent-500);
}

.tour h2 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 44px);
}

.tour-content > p:not(.eyebrow) {
  margin-top: 24px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0 0;
}

.stats dt {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--accent-500);
}

.stats dd {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(24px, 4vw, 56px);
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 88px 0;
  }
}

@media (max-width: 720px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .site-nav a:nth-child(n + 3):not(.nav-keep) {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline::before {
    left: 19px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 48px;
  }

  .timeline li::before {
    left: 15px;
  }

  .timeline .year {
    font-size: 18px;
  }
}

/* Stage */
.stage-page {
  height: 100vh;
  overflow: hidden;
  background: #05050c;
  color: rgba(255, 255, 255, 0.86);
}

.stage-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 72px;
}

.stage-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
}

#stageVideo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #05050c;
}

#stageVideo:not([src]) {
  visibility: hidden;
}

.stage-wrap.audio-mode #stageVideo {
  visibility: hidden;
}

.stage-wrap.video-mode #stage,
.stage-wrap.video-mode .stage-performer {
  display: none;
}

.stage-wrap.video-mode.hide-photo-rails .stage-photo-rail {
  display: none;
}

#stage {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.stage-performer {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(58vw, 460px, 70vh);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.stage-center-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.stage-center-glow::before,
.stage-center-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.stage-center-glow::before {
  inset: 8%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 35deg,
    rgba(72, 220, 255, 0.08) 48deg,
    rgba(72, 220, 255, 0.95) 58deg,
    #fff 61deg,
    rgba(170, 90, 255, 0.75) 68deg,
    transparent 82deg 165deg,
    rgba(255, 110, 210, 0.08) 180deg,
    rgba(255, 110, 210, 0.9) 193deg,
    #fff 196deg,
    rgba(90, 210, 255, 0.7) 204deg,
    transparent 218deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 7px rgba(72, 220, 255, 0.95)) drop-shadow(0 0 20px rgba(160, 80, 255, 0.65));
  animation: stage-center-spin 8s linear infinite;
}

.stage-center-glow::after {
  inset: 16%;
  background:
    radial-gradient(circle, transparent 34%, rgba(86, 190, 255, 0.14) 53%, transparent 72%),
    radial-gradient(circle, rgba(160, 80, 255, 0.18), transparent 68%);
  filter: blur(18px);
  animation: stage-center-pulse 3s ease-in-out infinite alternate;
}

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

@keyframes stage-center-pulse {
  from {
    opacity: 0.55;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

#rolePreview {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.75);
  cursor: grab;
  box-shadow: 0 0 0 4px rgba(160, 90, 255, 0.35);
}

#rolePreview:active {
  cursor: grabbing;
}

#rolePreview:focus-visible {
  outline: 2px solid #76e8ff;
  outline-offset: 6px;
}

.stage-photo-rail {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: clamp(72px, 12vw, 156px);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.78;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

.stage-photo-rail-left {
  left: 0;
}

.stage-photo-rail-right {
  right: 0;
}

.stage-photo-track {
  display: flex;
  flex-direction: column;
  animation: stage-photo-scroll 110s linear infinite;
  will-change: transform;
}

.stage-photo-set {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
}

.stage-photo-rail-right .stage-photo-track {
  animation-direction: reverse;
}

.stage-photo-frame {
  position: relative;
  width: 100%;
  height: clamp(88px, 16vh, 156px);
  flex: 0 0 auto;
  isolation: isolate;
  border-radius: 8px;
  box-shadow:
    0 0 8px rgba(90, 210, 255, 0.35),
    0 0 20px rgba(90, 120, 255, 0.22),
    0 6px 20px rgba(0, 0, 0, 0.4);
}

.stage-photo-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -2px;
  padding: 2px;
  border-radius: 10px;
  background: conic-gradient(
    from var(--laser-angle),
    transparent 0deg 296deg,
    rgba(70, 220, 255, 0.2) 310deg,
    #53eaff 323deg,
    #ffffff 329deg,
    #a356ff 338deg,
    transparent 350deg 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 5px rgba(83, 234, 255, 0.9)) drop-shadow(0 0 12px rgba(163, 86, 255, 0.65));
  pointer-events: none;
  animation: stage-laser-run 2.4s linear infinite;
}

.stage-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(130, 220, 255, 0.48);
  border-radius: inherit;
  object-fit: cover;
}

@property --laser-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes stage-laser-run {
  to {
    --laser-angle: 360deg;
  }
}

@keyframes stage-photo-scroll {
  to {
    transform: translateY(-50%);
  }
}

.stage-dock {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  background: rgba(8, 10, 18, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.stage-controls .btn {
  margin-top: 0;
  border: 0;
  cursor: pointer;
  padding: 12px 28px;
}

.stage-controls .btn-stage-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.stage-controls .btn-stage-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.file-field {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-500);
}

.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  cursor: pointer;
}

.toggle-field[hidden] {
  display: none;
}

.toggle-field input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-500);
  cursor: pointer;
}

.file-field input,
.file-field select {
  color: var(--white);
  max-width: 200px;
}

.file-field select {
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #111522;
  font: inherit;
  letter-spacing: normal;
}

.stage-status {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 720px) {
  .stage-photo-rail {
    width: clamp(48px, 14vw, 88px);
  }

  .stage-performer {
    width: min(76vw, 340px, 65vh);
  }

  .stage-photo-set {
    gap: 6px;
  }

  .stage-photo-frame {
    height: clamp(68px, 12vh, 100px);
    border-radius: 5px;
  }

  .stage-photo-frame::before {
    border-radius: 7px;
  }
}

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

  .stage-photo-track {
    animation: none;
  }

  .stage-photo-frame::before {
    animation: none;
  }

  .stage-performer .stage-center-glow::before,
  .stage-performer .stage-center-glow::after {
    animation: none;
  }
}
