:root {
  --bg: #edf1ec;
  --bg-warm: #f7f2e9;
  --ink: #17211d;
  --ink-soft: #314039;
  --muted: #738078;
  --panel: rgba(255, 252, 245, 0.94);
  --panel-strong: #fffaf0;
  --panel-dark: #18231f;
  --surface: #f8f4eb;
  --surface-cool: #e9efea;
  --line: rgba(23, 33, 29, 0.12);
  --line-strong: rgba(23, 33, 29, 0.2);
  --accent: #d9653b;
  --accent-strong: #b8492a;
  --accent-soft: rgba(217, 101, 59, 0.13);
  --green: #55715f;
  --green-soft: rgba(85, 113, 95, 0.13);
  --gold: #d7ad5c;
  --shadow: 0 22px 70px rgba(34, 43, 36, 0.16);
  --shadow-soft: 0 14px 34px rgba(34, 43, 36, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(23, 33, 29, 0.035) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(135deg, transparent 75%, rgba(23, 33, 29, 0.035) 75%) 0 0 / 28px 28px,
    linear-gradient(120deg, #eef3ef 0%, #f7f1e6 48%, #e7eee9 100%);
  padding: 24px;
  padding-bottom: 104px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.42)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 42%);
  z-index: -1;
}

.shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 128px);
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(24, 35, 31, 0.98), rgba(31, 44, 39, 0.96)),
    linear-gradient(135deg, rgba(215, 173, 92, 0.16), transparent 34%);
  color: #f7f1e6;
  border-color: rgba(255, 255, 255, 0.12);
}

.brand {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 210px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    linear-gradient(160deg, rgba(85, 113, 95, 0.72), rgba(24, 35, 31, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.brand::before {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 138px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(247, 241, 230, 0.95) 0 10%, transparent 11%),
    repeating-radial-gradient(circle at center, rgba(247, 241, 230, 0.16) 0 9px, rgba(247, 241, 230, 0.04) 10px 18px);
  opacity: 0.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 241, 230, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent-strong) !important;
}

.brand h1 {
  position: relative;
  margin: 18px 0 12px;
  max-width: 6em;
  font-size: 38px;
  line-height: 1.08;
}

.brand p {
  position: relative;
  margin: 0;
  max-width: 24ch;
  color: rgba(247, 241, 230, 0.78);
  font-size: 14px;
  line-height: 1.8;
}

.device-chip {
  position: relative;
  margin-top: 20px;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(247, 241, 230, 0.92);
  font-size: 12px;
}

.device-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section {
  margin-top: 22px;
}

.section-head,
.songs-head,
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head h2,
.section-head h3,
.songs-head h2 {
  margin: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1.25;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sidebar .muted {
  color: rgba(247, 241, 230, 0.58);
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
  padding: 11px 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder {
  color: rgba(49, 64, 57, 0.48);
}

input:focus,
select:focus {
  border-color: rgba(217, 101, 59, 0.55);
  background: #fffdf8;
  box-shadow: 0 0 0 4px rgba(217, 101, 59, 0.12);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 17px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffaf2;
  box-shadow: 0 12px 24px rgba(184, 73, 42, 0.24);
}

.primary-btn:hover {
  box-shadow: 0 16px 30px rgba(184, 73, 42, 0.3);
}

.ghost-btn {
  background: rgba(23, 33, 29, 0.07);
  color: var(--ink);
}

.ghost-btn:hover {
  background: rgba(23, 33, 29, 0.11);
}

.danger-btn {
  background: rgba(217, 101, 59, 0.12);
  color: var(--accent-strong);
}

.playlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.sidebar input {
  background: rgba(255, 255, 255, 0.1);
  color: #fffaf2;
  border-color: rgba(255, 255, 255, 0.13);
}

.sidebar input::placeholder {
  color: rgba(247, 241, 230, 0.48);
}

.sidebar .ghost-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fffaf2;
}

.playlist-list,
.artist-grid,
.song-grid,
.playlist-song-list,
.modal-playlist-list {
  display: grid;
  gap: 12px;
}

.playlist-card {
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fffaf2;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease;
}

.playlist-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}

.playlist-card.active {
  background: linear-gradient(135deg, rgba(217, 101, 59, 0.35), rgba(255, 255, 255, 0.12));
  border-color: rgba(217, 101, 59, 0.58);
}

.playlist-card strong,
.playlist-song strong,
.modal-playlist-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-card strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.playlist-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.playlist-card-main {
  min-width: 0;
  flex: 1;
}

.sidebar-playlist-actions,
.playlist-song-actions,
.song-actions,
.mini-player-controls,
.player-controls,
.fullscreen-controls {
  display: flex;
  align-items: center;
}

.sidebar-playlist-actions,
.playlist-song-actions {
  gap: 8px;
}

.playlist-detail {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-playlist-detail {
  max-height: calc(100vh - 596px);
  min-height: 140px;
  overflow: auto;
}

.sidebar-playlist-detail.empty {
  display: none;
}

.sidebar-playlist-detail::-webkit-scrollbar,
.fullscreen-lyrics::-webkit-scrollbar {
  width: 6px;
}

.sidebar-playlist-detail::-webkit-scrollbar-thumb,
.fullscreen-lyrics::-webkit-scrollbar-thumb {
  background: rgba(247, 241, 230, 0.22);
  border-radius: 999px;
}

.playlist-song {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.icon-btn,
.song-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
}

.icon-btn {
  font-size: 18px;
}

.song-icon-btn {
  font-size: 16px;
}

.main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: stretch;
  min-height: 260px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.82)),
    linear-gradient(135deg, rgba(85, 113, 95, 0.15), rgba(217, 101, 59, 0.12));
}

