/* Inventory and wishlist: standalone page styles. */
#wishlist-page {
  width: min(1380px, calc(100% - 48px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 46px 0 84px;
}

#wishlist-page > header { margin-bottom: 24px; }
#wishlist-page .inventory-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#wishlist-page #wishlistTitle { margin: 0; color: #19171f; font-size: clamp(34px, 4vw, 50px); line-height: 1; letter-spacing: -.05em; }
#wishlist-page .inventory-add-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px 22px 22px 4px;
  background: #19171f;
  color: #fff;
  font: 800 12px var(--fonte-base, Arial, sans-serif);
  cursor: pointer;
}
#wishlist-page .inventory-add-card-button:hover { background: #19171f; color: #fff; }
#wishlist-page .inventory-add-card-button svg { width: 16px; height: 16px; }

#wishlist-page .wishlist-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid #f0d6c7;
  border-radius: 8px;
  background: #fff0e8;
}
#wishlist-page .wishlist-mode-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px 21px 21px 4px;
  background: transparent;
  color: #5c3a29;
  font: 800 12px var(--fonte-base, Arial, sans-serif);
  cursor: pointer;
}
#wishlist-page .wishlist-mode-tab svg { width: 17px; height: 17px; }
#wishlist-page .wishlist-mode-tab.is-active { background: linear-gradient(110deg, #ff5a00 0 18%, #19171f 18%); color: #fff; }

#wishlist-page .wishlist-library { min-width: 0; }
#wishlist-page .wishlist-search-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
#wishlist-page .wishlist-search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #e4ad8d;
  border-radius: 8px;
  background: #fff;
}
#wishlist-page .wishlist-search-field svg { width: 18px; height: 18px; flex: 0 0 auto; color: #ff5a00; }
#wishlist-page .wishlist-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #19171f; font: 14px var(--fonte-base, Arial, sans-serif); }
#wishlist-page .wishlist-search-field input::placeholder { color: #9d938d; }
#wishlist-page .wishlist-search-status { color: #78665c; font-size: 12px; white-space: nowrap; }

#wishlist-page .wishlist-collection-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}
#wishlist-page .wishlist-collection-icons[hidden] { display: none; }
#wishlist-page .wishlist-collection-filter {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: 8px;
  border: 1px solid #ece4de;
  border-radius: 8px;
  background: #fff;
  color: #3a332e;
  text-align: left;
  cursor: pointer;
}
#wishlist-page .wishlist-collection-filter.is-active { border-color: #ff5a00; background: #fff8f4; }
#wishlist-page .wishlist-collection-all,
#wishlist-page .wishlist-collection-logo { display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border-radius: 6px; background: #fff0e8; color: #ff5a00; }
#wishlist-page .wishlist-collection-logo img { width: 100%; height: 100%; object-fit: contain; }
#wishlist-page .wishlist-collection-filter strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#wishlist-page .wishlist-collection-stats { display: grid; gap: 1px; min-width: 0; color: #8a7d75; font-size: 8.5px; line-height: 1.25; }
#wishlist-page .wishlist-collection-total { display: block; white-space: nowrap; }
#wishlist-page .wishlist-collection-split { display: flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; }
#wishlist-page .wishlist-collection-split b { font-weight: 800; }
#wishlist-page .wishlist-collection-owned { color: #d94700; }
#wishlist-page .wishlist-collection-divider { color: #b1a59e; }
#wishlist-page .wishlist-collection-missing { color: #6f7680; }

#wishlist-page .wishlist-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
#wishlist-page .wishlist-grid-item { position: relative; min-width: 0; }
#wishlist-page .wishlist-grid-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
#wishlist-page .wishlist-grid-card img { display: block; width: 100%; aspect-ratio: .716; object-fit: contain; }
#wishlist-page .wishlist-grid-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding-top: 9px; }
#wishlist-page .wishlist-grid-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #eadbd2;
  border-radius: 5px;
  background: #fff;
  color: #5c3a29;
  font: 800 11px var(--fonte-base, Arial, sans-serif);
  cursor: pointer;
}
#wishlist-page .wishlist-grid-actions button svg { width: 14px; height: 14px; }
#wishlist-page .wishlist-grid-owned.is-active { border-color: #ff5a00; color: #d94700; background: #fff0e8; }
#wishlist-page .wishlist-grid-remove { margin-left: auto; color: #d94700 !important; }
#wishlist-page .wishlist-grid-actions button:disabled { opacity: .6; cursor: wait; }

