:root {
  color-scheme: dark;
  --bg: #09090d;
  --phone-bg: #0e0e14;
  --surface-1: #161620;
  --surface-2: #1f1f2d;
  --surface-3: #282839;
  --border: #2c2c3e;
  --text: #f8f9fc;
  --muted: #9b9bb3;
  --lime: #d4ff33;
  --lime-ink: #0c0e06;
  --pink: #ff4d79;
  --cyan: #38bdf8;
  --amber: #ffb830;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  font-family: "PingFang SC", "Microsoft YaHei UI", "HarmonyOS Sans SC", system-ui, -apple-system, sans-serif;
}

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

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* Ambient Midnight Club Glows */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
}
.orb-1 {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #d4ff3338, transparent 70%);
  top: -120px;
  right: 8%;
}
.orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #ff4d7933, transparent 70%);
  bottom: -140px;
  left: 4%;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
button:disabled { opacity: 0.48; cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }

/* Workspace Layout */
.workspace {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 460px) 412px;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 96px);
  padding: 28px 24px;
}

/* Left Showcase */
.showcase { display: grid; gap: 24px; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-lockup img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1.5px solid #ffffff20;
  box-shadow: 0 12px 30px #00000080, 0 0 24px #d4ff331a;
  object-fit: cover;
  transition: transform 220ms cubic-bezier(.22,1,.36,1);
}
.brand-lockup img:hover { transform: rotate(-6deg) scale(1.06); }
.brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.sticker-pill {
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--lime);
  color: var(--lime-ink);
  padding: 3px 8px;
  border-radius: 99px;
  transform: rotate(-3deg);
  display: inline-block;
}
.brand-lockup small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.hero-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--lime);
  background: #d4ff3314;
  border: 1px solid #d4ff3338;
  padding: 5px 10px;
  border-radius: 99px;
}
.hero-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.hero-copy h1 span { color: var(--lime); }
.hero-copy h1 .bang { color: var(--pink); }
.hero-copy .lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* Control Deck on Desktop */
.control-deck {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px 16px;
  display: grid;
  gap: 14px;
}
.deck-group { display: grid; gap: 10px; }
.deck-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.deck-label a {
  color: var(--lime);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.deck-label a:hover { text-decoration: underline; }

.mini-icon-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mini-icon-btn {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.mini-icon-btn:hover { transform: translateY(-2px); background: var(--surface-3); }
.mini-icon-btn.active {
  border-color: var(--lime);
  background: #d4ff3315;
}
.mini-icon-btn img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
}
.mini-icon-btn span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.vibe-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  transition: all 180ms ease;
}
.vibe-toggle:hover { border-color: var(--pink); }
.vibe-toggle .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.chaos-on .vibe-toggle {
  background: #ff4d7924;
  border-color: var(--pink);
  color: #ffd3de;
}
.chaos-on .vibe-toggle .dot {
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.quick-nav {
  display: grid;
  border-top: 1px solid var(--border);
}
.quick-nav button, .quick-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease, padding-left 140ms ease;
}
.quick-nav button:hover, .quick-nav a:hover, .quick-nav .active {
  color: var(--lime);
  padding-left: 6px;
}

/* Phone Frame */
.phone-stage { display: flex; justify-content: center; }
.phone {
  width: 408px;
  height: min(848px, calc(100dvh - 44px));
  min-height: 640px;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background: var(--phone-bg);
  border: 2px solid #2f2f42;
  border-radius: 42px;
  overflow: hidden;
  box-shadow:
    0 34px 96px #000000e0,
    0 0 0 6px #181822,
    inset 0 0 0 1px #ffffff0c;
}

/* Top Status + Dynamic Island */
.status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 22px 8px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.status strong { justify-self: start; font-variant-numeric: tabular-nums; }
.status-icons { justify-self: end; font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }

.dynamic-island {
  background: #040406;
  border: 1px solid #262635;
  border-radius: 99px;
  height: 22px;
  min-width: 82px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.island-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 12px;
}
.island-wave i {
  display: block;
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--muted);
  transition: height 180ms ease, background 180ms ease;
}
.phone.is-playing .island-wave i {
  background: var(--lime);
  animation: eqPulse 0.75s ease-in-out infinite alternate;
}
.phone.is-playing .island-wave i:nth-child(2) { animation-delay: 0.15s; background: var(--pink); }
.phone.is-playing .island-wave i:nth-child(3) { animation-delay: 0.3s; background: var(--cyan); }
.phone.is-playing .island-wave i:nth-child(4) { animation-delay: 0.45s; }

