:root {
  --bg: #090b0e;
  --surface: #11151a;
  --surface-raised: #171c22;
  --ink: #f3f1eb;
  --muted: #aaa79f;
  --line: #292f36;
  --line-strong: #59616b;
  --accent-a: #c65353;
  --accent-b: #4f9fb8;
  --danger: #ff8787;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
}

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

button,
video {
  font: inherit;
}

a {
  color: #d7e7ed;
}

.shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  padding: 72px 0 38px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 0%, rgba(79,159,184,.08), transparent 35%),
    radial-gradient(circle at 10% 0%, rgba(198,83,83,.07), transparent 32%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  max-width: 900px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.035em;
}

.dek {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}

.controls {
  padding: 30px 0 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.filter-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
}

.filter-button:hover,
.filter-button:focus-visible {
  background: var(--surface-raised);
  outline: none;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.timeline-panel {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 0 12px;
  background: rgba(9, 11, 14, .94);
  backdrop-filter: blur(12px);
}

.timeline-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  height: 104px;
  margin-top: 8px;
  overflow: visible;
}

.timeline-axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 57px;
  height: 1px;
  background: var(--line-strong);
}

.year-label {
  position: absolute;
  top: 72px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}

.year-tick {
  position: absolute;
  top: 51px;
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.timeline-marker {
  position: absolute;
  top: var(--marker-top, 23px);
  width: 13px;
  height: 13px;
  padding: 0;
  transform: translateX(-50%);
  border: 2px solid var(--bg);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22);
}

.timeline-marker.creator-a {
  background: var(--accent-a);
}

.timeline-marker.creator-b {
  background: var(--accent-b);
}

.timeline-marker:hover,
.timeline-marker:focus-visible,
.timeline-marker.is-active {
  transform: translateX(-50%) scale(1.35);
  outline: none;
  box-shadow: 0 0 0 2px var(--ink);
}

.video-feed {
  padding: 14px 0 100px;
}

