/* 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 b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plat b span { font-size: .85em; color: var(--mute); }
.plat > span { color: var(--mute); font-size: .85em; }
.more-plats { margin-top: 10px; }
.more-plats summary {
  cursor: pointer; color: var(--accent); font-size: .92rem; padding: 8px 0; min-height: 40px;
  list-style: none; text-align: center;
}
.more-plats summary::-webkit-details-marker { display: none; }
.more-plats summary::after { content: " ▾"; }
.more-plats[open] summary::after { content: " ▴"; }
.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; }
}
.extra { text-align: center; font-size: .9rem; color: var(--mute); margin: 1.2em 0 0; }
.btn-line { display: inline-block; margin-top: 6px; padding: 8px 18px; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }

/* 专辑页短介绍 */
.teaser { margin-top: .4em; }
.teaser p { margin: .6em 0; }
.teaser .zh { text-align: justify; }
.more { text-align: right; font-size: .95rem; }
.about h1 { text-align: center; margin: .6em 0 0; }
.about .sub { text-align: center; color: var(--mute); margin: 0 0 1em; }
.about .more { text-align: center; margin: 2em 0; }

/* 双语歌词：原诗句下今译，每段后英文；可开关 */
.p-lz > input { position: absolute; opacity: 0; pointer-events: none; }
.lyr-opts { display: flex; gap: 8px; margin: 2px 0 12px; font-size: .85rem; }
.lyr-opts label {
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--mute);
  min-height: 32px; display: flex; align-items: center;
}
.lyr-opts label::before { content: "✓ "; }
.o-gl:not(:checked) ~ .lyr-opts label[for="o-gl"]::before,
.o-en:not(:checked) ~ .lyr-opts label[for="o-en"]::before { content: "＋ "; }
.o-gl:checked ~ .lyr-opts label[for="o-gl"], .o-en:checked ~ .lyr-opts label[for="o-en"] { color: var(--ink); border-color: var(--ink); }
.o-gl:not(:checked) ~ .lyr .gl { display: none; }
.o-en:not(:checked) ~ .lyr .en-l { display: none; }
.p-lz .blk { margin-bottom: 1.4em; }
.p-lz .gl { color: var(--mute); font-size: .86rem; line-height: 1.5; margin: 0 0 .35em; }
.en-l { margin-top: .5em; padding-left: .8em; border-left: 2px solid var(--line); font-family: Georgia, "Times New Roman", serif; font-size: .9rem; color: #4d463d; line-height: 1.6; }
.en-l .ode { font-style: italic; }

/* 收听栏目的平台按钮：松绿实心（站长 11-18 定） */
.listen .plat, .buy .plat {
  border: 0; border-radius: 999px; min-height: 50px; padding: 10px 18px;
  background: linear-gradient(135deg, #4f7a5e 0%, #355c45 55%, #26453a 100%); color: #f6f3ea;
  box-shadow: 0 4px 12px rgba(53,92,69,.22), inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .15s ease, box-shadow .15s ease;
}
.listen .plat b span, .listen .plat > span, .buy .plat > span { color: rgba(246,243,234,.7); }
.listen .plat:hover, .buy .plat:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(53,92,69,.3); }
.listen .plat:active, .buy .plat:active { transform: translateY(1px); background: #26453a; color: #f6f3ea; }


/* 实体唱片 */
.editions { list-style: none; padding: 0; margin: 0 0 .6em; }
.editions li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.editions b { display: block; font-weight: 600; }
.editions small { display: block; color: var(--mute); font-size: .86rem; line-height: 1.55; }
.buy-btn { margin: 14px 0 0; }
.buy-btn .plat { max-width: 320px; margin: 0 auto; }
.buy .plat b span { color: inherit; font-size: 1em; }
.buy .plat { justify-content: center; gap: 10px; }
.buy-btns { margin-top: 14px; }
.buy-note { text-align: center; font-size: .82rem; margin-top: 8px; }

/* 11-19 站长：收听、实体唱片两栏收紧，按钮变窄 */
.listen h2, .buy h2 { margin: 1.5em 0 .5em; }
.listen .plats, .buy .plats { gap: 8px; }
.listen .plat, .buy .plat { min-height: 38px; padding: 4px 16px; font-size: .9rem; }
.editions { margin: 0 0 .3em; }
.editions li { padding: 5px 0; }
.editions b { font-size: .98rem; line-height: 1.5; }
.editions small { font-size: .82rem; line-height: 1.45; }
.buy > .hint { font-size: .84rem; line-height: 1.6; margin: .3em 0 0; }
.buy-btns { margin-top: 10px; }
.buy-note { text-align: left; margin-top: 4px; font-size: .78rem; }

/* 11-19 站长：购买按钮放到各版本标题右侧 */
.editions li { display: flex; align-items: center; gap: 12px; }
.editions li > div { flex: 1; min-width: 0; }
.buy .plat.ed-buy { flex: 0 0 auto; min-width: 7.2em; justify-content: center; min-height: 34px; padding: 3px 14px; font-size: .85rem; gap: 6px; }
.buy .ed-buy b { display: inline; font-weight: 400; font-size: 1em; }

/* 11-19 站长：收听按钮一行四个 */
.listen .plats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.listen .plat { justify-content: center; padding: 4px 8px; font-size: .82rem; min-height: 36px; text-align: center; }
.listen .plat > span[aria-hidden] { display: none; }
.listen .plat b { white-space: normal; line-height: 1.25; }
.listen .plats li { display: flex; }
.listen .plats li > .plat { flex: 1; }
.listen .plat b > span { display: block; font-size: .8em; line-height: 1.2; }
.listen .plat b { word-break: keep-all; }
