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

:root {
  --bg: #1c2438;
  --surface: #243049;
  --surface-2: #2e3b58;
  --accent: #f08a3e;
  --accent-2: #4a90c2;
  --text: #f5f1e8;
  --text-muted: #a8b0c2;
  --radius: 14px;
  --overlay-bg: rgba(0, 0, 0, 0.88);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header / Banner ── */
.site-header {
  width: 100%;
  overflow: hidden;
}

.banner {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Main ── */
.main-content {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

/* ── Hero ── */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.podcast-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.podcast-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

/* ── Listen buttons ── */
.listen-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.listen-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  background: #000;
  color: #fff;
  line-height: 1.1;
  transition: transform 0.15s, opacity 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.listen-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.listen-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c8c8c8;
}

.listen-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.listen-btn.spotify .listen-name { color: #1db954; }
.listen-btn.apple .listen-name   { color: #c87fe6; }

/* ── Replay promo button ── */
.replay-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #1c2438;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.replay-promo-btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.replay-promo-btn::before {
  content: '▶';
  font-size: 0.8em;
}

/* ── Episode Preview ── */
.episode-preview {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.episode-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.episode-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.episode-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.episode-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.episode-player audio {
  width: 100%;
  border-radius: 8px;
  accent-color: var(--accent);
  margin-bottom: 1rem;
}

.episode-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .episode-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .episode-cover {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--surface-2);
}

/* ── Promo Overlay ── */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.promo-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.promo-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.promo-container video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.promo-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.promo-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.promo-play-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s;
}

.promo-play-prompt.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #1c2438;
  border: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}

.play-btn:hover {
  transform: scale(1.06);
}

.play-icon {
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 480px) {
  .promo-container video {
    aspect-ratio: 9 / 16;
  }
}
