/*
Theme Name: Media Engine
Theme URI: https://mediaengine.tv
Author: Media Engine
Description: The official theme for Media Engine — technical and strategic blueprints for navigating modern media fragmentation. Video podcast, industry news, and distribution architecture for the next generation of media operators.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mediaengine
Tags: podcast, video, dark, editorial, media
*/

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  --bg0:        #06060a;
  --bg1:        #0d0d14;
  --bg2:        #14141e;
  --bg3:        #1c1c2a;
  --bg4:        #252535;
  --dim:        rgba(255,255,255,0.06);
  --border:     rgba(255,255,255,0.10);
  --border-hi:  rgba(255,255,255,0.18);

  --red:        #e8302a;
  --red-lt:     #ff5a52;
  --red-dim:    rgba(232,48,42,0.14);
  --amber:      #e8a01a;
  --amber-lt:   #ffc94a;
  --amber-dim:  rgba(232,160,26,0.14);
  --blue:       #2a64ff;
  --blue-lt:    #7aadff;
  --blue-dim:   rgba(42,100,255,0.14);

  --text:       #f0ede6;
  --text-2:     #a09e9a;
  --text-3:     #7a7870;
  --text-4:     #4a4845;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --max-w:      1280px;
  --radius:     6px;
  --radius-lg:  10px;
  --t:          0.16s ease;
  --t-slow:     0.32s ease;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 16px 64px rgba(0,0,0,0.75);
  --glow-red:   0 0 40px rgba(232,48,42,0.3);
}

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--red-lt); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--red);
  padding: 0.9rem 1.4rem;
  margin: 2rem 0;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.65;
}

code {
  font-family: var(--font-mono);
  background: var(--bg3);
  color: var(--amber-lt);
  padding: 0.15em 0.45em;
  border-radius: 3px;
  font-size: 0.85em;
}
pre { background: var(--bg2); border: 1px solid var(--dim); border-radius: var(--radius); padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0; }
pre code { background: none; padding: 0; }

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: none; transition: all var(--t); white-space: nowrap; cursor: pointer;
}
.btn svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.btn-red  { background: var(--red); color: #fff; }
.btn-red:hover  { background: var(--red-lt); color: #fff; transform: translateY(-1px); box-shadow: var(--glow-red); }
.btn-amber { background: var(--amber); color: #000; }
.btn-amber:hover { background: var(--amber-lt); color: #000; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: var(--text-2);
  border: 1px solid var(--dim);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); color: var(--text); border-color: var(--border); }
.btn-lg { padding: 0.72rem 1.6rem; font-size: 0.8rem; }

/* ─────────────────────────────────────────────
   BADGES
───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.18rem 0.6rem; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.badge-red   { background: var(--red-dim);   color: var(--red-lt);   border: 1px solid rgba(232,48,42,0.25); }
.badge-amber { background: var(--amber-dim); color: var(--amber-lt); border: 1px solid rgba(232,160,26,0.25); }
.badge-blue  { background: var(--blue-dim);  color: var(--blue-lt);  border: 1px solid rgba(42,100,255,0.25); }
.badge-muted { background: var(--bg3); color: var(--text-3); border: 1px solid var(--dim); }

/* ─────────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────────── */
.section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dim);
}
.section-label {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text);
  display: flex; align-items: center; gap: 0.65rem;
}
.section-label::before {
  content: ''; display: inline-block; width: 3px; height: 1.1em;
  background: var(--red); border-radius: 2px;
}
.section-more {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3);
  display: flex; align-items: center; gap: 0.3rem; transition: color var(--t);
}
.section-more::after { content: '→'; }
.section-more:hover { color: var(--red); }

