.beat-store-page .beat-hero {
  display: flex;
  align-items: end;
  border-bottom: 1px solid var(--hr-border);
}

.beat-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
}

.beat-hero h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 138px);
  line-height: .9;
  text-transform: uppercase;
}

.beat-hero__actions { gap: 12px; margin-top: 10px; }


.beat-tools { grid-template-columns: minmax(220px, 1fr) minmax(180px, .34fr); }

.beat-card { position: relative; display: grid; gap: 16px; }
.beat-card .product-description { min-height: 3.6em; }
.beat-card__wave {
  aspect-ratio: 16 / 7;
  border: 1px solid var(--hr-border);
  display: grid;
  align-items: end;
  grid-template-columns: repeat(28, 1fr);
  gap: 3px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 194, 198, .12), transparent 55%), #0b0b0b;
  overflow: hidden;
}

.beat-card__wave span {
  display: block;
  min-height: 14%;
  background: linear-gradient(180deg, var(--teal), var(--red));
  opacity: .72;
}

.beat-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.beat-card__status { color: var(--hr-muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.beat-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.beat-card__actions .primary-button, .beat-card__actions .secondary-button { flex: 1 1 140px; text-align: center; }
.beat-card__producer { margin: -6px 0 0; color: var(--teal); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.beat-empty { grid-column: 1 / -1; }

@media (max-width: 880px) {
  .beat-hero__grid, .beat-tools { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .beat-card__actions { display: grid; }
  .beat-card__actions .primary-button, .beat-card__actions .secondary-button { width: 100%; }
}

.beat-admin {
  border-top: 1px solid var(--hr-border);
  background: rgba(17, 17, 17, .58);
}

.beat-admin__form h3 {
  margin: 0;
  font: 700 20px/1.1 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-admin__list .empty-state {
  text-align: left;
}

.beat-admin-row h3 {
  margin: 8px 0;
  font: 700 16px/1.2 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-admin-row .remove-button {
  min-height: 36px;
  margin-top: 0;
}

.beat-upload-status {
  min-height: 1.4em;
  margin: -12px 0 0;
  color: var(--hr-muted);
  font-size: 11px;
  line-height: 1.5;
}

.beat-upload-status.is-error {
  color: #ff6b6b;
}



body.beat-admin-mode .beat-hero,
body.beat-admin-mode .catalog-section,
body.beat-admin-mode .store-footer {
  display: none;
}

body.beat-admin-mode .beat-admin {
  border-top: 0;
  padding-top: calc(var(--hr-nav-height, 78px) + 32px);
}


/* Beat Store polish */
.beat-store-page .beat-hero {
  min-height: auto;
  padding-block: clamp(44px, 8vw, 92px) clamp(30px, 5vw, 64px);
}

.beat-store-page .catalog-section {
  padding-block: clamp(34px, 6vw, 84px);
}

.beat-store-page .section-heading {
  margin-bottom: clamp(18px, 4vw, 34px);
}

.beat-hero__grid {
  grid-template-columns: minmax(0, 1fr);
}

.beat-hero h1 {
  letter-spacing: 0;
}

.beat-tools {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, .26fr) minmax(170px, .3fr);
  align-items: end;
}

.beat-card {
  min-height: 0;
  padding: clamp(16px, 2.6vw, 28px);
  display: grid;
  gap: 14px;
}

.beat-card__wave {
  aspect-ratio: 16 / 6;
  margin: 0;
  padding: clamp(10px, 2vw, 16px);
}

.beat-card__body {
  display: grid;
  gap: 8px;
}

.beat-card h3 {
  min-height: 0;
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
}

.beat-card__producer {
  margin: 0;
}

.beat-card__music {
  margin: 2px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.beat-card__music div {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(240, 236, 228, .14);
}

.beat-card__music dt {
  color: var(--hr-muted);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.beat-card__music dd {
  margin: 4px 0 0;
  color: var(--white);
  font: 700 12px/1.2 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-card__music--empty {
  margin: 0;
  color: var(--hr-muted);
  font-size: 11px;
  line-height: 1.5;
}

.beat-card__actions {
  display: grid;
  grid-template-columns: minmax(124px, .95fr);
  gap: 10px;
  align-items: center;
}

.beat-preview-button {
  min-height: 42px;
  border: 1px solid var(--hr-border-strong, var(--hr-border));
  background: rgba(240, 236, 228, .04);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 11px/1 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-preview-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}



.beat-card .primary-button {
  min-height: 42px;
  padding-inline: 12px;
  text-align: center;
}

.beat-admin__music-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.beat-store-footer {
  padding-block: 16px;
}

@media (max-width: 880px) {
  .beat-tools,
  .beat-admin__music-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .beat-store-page main {
    padding-bottom: 88px;
  }

  .beat-store-page .beat-hero {
    padding-block: 30px 22px;
  }

  .beat-hero h1 {
    font-size: clamp(42px, 14vw, 58px);
    line-height: .96;
  }

  .beat-hero__actions {
    margin-top: 2px;
  }

  .beat-store-page .catalog-section {
    padding-block: 24px 36px;
  }

  .beat-store-page .hr-stack-xl {
    --hr-stack-gap: 18px;
  }

  .beat-tools {
    gap: 10px;
    padding: 12px;
  }

  .beat-card {
    gap: 12px;
    padding: 14px;
  }

  .beat-card__wave {
    aspect-ratio: 16 / 5;
  }

  .beat-card__actions {
    grid-template-columns: 1fr;
  }

  .beat-card__actions .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .beat-store-footer {
    padding: 14px 18px;
    flex-direction: row;
    align-items: center;
  }
}

/* Beat card cover layout */
.beat-card {
  grid-template-columns: clamp(96px, 11vw, 150px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(14px, 2vw, 22px);
}

.beat-card__wave {
  display: none;
}

.beat-card__cover {
  width: 100%;
  aspect-ratio: 1;
  align-self: start;
  border: 1px solid var(--hr-border);
  background: linear-gradient(135deg, rgba(219, 1, 0, .2), rgba(0, 194, 198, .08)), #090909;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.beat-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.beat-card__cover--empty span {
  color: rgba(240, 236, 228, .22);
  font: 900 clamp(28px, 5vw, 54px)/1 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-card__body,
.beat-card__actions {
  grid-column: 2;
}

.beat-card__body {
  align-self: start;
}

.beat-card__actions {
  align-self: end;
}

.beat-admin-row__music {
  margin-top: 8px !important;
  color: var(--teal) !important;
}

@media (max-width: 620px) {
  .beat-card {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
  }

  .beat-card__cover {
    position: sticky;
    top: var(--hr-nav-height-mobile, 54px);
  }

  .beat-card__actions {
    grid-column: 1 / -1;
  }
}

/* Cover play overlay */
.beat-card__cover {
  position: relative;
  cursor: default;
}

.beat-card__cover[data-play-beat] {
  cursor: pointer;
}

.beat-card__cover-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(42px, 6vw, 62px);
  height: clamp(42px, 6vw, 62px);
  border: 1px solid rgba(240, 236, 228, .34);
  background: rgba(0, 0, 0, .46);
  color: rgba(255, 255, 255, .82);
  display: grid;
  place-items: center;
  padding-left: 4px;
  font: 900 clamp(17px, 2.5vw, 25px)/1 var(--hr-font-display);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.beat-card__cover[data-play-beat]:hover .beat-card__cover-play,
.beat-card__cover[data-play-beat]:focus-visible .beat-card__cover-play {
  transform: scale(1.06);
  background: rgba(219, 1, 0, .64);
  color: var(--white);
}

.beat-card__actions {
  grid-template-columns: minmax(124px, .95fr);
  justify-content: end;
}

@media (max-width: 620px) {
  .beat-card__actions {
    grid-template-columns: 1fr;
  }

  .beat-card__actions .primary-button {
    grid-column: auto;
  }
}

/* Bare play/pause overlay */
.beat-card__cover-play {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  padding: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .85);
  backdrop-filter: none;
}

.beat-card__cover[data-play-beat]:hover .beat-card__cover-play,
.beat-card__cover[data-play-beat]:focus-visible .beat-card__cover-play,
.beat-card__cover.is-playing .beat-card__cover-play {
  transform: scale(1.04);
  background: transparent;
  color: var(--white);
}

.beat-card__cover-fallback {
  color: rgba(240, 236, 228, .22);
  font: 900 clamp(28px, 5vw, 54px)/1 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-card__cover-fallback[hidden] {
  display: none;
}

.beat-cover-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--hr-border);
  background: rgba(0, 0, 0, .22);
}

.beat-cover-editor[hidden] {
  display: none;
}

.beat-cover-editor__stage {
  width: min(280px, 100%);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 1, 0, .55);
  background: #050505;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.beat-cover-editor__stage::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, .34);
  pointer-events: none;
}

.beat-cover-editor__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.beat-cover-editor__stage.is-dragging {
  cursor: grabbing;
}


.beat-store-page #store-notice.notice,
.beat-store-page #store-notice.hr-toast {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--hr-beat-player-offset, 0px) + max(16px, env(safe-area-inset-bottom)));
  z-index: calc(var(--hr-z-toast, 10004) + 10);
}
/* Beat license modal */
.beat-license-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--hr-z-overlay, 1000) + 20);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}

.beat-license-modal[hidden] {
  display: none;
}

.beat-license-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.beat-license-modal__dialog {
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  position: relative;
  z-index: 1;
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--hr-border);
  background: rgba(12, 12, 12, .98);
}

.beat-license-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hr-border);
  background: rgba(240, 236, 228, .04);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
}

