/* =========================================================
   潮汐音乐 · TIDE MUSIC
   White-dominant, coastal-editorial minimalism
   ========================================================= */

:root {
  /* Color */
  --paper:      #ffffff;
  --paper-2:    #f5f9fc;
  --paper-3:    #eef4f8;
  --ink:        #08202e;
  --ink-soft:   #33505f;
  --muted:      #7e97a6;
  --line:       #e2ecf3;
  --line-soft:  #eef4f9;
  --tide:       #0e5c82;
  --tide-deep:  #0a3f5c;
  --tide-2:     #35a7c6;
  --foam:       #cfeaf3;
  --foam-2:     #e8f6fb;

  /* Type */
  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Space & shape */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 60px -34px rgba(10, 63, 92, .38);
  --shadow-card: 0 30px 70px -40px rgba(10, 63, 92, .45);
  --player-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  /* soft tidal glow behind everything */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% -6%, rgba(53, 167, 198, .10), transparent 62%),
    radial-gradient(760px 460px at 6% 8%, rgba(14, 92, 130, .07), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, var(--paper-2) 100%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code {
  font-family: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  font-size: .88em;
  background: var(--foam-2);
  color: var(--tide-deep);
  padding: .12em .45em;
  border-radius: 6px;
}

/* grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px var(--pad);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { color: var(--tide); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .14em;
}
.brand-text em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .42em;
  color: var(--muted);
  margin-top: 3px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px; width: 0;
  background: var(--tide);
  transition: width .32s var(--ease);
}
.nav-links a:hover { color: var(--tide-deep); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  letter-spacing: .04em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:hover {
  background: var(--tide);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px rgba(14, 92, 130, .8);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 108px) var(--pad) clamp(120px, 16vw, 200px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--muted);
  margin: 0 0 22px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tide-2);
  box-shadow: 0 0 0 4px rgba(53, 167, 198, .16);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(53, 167, 198, .16); }
  50%      { box-shadow: 0 0 0 9px rgba(53, 167, 198, .04); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7.2vw, 82px);
  line-height: 1.1;
  letter-spacing: .02em;
  margin: 0 0 24px;
}
.hero-title .hl {
  position: relative;
  color: var(--tide);
  padding: 0 .06em;
}
.hero-title .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .38em;
  background: linear-gradient(180deg, transparent, var(--foam));
  border-radius: 40%;
  z-index: -1;
  animation: tideSweep 5.5s var(--ease) infinite;
}
@keyframes tideSweep {
  0%, 100% { transform: scaleX(.85) translateY(0); opacity: .8; }
  50%      { transform: scaleX(1) translateY(-3px); opacity: 1; }
}

.hero-sub {
  max-width: 33em;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-soft);
  margin: 0 0 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: .03em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--tide);
  color: #fff;
  box-shadow: 0 18px 34px -20px rgba(14, 92, 130, .9);
}
.btn-primary:hover {
  background: var(--tide-deep);
  transform: translateY(-2px);
  box-shadow: 0 24px 40px -20px rgba(14, 92, 130, .95);
}
.btn-ghost {
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--foam);
  color: var(--tide-deep);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 30px; font-size: 15.5px; }

.hero-stats {
  display: flex;
  gap: clamp(26px, 5vw, 56px);
  margin: 46px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.hero-stats dt { font-size: 11.5px; letter-spacing: .2em; color: var(--muted); }
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

/* hero visual: vinyl disc + equalizer */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}
.disc {
  position: relative;
  width: clamp(230px, 30vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    repeating-radial-gradient(circle at 50% 50%, #f8fbfd 0 2px, #eef5f9 2px 4px);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  animation: spin 22s linear infinite;
  animation-play-state: paused;
}
.hero-visual.is-playing .disc { animation-play-state: running; }
.disc-rings {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.disc-cover {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 8px #fff, 0 14px 34px -14px rgba(10, 63, 92, .5);
}
.disc-hole {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--line), inset 0 0 0 3px var(--paper-3);
}
@keyframes spin { to { transform: rotate(360deg); } }

.eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 54px;
}
.eq i {
  width: 3px;
  height: 14%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--tide-2), var(--tide));
  opacity: .35;
  transform-origin: bottom;
  transition: opacity .3s var(--ease);
}
.hero-visual.is-playing .eq i {
  opacity: .9;
  animation: wave 1.15s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { height: 14%; }
  50%      { height: 92%; }
}
.eq i:nth-child(1)  { animation-delay: -.9s; }
.eq i:nth-child(2)  { animation-delay: -.5s; }
.eq i:nth-child(3)  { animation-delay: -1.1s; }
.eq i:nth-child(4)  { animation-delay: -.2s; }
.eq i:nth-child(5)  { animation-delay: -.75s; }
.eq i:nth-child(6)  { animation-delay: -.35s; }
.eq i:nth-child(7)  { animation-delay: -1.0s; }
.eq i:nth-child(8)  { animation-delay: -.6s; }
.eq i:nth-child(9)  { animation-delay: -.15s; }
.eq i:nth-child(10) { animation-delay: -.85s; }
.eq i:nth-child(11) { animation-delay: -.45s; }
.eq i:nth-child(12) { animation-delay: -.95s; }
.eq i:nth-child(13) { animation-delay: -.25s; }
.eq i:nth-child(14) { animation-delay: -.7s; }
.eq i:nth-child(15) { animation-delay: -.4s; }
.eq i:nth-child(16) { animation-delay: -1.05s; }
.eq i:nth-child(17) { animation-delay: -.55s; }
.eq i:nth-child(18) { animation-delay: -.1s; }
.eq i:nth-child(19) { animation-delay: -.8s; }
.eq i:nth-child(20) { animation-delay: -.3s; }
.eq i:nth-child(21) { animation-delay: -.65s; }
.eq i:nth-child(22) { animation-delay: -.05s; }
.eq i:nth-child(23) { animation-delay: -.88s; }
.eq i:nth-child(24) { animation-delay: -.42s; }