.hero::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: -88px;
  width: 250px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(23, 33, 29, 0.07) 0 12%, transparent 13%),
    repeating-radial-gradient(circle at center, rgba(23, 33, 29, 0.08) 0 8px, transparent 9px 18px);
}

.hero-copy,
.hero-stat {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  margin: 16px 0 14px;
  max-width: 12em;
  font-size: 50px;
  line-height: 1.08;
}

.hero-copy p {
  margin: 0;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-stat {
  display: grid;
  gap: 14px;
}

.hero-stat > div {
  display: grid;
  align-content: space-between;
  min-height: 96px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.metric strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.workspace {
  min-width: 0;
}

.content-panel {
  padding: 22px;
  background: rgba(255, 252, 245, 0.92);
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-search {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 48px minmax(170px, 1fr) 48px;
}

.toolbar-search input {
  min-width: 0;
  background: #fffdf8;
}

.toolbar-search .icon-btn {
  width: 48px;
  min-width: 48px;
  height: 46px;
}

.browser-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.76fr) minmax(0, 1.24fr);
  gap: 18px;
  align-items: start;
}

.browser-section {
  min-width: 0;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-cool);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.browser-section.songs-browser {
  background: var(--surface);
}

.artist-grid {
  grid-template-columns: 1fr;
}

.artist-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 14px;
  border-radius: 20px;
  color: #f9f4ea;
  background:
    linear-gradient(135deg, rgba(85, 113, 95, 0.96), rgba(24, 35, 31, 0.96)),
    linear-gradient(90deg, rgba(215, 173, 92, 0.18), transparent);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(24, 35, 31, 0.1);
  transition: transform 0.16s ease, box-shadow 0.18s ease;
}

.artist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(24, 35, 31, 0.18);
}

.artist-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 250, 242, 0.92);
  font-size: 18px;
}

.artist-card-content {
  min-width: 0;
}

.artist-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.artist-card span {
  color: rgba(249, 244, 234, 0.64);
  font-size: 12px;
}

.artist-card-meta {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(249, 244, 234, 0.78);
  font-size: 12px;
  white-space: nowrap;
}

.song-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.song-card {
  display: grid;
  gap: 14px;
  min-height: 138px;
  padding: 16px;
  border-radius: 20px;
  background: #fffdf8;
  border: 1px solid rgba(23, 33, 29, 0.09);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.song-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 101, 59, 0.24);
  box-shadow: 0 20px 40px rgba(34, 43, 36, 0.14);
}

.song-card.playing {
  border-color: rgba(217, 101, 59, 0.52);
  background:
    linear-gradient(135deg, rgba(217, 101, 59, 0.12), rgba(255, 253, 248, 0.94)),
    #fffdf8;
}

.song-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.song-meta {
  min-width: 0;
}

.song-meta strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.35;
}

.song-meta span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.song-badge {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 22px;
  line-height: 1;
}

.song-actions {
  justify-content: flex-start;
}

.tiny-btn {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.inline-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-row > * {
  flex: 1;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.pagination span {
  color: var(--muted);
  font-size: 13px;
}

.state {
  padding: 16px;
  border-radius: 18px;
  background: rgba(23, 33, 29, 0.06);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.sidebar .state {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 241, 230, 0.68);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 33, 29, 0.46);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(460px, 100%);
  padding: 22px;
  border-radius: 26px;
  background: #fffaf0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 80px rgba(15, 22, 19, 0.28);
}

.modal-song-preview {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--green-soft);
  font-weight: 900;
}

.modal-playlist-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fffdf8;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 98px;
  z-index: 1000;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(24, 35, 31, 0.94);
  color: #fffaf2;
  box-shadow: 0 18px 42px rgba(15, 22, 19, 0.24);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

audio {
  display: none;
}