#wishlist-page .wishlist-card-grid.is-empty { display: block; }
#wishlist-page .wishlist-convite-vazio {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 180px;
  padding: 22px 28px;
  border: 1px solid #ece4de;
  border-radius: 8px;
  background: #fff;
}
#wishlist-page .wishlist-convite-pokemon { flex: 0 0 118px; }
#wishlist-page .wishlist-convite-pokemon img { display: block; width: 118px; height: 118px; object-fit: contain; image-rendering: pixelated; }
#wishlist-page .wishlist-convite-copy h3 { margin: 0 0 6px; color: #19171f; font-size: 20px; }
#wishlist-page .wishlist-convite-copy p { margin: 0; max-width: 470px; color: #78665c; line-height: 1.5; }
#wishlist-page .wishlist-filter-empty { grid-column: 1 / -1; margin: 0; padding: 32px; border: 1px dashed #e4ad8d; border-radius: 8px; color: #78665c; text-align: center; }

#wishlist-page .wishlist-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
#wishlist-page .wishlist-pagination-arrow { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid #eadbd2; border-radius: 50%; background: #fff; color: #19171f; cursor: pointer; }
#wishlist-page .wishlist-pagination-arrow:disabled { opacity: .45; cursor: default; }
#wishlist-page .wishlist-pagination-page-info { color: #78665c; font-size: 12px; font-weight: 700; }

#wishlist-page .albums-library { min-width: 0; }
#wishlist-page .album-search-bar { margin-bottom: 20px; }
#wishlist-page .album-search-field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 15px; border: 1px solid #e4ad8d; border-radius: 8px; background: #fff; }
#wishlist-page .album-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
#wishlist-page .album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 900px) {
  #wishlist-page .wishlist-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  #wishlist-page { width: min(100% - 28px, 560px); padding: 28px 0 96px; }
  #wishlist-page .inventory-page-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  #wishlist-page .inventory-add-card-button { width: 100%; }
  #wishlist-page .wishlist-search-bar { align-items: stretch; flex-direction: column; }
  #wishlist-page .wishlist-search-status { white-space: normal; }
  #wishlist-page .wishlist-collection-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #wishlist-page .wishlist-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  #wishlist-page .wishlist-convite-vazio { align-items: flex-start; padding: 18px; }
  #wishlist-page .wishlist-convite-pokemon { flex-basis: 82px; }
  #wishlist-page .wishlist-convite-pokemon img { width: 82px; height: 82px; }
  #wishlist-page .wishlist-convite-copy h3 { font-size: 16px; }
  #wishlist-page .wishlist-convite-copy p { font-size: 13px; }
  #wishlist-page .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Dark surface variants keep card art untouched while improving page contrast. */
#wishlist-page #wishlistTitle { color: var(--texto-primario); }
#wishlist-page .wishlist-mode-tabs { border-color: var(--borda-cor); background: #26232b; }
#wishlist-page .wishlist-mode-tab { color: var(--texto-secundario); }
#wishlist-page .wishlist-search-field,
#wishlist-page .album-search-field { border-color: var(--borda-cor); background: #1b1920; }
#wishlist-page .wishlist-search-field input,
#wishlist-page .album-search-field input { color: var(--texto-primario); }
#wishlist-page .wishlist-search-field input::placeholder { color: var(--texto-terciario); }
#wishlist-page .wishlist-search-status { color: var(--texto-secundario); }
#wishlist-page .wishlist-collection-filter { border-color: var(--borda-cor); background: #1b1920; color: var(--texto-primario); }
#wishlist-page .wishlist-collection-filter.is-active { border-color: var(--accent); background: #26232b; }
#wishlist-page .wishlist-collection-all,
#wishlist-page .wishlist-collection-logo { background: #26232b; }
#wishlist-page .wishlist-collection-stats { color: var(--texto-terciario); }
#wishlist-page .wishlist-grid-actions button { border-color: var(--borda-cor); background: #26232b; color: var(--texto-primario); }
#wishlist-page .wishlist-grid-owned.is-active { border-color: var(--accent); background: rgba(255,90,0,.14); color: #ff8b4b; }
#wishlist-page .wishlist-convite-vazio { border-color: var(--borda-cor); background: #1b1920; }
#wishlist-page .wishlist-convite-copy h3 { color: var(--texto-primario); }
#wishlist-page .wishlist-convite-copy p,
#wishlist-page .wishlist-pagination-page-info { color: var(--texto-secundario); }
#wishlist-page .wishlist-pagination-arrow { border-color: var(--borda-cor); background: #26232b; color: var(--texto-primario); }
#wishlist-page .wishlist-filter-empty { border-color: var(--borda-forte); color: var(--texto-secundario); }