.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: -1;
  line-height: 0;
  pointer-events: none;
}
.hero-waves svg { width: 100%; height: clamp(120px, 16vw, 200px); }
.hero-waves path { transform-origin: center; }
.hero-waves .w1 { fill: var(--foam-2); animation: drift 12s ease-in-out infinite; }
.hero-waves .w2 { fill: rgba(53, 167, 198, .13); animation: drift 16s ease-in-out infinite reverse; }
.hero-waves .w3 { fill: rgba(14, 92, 130, .07); animation: drift 20s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-26px); }
}

/* ===================== SECTIONS ===================== */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) var(--pad);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "no title" "no sub";
  align-items: baseline;
  column-gap: 20px;
  margin-bottom: clamp(30px, 5vw, 52px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-no {
  grid-area: no;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  color: var(--foam);
  line-height: .8;
}
.section-head h2 {
  grid-area: title;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: .04em;
}
.section-head p {
  grid-area: sub;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Featured ---------- */
.featured-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  background: linear-gradient(180deg, #fff, var(--paper-2));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: var(--shadow-soft);
}
.featured-art {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 30px 60px -34px rgba(10, 63, 92, .6);
}
.featured-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.featured-card:hover .featured-art img { transform: scale(1.045); }
.featured-badge {
  position: absolute;
  left: 14px; top: 14px;
  padding: 6px 13px;
  font-size: 11.5px;
  letter-spacing: .14em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  color: var(--tide-deep);
  border: 1px solid rgba(14, 92, 130, .14);
}

.featured-body { min-width: 0; }
.featured-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--tide-2);
}
.featured-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: .03em;
}
.featured-artist {
  margin: 8px 0 20px;
  color: var(--ink-soft);
  font-size: 15px;
}
.featured-desc {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  max-width: 34em;
}

/* ---------- Playlist ---------- */
.playlist {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.playlist-head,
.playlist-body li {
  display: grid;
  grid-template-columns: 54px minmax(0, 2.4fr) minmax(0, 1fr) 74px 62px;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
}
.playlist-head {
  height: 48px;
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.playlist-body { list-style: none; margin: 0; padding: 0; }

.track {
  position: relative;
  height: 76px;
  cursor: pointer;
  transition: background .3s var(--ease);
  border-bottom: 1px solid var(--line-soft);
}
.playlist-body li:last-child { border-bottom: none; }
.track:hover { background: var(--paper-2); }
.track::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--tide);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.track.is-active::before { transform: scaleY(1); }
.track.is-active { background: var(--foam-2); }

.track-no {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--muted);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
}
.track-no .num { transition: opacity .2s var(--ease); }
.track-no .ico { display: none; color: var(--tide); }
.track:hover .track-no .num { display: none; }
.track:hover .track-no .ico { display: block; }
.track.is-active .track-no .num { display: none; }
.track.is-active .track-no .ico { display: block; }

