/* ==========================================================================
   music-ui.css — 萌新 · 音乐台
   正在播放 / 黑胶 / 队列 / 次级搜索
   ========================================================================== */

.music-room { position: relative; }

.music-room-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  overflow: hidden;
  margin: 4px 0 22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  background:
    radial-gradient(620px 300px at 12% 0%, rgba(214, 183, 125, .24), transparent 64%),
    radial-gradient(520px 300px at 88% 100%, rgba(126, 178, 200, .22), transparent 65%),
    linear-gradient(135deg, rgba(255, 252, 244, .82), rgba(232, 244, 238, .72));
  box-shadow: 0 26px 56px -40px rgba(35, 86, 72, .55);
  backdrop-filter: blur(16px) saturate(.84);
  -webkit-backdrop-filter: blur(16px) saturate(.84);
}
[data-theme="dark"] .music-room-hero {
  border-color: rgba(147, 220, 200, .22);
  background:
    radial-gradient(620px 300px at 12% 0%, rgba(214, 183, 125, .16), transparent 64%),
    radial-gradient(520px 300px at 88% 100%, rgba(147, 220, 200, .16), transparent 65%),
    linear-gradient(135deg, #21443a, #1a3730);
}
.music-room-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.music-room-bg i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .4;
}
.music-room-bg i:nth-child(1) { width: 260px; height: 220px; left: 24%; top: -12%; background: rgba(201, 111, 74, .25); }
.music-room-bg i:nth-child(2) { width: 220px; height: 200px; right: 6%; bottom: -14%; background: rgba(126, 178, 200, .22); }
.music-room-bg i:nth-child(3) { width: 180px; height: 160px; left: 6%; bottom: -10%; background: rgba(214, 183, 125, .2); }

.music-now {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.vinyl-wrap {
  flex: none;
  width: 184px;
  height: 184px;
  filter: drop-shadow(0 20px 28px rgba(30, 40, 35, .3));
}
.vinyl {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 38% 30%, #3b3b38, #161715 58%, #0b0c0b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 30px rgba(0, 0, 0, .55);
  display: grid;
  place-items: center;
  animation: music-spin 14s linear infinite;
  animation-play-state: paused;
}
.vinyl.spinning { animation-play-state: running; }
.vinyl::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 5px, rgba(255, 255, 255, .035) 5px 6px);
}
.vinyl span {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #c96f4a, #8f2f22);
  color: #fdf6e8;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 20px;
  box-shadow: 0 0 0 4px rgba(255, 245, 225, .08), 0 6px 16px rgba(0, 0, 0, .28);
}
@keyframes music-spin { to { transform: rotate(360deg); } }

