/* ============================================================
   BeatsHouse Home Redesign v2
   Covers: spotlight panel, catalog strip v2, mini player v2,
           producers strip, general hero polish.
   All selectors scoped to avoid leakage.
   ============================================================ */

/* ── Design tokens (local) ── */
:root {
  --bh-spot-radius: 18px;
  --bh-cat-radius: 0px;
  --bh-mp-radius: 0px;
  --bh-ps-radius: 0px;
  --bh-amber: #22B6FF;
  --bh-amber-dim: rgba(34,182,255,.12);
  --bh-amber-glow: rgba(34,182,255,.28);
  --bh-periwinkle: rgba(34,182,255,.08);
  --bh-surface: rgba(0,0,0,.9);
  --bh-surface-2: #080808;
  --bh-text: #F0EDE8;
  --bh-muted: rgba(240,237,232,.48);
  --bh-faint: rgba(240,237,232,.24);
  --bh-ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ============================================================
   SPOTLIGHT PANEL (replaces mastering promo card)
   ============================================================ */
.bh-ch-spotlight {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  /* Glass treatment matched to .bh-ch-desc (the left copy panel) so the two
     cards read as one visual language instead of two unrelated boxes. */
  background: rgba(4,8,14,.55);
  border: 1px solid rgba(34,182,255,.14);
  border-radius: var(--bh-spot-radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: transform .3s var(--bh-ease-out), box-shadow .3s;
}

.bh-ch-spotlight:hover {
  transform: translateY(calc(-50% - 4px));
  box-shadow: 0 32px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06), 0 0 40px var(--bh-amber-dim);
}

/* Cover image area */
.bh-ch-spot-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(4,8,14,.9);
}

.bh-ch-spot-cover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: rgba(4,8,14,.9);
  /* Same de-saturate/darken treatment as the marquee cover cards
     (image_scroll.php .bhsx-card__img) so cover art recedes into the scene
     instead of sitting as a bright, unrelated rectangle. */
  filter: saturate(.88) brightness(.84) contrast(1.04);
  transition: transform .6s var(--bh-ease-out), filter .3s;
}

.bh-ch-spotlight:hover .bh-ch-spot-cover {
  transform: scale(1.06);
  filter: saturate(1) brightness(1) contrast(1);
}