/* ===== Albums / digital binder (kept with the inventory page) ===== */
#wishlist-page .wishlist-mode-view[hidden],
#wishlist-page .album-binder-view[hidden],
#wishlist-page .albums-library[hidden],
.album-modal-overlay[hidden] { display: none !important; }

#wishlist-page .albums-library { padding: 4px 0 30px; }
#wishlist-page .album-search-bar { margin: 0 0 22px; }
#wishlist-page .album-search-field,
.album-picker-search {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--borda-cor);
  border-radius: 6px;
  background: rgba(255,255,255,.94);
  color: var(--texto-secundario);
}
#wishlist-page .album-search-field:focus-within,
.album-picker-search:focus-within { border-color: var(--accent); outline: 2px solid rgba(var(--accent-rgb),.12); outline-offset: 1px; }
#wishlist-page .album-search-field svg,
.album-picker-search svg { width: 18px; height: 18px; flex: 0 0 auto; }
#wishlist-page .album-search-field input,
.album-picker-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--texto-primario); font: inherit; }

#wishlist-page .album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
#wishlist-page .album-card { min-width: 0; border: 0; background: transparent; text-align: left; }
#wishlist-page .album-card-open {
  display: grid;
  width: 100%;
  grid-template-rows: auto auto auto;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
#wishlist-page .album-card-title {
  overflow: hidden;
  color: var(--texto-primario);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#wishlist-page .album-card-cover {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--borda-cor);
  border-radius: 8px;
  background: #dfe5ea;
  box-shadow: var(--ow-shadow-small, 0 8px 22px rgba(37,48,63,.12));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
#wishlist-page .album-card-open:hover .album-card-cover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 28px rgba(37,48,63,.16); }
#wishlist-page .album-card-cover::after { position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(0deg, rgba(16,22,31,.2), transparent); content: ''; pointer-events: none; }
#wishlist-page .album-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
#wishlist-page .album-card-cover svg { width: 42px; height: 42px; color: var(--texto-terciario); }
#wishlist-page .album-card-meta { color: var(--texto-secundario); font-size: 12px; }
#wishlist-page .album-card-add {
  display: flex;
  min-height: 0;
  aspect-ratio: 16 / 10;
  align-self: end;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px dashed var(--borda-forte);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: var(--texto-secundario);
  cursor: pointer;
}
#wishlist-page .album-card-add:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
#wishlist-page .album-add-circle { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: var(--accent-suave); color: var(--accent); }
#wishlist-page .album-add-circle svg { width: 28px; height: 28px; }
#wishlist-page .album-card-add strong { font-size: 13px; }
#wishlist-page .album-loading,
#wishlist-page .album-empty-message { grid-column: 1 / -1; margin: 18px 0; color: var(--texto-secundario); text-align: center; }

#wishlist-page .album-binder-view { width: min(1120px, 100%); margin: 0 auto; padding: 4px 0 24px; }
#wishlist-page .album-binder-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
#wishlist-page .album-binder-title-row { display: flex; min-width: 0; align-items: center; gap: 12px; }
#wishlist-page .album-binder-title-row h2 { margin: 2px 0 0; overflow: hidden; color: var(--texto-primario); font-size: 28px; font-style: italic; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
#wishlist-page .album-binder-kicker { color: var(--accent); font-size: 10px; font-style: italic; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
#wishlist-page .album-icon-button,
#wishlist-page .album-page-arrow,
#wishlist-page .album-internal-page-arrow { display: grid; place-items: center; padding: 0; border: 1px solid var(--borda-cor); border-radius: 50%; background: #fff; color: var(--texto-primario); cursor: pointer; }
#wishlist-page .album-icon-button,
#wishlist-page .album-page-arrow { width: 42px; height: 42px; }
#wishlist-page .album-icon-button svg,
#wishlist-page .album-page-arrow svg { width: 19px; height: 19px; }
#wishlist-page .album-binder-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
#wishlist-page .album-action-button,
#wishlist-page .album-layout-label { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--borda-cor); border-radius: 6px; background: #fff; color: var(--texto-primario); font: inherit; font-size: 12px; font-weight: 750; }
#wishlist-page button.album-action-button { cursor: pointer; }
#wishlist-page .album-action-button:hover { border-color: var(--accent); }
#wishlist-page .album-action-button svg { width: 16px; height: 16px; }
#wishlist-page .album-action-danger { color: #b72b3c; }
#wishlist-page .album-layout-label select { border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
#wishlist-page .album-action-status { min-height: 20px; margin: 4px 0 12px; color: #21825b; font-size: 12px; font-weight: 700; }
#wishlist-page .album-action-status.is-error { color: #c42d46; }

