
/* =========================================================
   LEAN EDGE SPORTS — HOMEPAGE QUICK COMPARE
   Isolated component. Desktop + phone only where rendered.
   Does not alter hero, Players, full Compare page, or shared nav.
   ========================================================= */

body.homepage-page .hp-quick-compare {
  position: relative;
  isolation: isolate;
  overflow: visible;
  box-sizing: border-box;
  margin-top: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(242, 45, 66, .78);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 15%, rgba(242,45,66,.08), transparent 34%),
    linear-gradient(135deg, rgba(11,28,58,.98), rgba(6,20,43,.98));
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}

body.homepage-page .hp-quick-compare::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("/images/LeanEdgeSports Logo-Clear.png") no-repeat 15% 50% / 240px auto;
  opacity: .025;
}

body.homepage-page .hqc-kicker {
  display: block;
  margin-bottom: 3px;
  color: #ff6470;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

body.homepage-page .hqc-title {
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: .2px;
}

body.homepage-page .hqc-copy p {
  margin: 3px 0 0;
  color: #aab6c8;
}

body.homepage-page .hqc-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(242,45,66,.65);
  border-radius: 50%;
  color: #ff5361;
  background: rgba(242,45,66,.06);
}

body.homepage-page .hqc-picker {
  position: relative;
  min-width: 0;
}

body.homepage-page .hqc-label {
  display: block;
  margin: 0 0 6px;
  color: #d6dfed;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
}

body.homepage-page .hqc-input-wrap {
  position: relative;
}

body.homepage-page .hqc-input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  z-index: 2;
  color: #95a7bf;
  pointer-events: none;
}

body.homepage-page .hqc-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(72,119,176,.62);
  outline: 0;
  color: #fff;
  background: rgba(6,23,49,.94);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

body.homepage-page .hqc-input::placeholder {
  color: #7f90a8;
}

body.homepage-page .hqc-input:focus {
  border-color: rgba(242,45,66,.82);
  background: #081d3d;
  box-shadow: 0 0 0 3px rgba(242,45,66,.09);
}

body.homepage-page .hqc-picker.is-selected .hqc-input {
  border-color: rgba(73,151,255,.75);
  background: #0b2850;
}

body.homepage-page .hqc-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 500;
  display: none;
  overflow-y: auto;
  border: 1px solid rgba(77,119,171,.8);
  border-radius: 0 0 12px 12px;
  background: #08172f;
  box-shadow: 0 18px 34px rgba(0,0,0,.32);
}

body.homepage-page .hqc-dropdown.is-open {
  display: block;
}

body.homepage-page .hqc-option {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #fff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

body.homepage-page .hqc-option:last-child {
  border-bottom: 0;
}

body.homepage-page .hqc-option:hover,
body.homepage-page .hqc-option.is-active {
  background: rgba(49,112,197,.18);
}

body.homepage-page .hqc-option strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.homepage-page .hqc-option small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #899ab1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.homepage-page .hqc-option-score {
  color: #ff6572;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
}

body.homepage-page .hqc-empty {
  padding: 13px 14px;
  color: #8e9aae;
  font-size: 12px;
}

body.homepage-page .hqc-compare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #ff5361;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ef2438, #d9152c);
  font-weight: 800;
  letter-spacing: .35px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(237,28,55,.18);
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}

body.homepage-page .hqc-compare-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

body.homepage-page .hqc-compare-btn:disabled {
  cursor: default;
  opacity: .42;
  box-shadow: none;
}

body.homepage-page .hqc-note {
  color: #8090a7;
}

body.homepage-page .hqc-note a {
  color: #a9caff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* DESKTOP */
@media only screen and (min-width: 769px) {
  body.homepage-page .hp-quick-compare {
    display: grid;
    grid-template-columns: minmax(235px,.72fr) minmax(0,1.8fr);
    align-items: center;
    gap: 26px;
    padding: 18px 20px;
  }

  body.homepage-page .hqc-copy {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
  }

  body.homepage-page .hqc-icon {
    width: 52px;
    height: 52px;
    font-size: 25px;
  }

  body.homepage-page .hqc-kicker {
    font-size: 9px;
  }

  body.homepage-page .hqc-title {
    font-size: 20px;
    line-height: 1;
  }

  body.homepage-page .hqc-copy p {
    max-width: 240px;
    font-size: 11.5px;
    line-height: 1.35;
  }

  body.homepage-page .hqc-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) 128px;
    align-items: end;
    gap: 14px;
    min-width: 0;
  }

  body.homepage-page .hqc-label {
    font-size: 9px;
  }

  body.homepage-page .hqc-input {
    height: 48px;
    padding: 0 38px 0 39px;
    border-radius: 10px;
    font-size: 12px;
  }

  body.homepage-page .hqc-input-icon {
    font-size: 17px;
  }

  body.homepage-page .hqc-dropdown {
    top: calc(100% + 5px);
    max-height: 250px;
  }

  body.homepage-page .hqc-option {
    min-height: 51px;
    padding: 9px 12px;
  }

  body.homepage-page .hqc-option strong {
    font-size: 12px;
  }

  body.homepage-page .hqc-option small {
    font-size: 10px;
  }

  body.homepage-page .hqc-option-score {
    font-size: 16px;
  }

  body.homepage-page .hqc-compare-btn {
    height: 48px;
    padding: 0 17px;
    font-size: 11px;
  }

  body.homepage-page .hqc-note {
    grid-column: 1 / -1;
    margin: -4px 0 0;
    text-align: center;
    font-size: 9.5px;
  }

  /* Desktop already has plenty of visual separation; phone-style dividers remain hidden. */
  body.homepage-page .hp-quick-compare-divider {
    display: none !important;
  }
}

