* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --accent: #ff8a3d;
  --ink: #252231;
  --muted: #665e70;
  --line: #eae5ef;
  --paper: #fffdf9;
}
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, input:focus-visible { outline: 2px solid #6b45a4; outline-offset: 3px; }
.page {
  max-width: 520px;
  margin-inline: auto;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.player { padding: 14px 14px 12px; background: #f6f1fc; border: 1px solid #e9dff5; border-radius: 8px; }
.now { display: flex; align-items: center; gap: 14px; }
.cover {
  position: relative;
  display: grid;
  flex: 0 0 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #eedff9;
  color: #633794;
}
.cover::after {
  position: absolute;
  inset: 0;
  background: url("../../../attachments/4e44a9dcdcc9/ui_style_ref.png") center / cover no-repeat;
  content: "";
}
.cover .mp-icon { width: 32px; height: 32px; }
.now-copy { min-width: 0; }
.eyebrow { margin: 0 0 3px; color: #674788; font-size: 13px; font-weight: 650; }
h1 { margin: 0; font-size: 23px; line-height: 1.25; overflow-wrap: anywhere; }
.progress {
  --fill: 0%;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 4px 0 -9px;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.progress:disabled { cursor: default; }
.progress::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill), #e1d7ea var(--fill)); }
.progress::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill), #e1d7ea var(--fill)); }
.progress::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 2px solid white; border-radius: 50%; background: #ad4c14; }
.progress::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid white; border-radius: 50%; background: #ad4c14; }
.progress:disabled::-webkit-slider-thumb { background: #a79eb0; }
.progress:disabled::-moz-range-thumb { background: #a79eb0; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; }
.controls { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 4px; }
.controls button { display: grid; place-items: center; padding: 0; border: 0; }
.play { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #341706; }
.play .mp-icon { width: 28px; height: 28px; }
.next { position: absolute; left: calc(50% + 38px); width: 44px; height: 44px; border-radius: 50%; background: transparent; color: #58406e; }
.message { margin: 8px 0 0; color: #8e311b; font-size: 13px; }
.library { padding-top: 18px; }
h2 { margin: 0 0 10px; font-size: 19px; }
.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.themes button { min-height: 44px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 650; }
.themes button[aria-pressed="true"] { background: #ffe1cd; border-color: var(--accent); color: #78360e; }
.songs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.song { display: flex; align-items: center; gap: 2px; min-height: 66px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.song:has([aria-current="true"]) { border-color: var(--accent); background: #fff7ee; }
.pick { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 64px; padding: 7px 6px 7px 9px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.badge { display: grid; flex: 0 0 40px; height: 40px; place-items: center; border-radius: 8px; }
.sleep .badge { background: #eee6fd; color: #6737a1; }
.rhythm .badge { background: #ffe5d4; color: #914016; }
.animals .badge { background: #dff2e9; color: #286952; }
.song-copy { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.song-copy strong { font-size: 15px; }
.song-copy small { color: var(--muted); font-size: 12px; }
.favorite { display: grid; flex: 0 0 44px; height: 44px; margin-right: 5px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #6b607b; }
.favorite[aria-pressed="true"] { color: #ba460f; }
.favorite:active, .next:not(:disabled):active { background: #eae0f1; }

.beat-game { margin-bottom: 14px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.beat-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.beat-heading h2 { display: flex; align-items: center; gap: 7px; margin: 0; }
#beat-round { flex-shrink: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
#beat-meter { display: block; width: 100%; height: 12px; margin: 10px 0; accent-color: #277356; }
.beat-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.beat-actions button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; touch-action: manipulation; }
#beat-start:not(:disabled) { background: var(--accent); border-color: var(--accent); }
#beat-tap[data-ready] { background: #277356; border-color: #277356; color: #fff; }
#beat-result { min-height: 1.4em; margin: 7px 0 0; color: var(--muted); font-size: 14px; }
