:root {
  --plum: #8a5767;
  --plum-deep: #6f404f;
  --vermilion: #93251b;
  --gold: #d7a760;
  --teal: #7b5455;
  --paper: #fcf9f4;
  --paper-strong: #ffffff;
  --ink: #1c1c19;
  --mist: #e5e2dd;
  --border: rgba(140, 113, 109, 0.16);
  --shadow: 0 24px 44px rgba(28, 28, 25, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(214, 168, 94, 0.2), transparent 24%),
    linear-gradient(180deg, #fffaf3 0%, #f8f1ea 26%, var(--paper) 64%, #f2ece4 100%);
  padding-bottom: 180px;
}

body.theme-jingshan {
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 218, 217, 0.55), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(111, 64, 79, 0.08), transparent 20%),
    linear-gradient(180deg, #fffdf9 0%, #fcf9f4 42%, #f5f1eb 100%);
}

body.theme-jingshan::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 218, 217, 0.18), transparent 18%),
    radial-gradient(circle at 86% 80%, rgba(244, 182, 200, 0.14), transparent 22%);
  opacity: 0.9;
}

body.theme-jingshan h1,
body.theme-jingshan h2,
body.theme-jingshan h3,
body.theme-jingshan h4,
body.theme-jingshan h5 {
  font-family: "Noto Serif", "Noto Serif SC", serif;
}

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

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 42px 0 30px;
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(147, 37, 27, 0.96), rgba(111, 64, 79, 0.96)),
    var(--plum);
  color: #fff8eb;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 246, 231, 0.15);
  border-radius: 50%;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.hero p,
.page-head p {
  max-width: 760px;
  line-height: 1.7;
  margin: 14px 0 0;
  font-size: 1rem;
}

.hero-meta,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.chip {
  border: 1px solid rgba(255, 248, 235, 0.24);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.92rem;
}

.section {
  padding: 18px 0 42px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card,
.route-card,
.audio-card,
.info-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(28, 28, 25, 0.06);
}

.card-body,
.route-card-body,
.audio-card-body,
.info-card-body {
  padding: 22px;
}

.thumb {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7dcc6;
}

.title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.title-row h2,
.title-row h3 {
  margin: 0;
}

.muted {
  color: rgba(42, 38, 33, 0.72);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: linear-gradient(135deg, var(--vermilion), #b43d30);
  color: #fffaf0;
  border-radius: 999px;
  padding: 12px 18px;
  min-width: 132px;
}

.page-head {
  padding: 28px 0 18px;
}

.page-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  align-self: flex-start;
  background: #25D366;
  color: #fff;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  box-shadow: 0 0 11px rgba(0, 0, 0, 0.25);
  font-weight: 600;
  white-space: nowrap;
}

.whatsapp-cta-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.whatsapp-cta-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  flex: none;
}

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.route-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.audio-featured-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  margin-bottom: 4px;
}

.audio-featured-mark svg {
  width: 14px;
  height: 14px;
  flex: none;
  display: block;
}

.lang-switcher {
  position: relative;
  font-family: inherit;
}

.lang-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 14px 9px 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.lang-switcher-toggle:hover,
.lang-switcher-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,0.9);
  border-color: rgba(140,113,109,0.35);
}

.lang-switcher-icon {
  display: inline-flex;
  align-items: center;
  width: 18px;
  height: 18px;
  color: var(--plum);
}

.lang-switcher-icon svg {
  width: 18px;
  height: 18px;
}

.lang-switcher-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  min-width: 100px;
  box-shadow: 0 12px 32px rgba(28,28,25,0.14);
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.lang-switcher-dropdown.is-open {
  display: flex;
}

.lang-option {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.12s;
  text-align: center;
}

.lang-option:hover {
  background: var(--mist);
}

.lang-switcher-hint {
  font-size: 0.78rem;
  color: var(--muted, #87837a);
  padding: 8px 14px 4px;
  text-align: center;
  font-style: italic;
}

.lang-switcher-single .lang-switcher-toggle {
  opacity: 0.95;
}

.merchant-tagline {
  font-style: italic;
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 6px 0 12px;
}

.lang-option-current {
  background: var(--vermilion);
  color: #fff;
  font-weight: 700;
}

.lang-option-current:hover {
  background: #7f1f17;
}

.route-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.hero-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 34px rgba(28, 28, 25, 0.08);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-figure {
  position: relative;
}

.hero-image {
  position: relative;
}

.map-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--vermilion), #b43d30);
  color: #fffaf0;
  box-shadow: 0 10px 22px rgba(147, 37, 27, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  /* Enlarged transparent hit area — visual circle stays small */
  contain: strict;
}

/* Large transparent touch target that doesn't affect visual size */
.map-hotspot::after {
  content: '';
  position: absolute;
  inset: -9px;   /* 38px total touch diameter */
  border-radius: 50%;
  background: transparent;
  /* Ensure iOS recognises this as a hit area */
  -webkit-tap-highlight-color: transparent;
}


.map-hotspot:hover,
.map-hotspot:focus-visible,
.map-hotspot.is-current {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 28px rgba(147, 37, 27, 0.28);
  outline: none;
}

.map-hotspot.is-current {
  background: linear-gradient(135deg, var(--gold), #ffd871);
  color: var(--plum-deep);
}

.map-hotspot.featured {
  background-image: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #93251b;
  overflow: visible;
  contain: none;
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
}

.map-hotspot.featured .star-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(147, 37, 27, 0.3));
  color: #93251b;
  transition: color 0.18s ease, filter 0.18s ease;
}

.map-hotspot.featured span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  margin-top: 1px;
}

.map-hotspot.featured:hover,
.map-hotspot.featured:focus-visible {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: none;
  color: #b43d30;
}

.map-hotspot.featured.is-current .star-icon {
  color: var(--gold);
  filter: drop-shadow(0 2px 6px rgba(196, 133, 23, 0.5));
}

.map-hotspot.featured.is-current {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: none;
  color: #b43d30;
}

/* featured hotspots: remove ::after touch target entirely — star is big enough to tap */
.map-hotspot.featured::after {
  display: none;
}

/* ---------- Side-label hotspot system (dot on map + number on side mask + leader line) ---------- */
.map-leader-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: rgba(147, 37, 27, 0.55);
  overflow: visible;
}

.map-leader-svg line {
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 3 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke-width 0.18s ease, color 0.18s ease;
}

