/* album.css — Album player + mini-player styles */

/* ── Album inline container ── */

.album-inline-container {
  margin-top: 8px;
}

.album-inline {
  padding: 0 4px;
}

/* ── Cover art (prominent, centered) ── */

.album-cover-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.album-cover-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.album-cover-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Album header ── */

.album-header {
  text-align: center;
  margin-bottom: 20px;
}

.album-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text, rgba(255,255,255,0.92));
  margin-bottom: 4px;
}

.album-desc {
  font-size: 13px;
  color: var(--muted, rgba(255,255,255,0.5));
  line-height: 1.5;
  margin-bottom: 4px;
}

.album-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ── Tracklist ── */

.album-tracklist {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.album-track-card {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.track-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  cursor: pointer;
  transition: background 0.1s;
}
.track-row:active {
  background: rgba(255,255,255,0.04);
}

.track-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.track-play-btn:hover { background: rgba(255,255,255,0.18); }
.track-play-btn.playing { background: var(--accent, rgba(90,122,196,0.4)); }

.track-number {
  width: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

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

.track-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text, rgba(255,255,255,0.88));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.track-played-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.track-played-dot.played {
  background: var(--accent, rgba(90,122,196,0.7));
}

/* Track body (expanded — echo strip) */
.track-body {
  display: none;
  padding: 0 8px 14px;
}

.album-track-card.expanded .track-body {
  display: block;
}

/* ── Album block card (in canvas page) ── */

.album-block-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: rgba(255,255,255,0.02);
}
.album-block-card:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}

.album-block-art {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.album-block-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.album-block-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text, rgba(255,255,255,0.88));
  margin-bottom: 4px;
}

.album-block-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ── Persistent album mini-player ── */

#albumMiniPlayer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9988;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#albumMiniPlayer.active {
  transform: translateY(0);
}

#albumMiniArt {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

#albumMiniInfo {
  flex: 1;
  min-width: 0;
}

#albumMiniTitle {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#albumMiniAlbum {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#albumMiniControls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

#albumMiniControls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 50%;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: background 0.15s;
}
#albumMiniControls button:hover {
  background: rgba(255,255,255,0.12);
}

#albumMiniPlayPause {
  font-size: 18px !important;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#albumMiniEchoes {
  display: none;
}

#albumMiniProgress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
}

#albumMiniProgressBar {
  height: 100%;
  background: rgba(255,255,255,0.6);
  width: 0%;
  transition: width 0.5s linear;
}

/* ── Responsive ── */

@media (min-width: 768px) {
  .album-cover-img { max-width: 360px; }
  #albumMiniEchoes { display: flex; gap: 4px; flex-shrink: 0; }
  #albumMiniEchoes .echo-btn { font-size: 14px; padding: 3px 6px; }
}
