/* IMDb-inspired guest credits in a single rail below the listening shelf. */
@layer pages {
  .guest-discovery {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-block: 0.5rem;
    scrollbar-width: thin;
  }
  .guest-discovery__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 0 0 auto;
    max-inline-size: 75%;
    min-block-size: max(72px, 4rem);
  }
  .guest-discovery h2 {
    font-size: var(--fs-20);
    line-height: 1.4;
    margin: 0;
  }
  .guest-discovery__search {
    min-block-size: 44px;
    white-space: normal;
    max-inline-size: 100%;
  }
  .guest-discovery__people {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .guest-discovery__people > li {
    display: flex;
    inline-size: min(11rem, 60vw);
  }
  .guest-discovery__person {
    display: flex;
    flex: 1;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
  }
  .guest-discovery__person .person-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }
  .guest-discovery__person strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }
  @media (hover: hover) and (pointer: fine) {
    .guest-discovery__person:hover {
      background: var(--surface-hover);
    }
  }
}
