/* ====================================================================
   Nieuws door de Tijd — split-screen theme
   Left  (1850): warm amber / parchment / oil-lamp / Cinzel + Garamond
   Right (2250): deep navy / neon teal+cyan / Orbitron + Inter
==================================================================== */

:root {
  --past-bg: #1a0f08;
  --past-bg-glow: #3a1f0b;
  --past-ink: #f4e4c1;
  --past-ink-dim: #b8a07a;
  --past-accent: #d89b4a;
  --past-candle: #ffcf7f;
  --past-paper: #2a1d10;

  --future-bg: #040b1a;
  --future-bg-glow: #081a38;
  --future-ink: #e4f4ff;
  --future-ink-dim: #7ca8c8;
  --future-accent: #3ad8c4;
  --future-neon: #ff5cb8;
  --future-panel: rgba(10, 30, 60, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #000;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.ndt-header {
  background: linear-gradient(90deg, var(--past-bg) 0%, var(--past-bg-glow) 45%, var(--future-bg-glow) 55%, var(--future-bg) 100%);
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ndt-title-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
  justify-content: center;
}
.ndt-year {
  font-family: 'Cinzel', serif;
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: 4px;
  opacity: 0.85;
}
.ndt-year-past   { color: var(--past-candle); text-shadow: 0 0 18px rgba(255, 207, 127, 0.35); font-family: 'Cinzel', serif; }
.ndt-year-future { color: var(--future-accent); text-shadow: 0 0 22px rgba(58, 216, 196, 0.6), 0 0 40px rgba(255,92,184,0.2); font-family: 'Orbitron', sans-serif; }
.ndt-title { text-align: center; }
.ndt-title h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--past-candle) 0%, #fff 50%, var(--future-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ndt-subtitle {
  font-size: 13px;
  color: #9aa3b3;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- split layout ---------- */
.ndt-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: calc(100vh - 130px);
  position: relative;
}
.ndt-side {
  position: relative;
  overflow: hidden;
  padding: 28px 36px 56px;
}
.ndt-side-past {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 207, 127, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255, 170, 60, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--past-bg) 0%, #0d0704 100%);
  color: var(--past-ink);
  font-family: 'EB Garamond', 'Georgia', serif;
  border-right: 1px solid rgba(216, 155, 74, 0.12);
}
.ndt-side-past::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255, 207, 127, 0.35) 0px, transparent 2px),
    radial-gradient(circle at 92% 86%, rgba(255, 180, 80, 0.25) 0px, transparent 2px);
  animation: candle-flicker 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes candle-flicker {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}
.ndt-side-future {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(58, 216, 196, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(255, 92, 184, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, var(--future-bg) 0%, #010308 100%);
  color: var(--future-ink);
  font-family: 'Inter', system-ui, sans-serif;
}
.ndt-side-future::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(58, 216, 196, 0.04) 50%, transparent 100%);
  background-size: 100px 2px;
  background-repeat: repeat;
  animation: grid-scan 6s linear infinite;
  pointer-events: none;
}
@keyframes grid-scan {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100vh; }
}

/* ---------- portrait ---------- */
.ndt-portrait {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 24px;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.ndt-portrait img { width: 100%; height: 100%; object-fit: cover; }
.ndt-side-past .ndt-portrait {
  border: 2px solid var(--past-accent);
  box-shadow: 0 0 0 1px rgba(255, 207, 127, 0.12), 0 20px 50px rgba(0,0,0,0.6), 0 0 60px rgba(216, 155, 74, 0.15);
}
.ndt-side-future .ndt-portrait {
  border: 2px solid var(--future-accent);
  box-shadow: 0 0 0 1px rgba(58, 216, 196, 0.2), 0 20px 50px rgba(0,0,0,0.6), 0 0 60px rgba(58, 216, 196, 0.3), 0 0 40px rgba(255,92,184,0.15);
}
.ndt-portrait-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
}
.ndt-side-future .ndt-portrait-overlay {
  background:
    linear-gradient(180deg, transparent 70%, rgba(4,11,26,0.4) 100%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(58, 216, 196, 0.06) 2px, rgba(58, 216, 196, 0.06) 3px);
}