/* ─────────────────────────────────────────────
   SITE HEADER
───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(6,6,10,0.92);
  border-bottom: 1px solid var(--dim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 56px;
  display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center;
  height: 100%; gap: 1.75rem;
}
.site-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 28px; height: 28px; background: var(--red);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 14px; height: 14px; fill: #fff; }
.logo-text {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); line-height: 1;
}
.logo-text span { color: var(--red); }
.header-nav { flex: 1; }
.header-nav ul { display: flex; align-items: center; gap: 0; }
.header-nav a {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3);
  padding: 0.35rem 0.85rem; border-radius: 4px; transition: all var(--t); display: block;
}
.header-nav a:hover,
.header-nav .current-menu-item > a,
.header-nav .current-menu-ancestor > a { color: var(--text); background: var(--bg3); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; flex-shrink: 0; }
.search-toggle {
  background: none; border: 1px solid var(--dim); color: var(--text-3);
  width: 32px; height: 32px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--t);
}
.search-toggle:hover { border-color: var(--border); color: var(--text); }
.search-toggle svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--dim);
  color: var(--text-2); padding: 0.4rem 0.65rem; border-radius: 4px; font-size: 1.1rem; line-height: 1;
}

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; background: rgba(6,6,10,0.96); z-index: 999;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh;
  opacity: 0; pointer-events: none; transition: opacity var(--t-slow);
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-overlay-inner { width: 100%; max-width: 680px; padding: 0 2rem; }
.search-overlay-inner label {
  display: block; font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.2em; color: var(--text-3); text-transform: uppercase; margin-bottom: 1.2rem;
}
.search-overlay .search-field {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font-body);
  font-size: 1.5rem; padding: 1rem 1.5rem; outline: none; transition: border-color var(--t);
}
.search-overlay .search-field:focus { border-color: var(--red); }
.search-overlay .search-field::placeholder { color: var(--text-4); }
.search-close {
  display: block; margin-top: 1rem; font-family: var(--font-body); font-size: 0.72rem;
  color: var(--text-3); text-align: center; cursor: pointer;
}
.search-close:hover { color: var(--text); }

/* ─────────────────────────────────────────────
   TICKER
───────────────────────────────────────────── */
.ticker-bar {
  background: var(--bg1); border-bottom: 1px solid var(--dim);
  height: 34px; overflow: hidden; display: flex; align-items: center;
}
.ticker-track {
  display: flex; align-items: center;
  animation: ticker 28s linear infinite; white-space: nowrap;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 0 2.5rem; display: flex; align-items: center; gap: 0.7rem;
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* ─────────────────────────────────────────────
   HERO (CINEMATIC — latest episode thumbnail)
───────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--bg1);
}
.hero-image {
  width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block;
  filter: brightness(0.52); transition: filter 0.4s, transform 0.5s;
}
.hero:hover .hero-image { filter: brightness(0.42); transform: scale(1.015); }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px; pointer-events: none;
}
.hero-fade-bottom {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,6,10,1) 0%, rgba(6,6,10,0.55) 40%, transparent 72%);
  pointer-events: none;
}
.hero-fade-left {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(6,6,10,0.72) 0%, transparent 60%);
  pointer-events: none;
}

.hero-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.88);
  width: 76px; height: 76px;
  background: rgba(232,48,42,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.28s;
  box-shadow: 0 0 50px rgba(232,48,42,0.5);
  pointer-events: none;
}
.hero:hover .hero-play-btn { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.hero-play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 5px; }

.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2.5rem 2.5rem 2.25rem;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--red); }
.hero-badges { display: flex; gap: 0.45rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.0;
  color: var(--text); margin-bottom: 0.8rem; max-width: 700px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.9);
}
.hero-meta {
  display: flex; align-items: center; gap: 1.1rem;
  font-size: 0.75rem; color: rgba(240,237,230,0.55);
  margin-bottom: 1.2rem; flex-wrap: wrap;
}
.hero-meta .sep { color: rgba(255,255,255,0.18); }
.hero-actions { display: flex; gap: 0.55rem; }

/* No video — thumbnail-only hero placeholder */
.hero-thumb-only {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.75rem;
  background: var(--bg1);
}
.hero-thumb-only-inner { text-align: center; }

