/* ============================================================
   TOZTO Music Full Page (dedicated listening page)
   Theme-aware: consumes the site design tokens (--bg-color etc.)
   ============================================================ */
.page-music {
  background: var(--bg-color);
}

.music-full {
  position: relative;
  min-height: calc(100vh - var(--top-nav-height, 76px) - 1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 72px;
  overflow: hidden;
  box-sizing: border-box;
}

/* ---------- ambient background layer ---------- */
.music-full-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% 12%, color-mix(in srgb, var(--accent-color) 16%, transparent), transparent 60%),
    radial-gradient(1000px 640px at 12% 88%, color-mix(in srgb, var(--accent-color) 12%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-color) 96%, black), var(--bg-color));
}

.music-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  animation: musicOrbDrift 26s ease-in-out infinite alternate;
}
.music-orb-a { width: 430px; height: 430px; top: -10%; left: -8%; background: color-mix(in srgb, var(--accent-color) 70%, white); }
.music-orb-b { width: 360px; height: 360px; bottom: -6%; right: -6%; background: color-mix(in srgb, var(--accent-color) 55%, black); animation-delay: -9s; animation-duration: 31s; }
.music-orb-c { width: 220px; height: 220px; top: 34%; right: 16%; background: color-mix(in srgb, var(--front-alt) 80%, var(--accent-color)); opacity: 0.32; animation-delay: -17s; animation-duration: 38s; }
@keyframes musicOrbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, 46px) scale(1.16); }
}

/* decorative equalizer bars (paused while not playing) */
.music-eq {
  position: absolute;
  bottom: 12%;
  width: 6px;
  border-radius: 3px;
  background: var(--accent-color);
  opacity: 0.5;
  animation: musicEqJump 1.1s ease-in-out infinite;
}
.music-eq-1 { left: 10%; height: 42px; animation-delay: 0s; }
.music-eq-2 { left: 15%; height: 64px; animation-delay: -0.4s; }
.music-eq-3 { left: 20%; height: 30px; animation-delay: -0.8s; }
.music-eq-4 { left: 88%; height: 56px; animation-delay: -0.2s; }
.music-eq-5 { left: 93%; height: 34px; animation-delay: -0.6s; }
@keyframes musicEqJump {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
.music-full:not(.is-playing) .music-eq,
.music-full:not(.is-playing) .music-list-eq i {
  animation-play-state: paused !important;
}

/* ---------- stage ---------- */
.music-full-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
}

/* vinyl disc */
.music-disc {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 50% 50%,
      #4a4a4a 0%, #2e2e2e 6%, #171717 14%,
      #262626 15%, #1a1a1a 26%, #222222 27%, #161616 38%,
      #202020 39%, #141414 52%, #1e1e1e 53%, #121212 66%,
      #1c1c1c 67%, #101010 80%, #181818 81%, #0d0d0d 100%);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
  animation: musicDiscSpin 22s linear infinite;
}
.music-disc::before {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 5px);
}
.music-disc-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent-color) 85%, white) 0 62%, color-mix(in srgb, var(--accent-color) 70%, black) 63% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.music-disc-label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.music-full:not(.is-playing) .music-disc {
  animation-play-state: paused;
}
@keyframes musicDiscSpin {
  to { transform: rotate(360deg); }
}

/* info */
.music-full-info { text-align: center; }
.music-full-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-color);
}
.music-full-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-color);
  max-width: 640px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-full-artist {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--muted-color);
}

/* controls */
.music-full-controls {
  display: flex;
  align-items: center;
  gap: 26px;
}
.music-ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-color);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.music-ctl:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}
.music-ctl:active { transform: translateY(0) scale(0.96); }
.music-ctl-main {
  width: 68px;
  height: 68px;
  border: none;
  background: var(--button-color);
  color: var(--button-text);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--button-color) 45%, transparent);
}
.music-ctl-main:hover { box-shadow: 0 18px 44px color-mix(in srgb, var(--button-color) 55%, transparent); }
.music-ico-play, .music-ico-pause { display: block; }

/* progress */
.music-full-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 560px;
}
.music-time {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted-color);
  min-width: 42px;
  text-align: center;
}
#music-seek {
  flex: 1;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  outline: none;
  cursor: pointer;
}
#music-seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2px solid var(--surface-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
#music-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2px solid var(--surface-color);
}

/* playlist */
.music-full-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.music-full-list li {
  border-radius: 14px;
  overflow: hidden;
  transition: background 0.18s ease;
}
.music-full-list li:hover { background: color-mix(in srgb, var(--accent-color) 7%, transparent); }
.music-full-list li.is-active {
  background: color-mix(in srgb, var(--accent-color) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-color) 30%, transparent);
}
.music-full-list button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.music-list-index {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted-color);
  min-width: 26px;
}
.music-list-name {
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-list-artist {
  font-size: 0.8rem;
  color: var(--muted-color);
  max-width: 32%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-list-state {
  width: 18px;
  height: 14px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  flex: none;
}
.music-list-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.music-list-eq i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent-color);
  animation: musicEqJump 0.9s ease-in-out infinite;
}
.music-list-eq i:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-list-eq i:nth-child(2) { height: 14px; animation-delay: -0.35s; }
.music-list-eq i:nth-child(3) { height: 10px; animation-delay: -0.7s; }
.music-full-list li:not(.is-active) .music-list-eq { visibility: hidden; }

/* empty state */
.music-full-empty {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
  color: var(--muted-color);
  font-size: 0.95rem;
}

/* responsive */
@media (max-width: 640px) {
  .music-full { padding: 28px 16px 56px; }
  .music-disc { width: 190px; height: 190px; }
  .music-disc-label { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
  .music-full-title { font-size: 1.45rem; }
  .music-ctl { width: 46px; height: 46px; }
  .music-ctl-main { width: 60px; height: 60px; }
  .music-list-artist { display: none; }
}