/* Animated waveform bars over cover */
.bh-ch-spot-bars {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.bh-ch-spot-bars span {
  display: block;
  width: 3px;
  border-radius: 0;
  background: var(--bh-amber);
  transform-origin: bottom;
  animation: bhSpotBar 1.2s ease-in-out infinite;
}

.bh-ch-spot-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.bh-ch-spot-bars span:nth-child(2) { height: 80%; animation-delay: .15s; }
.bh-ch-spot-bars span:nth-child(3) { height: 100%; animation-delay: .3s; }
.bh-ch-spot-bars span:nth-child(4) { height: 65%; animation-delay: .45s; }
.bh-ch-spot-bars span:nth-child(5) { height: 40%; animation-delay: .6s; }

@keyframes bhSpotBar {
  0%, 100% { transform: scaleY(1); opacity: .8; }
  50% { transform: scaleY(.35); opacity: .4; }
}

/* Gradient glow at bottom of cover */
.bh-ch-spot-glow {
  position: absolute;
  inset: 0;
  /* Dims the WHOLE cover (not just the bottom) so bright/saturated art
     doesn't sit as a raw, undimmed block above the title — matches the
     scrim-over-full-image treatment used elsewhere in the hero. */
  background: linear-gradient(180deg, rgba(4,8,14,.32) 0%, rgba(4,8,14,.14) 45%, rgba(6,5,10,.92) 100%);
  pointer-events: none;
}

/* Metadata section */
.bh-ch-spot-meta {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bh-ch-spot-eyebrow {
  font: 600 9px/1 'Manrope', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bh-amber);
  margin: 0;
}

.bh-ch-spot-title {
  font: 700 14px/1.2 'Syne', sans-serif;
  color: var(--bh-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bh-ch-spot-creator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bh-ch-spot-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(34,182,255,.3);
  flex-shrink: 0;
}

.bh-ch-spot-creator-name {
  font: 500 11px/1 'Manrope', sans-serif;
  color: var(--bh-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bh-ch-spot-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.bh-ch-spot-chip {
  font: 600 9px/1 'Manrope', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bh-muted);
  background: rgba(34,182,255,.08);
  border: 1px solid rgba(34,182,255,.14);
  border-radius: 0;
  padding: 3px 6px;
}

/* P3: this and .bh-ch-desc-cta ("Get My Beats") were BOTH solid brand-blue —
   two equal-weight primary CTAs fighting for the same first glance. Get My
   Beats (the catalog-wide entry point) stays primary; this one (tied to
   whichever single beat happens to be "Now Playing") is now outline. */
.bh-ch-spot-cta {
  display: inline-block;
  margin-top: 4px;
  background: rgba(34,182,255,.08);
  border: 1px solid rgba(34,182,255,.4);
  color: var(--bh-amber);
  font: 700 10px/1 'Manrope', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 0;
  text-decoration: none;
  text-align: center;
  transition: background .2s, border-color .2s, transform .15s;
}

.bh-ch-spot-cta:hover {
  background: rgba(34,182,255,.16);
  border-color: rgba(34,182,255,.6);
  transform: translateY(-1px);
}

/* Hide on mobile */
@media (max-width: 900px) {
  .bh-ch-spotlight { display: none; }
}


/* ============================================================
   CATALOG STRIP v2 — bigger cards with cover + producer
   ============================================================ */
#bh-ch-catalog-strip {
  display: flex;
  gap: 10px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#bh-ch-catalog-strip::-webkit-scrollbar { display: none; }

.bh-ch-cat-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--bh-surface);
  border: 1px solid rgba(34,182,255,.12);
  border-radius: var(--bh-cat-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s var(--bh-ease-out), border-color .22s, box-shadow .22s;
}

.bh-ch-cat-card:hover,
.bh-ch-cat-card.is-active {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--bh-amber);
  box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 20px var(--bh-amber-dim);
}

/* Cover image */
.bh-ch-cat-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(16,13,24,.9);
}

.bh-ch-cat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--bh-ease-out);
}

.bh-ch-cat-card:hover .bh-ch-cat-cover img {
  transform: scale(1.07);
}

/* Play overlay */
.bh-ch-cat-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,5,10,.45);
  opacity: 0;
  transition: opacity .2s;
}

.bh-ch-cat-card:hover .bh-ch-cat-play-overlay,
.bh-ch-cat-card.is-active .bh-ch-cat-play-overlay {
  opacity: 1;
}

.bh-ch-cat-play-overlay svg {
  width: 32px;
  height: 32px;
  fill: var(--bh-amber);
  filter: drop-shadow(0 0 8px var(--bh-amber));
}

/* Track number badge */
.bh-ch-cat-num {
  position: absolute;
  top: 7px;
  left: 8px;
  font: 700 10px/1 'DM Mono', monospace;
  color: var(--bh-text);
  background: rgba(6,5,10,.65);
  border-radius: 0;
  padding: 3px 5px;
  letter-spacing: .04em;
}