.track-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.track-thumb {
  width: 46px; height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 8px 18px -12px rgba(10, 63, 92, .7);
}
.track-txt { min-width: 0; }
.track-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-genre { font-size: 13px; color: var(--ink-soft); }
.track-dur { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.track-act { display: grid; place-items: center; color: var(--muted); }
.track-act svg { transition: transform .25s var(--ease), color .25s var(--ease); }
.track:hover .track-act svg { color: var(--tide); transform: scale(1.14); }
.track.is-active .track-act { color: var(--tide); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.5vw, 44px);
}
.about-col {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.about-col h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .04em;
}
.about-col p { margin: 0; color: var(--ink-soft); font-size: 14.8px; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(40px, 6vw, 70px) var(--pad) calc(var(--player-h) + 34px);
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand-text strong { font-family: var(--font-display); font-size: 21px; letter-spacing: .14em; display: block; }
.footer-brand .brand-text em { font-style: normal; font-size: 9.5px; letter-spacing: .42em; color: var(--muted); }
.footer-brand p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.footer-nav a { font-size: 14px; color: var(--ink-soft); transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--tide); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-filing { letter-spacing: .04em; }

/* ===================== PLAYER ===================== */
.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  height: var(--player-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -20px 50px -34px rgba(10, 63, 92, .45);
}

.player-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.p-cover {
  position: relative;
  width: 52px; height: 52px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 22px -14px rgba(10, 63, 92, .8);
}
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-cover-ring {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .5);
  pointer-events: none;
}
.p-meta { min-width: 0; }
.p-title {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-artist {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-center { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.p-controls { display: flex; align-items: center; gap: 16px; }
.p-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}
.p-btn:hover { color: var(--tide); background: var(--paper-3); }
.p-btn:active { transform: scale(.94); }
.p-play {
  width: 46px; height: 46px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(8, 32, 46, .9);
}
.p-play:hover { background: var(--tide); color: #fff; }
.p-play .ic-pause { display: none; }
.p-play.is-playing .ic-play { display: none; }
.p-play.is-playing .ic-pause { display: block; }

.p-toggle.is-on { color: var(--tide); background: var(--foam-2); }

.p-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 540px;
}
.p-time {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 40px;
  text-align: center;
  flex: none;
}
.p-bar {
  position: relative;
  flex: 1;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.p-bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--paper-3);
}
.p-bar-fill {
  position: relative;
  height: 3px;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tide), var(--tide-2));
}
.p-knob {
  position: absolute;
  right: -5px; top: 50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--tide);
  transform: translateY(-50%) scale(0);
  transition: transform .2s var(--ease);
}
.p-bar:hover .p-knob { transform: translateY(-50%) scale(1); }

.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.vol { display: flex; align-items: center; gap: 8px; }
.vol-bar {
  position: relative;
  width: 84px; height: 14px;
  display: flex; align-items: center;
  cursor: pointer;
}
.vol-bar::before {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 3px; border-radius: 3px;
  background: var(--paper-3);
}
.vol-fill {
  position: relative;
  height: 3px; width: 70%;
  border-radius: 3px;
  background: var(--ink-soft);
}
.vol-fill::after {
  content: "";
  position: absolute; right: -4px; top: 50%;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink-soft);
  transform: translateY(-50%);
}
.p-btn .vol-off { display: none; }
.p-btn.is-muted .vol-on { display: none; }
.p-btn.is-muted .vol-off { display: block; }

/* ===================== REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }
.reveal.d4 { transition-delay: .36s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-art { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .playlist-head { display: none; }
  .playlist-body li,
  .track {
    grid-template-columns: 40px minmax(0, 1fr) 60px;
    gap: 10px;
    padding: 0 16px;
    height: 70px;
  }
  .track-genre { display: none; }
  .player { grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 14px; }
  .player-right .vol { display: none; }
  .p-artist { display: none; }
  .p-cover { width: 44px; height: 44px; }
}
@media (max-width: 620px) {
  :root { --player-h: 76px; }
  .hero-stats { flex-wrap: wrap; gap: 20px 34px; }
  .footer-bottom { flex-direction: column; }
  .p-time { width: 34px; }
  .player-right { gap: 4px; }
  .brand-text em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   潮汐音乐 · 新增组件（账号 / 会员 / 支付 / 公告 / 客服）
   与原有白色潮汐主题保持一致
   ========================================================= */

