/* ==========================================================================
   BEATSHOUSE — Single Beat / Product Page v5.0
   OLED dark. Full-bleed title. Violet accent. Premium purchase panel.
   ========================================================================== */

body.single-product.bh-single-beat {
  --bh-bg:      transparent;
  --bh-bg-soft: rgba(6,5,10,.85);
  --bh-surface: rgba(255,255,255,.04);
  --bh-line:    rgba(255,255,255,.06);
  --bh-text:    rgba(255,255,255,0.92);
  --bh-muted:   rgba(255,255,255,0.45);
  --bh-focus:   rgba(200,255,0,.35);
  --bh-accent:  #C8FF00;
  --bh-accent-dim: rgba(200,255,0,0.12);
  --bh-body:    "Manrope", system-ui, -apple-system, sans-serif;
  --bh-head:    "Syne", Impact, system-ui, sans-serif;
  --bh-mono:    "DM Mono", "Space Mono", ui-monospace, monospace;
  background: #060608;
  color: var(--bh-text);
}

/* Fallback scope */
.bh-single-beat {
  --bh-bg:      transparent;
  --bh-bg-soft: rgba(6,5,10,.85);
  --bh-surface: rgba(255,255,255,.04);
  --bh-line:    rgba(255,255,255,.06);
  --bh-text:    rgba(255,255,255,0.92);
  --bh-muted:   rgba(255,255,255,0.45);
  --bh-focus:   rgba(200,255,0,.35);
  --bh-accent:  #C8FF00;
  --bh-accent-dim: rgba(200,255,0,0.12);
  --bh-body:    "Manrope", system-ui, -apple-system, sans-serif;
  --bh-head:    "Syne", Impact, system-ui, sans-serif;
  --bh-mono:    "DM Mono", "Space Mono", ui-monospace, monospace;
  color: var(--bh-text);
  background: transparent;
  /* Safe area: bottom player is position:fixed ~150px tall + 18px offset */
  padding-bottom: 190px;
}

/* Shell */
.bh-single-beat .bh-single-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

