:root {
  --paper: #f4f1e8;
  --card: #fbf9f3;
  --ink: #1a1915;
  --soft: #6f695c;
  --faint: #9b9587;
  --line: #e2dcc9;
  --accent: #1f4b3d;
  --accent-soft: #e8efe9;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.page {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 22px calc(120px + env(safe-area-inset-bottom));
}

.masthead { margin-bottom: 34px; }

.brand {
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--accent);
  margin-bottom: 18px;
}

h1 {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 34px;
  line-height: 1.28;
  font-weight: 400;
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}

.lead {
  margin: 0;
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 30em;
}

.list {
  border-top: 1px solid var(--line);
  margin-bottom: 40px;
}

.row {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: background 160ms ease;
}

.row:hover { background: rgba(31, 75, 61, 0.04); }
.row:active { background: rgba(31, 75, 61, 0.08); }


.row-index {
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.row-main { min-width: 0; }

.row-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-sub {
  display: block;
  font-size: 12.5px;
  color: var(--soft);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.row.is-playing .row-title { color: var(--accent); }
.row.is-playing 
.row-index { color: var(--accent); }

.skeleton {
  height: 62px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(226,220,201,0.25), rgba(226,220,201,0.55), rgba(226,220,201,0.25));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.empty {
  padding: 34px 4px;
  color: var(--soft);
  font-size: 14px;
}

.cta {
  padding: 26px 0 10px;
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 3px;
  color: var(--faint);
  margin: 0 0 10px;
}

.cta h2 {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 8px;
}

.cta-note {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 13.5px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--accent);
  color: #f6f3ea;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: opacity 160ms ease;
}

.btn:hover { opacity: 0.9; }

.btn.is-disabled {
  background: transparent;
  color: var(--faint);
  border: 1px solid var(--line);
  cursor: default;
}

.foot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(244, 241, 232, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 0 18px calc(10px + env(safe-area-inset-bottom));
}

.track-line {
  height: 2px;
  background: rgba(31, 75, 61, 0.12);
  margin: 0 -18px;
}

.track-line span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 240ms linear;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}

.player-meta {
  min-width: 0;
  flex: 1;
}

.player-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta span {
  display: block;
  font-size: 12px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-time {
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #f6f3ea;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.play-btn svg { width: 20px; height: 20px; fill: currentColor; }
.play-btn .icon-pause { display: none; }
.player.is-playing .play-btn .icon-play { display: none; }
.player.is-playing .play-btn .icon-pause { display: block; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #1a1915;
  color: #f4f1e8;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  max-width: 84vw;
  text-align: center;
}

@media (max-width: 420px) {
  h1 { font-size: 29px; }
  .page { padding-top: 32px; }
}