/* ─────────────────────────────────────────────
   EPISODE CARDS — YouTube style
───────────────────────────────────────────── */
.ep-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.ep-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; }

.ep-card {
  background: transparent; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform 0.2s;
}
.ep-card:hover { transform: translateY(-3px); }

.ep-thumb {
  position: relative; aspect-ratio: 16/9; background: var(--bg2);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 0.6rem;
}
.ep-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s;
}
.ep-card:hover .ep-thumb img { transform: scale(1.045); }

/* Thumbnail placeholder */
.ep-thumb-placeholder {
  width: 100%; height: 100%; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
}
.ep-thumb-placeholder svg { width: 32px; height: 32px; fill: var(--bg4); }

.ep-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ep-card:hover .ep-overlay { background: rgba(0,0,0,0.42); }
.ep-play {
  width: 48px; height: 48px; background: rgba(232,48,42,0.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.78); transition: all 0.22s;
  box-shadow: 0 4px 24px rgba(232,48,42,0.5);
}
.ep-card:hover .ep-play { opacity: 1; transform: scale(1); }
.ep-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.ep-num-tag {
  position: absolute; top: 6px; left: 6px;
  font-family: var(--font-mono); font-size: 0.58rem;
  background: rgba(0,0,0,0.78); color: var(--text-3);
  padding: 0.14rem 0.42rem; border-radius: 3px; letter-spacing: 0.05em;
}
.ep-dur-tag {
  position: absolute; bottom: 6px; right: 6px;
  font-family: var(--font-mono); font-size: 0.6rem;
  background: rgba(0,0,0,0.88); color: var(--text);
  padding: 0.15rem 0.42rem; border-radius: 3px;
}

.ep-info { padding: 0 0.1rem; }
.ep-badge-row { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.38rem; flex-wrap: wrap; }
.ep-title {
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--text);
  line-height: 1.22; margin-bottom: 0.28rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ep-title a { color: inherit; }
.ep-title a:hover { color: var(--red); }
.ep-sub { font-size: 0.7rem; color: var(--text-3); display: flex; align-items: center; gap: 0.45rem; }
.ep-sub .sep { color: var(--text-4); }

/* Featured ep card (horizontal, first position) */
.ep-card-featured {
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr 1fr;
}
.ep-card-featured .ep-thumb { border-radius: var(--radius) 0 0 var(--radius); margin-bottom: 0; aspect-ratio: auto; min-height: 200px; }
.ep-card-featured .ep-info {
  background: var(--bg1); border: 1px solid var(--dim); border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.ep-card-featured .ep-title { font-size: 1.2rem; -webkit-line-clamp: 3; margin-bottom: 0.5rem; }
.ep-card-featured .ep-excerpt {
  font-size: 0.78rem; color: var(--text-3); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 0.75rem;
}

/* ─────────────────────────────────────────────
   THREE PILLARS (framework, not navigation)
───────────────────────────────────────────── */
.pillars-strip {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--dim);
  border: 1px solid var(--dim); border-radius: var(--radius-lg); overflow: hidden;
}
.pillar-cell {
  background: var(--bg1); padding: 2rem 2rem 1.75rem;
  position: relative; overflow: hidden;
}
.pillar-cell::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.pillar-cell:nth-child(1)::before { background: var(--blue); }
.pillar-cell:nth-child(2)::before { background: var(--amber); }
.pillar-cell:nth-child(3)::before { background: var(--red); }

.pillar-bg-num {
  position: absolute; bottom: -0.5rem; right: 1rem;
  font-family: var(--font-display); font-size: 7rem; font-weight: 900;
  line-height: 1; color: rgba(255,255,255,0.025); pointer-events: none; user-select: none;
}
.pillar-mono { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-3); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.85rem; }
.pillar-name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.15; margin-bottom: 0.7rem;
}
.pillar-cell:nth-child(1) .pillar-name { color: var(--blue-lt); }
.pillar-cell:nth-child(2) .pillar-name { color: var(--amber-lt); }
.pillar-cell:nth-child(3) .pillar-name { color: var(--red-lt); }
.pillar-desc { font-size: 0.8rem; color: var(--text-3); line-height: 1.65; }