/* Info area */
.bh-ch-cat-info {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bh-ch-cat-title {
  font: 700 12px/1.2 'Syne', sans-serif;
  color: var(--bh-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Producer row */
.bh-ch-cat-producer {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bh-ch-cat-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(34,182,255,.3);
  flex-shrink: 0;
}

.bh-ch-cat-pname {
  font: 500 10px/1 'Manrope', sans-serif;
  color: var(--bh-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chips */
.bh-ch-cat-chips {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.bh-ch-cat-chip {
  font: 600 9px/1 'Manrope', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bh-faint);
  background: rgba(34,182,255,.08);
  border: 1px solid rgba(34,182,255,.1);
  border-radius: 0;
  padding: 2px 5px;
  white-space: nowrap;
}

.bh-ch-cat-chip--genre {
  color: var(--bh-amber);
  background: var(--bh-amber-dim);
  border-color: rgba(34,182,255,.18);
}

.bh-ch-cat-price {
  font: 700 11px/1 'Manrope', sans-serif;
  color: var(--bh-amber);
  margin: 0;
}


/* ============================================================
   MINI PLAYER v2 — redesigned with cover art + waveform
   ============================================================ */
#bh-ch-mini-player {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  width: min(480px, calc(100vw - 32px));
  transition: transform .35s var(--bh-ease-out), opacity .35s;
}

#bh-ch-mini-player.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Idle state */
.bh-ch-mp-idle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bh-surface);
  border: 1px solid rgba(34,182,255,.14);
  border-radius: 999px;
  padding: 10px 20px;
  font: 500 12px/1 'Manrope', sans-serif;
  color: var(--bh-muted);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bh-ch-mp-idle svg {
  width: 16px;
  height: 16px;
  opacity: .5;
}

/* Active state — full player card */
.bh-ch-mp-active {
  display: none;
  background: var(--bh-surface-2);
  border: 1px solid rgba(34,182,255,.16);
  border-radius: var(--bh-mp-radius);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  flex-direction: row;
  gap: 0;
}

.bh-ch-mp-active.is-showing { display: flex; }

/* Cover art square */
.bh-ch-mp-art {
  position: relative;
  flex-shrink: 0;
  width: 90px;
  aspect-ratio: 1 / 1;
  background: rgba(16,13,24,.9);
  overflow: hidden;
}

.bh-ch-mp-art-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .5s var(--bh-ease-out);
}

.bh-ch-mp-active:hover .bh-ch-mp-art-img {
  transform: scale(1.05);
}

.bh-ch-mp-art svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  fill: rgba(242,237,228,.2);
}

/* Waveform bars on cover */
.bh-ch-mp-wave {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.bh-ch-mp-wave span {
  display: block;
  width: 2px;
  border-radius: 0;
  background: var(--bh-amber);
  transform-origin: bottom;
  opacity: 0;
  transition: opacity .3s;
}

.bh-ch-mp-active.is-showing .bh-ch-mp-wave span {
  opacity: 1;
  animation: bhMpBar 1s ease-in-out infinite;
}

.bh-ch-mp-wave span:nth-child(1) { height: 35%; animation-delay: 0s; }
.bh-ch-mp-wave span:nth-child(2) { height: 70%; animation-delay: .1s; }
.bh-ch-mp-wave span:nth-child(3) { height: 100%; animation-delay: .2s; }
.bh-ch-mp-wave span:nth-child(4) { height: 85%; animation-delay: .15s; }
.bh-ch-mp-wave span:nth-child(5) { height: 60%; animation-delay: .05s; }
.bh-ch-mp-wave span:nth-child(6) { height: 80%; animation-delay: .25s; }
.bh-ch-mp-wave span:nth-child(7) { height: 40%; animation-delay: .3s; }

@keyframes bhMpBar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.3); }
}

/* Body (info + controls) */
.bh-ch-mp-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
}

.bh-ch-mp-info { display: flex; flex-direction: column; gap: 2px; }

