/* Episode 7: InfiniBand vs Ethernet - Custom Styling */
:root {
  --bg-dark: #080a10;
  --bg-card: rgba(16, 20, 32, 0.75);
  --bg-card-hover: rgba(24, 30, 48, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);

  --ib-violet: #d946ef;
  --ib-glow: rgba(217, 70, 239, 0.25);
  --eth-orange: #f97316;
  --eth-glow: rgba(249, 115, 22, 0.25);
  --uec-blue: #0284c7;
  --uec-glow: rgba(2, 132, 199, 0.25);
  --green-lossless: #10b981;
  --red-alert: #ef4444;
  --amber-warn: #f59e0b;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(217, 70, 239, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(249, 115, 22, 0.05) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

/* TOP NAVIGATION */
.top-nav {
  height: 64px;
  background: rgba(10, 14, 24, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 50;
}

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

.back-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.back-hub-btn:hover {
  color: var(--ib-violet);
  border-color: var(--ib-violet);
  background: rgba(217, 70, 239, 0.08);
}

.series-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ib-violet);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ib-violet);
  box-shadow: 0 0 10px var(--ib-violet);
  animation: pulse 2s infinite;
}

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

.nav-center .current-slide-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.02em;
}

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

.hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover, .hud-btn.active {
  color: #fff;
  border-color: var(--ib-violet);
  background: rgba(217, 70, 239, 0.12);
}

.slide-counter-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--ib-violet);
}

/* SLIDE VIEWPORT */
.slide-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 32px 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.slide-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* TYPOGRAPHY */
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ib-violet);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.ib-tag { color: var(--ib-violet) !important; }
.eth-tag { color: var(--eth-orange) !important; }
.uec-tag { color: var(--uec-blue) !important; }
.alert-tag { color: var(--red-alert) !important; }

.slide h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.slide-desc {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 820px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.ib-gradient {
  background: linear-gradient(135deg, var(--ib-violet) 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eth-gradient {
  background: linear-gradient(135deg, var(--eth-orange) 0%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-ib { color: var(--ib-violet) !important; }
.text-eth { color: var(--eth-orange) !important; }
.text-green { color: var(--green-lossless) !important; }
.text-red { color: var(--red-alert) !important; }
.text-amber { color: var(--amber-warn) !important; }

/* SLIDE 1: HERO FACEOFF */
.hero-header {
  text-align: center;
  margin-bottom: 30px;
}

.hero-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.3);
  color: var(--ib-violet);
}

.glitch-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 780px;
  margin: 0 auto;
}

.faceoff-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.15fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.hero-contender {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
}

.ib-card {
  border-color: rgba(217, 70, 239, 0.3);
  box-shadow: 0 10px 30px -10px rgba(217, 70, 239, 0.15);
}

.eth-card {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.15);
}

.contender-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.ib-card .contender-tag { color: var(--ib-violet); }
.eth-card .contender-tag { color: var(--eth-orange); }

.hero-contender h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 14px;
}

.contender-visual {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.maglev-track {
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(217, 70, 239, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  position: relative;
  overflow: hidden;
}

.maglev-train {
  background: linear-gradient(90deg, var(--ib-violet), #ec4899);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 0 14px var(--ib-violet);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: trainGlide 3s infinite ease-in-out;
}

@keyframes trainGlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(110px); }
}

.train-pulse {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.highway-lanes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.car-lane {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.truck-box {
  color: var(--eth-orange);
  font-weight: 700;
}

.traffic-box {
  color: var(--text-dim);
}

.track-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
  text-align: center;
}

.contender-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.contender-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  line-height: 1.4;
}

.contender-points strong { color: #fff; }

.bullet-ib { color: var(--ib-violet); font-weight: 700; }
.bullet-eth { color: var(--eth-orange); font-weight: 700; }
.bullet-alert { color: var(--red-alert); font-weight: 700; }

.versus-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.vs-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-muted);
}

.vs-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 8px;
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
}

/* SLIDE 2: INFINIBAND PILLARS */
.ib-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-card.highlight-pillar {
  border-color: rgba(217, 70, 239, 0.4);
  background: rgba(217, 70, 239, 0.05);
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.1);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  margin-bottom: 10px;
}

.pillar-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.pillar-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ib-violet);
  background: rgba(217, 70, 239, 0.12);
  border: 1px solid var(--ib-violet);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}

/* SLIDE 3: ROCEV2 STACK */
.roce-architecture-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.roce-concept-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sub-mechanism-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mech-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

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

.mech-header h4 {
  font-size: 15px;
  color: #fff;
}

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

.queue-visualizer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.p-queue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.p-queue.rdma-q {
  border-color: var(--eth-orange);
  background: rgba(249, 115, 22, 0.1);
}

.q-status.ok { color: var(--green-lossless); font-size: 10px; }
.q-status.paused { color: var(--red-alert); font-weight: 700; font-size: 10px; }

.ecn-diagram {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.ecn-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.ecn-step code {
  color: var(--eth-orange);
  font-family: var(--font-mono);
}

.ecn-step.highlight-step {
  border-color: var(--green-lossless);
  color: #fff;
  font-weight: 600;
}

.mech-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* SLIDE 4: SIMULATOR */
.sim-container {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--ib-glow);
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.06);
  border-radius: 12px;
  padding: 24px;
}

.sim-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 24px;
}