.mission-footnote {
  margin-top: 1rem; padding: 1.2rem 1.5rem;
  background: var(--bg1); border: 1px solid var(--dim);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.8rem; font-style: italic; color: var(--text-3); line-height: 1.65;
}
.mission-footnote strong { color: var(--text-2); font-style: normal; }

/* ─────────────────────────────────────────────
   EMAIL CAPTURE
───────────────────────────────────────────── */
.email-capture {
  background: var(--bg1); border: 1px solid var(--dim);
  border-radius: var(--radius-lg); padding: 2.5rem;
  position: relative; overflow: hidden;
}
.email-capture::after {
  content: ''; position: absolute; top: -50%; right: -5%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232,160,26,0.055) 0%, transparent 65%);
  pointer-events: none;
}
.ec-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ec-tag {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--amber);
  text-transform: uppercase; letter-spacing: 0.2em;
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.ec-tag::before { content: ''; width: 20px; height: 1px; background: var(--amber); }
.ec-title {
  font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.8rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  line-height: 1.05; color: var(--text); margin-bottom: 0.75rem;
}
.ec-title em { font-style: normal; color: var(--amber); }
.ec-sub { font-size: 0.83rem; color: var(--text-3); line-height: 1.65; }
.ec-blurb { font-size: 0.78rem; color: var(--text-3); line-height: 1.6; margin-bottom: 0.85rem; }
.ec-blurb strong { color: var(--text-2); }
.ec-form { display: flex; flex-direction: column; gap: 0.55rem; }
.ec-input {
  flex: 1; background: var(--bg3); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; color: var(--text); font-family: var(--font-body);
  font-size: 0.88rem; padding: 0.62rem 1rem; outline: none; min-width: 0;
  transition: border-color var(--t);
}
.ec-input:focus { border-color: var(--amber); }
.ec-input::placeholder { color: var(--text-4); }
.ec-row { display: flex; gap: 0.45rem; }
.ec-submit {
  background: var(--amber); color: #000; border: none;
  padding: 0.62rem 1.2rem; border-radius: 4px;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; white-space: nowrap; transition: all var(--t);
}
.ec-submit:hover { background: var(--amber-lt); }
.ec-note { font-size: 0.68rem; color: var(--text-4); }
.ec-success { display: none; font-size: 0.85rem; color: #4ade80; font-weight: 600; }

/* ─────────────────────────────────────────────
   NEWS CARDS
───────────────────────────────────────────── */
.news-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--dim); border: 1px solid var(--dim); border-radius: var(--radius-lg); overflow: hidden; }
.news-card {
  background: var(--bg1); padding: 1.25rem 1.4rem;
  cursor: pointer; transition: background var(--t);
}
.news-card:hover { background: var(--bg2); }
.news-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg3); border-radius: var(--radius); margin-bottom: 0.9rem; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.news-thumb-placeholder svg { width: 28px; height: 28px; fill: var(--bg4); }
.news-cat { font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber); margin-bottom: 0.45rem; }
.news-title { font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text); line-height: 1.25; margin-bottom: 0.45rem; }
.news-title a { color: inherit; }
.news-title a:hover { color: var(--amber); }
.news-excerpt { font-size: 0.75rem; color: var(--text-3); line-height: 1.55; margin-bottom: 0.6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 0.67rem; color: var(--text-4); display: flex; align-items: center; gap: 0.5rem; }

