/* ============================================================
   HIP-HOP REVOLUTION — 视觉系统
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg2: #111114;
  --ink: #f2efe9;
  --ink-dim: rgba(242, 239, 233, .55);
  --ink-faint: rgba(242, 239, 233, .28);
  --line: rgba(242, 239, 233, .14);
  --era: #FF4D00;
  --font-display: 'Anton', 'Archivo Black', 'Noto Sans SC', sans-serif;
  --font-body: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --font-serif: 'Noto Serif SC', serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--era); color: #000; }

a, button { cursor: none; font-family: inherit; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 11000; transform: translateY(-180%);
  background: var(--ink); color: #000; padding: 10px 14px; font-weight: 700; text-decoration: none;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #FFC400; outline-offset: 4px; }

/* ---------- 噪点覆层 ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 9990; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .07;
  animation: grain-shift .5s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-30px, 20px); }
  50% { transform: translate(20px, -30px); }
  75% { transform: translate(-20px, -20px); }
  100% { transform: translate(30px, 30px); }
}

/* ---------- 自定义光标 ---------- */
.cursor-dot {
  position: fixed; z-index: 9999; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; z-index: 9998; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(242, 239, 233, .5); pointer-events: none;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              background .35s, border-color .35s;
  mix-blend-mode: difference;
}
.cursor-ring.hovering { width: 72px; height: 72px; background: rgba(242,239,233,.12); border-color: transparent; }
.cursor-label { font-size: 10px; letter-spacing: .15em; opacity: 0; font-weight: 700; }
.cursor-ring.labeled { width: 88px; height: 88px; background: var(--era); border-color: transparent; mix-blend-mode: normal; }
.cursor-ring.labeled .cursor-label { opacity: 1; color: #000; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } body { cursor: auto; } a, button { cursor: pointer; } }

/* ---------- 加载屏 ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
}
.pre-vinyl { position: relative; width: 160px; height: 160px; }
.pre-vinyl-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #111 0 2px, #1c1c1f 2px 4px);
  border: 1px solid #2a2a2e;
  animation: spin 1.6s linear infinite;
  box-shadow: 0 0 60px rgba(255, 77, 0, .25);
}
.pre-vinyl-label {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #FF4D00 0 55%, #0a0a0c 55% 62%, #FF4D00 62% 66%, transparent 66%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.pre-text { text-align: center; }
.pre-count {
  font-family: var(--font-display); font-size: 72px; line-height: 1;
  color: var(--ink); letter-spacing: .02em;
}
.pre-tag { margin-top: 10px; font-size: 11px; letter-spacing: .4em; color: var(--ink-dim); }

/* ---------- 顶部进度条 ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9500; background: rgba(242,239,233,.06); }
.scroll-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #FF4D00, #FFC400, #9B5CFF, #4DD8FF, #3DFF88, #FF4DD8); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px;
  mix-blend-mode: difference;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark { font-size: 26px; }
.logo-text { font-family: var(--font-display); font-size: 13px; line-height: 1.05; letter-spacing: .12em; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.sound-toggle {
  display: flex; align-items: center; gap: 10px; background: none; border: 1px solid rgba(242,239,233,.35);
  color: var(--ink); padding: 9px 14px; border-radius: 999px; font-size: 10px; letter-spacing: .2em; font-weight: 700;
  transition: background .3s, color .3s;
}
.sound-toggle:hover { background: var(--ink); color: #000; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; background: currentColor; height: 30%; }
.sound-toggle.playing .eq i { animation: eq-bounce .7s ease-in-out infinite; }
.sound-toggle.playing .eq i:nth-child(1) { animation-delay: 0s; }
.sound-toggle.playing .eq i:nth-child(2) { animation-delay: .15s; }
.sound-toggle.playing .eq i:nth-child(3) { animation-delay: .3s; }
.sound-toggle.playing .eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eq-bounce { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.lang-toggle {
  background: none; border: 1px solid rgba(242,239,233,.35); color: var(--ink);
  padding: 9px 14px; border-radius: 999px; font-size: 12px; letter-spacing: .05em;
  display: flex; gap: 6px; align-items: center; transition: background .3s, color .3s;
}
.lang-toggle:hover { background: var(--ink); color: #000; }
.lang-opt { opacity: .4; transition: opacity .3s; font-weight: 700; }
.lang-opt.on { opacity: 1; }
.lang-sep { opacity: .3; }

/* ---------- 侧边章节导航 ---------- */
.sidenav {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 8900; display: flex; flex-direction: column; gap: 18px;
}
.sidenav a { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-direction: row-reverse; }
.sidenav .sn-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink-dim);
  transition: background .3s, transform .3s, border-color .3s;
}
.sidenav .sn-label {
  font-size: 10px; letter-spacing: .2em; color: var(--ink-dim);
  opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s;
  font-weight: 700; writing-mode: horizontal-tb;
}
.sidenav a:hover .sn-label, .sidenav a.active .sn-label { opacity: 1; transform: translateX(0); }
.sidenav a.active .sn-dot { background: var(--era, #fff); border-color: transparent; transform: scale(1.4); }
@media (max-width: 900px) { .sidenav { display: none; } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; padding: 0 6vw; width: 100%; }
.hero-kicker {
  display: inline-block; font-size: 12px; letter-spacing: .5em; color: var(--ink-dim);
  border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; margin-bottom: 4vh;
}
.hero-title { font-family: var(--font-display); line-height: .92; user-select: none; }
.ht-line { display: block; overflow: hidden; }
.ht-word {
  display: inline-block;
  font-size: clamp(64px, 14.5vw, 220px);
  letter-spacing: .01em;
}
.ht-word .ch {
  background: linear-gradient(180deg, #fff 30%, #8b8b93 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ht-outline .ht-word .ch {
  background: none;
  -webkit-text-stroke: 2px rgba(242, 239, 233, .85);
}
.hero-sub { display: flex; align-items: baseline; gap: 24px; margin-top: 3.5vh; flex-wrap: wrap; }
.hero-years {
  font-family: var(--font-display); font-size: clamp(20px, 3vw, 34px); color: #FF4D00; letter-spacing: .05em;
}
.hero-tagline { font-size: clamp(14px, 1.5vw, 19px); color: var(--ink-dim); max-width: 480px; }
.hero-stats { display: flex; gap: clamp(24px, 5vw, 72px); margin-top: 5vh; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(28px, 4vw, 52px); line-height: 1; }
.stat span { font-size: 11px; letter-spacing: .3em; color: var(--ink-dim); }
.hero-scrollhint {
  position: absolute; bottom: 32px; left: 6vw; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.hs-text { font-size: 10px; letter-spacing: .35em; color: var(--ink-dim); }
.hs-line { width: 60px; height: 1px; background: var(--ink-dim); position: relative; overflow: hidden; }
.hs-line::after {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  animation: hs-slide 1.8s var(--ease-out) infinite;
}
@keyframes hs-slide { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- 跑马灯 ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; background: var(--bg);
}
.marquee-track {
  display: inline-flex; white-space: nowrap; font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px); letter-spacing: .08em; color: var(--ink-faint);
  will-change: transform;
}
.marquee-track em { font-style: normal; color: var(--era, #FF4D00); }

/* ---------- 时代章节 ---------- */
.era { position: relative; padding: 14vh 6vw 10vh; overflow: hidden; }
.era::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 85% 8%, color-mix(in srgb, var(--era) 13%, transparent), transparent 70%);
}
.era-bgnum {
  position: absolute; top: 2vh; right: -2vw; z-index: 0;
  font-family: var(--font-display); font-size: clamp(200px, 38vw, 560px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--era) 35%, transparent);
  opacity: .35; pointer-events: none; user-select: none;
}
.era-head { position: relative; z-index: 1; max-width: 1200px; }
.era-years {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .45em; color: var(--era); font-weight: 700; margin-bottom: 2vh;
}
.era-years::before { content: ''; width: 46px; height: 1px; background: var(--era); }
.era-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 140px);
  line-height: .95; letter-spacing: .01em; margin-bottom: 1vh;
}
.era-title .et-en { display: block; font-size: .32em; letter-spacing: .3em; color: var(--ink-dim); margin-top: 12px; }
.era-sub { font-family: var(--font-serif); font-size: clamp(16px, 2vw, 24px); color: var(--ink-dim); margin-bottom: 5vh; }
.era-quote {
  position: relative; max-width: 780px;
  font-family: var(--font-serif); font-size: clamp(19px, 2.6vw, 32px); line-height: 1.5;
  padding-left: 28px; border-left: 3px solid var(--era);
  margin-bottom: 3vh;
}
.era-desc { max-width: 640px; color: var(--ink-dim); font-size: clamp(13px, 1.2vw, 16px); line-height: 1.9; margin-bottom: 7vh; }

