/* ============ AI Podcast Hub — Enhanced with Marketing Vibe ============ */

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

:root {
  --bg: #0d0d0d;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --text: #e8e6e3;
  --text-dim: #989898;
  --text-muted: #6b6b6b;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --gradient-brand: linear-gradient(135deg, #6c5ce7, #00b894);
  --glow-purple: 0 0 30px rgba(108,92,231,0.15);
  --glow-green: 0 0 30px rgba(0,184,148,0.15);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Noise overlay */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ NAVIGATION — Marketing + Community ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 0 48px; height: 68px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  font-size: 1.6rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: logo-pulse 3s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}
.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text);
}
.logo-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* Social proof ticker */
.nav-ticker {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(108,92,231,0.08); border: 1px solid rgba(108,92,231,0.15);
  flex-shrink: 0;
}
.ticker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00b894;
  animation: ticker-blink 2s ease-in-out infinite;
}
@keyframes ticker-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #00b894; }
  50% { opacity: 0.4; box-shadow: 0 0 2px #00b894; }
}
.ticker-text {
  font-size: 0.78rem; color: var(--text-dim); font-weight: 500;
  letter-spacing: 0.01em; white-space: nowrap;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin-left: auto;
}
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: all 0.25s; position: relative;
  display: flex; align-items: center; gap: 6px;
}
.nav-icon { font-size: 0.8rem; opacity: 0.6; transition: opacity 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover .nav-icon, .nav-links a.active .nav-icon { opacity: 1; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gradient-brand); border-radius: 1px;
}

/* CTA button */
.nav-cta {
  background: var(--gradient-brand) !important;
  color: #fff !important; padding: 8px 20px !important;
  border-radius: 20px !important; font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.3s !important; box-shadow: var(--glow-purple);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(108,92,231,0.3) !important;
}
.nav-cta .nav-icon { display: none; }