.bh-ch-mp-title {
  font: 700 13px/1.2 'Syne', sans-serif;
  color: var(--bh-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bh-ch-mp-creator {
  font: 500 10px/1 'Manrope', sans-serif;
  color: var(--bh-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta chips row */
.bh-ch-mp-meta {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.bh-ch-mp-chip {
  font: 600 9px/1 'Manrope', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bh-faint);
  background: rgba(34,182,255,.08);
  border: 1px solid rgba(34,182,255,.1);
  border-radius: 0;
  padding: 2px 5px;
}

/* Controls row */
.bh-ch-mp-controls { display: flex; flex-direction: column; gap: 5px; }

.bh-ch-mp-bar-wrap {
  height: 2px;
  background: rgba(34,182,255,.14);
  border-radius: 0;
  overflow: hidden;
}

.bh-ch-mp-bar {
  height: 100%;
  background: var(--bh-amber);
  border-radius: 0;
  width: 0%;
  transition: width .15s linear;
}

.bh-ch-mp-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bh-ch-mp-play {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bh-amber);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}

.bh-ch-mp-play:hover { background: #E8FF88; transform: scale(1.08); }

.bh-ch-mp-ico {
  width: 14px;
  height: 14px;
  fill: #000;
}

.bh-ch-mp-label {
  font: 500 9px/1 'Manrope', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bh-faint);
  flex: 1;
}

.bh-ch-mp-buy {
  flex-shrink: 0;
  font: 700 9px/1 'Manrope', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #000;
  background: var(--bh-amber);
  padding: 5px 9px;
  border-radius: 0;
  text-decoration: none;
  transition: background .15s;
}

.bh-ch-mp-buy:hover { background: #E8FF88; }

.bh-ch-mp-unlock { display: none !important; }


/* ============================================================
   PRODUCERS STRIP
   ============================================================ */
.bh-producers-strip {
  padding: 72px 24px 64px;
  background: linear-gradient(180deg, #000 0%, #080808 60%, #000 100%);
  position: relative;
  overflow: hidden;
}

/* Background texture */
.bh-producers-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(34,182,255,.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(34,182,255,.05) 0%, transparent 70%);
  pointer-events: none;
}

.bh-ps-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Header */
.bh-ps-hd {
  text-align: center;
  margin-bottom: 48px;
}

.bh-ps-title {
  font: 700 36px/1 'Syne', sans-serif;
  color: var(--bh-text, #F2EDE4);
  margin: 0 0 8px;
  letter-spacing: -.02em;
}

.bh-ps-sub {
  font: 400 14px/1 'Manrope', sans-serif;
  color: var(--bh-muted, rgba(242,237,228,.48));
  margin: 0;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Grid */
.bh-ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* Producer card */
.bh-ps-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(12,10,20,.7);
  border: 1px solid rgba(34,182,255,.1);
  border-radius: var(--bh-ps-radius);
  padding: 24px 16px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .28s var(--bh-ease-out), border-color .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
}

.bh-ps-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,182,255,.06) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.bh-ps-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,182,255,.3);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 24px rgba(34,182,255,.08);
}

.bh-ps-card:hover::before { opacity: 1; }

/* Avatar */
.bh-ps-card-cover {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bh-ps-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(34,182,255,.25);
  display: block;
  transition: border-color .22s;
}

.bh-ps-card:hover .bh-ps-avatar {
  border-color: rgba(34,182,255,.7);
}

.bh-ps-card-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,182,255,.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}

.bh-ps-card:hover .bh-ps-card-glow { opacity: 1; }

/* Card info */
.bh-ps-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.bh-ps-name {
  font: 700 13px/1.2 'Syne', sans-serif;
  color: #F2EDE4;
  display: block;
}

.bh-ps-cnt {
  font: 500 10px/1 'Manrope', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bh-amber);
  display: block;
}

.bh-ps-bio {
  font: 400 10px/1.4 'Manrope', sans-serif;
  color: rgba(242,237,228,.38);
  display: block;
  max-width: 140px;
}

/* CTA */
.bh-ps-card-action {
  font: 700 9px/1 'Manrope', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(34,182,255,.6);
  transition: color .2s;
  margin-top: 4px;
}

.bh-ps-card:hover .bh-ps-card-action { color: var(--bh-amber); }

/* Responsive */
@media (max-width: 768px) {
  .bh-producers-strip { padding: 48px 16px 40px; }
  .bh-ps-title { font-size: 26px; }
  .bh-ps-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .bh-ps-card { padding: 18px 12px 16px; }
  .bh-ps-card-cover { width: 64px; height: 64px; }
}

