/* The full search results: the field across the top of the window, the type
   filters with their counts down the left, and the results grouped by type
   on the right. Typing reloads the results frame; the filters swap the stage. */

.pitch-site .search-page__field {
  border-block-end: 1px solid var(--color-border-subtle);
  padding: 0 clamp(16px, 3vw, 24px) 16px;
}

.pitch-site .search-page .stage-search__input {
  backdrop-filter: none;
  background: var(--ps-paper-raised);
  border: 2px solid var(--ps-ink);
  border-radius: 10px;
  box-shadow: none;
  color: var(--ps-ink);
  font-size: 18px;
  height: 50px;
  padding: 0 16px;
}

.pitch-site .search-page .stage-search__input::placeholder {
  color: var(--ps-ink-soft);
}

.pitch-site .search-page .stage-search__input:focus {
  border-color: var(--ps-ink);
}

.pitch-site .search-page__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.pitch-site .search-page__filters {
  border-inline-end: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 12px;
}

.pitch-site .search-page__facets {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pitch-site .search-page__facet {
  border-radius: 6px;
  color: var(--ps-ink);
  display: flex;
  font-size: 14px;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 10px;
  text-decoration: none;
}

.pitch-site .search-page__facet:hover {
  background: var(--ps-paper-shade);
}

.pitch-site .search-page__facet[aria-current="page"] {
  background: var(--ps-yellow);
  font-weight: 600;
}

.pitch-site .search-page__count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
}

.pitch-site .search-page__keys {
  color: var(--ps-ink-soft);
  font-size: 12px;
  line-height: 1.5;
  margin: auto 0 0;
  padding: 0 10px;
}

.pitch-site .search-page__results {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px clamp(16px, 3vw, 24px);
}

.pitch-site .search-page__total {
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 10px 0 0;
}

.pitch-site .search-page__group {
  padding-block: 10px;
}

.pitch-site .search-page__group-head {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-block-end: 6px;
}

.pitch-site .search-page__heading {
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.pitch-site .search-page__more {
  color: var(--ps-red);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pitch-site .search-page__more:hover {
  text-decoration: underline;
}

.pitch-site .search-page__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pitch-site .search-page__row {
  align-items: center;
  border-block-end: 1px solid rgba(14, 17, 17, 0.08);
  display: flex;
  gap: 8px;
}

.pitch-site .search-page__link {
  align-items: center;
  border-radius: 8px;
  color: var(--ps-ink);
  display: flex;
  flex: 1;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
  text-decoration: none;
}

.pitch-site .search-page__link:hover,
.pitch-site .search-page__link.is-picked {
  background: color-mix(in srgb, var(--ps-yellow) 28%, var(--ps-paper-raised));
}

.pitch-site .search-page__name {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.pitch-site .search-page__title,
.pitch-site .search-page__detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-site .search-page__title {
  font-size: 15px;
}

.pitch-site .search-page__detail {
  color: var(--ps-ink-soft);
  font-size: 13px;
}

.pitch-site .search-page__meta {
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-inline-start: auto;
  white-space: nowrap;
}

.pitch-site .search-page__tile {
  background: var(--ps-paper-raised);
  border: 2px solid var(--ps-ink);
  border-radius: 6px;
  color: var(--ps-ink);
  display: grid;
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  height: 34px;
  place-items: center;
  width: 34px;
}

.pitch-site .search-page__tile--played,
.pitch-site .search-page__tile--ahead {
  background: var(--ps-turf);
  color: var(--ps-cream);
}

.pitch-site .search-page__tile--live {
  background: var(--ps-red);
  color: var(--ps-cream);
  font-size: 12px;
  letter-spacing: -0.04em;
}

.pitch-site :is(.search-page__empty, .search-page__hint, .search-page__capped) {
  color: var(--ps-ink-soft);
  font-size: 14px;
  margin: 12px 0 0;
}

.pitch-site .search-page__hint {
  padding: 16px clamp(16px, 3vw, 24px);
}

@media (max-width: 50rem) {
  .pitch-site .search-page__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pitch-site .search-page__filters {
    border-block-end: 1px solid var(--color-border-subtle);
    border-inline-end: 0;
  }

  .pitch-site .search-page__facets {
    flex-flow: row wrap;
  }

  .pitch-site .search-page__keys {
    display: none;
  }
}

/* A player result carries the button that adds him to the head to head. On
   the page it shows on the row in use; the dropdown and the palette have no
   room for it, so there only Cmd+Enter presses it. */
.pitch-site .search-compare__form {
  flex: none;
}

.pitch-site .stage-search__item > .search-compare__form {
  display: none;
}

.pitch-site .search-compare {
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  padding: 2px 8px;
  white-space: nowrap;
}

.pitch-site .search-page__row:is(:hover, :focus-within) .search-compare,
.pitch-site .is-picked + .search-compare__form .search-compare {
  opacity: 1;
}

@media (hover: none) {
  .pitch-site .search-compare {
    opacity: 1;
  }
}
