:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #242d2a;
  background: #e9dac0;
  --gutter: clamp(22px, 5.2vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.ride {
  isolation: isolate;
  min-height: 440px;
  height: 100vh;
  height: 100svh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #b4c1ad 0%, #e4c9a9 37%, #f4d8ac 60%, #506562 100%);
}

.landscape, .sky, #scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.landscape { z-index: -1; }

.masthead, .player {
  position: absolute;
  inset-inline: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.masthead { top: max(26px, env(safe-area-inset-top)); padding-bottom: 15px; border-bottom: 1px solid #25353040; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; letter-spacing: .15em; }
.wordmark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.edition, .eyebrow, .caption small { font: 600 10px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .19em; }
.edition, .eyebrow { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.edition span { width: 16px; height: 1px; background: currentColor; opacity: .5; }

.title { position: absolute; left: var(--gutter); top: 26%; }
.eyebrow { margin: 0 0 17px; }
.eyebrow span { width: 24px; height: 1px; background: #8b422f; }
h1 {
  margin: 0;
  font: 600 clamp(46px, 5.8vw, 100px)/1.12 "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  letter-spacing: -.05em;
}
.tagline { margin: 17px 0 0; font-size: clamp(13px, 1.05vw, 16px); letter-spacing: .16em; text-shadow: 0 0 14px #f6dfba88; }

.player {
  bottom: max(22px, env(safe-area-inset-bottom));
  padding: 9px 9px 9px 16px;
  color: #fdf0d3;
  border: 1px solid #fff5de38;
  border-radius: 12px;
  background: #182a28e8;
}
.caption { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .13em; }
.caption small { display: block; margin-top: 3px; color: #e1cfad; font-size: 8px; }
.live-dot { background: #e1a76c; border-radius: 50%; width: 7px; height: 7px; }
.controls { display: flex; gap: 6px; }
button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  border: 1px solid #fff2d341;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
button:hover { background: #fff3d623; }
button:focus-visible { outline: 2px solid #fff2d3; outline-offset: 3px; }
#toggle { color: #202e29; background: #f3dfba; border-color: transparent; }
#toggle:hover { background: #fff0cd; }
button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
#toggle .play-icon, .is-paused #toggle .pause-icon { display: none; }
.is-paused #toggle .play-icon { display: block; }

.fallback { position: absolute; left: var(--gutter); bottom: 20%; line-height: 1.8; }
.no-scene .landscape { opacity: .8; }

@media (max-width: 760px), (max-aspect-ratio: 5/4) {
  .title { top: 15%; }
  .eyebrow { margin-bottom: 10px; }
  .tagline { margin-top: 10px; }
  .sun { transform: translate(-234px, 62px); }
}
@media (max-height: 550px) and (min-aspect-ratio: 5/4) {
  .masthead { top: 15px; padding-bottom: 8px; }
  .title { top: 25%; }
  .player { bottom: 10px; }
}
