/* ===== FETCH ALBUMS ===== */
/* Sits on the Works row (.author-works-header, cards.css) on both breakpoints — used to live up in
   the header instead, with a separate mobile-only copy down here to dodge an overlap with the
   genre/website line once flex-wrap kicked in on mobile; per direct follow-up, the header copy is
   gone now and this is the only one, desktop and mobile alike. */
.btn-fetch-albums {
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-fetch-albums:hover,
.btn-fetch-albums:active {
  background: #fff;
  color: var(--primary);
}

.fetch-albums-modal {
  width: 480px;
  max-width: 95vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.fetch-albums-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.fetch-albums-filter-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.fetch-albums-filter-check input {
  accent-color: var(--primary);
  cursor: pointer;
}

.fetch-albums-toggle {
  display: flex;
  gap: 4px;
  background: var(--hover-bg);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}
.fetch-toggle-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.fetch-toggle-btn.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.fetch-albums-status {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0 8px;
  flex-shrink: 0;
}
.fetch-select-all-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  padding: 0 0 0 8px;
  font-weight: 500;
}
.fetch-select-all-btn:hover {
  text-decoration: underline;
}

.fetch-albums-status.fetch-albums-error {
  color: #e53e3e;
}
.fetch-albums-retry-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  padding: 0 0 0 8px;
  font-weight: 500;
}
.fetch-albums-retry-btn:hover {
  text-decoration: underline;
}
.fetch-albums-loading::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fetch-albums-list {
  overflow-y: auto;
  flex: 1;
  margin: 0 -4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fetch-album-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
}
.fetch-album-row:hover {
  background: var(--hover-bg);
}
.fetch-album-row.fetch-album-saved {
  opacity: 0.45;
  cursor: default;
}

.fetch-album-check {
  flex-shrink: 0;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.fetch-album-art {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.fetch-album-art-placeholder {
  background: var(--hover-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
}

.fetch-album-info {
  flex: 1;
  min-width: 0;
}
.fetch-album-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fetch-album-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fetch-album-saved-tag {
  font-size: 10px;
  color: var(--primary);
  font-weight: 500;
  display: inline-block;
  margin-top: 2px;
}
