.beat-detail-page .store { max-width: 1110px; }
.beat-detail .beat-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(164px, 25vw, 270px);
  grid-template-areas: "identity artwork" "playback artwork";
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 15px clamp(22px, 5vw, 64px);
}
.beat-detail .beat-hero-info { grid-area: identity; align-self: end; gap: 10px; }
.beat-detail .beat-hero-top { display: block; }
.beat-detail .beat-hero-top h1 { font-size: clamp(32px, 5vw, 58px); overflow-wrap: anywhere; }
.beat-detail .beat-hero-top p { margin-top: 8px; }
.beat-detail .facts { font-size: .86rem; color: var(--muted); }
.beat-detail .beat-hero-cover {
  grid-area: artwork;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 1px solid #ffffff13;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px #0005;
}
.beat-detail button.beat-hero-cover { cursor: zoom-in; transition: filter .2s ease; }
.beat-detail button.beat-hero-cover:hover { filter: brightness(1.08); }
.beat-detail .beat-hero-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 2rem; }
.beat-detail-playback { grid-area: playback; min-width: 0; align-self: start; }
.beat-detail-transport { display: flex; align-items: center; gap: 14px; }
.beat-detail-transport .wave { flex: 1; min-width: 0; height: 66px; }
.beat-detail-transport .big-play { width: 48px; height: 48px; background: #f5f2ec; }
.beat-detail-transport .big-play:disabled { opacity: .45; }
.beat-detail .beat-actions { margin-top: 10px; gap: 6px; align-items: center; }
.beat-detail .beat-actions .btn { min-height: 36px; }
.beat-detail-licenses { margin-top: 35px; }
.beat-detail-licenses h2 { margin: 0 0 12px; }
.beat-license-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.beat-license-tile {
  display: grid; align-content: space-between; gap: 7px; min-height: 95px; min-width: 0;
  padding: 14px; border-radius: 14px; border: 1px solid #ffffff1b;
  color: inherit; background: var(--surface); text-align: left; cursor: pointer;
}
.beat-license-tile:hover, .beat-license-tile:focus-visible { background: #312e36; }
.beat-license-tile span { font-size: .84rem; line-height: 1.25; }
.beat-license-tile strong { font-size: clamp(1.05rem, 2.5vw, 1.45rem); font-variant-numeric: tabular-nums; }
.beat-license-tile small { color: #a6fd42; }
.beat-license-tile.popular { border-color: #a6fd4270; }
.beat-detail .comments { max-width: none; margin-top: 35px; }
.beat-detail .comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 8px; }
.beat-detail .comment-attachments { grid-column: 1 / -1; }
.beat-detail-more:empty { display: none; }
.beat-artwork-dialog {
  --artwork-size: min(86vw, 84dvh, 900px);
  width: var(--artwork-size); max-width: none; max-height: none;
  overflow: visible; padding: 0; border: 0; background: transparent; color: white;
}
.beat-artwork-dialog[open] { animation: beat-artwork-open .24s cubic-bezier(.2,.72,.26,1) both; }
.beat-artwork-dialog::backdrop { background: #0a080cd0; backdrop-filter: blur(15px); }
.beat-artwork-dialog img { display: block; width: 100%; max-height: 84dvh; object-fit: contain; border-radius: 16px; }
.beat-artwork-close {
  position: absolute; top: 10px; right: 10px; width: 42px; height: 42px;
  border: 1px solid #ffffff55; border-radius: 50%; color: white; background: #19171be6;
  font-size: 1.55rem; line-height: 1; cursor: pointer;
}
@keyframes beat-artwork-open { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 740px) {
  .beat-detail .beat-hero {
    grid-template-columns: minmax(0, 1fr) clamp(62px, 20vw, 112px);
    grid-template-areas: "identity artwork" "playback playback";
    gap: 14px;
  }
  .beat-detail .beat-hero-info { align-self: center; gap: 6px; }
  .beat-detail .beat-hero-top h1 { font-size: clamp(25px, 6.5vw, 36px); }
  .beat-detail .beat-hero-cover { border-radius: 12px; box-shadow: none; }
  .beat-detail-transport .wave { height: 52px; }
  .beat-license-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beat-artwork-dialog { --artwork-size: min(92vw, 84dvh); }
}
@media (prefers-reduced-motion: reduce) {
  .beat-artwork-dialog[open] { animation: none; }
}

.beat-detail-playback > .profile-comment-slot { display: none; }
.beat-detail-side:not(:has(> :not([hidden]))) { display: none; }

@media (min-width: 901px) {
  .beat-detail-page .store { max-width: 1536px; }
  .beat-detail .beat-hero {
    grid-template-columns: clamp(195px, 22vw, 305px) minmax(0, 1fr);
    grid-template-areas: "artwork identity" "artwork playback";
    grid-template-rows: auto 1fr;
    margin-bottom: 0;
    padding: clamp(20px, 2.5vw, 38px);
    gap: 16px clamp(24px, 3vw, 48px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
  }
  .beat-detail .beat-hero-cover { align-self: start; aspect-ratio: 1; }
  .beat-detail .beat-hero-top h1 { font-size: clamp(34px, 4vw, 62px); }
  .beat-detail-transport .wave { height: 80px; }
  .beat-detail-transport .big-play { flex: 0 0 54px; height: 54px; }
  .beat-detail-playback > .profile-comment-slot:has(form:not([inert])) {
    display: block;
    margin-block: 4px 10px;
  }
  .beat-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 3vw, 42px);
    margin-block: 30px;
  }
  .beat-detail-content:has(.beat-detail-side > :not([hidden])) {
    grid-template-columns: minmax(0, 1fr) minmax(285px, .55fr);
  }
  .beat-detail .comments { grid-area: 1 / 1; margin-top: 0; min-width: 0; }
  .beat-detail-side { grid-area: 1 / 2; min-width: 0; display: grid; gap: 16px; }
  .beat-detail-side > section {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }
  .beat-detail-side .beat-license-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.beat-detail .release-links h2 { margin: 0 0 12px; }
.release-link-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.release-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.release-link-card:hover,
.release-link-card:focus-within { background: #ffffff0a; }
.release-link-card .release-link-row { min-width: 0; text-decoration: none; }
.release-link-card .release-link-row img { flex: 0 0 42px; }
.release-link-card .release-link-row span { min-width: 0; overflow-wrap: anywhere; }
.release-link-card .release-link-row:hover strong { color: var(--accent); }
.release-link-play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.release-link-play:is(:hover, :focus-visible, .playing) { color: var(--accent); background: #ffffff0d; }
.release-link-play svg { width: 21px; height: 21px; }