/* Strip chrome from layout containers */
.bh-single-beat .bst-topbar,
.bh-single-beat .credits-grid,
.bh-single-beat .pricing-grid,
.bh-single-beat .purchase-container,
.bh-single-beat .bst-player,
.bh-single-beat .rel-section,
.bh-single-beat .rel-grid,
.bh-single-beat .rel-item {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.bh-single-beat .bst-player {
  border: 1px solid rgba(255,255,255,0.06) !important;
  background: rgba(255,255,255,0.03) !important;
  max-width: 760px;
  margin: 0 auto 12px !important;
  padding: 12px 14px !important;
  border-radius: 0 !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 4px 20px rgba(0,0,0,0.3) !important;
}

/* Purchase panel */
.bh-single-beat .purchase-container {
  border: 0 !important;
  border-left: 1px solid var(--bh-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 0 0 22px !important;
}

/* Button resets — only for link-style buttons in this context */
.bh-single-beat .bst-link,
.bh-single-beat .bst-link-cta,
.bh-single-beat .bst-play,
.bh-single-beat .bst-icon-btn {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.bh-single-beat .bst-link-cta {
  color: #d4d4d8 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.bh-single-beat .bst-link-cta:hover { color: #ffffff !important; }

/* Title */
.bh-single-beat .bst-title {
  color: var(--bh-text) !important;
  font-family: var(--bh-head) !important;
  font-size: clamp(48px, 9vw, 124px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  line-height: 0.95 !important;
  text-transform: uppercase !important;
}

/* Waveform (hidden — plain player) */
.bh-single-beat .bst-wave,
.bh-single-beat .bst-wave-wrap,
.bh-single-beat .bst-wave-time,
.bh-single-beat #bst-time-current,
.bh-single-beat #bst-time-total,
.bh-single-beat #waveform {
  display: none !important;
  visibility: hidden !important;
}

/* Player core — just the play button */
.bh-single-beat .bst-player-core {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-items: center;
}

.bh-single-beat .bst-player-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.bh-single-beat .bst-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Add to Cart / Select ── */
.bh-single-beat .woo-form-inject :is(select, input),
.bh-single-beat .bst-song-purchase :is(select, input) {
  width: 100% !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255,255,255,0.9) !important;
  padding: 10px 12px !important;
  font-family: var(--bh-body) !important;
  font-size: 14px !important;
  transition: border-color 0.22s cubic-bezier(0.19,1,0.22,1), box-shadow 0.22s cubic-bezier(0.19,1,0.22,1) !important;
}
.bh-single-beat .woo-form-inject :is(select, input):focus,
.bh-single-beat .bst-song-purchase :is(select, input):focus {
  outline: none !important;
  border-color: rgba(200,255,0,0.5) !important;
  box-shadow: 0 0 0 3px rgba(200,255,0,0.08) !important;
}

/* Add to cart button — primary CTA */
.bh-single-beat .single_add_to_cart_button.button,
.bh-single-beat .button.alt {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  background: #C8FF00 !important;
  color: #0A0A0A !important; /* a11y: #fff sobre lime daba ~1.07:1; #0A0A0A ~17:1 */
  border: none !important;
  border-radius: 999px !important;
  font: 700 1rem / 1 'Manrope', system-ui, sans-serif !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  box-shadow: 0 0 0 1px rgba(200,255,0,0.3), 0 4px 20px rgba(200,255,0,0.25) !important;
  transition: background 0.22s cubic-bezier(0.19,1,0.22,1), box-shadow 0.22s cubic-bezier(0.19,1,0.22,1), transform 0.15s cubic-bezier(0.19,1,0.22,1) !important;
}

.bh-single-beat .single_add_to_cart_button.button:hover,
.bh-single-beat .button.alt:hover {
  background: #E8FF88 !important;
  box-shadow: 0 0 0 1px rgba(200,255,0,0.4), 0 6px 28px rgba(200,255,0,0.35) !important;
}

.bh-single-beat .single_add_to_cart_button.button:active,
.bh-single-beat .button.alt:active {
  transform: scale(0.97) !important;
}

.bh-single-beat .bst-play {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border: 1px solid rgba(200,255,0,0.2) !important;
  border-radius: 999px !important;
  background: rgba(200,255,0,0.15) !important;
  color: #E8FF88 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.22s cubic-bezier(0.19,1,0.22,1), border-color 0.22s cubic-bezier(0.19,1,0.22,1), transform 0.15s cubic-bezier(0.19,1,0.22,1) !important;
}
.bh-single-beat .bst-play:hover {
  background: rgba(200,255,0,0.25) !important;
  border-color: rgba(200,255,0,0.4) !important;
}
.bh-single-beat .bst-play:active {
  transform: scale(0.95) !important;
}

.bh-single-beat .bst-link,
.bh-single-beat .bst-link-cta,
.bh-single-beat .bst-icon-btn {
  min-height: 30px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.04) !important;
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
  font: 600 11px/1 "Manrope", system-ui, sans-serif !important;
  letter-spacing: .03em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: background 0.22s cubic-bezier(0.19,1,0.22,1), border-color 0.22s cubic-bezier(0.19,1,0.22,1), color 0.22s cubic-bezier(0.19,1,0.22,1) !important;
}

@media (min-width: 769px) {
  .bh-single-beat .bst-player {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
  }
}

@media (max-width: 768px) {
  .bh-single-beat .purchase-container {
    border-left: 0 !important;
    border-top: 1px solid var(--bh-line) !important;
    padding: 14px 0 0 !important;
  }
}

.bh-single-beat .bst-link:hover,
.bh-single-beat .bst-link-cta:hover,
.bh-single-beat .bst-icon-btn:hover {
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,0.95) !important;
}

.bh-single-beat .bst-link-cta {
  background: rgba(200,255,0,0.1) !important;
  color: #E8FF88 !important;
  border-color: rgba(200,255,0,0.25) !important;
}

/* Toast notification */
.bh-single-beat .bst-copy-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -8px);
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 6, 8, 0.96);
  color: rgba(255,255,255,0.9);
  font: 600 11px / 1 var(--bh-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 4px 20px rgba(0,0,0,0.4);
  transition: opacity 0.22s cubic-bezier(0.19,1,0.22,1), transform 0.22s cubic-bezier(0.19,1,0.22,1);
}

.bh-single-beat .bst-copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Hide theme chrome on single product pages */
body.bh-single-beat #masthead,
body.bh-single-beat .site-header,
body.bh-single-beat .bh-header-main,
body.bh-single-beat .bh-global-footer,
body.bh-single-beat #colophon,
body.bh-single-beat footer.site-footer {
  display: none !important;
}

