:root {
  --purple-deep: #1a0b2e;
  --purple-main: #2d1b4e;
  --pink-soft: #ff8ec6;
  --pink-hot: #ff5fa2;
  --lavender: #c084fc;
  --star: #fff0f8;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--purple-deep);
  color: var(--star);
  font-family: "Noto Serif SC", serif;
  overflow-x: hidden;
}

/* 背景 */
.nebula-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(192, 132, 252, 0.10), transparent 60%),
    radial-gradient(circle at 75% 65%, rgba(255, 95, 162, 0.08), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 142, 198, 0.05), transparent 70%),
    #020105;
  z-index: -3;
}

#starfield {
  display: none;
}

#universe-3d {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

#universe-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* 屏幕切换 */
.screen {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  overflow-y: auto;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* 登录页 */
#auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  padding: 48px 36px;
  background: rgba(10, 4, 20, 0.35);
  backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(255, 95, 162, 0.12);
}

.auth-title {
  font-size: 2rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--pink-soft), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Pacifico", cursive, "Noto Serif SC", serif;
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.auth-box input {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--star);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-box input:focus {
  border-color: var(--pink-soft);
  box-shadow: 0 0 14px rgba(255, 142, 198, 0.3);
}

.auth-box button {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-hot), var(--lavender));
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.auth-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 95, 162, 0.4);
}

.error-msg {
  color: #ff8a9d;
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 1.2em;
}

/* 登录页底部：切换「登录 / 注册」 */
.auth-switch {
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  min-height: 1.2em;
}

.auth-switch a {
  color: var(--pink-soft);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 142, 198, 0.5);
  padding-bottom: 1px;
}

.auth-switch a:hover {
  color: #fff;
}

/* 主页面 */
#main-screen {
  padding: 20px 24px 120px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 14px 22px;
  background: rgba(10, 4, 20, 0.28);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
}

.logo {
  font-family: "Pacifico", cursive;
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--pink-soft), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--star);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* 宇宙中心 */
.universe-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  margin-bottom: 30px;
}

.planet-system {
  position: relative;
  width: 360px;
  height: 360px;
}

/* 行星 */
.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  z-index: 2;
}

.planet-glow {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 142, 198, 0.45) 0%, rgba(192, 132, 252, 0.2) 40%, transparent 70%);
  filter: blur(14px);
  animation: planetGlow 4s ease-in-out infinite;
}

@keyframes planetGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}

.planet-body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 200, 230, 0.55), transparent 40%),
    radial-gradient(circle at 70% 75%, rgba(147, 112, 219, 0.5), transparent 45%),
    linear-gradient(135deg, #ff8ec6 0%, #c084fc 50%, #7c3aed 100%);
  box-shadow:
    inset -12px -12px 30px rgba(0, 0, 0, 0.35),
    inset 12px 12px 30px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(192, 132, 252, 0.4),
    0 0 60px rgba(255, 142, 198, 0.25);
  animation: planetRotate 20s linear infinite;
}

@keyframes planetRotate {
  0% { background-position: 0% 0%, 0% 0%, 0% 0%; }
  100% { background-position: 100% 100%, 100% 100%, 0% 0%; }
}

.planet-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 142, 198, 0.6);
  font-family: "Pacifico", cursive, "Noto Serif SC", serif;
  white-space: nowrap;
  z-index: 3;
}

/* 轨道环 */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ring-1 { width: 170px; height: 170px; animation: spin 12s linear infinite; }
.ring-2 { width: 240px; height: 240px; animation: spin 18s linear infinite reverse; }
.ring-3 { width: 310px; height: 310px; animation: spin 26s linear infinite; }
.ring-4 { width: 360px; height: 360px; animation: spin 34s linear infinite reverse; }

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 轨道粒子 */
.orbit-ring .particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
}

