:root {
  color-scheme: dark;
  --night: #0b100f;
  --surface: #101815;
  --ink: #f5eee0;
  --muted: #c1bdaf;
  --gold: #ebc47d;
  --pale-gold: #fae0aa;
  --line: #9c7d493d;
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", "Georgia", serif;
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background:
    radial-gradient(ellipse at 94% 4rem, #583d183d, transparent 43rem),
    linear-gradient(160deg, #101713 0%, #0b100f 33rem, #101510 100%);
}
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; width: 100%; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--pale-gold);
  font-size: 0.9em;
}
:focus-visible { outline: 2px solid var(--pale-gold); outline-offset: 4px; }
:target { scroll-margin-top: 1.5rem; }
.wrap { width: min(calc(100% - 6rem), 77.5rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-250%);
  color: var(--night);
  background: var(--gold);
}
.skip-link:focus { transform: translateY(0); }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
}
.masthead-date, .masthead nav { display: flex; align-items: center; gap: 1.6rem; }
.masthead-date { gap: 0.7rem; }
.masthead time { font: 1rem Georgia, serif; font-variant-numeric: tabular-nums; }
.masthead nav a {
  display: grid;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.masthead nav a:hover { color: var(--pale-gold); }
.spark {
  display: block;
  width: 1.1rem;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #fff4bd, #dfa853 58%, #74491a);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 3.5rem;
  padding-block: 3rem 2.8rem;
}
.hero-copy { min-width: 0; }
h1 {
  width: fit-content;
  font: 800 4.9rem/1.02 var(--serif);
  color: var(--pale-gold);
  background: linear-gradient(158deg, #fff0c1 10%, #e7b967 42%, #ffebba 59%, #c99346 94%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1 span {
  display: block;
  font-size: 0.68em;
  font-weight: 700;
  margin-block-start: 0.17em;
}
.brief {
  border-left: 1px solid #b78f50a6;
  padding-inline-start: 1.1rem;
  margin-block-start: 1.75rem;
}
.brief h2 {
  margin-block-end: 0.55rem;
  color: var(--gold);
  font-size: 0.94rem;
  font-weight: 650;
}
.brief blockquote {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}
.brief p + p { margin-block-start: 0.65rem; }

.hero-scene {
  position: relative;
  padding: 0.55rem;
  border: 1px solid #b38a50a1;
  border-radius: 2px;
  background: #101810;
  box-shadow: 0 0 3.75rem #bc8c3021, 0 1.2rem 2.4rem #0005;
}
.hero-scene::before, .hero-scene::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 2.2rem;
  aspect-ratio: 1;
  pointer-events: none;
}
.hero-scene::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid #ffe6ad;
  border-left: 2px solid #ffe6ad;
  filter: drop-shadow(0 0 4px #f0bf66);
}
.hero-scene::after {
  right: -1px;
  bottom: -1px;
  border-bottom: 2px solid #ffe6ad;
  border-right: 2px solid #ffe6ad;
  filter: drop-shadow(0 0 4px #f0bf66);
}
.hero-scene a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.67;
  background: #10150f;
}
.hero-scene img { height: 100%; object-fit: cover; object-position: 53% center; }
.hero-scene figcaption {
  position: absolute;
  right: 1.15rem;
  bottom: 1rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.85rem;
  color: #fff1d0;
  background: #090c0cde;
  pointer-events: none;
}

.screenings {
  border-top: 1px solid var(--line);
  padding-block: 1.85rem 3.3rem;
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.55rem 1.2rem;
}
.section-heading h2 {
  color: var(--pale-gold);
  font: 700 2.35rem/1.2 var(--serif);
}
.section-heading p, .viewing-note, .timing-note {
  color: var(--muted);
  line-height: 1.65;
}
.viewing-note { margin-block: 0.45rem 1.3rem; font-size: 0.95rem; }
.film-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.6rem;
}
.film {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(140deg, #15201b, var(--surface) 70%);
  box-shadow: 0 0.8rem 2rem #0004;
}
.film:target, .film:focus-within { border-color: #c39958b3; }
.screen { background: #060906; }
.poster {
  display: grid;
  position: relative;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: #141e19;
}
.poster:focus-visible { outline-offset: -3px; }
.poster img {
  position: absolute;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.poster::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, #080b0a08, #080b0a46);
  pointer-events: none;
}
.poster:hover img { transform: scale(1.035); }
.play-icon {
  z-index: 1;
  width: 3.15rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #ffe0a9ac;
  background: #0b100fbb;
  color: var(--pale-gold);
  box-shadow: 0 0 1.3rem #d6a85b4f;
}
.play-icon::before {
  content: "";
  margin-left: 0.2rem;
  width: 0;
  height: 0;
  border-left: 0.68rem solid currentColor;
  border-top: 0.46rem solid transparent;
  border-bottom: 0.46rem solid transparent;
}
.poster:hover .play-icon, .poster:focus-visible .play-icon {
  background: var(--pale-gold);
  color: var(--night);
}
.player-host { position: relative; aspect-ratio: 16 / 9; }
.has-rail .player-host { box-sizing: content-box; padding-bottom: 52px; }
.player-host iframe, .player-host video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050807;
}
.player-host :focus-visible { outline-offset: -3px; }

.film-information { padding: 1.12rem 1.15rem 0.75rem; }
.film-title-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}
.film h3 {
  color: var(--ink);
  font: 700 1.35rem/1.3 var(--serif);
  overflow-wrap: anywhere;
}
.running-time {
  flex: none;
  color: var(--pale-gold);
  padding: 0.2rem 0.45rem;
  border: 1px solid #b88b4d60;
  border-radius: 2px;
  background: #241d12;
  font-size: 0.87rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.model {
  color: var(--gold);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-block-start: 0.35rem;
  overflow-wrap: anywhere;
}
.generation, .film-note {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-block-start: 0.25rem;
}
.generation span, .film-note { color: var(--muted); }
.generation time { color: var(--ink); font-variant-numeric: tabular-nums; margin-inline-start: 0.25rem; }
.film-note { margin-block-start: 0.5rem; }
.film-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.85rem;
  min-height: 2.65rem;
  margin-block-start: 0.85rem;
  border-top: 1px solid var(--line);
}
.sound {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-right: auto;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  line-height: 2.65rem;
}
.sound::before {
  content: "";
  width: 0.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.sound.has-sound { color: var(--pale-gold); }
.sound.has-sound::before { background: var(--gold); box-shadow: 0 0 0.5rem #e5b76c9e; }
.film-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  text-decoration-color: #af8b57a8;
  text-underline-offset: 0.2em;
  white-space: nowrap;
  cursor: pointer;
}
.film-link:hover { color: var(--pale-gold); text-decoration-color: currentColor; }
.close-preview { color: var(--muted); }
.timing-note { margin-block-start: 1.6rem; font-size: 0.9rem; }

@media (max-width: 66rem) {
  .wrap { width: calc(100% - 4rem); }
  .hero { gap: 2rem; }
  h1 { font-size: 4.3rem; }
  .film-grid { gap: 1.1rem; }
}

@media (max-width: 56rem) {
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 1.6rem; }
  h1 { font-size: 3.75rem; }
}

@media (max-width: 41rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { min-height: 3.65rem; }
  .masthead nav { gap: 1rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1.85rem 1.55rem; }
  h1 { font-size: 3.3rem; }
  .brief { margin-block-start: 1.25rem; padding-inline-start: 0.85rem; }
  .brief blockquote { line-height: 1.65; }
  .hero-scene { padding: 0.36rem; }
  .hero-scene figcaption { right: 0.72rem; bottom: 0.72rem; }
  .screenings { padding-block-start: 1.35rem; }
  .section-heading h2 { font-size: 2rem; }
  .viewing-note { margin-block-start: 0.65rem; }
  .film-grid { grid-template-columns: minmax(0, 1fr); }
  .film-bottom { gap: 0 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .poster img { transition: none; }
}
