:root {
  --bg: #070b14;
  --bg-elevated: rgba(15, 23, 42, 0.72);
  --bg-card: rgba(15, 23, 42, 0.84);
  --border: rgba(148, 163, 184, 0.16);
  --border-hover: rgba(251, 191, 36, 0.45);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --amber: #fbbf24;
  --coral: #fb7185;
  --cyan: #38bdf8;
  --gradient: linear-gradient(90deg, #fbbf24 0%, #fb7185 60%, #38bdf8 100%);
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Soft twilight background glows */
.ambient-glow {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-amber {
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22), rgba(251, 113, 133, 0.08), transparent 70%);
}

.glow-cyan {
  top: -120px;
  right: -160px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), rgba(30, 58, 138, 0.08), transparent 70%);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 1rem;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--amber);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost,
.btn-outline,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
  padding: 7px 14px;
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: #fff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
}

.btn-outline:hover,
.btn-outline.active {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
}

.btn-primary {
  background: var(--gradient);
  color: #0b1120;
  border: none;
  padding: 8px 16px;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.22);
}

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

/* Hero & Theater */
.theater-section {
  padding: 42px 0 36px;
}

.hero-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fde68a;
  margin-bottom: 14px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.player-shell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: max-width 0.3s ease;
}

body.theater-active .container {
  max-width: 1420px;
}

body.theater-active .hero-copy {
  display: none;
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Control Bar */
.control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.now-meta {
  flex: 1 1 320px;
}

.now-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.mood-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.now-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.now-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.control-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ambient-widget {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--border);
}

.ambient-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 4px;
}

.ambient-buttons {
  display: flex;
  gap: 4px;
}

.amb-btn {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amb-btn:hover {
  color: #fff;
}

.amb-btn.active {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
}

#ambientVol {
  width: 72px;
  accent-color: var(--amber);
  cursor: pointer;
}

/* Meta strip */
.meta-strip {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.8fr;
  gap: 18px;
  padding: 16px 24px 20px;
  background: rgba(2, 6, 23, 0.35);
}

.meta-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.chapter-pills,
.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chapter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chapter-btn strong {
  color: var(--amber);
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
}

.chapter-btn:hover {
  border-color: var(--amber);
  color: #fff;
  background: rgba(251, 191, 36, 0.1);
}

.track-tag {
  font-size: 0.8rem;
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
}

.shot-meta {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Sections */
.section-block {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(7, 11, 20, 0) 100%);
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

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

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

.filter-btn {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(251, 191, 36, 0.14);
  border-color: var(--amber);
  color: #fde68a;
}

/* Route Cards */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

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

.route-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.route-card.is-playing {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.4), 0 16px 36px rgba(0, 0, 0, 0.42);
}

.route-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}

.route-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.route-card:hover .route-thumb {
  transform: scale(1.04);
}

.route-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(2, 6, 23, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.route-playing-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--gradient);
  color: #0b1120;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
}

.route-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.route-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.route-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.route-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Coming Soon Card */
.coming-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.55), rgba(30, 41, 59, 0.35));
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  min-height: 270px;
}

.coming-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.coming-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Gear Cards */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.gear-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gear-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.gear-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.gear-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gear-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.gear-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fde68a;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.gear-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
  background: rgba(2, 6, 23, 0.65);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand {
  max-width: 480px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.footer-note {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.disclosure {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.88rem;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .meta-strip {
    grid-template-columns: 1fr;
  }
  .control-bar {
    padding: 16px;
  }
  .meta-strip {
    padding: 14px 16px 18px;
  }
}
