/* -------------------------------------------------
   WildVerse pagination
------------------------------------------------- */

.wv-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 1rem;
  margin: 0;
/*   border-top: 1px solid rgba(142, 255, 255, 0.16); */
/*   background:
    radial-gradient(circle at top, rgba(114, 247, 255, 0.10), transparent 45%),
    rgba(6, 15, 20, 0.72); */
}

.wv-pagination[hidden] {
  display: none;
}

.wv-pagination button,
.wv-pagination select {
  min-height: 42px;
  border: 1px solid rgba(142, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eefcff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0 18px rgba(113, 246, 255, 0.10);
}

.wv-pagination button {
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.wv-pagination button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(142, 255, 255, 0.75);
  background: rgba(118, 246, 255, 0.18);
  box-shadow: 0 0 24px rgba(113, 246, 255, 0.22);
}

.wv-pagination button:active:not(:disabled) {
  transform: translateY(0);
}

.wv-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

#wvPageInfo {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(142, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #aefbff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

#wvPerPage {
  padding: 0.65rem 2.4rem 0.65rem 1rem;
  cursor: pointer;
  color-scheme: dark;
}

#wvPerPage:focus,
.wv-pagination button:focus-visible {
  outline: 2px solid rgba(142, 255, 255, 0.8);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .wv-pagination {
    justify-content: stretch;
    gap: 0.5rem;
  }

  .wv-pagination button,
  #wvPageInfo,
  #wvPerPage {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  #wvPageInfo {
    order: -1;
    flex-basis: 100%;
  }
}
/* Pagination select only */
#wvPerPage {
  appearance: none;
  -webkit-appearance: none;
  min-width: 220px;
  padding: 0.7rem 3rem 0.7rem 1.2rem;
  border: 2px solid rgba(127, 255, 255, 0.8);
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 50%, #eaffff 50%) calc(100% - 1.25rem) 50% / 8px 8px no-repeat,
    linear-gradient(135deg, #eaffff 50%, transparent 50%) calc(100% - 0.8rem) 50% / 8px 8px no-repeat,
    rgba(24, 39, 43, 0.96);
  color: #f2ffff;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow:
    0 0 0 4px rgba(127, 255, 255, 0.12),
    0 0 24px rgba(127, 255, 255, 0.22);
}

#wvPerPage:hover {
  border-color: rgba(127, 255, 255, 1);
  box-shadow:
    0 0 0 5px rgba(127, 255, 255, 0.16),
    0 0 32px rgba(127, 255, 255, 0.32);
}

#wvPerPage:focus {
  outline: none;
  border-color: #8fffff;
  box-shadow:
    0 0 0 5px rgba(127, 255, 255, 0.24),
    0 0 36px rgba(127, 255, 255, 0.42);
}

/* Only the options inside the pagination select */
#wvPerPage option {
  background: #142124;
  color: #eaffff;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
}

/* Selected/highlighted option support varies by browser */
#wvPerPage option:checked {
  background: #6ff7ff;
  color: #061014;
}
.wv-pagination-top {
    position: sticky;
    top: 0;
    z-index: 6;
    margin: 4px 4px 5px;
    padding: 8px;
/*     border: 1px solid rgba(120, 247, 255, 0.14);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(120, 247, 255, 0.08), rgba(255, 79, 216, 0.04)),
    rgba(3, 10, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); */
}
/* =====================================================
   WILDVERSE PAGINATION — DESKTOP ONLY
   Applies only to desktop app layout. Mobile untouched.
===================================================== */