.sim-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-control-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.toggle-btn {
  flex: 1;
  min-width: 90px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.toggle-btn:hover {
  border-color: rgba(217, 70, 239, 0.4);
  color: #fff;
}

.toggle-btn.active {
  background: rgba(217, 70, 239, 0.15);
  border-color: var(--ib-violet);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.25);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--eth-orange);
  background: rgba(249, 115, 22, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--eth-orange);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--ib-violet);
  cursor: pointer;
}

.stress-btn {
  padding: 9px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--red-alert);
  color: var(--red-alert);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stress-btn:hover, .stress-btn.active {
  background: var(--red-alert);
  color: #fff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.run-burst-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ib-violet) 0%, #a855f7 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.3);
  transition: all 0.2s ease;
}

.run-burst-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.5);
}

.sim-display-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fabric-viz-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.viz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
}

#fabric-viz-title { color: var(--text-dim); }

.live-status-pill {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
}

.live-status-pill.ib {
  background: rgba(217, 70, 239, 0.15);
  border: 1px solid var(--ib-violet);
  color: var(--ib-violet);
}

.live-status-pill.roce {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid var(--eth-orange);
  color: var(--eth-orange);
}

.live-status-pill.alert {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid var(--red-alert);
  color: var(--red-alert);
  animation: pulse 1s infinite;
}

#fabricCanvas {
  max-width: 100%;
  height: auto;
}

.sim-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gauge-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
}

.g-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.g-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.g-sub {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* SLIDE 5: DARK SIDE OF ROCE */
.dangers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.danger-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.danger-card.deadlock-card {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.04);
}

.danger-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.danger-card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 8px;
}

.danger-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.danger-metric {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.quote-takeaway {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--ib-violet);
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.quote-takeaway strong { color: #fff; }

/* SLIDE 6: ENTER UEC */
.uec-architecture-view {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.uec-features-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uec-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
}

.feat-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--uec-blue);
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid var(--uec-blue);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.uec-feat-card h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.uec-feat-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.uec-coalition-box {
  background: var(--bg-card);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.coalition-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--uec-blue);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 14px;
}

.coalition-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.c-logo {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 8px;
  text-align: center;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}

.coalition-goal {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.coalition-goal strong { color: var(--uec-blue); }

/* SLIDE 7: DECISION MATRIX */
.decision-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.matrix-card.ib-choice {
  border-color: rgba(217, 70, 239, 0.4);
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.1);
}

.matrix-card.eth-choice {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.1);
}

.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.matrix-header h3 {
  font-size: 18px;
  color: #fff;
}

.matrix-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.matrix-tag.ib {
  background: rgba(217, 70, 239, 0.15);
  color: var(--ib-violet);
  border: 1px solid var(--ib-violet);
}

.matrix-tag.eth {
  background: rgba(249, 115, 22, 0.15);
  color: var(--eth-orange);
  border: 1px solid var(--eth-orange);
}

.matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.matrix-list strong { color: #fff; }

.next-episode-teaser {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(0, 245, 255, 0.08) 100%);
  border: 1px solid var(--green-lossless);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.teaser-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--green-lossless);
  margin-bottom: 4px;
  font-weight: 700;
}

.teaser-content h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 4px;
}

.teaser-content p {
  color: var(--text-muted);
  font-size: 13px;
}

.teaser-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-lossless);
  color: #000;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

/* BOTTOM BAR */
.bottom-bar {
  height: 64px;
  background: rgba(10, 14, 24, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 50;
}

.nav-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-control-btn:hover {
  color: #fff;
  border-color: var(--ib-violet);
  background: rgba(217, 70, 239, 0.08);
}

.nav-control-btn.next-primary {
  background: linear-gradient(135deg, var(--ib-violet) 0%, #ec4899 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.3);
}

.nav-control-btn.next-primary:hover {
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.5);
}

.timeline-indicator .dot-track {
  display: flex;
  gap: 10px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.step-dot:hover {
  background: rgba(217, 70, 239, 0.5);
  transform: scale(1.2);
}

.step-dot.active {
  background: var(--ib-violet);
  box-shadow: 0 0 10px var(--ib-violet);
  transform: scale(1.3);
}

/* PRESENTER HUD DRAWER */
.teleprompter-drawer {
  position: absolute;
  bottom: 64px;
  left: 24px;
  right: 24px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(8, 12, 20, 0.96);
  border: 1px solid rgba(217, 70, 239, 0.35);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  border-radius: 12px 12px 0 0;
  z-index: 60;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 260px;
}

.teleprompter-drawer.open {
  transform: translateY(0);
}

.drawer-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ib-violet);
  font-weight: 700;
}

.pulse-mic {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-alert);
  box-shadow: 0 0 6px var(--red-alert);
}

.slide-cue-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-right: 10px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.close-btn:hover { color: #fff; }

.drawer-body {
  padding: 14px 18px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #e5e7eb;
}

.drawer-body p {
  margin-bottom: 8px;
}

.drawer-body strong {
  color: var(--ib-violet);
}

.drawer-footer {
  padding: 6px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.keys-legend {
  display: flex;
  gap: 14px;
}

kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  color: #fff;
}

/* ==========================================================
   CLEAN RECORDING MODE: Hide presenter tools & dev hints
   ========================================================== */
#toggle-voice-btn,
#toggle-teleprompter-btn,
.keys-legend {
  display: none !important;
}