.map-leader-svg line.is-current {
  color: var(--gold, #d7a760);
  stroke-width: 1.6;
  stroke-dasharray: none;
}

.map-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid #fffaf0;
  border-radius: 50%;
  background: #93251b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.map-dot::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.map-dot:hover,
.map-dot:focus-visible,
.map-dot.is-current {
  transform: translate(-50%, -50%) scale(1.35);
  background: var(--gold, #d7a760);
  outline: none;
}

.map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border: 1.5px solid rgba(255, 250, 240, 0.92);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vermilion, #93251b), #b43d30);
  color: #fffaf0;
  font: 700 0.85rem/1 inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(147, 37, 27, 0.3);
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.map-label::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  pointer-events: auto;
}

.map-label:hover,
.map-label:focus-visible,
.map-label.is-current {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 14px rgba(147, 37, 27, 0.38);
  outline: none;
}

.map-label.is-current {
  background: linear-gradient(135deg, var(--gold, #d7a760), #ffd871);
  color: var(--plum-deep, #3a2616);
}

.map-label.featured {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #5a2a10;
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  overflow: visible;
}
.map-label.featured:hover,
.map-label.featured:focus-visible,
.map-label.featured.is-current {
  background: transparent;
  box-shadow: none;
}

.map-label.featured .star-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  color: #e0b44d;
  filter: drop-shadow(0 2px 3px rgba(196, 133, 23, 0.5))
          drop-shadow(0 0 1px rgba(122, 61, 16, 0.35));
  flex-shrink: 0;
  z-index: 0;
}

.map-label.featured:hover .star-icon,
.map-label.featured:focus-visible .star-icon,
.map-label.featured.is-current .star-icon {
  color: #f5c968;
}

.map-label.featured span {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .map-dot {
    width: 10px;
    height: 10px;
  }
  .map-label {
    min-width: 22px;
    height: 22px;
    font-size: 0.72rem;
    padding: 0 4px;
    border-width: 1.2px;
  }
  .map-label.featured {
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
  }
  .map-label.featured span {
    font-size: 0.66rem;
  }
}

@media (max-width: 480px) {
  .map-dot {
    width: 9px;
    height: 9px;
  }
  .map-label {
    min-width: 20px;
    height: 20px;
    font-size: 0.68rem;
    padding: 0 3px;
    border-width: 1px;
  }
  .map-label::before {
    inset: -5px;
  }
  .map-label.featured {
    min-width: 26px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
  }
  .map-label.featured span {
    font-size: 0.62rem;
  }
}

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

.map-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(123, 84, 85, 0.9);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 10px 20px rgba(123, 84, 85, 0.24);
  backdrop-filter: blur(8px);
}

.audio-list {
  display: grid;
  gap: 18px;
}

.audio-list-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.audio-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  font-family: inherit;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(140,113,109,0.25);
  border-radius: 100px;
  padding: 8px 16px 8px 12px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.audio-filter-label:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(140,113,109,0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.audio-filter-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #93251b;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-featured-mark {
  display: none;
}

.audio-featured-mark svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.audio-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px 2px 4px;
  border-radius: 100px;
  vertical-align: baseline;
  line-height: 1.4;
  flex-shrink: 0;
}

.audio-featured-badge svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.floating-player-description {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  font-style: italic;
}

.merchant-strip {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 14px 32px rgba(28, 28, 25, 0.06);
}

.merchant-strip-head {
  margin-bottom: 16px;
}

.merchant-strip-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.merchant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.merchant-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(28, 28, 25, 0.05);
}

.merchant-card-body {
  padding: 18px;
}

.merchant-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.merchant-card .muted {
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.merchant-card .cta {
  min-width: 0;
  margin-top: 14px;
  padding: 9px 14px;
  font-size: 0.95rem;
}

.audio-index {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), #ffd871);
  color: var(--plum-deep);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  align-self: flex-start;
}

.audio-index-note {
  width: auto;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Featured index: gold star with number centered inside (single visual element) */
.audio-index-featured {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  z-index: 1;
}

.audio-index-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23d7a760' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  filter: drop-shadow(0 2px 4px rgba(215, 167, 96, 0.4));
}

.audio-index-featured span {
  position: absolute;
  /* Optical center of a 5-point star sits slightly below geometric center. */
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 800;
  color: #5a2a10;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 247, 220, 0.55);
  pointer-events: none;
}

.audio-head {
  display: flex;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.audio-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.audio-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.audio-card p {
  margin: 10px 0 0;
  line-height: 1.65;
}

.location-hint {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: rgba(42, 38, 33, 0.62);
}

.audio-card-playable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.audio-card-playable:hover,
.audio-card-playable:focus-visible,
.audio-card-playable.is-current {
  transform: translateY(-2px);
  border-color: rgba(45, 136, 168, 0.35);
  box-shadow: 0 18px 34px rgba(60, 47, 102, 0.14);
  outline: none;
}

.track-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
}

.track-duration {
  font-size: 0.84rem;
  color: rgba(31, 35, 64, 0.62);
  min-height: 1em;
}

.extra-copy span,
.extra-copy small {
  display: block;
}

.extra-copy small {
  margin-top: 2px;
  color: rgba(31, 35, 64, 0.62);
}

.audio-card-action {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-card-action strong {
  display: block;
}

.audio-card-action-icon {
  width: 54px;
  height: 54px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--vermilion);
  color: #fff;
  box-shadow: 0 10px 24px rgba(196, 58, 53, 0.22);
}

.audio-card-action-icon svg,
.track-icon svg,
.player-control svg,
.player-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audio-card-action-icon svg,
.track-icon svg {
  fill: currentColor;
  stroke: none;
}

.track-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  min-width: 108px;
  min-height: 46px;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.track-button:hover,
.player-control:hover {
  transform: translateY(-1px);
}

.track-button-large {
  margin-top: 20px;
  min-height: 56px;
  padding: 14px 22px;
}

.track-button-primary,
.track-button.is-active,
.player-control-primary {
  background: var(--vermilion);
  color: #fffaf0;
  box-shadow: 0 10px 24px rgba(196, 58, 53, 0.2);
}

.player-control {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.12);
  color: #f0f0f0;
  font-size: 1rem;
  font-weight: 600;
}

.player-control svg {
  stroke-width: 2.5;
}

.player-control span {
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.track-button-ghost {
  display: none;
}

.extras li {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.extras li span {
  display: block;
}

.floating-player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 24px));
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(32, 35, 62, 0.94);
  border: 1px solid rgba(42, 38, 33, 0.12);
  box-shadow: 0 22px 46px rgba(31, 35, 64, 0.3);
  backdrop-filter: blur(14px);
  z-index: 40;
}

.floating-player-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.floating-player .eyebrow,
.floating-player-meta strong {
  color: #fff;
}

.floating-player .eyebrow {
  margin-bottom: 4px;
}

.floating-player-meta strong {
  display: block;
  font-size: 1.02rem;
  color: #fffaf0;
}

.floating-player-meta {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 2px;
}

.floating-audio {
  display: none;
}

