/* music-extras.css: per-song credits and synced lyrics on Songwright song cards.
   S.A.G.E. for D.E.A.N., 2026-10-30, key sage-wdtw-sw-1030. Loaded by partials/song-card.php only on a page whose
   catalog has a song with 'credits' or 'timing', so every other card and page is untouched. */

/* ---------- credits (a song's own credit list, printed in the order given) ---------- */
.swm-card .swm-credits{margin:.4rem 0 0;padding:0;font-size:.86rem;line-height:1.5;color:var(--sw-muted,#555C58)}
.swm-card .swm-credit-row{display:flex;flex-wrap:wrap;gap:0 .35em;margin:0}
.swm-card .swm-credits dt{font-weight:600;color:var(--sw-charcoal,#373E3A)}
.swm-card .swm-credits dd{margin:0;min-width:0;overflow-wrap:anywhere}

/* ---------- synced lyrics ---------- */
#listen .swm-card .swl,.swm-card .swl{white-space:normal;position:relative;scroll-behavior:auto;overflow-wrap:anywhere;max-width:100%}
.swm-card .swl-sec{margin:0 0 1.1rem}
.swm-card .swl-sec:last-child{margin-bottom:0}
.swm-card .swl .swl-label{font:600 .72rem/1.4 var(--sw-body,'Inter',system-ui,sans-serif);letter-spacing:.14em;text-transform:uppercase;color:var(--sw-champagne-ink,#7A623A);margin:0 0 .3rem;padding:0 .55rem}
.swm-card .swl-line{display:block;padding:.1rem .55rem;border-left:3px solid transparent;color:var(--sw-charcoal,#373E3A);transition:color .2s ease,background-color .2s ease,border-color .2s ease}
.swm-card .swl-hint{font-size:.84rem;line-height:1.5;color:var(--sw-muted,#555C58);margin:0 0 .6rem}

/* turned on by swm-lyrics.js once the timing file loads */
.swm-card .swl.is-synced{max-height:min(26rem,62vh);overflow-y:auto;overscroll-behavior:contain;padding:.6rem 0;border-top:1px solid var(--sw-line,rgba(183,154,104,.40));border-bottom:1px solid var(--sw-line,rgba(183,154,104,.40));scrollbar-width:thin;scrollbar-color:var(--sw-champagne,#B79A68) transparent}
.swm-card .swl-line.is-timed{cursor:pointer}
/* a timed line is a tap target, so it is at least 44 px tall with the text centered (key sage-wdtw-sw-tap-1030) */
.swm-card .swl-line.is-timed{display:flex;align-items:center;min-height:44px;box-sizing:border-box}
.swm-card .swl-line.is-timed:hover{background:rgba(183,154,104,.10)}
.swm-card .swl-line.is-timed:focus-visible{outline:2px solid var(--sw-champagne-ink,#7A623A);outline-offset:-2px}
.swm-card .swl-line.is-past{color:var(--sw-muted,#555C58)}
.swm-card .swl-line.is-active{color:var(--sw-forest,#152321);background:rgba(183,154,104,.24);border-left-color:var(--sw-champagne,#B79A68)}

@media (prefers-reduced-motion:reduce){ .swm-card .swl-line{transition:none} }