/* 歌手卡片 */
.artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; position: relative; z-index: 1; }
.card {
  position: relative; border: 1px solid var(--line); background: var(--bg2);
  overflow: hidden; transform-style: preserve-3d; will-change: transform;
  transition: border-color .4s;
}
.card:hover { border-color: color-mix(in srgb, var(--era) 60%, transparent); }
.card-art { display: block; width: 100%; aspect-ratio: 16/10; }
.card-body { padding: 20px 22px 24px; position: relative; display: grid; align-content: start; }
.card-year {
  position: absolute; top: -34px; right: 16px;
  font-family: var(--font-display); font-size: 15px; letter-spacing: .08em;
  background: var(--era); color: #000; padding: 8px 12px;
}
.card-name {
  font-family: var(--font-display); font-size: clamp(20px, 2vw, 27px);
  letter-spacing: .02em; margin-bottom: 6px;
  min-height: 2.15em; line-height: 1.07;
  display: flex; align-items: flex-end;
}
.card-name.long { font-size: clamp(16px, 1.5vw, 21px); }
.card-tag { display: grid; gap: 3px; font-size: 11px; letter-spacing: .13em; color: var(--era); font-weight: 700; margin-bottom: 14px; min-height: 2.8em; }
.card-tag small { color: var(--ink-faint); font-size: 9px; letter-spacing: .11em; line-height: 1.3; }
.card-song {
  display: flex; align-items: center; gap: 10px;
  min-height: 54px;
  font-size: 13px; color: var(--ink); font-weight: 500;
  border-top: 1px dashed var(--line); padding-top: 14px; margin-bottom: 10px;
}
.card-song .play {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--era); color: var(--era);
  display: flex; align-items: center; justify-content: center; font-size: 9px;
  transition: background .3s, color .3s;
}
.card:hover .card-song .play:not(.is-playing) { background: var(--era); color: #000; }
.card-line { display: grid; gap: 6px; font-size: 13px; line-height: 1.68; color: var(--ink-dim); min-height: 7.4em; }
.card-line small { color: var(--ink-faint); font-size: 11px; line-height: 1.55; }

/* 事件带 */
.events { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7vh; position: relative; z-index: 1; }
.event-chip {
  display: flex; align-items: baseline; gap: 10px;
  border: 1px solid var(--line); padding: 12px 18px; border-radius: 999px;
  font-size: 12px; color: var(--ink-dim);
  transition: border-color .3s, color .3s, transform .3s;
}
.event-chip:hover { border-color: var(--era); color: var(--ink); transform: translateY(-3px); }
.event-chip b { font-family: var(--font-display); color: var(--era); font-size: 13px; letter-spacing: .05em; }

/* ---------- 通用 section-head ---------- */
.section-head { padding: 0 6vw; margin-bottom: 6vh; position: relative; }
.sh-num {
  font-family: var(--font-display); font-size: clamp(60px, 9vw, 120px);
  color: transparent; -webkit-text-stroke: 1px var(--ink-faint); line-height: 1; display: block;
}
.sh-title { font-family: var(--font-display); font-size: clamp(36px, 6vw, 88px); margin-top: -1.5vw; }
.sh-sub { color: var(--ink-dim); margin-top: 12px; font-size: 14px; letter-spacing: .1em; }

/* ---------- 里程碑时间轴 ---------- */
.milestones { padding: 14vh 0; background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ms-scroller { overflow-x: auto; scrollbar-width: none; padding: 0 6vw; }
.ms-scroller::-webkit-scrollbar { display: none; }
.ms-track { display: flex; gap: 0; position: relative; padding: 70px 0 30px; min-width: max-content; }
.ms-track::before {
  content: ''; position: absolute; top: 24px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, #FF4D00, #FFC400, #9B5CFF, #4DD8FF, #3DFF88, #FF4DD8);
}
.ms-item { position: relative; width: 190px; flex: 0 0 auto; }
.ms-item::before {
  content: ''; position: absolute; top: -52px; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--era, #fff);
}
.ms-year { font-family: var(--font-display); font-size: 34px; color: var(--era, #fff); line-height: 1; margin-bottom: 10px; }
.ms-text { font-size: 13px; color: var(--ink-dim); max-width: 150px; line-height: 1.5; }

/* ---------- Essential 50 墙 ---------- */
.wall { padding: 14vh 0 10vh; }
.wall-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 6vw; margin-bottom: 5vh; }
.wf-btn {
  background: none; border: 1px solid var(--line); color: var(--ink-dim);
  padding: 10px 20px; border-radius: 999px; font-size: 12px; letter-spacing: .1em;
  transition: all .3s;
}
.wf-btn:hover { color: var(--ink); border-color: var(--ink-dim); }
.wf-btn.on { background: var(--ink); color: #000; border-color: var(--ink); font-weight: 700; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding: 0 6vw; }
.vinyl-card { position: relative; perspective: 900px; }
.vinyl-inner {
  position: relative; transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.vinyl-card:hover .vinyl-inner { transform: rotateY(180deg); }
.vinyl-face {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid var(--line); background: var(--bg2);
}
.vinyl-front canvas { display: block; width: 100%; aspect-ratio: 1; }
.vinyl-front .vf-num {
  position: absolute; top: 8px; left: 10px; font-family: var(--font-display);
  font-size: 13px; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.8); letter-spacing: .05em;
}
.vinyl-back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 18px; background: var(--bg2);
}
.vinyl-back .vb-year { font-family: var(--font-display); font-size: 26px; color: var(--era, #FF4D00); line-height: 1; }
.vinyl-back .vb-album { font-weight: 700; font-size: 14px; line-height: 1.35; }
.vinyl-back .vb-artist { font-size: 12px; color: var(--ink-dim); }
.vinyl-back .vb-era { font-size: 10px; letter-spacing: .25em; color: var(--ink-faint); margin-top: auto; }

/* ---------- 尾声 ---------- */
.finale { padding: 20vh 6vw 8vh; text-align: center; position: relative; overflow: hidden; }
.finale::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 100%, rgba(255, 77, 0, .13), transparent 70%);
  pointer-events: none;
}
.finale-inner { position: relative; }
.finale-kicker { font-size: 11px; letter-spacing: .5em; color: var(--ink-dim); margin-bottom: 3vh; }
.finale-title { font-family: var(--font-display); font-size: clamp(44px, 9vw, 130px); line-height: 1.02; }
.finale-accent {
  background: linear-gradient(90deg, #FF4D00, #FFC400, #9B5CFF, #4DD8FF, #3DFF88, #FF4DD8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.finale-text { max-width: 620px; margin: 4vh auto 0; color: var(--ink-dim); line-height: 2; font-size: 15px; }
.finale-top {
  display: inline-block; margin-top: 6vh; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); padding: 16px 34px; border-radius: 999px;
  font-size: 12px; letter-spacing: .25em;
  transition: background .3s, color .3s;
}
.finale-top:hover { background: var(--ink); color: #000; }
.finale-credit { margin-top: 8vh; font-size: 11px; color: var(--ink-faint); letter-spacing: .08em; }
.finale-notice { display: inline-block; margin-top: 16px; color: var(--ink-dim); font-size: 11px; letter-spacing: .08em; }

/* ---------- 入场动画初始态 ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  /* 移动端内容不能依赖 JS 滚动动画触发后才可见。 */
  [data-reveal] { opacity: 1; transform: none; }
  .card { will-change: auto; }
  .marquee-track { will-change: auto; }
  .vc-breathe { animation: none !important; }
  .vc-disc-inner { animation: none !important; }
  .vinyl-card.touch-open .vc-disc-inner { animation: spin 3.2s linear infinite !important; }
  .topbar { padding: 16px 18px; }
  .hero-inner { padding: 0 20px; }
  .hero-scrollhint { left: 20px; }
  .era { padding: 10vh 20px 8vh; }
  .section-head, .wall-filters, .wall-grid, .ms-scroller { padding-left: 20px; padding-right: 20px; }
  .artists { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .era-bgnum { opacity: .2; }
}

/* ---------- 歌曲播放 & 跳转 ---------- */
.card-song { justify-content: flex-start; }
.card-song .song-title { flex: 1 1 auto; min-width: 0; }
.play.song-play {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--era); color: var(--era); background: none;
  display: flex; align-items: center; justify-content: center; font-size: 10px;
  transition: background .3s, color .3s, transform .2s;
}
.song-play:hover { transform: scale(1.12); }
.song-play.is-playing { background: var(--era); color: #000; animation: pulse-play 1s ease-in-out infinite; }
.song-play.is-loading { opacity: .6; animation: pulse-play .5s linear infinite; }
@keyframes pulse-play { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--era) 45%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.song-play.big { width: 52px; height: 52px; font-size: 15px; }
.song-links { display: flex; gap: 6px; flex: 0 0 auto; }
.song-links a {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; text-decoration: none; color: var(--ink-dim);
  transition: border-color .3s, color .3s, transform .2s;
}
.song-links a:hover { border-color: var(--era); color: var(--era); transform: translateY(-2px); }
.card-more {
  margin-top: 12px; font-size: 10px; letter-spacing: .3em; color: var(--ink-faint);
  transition: color .3s;
}
.card:hover .card-more { color: var(--era); }
.card { cursor: none; }

/* ---------- 专辑跳转链接 ---------- */
.vb-links { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.vb-links a {
  display: block; text-align: center; text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  padding: 7px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--era) 65%, transparent);
  color: var(--era);
  transition: background .25s, color .25s;
}
.vb-links a:hover { background: var(--era); color: #000; }

/* ---------- 歌手详情弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 9600;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; visibility: hidden; pointer-events: none;
}
.modal.open { visibility: visible; pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(5, 5, 7, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; width: min(680px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg2); border: 1px solid color-mix(in srgb, var(--era) 40%, var(--line));
  border-radius: 4px; scrollbar-width: none;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 80px color-mix(in srgb, var(--era) 12%, transparent);
}
.modal-panel::-webkit-scrollbar { display: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--line); color: var(--ink);
  font-size: 14px; transition: background .3s, color .3s, transform .3s;
}
.modal-close:hover { background: var(--era); color: #000; transform: rotate(90deg); }
.modal-art { position: relative; }
.modal-art canvas { display: block; width: 100%; aspect-ratio: 16/8; }
.modal-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg2) 100%);
}
.modal-art-year {
  position: absolute; bottom: 12px; right: 16px; z-index: 1;
  font-family: var(--font-display); font-size: 17px; letter-spacing: .08em;
  background: var(--era); color: #000; padding: 9px 14px;
}
.modal-body { padding: 6px 34px 36px; position: relative; }
.modal-name { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); letter-spacing: .02em; }
.modal-tag { font-size: 12px; letter-spacing: .22em; color: var(--era); font-weight: 700; margin: 8px 0 22px; }
.modal-song {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-left: 3px solid var(--era);
  padding: 14px 18px; margin-bottom: 22px; background: rgba(255, 255, 255, .02);
}
.ms-track-label { display: block; font-size: 9px; letter-spacing: .3em; color: var(--ink-faint); margin-bottom: 4px; }
.ms-track-name { font-size: 14px; font-weight: 700; }
.modal-story { font-size: 14.5px; line-height: 2; color: var(--ink-dim); margin-bottom: 26px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ma-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: .03em;
  transition: transform .25s, box-shadow .25s;
}
.ma-btn:hover { transform: translateY(-3px); }
.ma-spotify { background: #1DB954; color: #000; }
.ma-spotify:hover { box-shadow: 0 10px 30px rgba(29, 185, 84, .35); }
.ma-apple { background: linear-gradient(135deg, #fa2d48, #a31c5f); color: #fff; }
.ma-apple:hover { box-shadow: 0 10px 30px rgba(250, 45, 72, .35); }
@media (max-width: 720px) {
  .modal-body { padding: 6px 22px 28px; }
}

/* ---------- 卡片封面遮罩切换 ---------- */
.card-art-wrap { position: relative; overflow: hidden; }
.card-art-wrap .card-art { display: block; width: 100%; aspect-ratio: 16/10; }
.card-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.progressive-media { opacity: 0; transition: opacity .35s ease; }
.progressive-media.is-loaded { opacity: 1; }
.card-cover.media-failed { display: none; }
.vinyl-front.media-failed { background: linear-gradient(135deg, color-mix(in srgb, var(--era) 52%, #111), #151518); }
.vinyl-front .vf-cover.media-failed { display: none; }
.art-badge {
  position: absolute; left: 10px; bottom: 8px; z-index: 2;
  font-size: 8px; letter-spacing: .25em; font-weight: 700;
  padding: 4px 8px; background: rgba(0, 0, 0, .6); color: rgba(255,255,255,.75);
  backdrop-filter: blur(4px); transition: opacity .3s;
  pointer-events: none;
}
.badge-cov { opacity: 0; color: #fff; background: var(--era); }
.show-cover .badge-cov { opacity: 1; }
.show-cover .badge-gen { opacity: 0; }

/* ---------- NOW PLAYING 悬浮器 ---------- */
#nowPlaying {
  position: fixed; left: 26px; bottom: 26px; z-index: 9400;
  display: flex; align-items: center; gap: 14px;
  background: rgba(12, 12, 15, .82); border: 1px solid var(--line);
  border-left: 3px solid var(--era, #FF4D00);
  padding: 12px 20px 12px 12px; border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateY(140%); transition: transform .6s var(--ease-out);
  max-width: min(420px, 80vw);
}
#nowPlaying.show { transform: translateY(0); }
.np-vinyl {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #111 0 2px, #222 2px 4px);
  border: 1px solid #333; position: relative;
  animation: spin 2.4s linear infinite;
}
.np-label {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--era, #FF4D00);
}
.np-label::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px;
  transform: translate(-50%, -50%); border-radius: 50%; background: #0a0a0c;
}
.np-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.np-era { font-size: 9px; letter-spacing: .3em; color: var(--era, #FF4D00); font-weight: 700; }
.np-track { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.np-eq i { width: 3px; background: var(--era, #FF4D00); animation: eq-bounce .8s ease-in-out infinite; }
.np-eq i:nth-child(1) { animation-delay: 0s; }
.np-eq i:nth-child(2) { animation-delay: .2s; }
.np-eq i:nth-child(3) { animation-delay: .1s; }
.np-eq i:nth-child(4) { animation-delay: .3s; }
@media (max-width: 720px) { #nowPlaying { left: 14px; bottom: 14px; padding-right: 14px; } }

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

/* ---------- 弹窗：照片 / Spotify 内嵌 / 事实栏 ---------- */
.modal-photo {
  position: absolute; bottom: -34px; left: 30px; z-index: 2;
  width: 96px; height: 96px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--era);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .6);
  background: var(--bg2);
}
.spotify-embed { border-radius: 8px; display: block; }
.modal-facts { margin-bottom: 26px; }
.mf-title { font-size: 10px; letter-spacing: .35em; color: var(--ink-faint); margin-bottom: 14px; }
.fact {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 13px; line-height: 1.6; color: var(--ink-dim);
}
.fact:last-child { border-bottom: none; }
.fact-dot { color: var(--era); font-size: 9px; margin-top: 4px; flex: 0 0 auto; }
.modal-name.has-photo { margin-left: 108px; }
.modal-body.has-photo { padding-top: 44px; }

/* ---------- 弹窗头图：真实专辑封面 ---------- */
.modal-art { aspect-ratio: 16/8; }
.modal-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none;
}

/* ---------- NOW PLAYING 歌单面板 ---------- */
#nowPlaying { display: block; background: none; border: none; padding: 0; backdrop-filter: none; max-width: none; }
.np-bar {
  display: flex; align-items: center; gap: 14px;
  background: rgba(12, 12, 15, .82); border: 1px solid var(--line);
  border-left: 3px solid var(--era, #FF4D00);
  padding: 12px 18px 12px 12px; border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  width: max-content; max-width: min(460px, 86vw);
}
.np-panel {
  display: none; position: absolute; bottom: calc(100% + 12px); left: 0;
  width: min(370px, 86vw); max-height: 46vh; overflow-y: auto;
  background: rgba(12, 12, 15, .92); border: 1px solid var(--line);
  border-left: 3px solid var(--era, #FF4D00); border-radius: 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 8px; scrollbar-width: none;
}
#nowPlaying.open .np-panel { display: block; }
.np-panel::-webkit-scrollbar { display: none; }
.np-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  font-size: 12px; color: var(--ink-dim);
  transition: background .25s, color .25s;
}
.np-row:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.np-row.on { background: color-mix(in srgb, var(--era) 16%, transparent); color: var(--ink); }
.np-row-num { font-family: var(--font-display); font-size: 11px; color: var(--era, #FF4D00); width: 20px; flex: 0 0 auto; }
.np-row-t { font-weight: 700; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-row-a { font-size: 11px; color: var(--ink-faint); max-width: 36%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.np-row-eq { display: none; align-items: flex-end; gap: 2px; height: 10px; flex: 0 0 auto; }
.np-row.on .np-row-eq { display: flex; }
.np-row-eq i { width: 2px; background: var(--era, #FF4D00); animation: eq-bounce .8s ease-in-out infinite; }
.np-row-eq i:nth-child(2) { animation-delay: .2s; }
.np-row-eq i:nth-child(3) { animation-delay: .35s; }
.np-btn {
  background: none; border: none; color: var(--ink-dim);
  font-size: 14px; padding: 4px 6px; line-height: 1;
  transition: color .25s, transform .2s;
}
.np-btn:hover { color: var(--era, #FF4D00); transform: scale(1.2); }

/* ---------- 专辑墙真实封面 ---------- */
.vf-cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- 悬浮器：进度条 + 脉冲 + 播放报错 ---------- */
.np-bar { position: relative; }
.np-progress {
  position: absolute; left: 24px; right: 24px; bottom: -1px; height: 2px;
  background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden;
}
.np-progress i {
  display: block; height: 100%; width: 100%;
  background: var(--era, #FF4D00); transform-origin: left;
  transform: scaleX(0);
}
.np-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--era, #FF4D00); opacity: 0; pointer-events: none;
}
.song-play.is-error { border-color: #ff3b30; color: #ff3b30; animation: shake-x .4s; }
@keyframes shake-x {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ---------- 悬浮器提醒气泡 & 完整版链接 ---------- */
.np-hint {
  position: absolute; bottom: calc(100% + 14px); left: 8px;
  background: var(--era, #FF4D00); color: #000;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  padding: 8px 14px; border-radius: 999px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .4s, transform .4s;
  white-space: nowrap;
}
.np-hint::after {
  content: ''; position: absolute; top: 100%; left: 24px;
  border: 6px solid transparent; border-top-color: var(--era, #FF4D00);
}
.np-hint.show { opacity: 1; transform: translateY(0); animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.np-full {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 6px;
  border-bottom: 1px dashed var(--line);
  font-size: 10px; letter-spacing: .2em; color: var(--ink-faint);
}
.np-full a {
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  color: var(--era, #FF4D00); text-decoration: none;
  transition: opacity .25s;
}
.np-full a:hover { opacity: .65; }
/* 黑胶呼吸光环（吸引点击） */
.np-vinyl::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--era, #FF4D00);
  opacity: 0; animation: vinyl-breathe 2.6s ease-in-out infinite;
}
@keyframes vinyl-breathe {
  0%, 100% { opacity: 0; transform: scale(.92); }
  50% { opacity: .55; transform: scale(1.12); }
}

/* ---------- 专辑墙活性特效 ---------- */
.vinyl-front {
  position: relative; overflow: hidden; background: #151518;
  background: linear-gradient(135deg, color-mix(in srgb, var(--era) 32%, #111), #151518);
}
.vinyl-front::after {
  content: ''; position: absolute; top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: rotate(12deg) translateX(-120%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}
.vinyl-card:hover .vinyl-front::after,
.vinyl-card.touch-open .vinyl-front::after { transform: rotate(12deg) translateX(560%); }

/* ---------- 专辑墙：黑胶滑出 ---------- */
.vinyl-card { position: relative; }
.vinyl-card:hover, .vinyl-card.touch-open { z-index: 3; }
.vc-breathe {
  position: relative; aspect-ratio: 1;
  animation: wall-breathe 5s ease-in-out infinite;
}
@keyframes wall-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.vinyl-card:hover .vc-breathe,
.vinyl-card.touch-open .vc-breathe { animation-play-state: paused; }

/* 黑胶唱片（默认藏在封面后面） */
.vc-disc {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 92%; aspect-ratio: 1;
  transform: translate(-45%, -50%) scale(.5);
  opacity: 0;
  transition: transform .65s var(--ease-out), opacity .4s;
  pointer-events: none;
}
.vinyl-card:hover .vc-disc,
.vinyl-card:focus-within .vc-disc,
.vinyl-card.touch-open .vc-disc {
  transform: translate(12%, -50%) scale(1);
  opacity: 1;
}
.vc-disc-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #0d0d0f 0 2px, #1d1d21 2px 4px);
  border: 1px solid #333;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
  animation: spin 3.2s linear infinite;
  display: flex; align-items: center; justify-content: center;
}
.vc-disc-label {
  width: 36%; aspect-ratio: 1; border-radius: 50%;
  background: var(--era, #FF4D00); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: clamp(11px, 1.1vw, 15px);
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25);
}

/* 封面（划过时左移让位） */
.vinyl-card .vinyl-front {
  position: relative; z-index: 2;
  transition: transform .55s var(--ease-out), box-shadow .55s;
}
.vinyl-card:hover .vinyl-front,
.vinyl-card:focus-within .vinyl-front,
.vinyl-card.touch-open .vinyl-front {
  transform: translateX(-14%) scale(1.03);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6),
              0 0 40px color-mix(in srgb, var(--era) 22%, transparent);
}

/* 底部信息条（划过时滑入） */
.vc-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: 34px 12px 11px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .94) 46%);
  transform: translateY(102%);
  transition: transform .45s var(--ease-out);
}
.vinyl-card:hover .vc-info,
.vinyl-card:focus-within .vc-info,
.vinyl-card.touch-open .vc-info { transform: translateY(0); }
.vc-info-text { min-width: 0; }
.vc-info-text b {
  display: block; font-size: 12.5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vc-info-text span {
  display: block; font-size: 11px; color: var(--ink-dim); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vc-info-links { display: flex; gap: 6px; flex: 0 0 auto; }
.vc-info-links a {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--era, #FF4D00); color: #000;
  transition: transform .25s, opacity .25s;
}
.vc-info-links a:hover { transform: translateY(-3px) scale(1.1); }
.vc-info-links a svg { width: 13px; height: 13px; }

/* ---------- 专辑墙：固定字幕 + 悬停描述 ---------- */
.vc-breathe { display: flex; flex-direction: column; aspect-ratio: auto; }
.vinyl-card .vinyl-front { aspect-ratio: 1; }
.vc-caption { padding: 9px 2px 0; height: 46px; overflow: hidden; }
.vc-caption b {
  display: block; font-size: 11.5px; line-height: 1.35; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vc-caption span {
  display: block; font-size: 10.5px; color: var(--ink-dim); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 黑胶位置按字幕高度微调 */
.vc-disc { top: calc(50% - 23px); }
/* 悬停信息条改为：必听理由 + 链接 */
.vc-info { flex-direction: column; align-items: stretch; gap: 8px; padding: 28px 13px 12px; }
.vc-info-head { display: grid; gap: 3px; }
.vc-info-head span { color: var(--era); font-size: 8.5px; font-weight: 800; letter-spacing: .13em; }
.vc-info-head b { color: #fff; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-info-head i { color: rgba(242, 239, 233, .72); font-size: 10px; font-style: normal; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-desc {
  font-size: 11px; line-height: 1.48; color: rgba(242, 239, 233, .92);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vc-info-links { align-self: flex-end; align-items: center; }
.album-play {
  min-height: 29px; border-radius: 999px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px;
  background: var(--era, #FF4D00); color: #000; font-size: 9px; font-weight: 900; letter-spacing: .08em;
  transition: transform .25s, filter .25s;
}
.album-play:hover { transform: translateY(-2px); filter: brightness(1.08); }
.album-play svg { width: 12px; height: 12px; }

/* ---------- Essential 50 · Spotify 抽屉 ---------- */
.album-player {
  position: fixed; right: 18px; bottom: 20px; z-index: 80; width: min(420px, calc(100vw - 32px));
  padding: 14px; border: 1px solid color-mix(in srgb, var(--era, #FF4D00) 60%, var(--line));
  background: rgba(16, 16, 18, .98); box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none;
  transition: transform .42s var(--ease-out), opacity .26s;
}
.album-player.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.album-player-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 10px; }
.album-player-kicker, .album-player-head strong, .album-player-head span:not(.album-player-kicker) { display: block; }
.album-player-kicker { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.album-player-head strong { margin-top: 4px; color: var(--ink); font-family: var(--font-display); font-size: 20px; line-height: 1; }
.album-player-head span:not(.album-player-kicker) { margin-top: 4px; color: var(--ink-dim); font-size: 11px; }
.album-player-close { flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid var(--line); color: var(--ink); }
.album-player iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; background: #101010; }
.modal-photo[hidden] { display: none !important; }

@media (max-width: 640px) {
  .card-line { min-height: auto; }
  .vinyl-card:focus-within .vc-disc { transform: translate(6%, -50%) scale(.92); }
  .vinyl-card:hover .vinyl-front, .vinyl-card:focus-within .vinyl-front, .vinyl-card.touch-open .vinyl-front { transform: translateX(-8%) scale(1.015); }
  .vc-info { padding: 24px 11px 10px; }
  .vc-info-head b { font-size: 12px; }
  .vc-desc { font-size: 10px; -webkit-line-clamp: 3; }
  .album-player { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}