/* PHONE */
@media only screen and (max-width: 768px) {
  body.homepage-page .hp-quick-compare {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding: 17px 16px 16px !important;
    border-radius: 18px !important;
  }

  body.homepage-page .hp-quick-compare::before {
    background-position: 93% 18%;
    background-size: 170px auto;
    opacity: .028;
  }

  body.homepage-page .hqc-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  body.homepage-page .hqc-icon {
    width: 48px;
    height: 48px;
    font-size: 23px;
  }

  body.homepage-page .hqc-kicker {
    margin-bottom: 4px;
    font-size: 9px;
  }

  body.homepage-page .hqc-title {
    font-size: 24px;
    line-height: 1;
  }

  body.homepage-page .hqc-copy p {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
  }

  body.homepage-page .hqc-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body.homepage-page .hqc-label {
    margin-bottom: 5px;
    font-size: 9px;
  }

  body.homepage-page .hqc-input {
    height: 52px;
    padding: 0 40px 0 40px;
    border-radius: 11px;
    font-size: 13px;
  }

  body.homepage-page .hqc-input-icon {
    font-size: 18px;
  }

  body.homepage-page .hqc-dropdown {
    top: calc(100% + 4px);
    max-height: min(240px, 38vh);
  }

  body.homepage-page .hqc-option {
    min-height: 52px;
    padding: 9px 11px;
  }

  body.homepage-page .hqc-option strong {
    font-size: 12px;
  }

  body.homepage-page .hqc-option small {
    font-size: 9.5px;
  }

  body.homepage-page .hqc-option-score {
    font-size: 16px;
  }

  body.homepage-page .hqc-compare-btn {
    width: 100%;
    height: 50px;
    margin-top: 2px;
    border-radius: 11px;
    font-size: 12px;
  }

  body.homepage-page .hqc-note {
    margin: 0;
    text-align: center;
    font-size: 9.5px;
    line-height: 1.35;
  }
}


/* =========================================================
   QUICK COMPARE V2 — CENTRED + PER-PLAYER SEASON SELECTORS
   Desktop + phone component only.
   ========================================================= */