/* ---------- side body ---------- */
.ndt-side-body { max-width: 520px; margin: 0 auto; position: relative; z-index: 2; }
.ndt-side-era {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
}
.ndt-side-past .ndt-side-era   { font-family: 'Cinzel', serif; color: var(--past-accent); }
.ndt-side-future .ndt-side-era { font-family: 'Orbitron', sans-serif; color: var(--future-accent); }
.ndt-side-name {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  margin-top: 6px;
}
.ndt-side-past .ndt-side-name   { font-family: 'Cinzel', serif; font-weight: 700; color: var(--past-candle); }
.ndt-side-future .ndt-side-name { font-family: 'Orbitron', sans-serif; font-weight: 700; color: #fff; text-shadow: 0 0 20px rgba(58,216,196,0.35); }
.ndt-side-bio {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
}
.ndt-side-past .ndt-side-bio   { font-style: italic; }
.ndt-side-future .ndt-side-bio { font-weight: 400; }

/* ---------- divider ---------- */
.ndt-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 50px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(20,20,20,0.9) 100%);
  border-left: 1px solid rgba(216, 155, 74, 0.15);
  border-right: 1px solid rgba(58, 216, 196, 0.15);
}
.ndt-divider-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  min-height: 40px;
}
.ndt-divider-glyph {
  color: #aaa;
  font-size: 18px;
  opacity: 0.6;
}

/* ---------- episode list ---------- */
.ndt-episodes { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.ndt-loading { opacity: 0.6; font-style: italic; text-align: center; padding: 20px; }

.ndt-ep {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.03);
}
.ndt-side-past .ndt-ep {
  background: rgba(42, 29, 16, 0.6);
  border-color: rgba(216, 155, 74, 0.18);
}
.ndt-side-past .ndt-ep:hover {
  background: rgba(58, 38, 20, 0.85);
  border-color: var(--past-accent);
  transform: translateX(4px);
}
.ndt-side-future .ndt-ep {
  background: var(--future-panel);
  border-color: rgba(58, 216, 196, 0.18);
  backdrop-filter: blur(4px);
}
.ndt-side-future .ndt-ep:hover {
  background: rgba(12, 38, 70, 0.85);
  border-color: var(--future-accent);
  box-shadow: 0 0 20px rgba(58, 216, 196, 0.2);
  transform: translateX(-4px);
}
.ndt-ep-news {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}
.ndt-side-past .ndt-ep-news   { color: var(--past-accent); }
.ndt-side-future .ndt-ep-news { color: var(--future-accent); }
.ndt-ep-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.ndt-side-past .ndt-ep-title   { font-family: 'EB Garamond', serif; font-weight: 600; color: var(--past-ink); font-size: 18px; }
.ndt-side-future .ndt-ep-title { font-family: 'Inter', sans-serif; color: var(--future-ink); font-weight: 600; }
.ndt-ep-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 11px; opacity: 0.65; }
.ndt-ep-desc { margin-top: 6px; font-size: 13px; line-height: 1.5; opacity: 0.8; }

.ndt-ep.expanded { padding-bottom: 18px; }
.ndt-ep-player { margin-top: 14px; display: none; }
.ndt-ep.expanded .ndt-ep-player { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ndt-ep-player audio { width: 100%; margin-top: 4px; }
.ndt-side-past .ndt-ep-player audio {
  filter: sepia(0.3) saturate(1.1);
}
.ndt-ep-script-toggle {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  padding: 0;
}
.ndt-ep-script-toggle:hover { opacity: 1; text-decoration: underline; }
.ndt-ep-script {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.15);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  display: none;
  max-height: 380px;
  overflow-y: auto;
}
.ndt-ep-script.open { display: block; }
.ndt-side-past .ndt-ep-script { font-family: 'EB Garamond', serif; font-size: 14px; font-style: italic; color: var(--past-ink-dim); }
.ndt-side-future .ndt-ep-script { color: var(--future-ink-dim); }

/* ---------- footer ---------- */
.ndt-footer {
  padding: 16px 24px;
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  color: #7a7a7a;
}
.ndt-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}
.ndt-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--future-accent);
  text-decoration: none;
}
.ndt-rss:hover { text-decoration: underline; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .ndt-split { grid-template-columns: 1fr; }
  .ndt-divider { flex-direction: row; padding: 14px 30px; border-left: none; border-right: none; border-top: 1px solid rgba(216, 155, 74, 0.2); border-bottom: 1px solid rgba(58, 216, 196, 0.2); }
  .ndt-divider-line { min-height: 0; min-width: 30px; width: auto; height: 2px; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%); }
  .ndt-title-wrap { gap: 14px; }
  .ndt-year { font-size: 28px; letter-spacing: 2px; }
}