/* 不同大小和颜色的粒子 */
.ring-1 .particle:nth-child(3n+1) { width: 4px; height: 4px; background: #fff0f8; box-shadow: 0 0 8px 1px rgba(255, 240, 248, 0.7); }
.ring-1 .particle:nth-child(3n+2) { width: 5px; height: 5px; background: #ff8ec6; box-shadow: 0 0 10px 2px rgba(255, 142, 198, 0.7); }
.ring-1 .particle:nth-child(3n)   { width: 3px; height: 3px; background: #c084fc; box-shadow: 0 0 8px 1px rgba(192, 132, 252, 0.7); }

.ring-2 .particle:nth-child(3n+1) { width: 5px; height: 5px; background: #feca57; box-shadow: 0 0 10px 2px rgba(254, 202, 87, 0.7); }
.ring-2 .particle:nth-child(3n+2) { width: 4px; height: 4px; background: #fff; box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.7); }
.ring-2 .particle:nth-child(3n)   { width: 3px; height: 3px; background: #ff6b6b; box-shadow: 0 0 8px 1px rgba(255, 107, 107, 0.7); }

.ring-3 .particle:nth-child(3n+1) { width: 4px; height: 4px; background: #c084fc; box-shadow: 0 0 9px 1px rgba(192, 132, 252, 0.7); }
.ring-3 .particle:nth-child(3n+2) { width: 3px; height: 3px; background: #fff0f8; box-shadow: 0 0 7px 1px rgba(255, 240, 248, 0.7); }
.ring-3 .particle:nth-child(3n)   { width: 5px; height: 5px; background: #48dbfb; box-shadow: 0 0 10px 2px rgba(72, 219, 251, 0.7); }

.ring-4 .particle:nth-child(3n+1) { width: 3px; height: 3px; background: #fff; box-shadow: 0 0 7px 1px rgba(255, 255, 255, 0.6); }
.ring-4 .particle:nth-child(3n+2) { width: 4px; height: 4px; background: #ff9ff3; box-shadow: 0 0 9px 1px rgba(255, 159, 243, 0.7); }
.ring-4 .particle:nth-child(3n)   { width: 3px; height: 3px; background: #54a0ff; box-shadow: 0 0 7px 1px rgba(84, 160, 255, 0.7); }

/* 把粒子均匀分布到轨道上 */
.ring-1 .particle:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(85px) rotate(0deg); }
.ring-1 .particle:nth-child(2) { transform: translate(-50%, -50%) rotate(120deg) translateX(85px) rotate(-120deg); }
.ring-1 .particle:nth-child(3) { transform: translate(-50%, -50%) rotate(240deg) translateX(85px) rotate(-240deg); }

.ring-2 .particle:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(120px) rotate(0deg); }
.ring-2 .particle:nth-child(2) { transform: translate(-50%, -50%) rotate(72deg) translateX(120px) rotate(-72deg); }
.ring-2 .particle:nth-child(3) { transform: translate(-50%, -50%) rotate(144deg) translateX(120px) rotate(-144deg); }
.ring-2 .particle:nth-child(4) { transform: translate(-50%, -50%) rotate(216deg) translateX(120px) rotate(-216deg); }
.ring-2 .particle:nth-child(5) { transform: translate(-50%, -50%) rotate(288deg) translateX(120px) rotate(-288deg); }

.ring-3 .particle:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(155px) rotate(0deg); }
.ring-3 .particle:nth-child(2) { transform: translate(-50%, -50%) rotate(51.4deg) translateX(155px) rotate(-51.4deg); }
.ring-3 .particle:nth-child(3) { transform: translate(-50%, -50%) rotate(102.8deg) translateX(155px) rotate(-102.8deg); }
.ring-3 .particle:nth-child(4) { transform: translate(-50%, -50%) rotate(154.2deg) translateX(155px) rotate(-154.2deg); }
.ring-3 .particle:nth-child(5) { transform: translate(-50%, -50%) rotate(205.6deg) translateX(155px) rotate(-205.6deg); }
.ring-3 .particle:nth-child(6) { transform: translate(-50%, -50%) rotate(257deg) translateX(155px) rotate(-257deg); }
.ring-3 .particle:nth-child(7) { transform: translate(-50%, -50%) rotate(308.4deg) translateX(155px) rotate(-308.4deg); }

.ring-4 .particle:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(180px) rotate(0deg); }
.ring-4 .particle:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg) translateX(180px) rotate(-45deg); }
.ring-4 .particle:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg) translateX(180px) rotate(-90deg); }
.ring-4 .particle:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg) translateX(180px) rotate(-135deg); }
.ring-4 .particle:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg) translateX(180px) rotate(-180deg); }
.ring-4 .particle:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg) translateX(180px) rotate(-225deg); }
.ring-4 .particle:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg) translateX(180px) rotate(-270deg); }
.ring-4 .particle:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg) translateX(180px) rotate(-315deg); }

