/* ============================================================
 * Daily Podcast page — scoped under .pod-*
 * ========================================================== */
.pod-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px 80px;
  font-family: 'Tajawal','Segoe UI',Tahoma,sans-serif;
  color: var(--text, #1a1a2e);
}

/* ---- HERO + PLAYER ---------------------------------------- */
.pod-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1a5c5c 60%, #0d9488 100%);
  color: #fff;
  border-radius: 20px;
  padding: 40px 32px 28px;
  margin: 24px 0 28px;
  position: relative;
  overflow: hidden;
}
.pod-hero::after {
  content: '';
  position: absolute; right: -40px; bottom: -40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.35), transparent 70%);
  pointer-events: none;
}
.pod-hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.95);
  color: #1a1a2e;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.pod-hero-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
  position: relative; z-index: 2;
}
.pod-hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px;
  position: relative; z-index: 2;
}
.pod-hero-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 20px;
  position: relative; z-index: 2;
}

/* Audio element */
#podcastAudio {
  width: 100%;
  display: block;
  border-radius: 10px;
  margin-bottom: 12px;
  position: relative; z-index: 2;
  /* Native audio controls look acceptable in all browsers;
     tweaking further (e.g. replacing with a custom element)
     tends to lose the Media Session integration. */
}
.pod-speed-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 12px; font-weight: 700;
  position: relative; z-index: 2;
}
.pod-speed-row > span {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 6px;
}
.pod-speed {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.pod-speed.active { background: #f59e0b; color: #1a1a2e; }
.pod-speed:hover  { background: rgba(255, 255, 255, 0.25); }
.pod-speed.active:hover { background: #f59e0b; }

.pod-no-audio {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
}

/* ---- CONTENT (chapters + transcript) ---------------------- */
.pod-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
}
.pod-section-h {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--accent-2, #0d9488);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, #e3e6ec);
}
.pod-chapters ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.pod-chapter {
  display: flex; gap: 12px; align-items: flex-start;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--border, #e3e6ec);
  border-radius: 8px;
  text-align: start;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.pod-chapter:hover {
  background: var(--bg-2, #fdfaf2);
  border-color: var(--accent-2, #0d9488);
}
.pod-chapter-time {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-2, #0d9488);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  flex: 0 0 auto;
  padding-top: 1px;
}
.pod-chapter-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text, #1a1a2e);
  line-height: 1.5;
}

.pod-transcript { min-width: 0; }
.pod-intro {
  font-size: 16px;
  font-style: italic;
  color: var(--text-2, #374151);
  background: var(--bg-2, #fdfaf2);
  padding: 16px 20px;
  border-right: 3px solid var(--accent-2, #0d9488);
  border-radius: 0 10px 10px 0;
  margin-bottom: 20px;
  line-height: 1.8;
}
.pod-script {
  font-size: 16px;
  line-height: 2;
  color: var(--text-2, #374151);
  white-space: pre-wrap;
}

/* ---- SUBSCRIBE CTA ---------------------------------------- */
.pod-subscribe {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #e3e6ec);
}
.pod-sub-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.pod-sub {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e3e6ec);
  border-radius: 12px;
  text-decoration: none; color: var(--text, #1a1a2e);
  transition: all .15s;
}
.pod-sub:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(13, 148, 136, 0.25); }
.pod-sub-ico { font-size: 24px; flex: 0 0 auto; }
.pod-sub-lbl { display: block; font-size: 11px; color: var(--muted, #6b7280); font-weight: 600; }
.pod-sub strong { display: block; font-size: 14px; font-weight: 800; }
.pod-sub-apple  strong { color: #A43DCC; }
.pod-sub-spotify strong { color: #1DB954; }

/* ---- ARCHIVE PAGE ----------------------------------------- */
.pod-archive-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.pod-archive-head { text-align: center; margin-bottom: 32px; }
.pod-archive-head h1 { font-size: 28px; margin: 12px 0 6px; font-weight: 900; }
.pod-archive-head p  { color: var(--muted, #6b7280); font-size: 14px; margin: 0; }
.pod-back { font-size: 13px; color: var(--accent-2, #0d9488); text-decoration: none; font-weight: 700; }
.pod-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pod-archive-card {
  display: flex; gap: 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e3e6ec);
  border-right: 4px solid var(--accent-2, #0d9488);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.pod-archive-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(13, 148, 136, 0.25); }
.pod-archive-ico { font-size: 36px; flex: 0 0 auto; line-height: 1; }
.pod-archive-body { flex: 1; min-width: 0; }
.pod-archive-date {
  font-size: 11px; font-weight: 800; color: var(--accent-2, #0d9488);
  letter-spacing: 1.5px; margin-bottom: 4px;
}
.pod-archive-body h3 {
  font-size: 16px; font-weight: 800; line-height: 1.4; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pod-archive-body p {
  font-size: 13px; color: var(--muted, #6b7280); line-height: 1.55; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pod-archive-meta { font-size: 12px; color: var(--muted, #6b7280); font-weight: 600; }

/* ---- EMPTY STATE ------------------------------------------ */
.pod-empty-state { min-height: 50vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.pod-empty-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e3e6ec);
  border-radius: 18px;
  padding: 48px 32px;
  text-align: center;
  max-width: 480px;
}
.pod-empty-ico { font-size: 60px; margin-bottom: 14px; }
.pod-empty-card h1 { font-size: 22px; margin: 0 0 10px; font-weight: 900; }
.pod-empty-card p  { font-size: 15px; color: var(--muted, #6b7280); margin: 0 0 22px; line-height: 1.75; }
.pod-btn-primary {
  display: inline-block; padding: 12px 24px;
  background: var(--accent-2, #0d9488); color: #fff;
  border-radius: 10px; font-weight: 800; text-decoration: none;
  margin: 0 6px 8px;
}
.pod-btn-ghost {
  display: inline-block; padding: 12px 24px;
  background: transparent; color: var(--text, #1a1a2e);
  border: 1px solid var(--border, #e3e6ec);
  border-radius: 10px; font-weight: 800; text-decoration: none;
  margin: 0 6px 8px;
}
.pod-empty { color: var(--muted, #6b7280); text-align: center; padding: 40px; }

/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 820px) {
  .pod-hero { padding: 32px 22px 22px; }
  .pod-hero-title { font-size: 26px; }
  .pod-hero-subtitle { font-size: 15px; }
  .pod-content { grid-template-columns: 1fr; }
  .pod-chapters ol { max-height: 260px; overflow-y: auto; }
}
@media (max-width: 520px) {
  .pod-hero-title { font-size: 22px; }
  .pod-hero-meta { font-size: 12px; gap: 10px; }
  .pod-sub-row { grid-template-columns: 1fr 1fr; }
  .pod-sub { padding: 12px; }
}

/* ---- DARK THEME ------------------------------------------- */
[data-theme="dark"] .pod-archive-card,
[data-theme="dark"] .pod-empty-card,
[data-theme="dark"] .pod-sub {
  background: var(--surface, #1a1e33);
  border-color: var(--border, #2a2f48);
}
