/* Keep the deliberately joined release title intact at every entry point. */
body[data-music-pen="4"] .m-entry-title,
#m-title-yatebyalyublyu .mp-written,
.m-score-row[data-index="0"] a > [lang="ru"] > .mp-written,
.release-heading h1 {
  overflow-wrap: normal;
  white-space: nowrap;
}
.m-score-row[data-index="0"] > a {
  flex-wrap: wrap;
  row-gap: 0;
}
.m-entry-platforms {
  display: grid;
  justify-items: start;
  min-width: 0;
  max-width: 100%;
}
.m-entry-platform-label {
  font-size: max(17px, calc(var(--font) - 1px));
  line-height: 1.35;
}
.m-entry-platform-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1em;
  max-width: 100%;
}
body[data-music-pen="4"] .m-entry-actions {
  column-gap: 1.5rem;
  row-gap: .5rem;
}
.m-entry-platform-links .m-entry-full { white-space: nowrap; }

/* Under the cover the complete title keeps its reading size on small phones. */
@media (max-width: 389px) {
  body[data-music-pen="4"] .m-entry-latest {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .22rem .7rem;
  }
  .m-entry-cover { width: 48px; height: 48px; }
  .m-entry-info { display: contents; }
  .m-entry-label { grid-column: 2; grid-row: 1; align-self: center; }
  .m-entry-title, .m-entry-gloss { grid-column: 1 / -1; }
  .m-entry-actions { margin-top: .45rem; }
}

/* The selected release may also occupy just one column on a wide screen. */
#release-yatebyalyublyu { container: newest-release / inline-size; }
@container newest-release (max-width: 510px) {
  body[data-music-pen="4"] #release-yatebyalyublyu .m-sheet-front {
    grid-template-areas: "number cover" "meta cover" "title title";
    row-gap: .1rem;
  }
  #release-yatebyalyublyu .m-sheet-heading { display: contents; }
  #release-yatebyalyublyu .m-sheet-number { grid-area: number; align-self: end; }
  #release-yatebyalyublyu .m-record-meta { grid-area: meta; align-self: start; }
  #release-yatebyalyublyu .m-record-cover { grid-area: cover; }
  #m-title-yatebyalyublyu { grid-area: title; }
}

/* The front cover and the viewport both affect the measure of the release page. */
.release-heading { container-type: inline-size; }
.release-heading h1 { font-size: min(clamp(2.7rem, 6.6vw, 5.3rem), 13cqi); }
@media (max-width: 760px) {
  .release-heading h1 { font-size: min(clamp(2rem, 10vw, 3.6rem), 13cqi); }
}