.floating-player-controls {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.player-control {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.player-close {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.extras {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(31, 35, 64, 0.16);
}

.extras strong {
  color: var(--plum);
}

.extras ul {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
}

.footnote {
  margin-top: 10px;
  font-size: 0.92rem;
  color: rgba(31, 35, 64, 0.62);
}

.footer {
  padding: 30px 0 48px;
  color: rgba(31, 35, 64, 0.72);
}

body.theme-jingshan .page-head {
  padding-top: 36px;
}

body.theme-jingshan .page-head-top {
  background: rgba(252, 249, 244, 0.86);
  border: 1px solid rgba(223, 191, 187, 0.28);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(28, 28, 25, 0.05);
  backdrop-filter: blur(12px);
}

body.theme-jingshan .whatsapp-cta {
  background: linear-gradient(135deg, #93251b, #b43d30);
  box-shadow: 0 14px 28px rgba(147, 37, 27, 0.2);
}

body.theme-jingshan .eyebrow {
  color: #7b5455;
  letter-spacing: 0.2em;
}

body.theme-jingshan .page-head h1 {
  color: #93251b;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

body.theme-jingshan .page-head p {
  color: rgba(88, 65, 62, 0.9);
  max-width: 900px;
}

body.theme-jingshan .page-meta {
  margin-top: 18px;
}

body.theme-jingshan .chip {
  background: #f6f3ee;
  color: #7b5455;
  border-color: rgba(223, 191, 187, 0.5);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.theme-jingshan .route-card,
body.theme-jingshan .audio-card,
body.theme-jingshan .info-card,
body.theme-jingshan .merchant-strip,
body.theme-jingshan .merchant-card {
  background: #f6f3ee;
  border: 1px solid rgba(223, 191, 187, 0.18);
  border-radius: 28px;
  box-shadow: 0 18px 38px rgba(28, 28, 25, 0.05);
}

body.theme-jingshan .route-card:hover,
body.theme-jingshan .audio-card-playable:hover,
body.theme-jingshan .audio-card-playable.is-current,
body.theme-jingshan .info-card:hover,
body.theme-jingshan .merchant-card:hover {
  background: #ffffff;
  box-shadow: 0 22px 42px rgba(28, 28, 25, 0.08);
}

body.theme-jingshan .info-card-body,
body.theme-jingshan .route-card-body,
body.theme-jingshan .audio-card-body,
body.theme-jingshan .merchant-card-body {
  padding: 24px;
}

body.theme-jingshan .thumb {
  aspect-ratio: 16 / 10;
}

body.theme-jingshan .muted {
  color: rgba(88, 65, 62, 0.86);
}

body.theme-jingshan .cta {
  background: linear-gradient(135deg, #93251b, #b43d30);
  box-shadow: 0 12px 24px rgba(147, 37, 27, 0.18);
}

body.theme-jingshan .hero-figure::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 140px;
  height: 140px;
  background: rgba(255, 218, 217, 0.42);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
}

body.theme-jingshan .map-zoom {
  background: rgba(252, 249, 244, 0.86);
  color: #6f404f;
  border: 1px solid rgba(223, 191, 187, 0.55);
  box-shadow: 0 12px 24px rgba(28, 28, 25, 0.08);
}

body.theme-jingshan .map-hotspot {
  background: linear-gradient(135deg, #93251b, #b43d30);
  box-shadow: 0 12px 24px rgba(147, 37, 27, 0.2);
}

body.theme-jingshan .map-hotspot.is-current {
  background: #ffdad9;
  color: #93251b;
}

body.theme-jingshan .audio-index {
  background: #ffdad9;
  color: #93251b;
}

body.theme-yonghegong .map-hotspot {
  background: linear-gradient(135deg, var(--vermilion), #b43d30);
  box-shadow: 0 10px 22px rgba(147, 37, 27, 0.22);
}

body.theme-yonghegong .map-hotspot.is-current {
  background: linear-gradient(135deg, var(--gold), #ffd871);
  color: #fff;
}

body.theme-yonghegong .audio-index {
  background: #f97316;
  color: #fff;
}

/* Route header for yonghegong (was only defined under theme-forbidden-city) */
body.theme-yonghegong .route-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(140, 113, 109, 0.16);
}

body.theme-yonghegong .route-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.theme-yonghegong .route-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.theme-yonghegong .brand-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.theme-yonghegong .brand-cn {
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--ink);
}

body.theme-yonghegong .brand-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 11px;
  color: rgba(28, 28, 25, 0.6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.theme-yonghegong .route-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.theme-yonghegong .route-header-actions .lang-switcher-toggle {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(140, 113, 109, 0.16);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 14px 9px 10px;
}

body.theme-yonghegong .route-header-actions .whatsapp-cta {
  background: #25D366;
  color: #fff;
  font-weight: 600;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  box-shadow: 0 0 11px rgba(0, 0, 0, 0.25);
}

body.theme-yonghegong .route-header-actions .whatsapp-cta-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

body.theme-yonghegong .route-header-actions .whatsapp-cta-icon svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
}

/* Route header for jingshan */
body.theme-jingshan .route-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(223, 191, 187, 0.28);
}

body.theme-jingshan .route-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.theme-jingshan .route-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.theme-jingshan .brand-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.theme-jingshan .brand-cn {
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--ink);
}

body.theme-jingshan .brand-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 11px;
  color: rgba(28, 28, 25, 0.6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.theme-jingshan .route-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.theme-jingshan .route-header-actions .lang-switcher-toggle {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(223, 191, 187, 0.28);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 14px 9px 10px;
}

body.theme-jingshan .route-header-actions .whatsapp-cta {
  background: #25D366;
  color: #fff;
  font-weight: 600;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  box-shadow: 0 0 11px rgba(0, 0, 0, 0.25);
}

body.theme-jingshan .route-header-actions .whatsapp-cta-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

body.theme-jingshan .route-header-actions .whatsapp-cta-icon svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
}

/* Generic route header styles (tiantan and other attractions) */
body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .route-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(140, 113, 109, 0.16);
}

body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .route-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .route-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .brand-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .brand-cn {
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--ink);
}

body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .brand-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 11px;
  color: rgba(28, 28, 25, 0.6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .route-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .route-header-actions .lang-switcher-toggle {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(140, 113, 109, 0.16);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 14px 9px 10px;
}

body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .route-header-actions .whatsapp-cta {
  background: #25D366;
  color: #fff;
  font-weight: 600;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  box-shadow: 0 0 11px rgba(0, 0, 0, 0.25);
}

body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .route-header-actions .whatsapp-cta-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

body.theme-route:not(.theme-forbidden-city):not(.theme-yonghegong):not(.theme-jingshan) .route-header-actions .whatsapp-cta-icon svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
}

body.theme-jingshan .audio-card-playable:hover,
body.theme-jingshan .audio-card-playable:focus-visible,
body.theme-jingshan .audio-card-playable.is-current {
  border-color: rgba(223, 191, 187, 0.45);
  box-shadow: 0 20px 36px rgba(28, 28, 25, 0.08);
}

body.theme-jingshan .track-button-primary,
body.theme-jingshan .track-button.is-active,
body.theme-jingshan .player-control-primary {
  background: linear-gradient(135deg, #93251b, #b43d30);
  box-shadow: 0 12px 24px rgba(147, 37, 27, 0.18);
}

body.theme-jingshan .player-control {
  background: rgba(123, 84, 85, 0.1);
  color: #6f404f;
}

body.theme-jingshan .floating-player {
  background: rgba(252, 249, 244, 0.86);
  border: 1px solid rgba(223, 191, 187, 0.35);
  box-shadow: 0 20px 42px rgba(28, 28, 25, 0.12);
}

body.theme-jingshan .floating-player .eyebrow {
  color: #7b5455;
}

body.theme-jingshan .floating-player-meta strong {
  color: #1c1c19;
}

body.theme-jingshan .floating-player-description {
  color: rgba(28,28,25,0.65);
  font-style: italic;
}

body.theme-jingshan .player-close {
  background: rgba(111, 64, 79, 0.1);
  color: #6f404f;
}

body.theme-jingshan .extras {
  border-top-color: rgba(223, 191, 187, 0.5);
}

body.theme-jingshan .extras strong {
  color: #6f404f;
}

@media (max-width: 860px) {
  .page-head-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .route-layout {
    grid-template-columns: 1fr;
  }

  .map-hotspot {
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
  }

  .map-hotspot::after {
    inset: -9px;
  }

  .hero-panel {
    padding: 26px;
    border-radius: 24px;
  }

  .floating-player {
    bottom: 12px;
    padding: 14px;
    border-radius: 20px;
  }

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

  .floating-player-controls {
    flex-wrap: wrap;
  }

  .extras li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .floating-player-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.theme-jingshan .page-head-top {
    padding: 14px 16px;
  }
}

/* ============================================================
   THEME · FORBIDDEN CITY (light, dignified, outdoor-readable)
   Brand red: #9e3a26 (rgb 158,58,38) — used for accents only.
   Body palette: ivory/sand paper, deep ink, antique gold.
   ============================================================ */
body.theme-forbidden-city {
  --fc-red: #9e3a26;
  --fc-red-deep: #7a2818;
  --fc-red-soft: rgba(158, 58, 38, 0.12);
  --fc-gold: #c89b48;
  --fc-gold-deep: #8a6a26;
  --fc-gold-soft: rgba(200, 155, 72, 0.18);
  --fc-paper: #f5ecdd;
  --fc-paper-strong: #fbf6ec;
  --fc-paper-deep: #ece1cc;
  --fc-ink: #2a2018;
  --fc-ink-soft: #5b4a3a;
  --fc-mist: #d8cbb1;
  --fc-line: rgba(58, 38, 22, 0.12);

  font-family: "Cormorant Garamond", "Noto Serif", "Noto Serif SC", serif;
  color: var(--fc-ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(200, 155, 72, 0.16), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(158, 58, 38, 0.08), transparent 28%),
    linear-gradient(180deg, var(--fc-paper-strong) 0%, var(--fc-paper) 38%, var(--fc-paper-deep) 100%);
  padding-bottom: 200px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

body.theme-forbidden-city::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.theme-forbidden-city h1,
body.theme-forbidden-city h2,
body.theme-forbidden-city h3,
body.theme-forbidden-city .page-head h1,
body.theme-forbidden-city .splash-cn,
body.theme-forbidden-city .brand-cn {
  font-family: "Noto Serif Display", "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
  color: var(--fc-ink);
  letter-spacing: 0.005em;
}

body.theme-forbidden-city .eyebrow {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--fc-gold-deep);
  font-weight: 600;
}

body.theme-forbidden-city .chip {
  background: rgba(255, 255, 255, 0.55);
  border: 0.5px solid var(--fc-line);
  color: var(--fc-ink-soft);
  letter-spacing: 0.03em;
  border-radius: 2px;
  font-size: 12px;
  padding: 4px 10px;
  font-family: "Cormorant Garamond", serif;
}

body.theme-forbidden-city .chip.chip-soon {
  background: var(--fc-red-soft);
  color: var(--fc-red);
  border-color: rgba(158, 58, 38, 0.3);
}

/* ---------- Splash ---------- */
.theme-forbidden-city .splash {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, var(--fc-paper-strong), var(--fc-paper) 56%, var(--fc-paper-deep) 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.theme-forbidden-city .splash::before,
.theme-forbidden-city .splash::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 0.5px;
  width: min(420px, 70vw);
  background: linear-gradient(90deg, transparent, var(--fc-gold-deep), transparent);
  transform: translateX(-50%);
  opacity: 0;
  animation: fcSplashLine 0.9s ease 1.2s forwards;
}
.theme-forbidden-city .splash::before { top: 22%; }
.theme-forbidden-city .splash::after { bottom: 22%; }

@keyframes fcSplashLine {
  to { opacity: 1; }
}

.theme-forbidden-city .splash.is-done {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.theme-forbidden-city .splash-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
}

.theme-forbidden-city .splash-seal {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fc-red);
  color: #fbe9c2;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 4px;
  position: relative;
  box-shadow: 0 14px 30px rgba(158, 58, 38, 0.28), inset 0 0 0 1px rgba(255, 234, 200, 0.18);
  transform: scale(0.85) rotate(-6deg);
  opacity: 0;
  animation: fcSealIn 0.9s cubic-bezier(.16,1,.3,1) 0.3s forwards;
}

.theme-forbidden-city .splash-seal span {
  display: block;
  transform: translateY(2px);
}

.theme-forbidden-city .splash-seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 0.5px solid rgba(255, 234, 200, 0.25);
}

@keyframes fcSealIn {
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.theme-forbidden-city .splash-cn {
  font-size: clamp(36px, 9vw, 60px);
  letter-spacing: 14px;
  color: var(--fc-red-deep);
  margin-left: 14px; /* compensate trailing spacing */
  opacity: 0;
  transform: translateY(10px);
  animation: fcSplashUp 0.8s ease 0.85s forwards;
}

.theme-forbidden-city .splash-en {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  color: var(--fc-ink-soft);
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translateY(10px);
  animation: fcSplashUp 0.8s ease 1.1s forwards;
}

.theme-forbidden-city .splash-rule {
  width: 36px;
  height: 0.5px;
  background: var(--fc-gold-deep);
  margin-top: 6px;
  opacity: 0;
  animation: fcSplashUp 0.7s ease 1.4s forwards;
}

.theme-forbidden-city .splash-tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--fc-gold-deep);
  font-weight: 600;
  opacity: 0;
  animation: fcSplashUp 0.7s ease 1.6s forwards;
}

.theme-forbidden-city .splash-line {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--fc-ink-soft);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fcSplashUp 0.7s ease 1.8s forwards;
}