/* ─────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────── */
.sidebar { position: sticky; top: 72px; }
.widget {
  background: var(--bg1); border: 1px solid var(--dim);
  border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.1rem;
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text);
  margin-bottom: 1.1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--dim);
  display: flex; align-items: center; gap: 0.5rem;
}
.widget-title::before { content: ''; display: inline-block; width: 3px; height: 1em; background: var(--red); border-radius: 2px; }
.widget-ep-list { display: flex; flex-direction: column; }
.widget-ep-item { display: grid; grid-template-columns: 56px 1fr; gap: 0.7rem; padding: 0.65rem 0; border-bottom: 1px solid var(--dim); }
.widget-ep-item:last-child { border-bottom: none; }
.widget-ep-thumb { aspect-ratio: 16/9; border-radius: 3px; overflow: hidden; background: var(--bg3); }
.widget-ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-ep-num { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-4); margin-bottom: 0.18rem; }
.widget-ep-title { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.2; color: var(--text); }
.widget-ep-title a { color: inherit; }
.widget-ep-title a:hover { color: var(--red); }
.widget p { font-size: 0.78rem; color: var(--text-3); line-height: 1.65; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.topic-tag {
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem; border: 1px solid var(--dim); border-radius: 100px;
  color: var(--text-3); transition: all var(--t);
}
.topic-tag:hover { border-color: var(--red); color: var(--red); }
.sidebar-signup .ec-input { font-size: 0.8rem; margin-bottom: 0.45rem; width: 100%; }
.sidebar-signup .ec-submit { width: 100%; justify-content: center; font-size: 0.72rem; }

/* ─────────────────────────────────────────────
   SINGLE EPISODE PAGE
───────────────────────────────────────────── */
.single-ep-header { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--dim); margin-bottom: 2rem; }
.single-ep-eyebrow { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.single-ep-title { font-size: clamp(2rem,5vw,4.2rem); line-height: 1.0; margin-bottom: 1.1rem; }
.single-ep-meta { display: flex; align-items: center; gap: 1.3rem; font-size: 0.75rem; color: var(--text-3); flex-wrap: wrap; }
.single-ep-meta .sep { color: var(--text-4); }
.listen-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.listen-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.15em; }

/* video embed */
.video-embed { position: relative; aspect-ratio: 16/9; background: var(--bg0); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* timestamps */
.timestamps-box { background: var(--bg2); border: 1px solid var(--dim); border-radius: var(--radius); padding: 1.4rem; margin: 1.75rem 0; }
.timestamps-hd { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.timestamps-hd::before { content: ''; width: 3px; height: 1em; background: var(--red); border-radius: 2px; display: inline-block; }
.ts-item { display: flex; align-items: baseline; gap: 1rem; padding: 0.5rem 0.45rem; border-bottom: 1px solid var(--dim); font-size: 0.83rem; cursor: pointer; border-radius: 4px; transition: background var(--t); }
.ts-item:last-child { border-bottom: none; }
.ts-item:hover { background: var(--bg3); }
.ts-time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--red); flex-shrink: 0; min-width: 42px; }
.ts-label { color: var(--text-2); line-height: 1.4; }

/* show notes */
.show-notes { font-size: 0.93rem; line-height: 1.8; color: var(--text-2); }
.show-notes h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; color: var(--text); }
.show-notes h3 { font-size: 1.15rem; margin: 1.5rem 0 0.55rem; color: var(--text); }
.show-notes p { margin-bottom: 1.25rem; }
.show-notes a { color: var(--red); border-bottom: 1px solid var(--red-dim); }
.show-notes a:hover { color: var(--red-lt); }
.show-notes ul, .show-notes ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.show-notes li { margin-bottom: 0.4rem; }
.show-notes ul li { list-style: disc; }
.show-notes ol li { list-style: decimal; }

/* resources */
.resources-box { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem; margin: 1.75rem 0; }
.resources-box-hd { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--amber); margin-bottom: 0.9rem; }
.resources-box li { list-style: disc; font-size: 0.82rem; color: var(--text-3); margin-bottom: 0.38rem; padding-left: 1rem; }
.resources-box a { color: var(--amber); }