/* User menu dropdown */
.nav-user-menu { position: relative; }
.nav-user-trigger {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text); padding: 6px 12px 6px 6px;
  border-radius: 22px; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  transition: all 0.25s;
}
.nav-user-trigger:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(162,155,254,0.3);
}
.nav-user-trigger[aria-expanded="true"] {
  background: rgba(108,92,231,0.12);
  border-color: rgba(162,155,254,0.4);
}
.nav-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0;
}
.nav-username {
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-caret {
  font-size: 0.7rem; opacity: 0.55; transition: transform 0.25s;
  margin-left: 2px;
}
.nav-user-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 200px;
  background: rgba(20,20,28,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,92,231,0.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transition: all 0.2s ease;
  z-index: 1000;
}
.nav-user-dropdown::before {
  content: ''; position: absolute; top: -6px; right: 24px;
  width: 12px; height: 12px;
  background: rgba(20,20,28,0.96);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: rotate(45deg);
}
.nav-user-menu.open .nav-user-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text-dim) !important; text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s; position: relative;
}
.nav-dropdown-item:hover, .nav-dropdown-item.active {
  background: rgba(108,92,231,0.12);
  color: var(--text) !important;
}
.nav-dropdown-item.active::after { display: none; }
.nav-dropdown-premium { color: #ffd700 !important; }
.nav-dropdown-premium:hover { background: rgba(255,215,0,0.1); }
.nav-dropdown-logout:hover { background: rgba(231,76,60,0.15); color: #ff7a6c !important; }
.nav-dropdown-divider {
  height: 1px; margin: 6px 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-dim); border-radius: 1px;
}

/* ============ CONTENT ============ */
.content { padding-top: 68px; }

/* ============ HERO — Marketing Focus ============ */
.hero {
  padding: 30px 48px 40px; text-align: center; max-width: 900px; margin: 0 auto;
}
.hero-badge {
  display: inline-block; padding: 6px 20px; border-radius: 20px;
  background: rgba(108,92,231,0.1); border: 1px solid rgba(108,92,231,0.2);
  font-size: 0.78rem; font-weight: 600; color: rgba(108,92,231,0.9);
  letter-spacing: 0.04em; margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero h1 em {
  font-style: italic; font-weight: 500;
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  display: block; font-size: 1.2rem; font-weight: 400;
  color: var(--text-dim); margin-top: 8px;
  font-style: normal; font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}
.hero-desc {
  font-size: 1.08rem; color: var(--text-dim); line-height: 1.8;
  max-width: 680px; margin: 24px auto 36px;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 28px;
  background: var(--gradient-brand); color: #fff;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  letter-spacing: 0.02em; transition: all 0.3s;
  box-shadow: var(--glow-purple);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(108,92,231,0.35);
}
.hero-stat {
  font-size: 0.9rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.hero-stat strong { color: var(--text); }
.hero-divider {
  width: 80px; height: 2px;
  background: var(--gradient-brand);
  margin: 48px auto 0; border-radius: 1px;
}

/* Page hero (sub pages) */
.page-hero {
  padding: 80px 48px 40px; text-align: center;
  max-width: 700px; margin: 0 auto;
}
.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem; font-weight: 900; margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 1.08rem; color: var(--text-dim);
}

/* ============ SECTION ============ */
.section { padding: 64px 48px; max-width: 1500px; margin: 0 auto; }
.section-header { margin-bottom: 40px; }
.section-label {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em;
}
.section-sub {
  font-size: 0.95rem; color: var(--text-dim); margin-top: 8px;
}

/* ============ EPISODE CARDS ============ */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}
.episodes-grid.all { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.episodes-grid.featured { grid-template-columns: repeat(3, 1fr); }

.episode-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}
.episode-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.ep-cover {
  width: 100%;
  height: 200px; position: relative; overflow: hidden;
  background: var(--bg-elevated);
  margin: 0 auto;
}
.ep-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.episode-card:hover .ep-cover img { transform: scale(1.05); }
.ep-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg-card) 100%);
}
.ep-hot-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: 12px;
  background: rgba(255,80,80,0.2); border: 1px solid rgba(255,80,80,0.3);
  font-size: 0.72rem; font-weight: 700; color: #ff6b6b;
  backdrop-filter: blur(8px);
}
.ep-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.ep-source {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px;
}
.episode-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem; font-weight: 700; line-height: 1.35; margin-bottom: 4px;
}
.ep-title-zh {
  font-size: 0.88rem; font-weight: 500; color: var(--text-dim);
  margin-bottom: 8px; line-height: 1.4;
}
.ep-meta { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 12px; }
.ep-speakers { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.ep-speaker-tag {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600;
}
.ep-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tag {
  font-size: 0.7rem; padding: 4px 10px; border-radius: 4px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75);
  font-weight: 500; letter-spacing: 0.03em;
}
.ep-audio-badge, .ep-trans-badge { display: none; }
/* New bottom row */
.ep-bottom-row {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px;
}
.ep-play-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,184,148,0.15); border: 1px solid rgba(0,184,148,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #00b894; flex-shrink: 0;
  transition: all 0.2s;
}
.episode-card:hover .ep-play-btn {
  background: rgba(0,184,148,0.25); border-color: rgba(0,184,148,0.4);
}
.ep-cc-badge {
  font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 3px;
  background: rgba(108,92,231,0.12); border: 1px solid rgba(108,92,231,0.2);
  color: rgba(108,92,231,0.8); letter-spacing: 0.04em;
}

/* More CTA */
.more-wrap { text-align: center; padding: 48px 0 0; }
.btn-more {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; border-radius: 28px;
  border: 1px solid var(--border-hover); color: var(--text);
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: all 0.3s; letter-spacing: 0.02em;
}
.btn-more:hover {
  border-color: rgba(108,92,231,0.4);
  background: rgba(108,92,231,0.06);
  box-shadow: 0 0 30px rgba(108,92,231,0.1);
}
.btn-more-arrow { transition: transform 0.3s; }
.btn-more:hover .btn-more-arrow { transform: translateX(4px); }

