/* ==========================================================
   汽水音乐 · 视觉系统
   ========================================================== */

:root {
  --bg: #07070a;
  --bg-soft: #0c0c10;
  --surface: #141419;
  --surface-2: #1b1b22;
  --text: #f6f7f3;
  --muted: rgba(246, 247, 243, .56);
  --dim: rgba(246, 247, 243, .34);
  --line: rgba(255, 255, 255, .085);
  --lime: #c8f536;
  --lime-soft: rgba(200, 245, 54, .14);
  --mint: #63f5b6;
  --accent-grad: linear-gradient(120deg, #ddff54 0%, #a9f95a 48%, #63f5b6 100%);
  --radius: 22px;
  --mini-h: 60px;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --top-pad: calc(env(safe-area-inset-top, 0px) + 12px);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #050506;
  color: var(--text);
  font-family: "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img { display: block; }
h1, h2, h3, p { margin: 0; }
input { font: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.muted { color: var(--muted); }

/* ---------------- 设备外框 / 环境 ---------------- */

.ambient { display: none; }

.device {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.app {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.statusbar { display: none; }

/* ---------------- 通用控件 ---------------- */

.round-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .2s var(--ease), background .2s;
}
.round-btn:active { transform: scale(.92); background: rgba(255, 255, 255, .14); }
.round-btn .ic { width: 19px; height: 19px; }

.avatar-btn { padding: 0; overflow: hidden; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  transition: transform .2s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn .ic { width: 19px; height: 19px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #0a0f02;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 10px 26px -10px rgba(174, 245, 74, .6);
  transition: transform .2s var(--ease), filter .2s;
}
.btn-primary:active { transform: scale(.96); filter: brightness(1.06); }
.btn-primary .ic { width: 16px; height: 16px; }

.text-btn {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 2px;
  transition: color .2s;
}
.text-btn:active { color: var(--lime); }

.eyebrow {
  font-size: 9.5px;
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
}

.section { padding: 22px 18px 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-head h2 .ic { width: 17px; height: 17px; color: var(--lime); }
.section-note { font-size: 11px; color: var(--dim); }

.page-foot {
  text-align: center;
  font-size: 10.5px;
  color: var(--dim);
  padding: 34px 0 14px;
  letter-spacing: .04em;
}

/* ---------------- 视图容器 ---------------- */

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: var(--top-pad);
  padding-bottom: calc(var(--mini-h) + var(--tab-h) + var(--safe-b) + 34px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .28s ease, transform .32s var(--ease), visibility .28s;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.view::-webkit-scrollbar { display: none; }
.view.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.view-discover {
  padding: 0;
  overflow: hidden;
  transform: none;
}

/* ---------------- 发现页 ---------------- */

.feed-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--top-pad) + 6px) 18px 12px;
  background: linear-gradient(180deg, rgba(5, 5, 8, .72) 0%, rgba(5, 5, 8, .28) 60%, transparent 100%);
  pointer-events: none;
}
.feed-header > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
}
.brand-mark i {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px rgba(190, 245, 74, .5);
}
.brand-mark i:nth-child(1) { width: 18px; height: 18px; left: 0; top: 0; }
.brand-mark i:nth-child(2) {
  width: 9px; height: 9px; right: 0; bottom: 0;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 8px rgba(255, 255, 255, .5);
}
.brand-name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.feed-header-actions { display: flex; align-items: center; gap: 9px; }

.feed {
  position: absolute;
  inset: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

.feed-slide {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  isolation: isolate;
}

.slide-bg {
  position: absolute;
  inset: -70px;
  background-size: cover;
  background-position: center;
  filter: blur(54px) saturate(125%) brightness(.7);
  transform: scale(1.12);
  opacity: .55;
  z-index: -2;
  transition: opacity .6s;
}
.feed-slide:not(.is-active) .slide-bg { opacity: .28; }

.slide-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 6, 9, .82) 0%, rgba(6, 6, 9, .1) 26%, rgba(6, 6, 9, .05) 46%, rgba(6, 6, 9, .88) 78%, #07070a 100%),
    radial-gradient(120% 60% at 50% 100%, rgba(6, 6, 9, .6), transparent 70%);
}

.slide-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--top-pad) + 62px) 26px calc(var(--mini-h) + var(--tab-h) + var(--safe-b) + 26px);
}