.music-now-copy { min-width: 0; }
.music-eyebrow {
  margin: 0 0 8px;
  color: #a85f43;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
}
.music-now-copy h1 {
  margin: 0 0 4px;
  overflow: hidden;
  color: #243b35;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-now-copy p {
  margin: 0;
  overflow: hidden;
  color: #5d7a70;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-now-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.music-play {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c96f4a, #a85434);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 26px -14px rgba(168, 84, 52, .65);
}
.music-play:hover { filter: brightness(1.05); }
.music-mini {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 148, 133, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  color: #3d6f62;
  font-size: 13px;
  backdrop-filter: blur(10px);
}
.music-mini:hover { background: rgba(255, 255, 255, .72); }
.room-eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-left: 4px; }
.room-eq span {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #8fc9b8, #c96f4a);
  animation: music-eq .9s ease-in-out infinite alternate;
}
.room-eq span:nth-child(1) { height: 30%; animation-delay: -.1s; }
.room-eq span:nth-child(2) { height: 70%; animation-delay: -.35s; }
.room-eq span:nth-child(3) { height: 45%; animation-delay: -.2s; }
.room-eq span:nth-child(4) { height: 85%; animation-delay: -.5s; }
.room-eq span:nth-child(5) { height: 55%; animation-delay: -.15s; }
.room-eq.paused span { animation-play-state: paused; opacity: .35; }
@keyframes music-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.music-queue {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 18px;
  background: rgba(255, 255, 255, .46);
  backdrop-filter: blur(16px) saturate(.82);
  -webkit-backdrop-filter: blur(16px) saturate(.82);
}
.music-queue-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #2f4a41;
  font-size: 13px;
  font-weight: 600;
}
.music-queue-head span:last-child { color: #7b8a80; font-size: 11px; font-weight: 400; }
.music-queue-scroll { overflow-y: auto; max-height: 214px; }
.music-queue-hint { margin: 8px 0 0; color: #8a7f6e; font-size: 10.5px; }
.queue-table { font-size: 12.5px; }
.queue-table th { font-size: 10px; padding: 5px 6px; }
.queue-table td { padding: 5px 6px; }
.queue-table th:nth-child(3), .queue-table td:nth-child(3),
.queue-table th:nth-child(4), .queue-table td:nth-child(4) { display: none; }
.queue-table .pl-play { width: 24px; height: 24px; font-size: 9px; }
.queue-table .pl-del { font-size: 11px; }

.music-catalog { margin-top: 2px; }
.music-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid rgba(96, 148, 133, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .4);
}
.music-tab {
  margin: 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  color: #6f8a81;
  font-size: 13px;
  font-weight: 600;
}
.music-tab:hover { color: #243b35; background: rgba(255, 255, 255, .5); }
.music-tab.active { color: #3d6f62; background: rgba(255, 255, 255, .78); box-shadow: 0 2px 8px rgba(35, 86, 72, .08); }
.music-panel {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 18px;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(16px) saturate(.82);
  -webkit-backdrop-filter: blur(16px) saturate(.82);
}
.music-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.music-panel-title { color: #243b35; font-size: 15px; font-weight: 600; }
.music-panel-sub { color: #8a7f6e; font-size: 11px; }
.music-panel .panel-sub { margin-bottom: 12px; }
.music-account { background: rgba(255, 255, 255, .42); }

[data-theme="dark"] .music-queue,
[data-theme="dark"] .music-panel,
[data-theme="dark"] .music-account,
[data-theme="dark"] .music-tabs {
  border-color: rgba(147, 220, 200, .2);
  background: rgba(33, 68, 58, .6);
}
[data-theme="dark"] .music-now-copy h1 { color: #f0f8f4; }
[data-theme="dark"] .music-now-copy p { color: #b8d3c9; }
[data-theme="dark"] .music-eyebrow { color: #e0b083; }
[data-theme="dark"] .music-mini { background: rgba(33, 68, 58, .6); color: #a9d5c8; border-color: rgba(147, 220, 200, .24); }
[data-theme="dark"] .music-queue-head { color: #e5f1ec; }
[data-theme="dark"] .music-queue-head span:last-child,
[data-theme="dark"] .music-queue-hint,
[data-theme="dark"] .music-panel-sub { color: #9fb8af; }
[data-theme="dark"] .music-panel-title { color: #e5f1ec; }
[data-theme="dark"] .music-tab { color: #a9c7bd; }
[data-theme="dark"] .music-tab.active { color: #93dcc8; background: rgba(33, 68, 58, .9); }

/* 播放器条 */
.player-bar { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.pbtn-play { background: linear-gradient(135deg, #c96f4a, #a85434); }
.pbtn-play:hover { filter: brightness(1.06); }
.disc { background: radial-gradient(circle at 50% 50%, #111 0 22%, #c96f4a 23% 58%, #2a2c28 59%); }

@media (max-width: 900px) {
  .music-room-hero { grid-template-columns: 1fr; padding: 18px; border-radius: 18px; }
  .music-now { gap: 16px; }
  .vinyl-wrap { width: 132px; height: 132px; }
  .vinyl span { width: 50px; height: 50px; font-size: 16px; }
  .music-now-copy h1 { font-size: 26px; }
  .music-queue { margin-top: 2px; }
  .music-queue-scroll { max-height: 190px; }
  .music-panel { padding: 16px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .vinyl, .room-eq span, .music-room-bg i { animation: none; }
}