@keyframes fcSplashUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sticky brand header ---------- */
.theme-forbidden-city .route-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--fc-line);
}

.theme-forbidden-city .route-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.theme-forbidden-city .route-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.theme-forbidden-city .brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  padding: 0 8px;
  background: var(--fc-red-soft);
  color: var(--fc-red);
  border: 0.5px solid rgba(158, 58, 38, 0.3);
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.theme-forbidden-city .brand-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.theme-forbidden-city .brand-cn {
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--fc-ink);
}

.theme-forbidden-city .brand-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 11px;
  color: var(--fc-ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.theme-forbidden-city .route-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-forbidden-city .route-header-actions .lang-switcher-toggle {
  background: transparent;
  border: 0.5px solid var(--fc-line);
  color: var(--fc-ink-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 6px 12px;
}

.theme-forbidden-city .route-header-actions .whatsapp-cta {
  background: var(--fc-red);
  color: #fff5e0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.theme-forbidden-city .route-shell {
  position: relative;
  z-index: 1;
  max-width: 980px;
  padding: 0 22px;
}

/* ---------- Route picker (pills) ---------- */
.theme-forbidden-city .route-picker {
  margin: 16px 0 4px;
  padding: 10px 0 12px;
  border-bottom: 0.5px solid var(--fc-line);
}

.theme-forbidden-city .route-picker-label {
  display: none;
}

.theme-forbidden-city .route-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Three pills must always fit one row across all locales (es/it have longer
   sub-labels). Using flex:1 with min-width:0 guarantees equal-thirds layout
   even when the sub-label would otherwise force a wider intrinsic width. */
.theme-forbidden-city .route-pill {
  appearance: none;
  background: rgba(255, 255, 255, 0.4);
  border: 0.5px solid var(--fc-line);
  padding: 7px 10px 8px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  position: relative;
}

.theme-forbidden-city .route-pill:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(158, 58, 38, 0.25);
}

.theme-forbidden-city .route-pill.is-active {
  background: var(--fc-red);
  border-color: var(--fc-red-deep);
  color: #fff5e0;
  box-shadow: 0 8px 22px rgba(158, 58, 38, 0.22);
}

.theme-forbidden-city .route-pill-main {
  font-family: "Noto Serif Display", "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.theme-forbidden-city .route-pill .route-pill-main {
  color: var(--fc-ink);
}

.theme-forbidden-city .route-pill.is-active .route-pill-main {
  color: #fff5e0;
}

.theme-forbidden-city .route-pill-sub {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--fc-ink-soft);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.15;
}

