:root {
  --bg: #070b14;
  --bg-raise: rgba(16, 14, 28, 0.72);
  --cream: #f4efe6;
  --cream-dim: #d8cfc2;
  --gold: #e4c48a;
  --gold-strong: #f3ddb0;
  --line: rgba(228, 196, 138, 0.28);
  --violet: #6e5a9e;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;
  --wrap: 1120px;
  --nav: 3.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--bg);
  color: var(--cream);
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.75;
  background:
    radial-gradient(ellipse at 8% -10%, rgba(92, 64, 158, 0.28), transparent 42%),
    radial-gradient(ellipse at 100% 8%, rgba(228, 196, 138, 0.08), transparent 32%),
    var(--bg);
  color: var(--cream);
}

html.lightbox-open,
html.lightbox-open body { overflow: hidden; }

img { max-width: 100%; height: auto; border: 0; }

h1, h2, h3, p, figure, blockquote, ol { margin: 0; }

a { color: inherit; }

button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: rgba(228, 196, 138, 0.35);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 90;
  background: var(--gold);
  color: #1a140c;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus { top: 0.7rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  min-height: var(--nav);
  padding: 0.65rem 1rem;
  background: rgba(7, 11, 20, 0.8);
  border-bottom: 1px solid rgba(228, 196, 138, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  font-family: var(--serif);
  text-decoration: none;
  letter-spacing: 0.14em;
  font-size: 1rem;
  color: var(--cream);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 0.75rem;
}

.topbar nav a {
  text-decoration: none;
  color: var(--cream-dim);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.topbar nav a:hover { color: var(--gold-strong); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav));
  min-height: calc(100svh - var(--nav));
  overflow: hidden;
}

.hero-media,
.atmosphere {
  position: absolute;
  inset: 0;
}

.hero-media { z-index: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.62) brightness(0.72) contrast(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 80%, rgba(228, 196, 138, 0.16), transparent 42%),
    radial-gradient(ellipse at 82% 12%, rgba(98, 70, 168, 0.38), transparent 46%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.28) 0%, rgba(12, 10, 28, 0.12) 36%, rgba(7, 11, 20, 0.2) 58%, rgba(7, 11, 20, 0.55) 100%);
}

.atmosphere {
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.7;
  animation: float 18s ease-in-out infinite;
}

.orb:nth-child(1) { width: 7px; height: 7px; left: 12%; top: 18%; background: #f0d7a2; }
.orb:nth-child(2) { width: 4px; height: 4px; left: 28%; top: 32%; background: #c9b6ef; animation-duration: 22s; }
.orb:nth-child(3) { width: 10px; height: 10px; left: 70%; top: 16%; background: rgba(228, 196, 138, 0.85); animation-duration: 16s; }
.orb:nth-child(4) { width: 5px; height: 5px; left: 82%; top: 40%; background: #efe4ff; animation-duration: 26s; }
.orb:nth-child(5) { width: 8px; height: 8px; left: 48%; top: 12%; background: rgba(180, 150, 230, 0.9); animation-duration: 20s; }
.orb:nth-child(6) { width: 3px; height: 3px; left: 18%; top: 48%; background: #f3ddb0; animation-duration: 15s; }

.glow-rain {
  position: absolute;
  inset: -12% 0;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 22px,
    rgba(240, 215, 162, 0.045) 22px 23px
  );
  animation: rain 20s linear infinite;
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 76%);
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -14px, 0); }
}

@keyframes rain {
  from { transform: translate3d(0, -4%, 0); }
  to { transform: translate3d(0, 4%, 0); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  padding: 14vh 6vw 7vh;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, 0.72) 28%, rgba(7, 11, 20, 0.94) 58%, #070b14 100%);
}

.hero-copy-inner { max-width: 40rem; }

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 0.78rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.05rem, 6.4vw, 5.35rem);
  line-height: 1.18;
  letter-spacing: 0.03em;
  margin: 0;
}

.lede {
  margin-top: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.epigraph {
  margin-top: 1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: var(--gold-strong);
}

.cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.4rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid rgba(228, 196, 138, 0.7);
  border-radius: 999px;
  color: var(--gold-strong);
  text-decoration: none;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  background: rgba(7, 11, 20, 0.35);
}

.cta:hover { background: rgba(228, 196, 138, 0.12); }

.section {
  padding: clamp(3.2rem, 6vw, 5.6rem) 1rem;
  scroll-margin-top: 4.4rem;
}

.section + .section { border-top: 1px solid rgba(228, 196, 138, 0.1); }

.wrap {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
}