#wishlist-page .album-page-scroll { width: 100%; overflow-x: auto; padding: 8px 2px 16px; }
#wishlist-page .album-page {
  display: grid;
  width: min(100%, 820px);
  grid-template-columns: repeat(var(--album-columns), minmax(0,1fr));
  gap: 18px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--borda-cor);
  border-radius: 10px;
  background: linear-gradient(145deg,#d8dfe6,#c8d0d8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), var(--ow-shadow-small,0 8px 22px rgba(37,48,63,.12));
}
#wishlist-page .album-page-3 { --album-columns: 3; max-width: 820px; }
#wishlist-page .album-page-4 { --album-columns: 2; max-width: 620px; }
#wishlist-page .album-page-6 { --album-columns: 3; max-width: 820px; }
#wishlist-page .album-slot { position: relative; min-width: 0; aspect-ratio: 63 / 88; overflow: hidden; border: 1px solid rgba(24,32,44,.12); border-radius: 7px; background: rgba(255,255,255,.55); box-shadow: 0 2px 8px rgba(24,32,44,.08); }
#wishlist-page .album-slot.is-filled img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
#wishlist-page .album-slot-add { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--texto-secundario); font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
#wishlist-page .album-slot-add:hover { color: var(--accent); background: rgba(255,255,255,.35); }
#wishlist-page .album-slot-add svg { width: 26px; height: 26px; }
#wishlist-page .album-slot-remove { position: absolute; top: 6px; right: 6px; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(24,32,44,.82); color: #fff; opacity: 0; cursor: pointer; transition: opacity .14s ease, background .14s ease; }
#wishlist-page .album-slot:hover .album-slot-remove,
#wishlist-page .album-slot-remove:focus-visible { opacity: 1; }
#wishlist-page .album-slot-remove:hover { background: var(--accent); }
#wishlist-page .album-slot-remove svg { width: 15px; height: 15px; }
#wishlist-page .album-internal-page-navigation,
#wishlist-page .album-page-navigation { display: flex; align-items: center; justify-content: center; color: var(--texto-secundario); font-size: 12px; font-weight: 800; }
#wishlist-page .album-internal-page-navigation { gap: 10px; margin: 0 0 10px; }
#wishlist-page .album-internal-page-navigation[hidden] { display: none !important; }
#wishlist-page .album-internal-page-arrow { width: 30px; height: 30px; }
#wishlist-page .album-internal-page-arrow svg { width: 15px; height: 15px; }
#wishlist-page .album-internal-page-arrow:disabled,
#wishlist-page .album-page-arrow:disabled { opacity: .35; cursor: default; }
#wishlist-page .album-page-navigation { gap: 18px; margin: 10px 0 4px; }
#wishlist-page .album-navigation-name { display: block; min-width: 150px; max-width: min(420px,55vw); overflow: hidden; color: var(--texto-primario); font-size: 14px; font-weight: 900; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

