:root {
  --bg: #0a0d12;
  --panel: #14181f;
  --line: #2a2f38;
  --body: #b8bcc4;
  --title: #d8dce2;
  --warm: #d4a878;
  --warm-hover: #f0c890;
  --quiet: #5a606a;
  --hero-image: none;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Noto Serif TC", "Songti TC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 2;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px);
  background-size: 18px 18px, 29px 29px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

.section {
  border-bottom: 1px solid var(--line);
}

.section__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-kicker {
  margin: 0 0 28px;
  color: var(--title);
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  letter-spacing: 0;
}

.section-kicker span,
.hero__subtitle span,
.about__copy h2 span,
.follow__inner h2 span,
.follow-copy span,
.support-note span,
.support-action span,
.subscribe-form button span,
.archive-toggle span {
  display: block;
}

.section-kicker span:first-child,
.about__copy h2 span:first-child,
.follow__inner h2 span:first-child {
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-size: 18px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background-image: var(--hero-image);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::after {
  z-index: -1;
  background: rgba(10, 13, 18, 0.65);
}

body.hero-bg-a {
  --hero-image: url("assets/hero-statue-a.jpg");
}

body.hero-bg-b {
  --hero-image: url("assets/hero-statue-b.jpg");
}

body.hero-bg-c {
  --hero-image: url("assets/hero-statue-c.jpg");
}

body.hero-bg-d {
  --hero-image: url("assets/hero-statue-d.jpg");
}

#cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(212, 168, 120, 0.22) 0%,
    rgba(212, 168, 120, 0.09) 40%,
    transparent 70%
  );
  transition: opacity 2.5s ease;
  opacity: 0;
  z-index: 9999;
}

@media (hover: none) {
  #cursor-glow {
    display: none;
  }
}

.hero__inner {
  display: grid;
  justify-items: center;
  padding: 72px 24px;
  text-align: center;
}

.hero__logo {
  width: 96px;
  height: 96px;
  margin-bottom: 30px;
}