.theme-forbidden-city .route-pill.is-active .route-pill-sub {
  color: rgba(255, 245, 224, 0.85);
}

.theme-forbidden-city .route-pill-flag {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--fc-gold);
  color: #2a2018;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 1px;
  box-shadow: 0 2px 6px rgba(138, 106, 38, 0.35);
}

/* ---------- Page head ---------- */
.theme-forbidden-city .page-head {
  padding: 10px 0 6px;
  border-bottom: 0;
}

.theme-forbidden-city .page-head h1 {
  font-size: clamp(24px, 3.8vw, 34px);
  line-height: 1.2;
  margin: 2px 0 6px;
  color: var(--fc-ink);
}

.theme-forbidden-city .page-head p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fc-ink-soft);
  max-width: 62ch;
  margin: 0;
  opacity: 0.85;
}

/* ---------- Route layout ---------- */
.theme-forbidden-city .route-pane {
  padding-top: 8px;
}

.theme-forbidden-city .route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 20px;
  margin: 22px 0;
}

@media (max-width: 760px) {
  .theme-forbidden-city .route-layout {
    grid-template-columns: 1fr;
  }
}

.theme-forbidden-city .hero-figure {
  position: relative;
}

.theme-forbidden-city .hero-image {
  position: relative;
  background: var(--fc-paper-strong);
  border: 0.5px solid var(--fc-line);
  box-shadow: 0 24px 48px rgba(58, 38, 22, 0.08);
  overflow: hidden;
}

.theme-forbidden-city .hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.theme-forbidden-city .map-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 246, 236, 0.92);
  border: 0.5px solid var(--fc-line);
  color: var(--fc-ink);
  font-size: 0;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(58, 38, 22, 0.12);
}

.theme-forbidden-city .map-zoom svg {
  width: 18px;
  height: 18px;
}

.theme-forbidden-city .info-card {
  background:
    linear-gradient(135deg, rgba(200, 155, 72, 0.1), rgba(158, 58, 38, 0.08));
  border: 0.5px solid var(--fc-line);
  padding: 22px 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theme-forbidden-city .info-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fc-gold-deep), transparent);
}

.theme-forbidden-city .info-card h2 {
  font-size: 22px;
  margin: 6px 0 14px;
}

.theme-forbidden-city .track-button-large {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  background: var(--fc-red);
  color: #fff5e0;
  padding: 12px 22px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.theme-forbidden-city .track-button-large:hover {
  background: var(--fc-red-deep);
  transform: translateY(-1px);
}

.theme-forbidden-city .track-button-primary {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* ---------- Audio list ---------- */
.theme-forbidden-city .audio-list-controls {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 4px;
}

.theme-forbidden-city .audio-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--fc-ink-soft);
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 5px 14px 5px 10px;
}

.theme-forbidden-city .audio-list {
  display: grid;
  gap: 10px;
}

.theme-forbidden-city .audio-card {
  background: rgba(255, 255, 255, 0.6);
  border: 0.5px solid var(--fc-line);
  padding: 12px 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.theme-forbidden-city .audio-card:hover,
.theme-forbidden-city .audio-card:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(158, 58, 38, 0.22);
}

.theme-forbidden-city .audio-card.is-current {
  background: var(--fc-red-soft);
  border-color: var(--fc-red);
}

.theme-forbidden-city .audio-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.theme-forbidden-city .audio-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.theme-forbidden-city .audio-index {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fc-red);
  color: #fff5e0;
  font-family: "Noto Serif Display", serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.theme-forbidden-city .audio-index.audio-index-note {
  background: transparent;
  color: var(--fc-gold-deep);
  border: 0.5px solid var(--fc-gold-deep);
}

.theme-forbidden-city .audio-card .eyebrow {
  font-size: 10px;
  margin-bottom: 4px;
}

.theme-forbidden-city .audio-card h3 {
  font-family: "Noto Serif Display", "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  color: var(--fc-ink);
}

