/* ---------------------------------------------------------------------------
   wishlist.css — Wishlist view (songs friends suggest adding), shown in the
   desktop modal or the mobile Wishlist tab (see responsive.css).
   --------------------------------------------------------------------------- */

.wishlist-modal {
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}
.wishlist-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  flex: 1;
}
.wl-title { font-size: 15px; font-weight: 700; }

.wl-form { display: flex; flex-direction: column; gap: 8px; }
.wl-form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wl-label { font-size: 13px; color: #a8a8ae; }
.wl-mode { display: inline-flex; background: #1e1e21; border-radius: 6px; padding: 2px; }
.wl-mode button {
  background: none;
  border: none;
  color: #a8a8ae;
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}
.wl-mode button.on { background: #35353a; color: #e8e8ea; }

.wl-line { display: flex; flex-wrap: wrap; gap: 8px; }
.wishlist-view .wl-line input {
  flex: 1 1 140px;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 8px;
}
.wishlist-view .wl-line input.hidden { display: none; }
#wlSubmitBtn {
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  background: color-mix(in srgb, var(--accent-color) 18%, transparent);
  color: color-mix(in srgb, var(--accent-color) 70%, white);
}
@media (hover: hover) { #wlSubmitBtn:hover { background: color-mix(in srgb, var(--accent-color) 28%, transparent); } }
.wl-hint { font-size: 11px; color: #8a8a90; }

.wl-count { font-size: 12px; color: #a8a8ae; padding-top: 4px; border-top: 1px solid #35353a; }
.wl-list { overflow-y: auto; min-height: 0; flex: 1; }
/* Pushes the scrollbar out into the modal's right padding, clear of the row buttons. */
.wishlist-modal .wl-list { margin-right: -14px; padding-right: 14px; }
.wl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid #2e2e33;
}
.wl-item.pending { opacity: 0.5; }
.wl-item-text { flex: 1; min-width: 0; }
.wl-item-title, .wl-item-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-item-title { font-size: 13px; color: #e8e8ea; }
.wl-item-artist { font-size: 12px; color: #a8a8ae; }
.wl-item-artist:empty { display: none; }
.wl-item-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: none;
  color: #8a8a90;
  cursor: pointer;
}
@media (hover: hover) { .wl-item-btn:hover { background: #35353a; color: #e8e8ea; } }

.wishlist-modal .modal-actions { margin-top: 12px; }