/* ============ COMMUNITY SECTION ============ */
.community { padding-top: 24px; }
.community-banner {
  display: flex; gap: 48px; align-items: center;
  padding: 48px; border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.community-quote {
  flex: 1; min-width: 280px; position: relative;
  padding-left: 40px;
}
.quote-mark {
  position: absolute; left: 0; top: -10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem; font-weight: 900; line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.community-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; line-height: 1.6; color: var(--text);
  margin-bottom: 12px; font-style: italic;
}
.quote-author { font-size: 0.85rem; color: var(--text-muted); }
.community-points {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.point { text-align: center; }
.point strong {
  display: block; font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem; font-weight: 900; line-height: 1.2;
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.point span { font-size: 0.8rem; color: var(--text-muted); }

/* ============ SPEAKER CARDS ============ */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.speaker-card {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.speaker-card:hover { transform: translateY(-2px); border-color: var(--border-hover); }
.speaker-card .sp-avatar-circle {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative; overflow: hidden;
}
.sp-initials-fallback {
  position: absolute; z-index: 1;
  opacity: 0; transition: opacity 0.3s;
}
.sp-avatar-circle .sp-initials-fallback { opacity: 1; }
/* When background image loads, hide initials */
.sp-avatar-circle:has(img), 
.sp-avatar-circle[style*="url"] .sp-initials-fallback { opacity: 0; }
.sp-text { flex: 1; min-width: 0; }
.sp-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; font-weight: 700; margin-bottom: 2px;
}
.sp-role { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 6px; }
.sp-bio-preview { font-size: 0.82rem; color: var(--text-dim); line-height: 1.55; margin-bottom: 10px; }
.sp-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* ============ FILTER BAR ============ */
.filter-bar {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 32px;
}
.filter-search input {
  width: 100%; padding: 14px 20px; border-radius: 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.3s;
}
.filter-search input:focus { border-color: rgba(108,92,231,0.4); }
.filter-search input::placeholder { color: var(--text-muted); }
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag {
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 500; cursor: pointer;
  border: 1px solid var(--border); color: var(--text-dim);
  transition: all 0.2s; user-select: none;
}
.filter-tag:hover { border-color: var(--border-hover); color: var(--text); }
.filter-tag.active {
  background: rgba(108,92,231,0.15); border-color: rgba(108,92,231,0.3);
  color: #6c5ce7; font-weight: 600;
}

/* ============ EPISODE PAGE ============ */
.ep-layout { display: flex; gap: 32px; max-width: 1300px; margin: 0 auto; padding: 40px 32px; align-items: flex-start; }
.ep-left { flex: 0 0 420px; }
.ep-right { flex: 1; min-width: 0; }
.ep-cover-art { width: 100%; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.ep-cover-art img { width: 100%; height: 100%; object-fit: cover; }
.ep-cover-art svg { width: 100%; height: 100%; display: block; }
.ep-player { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 20px; }
.ep-player .ep-source-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.ep-player h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.02em; }
.ep-player .ep-zh { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 16px; }
.player-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.btn-play-big { width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; background: var(--text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s, box-shadow 0.2s; }
.btn-play-big:hover { transform: scale(1.06); box-shadow: 0 0 24px rgba(255,255,255,0.15); }
.btn-play-big svg { width: 18px; height: 18px; fill: var(--bg); }
.progress-wrap { flex: 1; }
.progress-track { width: 100%; height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; cursor: pointer; position: relative; }
.progress-fill { height: 100%; background: var(--text-dim); border-radius: 3px; width: 0%; pointer-events: none; }
.progress-thumb { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); left: 0%; pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,0.3); }
.progress-time { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.player-extra { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.player-speed { background: transparent; border: 1px solid var(--border); color: var(--text-dim); padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }
.player-wave { height: 40px; margin-top: 12px; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,0.2); }
.player-wave canvas { width: 100%; height: 100%; }
.ep-summary-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; }
.ep-summary-box .sum-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.ep-summary-box p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 8px; }

/* ============ SUBTITLES ============ */
.subtitle-panel { max-height: calc(100vh - 200px); overflow-y: auto; border: 1px solid var(--border); border-radius: 14px; }
.sub-line { display: flex; gap: 12px; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.15s; }
.sub-line:last-child { border-bottom: none; }
.sub-line:hover { background: rgba(255,255,255,0.02); }
.sub-line.active { background: rgba(255,255,255,0.05); border-left: 2px solid var(--text-dim); }
.sub-time { font-size: 0.72rem; color: var(--text-muted); min-width: 52px; padding-top: 2px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.sub-texts { flex: 1; min-width: 0; }
.sub-en { font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.sub-zh { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; margin-top: 2px; }

.ep-bottom { max-width: 1300px; margin: 0 auto; padding: 0 32px 60px; }

/* Insights */
.insights-grid-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.insight-block { padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); transition: border-color 0.3s; }
.insight-block:hover { border-color: var(--border-hover); }
.insight-block h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.insight-block p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.7; }

/* Concepts */
.concept-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.concept-pill { padding: 6px 16px; border-radius: 6px; background: var(--bg-elevated); border: 1px solid var(--border); font-size: 0.85rem; color: var(--text-dim); }

/* ============ Mind Map ============ */
.mindmap-container {
  position: relative;
  width: 100%; min-height: 600px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mindmap-container svg {
  display: block;
  cursor: grab;
}
.mindmap-container svg:active {
  cursor: grabbing;
}
.mindmap-loading {
  display: flex; align-items: center; justify-content: center;
  height: 600px; color: var(--text-muted); font-size: 0.95rem;
}
.mm-tooltip {
  z-index: 10;
  line-height: 1.5;
}
.mm-links path {
  transition: stroke 0.3s;
}
.mm-nodes circle {
  transition: opacity 0.2s, r 0.2s;
}
.mm-nodes g:hover circle {
  opacity: 1;
  stroke-width: 2;
}
.speaker-hero { display: flex; gap: 48px; align-items: center; padding: 80px 48px; max-width: 1100px; margin: 0 auto; }
.speaker-hero .sh-photo { width: 200px; height: 200px; border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0; }
.speaker-hero .sh-info h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 2.8rem; font-weight: 900; margin-bottom: 8px; }
.speaker-hero .sh-info .sh-role { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 16px; }
.speaker-hero .sh-info .sh-bio { color: var(--text-dim); line-height: 1.8; }

/* ============ GRAPH PAGE ============ */
.graph-container { width: 100%; height: calc(100vh - 68px); position: relative; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border); padding: 40px 48px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1500px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-tagline {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.88rem;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }

/* ============ PLAY QUEUE PANEL ============ */
.nav-queue-btn { position: relative; }
.queue-badge {
  position: absolute; top: -6px; right: -10px;
  background: #6c5ce7; color: #fff;
  font-size: 0.6rem; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.queue-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  opacity: 0; transition: opacity 0.3s;
}
.queue-overlay.show { opacity: 1; }
.queue-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 90vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex; flex-direction: column;
}
.queue-panel.open { transform: translateX(0); }
.queue-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.queue-panel-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem; font-weight: 700;
}
.queue-panel-actions { display: flex; gap: 8px; align-items: center; }
.queue-clear-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-dim); padding: 4px 12px;
  border-radius: 12px; font-size: 0.72rem;
  cursor: pointer; transition: all 0.2s;
}
.queue-clear-btn:hover { color: #ff6b6b; border-color: rgba(255,107,107,0.3); }
.queue-close-btn {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 1.1rem; padding: 4px;
  transition: color 0.2s;
}
.queue-close-btn:hover { color: var(--text); }
.queue-panel-body { flex: 1; overflow-y: auto; padding: 8px; }
.queue-empty {
  text-align: center; padding: 48px 20px;
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.7;
}
.queue-empty span { font-size: 0.78rem; opacity: 0.7; }
.queue-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.queue-item:hover { background: rgba(255,255,255,0.03); }
.queue-item-info { flex: 1; min-width: 0; }
.queue-item-title {
  font-size: 0.88rem; font-weight: 600;
  color: var(--text); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.queue-item-zh {
  font-size: 0.78rem; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.queue-item-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.queue-item-remove {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 0.8rem; padding: 4px;
  flex-shrink: 0; transition: color 0.15s;
  border-radius: 4px;
}
.queue-item-remove:hover { color: #ff6b6b; background: rgba(255,107,107,0.08); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .episodes-grid.featured { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .insights-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .ep-layout { flex-direction: column; padding: 20px 16px; }
  .ep-left { flex: none; width: 100%; position: static; }
  .subtitle-panel { max-height: 400px; }
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; gap: 16px; }
  .nav-ticker { display: none; }
  .nav-links { 
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: rgba(13,13,13,0.98);
    backdrop-filter: blur(24px); padding: 20px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: flex; margin-left: auto; }
  .nav-user-trigger { padding: 6px 10px 6px 6px; }
  .nav-username { max-width: 80px; }
  .nav-user-dropdown { right: -8px; }
  .hero { padding: 60px 20px 40px; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 40px 20px; }
  .episodes-grid, .episodes-grid.featured, .episodes-grid.all { grid-template-columns: 1fr; }
  .speakers-grid { grid-template-columns: 1fr; }
  .speaker-hero { flex-direction: column; padding: 48px 20px; text-align: center; }
  .community-banner { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .insights-grid-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; gap: 16px; }
}

/* ============ Premium / Membership ============ */
.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.premium-banner {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(217,119,6,0.05));
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.premium-banner-icon { font-size: 2rem; }
.premium-banner-text { flex: 1; min-width: 200px; }
.premium-banner-text h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-bottom: 4px; }
.premium-banner-text p { color: var(--text-dim); font-size: 0.9rem; }
.btn-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-premium:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,158,11,0.3); }
.premium-locked {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
}
.premium-locked::after {
  content: '⭐ Premium';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.85);
  color: #f59e0b;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}
