:root {
  --paper: #f3e9d2;
  --paper-2: #eadcbc;
  --ink: #1e1a16;
  --ink-2: #4a4036;
  --red: #b3202a;
  --red-2: #8d1820;
  --gold: #c9a24a;
  --gold-2: #e8c873;
  --teal: #2e6e6a;
  --night: #16130f;
  --line: rgba(30, 26, 22, .18);
  --serif: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Noto Sans CJK TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --display: "Playfair Display", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--paper);
  /* 舊紙紋理 */
  background-image:
    radial-gradient(rgba(120, 90, 40, .07) 1px, transparent 1px),
    radial-gradient(rgba(120, 90, 40, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.25), rgba(0,0,0,.03));
  background-size: 7px 7px, 13px 13px, 100% 100%;
  background-position: 0 0, 3px 5px, 0 0;
  padding-bottom: 96px;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* 頂部紅條 */
.topstrip {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 24px;
  background: var(--red); color: var(--paper);
  font-size: 12px; letter-spacing: .3em;
}
.topstrip-en { font-family: var(--display); letter-spacing: .25em; }

/* 刊頭 */
.masthead {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 18px 24px;
  border-bottom: 3px double var(--ink);
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 233, 210, .94);
  backdrop-filter: blur(4px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-disc { width: 46px; height: 46px; animation: spin 9s linear infinite; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-zh { font-family: var(--serif); font-weight: 900; font-size: 28px; letter-spacing: .12em; }
.brand-en { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 14px; color: var(--red); letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 16px;
  padding: 8px 12px; letter-spacing: .15em;
}
.nav a:hover { color: var(--red); }
.nav-btn {
  border: 1.5px solid var(--ink); background: transparent; padding: 7px 14px;
  font-size: 14px; letter-spacing: .1em;
}
.nav-btn:hover { background: var(--ink); color: var(--paper); }
.nav-btn-red { background: var(--red); border-color: var(--red); color: var(--paper); }
.nav-btn-red:hover { background: var(--red-2); border-color: var(--red-2); }

/* 主視覺 */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 56px 24px 40px;
}
.hero-kicker {
  display: inline-block; margin: 0 0 18px;
  font-size: 13px; letter-spacing: .35em; color: var(--red); font-weight: 700;
  border-top: 2px solid var(--red); border-bottom: 2px solid var(--red); padding: 4px 0;
}
.hero-title {
  margin: 0; font-family: var(--serif); font-weight: 900;
  font-size: clamp(64px, 11vw, 132px); line-height: .95; letter-spacing: .04em;
  display: flex; gap: .15em; flex-wrap: wrap;
}
.hero-title span:last-child { color: var(--red); }
.hero-sub { font-family: var(--serif); font-size: 18px; color: var(--ink-2); line-height: 1.9; margin: 18px 0 24px; }
.hero-now {
  border: 2px solid var(--ink); padding: 18px 20px; max-width: 440px;
  background: var(--paper-2); box-shadow: 6px 6px 0 var(--ink);
}
.hero-now-label { font-size: 12px; letter-spacing: .3em; color: var(--teal); font-weight: 700; }
.hero-now-title { font-family: var(--serif); font-weight: 900; font-size: 28px; margin-top: 6px; }
.hero-now-artist { color: var(--ink-2); margin: 4px 0 14px; }
.btn-play-big {
  background: var(--ink); color: var(--paper); border: 0; padding: 10px 20px;
  letter-spacing: .2em; font-weight: 700;
}
.btn-play-big:disabled { opacity: .4; cursor: default; }
.btn-play-big:not(:disabled):hover { background: var(--red); }

.hero-art { position: relative; height: 440px; }
.sleeve {
  position: absolute; left: 0; top: 10px; width: 380px; height: 380px;
  background: linear-gradient(160deg, #e2522f 0%, #c32a2a 45%, #6d1426 100%);
  box-shadow: 10px 12px 0 rgba(30,26,22,.85);
  overflow: hidden; z-index: 2;
}
.sleeve-sun {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  left: 80px; top: 70px; background: radial-gradient(circle, #f6d27a 0 55%, #eaa94a 56% 100%);
}
.sleeve-lines {
  position: absolute; inset: auto 0 0 0; height: 150px;
  background: repeating-linear-gradient(180deg, #1e1a16 0 6px, transparent 6px 14px);
  opacity: .85;
}
.sleeve-tag {
  position: absolute; top: 14px; left: 14px; font-family: var(--display); font-weight: 900;
  color: var(--paper); letter-spacing: .3em; font-size: 13px; border: 1.5px solid var(--paper); padding: 2px 8px;
}
.sleeve-cat {
  position: absolute; top: 14px; right: 14px; font-family: var(--display); color: var(--paper);
  font-size: 13px; letter-spacing: .15em;
}
.hero-vinyl {
  position: absolute; right: 0; top: 40px; width: 360px; height: 360px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 30%, rgba(255,255,255,.04) 30.5% 31%, transparent 31.5%),
    repeating-radial-gradient(circle, #141210 0 2px, #1f1c19 2px 4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  animation: spin 6s linear infinite; animation-play-state: paused;
  display: grid; place-items: center; z-index: 1;
}
.hero-vinyl.playing, .player-disc.playing { animation-play-state: running; }
.vinyl-label {
  width: 34%; height: 34%; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; position: relative;
  box-shadow: inset 0 0 0 3px var(--gold);
}
.vinyl-label::after {
  content: ""; position: absolute; width: 10%; height: 10%; border-radius: 50%; background: var(--paper);
}
.vinyl-label span {
  font-family: var(--serif); font-weight: 900; color: var(--gold-2); font-size: 22px;
  letter-spacing: .3em; transform: translateY(-26px);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 走馬燈 */
.marquee { background: var(--ink); color: var(--gold-2); overflow: hidden; white-space: nowrap; border-block: 3px double var(--gold); }
.marquee-inner {
  display: inline-block; padding: 10px 0; font-family: var(--serif); font-weight: 700; letter-spacing: .4em;
  animation: marquee 30s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 區塊 */
.section { max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
.section-dark { max-width: none; background: var(--night); color: var(--paper); }
.section-dark > * { max-width: 1132px; margin-left: auto; margin-right: auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 {
  margin: 0; font-family: var(--serif); font-weight: 900; font-size: 40px; letter-spacing: .12em;
  display: flex; align-items: baseline; gap: 14px;
}
.section-head h2 em { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--red); letter-spacing: .05em; }
.section-dark .section-head h2 em { color: var(--gold); }
.num {
  font-family: var(--display); font-size: 18px; font-weight: 900; color: var(--paper); background: var(--red);
  padding: 4px 8px; letter-spacing: 0;
}
.search {
  border: 1.5px solid var(--ink); background: var(--paper); padding: 9px 12px; min-width: 260px; font: inherit;
}

/* 曲目表 */
.tracklist { border-top: 3px solid var(--ink); }
.trow {
  display: grid; grid-template-columns: 52px 1.6fr 1fr 1.2fr 70px 64px; gap: 12px; align-items: center;
  padding: 12px 8px; border-bottom: 1px solid var(--line);
}
.trow-head { font-size: 12px; letter-spacing: .25em; color: var(--ink-2); font-weight: 700; border-bottom: 1.5px solid var(--ink); }
.trow:not(.trow-head):hover { background: rgba(179, 32, 42, .06); }
.trow.active { background: rgba(179, 32, 42, .1); }
.trow .no { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--red); }
.trow .t { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.trow .lnk { background: none; border: 0; padding: 0; text-align: left; text-decoration: underline; text-decoration-color: rgba(30,26,22,.3); text-underline-offset: 4px; }
.trow .lnk:hover { color: var(--red); text-decoration-color: var(--red); }
.trow .dur { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.btn-play {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; font-size: 13px;
}
.btn-play:hover, .trow.active .btn-play { background: var(--red); border-color: var(--red); color: var(--paper); }
.empty { padding: 36px 8px; color: var(--ink-2); font-family: var(--serif); }
.section-dark .empty { color: #b7aa92; }

/* 唱片 */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px; }
.album {
  background: none; border: 0; padding: 0; text-align: left; color: inherit;
}
.album-cover {
  aspect-ratio: 1; position: relative; background: #2a241e; box-shadow: 6px 6px 0 var(--gold);
  overflow: hidden; transition: transform .2s;
}
.album:hover .album-cover { transform: translate(-3px, -3px); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font-family: var(--serif); font-weight: 900; font-size: 26px; color: var(--paper);
  background: linear-gradient(150deg, var(--teal), #13302e);
}
.album-cat { position: absolute; top: 8px; left: 8px; background: var(--red); color: var(--paper); font-size: 11px; letter-spacing: .15em; padding: 2px 6px; }
.album-name { font-family: var(--serif); font-weight: 900; font-size: 18px; margin-top: 16px; }
.album-sub { color: #b7aa92; font-size: 13px; margin-top: 4px; letter-spacing: .05em; }

/* 歌手 */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px; }
.artist { background: none; border: 0; padding: 0; text-align: center; }
.artist-photo {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--red);
  background: var(--paper-2); display: grid; place-items: center;
}
.artist-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) contrast(1.05); }
.artist-initial { font-family: var(--serif); font-weight: 900; font-size: 56px; color: var(--red); }
.artist-name { font-family: var(--serif); font-weight: 900; font-size: 19px; margin-top: 16px; }
.artist-en { font-family: var(--display); font-style: italic; color: var(--ink-2); font-size: 14px; }
.artist:hover .artist-name { color: var(--red); }

/* 頁腳 */
.footer {
  border-top: 3px double var(--ink); padding: 28px 24px; text-align: center; color: var(--ink-2); font-size: 13px;
}
.footer-brand { font-family: var(--serif); font-weight: 900; font-size: 22px; color: var(--ink); letter-spacing: .15em; }
.footer-brand span { font-family: var(--display); font-style: italic; color: var(--red); font-size: 15px; letter-spacing: .05em; }
.footer-note { margin: 8px 0 4px; }

/* 播放器 */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto minmax(220px, 1.3fr); gap: 16px; align-items: center;
  padding: 12px 20px; background: var(--night); color: var(--paper); border-top: 3px solid var(--red);
}
.player[hidden] { display: none; }
.player-disc {
  width: 60px; height: 60px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #141210 0 2px, #26221e 2px 4px);
  display: grid; place-items: center; animation: spin 4s linear infinite; animation-play-state: paused;
}
.vinyl-label.small { width: 40%; height: 40%; box-shadow: inset 0 0 0 2px var(--gold); }
.player-title { font-family: var(--serif); font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 13px; color: #b7aa92; }
.player-lyric { font-family: var(--serif); color: var(--gold-2); font-size: 14px; min-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-ctrl { display: flex; gap: 8px; }
.player-ctrl button { background: none; border: 1px solid #4a4036; color: var(--paper); width: 38px; height: 38px; border-radius: 50%; }
.player-ctrl .p-play { background: var(--red); border-color: var(--red); width: 46px; height: 46px; }
.player-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; font-variant-numeric: tabular-nums; color: #b7aa92; }
.player-bar input { flex: 1; accent-color: var(--red); }

/* 彈窗 */
.dlg {
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink); padding: 28px; width: min(760px, 94vw);
  box-shadow: 10px 10px 0 var(--ink); max-height: 90vh;
}
.dlg-narrow { width: min(420px, 94vw); }
.dlg::backdrop { background: rgba(22, 19, 15, .6); }
.dlg-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 30px; line-height: 1; }
.dlg-title { font-family: var(--serif); font-weight: 900; font-size: 26px; margin: 0 0 18px; letter-spacing: .1em; }
.detail-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.detail-head .album-cover { box-shadow: 6px 6px 0 var(--red); }
.detail-head .artist-photo { width: 180px; height: 180px; }
.detail-kicker { font-size: 12px; letter-spacing: .3em; color: var(--red); font-weight: 700; }
.detail-title { font-family: var(--serif); font-weight: 900; font-size: 32px; margin: 6px 0; }
.detail-meta { color: var(--ink-2); font-size: 14px; }
.detail-text { font-family: var(--serif); line-height: 1.9; white-space: pre-wrap; margin-top: 14px; }
.detail-list { margin-top: 22px; border-top: 2px solid var(--ink); }
.detail-list .trow { grid-template-columns: 40px 1fr 64px 52px; }

/* 表單 */
.form { display: grid; gap: 12px; }
.form-grid { grid-template-columns: 1fr; }
.form fieldset { border: 1.5px solid var(--ink); padding: 12px 14px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.form legend { font-family: var(--serif); font-weight: 900; padding: 0 6px; letter-spacing: .15em; color: var(--red); }
.form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.form .span2 { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit; font-size: 15px; padding: 8px 10px; border: 1.5px solid var(--ink-2); background: #fbf6ea; width: 100%;
}
.form textarea { resize: vertical; }
.form-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-red { background: var(--red); color: var(--paper); border: 0; padding: 10px 22px; letter-spacing: .2em; font-weight: 700; }
.btn-red:hover { background: var(--red-2); }
.btn-red:disabled { opacity: .5; }
.btn-ghost { background: none; border: 1.5px solid var(--ink); padding: 9px 18px; }
.form-msg { font-size: 14px; color: var(--teal); min-height: 1em; }
.form-msg.err { color: var(--red); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-art { height: 340px; }
  .sleeve { width: 280px; height: 280px; }
  .sleeve-sun { width: 160px; height: 160px; left: 60px; top: 50px; }
  .hero-vinyl { width: 270px; height: 270px; top: 40px; }
  .trow { grid-template-columns: 34px 1fr 52px; }
  .trow .c-artist, .trow .c-album, .trow .dur { display: none; }
  .trow-head .c-artist, .trow-head .c-album { display: none; }
  .player { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .player-disc { width: 50px; height: 50px; }
  .player-bar { grid-column: 1 / -1; }
  .detail-head { grid-template-columns: 1fr; }
  .form fieldset { grid-template-columns: 1fr; }
  .topstrip-en { display: none; }
  .album-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .album-name { font-size: 16px; }
  .cover-fallback { font-size: 18px; }
  .artist-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .artist-photo { width: 120px; height: 120px; }
  .section-head h2 { font-size: 32px; }
  .search { min-width: 0; width: 100%; }
}
