.search-spotlight {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(59, 167, 248, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(243, 93, 127, 0.14), transparent 24%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-soft) 94%, transparent));
  border: 1px solid rgba(23, 32, 51, 0.06);
  box-shadow: var(--shadow);
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.filters .title-field {
  grid-column: 1 / -1;
}

.filters .title-field .form-label {
  font-size: 1rem;
  font-weight: 800;
}

.title-search-input {
  min-height: 68px;
  border-radius: 22px;
  padding-inline: 22px;
  font-size: 1.15rem;
  box-shadow: 0 18px 34px rgba(46, 90, 138, 0.08);
}

.alphabet-browser {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  border: 1px solid rgba(23, 32, 51, 0.06);
}

.alphabet-browser-copy {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.alphabet-browser-copy p {
  margin: 0;
  color: var(--muted);
}

.alphabet-browser-rail,
.alphabet-section-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.alphabet-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.alphabet-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 167, 248, 0.35);
  box-shadow: 0 10px 20px rgba(46, 90, 138, 0.1);
}

.alphabet-chip.is-active {
  color: var(--text);
  background: #fff;
  border-color: rgba(59, 167, 248, 0.5);
  box-shadow: 0 10px 22px rgba(59, 167, 248, 0.14);
}

.alphabet-chip.is-ghost {
  background: color-mix(in srgb, var(--surface-soft) 72%, white);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.results-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.browse-sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.browse-sort-form label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.browse-sort-form .form-select {
  min-width: 190px;
  border-radius: 999px;
  font-weight: 700;
}

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.cardish {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.06);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  box-shadow: 0 18px 40px rgba(46, 90, 138, 0.1);
}

.cardish img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.card-copy {
  display: grid;
  gap: 6px;
  padding: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.card-copy strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.browse-sections {
  display: grid;
  gap: 26px;
}

.browse-section {
  display: grid;
  gap: 14px;
  scroll-margin-top: 110px;
}

.browse-section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.browse-section-header h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.browse-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.results-shell {
  display: grid;
  gap: 18px;
}

.results-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.results-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.results-pagination-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.results-lazy-loader {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 6px;
}

.results-lazy-loader[hidden] {
  display: none;
}

.results-loader-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.results-loader-note.is-error {
  color: #b04762;
}

.results-sentinel {
  width: 100%;
  height: 1px;
}

@media (min-width: 768px) {
  .results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .results {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .results {
    gap: 12px;
  }

  .alphabet-browser {
    padding: 16px 14px;
  }

  .alphabet-chip {
    min-width: 38px;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .results-header-actions,
  .browse-sort-form {
    width: 100%;
  }

  .browse-sort-form .form-select {
    min-width: 0;
    width: 100%;
  }

  .card-copy {
    padding: 12px;
  }

  .card-copy small,
  .card-copy p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .card-copy strong {
    font-size: 0.95rem;
  }
}
