#shelves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.shelf{background:#1a1c18;border:1px solid #393c32;border-radius:14px;padding:clamp(14px,2vw,28px)}
.shelf h3{font-size:clamp(20px,2vw,32px);letter-spacing:-.045em;margin:0}
.shelf p,.terms,#licensing p,.back{color:#c5c7bb;font-size:14px;line-height:1.6}
.shelf p{min-height:2.7em}.pick{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #393c32}.pick strong,.pick small{display:block}.pick small{font-size:11px;margin-top:5px;color:#b6b8aa}.pick>b{margin-left:auto;color:#e8ee77}.thumb{width:50px;height:50px;flex:none}.thumb,.art{overflow:hidden;border-radius:6px}.thumb img,.art img{width:100%;height:100%;object-fit:cover}.terms a,.license,.track-info a:hover,.back:hover,.pick:hover strong{text-decoration:underline;text-underline-offset:3px}#licensing p{max-width:70ch}.track-page main>section:not(#detail):not(#licensing){display:none}.detail-grid{display:grid;grid-template-columns:minmax(170px,.7fr) minmax(0,1.3fr);gap:clamp(24px,5vw,72px);margin:24px 0}.art{aspect-ratio:1}.detail-grid h1{font-size:clamp(42px,6vw,84px);line-height:1}.detail-grid audio{display:block;width:100%;margin:20px 0}.versions,.actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.versions a{font-size:13px;padding:8px 12px;border:1px solid #696d5c;border-radius:20px}.versions [aria-current=true]{background:#dce77d;color:#171914}.license{font-size:14px}.actions .download{background:#e8ee77;padding:13px 20px;color:#181a16}.track-page footer{padding-bottom:32px}
@media(max-width:830px){#shelves{grid-template-columns:1fr}.shelf p{min-height:0}.shelf{padding:18px}.detail-grid{grid-template-columns:1fr}.art{max-width:230px;width:65vw}.hero h1{font-size:clamp(43px,9vw,65px)}}
.reels-page main>section:not(#reels):not(#licensing){display:none}#reel-cuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:16px}
@media(max-width:520px){header{height:auto;min-height:66px;gap:8px;flex-wrap:wrap;padding-block:12px}header nav{gap:12px}}

/* Shared interaction and layout rules for the music library. */
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
header { gap: 20px; }
header nav { flex-wrap: wrap; }
header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.hero h1 { font-size: clamp(46px, 6.2vw, 88px); line-height: .98; }
.hero { height: auto; min-height: 340px; }
.shelf { transition: border-color .2s; }
.shelf:hover { border-color: #74795e; }
.shelf h3 { line-height: 1.15; }
.shelf p { min-height: 45px; }
.pick { gap: 12px; min-height: 83px; }
.pick .thumb { position: relative; width: 56px; height: 56px; border-radius: 9px; flex-shrink: 0; }
.pick .playmark { width: 28px; height: 28px; right: 3px; bottom: 3px; background: #151811e8; }
.pick-title { flex: 1; min-width: 0; padding: 6px 0; }
.pick strong { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.pick small { line-height: 1.5; }
.pick { position: relative; }
.pick .thumb { z-index: 1; }
.pick-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pick-title::after { content: ""; position: absolute; inset: 0; }
.pick-duration { color: #b6b8aa; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) { .pick:hover { background: #23261f; } }
.pick:has([aria-pressed=true]) strong { color: #e8ee77; }
.heading { flex-wrap: wrap; }
#clear-filters, .copy-link { background: transparent; color: #e8ee77; border: 1px solid #626951; border-radius: 20px; min-height: 44px; padding: 8px 16px; cursor: pointer; }
.copy-link { margin-top: 16px; }
.skip-link { position: absolute; z-index: 10; top: -80px; left: 20px; background: #e8ee77; color: #181a16; padding: 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.full-library .row { grid-template-columns: 50px minmax(160px,1.2fr) minmax(60px,.5fr) 38px minmax(125px,.6fr) 76px; }
.row .download { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.service { min-height: 32px; display: inline-flex; align-items: center; }
.track-info strong { line-height: 1.4; overflow-wrap: anywhere; }
.detail-grid > div { min-width: 0; }
.detail-grid h1 { overflow-wrap: anywhere; line-height: 1.08; letter-spacing: -.05em; }
.versions a, .license { min-height: 44px; display: inline-flex; align-items: center; }
#licensing { border-top: 1px solid #3e4235; padding-top: 30px; }
#licensing p { line-height: 1.75; }
.player-info { flex: 1; min-width: 0; }
.player-info strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
#player-track { color: #e8ee77; display: inline-block; padding-top: 7px; font-size: 12px; }
#close { flex-shrink: 0; width: 44px; height: 44px; }
.route-notice { padding: 20px; border: 1px solid #878e5a; border-radius: 12px; }
.feedback:empty { display: none; }
@media (max-width: 1100px) {
  #shelves, #reel-cuts { grid-template-columns: 1fr; }
  .shelf p { min-height: 0; }
  .shelf { padding: 22px; }
  .full-library .row { grid-template-columns: 50px minmax(140px,1fr) 38px 140px 76px; }
  .full-library .wave { display: none; }
}
@media (max-width: 680px) {
  header { height: auto; align-items: flex-start; flex-direction: column; padding-block: 18px; gap: 6px; }
  header nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 12px; }
  header .portfolio { display: none; }
  .hero { min-height: 280px; }
  .heroText { padding: 24px; }
  .hero h1 { font-size: clamp(42px, 10vw, 66px); }
  .full-library .row { grid-template-columns: 46px minmax(0,1fr) 76px; gap: 6px 10px; }
  .row .jacket { grid-column: 1; grid-row: 1 / 3; }
  .row .track-info { grid-column: 2; grid-row: 1; }
  .row .platforms { grid-column: 2; grid-row: 2; }
  .row .download { grid-column: 3; grid-row: 1 / 3; }
  .full-library .row .time { display: none; }
  .detail-grid { gap: 20px; }
  .detail-grid .art { width: 160px; }
  .detail-grid h1 { font-size: 38px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions a { justify-content: center; }
  .filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .search { grid-column: 1 / -1; }
  .filters select { width: 100%; min-width: 0; }
  #player:not([hidden]) { flex-wrap: wrap; bottom: 8px; padding: 12px; }
  #player audio { width: 100%; order: 3; }
  body:has(#player:not([hidden])) { padding-bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.hero-credit { color: #e1e3d9; font-size: 14px; line-height: 1.4; margin: 0 0 18px; }
.similar { margin-top: 8px; }
.similar summary { cursor: pointer; list-style: none; color: #e8ee77; border: 1px solid #545948; border-radius: 22px; padding: 12px 16px; width: fit-content; font-size: 13px; }
.similar summary::-webkit-details-marker { display: none; }
.similar:not([open]) summary span:last-child, .similar[open] summary span:first-child { display: none; }
.similar[open] summary { margin-bottom: 12px; }
#shelves, #reel-cuts { align-items: start; }

.discovery { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:28px 0; padding:20px; border:1px solid #41483a; border-radius:14px; background:#20241c; }
.discovery a,.discovery button { display:inline-flex; align-items:center; min-height:44px; border-radius:24px; padding:8px 14px; }
.discovery a { background:#e8ee77; color:#191b14; font-weight:700; }
.discovery button { border:1px solid #656d59; color:inherit; background:transparent; cursor:pointer; }
.discovery span { color:#c5c7bb; font-size:13px; }

.discovery label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-weight:700; }
.discovery select { max-width:100%; min-height:44px; padding:8px 12px; border:1px solid #656d59; border-radius:8px; color:inherit; background:#20241c; font:inherit; }
