/* ===========================================
   ALBUM VIEW - Single album detail page
   =========================================== */

#album-view {
  padding: 20px;
}

/* Back button - shared styles for both ID and class selectors */
#back-to-albums,
.back-btn {
  margin-bottom: 20px;
  background: transparent;
  border: none;
  color: #eee;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}

#back-to-albums:hover,
.back-btn:hover {
  color: var(--accent1);
}

/* Album Header - cover + details side by side */
.album-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.album-cover-large {
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.album-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}

.album-details .album-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.album-details .album-artist {
  font-size: 16px;
  color: var(--muted);
}

.album-details .album-description,
.album-details .playlist-description {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 500px;
  line-height: 1.5;
  opacity: 0.85;
}

/* Album Actions (Play All, Shuffle buttons) */
.album-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.play-all-btn,
.shuffle-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.play-all-btn {
  background: var(--accent1, #7b2ff7);
  color: #fff;
}

.play-all-btn:hover {
  background: var(--accent2, #f107a3);
  transform: scale(1.05);
}

.shuffle-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shuffle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Track List */
.album-tracks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.album-tracks .track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.album-tracks .track:hover {
  background: rgba(123, 47, 247, 0.15);
}

.album-tracks .track.active-track {
  background: rgba(123, 47, 247, 0.25);
  box-shadow: var(--glow);
}

.album-tracks .track-number {
  font-size: 14px;
  color: var(--muted);
  width: 30px;
  text-align: center;
}

.album-tracks .track-title {
  font-size: 16px;
  color: #fff;
  flex: 1;
  cursor: pointer;
}

.album-tracks .track-title:hover {
  color: var(--accent1, #7b2ff7);
}

.album-tracks .track-artist {
  font-size: 14px;
  color: var(--muted);
  margin: 0 15px;
  min-width: 120px;
}

.album-tracks .track-duration {
  font-size: 14px;
  color: var(--muted);
  min-width: 50px;
  text-align: center;
}

/* Track Action Buttons Container */
.album-tracks .track-actions {
  display: flex;
  gap: 6px;
  margin-left: 12px;
}

/* Track Action Buttons (Share, Buy, Add to Playlist) */
.album-tracks .track-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  cursor: pointer;
  padding: 6px 10px;
  color: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-tracks .track-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.album-tracks .track-btn:hover {
  background: rgba(123, 47, 247, 0.3);
  border-color: var(--accent1, #7b2ff7);
  box-shadow: 0 0 12px rgba(123, 47, 247, 0.5);
}

/* Loading State */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: var(--muted);
  font-size: 16px;
}

/* Error State */
.album-error {
  padding: 40px;
  text-align: center;
}

.album-error p {
  color: var(--muted);
  font-size: 16px;
}