.slide-media {
  position: relative;
  width: min(74vw, 310px);
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  transform: scale(.9) translateY(10px);
  opacity: .55;
  transition: transform .55s var(--ease), opacity .55s var(--ease), box-shadow .55s;
  cursor: pointer;
  flex: none;
}
.feed-slide.is-active .slide-media {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.feed-slide.is-active .slide-media {
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .92), 0 0 0 1px rgba(255, 255, 255, .07);
}
.media-glow {
  position: absolute;
  inset: -18%;
  border-radius: 40px;
  background-size: cover;
  background-position: center;
  filter: blur(38px) saturate(150%);
  opacity: .42;
  z-index: -1;
}
.slide-media .cover {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: cover;
}
.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #0a0f02;
  background: var(--accent-grad);
}
.media-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0a0f02;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .8);
  transition: transform .2s var(--ease), opacity .3s;
}
.media-play:active { transform: scale(.9); }
.media-play .ic { width: 20px; height: 20px; margin-left: 2px; }
.media-play .mp-pause { display: none; margin-left: 0; }
.slide-media.is-playing .mp-play { display: none; }
.slide-media.is-playing .mp-pause { display: block; }

.slide-meta {
  width: min(78vw, 330px);
  margin-top: 34px;
  text-align: left;
  transition: transform .5s var(--ease), opacity .5s;
  opacity: .5;
  transform: translateY(8px);
}
.feed-slide.is-active .slide-meta {
  opacity: 1;
  transform: none;
}
.slide-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 8px;
}
.slide-eyebrow .eq { opacity: .3; transition: opacity .3s; }
.feed-slide.is-current .slide-eyebrow .eq { opacity: 1; }
.slide-eyebrow .eq i { background: var(--lime); width: 2px; }
.slide-title {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.18;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.slide-artist {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
}
.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.slide-tags span {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .7);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
}

.slide-actions {
  position: absolute;
  right: 16px;
  bottom: calc(var(--mini-h) + var(--tab-h) + var(--safe-b) + 104px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, .82);
  min-width: 42px;
}
.action-btn .ic {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .55));
  transition: transform .2s var(--ease), color .2s;
}
.action-btn:active .ic { transform: scale(.86); }
.action-btn.is-liked { color: var(--lime); }
.action-btn.is-liked .ic { filter: drop-shadow(0 0 10px rgba(200, 245, 54, .45)); }
.action-btn.is-liked { animation: likePop .45s var(--ease); }

.slide-count {
  position: absolute;
  left: 22px;
  top: calc(var(--top-pad) + 66px);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .36);
  font-variant-numeric: tabular-nums;
}

.feed-tip {
  position: absolute;
  left: 50%;
  bottom: calc(var(--mini-h) + var(--tab-h) + var(--safe-b) + 12px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .06em;
  z-index: 4;
  transition: opacity .5s;
  pointer-events: none;
}
.feed-tip .ic { width: 13px; height: 13px; transform: rotate(180deg); }
.feed-tip.hide { opacity: 0; }

/* 跳动均衡器 */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i {
  width: 2px;
  height: 35%;
  background: rgba(255, 255, 255, .75);
  border-radius: 2px;
  animation: eq 1s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: .18s; }
.eq i:nth-child(3) { animation-delay: .36s; }
.eq i:nth-child(4) { animation-delay: .52s; }
.eq.paused i { animation-play-state: paused; height: 30%; }

/* ---------------- 歌单广场 ---------------- */

.page-head {
  padding: 10px 20px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.page-head h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 6px;
}
.page-head .sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.featured {
  margin: 0 18px;
  position: relative;
  height: 208px;
  border-radius: 26px;
  overflow: hidden;
  background: #101015;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9);
}
.featured-mosaic {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 196px;
  height: 196px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  transform: rotate(9deg);
  opacity: .92;
  border-radius: 14px;
  overflow: hidden;
}
.featured-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, #0b0b0f 18%, rgba(11, 11, 15, .9) 42%, rgba(11, 11, 15, .2) 78%),
    linear-gradient(0deg, rgba(8, 8, 12, .75), transparent 60%);
  pointer-events: none;
}
.featured-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 74%;
}
.featured-tag {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #0b0f03;
  background: var(--accent-grad);
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.featured h2 {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.02em;
}
.featured p {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-meta {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--dim);
}
.featured-play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #0a0f02;
  box-shadow: 0 12px 26px -8px rgba(174, 245, 74, .55);
}
.featured-play .ic { width: 18px; height: 18px; margin-left: 2px; }

