/* ==========================================================================
   BEATSHOUSE — Beats Library Page v4.0
   Neutral dark. Flat filters. Minimal track rows.
   ========================================================================== */

.bh-library-v3.bh-library--neutral {
  --bh-bg: #000;
  --bh-bg2: #080808;
  --bh-text:    rgba(255, 255, 255, 0.92);
  --bh-muted:   rgba(255, 255, 255, 0.5);
  --bh-faint:   rgba(255, 255, 255, 0.12);
  --bh-line:    rgba(255, 255, 255, 0.06);
  --bh-focus:   rgba(255, 255, 255, 0.35);
  --bh-accent:  #C8FF00;
  --bh-accent-dim: rgba(200,255,0,.12);
  --bh-accent-border: rgba(200,255,0,.22);
  --bh-surface: rgba(255, 255, 255, 0.03);
  --bh-surface-hover: rgba(255, 255, 255, 0.055);

  color: var(--bh-text);
  background: var(--bh-bg);
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0 0 80px;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  overflow-x: clip;
}

/* Standalone page: force dark fill behind everything */
body:not(.bh-spa) .bh-library-v3.bh-library--neutral {
  position: relative;
}
body:not(.bh-spa) .bh-library-v3.bh-library--neutral::before {
  content: '';
  position: fixed;
  inset: 0;
  background: #000;
  z-index: -1;
}

/* Standalone page — force dark body + strip theme backgrounds */
body.bh-beats-page {
  background: #000 !important;
  color: rgba(255, 255, 255, 0.9) !important;
}
body.bh-beats-page #page,
body.bh-beats-page #main,
body.bh-beats-page .site-main,
body.bh-beats-page .wp-site-blocks,
body.bh-beats-page .entry-content,
body.bh-beats-page article {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
/* Strip theme p/h overrides (CLAUDE.md: theme uses !important on #main p/h) */
body.bh-beats-page #main p,
body.bh-beats-page #main h1,
body.bh-beats-page #main h2,
body.bh-beats-page #main h3,
body.bh-beats-page #main h4 {
  color: inherit !important;
  font-family: inherit !important;
}

/* When loaded inside the SPA stage: let home bg show through. */
#bh-home-app-stage .bh-library-v3.bh-library--neutral,
#bh-home-app-stage .bh-genre-picker,
#bh-home-app-stage .bh-picker-head,
#bh-home-app-stage .vault-panel,
#bh-home-app-stage .bh-library-shell {
  background: transparent !important;
}
#bh-home-app-stage .bh-library-v3.bh-library--neutral .bh-library-shell {
  padding-top: 0 !important;
}
#bh-home-app-stage .bh-genre-picker {
  padding-top: 0 !important;
}

.bh-library-v3.bh-library--neutral * {
  box-sizing: border-box;
  min-width: 0;
}

.bh-library-v3.bh-library--neutral a {
  color: inherit;
  text-decoration: none;
}

/* ── Shell ── */
.bh-library-v3.bh-library--neutral .bh-library-shell {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px) 0 0;
}

/* ── Strip boxes from panel containers ── */
.bh-library-v3.bh-library--neutral .vault-panel,
.bh-library-v3.bh-library--neutral .vault-header,
.bh-library-v3.bh-library--neutral .filter-orchestrator,
.bh-library-v3.bh-library--neutral .beats-list-wrapper,
.bh-library-v3.bh-library--neutral .track-row-container,
.bh-library-v3.bh-library--neutral .library-profile-preview {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ── YouTube grid ── */
.bh-library-v3.bh-library--neutral .bh-yt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 30px;
}

.bh-library-v3.bh-library--neutral .yt-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
}

.bh-library-v3.bh-library--neutral .yt-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) brightness(0.9);
}

/* ── Profile preview ── */
.bh-library-v3.bh-library--neutral .library-profile-preview {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  padding: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.bh-library-v3.bh-library--neutral .library-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
}

.bh-library-v3.bh-library--neutral .library-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bh-library-v3.bh-library--neutral .library-profile-label {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.35);
  font: 500 9px / 1 'DM Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bh-library-v3.bh-library--neutral #library-profile-name {
  margin: 0;
  color: var(--bh-text);
  font: 600 15px / 1.2 'Manrope', sans-serif;
}

.bh-library-v3.bh-library--neutral #library-profile-role,
.bh-library-v3.bh-library--neutral #library-profile-bio {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font: 400 11px / 1.4 'Manrope', sans-serif;
}

.bh-library-v3.bh-library--neutral .library-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.bh-library-v3.bh-library--neutral .library-profile-links a {
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.3);
  font: 500 10px / 1 'Manrope', sans-serif;
  background: transparent;
  transition: color 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.bh-library-v3.bh-library--neutral .library-profile-links a:hover {
  color: var(--bh-text);
}

/* ── Vault header ── */
.bh-library-v3.bh-library--neutral .vault-header { margin-bottom: 18px; }