body.is-locked { overflow: hidden; }

/* ---------- 导航右侧 ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8);
  color: var(--ink-soft);
  font-size: 13px;
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.nav-account:hover { border-color: var(--foam); color: var(--tide-deep); transform: translateY(-1px); }
.nav-avatar {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--tide-deep);
  overflow: hidden;
  flex: none;
  font-size: 12px;
  font-weight: 600;
}
.nav-avatar.has-img { background: none; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-account.is-user { color: var(--ink); }
.nav-svip {
  font-size: 9px;
  letter-spacing: .12em;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--tide-deep), var(--tide-2));
  font-weight: 700;
}

/* ---------- 广告位 ---------- */
.ad-banner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: clamp(-70px, -6vw, -30px) auto 0;
  padding: clamp(20px, 3vw, 30px) clamp(22px, 3.6vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  background: linear-gradient(120deg, var(--foam-2), #fff 55%, var(--paper-2));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.ad-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--tide);
  border: 1px solid rgba(14, 92, 130, .2);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, .7);
}
.ad-copy h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 27px);
  letter-spacing: .02em;
}
.ad-copy p { margin: 0 0 16px; color: var(--muted); font-size: 14px; max-width: 38em; }
.ad-art {
  width: clamp(120px, 15vw, 172px);
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 40px -26px rgba(10, 63, 92, .7);
  flex: none;
}
.ad-art img { width: 100%; height: 100%; object-fit: cover; }

.ad-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(232, 246, 251, .45);
  color: var(--ink-soft);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.ad-inline:hover { border-color: var(--foam); background: var(--foam-2); }
.ad-inline .ad-tag { margin: 0; flex: none; }
.ad-inline-text { flex: 1; font-size: 13.5px; }
.ad-inline-text strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }

.ad-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px var(--pad);
  background: var(--foam-2);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.ad-strip .ad-tag { margin: 0; }
.ad-strip-more { color: var(--tide); }

/* ---------- 会员区 ---------- */
.svip-wrap {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: start;
}
.svip-intro {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--foam-2), #fff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.svip-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .3em;
  color: #fff;
  background: linear-gradient(120deg, var(--tide-deep), var(--tide-2));
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.svip-intro h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: .03em;
}
.svip-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.svip-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.svip-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tide-2);
  box-shadow: 0 0 0 4px rgba(53, 167, 198, .14);
}
.svip-hint { margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-card {
  position: relative;
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 44px -38px rgba(10, 63, 92, .7);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-card:hover { transform: translateY(-3px); border-color: var(--foam); box-shadow: var(--shadow-soft); }
.plan-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--ink);
}
.plan-card.is-hot { border-color: rgba(14, 92, 130, .28); background: linear-gradient(170deg, #fff, var(--foam-2)); }
.plan-badge {
  position: absolute;
  right: 16px; top: 16px;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--tide-deep);
  background: var(--foam);
  padding: 3px 8px;
  border-radius: 999px;
}
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.plan-price strong { font-family: var(--font-display); font-size: 30px; color: var(--tide-deep); }
.plan-price s { font-size: 12.5px; color: var(--muted); }
.plan-days { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.plan-card .btn { margin-top: auto; align-self: flex-start; }
.plan-card-other { background: var(--paper-2); }
.plan-grid-sm { grid-template-columns: 1fr; gap: 10px; }

/* 曲目会员标记 */
.track-svip {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .1em;
  color: #fff;
  background: linear-gradient(120deg, var(--tide-deep), var(--tide-2));
  vertical-align: 2px;
}
.track.is-svip .track-act { color: var(--tide-2); }

/* ---------- 客服区 ---------- */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}
.service-desc { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.service-list div { padding-top: 14px; border-top: 1px solid var(--line); }
.service-list dt { font-size: 11.5px; letter-spacing: .2em; color: var(--muted); }
.service-list dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  word-break: break-all;
}
.service-form {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, var(--paper-2));
  box-shadow: var(--shadow-soft);
}
.service-form h3 { margin: 0 0 18px; font-family: var(--font-display); font-size: 21px; letter-spacing: .04em; }
.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--tide-2);
  box-shadow: 0 0 0 4px rgba(53, 167, 198, .1);
}
.field input:disabled { background: var(--paper-2); color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- 页脚在线 ---------- */
.footer-live { display: inline-flex; align-items: center; gap: 7px; }
.footer-live b { color: var(--ink); font-weight: 600; }
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #37b37c;
  box-shadow: 0 0 0 4px rgba(55, 179, 124, .16);
  animation: pulse 2.6s var(--ease) infinite;
  display: inline-block;
}