@keyframes eqPulse {
  from { height: 3px; }
  to { height: 12px; }
}

/* Screen Area */
.screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 6px 18px 18px;
}
.screen::-webkit-scrollbar { display: none; }

.page { animation: popIn 200ms cubic-bezier(.22,1,.36,1); }
@keyframes popIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 14px;
}
.header-left { min-width: 0; }
.header-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 4px;
}
.header h1 {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}
.status-chip.is-offline { color: var(--amber); border-color: #ffb83055; background: #ffb83015; }
.status-chip .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.icon-button {
  height: 40px;
  min-width: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  transition: background 140ms ease, transform 120ms ease;
}
.icon-button:hover { background: #ffffff14; }
.icon-button:active { transform: scale(0.92); }
.avatar-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 16px;
}
.back-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 20px;
  font-weight: 700;
}

/* Hero Card */
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  min-height: 206px;
  padding: 18px;
  border: 1px solid #ffffff1a;
  background:
    linear-gradient(100deg, #0e0e16f2 0%, #12121ecc 48%, #15152540 100%),
    var(--daily-cover, url("assets/hero-mix.png")) center/cover no-repeat,
    radial-gradient(circle at 80% 35%, #ff4d7955, #181828 65%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px #00000070;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 99px;
  transform: rotate(-2deg);
  box-shadow: 2px 3px 0 #09090d;
}
.chaos-on .hero-badge {
  background: var(--pink);
  color: #fff;
  transform: rotate(-3deg) scale(1.04);
}
.cover-edit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0c0c12c8;
  backdrop-filter: blur(8px);
  border: 1px solid #ffffff22;
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.cover-edit:hover { background: var(--surface-3); }

.hero-body { margin-top: 22px; }
.hero-body h2 {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero-body p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #d6d6e8;
  max-width: 78%;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 6px 20px #d4ff3340;
  transition: transform 140ms ease, filter 140ms ease;
}
.btn-lime:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-lime:active { transform: scale(0.96); }

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 14px;
  border-radius: 99px;
  background: #14141ecc;
  backdrop-filter: blur(10px);
  border: 1px solid #ffffff28;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  transition: background 140ms ease, transform 140ms ease;
}
.btn-glass:hover { background: #262638e6; }
.btn-glass:active { transform: scale(0.96); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.btn-secondary:hover { border-color: var(--lime); color: var(--lime); }

/* Mood Strip */
.mood-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 14px -18px 2px;
  padding: 2px 24px 2px 18px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
}
.mood-strip::-webkit-scrollbar { display: none; }
.mood-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  transition: transform 140ms ease, border-color 140ms ease;
}
.mood-pill:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
  color: var(--lime);
}