.theme-forbidden-city .extras {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(200, 155, 72, 0.08);
  border-left: 2px solid var(--fc-gold);
}

.theme-forbidden-city .extras strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fc-gold-deep);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.theme-forbidden-city .extras ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.theme-forbidden-city .extras li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.theme-forbidden-city .extras .extra-copy span {
  font-family: "Noto Serif Display", serif;
  color: var(--fc-ink);
  font-size: 14px;
}

.theme-forbidden-city .extras .extra-copy small {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 11px;
  color: var(--fc-ink-soft);
  margin-top: 2px;
}

.theme-forbidden-city .track-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-forbidden-city .track-button {
  background: rgba(255, 255, 255, 0.7);
  border: 0.5px solid var(--fc-line);
  color: var(--fc-ink);
  padding: 7px 14px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-forbidden-city .track-button.is-active,
.theme-forbidden-city .track-button:hover {
  background: var(--fc-red);
  border-color: var(--fc-red);
  color: #fff5e0;
}

.theme-forbidden-city .track-button svg {
  width: 14px;
  height: 14px;
}

.theme-forbidden-city .track-duration {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 12px;
  color: var(--fc-ink-soft);
}

/* ---------- Coming soon pane ---------- */
.theme-forbidden-city .route-pane-coming-soon .coming-soon-card {
  margin: 28px 0 8px;
  padding: 36px 26px 40px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(200, 155, 72, 0.08));
  border: 0.5px solid var(--fc-line);
  position: relative;
}

.theme-forbidden-city .route-pane-coming-soon .coming-soon-card::before,
.theme-forbidden-city .route-pane-coming-soon .coming-soon-card::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 0.5px;
  width: 60%;
  background: linear-gradient(90deg, transparent, var(--fc-gold-deep), transparent);
  transform: translateX(-50%);
}

.theme-forbidden-city .route-pane-coming-soon .coming-soon-card::before { top: 14px; }
.theme-forbidden-city .route-pane-coming-soon .coming-soon-card::after { bottom: 14px; }

.theme-forbidden-city .coming-soon-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--fc-red-soft);
  color: var(--fc-red);
  border: 0.5px solid rgba(158, 58, 38, 0.3);
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 4px;
  margin-bottom: 18px;
}

.theme-forbidden-city .coming-soon-card h2 {
  font-family: "Noto Serif Display", serif;
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--fc-ink);
}

.theme-forbidden-city .coming-soon-card p {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fc-ink-soft);
  max-width: 48ch;
  margin: 0 auto;
}

/* ---------- Featured collection ---------- */
.theme-forbidden-city .featured-collection {
  margin: 40px 0 20px;
  padding-top: 28px;
  border-top: 0.5px solid var(--fc-line);
}

.theme-forbidden-city .featured-collection .section-head h2 {
  font-family: "Noto Serif Display", serif;
  font-size: 22px;
  margin: 4px 0 0;
  color: var(--fc-ink);
}

.theme-forbidden-city .featured-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.theme-forbidden-city .featured-card {
  background: rgba(255, 255, 255, 0.55);
  border: 0.5px solid var(--fc-line);
  padding: 22px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-forbidden-city .featured-card-placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(200, 155, 72, 0.06) 0,
      rgba(200, 155, 72, 0.06) 6px,
      transparent 6px,
      transparent 14px
    ),
    rgba(255, 255, 255, 0.4);
}

.theme-forbidden-city .featured-card-placeholder p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--fc-ink-soft);
  font-size: 14px;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Map hotspots (forbidden city, light theme) ---------- */
body.theme-forbidden-city .map-hotspot {
  background: var(--fc-red);
  color: #fff5e0;
  border: 0.5px solid rgba(255, 234, 200, 0.55);
  box-shadow: 0 4px 10px rgba(158, 58, 38, 0.32);
}

body.theme-forbidden-city .map-hotspot.is-current {
  background: var(--fc-gold);
  color: #2a2018;
  box-shadow: 0 6px 14px rgba(200, 155, 72, 0.4);
}

/* ---------- Floating player on light theme ---------- */
body.theme-forbidden-city .floating-player {
  background: linear-gradient(180deg, #1c1410 0%, #271b14 100%);
  border-top: 1px solid var(--fc-gold-deep);
  box-shadow: 0 -18px 40px rgba(28, 18, 12, 0.32);
  color: #f5ecdd;
}

body.theme-forbidden-city .floating-player [data-player-title] {
  font-family: "Noto Serif Display", "Noto Serif SC", serif;
  color: #f5ecdd;
}

body.theme-forbidden-city .floating-player .eyebrow {
  color: var(--fc-gold);
}

body.theme-forbidden-city .player-control {
  background: rgba(255, 245, 224, 0.08);
  color: #f5ecdd;
  border: 0.5px solid rgba(200, 155, 72, 0.28);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.theme-forbidden-city .player-control-primary {
  background: var(--fc-red);
  border-color: var(--fc-red-deep);
}

body.theme-forbidden-city .player-control-primary:hover {
  background: var(--fc-red-deep);
}

/* ---------- Merchant strip on light theme ---------- */
body.theme-forbidden-city .merchant-strip {
  margin-top: 36px;
  padding: 28px 24px 30px;
  background: rgba(255, 255, 255, 0.5);
  border: 0.5px solid var(--fc-line);
}

body.theme-forbidden-city .merchant-strip-head h2 {
  font-family: "Noto Serif Display", serif;
  color: var(--fc-ink);
  font-size: 22px;
  margin: 4px 0 0;
}

body.theme-forbidden-city .merchant-card {
  background: var(--fc-paper-strong);
  border: 0.5px solid var(--fc-line);
}

body.theme-forbidden-city .merchant-card h3 {
  font-family: "Noto Serif Display", serif;
  color: var(--fc-ink);
}

body.theme-forbidden-city .merchant-card .cta {
  background: var(--fc-red);
  color: #fff5e0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}

body.theme-forbidden-city .merchant-card .cta:hover {
  background: var(--fc-red-deep);
}

/* Compact the section-level page-head when inside a route-pane (FC only shows a short summary here). */
.theme-forbidden-city .route-pane > .page-head:first-child {
  padding-top: 8px;
}

/* Mobile fine-tunes */
@media (max-width: 600px) {
  .theme-forbidden-city .route-header-inner { padding: 10px 16px; }
  .theme-forbidden-city .route-shell { padding: 0 16px; }
  .theme-forbidden-city .splash-cn { letter-spacing: 10px; }
  .theme-forbidden-city .route-pill { padding: 6px 8px 7px; }
  .theme-forbidden-city .route-pill-main { font-size: 12px; }
  .theme-forbidden-city .route-pill-sub { font-size: 9px; letter-spacing: 0.04em; }
  .theme-forbidden-city .page-head h1 { font-size: 26px; }
}

/* ---------- Brand seal sized for 紫禁城 (3 chars) ---------- */
.theme-forbidden-city .brand-seal {
  min-width: 46px;
  letter-spacing: 1.5px;
  font-size: 12px;
}

/* ---------- WhatsApp CTA in FC header (compact) ---------- */
body.theme-forbidden-city .whatsapp-cta {
  padding: 7px 12px 7px 8px;
  gap: 6px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.18);
}
body.theme-forbidden-city .whatsapp-cta-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
body.theme-forbidden-city .whatsapp-cta-icon svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
}

/* ---------- Sticky condensed header w/ mini-map ---------- */
.theme-forbidden-city .route-header-inner {
  position: relative;
  transition: padding 0.25s ease;
}

.theme-forbidden-city .route-header-map {
  display: none;
  flex: 1 1 auto;
  margin: 0 14px;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  background: var(--fc-paper-strong);
  border: 0.5px solid var(--fc-line);
  border-radius: 2px;
  cursor: pointer;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(58, 38, 22, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-forbidden-city .route-header-map:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(58, 38, 22, 0.12);
}

.theme-forbidden-city .route-header.is-condensed .route-header-map[hidden] {
  display: none;
}

.theme-forbidden-city .route-header.is-condensed .route-header-map:not([hidden]) {
  display: inline-flex;
}

.theme-forbidden-city .route-header-map img {
  width: 64px;
  height: 36px;
  object-fit: cover;
  display: block;
  border: 0.5px solid var(--fc-line);
  flex: 0 0 64px;
}

.theme-forbidden-city .route-header-map-label {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-forbidden-city .route-header.is-condensed .route-brand .brand-name {
  display: none;
}
.theme-forbidden-city .route-header.is-condensed .route-brand {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .theme-forbidden-city .route-header-map { margin: 0 8px; padding: 3px 8px 3px 3px; }
  .theme-forbidden-city .route-header-map img { width: 52px; height: 30px; flex: 0 0 52px; }
  .theme-forbidden-city .route-header-map-label { font-size: 11px; letter-spacing: 0.05em; }
}

/* ---------- Hide page-meta inside FC route-pane (chips removed) ---------- */
.theme-forbidden-city .route-pane .page-meta {
  display: none;
}

/* ---------- Audio card: featured star + index variants ---------- */
.theme-forbidden-city .audio-card-featured {
  background: linear-gradient(180deg, rgba(255, 247, 230, 0.85), rgba(255, 255, 255, 0.65));
  border-color: rgba(200, 155, 72, 0.55);
  position: relative;
}

.theme-forbidden-city .audio-card-featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--fc-gold), var(--fc-gold-deep));
}