.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 18px 6px;
  margin: 0 -18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.pick-card {
  flex: none;
  width: 138px;
  scroll-snap-align: start;
}
.pick-cover {
  position: relative;
  width: 138px;
  height: 138px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9);
}
.pick-cover .mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  gap: 2px;
}
.pick-cover .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.pick-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45));
}
.pick-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(6, 6, 9, .5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
}
.pick-play .ic { width: 13px; height: 13px; margin-left: 1px; }
.pick-title {
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick-sub { margin-top: 3px; font-size: 10px; color: var(--dim); }

.pl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}
.pl-grid.compact { gap: 14px 10px; }
.pl-card { min-width: 0; }
.pl-card .pick-cover { width: 100%; height: auto; aspect-ratio: 1; }
.pl-card .mosaic { width: 100%; height: 100%; }
.pl-title {
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-sub {
  margin-top: 3px;
  font-size: 10px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pl-sub .ic { width: 11px; height: 11px; }

/* ---------------- 歌单详情 ---------------- */

.playlist-detail {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  visibility: hidden;
  overflow: hidden;
}
.playlist-detail.open {
  transform: none;
  visibility: visible;
}
.pd-scroll {
  height: 100%;
  overflow-y: auto;
  padding-bottom: calc(var(--mini-h) + var(--safe-b) + 22px);
  scrollbar-width: none;
}
.pd-scroll::-webkit-scrollbar { display: none; }

.pd-hero {
  position: relative;
  height: 430px;
  overflow: hidden;
}
.pd-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.pd-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 10, .55) 0%, rgba(7, 7, 10, .15) 30%, rgba(7, 7, 10, .72) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 7, 10, .55), transparent 60%);
}
.pd-back {
  position: absolute;
  top: var(--top-pad);
  left: 16px;
  z-index: 3;
  background: rgba(0, 0, 0, .35);
}
.pd-hero-inner {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}
.pd-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--lime);
  border: 1px solid rgba(200, 245, 54, .35);
  background: rgba(200, 245, 54, .1);
  padding: 3px 8px;
  border-radius: 5px;
}
.pd-hero-inner h1 {
  margin-top: 10px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-shadow: 0 6px 26px rgba(0, 0, 0, .6);
}
.pd-hero-inner > p {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pd-meta {
  margin-top: 9px;
  font-size: 10.5px;
  color: var(--dim);
}
.pd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.pd-actions .btn-primary { height: 42px; padding: 0 20px; font-size: 13px; }
.pd-actions .icon-btn { width: 42px; height: 42px; background: rgba(255, 255, 255, .1); }
.pd-actions .icon-btn.is-liked { color: var(--lime); background: var(--lime-soft); border-color: rgba(200, 245, 54, .3); }
.pd-body { padding: 4px 14px 0; }
.pd-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 6px 6px;
}
.pd-list-head h2 { font-size: 15px; font-weight: 800; }
.pd-list-head span { font-size: 10.5px; color: var(--dim); }

/* ---------------- 歌曲行 ---------------- */

.track-list { display: flex; flex-direction: column; }
.track-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 6px;
  border-radius: 14px;
  transition: background .18s;
  position: relative;
}
.track-row:active { background: rgba(255, 255, 255, .05); }
.tr-idx {
  width: 18px;
  flex: none;
  text-align: center;
  font-size: 10px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.tr-cover {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}
.tr-main { flex: 1; min-width: 0; }
.tr-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}
.tr-sub {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tr-sub .dot { margin: 0 4px; color: var(--dim); }
.tr-dur {
  font-size: 10.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.track-row.is-playing .tr-title { color: var(--lime); }
.track-row.is-playing .tr-idx { color: var(--lime); }
.track-row.is-playing .tr-sub { color: rgba(200, 245, 54, .5); }
.tr-eq {
  position: absolute;
  left: 6px;
  width: 18px;
  display: flex;
  justify-content: center;
}
.tr-eq .eq { height: 10px; }
.tr-eq .eq i { background: var(--lime); }

/* ---------------- 搜索 ---------------- */

.view-search { padding-top: 0; }

.search-head {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--top-pad) + 2px) 18px 12px;
  background: linear-gradient(180deg, rgba(7, 7, 10, .96) 60%, rgba(7, 7, 10, .7) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.search-box {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .2s, background .2s;
}
.search-box:focus-within {
  border-color: rgba(200, 245, 54, .4);
  background: rgba(255, 255, 255, .09);
}
.search-ic { width: 18px; height: 18px; color: var(--muted); }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
}
.search-box input::placeholder { color: var(--dim); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, .1);
}
.search-clear .ic { width: 11px; height: 11px; }
.search-box.has-value .search-clear { display: grid; }
.cancel-btn { flex: none; font-size: 12.5px; color: var(--muted); padding: 8px 2px; }

.hot-list { display: flex; flex-direction: column; }
.hot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
}
.hot-item:last-child { border-bottom: 0; }
.hot-rank {
  width: 20px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  font-style: italic;
}
.hot-item:nth-child(1) .hot-rank,
.hot-item:nth-child(2) .hot-rank,
.hot-item:nth-child(3) .hot-rank { color: var(--lime); }
.hot-text { flex: 1; font-size: 13px; }
.hot-heat { font-size: 10px; color: var(--dim); }
.hot-trend { width: 14px; height: 14px; color: var(--dim); display: grid; place-items: center; }
.hot-trend.up { color: #63f5b6; }
.hot-trend.down { color: #ff7d7d; }
.hot-trend .ic { width: 12px; height: 12px; }

.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .76);
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: transform .18s var(--ease);
}
.chip:active { transform: scale(.95); color: var(--lime); }
.chip-empty { font-size: 11px; color: var(--dim); padding: 4px 0; }

