:root {
  --ink: #080b11;
  --panel: #0d1119;
  --paper: #f1eee7;
  --muted: #aeb4bf;
  --line: rgba(255, 255, 255, .15);
  --moon: #e6d6bc;
  --amber: #cf955a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: #f5f2ec; font-family: "Noto Sans TC", "Source Han Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; color: #000; background: #fff; }
.skip-link:focus { top: 1rem; }

.lyrics-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: .7rem clamp(1.2rem, 4vw, 4rem); background: rgba(8, 11, 17, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.lyrics-brand { display: flex; align-items: center; gap: .75rem; font: 700 .76rem/1 Inter, Arial, sans-serif; letter-spacing: .18em; }
.lyrics-brand img { width: 38px; height: 38px; object-fit: contain; }
.lyrics-header nav { display: flex; gap: 1.4rem; font-size: .82rem; color: #c7cbd3; }
.lyrics-header nav a:hover { color: #fff; }

.eyebrow { color: var(--amber); font: 700 .72rem/1.4 Inter, Arial, sans-serif; letter-spacing: .2em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.15rem; border: 1px solid var(--line); font-size: .88rem; }
.button.primary { color: #0c0e12; background: var(--paper); border-color: var(--paper); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.lyrics-hub-hero { min-height: 66vh; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(7rem, 14vw, 12rem) clamp(1.2rem, 7vw, 7rem) clamp(4rem, 8vw, 7rem); background: linear-gradient(90deg, rgba(5, 7, 11, .96), rgba(5, 7, 11, .36)), url('/assets/brand-hero.webp') center / cover no-repeat; }
.lyrics-hub-hero h1 { max-width: 950px; margin: .8rem 0 1.5rem; font: 400 clamp(3rem, 7vw, 7.2rem)/1.06 Georgia, "Noto Serif TC", serif; letter-spacing: -.035em; }
.lyrics-hub-hero > p:last-child { max-width: 700px; margin: 0; color: #d0d3d9; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.album-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 6vw, 6rem); background: var(--line); }
.album-card { position: relative; min-height: 620px; overflow: hidden; background: #090c12; }
.album-card img { width: 100%; height: 100%; object-fit: cover; opacity: .68; transition: transform .6s ease, opacity .4s ease; }
.album-card:hover img { transform: scale(1.025); opacity: .82; }
.album-card:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 7, 11, .96), transparent 66%); }
.album-card div { position: absolute; z-index: 2; inset: auto clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem); }
.album-card p { color: var(--amber); font: 700 .72rem/1.4 Inter, Arial, sans-serif; letter-spacing: .18em; }
.album-card h2 { margin: .35rem 0 .8rem; font: 400 clamp(2.8rem, 5vw, 5.4rem)/1 Georgia, "Noto Serif TC", serif; }
.album-card span { color: #d3d6dc; }
.lyrics-note { display: flex; justify-content: space-between; gap: 2rem; padding: 2.5rem clamp(1.2rem, 6vw, 6rem); border-top: 1px solid var(--line); color: #9da4af; }
.lyrics-note p { margin: 0; }
.lyrics-note a { color: var(--moon); }

.album-hero { display: grid; grid-template-columns: minmax(300px, 610px) 1fr; gap: clamp(2.5rem, 7vw, 8rem); align-items: center; min-height: calc(100svh - 72px); padding: clamp(3rem, 7vw, 7rem); background: radial-gradient(circle at 20% 35%, rgba(105, 135, 168, .2), transparent 34%), #090c12; }
.week-lyrics .album-hero { background: radial-gradient(circle at 20% 35%, rgba(80, 116, 159, .23), transparent 34%), #090c12; }
.album-hero > img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.album-hero h1 { margin: .7rem 0 1.4rem; font: 400 clamp(3.6rem, 7vw, 7.6rem)/1 Georgia, "Noto Serif TC", serif; }
.album-hero div > p:not(.eyebrow) { max-width: 650px; color: #c4c9d1; font-size: clamp(1rem, 1.4vw, 1.2rem); }

.album-layout { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 900px); gap: clamp(2rem, 7vw, 8rem); align-items: start; justify-content: center; padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 6vw, 6rem); }
.track-toc { position: sticky; top: 104px; border-top: 1px solid var(--line); }
.track-toc > p { margin: 0; padding: 1rem 0; color: var(--amber); font: 700 .7rem/1.3 Inter, Arial, sans-serif; letter-spacing: .18em; border-bottom: 1px solid var(--line); }
.track-toc a { display: grid; grid-template-columns: 36px 1fr; gap: .7rem; padding: .7rem 0; color: #aeb4be; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.track-toc a:hover { color: #fff; }
.track-toc b { color: var(--amber); font: 400 .68rem/1.8 monospace; }
.lyrics-intro { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.lyrics-intro p { margin: 0; color: var(--amber); font: 700 .7rem/1.4 Inter, Arial, sans-serif; letter-spacing: .18em; }
.lyrics-intro h2 { margin: .5rem 0 .7rem; font: 400 clamp(2.8rem, 5vw, 5.4rem)/1.08 Georgia, "Noto Serif TC", serif; }
.lyrics-intro span { color: #8f97a3; font-size: .88rem; }

.lyric-song { scroll-margin-top: 95px; border-bottom: 1px solid var(--line); }
.lyric-song:first-of-type { border-top: 1px solid var(--line); }
.lyric-song summary { display: grid; grid-template-columns: 92px 44px minmax(0, 1fr) 28px; gap: 1rem; align-items: center; padding: 1rem 0; cursor: pointer; list-style: none; }
.lyric-song summary::-webkit-details-marker { display: none; }
.lyric-song summary img { width: 92px; aspect-ratio: 1; object-fit: cover; }
.song-index { color: var(--amber); font: 400 .72rem/1 monospace; }
.song-title { display: flex; flex-direction: column; gap: .25rem; }
.song-title b { font: 400 clamp(1.25rem, 2.4vw, 2rem)/1.2 "Noto Serif TC", Georgia, serif; }
.song-title small { color: #89919d; font-size: .78rem; }
.song-toggle { color: var(--moon); font-size: 1.3rem; transition: transform .2s ease; }
.lyric-song[open] .song-toggle { transform: rotate(45deg); }
.song-body { padding: 1.5rem 0 4rem 152px; }
.song-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 2.5rem; }
.song-actions a { padding-bottom: .15rem; color: var(--moon); border-bottom: 1px solid rgba(230, 214, 188, .55); font-size: .8rem; }
.song-lyrics { font-family: "Noto Serif TC", "Source Han Serif TC", "Songti TC", PMingLiU, Georgia, serif; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.95; letter-spacing: .035em; }
.song-lyrics p { margin: 0 0 2.2rem; }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1.2rem, 4vw, 4rem); border-top: 1px solid var(--line); color: #828b98; font-size: .7rem; letter-spacing: .12em; }
footer span { margin-left: .5rem; }

@media (max-width: 900px) {
  .lyrics-header nav a:not(:first-child):not(:last-child) { display: none; }
  .album-cards, .album-hero { grid-template-columns: 1fr; }
  .album-card { min-height: 75vw; }
  .album-hero { min-height: auto; }
  .album-hero > img { max-width: 620px; }
  .album-layout { grid-template-columns: 1fr; }
  .track-toc { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .track-toc > p { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .lyrics-header { min-height: 64px; }
  .lyrics-brand span { display: none; }
  .lyrics-header nav { gap: 1rem; }
  .lyrics-hub-hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .album-cards { grid-template-columns: 1fr; }
  .album-card { min-height: 112vw; }
  .lyrics-note, footer { flex-direction: column; }
  .album-hero { padding-top: 2rem; }
  .album-hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .track-toc { grid-template-columns: 1fr; }
  .track-toc > p { grid-column: auto; }
  .lyric-song summary { grid-template-columns: 66px 34px minmax(0, 1fr) 22px; gap: .7rem; }
  .lyric-song summary img { width: 66px; }
  .song-title small { display: none; }
  .song-body { padding-left: 0; }
  .song-lyrics { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .album-card img, .song-toggle { transition: none; }
}
/* Album archive extensions */
.section-label { margin: 0; color: var(--amber); font: 700 .69rem/1.4 ui-monospace, monospace; letter-spacing: .18em; }
.night-route { padding: clamp(5rem, 9vw, 8rem) max(1rem, calc((100vw - 1360px) / 2)); border-block: 1px solid var(--line); background: radial-gradient(circle at 12% 0, rgba(104, 141, 177, .2), transparent 35%), #090d14; }
.night-route header { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem 6vw; align-items: end; margin-bottom: 2.5rem; }
.night-route header h2 { max-width: 780px; margin: .5rem 0 0; font: 400 clamp(2.6rem, 5vw, 5.2rem)/1.05 Georgia, "Noto Serif TC", serif; }
.night-route header > p { max-width: 560px; margin: 0; color: #aeb7c4; line-height: 1.8; }
.city-map { position: relative; min-height: 720px; overflow: hidden; border: 1px solid rgba(202, 220, 237, .18); background: linear-gradient(180deg, rgba(4, 9, 16, .18), rgba(4, 9, 16, .7)), url("/assets/moon-hero.webp") center / cover; box-shadow: inset 0 0 100px rgba(2, 6, 12, .8), 0 28px 80px rgba(0, 0, 0, .28); }
.city-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 54% 11%, rgba(226, 237, 247, .14), transparent 24%), linear-gradient(90deg, rgba(2, 5, 10, .28), transparent 24%, transparent 76%, rgba(2, 5, 10, .28)); }
.route-line { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-line path { fill: none; vector-effect: non-scaling-stroke; }
.route-shadow { stroke: rgba(1, 5, 10, .9); stroke-width: 11; }
.route-glow { stroke: rgba(223, 235, 245, .86); stroke-width: 2.4; stroke-dasharray: 4 9; filter: drop-shadow(0 0 7px rgba(206, 229, 250, .95)); }
.map-water { position: absolute; z-index: 1; left: 46%; top: 56%; color: rgba(205, 224, 241, .42); font: 500 .63rem/1 ui-monospace, monospace; letter-spacing: .2em; transform: rotate(-7deg); }
.map-stop { position: absolute; z-index: 3; left: var(--x); top: var(--y); display: flex; gap: .7rem; align-items: center; color: #f4f6f7; transform: translate(-50%, -50%); transition: filter .25s ease, transform .25s ease; }
.map-stop img { width: clamp(58px, 5.4vw, 80px); aspect-ratio: 1; object-fit: cover; border: 2px solid rgba(234, 242, 248, .92); border-radius: 50%; box-shadow: 0 0 0 5px rgba(5, 12, 20, .62), 0 0 24px rgba(200, 225, 247, .5); }
.map-stop > span { display: grid; gap: .08rem; min-width: max-content; padding: .38rem .52rem; border-radius: 4px; background: rgba(4, 9, 16, .7); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); backdrop-filter: blur(5px); }
.map-stop b { color: #9ebbd4; font: 500 .66rem/1.2 ui-monospace, monospace; letter-spacing: .14em; }
.map-stop strong { font: 500 .83rem/1.3 Inter, "Noto Sans TC", sans-serif; }
.map-stop small { color: #b7c0cb; font-size: .68rem; }
.map-stop:hover, .map-stop:focus-visible { z-index: 5; filter: brightness(1.2); transform: translate(-50%, -50%) scale(1.08); }
.stop-06, .stop-07 { flex-direction: row-reverse; }
.route-caption { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 0; color: #778493; font: 600 .63rem/1.5 ui-monospace, monospace; letter-spacing: .12em; }
.route-caption span:nth-child(2) { color: #aeb9c4; }
.album-credits { width: min(1280px, calc(100% - 2rem)); margin: auto; padding: clamp(5rem, 9vw, 8rem) 0; display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); border-top: 1px solid var(--line); }
.album-credits h2 { margin: .6rem 0; font: 400 clamp(2.5rem, 5vw, 5rem)/1.05 Georgia, "Noto Serif TC", serif; }
.album-credits dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.album-credits dl div { padding: 1rem; background: #090c12; }
.album-credits dt { color: #778292; font-size: .7rem; }
.album-credits dd { margin: .35rem 0 0; }
.album-credits .credit-note { grid-column: 2; color: var(--muted); margin: 0; }
.song-actions a[href*="/lyrics/"] { color: #fff; border-bottom-color: #fff; }

@media (max-width: 900px) {
  .night-route header, .album-credits { grid-template-columns: 1fr; }
  .city-map { min-height: auto; padding: 1.2rem 1rem; background-position: center top; }
  .city-map::before { content: ""; position: absolute; z-index: 1; left: 46px; top: 54px; bottom: 54px; width: 2px; background: repeating-linear-gradient(to bottom, rgba(222, 236, 248, .85) 0 5px, transparent 5px 12px); box-shadow: 0 0 10px rgba(205, 228, 248, .7); }
  .route-line, .map-water { display: none; }
  .map-stop, .stop-06, .stop-07 { position: relative; left: auto !important; top: auto !important; display: grid; grid-template-columns: 72px 1fr; gap: 1rem; min-height: 96px; padding: .45rem 0; transform: none; flex-direction: initial; }
  .map-stop:nth-of-type(even) { margin-left: 8%; }
  .map-stop img { width: 68px; }
  .map-stop > span { min-width: 0; width: fit-content; padding: .55rem .7rem; }
  .map-stop:hover, .map-stop:focus-visible { transform: translateX(6px); }
  .map-stop strong { font-size: .92rem; }
  .map-stop small { font-size: .75rem; }
  .route-caption { display: none; }
  .album-credits .credit-note { grid-column: auto; }
}

@media (max-width: 700px) {
  .album-credits dl { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .album-credits dl { grid-template-columns: 1fr; }
}

/* English guide for album lyric indexes */
.album-hero div > p.album-hero-en{margin:.8rem 0 0;color:#d5dfec;font-size:clamp(.92rem,1.1vw,1.04rem);line-height:1.65}.lyrics-intro .lyrics-guide-en{margin:.8rem 0 0;color:#b8c4d5;font:400 .9rem/1.65 Inter,Arial,sans-serif;letter-spacing:normal}.night-route .route-en{margin:.7rem 0 0;color:#c1d1e4;font-size:.91rem;line-height:1.65}.album-credits .credits-en{max-width:520px;color:#bbc5d3;font-size:.9rem;line-height:1.65}