/* Section Headers */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 10px;
}
.section-head h2 {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-head button {
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 6px;
}

/* Track Rows */
.track-list { display: grid; gap: 8px; }
.track {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 8px 8px 10px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.track:hover { background: var(--surface-2); border-color: #3d3d56; }
.track.is-current {
  border-color: #d4ff3380;
  background: linear-gradient(90deg, #d4ff3314, var(--surface-1) 65%);
}
.track-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  text-align: left;
  min-width: 0;
}
.track-meta { min-width: 0; }
.track-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.track-title-line strong {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.src-tag {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 6px;
}
.src-nas { background: #38bdf824; color: var(--cyan); border: 1px solid #38bdf844; }
.src-web { background: #ff4d7922; color: #ff85a3; border: 1px solid #ff4d7944; }
.src-off { background: #d4ff3322; color: var(--lime); border: 1px solid #d4ff3344; }

/* Cover Art */
.cover {
  display: block;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 11px;
  background: var(--art);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px #00000050;
}
.art0 { --art: url("assets/hero-mix.png") 78% center/cover, radial-gradient(circle at 65% 40%, #d4ff33, #1d1a38 72%); }
.art1 { --art: radial-gradient(circle at 28% 25%, #ff9e3d 5%, #ff4d79 42%, #241736 82%); }
.art2 { --art: conic-gradient(from 40deg at 60% 50%, #d4ff33, #38bdf8, #191928 70%, #d4ff33); }
.art3 { --art: radial-gradient(circle at 70% 75%, #c084fc 8%, #4f46e5 48%, #0f172a 85%); }
.art4 { --art: linear-gradient(135deg, #2dd4bf, #0284c7 48%, #0f172a 90%); }
.art5 { --art: radial-gradient(circle at 30% 75%, #f472b6 5%, #7c3aed 45%, #111827 86%); }

/* Tile Grid */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 86px;
  padding: 13px;
  text-align: left;
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: transform 140ms ease, border-color 140ms ease;
}
.tile:hover { transform: translateY(-2px); border-color: #464664; }
.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.tile-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--surface-3);
  color: var(--lime);
}
.tile-cyan .tile-badge { color: var(--cyan); background: #38bdf81c; }
.tile-pink .tile-badge { color: var(--pink); background: #ff4d791c; }
.tile b { font-size: 14px; font-weight: 850; display: block; }
.tile span { font-size: 11px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.chip {
  border-radius: 99px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: all 140ms ease;
}
.chip:hover { border-color: #4e4e6a; color: var(--text); }
.chip.selected {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
  font-weight: 900;
}

/* Search Box */
.search-box {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  border-radius: 16px;
  padding: 0 8px 0 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  transition: border-color 150ms ease;
}
.search-box:focus-within { border-color: var(--lime); }
.search-box input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 13px;
  outline: none;
}
.search-box input::placeholder { color: var(--muted); }

/* Notice / Empty / Storage */
.notice, .empty {
  border-radius: 16px;
  background: var(--surface-1);
  border: 1px dashed #393950;
  padding: 16px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.notice b, .empty b { color: var(--text); font-size: 13px; }

.storage-card {
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, #171724, #14141c);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  margin: 8px 0 14px;
}
.storage-top { display: flex; justify-content: space-between; align-items: baseline; }
.storage-top strong { font-size: 24px; font-weight: 900; color: var(--lime); }
.storage-top span { font-size: 11px; color: var(--muted); font-weight: 700; }
.bar {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--surface-3);
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width 240ms ease;
}

/* Settings */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}
.settings-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
}
.settings-row select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}
.switch {
  min-width: 50px;
  height: 30px;
  border-radius: 99px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  transition: all 160ms ease;
}
.switch[aria-checked="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}

/* Bottom Dock: Mini Player + Nav */
.dock {
  background: #12121af2;
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 12px 14px;
  flex-shrink: 0;
}
.mini {
  display: grid;
  grid-template-columns: 1fr 38px 38px;
  gap: 2px;
  align-items: center;
  position: relative;
  min-height: 56px;
  border-radius: 16px;
  margin-bottom: 6px;
  padding: 5px 6px 5px 8px;
  background: var(--surface-2);
  border: 1px solid #35354a;
  overflow: hidden;
}
.mini-open {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  text-align: left;
}
.mini .cover {
  width: 38px;
  border-radius: 9px;
}
.phone.is-playing .mini .cover {
  border-radius: 50%;
  animation: spinDisc 7s linear infinite;
}
.mini strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-play-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 14px;
  font-weight: 900;
}
.mini-line {
  height: 2.5px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--progress);
  background: linear-gradient(90deg, var(--pink), var(--lime));
  pointer-events: none;
}

.nav { display: grid; grid-template-columns: repeat(4, 1fr); }
.nav button {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 44px;
  align-content: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  transition: color 140ms ease;
}
.nav button.active { color: var(--lime); font-weight: 900; }
.nav i { font-size: 17px; font-style: normal; line-height: 1; }

.gesture {
  position: absolute;
  z-index: 3;
  bottom: 5px;
  height: 4px;
  width: 96px;
  border-radius: 99px;
  background: #ffffff38;
  left: calc(50% - 48px);
  pointer-events: none;
}

/* Modal Layer (Fullscreen Player + Sheets) */
.layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.layer:has(dialog[open]) {
  pointer-events: auto;
  background: #050509bd;
  backdrop-filter: blur(6px);
}
dialog[open] {
  position: absolute;
  margin: 0;
  color: var(--text);
  border: 0;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  overflow: auto;
}

/* Fullscreen Kinetic Vinyl Player */
.player[open] {
  inset: 0;
  padding: 20px 22px 24px;
  background:
    radial-gradient(circle at 50% 24%, #ff4d7928, transparent 52%),
    radial-gradient(circle at 80% 70%, #d4ff3318, transparent 48%),
    #0e0e14;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: slideUp 260ms cubic-bezier(.22,1,.36,1);
}
@keyframes slideUp {
  from { transform: translateY(28px); opacity: 0.5; }
  to { transform: none; opacity: 1; }
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.player-source-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--lime);
  letter-spacing: 0.04em;
}

/* Vinyl / Cover Stage */
.turntable {
  position: relative;
  display: grid;
  place-items: center;
  margin: 10px auto;
  width: min(100%, 268px);
  aspect-ratio: 1;
}
.vinyl-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #181822 0 2px, #0d0d13 3px 6px);
  border: 3px solid #2c2c3e;
  box-shadow: 0 22px 54px #000000b8, 0 0 40px #d4ff3314;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-radius 280ms ease;
}
.vinyl-ring.square-mode {
  border-radius: 26px;
  background: none;
  border-color: #ffffff22;
}
.vinyl-ring .cover {
  width: 68%;
  height: 68%;
  border-radius: 50%;
  border: 4px solid #0e0e14;
  transition: width 260ms ease, height 260ms ease, border-radius 260ms ease;
}
.vinyl-ring.square-mode .cover {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 0;
}
.vinyl-spindle {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--phone-bg);
  border: 3px solid var(--lime);
  pointer-events: none;
  transition: opacity 200ms ease;
}
.vinyl-ring.square-mode .vinyl-spindle { opacity: 0; }
.phone.is-playing .vinyl-ring:not(.square-mode) {
  animation: spinDisc 9s linear infinite;
}
.chaos-on .phone.is-playing .vinyl-ring:not(.square-mode) {
  animation-duration: 3.6s;
}
@keyframes spinDisc {
  to { transform: rotate(360deg); }
}

.tap-hint {
  position: absolute;
  bottom: -10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 99px;
}

.now-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.now-row h2 { font-size: 23px; font-weight: 900; letter-spacing: -0.02em; }
.now-row p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.favorite-btn {
  width: 44px;
  height: 44px;
  font-size: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: transform 180ms cubic-bezier(.22,1,.36,1), background 180ms ease;
}
.favorite-btn[aria-pressed="true"] {
  color: var(--pink);
  background: #ff4d7924;
  border-color: #ff4d7966;
  transform: scale(1.1);
}

.seek-wrap { margin-top: 10px; }
.seek {
  width: 100%;
  accent-color: var(--lime);
  cursor: pointer;
}
.times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin-top: 4px;
}

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 0;
}
.previous { transform: scaleX(-1); }
.play-main {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 28px #d4ff3345;
}
.play-main:hover { background: #e1ff66; transform: scale(1.04); }

.player-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.player-tools button {
  min-height: 40px;
  border-radius: 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 750;
  color: var(--text);
}
.player-tools button:hover { border-color: var(--lime); color: var(--lime); }

/* Bottom Sheet */
.sheet[open] {
  inset: auto 0 0;
  padding: 14px 18px 24px;
  border-radius: 26px 26px 0 0;
  max-height: 76%;
  background: #171722;
  border-top: 1px solid #35354a;
  box-shadow: 0 -24px 68px #000000b8;
  animation: slideUp 210ms ease-out;
}
.sheet .header { margin: 0 0 8px; }
.sheet h2 { font-size: 18px; font-weight: 900; }
.sheet-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--border);
  min-height: 48px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 4px;
}
.sheet-action:hover { color: var(--lime); }
.lyrics { padding: 14px 4px; display: grid; gap: 14px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.lyrics .current { color: var(--lime); font-size: 17px; font-weight: 900; }

/* Toast */
.toast {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 126px;
  transform: translateX(-50%) translateY(8px);
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 900;
  border-radius: 99px;
  padding: 9px 16px;
  font-size: 12px;
  width: max-content;
  max-width: 88%;
  box-shadow: 0 10px 26px #00000099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Chaos Mode ("彻底发癫") extra playful flair */
.chaos-on .track:hover {
  transform: rotate(-0.6deg) translateY(-1px);
}
.chaos-on .hero-card {
  border-color: #ff4d7966;
  box-shadow: 0 18px 44px #ff4d7924;
}

@media (max-width: 920px) {
  .workspace {
    display: block;
    padding: 0;
    min-height: 100dvh;
  }
  .showcase, .status > strong, .status-icons, .gesture { display: none; }
  .phone {
    width: min(100%, 480px);
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: auto;
  }
  .status { grid-template-columns: 1fr; justify-items: center; padding: max(6px, env(safe-area-inset-top)) 0 0; }
  .dynamic-island { height: 18px; min-width: 68px; }
  .screen { padding-top: 5px; }
  .dock { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
  .phone.is-playing .island-wave i,
  .phone.is-playing .mini .cover,
  .phone.is-playing .vinyl-ring:not(.square-mode) { animation: none !important; }
}
.server-form { display: grid; gap: 10px; margin-top: 10px; }
.server-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.server-form input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; }
.load-more { width: 100%; margin-top: 10px; }
.queue-actions { display: flex; justify-content: flex-end; gap: 5px; }
.queue-actions .icon-button { min-width: 40px; height: 37px; }
