  :root {
    --bg: #050810;
    --panel: #0b1220;
    --border: #1a2a4a;
    --accent: #00d4ff;
    --accent2: #ff6b00;
    --text: #e8eaf0;
    --muted: #7a95b5;
    --muted2: #6a80a0;
    --zerg: #8b2fc9;
    --terran: #1a8cff;
    --protoss: #ffd700;
    --tag-recap: rgba(0,212,255,0.12);
    --tag-strategy: rgba(255,107,0,0.12);
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;
    --fs-xs: 0.72rem;
    --fs-sm: 0.75rem;
    --fs-base: 0.875rem;
    --fs-md: 1rem;
    --fs-lg: 1.1rem;
    --fs-xl: 1.4rem;
    --fs-2xl: 2rem;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { background: var(--bg); color: var(--text); font-family: 'Exo 2', sans-serif; min-height: 100vh; overflow-x: hidden; }
  body::before {
    content: ''; position: fixed; inset: 0;
    background-image:
      radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
      radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.3) 0%, transparent 100%),
      radial-gradient(1px 1px at 50% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
      radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
      radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
      radial-gradient(2px 2px at 35% 20%, rgba(0,212,255,0.3) 0%, transparent 100%),
      radial-gradient(2px 2px at 70% 85%, rgba(139,47,201,0.3) 0%, transparent 100%);
    pointer-events: none; z-index: 0;
  }

  /* SKIP LINK */
  .skip-link { position: absolute; top: -100px; left: 1rem; background: var(--accent); color: var(--bg); padding: 0.5rem 1rem; font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; z-index: 9999; transition: top 0.2s; text-decoration: none; }
  .skip-link:focus { top: 1rem; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  /* NAV — index overrides: sticky positioning + taller height */
  nav:not(.toc-sidebar) { position: sticky; height: 64px; }
  .nav-logo { letter-spacing: 0.15em; display: inline-flex; }
  .nav-right { display: flex; align-items: center; gap: 2rem; }
  .nav-link.nav-active { color: var(--accent); }

  /* CYRILLIC NAV — Share Tech Mono lacks Cyrillic; Exo 2 covers it */
  html[lang="bg"] .nav-link {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: none;
  }

  /* LANG TOGGLE */
  .lang-toggle { display: flex; border: 1px solid var(--border); overflow: hidden; }
  .lang-btn { padding: 0.35rem 0.85rem; cursor: pointer; background: transparent; border: none; color: var(--muted); font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; transition: all 0.2s; text-transform: uppercase; }
  .lang-btn.active { background: var(--accent); color: var(--bg); font-weight: 700; }
  .lang-btn:not(.active):hover { color: var(--accent); }

  /* HERO */
  .hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; overflow: hidden; isolation: isolate; }

  /* Blob layer — receives parallax transform without breaking individual blob animations */
  .hero-blobs-layer { position: absolute; inset: 0; pointer-events: none; transition: transform 0.12s ease-out; }
  @media (prefers-reduced-motion: reduce) { .hero-blobs-layer { transition: none !important; } }

  /* Morphing blobs (Option 1) */
  .hero-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0; pointer-events: none; will-change: transform, border-radius; }
  .hero-blob-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,212,255,0.22) 0%, transparent 70%); top: -120px; left: -80px; animation: blobFadeIn 1.5s 0.3s ease forwards, blobDrift1 12s 1.5s ease-in-out infinite alternate; }
  .hero-blob-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(139,47,201,0.2) 0%, transparent 70%); bottom: -80px; right: -60px; animation: blobFadeIn 1.5s 0.6s ease forwards, blobDrift2 15s 1.5s ease-in-out infinite alternate; }
  .hero-blob-3 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(255,107,0,0.14) 0%, transparent 70%); top: 30%; right: 15%; animation: blobFadeIn 1.5s 0.9s ease forwards, blobDrift3 11s 1.5s ease-in-out infinite alternate; }
  .hero-blob-4 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(26,140,255,0.12) 0%, transparent 70%); bottom: 15%; left: 10%; animation: blobFadeIn 1.5s 1.1s ease forwards, blobDrift4 14s 1.5s ease-in-out infinite alternate; }
  .hero-blob-5 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(255,215,0,0.11) 0%, transparent 70%); top: -40px; right: 12%; animation: blobFadeIn 1.5s 1.3s ease forwards, blobDrift5 13s 1.5s ease-in-out infinite alternate; }
  .hero-blob-6 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%); top: 42%; left: 28%; animation: blobFadeIn 1.5s 1.5s ease forwards, blobDrift6 10s 1.5s ease-in-out infinite alternate; }
  .hero-blob-7 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(100,60,210,0.13) 0%, transparent 70%); bottom: -30px; left: 42%; animation: blobFadeIn 1.5s 1.7s ease forwards, blobDrift7 16s 1.5s ease-in-out infinite alternate; }
  @keyframes blobFadeIn { to { opacity: 1; } }
  @keyframes blobDrift1 { 0% { transform: translate(0,0) scale(1); border-radius:50%; } 33% { transform: translate(60px,40px) scale(1.08); border-radius:44% 56% 60% 40%/50% 44% 56% 50%; } 66% { transform: translate(-30px,80px) scale(0.95); border-radius:58% 42% 48% 52%/42% 58% 52% 48%; } 100% { transform: translate(40px,-30px) scale(1.04); border-radius:50% 50% 40% 60%/55% 45% 55% 45%; } }
  @keyframes blobDrift2 { 0% { transform: translate(0,0) scale(1); border-radius:50%; } 33% { transform: translate(-50px,-60px) scale(1.1); border-radius:60% 40% 50% 50%/45% 55% 45% 55%; } 66% { transform: translate(40px,-30px) scale(0.92); border-radius:42% 58% 55% 45%/58% 42% 52% 48%; } 100% { transform: translate(-20px,50px) scale(1.06); border-radius:55% 45% 42% 58%/48% 52% 48% 52%; } }
  @keyframes blobDrift3 { 0% { transform: translate(0,0) scale(1); border-radius:50%; } 50% { transform: translate(-70px,50px) scale(1.12); border-radius:48% 52% 58% 42%/55% 45% 55% 45%; } 100% { transform: translate(50px,-40px) scale(0.9); border-radius:62% 38% 45% 55%/42% 58% 45% 55%; } }
  @keyframes blobDrift4 { 0% { transform: translate(0,0) scale(1); border-radius:50%; } 50% { transform: translate(60px,-50px) scale(1.08); border-radius:52% 48% 40% 60%/58% 42% 58% 42%; } 100% { transform: translate(-40px,40px) scale(0.94); border-radius:40% 60% 55% 45%/48% 52% 45% 55%; } }
  @keyframes blobDrift5 { 0% { transform: translate(0,0) scale(1); border-radius:50%; } 40% { transform: translate(-55px,45px) scale(1.1); border-radius:55% 45% 48% 52%/46% 54% 50% 50%; } 100% { transform: translate(35px,60px) scale(0.92); border-radius:45% 55% 58% 42%/54% 46% 44% 56%; } }
  @keyframes blobDrift6 { 0% { transform: translate(0,0) scale(1); border-radius:50%; } 50% { transform: translate(45px,-55px) scale(1.15); border-radius:50% 50% 44% 56%/60% 40% 56% 44%; } 100% { transform: translate(-35px,30px) scale(0.88); border-radius:58% 42% 52% 48%/44% 56% 48% 52%; } }
  @keyframes blobDrift7 { 0% { transform: translate(0,0) scale(1); border-radius:50%; } 33% { transform: translate(-45px,-40px) scale(1.06); border-radius:46% 54% 60% 40%/52% 48% 52% 48%; } 66% { transform: translate(55px,-25px) scale(0.96); border-radius:56% 44% 44% 56%/40% 60% 52% 48%; } 100% { transform: translate(20px,50px) scale(1.1); border-radius:50% 50% 56% 44%/58% 42% 50% 50%; } }

  /* Diagonal grid pulse (Option 3) */
  .hero-grid { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .hero-grid::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,212,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,0.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 80%); }
  .hero-grid::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(45deg, rgba(139,47,201,0.035) 1px, transparent 1px), linear-gradient(-45deg, rgba(0,212,255,0.025) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 75%); animation: gridShimmer 5s ease-in-out infinite; }
  @keyframes gridShimmer { 0%, 100% { opacity: 0.6; } 50% { opacity: 1.0; } }

  /* Pulsing grid nodes */
  .hero-grid-nodes { position: absolute; inset: 0; pointer-events: none; }
  .grid-node { position: absolute; width: 3px; height: 3px; background: var(--accent); border-radius: 50%; opacity: 0; animation: nodePulse var(--dur) var(--delay) ease-in-out infinite; }
  @keyframes nodePulse { 0%, 100% { opacity: 0; transform: scale(0.8); } 50% { opacity: 0.35; transform: scale(1.3); box-shadow: 0 0 4px var(--accent); } }

  /* Vignette for text legibility */
  .hero-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 75% at 50% 50%, transparent 30%, rgba(5,8,16,0.55) 100%); }

  /* Desktop-only animations */
  @media (max-width: 1024px) {
    .hero-blob { animation: none !important; opacity: 0.6 !important; }
    .hero-grid::after { animation: none !important; }
    .grid-node { display: none !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-blob, .hero-grid::after, .grid-node { animation: none !important; }
    .grid-node { display: none !important; }
  }

  .hero-content { position: relative; z-index: 2; max-width: 800px; }
  .hero-eyebrow { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.8s 0.2s forwards; }
  .hero-title { font-family: 'Exo 2', sans-serif; font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1; margin-bottom: 0.3em; opacity: 0; animation: fadeUp 0.8s 0.4s forwards; }
  .hero-title .star { color: var(--accent); text-shadow: 0 0 40px rgba(0,212,255,0.8), 0 0 80px rgba(0,212,255,0.3); }
  .hero-title .kraft { color: #fff; }
  .hero-title .ika { color: var(--accent2); text-shadow: 0 0 40px rgba(255,107,0,0.8), 0 0 80px rgba(255,107,0,0.3); }
  .hero-subtitle { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 1.5rem auto 2.5rem; line-height: 1.7; font-weight: 300; opacity: 0; animation: fadeUp 0.8s 0.6s forwards; }
  .hero-subtitle strong { color: var(--text); font-weight: 600; }
  .hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s 0.8s forwards; }
  .btn { font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.8rem 2rem; border: 1px solid; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block; }
  .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
  .btn-primary:hover { background: transparent; color: var(--accent); box-shadow: 0 0 30px rgba(0,212,255,0.3); }
  .btn-secondary { background: rgba(11,18,32,0.7); border-color: var(--border); color: var(--muted); backdrop-filter: blur(4px); }
  .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
  .race-badges { display: flex; justify-content: center; gap: 1rem; margin-top: 4rem; opacity: 0; animation: fadeUp 0.8s 1s forwards; }
  .race-badge { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.4rem 1rem; border: 1px solid; opacity: 0.7; }
  .race-badge.terran { border-color: var(--terran); color: var(--terran); }
  .race-badge.zerg { border-color: var(--zerg); color: var(--zerg); }
  .race-badge.protoss { border-color: var(--protoss); color: var(--protoss); }
  .hero-tip { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; padding: 0.75rem 1.25rem; border: 1px solid rgba(0,212,255,0.2); border-left: 3px solid var(--accent); background: rgba(0,212,255,0.04); backdrop-filter: blur(8px); max-width: 580px; margin-left: auto; margin-right: auto; opacity: 0; animation: fadeUp 0.8s 1.2s forwards; flex-wrap: wrap; }
  .hero-tip-label { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--accent); flex-shrink: 0; }
  .hero-tip-text { font-family: 'Exo 2', sans-serif; font-size: 0.85rem; color: var(--muted); line-height: 1.6; flex: 1; transition: opacity 0.2s; }
  .hero-tip-refresh { background: transparent; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 0 0.25rem; transition: all 0.2s; flex-shrink: 0; line-height: 1; }
  .hero-tip-refresh:hover { color: var(--accent); transform: rotate(180deg); }

  /* SECTIONS */
  section { position: relative; z-index: 1; padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
  .section-label { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.75rem; }
  .section-title { font-family: 'Exo 2', sans-serif; font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; color: #fff; }
  .section-desc { color: var(--muted); max-width: 560px; line-height: 1.7; font-weight: 300; margin-bottom: 3rem; }
  .divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); position: relative; z-index: 1; }

  /* EPISODES */
  .episodes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1.5rem; }
  .episode-card { background: var(--panel); border: 1px solid var(--border); overflow: hidden; transition: all 0.2s; }
  /* episode-card hover → see micro-interactions block */
  .video-placeholder { position: relative; padding-top: 56.25%; background: #060c18; overflow: hidden; }
  .video-placeholder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
  .episode-meta { padding: 1.25rem; }
  .episode-num { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 0.4rem; }
  .episode-title { font-family: 'Exo 2', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; line-height: 1.3; }
  .episode-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
  .episode-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
  .tag { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; padding: 0.2rem 0.6rem; border: 1px solid var(--border); color: var(--muted); text-transform: uppercase; }
  .tag.terran { border-color: var(--terran); color: var(--terran); }
  .tag.zerg { border-color: var(--zerg); color: var(--zerg); }
  .tag.protoss { border-color: var(--protoss); color: var(--protoss); }

  /* TOPICS — Bento Grid 2.0 */
  .topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  /* Asymmetric span rules — creates alternating wide-card rhythm */
  .topics-grid .topic-card:nth-child(1) { grid-column: span 2; }
  .topics-grid .topic-card:nth-child(7) { grid-column: span 2; }
  .topics-grid .topic-card:nth-child(8) { grid-column: span 2; }

  .topic-card {
    background: var(--panel); border: 1px solid var(--border);
    padding: 1.5rem; transition: border-color 0.2s, background 0.2s;
  }
  .topic-card:hover { border-color: var(--accent); background: rgba(0,212,255,0.03); }

  /* Featured cards get a distinct left-border accent */
  .topics-grid .topic-card:nth-child(1) { border-left: 3px solid var(--accent); }
  .topics-grid .topic-card:nth-child(7) { border-left: 3px solid var(--protoss); }
  .topics-grid .topic-card:nth-child(8) { border-left: 3px solid var(--accent2); }

  /* Featured card: slightly larger icon + name */
  .topics-grid .topic-card:nth-child(1) .topic-icon,
  .topics-grid .topic-card:nth-child(7) .topic-icon,
  .topics-grid .topic-card:nth-child(8) .topic-icon { width: 2.25rem; height: 2.25rem; }
  .topics-grid .topic-card:nth-child(1) .topic-name,
  .topics-grid .topic-card:nth-child(7) .topic-name,
  .topics-grid .topic-card:nth-child(8) .topic-name { font-size: 1rem; }

  .topic-icon { width: 1.75rem; height: 1.75rem; margin-bottom: 0.75rem; color: var(--accent); }
  .topic-icon svg { width: 100%; height: 100%; }
  .topic-name { font-family: 'Exo 2', sans-serif; font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
  .topic-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

  /* HOST */
  .host-card { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: start; background: var(--panel); border: 1px solid var(--border); padding: 2.5rem; max-width: 960px; }
  .host-avatar { width: 100px; height: 100px; flex-shrink: 0; object-fit: cover; border: 2px solid var(--border); }
  .host-name { font-family: 'Exo 2', sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
  .host-alias { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--accent); letter-spacing: 0.2em; margin-bottom: 0.75rem; }
  .host-bio { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

  /* CHAT */
  .chat-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
  .chat-info h3 { font-family: 'Exo 2', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
  .chat-info p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
  .chat-features { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
  .chat-features li { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
  .chat-features li::before { content: '▶'; color: var(--accent); font-size: 0.72rem; }
  .chatbox { background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; height: 500px; }
  .chat-header { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; }
  .chat-status { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 8px #00ff88; animation: pulse 2s infinite; }
  .chat-header-title { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.15em; color: var(--text); }
  .chat-messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
  .msg { display: flex; flex-direction: column; max-width: 85%; }
  .msg.user { align-self: flex-end; align-items: flex-end; }
  .msg.bot { align-self: flex-start; align-items: flex-start; }
  .msg-sender { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 0.3rem; text-transform: uppercase; }
  .msg.bot .msg-sender { color: var(--accent); }
  .msg-bubble { padding: 0.75rem 1rem; font-size: 0.85rem; line-height: 1.6; }
  .msg.user .msg-bubble { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); color: var(--text); }
  .msg.bot .msg-bubble { background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text); }
  .typing-indicator { display: flex; gap: 4px; align-items: center; padding: 0.75rem 1rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border); width: fit-content; }
  .typing-indicator span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: bounce 1.2s infinite; }
  .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
  .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
  .typing-label { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.15em; color: var(--muted); margin-top: 0.4rem; animation: thinkingFade 1.8s ease-in-out infinite; }
  @keyframes thinkingFade { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
  .chat-input-area { border-top: 1px solid var(--border); display: flex; }
  .chat-reset { background: transparent; border: none; border-right: 1px solid var(--border); padding: 0 0.85rem; color: var(--muted); font-size: 1.1rem; cursor: pointer; transition: color 0.2s; flex-shrink: 0; line-height: 1; }
  .chat-reset:hover { color: var(--accent2); }
  .chat-input { flex: 1; background: transparent; border: none; padding: 1rem 1.25rem; font-family: 'Exo 2', sans-serif; font-size: 0.85rem; color: var(--text); outline: none; }
  .chat-input::placeholder { color: var(--muted); }
  .chat-send { background: var(--accent); border: none; padding: 0 1.5rem; color: var(--bg); font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.15em; cursor: pointer; transition: background 0.2s; text-transform: uppercase; }
  .chat-send:hover { background: #00b8d9; }
  .chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

  .lesson-bubble { background: rgba(0,212,255,0.04) !important; border: 1px solid rgba(0,212,255,0.2) !important; border-left: 3px solid var(--accent) !important; }
  .lesson-intro { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; }
  .lesson-intro strong { color: var(--text); }
  .lesson-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--bg); background: var(--accent); padding: 0.45rem 1rem; text-decoration: none; transition: all 0.2s; text-transform: uppercase; }
  .lesson-link:hover { background: transparent; color: var(--accent); outline: 1px solid var(--accent); }
  /* ASK AI BUTTON */
  .ask-ai-btn { width: 100%; margin-top: 0.85rem; padding: 0.55rem 1rem; background: transparent; border: 1px solid rgba(0,212,255,0.25); color: var(--accent); font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; text-align: center; opacity: 0; transform: translateY(4px); pointer-events: none; }
  .episode-card:hover .ask-ai-btn, .episode-card:focus-within .ask-ai-btn { opacity: 1; transform: translateY(0); pointer-events: all; }
  .ask-ai-btn:hover { background: rgba(0,212,255,0.08); border-color: var(--accent); }
  @media (hover: none) { .ask-ai-btn { opacity: 1; transform: none; pointer-events: all; } }
  @media (max-width: 768px) { .ask-ai-btn { opacity: 1; transform: none; pointer-events: all; } }

  .playlist-block { max-width: 1200px; margin: 2.5rem auto 0; padding: 0 2rem; }
  .playlist-inner { display: flex; align-items: center; gap: 2rem; background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, rgba(255,107,0,0.04) 100%); border: 1px solid rgba(0,212,255,0.2); border-left: 3px solid var(--accent); padding: 1.75rem 2rem; position: relative; }
  .playlist-inner::before { content:''; position:absolute; inset:0; background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(0,212,255,0.015) 8px, rgba(0,212,255,0.015) 9px); pointer-events:none; }
  .playlist-badge { font-family: 'Exo 2', sans-serif; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--accent); background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.25); padding: 0.35rem 0.75rem; white-space: nowrap; align-self: flex-start; }
  .playlist-text { flex: 1; }
  .playlist-title { font-family: 'Exo 2', sans-serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
  .playlist-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.75rem; }
  .playlist-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .playlist-chip { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--accent); border: 1px solid rgba(0,212,255,0.3); padding: 0.25rem 0.6rem; }
  .playlist-btn { display: inline-flex; align-items: center; gap: 0.6rem; font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--bg); background: var(--accent); border: none; padding: 0.75rem 1.5rem; text-decoration: none; white-space: nowrap; transition: all 0.2s; text-transform: uppercase; }
  .playlist-btn:hover { background: transparent; color: var(--accent); outline: 1px solid var(--accent); }
  @media (max-width: 768px) {
    .playlist-block { padding: 0 1.25rem; }
    .playlist-inner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
    .playlist-btn { width: 100%; justify-content: center; }
  }
  footer { position: relative; z-index: 1; border-top: 1px solid var(--border); margin-top: 2rem; }
  .footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 2rem; }
  .footer-logo { font-family: 'Exo 2', sans-serif; font-size: 1.1rem; font-weight: 900; color: var(--accent); text-shadow: 0 0 20px var(--accent); margin-bottom: 0.75rem; }
  .footer-tagline { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.5rem; }
  .footer-collab { font-size: 0.85rem; color: var(--muted); }
  .footer-collab a { color: var(--accent); text-decoration: none; }
  .footer-collab a:hover { text-decoration: underline; }
  .footer-col-title { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.25em; color: var(--accent); text-transform: uppercase; margin-bottom: 1rem; }
  .footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
  .footer-links a { font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; color: var(--muted); text-decoration: none; cursor: pointer; transition: color 0.2s; letter-spacing: 0.05em; }
  .footer-links a:hover { color: var(--accent); }
  .footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 2rem; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.4rem; }
  .footer-bottom span { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; line-height: 1.6; }
  .footer-disclaimer { opacity: 0.6; }
  .footer-socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
  .footer-social-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); color: var(--muted); transition: all 0.2s; }
  .footer-social-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,212,255,0.06); }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
  @keyframes bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  @media (max-width: 768px) {

    /* Nav */
    nav:not(.toc-sidebar) { padding: 0 1rem; height: 56px; }
    .nav-logo { font-size: 1rem; letter-spacing: 0.08em; }
    .nav-right { gap: 0.75rem; }

    /* Hero */
    .hero { min-height: 80vh; padding: 2rem 1.25rem; }
    .hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.15em; }
    .hero-title { font-size: clamp(2.4rem, 14vw, 3.5rem); }
    .hero-subtitle { font-size: 0.85rem; margin: 1rem auto 1.75rem; }
    .btn { font-size: 0.72rem; padding: 0.7rem 1.25rem; }
    .race-badges { gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
    .race-badge { font-size: 0.72rem; padding: 0.3rem 0.7rem; }

    /* Sections */
    section { padding: 3rem 1.25rem; }
    .section-title { font-size: clamp(1.3rem, 6vw, 2rem); }
    .section-desc { font-size: 0.85rem; margin-bottom: 2rem; }

    /* Episodes */
    .episodes-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .episode-title { font-size: 0.85rem; }
    .episode-desc { font-size: 0.75rem; }

    /* Topics — mobile carousel */
    .topics-grid {
      display: flex; overflow-x: auto; gap: 1rem;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 0.75rem;
      margin-left: -1.25rem; margin-right: -1.25rem;
      padding-left: 1.25rem; padding-right: 1.25rem;
    }
    .topics-grid .topic-card {
      min-width: 220px; flex-shrink: 0;
      scroll-snap-align: start; padding: 1rem;
    }
    /* Reset desktop span rules on mobile */
    .topics-grid .topic-card:nth-child(1),
    .topics-grid .topic-card:nth-child(7),
    .topics-grid .topic-card:nth-child(8) { grid-column: unset; min-width: 240px; }
    .topics-grid::-webkit-scrollbar { height: 3px; }
    .topics-grid::-webkit-scrollbar-track { background: var(--border); }
    .topics-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

    /* Host */
    .host-card { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
    .host-avatar { width: 72px; height: 72px; }
    .host-name { font-size: 1rem; }

    /* Chat */
    .chat-wrapper { grid-template-columns: 1fr; gap: 1.5rem; }
    .chatbox { height: 420px; }
    .chat-reset { background: transparent; border: none; border-right: 1px solid var(--border); padding: 0 0.85rem; color: var(--muted); font-size: 1.1rem; cursor: pointer; transition: color 0.2s; flex-shrink: 0; line-height: 1; }
  .chat-reset:hover { color: var(--accent2); }
  .chat-input { font-size: 16px; } /* prevents iOS zoom on focus */
    .chat-send { padding: 0 1rem; font-size: 0.72rem; }

    /* Quiz */
    .quiz-mode-toggle { gap: 0.5rem; }
    .quiz-mode-btn { font-size: 0.72rem; padding: 0.5rem 0.9rem; letter-spacing: 0.06em; }
    .quiz-box { padding: 1.25rem; }
    .quiz-question { font-size: 0.85rem; }
    .quiz-option { font-size: 0.85rem; padding: 0.75rem 1rem; }
    .quiz-score-num { font-size: 2.5rem; }
    .quiz-next-btn { font-size: 0.72rem; padding: 0.6rem 1.25rem; }

    /* Cookie banner */
    #cookieBanner { padding: 1rem 1.25rem; gap: 1rem; flex-direction: column; align-items: flex-start; }
    #cookieBanner > div:last-child { width: 100%; justify-content: stretch; }
    #cookieBanner button { flex: 1; text-align: center; }

    /* Cookie modal */
    #cookieModal > div { padding: 1.25rem; }

    /* Hero tip */
    .hero-tip { padding: 0.6rem 1rem; gap: 0.5rem; }
    .hero-tip-text { font-size: 0.75rem; }

    /* Legal modal */
    #legalModal > div { margin: 1rem; padding: 1.5rem; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.75rem; padding: 2rem 1.25rem 1.5rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { padding: 1rem 1.25rem; }
  }

  @media (max-width: 400px) {
    .hero-title { font-size: clamp(2rem, 16vw, 2.8rem); }
    .footer-inner { grid-template-columns: 1fr; }
  }

  /* QUIZ */
  .quiz-mode-toggle { display:flex; gap:1rem; margin-bottom:2rem; flex-wrap:wrap; }
  .quiz-mode-btn { font-family:'Share Tech Mono',monospace; font-size:0.75rem; letter-spacing:0.12em; padding:0.6rem 1.5rem; background:transparent; border:1px solid var(--border); color:var(--muted); cursor:pointer; text-transform:uppercase; transition:all 0.2s; }
  .quiz-mode-btn.active { border-color:var(--accent); color:var(--accent); box-shadow:0 0 12px rgba(0,212,255,0.2); }
  .quiz-mode-btn:hover:not(.active) { border-color:var(--muted); color:var(--text); }
  .quiz-box { background:var(--panel); border:1px solid var(--border); padding:2rem; max-width:760px; margin:0 auto; }
  .quiz-progress { font-family:'Share Tech Mono',monospace; font-size:0.72rem; color:var(--muted); letter-spacing:0.15em; margin-bottom:0.75rem; }
  .quiz-progress-bar { height:3px; background:var(--border); margin-bottom:1.5rem; }
  .quiz-progress-fill { height:3px; background:var(--accent); transition:width 0.4s ease; }
  .quiz-question { font-size:1rem; color:var(--text); line-height:1.6; margin-bottom:1.5rem; font-weight:600; }
  .quiz-options { display:grid; gap:0.75rem; }
  .quiz-option { font-family:'Exo 2',sans-serif; font-size:0.85rem; padding:0.85rem 1.2rem; background:transparent; border:1px solid var(--border); color:var(--text); cursor:pointer; text-align:left; transition:all 0.2s; letter-spacing:0.02em; }
  /* quiz-option hover → see micro-interactions block */
  .quiz-option.correct { border-color:#00e676; color:#00e676; background:rgba(0,230,118,0.08); }
  .quiz-option.wrong { border-color:#ff5252; color:#ff5252; background:rgba(255,82,82,0.08); }
  .quiz-option.reveal { border-color:#00e676; color:#00e676; background:rgba(0,230,118,0.05); }
  .quiz-option:disabled { cursor:default; }
  .quiz-explanation { margin-top:1.25rem; padding:1rem 1.25rem; background:rgba(0,212,255,0.05); border-left:3px solid var(--accent); font-size:0.85rem; color:var(--muted); line-height:1.7; display:none; }
  .quiz-explanation.show { display:block; }
  .quiz-next-btn { margin-top:1.5rem; font-family:'Share Tech Mono',monospace; font-size:0.75rem; letter-spacing:0.12em; padding:0.7rem 2rem; background:var(--accent); border:none; color:var(--bg); cursor:pointer; text-transform:uppercase; font-weight:700; transition:all 0.2s; display:none; }
  .quiz-next-btn.show { display:inline-block; }
  .quiz-next-btn:hover { background:transparent; color:var(--accent); outline:1px solid var(--accent); }
  .quiz-score { text-align:center; padding:2rem 1rem; }
  .quiz-score-num { font-family:'Exo 2',sans-serif; font-size:3.5rem; font-weight:900; color:var(--accent); text-shadow:0 0 30px rgba(0,212,255,0.5); }
  .quiz-score-label { font-family:'Share Tech Mono',monospace; font-size:0.85rem; color:var(--muted); letter-spacing:0.2em; margin-top:0.5rem; }
  .quiz-score-msg { font-size:1rem; color:var(--text); margin:1.5rem 0; line-height:1.6; }
  .quiz-restart-btn { font-family:'Share Tech Mono',monospace; font-size:0.75rem; letter-spacing:0.12em; padding:0.7rem 2rem; background:transparent; border:1px solid var(--accent); color:var(--accent); cursor:pointer; text-transform:uppercase; transition:all 0.2s; }
  .quiz-restart-btn:hover { background:var(--accent); color:var(--bg); }
  .quiz-ai-note { font-size:0.75rem; color:var(--muted); font-family:'Share Tech Mono',monospace; letter-spacing:0.08em; margin-bottom:1.5rem; }
  .quiz-loading { text-align:center; padding:2rem; }
  .quiz-loading .typing-indicator { justify-content:center; display:flex; gap:6px; }
  .quiz-ep-tag { font-family:'Share Tech Mono',monospace; font-size:0.6rem; color:var(--accent2); letter-spacing:0.15em; margin-bottom:0.5rem; }

  /* ── BACK TO TOP ─────────────────────────────────────── */
  .back-to-top { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 200; width: 40px; height: 40px; background: var(--panel); border: 1px solid var(--border); color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(12px); transition: all 0.2s; pointer-events: none; font-size: 1rem; line-height: 1; }
  .back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
  .back-to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  @media (max-width: 768px) { .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 36px; height: 36px; } }



  /* Cookie banner & modal structural helpers */
  .u-cookie-wrap    { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
  .u-cookie-title   { font-family: 'Exo 2', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0.05em; }
  .u-cookie-body    { font-size: 0.85rem; color: var(--muted); line-height: 1.8; }
  .u-cookie-btns    { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
  .u-cookie-col     { flex: 1; min-width: 260px; }
  .u-cookie-icon    { color: var(--accent); flex-shrink: 0; }
  .u-cookie-head    { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }
  .u-modal-section  { display: flex; gap: 0.4rem; margin: 0.2rem 0; }
  .u-modal-h2b      { font-family: 'Exo 2', sans-serif; font-size: 1.1rem; color: var(--accent); margin-bottom: 1rem; }
  .u-modal-muted    { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
  #cookieText { font-size: 0.85rem; color: var(--text); line-height: 1.7; }
  #cookieText u strong { color: var(--accent2); text-decoration-color: var(--accent2); text-underline-offset: 3px; }
  .u-quiz-err-box   { padding: 2rem; color: #ff5252; font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; }


  /* Cookie banner */
  #cookieBanner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: rgba(8,13,26,0.97); border-top: 1px solid var(--border); backdrop-filter: blur(16px); padding: 1.25rem 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; transform: translateY(120%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
  #cookieBanner.visible { transform: translateY(0); }
  /* Legal modal overlay */
  #legalModal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.85); backdrop-filter: blur(4px); overflow-y: auto; }
  .legal-modal-inner { max-width: 700px; margin: 4rem auto; background: var(--panel); border: 1px solid var(--border); padding: 2.5rem; position: relative; }
  .legal-modal-close { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
  /* Consent modal */
  #consentModal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); overflow-y: auto; }
  .consent-modal-inner { background: var(--panel); border: 1px solid var(--border); max-width: 640px; width: 100%; margin: 10vh auto; padding: 2rem; position: relative; }
  .consent-modal-close { background: transparent; border: 1px solid var(--border); color: var(--muted); width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
  .consent-modal-close:hover { border-color: var(--accent); color: var(--accent); }
  .consent-category-title { font-family: 'Exo 2', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; }
  .consent-category-body { font-size: 0.85rem; color: var(--muted); line-height: 1.8; }
  .consent-modal-title { font-family: 'Exo 2', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0.05em; }
  .quiz-mono-label { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--accent); letter-spacing: 0.15em; }

  /* ── UTILITY CLASSES (replaces inline styles) ───────────────── */
  .u-accent        { color: var(--accent); }
  .u-accent-link   { color: var(--accent); text-decoration: none; }
  .u-accent-link-u { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); }
  .u-text          { color: var(--text); }
  .u-muted         { color: var(--muted); }
  .u-muted-body    { font-size: 0.85rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
  .u-muted-sm      { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
  .u-mt-sm         { margin-top: 1.5rem; }
  .u-mt-md         { margin-top: 2rem; }
  .u-mb-0          { margin-bottom: 0; }
  .u-shrink-0      { flex-shrink: 0; }
  .u-centered      { text-align: center; padding: 2rem 0; }
  .u-constrained   { max-width: 760px; margin: 0 auto; }
  .u-modal-h2      { font-family: 'Exo 2', sans-serif; color: var(--accent); font-size: 1.1rem; margin-bottom: 1.5rem; }
  .u-modal-h3      { font-family: 'Exo 2', sans-serif; color: var(--text); font-size: 0.85rem; margin: 1.5rem 0 0.5rem; }
  .u-modal-h3-accent { font-family: 'Exo 2', sans-serif; font-size: 0.85rem; color: var(--accent); margin: 0.75rem 0 0.3rem; }
  .u-modal-h4      { font-family: 'Exo 2', sans-serif; font-size: 0.75rem; color: var(--accent); margin: 0.75rem 0 0.3rem; }
  .u-quiz-error    { padding: 2rem; color: #ff5252; font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; }


  /* ═══════════════════════════════════════════════════════
     MICRO-INTERACTIONS
     All transforms use will-change for GPU compositing.
     prefers-reduced-motion: no transforms/animations.
  ═══════════════════════════════════════════════════════ */

  /* ── 1. BUTTONS — scale lift + press ──────────────────── */
  .btn:hover                         { transform: scale(1.03); }
  .btn:active                        { transform: scale(0.97); }
  .btn-primary:hover                 { transform: scale(1.03); box-shadow: 0 0 28px rgba(0,212,255,0.35), 0 4px 16px rgba(0,0,0,0.3); }
  .btn-primary:active                { transform: scale(0.97); box-shadow: none; }
  .btn-secondary:hover               { transform: scale(1.03); }
  .btn-secondary:active              { transform: scale(0.97); }
  .chat-send:hover                   { transform: scale(1.03); background: #00b8d9; }
  .chat-send:active                  { transform: scale(0.97); }
  .playlist-btn:hover                { transform: scale(1.02); }
  .playlist-btn:active               { transform: scale(0.98); }
  .quiz-restart-btn:hover            { transform: scale(1.03); }
  .quiz-restart-btn:active           { transform: scale(0.97); }
  .quiz-next-btn:hover               { transform: scale(1.02); }
  .quiz-next-btn:active              { transform: scale(0.98); }
  .ep-filter-btn:hover               { transform: translateY(-1px); }
  .ep-filter-btn:active              { transform: translateY(0); }
  .lang-btn:hover                    { transform: translateY(-1px); }

  /* ── 2. EPISODE CARDS — glow ring + inner label scale ── */
  .episode-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px var(--accent),
                0 12px 40px rgba(0,212,255,0.12),
                0 4px 16px rgba(0,0,0,0.4);
  }
  .episode-card:active {
    transform: translateY(-2px);
  }
  .episode-card:hover .episode-num {
    color: var(--accent);
    text-shadow: 0 0 12px rgba(0,212,255,0.5);
    transition: color 0.2s, text-shadow 0.2s;
  }
  .episode-card:hover .episode-title {
    color: #fff;
    transition: color 0.2s;
  }

  /* ── 3. QUIZ OPTIONS — label slide ────────────────────── */
  .quiz-option {
    transition: all 0.2s;
  }
  .quiz-option:hover:not(:disabled) {
    border-color: var(--accent);
    color: #fff;
    background: rgba(0,212,255,0.05);
    transform: translateX(4px);
  }
  .quiz-option:active:not(:disabled) {
    transform: translateX(2px);
  }

  /* ── 4. BACK TO TOP — arrow lift ──────────────────────── */
  .back-to-top:hover {
    background: rgba(0,212,255,0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,212,255,0.2);
  }
  .back-to-top:active {
    transform: translateY(0);
  }

  /* ── 5. CHAT RESET — full spin ────────────────────────── */
  .chat-reset {
    transition: color 0.2s, transform 0.4s ease;
  }
  .chat-reset:hover {
    color: var(--accent2);
    transform: rotate(360deg);
  }

  /* ── REDUCED MOTION — strip all transforms ─────────────── */
  @media (prefers-reduced-motion: reduce) {
    .btn, .btn-primary, .btn-secondary,
    .chat-send, .playlist-btn, .quiz-restart-btn,
    .quiz-next-btn, .ep-filter-btn, .lang-btn,
    .episode-card, .quiz-option,
    .back-to-top, .chat-reset {
      transform: none !important;
      box-shadow: none !important;
      transition: color 0.2s, background 0.2s, border-color 0.2s !important;
    }
  }



  /* ── EPISODE FILTER BAR ─────────────────────────────────── */
  .ep-filter-bar {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin-bottom: 1.75rem;
  }
  .ep-filter-btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    position: relative; overflow: hidden;
  }
  /* Shimmer sweep on hover */
  .ep-filter-btn::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transition: left 0.35s ease;
  }
  .ep-filter-btn:hover::before { left: 100%; }
  .ep-filter-btn:hover {
    border-color: var(--accent); color: var(--accent);
    transform: translateY(-1px);
  }
  .ep-filter-btn:active { transform: translateY(0); }

  /* Active state — filled with race colour */
  .ep-filter-btn.active {
    color: var(--bg); font-weight: 700;
    border-color: transparent;
  }
  .ep-filter-btn[data-ep-filter="all"].active      { background: var(--accent); box-shadow: 0 0 16px rgba(0,212,255,0.35); }
  .ep-filter-btn[data-ep-filter="zerg"].active     { background: var(--zerg);   box-shadow: 0 0 16px rgba(139,47,201,0.45); }
  .ep-filter-btn[data-ep-filter="terran"].active   { background: var(--terran); box-shadow: 0 0 16px rgba(26,140,255,0.45); }
  .ep-filter-btn[data-ep-filter="protoss"].active  { background: var(--protoss); color: #1a1000; box-shadow: 0 0 16px rgba(255,215,0,0.35); }
  .ep-filter-btn[data-ep-filter="interview"].active { background: var(--accent2); box-shadow: 0 0 16px rgba(255,107,0,0.35); }

  /* Hover colours when not active */
  .ep-filter-btn[data-ep-filter="zerg"]:not(.active):hover      { border-color: var(--zerg);    color: var(--zerg); }
  .ep-filter-btn[data-ep-filter="terran"]:not(.active):hover    { border-color: var(--terran);  color: var(--terran); }
  .ep-filter-btn[data-ep-filter="protoss"]:not(.active):hover   { border-color: var(--protoss); color: var(--protoss); }
  .ep-filter-btn[data-ep-filter="interview"]:not(.active):hover { border-color: var(--accent2); color: var(--accent2); }

  .episode-card.ep-hidden { display: none !important; }

  @media (max-width: 768px) {
    .ep-filter-bar {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      gap: 0.4rem;
      padding-bottom: 0.5rem;
      scrollbar-width: none;
    }
    .ep-filter-bar::-webkit-scrollbar { display: none; }
    .ep-filter-btn { flex-shrink: 0; font-size: 0.65rem; padding: 0.4rem 0.85rem; }
  }

  /* ── MILESTONE SECTIONS ──────────────────────────────── */
  .milestone-section { margin-bottom: 3.5rem; }

  .milestone-divider {
    position: relative; overflow: hidden;
    padding: 1.75rem 2rem; margin-bottom: 1.25rem;
    border: 1px solid var(--border);
  }
  .milestone-divider::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.015) 10px, rgba(255,255,255,0.015) 11px);
  }
  /* Themed left-border + background tints */
  .milestone-fundamentals {
    background: linear-gradient(135deg, rgba(26,140,255,0.09) 0%, rgba(5,8,16,0.0) 55%);
    border-left: 3px solid var(--terran);
  }
  .milestone-racials {
    background: linear-gradient(135deg, rgba(139,47,201,0.10) 0%, rgba(5,8,16,0.0) 55%);
    border-left: 3px solid var(--zerg);
  }
  .milestone-synergies {
    background: linear-gradient(135deg, rgba(255,215,0,0.09) 0%, rgba(5,8,16,0.0) 55%);
    border-left: 3px solid var(--protoss);
  }
  .milestone-competitive {
    background: linear-gradient(135deg, rgba(255,107,0,0.09) 0%, rgba(5,8,16,0.0) 55%);
    border-left: 3px solid var(--accent2);
  }

  .milestone-badge {
    font-family: 'Share Tech Mono', monospace; font-size: 0.72rem;
    letter-spacing: 0.28em; color: var(--accent); text-transform: uppercase;
    margin-bottom: 0.4rem;
  }
  .milestone-title {
    font-family: 'Exo 2', sans-serif; font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700; color: #fff; margin-bottom: 0.4rem;
  }
  .milestone-goal {
    font-size: 0.9rem; color: var(--muted); line-height: 1.6;
    max-width: 620px; margin-bottom: 1rem;
  }
  .milestone-progress { display: flex; flex-direction: column; gap: 0.35rem; }
  .milestone-progress-bar { height: 3px; background: var(--border); max-width: 340px; border-radius: 2px; }
  .milestone-progress-fill { height: 3px; background: var(--accent); border-radius: 2px; transition: width 0.5s ease; }
  .milestone-progress-text {
    font-family: 'Share Tech Mono', monospace; font-size: 0.72rem;
    letter-spacing: 0.14em; color: var(--muted);
  }
  /* Bulgarian overrides: swap mono font for Exo 2 which has proper Cyrillic support */
  :lang(bg) .milestone-badge {
    font-family: 'Exo 2', sans-serif; font-size: 0.78rem;
    letter-spacing: 0.12em; font-weight: 600;
  }
  :lang(bg) .milestone-progress-text {
    font-family: 'Exo 2', sans-serif; font-size: 0.8rem;
    letter-spacing: 0.04em; font-weight: 500;
  }
  :lang(bg) .milestone-goal {
    font-size: 0.95rem;
  }

  /* ── BENTO GRID ──────────────────────────────────────── */
  .milestone-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  /* First card in each milestone is a featured wide card */
  .milestone-bento .episode-card:first-child { grid-column: span 2; }

  /* ── VIDEO FACADE ────────────────────────────────────── */
  .video-facade {
    position: absolute; inset: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #060c18;
  }
  .video-facade img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  .facade-play {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.18s ease;
  }
  .facade-play svg { filter: drop-shadow(0 2px 12px rgba(0,0,0,0.8)); }
  .video-facade:hover .facade-play { transform: scale(1.12); }
  .video-facade:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .yt-blocked {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    background: rgba(5,8,16,0.86);
    backdrop-filter: blur(6px);
    text-align: center;
  }
  .yt-blocked-inner {
    max-width: 280px;
    border: 1px solid rgba(0,212,255,0.22);
    background: rgba(11,18,32,0.92);
    padding: 1rem 1.1rem;
  }
  .yt-blocked-icon {
    color: var(--accent);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .yt-blocked p {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.6;
  }
  @keyframes yt-block-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,212,255,0.55); border-color: var(--accent); }
    65%  { box-shadow: 0 0 0 8px rgba(0,212,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); border-color: rgba(0,212,255,0.22); }
  }
  .yt-blocked-inner.yt-pulse { animation: yt-block-pulse 0.55s ease-out; }

  /* ── WATCHED TOGGLE ──────────────────────────────────── */
  .watched-toggle {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 0.7rem; width: 100%;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; transition: all 0.2s; text-align: left;
  }
  .watched-toggle::before { content: '○'; margin-right: 0.3rem; }
  .watched-toggle:hover:not(.watched) { border-color: var(--muted); color: var(--text); }
  .watched-toggle.watched {
    border-color: #00e676; color: #00e676;
    background: rgba(0,230,118,0.06);
  }
  .watched-toggle.watched::before { content: '✓'; }

  /* ── MOBILE: STACKED ─────────────────────────────────── */
  @media (max-width: 768px) {
    .milestone-bento {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    .milestone-bento .episode-card { min-width: 0; }
    .milestone-bento .episode-card:first-child { grid-column: unset; min-width: 0; }

    .milestone-divider { padding: 1.25rem; }
    .milestone-title { font-size: 1rem; }
  }

  /* ── CONTINUE RAIL ──────────────────────────────────────── */
  #continue-rail[hidden] { display: none; }
  #continue-rail { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 2.5rem; }
  .continue-rail-inner { border: 1px solid var(--border); background: var(--panel); padding: 1.25rem 1.5rem 1.1rem; }
  .continue-rail-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.1rem; gap: 1rem; flex-wrap: wrap; }
  .continue-rail-eyebrow { font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.35rem; }
  .continue-rail-title { font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: 1rem; color: #fff; }
  .continue-rail-count { font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; align-self: flex-end; }
  .continue-rail-scroll {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding-bottom: 4px;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
  .continue-rail-scroll::-webkit-scrollbar { height: 3px; }
  .continue-rail-scroll::-webkit-scrollbar-track { background: transparent; }
  .continue-rail-scroll::-webkit-scrollbar-thumb { background: var(--border); }
  .continue-rail-card {
    flex: 0 0 186px; scroll-snap-align: start;
    background: rgba(0,0,0,0.28); border: 1px solid var(--border);
    overflow: hidden; transition: border-color 0.2s, transform 0.2s;
    cursor: pointer; display: flex; flex-direction: column;
  }
  .continue-rail-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .continue-rail-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .continue-rail-card.next-up { border-color: rgba(0,212,255,0.55); }
  .continue-rail-card-thumb {
    position: relative; padding-top: 56.25%; overflow: hidden;
    background: #060c18; flex-shrink: 0;
  }
  .continue-rail-card-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .continue-rail-card-badge {
    position: absolute; top: 5px; left: 5px;
    background: var(--accent); color: var(--bg);
    font-family: 'Share Tech Mono', monospace; font-size: 0.58rem;
    letter-spacing: 0.14em; padding: 2px 6px; line-height: 1.5; text-transform: uppercase;
  }
  .continue-rail-card-meta { padding: 0.55rem 0.65rem 0.65rem; flex: 1; display: flex; flex-direction: column; gap: 0.22rem; }
  .continue-rail-card-num { font-family: 'Share Tech Mono', monospace; font-size: 0.6rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
  .continue-rail-card-title { font-family: 'Exo 2', sans-serif; font-size: 0.77rem; font-weight: 600; color: #fff; line-height: 1.3; flex: 1; }
  .continue-rail-card-cta { margin-top: 0.4rem; font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
  @media (max-width: 768px) {
    #continue-rail { padding: 1rem 1.25rem 1.75rem; }
    .continue-rail-inner { padding: 1rem 1.1rem 0.85rem; }
    .continue-rail-card { flex: 0 0 152px; }
  }

  /* ── SECTION JUMP BAR (side ToC) ────────────────────────── */
  #section-jump-bar {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(1.5rem);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  #section-jump-bar.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: all;
  }
  .sj-links { display: flex; flex-direction: column; }
  .sj-link {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 0.42rem 0.6rem 0.42rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    box-shadow: inset 2px 0 0 var(--border);
    line-height: 1;
  }
  .sj-link::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
  }
  .sj-link:hover { color: var(--text); box-shadow: inset 2px 0 0 var(--muted); }
  .sj-link:hover::before { background: var(--muted); }
  .sj-link.sj-active {
    color: #fff;
    box-shadow: inset 2px 0 0 var(--accent);
    background: linear-gradient(to bottom, transparent, rgba(0,212,255,0.07) 30%, rgba(0,212,255,0.07) 70%, transparent);
    text-shadow: 0 0 12px rgba(0,212,255,0.35);
  }
  .sj-link.sj-active::before { background: var(--accent); transform: scale(1.4); }
  .sj-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  html[lang="bg"] .sj-link {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: none;
  }
  @media (max-width: 1399px) { #section-jump-bar { display: none; } }
