/* 滚动显现 + 视差 + 播放器 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.25,.1,.25,1), transform .8s cubic-bezier(.25,.1,.25,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.chapter-card {
  transition: transform .6s cubic-bezier(.25,.1,.25,1);
}
.chapter.is-in .chapter-card {
  transform: translateY(0);
}
.hero-copy {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1s .15s cubic-bezier(.25,.1,.25,1) forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}
.hero-media img {
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(.25,.1,.25,1);
}
.hero.is-ready .hero-media img { transform: scale(1); }

.subnav a.is-active {
  opacity: 1;
}

/* —— 独立播放 / 歌词卡页 —— */
.player-page {
  min-height: 100vh;
  background: #000;
  color: #fff;
}
.player-page .foot {
  background: #000;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.42);
  padding: 28px 22px 110px;
}
.player-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 22px 120px;
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .player-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 16px 16px 120px;
    gap: 16px;
  }
  .lyric-card-stage {
    position: relative;
    top: auto;
    width: min(240px, 58vw);
    z-index: 1;
  }
  .player-panel {
    position: relative;
    z-index: 2;
    max-width: 100%;
  }
  .player-panel .headline { font-size: 32px; }
  .sync-lyrics {
    max-height: none;
    overflow: visible;
    margin-top: 20px;
  }
  .sync-block pre { font-size: 17px; }
  .transport { margin-top: 12px; padding: 12px; }
  .transport .row { gap: 8px; }
  .transport button { padding: 8px 12px; font-size: 13px; }
  .card-back-home { margin-top: 12px; padding: 8px 14px; font-size: 13px; }
  .floating-dock {
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    gap: 4px;
    padding: 8px;
    max-width: calc(100vw - 16px);
  }
  .floating-dock a { font-size: 12px; padding: 6px 10px; }
}

.lyric-card-stage {
  position: sticky;
  top: 72px;
  width: min(380px, 86vw);
}
.lyric-card-stage .tarot-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  line-height: 0;
  background: #111;
}
.lyric-card-stage img { width: 100%; }

.player-panel { width: 100%; max-width: 560px; }
.player-panel .eyebrow { color: rgba(255,255,255,.55); }
.player-panel .headline {
  font-size: clamp(40px, 7vw, 56px);
  margin: 0;
}
.player-panel .meta {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
}

.transport {
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.transport audio { width: 100%; height: 40px; }
.transport .row {
  margin-top: 14px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.transport button {
  border: 0;
  border-radius: 980px;
  padding: 10px 18px;
  background: #c41e3a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.transport button:not(.ghost)::before {
  content: "";
  width: 18px; height: 11px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2028%2016%27%20fill%3D%27none%27%3E%3Cg%20transform%3D%27translate%2828%200%29%20scale%28-1%201%29%27%3E%3Cpath%20d%3D%22M2.2%209.2C5.2%206.2%2010.2%204.6%2015.2%205.2c2.4.3%204.6%201.1%206.6%202.1l3.4-1.3-1.5%202.4%201.9%201.5-3.8.2c-2.6.1-5.2.8-7.4%202.1-2.4%201.4-5.3%201.6-8.1.4L2%2011.8l.2-2.6z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M11.2%205.4L13.6.9l2.5%204.3%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M13.6.9L16.1%205.2%22%20stroke%3D%22%23ff8a96%22%20stroke-width%3D%221.35%22%20stroke-linecap%3D%22round%22%2F%3E%3Ccircle%20cx%3D%225.1%22%20cy%3D%228.4%22%20r%3D%22.55%22%20fill%3D%22%231a1a1a%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
.transport button.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
}
.transport button.ghost::before { display: none; }
.transport button:not(.ghost):hover { background: #a81832; }
.transport .hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.transport .version-switch,
.transport .track-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.transport .version-switch .v-label,
.transport .track-switch .v-label {
  font-size: 12px;
  color: rgba(255,255,255,.42);
  letter-spacing: 0.04em;
  user-select: none;
}
.transport .version-switch button.ghost,
.transport .track-switch button.ghost {
  min-width: 44px;
  padding: 8px 12px;
  font-variant-numeric: tabular-nums;
}
.transport .version-switch button.ghost.is-on,
.transport .track-switch button.ghost.is-on {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

.sync-lyrics {
  margin-top: 36px;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 8px;
}
.sync-block {
  margin-bottom: 28px;
  opacity: .38;
  transition: opacity .35s ease, transform .35s ease;
  transform: translateX(0);
}
.sync-block.is-on {
  opacity: 1;
  transform: translateX(4px);
}
.sync-block .k {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
}
.sync-block pre {
  margin: 0;
  font-family: inherit;
  font-size: 20px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: #fff;
}

.mood-rail {
  margin-top: 22px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.mood-rail a {
  width: 12px; height: 12px; border-radius: 50%;
  text-decoration: none;
  opacity: .7;
}
.mood-rail a:hover { opacity: 1; transform: scale(1.2); }

.floating-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex; gap: 10px;
  padding: 10px 12px;
  border-radius: 980px;
  background: rgba(22,22,23,.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.floating-dock a {
  color: #f5f5f7;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 980px;
}
.floating-dock a.primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #c41e3a;
  padding-left: 12px;
}
.floating-dock a.primary::before {
  content: "";
  width: 18px; height: 11px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2028%2016%27%20fill%3D%27none%27%3E%3Cg%20transform%3D%27translate%2828%200%29%20scale%28-1%201%29%27%3E%3Cpath%20d%3D%22M2.2%209.2C5.2%206.2%2010.2%204.6%2015.2%205.2c2.4.3%204.6%201.1%206.6%202.1l3.4-1.3-1.5%202.4%201.9%201.5-3.8.2c-2.6.1-5.2.8-7.4%202.1-2.4%201.4-5.3%201.6-8.1.4L2%2011.8l.2-2.6z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M11.2%205.4L13.6.9l2.5%204.3%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M13.6.9L16.1%205.2%22%20stroke%3D%22%23ff8a96%22%20stroke-width%3D%221.35%22%20stroke-linecap%3D%22round%22%2F%3E%3Ccircle%20cx%3D%225.1%22%20cy%3D%228.4%22%20r%3D%22.55%22%20fill%3D%22%231a1a1a%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
.floating-dock a.primary:hover { background: #a81832; }
.floating-dock a:hover { text-decoration: none; opacity: .92; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-copy, .hero-media img, .sync-block {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* 须在 .lyric-card-stage { sticky } 之后，否则窄屏规则会被盖掉 */
@media (max-width: 860px) {
  .lyric-card-stage {
    position: relative;
    top: auto;
    width: min(240px, 58vw);
    z-index: 1;
  }
  .player-panel { z-index: 2; max-width: 100%; }
  .player-shell { padding-bottom: 140px; }
  .floating-dock {
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    z-index: 80;
  }
}
