/* Collection-specific allocation. Ordinary entry pages remain untouched. */
.collection-page.record-wrapper { margin: 120px 0 0; padding-bottom: 90px; }
.collection-page .record-page { max-width: 1200px; padding-inline: 24px; }
.collection-page .record-back-link { margin: 0 0 12px; color: var(--link-color); }
.collection-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.collection-heading > img { width: 72px; height: 72px; object-fit: contain; flex: 0 0 72px; }
.collection-heading h1 { color: var(--primary-color, #d3b923); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.15; margin: 0; }
.collection-heading p { margin: 6px 0 0; color: #aaa; }
.collection-transport { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.collection-transport > strong { font-size: 1rem; color: #d0d8d8; }
.collection-transport > div { display: flex; flex-shrink: 0; }
.collection-page button { min-width: 44px; min-height: 44px; background: transparent; color: var(--link-color); cursor: pointer; font: inherit; }
.collection-page button:disabled { opacity: .4; cursor: default; }
.collection-page button:hover:not(:disabled) { background: #2b2b2b; }
.collection-page button:focus-visible, .collection-page a:focus-visible { outline: 2px solid #4abfb7; outline-offset: -2px; }
.collection-player .wavesurfer-waveform { position: relative; height: 108px; border-radius: 0; }
.collection-track-overlay { position: absolute; top: 8px; left: 10px; right: 10px; z-index: 2; width: fit-content; max-width: calc(100% - 20px); padding: 3px 6px; color: #d0d8d8; background: rgba(32, 32, 32, .88); font-size: 14px; font-weight: 500; line-height: 1.3; text-align: left; overflow-wrap: anywhere; pointer-events: none; }
.collection-player #waveform { border: 0; }
.collection-player #waveform-loader { font-size: .85rem; background: transparent; }
.collection-video { max-width: 760px; margin: 8px auto; aspect-ratio: 16 / 9; }
.collection-video iframe { width: 100%; height: 100%; border: 0; }
.collection-page [hidden] { display: none !important; }
#collection-play { padding-inline: 14px; border: 1px solid #4abfb7; margin-block: 8px 16px; }
#collection-playback-status { color: #d6b273; margin: 8px 0; font-size: .9rem; }
.collection-page .collection-parts { margin-top: 18px; }
.collection-page .collection-parts ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.collection-page .collection-parts li { display: flex; align-items: center; border-right: 0; min-height: 82px; }
.collection-page .collection-parts li.is-current { background: #293330; box-shadow: inset 3px 0 #4abfb7; }
.collection-page .collection-row-play { flex: 0 0 44px; font-size: 14px; }
.collection-page .collection-parts a { flex: 1; grid-template-columns: auto minmax(0, 1fr); padding: 8px; gap: 12px; }
.collection-page .collection-parts a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.collection-page .collection-parts img { width: 48px; height: 48px; object-fit: cover; border: 0; }
.collection-page .collection-parts strong, .collection-page .collection-parts a > span > span { white-space: normal; overflow: visible; text-overflow: clip; }
.collection-page .collection-parts strong { font-size: .95rem; line-height: 1.3; }
.collection-page .collection-parts small { font-size: .72rem; color: #aaa; }
.collection-page .collection-parts a > span > span { font-size: .82rem; color: #aaa; }
.collection-page .extended-notes { margin-top: 24px; }
@media (max-width: 700px) {
  .collection-page.record-wrapper { margin-top: 116px; }
  .collection-page .record-page { padding-inline: 14px; }
  .collection-heading { gap: 12px; }
  .collection-heading > img { width: 56px; height: 56px; flex-basis: 56px; }
  .collection-page .collection-parts ol { grid-template-columns: minmax(0, 1fr); }
  .collection-player .wavesurfer-waveform { height: 80px; }
}
@media (max-height: 500px) and (min-width: 701px) {
  .collection-page.record-wrapper { margin-top: 104px; }
  .collection-page .record-back-link { margin-bottom: 6px; }
  .collection-heading { margin-bottom: 8px; }
  .collection-heading > img { width: 44px; height: 44px; flex-basis: 44px; }
  .collection-heading h1 { font-size: 1.35rem; }
  .collection-heading p { font-size: .875rem; line-height: 1.3; margin-top: 2px; }
  .collection-player .wavesurfer-waveform { height: 60px; }
}