.video-card {
  scroll-margin-top: 132px;
  padding: 52px 0 58px;
  border-bottom: 1px solid var(--line);
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.video-date {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.creator-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.creator-pill.creator-a {
  background: #983d3d;
}

.creator-pill.creator-b {
  background: #2f7185;
}

.video-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  line-height: 1.08;
}

.video-frame-wrap {
  width: min(100%, 780px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 18px 55px rgba(0,0,0,.26);
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-caption {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
}

.video-caption a {
  color: #d7e7ed;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.video-error {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: .92rem;
}

.empty-state {
  padding: 70px 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 48px;
  }

  .timeline {
    height: 92px;
  }

  .year-label {
    font-size: .66rem;
  }

  .video-card {
    padding: 40px 0 44px;
  }

  .video-frame-wrap {
    width: calc(100% + 32px);
    margin-left: -16px;
    border-left: 0;
    border-right: 0;
  }
}

/* IC CREATOR COLORS START */
.timeline-marker.creator-unassigned { background: #aaa; }
.creator-pill.creator-unassigned { background: #4b4b4b; color: #fff; }
.filter-button.creator-unassigned { --creator-filter-color: #aaa; }
.timeline-marker.creator-extra-1 { background: #67c99f; }
.filter-button.creator-extra-1 { --creator-filter-color: #67c99f; }
.creator-pill.creator-extra-1 { background: #236246; color: #fff; }
/* IC CREATOR COLORS END */

/* Filter keys match the name-based creator registry in app.js. */
.filter-button { display: inline-flex; align-items: center; gap: 8px; }
.filter-button.creator-a { --creator-filter-color: var(--accent-a); }
.filter-button.creator-b { --creator-filter-color: var(--accent-b); }
.filter-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--creator-filter-color, #aaa);
  box-shadow: 0 0 0 1px currentColor;
  flex: 0 0 auto;
}
.filter-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.video-title { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* NOA DARK MINIMAL THEME START v1 */
/* Presentation only. Existing positions, widths, timeline lanes and media logic stay in control. */
html[data-noa-theme="dark-minimal-v1"] {
  --bg: #0b0d0f;
  --surface: #15181c;
  --surface-raised: #20242a;
  --ink: #f5f5f2;
  --muted: #b7bbc3;
  --line: #30353d;
  --line-strong: #646d79;
  --danger: #ff9696;
  --noa-brand: #f24444;
  --noa-brand-button: #c42129;
  --noa-body-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --noa-heading-font: Impact, "Arial Narrow", "Roboto Condensed", "Noto Sans Display", "Franklin Gothic Condensed", sans-serif;
  color-scheme: dark;
}
html[data-noa-theme="dark-minimal-v1"] body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--noa-body-font);
}
html[data-noa-theme="dark-minimal-v1"] ::selection {
  color: #fff;
  background: #9e2028;
}
html[data-noa-theme="dark-minimal-v1"] .site-header {
  background: #0d0f12;
  border-bottom-color: var(--line);
}
html[data-noa-theme="dark-minimal-v1"] .site-header .eyebrow {
  color: #c2c6ce;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-weight: 600;
}
html[data-noa-theme="dark-minimal-v1"] .site-header h1 {
  font-family: var(--noa-heading-font);
  font-stretch: condensed;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.025em;
  color: var(--ink);
  text-shadow: none;
}
html[data-noa-theme="dark-minimal-v1"] .noa-title-lead,
html[data-noa-theme="dark-minimal-v1"] .noa-title-accent {
  white-space: nowrap;
}
html[data-noa-theme="dark-minimal-v1"] .noa-title-accent { color: var(--noa-brand); }
html[data-noa-theme="dark-minimal-v1"] .dek {
  font-family: var(--noa-body-font);
  color: #d1d3d8;
  font-weight: 400;
}
html[data-noa-theme="dark-minimal-v1"] .filter-button {
  background: var(--surface);
  color: var(--ink);
  border-color: #424a55;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
html[data-noa-theme="dark-minimal-v1"] .filter-button:hover { background: #252a31; border-color: #8993a1; }
html[data-noa-theme="dark-minimal-v1"] .filter-button[aria-pressed="true"] {
  background: #252a31;
  border-color: var(--creator-filter-color, var(--noa-brand));
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--creator-filter-color, var(--noa-brand));
}
/* The first filter is All. Individual creators retain their existing color keys. */
html[data-noa-theme="dark-minimal-v1"] #filters .filter-button:first-child[aria-pressed="true"] {
  background: var(--noa-brand-button);
  border-color: var(--noa-brand-button);
  color: #fff;
  box-shadow: none;
}
html[data-noa-theme="dark-minimal-v1"] .filter-dot { box-shadow: none; }
html[data-noa-theme="dark-minimal-v1"] .timeline-panel {
  background: rgba(11,13,15,.97);
}
html[data-noa-theme="dark-minimal-v1"] .timeline-topline {
  color: #dedfe3;
  letter-spacing: .055em;
}
html[data-noa-theme="dark-minimal-v1"] .year-label { color: #bfc3cc; }
/* No geometry/color override on .timeline-marker or any creator registry rules. */
html[data-noa-theme="dark-minimal-v1"] .video-card { border-bottom-color: var(--line); }
html[data-noa-theme="dark-minimal-v1"] .video-date { color: #d5d8de; }
html[data-noa-theme="dark-minimal-v1"] .creator-pill { border-radius: 6px; }
html[data-noa-theme="dark-minimal-v1"] .video-title {
  font-family: var(--noa-body-font);
  font-weight: 750;
  letter-spacing: -.018em;
  color: var(--ink);
}
html[data-noa-theme="dark-minimal-v1"] .video-frame-wrap {
  border-color: #383f48;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  background: #000;
}
html[data-noa-theme="dark-minimal-v1"] .video-caption,
html[data-noa-theme="dark-minimal-v1"] .empty-state {
  font-family: var(--noa-body-font);
  color: var(--muted);
}
html[data-noa-theme="dark-minimal-v1"] .video-caption a {
  color: #e0e4eb;
  text-decoration-color: #8f98a6;
  text-underline-offset: 4px;
}
html[data-noa-theme="dark-minimal-v1"] .video-caption a:hover { color: #ff9898; }
/* Search stays in its original position and retains all help/coverage warnings. */
html[data-noa-theme="dark-minimal-v1"] .ic-search {
  background: #121519;
  border-color: #373e48;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-noa-theme="dark-minimal-v1"] .ic-search-form label { color: var(--ink); }
html[data-noa-theme="dark-minimal-v1"] #ic-search-input {
  border-color: #687281;
  background: #0d0f12;
  color: var(--ink);
  border-radius: 6px;
}
html[data-noa-theme="dark-minimal-v1"] #ic-search-input::placeholder { color: #a7afbb; opacity: 1; }
html[data-noa-theme="dark-minimal-v1"] .ic-search button {
  background: #20242a;
  border-color: #687281;
  color: var(--ink);
  border-radius: 6px;
}
html[data-noa-theme="dark-minimal-v1"] .ic-search button:hover { background: #2c323a; border-color: #b2bcc9; }
html[data-noa-theme="dark-minimal-v1"] .ic-search-context-option input { accent-color: var(--noa-brand-button); }
html[data-noa-theme="dark-minimal-v1"] .ic-search mark { background: #5c242a; color: #fff; }
html[data-noa-theme="dark-minimal-v1"] .ic-search-region { color: #e6e8ee; }
/* Restyle the surrounding panel only; do not override playback bounds, controls or animations. */
html[data-noa-theme="dark-minimal-v1"] .ic-context-panel {
  background: #15181c;
  border-top-color: #3b424e;
  color: var(--ink);
  font-family: var(--noa-body-font);
}
html[data-noa-theme="dark-minimal-v1"] .ic-context-panel button {
  background: #242930;
  color: var(--ink);
  border-color: #758091;
  border-radius: 6px;
}
html[data-noa-theme="dark-minimal-v1"] .ic-context-panel button:hover { background: #303740; }
html[data-noa-theme="dark-minimal-v1"] .ic-context-clock,
html[data-noa-theme="dark-minimal-v1"] .ic-context-labels,
html[data-noa-theme="dark-minimal-v1"] .ic-context-status { color: #c0c6d0; }
html[data-noa-theme="dark-minimal-v1"] .ic-context-legend { color: #e4e7ed; }
html[data-noa-theme="dark-minimal-v1"] .ic-context-rail { background: #404954; }
html[data-noa-theme="dark-minimal-v1"] .ic-context-shell[data-mode="context"] {
  border-color: var(--ic-context-accent);
}
html[data-noa-theme="dark-minimal-v1"] .filter-button:focus-visible,
html[data-noa-theme="dark-minimal-v1"] .video-caption a:focus-visible,
html[data-noa-theme="dark-minimal-v1"] .ic-search button:focus-visible,
html[data-noa-theme="dark-minimal-v1"] #ic-search-input:focus-visible,
html[data-noa-theme="dark-minimal-v1"] .ic-context-panel button:focus-visible {
  outline: 2px solid #f5f5f2;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html[data-noa-theme="dark-minimal-v1"] .filter-button { transition: none; }
}
@media (forced-colors: active) {
  html[data-noa-theme="dark-minimal-v1"] .noa-title-accent { color: CanvasText; }
  html[data-noa-theme="dark-minimal-v1"] .filter-button[aria-pressed="true"] {
    border-color: Highlight;
    outline: 2px solid Highlight;
  }
}
/* NOA DARK MINIMAL THEME END v1 */


/* NOA MASTHEAD FONT FIX START v1 */
/* Heading only. Keep the existing size, layout, colors and all media controls. */
html[data-noa-theme="dark-minimal-v1"] .site-header h1 {
  font-family: "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
  font-weight: 700;
  font-stretch: normal;
  font-synthesis: none;
  letter-spacing: .015em;
  word-spacing: .045em;
}
/* NOA MASTHEAD FONT FIX END v1 */