.hero h1 {
  margin: 0;
  color: var(--title);
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 104px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero p {
  margin: 20px 0 34px;
  color: var(--body);
  font-family: var(--font-body);
  font-size: clamp(20px, 3vw, 32px);
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.hero__subtitle span:last-child,
.section-kicker span:last-child,
.about__copy h2 span:last-child,
.copy-block--en,
.follow__inner h2 span:last-child,
.follow-copy span:last-child,
.support-note span:last-child,
.support-action span:last-child,
.subscribe-form button span:last-child {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0;
}

.hairline {
  width: min(260px, 54vw);
  height: 1px;
  background: var(--line);
}

.down-link {
  margin-top: 28px;
  color: var(--warm);
  font-size: 28px;
  transition: color 0.2s ease;
}

.down-link:hover {
  color: var(--warm-hover);
}

.watermark {
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: rgba(216, 220, 226, 0.1);
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
}

.reveal {
  animation: fade-in 1.1s ease 0.3s both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.featured-card__media {
  display: grid;
  gap: 18px;
}

.featured-card__media img,
.about__image img,
.episode-card img {
  border-radius: 4px;
}

.featured-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-card__content {
  align-self: center;
}

.episode-label,
.episode-card span {
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-card h2 {
  margin: 10px 0 8px;
  color: var(--title);
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
}

.featured-card p {
  margin: 0 0 26px;
}

.text-links,
.follow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: center;
}

.text-links a,
.muted-link,
.follow-links a,
.follow-links span {
  color: var(--warm);
  text-underline-offset: 5px;
}

.text-links a:hover,
.follow-links a:hover {
  color: var(--warm-hover);
  text-decoration: underline;
}

.muted-link,
.follow-links span {
  color: var(--quiet);
  cursor: default;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.episode-card {
  display: block;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}

.episode-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  object-fit: cover;
  filter: brightness(0.92);
  transition: filter 0.2s ease;
  border-radius: 8px;
}

.episode-card:hover img {
  filter: brightness(1.1);
}

.episode-card h3 {
  min-height: 2.6em;
  margin: 6px 0 0;
  color: var(--title);
  font-family: var(--font-display);
  font-size: 27px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.archive-toggle {
  margin-top: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--warm);
  cursor: pointer;
  line-height: 1.5;
}

.archive-toggle:hover {
  color: var(--warm-hover);
}

.listen-player {
  display: grid;
  grid-template-columns: minmax(250px, 0.35fr) minmax(0, 0.65fr);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.listen-player__list {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.listen-player__mobile-toggle {
  display: none;
}

.listen-player__items {
  display: grid;
}

.listen-player__item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  width: 100%;
  min-height: 74px;
  padding: 16px 20px 16px 18px;
  border: 0;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--body);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.listen-player__item:last-child {
  border-bottom: 0;
}

.listen-player__item:hover {
  color: var(--title);
}

.listen-player__item.is-active {
  border-left-color: var(--warm);
  color: var(--title);
}

.listen-player__item span {
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.listen-player__item strong {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
}

.listen-player__frame {
  display: grid;
  min-width: 0;
  padding: 24px;
  place-items: center;
}

.listen-player__frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}

.listen-audio {
  width: 100%;
  margin-bottom: 16px;
}

.listen-youtube-link {
  display: block;
  color: var(--warm);
  font-size: 14px;
  text-align: center;
  transition: color 0.2s ease;
}

.listen-youtube-link:hover {
  color: var(--warm-hover);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.about__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.82);
}

.about__copy h2,
.follow__inner h2 {
  margin: 0 0 26px;
  color: var(--title);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
}

.about__copy p {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 2;
}

.copy-block {
  margin-bottom: 34px;
}

.copy-block--en {
  color: var(--quiet);
}

.follow__inner {
  max-width: 720px;
  text-align: center;
}

.follow__inner .follow-links {
  justify-content: center;
  margin-bottom: 30px;
}

.follow__inner p {
  margin: 0 0 24px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.support-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}

.support-card h3 {
  margin: 0 0 12px;
  color: var(--title);
  font-size: 24px;
  font-weight: 300;
}

.support-card p,
.support-card strong {
  display: block;
  margin: 0 0 18px;
  font-weight: 300;
}

.support-action {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--warm) !important;
  border-radius: 100px !important;
  color: var(--warm);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-style: normal;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.support-action span {
  display: inline !important;
  font-style: normal !important;
  font-family: inherit;
  letter-spacing: inherit;
}

.support-action__arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.support-action:hover {
  color: var(--bg);
  background: var(--warm);
  border-color: var(--warm);
}

.support-action:hover .support-action__arrow {
  transform: translateX(3px);
}

.wallpaper-section {
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.wallpaper-title {
  margin: 0 0 8px;
  color: var(--title);
  font-size: 24px;
  font-weight: 300;
}

.wallpaper-desc {
  margin: 0 0 20px;
  font-weight: 300;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.wallpaper-item {
  display: block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.wallpaper-item:hover .wallpaper-label {
  opacity: 1;
}

.wallpaper-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.wallpaper-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: rgba(0,0,0,0.6);
  color: var(--warm);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.support-note {
  margin: 28px 0 0;
  color: var(--quiet);
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.subscribe-form input,
.subscribe-form button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--title);
}

.subscribe-form input {
  min-width: 0;
  padding: 0 15px;
}

.subscribe-form input::placeholder {
  color: var(--quiet);
}

.subscribe-form button {
  padding: 0 22px;
  color: var(--warm);
  cursor: pointer;
  line-height: 1.25;
  transition: background 0.2s ease, color 0.2s ease;
}

.subscribe-form button:hover {
  background: var(--panel);
  color: var(--warm-hover);
}

.form-note {
  min-height: 1.5em;
  margin-top: 14px;
  color: var(--quiet);
  font-size: 13px;
}

.site-footer {
  padding: 34px 20px 44px;
  color: var(--quiet);
  text-align: center;
  font-size: 12px;
}

.site-footer p {
  margin: 0 0 6px;
}

.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;
}

@media (max-width: 1024px) {
  .featured-card,
  .about__grid {
    grid-template-columns: 1fr;
  }

  .episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__image img {
    aspect-ratio: 16 / 10;
  }

  .listen-player {
    grid-template-columns: 1fr;
  }

  .listen-player__list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 767px) {
  .section__inner {
    width: min(100% - 28px, 680px);
    padding: 70px 0;
  }

  .hero__logo {
    width: 78px;
    height: 78px;
  }

  .featured-card {
    padding: 18px;
  }

  .episode-grid,
  .support-grid,
  .subscribe-form {
    grid-template-columns: 1fr;
  }

  .listen-player__mobile-toggle {
    display: grid;
    width: 100%;
    padding: 18px;
    border: 0;
    background: transparent;
    color: var(--title);
    text-align: left;
    cursor: pointer;
    line-height: 1.5;
  }

  .listen-player__mobile-toggle span:last-child {
    color: var(--warm);
    font-family: var(--font-display);
    font-style: italic;
    letter-spacing: 0;
  }

  .listen-player__current {
    color: var(--body);
  }

  .listen-player__items {
    display: none;
    border-top: 1px solid var(--line);
  }

  .listen-player.is-open .listen-player__items {
    display: grid;
  }

  .listen-player__item {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 66px;
    padding: 14px 16px 14px 14px;
  }

  .listen-player__item strong {
    font-size: 22px;
  }

  .listen-player__frame {
    padding: 14px;
  }

  .featured-card h2 {
    font-size: 42px;
  }

  .episode-card h3 {
    min-height: auto;
  }

  .subscribe-form button {
    width: 100%;
  }
}

/* Unified Player */
.player__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.player__cover img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.player__panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1.2rem;
}

.player__now h2 {
  margin: 0.3rem 0 0.2rem;
  color: var(--title);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.player__now p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.85rem;
}

.player__controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.player__btn {
  min-width: 48px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.player__btn--play {
  padding: 0.5rem 1.4rem;
  border-color: var(--body);
  color: var(--title);
  font-size: 1.1rem;
}

.player__btn:hover {
  border-color: var(--title);
  color: var(--title);
}

.player__progress-wrap {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.player__time {
  color: var(--quiet);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.player__progress {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: var(--line);
  cursor: pointer;
}

.player__progress::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  -webkit-appearance: none;
  background: var(--title);
}

.player__progress::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--title);
}

.player__yt-link {
  color: var(--warm);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.player__yt-link:hover {
  color: var(--warm-hover);
}

.player__playlist {
  max-height: 260px;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  list-style: none;
}

.player__track {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  cursor: pointer;
  transition: color 0.2s ease;
}

.player__track:hover,
.player__track.is-active {
  color: var(--title);
}

.player__track span {
  min-width: 3rem;
  color: var(--quiet);
  font-size: 0.72rem;
}

.player__track strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 680px) {
  .player__inner {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 680px);
    padding: 70px 0;
  }

  .player__cover {
    width: min(280px, 100%);
    margin: 0 auto;
  }
}

/* Visual alignment refinements */
.player__panel {
  display: flex;
  max-height: 560px;
  min-width: 0;
  flex-direction: column;
  gap: 1.2rem;
  overflow: hidden;
}

.player__playlist {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.player__controls {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.player__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(216, 220, 226, 0.18);
  border-radius: 50%;
  background: transparent;
  color: rgba(216, 220, 226, 0.7);
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.player__btn--play {
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-color: rgba(216, 220, 226, 0.35);
  color: rgba(216, 220, 226, 0.9);
  font-size: 1rem;
}

.player__btn:hover {
  border-color: rgba(216, 220, 226, 0.6);
  color: var(--title);
  transform: scale(1.05);
}

.about__grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.about__image img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  filter: saturate(0.82) brightness(0.80);
}

@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .about__image img {
    aspect-ratio: 16 / 9 !important;
    width: 100%;
    border-radius: 12px;
  }
}

/* Global border-radius softening */

/* Covers, cards, player, support cards, wallpapers, inputs, and framed lists */
.featured-card,
.episode-card,
.support-card,
.listen-player,
.listen-player__frame,
.player__cover img,
.about__image img,
.wallpaper-item img,
.wallpaper-item,
.subscribe-form input,
.subscribe-form button {
  border-radius: 12px;
}

/* Medium elements */
.listen-player__items,
.player__playlist,
.support-action,
.archive-toggle,
.listen-player__mobile-toggle {
  border-radius: 10px;
}

/* Small elements */
.player__btn {
  border-radius: 50%;
}

.player__progress {
  border-radius: 4px;
}

.player__progress::-webkit-slider-thumb {
  border-radius: 50%;
}

.episode-label {
  border-radius: 6px;
}

/* Image corners */
img {
  border-radius: 8px;
}

/* Keep hero logo circular */
.hero__logo {
  border-radius: 50% !important;
}

@media (max-width: 680px) {
  .player__controls {
    justify-content: center;
  }
  .hero p {
    font-size: 15px;
  }
}

@media (max-width: 680px) {
  .about__grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .about__image {
    width: 100%;
  }

  .about__image img {
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    border-radius: 12px;
  }

  .wallpaper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
