/* Song reader: the song's title and artist, the "listen" link, the lyric lines with a meaning to reveal, and the words to
   catch. Builds on the shared .explorer and .btn styles in styles.css and uses its colour tokens (they exist for light, for
   prefers-color-scheme: dark and for data-theme="dark"), so this file declares none of its own. Nothing scrolls sideways:
   every text wraps (overflow-wrap) and every row can grow taller, so a 320 px screen at 200% text stays inside the card. */
.song-reader { min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.song-reader figcaption { margin: 0; }
.sng-title { font-size: 1.15rem; }
.sng-artist { font-weight: 500; }

.sng-listen { margin: 0; }
.sng-link { max-width: 100%; min-height: 44px; text-decoration: none; overflow-wrap: anywhere; text-align: center; }
.sng-link:focus-visible, .sng-toggle:focus-visible, .sng-all:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

/* Read by screen readers, invisible on the page. */
.sng-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sng-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; }
.sng-all { min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
.sng-hint { margin: 0.2rem 0 0.6rem; overflow-wrap: anywhere; }

.sng-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.sng-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); min-width: 0; }
.sng-es { flex: 1 1 12rem; min-width: 0; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.sng-toggle { flex: 0 0 auto; min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
.sng-meaning { flex: 0 0 100%; min-width: 0; margin: 0; padding: 0.45rem 0.7rem; border-radius: 8px; background: var(--accent-soft); overflow-wrap: anywhere; }

.sng-words { min-width: 0; }
.sng-word-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.sng-word { min-width: 0; padding: 0.35rem 0.7rem; border-radius: 8px; background: var(--accent-soft); overflow-wrap: anywhere; }
.sng-word-es { font-weight: 700; }