.beat-license-modal__header {
  display: grid;
  gap: 6px;
  padding-right: 42px;
}

.beat-license-modal__header h2 {
  margin: 0;
  font: 700 clamp(24px, 4vw, 40px)/1 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-license-modal__header p:not(.eyebrow) {
  margin: 0;
  color: var(--hr-muted);
  font-size: 12px;
}

.beat-license-modal-open {
  overflow: hidden;
}

.beat-license-list {
  display: grid;
  gap: 10px;
}

.beat-license-option {
  padding: 12px;
  border: 1px solid rgba(240, 236, 228, .14);
  background: rgba(0, 0, 0, .18);
  display: grid;
  gap: 10px;
}

.beat-license-option header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.beat-license-option h5 {
  margin: 0;
  font: 700 12px/1.2 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-license-option p,
.beat-license-option dl {
  margin: 0;
  color: var(--hr-muted);
  font-size: 11px;
  line-height: 1.5;
}

.beat-license-option dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.beat-license-option dt {
  color: var(--teal);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.beat-license-option dd {
  margin: 3px 0 0;
  color: var(--white);
}

.beat-license-option strong {
  color: var(--white);
  white-space: nowrap;
}

.beat-license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.beat-license-actions .secondary-button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 10px;
}

.beat-license-empty {
  margin: 0;
  color: var(--hr-muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .beat-license-option header,
  .beat-license-actions {
    display: grid;
  }
}
/* Beat license admin */
.beat-license-admin {
  padding-top: clamp(28px, 5vw, 56px);
  border-top: 1px solid var(--hr-border);
}

.beat-license-form h3,
.beat-license-assignment h4 {
  margin: 0;
  font: 700 18px/1.1 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-license-assignment {
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--hr-border);
  background: rgba(0, 0, 0, .18);
}

.beat-license-assignment .eyebrow {
  margin-bottom: 6px;
}

.beat-license-assignment-list {
  display: grid;
  gap: 10px;
}

.beat-license-check {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(240, 236, 228, .14);
  background: rgba(240, 236, 228, .03);
  color: var(--hr-muted);
  font-size: 11px;
}

.beat-license-check > span {
  color: var(--white);
  font: 700 11px/1.2 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-license-check small {
  color: var(--hr-muted);
  line-height: 1.4;
}

.beat-license-check.is-invalid {
  border-color: rgba(255, 107, 107, .58);
}

.beat-license-warning {
  min-height: 1.4em;
  margin: 0;
  color: var(--hr-warning, #f2c94c);
  font-size: 11px;
  line-height: 1.5;
}

.beat-license-row .remove-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.beat-license-empty {
  margin: 0;
  color: var(--hr-muted);
  font-size: 11px;
  line-height: 1.5;
}




/* Beat upload helpers */
.beat-autodetect-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.beat-autodetect-field .hr-label {
  grid-column: 1 / -1;
}

.beat-ad-input {
  position: relative;
  min-width: 0;
}

.beat-ad-input .hr-input {
  padding-right: 48px;
}

.beat-ad-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(20, 184, 166, .16);
  color: #0f766e;
  border: 1px solid rgba(20, 184, 166, .34);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.beat-ad-badge[hidden] {
  display: none;
}

.beat-autodetect-button {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 10px;
}

#beat-submit-button.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .82;
}

#beat-submit-button.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 10px;
  display: inline-block;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: beat-submit-spin .8s linear infinite;
}

@keyframes beat-submit-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 620px) {
  .beat-autodetect-field {
    grid-template-columns: 1fr;
  }
}
/* Producer profiles */
.beat-card__producer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.beat-card__producer a:hover,
.beat-card__producer a:focus-visible {
  color: var(--teal);
}

.producer-page {
  gap: 28px;
}

.producer-profile-hero {
  position: relative;
  min-height: 360px;
  padding-top: var(--hr-nav-height, 78px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #101010;
  color: var(--white);
}

.producer-profile-hero__cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 184, 166, .22), rgba(8, 8, 8, .94)), #171717;
  background-size: cover;
  background-position: center;
}