.bh-library-v3.bh-library--neutral .lab-title {
  margin: 0;
  color: var(--bh-text);
  font: 700 22px / 1.1 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.bh-library-v3.bh-library--neutral .v-accent {
  display: none;
}
.bh-library-v3.bh-library--neutral .v-main {
  color: var(--bh-text);
}

/* ── Status strip ── */
.bh-library-v3.bh-library--neutral .status-strip,
.bh-library-v3.bh-library--neutral .status-strip .stat {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.3) !important;
  font: 400 11px / 1.3 'Manrope', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.bh-library-v3.bh-library--neutral .status-strip .stat-sep {
  display: none;
}

.bh-library-v3.bh-library--neutral .pulse {
  display: none;
}

/* ── Search ── */
.bh-library-v3.bh-library--neutral .search-modular-vault {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  position: relative;
  transition: background 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.bh-library-v3.bh-library--neutral .search-modular-vault::after {
  display: none;
}

.bh-library-v3.bh-library--neutral .search-modular-vault:focus-within {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.bh-library-v3.bh-library--neutral .search-modular-vault i {
  color: rgba(255, 255, 255, 0.25) !important;
  font-size: 11px !important;
}

.bh-library-v3.bh-library--neutral .search-modular-vault input {
  width: 100%;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bh-text);
  font: 400 13px / 1.2 'Manrope', sans-serif;
}

.bh-library-v3.bh-library--neutral .search-modular-vault input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* ── Filters (flat, no boxes) ── */
.bh-library-v3.bh-library--neutral .filter-orchestrator,
.bh-library-v3.bh-library--neutral .nav-and-sort,
.bh-library-v3.bh-library--neutral .sub-filters,
.bh-library-v3.bh-library--neutral .pill-group,
.bh-library-v3.bh-library--neutral .pill-group-set {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.bh-library-v3.bh-library--neutral .filter-orchestrator { margin: 0 0 14px !important; }

.bh-library-v3.bh-library--neutral .nav-and-sort {
  margin: 0 0 8px !important;
  border-bottom: 0 !important;
  padding-bottom: 10px;
}

.bh-library-v3.bh-library--neutral .sort-options,
.bh-library-v3.bh-library--neutral .pill-group-set.active {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px !important;
}

.bh-library-v3.bh-library--neutral .pill-group-set { display: none; }
.bh-library-v3.bh-library--neutral .pill-group-set.active { display: flex; }

.bh-library-v3.bh-library--neutral .sort-btn,
.bh-library-v3.bh-library--neutral .pill {
  -webkit-appearance: none;
  appearance: none;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  font: 700 10px / 1.2 'DM Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.bh-library-v3.bh-library--neutral .sort-btn:hover,
.bh-library-v3.bh-library--neutral .pill:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  border-bottom-color: rgba(255, 255, 255, 0.4) !important;
}

.bh-library-v3.bh-library--neutral .sort-btn.active,
.bh-library-v3.bh-library--neutral .pill.active {
  color: #c4b0f5 !important;
  border-bottom-color: rgba(200,255,0, 0.6) !important;
}

.bh-library-v3.bh-library--neutral .pill.reset {
  color: rgba(255, 255, 255, 0.55) !important;
}

.bh-library-v3.bh-library--neutral .pill.reset:hover,
.bh-library-v3.bh-library--neutral .pill.reset.active {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.6) !important;
}

/* ── Vault tabs ── */
/* Vault tab bar — hidden, switching handled by dock nav */
.bh-library-v3.bh-library--neutral .vault-tab-bar {
  display: none !important;
}

/* Panels */
.bh-library-v3.bh-library--neutral .beats-panel { display: none; }
.bh-library-v3.bh-library--neutral .beats-panel.active { display: block; }

/* ── Track rows ── */
.bh-library-v3.bh-library--neutral .track-row-container {
  padding: 0;
  position: relative;
}

.bh-library-v3.bh-library--neutral .track-row-container:empty,
.bh-library-v3.bh-library--neutral .track-row-container:blank {
  display: none;
}

/* Counter — auto-numbers each row */
.bh-library-v3.bh-library--neutral .beats-panel {
  counter-reset: bh-track;
}
.bh-library-v3.bh-library--neutral .track-row-container {
  counter-increment: bh-track;
}

.bh-library-v3.bh-library--neutral .track-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 14px 8px 8px;
  margin-bottom: 2px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background 180ms cubic-bezier(0.23, 1, 0.32, 1),
              border-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1),
              transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .bh-library-v3.bh-library--neutral .track-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

.bh-library-v3.bh-library--neutral .track-row:active {
  transform: scale(0.995);
  background: rgba(255, 255, 255, 0.025);
}

/* ── Cover art + play overlay ── */
.bh-library-v3.bh-library--neutral .track-cover {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.bh-library-v3.bh-library--neutral .track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Producer avatar as cover fallback — centered + dimmed */
.bh-library-v3.bh-library--neutral .track-cover__avatar {
  object-position: center top;
  filter: brightness(0.7) saturate(0.8);
}

.bh-library-v3.bh-library--neutral .track-row:hover .track-cover img {
  transform: scale(1.06);
  filter: brightness(0.6);
}

/* Track number — shown via ::before on the cover when not hovering */
.bh-library-v3.bh-library--neutral .track-cover::before {
  content: counter(bh-track, decimal-leading-zero);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 11px/1 'DM Mono', ui-monospace, monospace;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.bh-library-v3.bh-library--neutral .track-row:hover .track-cover::before,
.bh-library-v3.bh-library--neutral .track-row:has(.master-play.is-playing) .track-cover::before {
  opacity: 0;
}

/* Play button — absolute overlay on cover */
.bh-library-v3.bh-library--neutral .master-play {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Reset properties that bleed in from app-stitch-enhance.css
     (.bh-home-v5 .bh-home-master-play and .bh-home-v5 .master-play.is-playing) */
  border: 0 !important;
  border-radius: 0 !important;
  animation: none !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
  transform: none !important;
  cursor: pointer;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Slightly visible at rest so the button is discoverable */
  opacity: 0.35;
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.14s cubic-bezier(0.23, 1, 0.32, 1) !important;
  z-index: 2;
}

.bh-library-v3.bh-library--neutral .track-row:hover .master-play {
  opacity: 1;
  background: rgba(0, 0, 0, 0.65) !important;
}

.bh-library-v3.bh-library--neutral .master-play.is-playing {
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  animation: none !important;
}

/* Touch devices — always show at resting opacity */
@media (hover: none) {
  .bh-library-v3.bh-library--neutral .master-play {
    opacity: 0.7;
  }
}

.bh-library-v3.bh-library--neutral .bh-play-icon {
  font-size: 14px;
  transform: translateX(1px);
  transition: opacity 0.14s cubic-bezier(0.23, 1, 0.32, 1);
}

.bh-library-v3.bh-library--neutral .master-play.is-playing .bh-play-icon {
  display: none;
}

.bh-library-v3.bh-library--neutral .master-play.is-loading {
  pointer-events: none;
}
.bh-library-v3.bh-library--neutral .master-play.is-loading .bh-play-icon,
.bh-library-v3.bh-library--neutral .master-play.is-loading .bh-eq {
  opacity: 0;
}
.bh-library-v3.bh-library--neutral .master-play.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: bh-spin .65s linear infinite;
}
@keyframes bh-spin { to { transform: rotate(360deg); } }

/* ── EQ animation bars (shown when is-playing) ── */
.bh-library-v3.bh-library--neutral .bh-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.bh-library-v3.bh-library--neutral .master-play.is-playing .bh-eq {
  display: flex;
}

.bh-library-v3.bh-library--neutral .bh-eq span {
  display: block;
  width: 3px;
  border-radius: 0;
  background: #E8FF88;
  animation: bhEqBounce 0.9s ease-in-out infinite alternate;
}

.bh-library-v3.bh-library--neutral .bh-eq span:nth-child(1) { height: 6px;  animation-delay: 0s;    animation-duration: 0.7s; }
.bh-library-v3.bh-library--neutral .bh-eq span:nth-child(2) { height: 14px; animation-delay: 0.15s; animation-duration: 0.9s; }
.bh-library-v3.bh-library--neutral .bh-eq span:nth-child(3) { height: 10px; animation-delay: 0.05s; animation-duration: 0.8s; }
.bh-library-v3.bh-library--neutral .bh-eq span:nth-child(4) { height: 7px;  animation-delay: 0.2s;  animation-duration: 1.1s; }

@keyframes bhEqBounce {
  from { transform: scaleY(0.25); opacity: 0.65; }
  to   { transform: scaleY(1);    opacity: 1; }
}

/* ── Track info ── */
.bh-library-v3.bh-library--neutral .track-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bh-library-v3.bh-library--neutral .track-title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.bh-library-v3.bh-library--neutral .track-title {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font: 700 14px / 1.3 'Manrope', sans-serif;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.bh-library-v3.bh-library--neutral .track-row:hover .track-title {
  color: #fff;
}

.bh-library-v3.bh-library--neutral .track-yt-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  border-radius: 0;
  background: rgba(255, 60, 60, 0.12);
  color: #ff5555;
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  transition: background 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}
.bh-library-v3.bh-library--neutral .track-yt-badge:hover {
  background: rgba(255, 60, 60, 0.22);
  color: #ff6666;
}

.bh-library-v3.bh-library--neutral .track-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font: 400 10.5px / 1 'DM Mono', ui-monospace, monospace;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Meta chips ── */
.bh-library-v3.bh-library--neutral .track-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.bh-library-v3.bh-library--neutral .track-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
  font: 600 9px/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bh-library-v3.bh-library--neutral .track-chip--genre {
  background: rgba(200,255,0, 0.1);
  border-color: rgba(200,255,0, 0.22);
  color: rgba(200,255,0, 0.85);
  letter-spacing: 0.05em;
}

.bh-library-v3.bh-library--neutral .track-chip--bpm {
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.05);
}

.bh-library-v3.bh-library--neutral .track-chip--key {
  color: rgba(167, 243, 208, 0.75);
  border-color: rgba(52, 211, 153, 0.18);
  background: rgba(52, 211, 153, 0.06);
}

/* ── Right side ── */
.bh-library-v3.bh-library--neutral .track-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bh-library-v3.bh-library--neutral .track-price {
  font: 700 13px / 1 'Manrope', sans-serif;
  color: rgba(200,255,0, 0.9);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ── License pill button (replaces passive price text) ── */
.bh-library-v3.bh-library--neutral .bh-license-pill {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 180ms cubic-bezier(0.23, 1, 0.32, 1),
              border-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1),
              transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .bh-library-v3.bh-library--neutral .bh-license-pill:hover {
    background: rgba(200,255,0, 0.1);
    border-color: rgba(200,255,0, 0.3);
    box-shadow: inset 0 1px 0 rgba(200,255,0, 0.1), 0 0 16px rgba(200,255,0, 0.1);
  }
}
.bh-library-v3.bh-library--neutral .bh-license-pill:active {
  transform: scale(0.97);
}
.bh-library-v3.bh-library--neutral .bh-license-pill .bh-lp-from {
  font: 600 8px / 1 'DM Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.bh-library-v3.bh-library--neutral .bh-license-pill .bh-lp-price {
  font: 700 13px / 1 'Manrope', sans-serif;
  color: rgba(200,255,0, 0.9);
  letter-spacing: -0.01em;
}
/* Always visible (not hidden-on-hover like fav/edit) */
.bh-library-v3.bh-library--neutral .bh-license-pill {
  opacity: 1 !important;
}

.bh-library-v3.bh-library--neutral .license-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.bh-library-v3.bh-library--neutral .license-pill-label {
  color: var(--bh-muted);
  font: 700 9px / 1 'DM Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bh-library-v3.bh-library--neutral .license-pill-price {
  color: var(--bh-text);
  font: 700 11px / 1 'Manrope', sans-serif;
}

.bh-library-v3.bh-library--neutral .license-from-price {
  color: rgba(255, 255, 255, 0.6);
  font: 600 10px / 1 'Manrope', sans-serif;
  letter-spacing: 0;
}

/* Genre filter chips (legacy) */
.bh-library-v3.bh-library--neutral .bh-genre-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
}