.mini-player-bar {
  position: fixed;
  right: 22px;
  bottom: 18px;
  left: 22px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 18px;
  border-radius: 24px;
  background: rgba(24, 35, 31, 0.95);
  color: #fffaf2;
  box-shadow: 0 20px 64px rgba(15, 22, 19, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.18s ease;
}

.mini-player-bar:hover {
  background: rgba(31, 44, 39, 0.97);
}

.mini-player-bar.hidden {
  transform: translateY(calc(100% + 28px));
}

.mini-player-info {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}

.mini-disc,
.fullscreen-disc,
.player-disc {
  border-radius: 50%;
  animation: spin 18s linear infinite;
  animation-play-state: paused;
}

.mini-disc {
  position: relative;
  width: 46px;
  min-width: 46px;
  height: 46px;
  background:
    radial-gradient(circle at center, #f7f1e6 0 12%, transparent 13%),
    repeating-radial-gradient(circle at center, #304239 0 8px, #17211d 9px 16px);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.mini-disc::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--gold);
}

.mini-disc.playing,
.fullscreen-disc.playing,
.player-disc.playing {
  animation-play-state: running;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mini-song-info {
  min-width: 0;
}

.mini-song-title,
.mini-song-artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-song-title {
  font-size: 15px;
  font-weight: 900;
}

.mini-song-artist {
  margin-top: 2px;
  color: rgba(255, 250, 242, 0.58);
  font-size: 12px;
}

.mini-player-controls {
  gap: 8px;
}

.mini-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fffaf2;
  font-size: 15px;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mini-progress {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.mini-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: inherit;
  transition: width 0.1s linear;
}

.fullscreen-player {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
}

.fullscreen-player.active {
  display: flex;
}

.fullscreen-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(12, 18, 16, 0.985), rgba(26, 36, 31, 0.96)),
    linear-gradient(135deg, rgba(217, 101, 59, 0.22), rgba(85, 113, 95, 0.12));
  backdrop-filter: blur(28px) saturate(70%);
  -webkit-backdrop-filter: blur(28px) saturate(70%);
  overflow: hidden;
}

.fullscreen-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 18, 16, 0.28), rgba(12, 18, 16, 0.44)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%) 0 0 / 32px 32px,
    linear-gradient(135deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%) 0 0 / 32px 32px;
}

/* 星空粒子 */
.stars-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.star::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  border-radius: 50%;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

/* 流星效果 */
/* 极光效果 */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(85, 113, 95, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(217, 101, 59, 0.5) 0%, transparent 50%);
  animation: aurora-shift 8s ease-in-out infinite;
}

@keyframes aurora-shift {
  0%, 100% {
    transform: translateX(0) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translateX(20px) scale(1.05);
    opacity: 0.25;
  }
}

/* 光晕效果 */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: float-orb 6s ease-in-out infinite;
}

.glow-orb-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  background: radial-gradient(circle, rgba(217, 101, 59, 0.4) 0%, transparent 70%);
  animation-delay: 0s;
}

.glow-orb-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  background: radial-gradient(circle, rgba(85, 113, 95, 0.5) 0%, transparent 70%);
  animation-delay: -2s;
}

.glow-orb-3 {
  width: 180px;
  height: 180px;
  bottom: 20%;
  left: 30%;
  background: radial-gradient(circle, rgba(215, 173, 92, 0.3) 0%, transparent 70%);
  animation-delay: -4s;
}

@keyframes float-orb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(15px, -20px) scale(1.1);
  }
  66% {
    transform: translate(-10px, 10px) scale(0.95);
  }
}

.fullscreen-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  padding: 22px 42px 34px;
  color: #fffaf2;
}

.fullscreen-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
}

.fullscreen-close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fffaf2;
  font-size: 20px;
}

.fullscreen-titlebar {
  min-width: 0;
  text-align: center;
}

.fullscreen-header-spacer {
  width: 46px;
  height: 46px;
}

.fullscreen-now-playing {
  color: rgba(255, 250, 242, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fullscreen-from {
  color: rgba(255, 250, 242, 0.54);
  font-size: 13px;
}

.fullscreen-main {
  display: grid;
  grid-template-columns: minmax(230px, 360px) minmax(320px, 600px);
  align-items: center;
  justify-content: center;
  gap: 52px;
  flex: 1;
  min-height: 0;
}

.fullscreen-disc-container {
  display: grid;
  place-items: center;
}

.fullscreen-disc {
  position: relative;
  width: min(32vw, 330px);
  min-width: 250px;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, #f7f1e6 0 9%, #718476 10% 19%, transparent 20%),
    repeating-radial-gradient(circle at center, #2f453b 0 14px, #17211d 15px 28px);
  box-shadow:
    inset 0 0 0 18px rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.34);
  transition: box-shadow 0.5s ease;
}

/* 圆环发光环 */
.fullscreen-disc::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(217, 101, 59, 0.3) 60deg,
    transparent 120deg,
    rgba(215, 173, 92, 0.2) 180deg,
    transparent 240deg,
    rgba(85, 113, 95, 0.3) 300deg,
    transparent 360deg
  );
  animation: disc-glow-rotate 4s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fullscreen-disc.playing::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes disc-glow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 圆环脉冲光晕 */
.fullscreen-disc::after {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 101, 59, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: disc-pulse 2s ease-in-out infinite;
  animation-play-state: paused;
}

.fullscreen-disc.playing::after {
  opacity: 1;
  animation-play-state: running;
}

@keyframes disc-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.6;
  }
}

