:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --ink: #303c34;
  --muted: #60695f;
  --line: #dadbd0;
  --pale: #e3e4d9;
  --accent: #936348;
  --serif: "Quiet Serif", "Songti SC", "Noto Serif CJK SC", serif;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--line) var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
::selection { background: #dce0d1; color: var(--ink); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button, a, input { outline-offset: 6px; }
:focus-visible { outline: 2px solid var(--accent); }
button:disabled, input:disabled { cursor: default; opacity: .4; }
button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { width: min(100% - 112px, 1080px); margin: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; height: 132px; }
.wordmark { display: flex; gap: 11px; align-items: center; font-family: var(--serif); font-weight: 500; font-size: 29px; letter-spacing: .12em; color: var(--ink); text-decoration: none; }
.seal { display: grid; place-items: center; width: 20px; height: 24px; padding-left: 2px; border: 1px solid var(--accent); border-radius: 2px; color: var(--accent); font-size: 12px; }
.header-note { color: var(--muted); font-size: 12px; letter-spacing: .18em; }
main { width: min(100%, 840px); margin: 28px auto 0; }
.player { display: grid; grid-template-columns: 1fr 1fr; gap: 84px; align-items: center; min-height: 390px; }
.visual { position: relative; display: flex; justify-content: center; align-items: center; width: 350px; height: 350px; justify-self: center; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.orbit-outer { inset: 2px; opacity: .75; }
.orbit-inner { inset: 19px; opacity: .45; }
.taiji { width: 302px; height: 302px; animation: turn 72s linear infinite; animation-play-state: paused; }
.yin { fill: var(--pale); }
.yang { fill: var(--ink); }
body.is-playing .taiji { animation-play-state: running; }
.visual-caption { position: absolute; bottom: -39px; color: var(--muted); font-family: var(--serif); font-size: 12px; letter-spacing: .48em; padding-left: .48em; }
.player-panel { min-width: 0; padding-top: 15px; }
.track-position { margin-bottom: 14px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
h1 { margin: 0; font: 500 34px/1.6 var(--serif); letter-spacing: .04em; text-wrap: balance; overflow-wrap: anywhere; }
.track-origin { margin: 12px 0 31px; color: var(--muted); font-size: 12px; letter-spacing: .07em; }
.progress-area { width: 100%; }
.progress { --progress: 0%; appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.progress::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--ink) var(--progress), var(--line) var(--progress)); border-radius: 2px; }
.progress::-moz-range-track { height: 2px; background: var(--line); }
.progress::-moz-range-progress { height: 2px; background: var(--ink); }
.progress::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 8px; height: 8px; margin-top: -3px; border-radius: 50%; background: var(--ink); }
.progress::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--ink); }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.transport { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 26px; }
.icon-button, .play-button { display: grid; place-items: center; border: 0; border-radius: 50%; transition: background .2s, transform .2s; }
.icon-button { width: 48px; height: 48px; background: transparent; }
.play-button { width: 64px; height: 64px; background: var(--ink); color: var(--paper); }
.play-button svg { width: 25px; height: 25px; }
.play-button:active { transform: scale(.94); }
.mode-button { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin: 17px auto 0; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font-size: 12px; border-radius: 8px; }
.mode-button svg { width: 17px; height: 17px; }
.status { min-height: 20px; max-width: 34ch; margin: 0 auto; text-align: center; color: var(--accent); font-size: 12px; line-height: 1.7; }
.library { margin: 96px auto 0; }
.library-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 19px; }
h2 { margin: 0; font: 500 20px/1.5 var(--serif); letter-spacing: .15em; }
#track-count { font-size: 11px; color: var(--muted); }
.track-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.track-list li { border-bottom: 1px solid var(--line); }
.track-row { display: grid; grid-template-columns: 28px 1fr auto 22px; gap: 18px; align-items: center; width: 100%; min-height: 78px; padding: 12px 13px; border: 0; background: transparent; text-align: left; transition: background .2s; }
.track-row[aria-current="true"] { background: #eaece2; }
.track-index { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.track-name { display: block; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.track-detail { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.track-length { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.track-row svg { width: 16px; height: 16px; color: var(--muted); }
.track-row[aria-current="true"] svg { color: var(--ink); }
footer { display: flex; justify-content: space-between; align-items: center; min-height: 112px; margin-top: 20px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.footer-mark { font-family: var(--serif); letter-spacing: .18em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (hover: hover) {
  .icon-button:hover, .mode-button:hover { background: var(--pale); }
  .play-button:hover { background: #465548; }
  .track-row:hover { background: #eaece2; }
}
@media (min-width: 1500px) { main { margin-top: 8vh; } }
@media (max-width: 760px) {
  .page { width: min(100% - 48px, 460px); }
  .masthead { height: 91px; }
  .wordmark { font-size: 25px; gap: 9px; }
  .seal { width: 18px; height: 21px; font-size: 11px; }
  .header-note { font-size: 11px; letter-spacing: .08em; }
  main { margin-top: 14px; }
  .player { display: flex; flex-direction: column; gap: 0; min-height: 0; }
  .visual { width: 232px; height: 232px; }
  .orbit-inner { inset: 13px; }
  .taiji { width: 202px; height: 202px; }
  .visual-caption { display: none; }
  .player-panel { width: 100%; padding-top: 33px; text-align: center; }
  .track-position { margin-bottom: 9px; font-size: 11px; }
  h1 { font-size: 27px; line-height: 1.6; }
  .track-origin { margin: 9px 0 22px; font-size: 11px; }
  .transport { margin-top: 18px; gap: 34px; }
  .play-button { width: 62px; height: 62px; }
  .mode-button { margin-top: 11px; }
  .library { margin-top: 35px; }
  .library-heading { margin-bottom: 13px; }
  h2 { font-size: 18px; }
  .track-row { min-height: 73px; gap: 10px; padding: 10px 9px; grid-template-columns: 21px 1fr auto 18px; }
  .track-name { font-size: 13px; }
  footer { min-height: 88px; margin-top: 13px; padding-bottom: env(safe-area-inset-bottom); font-size: 11px; }
}
@media (max-width: 360px) {
  .page { width: calc(100% - 36px); }
  .header-note { letter-spacing: 0; }
  .visual { width: 202px; height: 202px; }
  .taiji { width: 176px; height: 176px; }
  h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