.bh-library-v3.bh-library--neutral .bh-genre-chip {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  padding: 5px 12px !important;
  font: 500 11px/1 'Manrope', system-ui, sans-serif !important;
  letter-spacing: -0.005em !important;
  cursor: pointer !important;
  transition: background 160ms cubic-bezier(0.23, 1, 0.32, 1),
              color 160ms cubic-bezier(0.23, 1, 0.32, 1),
              border-color 160ms cubic-bezier(0.23, 1, 0.32, 1) !important;
  white-space: nowrap !important;
}

@media (hover: hover) and (pointer: fine) {
  .bh-library-v3.bh-library--neutral .bh-genre-chip:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }
}

.bh-library-v3.bh-library--neutral .bh-genre-chip:active {
  transform: scale(0.97) !important;
}

.bh-library-v3.bh-library--neutral .bh-genre-chip.is-active,
.bh-library-v3.bh-library--neutral .bh-genre-chip.active {
  background: rgba(200,255,0, 0.12) !important;
  border-color: rgba(200,255,0, 0.3) !important;
  color: #E8FF88 !important;
  box-shadow: inset 0 1px 0 rgba(200,255,0, 0.1) !important;
}

/* Action cell layout */
.bh-library-v3.bh-library--neutral .track-cell.action-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Library fav button */
.bh-library-v3.bh-library--neutral .bh-lib-fav {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  padding: 6px;
  cursor: pointer;
  transition: color 0.18s cubic-bezier(0.23, 1, 0.32, 1), transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}
.bh-library-v3.bh-library--neutral .bh-lib-fav:hover {
  color: rgba(239, 68, 68, 0.65);
  transform: scale(1.28);
}
.bh-library-v3.bh-library--neutral .bh-lib-fav.is-fav,
.bh-library-v3.bh-library--neutral .bh-lib-fav.is-fav:hover {
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* Admin quick-edit button */
.bh-track-edit-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  color: rgba(167, 139, 250, 0.35);
  font-size: 13px;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}
.bh-track-edit-btn:hover {
  color: rgba(167, 139, 250, 0.9);
  transform: scale(1.2);
}

/* Action buttons */
.bh-library-v3.bh-library--neutral .btn-action {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  font: 600 10px / 1 'Manrope', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              color 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.14s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.bh-library-v3.bh-library--neutral .btn-action:active {
  transform: scale(0.97);
}

.bh-library-v3.bh-library--neutral .btn-action:hover,
.bh-library-v3.bh-library--neutral .btn-action:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  opacity: 1;
  border-color: transparent;
}

.bh-library-v3.bh-library--neutral .btn-toggle-admin,
.bh-library-v3.bh-library--neutral .download-btn-style,
.bh-library-v3.bh-library--neutral .btn-save-edit {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--bh-text) !important;
  font: 700 10px / 1 'DM Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 !important;
}

/* Admin edit zone */
.bh-library-v3.bh-library--neutral .track-row-container .admin-edit-zone {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.bh-library-v3.bh-library--neutral .track-row-container:hover .admin-edit-zone,
.bh-library-v3.bh-library--neutral .track-row-container:focus-within .admin-edit-zone {
  opacity: 1;
  pointer-events: auto;
}

/* Edit inline */
.bh-library-v3.bh-library--neutral .edit-container-inner {
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--bh-line);
  background: transparent;
}

.bh-library-v3.bh-library--neutral .edit-field label {
  color: var(--bh-muted);
  font: 700 10px / 1 'DM Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bh-library-v3.bh-library--neutral .edit-field input {
  margin-top: 5px;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bh-line);
  color: var(--bh-text);
  padding: 8px 0;
  font: 500 13px / 1.2 'Manrope', sans-serif;
}

/* Focus rings */
.bh-library-v3.bh-library--neutral .edit-field input:focus-visible,
.bh-library-v3.bh-library--neutral .search-modular-vault input:focus-visible,
.bh-library-v3.bh-library--neutral .vault-tab:focus-visible,
.bh-library-v3.bh-library--neutral .master-play:focus-visible,
.bh-library-v3.bh-library--neutral .btn-action:focus-visible,
.bh-library-v3.bh-library--neutral .pill:focus-visible,
.bh-library-v3.bh-library--neutral .sort-btn:focus-visible,
.bh-library-v3.bh-library--neutral .library-profile-links a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

/* Hidden on mobile, visible on desktop */
.bh-library-v3.bh-library--neutral .wave-cell,
.bh-library-v3.bh-library--neutral .tech-cell { display: none; }