body.single-product.bh-single-beat .bh-single-beat {
  color: var(--bh-text);
  background: transparent;
  min-height: 100vh;
  padding: clamp(20px, 3vw, 48px) 0 190px;
  overflow-x: clip;
}

body.single-product.bh-single-beat .bh-single-beat,
body.single-product.bh-single-beat .bh-single-beat * {
  box-sizing: border-box;
  min-width: 0;
}

/* Guardrail: keep all media inside the single template from blowing up layout */
body.single-product.bh-single-beat .bh-single-beat img,
body.single-product.bh-single-beat .bh-single-beat picture,
body.single-product.bh-single-beat .bh-single-beat figure,
.bh-single-beat img,
.bh-single-beat picture,
.bh-single-beat figure {
  display: block;
  max-width: 100% !important;
}

body.single-product.bh-single-beat .bh-single-beat img,
.bh-single-beat img {
  height: auto !important;
}

/* WooCommerce/gallery images: cap them to card width and crop cleanly */
body.single-product.bh-single-beat .bh-single-beat .woocommerce-product-gallery,
body.single-product.bh-single-beat .bh-single-beat .woocommerce-product-gallery__wrapper,
body.single-product.bh-single-beat .bh-single-beat .woocommerce-product-gallery__image,
body.single-product.bh-single-beat .bh-single-beat .images,
.bh-single-beat .woocommerce-product-gallery,
.bh-single-beat .woocommerce-product-gallery__wrapper,
.bh-single-beat .woocommerce-product-gallery__image,
.bh-single-beat .images {
  width: 100% !important;
  max-width: min(460px, 100%) !important;
  margin-inline: auto !important;
  overflow: hidden !important;
}

body.single-product.bh-single-beat .bh-single-beat .woocommerce-product-gallery img,
body.single-product.bh-single-beat .bh-single-beat .woocommerce-product-gallery__image img,
body.single-product.bh-single-beat .bh-single-beat .images img,
body.single-product.bh-single-beat .bh-single-beat .wp-post-image,
.bh-single-beat .woocommerce-product-gallery img,
.bh-single-beat .woocommerce-product-gallery__image img,
.bh-single-beat .images img,
.bh-single-beat .wp-post-image {
  width: 100% !important;
  max-width: min(460px, 100%) !important;
  max-height: 460px !important;
  margin-inline: auto !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6) !important;
}

body.single-product.bh-single-beat .bh-single-beat .flex-control-thumbs,
.bh-single-beat .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(64px, 84px));
  gap: 10px;
  justify-content: center;
  padding: 0 !important;
  margin: 12px auto 0 !important;
  list-style: none !important;
}

body.single-product.bh-single-beat .bh-single-beat .flex-control-thumbs li,
.bh-single-beat .flex-control-thumbs li {
  width: 100% !important;
  margin: 0 !important;
}

body.single-product.bh-single-beat .bh-single-beat .flex-control-thumbs img,
.bh-single-beat .flex-control-thumbs img {
  width: 100% !important;
  height: 84px !important;
  max-height: none !important;
  border-radius: 0 !important;
  object-fit: cover !important;
}

body.single-product.bh-single-beat .bh-single-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

/* ── Top bar ── */
body.single-product.bh-single-beat .bst-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

/* ── Link colors ── */
body.single-product.bh-single-beat .bh-single-beat a {
  color: inherit;
  text-decoration: none;
}

/* ── License pills ── */
.bh-single-beat .lic-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.22s cubic-bezier(0.19,1,0.22,1), background 0.22s cubic-bezier(0.19,1,0.22,1), box-shadow 0.22s cubic-bezier(0.19,1,0.22,1), transform 0.15s cubic-bezier(0.19,1,0.22,1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.bh-single-beat .lic-card:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}

.bh-single-beat .lic-card.is-selected {
  background: rgba(200,255,0,0.1);
  border-color: rgba(200,255,0,0.35);
  box-shadow: inset 0 1px 0 rgba(200,255,0,0.1), 0 0 20px rgba(200,255,0,0.08);
}

.bh-single-beat .lic-card:active {
  transform: scale(0.98);
}

/* ── Related / pricing grid ── */
.bh-single-beat .pricing-grid {
  display: grid;
  gap: 10px;
}