@media (min-width: 1180px) {
  /* Restore full table width */
.wv-library-app__center .wv-pagination, .wv-library-app__center .wv-pagination-top {
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
    /* border-radius: 0 !important; */
    /* border: 1px solid rgba(120, 247, 255, 0.16) !important; */
    /* border-bottom: 1px solid rgba(120, 247, 255, 0.20) !important; */
    /* background: linear-gradient(180deg, rgba(3, 10, 18, 0.98), rgba(3, 10, 18, 0.94)),
      radial-gradient(circle at top, rgba(114, 247, 255, 0.10), transparent 45%) !important; */
    /* box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.045) !important; */
    /* backdrop-filter: blur(12px) !important; */
    -webkit-backdrop-filter: blur(12px) !important;
}

  .wv-library-app__center .wv-pagination-top {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 90 !important;
  }

  .wv-library-app {
    --wv-table-pagination-height: 64px !important;
  }

  .wv-library-app__center .wv-table thead th,
  .wv-library-app__center .wv-table thead th:last-child {
    top: 64px !important;
  }

  /* Icon prev / next only */
  .wv-pagination button {
    position: relative !important;
    width: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
  }

  .wv-pagination button:first-of-type::before {
    content: "‹";
  }

  .wv-pagination button:last-of-type::before {
    content: "›";
  }

  .wv-pagination button:first-of-type,
  .wv-pagination button:last-of-type {
    width: 34px !important;
    min-width: 34px !important;
    height: 42px !important;
    min-height: 42px !important;

    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    display: inline-grid !important;
    place-items: center !important;
    color: #eefcff !important;
  }

  .wv-pagination button:first-of-type::before,
  .wv-pagination button:last-of-type::before {
    display: block !important;
    width: auto !important;
    height: auto !important;

    font-size: 2.2rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    color: #eefcff !important;
    text-shadow: 0 0 14px rgba(120, 247, 255, 0.28);
  }

  .wv-pagination button:first-of-type:hover:not(:disabled),
  .wv-pagination button:last-of-type:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.08) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .wv-pagination button:first-of-type:disabled,
  .wv-pagination button:last-of-type:disabled {
    opacity: 0.25 !important;
  }

  /* Bare page info */
  #wvPageInfo {
    min-height: 42px !important;
    height: 42px !important;

    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #aefbff !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.06em !important;
    line-height: 1 !important;
    text-shadow: 0 0 14px rgba(120, 247, 255, 0.22);
  }

  #wvPageInfo::first-letter {
    text-transform: uppercase;
  }

  /* Simple per-page pill */
  #wvPerPage {
    appearance: none !important;
    -webkit-appearance: none !important;

    min-width: 94px !important;
    max-width: 104px !important;
    height: 32px !important;
    min-height: 32px !important;

    padding: 0 24px 0 10px !important;

    border: 1px solid rgba(174, 251, 255, 0.28) !important;
    border-radius: 999px !important;

    background:
      linear-gradient(45deg, transparent 50%, #aefbff 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
      linear-gradient(135deg, #aefbff 50%, transparent 50%) calc(100% - 10px) 50% / 6px 6px no-repeat,
      transparent !important;

    color: #eefcff !important;
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.01em !important;

    box-shadow: none !important;
    cursor: pointer !important;
  }

  #wvPerPage:hover,
  #wvPerPage:focus {
    border-color: rgba(174, 251, 255, 0.48) !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }

  #wvPerPage option {
    background: #142124 !important;
    color: #eaffff !important;
  }
}
/* Desktop only: reduce pagination bar height */
@media (min-width: 1180px) {
  .wv-library-app__center .wv-pagination,
  .wv-library-app__center .wv-pagination-top {
    min-height: 44px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .wv-pagination button:first-of-type,
  .wv-pagination button:last-of-type {
    height: 30px !important;
    min-height: 30px !important;
  }

  #wvPageInfo {
    height: 30px !important;
    min-height: 30px !important;
    font-size: 0.88rem !important;
  }

  #wvPerPage {
    height: 28px !important;
    min-height: 28px !important;
    font-size: 0.72rem !important;
  }

  .wv-library-app {
    --wv-table-pagination-height: 44px !important;
  }

  .wv-library-app__center .wv-table thead th,
  .wv-library-app__center .wv-table thead th:last-child {
    top: 44px !important;
  }
}
/* Desktop only: pagination arrow alignment fix */
@media (min-width: 1180px) {
  .wv-pagination button:first-of-type,
  .wv-pagination button:last-of-type {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;

    padding: 0 !important;
    margin: 0 !important;

    line-height: 1 !important;
    vertical-align: middle !important;
  }

  .wv-pagination button:first-of-type::before,
  .wv-pagination button:last-of-type::before {
    display: block !important;
    width: 30px !important;
    height: 30px !important;

    line-height: 26px !important;
    text-align: center !important;

    font-size: 2rem !important;
    font-weight: 950 !important;

    transform: translateY(-1px) !important;
  }

  .wv-pagination {
    align-items: center !important;
  }
}