/* 计时器 */
.timers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 50px;
}

.timer-card {
  padding: 26px;
  background: rgba(10, 4, 20, 0.28);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.timer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 142, 198, 0.15);
}

.timer-card.highlight {
  border-color: rgba(255, 142, 198, 0.45);
  box-shadow: 0 0 24px rgba(255, 142, 198, 0.18);
}

.timer-label {
  font-size: 0.95rem;
  color: var(--pink-soft);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.timer-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #fff, var(--pink-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timer-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* 照片墙 */
.photo-section,
.entries-section {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.add-photo-btn {
  font-size: 0.85rem;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--pink-hot), var(--lavender));
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.15s;
  user-select: none;
}

.add-photo-btn:hover {
  transform: scale(1.05);
}

.entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 44px 24px;
  background: rgba(10, 4, 20, 0.28);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.entry-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 142, 198, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 142, 198, 0.15);
}

.entry-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 12px rgba(255, 142, 198, 0.5));
}

.entry-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pink-soft), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.entry-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* 留言板 & 恋爱约定 */
.board-section {
  max-width: 1100px;
  margin: 0 auto 50px;
}

.message-form,
.promise-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding: 18px;
  background: rgba(10, 4, 20, 0.28);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.message-form input,
.message-form textarea,
.promise-form input {
  flex: 1 1 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--star);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  resize: none;
}

.message-form input:focus,
.message-form textarea:focus,
.promise-form input:focus {
  border-color: var(--pink-soft);
  box-shadow: 0 0 12px rgba(255, 142, 198, 0.2);
}

.message-form button,
.promise-form button {
  padding: 12px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-hot), var(--lavender));
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.message-form button:hover,
.promise-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 95, 162, 0.35);
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-item {
  padding: 18px 20px;
  background: rgba(10, 4, 20, 0.28);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  transition: transform 0.15s;
}

.message-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 142, 198, 0.25);
}

.message-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.message-author {
  font-weight: 700;
  color: var(--pink-soft);
}

.message-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.message-del {
  opacity: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s, color 0.2s;
}

.message-item:hover .message-del {
  opacity: 1;
}

.message-del:hover {
  color: #ff8a9d;
}

.message-body {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.promise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(10, 4, 20, 0.28);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: transform 0.15s, border-color 0.2s;
}

.promise-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 142, 198, 0.25);
}

.promise-item.done .promise-text {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.45);
}

.promise-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--pink-soft);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.promise-check:hover {
  background: rgba(255, 142, 198, 0.15);
}

.promise-check.checked {
  background: linear-gradient(135deg, var(--pink-hot), var(--lavender));
}

.promise-check.checked::after {
  content: '✓';
  color: white;
  font-size: 0.8rem;
}

.promise-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
}

.promise-del {
  opacity: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s, color 0.2s;
}

.promise-item:hover .promise-del {
  opacity: 1;
}

.promise-del:hover {
  color: #ff8a9d;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(10, 4, 20, 0.25);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-item:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 18px rgba(255, 142, 198, 0.2);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-item .del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.photo-item:hover .del-btn {
  opacity: 1;
}

.photo-item .del-btn:hover {
  background: rgba(255, 95, 162, 0.8);
}

.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 50px 20px;
  font-size: 0.95rem;
}

/* 音乐播放器 */
.music-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
}

.music-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--pink-hot), var(--lavender));
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255, 95, 162, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: musicBounce 2s ease-in-out infinite;
}

@keyframes musicBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.music-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(255, 95, 162, 0.55);
}

.music-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 320px;
  padding: 22px;
  background: rgba(10, 4, 20, 0.45);
  backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 142, 198, 0.12);
  transform-origin: bottom right;
  animation: panelIn 0.25s ease;
}

@keyframes panelIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.music-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 700;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.album-art {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-hot), var(--lavender));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.track-info {
  flex: 1;
  min-width: 0;
}

