:root {
  color-scheme: light;
  --sky: #eef5ff;
  --surface: #fff;
  --ink: #172c4d;
  --muted: #526982;
  --accent: #2564e9;
  --line: #dce7f3;
  --focus: #004bc1;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--sky);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, select, input { color: inherit; font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; cursor: pointer; }
button { border: 0; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button:disabled { opacity: .38; cursor: default; }
h1, h2 { margin: 0; font-weight: 650; }
.masthead { border-bottom: 1px solid #d9e6f5; }
.masthead-inner, .workspace { width: min(100% - 64px, 1080px); margin-inline: auto; }
.masthead-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand h1 { font-size: 1.68rem; letter-spacing: -.055em; }
.app-icon {
  width: 41px; height: 41px; border-radius: 12px;
  background: linear-gradient(145deg, #578cff, #1b58df 82%);
  box-shadow: inset 0 1px 0 #7ea6fc; color: white;
  display: flex; align-items: center; justify-content: center; gap: 2.7px;
}
.app-icon i { width: 2.6px; height: 7px; background: currentColor; border-radius: 8px; }
.app-icon i:nth-child(2) { height: 16px; }
.app-icon i:nth-child(3) { height: 23px; }
.app-icon i:nth-child(4) { height: 12px; }
.library-meta, #list-meta { color: var(--muted); font-size: .875rem; }
.workspace {
  display: grid; grid-template-columns: minmax(300px, .79fr) minmax(380px, 1.21fr);
  align-items: start; gap: 24px; padding-block: 36px max(44px, env(safe-area-inset-bottom));
}
.panel { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 24px; box-shadow: 0 6px 22px #233e6d06; }
.player { padding: 18px; position: sticky; top: 20px; }
.cover {
  isolation: isolate; position: relative; overflow: hidden; aspect-ratio: 1.98;
  color: #123b97; background: linear-gradient(112deg, #e7f4ff 2%, #d9edff 54%, #c3e1ff 100%);
  border-radius: 13px;
}
.cover-kana { position: absolute; z-index: 2; top: 12%; left: 6.2%; font-size: .8rem; line-height: 1; font-weight: 650; letter-spacing: .13em; }
.cover-kanji {
  position: absolute; z-index: 2; top: 28%; left: 4.6%;
  font-family: "Hiragino Mincho ProN", "Songti SC", "Yu Mincho", "STSong", serif;
  font-size: clamp(76px, 9vw, 128px); line-height: 1; font-weight: 600; letter-spacing: -.08em;
}
.cover-edition {
  position: absolute; z-index: 2; right: 5.2%; bottom: 8.8%; display: flex; gap: .45em; align-items: baseline;
  font-size: .67rem; font-weight: 700; line-height: 1; letter-spacing: .12em; color: white;
}
.cover-edition b { font-size: 1.06rem; font-weight: 650; letter-spacing: -.025em; }
.cover-waves {
  position: absolute; width: 115%; height: 180%; border-radius: 50%; transform: rotate(-35deg);
}
.cover-waves-back {
  top: 14%; right: -51%;
  background: repeating-radial-gradient(ellipse at center, #a2c8fc 0 6px, #cde4ff 7px 9px, #a2c8fc 10px 16px);
}
.cover-waves-front {
  top: 43%; right: -39%; width: 121%; height: 190%;
  background: repeating-radial-gradient(ellipse at center, #2e6ee1 0 6px, #8dbdff 7px 8px, #2e6ee1 9px 16px);
  box-shadow: 0 -1px 0 #e2efff;
}
.player-content { padding: 23px 8px 0; }
.track-heading { display: flex; justify-content: space-between; align-items: center; }
.unit-caption { color: var(--accent); font-size: .875rem; line-height: 1.3; font-weight: 600; }
#current-track { font-size: clamp(1.85rem, 2.7vw, 2.3rem); line-height: 1.2; letter-spacing: -.05em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.timeline { margin-top: 16px; }
.seek {
  display: block; margin: 0; width: 100%; height: 30px; cursor: pointer; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.seek::-webkit-slider-runnable-track {
  height: 5px; border-radius: 8px;
  background: linear-gradient(to right, var(--accent) 0 var(--progress, 0%), #dce7f5 var(--progress, 0%) 100%);
}
.seek::-moz-range-track { background: #dce7f5; border-radius: 8px; height: 5px; }
.seek::-moz-range-progress { background: var(--accent); height: 5px; border-radius: 8px; }
.seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -4.5px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
}
.seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent); }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; line-height: 1; font-variant-numeric: tabular-nums; }
.transport { display: flex; align-items: center; justify-content: center; gap: 25px; padding-block: 11px 21px; }
.skip-control, .play-control { display: grid; place-items: center; padding: 0; }
.skip-control { width: 45px; height: 45px; border-radius: 50%; background: transparent; }
.play-control { width: 63px; height: 63px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 4px 12px #2564e926; }
.play-control:active, .skip-control:active { transform: scale(.97); }
.play-glyph {
  width: 0; height: 0; margin-left: 4px; border-top: 9px solid transparent;
  border-bottom: 9px solid transparent; border-left: 15px solid currentColor;
}
.pause-glyph { display: none; width: 15px; height: 18px; border-left: 5px solid currentColor; border-right: 5px solid currentColor; }
.play-control[data-playing="true"] .pause-glyph { display: block; }
.play-control[data-playing="true"] .play-glyph { display: none; }
.skip-glyph { width: 18px; height: 16px; position: relative; display: block; }
.skip-glyph::before { content: ""; display: block; border-block: 8px solid transparent; border-left: 13px solid var(--ink); width: 0; height: 0; }
.skip-glyph::after { content: ""; position: absolute; right: 1px; top: 1px; width: 3px; height: 14px; border-radius: 1px; background: var(--ink); }
.skip-glyph.previous { transform: rotate(180deg); }
.player-settings { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 7px; }
.setting { display: flex; align-items: center; position: relative; min-height: 44px; color: #385674; border-radius: 8px; }
.setting select {
  position: relative; display: block; appearance: none; -webkit-appearance: none;
  border: 0; border-radius: 7px; background: transparent; width: 100%; min-height: 44px;
  font-size: .875rem; font-weight: 550; padding: 0 20px 0 26px; z-index: 1;
}
.setting::after { content: ""; right: 5px; top: calc(50% - 4px); width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); position: absolute; pointer-events: none; }
.order-icon { position: absolute; left: 0; display: grid; gap: 3px; }
.order-icon i { display: block; width: 16px; height: 2px; border-radius: 3px; background: #577898; }
.order-icon i:nth-child(2) { width: 12px; }
.order-icon i:nth-child(3) { width: 8px; }
.speed-label { position: absolute; left: 0; color: var(--muted); font-size: .825rem; }
.speed-setting select { text-align: right; padding-left: 32px; }
.status:not(:empty) { color: #8b3f28; font-size: .875rem; line-height: 1.55; padding-top: 5px; }
.library { padding: 26px 25px 19px; }
.units { padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.units-title { font-size: 1.06rem; letter-spacing: -.025em; margin-bottom: 13px; }
.unit-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.unit-button {
  min-width: 0; min-height: 44px; padding: 0; background: #f0f5fc; color: #47617d; border-radius: 11px;
  font-size: 1.04rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.unit-button[aria-pressed="true"] { background: var(--accent); color: white; }
.list-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 23px 1px 14px; }
.list-head h2 { font-size: 1.55rem; letter-spacing: -.055em; }
.track-list { display: grid; gap: 3px; }
.track-row {
  display: grid; width: 100%; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  min-height: 55px; padding: 7px 13px; text-align: left; border-radius: 12px; background: transparent;
}
.track-index { height: 32px; width: 32px; display: flex; align-items: center; justify-content: center; background: #f0f5fc; color: #567493; border-radius: 50%; font-size: 0; }
.track-index::before {
  content: ""; width: 0; height: 0; border-block: 4.5px solid transparent; border-left: 7px solid currentColor; margin-left: 2px;
}
.track-name { font-size: 1rem; font-weight: 520; }
.track-duration { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .875rem; }
.track-row[aria-current="true"] { background: #eaf2ff; color: #1959c9; }
.track-row[aria-current="true"] .track-index { color: #fff; background: var(--accent); }
.track-row[aria-current="true"] .track-duration { color: #3a63a2; }
body:has(#play[data-playing="true"]) .track-row[aria-current="true"] .track-index::before {
  margin-left: 0; width: 7px; height: 11px; border-block: 0; border-inline: 2.5px solid currentColor;
}
@media (hover: hover) {
  .skip-control:hover { background: #eef4fc; }
  .play-control:hover { background: #1a55cb; }
  .unit-button:not([aria-pressed="true"]):hover, .track-row:not([aria-current="true"]):hover, .setting:hover { background: #edf3fb; }
}
@media (max-width: 800px) {
  .workspace, .masthead-inner { width: min(100% - 32px, 570px); }
  .masthead-inner { min-height: 70px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 16px; }
  .player { position: static; padding: 13px 14px 5px; }
  .cover { aspect-ratio: 3.35; }
  .cover-kana { top: 16%; left: 5.7%; font-size: .69rem; }
  .cover-kanji { top: 31%; left: 4.6%; font-size: clamp(60px, 15vw, 93px); }
  .player-content { padding: 15px 4px 0; }
  #current-track { font-size: 1.66rem; margin-top: 3px; }
  .timeline { margin-top: 4px; }
  .transport { padding: 2px 0 11px; }
  .play-control { width: 51px; height: 51px; }
  .player-settings { padding-top: 0; }
  .library { padding: 19px 16px 13px; }
  .units { padding-bottom: 15px; }
  .units-title { margin-bottom: 10px; }
  .list-head { padding: 16px 1px 9px; }
  .list-head h2 { font-size: 1.33rem; }
  .track-row { min-height: 50px; }
}
@media (max-width: 430px) {
  .masthead-inner, .workspace { width: calc(100% - 24px); }
  .masthead-inner { min-height: 61px; }
  .brand { gap: 9px; }
  .brand h1 { font-size: 1.39rem; }
  .app-icon { width: 34px; height: 34px; border-radius: 10px; }
  .library-meta { font-size: .78rem; }
  .workspace { padding-top: 12px; gap: 12px; }
  .panel { border-radius: 19px; }
  .library { padding-inline: 13px; }
  .unit-list { gap: 5px; }
  .unit-button { border-radius: 9px; }
}
@media (max-width: 350px) {
  .masthead-inner, .workspace { width: calc(100% - 18px); }
  .masthead-inner { gap: 8px; }
  .brand h1 { font-size: 1.28rem; }
  .library { padding-inline: 10px; }
  .unit-list { gap: 3px; }
  .cover-kanji { font-size: 56px; }
}