/* share */
.share-bar { display: flex; align-items: center; gap: 0.6rem; padding: 1.1rem 0; border-top: 1px solid var(--dim); border-bottom: 1px solid var(--dim); margin: 1.75rem 0; flex-wrap: wrap; }
.share-label { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-3); }
.share-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.34rem 0.85rem; border-radius: 100px; font-size: 0.68rem; font-weight: 600; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--dim); color: var(--text-3); transition: all var(--t); cursor: pointer; background: transparent; }
.share-btn:hover { border-color: var(--red); color: var(--red); }
.share-btn svg { width: 11px; height: 11px; fill: currentColor; }

/* ─────────────────────────────────────────────
   ARCHIVE HEADER
───────────────────────────────────────────── */
.archive-header { padding: 2.75rem 0 2.25rem; border-bottom: 1px solid var(--dim); margin-bottom: 2.5rem; position: relative; overflow: hidden; }
.archive-header::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--dim) 1px,transparent 1px),linear-gradient(90deg,var(--dim) 1px,transparent 1px); background-size: 60px 60px; pointer-events: none; }
.archive-hd-inner { position: relative; z-index: 1; }
.archive-eyebrow { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.65rem; }
.archive-title { font-size: clamp(2rem,5vw,4.5rem); margin-bottom: 0.7rem; }
.archive-desc { font-size: 0.88rem; color: var(--text-2); max-width: 580px; }

/* ─────────────────────────────────────────────
   SEARCH PAGE
───────────────────────────────────────────── */
.search-hd { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--dim); margin-bottom: 2.25rem; }
.search-hd h1 { font-size: clamp(1.8rem,4vw,3.5rem); }
.search-hd h1 em { font-style: normal; color: var(--red); }

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.3rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--dim); }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 0.45rem; border-radius: 4px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--text-3); border: 1px solid var(--dim); transition: all var(--t); }
.page-numbers:hover, .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.page-numbers.dots { border: none; }

/* ─────────────────────────────────────────────
   SITE FOOTER
───────────────────────────────────────────── */
.site-footer { background: var(--bg1); border-top: 1px solid var(--dim); padding: 3.5rem 0 2rem; margin-top: 4.5rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--dim); }
.footer-brand-desc { font-size: 0.8rem; color: var(--text-3); line-height: 1.65; max-width: 270px; margin: 0.9rem 0 1.1rem; }
.footer-mission-quote { background: var(--bg2); border-left: 2px solid var(--red); padding: 0.75rem 1rem; font-size: 0.76rem; font-style: italic; color: var(--text-2); border-radius: 0 4px 4px 0; line-height: 1.55; }
.footer-col-title { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text); margin-bottom: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-3); transition: color var(--t); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: var(--text-4); flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: var(--text-4); }
.footer-bottom a:hover { color: var(--red); }

/* ─────────────────────────────────────────────
   LOAD MORE
───────────────────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 2rem; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ep-grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .ep-grid-3, .ep-grid-4 { grid-template-columns: repeat(2,1fr); }
  .pillars-strip { grid-template-columns: 1fr; }
  .ec-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ep-card-featured { grid-template-columns: 1fr; grid-column: auto; }
  .ep-card-featured .ep-thumb { border-radius: var(--radius) var(--radius) 0 0; min-height: 180px; }
  .ep-card-featured .ep-info { border-left: 1px solid var(--dim); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
  .news-grid-3 { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .header-nav.toggled { display: block; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg1); border-bottom: 1px solid var(--dim); padding: 1rem 1.5rem; z-index: 100; }
  .header-nav.toggled ul { flex-direction: column; }
  .menu-toggle { display: flex; align-items: center; }
  .hero-image { aspect-ratio: 16/9; }
  .hero-content { padding: 1.5rem; }
}
@media (max-width: 600px) {
  .ep-grid-3, .ep-grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .ec-row { flex-direction: column; }
  .email-capture { padding: 1.75rem 1.25rem; }
}
