/* Plain on purpose: one column, browser fonts, blue links. The karaoke wipe is the only flourish. */
body { max-width: 650px; margin: 40px auto; padding: 0 12px; font-size: 18px; line-height: 1.6; color: #222; background: #fff; }
h1, h2 { line-height: 1.2; }
header p { margin: -0.4em 0 0; color: #555; }
/* the one small size: secondary text only, never lyrics or essay. em, so it still scales with browser text size */
header p, #notes, #status { font-size: 0.875em; }
hr { border: 0; border-top: 1px solid #ddd; margin: 2.5em 0; }
blockquote { margin-left: 0; padding-left: 1em; border-left: 3px solid #ccc; font-style: italic; }
button { font: inherit; }
summary { cursor: pointer; font-weight: bold; }
:focus-visible { outline: 2px solid #c00; outline-offset: 2px; }
::selection { background: #ff0; color: #000; }

/* track + lyric lines: buttons that read as links */
#tracklist button, #sheet button { background: none; border: 0; padding: 0; color: #00e; text-decoration: underline; cursor: pointer; text-align: left; }
#tracklist button:disabled { color: #767676; text-decoration: none; cursor: default; }
#tracklist li { margin: 0.25em 0; }
#tracklist [aria-current] { color: #c00; font-weight: bold; }

.player { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1em 0; }
.player input[type="range"] { flex: 1 0 200px; } /* wraps under the buttons on phones instead of orphaning the time */
.player label, #status { flex-basis: 100%; margin: 0; }
#status:empty { display: none; }
#time { font-variant-numeric: tabular-nums; }

/* karaoke stage; --p is set every frame by app.js */
.stage { border-block: 1px solid #222; padding: 1em 0; text-align: center; }
.stage p { margin: 0.3em 0; min-height: 1.6em; }
.stage .dim { color: #767676; }
.stage .cur { font-size: 1.6em; font-weight: bold; color: transparent; background: linear-gradient(90deg, #c00 var(--p, 0%), #222 var(--p, 0%)); -webkit-background-clip: text; background-clip: text; }
#track:has(details[open]) .stage { display: none; } /* one lyric view at a time */

#sheet { position: relative; list-style: none; padding: 0; max-height: 50vh; overflow-y: auto; }
#sheet button { color: inherit; text-decoration: none; padding-left: 0.5em; border-left: 3px solid transparent; }
#sheet button:hover { background: #f2f2f2; }
#sheet [aria-current] { border-left-color: #c00; font-weight: bold; }
#notes { color: #555; }