.search-results { padding: 6px 16px 20px; }
.res-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 2px 8px;
}
.res-head h2 { font-size: 15px; font-weight: 800; }
.res-head span { font-size: 10.5px; color: var(--dim); }
.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
}
.empty-state .ic { width: 34px; height: 34px; margin: 0 auto 14px; color: rgba(255, 255, 255, .2); }
.empty-state b { display: block; color: rgba(255, 255, 255, .6); font-size: 13.5px; margin-bottom: 6px; font-weight: 600; }

/* ---------------- 我的 ---------------- */

.profile-head {
  position: relative;
  padding: 14px 20px 4px;
  overflow: hidden;
}
.profile-head::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 245, 54, .22), transparent 66%);
  filter: blur(18px);
  pointer-events: none;
}
.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.avatar-lg {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  padding: 2px;
  background: var(--accent-grad);
  box-shadow: 0 10px 30px -10px rgba(174, 245, 74, .45);
  flex: none;
}
.avatar-lg img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
}
.profile-name h1 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.profile-name p { margin-top: 4px; font-size: 10.5px; color: var(--muted); }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-stats div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.profile-stats b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-stats span { font-size: 9.5px; color: var(--dim); }

.quick-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 16px 18px 0;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 11px;
  border-radius: 17px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .06);
  text-align: left;
  transition: transform .2s var(--ease);
}
.quick-card:active { transform: scale(.96); }
.quick-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.quick-icon .ic { width: 16px; height: 16px; }
.quick-icon.lime { background: rgba(200, 245, 54, .14); color: var(--lime); }
.quick-icon.blue { background: rgba(94, 176, 255, .14); color: #7cc0ff; }
.quick-icon.purple { background: rgba(178, 132, 255, .14); color: #c39bff; }
.quick-card b { font-size: 11px; font-weight: 600; white-space: nowrap; }
.quick-card small { font-size: 9.5px; color: var(--dim); }

.menu-list {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 18px;
  overflow: hidden;
}
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  text-align: left;
  font-size: 12.5px;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .ic { width: 17px; height: 17px; color: var(--muted); }
.menu-item span { flex: 1; }
.menu-item small { font-size: 10.5px; color: var(--dim); }
.menu-item:active { background: rgba(255, 255, 255, .04); }

/* ---------------- 迷你播放器 ---------------- */

.mini-player {
  position: absolute;
  z-index: 50;
  left: 11px;
  right: 11px;
  bottom: calc(var(--tab-h) + var(--safe-b) + 9px);
  height: var(--mini-h);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 7px;
  background: rgba(26, 26, 32, .74);
  border: 1px solid rgba(255, 255, 255, .085);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  transition: transform .34s var(--ease), opacity .3s;
  cursor: pointer;
}
.app.player-open .mini-player,
.app.player-open .tabbar {
  transform: translateY(26px);
  opacity: 0;
  pointer-events: none;
}
.mini-progress {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 0;
  height: 2px;
  background: rgba(255, 255, 255, .08);
  border-radius: 2px;
  overflow: hidden;
}
.mini-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-grad);
  transition: width .2s linear;
}
.mini-cover {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  margin-left: 2px;
}
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-cover-ring {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
}
.app.is-playing .mini-cover-ring { border-color: rgba(200, 245, 54, .45); }

