:root {
  --bg: #12151b;
  --surface: #1a1f28;
  --ink: #f1ede4;
  --muted: #9da4b2;
  --line: #2c3340;
  --accent: #d89b52;
  --starter: #49947b;
  --standard: #c9863c;
  --showcase: #a65c87;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--accent); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex-wrap: wrap;
}
.brand { font-weight: 700; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 1rem; font-size: 0.88rem; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

.screening, .section { max-width: 1240px; margin: 1.6rem auto; padding: 0 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.74rem; color: var(--accent); margin: 0 0 0.4rem; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.6rem; }
h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 1.5rem; margin: 0; }
.lede { color: var(--muted); max-width: 68ch; margin: 0 0 0.8rem; }
.stats-pill { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }

.player-shell {
  background: #0b0d11;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.player-shell video { width: 100%; display: block; max-height: 640px; background: #000; }

.live-strip {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex-wrap: wrap;
}
.live-strip label { display: inline-flex; gap: 0.35rem; align-items: center; cursor: pointer; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-head select { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 0.35rem 0.6rem; }

.storyboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.shot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 0.75rem;
}
.shot-card[hidden] { display: none; }
.shot-card:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot-card.is-built { border-color: #6a563b; }
.shot-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #0d1015; }
.shot-body { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.shot-meta-top { display: flex; justify-content: space-between; align-items: center; font-family: ui-monospace, monospace; font-size: 0.74rem; color: var(--muted); }
.shot-act { font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.shot-title { margin: 0; font-size: 1rem; font-weight: 600; }
.shot-desc { margin: 0; font-size: 0.82rem; color: var(--muted); }
.shot-footer { margin-top: auto; padding-top: 0.6rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); }

.badge { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.14rem 0.45rem; border-radius: 999px; color: #ffffff; font-weight: 600; }
.badge-starter { background: var(--starter); }
.badge-standard { background: var(--standard); }
.badge-showcase { background: var(--showcase); }

.claim-link {
  background: var(--accent);
  color: #12151b;
  text-decoration: none;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  font-size: 0.76rem;
}
.claim-link:hover { background: #e8af6a; }

.credits-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 0.8rem;
}
.credits-card ul { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--muted); }
.credits-card li { margin-bottom: 0.35rem; }
.credits-card strong { color: var(--ink); }