.theme-forbidden-city .audio-index-featured {
  background: transparent;
  color: #5a2a10;
  box-shadow: none;
  /* Scale the star + number badge down to match the shrunken regular index. */
  width: 36px;
  height: 36px;
}
.theme-forbidden-city .audio-index-featured span {
  color: #5a2a10;
  font-size: 0.7rem;
}

/* The duplicate decorative star above the title has been removed; hide it
   defensively in case older markup lingers. */
.theme-forbidden-city .audio-featured-mark {
  display: none;
}

/* Hide legacy badge inside FC theme (replaced by mark/eyebrow) */
.theme-forbidden-city .audio-featured-badge {
  display: none;
}

/* ---------- Intro card variant (overview as audio-card) ---------- */
.theme-forbidden-city .audio-card-intro {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(255, 255, 255, 0.7));
  border-color: rgba(158, 58, 38, 0.18);
}
.theme-forbidden-city .audio-card-intro .audio-index-note {
  background: var(--fc-red);
  color: #fff5e0;
  border-color: var(--fc-red);
  font-family: "Noto Serif Display", serif;
}
.theme-forbidden-city .audio-card-intro h3 {
  font-family: "Noto Serif Display", "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
  color: var(--fc-ink);
  letter-spacing: 0;
}

/* ---------- Stacked route layout (single column for FC) ---------- */
.theme-forbidden-city .route-layout-stacked {
  grid-template-columns: 1fr;
}

/* ---------- Curated Anthology bookshelf (Book More — global) ---------- */
.book-shelf-section {
  margin-top: 32px;
  padding: 32px 0 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 56, 51, 0.04), transparent 65%),
    #fffcf7;
  border-radius: 0;
}

.book-shelf {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 8px;
}

.book-shelf-head {
  margin-bottom: 32px;
  text-align: left;
}

.book-shelf-head .eyebrow {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #65655e;
  margin-bottom: 8px;
}

.book-shelf-head h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #383833;
  margin: 0;
}

.book-shelf-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 18px;
  align-items: end;
}

.book-shelf-item {
  --book-tilt: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 84px;
  transform: rotate(var(--book-tilt));
  transform-origin: 50% 100%;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.book-shelf-item:hover {
  transform: rotate(calc(var(--book-tilt) * 0.3)) translateY(-8px);
}

.book-card {
  position: relative;
  width: 100%;
  max-width: 240px;
  background: #ffffff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(56, 56, 51, 0.06);
  display: flex;
  flex-direction: column;
  padding: 22px 20px 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.book-card:hover,
.book-card:focus-visible {
  box-shadow: 0 14px 36px rgba(56, 56, 51, 0.12);
}

.book-card:focus-visible {
  outline: 2px solid var(--book-spine, #54667a);
  outline-offset: 4px;
}

.book-card.book-h-tall { aspect-ratio: 4 / 5.4; }
.book-card.book-h-mid  { aspect-ratio: 4 / 5.1; }
.book-card.book-h-short { aspect-ratio: 4 / 4.8; }

.book-card-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--book-spine, #54667a);
  border-radius: 2px 0 0 2px;
  display: block;
}

.book-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.book-volume {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--book-spine, #54667a);
  margin-bottom: 6px;
  display: block;
}

.book-title {
  font-family: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: #383833;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.book-title-main {
  font-family: "Noto Sans SC", "Manrope", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #383833;
  letter-spacing: -0.005em;
}

.book-sketch {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 16px;
}

.book-sketch svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
}

.book-pendulum {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  z-index: 2;
}

.book-pendulum-string {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(187, 185, 178, 0.6), rgba(187, 185, 178, 0.3));
  display: block;
}

.book-pendulum-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(252, 249, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(187, 185, 178, 0.25);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(56, 56, 51, 0.06);
  color: #54667a;
  transform-origin: 50% -38px;
  animation: bookPendulumIdle 4s ease-in-out infinite;
}

.book-shelf-item:hover .book-pendulum-tag {
  animation: bookPendulumActive 1.1s ease-in-out infinite;
}