/* ---------- 按钮补充 ---------- */
.btn-sm { padding: 9px 17px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- 遮罩 / 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 32, 46, .38);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .22s var(--ease);
  overflow-y: auto;
}
.modal-mask[hidden] { display: none; }
.modal-mask.in { opacity: 1; }
.modal {
  position: relative;
  width: min(100%, 452px);
  background: #fff;
  border-radius: 26px;
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 40px 90px -40px rgba(8, 32, 46, .55);
  transform: translateY(14px) scale(.985);
  transition: transform .26s var(--ease);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal-mask.in .modal { transform: none; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal-close:hover { background: var(--paper-2); color: var(--ink); }

/* 登录注册 */
.auth-modal { width: min(100%, 424px); text-align: left; }
.auth-mark { margin-bottom: 14px; }
.auth-mark .brand-mark { color: var(--tide); }
.auth-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 26px; letter-spacing: .03em; }
.auth-sub { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--paper-2);
  border-radius: 999px;
  margin-bottom: 20px;
}
.auth-tabs button {
  padding: 9px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  transition: background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -12px rgba(10, 63, 92, .8); }
.auth-tip { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-tip a { color: var(--tide); }
.auth-tip a:hover { text-decoration: underline; }

/* 公告 / 广告弹窗 */
.notice-modal { width: min(100%, 486px); }
.notice-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--tide);
  border: 1px solid rgba(14, 92, 130, .2);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.notice-modal h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 24px; line-height: 1.35; }
