/* ==========================================================================
   Revision 18 — typography/mobile polish, compact focus rings, touch scrolling
   ========================================================================== */

/* Give the artwork a little more presence without exposing its rectangular
   edge: the surrounding page remains true black. */
.site-background {
  opacity: .62 !important;
}
.site-background::after {
  background:
    radial-gradient(circle at 50% 27%, rgba(0,0,0,.025), rgba(0,0,0,.60) 80%),
    linear-gradient(to bottom, rgba(0,0,0,.16), rgba(0,0,0,.56)) !important;
}

/* More typographic hierarchy. Important labels/names can still be strong, but
   metadata/body copy should not look like the same bold face everywhere. */
.index-hero p,
.playlist-group-details,
.now-playing-meta,
.consignor-season,
.sale-result-heading p,
.search-scope,
.music-note {
  font-weight: 400 !important;
}
.playlist-group-heading { font-weight: 700 !important; }
.playlist-name { font-weight: 700 !important; letter-spacing: .008em; }
.now-playing-card h2 { font-weight: 750 !important; }
.index-hero h1,
.consignor-text-fallback h1 { font-weight: 760 !important; }

/* Business-partner note: give the consignor labels a touch more air. */
@media (min-width: 901px) {
  .matrix-row .consignor-name-cell a {
    letter-spacing: .035em !important;
    font-weight: 700 !important;
  }

  /* About 15% lighter than the previous matrix rules. */
  .matrix-row {
    border-bottom-color: rgba(255,255,255,.0595) !important;
  }
  .matrix-row .consignor-name-cell {
    border-right-color: rgba(255,255,255,.034) !important;
  }
  .matrix-row .count-cell {
    border-left-color: rgba(255,255,255,.0255) !important;
  }
  .matrix-row .count-cell:last-child {
    border-right-color: rgba(255,255,255,.0255) !important;
  }
}

/* Compact dropdown focus rings. The global 2px/3px focus treatment is useful
   on large controls, but crowds these small inline selects. */
.playlist-sale-control select:focus-visible,
.now-playing-card .quality-control select:focus-visible {
  outline: 1px solid rgba(255,255,255,.72) !important;
  outline-offset: 1px !important;
  box-shadow: none !important;
}

/* In a stacked/two-pane layout the entire one-page catalog is already visible.
   It should participate in DOCUMENT scrolling rather than capturing a finger
   gesture inside an unnecessary inner scroll container. */
.player-page .player-layout.layout-two-pane .catalog-viewer,
.search-result-page .player-layout.layout-search-stack .catalog-viewer {
  overflow: visible !important;
  overscroll-behavior: auto !important;
  touch-action: pan-y !important;
  max-height: none !important;
  scrollbar-width: none;
}
.player-page .player-layout.layout-two-pane #catalogCanvas,
.search-result-page .player-layout.layout-search-stack #catalogCanvas {
  pointer-events: none;
  touch-action: pan-y !important;
}

/* --------------------------------------------------------------------------
   Mobile: no sticky player. Let visitors deliberately scroll down to Playlist
   or Catalog, and bring the player back when they choose another horse.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  body.player-page .page-shell {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  body.player-page .page-nav-row,
  body.player-page .consignor-identity {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  body.player-page .player-layout.layout-mobile,
  body.player-page .video-column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.player-page .player-stage {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }

  body.player-page .now-playing-card,
  body.player-page .mobile-content-tabs,
  body.player-page .mobile-playlist-host,
  body.player-page .catalog-panel.mobile-visible,
  body.search-result-page .catalog-panel:not([hidden]) {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  body.player-page .now-playing-card { margin-top: 10px !important; }

  body.player-page .catalog-panel.mobile-visible .catalog-viewer,
  body.search-result-page .catalog-panel:not([hidden]) .catalog-viewer {
    overflow: visible !important;
    overscroll-behavior: auto !important;
    touch-action: pan-y !important;
    max-height: none !important;
  }
  body.player-page .catalog-panel.mobile-visible #catalogCanvas,
  body.search-result-page .catalog-panel:not([hidden]) #catalogCanvas {
    pointer-events: none;
    touch-action: pan-y !important;
  }
}

/* On genuinely skinny portrait phones, the consignor identity is context, not
   a billboard. Keep only the name, on one compact line. */
@media (max-width: 600px) and (orientation: portrait) {
  body.player-page .consignor-identity.text-only-header {
    padding: 9px 10px !important;
    min-height: 0 !important;
  }
  body.player-page .consignor-identity.text-only-header .consignor-eyebrow,
  body.player-page .consignor-identity.text-only-header .consignor-season {
    display: none !important;
  }
  body.player-page .consignor-identity.text-only-header .consignor-text-fallback {
    width: 100% !important;
    padding: 0 4px !important;
  }
  body.player-page .consignor-identity.text-only-header h1 {
    margin: 0 !important;
    font-size: clamp(1.22rem, 5.6vw, 1.6rem) !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -.02em !important;
  }

  body.player-page .page-nav-row { margin-bottom: 10px !important; }
}
