:root {
  --bg: #0b0d12;
  --text: #e9ecf1;
  --muted: #9aa3b2;
  --line: #222834;
  --accent: #ff9a52;
  --spotify: #1db954;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 520px; margin: 0 auto; }
a { color: var(--text); }

.hero { position: relative; margin: 0; }
.hero img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: cover; object-position: center top; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,13,18,0) 45%, rgba(11,13,18,.85) 85%, var(--bg) 100%);
  pointer-events: none;
}
.hero-text { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .3em; color: var(--accent); }
h1 { margin: 4px 0 6px; font-size: 32px; font-weight: 500; letter-spacing: .08em; }
.who { margin: 0; font-size: 15px; color: var(--text); }

section { padding: 24px 20px; border-top: 1px solid var(--line); }
section.story { border-top: 0; padding-top: 12px; }
h2 { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.story p { margin: 0 0 12px; }
.story strong { font-weight: 500; }
.timeline { color: var(--muted); font-size: 15px; }
.next { list-style: none; margin: 16px 0 0; padding: 0; }
.next li { padding: 8px 0; border-top: 1px solid var(--line); font-weight: 500; }
.next li span { display: inline-block; min-width: 96px; font-weight: 400; color: var(--muted); font-size: 13px; }

.embed-spotify { min-height: 152px; border-radius: 12px; overflow: hidden; background: #111520; }
.button {
  display: block; margin: 16px 0 6px; padding: 14px 16px; border-radius: 999px;
  background: var(--spotify); color: #06120a; text-align: center; text-decoration: none;
  font-weight: 500; font-size: 17px;
}
.button:active { transform: translateY(1px); }
.hint { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

.embed-youtube { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #111520; border-radius: 12px; overflow: hidden; }
.embed-youtube iframe, .embed-youtube #youtube-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.links a { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-align: center; text-decoration: none; font-size: 15px; }

footer { padding: 24px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p { margin: 0 0 6px; }

#debug {
  position: fixed; left: 8px; right: 8px; bottom: 8px; max-height: 25vh; overflow: hidden; z-index: 10;
  pointer-events: none;
  padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.85); color: #9fe870;
  font: 12px/1.5 Menlo, monospace; white-space: pre-wrap;
}
.links a { display: flex; align-items: center; justify-content: center; gap: 8px; }
.links svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.story h2.chapter { margin: 20px 0 8px; color: var(--accent); }
ol.timeline { list-style: none; margin: 0; padding: 0; }
ol.timeline li { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text); }
ol.timeline li span { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .04em; padding-top: 1px; }
.fiction { margin: 10px 0 0; font-size: 12px; color: var(--muted); font-style: italic; }
ol.timeline li b { font-weight: 400; }
main { position: relative; }
.lang { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 4px; }
.lang button { font: 500 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .06em; color: var(--text); background: rgba(11,13,18,.55); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 9px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