/* Empty state */
.bh-library-v3.bh-library--neutral .empty-state {
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.3);
  font: 400 13px / 1.4 'Manrope', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
  .bh-library-v3.bh-library--neutral .bh-library-shell {
    width: calc(100% - 20px);
    padding-top: 16px;
  }
  .bh-library-v3.bh-library--neutral .track-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 9px 10px 9px 8px;
  }
  .bh-library-v3.bh-library--neutral .track-cover {
    width: 52px;
    height: 52px;
    border-radius: 0;
  }
  .bh-library-v3.bh-library--neutral .track-title {
    font-size: 14px;
  }
  .bh-library-v3.bh-library--neutral .track-sub {
    font-size: 10px;
  }
  .bh-library-v3.bh-library--neutral .track-price {
    font-size: 13px;
  }
  .bh-library-v3.bh-library--neutral .track-meta {
    display: flex;
    margin-top: 4px;
  }
  .bh-library-v3.bh-library--neutral .track-chip {
    height: 16px;
    font-size: 8px;
  }
  .bh-library-v3.bh-library--neutral .library-profile-preview {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .bh-library-v3.bh-library--neutral .library-profile-avatar {
    width: 42px;
    height: 42px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   GENRE CARDS — big visual selector above the chip filters
   ════════════════════════════════════════════════════════════════════════ */
.bh-genre-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 12px;
  padding: 4px 2px 18px;
  margin: 0 0 10px;
  overflow-x: auto;
  overflow-y: clip;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}
.bh-genre-cards::-webkit-scrollbar { display: none; }

.bh-genre-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  min-width: 150px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  touch-action: manipulation;
  background: #111113;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.38s cubic-bezier(0.23, 1, 0.32, 1);
  color: #fff;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.bh-genre-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}
.bh-genre-card:active { transform: scale(0.97); }

.bh-genre-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.38s cubic-bezier(0.23, 1, 0.32, 1);
  filter: saturate(105%) contrast(102%);
}
.bh-genre-card:hover .bh-genre-card__bg { transform: scale(1.06); }

.bh-genre-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.1) 0%, rgba(10,10,12,0.55) 55%, rgba(10,10,12,0.92) 100%);
  pointer-events: none;
}

.bh-genre-card__label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 34px;
  z-index: 2;
  font: 800 20px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.bh-genre-card__sub {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font: 600 10px/1.2 'Manrope', system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

/* Active state — glowing white ring + bright label */
.bh-genre-card.is-active {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 22px rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.55);
}
.bh-genre-card.is-active .bh-genre-card__bg { filter: saturate(115%) contrast(105%); }
.bh-genre-card.is-active .bh-genre-card__sub { color: rgba(255, 255, 255, 0.85); }

