:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
  --accent: #167e7a;
  --muted: #566864;
  --line: #cbd9d5;
  --surface: #f2f7f5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #78d4c5;
    --muted: #b4c7c2;
    --line: #39504a;
    --surface: #182922;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 58rem;
  margin: auto;
  padding: clamp(16px, 4vw, 44px);
}
header,
.transport {
  display: flex;
  gap: 12px;
  align-items: center;
}
header {
  justify-content: space-between;
}
h1 {
  font-size: 1.45rem;
}
h2 {
  margin: 1.4rem 0 0;
  font-size: clamp(22px, 4vw, 34px);
}
#artist,
#status,
details p {
  color: var(--muted);
}
button,
select,
input {
  font: inherit;
}
button,
select {
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}
label {
  display: block;
  margin: 14px 0 4px;
}
select {
  width: 100%;
}
.reading {
  min-height: 8.3rem;
  max-height: 38vh;
  overflow: auto;
  padding: 16px 0;
}
.word {
  display: inline-flex;
  vertical-align: top;
  align-items: center;
  flex-direction: column;
  margin-right: 7px;
  font-size: 1.35rem;
  font-weight: 650;
}
.word small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}
.sung {
  color: var(--accent);
}
#translation {
  margin: 0.25rem 0;
}
#words {
  white-space: pre-line;
}
#seek {
  flex: 1;
  min-width: 36px;
  accent-color: var(--accent);
}
#count {
  color: var(--accent);
  font-size: 1.7rem;
  width: 1em;
}
.transport {
  padding: 12px 0;
  border-block: 1px solid var(--line);
}
details {
  padding: 1rem 0;
}
summary {
  cursor: pointer;
}
input[type="file"] {
  display: block;
  max-width: 100%;
}
#clock {
  font-variant-numeric: tabular-nums;
}
#status:empty {
  display: none;
}