.mini-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mini-text b {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-text span {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-eq { height: 10px; opacity: 0; transition: opacity .3s; flex: none; }
.app.is-playing .mini-eq { opacity: 1; }
.mini-eq i { background: var(--lime); }

.mini-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  flex: none;
}
.mini-btn .ic { width: 18px; height: 18px; }
.mini-btn:active { background: rgba(255, 255, 255, .08); }
.mini-btn .ic-pause { display: none; }
.app.is-playing .mini-btn .ic-play { display: none; }
.app.is-playing .mini-btn .ic-pause { display: block; }

/* ---------------- 底部导航 ---------------- */

.tabbar {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tab-h) + var(--safe-b));
  --tab-cols: 5;
  padding: 0 10px var(--safe-b);
  display: grid;
  grid-template-columns: repeat(var(--tab-cols, 4), 1fr);
  align-items: center;
  background: rgba(9, 9, 12, .88);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, .06);
  transition: transform .34s var(--ease), opacity .3s;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, .42);
  font-size: 9.5px;
  letter-spacing: .03em;
  padding: 6px 0;
  transition: color .2s;
}
.tab .ic { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.tab.is-active { color: var(--lime); }
.tab.is-active .ic { transform: translateY(-1px) scale(1.04); filter: drop-shadow(0 0 10px rgba(200, 245, 54, .45)); }
.tab.is-active span { font-weight: 700; }
.app.detail-open .tabbar {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

/* ---------------- 全屏播放页 ---------------- */

.player {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: calc(var(--top-pad) + 6px) 22px calc(var(--safe-b) + 16px);
  transform: translateY(102%);
  transition: transform .46s var(--ease);
  background: var(--bg);
  overflow: hidden;
  pointer-events: none;
}
.player.open {
  transform: none;
  pointer-events: auto;
}
.player-bg {
  position: absolute;
  inset: -50px;
  background-size: cover;
  background-position: center;
  filter: blur(58px) saturate(130%) brightness(.55);
  transform: scale(1.25);
  opacity: .85;
  transition: background-image .4s;
  z-index: -2;
}
.player-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 6, 9, .72) 0%, rgba(6, 6, 9, .28) 30%, rgba(6, 6, 9, .72) 70%, rgba(6, 6, 9, .96) 100%);
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  flex: none;
}
.player-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .82);
  transition: background .2s;
}
.player-icon:active { background: rgba(255, 255, 255, .08); }
.player-icon .ic { width: 21px; height: 21px; }
.player-top-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.player-top-title b {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
}
.player-top-title small {
  font-size: 9px;
  color: var(--dim);
  letter-spacing: .08em;
}

.player-visual {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vinyl-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(72vw, 292px);
  aspect-ratio: 1;
}
.vinyl-halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  filter: blur(46px) saturate(160%);
  opacity: .5;
  animation: haloPulse 5s ease-in-out infinite;
}
.vinyl-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .13), transparent 34%),
    repeating-radial-gradient(circle at 50% 50%, #0a0a0c 0 2px, #141417 2px 4px);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 0 40px rgba(0, 0, 0, .8);
  animation: spin 20s linear infinite;
  animation-play-state: paused;
}
.player.is-playing .vinyl-disc { animation-play-state: running; }
.vinyl-disc::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #060608;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .18), inset 0 0 0 4px #111;
  z-index: 3;
}
.vinyl-cover {
  width: 61%;
  height: 61%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 7px rgba(0, 0, 0, .55), 0 0 0 8px rgba(255, 255, 255, .05);
}
.vinyl-cover img { width: 100%; height: 100%; object-fit: cover; }

.lyrics-panel {
  position: absolute;
  inset: 0;
  display: none;
}
.player.show-lyrics .vinyl-wrap { display: none; }
.player.show-lyrics .lyrics-panel { display: block; }
.lyrics-viewport {
  position: absolute;
  inset: 24px 0;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
}
.lyrics-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 170px 0;
  transition: transform .6s var(--ease);
  will-change: transform;
}
.lyric-line {
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, .34);
  text-align: center;
  padding: 9px 46px;
  transition: color .3s, transform .3s, opacity .3s, filter .3s;
  transform: scale(.95);
  cursor: pointer;
}
.lyric-line.active {
  color: var(--lime);
  font-weight: 800;
  transform: scale(1.1);
  text-shadow: 0 0 26px rgba(200, 245, 54, .3);
}
.lyric-line.near { color: rgba(255, 255, 255, .55); }
.lyrics-inner.is-empty {
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
}
.lyrics-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 0 30px;
  text-align: center;
  color: rgba(255, 255, 255, .45);
}
.lyrics-empty .ic {
  width: 28px;
  height: 28px;
  opacity: .55;
  margin-bottom: 4px;
}
.lyrics-empty b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .85);
}
.lyrics-empty span { font-size: 12px; letter-spacing: .06em; }
.lyrics-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 2;
  pointer-events: none;
}
.lyrics-fade.top { top: 0; background: linear-gradient(180deg, rgba(7, 7, 10, .85), transparent); }
.lyrics-fade.bottom { bottom: 0; background: linear-gradient(0deg, rgba(7, 7, 10, .85), transparent); }