.premium-locked:hover::after { background: rgba(0,0,0,0.95); }

/* ============ Error Pages ============ */
.error-page {
  text-align: center;
  padding: 80px 20px;
}
.error-page h1 { font-family: 'Playfair Display', serif; font-size: 4rem; color: var(--text-muted); }
.error-page p { color: var(--text-dim); margin: 12px 0 24px; }
/* === Glossary / Takeaway / Chapter / Discussion (新增 v2.0) === */

/* Takeaway Grid — 一页读懂核心要点 */
.takeaway-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.takeaway-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--accent, #6c5ce7);
  border-radius: 8px;
  transition: all 0.25s;
}
.takeaway-item:hover {
  background: rgba(108,92,231,0.06);
  border-color: rgba(162,155,254,0.3);
  transform: translateY(-1px);
}
.takeaway-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, #6c5ce7, #4834d4);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
}
.takeaway-text {
  flex: 1;
  font-size: 0.92rem; line-height: 1.5;
  color: var(--text);
}

/* Chapters Timeline — 章节时间轴 */
.chapters-timeline {
  position: relative;
  padding: 8px 0 8px 0;
  margin: 24px 0;
}
.chapters-timeline::before {
  content: ''; position: absolute;
  left: 80px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(108,92,231,0.5), rgba(108,92,231,0.1));
}
.chapter-item {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
  transition: all 0.25s;
}
.chapter-item:hover {
  background: rgba(108,92,231,0.04);
  border-radius: 8px;
}
.chapter-time {
  flex-shrink: 0;
  width: 70px;
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent, #6c5ce7);
  text-align: right;
}
.chapter-dot {
  flex-shrink: 0;
  position: relative; left: -8px;
  width: 10px; height: 10px;
  background: var(--accent, #6c5ce7);
  border: 2px solid rgba(13,13,13,1);
  border-radius: 50%;
  z-index: 1;
}
.chapter-item:first-child .chapter-dot,
.chapter-item:last-child .chapter-dot {
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent, #6c5ce7);
}
.chapter-title {
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.chapter-item:hover .chapter-title { color: var(--text); }

/* Glossary Grid — 术语卡 */
.glossary-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.glossary-card {
  display: flex; flex-direction: column;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.glossary-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent, #6c5ce7), transparent);
  opacity: 0.6;
}
.glossary-card:hover {
  background: rgba(108,92,231,0.08);
  border-color: rgba(162,155,254,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.glossary-cat {
  font-size: 0.7rem; font-weight: 600;
  color: var(--accent, #6c5ce7);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.glossary-term {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.glossary-en {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
}
.glossary-short {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Discussion Topics — 可讨论议题 */
.discussion-list {
  display: flex; flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}
.discussion-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  background: rgba(108,92,231,0.05);
  border: 1px solid rgba(108,92,231,0.15);
  border-radius: 10px;
  transition: all 0.25s;
}
.discussion-item:hover {
  background: rgba(108,92,231,0.1);
  border-color: rgba(162,155,254,0.4);
}
.discussion-q {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #6c5ce7, #4834d4);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700;
}
.discussion-text {
  flex: 1;
  font-size: 0.95rem; line-height: 1.5;
  color: var(--text);
}

/* === Glossary 独立页 === */
.glossary-page {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px;
}
.glossary-header {
  text-align: center; margin-bottom: 40px;
}
.glossary-header h1 {
  font-size: 2.5rem; font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.glossary-header .subtitle {
  font-size: 1.05rem; color: var(--text-dim);
}
.glossary-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin: 24px 0;
}
.glossary-cat-tag {
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.glossary-cat-tag:hover, .glossary-cat-tag.active {
  background: rgba(108,92,231,0.15);
  border-color: rgba(162,155,254,0.4);
  color: var(--text);
}
.glossary-list {
  display: grid; gap: 14px;
  margin-top: 32px;
}
.glossary-detail {
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  scroll-margin-top: 80px;
}
.glossary-detail-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.glossary-detail-term {
  font-size: 1.5rem; font-weight: 700;
  color: var(--text);
}
.glossary-detail-en {
  font-size: 0.95rem; color: var(--text-muted); font-style: italic;
}
.glossary-detail-cat {
  margin-left: auto;
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px;
  background: rgba(108,92,231,0.15);
  border: 1px solid rgba(108,92,231,0.3);
  border-radius: 12px;
  color: #a29bfe;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.glossary-detail-short {
  font-size: 1rem; color: var(--accent, #a29bfe);
  margin-bottom: 12px; font-weight: 500;
}
.glossary-detail-body {
  font-size: 0.92rem; line-height: 1.65;
  color: var(--text-dim);
}
.glossary-detail-body strong {
  color: var(--text);
}
.glossary-detail-meta {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.8rem; color: var(--text-muted);
}
.glossary-detail-meta div strong {
  color: var(--text-dim); margin-right: 4px;
}
.glossary-related {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
}
.glossary-related strong { color: var(--text-dim); margin-right: 8px; }
.glossary-related a {
  display: inline-block; margin: 2px 4px 2px 0;
  padding: 3px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s;
}
.glossary-related a:hover {
  background: rgba(108,92,231,0.15);
  border-color: rgba(162,155,254,0.3);
  color: var(--text);
}

/* === 首页 Hot/Podcast 卡片 — 适配 24 集 === */
.podcast-stats-bar {
  display: flex; gap: 24px; justify-content: center;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin: 24px auto;
  max-width: 800px;
  flex-wrap: wrap;
}
.podcast-stat {
  text-align: center;
}
.podcast-stat-num {
  font-size: 1.6rem; font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.podcast-stat-label {
  font-size: 0.78rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 2px;
}/* === Audio Placeholder Note (v4 sync fix) === */
.audio-placeholder-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #ffc107;
}
.audio-placeholder-note .placeholder-icon {
  font-size: 1rem;
  flex-shrink: 0;
}/* === Unavailable Banner (v8 content takedown) === */
.unavailable-banner {
  max-width: 720px;
  margin: 80px auto;
  padding: 48px 40px;
  background: rgba(255, 193, 7, 0.06);
  border: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: 16px;
  text-align: center;
  color: var(--text);
}
.unavailable-banner .unavailable-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.7;
}
.unavailable-banner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffc107;
  margin-bottom: 8px;
}
.unavailable-banner .unavailable-title {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.unavailable-banner .unavailable-reason {
  text-align: left;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.unavailable-banner .unavailable-reason p { margin-bottom: 8px; line-height: 1.6; }
.unavailable-banner .unavailable-reason ul { list-style: none; padding-left: 0; }
.unavailable-banner .unavailable-reason li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}
.unavailable-banner .unavailable-reason li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #ffc107;
}
.unavailable-banner .unavailable-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 12px;
}
.unavailable-banner .unavailable-back {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #6c5ce7, #4834d4);
  color: #fff;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
  transition: all 0.25s;
}
.unavailable-banner .unavailable-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108,92,231,0.4);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .nav { padding: 8px 16px; flex-wrap: wrap; }
  .nav-links { display: none; flex-direction: column; width: 100%; background: #111; padding: 8px 0; border-radius: 8px; margin-top: 8px; }
  .nav-links.open { display: flex; }
  .nav-links li { margin: 0; padding: 6px 16px; }
  .nav-mobile-toggle { display: block; }
  
  .hero { padding: 32px 16px 24px; }
  .hero h1 { font-size: 24px; line-height: 1.3; }
  
  .episodes-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 12px; }
  .episodes-grid.featured { grid-template-columns: 1fr; }
  .ep-card img, .ep-cover-gen { height: 180px; }
  
  .ep-page { padding: 16px 12px; }
  .ep-hero { padding: 24px 16px 16px; }
  .ep-hero h1 { font-size: 22px; }
  
  .player-row { flex-wrap: wrap; gap: 8px; }
  .sub-panel { max-height: 50vh; }
  .sub-line { padding: 8px 10px; font-size: 13px; }
  .sub-en { font-size: 13px; }
  .sub-zh { font-size: 12px; }
  
  .speakers-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 8px; }
  
  button, .sub-line, .ep-card, .nav-links a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 16px; }
  .hero h1 { font-size: 20px; }
  .ep-card img, .ep-cover-gen { height: 150px; }
  .ep-card h3 { font-size: 14px; }
  .speakers-grid { grid-template-columns: 1fr; }
}