.notice-content { color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; max-height: 46vh; overflow-y: auto; }
.notice-img { width: 100%; max-height: 210px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.notice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.notice-never { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.notice-never input { accent-color: var(--tide); }

/* ---------- 我的账号抽屉 ---------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(8, 32, 46, .32);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .24s var(--ease);
}
.drawer-mask[hidden] { display: none; }
.drawer-mask.in { opacity: 1; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 86;
  width: min(540px, 100%);
  background: #fff;
  box-shadow: -30px 0 80px -50px rgba(8, 32, 46, .6);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.drawer[hidden] { display: none; }
.drawer.in { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-user { display: flex; align-items: center; gap: 13px; min-width: 0; }
.acc-avatar {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--foam), var(--paper-3));
  color: var(--tide-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-avatar-lg { width: 72px; height: 72px; font-size: 28px; }
.drawer-user-meta { min-width: 0; }
.acc-name { font-family: var(--font-display); font-size: 19px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted);
  flex: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.drawer-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.drawer-tabs::-webkit-scrollbar { display: none; }
.drawer-tabs button {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.drawer-tabs button:hover { color: var(--tide-deep); }
.drawer-tabs button.on { background: var(--foam-2); color: var(--tide-deep); }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }
.pane { display: none; animation: fadeUp .3s var(--ease); }
.pane.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acc-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.acc-stat span { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.acc-stat strong { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.acc-stat strong.is-svip { color: var(--tide-deep); }
.acc-stat em { font-style: normal; font-size: 11px; color: var(--muted); line-height: 1.4; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 24px; }
.acc-recent h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.acc-list { display: grid; gap: 9px; }
.empty { margin: 0; padding: 22px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 14px; }

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.order-title { font-size: 13.8px; color: var(--ink); font-weight: 500; }
.order-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
.order-side { text-align: right; flex: none; }
.order-side strong { display: block; font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.chip { display: inline-block; margin-top: 3px; font-size: 10.5px; padding: 1px 8px; border-radius: 999px; }
.chip-pending { background: #fff4e0; color: #a26a12; }
.chip-paid { background: #e8f7ef; color: #1f7a4d; }
.chip-closed { background: var(--paper-3); color: var(--muted); }

.wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--foam-2), #fff);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.wallet-card span { font-size: 12px; letter-spacing: .12em; color: var(--muted); width: 100%; }
.wallet-card strong { font-family: var(--font-display); font-size: 30px; color: var(--tide-deep); width: 100%; }
.wallet-card { flex-wrap: wrap; }
.wallet-card .btn { margin-left: auto; }
.list-title { margin: 0 0 12px; font-size: 13px; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px dashed var(--line);
}
.w-remark { font-size: 13.5px; color: var(--ink-soft); }
.w-time { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.w-amount { font-family: var(--font-display); font-size: 15px; text-align: right; flex: none; }
.w-amount.plus { color: #1f7a4d; }
.w-amount.minus { color: var(--tide-deep); }
.w-amount em { display: block; font-style: normal; font-family: var(--font-body); font-size: 11px; color: var(--muted); }

.pane-head { margin-bottom: 16px; }
.pane-head h4 { margin: 0 0 5px; font-family: var(--font-display); font-size: 20px; letter-spacing: .04em; }
.pane-head p { margin: 0; font-size: 12.5px; color: var(--muted); }
.pane-note {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.pane-note p { margin: 0 0 8px; }
.pane-note.danger { background: #fff6f4; }
.plan-mini {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.plan-mini:hover { border-color: var(--tide-2); background: var(--foam-2); }
.pm-name { font-size: 14px; font-weight: 500; }
.pm-price { font-family: var(--font-display); color: var(--tide-deep); font-size: 17px; }
.pm-days { font-size: 11.5px; color: var(--muted); }
.card-form { display: flex; gap: 10px; margin-bottom: 4px; }
.card-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.card-form input:focus { outline: none; border-color: var(--tide-2); box-shadow: 0 0 0 4px rgba(53, 167, 198, .1); }
.avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.stack-form { display: grid; gap: 2px; }
.stack-form .btn { justify-self: start; margin-top: 4px; }

/* ---------- 收银台 ---------- */
.pay-modal { width: min(100%, 470px); }
.pay-title { margin: 0 0 5px; font-family: var(--font-display); font-size: 24px; letter-spacing: .03em; }
.pay-sub { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.pay-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.pay-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.pay-plan.on { border-color: var(--tide); background: var(--foam-2); box-shadow: inset 0 0 0 1px var(--tide); }
.pp-name { font-size: 12px; color: var(--muted); }
.pp-price { font-family: var(--font-display); font-size: 18px; color: var(--tide-deep); }
.pp-days { font-size: 10.5px; color: var(--muted); }
.pay-methods { display: grid; gap: 9px; margin-bottom: 18px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.pay-method:hover { border-color: var(--foam); }
.pay-method.on { border-color: var(--tide); background: var(--foam-2); }
.pay-method.is-disabled { opacity: .5; cursor: not-allowed; }
.pm-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #fff;
  flex: none;
  font-weight: 600;
}
.pm-wechat { background: #2fb344; }
.pm-alipay { background: #1677ff; }
.pm-balance { background: linear-gradient(135deg, var(--tide-deep), var(--tide-2)); }
.pm-text { flex: 1; min-width: 0; }
.pm-text strong { display: block; font-size: 14px; font-weight: 500; }
.pm-text em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pm-radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex: none;
  position: relative;
}
.pay-method.on .pm-radio { border-color: var(--tide); }
.pay-method.on .pm-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--tide);
}
.pay-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.pay-summary strong { font-family: var(--font-display); font-size: 26px; color: var(--tide-deep); }
.pay-hint { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.recharge-box { margin-bottom: 18px; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-amounts button {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: #fff;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.quick-amounts button:hover { border-color: var(--tide-2); color: var(--tide-deep); }
.pay-pending { text-align: center; }
.pay-amount { font-family: var(--font-display); font-size: 38px; color: var(--ink); margin-bottom: 12px; }
.pay-qr { width: 180px; height: 180px; object-fit: contain; margin: 6px auto 10px; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; }
.pay-note { margin: 8px auto; font-size: 12.5px; color: var(--muted); max-width: 30em; }
.pay-contact { margin: 6px auto 0; font-size: 12.5px; color: var(--tide-deep); }
.pay-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pay-result { text-align: center; padding: 6px 0 2px; }
.pay-ok {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #fff;
  background: linear-gradient(140deg, #37b37c, #2b9c6b);
  box-shadow: 0 16px 32px -18px rgba(43, 156, 107, .9);
}
.pay-result h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; }
.pay-result p { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 22px);
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(92vw, 460px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(8, 32, 46, .92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 18px 40px -22px rgba(8, 32, 46, .9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  max-width: 100%;
}
.toast.in { opacity: 1; transform: none; }
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tide-2); flex: none; }
.toast-error .toast-dot { background: #ff7a6b; }
.toast-warn .toast-dot { background: #ffc26b; }
.toast-ok .toast-dot { background: #64d6a4; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 980px) {
  .nav-actions { gap: 8px; }
  .ad-banner { grid-template-columns: 1fr; margin-top: 0; }
  .ad-art { width: 100%; max-width: 220px; }
  .svip-wrap, .service-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-account { padding: 6px; }
  .nav-account-text { display: none; }
  .nav-svip { display: none; }
  .nav-actions .nav-cta span { display: none; }
  .nav-actions .nav-cta { padding: 10px; }
  .plan-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .service-list { grid-template-columns: 1fr; }
  .acc-stats { grid-template-columns: 1fr; }
  .drawer-body { padding: 18px 18px 40px; }
  .drawer-head { padding: 18px; }
  .drawer-tabs { padding: 10px 14px; }
  .pay-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toast-wrap { bottom: calc(var(--player-h) + 14px); }
}

/* ---------- 全局修正 ---------- */
[hidden] { display: none !important; }
.pay-modal .pay-hint { margin: 10px 0 14px; }
/* =========================================================
   潮汐音乐 · 歌单 / 封面模式 / 设置 / 个人主页
   ========================================================= */

/* ---------- 每日 / 推荐歌单 ---------- */
.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf-card {
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  scroll-snap-align: start;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.shelf-card:hover {
  border-color: var(--foam);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.shelf-art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-3);
}
.shelf-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.shelf-card:hover .shelf-art img { transform: scale(1.05); }
.shelf-svip {
  position: absolute;
  left: 9px; top: 9px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .1em;
  color: #fff;
  background: linear-gradient(120deg, var(--tide-deep), var(--tide-2));
}
.shelf-play {
  position: absolute;
  right: 9px; bottom: 9px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--tide-deep);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 18px -10px rgba(8, 32, 46, .8);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.shelf-card:hover .shelf-play { opacity: 1; transform: none; }
.shelf-title {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf-meta {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1080px) {
  .shelf {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, 178px);
    justify-content: center;
    overflow: visible;
  }
}

/* ---------- 歌单抽屉 ---------- */
.pl-drawer { width: min(430px, 100%); }
.pl-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.pl-tabs button {
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.pl-tabs button.on { background: var(--foam-2); color: var(--tide-deep); }
.pl-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 34px;
  display: grid;
  gap: 3px;
  align-content: start;
}
.pl-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  text-align: left;
  transition: background .2s var(--ease);
}
.pl-item:hover { background: var(--paper-2); }
.pl-item.is-active { background: var(--foam-2); }
.pl-cover {
  width: 42px; height: 42px;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
  background: var(--paper-3);
}
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-info { flex: 1; min-width: 0; }
.pl-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-info em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pl-svip {
  flex: none;
  font-size: 9px;
  letter-spacing: .08em;
  padding: 1px 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--tide-deep), var(--tide-2));
}
.pl-dur { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 播放器歌单按钮 */
.p-playlist { position: relative; }
.p-playlist:hover { color: var(--tide); background: var(--paper-3); }

/* ---------- 封面模式 ---------- */
.cover-mode {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  background: #071a26;
  opacity: 0;
  transition: opacity .35s var(--ease);
  overflow: hidden;
}
.cover-mode[hidden] { display: none; }
.cover-mode.in { opacity: 1; }
.cover-bg {
  position: absolute;
  inset: -50px;
  background-size: cover;
  background-position: center;
  filter: blur(46px) saturate(120%);
  opacity: .5;
  transform: scale(1.12);
}
.cover-mode::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 18, 26, .25), rgba(4, 18, 26, .82));
}
.cover-stage {
  position: relative;
  z-index: 2;
  width: min(90vw, 520px);
  text-align: center;
  color: #fff;
  padding: 20px;
}
.cover-art {
  width: min(60vw, 310px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  margin: 0 auto 26px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75);
}
.cover-meta h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .04em;
}
.cover-meta p { margin: 0 0 22px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.cover-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .72);
  font-variant-numeric: tabular-nums;
}
.cover-bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}
.cover-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .2s linear; }
.cover-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 26px;
}
.cover-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.cover-btn:hover { background: rgba(255, 255, 255, .22); }
.cover-play { width: 64px; height: 64px; background: #fff; color: var(--ink); }
.cover-play:hover { background: #fff; }
.cover-play .ic-pause { display: none; }
.cover-play.is-playing .ic-play { display: none; }
.cover-play.is-playing .ic-pause { display: block; }
.cover-close {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
.cover-close:hover { background: rgba(255, 255, 255, .22); }

/* ---------- 设置 ---------- */
.settings-list { display: grid; gap: 0; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px dashed var(--line);
}
.setting-row:last-child { border-bottom: none; }
.setting-row strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.setting-row em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--paper-3);
  transition: background .2s var(--ease);
}
.switch span::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(8, 32, 46, .25);
  transition: transform .2s var(--ease);
}
.switch input:checked + span { background: var(--tide); }
.switch input:checked + span::after { transform: translateX(18px); }
.setting-vol { display: flex; align-items: center; gap: 10px; flex: none; }
.setting-vol input[type="range"] { width: 110px; accent-color: var(--tide); }
.setting-vol span { font-size: 11.5px; color: var(--muted); width: 36px; text-align: right; }