#track-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#track-status {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--star);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.controls button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.volume-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.volume-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink-soft);
  cursor: pointer;
}

.playlist {
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.playlist::-webkit-scrollbar {
  width: 5px;
}

.playlist::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.playlist-item {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlist-item:hover, .playlist-item.active {
  background: rgba(255, 142, 198, 0.15);
}

.playlist-item .rm-song {
  opacity: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding: 2px 6px;
}

.playlist-item:hover .rm-song {
  opacity: 1;
}

.playlist-item .rm-song:hover {
  color: #ff8a9d;
}

.upload-music-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-hot), var(--lavender));
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}

.upload-music-btn:hover {
  transform: scale(1.02);
}

/* 模态框 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* 响应式 */
@media (max-width: 640px) {
  .planet-system {
    width: 300px;
    height: 300px;
  }
  .planet {
    width: 110px;
    height: 110px;
  }
  .planet-name { font-size: 1.6rem; }
  .ring-1 { width: 145px; height: 145px; }
  .ring-2 { width: 205px; height: 205px; }
  .ring-3 { width: 265px; height: 265px; }
  .ring-4 { width: 300px; height: 300px; }
  .ring-1 .particle:nth-child(1),
  .ring-1 .particle:nth-child(2),
  .ring-1 .particle:nth-child(3) { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateX(72.5px) rotate(calc(-1 * var(--r, 0deg))); }
  .ring-1 .particle:nth-child(1) { --r: 0deg; }
  .ring-1 .particle:nth-child(2) { --r: 120deg; }
  .ring-1 .particle:nth-child(3) { --r: 240deg; }
  .ring-2 .particle:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(102.5px) rotate(0deg); }
  .ring-2 .particle:nth-child(2) { transform: translate(-50%, -50%) rotate(72deg) translateX(102.5px) rotate(-72deg); }
  .ring-2 .particle:nth-child(3) { transform: translate(-50%, -50%) rotate(144deg) translateX(102.5px) rotate(-144deg); }
  .ring-2 .particle:nth-child(4) { transform: translate(-50%, -50%) rotate(216deg) translateX(102.5px) rotate(-216deg); }
  .ring-2 .particle:nth-child(5) { transform: translate(-50%, -50%) rotate(288deg) translateX(102.5px) rotate(-288deg); }
  .ring-3 .particle:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(132.5px) rotate(0deg); }
  .ring-3 .particle:nth-child(2) { transform: translate(-50%, -50%) rotate(51.4deg) translateX(132.5px) rotate(-51.4deg); }
  .ring-3 .particle:nth-child(3) { transform: translate(-50%, -50%) rotate(102.8deg) translateX(132.5px) rotate(-102.8deg); }
  .ring-3 .particle:nth-child(4) { transform: translate(-50%, -50%) rotate(154.2deg) translateX(132.5px) rotate(-154.2deg); }
  .ring-3 .particle:nth-child(5) { transform: translate(-50%, -50%) rotate(205.6deg) translateX(132.5px) rotate(-205.6deg); }
  .ring-3 .particle:nth-child(6) { transform: translate(-50%, -50%) rotate(257deg) translateX(132.5px) rotate(-257deg); }
  .ring-3 .particle:nth-child(7) { transform: translate(-50%, -50%) rotate(308.4deg) translateX(132.5px) rotate(-308.4deg); }
  .ring-4 .particle:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(150px) rotate(0deg); }
  .ring-4 .particle:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg) translateX(150px) rotate(-45deg); }
  .ring-4 .particle:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg) translateX(150px) rotate(-90deg); }
  .ring-4 .particle:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg) translateX(150px) rotate(-135deg); }
  .ring-4 .particle:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg) translateX(150px) rotate(-180deg); }
  .ring-4 .particle:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg) translateX(150px) rotate(-225deg); }
  .ring-4 .particle:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg) translateX(150px) rotate(-270deg); }
  .ring-4 .particle:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg) translateX(150px) rotate(-315deg); }

  .music-panel {
    width: calc(100vw - 40px);
    right: -12px;
  }
  .timer-value { font-size: 1.45rem; }
}
