/* 小鲨鱼 logo（侧视剪影 + 血红背鳍边） */
:root {
  --shark-logo: 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");
}

.nav-buy::before,
.btn-pill::before {
  width: 18px !important;
  height: 11px !important;
  background: var(--shark-logo) center / contain no-repeat !important;
}

.transport button:not(.ghost)::before,
.floating-dock a.primary::before {
  width: 18px !important;
  height: 11px !important;
  background: var(--shark-logo) center / contain no-repeat !important;
}

/* —— 动态歌词卡 —— */
.lyric-card-stage {
  perspective: 900px;
}
.lyric-card-stage .tarot-frame {
  position: relative;
  transform-style: preserve-3d;
  animation: cardFloat 5.5s ease-in-out infinite;
  transition: box-shadow .6s ease, transform .35s ease;
  box-shadow:
    0 24px 60px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 40px var(--card-glow, rgba(196,30,58,.25));
}
.lyric-card-stage .tarot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,.12) 48%,
    transparent 62%
  );
  background-size: 220% 100%;
  animation: cardShimmer 4.8s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
.lyric-card-stage .card-stack {
  position: relative;
  line-height: 0;
}
.lyric-card-stage .card-stack img {
  width: 100%;
  display: block;
  transition: opacity .55s ease, transform .7s ease;
}
.lyric-card-stage .card-stack img.card-prev {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.lyric-card-stage.is-switching .card-stack img.card-prev {
  opacity: 1;
  transform: scale(1);
}
.lyric-card-stage.is-switching .card-stack img.card-main {
  opacity: 0;
  transform: scale(.98);
}
.lyric-card-stage .mood-pulse {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 62%;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--card-glow, rgba(196,30,58,.45)) 0%, transparent 70%);
  filter: blur(8px);
  opacity: .7;
  animation: moodPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translateY(-8px) rotateX(1.5deg) rotateY(-1.2deg); }
}
@keyframes cardShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -40% 0; }
}
@keyframes moodPulse {
  0%, 100% { opacity: .45; transform: translateX(-50%) scaleX(1); }
  50% { opacity: .85; transform: translateX(-50%) scaleX(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .lyric-card-stage .tarot-frame,
  .lyric-card-stage .tarot-frame::after,
  .lyric-card-stage .mood-pulse {
    animation: none !important;
  }
}

/* 段落歌词追踪 */
.sync-progress {
  height: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  margin: 0 0 10px;
  overflow: hidden;
}
.sync-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c41e3a, #ff8a96);
  transition: width .12s linear;
}
.sync-block:not(.is-on) .sync-progress { opacity: .25; }
.sync-block.is-on {
  border-left: 3px solid #c41e3a;
  padding-left: 12px;
}
.now-playing {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(255,138,150,.92);
}
.mood-rail a.is-on {
  outline: 2px solid #fff;
  outline-offset: 2px;
  opacity: 1;
  transform: scale(1.25);
}

/* 行级歌词追踪 */
.lyric-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.lyric-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: baseline;
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  font: inherit;
  font-size: 19px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.lyric-line .lyric-time {
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, 0.28);
  font-variant-numeric: tabular-nums;
}
.lyric-line.is-past { color: rgba(255, 255, 255, 0.48); }
.lyric-line.is-on {
  color: #fff;
  background: rgba(196, 30, 58, 0.2);
  transform: translateX(4px);
}
.lyric-line.is-on .lyric-time { color: rgba(255, 138, 150, 0.95); }
.lyric-line:hover {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
}
.lyric-char {
  display: inline;
  color: inherit;
  transition: color .12s ease, text-shadow .12s ease;
}
.lyric-line.is-on .lyric-char { color: rgba(255, 255, 255, 0.42); }
.lyric-line.is-on .lyric-char.is-past { color: rgba(255, 210, 216, 0.88); }
.lyric-line.is-on .lyric-char.is-on {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 120, 140, 0.55);
}
.sync-block:not(.is-on) .lyric-line { opacity: 0.55; }
.sync-block.is-on .lyric-line { opacity: 1; }
.version-switch button.ghost:disabled {
  opacity: 1;
  cursor: default;
}

/* 歌词卡返回《沉浮》主页 */
.card-back-home {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 0;
  padding: 10px 18px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.card-back-home:hover {
  background: var(--accent, #c41e3a);
  border-color: transparent;
}
