/* Beat page layout (see beat-page.js). Everything is scoped to body.beat-page-view so the home page's
   featured beat, which shares #beat-detail, keeps its own look. */
.bp-only { display: none !important; }
html body.beat-page-view .bp-only:not([hidden]) { display: flex !important; }
html body.beat-page-view .bp-only.bp-tabs-wrap:not([hidden]) { display: block !important; }
.bp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- top section ---- */
html body.beat-page-view .featured-track-card .detail-copy > .eyebrow,
html body.beat-page-view .featured-track-card .producer-line,
html body.beat-page-view .featured-track-card .detail-meta,
html body.beat-page-view .featured-track-card .detail-tag-control-line,
html body.beat-page-view #beat-detail .beat-page-trust { display: none !important; }
html body.beat-page-view .featured-track-card .detail-description { display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 64ch; margin: 0 !important; }

@media (min-width: 701px) {
  html body.beat-page-view .featured-track-card { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr) minmax(270px, 330px) !important; align-items: stretch !important; }
  html body.beat-page-view .featured-track-card .detail-hero-panel { display: contents; }
  html body.beat-page-view .featured-track-card .detail-copy { align-self: stretch !important; display: flex !important; flex-direction: column; gap: 12px; }
  html body.beat-page-view .featured-track-card .detail-title { font-size: clamp(2rem, 3vw, 2.75rem) !important; line-height: 1.08 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body.beat-page-view .featured-track-card .detail-purchase { align-self: start !important; }
  .bp-compose { margin-top: auto; }
}
.bp-line { flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bp-producer { font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.bp-tag { padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); font-size: .8rem; font-weight: 600; color: var(--ink); }
.bp-actions { display: flex; gap: 8px; margin-left: 6px; }
.bp-play { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; }
.bp-play img, .bp-play svg { width: 16px; height: 16px; }
.bp-play img { filter: brightness(0) invert(1); }
.bp-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); color: color-mix(in srgb, var(--ink) 78%, transparent); cursor: pointer; }
.bp-icon svg { width: 17px; height: 17px; }
.bp-icon:hover { color: var(--ink); }
.bp-icon.is-on { color: var(--red); }
.bp-facts { flex-wrap: wrap; gap: 8px; }
.bp-facts > span { padding: 7px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, var(--surface)); font-size: .82rem; font-weight: 600; }
.bp-facts b { margin-right: 4px; font-weight: 700; color: var(--muted); }
.bp-types { flex-wrap: wrap; align-items: center; gap: 8px; }
.bp-label { font-size: .68rem; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.bp-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.bp-compose { flex-direction: column; }
.bp-compose-toggle, .bp-write { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: var(--ink); font: 700 .88rem var(--sans, inherit); cursor: pointer; }
.bp-compose-toggle svg, .bp-write svg { width: 16px; height: 16px; }
.bp-compose-toggle .bp-chev { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.bp-compose-toggle[aria-expanded="true"] .bp-chev { transform: rotate(180deg); }
.bp-form { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.bp-form input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: var(--ink); font: 500 .9rem var(--sans, inherit); outline: none; }
.bp-count { flex: none; font-size: .75rem; color: var(--muted); }
.bp-post { flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: 700 .82rem var(--sans, inherit); cursor: pointer; }
.bp-post[disabled] { opacity: .6; cursor: default; }
.bp-error { margin: 8px 0 0; font-size: .82rem; color: var(--red); text-align: center; }
.bp-error a { color: inherit; text-decoration: underline; }

/* ---- trust strip: the short icon version on every size ---- */
html body.beat-page-view #beat-detail .featured-mobile-trust { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; border: 0; }
html body.beat-page-view #beat-detail .featured-mobile-trust div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0 !important; border-radius: 14px; background: var(--surface); }
html body.beat-page-view #beat-detail .featured-mobile-trust svg { width: 22px; height: 22px; flex: none; color: var(--red); }

/* ---- bundle tie-in ---- */
.bp-bundle { flex-wrap: wrap; align-items: center; gap: 16px 18px; margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.bp-bundle img { width: 60px; height: 60px; flex: none; object-fit: cover; border-radius: 12px; }
.bp-bundle-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.bp-bundle-copy .bp-label { color: var(--red); }
.bp-bundle-copy b { font-size: 1.05rem; }
.bp-bundle-buy { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.bp-bundle-buy > span { display: flex; flex-direction: column; align-items: flex-end; }
.bp-bundle-buy b { font-size: 1.4rem; color: var(--red); }
.bp-bundle-buy s { font-size: .8rem; color: var(--muted); }
.bp-bundle-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: none; }
.bp-bundle-link:hover, .bp-bundle-link:focus-visible { border-color: var(--red); color: var(--red); }

/* ---- tabs under the beat ---- */
html body.beat-page-view #beatPageRecommendations > :not(.bp-tabs-wrap) { display: none !important; }
.bp-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bp-tabs button { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 .9rem var(--sans, inherit); cursor: pointer; }
.bp-tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--ink) 10%, var(--surface)); color: var(--ink); }
.bp-tabs i { padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 14%, var(--surface)); font-style: normal; font-size: .7rem; color: var(--ink); }
.bp-tabs button[aria-selected="true"] i { background: var(--red); color: #fff; }
.bp-panel { margin-top: 16px; }
.bp-empty { margin: 8px 0; color: var(--muted); font-size: .9rem; }
.bp-table { overflow-x: auto; }
.bp-row { min-width: 760px; display: grid; grid-template-columns: 48px minmax(150px, 1fr) 64px 56px minmax(120px, 1.3fr) 226px; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.bp-row.is-head { padding: 0 0 10px; font-size: .68rem; font-weight: 800; letter-spacing: .18em; color: var(--muted); }
.bp-row.is-playing { box-shadow: inset 3px 0 0 var(--red); }
.bp-row.is-playing .bp-title { color: var(--red); }
.bp-cover { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--line); cursor: pointer; }
.bp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-title { min-width: 0; font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-title:hover { text-decoration: underline; }
.bp-tags { display: flex; gap: 6px; overflow: hidden; }
.bp-tags .bp-chip { border: 0; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); color: var(--muted); }
.bp-row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bp-price { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--red); color: #fff; font: 700 .82rem var(--sans, inherit); white-space: nowrap; cursor: pointer; }
.bp-comments { max-width: 860px; display: flex; flex-direction: column; }
.bp-comment { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.bp-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, var(--surface)); font-size: .75rem; font-weight: 700; color: var(--muted); }
.bp-avatar.is-producer { background: var(--red); color: #fff; }
.bp-comment-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bp-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: .88rem; }
.bp-badge { padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); font-size: .64rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.bp-badge.is-producer { background: color-mix(in srgb, var(--red) 18%, var(--surface)); color: var(--red); }
.bp-when { font-size: .75rem; color: var(--muted); }
.bp-link { margin-left: auto; padding: 0; border: 0; background: none; color: var(--muted); font: 600 .75rem var(--sans, inherit); text-decoration: underline; cursor: pointer; }
.bp-comment-text { font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.bp-write { align-self: flex-start; margin-top: 10px; }

@media (min-width: 701px) and (max-width: 1120px) {
  html body.beat-page-view .featured-track-card { grid-template-columns: 220px minmax(0, 1fr) !important; }
  html body.beat-page-view .featured-track-card .detail-purchase { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  html body.beat-page-view #beat-detail .featured-mobile-trust { gap: 6px; } html body.beat-page-view #beat-detail .featured-mobile-trust div { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; } html body.beat-page-view #beat-detail .featured-mobile-trust small { display: none; }
  .bp-actions { margin-left: 0; }
  .bp-compose-toggle { align-self: flex-start; }
}
html body.beat-page-view #beat-detail .featured-mobile-trust div > span { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 700px) {
  .bp-bundle { gap: 10px 12px; padding: 12px; }
  .bp-bundle img { width: 48px; height: 48px; }
  .bp-bundle-copy { flex-basis: calc(100% - 64px); }
  .bp-bundle-copy b { font-size: .95rem; }
  .bp-bundle-buy { width: 100%; justify-content: space-between; margin-left: 0; }
  .bp-bundle-buy > span { flex-direction: row; align-items: baseline; gap: 8px; }
}
@media (max-width: 700px) {
  html body.beat-page-view .featured-track-card .detail-copy { min-width: 0; display: flex !important; flex-direction: column; gap: 10px; }
  .bp-producer { letter-spacing: .14em; }
}
.bp-name { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bp-meta { display: none; font-size: .75rem; color: var(--muted); }

/* ---- phones: one-line title, one-line benefit tiles, tabs instead of the catalog ---- */
@media (max-width: 700px) {
  html body.beat-page-view .featured-track-card .detail-title { font-size: 1.25rem !important; line-height: 1.15 !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
  html body.beat-page-view #beat-detail .featured-mobile-trust div { flex-direction: row !important; align-items: center !important; justify-content: center; gap: 5px !important; padding: 10px 6px !important; white-space: nowrap; }
  html body.beat-page-view #beat-detail .featured-mobile-trust svg { width: 14px !important; height: 14px !important; }
  html body.beat-page-view #beat-detail .featured-mobile-trust strong { font-size: .66rem; }
  html body.beat-page-view #beats { display: none !important; }
  html body.beat-page-view #beatPageRecommendations { display: block !important; margin-top: 20px; }
  .bp-tabs-wrap { text-align: center; }
  .bp-panel { text-align: left; }
  .bp-table { overflow: visible; }
  .bp-row { min-width: 0; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; }
  .bp-row.is-head, .bp-row > span:nth-of-type(2), .bp-row > span:nth-of-type(3), .bp-row .bp-tags, .bp-row [data-bp="share-row"] { display: none !important; }
  .bp-cover { width: 46px; height: 46px; }
  .bp-meta { display: block; }
  .bp-row-actions { gap: 6px; }
  .bp-price { padding: 0 12px; }
  .bp-comment-head .bp-link { margin-left: 0; }
}
@media (max-width: 700px) {
  html body.beat-page-view .featured-track-card .detail-copy { align-items: stretch !important; text-align: left !important; }
  html body.beat-page-view .featured-track-card .detail-copy > * { align-self: stretch; }
  .bp-types, .bp-line, .bp-facts { justify-content: flex-start !important; }
  .bp-compose-toggle { align-self: center !important; }
}
/* Phones: title, name and buttons sit beside the cover; details, tags, description and comment span the full width below. */
@media (max-width: 700px) {
  html body.beat-page-view .featured-track-card .detail-hero-panel { display: grid !important; grid-template-columns: 132px minmax(0, 1fr); column-gap: 14px; row-gap: 12px; align-items: start; }
  html body.beat-page-view .featured-track-card .detail-copy { display: contents !important; }
  html body.beat-page-view .featured-track-card .detail-media { grid-column: 1; grid-row: 1 / span 2; width: 132px !important; margin: 0 !important; }
  html body.beat-page-view .featured-track-card .detail-media .detail-cover { width: 132px !important; height: 132px !important; }
  html body.beat-page-view .featured-track-card .detail-title-row { grid-column: 2; grid-row: 1; min-width: 0; margin: 0 !important; }
  html body.beat-page-view .featured-track-card .bp-line { grid-column: 2; grid-row: 2; align-self: start; }
  html body.beat-page-view .featured-track-card .bp-facts,
  html body.beat-page-view .featured-track-card .bp-types,
  html body.beat-page-view .featured-track-card .detail-description,
  html body.beat-page-view .featured-track-card .bp-compose { grid-column: 1 / -1; }
}
/* Phones: drop length so BPM, key and release date fit; tighter spacing between blocks. */
@media (max-width: 700px) {
  .bp-facts [data-fact="length"] { display: none; }
  html body.beat-page-view .featured-track-card .detail-hero-panel { row-gap: 8px; }
  html body.beat-page-view .featured-track-card .bp-line { gap: 6px 8px; }
  html body.beat-page-view .featured-track-card .detail-description { margin-top: -2px !important; }
  .bp-compose-toggle { padding: 2px 0; }
  .bp-bundle, html body.beat-page-view #beat-detail .featured-mobile-trust { margin-top: 10px !important; }
  html body.beat-page-view #beatPageRecommendations { margin-top: 14px !important; }
  .bp-panel { margin-top: 10px; }
}
.bp-short { display: none; }
@media (max-width: 700px) {
  .bp-facts { justify-content: flex-start !important; flex-wrap: nowrap; }
  .bp-facts .bp-long { display: none; }
  .bp-facts .bp-short { display: inline; }
  .bp-facts > span { white-space: nowrap; }
}
@media (max-width: 700px) {
  .bp-facts { gap: 6px !important; }
  .bp-facts > span { padding: 6px 9px !important; font-size: .76rem !important; }
  .bp-facts b { margin-right: 3px; }
}
