/* SONGHOLD Library (/songhold, src/routes/songhold.js): Modhold's look, made plainly for music. Square corners, the site's
   own colours, album covers that play on click, and a now-playing bar along the bottom. Loaded only on the library's pages. */
.sh-page { padding-bottom: 96px; }
.sh-bar { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent); }
.sh-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; flex-wrap: wrap; }
.sh-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display, inherit); letter-spacing: .22em; font-size: 15px; color: var(--ink); text-decoration: none; }
.sh-brand em { font-style: normal; color: var(--accent); letter-spacing: .14em; }
.sh-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.sh-eq i { display: block; width: 3px; height: 40%; background: var(--accent); animation: shEq 1.1s ease-in-out infinite; }
.sh-eq i:nth-child(2) { animation-delay: -.35s; } .sh-eq i:nth-child(3) { animation-delay: -.7s; } .sh-eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes shEq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.sh-links { display: flex; gap: 18px; flex-wrap: wrap; }
.sh-links a { color: var(--ink2); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 14px 0; border-bottom: 2px solid transparent; }
.sh-links a.on, .sh-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.sh-links .ic { width: 14px; height: 14px; }
.sh-hero { padding: 46px 0 30px; background: radial-gradient(ellipse 60% 90% at 85% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); border-bottom: 1px solid var(--line); }
.sh-hero h1 { font-size: clamp(34px, 6vw, 56px); margin: 6px 0 8px; }
.sh-hero .soft { max-width: 640px; font-size: 16px; }
/* one row: search, three dropdowns and Find side by side (Seth 29 Nov 2026: "this looks stupid" when each took a full row;
   the site's inputs are width:100%, so every control here sets its own width) */
