@font-face {
  font-family: QinSerif;
  src:
    local("Noto Serif CJK SC"), local("Source Han Serif SC"), local("SimSun");
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f2f0e7;
  --ink: #17392f;
  --muted: #78857b;
  --line: #d5d9ca;
  --gold: #b79a54;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px "Microsoft YaHei",
    system-ui,
    sans-serif;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #b79a54;
  outline-offset: 4px;
}
button[hidden],
[hidden] {
  display: none !important;
}
.masthead {
  height: 96px;
  max-width: 1480px;
  padding: 0 48px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand b {
  font-family: QinSerif, serif;
  font-size: 27px;
  letter-spacing: 4px;
  font-weight: 500;
}
.brand > span {
  font-size: 10px;
  letter-spacing: 3px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  margin-left: 5px;
}
.edition {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 2px;
}
.edition i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
main {
  max-width: 1376px;
  margin: 0 auto;
  padding: 0 32px;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 1px 20px;
  font-size: 12px;
  letter-spacing: 1px;
}
.original {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}
.player {
  overflow: hidden;
  border-radius: 9px;
  background: #102d28;
  box-shadow: 0 24px 70px #132d2721;
}
.screen {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #102d28;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #102d28;
  color: #eeeede;
}
.loader-mark {
  font-family: QinSerif, serif;
  font-size: 50px;
  letter-spacing: 12px;
}
.loading p {
  margin-top: 24px;
  color: #b4c8b6;
  font-size: 13px;
}
progress {
  width: 180px;
  height: 3px;
  border: none;
  appearance: none;
}
progress::-webkit-progress-bar {
  background: #355248;
}
progress::-webkit-progress-value {
  background: #dcc487;
}
.loading button {
  margin-top: 24px;
  background: #ebe6d3;
  color: var(--ink);
  padding: 10px 22px;
  border: 0;
  border-radius: 4px;
}
.start {
  position: absolute;
  left: 6%;
  bottom: 12%;
  border: 1px solid #d0bea0;
  background: #f5eedc;
  color: #19392f;
  border-radius: 100px;
  padding: 14px 25px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 8px 30px #0002;
  font-weight: 600;
}
.start > span {
  font-size: 13px;
}
.start small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.6;
  border-left: 1px solid #b8b9a2;
  padding-left: 14px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 24px;
  background: #f9f8f0;
  border: 1px solid #dce0d1;
  border-top: none;
  border-radius: 0 0 9px 9px;
}
.transport button {
  border: 0;
  background: transparent;
  color: var(--ink);
  height: 30px;
  min-width: 30px;
}
.transport #play {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 70px;
  font-size: 13px;
}
.transport #clock {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  white-space: nowrap;
  color: #6c7a70;
}
.transport input {
  min-width: 0;
  flex: 1;
  height: 22px;
  accent-color: #315a42;
  cursor: pointer;
}
.transport #mute {
  font-size: 11px;
  white-space: nowrap;
}
.transport #replay {
  font-size: 24px;
}
.chapters {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-top: 28px;
}
.chapters button {
  border: 0;
  border-top: 2px solid #d6dacc;
  background: transparent;
  text-align: left;
  flex: 1;
  padding: 14px 6px 10px;
  color: #829080;
  font-size: 11px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.chapters button span {
  font-size: 9px;
  display: block;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.chapters button[aria-current="true"] {
  color: #214832;
  border-color: #315a42;
}
.chapters button:hover {
  color: #214832;
  border-color: #a6b090;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 32px;
  color: #7a887a;
  font-size: 11px;
}
footer p {
  font-size: 13px;
  color: #38543e;
}
footer i {
  font-style: normal;
  padding: 0 9px;
  opacity: 0.5;
}
@media (min-width: 1600px) {
  main {
    max-width: 1450px;
  }
  .masthead {
    max-width: 1550px;
  }
}
@media (max-width: 700px) {
  .masthead {
    padding: 0 20px;
    height: 76px;
  }
  .brand b {
    font-size: 23px;
  }
  .brand > span {
    font-size: 8px;
    padding-left: 12px;
    letter-spacing: 1px;
  }
  .brand {
    gap: 9px;
  }
  .edition {
    font-size: 9px;
    letter-spacing: 0;
    gap: 8px;
  }
  .edition i {
    display: none;
  }
  main {
    padding: 0 14px;
  }
  .topline {
    padding: 12px 2px 15px;
    font-size: 11px;
  }
  .original {
    display: none;
  }
  .player {
    border-radius: 6px;
  }
  .transport {
    padding: 10px 8px;
    gap: 7px;
  }
  .transport #play {
    min-width: 30px;
    justify-content: center;
  }
  .transport #play span {
    display: none;
  }
  .transport #clock {
    font-size: 9px;
  }
  .transport #mute {
    font-size: 10px;
    min-width: 47px;
  }
  .transport #replay {
    font-size: 20px;
  }
  .start {
    padding: 9px 15px;
    font-size: 11px;
    gap: 9px;
    bottom: 10%;
  }
  .start small {
    display: none;
  }
  .chapters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 24px;
    gap: 8px;
  }
  .chapters button {
    font-size: 11px;
    padding: 10px 3px 8px;
  }
  .chapters button span {
    margin-bottom: 5px;
  }
  footer {
    display: block;
    padding: 10px 3px 25px;
  }
  footer p {
    font-size: 13px;
  }
  footer > span {
    font-size: 10px;
  }
  .loader-mark {
    font-size: 30px;
  }
  .loading p {
    font-size: 11px;
    margin-top: 12px;
  }
  progress {
    width: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.piano-link {
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding: 8px 0;
  white-space: nowrap;
}
.piano-link:hover {
  color: #8b7039;
}
.end-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 26px 0 12px;
  padding: 22px;
  background: #e4e8d9;
  border-radius: 8px;
}
.end-action span {
  font-family: QinSerif, serif;
  font-size: 22px;
}
.end-action a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  background: var(--ink);
  color: #f2f0e7;
  text-decoration: none;
  font-size: 14px;
}
.end-action a:hover {
  background: #315a42;
}
@media (max-width: 700px) {
  .end-action {
    gap: 14px;
    padding: 18px 10px;
  }
  .end-action span {
    font-size: 17px;
  }
  .end-action a {
    font-size: 12px;
    padding: 10px 18px;
  }
  .piano-link {
    font-size: 11px;
  }
}