/* ---------- 账号标签 / 邀请码 ---------- */
.acc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.acc-tag {
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
}
.acc-tag.is-svip { background: linear-gradient(120deg, var(--tide-deep), var(--tide-2)); color: #fff; }
.acc-avatar.is-svip { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tide-2); }
.nav-account.is-svip .nav-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--tide-2); }
.invite-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  margin: 0 0 22px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(232, 246, 251, .45);
}
.invite-card-main { min-width: 0; }
.invite-card span { display: block; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.invite-card strong {
  display: block;
  margin: 3px 0 2px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .12em;
  color: var(--tide-deep);
}
.invite-card em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ---------- 个人主页 ---------- */
.profile-shell { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: clamp(30px, 5vw, 60px) var(--pad) calc(var(--player-h) + 60px); }
.profile-card {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, #fff, var(--paper-2));
  box-shadow: var(--shadow-soft);
}
.profile-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--foam), var(--paper-3));
  color: var(--tide-deep);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar.is-svip { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--tide-2); }
.profile-name { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); letter-spacing: .03em; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.profile-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--foam-2);
  color: var(--tide-deep);
}
.profile-badge.svip { background: linear-gradient(120deg, var(--tide-deep), var(--tide-2)); color: #fff; }
.profile-bio { margin: 20px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.profile-stat {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.profile-stat span { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.profile-stat strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.profile-section { margin-top: 22px; }
.profile-section h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; }
.profile-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(232, 246, 251, .4);
}
.profile-invite span { display: block; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.profile-invite strong { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 20px; letter-spacing: .14em; color: var(--tide-deep); }
.profile-orders { display: grid; gap: 8px; }
.profile-empty { padding: 26px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 14px; }

/* ---------- 手机端增强 ---------- */
@media (max-width: 620px) {
  .nav-account { padding: 6px 8px 6px 6px; max-width: 132px; }
  .nav-account-text { display: inline-block; font-size: 12px; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-actions .nav-cta span { display: none; }
  .nav-actions .nav-cta { padding: 10px; }
  .shelf { grid-auto-columns: 138px; gap: 12px; }
  .cover-art { width: min(70vw, 270px); }
  .cover-controls { gap: 18px; }
  .cover-btn { width: 46px; height: 46px; }
  .cover-play { width: 58px; height: 58px; }
  .setting-row { gap: 10px; }
  .setting-vol input[type="range"] { width: 90px; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .profile-head { gap: 16px; }
  .profile-avatar { width: 78px; height: 78px; font-size: 30px; }
  .profile-shell { padding-top: 24px; }
  .invite-card { flex-direction: column; align-items: flex-start; }
}
/* 歌单区块间距 / 头像点击 */
#daily.section, #recommend.section { padding-top: clamp(24px, 4vw, 52px); padding-bottom: clamp(24px, 4vw, 52px); }
.drawer-head .acc-avatar { cursor: pointer; }