:root {
  color-scheme: light;
  --ink: #25352e;
  --muted: #6f7f73;
  --paper: #f7f5e9;
  --mint: #dce9d6;
  --green: #82aa8b;
  --yellow: #edc85f;
  --coral: #e99078;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 0;
  color: var(--ink);
  background: #cbd8cb;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

.poster {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  min-height: 100svh;
  overflow: hidden;
  padding: max(30px, env(safe-area-inset-top)) 25px max(26px, env(safe-area-inset-bottom));
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.74), transparent 34%),
    var(--paper);
}

.grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.sun {
  position: absolute;
  z-index: -2;
  top: -76px;
  right: -66px;
  width: 230px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
}

.leaf {
  position: absolute;
  z-index: -1;
  width: 122px;
  height: 50px;
  border: 2px solid rgba(75, 117, 81, 0.32);
  border-radius: 100% 0 100% 0;
}

.leaf-left {
  top: 205px;
  left: -68px;
  rotate: 27deg;
}

.leaf-right {
  right: -72px;
  bottom: 175px;
  rotate: -26deg;
}

.poster-header {
  text-align: center;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(29px, 8vw, 37px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
}

.artist {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

.player {
  display: grid;
  place-items: center;
  width: 100%;
  margin-block: auto;
  padding: 24px 0 14px;
}

.disc-button {
  position: relative;
  width: min(88%, 310px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 22px 23px rgba(54, 73, 59, 0.2));
}

.disc-button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 8px;
}

.disc {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 16%, rgba(255, 255, 255, 0.18) 16.3% 17%, transparent 17.3% 31%, rgba(255, 255, 255, 0.08) 31.3% 32%, transparent 32.3%),
    repeating-radial-gradient(circle at center, transparent 0 3px, rgba(5, 22, 18, 0.14) 3.8px 4.3px),
    conic-gradient(from 20deg, #142822, #89ae8b 9%, #1a2d28 19%, #d9bb67 31%, #172a25 44%, #719c82 57%, #162923 72%, #c67e68 84%, #142822);
  box-shadow: inset 0 0 0 2px rgba(24, 43, 37, 0.45), inset 0 0 34px rgba(0, 0, 0, 0.35);
}

.disc::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
}

.disc-shine {
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 82deg, transparent 0 16%, rgba(255, 255, 255, 0.28) 19%, transparent 24% 60%, rgba(255, 255, 255, 0.13) 64%, transparent 69%);
}

.disc-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 43%;
  aspect-ratio: 1;
  border: 5px solid rgba(250, 248, 235, 0.62);
  border-radius: 50%;
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 0 0 1px rgba(20, 44, 34, 0.18);
}

.label-kicker,
.label-note {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(6px, 1.8vw, 9px);
  letter-spacing: 0.18em;
}

.label-title {
  margin: 1px 0 5px;
  font-family: Georgia, serif;
  font-size: clamp(24px, 8vw, 36px);
  font-style: italic;
  line-height: 1;
}

.disc-hole {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border: 2px solid #f7f3df;
  border-radius: 50%;
  background: #23362e;
}

.play-badge {
  position: absolute;
  right: 4%;
  bottom: 7%;
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  background: var(--coral);
  box-shadow: 0 5px 12px rgba(72, 66, 48, 0.22);
}

.play-badge svg {
  width: 23px;
  fill: currentColor;
}

.icon-play {
  translate: 1px 0;
}

.icon-pause,
.is-playing .icon-play {
  display: none;
}

.is-playing .icon-pause {
  display: block;
}

.is-playing .disc {
  animation: spin 8s linear infinite;
}

.track-meta {
  width: min(100%, 340px);
  margin-top: 20px;
}

.status {
  min-height: 21px;
  margin: 0 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.status.error {
  color: #a95648;
}

.timeline {
  display: grid;
  grid-template-columns: 35px 1fr 35px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.timeline span:last-child {
  text-align: right;
}

input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 0;
  border-radius: 99px;
  outline: 0;
  appearance: none;
  background: linear-gradient(to right, var(--green) var(--progress, 0%), rgba(89, 112, 94, 0.2) var(--progress, 0%));
}

input[type="range"]::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  appearance: none;
  background: var(--green);
  box-shadow: 0 1px 4px rgba(34, 52, 42, 0.28);
}

input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
}

.message {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 7px;
  text-align: center;
}

.quote-mark {
  position: absolute;
  top: -17px;
  left: calc(50% - 78px);
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
}

.message p {
  margin: 0 0 14px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.16em;
}

.signature {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.22em;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@media (min-width: 540px) {
  body { padding: 28px; }
  .poster {
    min-height: min(844px, calc(100svh - 56px));
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(39, 59, 45, 0.24);
  }
}

@media (max-height: 700px) {
  .poster { padding-top: 20px; padding-bottom: 18px; }
  .eyebrow { margin-bottom: 8px; }
  .player { padding-top: 15px; }
  .disc-button { width: min(57vh, 270px); }
  .track-meta { margin-top: 13px; }
  .message p { margin-bottom: 7px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .is-playing .disc { animation-duration: 20s; }
}