@keyframes bookPendulumIdle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes bookPendulumActive {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

.book-pendulum-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #54667a;
}

.book-pendulum-label {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #54667a;
}

@media (max-width: 980px) {
  .book-shelf-stack { grid-template-columns: repeat(4, 1fr); gap: 22px 10px; }
}

@media (max-width: 720px) {
  .book-shelf-section { padding: 18px 0 6px; }
  .book-shelf { padding: 12px 8px 6px; }
  .book-shelf-head { margin-bottom: 16px; }
  .book-shelf-head h2 { font-size: clamp(18px, 4.6vw, 22px); }
  .book-shelf-head .eyebrow { font-size: 10px; letter-spacing: 0.2em; }
  .book-shelf-stack {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 6px;
    align-items: end;
  }
  .book-shelf-item {
    padding-bottom: 44px;
  }
  .book-shelf-item:hover {
    transform: rotate(calc(var(--book-tilt) * 0.3)) translateY(-3px);
  }
  .book-card {
    padding: 8px 6px 6px;
    border-radius: 1px;
    box-shadow: 0 4px 12px rgba(56, 56, 51, 0.06);
    max-width: none;
  }
  .book-card.book-h-tall { aspect-ratio: 4 / 6.2; }
  .book-card.book-h-mid  { aspect-ratio: 4 / 5.8; }
  .book-card.book-h-short { aspect-ratio: 4 / 5.4; }
  .book-card-spine { width: 3px; }
  .book-volume {
    font-size: 7px;
    letter-spacing: 0.12em;
    margin-bottom: 2px;
  }
  .book-title { gap: 0; }
  .book-title-main { font-size: 10px; line-height: 1.15; letter-spacing: 0; }
  .book-sketch { padding-top: 4px; }
  .book-sketch svg { max-height: 56px; }
  .book-pendulum-string { height: 14px; }
  .book-pendulum-tag {
    padding: 3px 6px;
    gap: 3px;
    border-radius: 999px;
    transform-origin: 50% -14px;
  }
  .book-pendulum-icon { width: 8px; height: 8px; flex: 0 0 8px; }
  .book-pendulum-label { font-size: 7px; letter-spacing: 0.1em; }
}

/* ============================================================
   Guozijian (Temple of Confucius & Imperial Academy)
   - Splash intro screen (parchment + bronze, ~2.4s auto fade)
   - Player progress bar (opt-in via presentation.showPlayerProgress)
   ============================================================ */

body.theme-guozijian {
  --gz-bronze: #8a6a2a;
  --gz-bronze-deep: #5e451a;
  --gz-paper: #f6efe1;
  --gz-paper-strong: #fbf6ea;
  --gz-paper-deep: #e9ddc3;
  --gz-ink: #322618;
  --gz-ink-soft: #6c5a3a;
}

.theme-guozijian .splash {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, var(--gz-paper-strong), var(--gz-paper) 55%, var(--gz-paper-deep) 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.theme-guozijian .splash::before,
.theme-guozijian .splash::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 0.5px;
  width: min(420px, 70vw);
  background: linear-gradient(90deg, transparent, var(--gz-bronze), transparent);
  transform: translateX(-50%);
  opacity: 0;
  animation: gzSplashLine 0.9s ease 1.2s forwards;
}
.theme-guozijian .splash::before { top: 22%; }
.theme-guozijian .splash::after  { bottom: 22%; }
@keyframes gzSplashLine { to { opacity: 1; } }

.theme-guozijian .splash.is-done {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.theme-guozijian .splash-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
}

.theme-guozijian .splash-seal {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gz-bronze);
  color: #fbf6ea;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 2px;
  position: relative;
  box-shadow: 0 14px 30px rgba(94, 69, 26, 0.25), inset 0 0 0 1px rgba(251, 246, 234, 0.18);
  transform: scale(0.85) rotate(-4deg);
  opacity: 0;
  animation: gzSealIn 0.9s cubic-bezier(.16,1,.3,1) 0.3s forwards;
}
.theme-guozijian .splash-seal span { display: block; transform: translateY(2px); }
.theme-guozijian .splash-seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 0.5px solid rgba(251, 246, 234, 0.25);
}
@keyframes gzSealIn { to { transform: scale(1) rotate(0); opacity: 1; } }

.theme-guozijian .splash-cn {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: 10px;
  color: var(--gz-bronze-deep);
  margin-left: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: gzSplashUp 0.8s ease 0.85s forwards;
}

.theme-guozijian .splash-en {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  color: var(--gz-ink);
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateY(10px);
  animation: gzSplashUp 0.8s ease 1.1s forwards;
}

.theme-guozijian .splash-rule {
  width: 36px;
  height: 0.5px;
  background: var(--gz-bronze);
  margin-top: 6px;
  opacity: 0;
  animation: gzSplashUp 0.7s ease 1.4s forwards;
}

.theme-guozijian .splash-tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gz-bronze-deep);
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0;
  animation: gzSplashUp 0.7s ease 1.6s forwards;
}

.theme-guozijian .splash-line {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--gz-ink-soft);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: gzSplashUp 0.7s ease 1.8s forwards;
}

@keyframes gzSplashUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Player progress bar (any theme that opts in) ---------- */

.floating-player-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 0 2px;
}

.player-progress-times {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "Manrope", "Cormorant Garamond", serif;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
}
.player-progress-current { color: rgba(255, 255, 255, 0.95); }
.player-progress-duration { color: rgba(255, 255, 255, 0.62); }

.player-progress-track {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
}

.player-progress-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.player-progress-fill {
  position: absolute;
  left: 0;
  height: 3px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #c89b48);
  pointer-events: none;
  transition: width 0.12s linear;
}

.player-progress-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  z-index: 1;
}
.player-progress-input::-webkit-slider-runnable-track { background: transparent; height: 18px; }
.player-progress-input::-moz-range-track { background: transparent; height: 18px; }
.player-progress-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.35);
  margin-top: 3px;
}
.player-progress-input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.player-progress-input:focus-visible {
  outline: none;
}
.player-progress-input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(215, 167, 96, 0.32), 0 2px 6px rgba(94, 69, 26, 0.32);
}

/* Guozijian-tinted progress (bronze instead of generic gold) */
.theme-guozijian .player-progress-fill {
  background: linear-gradient(90deg, var(--gz-bronze), #b48a3e);
}
.theme-guozijian .player-progress-input::-webkit-slider-thumb {
  background: var(--gz-bronze);
  border-color: var(--gz-paper-strong);
}
.theme-guozijian .player-progress-input::-moz-range-thumb {
  background: var(--gz-bronze);
  border-color: var(--gz-paper-strong);
}

@media (max-width: 600px) {
  .floating-player-progress { margin: 4px 0 8px; }
  .player-progress-times { font-size: 11px; }
}
