/* ================================ Beats page ================================
   Catalogue grid/list, license picker (<dialog>), cart drawer and the
   persistent player. Loaded only by beats.html.

   Motion (Emil Kowalski rules): transform/opacity only, strong curves,
   UI under 300ms, drawers 400ms on the drawer curve, nothing from scale(0),
   hover motion gated to fine pointers, gentler under reduced motion. */

:root{
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Per-beat colour (RGB triplets), same idea as the pack cards */
.bt-tint-amber{ --fx:232,134,44;  --fx-hi:255,200,90;  --fx-soft:255,228,170; }
.bt-tint-blue{  --fx:58,128,240;  --fx-hi:120,190,255; --fx-soft:200,228,255; }
.bt-tint-red{   --fx:228,72,58;   --fx-hi:255,140,110; --fx-soft:255,210,200; }
.bt-tint-violet{--fx:150,100,255; --fx-hi:200,160,255; --fx-soft:230,215,255; }
.bt-tint-green{ --fx:46,190,120;  --fx-hi:120,235,170; --fx-soft:205,250,225; }

/* ------------------------------------ Hero --------------------------------- */
.bt-hero{ padding-bottom:24px; }
.bt-title{ font-family:var(--font-display); font-size:clamp(30px, 5vw, 50px); line-height:1.1; margin:0; }
.bt-title-accent{
  background:linear-gradient(180deg, var(--amber-bright) 0%, var(--accent) 60%, var(--amber-dim) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.bt-lede{ margin:20px auto 0; max-width:600px; }
.bt-section{ padding-top:16px; }

/* ---------------------------------- Toolbar -------------------------------- */
.bt-toolbar{ max-width:1180px; margin:0 auto 26px; display:flex; flex-direction:column; gap:16px; }
.bt-cats{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
.bt-cats::-webkit-scrollbar{ display:none; }
.bt-cat{
  flex-shrink:0; height:40px; padding:0 18px; border-radius:20px;
  background:transparent; border:1px solid var(--border-strong); color:var(--text-secondary);
  font-family:var(--mono); font-size:12px; letter-spacing:1px; text-transform:uppercase;
  transition:color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.bt-cat.is-active{ color:#0a0a09; background:var(--accent); border-color:var(--accent); }
@media (hover:hover) and (pointer:fine){
  .bt-cat:not(.is-active):hover{ color:var(--amber-text); border-color:var(--accent-dim); }
}

.bt-controls{ display:flex; flex-wrap:wrap; gap:10px; }
.bt-search{
  flex:1 1 280px; display:flex; align-items:center; gap:10px; height:44px; padding:0 14px;
  border:1px solid var(--border-strong); border-radius:10px; background:var(--panel);
  transition:border-color 150ms ease;
}
.bt-search:focus-within{ border-color:var(--accent); }
.bt-search svg{ width:16px; height:16px; color:var(--text-muted); flex-shrink:0; }
.bt-search input{ flex:1; min-width:0; background:none; border:0; outline:none; color:var(--text); font-family:var(--font-sans); font-size:14px; }
.bt-selects{ display:flex; flex-wrap:wrap; gap:10px; }
.bt-select select{
  height:44px; padding:0 34px 0 14px; border-radius:10px; appearance:none; -webkit-appearance:none;
  background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23c5c2b6' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px;
  border:1px solid var(--border-strong); color:var(--text-secondary);
  font-family:var(--font-sans); font-size:13.5px; cursor:pointer;
  transition:border-color 150ms ease, color 150ms ease;
}
.bt-select select:focus{ outline:none; border-color:var(--accent); }
.bt-select select.is-set{ color:var(--amber-text); border-color:var(--accent-dim); }

.bt-subbar{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.bt-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.bt-tag{
  height:32px; padding:0 12px; border-radius:16px; background:transparent;
  border:1px solid var(--border); color:var(--text-muted);
  font-family:var(--mono); font-size:12px; letter-spacing:0.3px;
  transition:color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.bt-tag.is-active{ color:var(--amber-text); border-color:var(--accent); background:rgba(232,134,44,0.12); }
@media (hover:hover) and (pointer:fine){ .bt-tag:not(.is-active):hover{ color:var(--text-secondary); border-color:var(--border-strong); } }
.bt-meta{ display:flex; align-items:center; gap:14px; margin-left:auto; }
.bt-count{ font-family:var(--mono); font-size:12px; color:var(--text-muted); white-space:nowrap; }
.bt-reset{ background:none; border:0; padding:10px 2px; color:var(--amber-text); font-family:var(--mono); font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.bt-view{ display:flex; border:1px solid var(--border-strong); border-radius:10px; overflow:hidden; }
.bt-view-btn{ width:44px; height:40px; display:flex; align-items:center; justify-content:center; background:none; border:0; color:var(--text-muted); transition:color 150ms ease, background-color 150ms ease; }
.bt-view-btn svg{ width:15px; height:15px; fill:currentColor; }
.bt-view-btn.is-active{ color:var(--amber-text); background:rgba(232,134,44,0.12); }

/* ----------------------------------- Cards --------------------------------- */
.bt-grid{ max-width:1180px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:22px; transition:opacity 150ms ease; }
.bt-grid.is-swapping{ opacity:0; }

.bt-card{
  position:relative; display:flex; flex-direction:column; min-width:0;
  background:var(--panel); border:1px solid var(--border-strong); border-radius:14px; overflow:hidden;
  transition:border-color 200ms ease, transform 200ms var(--ease-out);
}
.bt-card.is-current{ border-color:rgba(var(--fx), 0.6); }
@media (hover:hover) and (pointer:fine){
  .bt-card:hover{ border-color:rgba(var(--fx), 0.45); transform:translateY(-3px); }
}
/* Entrance: rise + fade, staggered by --i (set in JS, capped). */
.bt-card.bt-enter{ opacity:0; transform:translateY(12px); }
.bt-card.bt-in{ animation:btCardIn 300ms var(--ease-out) both; animation-delay:calc(var(--i, 0) * 40ms); }
@keyframes btCardIn{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }

/* Generated cover art when a beat has no image: glow in the beat colour,
   scanlines, title set in the display face. */
.bt-art{
  position:relative; aspect-ratio:1/1; overflow:hidden; background:#050504;
  isolation:isolate;
}
.bt-art img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.bt-art-gen{
  position:absolute; inset:0;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(var(--fx), 0.85) 0%, rgba(var(--fx), 0.25) 38%, transparent 62%),
    radial-gradient(90% 80% at 92% 96%, rgba(var(--fx-hi), 0.45) 0%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #141210, #050504);
}
.bt-art-gen::after{
  content:''; position:absolute; inset:14% -20% auto auto; width:70%; aspect-ratio:1; border-radius:50%;
  border:1px solid rgba(var(--fx-soft), 0.18); box-shadow:0 0 0 18px rgba(var(--fx), 0.05), 0 0 0 40px rgba(var(--fx), 0.03);
}
.bt-art-word{
  position:absolute; left:14px; right:14px; bottom:12px; z-index:1;
  font-family:var(--font-display); font-weight:800; font-size:clamp(20px, 2.2vw, 28px); line-height:1;
  text-transform:uppercase; letter-spacing:1px; color:rgba(var(--fx-soft), 0.95);
  text-shadow:0 0 18px rgba(var(--fx), 0.6);
  overflow-wrap:anywhere;
}
.bt-art-bpm{
  position:absolute; top:12px; left:12px; z-index:1;
  font-family:var(--mono); font-size:11px; letter-spacing:1px; color:rgba(var(--fx-soft), 0.85);
}

/* Play button over the cover */
.bt-play{
  position:absolute; left:50%; top:50%; z-index:2; width:56px; height:56px; margin:-28px 0 0 -28px;
  display:flex; align-items:center; justify-content:center; padding:0; border-radius:50%;
  background:rgba(8,8,7,0.55); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(var(--fx-hi), 0.55); color:rgb(var(--fx-soft));
  opacity:0; transform:scale(0.92);
  transition:opacity 180ms var(--ease-out), transform 160ms var(--ease-out), background-color 180ms ease;
}
.bt-play svg{ width:22px; height:22px; }
.bt-play .bt-ic-pause{ display:none; }
.bt-card.is-playing .bt-play .bt-ic-play{ display:none; }
.bt-card.is-playing .bt-play .bt-ic-pause{ display:block; }
.bt-card:focus-within .bt-play, .bt-card.is-current .bt-play{ opacity:1; transform:none; }
@media (hover:hover) and (pointer:fine){ .bt-card:hover .bt-play{ opacity:1; transform:none; } }
@media (hover:none){ .bt-play{ opacity:1; transform:none; } }
.bt-play:active{ transform:scale(0.94); }
.bt-card.is-playing .bt-play{ background:rgba(var(--fx), 0.92); color:#0a0a09; }

/* Equalizer bars on the playing card (constant motion: linear) */
.bt-eq{ position:absolute; right:12px; top:12px; z-index:2; display:flex; align-items:flex-end; gap:2px; height:14px; opacity:0; transition:opacity 200ms ease; }
.bt-eq i{ width:3px; height:100%; background:rgb(var(--fx-hi)); border-radius:1px; transform-origin:bottom; transform:scaleY(0.3); }
.bt-card.is-playing .bt-eq{ opacity:1; }
.bt-card.is-playing .bt-eq i{ animation:btEq 0.9s linear infinite; }
.bt-card.is-playing .bt-eq i:nth-child(2){ animation-duration:0.7s; animation-delay:-0.2s; }
.bt-card.is-playing .bt-eq i:nth-child(3){ animation-duration:1.1s; animation-delay:-0.5s; }
@keyframes btEq{ 0%,100%{ transform:scaleY(0.3); } 25%{ transform:scaleY(1); } 50%{ transform:scaleY(0.55); } 75%{ transform:scaleY(0.85); } }

.bt-body{ display:flex; flex-direction:column; gap:4px; padding:14px 14px 14px; min-width:0; flex:1; }
.bt-name{ font-family:var(--font-display); font-size:15px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bt-by{ font-size:12.5px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bt-by b{ color:var(--text-secondary); font-weight:500; }
.bt-facts{ display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 12px; }
.bt-fact{ font-family:var(--mono); font-size:11px; color:var(--text-secondary); border:1px solid var(--border); border-radius:12px; padding:3px 8px; }
.bt-buy{
  margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px;
  height:42px; padding:0 14px; border-radius:10px;
  background:rgba(var(--fx), 0.10); border:1px solid rgba(var(--fx), 0.45); color:var(--text);
  font-family:var(--mono); font-size:12.5px; letter-spacing:0.5px;
  transition:background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.bt-buy strong{ font-family:var(--font-display); font-size:14px; color:rgb(var(--fx-soft)); }
.bt-buy:active{ transform:scale(0.97); }
@media (hover:hover) and (pointer:fine){ .bt-buy:hover{ background:rgba(var(--fx), 0.2); border-color:rgb(var(--fx)); } }
.bt-buy.in-cart{ border-style:dashed; }

/* List view: one row per beat */
.bt-grid[data-view="list"]{ grid-template-columns:1fr; gap:10px; }
.bt-grid[data-view="list"] .bt-card{ flex-direction:row; align-items:center; border-radius:12px; }
.bt-grid[data-view="list"] .bt-art{ width:76px; flex-shrink:0; }
.bt-grid[data-view="list"] .bt-art-word, .bt-grid[data-view="list"] .bt-art-bpm, .bt-grid[data-view="list"] .bt-eq{ display:none; }
.bt-grid[data-view="list"] .bt-play{ width:38px; height:38px; margin:-19px 0 0 -19px; opacity:1; transform:none; }
.bt-grid[data-view="list"] .bt-play svg{ width:16px; height:16px; }
.bt-grid[data-view="list"] .bt-body{ flex-direction:row; align-items:center; gap:18px; padding:10px 14px; }
.bt-grid[data-view="list"] .bt-titles{ flex:1 1 200px; min-width:0; }
.bt-grid[data-view="list"] .bt-facts{ margin:0; flex:0 1 auto; }
.bt-grid[data-view="list"] .bt-buy{ margin:0; flex:0 0 auto; min-width:150px; }
@media (hover:hover) and (pointer:fine){ .bt-grid[data-view="list"] .bt-card:hover{ transform:none; } }
@media (max-width:700px){
  .bt-grid[data-view="list"] .bt-facts{ display:none; }
  .bt-grid[data-view="list"] .bt-body{ gap:10px; }
  .bt-grid[data-view="list"] .bt-buy{ min-width:0; }
  .bt-grid[data-view="list"] .bt-buy span{ display:none; }
}

.bt-empty{ max-width:1180px; margin:20px auto 0; padding:40px 20px; text-align:center; border:1px dashed var(--border-strong); border-radius:14px; color:var(--text-secondary); }
.bt-empty .btn{ margin-top:16px; }

/* ------------------------------- License tiers ------------------------------ */
.bt-tier-grid{ max-width:1180px; margin:0 auto; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; }
.bt-tier-card{ padding:22px 20px; border:1px solid var(--border-strong); border-radius:14px; background:var(--panel); }
.bt-tier-card.is-unlimited{ border-color:rgba(232,134,44,0.45); background:linear-gradient(180deg, rgba(232,134,44,0.08), transparent 60%), var(--panel); }
.bt-tier-badge{ display:inline-block; font-family:var(--mono); font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-muted); margin-bottom:10px; }
.bt-tier-card.is-unlimited .bt-tier-badge{ color:var(--amber-text); }
.bt-tier-card h3{ font-family:var(--font-display); font-size:17px; margin:0 0 12px; }
.bt-tier-card ul{ margin:0; padding:0; list-style:none; }
.bt-tier-card li{ position:relative; padding-left:16px; margin-bottom:7px; font-size:13.5px; color:var(--text-secondary); line-height:1.45; }
.bt-tier-card li::before{ content:'—'; position:absolute; left:0; color:var(--accent); }
@media (max-width:980px){ .bt-tier-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:560px){ .bt-tier-grid{ grid-template-columns:1fr; } }

/* ------------------------------ License modal ------------------------------- */
/* Centred modal (modals are exempt from trigger origin). Entry via
   @starting-style; exit via .is-closing then dialog.close() in JS. */
.bt-modal{
  width:min(560px, calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:0; overflow:auto;
  border:1px solid var(--border-strong); border-radius:18px; background:var(--panel); color:var(--text);
  box-shadow:0 40px 120px rgba(0,0,0,0.7);
  opacity:1; transform:none;
  transition:opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
@starting-style{ .bt-modal[open]{ opacity:0; transform:scale(0.96); } }
.bt-modal.is-closing{ opacity:0; transform:scale(0.96); transition-duration:150ms; }
.bt-modal::backdrop{ background:rgba(4,4,3,0.72); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); opacity:1; transition:opacity 200ms ease; }
@starting-style{ .bt-modal[open]::backdrop{ opacity:0; } }
.bt-modal.is-closing::backdrop{ opacity:0; }
.bt-modal-inner{ position:relative; padding:24px; }
.bt-modal-close{
  position:absolute; top:12px; right:12px; width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:transparent; border:1px solid var(--border); color:var(--text-secondary); padding:0;
  transition:color 150ms ease, border-color 150ms ease;
}
.bt-modal-close svg{ width:18px; height:18px; }
@media (hover:hover) and (pointer:fine){ .bt-modal-close:hover{ color:var(--text); border-color:var(--border-strong); } }
.bt-modal-head{ display:flex; gap:16px; align-items:center; padding-right:44px; margin-bottom:18px; }
.bt-modal-cover{ width:72px; flex-shrink:0; border-radius:10px; overflow:hidden; }
.bt-modal-cover .bt-art-word{ font-size:11px; left:7px; bottom:7px; }
.bt-modal-cover .bt-art-bpm{ display:none; }
.bt-modal-kicker{ font-family:var(--mono); font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--amber-text); margin:0 0 4px; }
.bt-modal-title{ font-family:var(--font-display); font-size:20px; margin:0; }
.bt-modal-sub{ font-size:13px; color:var(--text-muted); margin:4px 0 0; }

.bt-tiers{ display:flex; flex-direction:column; gap:8px; }
.bt-tier{
  position:relative; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px;
  padding:14px 16px; border:1px solid var(--border-strong); border-radius:12px; cursor:pointer;
  transition:border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.bt-tier:active{ transform:scale(0.99); }
.bt-tier input{ position:absolute; opacity:0; pointer-events:none; }
.bt-tier-radio{ width:18px; height:18px; border-radius:50%; border:2px solid var(--border-strong); position:relative; transition:border-color 150ms ease; }
.bt-tier-radio::after{ content:''; position:absolute; inset:3px; border-radius:50%; background:var(--accent); transform:scale(0.5); opacity:0; transition:transform 150ms var(--ease-out), opacity 150ms ease; }
.bt-tier.is-selected{ border-color:var(--accent); background:rgba(232,134,44,0.07); }
.bt-tier.is-selected .bt-tier-radio{ border-color:var(--accent); }
.bt-tier.is-selected .bt-tier-radio::after{ transform:none; opacity:1; }
.bt-tier input:focus-visible ~ .bt-tier-radio{ outline:2px solid var(--accent); outline-offset:3px; }
.bt-tier-name{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-weight:600; font-size:14px; }
.bt-tier-pill{ font-family:var(--mono); font-size:10.5px; letter-spacing:1px; text-transform:uppercase; padding:2px 7px; border-radius:10px; color:#0a0a09; background:var(--accent); }
.bt-tier-files{ display:block; margin-top:3px; font-size:12.5px; color:var(--text-muted); font-weight:400; }
.bt-tier-price{ font-family:var(--font-display); font-size:17px; white-space:nowrap; }
.bt-terms{ margin-top:14px; border-top:1px solid var(--border); padding-top:12px; }
.bt-terms summary{ cursor:pointer; font-size:13px; color:var(--amber-text); padding:8px 0; }
.bt-terms-body{ display:grid; gap:10px; margin-top:6px; font-size:12.5px; color:var(--text-secondary); }
.bt-terms-body table{ width:100%; border-collapse:collapse; }
.bt-terms-body th, .bt-terms-body td{ text-align:left; padding:6px 6px; border-bottom:1px solid var(--border); vertical-align:top; }
.bt-terms-body th{ font-family:var(--mono); font-size:11px; color:var(--text-muted); font-weight:400; }
.bt-modal-foot{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:18px; }
.bt-modal-total{ font-family:var(--font-display); font-size:22px; }
.bt-modal-foot .btn{ height:40px; padding:0 20px; }

/* Phone: the picker becomes a bottom sheet */
@media (max-width:560px){
  .bt-modal{ width:100vw; max-width:100vw; margin:auto 0 0; border-radius:18px 18px 0 0; max-height:88dvh; transition-duration:400ms; transition-timing-function:var(--ease-drawer); }
  @starting-style{ .bt-modal[open]{ opacity:1; transform:translateY(100%); } }
  .bt-modal.is-closing{ opacity:1; transform:translateY(100%); transition-duration:250ms; }
  .bt-modal-inner{ padding:20px 16px calc(16px + env(safe-area-inset-bottom)); }
}

/* -------------------------------- Cart drawer ------------------------------- */
.bt-drawer{ position:fixed; inset:0; z-index:9000; pointer-events:none; }
.bt-drawer.is-open{ pointer-events:auto; }
.bt-drawer-scrim{ position:absolute; inset:0; background:rgba(4,4,3,0.6); opacity:0; transition:opacity 300ms ease; }
.bt-drawer.is-open .bt-drawer-scrim{ opacity:1; }
.bt-drawer-panel{
  position:absolute; top:0; right:0; bottom:0; width:min(420px, 100vw);
  display:flex; flex-direction:column; background:var(--panel); border-left:1px solid var(--border-strong);
  transform:translateX(100%); transition:transform 400ms var(--ease-drawer);
}
.bt-drawer.is-open .bt-drawer-panel{ transform:none; }
.bt-drawer-head{ position:relative; display:flex; align-items:center; justify-content:space-between; padding:20px 20px 12px; }
.bt-drawer-head h2{ font-family:var(--font-display); font-size:20px; margin:0; }
.bt-drawer-head .bt-modal-close{ position:static; }
.bt-cart-list{ flex:1; overflow-y:auto; margin:0; padding:4px 20px; list-style:none; }
.bt-cart-item{ display:grid; grid-template-columns:52px 1fr auto; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--border); }
.bt-cart-item .bt-art{ border-radius:8px; }
.bt-cart-item .bt-art-word, .bt-cart-item .bt-art-bpm{ display:none; }
.bt-cart-name{ display:block; font-weight:600; font-size:14px; }
.bt-cart-tier{ display:block; font-size:12.5px; color:var(--text-muted); }
.bt-cart-side{ display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.bt-cart-price{ font-family:var(--font-display); font-size:14px; }
.bt-cart-remove{ background:none; border:0; padding:6px 0; color:var(--text-muted); font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.bt-cart-item.is-leaving{ opacity:0; transform:translateX(16px); transition:opacity 180ms ease, transform 180ms var(--ease-out); }
.bt-cart-empty{ padding:24px 20px; color:var(--text-muted); font-size:14px; }
.bt-drawer-foot{ padding:16px 20px calc(18px + env(safe-area-inset-bottom)); border-top:1px solid var(--border); }
.bt-cart-total{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.bt-cart-total span{ font-family:var(--mono); font-size:12px; letter-spacing:1px; text-transform:uppercase; color:var(--text-muted); }
.bt-cart-total strong{ font-family:var(--font-display); font-size:22px; }
.bt-cart-note{ margin-top:12px; font-size:12.5px; color:var(--text-muted); }
.bt-cart-note.is-error{ color:#ff7a6b; }
.btn[disabled]{ opacity:0.45; pointer-events:none; }

/* Floating cart button */
.bt-cart-fab{
  position:fixed; right:20px; bottom:20px; z-index:8000; width:58px; height:58px; padding:0;
  display:flex; align-items:center; justify-content:center; border-radius:50%;
  background:var(--accent); color:#0a0a09; border:0; box-shadow:0 14px 40px rgba(0,0,0,0.55), 0 0 30px rgba(232,134,44,0.35);
  transform:translateY(0); transition:transform 400ms var(--ease-drawer), opacity 200ms ease;
}
.bt-cart-fab svg{ width:24px; height:24px; }
.bt-cart-fab[hidden]{ display:flex; opacity:0; transform:translateY(24px) scale(0.9); pointer-events:none; }
.bt-cart-fab:active{ transform:scale(0.95); }
body.bt-has-player .bt-cart-fab{ bottom:calc(var(--bt-player-h, 84px) + 16px); }
.bt-cart-count{
  position:absolute; top:-4px; right:-4px; min-width:22px; height:22px; padding:0 6px; border-radius:11px;
  background:var(--text); color:#0a0a09; font-family:var(--mono); font-size:12px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}

/* Cover that flies to the cart (created in JS) */
.bt-fly{ position:fixed; z-index:9500; pointer-events:none; border-radius:10px; overflow:hidden; box-shadow:0 10px 30px rgba(0,0,0,0.5); }

/* -------------------------------- Player bar ------------------------------- */
.bt-player{
  position:fixed; left:0; right:0; bottom:0; z-index:8500;
  background:rgba(10,10,9,0.92); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-top:1px solid rgba(var(--fx), 0.35);
  transform:translateY(100%); transition:transform 400ms var(--ease-drawer), border-color 300ms ease;
}
.bt-player[hidden]{ display:block; visibility:hidden; }
.bt-player.is-visible{ transform:none; visibility:visible; }
.bt-player-inner{ max-width:1280px; margin:0 auto; display:grid; grid-template-columns:auto minmax(120px, 220px) auto 1fr auto; align-items:center; gap:18px; padding:12px 20px calc(12px + env(safe-area-inset-bottom)); }
.bt-player-cover{ width:56px; border-radius:8px; overflow:hidden; }
.bt-player-cover .bt-art-word, .bt-player-cover .bt-art-bpm{ display:none; }
.bt-player-info{ min-width:0; display:flex; flex-direction:column; }
.bt-player-title{ font-family:var(--font-display); font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bt-player-producer{ font-size:12.5px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bt-player-keys{ display:flex; align-items:center; gap:6px; }
.bt-key{ width:44px; height:44px; display:flex; align-items:center; justify-content:center; padding:0; border-radius:50%; background:none; border:0; color:var(--text-secondary); transition:color 150ms ease, transform 160ms var(--ease-out); }
.bt-key svg{ width:18px; height:18px; }
.bt-key:active{ transform:scale(0.92); }
.bt-key-play{ width:48px; height:48px; background:rgb(var(--fx)); color:#0a0a09; }
.bt-key-play svg{ width:20px; height:20px; }
.bt-key-play .bt-ic-pause{ display:none; }
.bt-player.is-playing .bt-key-play .bt-ic-play{ display:none; }
.bt-player.is-playing .bt-key-play .bt-ic-pause{ display:block; }
@media (hover:hover) and (pointer:fine){ .bt-key:not(.bt-key-play):hover{ color:var(--text); } }
.bt-player-track{ position:relative; display:flex; align-items:center; gap:12px; min-width:0; height:48px; }
.bt-player-viz{ position:absolute; left:0; right:86px; top:0; height:100%; width:calc(100% - 86px); pointer-events:none; }
.bt-player-bar{ position:relative; flex:1; height:20px; cursor:pointer; display:flex; align-items:center; }
.bt-player-bar::before{ content:''; position:absolute; left:0; right:0; height:3px; border-radius:2px; background:rgba(255,255,255,0.12); }
.bt-player-fill{ position:absolute; left:0; right:0; height:3px; border-radius:2px; transform-origin:left; transform:scaleX(0); background:linear-gradient(90deg, rgb(var(--fx)), rgb(var(--fx-hi))); box-shadow:0 0 10px rgba(var(--fx), 0.7); }
.bt-player-bar:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; border-radius:4px; }
.bt-player-time{ flex-shrink:0; width:74px; text-align:right; font-family:var(--mono); font-size:12px; color:var(--text-muted); }
.bt-player-buy{ height:44px; padding:0 18px; white-space:nowrap; }
@media (max-width:900px){
  .bt-player-inner{ grid-template-columns:auto 1fr auto auto; gap:12px; padding:10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .bt-player-track{ grid-column:1 / -1; order:5; height:34px; }
  .bt-player-keys #bt-prev, .bt-player-keys #bt-next{ display:none; }
  .bt-player-buy{ padding:0 14px; }
}

/* ---------------------------------- Footer gap ----------------------------- */
body.bt-has-player #site-footer{ padding-bottom:calc(var(--bt-player-h, 84px) + 30px); }

/* ------------------------------ Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce){
  .bt-card.bt-in{ animation:btFade 200ms ease both; animation-delay:0ms; }
  @keyframes btFade{ from{ opacity:0; } to{ opacity:1; } }
  .bt-card.bt-enter{ transform:none; }
  .bt-card.is-playing .bt-eq i{ animation:none; transform:scaleY(0.7); }
  .bt-drawer-panel, .bt-player, .bt-cart-fab, .bt-modal{ transition-property:opacity, visibility; }
  .bt-drawer-panel{ transform:none; opacity:0; }
  .bt-drawer.is-open .bt-drawer-panel{ opacity:1; }
  .bt-player{ transform:none; opacity:0; }
  .bt-player.is-visible{ opacity:1; }
  @starting-style{ .bt-modal[open]{ transform:none; } }
  .bt-modal.is-closing{ transform:none; }
  @media (hover:hover) and (pointer:fine){ .bt-card:hover{ transform:none; } }
}

/* Small fixes from the first browser pass */
.bt-name, .bt-by{ display:block; }
.bt-fly .bt-art-word{ font-size:11px; left:7px; right:7px; bottom:7px; }
.bt-fly .bt-art-bpm{ display:none; }

/* Phones: two beats per row, filters on one swipeable row */
@media (max-width:560px){
  .bt-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
  .bt-body{ padding:10px 10px 10px; }
  .bt-name{ font-size:13px; }
  .bt-by{ font-size:11.5px; }
  .bt-facts{ gap:4px; margin:6px 0 10px; }
  .bt-fact{ font-size:10.5px; padding:2px 6px; }
  .bt-fact:nth-child(3){ display:none; }
  .bt-buy{ height:40px; padding:0 10px; font-size:11px; }
  .bt-buy span{ display:none; }
  .bt-buy strong{ font-size:13px; margin:0 auto; }
  .bt-art-word{ font-size:16px; left:10px; bottom:9px; }
  .bt-art-bpm{ top:9px; left:10px; font-size:10px; }
  .bt-play{ width:48px; height:48px; margin:-24px 0 0 -24px; }
  .bt-selects{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin:0 -16px; padding:0 16px; }
  .bt-selects::-webkit-scrollbar{ display:none; }
  .bt-select{ flex-shrink:0; }
  .bt-tags{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin:0 -16px; padding:0 16px; width:calc(100% + 32px); }
  .bt-tags::-webkit-scrollbar{ display:none; }
  .bt-tag{ flex-shrink:0; }
  .bt-meta{ width:100%; }
}

/* =============================== v2 redesign ===============================
   Explore tiles, custom dropdowns, card typography, beat pages. */

/* Readability: heavier body weight and higher contrast on store pages */
.beats-page, .beat-page, .bt-drawer, .bt-modal, .bt-player{ font-weight:400; }
.beats-page .section-lede, .beat-page .section-lede{ color:var(--text-secondary); font-size:16px; }

/* --------------------------------- Explore -------------------------------- */
.bt-explore{ max-width:1180px; margin:0 auto 22px; }
.bt-explore-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
.bt-explore-title{ font-family:var(--font-display); font-size:clamp(20px, 2vw, 26px); margin:0; }
.bt-explore-nav{ display:flex; align-items:center; gap:8px; }
.bt-round{ width:40px; height:40px; display:flex; align-items:center; justify-content:center; padding:0; border-radius:50%; background:var(--panel); border:1px solid var(--border-strong); color:var(--text); transition:opacity 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.bt-round svg{ width:18px; height:18px; }
.bt-round:disabled{ opacity:0.3; }
.bt-round:active{ transform:scale(0.94); }
.bt-round[hidden]{ display:none; }
.bt-hide{ height:40px; display:flex; align-items:center; gap:6px; padding:0 14px; border-radius:10px; background:var(--panel); border:1px solid var(--border-strong); color:var(--text); font-family:var(--font-sans); font-size:14px; font-weight:600; }
.bt-hide svg{ width:16px; height:16px; transition:transform 250ms var(--ease-out); }
.bt-hide.is-collapsed svg{ transform:rotate(180deg); }
@media (hover:hover) and (pointer:fine){ .bt-round:not(:disabled):hover, .bt-hide:hover{ border-color:var(--accent-dim); } }

/* Collapsible row: grid rows 1fr -> 0fr animates height without measuring */
.bt-cats-wrap{ display:grid; grid-template-rows:1fr; transition:grid-template-rows 300ms var(--ease-out), opacity 200ms ease; }
.bt-cats-wrap.is-collapsed{ grid-template-rows:0fr; opacity:0; }
.bt-cats-clip{ min-height:0; overflow:hidden; position:relative; }
.bt-cats-clip::before, .bt-cats-clip::after{ content:''; position:absolute; top:0; bottom:0; width:60px; z-index:2; pointer-events:none; opacity:0; transition:opacity 200ms ease; }
.bt-cats-clip::before{ left:0; background:linear-gradient(90deg, var(--bg), transparent); }
.bt-cats-clip::after{ right:0; background:linear-gradient(-90deg, var(--bg), transparent); }
.bt-cats-clip.fade-l::before, .bt-cats-clip.fade-r::after{ opacity:1; }
/* min-height = the row once the collections are drawn (175px), so the page below does not jump when they appear. */
.bt-cats{ display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; padding:14px 2px 16px; min-height:175px; }
.bt-cats::-webkit-scrollbar{ display:none; }

.bt-col{
  flex:0 0 auto; width:132px; scroll-snap-align:start;
  display:flex; flex-direction:column; align-items:center; gap:6px; padding:16px 8px 14px;
  background:transparent; border:1px solid transparent; border-radius:18px; color:var(--text-secondary);
  transition:background-color 200ms ease, border-color 200ms ease, transform 200ms var(--ease-out);
}
.bt-col:disabled{ opacity:0.35; cursor:default; }
.bt-col.is-active{ background:linear-gradient(180deg, rgba(232,134,44,0.16), rgba(232,134,44,0.04)); border-color:rgba(232,134,44,0.55); color:var(--text); transform:translateY(-3px); }
@media (hover:hover) and (pointer:fine){ .bt-col:not(:disabled):not(.is-active):hover{ background:rgba(255,255,255,0.03); border-color:var(--border); } }
.bt-col:active:not(:disabled){ transform:scale(0.97); }

.bt-col-disc{ position:relative; width:84px; height:84px; border-radius:50%; display:block; }
.bt-col-mosaic{ position:absolute; inset:4px; border-radius:50%; overflow:hidden; display:grid; background:#0d0d0c; filter:saturate(0.85) brightness(0.55); transition:filter 250ms ease, transform 300ms var(--ease-out); }
.bt-col-mosaic.n1, .bt-col-mosaic.n0{ grid-template-columns:1fr; }
.bt-col-mosaic.n2{ grid-template-columns:1fr 1fr; }
.bt-col-mosaic.n3{ grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; }
.bt-col-mosaic.n3 .bt-col-tile:first-child{ grid-row:span 2; }
.bt-col-mosaic.n4{ grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; }
.bt-col-tile{ position:relative; overflow:hidden; }
.bt-col-tile .bt-art{ position:absolute; inset:0; aspect-ratio:auto; }
.bt-col-tile .bt-art-word, .bt-col-tile .bt-art-bpm{ display:none; }
.bt-col.is-active .bt-col-mosaic{ filter:saturate(1) brightness(0.8); transform:scale(1.04); }
@media (hover:hover) and (pointer:fine){ .bt-col:not(:disabled):hover .bt-col-mosaic{ filter:saturate(1) brightness(0.72); } }
.bt-col-icon{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; }
.bt-col-icon svg{ width:26px; height:26px; filter:drop-shadow(0 2px 6px rgba(0,0,0,0.6)); }
/* Ring drawn around the disc when the collection is picked */
.bt-col-ring{ position:absolute; inset:-2px; width:calc(100% + 4px); height:calc(100% + 4px); transform:rotate(-90deg); overflow:visible; }
.bt-col-ring circle{ fill:none; stroke:rgba(255,255,255,0.14); stroke-width:2; }
.bt-col.is-active .bt-col-ring circle{ stroke:var(--accent); stroke-width:3; stroke-dasharray:302; stroke-dashoffset:302; animation:btRing 450ms var(--ease-out) forwards; filter:drop-shadow(0 0 6px rgba(232,134,44,0.7)); }
@keyframes btRing{ to{ stroke-dashoffset:0; } }
.bt-col-label{ font-family:var(--font-sans); font-size:14px; font-weight:600; color:inherit; text-align:center; line-height:1.2; }
.bt-col-count{ font-family:var(--mono); font-size:11.5px; color:var(--text-muted); }
.bt-col.is-active .bt-col-count{ color:var(--amber-text); }

/* -------------------------------- Dropdowns ------------------------------- */
.bt-selects{ display:flex; flex-wrap:wrap; gap:10px; }
.bt-dd{ position:relative; }
.bt-dd-btn{
  height:46px; display:flex; align-items:center; gap:8px; padding:0 14px 0 16px; border-radius:12px;
  background:var(--panel); border:1px solid var(--border-strong); color:var(--text);
  font-family:var(--font-sans); font-size:14px; white-space:nowrap;
  transition:border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.bt-dd-btn:active{ transform:scale(0.97); }
.bt-dd-label{ color:var(--text-muted); font-weight:500; }
.bt-dd-value{ font-weight:600; color:var(--text); }
.bt-dd-chev{ width:16px; height:16px; color:var(--text-muted); transition:transform 200ms var(--ease-out); }
.bt-dd.is-open .bt-dd-chev{ transform:rotate(180deg); color:var(--amber-text); }
.bt-dd.is-open .bt-dd-btn, .bt-dd-btn:focus-visible{ border-color:var(--accent); outline:none; }
.bt-dd.is-set .bt-dd-btn{ border-color:rgba(232,134,44,0.6); background:rgba(232,134,44,0.08); }
.bt-dd.is-set .bt-dd-value{ color:var(--amber-text); }
@media (hover:hover) and (pointer:fine){ .bt-dd-btn:hover{ border-color:var(--accent-dim); } }

.bt-dd-panel{
  position:absolute; top:calc(100% + 8px); left:0; z-index:60; min-width:max(100%, 220px); max-height:320px; overflow-y:auto;
  padding:6px; border-radius:14px; background:rgba(16,15,13,0.96); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border:1px solid var(--border-strong); box-shadow:0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,134,44,0.06);
  transform-origin:top left; outline:none;
  opacity:0; transform:scale(0.96) translateY(-4px); visibility:hidden; pointer-events:none;
  transition:opacity 150ms ease, transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
/* Amber line that draws across the top edge as the panel opens */
.bt-dd-panel::before{ content:''; position:absolute; left:14px; right:14px; top:0; height:1px; background:linear-gradient(90deg, transparent, var(--accent), transparent); transform:scaleX(0); transition:transform 300ms var(--ease-out); }
.bt-dd.is-open .bt-dd-panel{ opacity:1; transform:none; visibility:visible; pointer-events:auto; transition:opacity 150ms ease, transform 200ms var(--ease-out), visibility 0s; }
.bt-dd.is-open .bt-dd-panel::before{ transform:scaleX(1); }
.bt-dd-glide{ position:absolute; left:6px; right:6px; top:0; height:40px; border-radius:9px; background:rgba(232,134,44,0.14); opacity:0; pointer-events:none; transition:transform 150ms var(--ease-out), height 150ms var(--ease-out), opacity 150ms ease; }
.bt-dd-opt{
  position:relative; display:flex; align-items:center; gap:10px; min-height:40px; padding:0 12px; border-radius:9px;
  cursor:pointer; font-size:14px; color:var(--text-secondary);
  opacity:0; transform:translateY(4px);
  transition:color 120ms ease, opacity 150ms ease, transform 200ms var(--ease-out);
}
.bt-dd.is-open .bt-dd-opt{ opacity:1; transform:none; transition-delay:calc(var(--k, 0) * 18ms); }
.bt-dd-opt.is-active{ color:var(--text); }
.bt-dd-check{ width:16px; height:16px; flex-shrink:0; border-radius:50%; border:1.5px solid var(--border-strong); position:relative; transition:border-color 150ms ease, background-color 150ms ease; }
.bt-dd-opt[aria-selected="true"]{ color:var(--text); font-weight:600; }
.bt-dd-opt[aria-selected="true"] .bt-dd-check{ border-color:var(--accent); background:var(--accent); }
.bt-dd-opt[aria-selected="true"] .bt-dd-check::after{ content:''; position:absolute; left:4.5px; top:2px; width:4px; height:7px; border:solid #0a0a09; border-width:0 2px 2px 0; transform:rotate(45deg); }
.bt-dd-text{ flex:1; }
.bt-dd-count{ font-family:var(--mono); font-size:12px; color:var(--text-muted); }
.bt-dd-opt.is-active .bt-dd-count{ color:var(--amber-text); }
@media (max-width:560px){
  .bt-dd-panel{ position:fixed; left:12px; right:12px; top:auto; bottom:calc(12px + env(safe-area-inset-bottom)); min-width:0; max-height:60dvh; transform-origin:bottom center; transform:translateY(16px); }
}

/* ------------------------------ Card typography --------------------------- */
.bt-body{ gap:2px; padding:14px 14px 14px; }
.bt-name{ font-family:var(--font-display); font-size:16px; font-weight:700; letter-spacing:0.3px; color:var(--text); line-height:1.25; }
.bt-name:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }
@media (hover:hover) and (pointer:fine){ .bt-name:hover{ color:rgb(var(--fx-soft)); } }
.bt-producer{ display:flex; align-items:center; gap:5px; min-width:0; margin-top:3px; font-size:13.5px; font-weight:500; color:var(--text-secondary); }
.bt-verified{ width:15px; height:15px; flex-shrink:0; color:#3d9bff; }
.bt-specs{ display:flex; align-items:center; gap:8px; margin:12px 0 14px; font-family:var(--mono); font-size:12.5px; color:var(--text-secondary); white-space:nowrap; overflow:hidden; }
.bt-specs b{ color:var(--text); font-weight:700; }
.bt-specs i{ width:3px; height:3px; border-radius:50%; background:rgba(var(--fx), 0.8); flex-shrink:0; }

.bt-buy{
  height:auto; min-height:56px; padding:9px 9px 9px 14px; border-radius:12px; gap:12px;
  background:linear-gradient(135deg, rgba(var(--fx), 0.20), rgba(var(--fx), 0.06));
  border:1px solid rgba(var(--fx), 0.5);
}
.bt-buy-text{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-width:0; }
.bt-buy-label{ font-family:var(--mono); font-size:10.5px; letter-spacing:1.4px; text-transform:uppercase; color:var(--text-secondary); }
.bt-buy-price{ font-family:var(--font-display); font-size:19px; font-weight:800; color:#fff; letter-spacing:0.3px; line-height:1.1; }
.bt-buy-icon{ width:38px; height:38px; flex-shrink:0; display:flex; align-items:center; justify-content:center; border-radius:10px; background:rgb(var(--fx)); color:#0a0a09; transition:transform 200ms var(--ease-out); }
.bt-buy-icon svg{ width:19px; height:19px; }
@media (hover:hover) and (pointer:fine){ .bt-buy:hover .bt-buy-icon{ transform:translateX(2px) rotate(-6deg); } }
.bt-buy.in-cart{ border-style:solid; }
.bt-buy.in-cart .bt-buy-icon{ background:#fff; }
.bt-buy.in-cart .bt-buy-label::after{ content:' · in cart'; color:rgb(var(--fx-soft)); }

.bt-cover-wrap{ position:relative; }
.bt-tag{ height:34px; font-size:12.5px; color:var(--text-secondary); }
.bt-count{ font-size:13px; color:var(--text-secondary); }

/* list view with the new body */
.bt-grid[data-view="list"] .bt-specs{ margin:0; }
.bt-grid[data-view="list"] .bt-buy{ min-height:48px; }
@media (max-width:560px){
  .bt-col{ width:104px; padding:12px 6px; }
  .bt-col-disc{ width:68px; height:68px; }
  .bt-col-label{ font-size:13px; }
  .bt-name{ font-size:14px; }
  .bt-producer{ font-size:12.5px; }
  .bt-specs{ font-size:11px; gap:6px; margin:8px 0 10px; }
  .bt-specs span:nth-of-type(3), .bt-specs i:nth-of-type(2){ display:none; }
  .bt-buy{ min-height:48px; padding:7px 7px 7px 10px; gap:8px; }
  .bt-buy-label{ display:none; }
  .bt-buy span.bt-buy-text{ display:flex; }
  .bt-buy-price{ font-size:15px; margin:0; }
  .bt-buy-icon{ width:32px; height:32px; }
}

/* player / modal bits that now hold links and the badge */
.bt-player-title{ color:var(--text); }
@media (hover:hover) and (pointer:fine){ .bt-player-title:hover{ color:rgb(var(--fx-soft)); } }
.bt-player-producer .bt-producer{ margin:0; font-size:12.5px; }
.bt-modal-title a{ color:inherit; }
.bt-modal-sub{ display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.bt-modal-sub .bt-producer{ margin:0; font-size:13px; }
.bt-cart-name{ color:var(--text); }

/* ------------------------------- Beat page -------------------------------- */
.beat-page{ padding-top:calc(130px + var(--announce-h, 0px)); padding-bottom:80px; }
.bp-wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
.bp-crumbs{ display:flex; gap:8px; align-items:center; font-family:var(--mono); font-size:12.5px; color:var(--text-muted); margin-bottom:22px; }
.bp-crumbs a{ color:var(--text-secondary); }
.bp-crumbs a:hover{ color:var(--amber-text); }
.bp-hero{
  display:grid; grid-template-columns:minmax(220px, 340px) 1fr; gap:clamp(24px, 4vw, 48px); align-items:center;
  padding:clamp(18px, 3vw, 28px); border:1px solid var(--border-strong); border-radius:20px;
  background:radial-gradient(90% 120% at 0% 0%, rgba(var(--fx), 0.16), transparent 55%), var(--panel);
}
.bp-cover{ position:relative; border-radius:14px; overflow:hidden; box-shadow:0 30px 70px -20px rgba(0,0,0,0.8), 0 0 60px -20px rgba(var(--fx), 0.6); }
.bp-cover .bt-art-word{ font-size:clamp(26px, 3vw, 38px); left:18px; bottom:16px; }
.bp-cover .bt-art-bpm{ top:16px; left:18px; font-size:12px; }
.bp-cover-play{
  position:absolute; left:50%; top:50%; width:76px; height:76px; margin:-38px 0 0 -38px; padding:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center; background:rgba(8,8,7,0.5); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(var(--fx-hi), 0.6); color:rgb(var(--fx-soft)); transition:transform 160ms var(--ease-out), background-color 200ms ease;
}
.bp-cover-play svg{ width:30px; height:30px; }
.bp-cover-play:active{ transform:scale(0.94); }
.beat-page .bp-hero .bt-ic-pause{ display:none; }
.beat-page.is-playing .bp-hero .bt-ic-play{ display:none; }
.beat-page.is-playing .bp-hero .bt-ic-pause{ display:block; }
.beat-page.is-playing .bp-cover-play{ background:rgba(var(--fx), 0.92); color:#0a0a09; }
.bp-kicker{ font-family:var(--mono); font-size:12px; letter-spacing:1.6px; text-transform:uppercase; color:rgb(var(--fx-soft)); margin:0 0 8px; }
.bp-title{ font-family:var(--font-display); font-size:clamp(28px, 4.2vw, 52px); line-height:1.05; margin:0; }
.bp-producer{ display:flex; align-items:center; gap:7px; margin-top:12px; font-size:17px; font-weight:600; color:var(--text); }
.bp-producer .bt-verified{ width:19px; height:19px; }
.bp-facts{ display:grid; grid-template-columns:repeat(auto-fit, minmax(110px, 1fr)); gap:10px; margin:22px 0 0; padding:0; list-style:none; }
.bp-facts li{ padding:10px 12px; border-radius:10px; background:rgba(255,255,255,0.03); border:1px solid var(--border); }
.bp-facts span{ display:block; font-family:var(--mono); font-size:11px; letter-spacing:1.2px; text-transform:uppercase; color:var(--text-muted); }
.bp-facts b{ display:block; margin-top:4px; font-size:16px; color:var(--text); font-weight:600; }
.bp-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:16px; }
.bp-tags a{ font-family:var(--mono); font-size:12.5px; color:var(--text-secondary); border:1px solid var(--border); border-radius:16px; padding:5px 11px; }
.bp-tags a:hover{ color:var(--amber-text); border-color:var(--accent-dim); }
.bp-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.bp-actions .btn{ height:40px; display:inline-flex; align-items:center; gap:8px; padding:0 22px; }
.bp-actions .btn svg{ width:16px; height:16px; }

.bp-section{ margin-top:clamp(36px, 5vw, 56px); }
.bp-section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.bp-section-head h2{ font-family:var(--font-display); font-size:clamp(20px, 2.4vw, 28px); margin:0; }
.bp-section-head a{ font-family:var(--mono); font-size:13px; color:var(--amber-text); }

.bp-licensing{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:18px; }
.bp-license-box, .bp-usage-box{ padding:20px; border:1px solid var(--border-strong); border-radius:18px; background:var(--panel); }
.bp-license-top{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.bp-total span{ display:block; font-family:var(--mono); font-size:11px; letter-spacing:1.4px; text-transform:uppercase; color:var(--text-muted); }
.bp-total strong{ font-family:var(--font-display); font-size:30px; }
.bp-license-buttons{ display:flex; gap:8px; }
.bp-license-buttons .btn{ height:40px; padding:0 18px; }
.bp-tiers{ display:flex; flex-direction:column; gap:8px; }
.bp-tier{ position:relative; display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; padding:15px 16px; border-radius:12px; border:1px solid var(--border-strong); cursor:pointer; transition:border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.bp-tier:active{ transform:scale(0.99); }
.bp-tier input{ position:absolute; opacity:0; pointer-events:none; }
.bp-tier .bt-tier-radio{ width:20px; height:20px; }
.bp-tier.is-selected{ border-color:rgb(var(--fx)); background:rgba(var(--fx), 0.08); }
.bp-tier.is-selected .bt-tier-radio{ border-color:rgb(var(--fx)); }
.bp-tier.is-selected .bt-tier-radio::after{ transform:none; opacity:1; background:rgb(var(--fx)); }
.bp-tier input:focus-visible ~ .bt-tier-radio{ outline:2px solid var(--accent); outline-offset:3px; }
.bp-tier-name{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:15.5px; font-weight:600; }
.bp-tier-files{ display:block; margin-top:3px; font-size:13px; color:var(--text-secondary); }
.bp-tier-price{ font-family:var(--font-display); font-size:19px; }
.bp-usage-box h3{ font-family:var(--font-display); font-size:17px; margin:0 0 4px; }
.bp-usage-box > p{ font-size:13px; color:var(--text-muted); margin:0 0 14px; }
.bp-usage{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.bp-usage li{ display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--border); font-size:14.5px; color:var(--text-secondary); }
.bp-usage li:last-child{ border-bottom:0; }
.bp-usage svg{ width:20px; height:20px; flex-shrink:0; color:rgb(var(--fx-soft)); }
.bp-about{ padding:20px; border:1px solid var(--border); border-radius:18px; font-size:15.5px; color:var(--text-secondary); line-height:1.7; }
.bp-about p{ margin:0; }
.bp-row{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(220px, 1fr); gap:18px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:thin; padding-bottom:8px; }
.bp-row .bt-card{ scroll-snap-align:start; }

@media (max-width:900px){
  .bp-hero{ grid-template-columns:1fr; }
  .bp-cover{ max-width:360px; }
  .bp-licensing{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .beat-page{ padding-top:calc(100px + var(--announce-h, 0px)); }
  .bp-wrap{ padding:0 16px; }
  .bp-license-buttons{ width:100%; }
  .bp-license-buttons .btn{ flex:1; }
  .bp-row{ grid-auto-columns:minmax(160px, 46%); gap:12px; }
}
@media (prefers-reduced-motion: reduce){
  .bt-col.is-active .bt-col-ring circle{ animation:none; stroke-dashoffset:0; }
  .bt-dd-panel, .bt-dd-opt{ transform:none !important; }
  .bt-dd.is-open .bt-dd-opt{ transition-delay:0ms; }
  .bt-cats-wrap{ transition:none; }
}

/* The toolbar (a GSAP-transformed stacking context) must sit above the grid so open dropdowns are not covered by cards */
.bt-toolbar{ position:relative; z-index:30; }
.bt-explore{ position:relative; z-index:31; }
.bp-row{ scrollbar-color:rgba(232,134,44,0.4) transparent; }
.bp-row::-webkit-scrollbar{ height:6px; }
.bp-row::-webkit-scrollbar-thumb{ background:rgba(255,255,255,0.14); border-radius:3px; }

/* ================================ v3 pass =================================
   Saved beats, no scrollbar in dropdowns, compact related rows, bigger
   small text. */

/* Page now starts with Explore (no hero): clear the fixed header */
.beats-page .bt-section{ padding-top:calc(118px + var(--announce-h, 0px)); }
@media (max-width:560px){ .beats-page .bt-section{ padding-top:calc(92px + var(--announce-h, 0px)); } }

/* --------------------------------- Save ---------------------------------- */
.bt-save{
  position:absolute; top:10px; right:10px; z-index:3; width:40px; height:40px; padding:0;
  display:flex; align-items:center; justify-content:center; border-radius:50%;
  background:rgba(8,8,7,0.55); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.18); color:#fff;
  transition:background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.bt-save svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; transition:fill 200ms ease; }
.bt-save:active{ transform:scale(0.92); }
.bt-save.is-saved{ color:#ff4d6d; border-color:rgba(255,77,109,0.55); background:rgba(255,77,109,0.14); }
.bt-save.is-saved svg{ fill:currentColor; }
@media (hover:hover) and (pointer:fine){ .bt-save:not(.is-saved):hover{ border-color:rgba(255,255,255,0.4); } }
/* Burst ring when a beat gets saved */
.bt-save::after{ content:''; position:absolute; inset:-1px; border-radius:inherit; border:2px solid #ff4d6d; opacity:0; transform:scale(0.8); pointer-events:none; }
.bt-save.is-burst::after{ animation:btBurst 450ms var(--ease-out); }
@keyframes btBurst{ 0%{ opacity:0.8; transform:scale(0.8); } 100%{ opacity:0; transform:scale(1.6); } }
/* the playing equalizer moves to the top-left so the heart keeps its corner */
.bt-eq{ left:12px; right:auto; }
.bt-grid[data-view="list"] .bt-save{ position:static; flex-shrink:0; margin-left:4px; order:5; width:40px; height:40px; background:transparent; }
.bt-grid[data-view="list"] .bt-cover-wrap{ position:relative; }
.bt-grid[data-view="list"] .bt-cover-wrap .bt-save{ display:none; }

/* Beat page save button */
.bp-save svg{ fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.bp-save.is-saved{ color:#ff4d6d; border-color:rgba(255,77,109,0.6); }
.bp-save.is-saved svg{ fill:currentColor; }
.bp-save{ position:relative; }
.bp-save::after{ content:''; position:absolute; inset:-1px; border:2px solid #ff4d6d; opacity:0; pointer-events:none; }
.bp-save.is-burst::after{ animation:btBurst 450ms var(--ease-out); }

/* ------------------------- Dropdowns without scrollbar --------------------- */
.bt-dd-panel{ max-height:none; overflow:visible; scrollbar-width:none; }
.bt-dd-panel::-webkit-scrollbar{ display:none; }
@media (max-width:560px){ .bt-dd-panel{ max-height:70dvh; overflow-y:auto; } }

/* ---------------------------- Compact related rows ------------------------- */
.bp-row{ grid-auto-columns:minmax(168px, 190px); gap:14px; }
.bp-row .bt-body{ padding:10px 10px 10px; }
.bp-row .bt-name{ font-size:14px; }
.bp-row .bt-producer{ font-size:12.5px; }
.bp-row .bt-specs{ font-size:12px; margin:8px 0 10px; gap:6px; }
.bp-row .bt-specs span:nth-of-type(3), .bp-row .bt-specs i:nth-of-type(2){ display:none; }
.bp-row .bt-buy{ min-height:46px; padding:6px 6px 6px 10px; }
.bp-row .bt-buy-label{ font-size:10.5px; }
.bp-row .bt-buy-price{ font-size:15px; }
.bp-row .bt-buy-icon{ width:32px; height:32px; }
.bp-row .bt-art-word{ font-size:15px; left:10px; bottom:9px; }
.bp-row .bt-play{ width:44px; height:44px; margin:-22px 0 0 -22px; }
.bp-row .bt-save{ width:34px; height:34px; top:8px; right:8px; }
.bp-row .bt-save svg{ width:16px; height:16px; }
@media (max-width:560px){ .bp-row{ grid-auto-columns:minmax(150px, 44%); } }

/* ------------------------------ Readable small text ------------------------ */
.bt-col-count{ font-size:12.5px; color:var(--text-secondary); }
.bt-col-label{ font-size:14.5px; }
.bt-dd-label{ color:var(--text-secondary); }
.bt-dd-count{ font-size:12.5px; color:var(--text-secondary); }
.bt-dd-opt{ font-size:14.5px; color:var(--text); }
.bt-search input{ font-size:15px; }
.bt-search input::placeholder{ color:var(--text-secondary); opacity:0.8; }
.bt-tag{ font-size:13px; color:var(--text); border-color:var(--border-strong); }
.bt-count{ font-size:13.5px; color:var(--text); }
.bt-reset{ font-size:13px; }
.bt-producer{ color:var(--text); opacity:0.86; }
.bt-specs{ font-size:13px; color:var(--text); }
.bt-specs span{ opacity:0.85; }
.bt-buy-label{ font-size:11.5px; color:var(--text); opacity:0.8; letter-spacing:1.2px; }
.bt-tier-files, .bp-tier-files{ font-size:13.5px; color:var(--text-secondary); }
.bt-tier-pill{ font-size:11.5px; }
.bt-modal-kicker{ font-size:12.5px; }
.bt-modal-sub{ font-size:14px; color:var(--text-secondary); }
.bt-terms summary{ font-size:14px; }
.bt-terms-body{ font-size:13.5px; }
.bt-terms-body th{ font-size:12px; color:var(--text-secondary); }
.bt-cart-tier{ font-size:13.5px; color:var(--text-secondary); }
.bt-cart-remove{ font-size:13px; color:var(--text-secondary); }
.bt-cart-note{ font-size:13.5px; color:var(--text-secondary); }
.bt-cart-total span{ font-size:12.5px; color:var(--text-secondary); }
.bt-player-producer, .bt-player-producer .bt-producer{ font-size:13.5px; }
.bt-player-time{ font-size:13px; color:var(--text-secondary); }
.bt-tier-badge{ font-size:12px; }
.bt-tier-card li{ font-size:14.5px; }
.bp-crumbs{ font-size:13.5px; }
.bp-kicker{ font-size:13px; }
.bp-facts span{ font-size:12px; color:var(--text-secondary); }
.bp-facts b{ font-size:17px; }
.bp-tags a{ font-size:13.5px; color:var(--text); }
.bp-total span{ font-size:12.5px; color:var(--text-secondary); }
.bp-usage-box > p{ font-size:14px; color:var(--text-secondary); }
.bp-usage li{ font-size:15px; color:var(--text); }
.bp-section-head a{ font-size:14px; }
@media (max-width:560px){
  .bt-specs{ font-size:12px; }
  .bt-col-count{ font-size:12px; }
}

/* License cards: round dot instead of the dash, with room before the text */
.bt-tier-card li{ padding-left:18px; }
.bt-tier-card li::before{ content:""; top:0.62em; left:2px; width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 8px rgba(232,134,44,0.5); }
.bt-tier-card:not(.is-unlimited) li::before{ background:var(--text-secondary); box-shadow:none; }

/* Verified badge: smooth scalloped seal, white tick, soft glow */
.bt-verified{ width:16px; height:16px; flex-shrink:0; vertical-align:-3px; filter:drop-shadow(0 0 5px rgba(56,150,255,0.45)); }
.bt-verified-seal{ fill:#2f8fff; }
.bt-verified-tick{ fill:none; stroke:#fff; stroke-width:2.3; stroke-linecap:round; stroke-linejoin:round; }
.bp-producer .bt-verified{ width:20px; height:20px; }
.bt-player-producer .bt-verified, .bt-modal-sub .bt-verified{ width:15px; height:15px; }

/* Dropdown selection: no empty circles, just an amber tick drawn in on the chosen option */
.bt-dd-check{ width:16px; height:16px; flex-shrink:0; border:0; border-radius:0; background:none; }
.bt-dd-check path{ fill:none; stroke:var(--accent); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:16; stroke-dashoffset:16; transition:stroke-dashoffset 250ms var(--ease-out); }
.bt-dd-opt[aria-selected="true"] .bt-dd-check{ border:0; background:none; }
.bt-dd-opt[aria-selected="true"] .bt-dd-check::after{ content:none; }
.bt-dd-opt[aria-selected="true"] .bt-dd-check path{ stroke-dashoffset:0; }
.bt-dd.is-open .bt-dd-opt[aria-selected="true"] .bt-dd-check path{ transition-delay:120ms; }
.bt-dd-opt[aria-selected="true"] .bt-dd-text{ color:var(--amber-text); }
@media (prefers-reduced-motion: reduce){ .bt-dd-check path{ transition:none; } }
.bt-dd.align-right .bt-dd-panel{ left:auto; right:0; transform-origin:top right; }
.bt-dd.align-right .bt-dd-glide{ left:6px; right:6px; }
@media (max-width:560px){ .bt-dd.align-right .bt-dd-panel{ left:12px; right:12px; } }

/* Card text block: readable sans title, clear producer line, spec pills */
.bt-titles{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.bt-name{ font-family:var(--font-sans); font-size:17px; font-weight:700; letter-spacing:-0.1px; line-height:1.25; color:#fff; }
.bt-producer{ margin-top:0; gap:6px; font-size:14px; font-weight:500; color:var(--text-secondary); opacity:1; }
.bt-specs{ display:flex; flex-wrap:nowrap; gap:6px; margin:12px 0 14px; font-family:var(--font-sans); font-size:12.5px; color:var(--text); overflow:hidden; }
.bt-specs i{ display:none; }
.bt-spec{ display:inline-flex; align-items:baseline; gap:3px; padding:4px 9px; border-radius:7px; background:rgba(255,255,255,0.05); border:1px solid var(--border); font-weight:500; white-space:nowrap; opacity:1; }
.bt-spec b{ font-weight:700; font-size:13px; color:#fff; }
.bt-spec small{ font-size:10.5px; font-weight:600; letter-spacing:0.6px; color:var(--text-secondary); }
.bt-spec-genre{ color:rgb(var(--fx-soft)); border-color:rgba(var(--fx), 0.35); background:rgba(var(--fx), 0.08); }
.bp-row .bt-name{ font-size:15px; }
.bp-row .bt-producer{ font-size:13px; }
.bp-row .bt-specs{ font-size:12px; margin:8px 0 10px; }
.bp-row .bt-spec-genre{ display:none; }
@media (max-width:560px){
  .bt-name{ font-size:15px; }
  .bt-producer{ font-size:13px; }
  .bt-specs{ gap:4px; margin:8px 0 10px; font-size:11.5px; }
  .bt-spec{ padding:3px 7px; }
  .bt-spec-genre{ display:none; }
}
.bt-player-time{ width:auto; min-width:84px; white-space:nowrap; }
.bt-player-viz{ right:96px; width:calc(100% - 96px); }

/* ============================== Player v2 =================================
   Three zones: track info | controls with the seek bar under them, times
   either side | buy. Times in tabular figures so they don't jitter. */
.bt-player-inner{
  max-width:1360px; display:grid; grid-template-columns:minmax(0, 1fr) minmax(320px, 640px) minmax(0, 1fr);
  align-items:center; gap:24px; padding:10px 24px calc(10px + env(safe-area-inset-bottom));
}
.bt-player-left{ display:flex; align-items:center; gap:14px; min-width:0; }
.bt-player-cover{ width:56px; flex-shrink:0; border-radius:10px; box-shadow:0 6px 20px rgba(0,0,0,0.5), 0 0 24px -6px rgba(var(--fx), 0.6); }
.bt-player-info{ min-width:0; gap:2px; }
.bt-player-title{ font-family:var(--font-sans); font-size:15.5px; font-weight:700; letter-spacing:-0.1px; }
.bt-player-producer, .bt-player-producer .bt-producer{ font-size:13.5px; color:var(--text-secondary); }

.bt-player-center{ display:flex; flex-direction:column; align-items:stretch; gap:4px; min-width:0; }
.bt-player-keys{ justify-content:center; gap:14px; }
.bt-key{ width:40px; height:40px; }
.bt-key-play{ width:46px; height:46px; box-shadow:0 0 0 4px rgba(var(--fx), 0.16), 0 8px 24px rgba(var(--fx), 0.35); }
.bt-player.is-playing .bt-key-play{ box-shadow:0 0 0 6px rgba(var(--fx), 0.14), 0 8px 28px rgba(var(--fx), 0.45); }

.bt-player-track{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; height:26px; }
.bt-player-time{
  width:auto; min-width:38px; white-space:nowrap;
  font-family:var(--font-sans); font-size:12.5px; font-weight:600; color:var(--text-secondary);
  font-variant-numeric:tabular-nums; letter-spacing:0.2px; text-align:left;
}
.bt-player-time-now{ text-align:right; color:var(--text); }
.bt-player-barwrap{ position:relative; height:26px; display:flex; align-items:center; }
.bt-player-viz{ position:absolute; left:0; right:0; top:-6px; width:100%; height:38px; }
.bt-player-bar{ position:relative; width:100%; height:26px; flex:1; }
.bt-player-bar::before{ height:4px; border-radius:3px; background:rgba(255,255,255,0.12); top:50%; transform:translateY(-50%); }
.bt-player-fill{ height:4px; border-radius:3px; top:50%; margin-top:-2px; }
.bt-player-knob{
  position:absolute; top:50%; left:calc(var(--p, 0) * 100%); width:12px; height:12px; margin:-6px 0 0 -6px;
  border-radius:50%; background:#fff; box-shadow:0 0 0 3px rgba(var(--fx), 0.35), 0 2px 6px rgba(0,0,0,0.5);
  transform:scale(0); transition:transform 160ms var(--ease-out);
}
.bt-player.is-playing .bt-player-knob, .bt-player-bar:hover .bt-player-knob, .bt-player-bar:focus-visible .bt-player-knob{ transform:scale(1); }
.bt-player-bar:hover::before, .bt-player-bar:hover .bt-player-fill{ height:6px; }
.bt-player-bar:hover .bt-player-fill{ margin-top:-3px; }

.bt-player-right{ display:flex; justify-content:flex-end; }
.bt-player-buy{
  display:inline-flex; align-items:center; gap:10px; height:46px; padding:0 8px 0 18px; border-radius:12px;
  background:rgb(var(--fx)); border:0; color:#0a0a09; font-family:var(--font-sans); font-size:14.5px; font-weight:700;
  box-shadow:0 8px 24px rgba(var(--fx), 0.3); transition:transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.bt-player-buy strong{ display:inline-flex; align-items:center; height:32px; padding:0 10px; border-radius:8px; background:rgba(10,10,9,0.18); font-weight:800; font-variant-numeric:tabular-nums; }
.bt-player-buy:active{ transform:scale(0.97); }
@media (hover:hover) and (pointer:fine){ .bt-player-buy:hover{ box-shadow:0 10px 30px rgba(var(--fx), 0.45); } }

@media (max-width:900px){
  .bt-player-inner{ grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"left right" "center center"; gap:6px 12px; padding:10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .bt-player-left{ grid-area:left; }
  .bt-player-right{ grid-area:right; gap:8px; }
  .bt-player-center{ grid-area:center; flex-direction:row; align-items:center; gap:10px; }
  .bt-player-keys{ order:0; gap:4px; }
  .bt-player-keys #bt-prev, .bt-player-keys #bt-next{ display:none; }
  .bt-player-track{ flex:1; order:1; height:auto; grid-template-columns:auto 1fr auto; }
  .bt-player-track{ grid-column:auto; }
  .bt-player-buy{ height:42px; padding:0 6px 0 14px; font-size:13.5px; }
  .bt-player-buy strong{ height:30px; }
}
@media (max-width:560px){
  .bt-player-cover{ width:46px; }
  .bt-player-title{ font-size:14.5px; }
  .bt-player-buy span{ display:none; }
  .bt-player-buy{ padding:0 6px; }
  .bt-player-time{ font-size:12px; min-width:32px; }
}
@media (prefers-reduced-motion: reduce){ .bt-player-knob{ transition:none; } }

/* Saved beats page (profile-saved.html) */
.saved-wrap{ max-width:1180px; margin:0 auto; padding-top:40px; }
.saved-bar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.saved-bar .btn{ height:38px; display:inline-flex; align-items:center; padding:0 18px; }
.saved-page .bt-empty .btn{ display:inline-flex; margin-top:16px; }

/* Collection icons: crisp line icons on a small dark disc for contrast */
.bt-col-icon svg{ width:24px; height:24px; filter:none; shape-rendering:geometricPrecision; position:relative; z-index:1; }
.bt-col-icon::before{ content:""; position:absolute; left:50%; top:50%; width:44px; height:44px; margin:-22px 0 0 -22px; border-radius:50%; background:rgba(8,8,7,0.62); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); box-shadow:inset 0 0 0 1px rgba(255,255,255,0.08); transition:background-color 200ms ease, box-shadow 200ms ease; }
.bt-col.is-active .bt-col-icon{ color:var(--amber-bright); }
.bt-col.is-active .bt-col-icon::before{ background:rgba(8,8,7,0.72); box-shadow:inset 0 0 0 1px rgba(232,134,44,0.45); }
.bt-col[data-col="saved"].is-active .bt-col-icon svg path{ fill:currentColor; }
@media (max-width:560px){ .bt-col-icon::before{ width:38px; height:38px; margin:-19px 0 0 -19px; } .bt-col-icon svg{ width:21px; height:21px; } }

/* Collection discs: plain black, no cover collage, no backing circle */
.bt-col-icon::before{ content:none; }
.bt-col-disc{ background:radial-gradient(circle at 50% 35%, #161513 0%, #070706 70%); box-shadow:inset 0 0 0 1px rgba(255,255,255,0.06); }
.bt-col-icon{ inset:0; display:flex; align-items:center; justify-content:center; color:var(--text); }
.bt-col-icon svg{ width:28px; height:28px; display:block; }
@media (hover:hover) and (pointer:fine){ .bt-col:not(:disabled):hover .bt-col-icon{ color:#fff; } .bt-col:not(:disabled):hover .bt-col-disc{ box-shadow:inset 0 0 0 1px rgba(255,255,255,0.14); } }
.bt-col.is-active .bt-col-disc{ background:radial-gradient(circle at 50% 35%, rgba(232,134,44,0.18) 0%, #070706 72%); }
.bt-col.is-active .bt-col-icon{ color:var(--amber-bright); }
@media (max-width:560px){ .bt-col-icon svg{ width:24px; height:24px; } }

/* Ring centred on the disc exactly (the old inset + width combo drifted 2px left) */
.bt-col-ring{ inset:auto; left:50%; top:50%; width:calc(100% + 4px); height:calc(100% + 4px); transform:translate(-50%, -50%) rotate(-90deg); transform-origin:50% 50%; }

/* ================================ v4 pass =================================
   Featured spotlight, skeletons, kick pulse, icon hover motion, card tilt,
   "From" price label, cleaner generated covers. */

/* ---------------------------- Generated covers ----------------------------- */
/* No title on the art any more: a second ring and a soft horizon line keep
   it from looking empty. */
.bt-art-gen::before{
  content:''; position:absolute; left:-30%; right:-30%; bottom:22%; height:1px;
  background:linear-gradient(90deg, transparent, rgba(var(--fx-soft), 0.35), transparent);
  box-shadow:0 0 18px rgba(var(--fx), 0.6);
}
.bt-art-gen::after{ box-shadow:0 0 0 18px rgba(var(--fx), 0.05), 0 0 0 40px rgba(var(--fx), 0.03), 0 0 0 70px rgba(var(--fx), 0.02); }

/* ---------------------------------- Price ---------------------------------- */
.bt-buy-label{ font-family:var(--font-sans); font-size:12px; font-weight:600; letter-spacing:0.2px; text-transform:none; opacity:0.75; }

/* -------------------------------- Skeletons -------------------------------- */
.bt-skel{
  display:block; border-radius:8px;
  background:linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 70%);
  background-size:300% 100%; animation:btShimmer 1.4s linear infinite;
}
@keyframes btShimmer{ from{ background-position:100% 0; } to{ background-position:0 0; } }
.bt-card-skel{ pointer-events:none; }
.bt-card-skel .bt-skel-cover{ aspect-ratio:1/1; border-radius:0; }
.bt-skel-lines{ display:flex; flex-direction:column; gap:10px; padding:14px; }
.bt-skel-line{ height:12px; }
.bt-skel-line.w40{ width:40%; } .bt-skel-line.w55{ width:55%; } .bt-skel-line.w70{ width:70%; }
.bt-skel-btn{ height:52px; border-radius:12px; margin-top:6px; }
.bt-feat-skel{ display:grid; grid-template-columns:minmax(220px, 360px) 1fr; gap:28px; padding:22px; border:1px solid var(--border); border-radius:22px; }
.bt-feat-skel .bt-skel-cover{ aspect-ratio:1/1; border-radius:16px; }
.bt-feat-skel .bt-skel-lines{ padding:20px 0; gap:16px; }
.bt-feat-skel .bt-skel-line{ height:18px; }
@media (max-width:760px){ .bt-feat-skel{ grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce){ .bt-skel{ animation:none; } }

/* -------------------------------- Featured -------------------------------- */
.bt-featured{ max-width:1180px; margin:0 auto 34px; display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:16px; align-items:stretch; }
.bt-featured:has(.bt-feat-skel){ display:block; }
.bt-feat-spot{
  position:relative; display:grid; grid-template-columns:minmax(200px, 330px) 1fr; gap:clamp(20px, 3vw, 34px); align-items:center;
  padding:clamp(16px, 2.4vw, 24px); border-radius:22px; border:1px solid rgba(var(--fx), 0.35); overflow:hidden; isolation:isolate;
  background:radial-gradient(120% 140% at 0% 0%, rgba(var(--fx), 0.22), transparent 55%), radial-gradient(80% 120% at 100% 100%, rgba(var(--fx), 0.10), transparent 60%), var(--panel);
}
.bt-feat-spot::after{ content:''; position:absolute; inset:0; z-index:-1; background:repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 4px); pointer-events:none; }
.bt-feat-cover{ position:relative; border-radius:16px; overflow:hidden; box-shadow:0 30px 70px -24px rgba(0,0,0,0.85), 0 0 60px -18px rgba(var(--fx), 0.7); transform:scale(calc(1 + var(--kick, 0) * 0.025)); transition:transform 90ms linear; }
.bt-feat-play{
  position:absolute; left:50%; top:50%; width:72px; height:72px; margin:-36px 0 0 -36px; padding:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#0a0a09; background:rgb(var(--fx)); border:0;
  box-shadow:0 0 0 8px rgba(var(--fx), 0.18), 0 14px 40px rgba(var(--fx), 0.45); transition:transform 160ms var(--ease-out), box-shadow 300ms ease;
}
.bt-feat-play svg{ width:28px; height:28px; }
.bt-feat-play .bt-ic-pause{ display:none; }
.bt-feat-spot.is-playing .bt-feat-play .bt-ic-play{ display:none; }
.bt-feat-spot.is-playing .bt-feat-play .bt-ic-pause{ display:block; }
.bt-feat-spot.is-playing .bt-feat-play{ box-shadow:0 0 0 calc(8px + var(--kick, 0) * 10px) rgba(var(--fx), 0.16), 0 14px 40px rgba(var(--fx), 0.5); }
.bt-feat-play:active{ transform:scale(0.94); }
@media (hover:hover) and (pointer:fine){ .bt-feat-play:hover{ transform:scale(1.05); } }
.bt-feat-info{ min-width:0; }
.bt-feat-kicker{ display:flex; align-items:center; gap:8px; margin:0 0 10px; font-family:var(--font-sans); font-size:13px; font-weight:600; letter-spacing:0.4px; color:rgb(var(--fx-soft)); }
.bt-feat-dot{ width:8px; height:8px; border-radius:50%; background:rgb(var(--fx)); box-shadow:0 0 10px rgb(var(--fx)); animation:btDot 2s ease-in-out infinite; }
@keyframes btDot{ 0%,100%{ opacity:1; } 50%{ opacity:0.35; } }
.bt-feat-title{ font-family:var(--font-display); font-size:clamp(28px, 3.6vw, 48px); line-height:1.05; margin:0; }
.bt-feat-title a{ color:#fff; }
@media (hover:hover) and (pointer:fine){ .bt-feat-title a:hover{ color:rgb(var(--fx-soft)); } }
.bt-feat-producer{ margin:10px 0 0; }
.bt-feat-producer .bt-producer{ font-size:16px; color:var(--text); }
.bt-feat-specs{ margin:16px 0 0; flex-wrap:wrap; }
.bt-feat-specs .bt-spec-genre{ display:inline-flex !important; }
.bt-feat-about{ margin:14px 0 0; max-width:520px; font-size:15px; line-height:1.6; color:var(--text-secondary); }
.bt-feat-actions{ display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:20px; }
.bt-feat-actions .btn{ height:40px; display:inline-flex; align-items:center; padding:0 22px; }
.bt-feat-buy{ background:rgb(var(--fx)) !important; border-color:rgb(var(--fx)) !important; color:#0a0a09 !important; }
.bt-feat-save{ position:static; width:48px; height:48px; border-radius:12px; background:transparent; }

.bt-feat-list{ display:flex; flex-direction:column; gap:8px; }
.bt-feat-pick{
  position:relative; flex:1; display:flex; align-items:center; gap:12px; padding:10px; text-align:left;
  border-radius:14px; border:1px solid var(--border); background:var(--panel); color:var(--text);
  transition:border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.bt-feat-pick:active{ transform:scale(0.98); }
.bt-feat-pick.is-active{ border-color:rgba(var(--fx), 0.7); background:linear-gradient(90deg, rgba(var(--fx), 0.14), transparent 80%), var(--panel); }
.bt-feat-pick.is-active::before{ content:''; position:absolute; left:-1px; top:14px; bottom:14px; width:3px; border-radius:2px; background:rgb(var(--fx)); }
@media (hover:hover) and (pointer:fine){ .bt-feat-pick:not(.is-active):hover{ border-color:var(--border-strong); } }
.bt-feat-thumb{ width:58px; flex-shrink:0; border-radius:10px; overflow:hidden; }
.bt-feat-pick-text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.bt-feat-pick-text b{ font-size:14.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bt-feat-pick-text small{ font-size:12.5px; color:var(--text-secondary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

@media (max-width:1000px){
  .bt-featured{ grid-template-columns:1fr; }
  .bt-feat-list{ flex-direction:row; overflow-x:auto; scrollbar-width:none; }
  .bt-feat-list::-webkit-scrollbar{ display:none; }
  .bt-feat-pick{ flex:0 0 220px; }
}
@media (max-width:640px){
  .bt-feat-spot{ grid-template-columns:1fr; }
  .bt-feat-cover{ max-width:320px; }
  .bt-feat-actions .btn{ flex:1; justify-content:center; padding:0 14px; }
}
@media (prefers-reduced-motion: reduce){ .bt-feat-dot{ animation:none; } .bt-feat-cover{ transform:none; } }

/* ------------------------------- Kick pulse ------------------------------- */
/* --kick (0..1) is set by js/beats.js on the playing beat's elements only. */
.bt-card.is-playing .bt-cover-wrap .bt-art{ transform:scale(calc(1.02 + var(--kick, 0) * 0.035)); transition:transform 90ms linear; }
.bt-card.is-playing .bt-cover-wrap::after{
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:radial-gradient(90% 60% at 50% 100%, rgba(var(--fx), calc(0.15 + var(--kick, 0) * 0.35)), transparent 70%);
  mix-blend-mode:screen;
}
.bt-cover-wrap{ overflow:hidden; }
.beat-page.is-playing .bp-cover{ transform:scale(calc(1 + var(--kick, 0) * 0.02)); transition:transform 90ms linear; box-shadow:0 30px 70px -20px rgba(0,0,0,0.8), 0 0 calc(60px + var(--kick, 0) * 40px) -20px rgba(var(--fx), 0.9); }
@media (prefers-reduced-motion: reduce){
  .bt-card.is-playing .bt-cover-wrap .bt-art, .beat-page.is-playing .bp-cover{ transform:none; }
}

/* ---------------------------- Icon hover motion ---------------------------- */
/* One short move per icon, only on a fine pointer hover (tens/day: keep it
   subtle and under 600ms). */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion: no-preference){
  .bt-col-icon svg{ transform-origin:50% 50%; }
  .bt-col:not(:disabled):hover[data-col="saved"] .bt-col-icon svg{ animation:btBeat 600ms var(--ease-out); }
  .bt-col:not(:disabled):hover[data-col="new"] .bt-col-icon svg{ animation:btSpark 520ms var(--ease-out); }
  .bt-col:not(:disabled):hover[data-col="all"] .bt-col-icon svg{ animation:btTurn 480ms var(--ease-in-out); }
  .bt-col:not(:disabled):hover[data-col="under30"] .bt-col-icon svg{ animation:btWiggle 500ms var(--ease-out); }
  .bt-col:not(:disabled):hover[data-col="project"] .bt-col-icon svg{ animation:btLift 420ms var(--ease-out); }
  .bt-col:not(:disabled):hover[data-col^="genre"] .bt-col-icon svg{ animation:btBounce 520ms var(--ease-out); }
  .bt-col[data-col="stems"] .bt-col-icon svg path{ transform-box:fill-box; transform-origin:50% 50%; }
  .bt-col:not(:disabled):hover[data-col="stems"] .bt-col-icon svg path{ animation:btBars 560ms var(--ease-out); }
  .bt-col:not(:disabled):hover[data-col="stems"] .bt-col-icon svg path:nth-child(2){ animation-delay:60ms; }
  .bt-col:not(:disabled):hover[data-col="stems"] .bt-col-icon svg path:nth-child(3){ animation-delay:120ms; }
  .bt-col:not(:disabled):hover[data-col="stems"] .bt-col-icon svg path:nth-child(4){ animation-delay:180ms; }
}
@keyframes btBeat{ 0%{ transform:scale(1); } 25%{ transform:scale(1.22); } 45%{ transform:scale(0.96); } 65%{ transform:scale(1.12); } 100%{ transform:scale(1); } }
@keyframes btSpark{ 0%{ transform:rotate(0) scale(1); } 50%{ transform:rotate(45deg) scale(1.18); } 100%{ transform:rotate(90deg) scale(1); } }
@keyframes btTurn{ 0%{ transform:rotate(0); } 100%{ transform:rotate(90deg); } }
@keyframes btWiggle{ 0%,100%{ transform:rotate(0); } 25%{ transform:rotate(-12deg); } 60%{ transform:rotate(8deg); } }
@keyframes btLift{ 0%,100%{ transform:translateY(0); } 45%{ transform:translateY(-3px); } }
@keyframes btBounce{ 0%,100%{ transform:translateY(0); } 35%{ transform:translateY(-4px); } 65%{ transform:translateY(1px); } }
@keyframes btBars{ 0%,100%{ transform:scaleY(1); } 40%{ transform:scaleY(0.45); } 70%{ transform:scaleY(1.15); } }

/* ---------------------------------- Tilt ---------------------------------- */
.bt-card{ --rx:0deg; --ry:0deg; transform:perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition:border-color 200ms ease, transform 500ms var(--ease-out), box-shadow 200ms ease; }
.bt-card.is-tilting{ transition:border-color 200ms ease, transform 100ms linear, box-shadow 200ms ease; }
@media (hover:hover) and (pointer:fine){ .bt-card:hover{ transform:perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-3px); } }
.bt-glare{
  position:absolute; inset:0; z-index:1; pointer-events:none; mix-blend-mode:screen; opacity:0;
  background:radial-gradient(circle 80px at var(--gx, 50%) var(--gy, 30%), rgba(var(--fx-soft), 0.35), rgba(var(--fx), 0.12) 40%, transparent 100%);
  transition:opacity 250ms ease;
}
.bt-card.is-tilting .bt-glare{ opacity:1; }
.bt-grid[data-view="list"] .bt-card{ transform:none; }
.bt-grid[data-view="list"] .bt-glare{ display:none; }
@media (prefers-reduced-motion: reduce){ .bt-card{ transform:none !important; } }

/* ============================ Top tracks this week ==========================
   Framed news-style block: header with this week's dates, ranked picks, a
   light that runs slowly round the border and HUD corners. */
@property --bt-angle{ syntax:'<angle>'; inherits:false; initial-value:0deg; }

.bt-featured{ display:block; max-width:1180px; margin:0 auto 44px; }
.bt-top-frame{
  position:relative; padding:clamp(16px, 2.2vw, 24px); border-radius:26px; isolation:isolate;
  border:1px solid rgba(232,134,44,0.26);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(232,134,44,0.10), transparent 60%),
    linear-gradient(180deg, #0f0e0c, #090908);
  box-shadow:0 40px 100px -50px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.6);
}
/* Light running round the border (1px ring cut out with a mask) */
.bt-top-beam{
  position:absolute; inset:-1px; z-index:-1; border-radius:inherit; padding:1px; pointer-events:none;
  background:conic-gradient(from var(--bt-angle), transparent 0deg, transparent 290deg, rgba(232,134,44,0.25) 320deg, rgba(255,214,140,0.95) 350deg, transparent 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation:btBeam 9s linear infinite;
  z-index:1;
}
@keyframes btBeam{ to{ --bt-angle:360deg; } }
.bt-top-corner{ position:absolute; z-index:2; width:22px; height:22px; border-color:var(--accent); border-style:solid; border-width:0; pointer-events:none; }
.bt-top-corner.tl{ top:10px; left:10px; border-top-width:2px; border-left-width:2px; border-top-left-radius:8px; }
.bt-top-corner.tr{ top:10px; right:10px; border-top-width:2px; border-right-width:2px; border-top-right-radius:8px; }
.bt-top-corner.bl{ bottom:10px; left:10px; border-bottom-width:2px; border-left-width:2px; border-bottom-left-radius:8px; }
.bt-top-corner.br{ bottom:10px; right:10px; border-bottom-width:2px; border-right-width:2px; border-bottom-right-radius:8px; }

.bt-top-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap;
  padding:6px 12px 16px; margin-bottom:16px; border-bottom:1px solid rgba(255,255,255,0.07);
}
.bt-top-titles{ display:flex; flex-direction:column; gap:6px; }
.bt-top-live{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-sans); font-size:13px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--amber-text); }
.bt-top-title{ font-family:var(--font-display); font-size:clamp(26px, 3vw, 38px); line-height:1; margin:0; color:#fff; }
.bt-top-meta{ display:flex; align-items:center; gap:10px; }
.bt-top-dates{ font-family:var(--font-sans); font-size:14.5px; font-weight:600; color:var(--text); font-variant-numeric:tabular-nums; }
.bt-top-pill{ height:30px; display:inline-flex; align-items:center; padding:0 12px; border-radius:15px; border:1px solid rgba(232,134,44,0.45); background:rgba(232,134,44,0.10); color:var(--amber-text); font-size:13px; font-weight:600; }

.bt-top-body{ display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:16px; align-items:stretch; }
.bt-top-body .bt-feat-spot{ border-color:rgba(var(--fx), 0.28); }

/* Rank: big number in the spotlight kicker, numbered picks */
.bt-feat-kicker{ font-size:14px; gap:10px; }
.bt-feat-rank-big{ font-family:var(--font-display); font-size:22px; font-weight:800; color:rgb(var(--fx)); text-shadow:0 0 18px rgba(var(--fx), 0.6); }
.bt-feat-title{ margin:0; }
.bt-feat-pick{ padding:10px 12px 10px 10px; }
.bt-feat-rank{ width:26px; flex-shrink:0; text-align:center; font-family:var(--font-display); font-size:22px; font-weight:800; color:rgba(255,255,255,0.28); font-variant-numeric:tabular-nums; transition:color 200ms ease; }
.bt-feat-pick.is-active .bt-feat-rank{ color:rgb(var(--fx)); text-shadow:0 0 14px rgba(var(--fx), 0.55); }
@media (hover:hover) and (pointer:fine){ .bt-feat-pick:not(.is-active):hover .bt-feat-rank{ color:rgba(255,255,255,0.5); } }

@media (max-width:1000px){
  .bt-top-body{ grid-template-columns:1fr; }
  .bt-feat-list{ flex-direction:row; overflow-x:auto; }
}
@media (max-width:560px){
  .bt-top-head{ padding:4px 6px 12px; }
  .bt-top-corner{ width:16px; height:16px; }
  .bt-top-meta{ width:100%; justify-content:space-between; }
}
@media (prefers-reduced-motion: reduce){
  .bt-top-beam{ animation:none; --bt-angle:200deg; }
}
@media (max-width:640px){ .bt-top-body .bt-feat-spot{ grid-template-columns:120px 1fr; gap:14px; align-items:start; } .bt-top-body .bt-feat-cover{ max-width:none; } .bt-feat-play{ width:48px; height:48px; margin:-24px 0 0 -24px; } .bt-feat-play svg{ width:20px; height:20px; } .bt-feat-title{ font-size:24px; } .bt-feat-about{ display:none; } .bt-feat-actions{ grid-column:1 / -1; } .bt-feat-specs .bt-spec:last-child{ display:none; } }

/* ==================== Top tracks: showcase + arrows =====================
   No cart here: the spotlight is a news item that opens the beat page.
   Arrows (and swipe on touch) step through the week's picks. */
.bt-feat-stage{ position:relative; min-width:0; }
.bt-feat-slot{ height:100%; }
.bt-feat-slot .bt-feat-spot{ height:100%; cursor:pointer; transition:border-color 200ms ease; }
@media (hover:hover) and (pointer:fine){
  .bt-feat-slot .bt-feat-spot:hover{ border-color:rgba(var(--fx), 0.6); }
  .bt-feat-slot .bt-feat-spot:hover .bt-feat-open svg{ transform:translateX(3px); }
}
.bt-feat-open{ display:inline-flex; align-items:center; gap:8px; margin-top:20px; font-family:var(--font-sans); font-size:14.5px; font-weight:600; color:rgb(var(--fx-soft)); }
.bt-feat-open svg{ width:18px; height:18px; transition:transform 200ms var(--ease-out); }

.bt-feat-nav{
  position:absolute; z-index:3; bottom:clamp(16px, 2.4vw, 24px); width:44px; height:44px; padding:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#fff;
  border:1px solid rgba(255,255,255,0.16); background:rgba(10,10,9,0.72); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  transition:border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.bt-feat-nav svg{ width:20px; height:20px; }
.bt-feat-nav.next{ right:clamp(16px, 2.4vw, 24px); }
.bt-feat-nav.prev{ right:calc(clamp(16px, 2.4vw, 24px) + 54px); }
.bt-feat-nav:active{ transform:scale(0.92); }
@media (hover:hover) and (pointer:fine){ .bt-feat-nav:hover{ border-color:var(--accent); background:rgba(232,134,44,0.16); } }
.bt-feat-nav:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

.bt-feat-dots{ display:none; justify-content:center; gap:8px; margin-top:14px; }
.bt-feat-dots span{ width:7px; height:7px; border-radius:4px; background:rgba(255,255,255,0.22); transition:width 240ms var(--ease-out), background-color 200ms ease; }
.bt-feat-dots span.is-active{ width:22px; background:var(--accent); }

/* Phone: cover centred, details centred below, arrows either side of
   the cover, dots instead of the picks list. */
@media (max-width:640px){
  .bt-top-body .bt-feat-spot{ grid-template-columns:1fr; gap:18px; justify-items:center; text-align:center; padding:18px 14px 22px; }
  .bt-top-body .bt-feat-cover{ width:min(220px, 62vw); max-width:none; }
  .bt-feat-play{ width:56px; height:56px; margin:-28px 0 0 -28px; }
  .bt-feat-play svg{ width:22px; height:22px; }
  .bt-feat-info{ display:flex; flex-direction:column; align-items:center; }
  .bt-feat-kicker{ justify-content:center; }
  .bt-feat-title{ font-size:28px; }
  .bt-feat-producer .bt-producer{ justify-content:center; }
  .bt-feat-specs{ justify-content:center; }
  .bt-feat-specs .bt-spec:last-child{ display:inline-flex; }
  .bt-feat-about{ display:none; }
  .bt-feat-open{ margin-top:16px; }
  .bt-feat-nav{ bottom:auto; top:calc(18px + min(110px, 31vw) - 22px); }
  .bt-feat-nav.prev{ right:auto; left:6px; }
  .bt-feat-nav.next{ right:6px; }
  .bt-feat-dots{ display:flex; }
  .bt-top-body .bt-feat-list{ display:none; }
}

/* Top tracks: slimmer block (top 3, no description) */
.bt-top-frame{ padding:clamp(14px, 1.8vw, 20px); }
.bt-top-head{ padding:2px 10px 12px; margin-bottom:14px; }
.bt-top-title{ font-size:clamp(24px, 2.4vw, 30px); }
.bt-top-live{ font-size:12px; }
.bt-top-body{ grid-template-columns:minmax(0, 1fr) 280px; gap:14px; }
.bt-top-body .bt-feat-spot{ grid-template-columns:200px 1fr; gap:24px; padding:16px; }
.bt-feat-title{ font-size:clamp(26px, 2.8vw, 36px); }
.bt-feat-producer{ margin-top:6px; }
.bt-feat-specs{ margin-top:12px; }
.bt-feat-open{ margin-top:14px; }
.bt-feat-play{ width:60px; height:60px; margin:-30px 0 0 -30px; }
.bt-feat-play svg{ width:24px; height:24px; }
.bt-feat-nav{ bottom:16px; width:40px; height:40px; }
.bt-feat-nav.next{ right:16px; }
.bt-feat-nav.prev{ right:66px; }
.bt-feat-thumb{ width:50px; }
@media (max-width:640px){ .bt-top-body .bt-feat-spot{ grid-template-columns:1fr; padding:16px 14px 18px; gap:14px; } .bt-top-body .bt-feat-cover{ width:min(190px, 52vw); } .bt-feat-title{ font-size:26px; } .bt-feat-nav{ top:calc(16px + min(95px, 26vw) - 20px); } .bt-feat-nav.prev{ left:6px; right:auto; } .bt-feat-nav.next{ right:6px; } }

/* Top tracks header: one slim line. Title in small display type with a
   soft gradient, "This week" as a pill beside it. */
.bt-top-head{ align-items:center; padding:0 8px 12px; }
.bt-top-titles{ flex-direction:row; align-items:center; gap:12px; }
.bt-featured .bt-top-title{ margin:0; line-height:1.1;  order:1; font-size:clamp(18px, 1.7vw, 22px); font-weight:700; letter-spacing:0.6px; background:linear-gradient(90deg, #fff 30%, #f2b56b); -webkit-background-clip:text; background-clip:text; color:transparent; }
.bt-top-live{ order:2; height:26px; padding:0 10px; gap:7px; border-radius:13px; font-size:11px; letter-spacing:1.4px; border:1px solid rgba(232,134,44,0.35); background:rgba(232,134,44,0.08); }
.bt-top-live .bt-feat-dot{ width:6px; height:6px; }
.bt-top-dates{ font-size:13.5px; color:var(--text-secondary); }
.bt-top-pill{ height:26px; font-size:12px; padding:0 10px; }
@media (max-width:560px){ .bt-top-titles{ gap:10px; } }

/* Header: plain text both sides, mirrored: title | live label ... dates | picks */
.bt-top-head{ align-items:center; padding:2px 10px 14px; }
.bt-top-titles, .bt-top-meta{ display:flex; flex-direction:row; align-items:center; gap:14px; }
.bt-featured .bt-top-title{ line-height:1; }
.bt-top-live, .bt-top-pill{ height:auto; padding:0; border:0; border-radius:0; background:none; line-height:1; font-family:var(--font-sans); font-size:12px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:var(--amber-text); }
.bt-top-live{ gap:8px; }
.bt-top-live::before, .bt-top-pill::before{ content:""; width:1px; height:16px; margin-right:6px; background:rgba(255,255,255,0.16); }
.bt-top-live::before{ order:-1; }
.bt-top-pill{ display:inline-flex; align-items:center; gap:8px; }
.bt-top-dates{ order:-1; line-height:1; font-size:13.5px; font-weight:600; color:var(--text); }

/* Equal spacing either side of the dividers (14px) */
.bt-top-live, .bt-top-pill{ gap:14px; }
.bt-top-live::before, .bt-top-pill::before{ margin-right:0; }
.bt-top-live .bt-feat-dot{ display:none; }

/* Narrow screens: single column again (the slim pass above set two) */
@media (max-width:1000px){ .bt-top-body{ grid-template-columns:1fr; } }
@media (max-width:640px){ .bt-feat-nav{ bottom:auto; } .bt-feat-nav.prev{ left:6px; right:auto; } .bt-feat-nav.next{ right:6px; left:auto; } }
@media (max-width:1000px){ .bt-feat-slot, .bt-feat-slot .bt-feat-spot{ height:auto; } }
@media (max-width:640px){ .bt-feat-dots{ margin:14px 0 4px; } }



/* Phone: header group centred, equal space either side */
@media (max-width:640px){
  .bt-top-head{ justify-content:center; padding:2px 0 14px; }
  .bt-top-titles{ justify-content:center; }
}

/* ============================ Cards: motion v2 ============================
   No horizon line on generated covers. Entrance: the card rises while its
   cover wipes up from the bottom and settles from a light zoom. Hover (fine
   pointers): light runs round the border in the beat's colour, the cover
   drifts in and the ring slides, with a coloured glow under the card. */
.bt-art-gen::before{ display:none; }

@keyframes btCardIn{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }
@keyframes btArtIn{ from{ clip-path:inset(100% 0 0 0); transform:scale(1.18); } to{ clip-path:inset(0); transform:none; } }
.bt-card.bt-in{ animation:btCardIn 420ms var(--ease-out) both; animation-delay:calc(var(--i, 0) * 55ms); }
.bt-card.bt-in .bt-art{ animation:btArtIn 700ms var(--ease-out) both; animation-delay:calc(var(--i, 0) * 55ms + 60ms); }

.bt-art-gen{ transition:transform 700ms var(--ease-out); }
.bt-art-gen::after{ transition:transform 900ms var(--ease-out); }

.bt-card::before{
  content:''; position:absolute; inset:0; z-index:3; border-radius:inherit; padding:1px; pointer-events:none;
  background:conic-gradient(from var(--bt-angle), transparent 0deg, transparent 250deg, rgba(var(--fx), 0.5) 310deg, rgba(var(--fx-soft), 1) 350deg, transparent 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity:0; transition:opacity 250ms ease;
}
@media (hover:hover) and (pointer:fine){
  .bt-card:hover::before{ opacity:1; animation:btBeam 2.4s linear infinite; }
  .bt-card:hover{ box-shadow:0 26px 60px -28px rgba(var(--fx), 0.65); }
  .bt-card:hover .bt-art-gen{ transform:scale(1.07); }
  .bt-card:hover .bt-art-gen::after{ transform:translate(-8%, 6%) scale(1.08); }
}
.bt-grid[data-view="list"] .bt-card::before{ display:none; }

@media (prefers-reduced-motion: reduce){
  .bt-card.bt-in{ animation:btFade 200ms ease both; animation-delay:0ms; }
  .bt-card.bt-in .bt-art{ animation:none; }
  .bt-card:hover::before{ animation:none; }
  .bt-card:hover .bt-art-gen, .bt-card:hover .bt-art-gen::after{ transform:none; }
}

/* "This week" reads as a quiet subtitle to the title, not a badge */
.bt-top-live{ font-size:15px; font-weight:500; letter-spacing:0; text-transform:none; color:var(--text-secondary); }

/* Results bar: count, clear and layout toggle as three blocks of the same
   height, border and radius, evenly spaced. */
.bt-meta{ gap:10px; }
.bt-count, .bt-reset{
  height:42px; display:inline-flex; align-items:center; gap:8px; padding:0 14px; border-radius:10px;
  font-family:var(--font-sans); font-size:13.5px; font-weight:600; line-height:1; white-space:nowrap;
  border:1px solid var(--border-strong); background:none;
}
.bt-count{ color:var(--text); font-variant-numeric:tabular-nums; }
.bt-reset{ color:var(--amber-text); text-decoration:none; border-color:rgba(232,134,44,0.4); background:rgba(232,134,44,0.06); transition:border-color 150ms ease, background-color 150ms ease; }
.bt-reset[hidden]{ display:none; }
.bt-reset::before{ content:'×'; font-size:17px; font-weight:500; line-height:1; margin-top:-2px; }
@media (hover:hover) and (pointer:fine){ .bt-reset:hover{ border-color:var(--accent); background:rgba(232,134,44,0.14); } }
.bt-reset:active{ transform:scale(0.97); }
.bt-view-btn{ height:40px; }
@media (max-width:760px){ .bt-meta{ width:100%; justify-content:center; margin-left:0; } }
@media (max-width:560px){ .bt-buy span.bt-buy-price{ display:block; } .bt-buy span.bt-buy-icon{ display:flex; } }

/* --------------------------- Typed BPM range ------------------------------ */
.bt-dd-custom{ margin:6px 0 0; padding:12px 6px 6px; border-top:1px solid rgba(255,255,255,0.08); display:flex; flex-direction:column; gap:8px; }
.bt-dd-custom-title{ padding:0 6px; font-size:12px; font-weight:600; letter-spacing:0.3px; color:var(--text-secondary); }
.bt-dd-custom-row{ display:flex; align-items:center; gap:6px; }
.bt-dd-custom input{
  width:0; flex:1; height:40px; padding:0 10px; border-radius:9px; border:1px solid var(--border-strong); background:rgba(255,255,255,0.03);
  color:var(--text); font-family:var(--font-sans); font-size:15px; font-weight:600; text-align:center; font-variant-numeric:tabular-nums;
  -moz-appearance:textfield; appearance:textfield; transition:border-color 150ms ease;
}
.bt-dd-custom input::-webkit-outer-spin-button, .bt-dd-custom input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.bt-dd-custom input::placeholder{ color:var(--text-muted); font-weight:500; }
.bt-dd-custom input:focus{ outline:none; border-color:var(--accent); }
.bt-dd-custom-sep{ color:var(--text-muted); }
.bt-dd-custom-go{ height:40px; padding:0 14px; border-radius:9px; border:0; background:var(--accent); color:#0a0a09; font-family:var(--font-sans); font-size:13.5px; font-weight:700; transition:transform 160ms var(--ease-out), filter 150ms ease; }
.bt-dd-custom-go:active{ transform:scale(0.96); }
@media (hover:hover) and (pointer:fine){ .bt-dd-custom-go:hover{ filter:brightness(1.08); } }
.bt-dd-custom-hint{ padding:0 6px; font-size:12px; color:var(--text-muted); }
.bt-dd[data-key="bpm"] .bt-dd-panel{ min-width:260px; }
@media (max-width:560px){ .bt-dd[data-key="bpm"] .bt-dd-panel{ min-width:0; } .bt-dd-custom input{ font-size:16px; } }

/* ------------------------- Filters on phones ------------------------------
   Six filters as an even 3 x 2 grid; each button shows its name small on
   top and the value underneath, so every tile is the same size. */
@media (max-width:560px){
  .bt-selects{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; overflow:visible; margin:0; padding:0; }
  .bt-dd{ min-width:0; }
  .bt-dd-btn{
    width:100%; height:54px; padding:0 10px 0 12px; gap:4px; border-radius:12px;
    display:grid; grid-template-columns:minmax(0, 1fr) auto; grid-template-rows:auto auto; align-content:center; text-align:left;
  }
  .bt-dd-label{ grid-column:1; grid-row:1; font-size:11.5px; line-height:1.1; }
  .bt-dd-value{ grid-column:1; grid-row:2; font-size:14px; line-height:1.2; overflow:hidden; text-overflow:ellipsis; }
  .bt-dd-chev{ grid-column:2; grid-row:1 / span 2; width:14px; height:14px; }
}
@media (max-width:560px){ .bt-selects{ width:100%; flex:1 1 100%; } }
/* GSAP leaves an identity transform on the toolbar, which would trap the
   fixed bottom-sheet dropdowns inside it on phones. */
@media (max-width:560px){ .bt-toolbar.reveal-up{ transform:none !important; } }

/* Slightly smaller search field */
.bt-search{ height:40px; padding:0 12px; gap:8px; flex:1 1 330px; min-width:300px; align-self:center; }
.bt-search svg{ width:15px; height:15px; }
.bt-search input{ font-size:14px; }
@media (max-width:560px){ .bt-search{ flex:1 1 100%; min-width:0; } .bt-search input{ font-size:16px; } }

/* Slimmer filter controls: dropdowns match the 40px search; tags, count,
   clear and layout toggle step down with them. */
.bt-dd-btn{ height:40px; padding:0 12px 0 14px; gap:7px; border-radius:10px; font-size:13.5px; }
.bt-dd-chev{ width:14px; height:14px; }
.bt-tag{ height:30px; padding:0 12px; }
.bt-count, .bt-reset{ height:36px; padding:0 12px; font-size:13px; }
.bt-view-btn{ width:40px; height:34px; }
.bt-view-btn svg{ width:14px; height:14px; }
@media (max-width:560px){
  .bt-dd-btn{ height:46px; padding:0 10px 0 12px; gap:2px; }
  .bt-dd-label{ font-size:11px; }
  .bt-dd-value{ font-size:13.5px; }
}

/* Slimmer typed BPM row */
.bt-dd-custom{ padding:10px 6px 4px; gap:7px; }
.bt-dd-custom input{ height:34px; font-size:14px; border-radius:8px; }
.bt-dd-custom-go{ height:34px; padding:0 12px; font-size:13px; border-radius:8px; }
@media (max-width:560px){ .bt-dd-custom input{ height:38px; font-size:16px; } .bt-dd-custom-go{ height:38px; } }
.bt-dd-custom-go{ flex:0 0 auto; height:30px; padding:0 10px; font-size:12.5px; border-radius:7px; }
@media (max-width:560px){ .bt-dd-custom-go{ height:32px; } }
/* Phone: compact Min – Max + Apply row instead of full width */
@media (max-width:560px){
  .bt-dd-custom{ padding:8px 6px 2px; gap:6px; }
  .bt-dd-custom-title{ font-size:11.5px; }
  .bt-dd-custom-row{ gap:6px; }
  .bt-dd-custom input{ flex:0 0 72px; width:72px; height:32px; padding:0 6px; border-radius:7px; font-size:16px; }
  .bt-dd-custom-go{ height:30px; padding:0 10px; font-size:12.5px; }
}
@media (max-width:560px){ .bt-dd-custom-row{ justify-content:center; } .bt-dd-custom-title{ text-align:center; } }

/* ===================== Explore tiles: rounded rectangles ===================
   Discs become 100 x 70 rounded rectangles; the selection line is drawn
   round the rectangle (pathLength 100, same draw-in animation). */
.bt-col-disc{ width:100px; height:70px; border-radius:18px; }
.bt-col-ring{ inset:0; left:0; top:0; width:100%; height:100%; transform:none; overflow:visible; }
.bt-col-ring circle{ display:none; }
.bt-col-ring rect{ fill:none; stroke:rgba(255,255,255,0.14); stroke-width:1.5; vector-effect:non-scaling-stroke; }
.bt-col.is-active .bt-col-ring rect{ stroke:var(--accent); stroke-width:2.5; stroke-dasharray:100; stroke-dashoffset:100; animation:btRing 450ms var(--ease-out) forwards; filter:drop-shadow(0 0 6px rgba(232,134,44,0.7)); }
.bt-col{ width:132px; }
@media (max-width:560px){
  .bt-col{ width:112px; }
  .bt-col-disc{ width:84px; height:58px; border-radius:15px; }
}
@media (prefers-reduced-motion: reduce){ .bt-col.is-active .bt-col-ring rect{ animation:none; stroke-dashoffset:0; } }

/* No light effects on card hover: no border light, no pointer glare, no
   coloured glow. Hover keeps the quiet border tint and cover drift. */
.bt-card::before{ display:none; }
.bt-glare{ display:none; }
@media (hover:hover) and (pointer:fine){
  .bt-card:hover{ box-shadow:none; }
}

/* ============== Track cards: same motion as the pack cards ================
   Pointer tilt up to 6deg (perspective 1100px, 0.6s settle), the cover
   leans in 4% on hover, and covers come in with a focus pull (blurred and
   dim to sharp), one after the other, the first time the grid scrolls in. */
.bt-card{ transform:perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition:border-color 300ms ease, transform 600ms var(--ease-out); }
.bt-card.is-tilting{ transition:border-color 300ms ease, transform 120ms linear; }
@media (hover:hover) and (pointer:fine){
  .bt-card:hover{ transform:perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); }
  .bt-card:hover .bt-art-gen, .bt-card:hover .bt-art img{ transform:scale(1.04); }
  .bt-card:hover .bt-art-gen::after{ transform:none; }
}
.bt-art-gen, .bt-art img{ transition:transform 600ms var(--ease-out), filter 900ms var(--ease-out); }

/* opacity and transform only: animating a blur filter on every cover repaints them each frame */
@keyframes btFocus{ from{ opacity:0.5; transform:scale(1.06); } to{ opacity:1; transform:none; } }
.bt-card.bt-in{ animation:btFade 400ms ease both; animation-delay:calc(var(--i, 0) * 60ms); }
.bt-card.bt-in .bt-art{ animation:btFocus 900ms var(--ease-out) both; animation-delay:calc(var(--i, 0) * 110ms + 120ms); }
@keyframes btFade{ from{ opacity:0; } to{ opacity:1; } }
@media (prefers-reduced-motion: reduce){
  .bt-card.bt-in .bt-art{ animation:none; }
}

/* Rounded buttons, like the rest of the site */
.bt-dd-custom-go, .bt-reset, .bt-view, .bt-count{ border-radius:999px; }
.bt-view-btn:first-child{ border-radius:999px 0 0 999px; }
.bt-view-btn:last-child{ border-radius:0 999px 999px 0; }
/* Phones: small text floor 12px */
@media (max-width:600px){
  .bt-spec{ font-size:12.5px; }
  .bt-col-count, .bt-tier-badge{ font-size:12.5px; }
  .bt-dd-label{ font-size:12px; }
  .bt-dd-custom-title{ font-size:12.5px; }
}

/* Producer name links to their public profile */
.bp-producer a{ color:inherit; text-decoration:none; }
.bp-producer a:hover{ text-decoration:underline; text-underline-offset:3px; }

/* ============================ Licensing v2 ================================
   Track page license box and the license picker: calmer cards, a clear
   selected state, and an "Unlimited" tag with an infinity mark instead of
   the loud mono label. */
.bt-tier-pill{
  display:inline-flex; align-items:center; gap:4px; height:20px; padding:0 8px 0 6px; border-radius:10px;
  font-family:var(--font-sans); font-size:11px; font-weight:600; letter-spacing:0; text-transform:none;
  color:#f5b06a; background:rgba(232,134,44,0.14); box-shadow:inset 0 0 0 1px rgba(232,134,44,0.3);
}
.bt-tier-pill::before{ content:'∞'; font-size:14px; line-height:1; font-weight:500; margin-top:-1px; }
.bp-license-box, .bp-usage-box{ padding:22px; border-radius:20px; border:1px solid rgba(255,255,255,0.08); background:linear-gradient(180deg, #141413, #0f0f0e); box-shadow:inset 0 1px 0 rgba(255,255,255,0.04); }
.bp-license-top{ margin-bottom:18px; align-items:flex-end; }
.bp-total span{ font-family:var(--font-sans); font-size:14px; letter-spacing:0; text-transform:none; color:#cfcfd4; }
.bp-total strong{ display:block; margin-top:2px; font-size:30px; line-height:1.1; font-variant-numeric:tabular-nums; }
.bp-license-buttons .btn{ height:38px; padding:0 18px; }
.bp-tiers{ gap:6px; }
.bp-tier{ padding:14px 16px; border-radius:14px; border:1px solid rgba(255,255,255,0.07); background:rgba(255,255,255,0.025); transition:border-color 160ms ease, background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover:hover) and (pointer:fine){ .bp-tier:not(.is-selected):hover{ border-color:rgba(255,255,255,0.16); background:rgba(255,255,255,0.045); } }
.bp-tier.is-selected{ border-color:rgba(var(--fx), 0.85); background:linear-gradient(90deg, rgba(var(--fx), 0.12), rgba(var(--fx), 0.04)); box-shadow:0 0 0 1px rgba(var(--fx), 0.25); }
.bp-tier-name{ font-size:15px; }
.bp-tier-files{ font-size:14px; color:#cfcfd4; }
.bp-tier-price{ font-size:18px; font-variant-numeric:tabular-nums; }
.bp-tier.is-selected .bp-tier-price{ color:rgb(var(--fx-soft)); }
.bp-usage-box h3{ display:flex; align-items:center; gap:8px; font-size:17px; }
.bp-usage-box > p{ font-size:14px; color:#cfcfd4; }
.bp-usage li{ gap:12px; padding:10px 0; border-bottom-color:rgba(255,255,255,0.06); font-size:14.5px; color:#e8e8ed; }
.bp-usage svg{ width:30px; height:30px; padding:6px; border-radius:8px; background:rgba(var(--fx), 0.12); color:rgb(var(--fx-soft)); }

/* ============================ Track page: phone ============================
   Sized for a phone like a music app: centred, smaller cover; title block
   centred; the four facts on one row; compact actions; slimmer license
   cards and usage list; less padding everywhere. */
@media (max-width:560px){
  .beat-page{ padding-top:96px; }
  .bp-wrap{ padding:0 14px; }
  .bp-crumbs{ margin-bottom:12px; font-size:12px; }
  .bp-hero{ gap:16px; padding:16px 14px 18px; border-radius:20px; justify-items:center; text-align:center; }
  .bp-cover{ width:min(220px, 62vw); max-width:none; border-radius:16px; }
  .bp-cover-play{ width:56px; height:56px; margin:-28px 0 0 -28px; }
  .bp-cover-play svg{ width:22px; height:22px; }
  .bp-cover .bt-art-word{ font-size:22px; left:12px; bottom:10px; }
  .bp-info{ width:100%; display:flex; flex-direction:column; align-items:center; }
  .bp-kicker{ font-size:11px; letter-spacing:1.2px; margin-bottom:6px; }
  .bp-title{ font-size:24px; }
  .bp-producer{ justify-content:center; font-size:14.5px; margin-top:4px; }
  .bp-facts{ width:100%; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:6px; margin-top:14px; }
  .bp-facts li{ padding:8px 4px; border-radius:10px; text-align:center; min-width:0; }
  .bp-facts span{ font-size:9.5px; letter-spacing:0.8px; }
  .bp-facts b{ margin-top:2px; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .bp-facts li:nth-child(n+5){ display:none; }
  .bp-tags{ justify-content:center; margin-top:12px; gap:5px; }
  .bp-tags a{ font-size:12px; padding:4px 9px; }
  .bp-actions{ width:100%; display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:16px; }
  .bp-actions .btn{ height:38px; min-height:38px; padding:0 10px; font-size:13px; justify-content:center; }
  .bp-actions .btn[data-play-beat]{ grid-column:1 / -1; }
  .bp-actions .btn svg{ width:15px; height:15px; }
  .bp-section{ margin-top:30px; }
  .bp-section-head{ margin-bottom:12px; }
  .bp-section-head h2{ font-size:20px; }
  .bp-licensing{ gap:12px; }
  .bp-license-box, .bp-usage-box{ padding:14px; border-radius:18px; }
  .bp-license-top{ margin-bottom:12px; gap:12px; }
  .bp-total strong{ font-size:24px; }
  .bp-license-buttons .btn{ height:38px; font-size:13px; }
  .bp-tier{ gap:10px; padding:11px 12px; border-radius:12px; }
  .bp-tier .bt-tier-radio{ width:18px; height:18px; }
  .bp-tier-name{ font-size:14px; gap:6px; }
  .bp-tier-files{ font-size:11.5px; }
  .bp-tier-price{ font-size:15px; }
  .bt-tier-pill{ height:18px; font-size:10.5px; padding:0 6px 0 5px; }
  .bp-usage-box h3{ font-size:15px; }
  .bp-usage-box > p{ font-size:12px; margin-bottom:8px; }
  .bp-usage li{ gap:10px; padding:8px 0; font-size:13px; }
  .bp-usage svg{ width:26px; height:26px; padding:5px; }
  .bp-about{ font-size:14px; }
}
@media (max-width:560px){
  .bp-actions{ grid-template-columns:1fr 38px 38px; }
  .bp-actions .bp-save, .bp-actions #bp-share{ width:38px; padding:0; }
  .bp-actions .bp-save .bt-save-text, .bp-actions #bp-share span{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
}
/* Store cards on phones: same card, tighter. */
@media (max-width:560px){
  .bt-grid[data-view="grid"]{ gap:10px; }
  .bt-grid[data-view="grid"] .bt-body{ padding:10px 10px 11px; gap:7px; }
  .bt-grid[data-view="grid"] .bt-name{ font-size:14.5px; }
  .bt-grid[data-view="grid"] .bt-producer{ font-size:12.5px; }
  .bt-grid[data-view="grid"] .bt-spec{ height:24px; padding:0 7px; font-size:11.5px; }
  .bt-grid[data-view="grid"] .bt-buy{ min-height:40px; padding:4px 5px 4px 10px; }
  .bt-grid[data-view="grid"] .bt-buy-price{ font-size:15px; }
  .bt-grid[data-view="grid"] .bt-buy-icon{ width:30px; height:30px; }
  .bt-grid[data-view="grid"] .bt-play{ width:42px; height:42px; margin:-21px 0 0 -21px; }
}
/* Contact the producer (track page) */
.bp-contact{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:14px; padding:14px 16px; border-radius:18px; border:1px solid rgba(255,255,255,0.07); background:#121211; }
.bp-contact > div:first-child{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.bp-contact b{ font-size:15px; font-weight:600; color:#f5f5f7; }
.bp-contact small{ font-size:14px; color:#cfcfd4; }
.bp-contact-links{ display:flex; gap:8px; }
.bp-contact-links .btn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width:560px){
  .bp-contact{ flex-direction:column; align-items:stretch; text-align:center; padding:14px; }
  .bp-contact-links{ display:grid; grid-template-columns:1fr 1fr; }
  .bp-contact-links .btn{ justify-content:center; }
}
/* Card play button, Apple Music style: small frosted circle bottom-left,
   white glyph, no coloured ring; white with a dark glyph while playing. */
.bt-grid[data-view="grid"] .bt-play, .bp-row .bt-play{
  left:12px; top:auto; bottom:12px; width:42px; height:42px; margin:0;
  background:rgba(28,28,30,0.5); -webkit-backdrop-filter:blur(16px) saturate(160%); backdrop-filter:blur(16px) saturate(160%);
  border:0; color:#fff; box-shadow:0 6px 18px -6px rgba(0,0,0,0.6);
  transform:translateY(4px) scale(0.96);
}
.bt-grid[data-view="grid"] .bt-play svg, .bp-row .bt-play svg{ width:17px; height:17px; }
.bt-grid[data-view="grid"] .bt-play .bt-ic-play, .bp-row .bt-play .bt-ic-play{ margin-left:2px; }
.bt-grid[data-view="grid"] .bt-card.is-playing .bt-play, .bp-row .bt-card.is-playing .bt-play{ background:#fff; color:#0a0a09; }
.bt-grid[data-view="grid"] .bt-card:focus-within .bt-play, .bt-grid[data-view="grid"] .bt-card.is-current .bt-play,
.bp-row .bt-card:focus-within .bt-play, .bp-row .bt-card.is-current .bt-play{ transform:none; }
@media (hover:hover) and (pointer:fine){
  .bt-grid[data-view="grid"] .bt-card:hover .bt-play, .bp-row .bt-card:hover .bt-play{ transform:none; }
  .bt-grid[data-view="grid"] .bt-play:hover, .bp-row .bt-play:hover{ background:rgba(44,44,46,0.65); }
  .bt-grid[data-view="grid"] .bt-card.is-playing .bt-play:hover{ background:#fff; }
}
@media (hover:none){ .bt-grid[data-view="grid"] .bt-play, .bp-row .bt-play{ transform:none; } }
.bt-grid[data-view="grid"] .bt-play:active, .bp-row .bt-play:active{ transform:scale(0.92); }
@media (max-width:560px){ .bt-grid[data-view="grid"] .bt-play{ left:10px; bottom:10px; width:38px; height:38px; margin:0; } }

/* ============================ Top tracks: Apple ============================
   Quiet card, no HUD corners or running light; sans title with a small
   "This week" label; spotlight as a soft panel with a frosted play button;
   the list as simple rows with the rank, active row lightly highlighted. */
.bt-top-frame{ border:1px solid rgba(255,255,255,0.07) !important; border-radius:26px !important; background:#121211 !important; box-shadow:none !important; padding:24px !important; }
.bt-top-frame::before, .bt-top-frame::after{ display:none !important; }
.bt-top-beam, .bt-top-corner{ display:none !important; }
.bt-top-head{ padding:0 4px 16px !important; margin:0 !important; border:0 !important; }
.bt-top-titles{ flex-direction:row !important; align-items:baseline; gap:12px !important; }
.bt-top-title{ order:-1; font-family:var(--font-sans) !important; font-size:clamp(24px, 2.6vw, 30px) !important; font-weight:700 !important; letter-spacing:-0.02em; color:#f5f5f7 !important; }
.bt-top-live{ font-size:14px !important; font-weight:500 !important; letter-spacing:0 !important; text-transform:none !important; color:#cfcfd4 !important; }
.bt-top-live .bt-feat-dot{ display:none; }
.bt-feat-spot{ border:0 !important; border-radius:20px !important; background:rgba(255,255,255,0.03) !important; box-shadow:none !important; }
.bt-feat-cover{ border-radius:14px !important; box-shadow:0 20px 50px -24px rgba(0,0,0,0.9) !important; }
.bt-feat-play{ width:52px !important; height:52px !important; margin:-26px 0 0 -26px !important; border:0 !important; background:rgba(28,28,30,0.5) !important; -webkit-backdrop-filter:blur(16px) saturate(160%); backdrop-filter:blur(16px) saturate(160%); color:#fff !important; box-shadow:0 8px 24px -8px rgba(0,0,0,0.7) !important; }
.bt-feat-play svg{ width:20px !important; height:20px !important; }
.bt-feat-spot.is-playing .bt-feat-play{ background:#fff !important; color:#0a0a09 !important; }
.bt-feat-rank-big{ font-family:var(--font-sans) !important; font-size:14px !important; font-weight:600 !important; letter-spacing:0 !important; color:#cfcfd4 !important; text-shadow:none !important; }
.bt-feat-rank-big::before{ content:'No. '; }
.bt-feat-title{ font-family:var(--font-sans) !important; font-size:clamp(28px, 3.2vw, 40px) !important; font-weight:700 !important; letter-spacing:-0.025em; }
.bt-feat-open{ font-family:var(--font-sans); font-size:15px; font-weight:500; color:#f0a35b !important; }
.bt-feat-open svg{ display:none; }
.bt-feat-open::after{ content:' ›'; }
.bt-feat-nav{ width:36px !important; height:36px !important; border:0 !important; background:rgba(255,255,255,0.08) !important; color:#f5f5f7 !important; }
@media (hover:hover) and (pointer:fine){ .bt-feat-nav:hover{ background:rgba(255,255,255,0.14) !important; } }
.bt-feat-list{ gap:2px !important; }
.bt-feat-pick{ border:0 !important; border-radius:14px !important; background:transparent !important; box-shadow:none !important; padding:10px !important; }
.bt-feat-pick::before{ display:none !important; }
.bt-feat-pick.is-active{ background:rgba(255,255,255,0.06) !important; }
@media (hover:hover) and (pointer:fine){ .bt-feat-pick:not(.is-active):hover{ background:rgba(255,255,255,0.04) !important; } }
.bt-feat-pick-rank, .bt-feat-pick .bt-feat-rank{ font-family:var(--font-sans) !important; font-size:15px !important; font-weight:600 !important; color:#cfcfd4 !important; text-shadow:none !important; }
.bt-feat-pick.is-active .bt-feat-pick-rank, .bt-feat-pick.is-active .bt-feat-rank{ color:#f5f5f7 !important; }
.bt-feat-thumb{ border-radius:8px !important; }
.bt-feat-pick-text b{ font-weight:600 !important; color:#f5f5f7; }
/* Top tracks: "#1" (no "No."), cover lifted a little more */
.bt-feat-rank-big::before{ content:none !important; }
.bt-feat-rank-big{ font-size:15px !important; font-weight:700 !important; color:rgb(var(--fx-hi, 255,200,90)) !important; }
.bt-feat-cover{ transform:translateY(-2px); box-shadow:0 0 0 1px rgba(255,255,255,0.1), 0 28px 60px -18px rgba(0,0,0,0.95), 0 14px 40px -16px rgba(var(--fx, 232,134,44), 0.55) !important; transition:transform 250ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 250ms ease; }
@media (hover:hover) and (pointer:fine){ .bt-feat-spot:hover .bt-feat-cover{ transform:translateY(-5px) scale(1.01); } }
@media (prefers-reduced-motion: reduce){ .bt-feat-cover{ transform:none; transition:none; } }

/* ===================== Tracks page: full width like Home ===================
   Same frame as the home page: up to 1240px, slim side gutters, so the
   Top tracks card, Explore, filters and the grid use the whole screen. */
.beats-page .bt-section{ max-width:none; padding-left:14px; padding-right:14px; padding-top:96px; }
.beats-page .bt-featured, .beats-page .bt-explore, .beats-page .bt-toolbar, .beats-page .bt-grid, .beats-page .bt-empty{ max-width:1240px; }
.beats-page .bt-grid[data-view="grid"]{ grid-template-columns:repeat(auto-fill, minmax(232px, 1fr)); gap:16px; }
@media (max-width:560px){ .beats-page .bt-section{ padding-left:10px; padding-right:10px; padding-top:88px; } }

/* ============================ Track card v3 ================================
   Grid cards, Apple-style: details as one line of text (never cut off),
   price in the normal sans with a round cart button, no "From". */
.bt-meta-line{ display:none; }
.bt-grid[data-view="grid"] .bt-card .bt-spec{ display:none; }
.bt-grid[data-view="grid"] .bt-card .bt-specs{ margin:0; }
.bt-grid[data-view="grid"] .bt-card .bt-meta-line{ display:block; font-size:14px; color:#d6d6db; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bt-grid[data-view="grid"] .bt-card .bt-body{ gap:8px; padding:14px 14px 14px; }
.bt-grid[data-view="grid"] .bt-card .bt-name{ font-family:var(--font-sans); font-size:16px; font-weight:600; letter-spacing:-0.01em; }
.bt-grid[data-view="grid"] .bt-card .bt-buy{
  display:flex; align-items:center; justify-content:space-between; min-height:0; margin-top:4px; padding:0; border:0; background:none !important; box-shadow:none !important;
}
.bt-grid[data-view="grid"] .bt-card .bt-buy-label{ display:none; }
.bt-grid[data-view="grid"] .bt-card .bt-buy-price{ font-family:var(--font-sans); font-size:17px; font-weight:700; letter-spacing:-0.01em; color:#f5f5f7; }
.bt-grid[data-view="grid"] .bt-card .bt-buy-icon{ width:36px; height:36px; border-radius:50%; background:rgb(var(--fx)); color:#0a0a09; box-shadow:0 6px 16px -6px rgba(var(--fx), 0.7); transition:transform 160ms cubic-bezier(0.23, 1, 0.32, 1), filter 150ms ease; }
.bt-grid[data-view="grid"] .bt-card .bt-buy-icon svg{ width:17px; height:17px; }
.bt-grid[data-view="grid"] .bt-card .bt-buy:active .bt-buy-icon{ transform:scale(0.92); }
@media (hover:hover) and (pointer:fine){ .bt-grid[data-view="grid"] .bt-card .bt-buy:hover .bt-buy-icon{ filter:brightness(1.1); } }
.bt-grid[data-view="grid"] .bt-card{ border-radius:20px; }
.bt-grid[data-view="grid"] .bt-cover-wrap{ border-radius:20px 20px 0 0; }
@media (max-width:560px){
  .bt-grid[data-view="grid"] .bt-card .bt-body{ padding:11px 11px 12px; gap:6px; }
  .bt-grid[data-view="grid"] .bt-card .bt-name{ font-size:15px; }
  .bt-grid[data-view="grid"] .bt-card .bt-meta-line{ font-size:12px; }
  .bt-grid[data-view="grid"] .bt-card .bt-buy-price{ font-size:15.5px; }
  .bt-grid[data-view="grid"] .bt-card .bt-buy-icon{ width:32px; height:32px; }
}

/* ============================ License tiers v2 =============================
   Apple-style plan cards: small pill (Lease / ∞ Unlimited), sans title,
   the files as one line, terms as label/value rows with hairlines. */
.bt-licenses .section-head h2{ font-family:var(--font-sans); font-weight:700; letter-spacing:-0.025em; }
.bt-licenses .section-lede{ color:#d3d3d8; }
.beats-page .bt-tier-grid{ max-width:1240px; gap:14px; }
.bt-tier-card{ display:flex; flex-direction:column; padding:22px 20px 18px; border:1px solid rgba(255,255,255,0.07); border-radius:22px; background:#121211; }
.bt-tier-card.is-unlimited{ border-color:rgba(232,134,44,0.35); background:linear-gradient(180deg, rgba(232,134,44,0.07), #121211 55%); }
.bt-tier-badge{ align-self:flex-start; height:24px; display:inline-flex; align-items:center; padding:0 10px; border-radius:12px; background:rgba(255,255,255,0.07); font-family:var(--font-sans); font-size:12px; font-weight:600; letter-spacing:0; text-transform:none; color:#d1d1d6; }
.bt-tier-card.is-unlimited .bt-tier-badge{ background:rgba(232,134,44,0.16); color:#f5b06a; }
.bt-tier-card h3{ margin:14px 0 4px; font-family:var(--font-sans); font-size:22px; font-weight:700; letter-spacing:-0.02em; color:#f5f5f7; }
.bt-tier-files{ margin:0 0 14px; font-size:14px; font-weight:500; color:#f0a35b; }
.bt-tier-card:not(.is-unlimited) .bt-tier-files{ color:#d1d1d6; }
.bt-tier-terms{ margin:0; padding:0; }
.bt-tier-terms > div{ display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid rgba(255,255,255,0.07); }
.bt-tier-terms dt{ font-size:13.5px; color:#d6d6db; flex-shrink:0; }
.bt-tier-terms dd{ margin:0; font-size:13.5px; font-weight:600; color:#f5f5f7; text-align:right; }
@media (max-width:560px){ .bt-tier-card{ padding:18px 16px 14px; } .bt-tier-card h3{ font-size:20px; } }

/* ======================== Top tracks: ambient FX ==========================
   The cover, heavily blurred, glows behind the spotlight and drifts slowly
   (Apple Music style); a light sweep crosses the cover on hover; "#1" is a
   pill in the track colour; the active list row gets a slim colour bar. */
.bt-feat-spot{ position:relative; overflow:hidden; isolation:isolate; }
.bt-feat-ambient{ position:absolute; inset:-30%; z-index:-1; pointer-events:none; background:var(--cover, none) center/cover no-repeat, radial-gradient(60% 60% at 30% 40%, rgba(var(--fx), 0.35), transparent 70%); filter:blur(70px) saturate(160%); opacity:0.42; animation:btAmbient 18s ease-in-out infinite alternate; }
.bt-feat-spot::after{ content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(90deg, rgba(18,18,17,0.35), rgba(18,18,17,0.85) 70%); }
@keyframes btAmbient{ 0%{ transform:translate(-4%, -2%) scale(1.05) rotate(0deg); } 100%{ transform:translate(4%, 3%) scale(1.15) rotate(6deg); } }
.bt-feat-cover{ perspective:800px; }
.bt-feat-cover::after{ content:''; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.22) 48%, transparent 60%); transform:translateX(-120%); }
@media (hover:hover) and (pointer:fine){
  .bt-feat-spot:hover .bt-feat-cover::after{ transform:translateX(120%); transition:transform 900ms cubic-bezier(0.23, 1, 0.32, 1); }
  .bt-feat-spot:hover .bt-feat-cover{ transform:translateY(-5px) rotateX(3deg) rotateY(-4deg) scale(1.01) !important; }
}
.bt-feat-rank-big{ display:inline-flex; align-items:center; height:24px; padding:0 10px; border-radius:12px; background:rgba(var(--fx), 0.18); box-shadow:inset 0 0 0 1px rgba(var(--fx), 0.35); font-size:13px !important; }
.bt-feat-spot.is-playing .bt-feat-rank-big{ animation:btRankGlow 1.6s ease-in-out infinite; }
@keyframes btRankGlow{ 50%{ box-shadow:inset 0 0 0 1px rgba(var(--fx), 0.6), 0 0 18px rgba(var(--fx), 0.45); } }
.bt-feat-pick{ position:relative; }
.bt-feat-pick.is-active::after{ content:''; position:absolute; left:0; top:22%; bottom:22%; width:3px; border-radius:2px; background:rgb(var(--fx)); box-shadow:0 0 10px rgba(var(--fx), 0.7); }
.bt-feat-thumb{ transition:transform 220ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover:hover) and (pointer:fine){ .bt-feat-pick:hover .bt-feat-thumb{ transform:scale(1.06); } }
@media (prefers-reduced-motion: reduce){
  .bt-feat-ambient, .bt-feat-spot.is-playing .bt-feat-rank-big{ animation:none; }
  .bt-feat-spot:hover .bt-feat-cover::after{ transition:none; }
  .bt-feat-spot:hover .bt-feat-cover{ transform:none !important; }
}
.bt-feat-ambient{ opacity:0.6; }
.bt-feat-spot::after{ background:linear-gradient(90deg, rgba(18,18,17,0.15), rgba(18,18,17,0.72) 75%); }

/* ========================= Top tracks v4: vinyl hero =======================
   The record slides out from behind the cover when a track comes in and
   spins while it plays (label = the cover). Details rise in with a short
   stagger, a light ring runs round the spotlight in the track colour, and
   small EQ bars next to "#1" move while the track plays. */
@property --bt-ring{ syntax:'<angle>'; inherits:false; initial-value:0deg; }
.bt-top-body .bt-feat-spot{ grid-template-columns:auto 1fr; gap:clamp(22px, 3vw, 40px); padding:22px 26px 22px 22px; }
.bt-feat-spot::before{
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none; border-radius:inherit; padding:1px;
  background:conic-gradient(from var(--bt-ring), transparent 0 62%, rgba(var(--fx), 0.9) 78%, rgba(255,255,255,0.85) 80%, rgba(var(--fx), 0.9) 82%, transparent 92%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude;
  animation:btRing 7s linear infinite; opacity:0.75;
}
@keyframes btRing{ to{ --bt-ring:360deg; } }
.bt-feat-art{ position:relative; width:clamp(170px, 19vw, 230px); margin-right:clamp(96px, 11vw, 150px); }
.bt-feat-art .bt-feat-cover{ position:relative; z-index:1; }
.bt-feat-vinyl{ position:absolute; top:4%; left:4%; width:92%; aspect-ratio:1; z-index:0; transform:translateX(56%); animation:btVinylOut 900ms cubic-bezier(0.23, 1, 0.32, 1) 120ms backwards; transition:transform 450ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes btVinylOut{ from{ transform:translateX(0); } }
.bt-feat-disc{
  position:absolute; inset:0; border-radius:50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(0,0,0,0.6) 31.5% 33%, transparent 33.5%),
    repeating-radial-gradient(circle, #121212 0 1.2px, #1d1d1d 1.6px 2.8px),
    #111;
  box-shadow:0 0 0 1px rgba(255,255,255,0.06), 0 22px 50px -16px rgba(0,0,0,0.95);
  animation:btSpin 3.2s linear infinite; animation-play-state:paused;
}
.bt-feat-label{ position:absolute; inset:34%; border-radius:50%; background:var(--cover, rgb(var(--fx))) center/cover no-repeat, rgb(var(--fx)); box-shadow:0 0 0 2px rgba(0,0,0,0.5); }
.bt-feat-label::after{ content:''; position:absolute; left:50%; top:50%; width:12%; height:12%; margin:-6% 0 0 -6%; border-radius:50%; background:#0a0a09; box-shadow:0 0 0 1px rgba(255,255,255,0.12); }
/* sheen on the grooves stays still while the record turns */
.bt-feat-vinyl::after{ content:''; position:absolute; inset:0; border-radius:50%; pointer-events:none; background:conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,0.13) 13%, transparent 20% 50%, rgba(255,255,255,0.09) 63%, transparent 70%); }
@keyframes btSpin{ to{ transform:rotate(360deg); } }
.bt-feat-spot.is-playing .bt-feat-disc{ animation-play-state:running; }
.bt-feat-spot.is-playing .bt-feat-vinyl{ transform:translateX(64%); }
@media (hover:hover) and (pointer:fine){ .bt-feat-spot:hover .bt-feat-vinyl{ transform:translateX(64%); } }

/* details rise in, one after another */
.bt-feat-info > *{ animation:btRise 560ms cubic-bezier(0.23, 1, 0.32, 1) backwards; }
.bt-feat-info > :nth-child(2){ animation-delay:60ms; }
.bt-feat-info > :nth-child(3){ animation-delay:120ms; }
.bt-feat-info > :nth-child(4){ animation-delay:180ms; }
.bt-feat-info > :nth-child(5){ animation-delay:240ms; }
@keyframes btRise{ from{ opacity:0; transform:translateY(14px); } }
.bt-feat-title{ font-size:clamp(32px, 4vw, 52px) !important; line-height:1.02; background:linear-gradient(180deg, #fff 30%, rgba(var(--fx-hi, 255,255,255), 0.85)); -webkit-background-clip:text; background-clip:text; }
.bt-feat-title a{ color:transparent; }
@media (hover:hover) and (pointer:fine){ .bt-feat-title a:hover{ color:transparent; opacity:0.85; } }

/* EQ bars: still and dim when paused, bouncing while playing */
.bt-feat-eq{ display:inline-flex; align-items:flex-end; gap:2px; height:14px; margin-left:10px; opacity:0.35; transition:opacity 200ms ease; }
.bt-feat-eq i{ width:3px; height:100%; border-radius:2px; background:rgb(var(--fx)); transform-origin:bottom; transform:scaleY(0.3); }
.bt-feat-spot.is-playing .bt-feat-eq{ opacity:1; }
.bt-feat-spot.is-playing .bt-feat-eq i{ animation:btEq 900ms ease-in-out infinite alternate; }
.bt-feat-spot.is-playing .bt-feat-eq i:nth-child(2){ animation-duration:640ms; animation-delay:-200ms; }
.bt-feat-spot.is-playing .bt-feat-eq i:nth-child(3){ animation-duration:780ms; animation-delay:-450ms; }
.bt-feat-spot.is-playing .bt-feat-eq i:nth-child(4){ animation-duration:560ms; animation-delay:-120ms; }
@keyframes btEq{ 0%{ transform:scaleY(0.25); } 100%{ transform:scaleY(1); } }

@media (max-width:640px){
  .bt-top-body .bt-feat-spot{ grid-template-columns:1fr; justify-items:center; text-align:center; padding:20px 14px 22px; }
  .bt-feat-art{ width:min(180px, 48vw); margin:0; transform:translateX(-24%); }
  .bt-feat-vinyl{ transform:translateX(46%); }
  .bt-feat-spot.is-playing .bt-feat-vinyl{ transform:translateX(52%); }
  .bt-feat-kicker{ justify-content:center; }
}
@media (prefers-reduced-motion: reduce){
  .bt-feat-spot::before, .bt-feat-info > *, .bt-feat-vinyl, .bt-feat-spot.is-playing .bt-feat-eq i{ animation:none; }
  .bt-feat-disc{ animation:none; }
  .bt-feat-vinyl{ transition:none; }
}

/* Card cover opens the track page */
.bt-card .bt-cover-wrap{ cursor:pointer; }
.bt-card .bt-cover-wrap .bt-play, .bt-card .bt-cover-wrap .bt-save{ cursor:pointer; }



/* Track page: cover play button, Apple-style frosted glass */
.bp-cover-play{
  width:62px; height:62px; margin:-31px 0 0 -31px; border:0;
  background:rgba(255,255,255,0.16); color:#fff;
  -webkit-backdrop-filter:blur(20px) saturate(180%); backdrop-filter:blur(20px) saturate(180%);
  box-shadow:inset 0 0 0 0.5px rgba(255,255,255,0.4), 0 10px 30px -8px rgba(0,0,0,0.55);
  transition:transform 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease, color 200ms ease;
}
.bp-cover-play svg{ width:24px; height:24px; }
.bp-cover-play .bt-ic-play{ transform:translateX(1.5px); }
.bp-cover-play:active{ transform:scale(0.92); }
@media (hover:hover) and (pointer:fine){ .bp-cover:hover .bp-cover-play{ transform:scale(1.06); background:rgba(255,255,255,0.24); } }
.beat-page.is-playing .bp-cover-play{ background:rgba(255,255,255,0.92); color:#0a0a09; }
@media (max-width:640px){ .bp-cover-play{ width:52px; height:52px; margin:-26px 0 0 -26px; } .bp-cover-play svg{ width:20px; height:20px; } }
@media (prefers-reduced-motion: reduce){ .bp-cover-play{ transition:background-color 200ms ease, color 200ms ease; } }

/* Track page: cover play v2. Solid white button in the bottom-left corner
   (like the store cards), black glyph, a ring in the track colour that
   fills with the preview. A soft shade at the bottom keeps it readable. */
.bp-cover::after{ content:''; position:absolute; inset:auto 0 0 0; height:45%; pointer-events:none; background:linear-gradient(0deg, rgba(0,0,0,0.45), transparent); opacity:0.8; transition:opacity 250ms ease; }
.bp-cover-play{
  left:auto; top:auto; right:auto; bottom:16px; left:16px; margin:0; z-index:2;
  width:56px; height:56px; border:0; border-radius:50%;
  background:#fff; color:#0a0a09;
  -webkit-backdrop-filter:none; backdrop-filter:none;
  box-shadow:0 10px 28px -6px rgba(0,0,0,0.6);
  transition:transform 200ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 200ms ease;
}
.bp-cover-play svg:not(.bp-ring){ width:22px; height:22px; position:relative; }
.bp-cover-play .bt-ic-play{ transform:translateX(1.5px); }
.bp-cover-play .bp-ring{ position:absolute; inset:-6px; width:calc(100% + 12px); height:calc(100% + 12px); transform:rotate(-90deg); pointer-events:none; overflow:visible; }
.bp-ring circle{ fill:none; stroke:rgb(var(--fx, 232,134,44)); stroke-width:3; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:calc(100 - var(--p, 0) * 100); opacity:0; transition:opacity 200ms ease; }
.beat-page.is-playing .bp-ring circle{ opacity:1; }
.beat-page.is-playing .bp-cover-play{ background:#fff; color:#0a0a09; box-shadow:0 10px 28px -6px rgba(0,0,0,0.6), 0 0 24px -4px rgba(var(--fx, 232,134,44), 0.6); }
.bp-cover-play:active{ transform:scale(0.92); }
@media (hover:hover) and (pointer:fine){
  .bp-cover:hover .bp-cover-play{ transform:scale(1.07); background:#fff; }
  .bp-cover:hover::after{ opacity:1; }
}
@media (max-width:640px){
  .bp-cover-play{ width:48px; height:48px; bottom:12px; left:12px; margin:0; }
  .bp-cover-play svg:not(.bp-ring){ width:19px; height:19px; }
}
@media (prefers-reduced-motion: reduce){ .bp-cover-play{ transition:none; } .bp-ring circle{ transition:none; } }

/* Track page: Contact card (Instagram / Email) */
.bp-contact{ display:block; padding:14px 14px 14px 18px; }
.bp-contact-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.bp-contact-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.bp-contact-links{ display:flex; align-items:center; gap:8px; }
.bp-contact-links .btn{ height:40px; display:inline-flex; align-items:center; gap:8px; }
.bp-contact-ic{ width:40px; padding:0 !important; justify-content:center; border-radius:50% !important; }
.bp-contact-ic svg{ width:17px !important; height:17px !important; }
@media (max-width:560px){
  .bp-contact{ padding:14px; }
}
.bp-contact > div.bp-contact-row{ flex-direction:row; align-items:center; gap:14px; }
@media (max-width:640px){
  .bp-contact{ text-align:left; }
  .bp-contact > div.bp-contact-row{ flex-direction:row; align-items:center; flex-wrap:nowrap; gap:12px; }
  .bp-contact-links{ display:flex; width:auto; flex-shrink:0; }
}

/* Track page: Message button next to Share (opens the chat with the producer) */
.bp-msg-btn svg{ width:16px; height:16px; }
@media (max-width:560px){
  .bp-actions{ grid-template-columns:1fr 38px 38px 38px; }
  .bp-actions .bp-msg-btn{ width:38px; padding:0; }
  .bp-actions .bp-msg-btn span{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
}

/* Track page: cover play v3. Frosted glass that takes its colour from the
   artwork behind it, centred; the cover dims softly around it on hover,
   the glyphs cross-fade between play and pause, a thin white ring traces
   the preview while it plays. Soft, slow curves throughout. */
.bp-cover::after{ inset:0; height:auto; background:radial-gradient(circle at 50% 50%, rgba(0,0,0,0.28), rgba(0,0,0,0) 62%); opacity:0; transition:opacity 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.bp-cover .bt-art img{ transition:transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease; }
.bp-cover-play{
  left:50%; top:50%; bottom:auto; right:auto; margin:-34px 0 0 -34px; z-index:2;
  width:68px; height:68px; border:0; border-radius:50%;
  background:rgba(255,255,255,0.12); color:#fff;
  -webkit-backdrop-filter:blur(22px) saturate(200%) brightness(1.15); backdrop-filter:blur(22px) saturate(200%) brightness(1.15);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.35), inset 0 0 0 0.5px rgba(255,255,255,0.22), 0 12px 36px -12px rgba(0,0,0,0.55);
  transition:transform 500ms cubic-bezier(0.22, 1, 0.36, 1), background-color 400ms ease, box-shadow 400ms ease;
}
.bp-cover-play svg:not(.bp-ring){ position:absolute; left:50%; top:50%; width:24px; height:24px; margin:-12px 0 0 -12px; filter:drop-shadow(0 1px 2px rgba(0,0,0,0.25)); transition:opacity 260ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.beat-page .bp-cover-play .bt-ic-play, .beat-page .bp-cover-play .bt-ic-pause{ display:block !important; }
.bp-cover-play .bt-ic-play{ transform:translateX(1.5px); opacity:1; }
.bp-cover-play .bt-ic-pause{ transform:scale(0.6) rotate(-90deg); opacity:0; }
.beat-page.is-playing .bp-cover-play .bt-ic-play{ transform:translateX(1.5px) scale(0.6) rotate(90deg); opacity:0; }
.beat-page.is-playing .bp-cover-play .bt-ic-pause{ transform:none; opacity:1; }
.beat-page.is-playing .bp-cover-play{ background:rgba(255,255,255,0.12); color:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,0.35), inset 0 0 0 0.5px rgba(255,255,255,0.22), 0 12px 36px -12px rgba(0,0,0,0.55); }
.bp-cover-play .bp-ring{ inset:-1px; width:calc(100% + 2px); height:calc(100% + 2px); }
.bp-cover-play .bp-ring circle{ stroke:rgba(255,255,255,0.95); stroke-width:2.4; }
.bp-cover-play:active{ transform:scale(0.9); transition-duration:160ms; }
@media (hover:hover) and (pointer:fine){
  .bp-cover:hover::after{ opacity:1; }
  .bp-cover:hover .bt-art img{ transform:scale(1.04); }
  .bp-cover:hover .bp-cover-play{ transform:scale(1.1); background:rgba(255,255,255,0.2); }
}
/* playing: the artwork breathes very slightly */
.beat-page.is-playing .bp-cover .bt-art img{ animation:bpBreathe 6s ease-in-out infinite; }
@keyframes bpBreathe{ 50%{ transform:scale(1.035); } }
@media (max-width:640px){
  .bp-cover-play{ width:58px; height:58px; margin:-29px 0 0 -29px; left:50%; top:50%; bottom:auto; }
  .bp-cover-play svg:not(.bp-ring){ width:21px; height:21px; margin:-10.5px 0 0 -10.5px; }
}
@media (prefers-reduced-motion: reduce){
  .bp-cover-play, .bp-cover-play svg:not(.bp-ring), .bp-cover .bt-art img{ transition:opacity 200ms ease; }
  .beat-page.is-playing .bp-cover .bt-art img{ animation:none; }
}

/* Cover play: Apple "Liquid Glass". A thick glass lens over the artwork:
   strong blur + saturation so the photo shows through, a light rim that is
   brighter at the top-left, a soft specular highlight on top and a faint
   inner glow. Glyphs sit above the glass layers. */
.bp-cover-play{
  background:linear-gradient(145deg, rgba(255,255,255,0.26), rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.12));
  -webkit-backdrop-filter:blur(14px) saturate(230%) brightness(1.2) contrast(1.05); backdrop-filter:blur(14px) saturate(230%) brightness(1.2) contrast(1.05);
  box-shadow:inset 0 1.5px 1px rgba(255,255,255,0.5), inset 0 -1px 1px rgba(255,255,255,0.1), inset 0 0 20px rgba(255,255,255,0.08), 0 16px 36px -14px rgba(0,0,0,0.65);
}
.beat-page.is-playing .bp-cover-play{ background:linear-gradient(145deg, rgba(255,255,255,0.26), rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.12)); box-shadow:inset 0 1.5px 1px rgba(255,255,255,0.5), inset 0 -1px 1px rgba(255,255,255,0.1), inset 0 0 20px rgba(255,255,255,0.08), 0 16px 36px -14px rgba(0,0,0,0.65); }
.bp-cover-play::before{
  content:''; position:absolute; inset:0; border-radius:50%; padding:1.2px; pointer-events:none;
  background:linear-gradient(140deg, rgba(255,255,255,0.9), rgba(255,255,255,0.12) 38%, rgba(255,255,255,0.04) 62%, rgba(255,255,255,0.5));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude;
}
.bp-cover-play::after{
  content:''; position:absolute; left:18%; top:6%; width:64%; height:40%; border-radius:50%; pointer-events:none;
  background:radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.5), rgba(255,255,255,0) 70%); opacity:0.75;
  transition:opacity 400ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bp-cover-play svg:not(.bp-ring){ z-index:1; }
@media (hover:hover) and (pointer:fine){
  .bp-cover:hover .bp-cover-play{ background:linear-gradient(145deg, rgba(255,255,255,0.32), rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.16)); }
  .bp-cover:hover .bp-cover-play::after{ opacity:1; transform:translateY(-1px) scaleX(1.05); }
}

/* Cover play: larger glyph, optically centred (the triangle's own shape
   already leans right, so no extra nudge) */
.bp-cover-play svg:not(.bp-ring){ width:28px; height:28px; margin:-14px 0 0 -14px; }
.bp-cover-play .bt-ic-play{ transform:none; }
.beat-page.is-playing .bp-cover-play .bt-ic-play{ transform:scale(0.6) rotate(90deg); }
@media (max-width:640px){ .bp-cover-play svg:not(.bp-ring){ width:24px; height:24px; margin:-12px 0 0 -12px; } }

/* Track page: producer's Instagram / Email as small icons next to the name */
.bp-producer-links{ display:inline-flex; align-items:center; gap:6px; margin-left:6px; padding-left:12px; border-left:1px solid rgba(255,255,255,0.12); }
.bp-producer-links a{ width:30px; height:30px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.06); color:#d1d1d6; transition:background-color 150ms ease, color 150ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.bp-producer-links svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.bp-producer-links a:active{ transform:scale(0.92); }
@media (hover:hover) and (pointer:fine){ .bp-producer-links a:hover{ background:rgba(255,255,255,0.12); color:#fff; } }

/* Track page: no breadcrumb / kicker, hero sits a bit higher */
.beat-page{ padding-top:calc(116px + var(--announce-h, 0px)); }
@media (max-width:640px){ .beat-page{ padding-top:96px; } }

/* Liquid Glass play buttons everywhere over artwork (store cards, list
   rows, "More from", Top tracks) — same lens as the track page cover:
   the artwork shows through blurred and saturated, a light rim brighter at
   the top-left and a soft highlight on top. White glyph, also while playing. */
.bt-grid .bt-play, .bp-row .bt-play, .bt-card .bt-play, .bt-feat-spot .bt-feat-play{
  border:0 !important; color:#fff !important;
  background:linear-gradient(145deg, rgba(255,255,255,0.26), rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.12)) !important;
  -webkit-backdrop-filter:blur(14px) saturate(230%) brightness(1.2) contrast(1.05) !important; backdrop-filter:blur(14px) saturate(230%) brightness(1.2) contrast(1.05) !important;
  box-shadow:inset 0 1.5px 1px rgba(255,255,255,0.5), inset 0 -1px 1px rgba(255,255,255,0.1), inset 0 0 16px rgba(255,255,255,0.08), 0 10px 26px -10px rgba(0,0,0,0.6) !important;
  transition:transform 450ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease, background 300ms ease !important;
}
.bt-grid .bt-play::before, .bp-row .bt-play::before, .bt-card .bt-play::before, .bt-feat-spot .bt-feat-play::before{
  content:''; position:absolute; inset:0; border-radius:50%; padding:1px; pointer-events:none;
  background:linear-gradient(140deg, rgba(255,255,255,0.9), rgba(255,255,255,0.12) 38%, rgba(255,255,255,0.04) 62%, rgba(255,255,255,0.5));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude;
}
.bt-card .bt-play svg, .bt-feat-spot .bt-feat-play svg{ position:relative; z-index:1; filter:drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
.bt-card.is-playing .bt-play, .bt-feat-spot.is-playing .bt-feat-play{
  color:#fff !important;
  background:linear-gradient(145deg, rgba(255,255,255,0.32), rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.16)) !important;
}
@media (hover:hover) and (pointer:fine){
  .bt-card .bt-play:hover, .bt-feat-spot .bt-feat-play:hover{ background:linear-gradient(145deg, rgba(255,255,255,0.34), rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.18)) !important; }
  .bt-feat-spot:hover .bt-feat-play{ transform:scale(1.08); }
}
@media (prefers-reduced-motion: reduce){ .bt-card .bt-play, .bt-feat-spot .bt-feat-play{ transition:opacity 200ms ease !important; } }

/* Card play: a bit bigger, larger glyph, optically centred, smooth
   play/pause cross-fade like the track page */
.bt-grid[data-view="grid"] .bt-play, .bp-row .bt-play{ width:50px; height:50px; left:12px; bottom:12px; }
.bt-grid[data-view="grid"] .bt-play svg, .bp-row .bt-play svg{ position:absolute; left:50%; top:50%; width:22px; height:22px; margin:-11px 0 0 -11px !important; transition:opacity 240ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1); }
.bt-grid[data-view="grid"] .bt-play .bt-ic-play, .bt-grid[data-view="grid"] .bt-play .bt-ic-pause, .bp-row .bt-play .bt-ic-play, .bp-row .bt-play .bt-ic-pause{ display:block !important; }
.bt-grid[data-view="grid"] .bt-play .bt-ic-pause, .bp-row .bt-play .bt-ic-pause{ opacity:0; transform:scale(0.6) rotate(-90deg); }
.bt-grid[data-view="grid"] .bt-card.is-playing .bt-play .bt-ic-play, .bp-row .bt-card.is-playing .bt-play .bt-ic-play{ opacity:0; transform:scale(0.6) rotate(90deg); }
.bt-grid[data-view="grid"] .bt-card.is-playing .bt-play .bt-ic-pause, .bp-row .bt-card.is-playing .bt-play .bt-ic-pause{ opacity:1; transform:none; }
@media (max-width:560px){
  .bt-grid[data-view="grid"] .bt-play{ width:44px; height:44px; left:10px; bottom:10px; }
  .bt-grid[data-view="grid"] .bt-play svg{ width:19px; height:19px; margin:-9.5px 0 0 -9.5px !important; }
}

/* Card play: always visible, centred on the cover */
.bt-grid[data-view="grid"] .bt-play, .bp-row .bt-play{
  left:50% !important; top:50% !important; bottom:auto !important; right:auto !important;
  width:56px !important; height:56px !important; margin:-28px 0 0 -28px !important;
  opacity:1 !important; transform:none;
}
@media (hover:hover) and (pointer:fine){
  .bt-grid[data-view="grid"] .bt-card:hover .bt-play, .bp-row .bt-card:hover .bt-play{ transform:scale(1.08); }
}
.bt-grid[data-view="grid"] .bt-play:active, .bp-row .bt-play:active{ transform:scale(0.92); }
@media (max-width:560px){
  .bt-grid[data-view="grid"] .bt-play{ width:48px !important; height:48px !important; margin:-24px 0 0 -24px !important; }
}

/* Track page: Save / Saved keeps the same width, so the buttons next to it never shift */
@media (min-width:561px){ .bp-actions .bp-save .bt-save-text{ display:inline-block; min-width:3.1em; text-align:left; } }

/* Track page actions: one row, slightly smaller; on narrower screens Save,
   Share and Message become round icon buttons so nothing wraps. */
@media (min-width:561px){
  .bp-actions{ flex-wrap:nowrap; gap:8px; }
  .bp-actions .btn{ height:40px; padding:0 16px; font-size:13.5px; flex-shrink:0; }
  .bp-actions .btn svg{ width:15px; height:15px; }
}
@media (min-width:561px) and (max-width:1180px){
  .bp-actions .bp-save, .bp-actions #bp-share, .bp-actions .bp-msg-btn{ width:40px; padding:0; justify-content:center; }
  .bp-actions .bp-save .bt-save-text, .bp-actions #bp-share span, .bp-actions .bp-msg-btn span{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; min-width:0; }
}

/* Track page: action buttons on the same 5-column grid as the facts above
   (equal widths, same gap, same left and right edges) */
@media (min-width:561px){
  .bp-actions{ display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:10px; }
  .bp-actions .btn{ width:auto; min-width:0; padding:0 10px; justify-content:center; white-space:nowrap; }
  .bp-actions .bp-save .bt-save-text{ min-width:0; }
}
/* Fact labels (BPM, Key, …) in the site's sans instead of the mono font */
.bp-facts span{ font-family:var(--font-sans); font-size:13px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:#c8c8cd; }
@media (max-width:560px){ .bp-facts span{ font-size:9.5px; letter-spacing:0.05em; } }

/* ===================== Top tracks: refined edges + chart ====================
   Outer card: hairline border with a soft light catch at the top. Spotlight:
   clean border in the track colour (the running light ring is gone). Right
   panel: a small chart with a header, rows highlighted in the track colour. */
.bt-top-frame{
  border:1px solid transparent !important;
  background:linear-gradient(#121211, #121211) padding-box, linear-gradient(170deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04) 38%, rgba(255,255,255,0.03) 70%, rgba(255,255,255,0.08)) border-box !important;
  box-shadow:0 30px 80px -40px rgba(0,0,0,0.9) !important;
}
.bt-feat-spot::before{ display:none !important; animation:none !important; }
.bt-top-body .bt-feat-spot{
  border:0 !important;
  box-shadow:inset 0 0 0 1px rgba(var(--fx, 232,134,44), 0.28), inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 60px -30px rgba(var(--fx, 232,134,44), 0.45) !important;
}

.bt-top-body .bt-feat-list{
  display:flex; flex-direction:column; gap:4px !important; padding:10px; border-radius:20px;
  border:1px solid transparent;
  background:linear-gradient(#171716, #141413) padding-box, linear-gradient(170deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.06)) border-box;
}
.bt-feat-list-head{ display:flex; align-items:baseline; justify-content:space-between; padding:6px 8px 8px; }
.bt-feat-list-head span{ font-family:var(--font-sans); font-size:13.5px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:#c8c8cd; }
.bt-feat-list-head a{ font-size:13px; font-weight:500; color:#f0a35b; text-decoration:none; }
@media (hover:hover) and (pointer:fine){ .bt-feat-list-head a:hover{ text-decoration:underline; text-underline-offset:3px; } }
.bt-top-body .bt-feat-pick{ flex:0 0 auto; padding:8px 10px 8px 8px !important; border-radius:14px !important; border:1px solid transparent !important; gap:12px; transition:background-color 200ms ease, border-color 200ms ease; }
.bt-top-body .bt-feat-pick.is-active{ background:rgba(var(--fx, 232,134,44), 0.12) !important; border-color:rgba(var(--fx, 232,134,44), 0.35) !important; }
.bt-top-body .bt-feat-pick.is-active::after, .bt-top-body .bt-feat-pick::before{ display:none !important; }
.bt-top-body .bt-feat-pick .bt-feat-rank{ width:20px; font-family:var(--font-sans) !important; font-size:14px !important; font-weight:700 !important; color:#8a8a90 !important; }
.bt-top-body .bt-feat-pick.is-active .bt-feat-rank{ color:rgb(var(--fx-hi, 245,176,106)) !important; }
.bt-top-body .bt-feat-thumb{ width:48px; border-radius:10px !important; box-shadow:0 0 0 1px rgba(255,255,255,0.08); }
.bt-top-body .bt-feat-pick-text b{ font-size:14.5px; }
.bt-top-body .bt-feat-pick-text small{ font-size:14px; color:#d6d6db; }
@media (hover:hover) and (pointer:fine){ .bt-top-body .bt-feat-pick:not(.is-active):hover{ background:rgba(255,255,255,0.05) !important; } }
@media (max-width:1000px){ .bt-top-body .bt-feat-list{ flex-direction:row; flex-wrap:nowrap; overflow-x:auto; } .bt-feat-list-head{ display:none; } .bt-top-body .bt-feat-pick{ flex:0 0 220px; } }
@media (max-width:640px){ .bt-top-body .bt-feat-list{ display:none; } }

/* ============================== Player tools ===============================
   Edit (tempo / key), Loop, Lyrics, Volume, More next to the price in the
   bottom player. Pills with an icon; the active ones glow amber. Panels
   rise above the player as frosted cards. */
.bt-player-right{ display:flex; align-items:center; gap:10px; }
.bt-tools{ position:relative; display:flex; align-items:center; gap:2px; }
.bt-tool{
  height:36px; display:inline-flex; align-items:center; gap:7px; padding:0 12px; border:0; border-radius:18px;
  background:transparent; color:#d1d1d6; font-family:var(--font-sans); font-size:13.5px; font-weight:600; cursor:pointer;
  transition:background-color 150ms ease, color 150ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.bt-tool svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.bt-tool[data-tool="more"] svg{ fill:currentColor; stroke:none; }
.bt-tool-ic{ width:36px; padding:0; justify-content:center; }
.bt-tool:active{ transform:scale(0.94); }
.bt-tool.is-on, .bt-tool[aria-expanded="true"]{ color:#f5b06a; background:rgba(232,134,44,0.14); }
@media (hover:hover) and (pointer:fine){ .bt-tool:hover{ background:rgba(255,255,255,0.08); color:#fff; } .bt-tool.is-on:hover{ background:rgba(232,134,44,0.2); color:#f5b06a; } }

.bt-pop{
  position:absolute; right:0; bottom:calc(100% + 16px); z-index:5; width:320px; padding:14px;
  border-radius:20px; border:1px solid rgba(255,255,255,0.1);
  background:rgba(20,20,19,0.92); -webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%);
  box-shadow:0 30px 70px -20px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.06);
  opacity:0; transform:translateY(8px) scale(0.97); transform-origin:bottom right;
  transition:opacity 160ms ease, transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.bt-pop.is-open{ opacity:1; transform:none; }
.bt-pop.is-vol{ width:220px; padding:10px 14px; }
.bt-pop.is-more{ width:220px; padding:6px; }
.bt-pop.is-lyrics{ width:360px; }
.bt-pop-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.bt-pop-head b{ font-size:15px; font-weight:600; color:#f5f5f7; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bt-pop-reset{ height:28px; padding:0 12px; border:0; border-radius:14px; background:rgba(255,255,255,0.08); color:#d1d1d6; font:inherit; font-size:12.5px; font-weight:600; cursor:pointer; }
@media (hover:hover) and (pointer:fine){ .bt-pop-reset:hover{ background:rgba(255,255,255,0.14); color:#fff; } }
.bt-pop-note{ margin:12px 2px 0; font-size:13.5px; line-height:1.5; color:#c8c8cd; }

.bt-fx{ padding:12px; border-radius:14px; background:rgba(255,255,255,0.04); }
.bt-fx + .bt-fx{ margin-top:8px; }
.bt-fx-row{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:10px; }
.bt-fx-label{ font-size:13.5px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:#c8c8cd; }
.bt-fx-val{ display:flex; align-items:baseline; gap:8px; }
.bt-fx-val b{ font-size:16px; font-weight:700; color:#f5f5f7; font-variant-numeric:tabular-nums; }
.bt-fx-val small{ font-size:13.5px; color:#c8c8cd; }

/* Range: thin track, amber fill up to the thumb, white thumb */
.bt-fx-range{ -webkit-appearance:none; appearance:none; width:100%; height:20px; margin:0; background:transparent; cursor:pointer; --p:50%; }
.bt-fx-range::-webkit-slider-runnable-track{ height:4px; border-radius:2px; background:linear-gradient(90deg, #e8862c var(--p), rgba(255,255,255,0.14) var(--p)); }
.bt-fx-range::-moz-range-track{ height:4px; border-radius:2px; background:rgba(255,255,255,0.14); }
.bt-fx-range::-moz-range-progress{ height:4px; border-radius:2px; background:#e8862c; }
.bt-fx-range::-webkit-slider-thumb{ -webkit-appearance:none; width:16px; height:16px; margin-top:-6px; border-radius:50%; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,0.5); transition:transform 150ms ease; }
.bt-fx-range::-moz-range-thumb{ width:16px; height:16px; border:0; border-radius:50%; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,0.5); }
.bt-fx-range:active::-webkit-slider-thumb{ transform:scale(1.15); }
.bt-fx-range:focus-visible{ outline:none; }
.bt-fx-range:focus-visible::-webkit-slider-thumb{ box-shadow:0 0 0 4px rgba(232,134,44,0.35); }

/* Key: − / + with a 13-step meter (−6 … +6) */
.bt-fx-steps{ display:flex; align-items:center; gap:10px; }
.bt-fx-steps button{ width:34px; height:34px; flex:0 0 34px; border:0; border-radius:50%; background:rgba(255,255,255,0.08); color:#f5f5f7; font-size:18px; line-height:1; cursor:pointer; transition:background-color 150ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.bt-fx-steps button:active{ transform:scale(0.9); }
@media (hover:hover) and (pointer:fine){ .bt-fx-steps button:hover{ background:rgba(255,255,255,0.16); } }
.bt-fx-meter{ flex:1; display:flex; align-items:center; justify-content:space-between; gap:3px; }
.bt-fx-meter i{ flex:1; height:12px; border-radius:2px; background:rgba(255,255,255,0.1); transition:background-color 200ms ease, transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.bt-fx-meter i.is-zero{ height:18px; background:rgba(255,255,255,0.35); }
.bt-fx-meter i.is-on{ background:#e8862c; transform:scaleY(1.25); }

.bt-lyrics{ width:100%; height:200px; resize:vertical; padding:12px 14px; border-radius:14px; border:1px solid rgba(255,255,255,0.1); background:#0d0d0c; color:#f5f5f7; font:inherit; font-size:15px; line-height:1.6; }
.bt-lyrics:focus{ outline:none; border-color:rgba(232,134,44,0.6); }

.bt-vol{ display:flex; align-items:center; gap:10px; }
.bt-vol-mute{ width:32px; height:32px; flex:0 0 32px; border:0; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.08); color:#f5f5f7; cursor:pointer; }
.bt-vol-mute svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

.bt-more{ display:flex; flex-direction:column; }
.bt-more a, .bt-more button{ display:flex; align-items:center; height:40px; padding:0 12px; border:0; border-radius:12px; background:transparent; color:#f5f5f7; font:inherit; font-size:14px; text-align:left; text-decoration:none; cursor:pointer; }
@media (hover:hover) and (pointer:fine){ .bt-more a:hover, .bt-more button:hover{ background:rgba(255,255,255,0.07); } }

/* Narrower screens: icons only; phones keep Edit and More */
@media (max-width:1180px){ .bt-tool span{ display:none; } .bt-tool{ width:36px; padding:0; justify-content:center; } }
@media (max-width:760px){
  .bt-tool[data-tool="lyrics"], .bt-tool[data-tool="vol"]{ display:none; }
  .bt-player-right{ gap:4px; }
  .bt-pop, .bt-pop.is-lyrics{ position:fixed; left:12px; right:12px; width:auto; bottom:calc(var(--bt-player-h, 120px) + 10px); transform-origin:bottom center; }
}
@media (prefers-reduced-motion: reduce){ .bt-pop, .bt-tool, .bt-fx-meter i{ transition:opacity 150ms ease; } .bt-pop{ transform:none; } }
.bt-tool{ flex-shrink:0; } .bt-tool svg{ flex:0 0 18px; min-width:18px; } .bt-tools{ flex-shrink:0; }

/* Player: full width, cleaner spacing; tools, sliders and panels take the
   colour of the playing track (--fx, like the play and Buy buttons). */
.bt-player-inner{ max-width:none !important; }
@media (min-width:901px){ .bt-player-inner{ max-width:none !important; grid-template-columns:minmax(220px, 1fr) minmax(320px, 680px) minmax(220px, 1fr) !important; gap:28px !important; padding:10px 28px calc(10px + env(safe-area-inset-bottom)) !important; } }
.bt-player-right{ justify-content:flex-end; gap:12px; min-width:0; }
.bt-tool.is-on, .bt-tool[aria-expanded="true"]{ color:rgb(var(--fx-hi, 245,176,106)); background:rgba(var(--fx, 232,134,44), 0.16); }
@media (hover:hover) and (pointer:fine){ .bt-tool.is-on:hover{ background:rgba(var(--fx, 232,134,44), 0.24); color:rgb(var(--fx-hi, 245,176,106)); } }
.bt-pop{ border-color:rgba(var(--fx, 232,134,44), 0.22); box-shadow:0 30px 70px -20px rgba(0,0,0,0.85), 0 0 40px -18px rgba(var(--fx, 232,134,44), 0.5), inset 0 1px 0 rgba(255,255,255,0.06); }
.bt-fx-range::-webkit-slider-runnable-track{ background:linear-gradient(90deg, rgb(var(--fx, 232,134,44)) var(--p), rgba(255,255,255,0.14) var(--p)); }
.bt-fx-range::-moz-range-progress{ background:rgb(var(--fx, 232,134,44)); }
.bt-fx-range:focus-visible::-webkit-slider-thumb{ box-shadow:0 0 0 4px rgba(var(--fx, 232,134,44), 0.35); }
.bt-fx-meter{ gap:2px; }
.bt-fx-meter i{ height:10px; }
.bt-fx-meter i.is-zero{ height:16px; }
.bt-fx-meter i.is-on{ background:rgb(var(--fx, 232,134,44)); }
.bt-lyrics:focus{ border-color:rgba(var(--fx, 232,134,44), 0.6); }
@media (min-width:901px) and (max-width:1100px){ .bt-player-inner{ grid-template-columns:minmax(180px, 1fr) minmax(280px, 520px) auto !important; gap:18px !important; padding:10px 18px calc(10px + env(safe-area-inset-bottom)) !important; } }

/* ================================ Waveform ==================================
   The seek bar becomes the track's waveform (canvas, drawn by js/beats.js).
   The bar stays on top, transparent, so seeking and the keyboard still work. */
.bt-wave{ position:absolute; left:0; right:0; top:50%; width:100%; height:34px; transform:translateY(-50%); pointer-events:none; opacity:0; transition:opacity 300ms ease; }
.bt-player.has-wave .bt-wave{ opacity:1; }
.bt-player.has-wave .bt-player-barwrap{ height:38px; }
.bt-player.has-wave .bt-player-track{ height:38px; }
.bt-player.has-wave .bt-player-viz{ opacity:0; }
.bt-player.has-wave .bt-player-bar{ height:38px; cursor:pointer; }
.bt-player.has-wave .bt-player-bar::before, .bt-player.has-wave .bt-player-fill{ opacity:0; }
.bt-player.has-wave .bt-player-knob{ width:2px; height:30px; margin:-15px 0 0 -1px; border-radius:1px; background:#fff; box-shadow:0 0 10px rgba(var(--fx), 0.9); transform:scaleY(0); }
.bt-player.has-wave.is-playing .bt-player-knob, .bt-player.has-wave .bt-player-bar:hover .bt-player-knob{ transform:scaleY(1); }
.bt-wave-tip{
  position:absolute; bottom:calc(100% + 6px); transform:translateX(-50%); padding:3px 8px; border-radius:8px; pointer-events:none;
  background:rgba(20,20,19,0.92); border:1px solid rgba(var(--fx), 0.35); color:#f5f5f7;
  font-family:var(--font-sans); font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap;
}
.bt-wave-tip[hidden]{ display:none; }
@media (max-width:900px){ .bt-wave{ height:28px; } .bt-player.has-wave .bt-player-barwrap, .bt-player.has-wave .bt-player-bar, .bt-player.has-wave .bt-player-track{ height:32px; } .bt-player.has-wave .bt-player-knob{ height:24px; margin-top:-12px; } }

/* Track page: free download (producer opt-in) under the action buttons */
.bp-free{
  display:inline-flex; align-items:center; gap:8px; margin-top:12px; height:36px; padding:0 14px 0 12px; border-radius:18px;
  border:1px dashed rgba(var(--fx, 232,134,44), 0.5); background:rgba(var(--fx, 232,134,44), 0.08); color:#f5f5f7;
  font-family:var(--font-sans); font-size:13.5px; font-weight:600; cursor:pointer;
  transition:background-color 150ms ease, border-color 150ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.bp-free svg{ width:16px; height:16px; fill:none; stroke:rgb(var(--fx-hi, 245,176,106)); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.bp-free small{ font-size:13.5px; font-weight:500; color:#d6d6db; }
.bp-free:active{ transform:scale(0.97); }
.bp-free:disabled{ opacity:0.7; cursor:default; }
@media (hover:hover) and (pointer:fine){ .bp-free:hover{ background:rgba(var(--fx, 232,134,44), 0.16); border-style:solid; } }

/* Store cards: "Free download" badge on the cover */
.bt-free-badge{ position:absolute; top:12px; left:12px; z-index:3; height:24px; display:inline-flex; align-items:center; padding:0 10px; border-radius:12px; background:rgba(10,10,9,0.55); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); color:#fff; font-family:var(--font-sans); font-size:11.5px; font-weight:600; letter-spacing:0.01em; box-shadow:inset 0 0 0 1px rgba(255,255,255,0.18); pointer-events:none; }
@media (max-width:560px){ .bt-free-badge{ top:8px; left:8px; height:22px; padding:0 8px; font-size:10.5px; } }

/* Free download: small glass pill inside the cover, top-right */
.bp-cover .bp-free{
  position:absolute; top:12px; right:12px; left:auto; z-index:3; margin:0; height:30px; padding:0 12px 0 10px; gap:6px;
  border:0; border-radius:15px; color:#fff; font-size:12px; font-weight:600;
  background:linear-gradient(145deg, rgba(255,255,255,0.26), rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.12));
  -webkit-backdrop-filter:blur(14px) saturate(220%) brightness(1.15); backdrop-filter:blur(14px) saturate(220%) brightness(1.15);
  box-shadow:inset 0 1px 0.5px rgba(255,255,255,0.5), inset 0 0 0 0.5px rgba(255,255,255,0.25), 0 8px 20px -8px rgba(0,0,0,0.6);
}
.bp-cover .bp-free svg{ width:14px; height:14px; stroke:#fff; }
.bp-cover .bp-free span{ text-shadow:0 1px 2px rgba(0,0,0,0.3); }
@media (hover:hover) and (pointer:fine){ .bp-cover .bp-free:hover{ background:linear-gradient(145deg, rgba(255,255,255,0.34), rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.18)); } }
@media (max-width:640px){ .bp-cover .bp-free{ top:8px; right:8px; height:26px; padding:0 10px 0 8px; font-size:11px; } }

/* Free download terms (must be accepted before the download) */
.bt-ft{ width:min(520px, calc(100vw - 24px)); max-height:calc(100dvh - 40px); padding:0; border:1px solid rgba(255,255,255,0.1); border-radius:22px; background:#161615; color:#f5f5f7; box-shadow:0 30px 80px -20px rgba(0,0,0,0.85); overflow:auto; }
.bt-ft::backdrop{ background:rgba(0,0,0,0.6); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.bt-ft[open]{ animation:btFt 240ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes btFt{ from{ opacity:0; transform:translateY(10px) scale(0.98); } }
.bt-ft-inner{ padding:20px; }
.bt-ft-head{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.bt-ft-head > div{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.bt-ft-head b{ font-size:17px; font-weight:700; }
.bt-ft-head small{ font-size:14px; color:#d6d6db; }
.bt-ft-ic{ width:40px; height:40px; flex:0 0 40px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(232,134,44,0.14); }
.bt-ft-ic svg{ width:20px; height:20px; fill:none; stroke:#f5b06a; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.bt-ft-body{ padding:14px 16px; border-radius:14px; background:rgba(255,255,255,0.04); font-size:14px; line-height:1.55; color:#d1d1d6; }
.bt-ft-body p{ margin:0 0 8px; }
.bt-ft-body ul{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:7px; }
.bt-ft-body b{ color:#f5f5f7; }
.bt-ft-check{ display:flex; align-items:flex-start; gap:12px; margin:16px 2px 0; font-size:14px; line-height:1.5; color:#f5f5f7; cursor:pointer; }
.bt-ft-check input{ position:absolute; opacity:0; pointer-events:none; }
.bt-ft-box{ width:20px; height:20px; flex:0 0 20px; margin-top:1px; border-radius:6px; border:1.5px solid rgba(255,255,255,0.35); display:flex; align-items:center; justify-content:center; transition:background-color 150ms ease, border-color 150ms ease; }
.bt-ft-box svg{ width:12px; height:12px; fill:none; stroke:#0a0a09; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; opacity:0; transform:scale(0.5); transition:opacity 150ms ease, transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.bt-ft-check input:checked + .bt-ft-box{ background:#e8862c; border-color:#e8862c; }
.bt-ft-check input:checked + .bt-ft-box svg{ opacity:1; transform:none; }
.bt-ft-check input:focus-visible + .bt-ft-box{ outline:2px solid #e8862c; outline-offset:2px; }
.bt-ft-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.bt-ft-actions .btn{ height:42px; padding:0 18px; }
.bt-ft-actions .btn:disabled{ opacity:0.45; cursor:not-allowed; }
@media (max-width:560px){ .bt-ft-actions{ flex-direction:column-reverse; } .bt-ft-actions .btn{ width:100%; justify-content:center; } }
@media (prefers-reduced-motion: reduce){ .bt-ft[open]{ animation:none; } }

/* Dialogs centred on screen (the global reset removes the default auto margin) */
.bt-ft, .ms-picker{ position:fixed; inset:0; margin:auto; height:fit-content; }

/* Key meter: every tick is clickable; the fill sweeps from the old value to
   the new one (staggered by distance) and the meter gives a small bounce. */
.bt-fx-meter{ gap:3px; padding:6px 0; }
.bt-fx-meter i{ position:relative; height:12px; cursor:pointer; transform-origin:center; transition:background-color 220ms ease, transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), height 220ms ease; }
.bt-fx-meter i::before{ content:''; position:absolute; left:-2px; right:-2px; top:-10px; bottom:-10px; }
@media (hover:hover) and (pointer:fine){ .bt-fx-meter i:hover{ background:rgba(255,255,255,0.32); transform:scaleY(1.35); } .bt-fx-meter i.is-on:hover{ background:rgb(var(--fx-hi, 245,176,106)); } }
.bt-fx-meter i.is-on{ transform:scaleY(1.3); box-shadow:0 0 8px rgba(var(--fx, 232,134,44), 0.55); }
.bt-fx-meter.is-bump{ animation:btMeterBump 360ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes btMeterBump{ 40%{ transform:scaleY(1.12); } }
@media (prefers-reduced-motion: reduce){ .bt-fx-meter i{ transition:background-color 150ms ease; transition-delay:0ms !important; } .bt-fx-meter.is-bump{ animation:none; } }

/* Loop panel: Off / Whole track / Section, bar presets, start → end */
.bt-pop.is-loop{ width:340px; }
.bt-seg{ display:grid; grid-template-columns:repeat(3, 1fr); gap:3px; padding:3px; border-radius:12px; background:rgba(255,255,255,0.06); }
.bt-seg button{ height:34px; border:0; border-radius:9px; background:transparent; color:#d1d1d6; font:inherit; font-size:13px; font-weight:600; cursor:pointer; transition:background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.bt-seg button.is-on{ background:rgba(var(--fx, 232,134,44), 0.22); color:#fff; box-shadow:inset 0 0 0 1px rgba(var(--fx, 232,134,44), 0.45); }
@media (hover:hover) and (pointer:fine){ .bt-seg button:not(.is-on):hover{ background:rgba(255,255,255,0.07); color:#fff; } }
.bt-loop-sec{ margin-top:10px; padding:12px; border-radius:14px; background:rgba(255,255,255,0.04); animation:btLoopIn 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.bt-loop-sec[hidden]{ display:none; }
@keyframes btLoopIn{ from{ opacity:0; transform:translateY(4px); } }
.bt-loop-bars{ display:flex; gap:6px; flex-wrap:wrap; }
.bt-loop-bars button{ flex:1; min-width:52px; height:32px; border:0; border-radius:10px; background:rgba(255,255,255,0.08); color:#f5f5f7; font:inherit; font-size:12.5px; font-weight:600; cursor:pointer; transition:background-color 150ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.bt-loop-bars button:active{ transform:scale(0.94); }
@media (hover:hover) and (pointer:fine){ .bt-loop-bars button:hover{ background:rgba(var(--fx, 232,134,44), 0.22); } }
.bt-loop-ab{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; margin-top:10px; }
.bt-loop-ab button{ display:flex; flex-direction:column; align-items:flex-start; gap:1px; padding:8px 12px; border:1px solid rgba(var(--fx, 232,134,44), 0.35); border-radius:12px; background:rgba(var(--fx, 232,134,44), 0.08); color:#f5f5f7; font:inherit; cursor:pointer; text-align:left; transition:background-color 150ms ease; }
.bt-loop-ab button small{ font-size:12.5px; color:#d6d6db; }
.bt-loop-ab button b{ font-size:15px; font-variant-numeric:tabular-nums; }
@media (hover:hover) and (pointer:fine){ .bt-loop-ab button:hover{ background:rgba(var(--fx, 232,134,44), 0.16); } }
.bt-loop-ab svg{ width:16px; height:16px; fill:none; stroke:#9d9da3; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
/* Key meter: drag across the ticks */
.bt-fx-meter{ cursor:ew-resize; touch-action:none; user-select:none; }
@media (prefers-reduced-motion: reduce){ .bt-loop-sec{ animation:none; } }
.bt-loop-bars{ flex-wrap:nowrap; gap:5px; } .bt-loop-bars button{ min-width:0; padding:0 4px; white-space:nowrap; font-size:12px; }

/* Loop length: one segmented bar; the highlight slides to the chosen length */
.bt-loop-bars{ position:relative; display:grid !important; grid-template-columns:repeat(5, 1fr); gap:0 !important; padding:3px; border-radius:12px; background:rgba(255,255,255,0.06); --i:0; }
.bt-loop-bars button{ position:relative; z-index:1; height:32px; border:0; border-radius:9px; background:transparent !important; color:#d6d6db; font:inherit; font-size:14px; font-weight:600; white-space:nowrap; cursor:pointer; transition:color 220ms ease; }
.bt-loop-bars button[aria-checked="true"]{ color:#fff; }
@media (hover:hover) and (pointer:fine){ .bt-loop-bars button:not([aria-checked="true"]):hover{ color:#f5f5f7; } }
.bt-loop-bars button:active{ transform:none; }
.bt-loop-thumb{
  position:absolute; top:3px; bottom:3px; left:3px; width:calc((100% - 6px) / 5); border-radius:9px;
  background:rgba(var(--fx, 232,134,44), 0.26); box-shadow:inset 0 0 0 1px rgba(var(--fx, 232,134,44), 0.5), 0 4px 14px -6px rgba(var(--fx, 232,134,44), 0.7);
  transform:translateX(calc(var(--i) * 100%)); opacity:0;
  transition:transform 380ms cubic-bezier(0.34, 1.3, 0.64, 1), opacity 200ms ease;
}
.bt-loop-bars[data-set] .bt-loop-thumb{ opacity:1; }
@media (prefers-reduced-motion: reduce){ .bt-loop-thumb{ transition:opacity 150ms ease; } }
/* Start / End: hold and drag up or down to fine-tune */
.bt-loop-ab button{ cursor:ns-resize; touch-action:none; user-select:none; transition:background-color 150ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 200ms ease; }
.bt-loop-ab button.is-dragging{ background:rgba(var(--fx, 232,134,44), 0.22); box-shadow:0 0 0 3px rgba(var(--fx, 232,134,44), 0.25); transform:scale(1.03); }
.bt-loop-ab button b{ font-variant-numeric:tabular-nums; }
/* Start / End: double click to type the time */
.bt-loop-ab button.is-typing{ cursor:text; background:rgba(var(--fx, 232,134,44), 0.18); box-shadow:0 0 0 3px rgba(var(--fx, 232,134,44), 0.25); }
.bt-loop-input{ width:100%; height:22px; padding:0; border:0; background:transparent; color:#fff; font:inherit; font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; outline:none; caret-color:rgb(var(--fx-hi, 245,176,106)); }

/* Closed dropdown panels never widen the page (they sit off to the right
   of the last filter); the store clips any horizontal spill. */
.beats-page, .beat-page{ overflow-x:clip; }

/* Phones: store grid two cards per row, compact */
@media (max-width:560px){
  .beats-page .bt-grid[data-view="grid"], .bt-grid[data-view="grid"]{ grid-template-columns:repeat(2, minmax(0, 1fr)) !important; gap:10px !important; }
  .bt-grid[data-view="grid"] .bt-card{ border-radius:16px; }
  .bt-grid[data-view="grid"] .bt-cover-wrap{ border-radius:16px 16px 0 0; }
  .bt-grid[data-view="grid"] .bt-card .bt-body{ padding:10px 10px 11px; gap:5px; }
  .bt-grid[data-view="grid"] .bt-card .bt-name{ font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .bt-grid[data-view="grid"] .bt-card .bt-producer{ font-size:12.5px; }
  .bt-grid[data-view="grid"] .bt-card .bt-meta-line{ font-size:11.5px; }
  .bt-grid[data-view="grid"] .bt-card .bt-buy-price{ font-size:14.5px; }
  .bt-grid[data-view="grid"] .bt-card .bt-buy-icon{ width:30px; height:30px; }
  .bt-grid[data-view="grid"] .bt-card .bt-buy-icon svg{ width:15px; height:15px; }
  .bt-grid[data-view="grid"] .bt-play{ width:42px !important; height:42px !important; margin:-21px 0 0 -21px !important; }
  .bt-grid[data-view="grid"] .bt-play svg{ width:17px !important; height:17px !important; margin:-8.5px 0 0 -8.5px !important; }
  .bt-grid[data-view="grid"] .bt-save{ width:30px; height:30px; top:8px; right:8px; }
  .bt-free-badge{ top:8px; left:8px; height:20px; padding:0 7px; font-size:10px; }
}

/* List view: the cover is too small for the "Free download" badge */
.bt-grid[data-view="list"] .bt-free-badge{ display:none; }

/* Phones: at least two songs side by side.
   Top tracks: a slightly smaller spotlight + the chart as a compact row of
   two tracks (scrolls sideways). Track page rows: two whole cards. */
@media (max-width:640px){
  .bt-top-body .bt-feat-spot{ padding:16px 12px 18px !important; gap:12px !important; }
  .bt-feat-art{ width:min(160px, 44vw) !important; }
  .bt-feat-title{ font-size:28px !important; }
  .bt-top-body .bt-feat-list{
    display:flex !important; flex-direction:row; flex-wrap:nowrap; gap:6px !important; padding:6px !important; margin-top:10px;
    overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; border-radius:16px;
  }
  .bt-top-body .bt-feat-list::-webkit-scrollbar{ display:none; }
  .bt-feat-list-head{ display:none !important; }
  .bt-top-body .bt-feat-pick{ flex:0 0 calc((100% - 6px) / 2) !important; min-width:0; padding:6px !important; gap:8px !important; scroll-snap-align:start; }
  .bt-top-body .bt-feat-pick .bt-feat-rank{ width:14px; font-size:12px !important; }
  .bt-top-body .bt-feat-thumb{ width:38px !important; border-radius:8px !important; }
  .bt-top-body .bt-feat-pick-text b{ font-size:13px !important; }
  .bt-top-body .bt-feat-pick-text small{ font-size:11px !important; }
  .bp-row{ grid-auto-columns:calc((100% - 12px) / 2.12) !important; gap:12px !important; }
}
@media (max-width:640px){ .bt-top-body .bt-feat-pick .bt-feat-rank{ display:none; } .bt-top-body .bt-feat-thumb{ width:34px !important; } .bt-top-body .bt-feat-pick{ padding:6px 8px 6px 6px !important; } }

/* Phones: cover + vinyl group optically centred */
@media (max-width:640px){ .bt-feat-art{ transform:translateX(-16%) !important; } }

/* Phones, list view: cover | title, producer, one-line details | price pill */
@media (max-width:560px){
  .bt-grid[data-view="list"] .bt-card .bt-body{
    display:grid !important; grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"t b" "m b";
    align-items:center; column-gap:10px; row-gap:2px; padding:8px 10px 8px 12px !important; min-width:0;
  }
  .bt-grid[data-view="list"] .bt-card .bt-titles{ grid-area:t; min-width:0; }
  .bt-grid[data-view="list"] .bt-card .bt-name{ font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; }
  .bt-grid[data-view="list"] .bt-card .bt-producer{ font-size:12.5px; }
  .bt-grid[data-view="list"] .bt-card .bt-specs{ grid-area:m; display:block !important; margin:0 !important; min-width:0; }
  .bt-grid[data-view="list"] .bt-card .bt-spec{ display:none !important; }
  .bt-grid[data-view="list"] .bt-card .bt-meta-line{ display:block !important; font-size:13.5px; color:#d6d6db; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .bt-grid[data-view="list"] .bt-card .bt-buy{
    grid-area:b; display:inline-flex !important; align-items:center; gap:6px; width:auto !important; min-width:0; height:36px !important;
    padding:0 4px 0 12px !important; margin:0 !important; border-radius:18px !important;
    background:rgba(var(--fx, 232,134,44), 0.14) !important; border:1px solid rgba(var(--fx, 232,134,44), 0.35) !important; box-shadow:none !important;
  }
  .bt-grid[data-view="list"] .bt-card .bt-buy-text{ display:inline-flex !important; }
  .bt-grid[data-view="list"] .bt-card .bt-buy-label{ display:none !important; }
  .bt-grid[data-view="list"] .bt-card .bt-buy-price{ display:inline !important; font-family:var(--font-sans); font-size:13.5px; font-weight:700; color:#f5f5f7; white-space:nowrap; }
  .bt-grid[data-view="list"] .bt-card .bt-buy-icon{ display:inline-flex !important; width:28px !important; height:28px !important; border-radius:50%; align-items:center; justify-content:center; background:rgb(var(--fx, 232,134,44)); color:#0a0a09; }
  .bt-grid[data-view="list"] .bt-card .bt-buy-icon svg{ width:14px !important; height:14px !important; }
}

/* License picker: "What each license allows" as a clean disclosure row
   with a comparison panel (sans labels, plan pills, hairline rows). */
#bt-license .bt-terms{ margin-top:14px; padding-top:0; border-top:0; }
#bt-license .bt-terms summary{
  list-style:none; display:flex; align-items:center; gap:10px; height:44px; padding:0 14px; border-radius:14px; cursor:pointer;
  background:rgba(255,255,255,0.05); color:#f5f5f7; font-family:var(--font-sans); font-size:14px; font-weight:600;
  transition:background-color 150ms ease;
}
#bt-license .bt-terms summary::-webkit-details-marker{ display:none; }
#bt-license .bt-terms summary::before{
  content:''; width:18px; height:18px; flex:0 0 18px; border-radius:50%;
  background:rgba(232,134,44,0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 10v6M12 7v.5' fill='none' stroke='%23f5b06a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
#bt-license .bt-terms summary::after{
  content:''; margin-left:auto; width:16px; height:16px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23bcbcc1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  transition:transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
#bt-license .bt-terms[open] summary::after{ transform:rotate(180deg); }
#bt-license .bt-terms[open] summary{ border-radius:14px 14px 0 0; }
@media (hover:hover) and (pointer:fine){ #bt-license .bt-terms summary:hover{ background:rgba(255,255,255,0.08); } }
#bt-license .bt-terms-body{ margin:0; padding:4px 14px 14px; border-radius:0 0 14px 14px; background:rgba(255,255,255,0.03); font-family:var(--font-sans); animation:btTermsIn 220ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes btTermsIn{ from{ opacity:0; transform:translateY(-4px); } }
#bt-license .bt-terms-body table{ width:100%; border-collapse:collapse; table-layout:fixed; }
#bt-license .bt-terms-body thead th{ padding:10px 6px 8px; border:0; font-family:var(--font-sans); font-size:11.5px; font-weight:700; letter-spacing:0.04em; color:#f5b06a; text-transform:uppercase; }
#bt-license .bt-terms-body thead th:first-child{ width:30%; }
#bt-license .bt-terms-body tbody th, #bt-license .bt-terms-body td{ padding:10px 6px; border-top:1px solid rgba(255,255,255,0.07); border-bottom:0; vertical-align:top; font-size:13px; line-height:1.4; }
#bt-license .bt-terms-body tbody th{ font-family:var(--font-sans); font-size:14px; font-weight:600; color:#c8c8cd; text-transform:none; letter-spacing:0; }
#bt-license .bt-terms-body td{ color:#f5f5f7; }
#bt-license .bt-terms-body p{ margin:10px 6px 0; font-size:14px; line-height:1.5; color:#d6d6db; }
@media (prefers-reduced-motion: reduce){ #bt-license .bt-terms-body{ animation:none; } #bt-license .bt-terms summary::after{ transition:none; } }

/* Genre and type beat links on the track page (to /genre/ and /type-beat/ pages) */
.bp-facts b a{ color:inherit; text-decoration:none; background:linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; background-color:transparent; opacity:0.95; }
@media (hover:hover) and (pointer:fine){ .bp-facts b a:hover{ color:var(--amber-text); } }
.bp-tags a.bp-type{ border-color:rgba(232,134,44,0.45); background:rgba(232,134,44,0.08); color:var(--amber-text); }

/* Producer's own license terms (license modal + track page) */
.bt-clauses{ margin:12px 0 0; padding:12px 14px; border-radius:12px; border:1px solid rgba(232,134,44,0.25); background:rgba(232,134,44,0.06); }
.bt-clauses b, .bp-usage-clauses > b{ display:block; margin-bottom:6px; font-size:12px; font-weight:700; letter-spacing:0.4px; text-transform:uppercase; color:var(--amber-text); }
.bt-clauses ol, .bp-usage-clauses ol{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:5px; font-size:13px; line-height:1.5; color:var(--text-secondary); }
.bp-usage li.bp-usage-clauses{ display:block; margin-top:6px; padding:12px 14px; border-radius:12px; border:1px solid rgba(232,134,44,0.25); background:rgba(232,134,44,0.06); }
.bp-usage li.bp-usage-clauses li{ display:list-item; padding:0; border:0; font-size:13px; color:var(--text-secondary); }

/* Co-producers in the credit line */
.bt-amp{ font-style:normal; opacity:0.6; }
.bp-amp{ margin:0 6px; opacity:0.55; }
.bp-amp.is-comma{ margin:0 6px 0 0; }
.bt-producer-link{ color:inherit; text-decoration:none; white-space:nowrap; }
.bt-producer:has(.bt-amp){ flex-wrap:wrap; row-gap:1px; }
@media (hover:hover) and (pointer:fine){ .bt-producer-link:hover{ color:var(--text); text-decoration:underline; text-underline-offset:2px; } }
.bt-producer .bt-amp.is-comma{ margin-left:-4px; }
.bt-more-producers{ height:18px; display:inline-flex; align-items:center; padding:0 6px; border-radius:999px; background:rgba(255,255,255,0.08); color:var(--text-secondary); font-size:11px; font-weight:700; text-decoration:none; }
@media (hover:hover) and (pointer:fine){ .bt-more-producers:hover{ background:rgba(232,134,44,0.16); color:var(--amber-text); } }

/* Admin test purchase switch in the cart */
.bt-test-buy{ display:flex; align-items:flex-start; gap:8px; margin-top:10px; padding:10px 12px; border-radius:10px; border:1px dashed rgba(232,134,44,0.45); font-size:12.5px; line-height:1.45; color:var(--text-secondary); cursor:pointer; }
.bt-test-buy input{ margin-top:2px; accent-color:#e8862c; }
.bt-test-buy b{ color:var(--amber-text); }

/* Phones and tablets: an invisible touch margin around the small controls
   (heart, Buy, tags, producer name, arrows, view switch) so they reach about
   44 px to tap, without changing how they look. */
@media (pointer:coarse){
  .bt-buy, .bt-tag, .bt-producer-link, .bt-view-btn{ position:relative; }
  .bt-save::before, .bt-buy::before, .bt-tag::before, .bt-producer-link::before, .bt-feat-nav::before, .bt-view-btn::before{ content:''; position:absolute; inset:-7px; }
}

/* One-time (full-rights) license notices: license picker, track page, cart */
.bt-once{ margin:14px 0 0; padding:12px 14px; border-radius:12px; border:1px solid rgba(232,134,44,0.5); background:rgba(232,134,44,0.08); font-size:13.5px; line-height:1.6; color:var(--text); }
.bt-once b{ color:var(--amber-text); }
.bp-usage-box .bt-once{ margin:0 0 16px; }
.bt-cart-once{ grid-column:1 / -1; margin:2px 0 0; padding:9px 11px; border-radius:10px; border:1px solid rgba(232,134,44,0.4); background:rgba(232,134,44,0.07); font-size:12.5px; line-height:1.5; color:var(--text-secondary); }

/* ------------------------------ Picked for you ------------------------------ */
.bt-foryou{ max-width:1180px; margin:0 auto 34px; }
.bt-foryou[hidden]{ display:none; }
.bt-foryou-head{ display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 14px; margin-bottom:14px; }
.bt-foryou-sub{ margin:0; font-size:14px; color:var(--text-secondary); }
.bt-grid.bt-fy-grid{ grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(220px, 240px); gap:18px; overflow-x:auto; padding:2px 2px 14px; scroll-snap-type:x proximity; scrollbar-width:thin; }
.bt-fy-grid .bt-card{ scroll-snap-align:start; }
@media (max-width:640px){ .bt-grid.bt-fy-grid{ grid-auto-columns:minmax(150px, 44%); gap:10px; } }

/* Phones: the four license cards are left out (the license window lists them per track) */
@media (max-width:640px){ .bt-licenses{ display:none; } }

/* What is changed in the player (loop, tempo, key), with a one-tap undo */
.bt-chips{ grid-column:1 / -1; order:6; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:-2px 0 0; }
.bt-chips[hidden]{ display:none; }
.bt-chip{ display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 4px 0 13px; border-radius:16px; border:1px solid rgba(var(--fx, 232,134,44), 0.45); background:rgba(var(--fx, 232,134,44), 0.16); color:rgb(var(--fx-hi, 245,176,106)); font-size:13px; font-weight:600; white-space:nowrap; }
.bt-chip button{ position:relative; width:26px; height:26px; padding:0; border:0; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.14); color:#fff; cursor:pointer; }
.bt-chip button svg{ width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; }
.bt-chip button::before{ content:''; position:absolute; inset:-9px; }
@media (hover:hover) and (pointer:fine){ .bt-chip button:hover{ background:rgba(255,255,255,0.26); } }

/* Performance: the play, save and arrow buttons repeat on every card of the Track Store; blurring
   what is behind each of them is what made scrolling there heavy. Same translucent buttons,
   no backdrop blur (the player, menus and dialogs keep theirs). */
.bt-play, .bt-card .bt-play, .bt-grid .bt-play, .bt-grid[data-view="grid"] .bt-play, .bp-row .bt-play,
.bt-save, .bt-feat-nav, .bt-feat-play, .bt-feat-spot .bt-feat-play, .bp-cover-play, .bt-free-badge, .bt-cart-fab{
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
}
.bt-play, .bt-save, .bt-feat-nav{ background-color:rgba(14,14,13,0.62); }

/* Cart bundle discount line */
.bt-cart-bundle{ margin:0 0 10px; padding:8px 12px; border-radius:12px; font-size:13px; line-height:1.4; color:var(--text-secondary); background:rgba(255,255,255,0.05); }
.bt-cart-bundle.is-on{ color:#f3d9bd; background:rgba(232,134,44,0.12); border:1px solid rgba(232,134,44,0.3); }

/* Producer sale: percent badge on the card, old price struck through */
.bt-sale-badge{ background:rgba(232,134,44,0.92) !important; color:#1a0f05 !important; font-weight:700 !important; }
.bt-was{ margin-right:6px; font-size:0.85em; font-weight:400; color:var(--text-muted); text-decoration:line-through; }
/* No live blur on touch screens (see style.css), so these panels are solid instead of see-through */
@media (pointer:coarse), (max-width:820px){ .bt-dd-panel, .bt-pop{ background:#121110 !important; } }

/* Discount code field in the cart */
.bt-code{ margin:0 0 12px; }
.bt-code-row{ display:flex; gap:8px; }
.bt-code input{ flex:1; min-width:0; height:42px; padding:0 14px; border-radius:14px; border:1px solid rgba(255,255,255,0.18); background:#0d0d0c; color:#f5f3ee; font:inherit; font-size:14px; text-transform:uppercase; letter-spacing:0.5px; }
.bt-code input::placeholder{ text-transform:none; letter-spacing:0; color:#c0bdb4; }
.bt-code input:focus{ outline:none; border-color:var(--accent); }
.bt-code .btn{ height:42px; padding:0 16px; }
.bt-code-msg{ margin:6px 2px 0; min-height:0; font-size:12.5px; color:#f3d9bd; }
.bt-code-msg:empty{ display:none; }

/* Playlists */
.pl-pop{ position:fixed; z-index:400; padding:14px; border-radius:20px; border:1px solid rgba(255,255,255,0.16); background:#12110f; box-shadow:0 24px 60px rgba(0,0,0,0.6); }
.pl-pop-title{ display:block; margin:0 0 10px; font-size:14px; color:#fff; }
.pl-pop-list{ display:flex; flex-direction:column; gap:4px; max-height:220px; overflow-y:auto; scrollbar-width:thin; }
.pl-pop-item{ display:flex; align-items:center; gap:10px; width:100%; min-height:42px; padding:0 12px; border-radius:14px; border:1px solid transparent; background:rgba(255,255,255,0.04); color:#f5f3ee; font:inherit; font-size:14px; text-align:left; cursor:pointer; }
.pl-pop-item span{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pl-pop-item small{ color:#cdcabf; font-size:13.5px; }
.pl-pop-item svg{ width:16px; height:16px; fill:none; stroke:var(--accent); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; opacity:0; }
.pl-pop-item.is-on{ border-color:rgba(232,134,44,0.45); background:rgba(232,134,44,0.12); }
.pl-pop-item.is-on svg{ opacity:1; }
.pl-pop-none, .pl-none{ margin:0; font-size:13.5px; color:#cdcabf; }
.pl-pop-new, .pl-new{ display:flex; gap:8px; margin-top:10px; }
.pl-pop-new input, .pl-new input{ flex:1; min-width:0; height:42px; padding:0 14px; border-radius:14px; border:1px solid rgba(255,255,255,0.18); background:#0d0d0c; color:#f5f3ee; font:inherit; font-size:14px; }
.pl-pop-new input:focus, .pl-new input:focus{ outline:none; border-color:var(--accent); }
.pl-pop-new .btn, .pl-new .btn{ height:42px; padding:0 16px; }
.pl-pop-msg, .pl-msg{ margin:8px 2px 0; font-size:12.5px; color:#ffb7a8; }
.pl-pop-msg:empty, .pl-msg:empty{ display:none; }
.pl-box{ max-width:1180px; margin:0 auto 28px; padding:0 20px; }
.pl-box-head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.pl-box-head h2{ margin:0; font-family:var(--font-display); font-size:20px; color:#fff; }
.pl-new{ margin:0; width:min(100%, 340px); }
.pl-cards{ display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:12px; }
.pl-card{ display:flex; flex-direction:column; gap:4px; padding:16px; border-radius:20px; border:1px solid rgba(255,255,255,0.12); background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); color:inherit; text-decoration:none; }
.pl-card b{ font-size:16px; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pl-card span{ font-size:14px; color:#cdcabf; }
@media (hover:hover) and (pointer:fine){ .pl-card:hover{ border-color:rgba(232,134,44,0.5); } }
.pl-tools{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.pl-danger{ color:#ffb7a8; }
.pl-x{ position:absolute; top:10px; right:10px; z-index:5; width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,0.25); background:rgba(10,10,9,0.78); color:#fff; font-size:20px; line-height:1; cursor:pointer; }
@media (max-width:560px){ .pl-box{ padding:0 16px; } .pl-new{ width:100%; } }
@media (max-width:560px){
  .bp-actions .bp-pl{ width:38px; padding:0; }
  .bp-actions .bp-pl span{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
}
@media (max-width:560px){ .bp-actions{ grid-template-columns:1fr 38px 38px 38px; } }

/* Key filter: "mixes well" chip */
.bt-keymix{ height:40px; padding:0 14px; border-radius:999px; border:1px solid rgba(255,255,255,0.18); background:rgba(255,255,255,0.04); color:#d8d5ca; font:inherit; font-size:13.5px; font-weight:600; white-space:nowrap; cursor:pointer; }
.bt-keymix.is-active{ border-color:rgba(232,134,44,0.6); background:rgba(232,134,44,0.14); color:#ffd9a8; }
@media (hover:hover) and (pointer:fine){ .bt-keymix:not(.is-active):hover{ border-color:rgba(255,255,255,0.3); color:#fff; } }

/* Offers: the button on the track page, the dialog and the offers page */
.bp-offer{ display:block; width:100%; margin-top:10px; min-height:44px; padding:0 16px; border-radius:999px; border:1px dashed rgba(232,134,44,0.55); background:rgba(232,134,44,0.06); color:#ffd9a8; font:inherit; font-size:14.5px; font-weight:600; cursor:pointer; }
@media (hover:hover) and (pointer:fine){ .bp-offer:hover{ background:rgba(232,134,44,0.14); border-style:solid; } }
.of-back{ position:fixed; inset:0; z-index:9000; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(4,4,3,0.74); overflow-y:auto; }
.of-dlg{ position:relative; width:min(440px, 100%); padding:24px 20px 20px; border-radius:24px; border:1px solid rgba(255,255,255,0.16); background:#12110f; box-shadow:0 30px 80px rgba(0,0,0,0.65); animation:hmHubRow 240ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.of-dlg h2{ margin:0 0 6px; font-family:var(--font-display); font-size:20px; color:#fff; }
.of-x{ position:absolute; top:12px; right:12px; width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,0.2); background:transparent; color:#fff; font-size:22px; line-height:1; cursor:pointer; }
.of-sub{ margin:0 0 14px; font-size:14px; line-height:1.5; color:#d8d5ca; }
.of-tiers{ margin:0 0 14px; padding:0; border:0; display:flex; flex-direction:column; gap:6px; }
.of-tiers legend{ margin-bottom:6px; font-size:14px; color:#cdcabf; }
.of-tier{ display:flex; align-items:center; gap:10px; min-height:46px; padding:0 14px; border-radius:14px; border:1px solid rgba(255,255,255,0.14); background:rgba(255,255,255,0.03); cursor:pointer; color:#f5f3ee; font-size:14.5px; }
.of-tier span{ flex:1; }
.of-tier:has(input:checked){ border-color:rgba(232,134,44,0.6); background:rgba(232,134,44,0.12); }
.of-tier input{ accent-color:var(--accent); }
.of-field{ display:flex; flex-direction:column; gap:4px; margin-bottom:10px; font-size:14px; color:#cdcabf; }
.of-field input, .of-field textarea{ padding:12px 14px; border-radius:14px; border:1px solid rgba(255,255,255,0.18); background:#0d0d0c; color:#f5f3ee; font:inherit; font-size:15px; resize:vertical; }
.of-field input:focus, .of-field textarea:focus{ outline:none; border-color:var(--accent); }
.of-hint{ margin:-4px 2px 12px; font-size:14px; color:#cdcabf; }
.of-send{ width:100%; height:48px; }
.of-wrap{ max-width:880px; margin:0 auto; padding:0 20px 40px; }
.of-h{ margin:22px 0 12px; font-family:var(--font-display); font-size:19px; color:#fff; }
.of-n{ display:inline-block; min-width:22px; padding:0 7px; border-radius:11px; background:var(--accent); color:#0a0a09; font-size:13px; text-align:center; }
.of-list{ display:flex; flex-direction:column; gap:12px; }
.of-card{ padding:16px; border-radius:20px; border:1px solid rgba(255,255,255,0.12); background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); }
.of-card.is-pending, .of-card.is-accepted{ border-color:rgba(232,134,44,0.4); }
.of-card.is-declined, .of-card.is-expired, .of-card.is-cancelled{ opacity:0.6; }
.of-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.of-top b{ font-size:16px; color:#fff; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.of-status{ flex:none; padding:3px 10px; border-radius:999px; background:rgba(255,255,255,0.08); font-size:12px; font-weight:600; color:#d8d5ca; }
.is-accepted .of-status, .is-paid .of-status{ background:rgba(76,201,122,0.15); color:#7fe0a4; }
.is-pending .of-status{ background:rgba(232,134,44,0.16); color:#ffd9a8; }
.of-meta{ margin:4px 0 0; font-size:14px; color:#cdcabf; }
.of-price{ margin:8px 0 0; font-family:var(--font-display); font-size:24px; color:#fff; }
.of-price small{ margin-left:10px; font-family:var(--font-sans); font-size:14px; color:#cdcabf; }
.of-msg{ margin:8px 0 0; font-size:14px; line-height:1.5; color:#d8d5ca; }
.of-note{ width:100%; margin-top:12px; height:44px; padding:0 14px; border-radius:14px; border:1px solid rgba(255,255,255,0.18); background:#0d0d0c; color:#f5f3ee; font:inherit; font-size:14px; }
.of-note:focus{ outline:none; border-color:var(--accent); }
.of-actions{ display:flex; gap:10px; margin-top:12px; }
.of-actions .btn{ flex:1; height:46px; }
.of-left{ margin:8px 0 0; font-size:12.5px; color:#ffd9a8; }
@media (max-width:560px){ .of-wrap{ padding:0 16px 40px; } .of-actions{ flex-direction:column-reverse; } }
/* Top tracks on phones: the arrows sit as far from the card's edge as the cover does from its top (16px) */
@media (max-width:640px){
  .bt-feat-nav.prev{ left:16px; right:auto; }
  .bt-feat-nav.next{ right:16px; left:auto; }
}