@media (max-width: 480px) {
  .bh-ps-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   GENERAL HERO POLISH
   ============================================================ */

/* Waveform bars — paused when mini player not active */
#bh-ch-mini-player:not(.is-open) .bh-ch-mp-wave span { opacity: 0; }

/* Catalog strip scrollbar track removed */
.bh-ch-catalog-strip { padding-bottom: 4px; }

/* Active card amber underline */
.bh-ch-cat-card.is-active .bh-ch-cat-title { color: var(--bh-amber); }

/* Spotlight entrance animation */
@keyframes bhSpotIn {
  from { opacity: 0; transform: translateY(calc(-50% + 20px)) scale(0.96); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

.bh-ch-spotlight {
  animation: bhSpotIn .7s var(--bh-ease-out) .6s both;
}


/* ═══════════════════════════════════
   Mini Player v2 Redesign
   ═══════════════════════════════════ */

.bh-ch-mini-player {
  background: rgba(6,5,10,.92) !important;
  border: 1px solid rgba(34,182,255,.14) !important;
  border-radius: 0 !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.03) inset !important;
  min-width: min(320px, calc(100vw - 32px)) !important;
  max-width: 380px !important;
  overflow: hidden !important;
}

/* Cover art: taller, full-width at top */
.bh-ch-mp-art {
  width: 100% !important;
  height: 180px !important;
  position: relative !important;
  flex-shrink: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

#bh-ch-mp-thumb {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform .4s cubic-bezier(0.19,1,0.22,1) !important;
}
.bh-ch-mini-player:hover #bh-ch-mp-thumb { transform: scale(1.04) !important; }

/* Gradient overlay on cover */
.bh-ch-mp-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(6,5,10,.85) 100%);
  pointer-events: none;
}

/* Waveform bars at bottom of cover */
#bh-ch-mp-wave {
  position: absolute !important;
  bottom: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 3px !important;
  height: 28px !important;
}
#bh-ch-mp-wave span {
  width: 3px !important;
  border-radius: 0 2px 0 0 !important;
  background: rgba(34,182,255,.85) !important;
  animation: bhMpBar .9s ease-in-out infinite alternate !important;
}

/* Body: info + controls below cover */
.bh-ch-mp-body {
  padding: 14px 16px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.bh-ch-mp-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

#bh-ch-mp-title {
  font: 700 13px/1.2 'Syne', system-ui, sans-serif !important;
  color: rgba(255,255,255,.92) !important;
  letter-spacing: -.01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}
#main #bh-ch-mp-title {
  font: 700 13px/1.2 'Syne', system-ui, sans-serif !important;
  color: rgba(255,255,255,.92) !important;
}

#bh-ch-mp-creator {
  font: 500 10px/1 'Manrope', system-ui, sans-serif !important;
  color: rgba(255,255,255,.42) !important;
  margin: 0 !important;
}

/* Controls row: progress + play + buy */
.bh-ch-mp-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bh-ch-mp-bar {
  flex: 1 !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.1) !important;
  position: relative !important;
  cursor: pointer !important;
  overflow: hidden !important;
}
.bh-ch-mp-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: #22B6FF;
  border-radius: 999px;
  transition: width .1s linear;
  pointer-events: none;
}

#bh-ch-mp-play {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #22B6FF !important;
  border: none !important;
  color: #000 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 12px rgba(34,182,255,.3) !important;
  transition: opacity .15s ease, transform .12s ease !important;
}
#bh-ch-mp-play:hover { opacity: .88 !important; }
#bh-ch-mp-play:active { transform: scale(.94) !important; }

.bh-ch-mp-prev {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.6) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background .15s ease !important;
}
.bh-ch-mp-prev:hover { background: rgba(255,255,255,.12) !important; }

#bh-ch-mp-buy {
  padding: 7px 14px !important;
  border-radius: 0 !important;
  background: rgba(34,182,255,.1) !important;
  border: 1px solid rgba(34,182,255,.22) !important;
  color: #22B6FF !important;
  font: 700 9px/1 'Manrope', system-ui, sans-serif !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: background .15s ease !important;
}
#bh-ch-mp-buy:hover {
  background: rgba(34,182,255,.18) !important;
  text-decoration: none !important;
  color: #22B6FF !important;
}