/* Album dialogs */
.album-modal-overlay { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(20,23,28,.48); }
.album-modal-card { position: relative; width: min(500px,100%); max-height: min(86vh,760px); overflow: auto; padding: 28px; border: 1px solid var(--borda-cor); border-radius: 10px; background: #fff; color: var(--texto-primario); box-shadow: 0 22px 70px rgba(17,19,24,.24); }
.album-modal-card h2 { margin: 0 42px 6px 0; font-size: 24px; }
.album-modal-card p { color: var(--texto-secundario); font-size: 13px; }
.album-modal-close { position: absolute; top: 16px; right: 16px; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--borda-cor); border-radius: 50%; background: #f4f6f8; color: var(--texto-primario); cursor: pointer; }
.album-modal-close svg { width: 18px; height: 18px; }
.album-form-field { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; font-size: 13px; font-weight: 700; }
.album-form-field input { height: 44px; padding: 0 12px; border: 1px solid var(--borda-cor); border-radius: 6px; font: inherit; outline: 0; }
.album-grid-options { display: flex; gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.album-grid-options legend { width: 100%; margin-bottom: 8px; color: var(--texto-secundario); font-size: 12px; font-weight: 800; }
.album-grid-options label { flex: 1; }
.album-grid-options input { position: absolute; opacity: 0; }
.album-grid-options span { display: grid; min-height: 42px; place-items: center; border: 1px solid var(--borda-cor); border-radius: 6px; background: #f8fafb; font-size: 13px; font-weight: 800; cursor: pointer; }
.album-grid-options input:checked + span { border-color: var(--accent); background: var(--accent-suave); color: var(--accent-forte); }
.album-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.album-primary-button,
.album-secondary-button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.album-primary-button { background: var(--accent); color: #fff; }
.album-secondary-button { background: #edf1f5; color: var(--texto-primario); }
.album-modal-status { min-height: 18px; margin: 10px 0 0 !important; color: #c42d46 !important; font-weight: 700; }
.album-card-picker { width: min(920px,100%); }
.album-picker-search { margin: 18px 0; }
.album-owned-cards-grid { display: grid; min-height: 180px; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.album-owned-card { position: relative; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--texto-primario); cursor: pointer; text-align: left; }
.album-owned-card img { display: block; width: 100%; aspect-ratio: 63/88; object-fit: contain; border-radius: 6px; background: #f1f3f5; }
.album-owned-card span { display: block; margin-top: 5px; overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.album-owned-card small { display: block; color: var(--texto-terciario); font-size: 9px; }
.album-owned-card:disabled { opacity: .38; cursor: default; }
.album-owned-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.album-owned-pagination[hidden] { display: none; }
.album-owned-pagination button { padding: 7px 11px; border: 1px solid var(--borda-cor); border-radius: 6px; background: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.album-owned-pagination button:disabled { opacity: .35; cursor: default; }
.album-owned-pagination span { color: var(--texto-secundario); font-size: 11px; font-weight: 800; }

/* Cover crop used by albums. */
.album-cover-crop-overlay.modal-overlay { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,23,28,.52); }
.album-cover-crop-overlay .modal-caixa { width: min(680px,100%); max-height: 90vh; overflow: auto; padding: 24px; border: 1px solid var(--borda-cor); border-radius: 10px; background: #fff; box-shadow: 0 24px 72px rgba(17,19,24,.24); }
.album-cover-crop-overlay .modal-cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.album-cover-crop-overlay .modal-cabecalho h3 { margin: 0; font-size: 22px; }
.album-cover-crop-overlay .modal-fechar { min-height: 36px; padding: 0 12px; border: 1px solid var(--borda-cor); border-radius: 6px; background: #fff; cursor: pointer; }
.album-cover-crop-overlay .crop-instrucao { color: var(--texto-secundario); font-size: 13px; line-height: 1.45; }
.album-cover-crop-overlay .crop-frame-wrap { display: grid; place-items: center; overflow: auto; padding: 12px; border-radius: 8px; background: #edf1f5; }
.album-cover-crop-overlay .crop-stage { position: relative; width: min(560px,100%); aspect-ratio: 16/10; overflow: hidden; border-radius: 7px; background: #cfd6de; touch-action: none; }
.album-cover-crop-overlay .crop-stage img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.album-cover-crop-overlay .crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.42); cursor: move; touch-action: none; }
.album-cover-crop-overlay .crop-handle { position: absolute; right: -7px; bottom: -7px; width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); cursor: nwse-resize; }
.album-cover-crop-overlay .crop-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.album-cover-crop-overlay .btn-mini { min-height: 40px; padding: 0 15px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.album-cover-crop-overlay .btn-mini-secundario { border: 1px solid var(--borda-cor); background: #fff; color: var(--texto-primario); }

@media (max-width: 900px) {
  #wishlist-page .album-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #wishlist-page .album-binder-header { flex-direction: column; }
  #wishlist-page .album-binder-actions { justify-content: flex-start; }
  .album-owned-cards-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  #wishlist-page .album-grid { grid-template-columns: 1fr; gap: 18px; }
  #wishlist-page .album-card-cover,
  #wishlist-page .album-card-add { aspect-ratio: 16/9; }
  #wishlist-page .album-binder-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  #wishlist-page .album-action-button,
  #wishlist-page .album-layout-label { justify-content: center; }
  #wishlist-page .album-page { width: 100%; min-width: 0 !important; gap: 12px; padding: 16px; }
  #wishlist-page .album-slot-remove { opacity: 1; }
  .album-modal-card { padding: 22px 16px; }
  .album-owned-cards-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
}