.lyrics-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  z-index: 3;
  transition: color .2s, background .2s;
}
.player.show-lyrics .lyrics-toggle {
  color: #0b0f03;
  background: var(--accent-grad);
  border-color: transparent;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding: 4px 2px 0;
}
.pi-text { flex: 1; min-width: 0; }
.pi-text h1 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pi-text p {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pi-text .dot { margin: 0 5px; color: var(--dim); }
.like-btn .heart-solid { display: none; }
.like-btn.is-liked { color: var(--lime); border-color: rgba(200, 245, 54, .3); background: rgba(200, 245, 54, .1); }
.like-btn.is-liked .heart-outline { display: none; }
.like-btn.is-liked .heart-solid { display: block; animation: likePop .4s var(--ease); }

.progress-area { margin-top: 16px; flex: none; }
.progress-track {
  position: relative;
  height: 22px;
  cursor: pointer;
  touch-action: none;
}
.progress-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: rgba(255, 255, 255, .16);
}
.progress-buffer {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  width: 0;
  transform: translateY(-50%);
  border-radius: 3px;
  background: rgba(255, 255, 255, .08);
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  width: 0;
  transform: translateY(-50%);
  border-radius: 3px;
  background: var(--accent-grad);
}
.progress-thumb {
  position: absolute;
  right: -5px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(200, 245, 54, .16);
  opacity: 0;
  transition: opacity .2s;
}
.player.is-playing .progress-thumb,
.progress-track.dragging .progress-thumb { opacity: 1; }
.time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex: none;
  padding: 0 4px;
}
.ctrl {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .92);
  transition: transform .18s var(--ease), background .2s;
}
.ctrl:active { transform: scale(.88); }
.ctrl.small { color: rgba(255, 255, 255, .55); }
.ctrl.small .ic { width: 19px; height: 19px; }
.ctrl.play-main {
  width: 66px;
  height: 66px;
  background: var(--accent-grad);
  color: #080c02;
  box-shadow: 0 16px 36px -12px rgba(174, 245, 74, .55);
  position: relative;
}
.player.is-buffering .ctrl.play-main::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(200, 245, 54, .18);
  border-top-color: var(--lime);
  animation: bufferSpin .9s linear infinite;
}
.mini-player.is-buffering #miniPlay::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(200, 245, 54, .18);
  border-top-color: var(--lime);
  animation: bufferSpin .9s linear infinite;
}
#miniPlay { position: relative; }
@keyframes bufferSpin { to { transform: rotate(360deg); } }
.ctrl.play-main .ic { width: 27px; height: 27px; margin-left: 2px; }
.ctrl.play-main .ic-pause { margin-left: 0; }
.ctrl .ic-pause { display: none; }
.player.is-playing .ctrl .ic-play { display: none; }
.player.is-playing .ctrl .ic-pause { display: block; }

#modeBtn .mode-single, #modeBtn .mode-shuffle { display: none; }
#modeBtn[data-mode="single"] .mode-order { display: none; }
#modeBtn[data-mode="single"] .mode-single { display: block; }
#modeBtn[data-mode="shuffle"] .mode-order { display: none; }
#modeBtn[data-mode="shuffle"] .mode-shuffle { display: block; }
#modeBtn[data-mode="single"], #modeBtn[data-mode="shuffle"] { color: var(--lime); }

.player-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 14px;
  flex: none;
  padding: 0 4px;
}
.p-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: rgba(255, 255, 255, .42);
  min-width: 42px;
}
.p-action .ic { width: 18px; height: 18px; }
.p-action:active { color: var(--lime); }

/* ---------------- 弹层 ---------------- */

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 72;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute;
  z-index: 75;
  left: 8px;
  right: 8px;
  bottom: 0;
  max-height: 68%;
  border-radius: 26px 26px 0 0;
  background: rgba(20, 20, 25, .96);
  border: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 0;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .8);
}
.sheet.open { transform: none; }
.sheet.source-open { max-height: 88%; }
.sheet-grab {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .18);
  margin: 9px auto 2px;
  flex: none;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 16px 12px;
  flex: none;
}
.sheet-head h3 { font-size: 16px; font-weight: 800; }
.sheet-head p { font-size: 10.5px; color: var(--dim); margin-top: 3px; }
.sheet-head .round-btn { width: 32px; height: 32px; }
.sheet-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 12px 22px;
  scrollbar-width: none;
}
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-body .track-row { padding: 8px 6px; }
.sheet-body .track-row.is-playing .tr-idx { display: none; }
.sheet-body .track-row.is-playing .tr-eq { display: flex; }

