/* Chebter One (Remastered) — album page. Owned by orchestrator. */

.album-body {
  min-height: 100svh;
  background:
    radial-gradient(60vw 60vw at 80% -10%, rgba(255, 158, 77, 0.09), transparent 60%),
    radial-gradient(50vw 50vw at -10% 110%, rgba(200, 107, 152, 0.08), transparent 60%),
    var(--bg);
}

.album-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.album-stage { padding: calc(var(--nav-h) + 1rem) 0 7rem; }

/* ---------- Hero: vinyl + title ---------- */
.album-hero {
  width: min(1080px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  min-height: min(62svh, 560px);
}
.album-title { font-size: clamp(2.4rem, 7vw, 5.4rem); }
.album-actions { display: flex; gap: 0.8rem; margin-top: 1.6rem; flex-wrap: wrap; }

.vinyl {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 14px #121016, 0 0 0 15px rgba(242, 239, 233, 0.08), 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #121016;
}
.vinyl img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.vinyl::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 6px, rgba(0, 0, 0, 0.16) 6px 7px);
  pointer-events: none;
}
.vinyl-hole {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(242, 239, 233, 0.25);
}
.vinyl.spinning { animation: spin 9s linear infinite; }
.vinyl.spinning.paused { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vinyl.spinning { animation: none; } }

/* ---------- Track list ---------- */
.tracklist-wrap { width: min(760px, 92%); margin: 3.5rem auto 0; }
.tracklist { list-style: none; }
.track {
  display: flex; align-items: center; gap: 1.1rem;
  width: 100%;
  background: transparent;
  border: none; border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 500 1.02rem var(--font-body);
  padding: 0.95rem 0.4rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, padding-left 0.2s ease;
}
.track:hover { background: rgba(242, 239, 233, 0.04); padding-left: 0.8rem; }
.track-num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem;
  color: var(--ink-soft);
  width: 2ch; flex: none;
}
.track-name { flex: 1; }
.track.current { color: var(--accent); }
.track.current .track-num { color: var(--accent); }

.track-eq { display: none; gap: 3px; align-items: flex-end; height: 14px; flex: none; }
.track.current .track-eq { display: inline-flex; }
.track-eq i {
  width: 3px; background: var(--accent); border-radius: 2px;
  height: 30%;
}
.is-playing .track.current .track-eq i { animation: eq 1s ease-in-out infinite; }
.is-playing .track.current .track-eq i:nth-child(2) { animation-delay: 0.25s; }
.is-playing .track.current .track-eq i:nth-child(3) { animation-delay: 0.5s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ---------- Player bar ---------- */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(14, 12, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.pb-btn {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  border-radius: 50%;
  width: 42px; height: 42px; flex: none;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.pb-btn:hover { border-color: var(--ink); }
.pb-play { background: var(--ink); color: var(--bg); border-color: var(--ink); width: 48px; height: 48px; }
.pb-info { flex: 1; min-width: 0; }
.pb-title {
  display: block;
  font: 600 0.9rem var(--font-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}
.pb-seek { display: flex; align-items: center; gap: 0.6rem; }
.pb-time { font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; flex: none; }

#seek {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 3px; border-radius: 2px;
  background: rgba(242, 239, 233, 0.2);
  outline: none;
}
#seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); cursor: pointer;
}
#seek::-moz-range-thumb {
  width: 12px; height: 12px; border: none; border-radius: 50%;
  background: var(--ink); cursor: pointer;
}

/* ---------- Listen mode ---------- */
.listen-overlay {
  position: fixed; inset: 0; z-index: 100;
  background:
    radial-gradient(70vw 70vw at 50% 120%, rgba(255, 158, 77, 0.12), transparent 60%),
    var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  padding: 2rem;
  text-align: center;
}
.lo-album {
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft);
}
.lo-title {
  font-size: clamp(2.2rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.lo-controls { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.lo-controls .pb-play { width: 64px; height: 64px; font-size: 1.4rem; }
.lo-exit { position: absolute; top: 1.2rem; right: 1.2rem; }

.lo-eq { display: flex; gap: 5px; align-items: flex-end; height: 34px; }
.lo-eq span { width: 5px; background: var(--accent); border-radius: 3px; height: 30%; }
.is-playing .lo-eq span { animation: eq 1.1s ease-in-out infinite; }
.is-playing .lo-eq span:nth-child(2) { animation-delay: 0.15s; }
.is-playing .lo-eq span:nth-child(3) { animation-delay: 0.3s; }
.is-playing .lo-eq span:nth-child(4) { animation-delay: 0.45s; }
.is-playing .lo-eq span:nth-child(5) { animation-delay: 0.6s; }
@media (prefers-reduced-motion: reduce) {
  .is-playing .lo-eq span, .is-playing .track.current .track-eq i { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .album-hero { grid-template-columns: 1fr; text-align: center; }
  .vinyl { width: min(58vw, 300px); margin: 0 auto; }
  .album-actions { justify-content: center; }
  .pb-btn:not(.pb-play) { width: 38px; height: 38px; }
}