.section-intro {
  max-width: 40rem;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.watch { text-align: center; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.section-lead,
.now-title {
  margin-top: 0.7rem;
  color: var(--cream-dim);
}

.watch h2 {
  max-width: 18em;
  margin-inline: auto;
}

.player-wrap {
  position: relative;
  margin-top: 1.35rem;
}

.player-wrap::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -16px;
  height: 28px;
  background: radial-gradient(ellipse, rgba(228, 196, 138, 0.28), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070f;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(228, 196, 138, 0.2);
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--gold-strong);
}

.catalog {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.catalog-status {
  margin-top: 1rem;
  text-align: center;
  color: var(--cream-dim);
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  color: inherit;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #161222;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.15rem;
  min-width: 0;
}

.card-kicker {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.card[aria-pressed="true"] {
  border-color: rgba(228, 196, 138, 0.8);
  box-shadow: 0 0 0 1px rgba(228, 196, 138, 0.28), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.card[aria-pressed="true"] .card-kicker::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(228, 196, 138, 0.8);
  vertical-align: 1px;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.card time,
.card-desc {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.card:hover { border-color: rgba(228, 196, 138, 0.6); }

.still-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.still {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 14px;
  border: 1px solid rgba(228, 196, 138, 0.22);
  background: #120e1c;
}

.still picture,
.still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.still img {
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.still::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.still:hover,
.still:focus-visible {
  border-color: rgba(228, 196, 138, 0.8);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.still:hover img,
.still:focus-visible img { transform: scale(1.035); }

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 40rem;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  column-gap: 1.1rem;
  padding-bottom: 1.7rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(4.25rem + 1.1rem);
  top: 0.85rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(110, 90, 158, 0.15));
}

.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }

.timeline li::after {
  content: "";
  position: absolute;
  left: calc(4.25rem + 1.1rem - 4px);
  top: 0.42rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(228, 196, 138, 0.12);
}

.year {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1rem;
  padding-top: 0.1rem;
}

.timeline p {
  margin: 0;
  padding-left: 0.95rem;
  color: var(--cream);
  line-height: 1.85;
}

.lyrics {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.3vw, 1.28rem);
  line-height: 2;
}

.lyrics p { margin: 0 0 1.55rem; }
.lyrics p:last-child { margin-bottom: 0; }

.interlude {
  letter-spacing: 0.42em;
  color: var(--gold);
  font-size: 0.86rem;
  font-family: var(--sans);
}

.interlude::before,
.interlude::after {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  margin: 0 0.7rem;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.75;
}

@media (max-width: 700px) {
  .lyrics-wrap.is-collapsed {
    max-height: 16.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 58%, transparent);
    mask-image: linear-gradient(#000 58%, transparent);
  }
}

.lyrics-toggle {
  display: block;
  margin: 1rem auto 0;
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-strong);
  letter-spacing: 0.14em;
  cursor: pointer;
}

.about-grid {
  display: grid;
  gap: 1.6rem;
  max-width: 68rem;
  margin-inline: auto;
}

.about-copy {
  display: grid;
  gap: 1.4rem;
  min-width: 0;
}

.about-photo {
  margin: 0;
  min-width: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(228, 196, 138, 0.22);
}

.about-facts p {
  margin: 0 0 1rem;
  line-height: 1.9;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.3rem;
}

.about-links a,
.footer a {
  color: var(--gold-strong);
  text-underline-offset: 0.25em;
}

.quotes {
  display: grid;
  gap: 1.1rem;
  margin: 0;
}

.quotes blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(228, 196, 138, 0.75);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.4rem;
  padding: 1.4rem 1.1rem 1.8rem;
  border-top: 1px solid rgba(228, 196, 138, 0.18);
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 3.6rem 0.4rem 1.2rem;
  background: rgba(5, 7, 14, 0.94);
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(228, 196, 138, 0.5);
  background: rgba(7, 11, 20, 0.62);
  color: var(--gold-strong);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.lightbox-nav.prev { grid-column: 1; grid-row: 2; justify-self: center; }
.lightbox-nav.next { grid-column: 3; grid-row: 2; justify-self: center; }

.lightbox-stage {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  touch-action: none;
  user-select: none;
}

.lightbox-stage picture {
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.lightbox-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 8.5rem);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(228, 196, 138, 0.2);
}

.lightbox figcaption {
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-family: var(--serif);
}

@media (min-width: 800px) {
  .catalog { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
  .catalog .card:only-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
  .catalog .card:only-child .card-thumb {
    flex: 0 0 42%;
    align-self: center;
  }
  .catalog .card:only-child .card-body { justify-content: center; padding: 1.2rem 1.4rem; }
}

@media (min-width: 960px) {
  .still-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
  }
  .about-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 2.5rem;
  }
  .about-photo { order: 2; }
  .about-copy { order: 1; }
}

@media (max-width: 700px) {
  .hero-copy { text-align: center; padding-inline: 1.15rem; }
  .hero-copy-inner { margin-inline: auto; }
  .topbar { padding-inline: 0.75rem; }
  .topbar nav { gap: 0.15rem 0.6rem; }
  .topbar nav a { letter-spacing: 0.06em; font-size: 0.76rem; }
  .eyebrow { letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .still:hover img,
  .still:focus-visible img { transform: none; }
}