/* 播放时增强阴影 */
.fullscreen-disc.playing {
  box-shadow:
    inset 0 0 0 18px rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.34),
    0 0 60px rgba(217, 101, 59, 0.2),
    0 0 120px rgba(217, 101, 59, 0.1);
}

/* 中心唱片装饰 */
.fullscreen-disc-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}

.fullscreen-disc-inner::before {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #2a3d34 0%, #1a2a23 100%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fullscreen-disc-inner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12%;
  height: 12%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(215, 173, 92, 0.5);
}

.fullscreen-lyrics-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: min(62vh, 680px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fullscreen-lyrics {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  scroll-behavior: smooth;
}

.fullscreen-lyrics-content {
  padding: 8px;
}

.fullscreen-lyrics-line {
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255, 250, 242, 0.52);
  font-size: 17px;
  line-height: 1.7;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.fullscreen-lyrics-line.active {
  background: rgba(217, 101, 59, 0.34);
  color: #fffaf2;
  font-weight: 900;
  transform: translateX(4px);
}

.fullscreen-song-info {
  padding: 20px 0 14px;
  text-align: center;
}

.fullscreen-song-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.fullscreen-song-artist {
  margin: 8px 0 0;
  color: rgba(255, 250, 242, 0.62);
}

.fullscreen-progress {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fullscreen-progress-bar {
  flex: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.fullscreen-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width 0.1s linear;
}

.fullscreen-time {
  min-width: 45px;
  color: rgba(255, 250, 242, 0.64);
  font-size: 13px;
}

.fullscreen-controls {
  justify-content: center;
  gap: 18px;
  padding: 22px 0 6px;
}

.fullscreen-btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fffaf2;
  font-size: 20px;
}

.fullscreen-btn.primary {
  width: 74px;
  height: 74px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 38px rgba(184, 73, 42, 0.36);
  font-size: 27px;
}

/* Loading遮罩 */
.fullscreen-loading {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(12, 18, 16, 0.6);
  backdrop-filter: blur(4px);
}

.fullscreen-loading.active {
  display: grid;
}

.fullscreen-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.player-panel,
.player-disc,
.progress-track,
.progress-fill,
.player-time,
.player-btn,
.player-queue,
.queue-item {
  /* Kept for older markup variants that may still be cached. */
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .sidebar-playlist-detail {
    max-height: 360px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    max-width: 14em;
    font-size: 42px;
  }

  .hero-stat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    padding: 16px;
    padding-bottom: 98px;
  }

  .browser-layout,
  .fullscreen-main {
    grid-template-columns: 1fr;
  }

  .toolbar-search {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .fullscreen-main {
    gap: 24px;
  }

  .fullscreen-disc {
    width: min(52vw, 260px);
    min-width: 210px;
  }

  .fullscreen-lyrics-panel {
    height: min(44vh, 380px);
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .hero,
  .content-panel,
  .sidebar {
    padding: 16px;
    border-radius: 24px;
  }

  .brand {
    min-height: 190px;
    padding: 20px;
  }

  .brand h1 {
    font-size: 32px;
  }

  .hero-copy h2 {
    font-size: 32px;
  }

  .hero-stat {
    grid-template-columns: 1fr;
  }

  .metric strong {
    font-size: 24px;
  }

  .playlist-form {
    grid-template-columns: 1fr;
  }

  .artist-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .artist-card-meta {
    grid-column: 2;
    justify-self: start;
  }

  .song-grid {
    grid-template-columns: 1fr;
  }

  .mini-player-bar {
    right: 12px;
    bottom: 12px;
    left: 12px;
    height: 68px;
    padding: 0 12px;
  }

  .mini-btn {
    width: 38px;
    height: 38px;
  }

  .fullscreen-content {
    padding: 16px 18px 28px;
  }

  .fullscreen-song-title {
    font-size: 24px;
  }

  .fullscreen-lyrics-panel {
    height: 38vh;
    min-height: 240px;
  }

  .fullscreen-btn {
    width: 50px;
    height: 50px;
  }

  .fullscreen-btn.primary {
    width: 66px;
    height: 66px;
  }
}