body.homepage-page .hp-quick-compare {
  width: min(100%, 1040px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.homepage-page .hqc-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

body.homepage-page .hqc-picker-head .hqc-label {
  margin: 0 !important;
}

body.homepage-page .hqc-season-select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  border: 1px solid rgba(72,119,176,.58);
  outline: 0;
  color: #c8d5e8;
  background-color: #081c39;
  background-image:
    linear-gradient(45deg, transparent 50%, #91a5be 50%),
    linear-gradient(135deg, #91a5be 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 8px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  cursor: pointer;
  font-weight: 700;
}

body.homepage-page .hqc-season-select:focus {
  border-color: rgba(242,45,66,.78);
  box-shadow: 0 0 0 2px rgba(242,45,66,.08);
}

@media only screen and (min-width: 769px) {
  body.homepage-page .hp-quick-compare {
    grid-template-columns: 245px minmax(0, 1fr) !important;
    gap: 24px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  body.homepage-page .hqc-form {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) 122px !important;
    gap: 13px !important;
  }

  body.homepage-page .hqc-season-select {
    width: 88px;
    height: 25px;
    padding: 0 21px 0 9px;
    border-radius: 7px;
    font-size: 9px;
  }

  body.homepage-page .hqc-note {
    margin-top: -3px !important;
  }
}

@media only screen and (max-width: 768px) {
  body.homepage-page .hp-quick-compare {
    width: calc(100% - 28px) !important;
  }

  body.homepage-page .hqc-picker-head {
    margin-bottom: 6px;
  }

  body.homepage-page .hqc-season-select {
    width: 96px;
    height: 29px;
    padding: 0 22px 0 10px;
    border-radius: 8px;
    font-size: 9.5px;
  }
}


/* Keep search dropdown above the sections below */
body.homepage-page .hp-quick-compare {
  z-index: 20;
}

body.homepage-page .hqc-form {
  position: relative;
  z-index: 2;
}

body.homepage-page .hqc-picker {
  z-index: 3;
}

body.homepage-page .hqc-picker:focus-within,
body.homepage-page .hqc-picker.is-open {
  z-index: 50;
}

body.homepage-page .hqc-dropdown {
  z-index: 2500;
}

/* =========================================================
   QUICK COMPARE V4 — SPACING + IN-BOX PLAYER SEASON PICKER
   Mirrors the selected state of the full Compare page.
   ========================================================= */

/* More breathing room beneath League Leaders. */
body.homepage-page .hp-quick-compare {
  margin-top: 28px !important;
}

/* Season is hidden until a player has actually been selected. */
body.homepage-page .hqc-selected-wrap[hidden],
body.homepage-page .hqc-input-wrap[hidden] {
  display: none !important;
}

body.homepage-page .hqc-selected-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(73,151,255,.75);
  color: #fff;
  background: #0b2850;
}

body.homepage-page .hqc-selected-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.homepage-page .hqc-selected-season {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  border: 1px solid rgba(242,45,66,.34);
  outline: 0;
  color: #ff737e;
  background-color: rgba(255,255,255,.045);
  background-image:
    linear-gradient(45deg, transparent 50%, #ff737e 50%),
    linear-gradient(135deg, #ff737e 50%, transparent 50%);
  background-position:
    calc(100% - 11px) 50%,
    calc(100% - 7px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  font-weight: 700;
  cursor: pointer;
}

body.homepage-page .hqc-selected-season option {
  color: #fff;
  background: #07172f;
}

body.homepage-page .hqc-selected-season:focus {
  border-color: rgba(242,45,66,.82);
  box-shadow: 0 0 0 2px rgba(242,45,66,.08);
}

body.homepage-page .hqc-clear-player {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #9cabbd;
  background: transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

body.homepage-page .hqc-clear-player:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}

/* Old always-visible V2 season header no longer exists. */
body.homepage-page .hqc-picker-head,
body.homepage-page .hqc-season-select {
  display: none !important;
}

/* Search dropdown must remain above Full Box Scores / Fantasy. */
body.homepage-page .hp-quick-compare {
  z-index: 40 !important;
}
body.homepage-page .hqc-form {
  position: relative;
  z-index: 5 !important;
}
body.homepage-page .hqc-picker {
  z-index: 10 !important;
}
body.homepage-page .hqc-picker.is-open,
body.homepage-page .hqc-picker:focus-within {
  z-index: 200 !important;
}
body.homepage-page .hqc-dropdown {
  z-index: 5000 !important;
}

@media only screen and (min-width: 769px) {
  body.homepage-page .hqc-selected-wrap {
    height: 48px;
    padding: 0 9px 0 14px;
    border-radius: 10px;
  }

  body.homepage-page .hqc-selected-name {
    font-size: 12px;
  }

  body.homepage-page .hqc-selected-season {
    width: 88px;
    height: 27px;
    padding: 0 21px 0 8px;
    border-radius: 7px;
    font-size: 9px;
  }

  body.homepage-page .hqc-clear-player {
    width: 25px;
    height: 25px;
    font-size: 17px;
  }
}

@media only screen and (max-width: 768px) {
  body.homepage-page .hp-quick-compare {
    margin-top: 18px !important;
  }

  body.homepage-page .hqc-selected-wrap {
    height: 52px;
    padding: 0 9px 0 13px;
    border-radius: 11px;
  }

  body.homepage-page .hqc-selected-name {
    font-size: 13px;
  }

  body.homepage-page .hqc-selected-season {
    width: 98px;
    height: 30px;
    padding: 0 22px 0 9px;
    border-radius: 8px;
    font-size: 9.5px;
  }

  body.homepage-page .hqc-clear-player {
    width: 27px;
    height: 27px;
    font-size: 18px;
  }
}


/* QUICK COMPARE V6 — a touch more breathing room below League Leaders */
@media only screen and (min-width: 769px) {
  body.homepage-page .hp-quick-compare {
    margin-top: 40px !important;
  }
}

@media only screen and (max-width: 768px) {
  body.homepage-page .hp-quick-compare {
    margin-top: 24px !important;
  }
}

/* QUICK COMPARE V7 — tiny final spacing nudge */
@media only screen and (min-width: 769px) {
  body.homepage-page .hp-quick-compare {
    margin-top: 46px !important;
  }
}

@media only screen and (max-width: 768px) {
  body.homepage-page .hp-quick-compare {
    margin-top: 28px !important;
  }
}


/* =========================================================
   QUICK COMPARE V8 — PHONE ONLY
   Desktop >= 769px is completely untouched.
   Mobile mirrors the desktop picker interaction and prevents
   iPhone/Safari focus zoom by keeping form controls at 16px.
   ========================================================= */
@media only screen and (max-width: 768px) {

  /* Keep the same desktop card language, adapted to phone width. */
  body.homepage-page .hp-quick-compare {
    width: calc(100% - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 16px 14px 15px !important;
    border: 1px solid rgba(242,45,66,.78) !important;
    border-radius: 16px !important;
    overflow: visible !important;
  }

  body.homepage-page .hqc-copy {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  body.homepage-page .hqc-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 21px !important;
  }

  body.homepage-page .hqc-kicker {
    font-size: 9px !important;
  }

  body.homepage-page .hqc-title {
    font-size: 20px !important;
    line-height: 1 !important;
  }

  body.homepage-page .hqc-copy p {
    max-width: 240px !important;
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  body.homepage-page .hqc-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 20 !important;
  }

  body.homepage-page .hqc-picker {
    position: relative !important;
    z-index: 30 !important;
  }

  body.homepage-page .hqc-picker.is-open,
  body.homepage-page .hqc-picker:focus-within {
    z-index: 6000 !important;
  }

  body.homepage-page .hqc-label {
    margin: 0 0 6px !important;
    font-size: 9px !important;
  }

  /*
    CRITICAL MOBILE FIX:
    iOS Safari zooms focused text controls below 16px.
    16px here prevents the page zoom without disabling user pinch zoom.
  */
  body.homepage-page .hqc-input {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 38px 0 39px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    touch-action: manipulation !important;
  }

  body.homepage-page .hqc-input-icon {
    left: 14px !important;
    font-size: 17px !important;
  }

  /* Search results stay in front and are easy to scroll/tap. */
  body.homepage-page .hqc-dropdown {
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    max-height: min(310px, 44vh) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 0 0 11px 11px !important;
    z-index: 10000 !important;
    touch-action: pan-y !important;
  }

  body.homepage-page .hqc-option {
    min-height: 54px !important;
    padding: 9px 12px !important;
    touch-action: manipulation !important;
  }

  body.homepage-page .hqc-option strong {
    font-size: 14px !important;
  }

  body.homepage-page .hqc-option small {
    font-size: 11px !important;
  }

  body.homepage-page .hqc-option-score {
    font-size: 16px !important;
  }

  /* Once chosen, mirror the desktop selected-player box. */
  body.homepage-page .hqc-selected-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 8px 0 13px !important;
    border-radius: 10px !important;
  }

  body.homepage-page .hqc-selected-wrap[hidden] {
    display: none !important;
  }

  body.homepage-page .hqc-selected-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  /*
    Keep the season control at 16px too so selecting a season cannot
    trigger another browser zoom. Only seasons available for that player
    are supplied by the existing Quick Compare JS.
  */
  body.homepage-page .hqc-selected-season {
    flex: 0 0 106px !important;
    width: 106px !important;
    height: 34px !important;
    padding: 0 24px 0 8px !important;
    border-radius: 7px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    touch-action: manipulation !important;
  }

  body.homepage-page .hqc-clear-player {
    width: 28px !important;
    height: 28px !important;
    font-size: 20px !important;
    touch-action: manipulation !important;
  }

  body.homepage-page .hqc-compare-btn {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin-top: 2px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    touch-action: manipulation !important;
  }

  body.homepage-page .hqc-note {
    margin: 0 !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }
}


/* =========================================================
   QUICK COMPARE V9 — MOBILE HOMEPAGE ONLY
   Darker Lean Edge blue + full overlay name list.
   Desktop >= 769px is untouched.
   ========================================================= */
@media only screen and (max-width: 768px) {

  /* Stronger dark Lean Edge card, keep the red corner glow. */
  body.homepage-page .hp-quick-compare {
    background:
      radial-gradient(circle at 92% 10%, rgba(242,45,66,.12), transparent 34%),
      radial-gradient(circle at 7% 92%, rgba(242,45,66,.08), transparent 30%),
      linear-gradient(135deg, #07162d 0%, #081a34 52%, #061326 100%) !important;
    border-color: rgba(242,45,66,.82) !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.24) !important;
    overflow: visible !important;
  }

  body.homepage-page .hp-quick-compare::before {
    opacity: .025 !important;
  }

  body.homepage-page .hqc-title,
  body.homepage-page .hqc-selected-name,
  body.homepage-page .hqc-option strong {
    color: #ffffff !important;
  }

  body.homepage-page .hqc-copy p,
  body.homepage-page .hqc-option small,
  body.homepage-page .hqc-note {
    color: #9fb0c6 !important;
  }

  /* Search / selected player boxes should feel like the darker desktop card. */
  body.homepage-page .hqc-input,
  body.homepage-page .hqc-selected-wrap,
  body.homepage-page .hqc-selected-season {
    background-color: #0a2345 !important;
    color: #ffffff !important;
    border-color: rgba(71,121,181,.72) !important;
  }

  body.homepage-page .hqc-input:focus {
    background-color: #0b2850 !important;
    border-color: rgba(242,45,66,.86) !important;
    box-shadow: 0 0 0 3px rgba(242,45,66,.10) !important;
  }

  body.homepage-page .hqc-input::placeholder {
    color: #8ea0b8 !important;
  }

  /*
    FULL NAME LIST:
    The JS already limits suggestions to 8, so on phone there is no need
    for an internal scrolling box. Let the results extend over the page.
  */
  body.homepage-page .hqc-dropdown {
    top: calc(100% + 4px) !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    -webkit-overflow-scrolling: auto !important;
    background: #07172f !important;
    border-color: rgba(74,119,173,.90) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.42) !important;
    z-index: 2147480000 !important;
  }

  body.homepage-page .hqc-dropdown.is-open {
    display: block !important;
  }

  body.homepage-page .hqc-picker,
  body.homepage-page .hqc-picker.is-open,
  body.homepage-page .hqc-picker:focus-within,
  body.homepage-page .hqc-form,
  body.homepage-page .hp-quick-compare {
    overflow: visible !important;
  }

  body.homepage-page .hqc-picker.is-open,
  body.homepage-page .hqc-picker:focus-within {
    z-index: 2147479000 !important;
  }

  body.homepage-page .hqc-option {
    background: #07172f !important;
    border-bottom-color: rgba(255,255,255,.07) !important;
  }

  body.homepage-page .hqc-option:hover,
  body.homepage-page .hqc-option.is-active {
    background: #0d2b52 !important;
  }

  body.homepage-page .hqc-option-score {
    color: #ff5a68 !important;
  }
}


/* =========================================================
   QUICK COMPARE V10 — PHONE HOMEPAGE ONLY
   Deeper player boxes + cleaner season typography + visible
   draggable scrollbar for larger player-result lists.
   Desktop >= 769px is completely untouched.
   ========================================================= */
@media only screen and (max-width: 768px) {

  /* Player 1 / Player 2 search + selected states: deeper navy. */
  body.homepage-page .hqc-input,
  body.homepage-page .hqc-selected-wrap {
    background: #05152b !important;
    background-color: #05152b !important;
    border-color: rgba(71, 121, 181, .78) !important;
    color: #ffffff !important;
  }

  body.homepage-page .hqc-input:focus {
    background: #071b36 !important;
    background-color: #071b36 !important;
    border-color: rgba(242,45,66,.9) !important;
  }

  body.homepage-page .hqc-picker.is-selected .hqc-input {
    background: #05152b !important;
    background-color: #05152b !important;
  }

  /* Season/date styling closer to the full Compare page. */
  body.homepage-page .hqc-selected-season {
    background-color: rgba(255,255,255,.045) !important;
    background-image:
      linear-gradient(45deg, transparent 50%, #ff6b6b 50%),
      linear-gradient(135deg, #ff6b6b 50%, transparent 50%) !important;
    background-position:
      calc(100% - 12px) 50%,
      calc(100% - 8px) 50% !important;
    background-size: 4px 4px, 4px 4px !important;
    background-repeat: no-repeat !important;
    border: 1px solid rgba(196,18,48,.38) !important;
    color: #ff6b6b !important;
    font-family: "Barlow", Arial, sans-serif !important;
    font-size: 16px !important; /* prevents iPhone focus zoom */
    font-weight: 600 !important;
    letter-spacing: 0 !important;
  }

  body.homepage-page .hqc-selected-season option {
    background: #06162d !important;
    color: #ffffff !important;
    font-family: "Barlow", Arial, sans-serif !important;
    font-weight: 500 !important;
  }

  /*
    Player list: scrolling returns, but with a clearly visible bar on
    the right so it can be dragged rather than feeling like a hidden
    nested scroller.
  */
  body.homepage-page .hqc-dropdown {
    max-height: min(340px, 48vh) !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: auto !important;
    scrollbar-color: #d8243f #0b2343 !important;
    padding-right: 2px !important;
  }

  /* Chrome / Safari / mobile Chromium visible scrollbar. */
  body.homepage-page .hqc-dropdown::-webkit-scrollbar {
    display: block !important;
    width: 9px !important;
  }

  body.homepage-page .hqc-dropdown::-webkit-scrollbar-track {
    background: #0b2343 !important;
    border-radius: 999px !important;
  }

  body.homepage-page .hqc-dropdown::-webkit-scrollbar-thumb {
    background: #d8243f !important;
    border: 2px solid #0b2343 !important;
    border-radius: 999px !important;
    min-height: 34px !important;
  }

  body.homepage-page .hqc-dropdown::-webkit-scrollbar-thumb:active {
    background: #f04458 !important;
  }
}


/* =========================================================
   QUICK COMPARE V11 — PHONE HOMEPAGE ONLY
   Smaller card, homepage typography, and a REAL visible
   draggable scrollbar for long player-result lists.
   Desktop >= 769px is untouched.
   ========================================================= */
@media only screen and (max-width: 768px) {

  /* Make the card neater and less bulky. */
  body.homepage-page .hp-quick-compare {
    width: calc(100% - 40px) !important;
    padding: 13px 12px 12px !important;
    border-radius: 14px !important;
  }

  body.homepage-page .hqc-copy {
    gap: 9px !important;
    margin-bottom: 10px !important;
  }

  body.homepage-page .hqc-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
  }

  body.homepage-page .hqc-kicker {
    margin-bottom: 2px !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    letter-spacing: 1.25px !important;
  }

  body.homepage-page .hqc-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
  }

  body.homepage-page .hqc-copy p {
    margin-top: 3px !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 10.5px !important;
  }

  body.homepage-page .hqc-form {
    gap: 8px !important;
    font-family: 'Barlow', sans-serif !important;
  }

  body.homepage-page .hqc-label {
    margin-bottom: 4px !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    letter-spacing: .8px !important;
  }

  /* Keep 16px text to stop iPhone Safari zooming the input. */
  body.homepage-page .hqc-input {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 34px 0 36px !important;
    border-radius: 9px !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  body.homepage-page .hqc-input-icon {
    left: 12px !important;
    font-size: 16px !important;
  }

  body.homepage-page .hqc-selected-wrap {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 7px 0 11px !important;
    border-radius: 9px !important;
    font-family: 'Barlow', sans-serif !important;
  }

  body.homepage-page .hqc-selected-name {
    font-family: 'Barlow', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  body.homepage-page .hqc-selected-season {
    flex-basis: 98px !important;
    width: 98px !important;
    height: 31px !important;
    padding: 0 21px 0 7px !important;
    border-radius: 7px !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  body.homepage-page .hqc-clear-player {
    width: 25px !important;
    height: 25px !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 18px !important;
  }

  body.homepage-page .hqc-compare-btn {
    height: 43px !important;
    min-height: 43px !important;
    margin-top: 0 !important;
    border-radius: 9px !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  body.homepage-page .hqc-note,
  body.homepage-page .hqc-note a {
    font-family: 'Barlow', sans-serif !important;
    font-size: 9px !important;
  }

  /*
    V11 dropdown shell:
    outer dropdown itself no longer scrolls. The JS creates an internal
    .hqc-options-scroll plus a permanent right-side track/thumb.
  */
  body.homepage-page .hqc-dropdown {
    position: absolute !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 0 0 10px 10px !important;
    z-index: 2147480000 !important;
  }

  body.homepage-page .hqc-options-scroll {
    max-height: min(300px, 44vh) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding-right: 13px !important;
    scrollbar-width: none !important;
    touch-action: pan-y !important;
  }

  body.homepage-page .hqc-options-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Always-visible custom scrollbar. */
  body.homepage-page .hqc-scroll-track {
    position: absolute !important;
    top: 6px !important;
    right: 4px !important;
    bottom: 6px !important;
    width: 7px !important;
    z-index: 3 !important;
    border-radius: 999px !important;
    background: #0c2a4e !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05) !important;
    touch-action: none !important;
  }

  body.homepage-page .hqc-scroll-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 7px !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    background: #d8243f !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) !important;
    touch-action: none !important;
  }

  body.homepage-page .hqc-scroll-thumb.is-dragging {
    background: #f04458 !important;
  }

  body.homepage-page .hqc-option {
    min-height: 48px !important;
    padding: 8px 10px !important;
    font-family: 'Barlow', sans-serif !important;
  }

  body.homepage-page .hqc-option strong {
    font-family: 'Barlow', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  body.homepage-page .hqc-option small {
    font-family: 'Barlow', sans-serif !important;
    font-size: 10.5px !important;
  }

  body.homepage-page .hqc-option-score {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }
}

/* =========================================================
   QUICK COMPARE V12 — MOBILE HOMEPAGE REFINEMENT ONLY
   Compact utility card + four-row dropdown. Desktop untouched.
   ========================================================= */
@media only screen and (max-width: 768px) {
  body.homepage-page .hp-quick-compare {
    padding: 11px 11px 10px !important;
  }

  body.homepage-page .hqc-copy {
    gap: 8px !important;
    margin-bottom: 7px !important;
  }

  body.homepage-page .hqc-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }

  body.homepage-page .hqc-copy p {
    margin-top: 1px !important;
    font-size: 9.5px !important;
    line-height: 1.25 !important;
  }

  body.homepage-page .hqc-form {
    gap: 6px !important;
  }

  body.homepage-page .hqc-label {
    margin-bottom: 3px !important;
  }

  /* 16px remains intentional to prevent iOS focus zoom. */
  body.homepage-page .hqc-input,
  body.homepage-page .hqc-selected-wrap {
    height: 41px !important;
    min-height: 41px !important;
  }

  body.homepage-page .hqc-compare-btn {
    height: 39px !important;
    min-height: 39px !important;
  }

  body.homepage-page .hqc-note,
  body.homepage-page .hqc-note a {
    font-size: 8.5px !important;
    line-height: 1.25 !important;
  }

  /* Roughly four results visible, then scroll within the list. */
  body.homepage-page .hqc-options-scroll {
    max-height: 196px !important;
    padding-right: 8px !important;
  }

  body.homepage-page .hqc-option {
    min-height: 49px !important;
    height: 49px !important;
    padding: 6px 10px !important;
  }

  /* Quiet scrollbar: visible and usable without dominating the names. */
  body.homepage-page .hqc-scroll-track {
    top: 5px !important;
    right: 3px !important;
    bottom: 5px !important;
    width: 4px !important;
    background: rgba(74, 105, 139, .38) !important;
    box-shadow: none !important;
  }

  body.homepage-page .hqc-scroll-thumb {
    width: 4px !important;
    min-height: 28px !important;
    background: rgba(220, 54, 75, .72) !important;
    box-shadow: none !important;
  }

  body.homepage-page .hqc-scroll-thumb.is-dragging {
    background: rgba(240, 68, 88, .9) !important;
  }

  body.homepage-page .hqc-dropdown {
    border-radius: 0 0 9px 9px !important;
  }
}


/* =========================================================
   QUICK COMPARE V13 — PHONE HOMEPAGE POLISH ONLY
   Blend with homepage navy, quieter red corners, tighter gap.
   Desktop and full Compare page are untouched.
   ========================================================= */
@media only screen and (max-width: 768px) {
  body.homepage-page .hp-quick-compare {
    margin-top: 8px !important;
    background:
      radial-gradient(circle at 96% 5%, rgba(242,45,66,.055), transparent 28%),
      radial-gradient(circle at 4% 96%, rgba(242,45,66,.035), transparent 24%),
      linear-gradient(180deg, #07182f 0%, #06162c 100%) !important;
    border-color: rgba(242,45,66,.76) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.18) !important;
  }

  body.homepage-page .hp-quick-compare::before {
    opacity: .018 !important;
  }

  body.homepage-page .hqc-input,
  body.homepage-page .hqc-selected-wrap,
  body.homepage-page .hqc-selected-season {
    background-color: #061a34 !important;
  }

  /* Four results still fit, but the open state is a little less dominant. */
  body.homepage-page .hqc-options-scroll {
    max-height: 180px !important;
  }

  body.homepage-page .hqc-option {
    min-height: 45px !important;
    height: 45px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
}

/* V14 MOBILE ONLY: calmer homepage-integrated Compare card */
@media only screen and (max-width: 768px) {
 body.homepage-page .hp-quick-compare {
  background:#06172e !important;
  border-color:rgba(71,121,181,.55) !important;
  box-shadow:none !important;
 }
 body.homepage-page .hp-quick-compare::before {opacity:.018 !important;}
 body.homepage-page .hqc-input,
 body.homepage-page .hqc-selected-wrap,
 body.homepage-page .hqc-selected-season {
  background:#05152b !important;
  border-color:rgba(71,121,181,.72) !important;
 }
 body.homepage-page .hqc-compare-btn {
  background:#ef1234 !important;
  border-color:#ef1234 !important;
  box-shadow:none !important;
 }
 body.homepage-page .hqc-compare-btn:disabled {
  background:#ef1234 !important;
  border-color:#ef1234 !important;
  opacity:.42 !important;
 }
}


/* =========================================================
   HOMEPAGE — DRAFT PICK COMPARE
   Lightweight launcher: keeps draft datasets off the homepage.
   ========================================================= */
body.homepage-page .hp-draft-pick-compare {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: center;
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid rgba(90,124,175,.34);
  border-radius: 16px;
  background: rgba(8,22,49,.68);
}
body.homepage-page .hdpc-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
body.homepage-page .hdpc-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border: 1px solid rgba(238,72,83,.38);
  border-radius: 12px;
  color: var(--red);
  font-size: 22px;
  background: rgba(238,72,83,.08);
}
body.homepage-page .hdpc-form {
  min-width: 0;
}
body.homepage-page .hdpc-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
body.homepage-page .hdpc-input {
  width: 100%;
}
body.homepage-page .hdpc-btn {
  white-space: nowrap;
}
@media (max-width: 768px) {
  body.homepage-page .hp-draft-pick-compare {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 14px;
    padding: 20px 16px;
  }
  body.homepage-page .hdpc-input-row {
    grid-template-columns: 1fr;
  }
  body.homepage-page .hdpc-btn {
    width: 100%;
  }
}


/* PHONE ONLY — give Draft Pick Compare clear space before Full Box Scores. */
@media only screen and (max-width: 768px) {
  body.homepage-page #hp-draft-pick-compare {
    margin-bottom: 34px !important;
  }
  body.homepage-page #hp-draft-pick-compare + .hp-callouts,
  body.homepage-page #hp-draft-pick-compare ~ .hp-callouts {
    padding-top: 28px !important;
  }
}


/* Audited 1947-2026 Draft Pick Compare results */
.hdpc-results{
  grid-column:1/-1;
  margin-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:14px;
}
.hdpc-results-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
  color:var(--white);
}
.hdpc-results-head a{
  color:var(--mid-blue);
  text-decoration:none;
  font-size:12px;
  font-weight:700;
}
.hdpc-results-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.hdpc-result-card{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:8px;
  background:rgba(255,255,255,.025);
}
.hdpc-result-card strong,
.hdpc-result-card strong a{
  color:var(--white);
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hdpc-result-card>span:last-child{
  color:var(--text-muted);
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hdpc-result-year{
  color:var(--mid-blue);
  font-family:'Barlow Condensed',sans-serif;
  font-size:16px;
  font-weight:800;
}
.hdpc-loading,.hdpc-empty{color:var(--text-muted);font-size:12px;padding:4px 0}

@media(max-width:768px){
  .hdpc-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hdpc-results-head{align-items:flex-start}
}


/* 19 Aug 2026 — Draft Pick Compare helper text breathing room */
body.homepage-page #hp-draft-pick-compare .hqc-note {
  margin-top: 6px !important;
}

/* 19 Aug 2026 — Draft Pick Compare helper aligned with pick input */
body.homepage-page #hp-draft-pick-compare .hdpc-form > .hqc-note {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  text-align: left !important;
  justify-self: start !important;
  width: 100% !important;
}


/* =========================================================
   HOMEPAGE — BLUE DRAFT PICK NUMBER STEPPER
   2026-09-01

   Replaces Chrome/Edge's native white/grey number spinner with
   the approved compact Lean Edge blue chevrons.
   ========================================================= */

body.homepage-page .hdpc-number-stepper {
  position: relative;
  width: 100%;
  min-width: 0;
}

body.homepage-page .hdpc-number-stepper .hdpc-input {
  width: 100%;
  -moz-appearance: textfield;
  appearance: textfield;
  padding-right: 34px !important;
}

/* Hide the browser-native white/grey spinner. */
body.homepage-page .hdpc-number-stepper .hdpc-input::-webkit-outer-spin-button,
body.homepage-page .hdpc-number-stepper .hdpc-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}

body.homepage-page .hdpc-stepper-controls {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 16px;
  height: 30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  z-index: 3;
  pointer-events: auto;
}

body.homepage-page .hdpc-stepper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 50%;
  width: 16px;
  min-width: 16px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #4a9cff;
  line-height: 1;
  cursor: pointer;
}

body.homepage-page .hdpc-stepper-btn i {
  display: block;
  font-size: 11px;
  line-height: 1;
}

body.homepage-page .hdpc-stepper-btn:hover,
body.homepage-page .hdpc-stepper-btn:focus-visible {
  color: #78b7ff;
  background: transparent;
  outline: 0;
}

body.homepage-page .hdpc-number-stepper:focus-within .hdpc-stepper-btn {
  color: #5ca8ff;
}

@media (max-width: 768px) {
  body.homepage-page .hdpc-number-stepper .hdpc-input {
    padding-right: 34px !important;
  }

  body.homepage-page .hdpc-stepper-controls {
    right: 10px;
  }
}