.sh-filters { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 24px 0 34px; }
.sh-filters input[type=search] { flex: 1 1 280px; width: auto; min-width: 0; }
.sh-filters select { flex: 0 0 170px; width: 170px; min-width: 0; }
.sh-filters > * { height: 46px; box-sizing: border-box; }
.sh-filters .btn { flex: 0 0 auto; height: 46px; display: inline-flex; align-items: center; justify-content: center; padding-left: 20px; padding-right: 20px; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px 18px; margin-bottom: 10px; }
.sh-card { display: flex; flex-direction: column; min-width: 0; }
.sh-cover { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; overflow: hidden; }
.sh-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.sh-cover:hover img, .sh-cover:focus-visible img { transform: scale(1.04); filter: brightness(.78); }
.sh-playbtn { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: var(--accentInk, #111); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.sh-cover:hover .sh-playbtn, .sh-cover:focus-visible .sh-playbtn, .sh-cover.playing .sh-playbtn { opacity: 1; transform: none; }
.sh-playbtn .ic { width: 18px; height: 18px; }
.sh-nocover { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); font-size: 13px; }
.sh-card-t { margin-top: 10px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card-t:hover { color: var(--accent); }
.sh-card-a { color: var(--ink2); font-size: 14px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card-a:hover { color: var(--ink); }
.sh-card-m { color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.sh-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; margin-bottom: 10px; }
.sh-feat { display: flex; gap: 18px; padding: 16px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.sh-feat .sh-cover { flex: 0 0 168px; width: 168px; height: 168px; }
.sh-feat-txt { min-width: 0; }
.sh-feat-txt h3 { margin: 6px 0 2px; font-size: 22px; } .sh-feat-txt h3 a { color: inherit; text-decoration: none; }
.sh-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.sh-album-top { display: flex; gap: 32px; margin-top: 30px; align-items: flex-end; }
.sh-cover.huge { flex: 0 0 300px; width: 300px; height: 300px; }
.sh-album-head { min-width: 0; }
.sh-album-head h1 { font-size: clamp(30px, 5vw, 50px); margin: 6px 0 4px; overflow-wrap: anywhere; }
.sh-by { font-size: 17px; margin: 0; }
.sh-meta { margin: 6px 0 0; }
.sh-tags { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.sh-tags a { color: var(--accent); text-decoration: none; } .sh-tags a:hover { text-decoration: underline; }
.sh-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.sh-tracks { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sh-tracks li { display: grid; grid-template-columns: 40px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.sh-tracks li:hover, .sh-tracks li.on { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.sh-tracks li.on .sh-tt { color: var(--accent); }
.sh-tplay { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; }
.sh-tplay:hover { border-color: var(--accent); color: var(--accent); } .sh-tplay .ic { width: 14px; height: 14px; }
.sh-tn { color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.sh-tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-tl { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 14px; }
.sh-desc { margin-top: 26px; max-width: 760px; }
.sh-report { margin-top: 26px; font-size: 14px; } .sh-report summary { cursor: pointer; color: var(--mute); display: inline-flex; gap: 6px; align-items: center; }
.sh-report textarea { width: 100%; min-height: 80px; margin: 10px 0; }
.sh-dialog { max-width: 460px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 22px; }
.sh-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.sh-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sh-edit-cover { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sh-edit-cover img, .sh-edit-cover .sh-nocover { position: static; width: 120px; height: 120px; object-fit: cover; border: 1px solid var(--line); display: grid; place-items: center; }
.sh-staff { display: flex; gap: 16px; } .sh-staff-cover { width: 130px; height: 130px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.sh-staff-tracks { padding-left: 18px; } .sh-staff-tracks li { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 4px 0; }
.sh-staff-tracks audio { height: 30px; max-width: 260px; }
/* the now-playing bar */
.sh-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sh-pl-in { max-width: var(--wrap, 1200px); margin: 0 auto; padding: 10px var(--gut, 18px); display: grid; grid-template-columns: 52px minmax(0, 220px) auto minmax(0, 1fr) 160px 90px; gap: 14px; align-items: center; }
.sh-pl-cover { width: 52px; height: 52px; object-fit: cover; border: 1px solid var(--line); background: var(--bg2); }
.sh-pl-meta { display: flex; flex-direction: column; min-width: 0; }
.sh-pl-meta b, .sh-pl-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-pl-meta span { color: var(--mute); font-size: 13px; }
.sh-pl-ctl { display: flex; gap: 6px; align-items: center; }
.sh-pl-ctl button { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 1px solid transparent; color: var(--ink); cursor: pointer; }
.sh-pl-ctl button:hover { color: var(--accent); }
.sh-pl-ctl .sh-pl-pp { width: 44px; height: 44px; background: var(--accent); color: var(--accentInk, #111); }
.sh-pl-ctl .sh-pl-pp:hover { color: var(--accentInk, #111); filter: brightness(1.08); }
.sh-pl-seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.sh-pl-bar { position: relative; height: 16px; cursor: pointer; }
.sh-pl-bar::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.sh-pl-bar i { position: absolute; left: 0; top: 7px; height: 2px; width: 0; background: var(--accent); }
.sh-pl-viz { width: 160px; height: 36px; }
.sh-pl-vol { width: 90px; accent-color: var(--accent); }
@media (max-width: 900px) {
  .sh-pl-in { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "c m k" "s s s"; gap: 6px 10px; padding-top: 8px; padding-bottom: 8px; }
  .sh-pl-cover { width: 44px; height: 44px; grid-area: c; } .sh-pl-meta { grid-area: m; } .sh-pl-ctl { grid-area: k; } .sh-pl-seek { grid-area: s; }
  .sh-pl-viz, .sh-pl-vol { display: none; }
  .sh-page { padding-bottom: 120px; }
}
@media (max-width: 640px) {
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .sh-filters input[type=search] { flex-basis: 100%; }
  .sh-filters select, .sh-filters .btn { flex: 1 1 calc(50% - 4px); width: auto; }
  .sh-featured { grid-template-columns: minmax(0, 1fr); }
  .sh-feat { flex-direction: column; } .sh-feat .sh-cover { width: 100%; height: auto; flex-basis: auto; }
  .sh-album-top { flex-direction: column; align-items: stretch; gap: 18px; } .sh-cover.huge { width: 100%; height: auto; flex-basis: auto; }
  .sh-playbtn { opacity: 1; transform: none; width: 38px; height: 38px; }
  .sh-tracks li { grid-template-columns: 36px 22px minmax(0, 1fr) auto; gap: 8px; }
  .sh-staff { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .sh-eq i { animation: none; height: 70%; } }
