/* ========================================================================== 
   Revision 21 — pedigree result behavior / filtering / long-playlist scrolling
   ========================================================================== */

/* Pedigree searches can return dozens of horses. On desktop the roster must
   always have its own vertical scroll area so every result remains reachable
   even while the player page itself is operating as a viewport dashboard. */
@media (min-width: 901px) {
  body.pedigree-page .playlist-panel {
    height: min(72dvh, 780px) !important;
    max-height: min(72dvh, 780px) !important;
    min-height: 300px !important;
    align-self: start !important;
  }
  body.pedigree-page .playlist-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* All-years pedigree results intentionally have no sale selector. A sale is a
   refinement of a specific season, not a meaningful cross-season filter. */
#pedigreeSaleFilterControl[hidden] {
  display: none !important;
}

/* Keep the refinement controls visually stable when Sale appears/disappears. */
.pedigree-page .refinement-controls {
  align-items: end;
}
