:root {
  color-scheme: dark;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #edf6f3;
  background: #10191c;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main {
  max-width: 36rem;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(2.1rem, env(safe-area-inset-top)) 1.15rem max(2.1rem, env(safe-area-inset-bottom));
}
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 1.4rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.35rem, 5vw, 1.8rem); letter-spacing: -.035em; }
h2 { font-size: 1rem; font-weight: 650; }
.status { font-size: .875rem; color: #adbdb9; }
.status[data-online="true"] { color: #a9f6c9; }
.player { background: #1b2c2e; padding: 1.15rem; border: 1px solid #345052; border-radius: 1.2rem; }
.player-heading, .library-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
#listen-state { font-size: .875rem; color: #a9c6bd; }
canvas { width: 100%; height: 5.6rem; display: block; margin: .9rem 0; }
button, .download {
  min-height: 44px;
  border: 0;
  border-radius: .7rem;
  padding: .7rem 1rem;
  font: inherit;
  font-weight: 640;
  cursor: pointer;
}
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid #ffde9b; outline-offset: 3px; }
.primary { width: 100%; background: #a9f6c9; color: #142720; }
.outline { border: 1px solid #5e7676; background: transparent; color: #edf6f3; }
.outline[data-active="true"] { background: #f5a69c; border-color: #f5a69c; color: #321e1b; }
.plain, .download { background: transparent; color: #a9f6c9; }
.record { margin-top: .9rem; border: 1px solid #345052; border-radius: 1.2rem; padding: .95rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
#timer { color: #b4c9c5; font-variant-numeric: tabular-nums; margin-top: .35rem; }
.notice { padding: .8rem 0 0; color: #ffcb9d; line-height: 1.5; }
.library { margin: 1.5rem 0 0; }
#empty { color: #adbdb9; padding: .9rem 0; }
ul { list-style: none; padding: 0; margin: .25rem 0 1rem; }
li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .4rem 0; border-bottom: 1px solid #345052; }
li span { font-size: .875rem; }
.download { display: inline-flex; align-items: center; flex: none; }