.producer-profile-hero__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .78));
}

.producer-profile-hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: end;
}

.producer-profile-hero__avatar {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #0f766e;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, .4);
  font: 800 32px/1 var(--font-display, inherit);
}

.producer-profile-hero__back,
.producer-profile-hero__links a {
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

.producer-profile-hero__back:hover,
.producer-profile-hero__links a:hover {
  color: var(--white);
}

.producer-profile-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(36px, 8vw, 84px);
  line-height: .95;
}

.producer-profile-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.producer-profile-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 620px) {
  .producer-profile-hero {
    min-height: 320px;
  }

  .producer-profile-hero__content {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .producer-profile-hero__avatar {
    width: 84px;
  }
}

.beat-producer-field__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.beat-producer-profile-button,
.beat-producer-username-button {
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .beat-producer-field__row {
    grid-template-columns: 1fr;
  }
}
/* FINAL BEAT STORE LAYOUT */
.beat-card { position:relative; display:grid; grid-template-columns:clamp(96px,11vw,150px) minmax(0,1fr); align-items:start; gap:clamp(14px,2vw,22px); min-height:0; padding:clamp(16px,2.6vw,28px); background:linear-gradient(145deg,rgba(255,255,255,.032),rgba(255,255,255,.012)); border:1px solid var(--hr-border); box-shadow:var(--hr-shadow-sm); }
.beat-card__body { grid-column:2; align-self:start; }
.beat-card__actions { grid-column:2; align-self:end; display:grid; grid-template-columns:minmax(124px,1fr); gap:10px; }
.beat-tools { padding:clamp(14px,3vw,22px); gap:14px; background:rgba(17,17,17,.7); border:1px solid var(--hr-border); }
.beat-tools input,.beat-tools select { min-height:50px; color:var(--hr-text); background:rgba(0,0,0,.32); border:1px solid var(--hr-border-strong); }
.beat-tools input:focus,.beat-tools select:focus { border-color:var(--hr-red,var(--red)); box-shadow:var(--hr-focus-ring); }
@media (max-width:880px) { .beat-tools { grid-template-columns:repeat(2,minmax(0,1fr)); } .beat-tools .form-field:first-child { grid-column:1/-1; } }
@media (max-width:620px) { .beat-store-page main,body.beat-store-page main { padding-bottom:0; } .beat-card { grid-template-columns:76px minmax(0,1fr); padding:14px; gap:12px; } .beat-card__cover { position:relative; top:auto; } .beat-card__actions { grid-column:1/-1; } }
@media (max-width:430px) { .beat-tools { grid-template-columns:1fr; } .beat-tools .form-field:first-child { grid-column:auto; } }
/* Beat Store storefront cards */
.beat-grid {
  align-items: start;
}

.beat-card {
  grid-template-columns: 1fr;
  gap: 0;
  padding: clamp(12px, 1.8vw, 18px);
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.beat-card:hover {
  border-color: var(--hr-border-strong);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.016));
  transform: translateY(-2px);
}