/* 音乐源设置表单 */
.source-form { display: flex; flex-direction: column; gap: 12px; padding: 2px 4px 10px; }
.src-current {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 14px;
  background: rgba(200, 245, 54, .055);
  border: 1px solid rgba(200, 245, 54, .14);
}
.src-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--lime); box-shadow: 0 0 10px rgba(200, 245, 54, .8);
}
.src-current b { display: block; font-size: 12.5px; }
.src-current small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.src-field { display: flex; flex-direction: column; gap: 6px; }
.src-field > span { font-size: 10.5px; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }
.src-field input, .src-field select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
  color: var(--text); font-size: 16px; outline: none;
  transition: border-color .2s;
}
.src-field input:focus, .src-field select:focus { border-color: rgba(200, 245, 54, .48); }
.src-field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.src-auth { display: flex; flex-direction: column; gap: 12px; }
.src-hint { font-size: 11.5px; line-height: 1.65; color: var(--dim); }
.src-actions {
  position: sticky; bottom: 0;
  display: flex; gap: 10px;
  padding: 12px 0 4px;
  background: linear-gradient(180deg, rgba(20, 20, 25, 0), rgba(20, 20, 25, .97) 38%);
}
.src-save {
  flex: 1; padding: 13px; border-radius: 999px;
  background: var(--accent-grad); color: #080c02;
  font-weight: 800; font-size: 14px;
}
.src-save:disabled { opacity: .55; }
.src-clear {
  padding: 13px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.src-status { min-height: 16px; font-size: 11.5px; line-height: 1.5; color: var(--mint); }
.src-status.is-error { color: #ff7b7b; }


.picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 6px;
  text-align: left;
  border-radius: 12px;
}
.picker-item:active { background: rgba(255, 255, 255, .05); }
.picker-item .mosaic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  flex: none;
}
.picker-item .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.picker-item b { font-size: 12.5px; font-weight: 600; display: block; }
.picker-item small { font-size: 10px; color: var(--dim); }
.picker-item .ic { margin-left: auto; color: var(--lime); width: 18px; height: 18px; }

/* ---------------- Toast ---------------- */

.toast {
  position: absolute;
  z-index: 130;
  left: 50%;
  bottom: calc(var(--mini-h) + var(--tab-h) + var(--safe-b) + 26px);
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(30, 30, 36, .96);
  border: 1px solid rgba(200, 245, 54, .28);
  color: var(--text);
  font-size: 11.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .28s var(--ease);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .9);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { width: 14px; height: 14px; color: var(--lime); }
.player.open ~ .toast { bottom: 90px; }

/* ---------------- 启动页 ---------------- */

.splash {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 55% at 50% 12%, rgba(200, 245, 54, .14), transparent 62%),
    radial-gradient(60% 40% at 80% 90%, rgba(99, 245, 182, .08), transparent 60%),
    #07070a;
  transition: opacity .55s ease, visibility .55s;
  overflow: hidden;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-bubbles { position: absolute; inset: 0; pointer-events: none; }
.splash-bubbles i {
  position: absolute;
  bottom: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), rgba(200, 245, 54, .12) 55%, transparent 72%);
  border: 1px solid rgba(200, 245, 54, .18);
  animation: bubbleUp linear infinite;
  opacity: 0;
}
.splash-bubbles i:nth-child(1) { left: 8%; width: 18px; height: 18px; animation-duration: 11s; animation-delay: .2s; }
.splash-bubbles i:nth-child(2) { left: 22%; width: 9px; height: 9px; animation-duration: 9s; animation-delay: 1.6s; }
.splash-bubbles i:nth-child(3) { left: 34%; width: 26px; height: 26px; animation-duration: 14s; animation-delay: .8s; }
.splash-bubbles i:nth-child(4) { left: 48%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: 3s; }
.splash-bubbles i:nth-child(5) { left: 62%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: 1.1s; }
.splash-bubbles i:nth-child(6) { left: 74%; width: 8px; height: 8px; animation-duration: 8s; animation-delay: 2.4s; }
.splash-bubbles i:nth-child(7) { left: 84%; width: 30px; height: 30px; animation-duration: 15s; animation-delay: .5s; }
.splash-bubbles i:nth-child(8) { left: 92%; width: 13px; height: 13px; animation-duration: 10s; animation-delay: 4s; }
.splash-bubbles i:nth-child(9) { left: 55%; width: 16px; height: 16px; animation-duration: 13s; animation-delay: 5s; }

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 30px;
  animation: fadeUp .9s var(--ease) both;
}
.splash-mark {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
}
.splash-mark i {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 34px rgba(190, 245, 74, .45);
}
.splash-mark i:nth-child(1) { width: 64px; height: 64px; left: 0; top: 0; animation: floatY 4.4s ease-in-out infinite; }
.splash-mark i:nth-child(2) {
  width: 34px; height: 34px; right: 0; bottom: 0;
  background: radial-gradient(circle at 32% 30%, #fff, rgba(255, 255, 255, .35) 60%, rgba(255, 255, 255, .12));
  box-shadow: 0 0 26px rgba(255, 255, 255, .35);
  animation: floatY 3.6s ease-in-out infinite reverse;
}
.splash-mark i:nth-child(3) {
  width: 12px; height: 12px; right: 10px; top: 6px;
  background: rgba(255, 255, 255, .85);
  animation: floatY 3s ease-in-out infinite .4s;
}
.splash-content h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .1em;
  text-indent: .1em;
}
.splash-content p {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .04em;
}
.splash-btn {
  margin-top: 38px;
  width: 200px;
  height: 48px;
}
.splash-foot {
  margin-top: 18px;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--dim);
}

