/* ==========================================================
   AI INFRASTRUCTURE SERIES - EPISODE 4: RUNNING AN LLM
   Aesthetics: Deep Obsidian, Electric Cyan (Prefill) & Amber (Decode)
   ========================================================== */

:root {
  --bg-base: #07090e;
  --bg-surface: #0f1524;
  --bg-surface-elevated: #162038;
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --prefill-cyan: #06b6d4;
  --prefill-glow: rgba(6, 182, 212, 0.3);
  --decode-amber: #f59e0b;
  --decode-glow: rgba(245, 158, 11, 0.35);
  
  --neon-green: #10b981;
  --neon-purple: #a855f7;
  --neon-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #06b6d4, transparent 70%); top: -200px; left: -100px; }
.orb-2 { width: 700px; height: 700px; background: radial-gradient(circle, #f59e0b, transparent 70%); bottom: -250px; right: -150px; }
.orb-3 { width: 450px; height: 450px; background: radial-gradient(circle, #8b5cf6, transparent 70%); top: 40%; left: 60%; opacity: 0.15; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* ==========================================================
   TOP NAV HUD
   ========================================================== */
.top-nav {
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
}

.nav-left { display: flex; align-items: center; gap: 14px; }

.hub-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.hub-back-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.series-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #38bdf8;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 10px #06b6d4;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ep-tag {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.nav-topic-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.timeline-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-bar {
  width: 180px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.timeline-fill {
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #f59e0b);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.slide-dots { display: flex; gap: 8px; }

.slide-dot-item {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slide-dot-item.active {
  background: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.7);
  width: 32px;
}

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-btn.active-btn {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--prefill-cyan);
  color: #38bdf8;
}

.shortcut-pill {
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================
   PRESENTATION STAGE & SLIDES
   ========================================================== */
.presentation-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
}

.slide-view {
  position: absolute;
  inset: 0;
  padding: 36px 64px 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-view.active { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
.slide-view.prev-out { transform: translateX(-40px) scale(0.98); opacity: 0; }

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.badge-tag.prefill-accent { background: rgba(6, 182, 212, 0.12); color: var(--prefill-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-tag.decode-accent { background: rgba(245, 158, 11, 0.12); color: var(--decode-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-tag.race-accent { background: rgba(16, 185, 129, 0.12); color: var(--neon-green); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-tag.trap-accent { background: rgba(244, 63, 94, 0.12); color: var(--neon-rose); border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-tag.serving-accent { background: rgba(168, 85, 247, 0.12); color: var(--neon-purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-tag.finale-accent { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.slide-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #06b6d4 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 900px;
}

/* ==========================================================
   SLIDE 1: PARADOX CARDS
   ========================================================== */
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 28px;
}

.hook-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.paradox-comparison-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.paradox-card {
  flex: 1;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-smooth);
}

.paradox-card:hover { transform: translateY(-4px); }

.prefill-card {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 10px 30px -10px var(--prefill-glow);
}

.decode-card {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 30px -10px var(--decode-glow);
}

.p-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-pill.cyan { background: rgba(6, 182, 212, 0.15); color: #38bdf8; }
.badge-pill.amber { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }

.p-stat-fast { font-family: var(--font-mono); font-weight: 800; color: #34d399; font-size: 14px; }
.p-stat-slow { font-family: var(--font-mono); font-weight: 800; color: #fb7185; font-size: 14px; }

.paradox-icon { font-size: 32px; }

.paradox-card h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.paradox-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.status-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
}
.fast-footer { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.slow-footer { background: rgba(245, 158, 11, 0.12); color: #fcd34d; }

.paradox-vs { display: flex; align-items: center; justify-content: center; }
.vs-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dim);
}

.rhetorical-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-main);
}

/* ==========================================================
   SPLIT LAYOUTS (SLIDES 2, 3, 5)
   ========================================================== */
.split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.analogy-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  border-left: 3px solid #06b6d4;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.slide-3 .analogy-lead { border-left-color: var(--decode-amber); }

.feature-bullets { display: flex; flex-direction: column; gap: 14px; }
.bullet-item { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.bullet-item strong { color: #fff; }
.bullet-icon { font-size: 20px; }

.visual-chip-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.prefill-visual-card { border-color: rgba(6, 182, 212, 0.35); }
.decode-visual-card { border-color: rgba(245, 158, 11, 0.35); }
.firehose-visual-card { border-color: rgba(244, 63, 94, 0.35); }

.chip-diagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.die-label { color: var(--text-muted); font-weight: 600; }
.clock-badge { background: rgba(6, 182, 212, 0.15); color: #38bdf8; padding: 3px 8px; border-radius: 4px; font-weight: 700; }
.clock-badge.decode-clock { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.clock-badge.trap-clock { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

/* Prefill Diagram */
.prefill-diagram { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.prompt-matrix-visual {
  background: #050810;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.matrix-block-grid { display: flex; flex-direction: column; gap: 4px; }
.m-row {
  display: flex;
  justify-content: space-between;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #38bdf8;
}
.math-cross { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text-dim); }
.tensor-core-fire-box {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #34d399;
  font-weight: 700;
}

/* Decode Diagram */
.decode-diagram { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.step-loop-box {
  background: #050810;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.token-feedback-ring { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tok-node {
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.current-tok { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.next-tok { background: rgba(245, 158, 11, 0.25); color: #fcd34d; border: 1px solid #f59e0b; }
.arrow-down { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.feedback-arc { font-family: var(--font-mono); font-size: 11px; color: #f59e0b; }
.idle-warning-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fcd34d;
}

.analogy-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* ==========================================================
   SLIDE 4: LIVE EXECUTION SIMULATOR
   ========================================================== */
.interactive-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.execution-arena {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
}

.exec-left-box { display: flex; flex-direction: column; gap: 14px; }
.exec-action-bar { display: flex; align-items: center; gap: 12px; }

.run-exec-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.5);
  transition: all var(--transition-fast);
}

.run-exec-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(6, 182, 212, 0.7);
}

.run-exec-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.reset-cta-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.exec-status { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.token-stream-window {
  background: #05070d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  display: flex;
  flex-direction: column;
}

.window-title {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.speed-indicator { color: #34d399; font-weight: 700; }

.stream-content {
  padding: 14px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
}

.prefill-highlight { color: #38bdf8; display: block; margin-bottom: 8px; }
.generated-text { color: #fcd34d; }
.cursor-blink { color: #06b6d4; animation: blink 1s infinite; }

@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Telemetry Column */
.exec-right-telemetry {
  background: #060912;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.telemetry-header {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.meter-group { display: flex; flex-direction: column; gap: 6px; }
.meter-info { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; }
.meter-val { font-weight: 700; color: #38bdf8; }
.highlight-amber { color: #fcd34d; }

.meter-track { height: 10px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
.meter-bar { height: 100%; border-radius: 999px; transition: width 0.3s ease; }
.compute-bar { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.mem-bar { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.telemetry-stat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.t-stat { display: flex; flex-direction: column; gap: 2px; }
.t-stat .label { color: var(--text-dim); }
.t-stat strong { color: #fff; font-size: 12px; }

.interactive-insight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: #cffafe;
}

.insight-icon { font-size: 24px; }

/* ==========================================================
   SLIDE 5: 70GB MEMORY PIPE
   ========================================================== */
.firehose-bus-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.hbm-source-chip, .sm-compute-dest {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.hbm-source-chip { background: rgba(244, 63, 94, 0.15); border: 1px solid #f43f5e; color: #fb7185; }
.sm-compute-dest { background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #34d399; }

.streaming-arrow-pipes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.p-flow {
  width: 4px;
  height: 20px;
  background: #f59e0b;
  animation: flowDown 1s infinite linear;
}

@keyframes flowDown {
  0% { opacity: 0.2; transform: translateY(-4px); }
  50% { opacity: 1; }
  100% { opacity: 0.2; transform: translateY(4px); }
}

.bandwidth-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ==========================================================
   SLIDE 6: SERVING CARDS
   ========================================================== */
.serving-tricks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.trick-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-smooth);
}

.trick-card:hover { transform: translateY(-4px); }

.highlight-trick {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.3);
}

.trick-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}
.trick-badge.purple { color: #c084fc; }

.trick-card h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.trick-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex: 1; }

.trick-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
}
.purple-metric { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.connection-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-lg);
  margin-top: 14px;
}

.banner-icon { font-size: 24px; }
.banner-text { font-size: 14px; line-height: 1.55; color: #e2e8f0; }

/* ==========================================================
   SLIDE 7: FINALE & EPISODE 5 TEASER
   ========================================================== */
.wrapup-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.summary-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.sum-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.sum-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sum-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.sum-card p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

.teaser-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 21, 36, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 15px 40px -10px rgba(16, 185, 129, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teaser-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.08em;
}

.teaser-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.teaser-desc { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

.hardware-clash-tags { display: flex; flex-direction: column; gap: 6px; }

.h-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 6px;
}
.nvidia-tag { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.tpu-tag { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.cpu-tag { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }

.teaser-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.series-countdown { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }

.next-series-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.next-series-btn:hover { background: #fff; color: #000; }

/* ==========================================================
   BOTTOM CONTROLS BAR & SCRIPT DRAWER
   ========================================================== */
.bottom-controls {
  height: 56px;
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.controls-left, .controls-center, .controls-right { display: flex; align-items: center; gap: 12px; }

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.ctrl-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.play-pause-btn {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: #38bdf8;
}

.play-pause-btn:hover { background: rgba(6, 182, 212, 0.25); }

.slide-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  min-width: 85px;
  text-align: center;
}

.keyboard-hints {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
}

.key-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-muted);
}

.script-drawer {
  position: absolute;
  bottom: 56px;
  right: 28px;
  width: 480px;
  max-height: 480px;
  background: rgba(15, 21, 36, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.script-drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.drawer-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.drawer-title-box { display: flex; align-items: center; gap: 10px; }
.drawer-title-box h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: #fff; }

.slide-target-time {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
}

.drawer-actions { display: flex; align-items: center; gap: 10px; }

.voice-speed-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.voice-speed-selector select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 4px;
}

.drawer-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.script-meta-strip {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.script-voice-text {
  font-size: 15px;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre-line;
}

.presenter-tips-box {
  font-size: 12px;
  line-height: 1.5;
  background: rgba(6, 182, 212, 0.08);
  border-left: 3px solid var(--prefill-cyan);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #cffafe;
}

.hidden { display: none !important; }

@media (max-width: 1024px) {
  .split-layout, .wrapup-layout, .execution-arena, .serving-tricks-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .visual-chip-card, .teaser-card { display: none; }
  .script-drawer { width: 90vw; right: 5vw; }
}

/* ==========================================================
   CLEAN RECORDING MODE: Hide presenter tools & dev hints
   ========================================================== */
#btnScriptToggle,
#btnAudioRehearse,
.keyboard-hints,
.controls-center {
  display: none !important;
}
