.song-book [hidden] { display: none !important; }
.song-tools { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #d7e0e8; border-radius: 14px; background: #fff; }
.song-tools label { display: block; font-weight: bold; margin-bottom: .6rem; color: #123856; }
.song-search-row { display: flex; gap: .6rem; }
.song-search-row input { flex: 1; width: 100%; min-width: 0; padding: .85rem; border: 1px solid #8299ac; border-radius: 8px; font: inherit; }
.song-tools button { min-height: 44px; padding: .6rem .8rem; border: 1px solid #8299ac; border-radius: 8px; background: #f0f5fa; color: #123856; font: inherit; cursor: pointer; }
.song-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .75rem; }
.song-toolbar p { margin: 0; color: #4e6373; font-size: .9rem; }
.song-alphabet { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0; }
.song-alphabet a { display: grid; place-items: center; min-width: 44px; min-height: 44px; background: #fff; border: 1px solid #cbd8e2; border-radius: 8px; text-decoration: none; color: #123856; font-weight: bold; }
.song-group { scroll-margin-top: 1rem; }
.song-group > h2 { color: #123856; border-bottom: 2px solid #d7e0e8; padding-bottom: .5rem; margin-top: 2rem; }
.song { margin-bottom: .7rem; background: #fff; border: 1px solid #d2dde7; border-radius: 10px; overflow: hidden; scroll-margin-top: 1rem; }
.song summary { padding: 1.1rem 1.25rem; color: #123856; font-weight: bold; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.song summary small { display: block; margin-left: 1.2rem; color: #546879; font-size: .8rem; font-weight: normal; }
.song[open] { border-color: #648ba9; }
.song[open] summary { background: #edf4fa; border-bottom: 1px solid #d2dde7; }
.song-body { padding: .5rem clamp(1rem, 4vw, 2rem) 1.5rem; }
.song-text, .song-variant { white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.song-text { line-height: 1.75; margin: 1rem 0; min-height: 1em; }
.song-note { color: #4c6170; font-style: italic; border-left: 3px solid #d79a45; padding-left: .85rem; }
.song-variant { color: #123856; font-size: 1rem; margin-top: 1.8rem; }
.song-permalink { display: inline-block; color: #245a83; font-size: .85rem; padding: .7rem 0; }
.song-book :focus-visible { outline: 3px solid #a35a08; outline-offset: 3px; }
.song-book a:hover, .song-tools button:hover { background: #e1edf7; }
@media (max-width: 480px) { .song-toolbar { align-items: flex-start; flex-direction: column; } .song summary { padding: 1rem; } }