/* ---------------- 动画 ---------------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq {
  0%, 100% { height: 28%; }
  50% { height: 100%; }
}
@keyframes likePop {
  0% { transform: scale(1); }
  38% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes haloPulse {
  0%, 100% { opacity: .38; transform: scale(.98); }
  50% { opacity: .55; transform: scale(1.04); }
}
@keyframes bubbleUp {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  12% { opacity: .7; }
  80% { opacity: .5; }
  100% { transform: translateY(-118vh) scale(1.1); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- 桌面预览 ---------------- */

@media (min-width: 820px) and (min-height: 600px) {
  body {
    display: grid;
    place-items: center;
    background: radial-gradient(90% 80% at 50% 10%, #101018 0%, #050506 62%);
  }
  .ambient {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .ambient i {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .3;
  }
  .ambient i:nth-child(1) {
    width: 420px; height: 420px;
    left: calc(50% - 560px); top: 18%;
    background: radial-gradient(circle, rgba(200, 245, 54, .34), transparent 68%);
    animation: haloPulse 9s ease-in-out infinite;
  }
  .ambient i:nth-child(2) {
    width: 380px; height: 380px;
    right: calc(50% - 540px); bottom: 12%;
    background: radial-gradient(circle, rgba(99, 245, 182, .24), transparent 68%);
    animation: haloPulse 11s ease-in-out infinite reverse;
  }
  .device {
    width: 412px;
    height: min(892px, 94vh);
    border-radius: 54px;
    border: 9px solid #16161b;
    box-shadow:
      0 70px 140px -40px rgba(0, 0, 0, .95),
      0 0 0 1px rgba(255, 255, 255, .07),
      inset 0 0 0 1px rgba(255, 255, 255, .04);
  }
  .device::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 104px;
    height: 25px;
    border-radius: 20px;
    background: #000;
    z-index: 90;
    pointer-events: none;
  }
  .statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    padding: 0 26px;
    z-index: 80;
    pointer-events: none;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .01em;
  }
  .sb-time { font-variant-numeric: tabular-nums; }
  .sb-right { display: flex; align-items: center; gap: 5px; }
  .sb-icon { height: 11px; width: auto; }
  .statusbar .sb-icon:nth-child(1) { width: 15px; }
  .statusbar .sb-icon:nth-child(2) { width: 14px; }
  .statusbar .sb-icon:nth-child(3) { width: 21px; }
  :root { --top-pad: 52px; }
  .splash { border-radius: 44px; }
}

@media (min-width: 820px) and (max-height: 780px) {
  .device { height: 94vh; }
  .vinyl-wrap { width: min(64vw, 250px); }
  .player-visual { min-height: 0; }
  .player-actions { margin-top: 8px; }
  .pi-text h1 { font-size: 20px; }
}

/* 小屏手机 */
@media (max-height: 740px) and (max-width: 819px) {
  .slide-media { width: min(64vw, 250px); }
  .slide-meta { margin-top: 24px; }
  .slide-title { font-size: 25px; }
  .vinyl-wrap { width: min(60vw, 230px); }
  .player-actions { margin-top: 10px; }
  .player-actions .p-action:nth-child(5) { display: none; }
  .pi-text h1 { font-size: 21px; }
  .controls { margin-top: 10px; }
  .lyrics-inner { padding: 120px 0; }
}

/* 低高度窗口 / 横屏 */
@media (max-height: 700px) {
  .player { padding-top: calc(var(--top-pad) + 2px); padding-bottom: calc(var(--safe-b) + 10px); }
  .vinyl-wrap { width: min(40vh, 226px); }
  .player-actions { margin-top: 8px; }
  .player-actions .p-action:nth-child(5) { display: none; }
  .progress-area { margin-top: 10px; }
  .controls { margin-top: 8px; }
  .pi-text h1 { font-size: 20px; }
  .lyrics-viewport { inset: 14px 0; }
  .lyrics-inner { padding: 110px 0; }
  .lyric-line { font-size: 15px; padding: 7px 40px; }
}

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

/* ---------------- 电台模式 ---------------- */

.brand-sub {
  margin-left: 6px;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--lime);
  font-weight: 700;
}

.radio-station-count {
  font-size: 11px;
  color: rgba(255, 255, 255, .66);
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a0f02;
  animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.72); }
}

.station-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(8, 8, 10, .52);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}
.station-chip b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.station-chip small {
  font-size: 9.5px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .62);
}

.slide-desc {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .58);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 直播态：进度条不可拖动、迷你进度隐藏 */
.player.is-live .progress-track {
  pointer-events: none;
  opacity: .28;
}
.player.is-live #timeTotal {
  color: var(--lime);
  font-weight: 700;
  letter-spacing: .12em;
}
.mini-player.is-live .mini-progress {
  display: none;
}