/* ═══════════════════════════════════
   Catalog Strip Cards v2
   ═══════════════════════════════════ */

.bh-ch-cat-card {
  width: 160px !important;
  flex-shrink: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(34,182,255,.1) !important;
  cursor: pointer !important;
  transition: transform .22s cubic-bezier(0.19,1,0.22,1),
              border-color .22s ease,
              box-shadow .22s ease !important;
  scroll-snap-align: start !important;
}
.bh-ch-cat-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(34,182,255,.3) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.55) !important;
}
.bh-ch-cat-card.is-active {
  border-color: rgba(34,182,255,.45) !important;
  box-shadow: 0 0 0 1px rgba(34,182,255,.2), 0 0 20px rgba(34,182,255,.15) !important;
}

.bh-ch-cat-cover {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  position: relative !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.04) !important;
}
.bh-ch-cat-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .38s cubic-bezier(0.19,1,0.22,1) !important;
}
.bh-ch-cat-card:hover .bh-ch-cat-cover img { transform: scale(1.06) !important; }

/* Track number badge */
.bh-ch-cat-num {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  font: 700 9px/1 'DM Mono', monospace !important;
  color: rgba(255,255,255,.5) !important;
  background: rgba(6,5,10,.7) !important;
  border-radius: 0 !important;
  padding: 3px 6px !important;
  letter-spacing: .06em !important;
}

/* Play overlay */
.bh-ch-cat-play-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(6,5,10,.5) !important;
  opacity: 0 !important;
  transition: opacity .2s !important;
}
.bh-ch-cat-card:hover .bh-ch-cat-play-overlay,
.bh-ch-cat-card.is-active .bh-ch-cat-play-overlay { opacity: 1 !important; }