.beat-card__cover {
  grid-column: 1;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 15px;
  align-self: auto;
}

.beat-card__body,
.beat-card__actions {
  grid-column: 1;
}

.beat-card__body {
  display: grid;
  gap: 8px;
}

.beat-card__producer {
  margin: 0;
  min-height: 1.25em;
  color: var(--hr-cyan, var(--teal));
  font: 600 10px/1.25 var(--hr-font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.beat-card__commercial-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.beat-card__info {
  min-width: 0;
}

.beat-card__price {
  margin: 0 0 6px;
  color: var(--hr-red-hover, var(--hr-red));
  font: 600 12px/1.2 var(--hr-font-mono);
}

.beat-card h3 {
  min-height: 0;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--hr-text);
  font: 700 clamp(15px, 1.55vw, 19px)/1.12 var(--hr-font-display);
  text-transform: uppercase;
}

.beat-card__meta-slot {
  min-width: 0;
}

.beat-card__music {
  display: block;
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--hr-muted);
  font: 400 11px/1.4 var(--hr-font-body);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.beat-card__music div {
  display: inline;
  padding: 0;
  border: 0;
}

.beat-card__music dt {
  display: none;
}

.beat-card__music dd {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  text-transform: none;
}

.beat-card__music div:not(:last-child) dd::after {
  content: " · ";
  color: var(--hr-border-strong);
}

.beat-card__music--empty {
  white-space: normal;
}

.beat-card__actions {
  display: block;
  align-self: auto;
}

.beat-card__actions .primary-button {
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  font-size: 10px;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .beat-card {
    padding: 12px;
  }

  .beat-card__cover {
    margin-bottom: 13px;
  }

  .beat-card__commercial-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .beat-card__actions .primary-button {
    width: 100%;
  }
}
/* Compact mobile Beat Store cards and player */
@media (max-width: 620px) {
  .beat-card {
    grid-template-columns: clamp(88px, 28vw, 112px) minmax(0, 1fr);
    align-items: start;
    gap: 0 12px;
    padding: 10px;
  }

  .beat-card__cover {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
  }

  .beat-card__body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    gap: 5px;
  }

  .beat-card__producer {
    overflow: hidden;
    font-size: 9px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .beat-card__commercial-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .beat-card__price {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .beat-card h3 {
    font-size: 14px;
    line-height: 1.08;
  }

  .beat-card__music {
    font-size: 10px;
  }

  .beat-card__actions .primary-button {
    width: fit-content;
    min-height: 32px;
    padding: 7px 10px;
    font-size: 9px;
  }

  :root {
    --hr-player-height: 80px;
  }

  body.hr-has-beat-player {
    padding-bottom: calc(var(--hr-player-height) + max(8px, env(safe-area-inset-bottom)) + 18px);
  }

  .hr-beat-player {
    min-height: var(--hr-player-height);
    padding: 7px;
    gap: 5px 8px;
  }

  .hr-beat-player__art {
    width: 38px;
    height: 38px;
  }

  .hr-beat-player__controls {
    grid-template-columns: 38px minmax(90px, 1fr) auto 36px 60px;
    gap: 6px;
  }

  .hr-beat-player__wave-wrap,
  .hr-beat-player__wave {
    height: 28px !important;
    min-height: 28px;
  }

  .hr-beat-player__time {
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .beat-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}
/* Beat Store desktop density */
.beat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  border: 0;
}

.beat-grid .beat-card {
  padding: 14px;
  border: 1px solid var(--hr-border);
}

.beat-card__cover {
  max-width: 260px;
  justify-self: center;
}

@media (max-width: 1200px) and (min-width: 761px) {
  .beat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .beat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .beat-grid .beat-card {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 0 12px;
    padding: 10px;
  }

  .beat-grid .beat-card__cover {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .beat-grid .beat-card__body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .beat-grid .beat-card__actions .primary-button {
    width: fit-content;
    min-height: 32px;
    padding: 7px 10px;
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .beat-grid .beat-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}
