.library-pager-hidden {
  display: none !important;
}

.library-page-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
  padding: 12px;
  background: #fff8eb;
  border: 1px solid rgba(244, 191, 67, 0.42);
  border-radius: 8px;
}

.library-page-categories[hidden] {
  display: none !important;
}

.library-page-categories button,
.library-pager button,
.library-search-button {
  min-height: 38px;
  color: #211427;
  font: inherit;
  font-weight: 850;
  background: #fff;
  border: 1px solid rgba(124, 52, 127, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.library-page-categories button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.library-page-categories button.active,
.library-pager button.active {
  background: linear-gradient(135deg, #ffe08c, #f4bf43);
  border-color: rgba(231, 171, 47, 0.72);
}

.library-page-categories small {
  color: #6f6173;
  font-size: 11px;
}

.library-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  background: #fffaf3;
  border: 1px solid rgba(124, 52, 127, 0.14);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(75, 23, 105, 0.07);
}

.library-pager button {
  padding: 0 14px;
}

.library-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.library-pager-info {
  color: #6f6173;
  font-size: 13px;
  font-weight: 850;
}

.library-pager-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.library-pager-pages button {
  min-width: 38px;
  padding: 0 10px;
}

.library-pager-gap {
  color: #8a778d;
  font-weight: 900;
}

.search-bar .library-search-button {
  flex: none;
  min-height: 34px;
  padding: 0 12px;
  color: #211427;
  background: linear-gradient(135deg, #ffe08c, #f4bf43);
  border-color: rgba(255, 232, 175, 0.82);
}

@media (max-width: 880px) {
  .library-page-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .library-page-categories::-webkit-scrollbar {
    display: none;
  }

  .library-page-categories button {
    flex: 0 0 auto;
  }

  .library-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .library-pager-pages {
    justify-content: center;
    flex-wrap: wrap;
  }

  .library-pager button {
    min-height: 42px;
  }
}

@media (max-width: 620px) {
  .search-bar .library-search-button {
    width: auto;
    padding-inline: 10px;
  }
}
