/* oakmusic.ca — 窄屏优先 */
:root {
  --paper: #f4efe6;
  --ink: #26221d;
  --mute: #7a7166;
  --line: #ddd3c3;
  --accent: #8a3b2a;
  --ode: #4a3a2a;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Source Han Serif", "SimSun", Georgia, serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", var(--serif);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.75 var(--serif);
  padding: 0 max(16px, env(safe-area-inset-left)) env(safe-area-inset-bottom);
}
main, .top, .foot { max-width: 680px; margin: 0 auto; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-weight: 600; line-height: 1.35; }
h2 { font-size: 1.25rem; margin: 2.2em 0 .6em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 1.8em 0 .4em; }

/* 中英切换：无脚本时默认中文 */
html:not([data-lang="en"]) .en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.brand { color: var(--ink); font-weight: 600; letter-spacing: .08em; }
.lang {
  font: inherit; font-size: .85rem; background: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; min-height: 36px; cursor: pointer;
}

/* 专辑页 */
.hero { text-align: center; }
.cover { width: 100%; max-width: 420px; height: auto; display: block; margin: 4px auto 18px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.hero h1 { font-size: 1.6rem; margin: .2em 0 .1em; }
.by { color: var(--mute); margin: 0 0 1em; letter-spacing: .1em; }
.listen h2 { margin-top: 1.6em; }
.plats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plat {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; font-size: .95rem;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); background: rgba(255,255,255,.45); font-family: Georgia, var(--serif);
}
.plat span { color: var(--mute); font-size: .85em; }
.plat:active { background: var(--ink); color: var(--paper); }
.listen-link { text-align: center; margin: 1em 0; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 10px 22px; border-radius: 999px; min-height: 44px; font-size: .95rem;
}
.hint { color: var(--mute); font-size: .9rem; margin-top: -.2em; }

.tracks { list-style: none; padding: 0; margin: 0; }
.tracks .season { color: var(--accent); font-size: .85rem; letter-spacing: .2em; margin: 1.2em 0 .2em; }
.track a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.track .no { color: var(--mute); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.track .tt { flex: 1; }
.track .tt b { font-size: 1.08rem; }
.track .tt i { color: var(--mute); font-style: italic; font-size: .9rem; }
.track small { display: block; color: var(--mute); font-size: .82rem; line-height: 1.55; }
.track small.blurb { color: var(--ink); opacity: .8; margin-top: 2px; }
.track .len { color: var(--mute); font-size: .85rem; font-variant-numeric: tabular-nums; }

.notes .zh p { text-align: justify; }
.notes .en p { hyphens: auto; }
.notes ul { padding-left: 1.2em; }
.notes li { margin: .4em 0; }
.credits p { margin: .15em 0; font-size: .92rem; }

/* 单曲页 */
.crumb { margin: 4px 0 0; font-size: .9rem; }
.th { text-align: center; padding: 8px 0 4px; }
.th .no { color: var(--accent); font-size: .85rem; letter-spacing: .15em; margin: .6em 0 0; }
.th h1 { font-size: 2rem; margin: .1em 0 0; letter-spacing: .1em; }
.th .py { font-size: .95rem; color: var(--mute); letter-spacing: 0; font-weight: 400; }
.th .ent { font-style: italic; margin: 0 0 .4em; }
.th .meta { color: var(--mute); font-size: .88rem; margin: 0; }
.th .blurb { font-size: .95rem; margin: .8em 0 0; }

.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-bar {
  position: sticky; top: 0; z-index: 2; background: var(--paper);
  display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 8px; margin-top: 10px;
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.tab-bar label {
  flex: 0 0 auto; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; cursor: pointer; white-space: nowrap; min-height: 36px; display: flex; align-items: center;
}
.pane { display: none; padding: 8px 0 12px; }
.pane-h { display: none; }
.t-lz:checked ~ .p-lz, .t-le:checked ~ .p-le, .t-bh:checked ~ .p-bh, .t-lg:checked ~ .p-lg { display: block; }
.t-lz:checked ~ .tab-bar .tl-lz, .t-le:checked ~ .tab-bar .tl-le,
.t-bh:checked ~ .tab-bar .tl-bh, .t-lg:checked ~ .tab-bar .tl-lg { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs > input:focus-visible + * { outline: 2px solid var(--accent); }

.pane p { margin: 0; }
.p-lz p { padding: 1px 0; }
.p-lz .ode, .p-bh .ode { font-family: var(--kai); color: var(--ode); }
.p-le .ode { font-style: italic; color: var(--ode); }
.p-le .now, .p-lg p { font-family: Georgia, "Times New Roman", serif; }
.blk, .stanza { margin: 0 0 1.1em; }
.lab { display: block; color: var(--mute); font-size: .78rem; letter-spacing: .08em; margin: .6em 0 .2em; font-family: var(--serif); font-style: normal; }
.p-bh .ode { font-size: 1.08rem; margin-top: .5em; }
.p-bh .gloss { color: var(--mute); font-size: .92rem; }
.ref, .src { color: var(--mute); font-size: .85rem; font-style: italic; }
.src { margin-top: 1.4em !important; }
.todo { color: var(--accent); }

.key { color: var(--mute); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 8px; }
.key .ode { font-family: var(--kai); font-style: italic; color: var(--ode); }
.pn { display: flex; justify-content: space-between; gap: 12px; margin: 1.5em 0; font-size: .95rem; }
.pn a { padding: 8px 0; }

/* 首页 */
.home { text-align: center; }
.home h1 { letter-spacing: .3em; margin: 1.2em 0 .8em; }
.card { display: inline-block; max-width: 360px; color: var(--ink); }
.card img { width: 100%; height: auto; display: block; margin-bottom: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }

.foot { color: var(--mute); font-size: .8rem; text-align: center; padding: 2.5em 0 2em; }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .hero h1 { font-size: 2rem; }
}