/* Info section */
.bh-ch-cat-info {
  padding: 10px 10px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
.bh-ch-cat-title {
  font: 600 11px/1.2 'Syne', system-ui, sans-serif !important;
  color: rgba(255,255,255,.88) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}
.bh-ch-cat-producer {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.bh-ch-cat-avatar {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(34,182,255,.2) !important;
}
.bh-ch-cat-pname {
  font: 500 9px/1 'Manrope', system-ui, sans-serif !important;
  color: rgba(255,255,255,.38) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.bh-ch-cat-chips {
  display: flex !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}
.bh-ch-cat-chip {
  font: 600 7px/1 'DM Mono', monospace !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: rgba(34,182,255,.7) !important;
  background: rgba(34,182,255,.08) !important;
  border: 1px solid rgba(34,182,255,.15) !important;
  border-radius: 0 !important;
  padding: 2px 5px !important;
  white-space: nowrap !important;
}
.bh-ch-cat-price {
  font: 700 11px/1 'DM Mono', monospace !important;
  color: rgba(255,255,255,.6) !important;
  margin: 0 !important;
}


/* ══════════════════════════════════════════════════════════
   HOME FEED REDESIGN v3
   Scope: .bh-home-v5
   - Amber-accented section headers
   - Beat/Song card: visible cover thumbnail + amber play
   - Top beats: amber play overlay
   - Genre chips: amber hover
   - Producer avatar badge in card
   ══════════════════════════════════════════════════════════ */

/* ── Section header (feed-hd) ── */
.bh-home-v5 .bh-home-feed-hd {
  display: flex !important;
  align-items: center !important;
  padding: 14px 0 8px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  gap: 0 !important;
}

.bh-home-v5 .bh-home-list-title {
  flex: 1 !important;
  font: 700 10px/1 'DM Mono', monospace !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.75) !important;
  margin: 0 !important;
  padding: 0 0 0 10px !important;
  border-left: 2px solid #22B6FF !important;
  border-bottom: none !important;
  background: none !important;
  /* cancel any pseudo decorations from home.css */
}
.bh-home-v5 .bh-home-list-title::before,
.bh-home-v5 .bh-home-list-title::after { display: none !important; }
#main .bh-home-v5 .bh-home-list-title { color: rgba(255,255,255,.75) !important; }

.bh-home-v5 .bh-home-feed-see-all {
  font: 600 9px/1 'DM Mono', monospace !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: rgba(34,182,255,.7) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: color .15s ease !important;
  padding: 0 !important;
}
.bh-home-v5 .bh-home-feed-see-all:hover { color: #22B6FF !important; text-decoration: none !important; }

/* ── Beat / Song feed cards: cover thumbnail left + info right ── */
.bh-home-v5 .bh-home-beatcard {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  transition: border-color 200ms ease, background 200ms ease, transform 180ms ease !important;
  gap: 0 !important;
  cursor: pointer !important;
}

/* Cover art thumbnail — repurpose __bg from absolute overlay to inline thumbnail */
.bh-home-v5 .bh-home-beatcard__bg {
  position: relative !important;
  flex-shrink: 0 !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  inset: auto !important;
  top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
  margin: 5px 0 5px 6px !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  display: block !important;
  z-index: auto !important;
  align-self: center !important;
}

/* Info panel */
.bh-home-v5 .bh-home-beatcard__info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 10px 6px 9px !important;
  background: none !important; /* remove gradient overlay */
  position: relative !important;
  z-index: 1 !important;
}

/* Play button: amber accent */
.bh-home-v5 .bh-home-beatcard__play {
  flex-shrink: 0 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(34,182,255,.12) !important;
  border: 1px solid rgba(34,182,255,.28) !important;
  color: #22B6FF !important;
  font-size: 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background .15s ease, border-color .15s ease, transform .12s ease !important;
  overflow: hidden !important;
  opacity: 1 !important;
}
.bh-home-v5 .bh-home-beatcard:hover .bh-home-beatcard__play {
  background: rgba(34,182,255,.9) !important;
  border-color: #22B6FF !important;
  color: #000 !important;
}
.bh-home-v5 .bh-home-beatcard__play.is-playing {
  background: #22B6FF !important;
  border-color: #22B6FF !important;
  color: #000 !important;
}
.bh-home-v5 .bh-home-beatcard__play:disabled { opacity: .25 !important; }

/* Text area */
.bh-home-v5 .bh-home-beatcard__text {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}
.bh-home-v5 .bh-home-beatcard__title {
  font: 600 12px/1.2 'Syne', system-ui, sans-serif !important;
  color: rgba(255,255,255,.88) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}
#main .bh-home-v5 .bh-home-beatcard__title { color: rgba(255,255,255,.88) !important; }
.bh-home-v5 .bh-home-beatcard__title:hover { color: #22B6FF !important; text-decoration: none !important; }

/* Trackmeta (producer + BPM) */
.bh-home-v5 .bh-home-trackmeta {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
}
.bh-home-v5 .bh-home-trackspecs {
  font: 400 9px/1 'DM Mono', monospace !important;
  color: rgba(255,255,255,.3) !important;
  white-space: nowrap !important;
  display: inline !important; /* show specs again */
}
.bh-home-v5 .bh-home-trackcreator {
  font: 500 9px/1 'DM Mono', monospace !important;
  color: rgba(255,255,255,.35) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Producer avatar badge */
.bh-home-v5 .bh-bc-av-row {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: 0 !important;
}
.bh-home-v5 .bh-bc-av {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(34,182,255,.25) !important;
  background: rgba(255,255,255,.06) !important;
  display: block !important;
}
.bh-home-v5 .bh-bc-cname {
  font: 500 9px/1 'DM Mono', monospace !important;
  color: rgba(255,255,255,.35) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Play/pause SVG icon */
.bh-home-v5 .bh-home-beatcard__play .bh-play-icon {
  display: block !important;
  width: 10px !important;
  height: 12px !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Playing state: amber border glow */
.bh-home-v5 .bh-home-beatcard:has(.master-play.is-playing) {
  border-color: rgba(34,182,255,.38) !important;
  background: rgba(34,182,255,.04) !important;
  box-shadow: 0 0 0 1px rgba(34,182,255,.12) !important;
}

/* Hover state */
@media (hover: hover) and (pointer: fine) {
  .bh-home-v5 .bh-home-beatcard:hover {
    border-color: rgba(255,255,255,.1) !important;
    background: rgba(255,255,255,.05) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.3) !important;
  }
}

/* Tracklist gap */
.bh-home-v5 .bh-home-tracklist { gap: 4px !important; }
.bh-home-v5 .bh-home-recent .bh-home-tracklist { gap: 4px !important; }

/* ── Top Beats: amber play button ── */
.bh-home-v5 .bh-home-topcard:hover .bh-home-topcard__play,
.bh-home-v5 .bh-home-topcard:has(.master-play.is-playing) .bh-home-topcard__play {
  background: rgba(34,182,255,.9) !important;
  border-color: rgba(34,182,255,.6) !important;
  opacity: 1 !important;
}
.bh-home-v5 .bh-home-topcard__play {
  background: rgba(6,5,10,.55) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: #fff !important;
}
.bh-home-v5 .bh-home-topcard__rank {
  background: rgba(6,5,10,.65) !important;
  padding: 2px 5px !important;
  border-radius: 0 !important;
  font: 700 8px/1 'DM Mono', monospace !important;
  color: rgba(34,182,255,.85) !important;
}

/* ── Genre chips: amber accent ── */
.bh-home-v5 .bh-home-genre-chip {
  display: inline-flex !important;
  align-items: center !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.03) !important;
  font: 600 9px/1 'DM Mono', monospace !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.45) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .16s ease, border-color .16s ease, color .16s ease !important;
  white-space: nowrap !important;
}
.bh-home-v5 .bh-home-genre-chip:hover {
  background: rgba(34,182,255,.1) !important;
  border-color: rgba(34,182,255,.28) !important;
  color: #22B6FF !important;
  text-decoration: none !important;
}
.bh-home-v5 .bh-home-genres-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 6px 0 2px !important;
}

/* ── Tool pills: amber icon on hover ── */
.bh-home-v5 .bh-home-tool-pill {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 12px !important;
  border-radius: 0 !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.03) !important;
  font: 500 10px/1 'DM Mono', monospace !important;
  letter-spacing: .06em !important;
  color: rgba(255,255,255,.55) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease !important;
  white-space: nowrap !important;
}
.bh-home-v5 .bh-home-tool-pill:hover,
.bh-home-v5 .bh-home-tool-pill:focus {
  background: rgba(34,182,255,.08) !important;
  border-color: rgba(34,182,255,.25) !important;
  color: #22B6FF !important;
  text-decoration: none !important;
}
.bh-home-v5 .bh-home-tool-pill--soon {
  opacity: .5 !important;
}
.bh-home-v5 .bh-home-tool-pill--locked .fa-lock {
  opacity: .5 !important;
  font-size: 8px !important;
}

/* ── Plan cards: amber accent on featured ── */
.bh-home-v5 .bh-home-plan-card {
  border-radius: 0 !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.03) !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}
.bh-home-v5 .bh-home-plan-card:hover {
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.3) !important;
}
.bh-home-v5 .bh-home-plan-card--studio {
  border-color: rgba(34,182,255,.25) !important;
  background: rgba(34,182,255,.04) !important;
}
.bh-home-v5 .bh-home-plan-card--studio:hover {
  border-color: rgba(34,182,255,.4) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.35), 0 0 20px rgba(34,182,255,.08) !important;
}
.bh-home-v5 .bh-home-plan-card__badge--top {
  background: rgba(34,182,255,.12) !important;
  color: #22B6FF !important;
  border: 1px solid rgba(34,182,255,.22) !important;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .bh-home-v5 .bh-home-beatcard__bg {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  .bh-home-v5 .bh-home-beatcard__title { font-size: 11px !important; }
}