/* ========================================
   LIGHT MODE
   ======================================== */
body.light {
  --bg: #f0f0f2;
  --bg-card: #fff;
  --text: #111;
  --text-secondary: #444;
  --border: rgba(0,0,0,.12);
  --accent: #5b4cdb;
  --accent-light: #8b7cf0;
  --nav-bg: rgba(255,255,255,.95);
  --card-hover: rgba(0,0,0,.03);
  --tag-bg: rgba(91,76,219,.1);
  --player-bg: #eaeaec;
  --sub-active: rgba(91,76,219,.08);
  --inset: rgba(0,0,0,.05);
  color: #111;
  background: #f0f0f2;
}

body.light .nav { background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(0,0,0,.1); backdrop-filter: blur(20px); }
body.light .nav a { color: #111; }
body.light .nav-logo { color: #5b4cdb; }
body.light .ep-card { background: #fff; border: 1px solid rgba(0,0,0,.1); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
body.light .ep-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
body.light .ep-card h3, body.light .ep-card h4 { color: #111; }
body.light .ep-card .ep-summary, body.light .ep-meta span, body.light .ep-tags span { color: #444; }
body.light .speaker-card { background: #fff; border: 1px solid rgba(0,0,0,.1); color: #111; }
body.light .speaker-card p, body.light .speaker-card .bio { color: #444; }
body.light .speaker-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
body.light .hero h1 { color: #111; }
body.light .hero p, body.light .hero .subtitle { color: #444; }
body.light .hero-search input { background: #fff; border: 1px solid rgba(0,0,0,.15); color: #111; }
body.light .hero-search input::placeholder { color: #999; }
body.light .sub-line { border-left: 2px solid transparent; color: #111; }
body.light .sub-line.active { background: rgba(91,76,219,.08); border-left-color: #5b4cdb; }
body.light .sub-en { color: #111; font-weight: 500; }
body.light .sub-zh { color: #555; font-weight: 400; }
body.light .sub-time { color: #888; }
body.light .player-waveform { background: #dddde3; }
body.light .player-controls button { color: #111; }
body.light .player-row .time { color: #444; }
body.light .deep-section { background: #fff; border: 1px solid rgba(0,0,0,.1); }
body.light .deep-section h2 { color: #111; }
body.light .insight-deep { background: #f5f5f7; border: 1px solid rgba(0,0,0,.08); }
body.light .insight-deep h3 { color: #111; }
body.light .insight-deep h4 { color: #5b4cdb; }
body.light .insight-deep .body-en, body.light .insight-deep .body-zh { color: #333; }
body.light .quotes-grid a, body.light .quotes-grid div { background: #fff; border: 1px solid rgba(0,0,0,.1); color: #111; }
body.light .comment-list a { background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); color: #111; }
body.light footer { color: #888; border-top: 1px solid rgba(0,0,0,.1); }
body.light footer a { color: #5b4cdb; }
body.light #mini-player { background: rgba(255,255,255,.97); border-top: 1px solid rgba(0,0,0,.1); }
body.light .mini-title { color: #111; }
body.light .mini-subtitle { color: #555; }
body.light .mini-play, body.light .mini-close { background: rgba(0,0,0,.08); color: #111; }
body.light h1, body.light h2, body.light h3 { color: #111; }
body.light p, body.light span, body.light li { color: #222; }
body.light .nav-subtitle, body.light .nav-icon + span { color: #444; }

/* Toggle button */
.theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 20px; padding: 4px 10px; font-size: 14px; cursor: pointer;
  margin-left: 8px; transition: all .2s;
}
.theme-toggle:hover { background: var(--card-hover); }