/* Responsive: tighter on narrow phones */
@media (max-width: 480px) {
  .bh-genre-cards { grid-auto-columns: minmax(130px, 1fr); gap: 10px; }
  .bh-genre-card { min-width: 130px; border-radius: 0; }
  .bh-genre-card__label { font-size: 17px; bottom: 30px; left: 12px; right: 12px; }
  .bh-genre-card__sub { font-size: 9px; left: 12px; right: 12px; bottom: 10px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   GENRE PICKER — landing state before beats list is revealed
   ════════════════════════════════════════════════════════════════════════ */
.bh-genre-picker {
  padding: 4px 2px 24px;
  /* animation only runs once on initial page load — showPicker() disables it
     inline (style.animation='none') so re-shows are instant and never flicker. */
  animation: bhGenreFadeIn 0.28s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes bhGenreFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bh-genre-picker__head {
  margin: 0 0 18px;
}
.bh-genre-picker__kicker {
  margin: 0 0 6px;
  font: 700 10px/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.bh-genre-picker__title {
  margin: 0 0 8px;
  font: 800 clamp(26px, 5vw, 36px) / 1.05 'Syne', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: #F0EDE8;
}
.bh-genre-picker__sub {
  margin: 0;
  font: 500 14px/1.4 'Manrope', system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.55);
}

/* Grid layout when cards are in the landing picker — 5 per row on desktop */
.bh-genre-cards--grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: initial !important;
  gap: 12px !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bh-genre-cards--grid .bh-genre-card {
  scroll-snap-align: unset;
  aspect-ratio: 1 / 1;
  min-width: 0;
  border-radius: 0;
}
.bh-genre-cards--grid .bh-genre-card__label {
  font-size: 15px;
  bottom: 26px;
  left: 10px;
  right: 10px;
}
.bh-genre-cards--grid .bh-genre-card__sub {
  font-size: 9px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  letter-spacing: 0.1em;
}
/* Tablet: 4 per row */
@media (max-width: 960px) {
  .bh-genre-cards--grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
/* Small tablet: 3 per row */
@media (max-width: 720px) {
  .bh-genre-cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
/* Mobile: horizontal scroll chips — removes the tall grid that blocks vertical page scroll */
@media (max-width: 600px) {
  .bh-genre-cards--grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 8px !important;
    padding: 4px 2px 12px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x !important;
    scrollbar-width: none !important;
  }
  .bh-genre-cards--grid::-webkit-scrollbar { display: none; }

  /* Chip button */
  .bh-genre-cards--grid .bh-genre-card {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    aspect-ratio: unset !important;
    height: 36px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    scroll-snap-align: start !important;
    touch-action: manipulation !important;
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.12) !important;
    transform: none !important;
    box-shadow: none !important;
    transition: background 0.15s, border-color 0.15s !important;
  }
  .bh-genre-cards--grid .bh-genre-card:hover,
  .bh-genre-cards--grid .bh-genre-card:active { transform: none !important; }

  /* Hide everything except the title text */
  .bh-genre-cards--grid .bh-genre-card__cover,
  .bh-genre-cards--grid .bh-genre-card__author,
  .bh-genre-cards--grid .bh-genre-card__foot,
  .bh-genre-cards--grid .bh-genre-card__bg,
  .bh-genre-cards--grid .bh-genre-card__shade { display: none !important; }

  /* Info wrapper → inline */
  .bh-genre-cards--grid .bh-genre-card__info {
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
    position: static !important;
  }

  /* Title chip label */
  .bh-genre-cards--grid .bh-genre-card__title {
    display: block !important;
    position: static !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.75) !important;
    white-space: nowrap !important;
    bottom: auto !important; left: auto !important; right: auto !important;
  }

  /* Active state */
  .bh-genre-cards--grid .bh-genre-card.is-active {
    background: rgba(200,255,0,.12) !important;
    border-color: rgba(200,255,0, 0.4) !important;
  }
  .bh-genre-cards--grid .bh-genre-card.is-active .bh-genre-card__title {
    color: #E8FF88 !important;
  }
}

/* Active-genre header above the filtered list */
.bh-genre-active-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 14px;
  margin: 0 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: bhGenreFadeIn 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
/* The HTML `hidden` attribute must win over the class rule above. */
.bh-genre-active-head[hidden] { display: none !important; }
.beats-list-wrapper[hidden] { display: none !important; }
.bh-library-v3 [hidden] { display: none !important; }
/* Back button — refined pill: icon chip on the left slides on hover.
   Uses scoped + attribute specificity + !important to guarantee win over
   theme button resets, WooCommerce overrides, and any cached rules. */
.bh-genre-active-head button.bh-genre-back,
.bh-library-v3 button.bh-genre-back {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 34px !important;
  padding: 0 14px 0 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font: 600 12px/1 'Manrope', system-ui, sans-serif !important;
  letter-spacing: -0.005em !important;
  text-transform: none !important;
  cursor: pointer !important;
  overflow: hidden !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition:
    background 0.22s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.22s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.22s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.14s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.22s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.bh-genre-active-head button.bh-genre-back:hover,
.bh-library-v3 button.bh-genre-back:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}
.bh-genre-active-head button.bh-genre-back:active { transform: scale(0.97) !important; }
.bh-genre-active-head button.bh-genre-back:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.3),
    0 6px 18px rgba(0, 0, 0, 0.45) !important;
}
.bh-genre-active-head .bh-genre-back .bh-genre-back__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  flex-shrink: 0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0a0a0a !important;
  transition:
    transform 0.22s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.22s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.bh-genre-active-head .bh-genre-back .bh-genre-back__icon svg {
  display: block !important;
  stroke: #0a0a0a !important;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.bh-genre-active-head .bh-genre-back:hover .bh-genre-back__icon svg { transform: translateX(-2px) !important; }
.bh-genre-active-head .bh-genre-back .bh-genre-back__label {
  white-space: nowrap !important;
  display: inline !important;
}
.bh-genre-active-title {
  margin: 0;
  font: 800 18px/1 'Manrope', system-ui, sans-serif;
  color: #f4f4f5;
  letter-spacing: -0.01em;
}
.bh-genre-active-count {
  margin-left: auto;
  font: 600 11px/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .bh-genre-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .bh-genre-cards--grid .bh-genre-card__label { font-size: 14px; }
  .bh-genre-active-title { font-size: 16px; }
  .bh-genre-active-head button.bh-genre-back { padding: 0 4px !important; gap: 0 !important; }
  .bh-genre-active-head .bh-genre-back .bh-genre-back__label { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   GENRE CARDS — catalog variant (matches home "latest beats" cards)
   Cover on top (square), info block below. No overlay label.
   Uses !important sparingly to override the base `.bh-genre-card` rules
   declared earlier in this file.
   ════════════════════════════════════════════════════════════════════════ */
.bh-genre-cards--catalog {
  display: grid !important;
  /* Auto-fill: as many ~140px columns as fit the container.
     Adapts from 2 on narrow phones to 7+ on wide Mac displays. */
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 18px 14px !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
.bh-genre-card--catalog {
  display: flex !important;
  flex-direction: column !important;
  aspect-ratio: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  cursor: pointer;
  color: inherit;
  text-align: left;
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1) !important;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .bh-genre-card--catalog:hover { transform: translateY(-2px) !important; border-color: transparent !important; box-shadow: none !important; }
}
.bh-genre-card--catalog:active { transform: translateY(0) scale(0.97) !important; }

/* Cover — compact square; gradient fallback uses per-card CSS vars so the
   artwork colors show through even if the image is blocked or fails. */
.bh-genre-card--catalog {
  --bh-gc1: #06b6d4;
  --bh-gc2: #0f172a;
  --bh-gc3: #38bdf8;
}
.bh-genre-card--catalog .bh-genre-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, var(--bh-gc3) 0%, transparent 55%),
    linear-gradient(135deg, var(--bh-gc1) 0%, var(--bh-gc2) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.bh-genre-card--catalog .bh-genre-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.bh-genre-card--catalog:hover .bh-genre-card__cover img { transform: scale(1.05); }

/* Decorative play button — white pill for max contrast against dark artwork */
.bh-genre-card--catalog .bh-genre-card__play {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  border: 0;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.bh-genre-card--catalog .bh-genre-card__play i { transform: translateX(1px); }
.bh-genre-card--catalog:hover .bh-genre-card__play {
  opacity: 1;
  transform: translateY(0);
}

/* Info — padding + gap identical to home */
.bh-genre-card--catalog .bh-genre-card__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 2px 2px;
  min-width: 0;
}
.bh-genre-card--catalog .bh-genre-card__title {
  margin: 0;
  font: 600 12px/1.3 'Manrope', system-ui, sans-serif;
  color: #f0f0f0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bh-genre-card--catalog .bh-genre-card__author {
  margin: 0;
  font: 400 10px/1.2 'Manrope', system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bh-genre-card--catalog .bh-genre-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
  gap: 8px;
}
.bh-genre-card--catalog .bh-genre-card__specs {
  font: 400 9px/1 'Manrope', system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  letter-spacing: 0;
  text-transform: none;
}
.bh-genre-card--catalog .bh-genre-card__count {
  font: 700 11px/1 'Manrope', system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Active state — show play button and subtle cover ring */
.bh-genre-card--catalog.is-active .bh-genre-card__play { opacity: 1; transform: translateY(0); }
.bh-genre-card--catalog.is-active .bh-genre-card__cover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.06);
}
.bh-genre-card--catalog.is-active .bh-genre-card__title { color: #fff; }
.bh-genre-card--catalog.is-active .bh-genre-card__count { color: #fff; }

/* Touch: keep play button visible since there's no hover */
@media (hover: none) {
  .bh-genre-card--catalog .bh-genre-card__play { opacity: 1; transform: translateY(0); }
}

/* Narrow phones: shrink min column width so 3 cards still fit comfortably. */
@media (max-width: 560px) {
  .bh-genre-cards--catalog {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 14px 10px !important;
  }
  .bh-genre-card--catalog .bh-genre-card__cover { border-radius: 0; }
  .bh-genre-card--catalog .bh-genre-card__info { padding: 7px 0 2px; gap: 1px; }
  .bh-genre-card--catalog .bh-genre-card__title { font-size: 12px; }
  .bh-genre-card--catalog .bh-genre-card__author { font-size: 10px; }
  .bh-genre-card--catalog .bh-genre-card__specs { font-size: 8px; letter-spacing: 0.1em; }
  .bh-genre-card--catalog .bh-genre-card__count { font-size: 10px; }
}

/* ── All Songs pill row ───────────────────────────────────────────────── */
.bh-songs-all-row {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.14s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
  box-sizing: border-box;
  /* override base .bh-genre-card */
  aspect-ratio: auto !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
  transform: none !important;
  scroll-snap-align: none;
}
.bh-songs-all-row:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.bh-songs-all-row:active {
  transform: scale(0.99) !important;
}
.bh-songs-all-row.is-active { background: rgba(200,255,0, 0.12) !important; border-color: rgba(200,255,0, 0.3) !important; }
.bh-songs-all-row__icon {
  width: 42px; height: 42px; border-radius: 0; flex-shrink: 0;
  background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.bh-songs-all-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bh-songs-all-row__label { font: 600 14px/1 'Manrope', system-ui, sans-serif; }
.bh-songs-all-row__sub { font: 400 11px/1 'Manrope', system-ui, sans-serif; color: rgba(255, 255, 255, 0.38); }
.bh-songs-all-row__count { font: 600 12px/1 'Manrope', system-ui, sans-serif; color: rgba(255, 255, 255, 0.45); flex-shrink: 0; }
.bh-songs-all-row__arrow { font-size: 11px; color: rgba(255, 255, 255, 0.22); flex-shrink: 0; }

/* ── Latest Songs carousel row (inside makers grid) ──────────────────── */
.bh-songs-latest-row {
  grid-column: 1 / -1;
  margin: 4px 0 8px;
}
.bh-songs-latest-row .bh-vc-label { margin-bottom: 10px; }

/* ── Songs Vault — full-width, no constraint ─────────────────────────── */
.js-bh-makers-picker {
  max-width: 100%;
}
.js-bh-makers-picker .bh-genre-cards--catalog {
  justify-items: stretch;
}

/* ── Makers grid section headers ─────────────────────────────────────── */
.bh-makers-section-head {
  grid-column: 1 / -1;
  font: 700 10px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding: 4px 0 2px;
  margin-top: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.bh-makers-section-head:first-child { margin-top: 0; }

/* ── Vault landing carousels (.bh-vc-*) ───────────────────────────────── */
.bh-vc-wrap {
  margin: 0 0 28px;
}
.bh-vc-label {
  margin: 0 0 10px;
  font: 700 10px/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.bh-vc-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding-bottom: 4px;
}
.bh-vc-track::-webkit-scrollbar { display: none; }

.bh-vc-card {
  flex: 0 0 110px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  touch-action: manipulation;
}
.bh-vc-card__art {
  position: relative !important;
  width: 110px;
  height: 110px;
  border-radius: 0;
  overflow: hidden !important;
  background: #181622;
  display: flex;
  align-items: stretch;
}
.bh-vc-play {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}
.bh-vc-play:hover { background: rgba(0,0,0,0.25); }
.bh-vc-play:active { transform: scale(0.97); }
.bh-vc-play .bh-play-icon {
  font-size: 20px;
  color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
  pointer-events: none;
}
.bh-vc-play.is-playing .bh-play-icon { display: none; }
.bh-vc-play.is-playing .bh-eq { display: flex; }
.bh-vc-play .bh-eq { display: none; }

.bh-vc-card__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}
.bh-vc-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 600 12px/1.3 'Manrope', system-ui, sans-serif;
  color: #f4f4f5;
  text-decoration: none;
}
.bh-vc-card__title:hover { color: #E8FF88; }
.bh-vc-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bh-vc-card__meta span {
  font: 500 9px/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
/* Full-card user profile image */
.bh-vc-art-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  z-index: 0;
}

/* Art overlay — dark gradient for readability over thumbnail */
.bh-vc-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Play ring — circle behind the play icon */
.bh-vc-play-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.bh-vc-play:hover .bh-vc-play-ring {
  transform: scale(1.12);
  background: rgba(200,255,0, 0.35);
  border-color: rgba(200,255,0, 0.6);
}
.bh-vc-play.is-playing .bh-vc-play-ring {
  background: rgba(200,255,0, 0.45);
  border-color: rgba(200,255,0, 0.7);
}
.bh-vc-play .bh-play-icon,
.bh-vc-play .bh-eq {
  position: relative;
  z-index: 1;
}

/* Producer avatar chip */
.bh-vc-art-avatar {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.28);
  pointer-events: none;
  z-index: 2;
}

/* BPM badge in art */
.bh-vc-art-bpm {
  position: absolute;
  bottom: 7px;
  right: 7px;
  font: 700 9px/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 2;
}

.bh-vc-wrap--songs .bh-vc-card__title:hover { color: #E8FF88; }

/* Override vault .master-play for carousel cards — take button out of
   absolute-flow so it cannot escape the art container */
.bh-library-v3.bh-library--neutral .bh-vc-card .bh-vc-play.master-play {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  opacity: 1 !important;
  border-radius: 0 !important;
  animation: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.bh-library-v3.bh-library--neutral .bh-vc-card .bh-vc-play.master-play:hover {
  background: rgba(0,0,0,0.28) !important;
  opacity: 1 !important;
}
.bh-library-v3.bh-library--neutral .bh-vc-card .bh-vc-play.master-play.is-playing {
  background: rgba(0,0,0,0.45) !important;
  opacity: 1 !important;
}
@media (hover: none) {
  .bh-library-v3.bh-library--neutral .bh-vc-card .bh-vc-play.master-play {
    opacity: 1 !important;
  }
}

@media (max-width: 560px) {
  .bh-vc-card { flex: 0 0 92px; }
  .bh-vc-card__art { width: 92px; height: 92px; }
  .bh-vc-card__title { font-size: 11px; }
}

/* ==========================================================================
   VAULT v4.1 — Visual Upgrade
   Sharper hierarchy: genre chip accent, playing state, action reveal on hover
   ========================================================================== */

/* ── Genre chip: violet accent so it stands apart from BPM/KEY ── */
.bh-library-v3.bh-library--neutral .track-chip--genre {
  background: rgba(200,255,0, 0.1) !important;
  border-color: rgba(200,255,0, 0.22) !important;
  color: rgba(200,255,0, 0.85) !important;
}

/* ── BPM chip: neutral (differentiates from genre) ── */
.bh-library-v3.bh-library--neutral .track-chip:not(.track-chip--genre) {
  color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

/* ── Track title: 1px larger for readability ── */
.bh-library-v3.bh-library--neutral .track-title {
  font-size: 15px !important;
}

/* ── Producer credit: Manrope instead of Space Mono, more visible ── */
.bh-library-v3.bh-library--neutral .track-sub {
  font: 500 10.5px / 1 'Manrope', system-ui, sans-serif !important;
  letter-spacing: 0.01em !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

/* ── Price: mono for precision look ── */
.bh-library-v3.bh-library--neutral .track-price {
  font: 700 12px / 1 'DM Mono', ui-monospace, monospace !important;
  letter-spacing: 0.02em !important;
}

/* ── Row hover: desktop-only via media query (already set above, keep override consistent) ── */
@media (hover: hover) and (pointer: fine) {
  .bh-library-v3.bh-library--neutral .track-row:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transform: none;
  }
}

/* ── Active/playing row: violet wash ── */
.bh-library-v3.bh-library--neutral .track-row:has(.master-play.is-playing) {
  background: rgba(200,255,0, 0.07) !important;
  border-color: rgba(200,255,0, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(200,255,0, 0.1) !important;
}

/* ── Playing track title: violet tint ── */
.bh-library-v3.bh-library--neutral .track-row:has(.master-play.is-playing) .track-title {
  color: #E8FF88 !important;
}

/* ── Action icons: hidden at rest → reveal on row hover ── */
.bh-library-v3.bh-library--neutral .bh-lib-fav:not(.is-fav),
.bh-library-v3.bh-library--neutral .bh-track-edit-btn {
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              color 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.22s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.bh-library-v3.bh-library--neutral .track-row:hover .bh-lib-fav,
.bh-library-v3.bh-library--neutral .track-row:hover .bh-track-edit-btn {
  opacity: 1;
}
/* Touch: always visible — no hover state on mobile, buttons must be tappable */
@media (hover: none), (max-width: 768px) {
  .bh-library-v3.bh-library--neutral .bh-lib-fav:not(.is-fav),
  .bh-library-v3.bh-library--neutral .bh-track-edit-btn {
    opacity: 1;
  }
}

/* ── Cover placeholder: more vibrant gradient (overrides inline style) ── */
.bh-library-v3.bh-library--neutral .track-cover:not(:has(> img)) {
  background: linear-gradient(145deg, rgba(42, 32, 64, 0.95), rgba(15, 23, 42, 0.95)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

/* Music-note watermark on no-art covers */
.bh-library-v3.bh-library--neutral .track-cover:not(:has(> img))::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 52%;
}

/* ── Play button on no-art covers: slightly more visible at rest ── */
.bh-library-v3.bh-library--neutral .track-cover:not(:has(> img)) .master-play {
  opacity: 0.55 !important;
  background: transparent !important;
}
.bh-library-v3.bh-library--neutral .track-cover:not(:has(> img)) .master-play:hover,
.bh-library-v3.bh-library--neutral .track-row:hover .track-cover:not(:has(> img)) .master-play {
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

/* ── Active genre chip in filter: violet accent ── */
.bh-library-v3.bh-library--neutral .bh-genre-chip.is-active {
  background: rgba(200,255,0, 0.12) !important;
  color: #E8FF88 !important;
  border: 1px solid rgba(200,255,0, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(200,255,0, 0.1) !important;
}

/* ==========================================================================
   VAULT v4.2 — Header + row polish
   ========================================================================== */

/* ── Active-genre header ── */
.bh-genre-active-head {
  padding: 10px 0 16px !important;
  border-bottom: 1px solid rgba(255,255,255,.04) !important;
  margin-bottom: 10px !important;
  gap: 10px !important;
}

/* Title: Syne display weight */
.bh-genre-active-title {
  font: 800 20px/1 'Syne', system-ui, sans-serif !important;
  letter-spacing: -0.02em !important;
  color: #f4f4f8 !important;
}

/* Count: violet badge pill */
.bh-genre-active-count {
  margin-left: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 20px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: rgba(200,255,0, 0.12) !important;
  border: 1px solid rgba(200,255,0, 0.22) !important;
  color: rgba(196, 181, 244, 0.85) !important;
  font: 600 10px/1 'DM Mono', ui-monospace, monospace !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

/* Push Play All to the right */
.bh-genre-active-head {
  flex-wrap: nowrap !important;
}
.bh-genre-active-head .bh-play-all {
  margin-left: auto !important;
}

/* Change-genre back button: subtler pill */
.bh-genre-active-head button.bh-genre-back,
.bh-library-v3 button.bh-genre-back {
  height: 30px !important;
  font-size: 11px !important;
  color: rgba(255,255,255,.65) !important;
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.07) !important;
}
.bh-genre-active-head button.bh-genre-back:hover,
.bh-library-v3 button.bh-genre-back:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.15) !important;
}
.bh-genre-active-head .bh-genre-back .bh-genre-back__icon {
  width: 20px !important;
  height: 20px !important;
  background: rgba(255,255,255,.15) !important;
  color: rgba(255,255,255,.9) !important;
}
.bh-genre-active-head .bh-genre-back .bh-genre-back__icon svg { stroke: currentColor !important; }

/* Play All button: violet accent pill */
.bh-library-v3 .bh-play-all,
.bh-genre-active-head button.bh-play-all {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 32px !important;
  padding: 0 14px 0 8px !important;
  border-radius: 999px !important;
  background: rgba(200,255,0, 0.12) !important;
  border: 1px solid rgba(200,255,0,.22) !important;
  color: #E8FF88 !important;
  font: 600 12px/1 'Manrope', sans-serif !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(200,255,0, 0.1) !important;
  transition: all 180ms cubic-bezier(0.23, 1, 0.32, 1) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .bh-library-v3 .bh-play-all:hover,
  .bh-genre-active-head button.bh-play-all:hover {
    background: rgba(200,255,0, 0.2) !important;
    border-color: rgba(200,255,0, 0.4) !important;
    box-shadow: inset 0 1px 0 rgba(200,255,0,.12), 0 0 20px rgba(200,255,0, 0.1) !important;
  }
}
.bh-genre-active-head button.bh-play-all:active,
.bh-library-v3 .bh-play-all:active {
  transform: scale(0.97) !important;
}

/* Filters button: more visible */
.bh-library-v3.bh-library--neutral .nav-and-sort {
  margin-bottom: 12px !important;
}

/* ── Track number: DM Mono, slightly brighter ── */
.bh-library-v3.bh-library--neutral .track-cover::before {
  font: 600 10px/1 'DM Mono', ui-monospace, monospace !important;
  color: rgba(255,255,255,.3) !important;
  letter-spacing: .04em !important;
}

/* ── Track row: tighter padding for density ── */
.bh-library-v3.bh-library--neutral .track-row {
  padding: 9px 12px 9px 10px !important;
  margin-bottom: 3px !important;
  gap: 12px !important;
}

/* ── Producer credit: dimmer so title stands out more ── */
.bh-library-v3.bh-library--neutral .track-sub--credits {
  gap: 3px !important;
}
.bh-library-v3.bh-library--neutral .track-sub--credits .track-sub-icon {
  opacity: .35 !important;
}

/* ── Price: larger, DM Mono, accent color more vivid ── */
.bh-library-v3.bh-library--neutral .track-price {
  font: 700 13px/1 'DM Mono', ui-monospace, monospace !important;
  color: rgba(255,255,255,.9) !important;
  letter-spacing: -.02em !important;
}

/* ── Chip height: 1px taller ── */
.bh-library-v3.bh-library--neutral .track-chip {
  height: 18px !important;
  font-size: 9.5px !important;
}
@media (max-width: 768px) {
  .bh-library-v3.bh-library--neutral .track-chip {
    font-size: 11px !important;
    height: 20px !important;
  }
}

/* ── Key chip: green tint to differentiate from BPM/genre ── */
.bh-library-v3.bh-library--neutral .track-chip--key {
  color: rgba(167, 243, 208, 0.75) !important;
  background: rgba(52, 211, 153, 0.06) !important;
  border-color: rgba(52, 211, 153, 0.18) !important;
}
/* ── BPM chip: neutral muted ── */
.bh-library-v3.bh-library--neutral .track-chip--bpm {
  color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

/* ── Cover: slightly rounded square — tighter to row ── */
.bh-library-v3.bh-library--neutral .track-cover {
  border-radius: 0 !important;
  width: 52px !important;
  height: 52px !important;
}

/* ── Right side: tighter gap ── */
.bh-library-v3.bh-library--neutral .track-right {
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
}
/* La etiqueta "from" la rinde el span .bh-lp-from dentro del pill de licencia;
   el pseudo ::before aquí duplicaba el "FROM". Eliminado para una sola fuente. */

/* ── Empty-state cuando el filtro no deja beats visibles ── */
.bh-library-v3 .bh-vault-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 20px;
  text-align: center;
}
.bh-library-v3 .bh-vault-empty__title {
  margin: 0;
  font: 600 14px/1.4 'DM Mono', ui-monospace, monospace;
  letter-spacing: .04em;
  color: rgba(255,255,255,.6);
}
.bh-library-v3 .bh-vault-empty__reset {
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font: 700 11px/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .15s, background .15s;
}
.bh-library-v3 .bh-vault-empty__reset:hover {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.05);
}

/* ── Empty area below vault list: min height so footer doesn't jump ── */
.bh-library-v3.bh-library--neutral .track-row-container:last-child {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   VAULT v5 — Genre + Songs vault visual refresh
   ========================================================================== */

/* ── Hide beat count from genre cards and active-head ── */
.bh-genre-card__count { display: none !important; }
.bh-genre-active-count { display: none !important; }

/* ── Genre card: bigger, bolder play button ── */
.bh-genre-card--catalog .bh-genre-card__play {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  bottom: 8px !important;
  left: 8px !important;
  background: rgba(200,255,0, 0.88) !important;
  color: #fff !important;
  box-shadow:
    0 4px 16px rgba(200,255,0, 0.4),
    0 2px 6px rgba(0,0,0,0.45) !important;
  border: 1.5px solid rgba(255,255,255,0.18) !important;
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.22s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.22s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.bh-genre-card--catalog .bh-genre-card__play i {
  transform: translateX(1.5px) !important;
  font-size: 12px !important;
}
.bh-genre-card--catalog:hover .bh-genre-card__play {
  background: #C8FF00 !important;
  box-shadow:
    0 6px 22px rgba(200,255,0, 0.55),
    0 2px 8px rgba(0,0,0,0.5) !important;
  transform: scale(1.06) translateY(0) !important;
}
/* Always show play on touch devices */
@media (hover: none) {
  .bh-genre-card--catalog .bh-genre-card__play {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* ── Genre card: enhanced hover lift + border glow ── */
.bh-genre-card--catalog:hover {
  transform: translateY(-7px) !important;
}
.bh-genre-card--catalog:hover .bh-genre-card__cover {
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.25),
    0 14px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(200,255,0, 0.12) !important;
}

/* ── Genre card title: slightly larger ── */
.bh-genre-card--catalog .bh-genre-card__title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.88) !important;
}
.bh-genre-card--catalog:hover .bh-genre-card__title {
  color: #fff !important;
}
.bh-genre-card--catalog .bh-genre-card__author {
  font-size: 10px !important;
  color: rgba(255,255,255,0.28) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Genre card: hide specs line (redundant) ── */
.bh-genre-card--catalog .bh-genre-card__specs {
  display: none;
}

/* ── Genre grid: tighter gap, slightly bigger min card ── */
.bh-genre-cards--catalog.js-bh-genre-cards {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  gap: 14px 10px !important;
}

/* ── Songs maker cards: bigger play centered, smaller min ── */
.js-bh-makers-picker .bh-genre-card--maker .bh-genre-card__play {
  width: 42px !important;
  height: 42px !important;
  top: 42% !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-50%) scale(0.85) !important;
  opacity: 0 !important;
  background: rgba(200,255,0, 0.88) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(200,255,0, 0.45) !important;
  border: 1.5px solid rgba(255,255,255,0.2) !important;
}
.js-bh-makers-picker .bh-genre-card--maker:hover .bh-genre-card__play {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(-50%) scale(1) !important;
}
@media (hover: none) {
  .js-bh-makers-picker .bh-genre-card--maker .bh-genre-card__play {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(-50%) scale(1) !important;
  }
}

/* ── Songs maker grid: wider, more columns ── */
.js-bh-makers-picker .bh-genre-cards--catalog {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
  gap: 10px !important;
  max-width: 100% !important;
}

/* ── Maker card name: slightly larger ── */
.js-bh-makers-picker .bh-genre-card--maker .bh-genre-card__title {
  font-size: 12px !important;
  letter-spacing: -0.01em !important;
}
.js-bh-makers-picker .bh-genre-card--maker .bh-genre-card__count {
  display: block !important;
  font-size: 9px !important;
  color: rgba(255,255,255,0.38) !important;
}

/* ── Maker card: stronger hover lift ── */
.js-bh-makers-picker .bh-genre-card--maker:hover {
  transform: translateY(-4px) !important;
}
.js-bh-makers-picker .bh-genre-card--maker:hover .bh-genre-card__cover {
  box-shadow:
    0 10px 28px rgba(0,0,0,0.5),
    inset 0 0 0 1.5px rgba(255,255,255,0.2) !important;
}

/* ── VC carousel: bigger cards ── */
.bh-vc-card {
  flex: 0 0 120px !important;
}
.bh-vc-card__art {
  width: 120px !important;
  height: 120px !important;
}

/* ── VC carousel play ring: more prominent ── */
.bh-vc-play-ring {
  width: 40px !important;
  height: 40px !important;
  background: rgba(0,0,0,0.5) !important;
  border-color: rgba(255,255,255,0.4) !important;
}
.bh-vc-play:hover .bh-vc-play-ring {
  background: rgba(200,255,0, 0.45) !important;
  border-color: rgba(200,255,0, 0.7) !important;
  transform: scale(1.14) !important;
}
.bh-vc-play .bh-play-icon {
  font-size: 16px !important;
}

/* ── Section header label: tighten spacing ── */
.bh-vc-label {
  color: rgba(255,255,255,0.35) !important;
  font-size: 9px !important;
  letter-spacing: 0.24em !important;
}

/* ── Picker head title ── */
.bh-picker-head__title {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(20px, 3vw, 26px) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.04em !important;
}

/* ── Active genre card: violet ring ── */
.bh-genre-card--catalog.is-active .bh-genre-card__cover {
  box-shadow:
    inset 0 0 0 2px rgba(200,255,0, 0.8),
    0 0 0 3px rgba(200,255,0,.12) !important;
}

@media (max-width: 560px) {
  .js-bh-makers-picker .bh-genre-cards--catalog {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 7px !important;
  }
  .bh-genre-cards--catalog.js-bh-genre-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 8px !important;
  }
  .bh-vc-card { flex: 0 0 96px !important; }
  .bh-vc-card__art { width: 96px !important; height: 96px !important; }
}

/* ==========================================================================
   CARD POLISH — v8.0 additions
   Baseline shadow, hover lift, uniform radius, improved easing
   ========================================================================== */

/* Baseline shadow on all card-like surfaces */
.bh-library-v3 .bh-genre-card,
.bh-library-v3 .bh-genre-card__cover,
.bh-library-v3 .bh-ps-card,
.bh-library-v3 .bh-vc-card,
.bh-library-v3 .library-profile-preview,
.bh-library-v3 .bh-price-card {
  box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.03) inset;
  border-radius: 0;
  transition: all 220ms cubic-bezier(0.19,1,0.22,1);
}

/* Hover lift */
@media (hover: hover) and (pointer: fine) {
  .bh-library-v3 .bh-genre-card:hover,
  .bh-library-v3 .bh-ps-card:hover,
  .bh-library-v3 .bh-vc-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.06) inset;
    transform: translateY(-2px);
  }
}

/* Replace any legacy .2s transitions with the better easing */
.bh-library-v3 .track-row {
  transition: background 220ms cubic-bezier(0.19,1,0.22,1),
              border-color 220ms cubic-bezier(0.19,1,0.22,1),
              box-shadow 220ms cubic-bezier(0.19,1,0.22,1),
              transform 140ms cubic-bezier(0.19,1,0.22,1) !important;
}

/* Genre picker cards: uniform radius */
.bh-library-v3 .bh-genre-card__cover {
  border-radius: 0 !important;
}

/* Maker picker cards — reuse same shadow/radius */
.js-bh-makers-picker .bh-genre-card--maker .bh-genre-card__cover {
  box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.03) inset;
  border-radius: 0 !important;
  transition: all 220ms cubic-bezier(0.19,1,0.22,1);
}

/* Product type badges — v2 */
.bh-type-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  font: 700 7px/1 'DM Mono', monospace !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  border: 1px solid transparent !important;
}
.bh-type-badge--beat {
  background: rgba(200,255,0,.1) !important;
  border-color: rgba(200,255,0,.22) !important;
  color: rgba(200,255,0,.9) !important;
}
.bh-type-badge--beat::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C8FF00;
}
.bh-type-badge--song {
  background: rgba(200,255,0,.1) !important;
  border-color: rgba(200,255,0,.25) !important;
  color: #C8FF00 !important;
}
.bh-type-badge--song::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C8FF00;
}

/* ── Skeleton loaders for track rows ──────────────────────────── */
@keyframes bhSkeletonShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.bh-library-v3 .bh-track-row--skeleton,
.bh-library-v3 .bh-skel {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 400px 100%;
  animation: bhSkeletonShimmer 1.4s ease infinite;
}

.bh-library-v3 .bh-track-row--skeleton .bh-track__art {
  width: 40px; height: 40px;
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 400px 100%;
  animation: bhSkeletonShimmer 1.4s ease infinite;
}

.bh-library-v3 .bh-track-row--skeleton .bh-track__title,
.bh-library-v3 .bh-track-row--skeleton .bh-track__artist {
  height: 12px;
  border-radius: 0;
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 400px 100%;
  animation: bhSkeletonShimmer 1.4s ease infinite;
}

/* ── Content-visibility for off-screen sections ──────────────── */
.bh-library-v3 .bh-tracklist-section + .bh-tracklist-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* ── GPU layers for animated elements only ──────────────────── */
.bh-library-v3 .bh-track__play-btn,
.bh-library-v3 .bh-waveform-canvas {
  will-change: transform;
  transform: translateZ(0);
}
