/* Preview catalog page. Card/grid/pager styles come from category.css. */
.catalog-page .type-lede { max-width: 42rem; }

.catalog-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.catalog-types legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.catalog-types a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  background: #fff;
}
.catalog-types a .type-count {
  color: #595959;
  font-weight: 400;
  font-size: 13px;
}
.catalog-types a:hover { border-color: #111; }
.catalog-types a.on,
.catalog-types a[aria-current="page"] {
  background: #111;
  border-color: #111;
  color: #fff;
}
.catalog-types a.on .type-count,
.catalog-types a[aria-current="page"] .type-count { color: #ddd; }

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
  min-width: 0;
}
.catalog-search {
  display: flex;
  flex: 1 1 220px;
  min-width: 0;
  align-items: center;
  box-sizing: border-box;
  height: 56px;
  min-height: 56px;
  padding: 0 8px 0 18px;
  border: 1px solid #dedfe1;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px #0000000a, 0 1px 2px -1px #0000000a, 0 4px 16px -4px #0000000f;
}
.catalog-search:focus-within {
  border-color: #1111114d;
  box-shadow: 0 0 0 2px #11111126;
}
.catalog-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #111;
  font: 600 14px/1.2 inherit;
  outline: none;
}
.catalog-search button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #595959;
  cursor: pointer;
}
.catalog-search button:hover,
.catalog-search button:focus-visible { color: #111; }

.catalog-tools .show-sort-dd {
  flex: 1 1 220px;
  width: min(100%, 28rem);
  margin: 0;
  min-width: 0;
}

.type-poster-grid .poster-hit:hover .poster-name { text-decoration: underline; }
.type-poster-grid a.type-badge:hover { opacity: .85; }


.catalog-genre {
  flex: 1 1 180px;
  min-width: 0;
  margin: 0;
}
.catalog-genre-select {
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  color: #111;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23595959' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") right 14px center/18px no-repeat;
  border: 1px solid #dedfe1;
  border-radius: 999px;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 40px 0 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 1px #0000000a, 0 1px 2px -1px #0000000a, 0 4px 16px -4px #0000000f;
}
.catalog-genre-select:focus {
  border-color: #1111114d;
  outline: none;
  box-shadow: 0 0 0 2px #11111126;
}