.bh-single-beat .rel-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.22s cubic-bezier(0.19,1,0.22,1), background 0.22s cubic-bezier(0.19,1,0.22,1);
}

.bh-single-beat .rel-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255,255,255,0.05);
}

/* ── Credits section ── */
.bh-single-beat .credits-grid {
  display: grid;
  gap: 10px;
}

/* ── Topbar buttons ── */
.bh-single-beat .bst-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.22s cubic-bezier(0.19,1,0.22,1), color 0.22s cubic-bezier(0.19,1,0.22,1), background 0.22s cubic-bezier(0.19,1,0.22,1) !important;
}

.bh-single-beat .bst-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.9);
}

/* Focus ring */
.bh-single-beat *:focus-visible {
  outline: 2px solid rgba(200,255,0, 0.5);
  outline-offset: 2px;
}

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

@media (max-width: 768px) {
  .bh-single-beat .bst-title {
    font-size: clamp(24px, 8.5vw, 44px) !important;
  }

  .bh-single-beat .purchase-container {
    border-radius: 0 !important;
    padding: 14px !important;
  }

  .bh-single-beat .single_add_to_cart_button.button {
    min-height: 52px !important;
    font-size: 15px !important;
  }
}

/* ==========================================================================
   EMBEDDED PRODUCT PLAYER
   ========================================================================== */

/* ── Embedded product player ──────────────────── */
.bh-single-beat .bh-product-player {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 28px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bh-single-beat .bh-pp-cover {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-color: rgba(200,255,0,.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.bh-single-beat .bh-pp-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200,255,0,0.45);
}

.bh-single-beat .bh-pp-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bh-single-beat .bh-pp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bh-single-beat .bh-pp-label {
  font-size: 10px;
  font-family: var(--bh-mono);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(200,255,0,.75);
}

.bh-single-beat .bh-pp-chips { display: flex; gap: 6px; }

.bh-single-beat .bh-pp-chip {
  font-size: 10px;
  font-family: var(--bh-mono);
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 2px 7px;
  letter-spacing: .06em;
}

.bh-single-beat .bh-pp-track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bh-single-beat .bh-pp-play {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(200,255,0,0.25);
  background: rgba(200,255,0,0.15);
  color: #E8FF88;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s cubic-bezier(0.19,1,0.22,1), box-shadow 0.22s cubic-bezier(0.19,1,0.22,1), background 0.22s cubic-bezier(0.19,1,0.22,1);
}

.bh-single-beat .bh-pp-play:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(200,255,0,0.12);
  background: rgba(200,255,0,0.25);
}

.bh-single-beat .bh-pp-play.is-playing {
  background: rgba(200,255,0,0.85);
  color: #fff;
  border-color: transparent;
}

.bh-single-beat .bh-pp-bar-wrap {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  cursor: pointer;
}

.bh-single-beat .bh-pp-bar {
  position: relative;
  height: 4px;
  background: rgba(200,255,0,0.18);
  border-radius: 0;
}

.bh-single-beat .bh-pp-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(200,255,0,0.7), #E8FF88);
  border-radius: 0;
  transition: width .1s linear;
}

.bh-single-beat .bh-pp-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0);
  transition: left .1s linear, transform .15s;
  box-shadow: 0 0 0 2px rgba(200,255,0,0.4);
}

.bh-single-beat .bh-pp-bar-wrap:hover .bh-pp-thumb {
  transform: translate(-50%,-50%) scale(1);
}

.bh-single-beat .bh-pp-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-family: var(--bh-mono);
  color: var(--bh-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.bh-single-beat .bh-pp-sep { opacity: .4; }

/* ── Back bar ── */
.bh-single-beat .bst-back-bar {
  padding: 10px clamp(16px, 3vw, 32px) 0;
}
.bh-single-beat .bst-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 0;
  cursor: pointer;
  color: rgba(255,255,255,.4);
  font: 500 11px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 6px 10px;
  transition: color 0.22s cubic-bezier(0.19,1,0.22,1), border-color 0.22s cubic-bezier(0.19,1,0.22,1), background 0.22s cubic-bezier(0.19,1,0.22,1);
}
.bh-single-beat .bst-back-btn:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,0.06);
}
#bh-home-app-stage .bst-back-bar { display: none; }
