:root {
  --bg: #0e1020;
  --bg-soft: #161a35;
  --bg-card: #1c2046;
  --text: #f7f7fb;
  --text-soft: #a8acc6;
  --text-muted: #6c708d;
  --accent-maya: #ff9f1c;
  --accent-theo: #2ec4b6;
  --accent-rss: #f7931e;
  --border: #232851;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-theo);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}
h3 {
  font-size: 1.25rem;
}

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

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 28px 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.site-header nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}
.site-header nav a {
  color: var(--text-soft);
}
.site-header nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 28px 56px;
}
.hero-art img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-theo);
  background: rgba(46, 196, 182, 0.1);
  border: 1px solid rgba(46, 196, 182, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: 600;
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-theo);
  box-shadow: 0 0 8px var(--accent-theo);
  animation: chip-pulse 2.4s ease-in-out infinite;
}
@keyframes chip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.tagline {
  color: var(--text-soft);
  font-size: 1.18rem;
  margin: 0 0 28px;
  max-width: 560px;
}

/* ---------- AI disclosure strip ---------- */
.disclosure {
  max-width: 720px;
  margin: 48px auto;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-maya);
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.disclosure p {
  margin: 0;
}

.listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.12s ease, background 0.18s ease;
}
.listen-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: var(--bg-soft);
}
.listen-btn.yt {
  background: linear-gradient(135deg, #ff0033, #c4001f);
  border-color: transparent;
}
.listen-btn.sp {
  background: #1db954;
  border-color: transparent;
  color: #08110a;
}
.listen-btn.ap {
  background: linear-gradient(135deg, #ad48eb, #6e3afa);
  border-color: transparent;
}
.listen-btn.rss {
  background: var(--accent-rss);
  color: #1a1300;
  border-color: transparent;
}
.listen-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Section scaffolding ---------- */
section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 28px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* ---------- Latest episode ---------- */
.latest-card {
  background: linear-gradient(135deg, #1c2046 0%, #161a35 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.5fr;
  gap: 28px;
}
.latest-card .player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  align-self: start;
}
/* Default (has iframe or video): use 16:9 for the player. */
.latest-card .player-wrap:has(iframe),
.latest-card .player-wrap:has(video) {
  aspect-ratio: 16 / 9;
}
.latest-card .player-wrap iframe,
.latest-card .player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
/* Cover-only (no video yet): show the square art without cropping. */
.latest-card .player-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
}
/* Clickable cover acts as the primary play/pause control. */
.latest-card .cover-play {
  all: unset;
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  outline: none;
}
.latest-card .cover-play:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}
.latest-card .cover-play img {
  transition: transform 200ms ease;
}
.latest-card .cover-play:hover img {
  transform: scale(1.02);
}
.latest-card .cover-play__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.latest-card .cover-play__overlay svg {
  width: 22%;
  max-width: 96px;
  min-width: 56px;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  transition: transform 200ms ease;
}
.latest-card .cover-play:hover .cover-play__overlay svg {
  transform: scale(1.06);
}
.latest-card .cover-play .icon-pause {
  display: none;
}
.latest-card .cover-play.is-playing .cover-play__overlay {
  opacity: 0;
}
.latest-card .cover-play.is-playing:hover .cover-play__overlay,
.latest-card .cover-play.is-playing:focus-visible .cover-play__overlay {
  opacity: 1;
}
.latest-card .cover-play.is-playing .icon-play {
  display: none;
}
.latest-card .cover-play.is-playing .icon-pause {
  display: inline-block;
}
.latest-card audio {
  width: 100%;
  margin-top: 14px;
}
.latest-card .latest-body h3 {
  font-size: 1.55rem;
  margin: 0 0 8px;
}
.latest-card .latest-body .ep-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.latest-card .latest-body .ep-desc {
  color: var(--text-soft);
  font-size: 1.02rem;
  margin-bottom: 16px;
}
/* ---------- Episode grid ---------- */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.episode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.18s ease;
}
.episode-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-theo);
}
.episode-card h3 {
  font-size: 1.08rem;
  margin: 0;
}
.episode-card .ep-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.episode-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0;
  flex-grow: 1;
}
.episode-card .ep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.episode-card .pill {
  font-size: 0.78rem;
  padding: 5px 10px;
  background: rgba(46, 196, 182, 0.12);
  color: var(--accent-theo);
  border-radius: 999px;
}

/* ---------- Hosts ---------- */
.hosts-section {
  position: relative;
}
.hosts-section h2 {
  margin-bottom: 4px;
}
.section-sub {
  margin: 0 0 28px;
  font-size: 1rem;
}
.hosts-stage {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.host-intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
}
.host-intro.theo {
  grid-template-columns: 1fr 200px;
}
.host-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border: 3px solid transparent;
  animation: avatar-pop 0.6s ease-out both;
}
.host-intro.maya .host-avatar {
  border-color: var(--accent-maya);
}
.host-intro.theo .host-avatar {
  border-color: var(--accent-theo);
}
.host-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes avatar-pop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Speech bubbles — classic comic/chat style with a tail pointing at the avatar */
.host-bubble {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px 26px 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  animation: bubble-in 0.6s ease-out 0.15s both;
}
.host-intro.maya .host-bubble {
  border-left: 4px solid var(--accent-maya);
}
.host-intro.theo .host-bubble {
  border-right: 4px solid var(--accent-theo);
}
/* The little triangle tail — two stacked triangles so we can recreate the border. */
.host-bubble::before,
.host-bubble::after {
  content: "";
  position: absolute;
  top: 46px;
  width: 0;
  height: 0;
  border-style: solid;
}
/* Maya's bubble is on the right; tail points LEFT toward the avatar. */
.host-intro.maya .host-bubble::before {
  left: -14px;
  border-width: 10px 14px 10px 0;
  border-color: transparent var(--border) transparent transparent;
}
.host-intro.maya .host-bubble::after {
  left: -12px;
  border-width: 9px 13px 9px 0;
  border-color: transparent var(--bg-card) transparent transparent;
}
/* Theo's bubble is on the left; tail points RIGHT toward the avatar. */
.host-intro.theo .host-bubble::before {
  right: -14px;
  border-width: 10px 0 10px 14px;
  border-color: transparent transparent transparent var(--border);
}
.host-intro.theo .host-bubble::after {
  right: -12px;
  border-width: 9px 0 9px 13px;
  border-color: transparent transparent transparent var(--bg-card);
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bubble-greeting {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--text);
}
.host-intro.maya .bubble-greeting strong {
  color: var(--accent-maya);
}
.host-intro.theo .bubble-greeting strong {
  color: var(--accent-theo);
}
.bubble-line {
  margin: 0 0 12px;
  color: var(--text-soft);
  line-height: 1.55;
}
.bubble-line em {
  color: var(--text);
  font-style: italic;
}
.bubble-role {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- Vote callout ---------- */
.vote-callout {
  background: linear-gradient(135deg, rgba(255, 159, 28, 0.14) 0%, rgba(46, 196, 182, 0.14) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 36px;
}
.vote-callout h2 {
  margin-bottom: 8px;
}
.vote-callout .soon {
  background: rgba(255, 159, 28, 0.2);
  color: var(--accent-maya);
  font-size: 0.7em;
  padding: 4px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 8px;
}
.vote-callout p {
  color: var(--text-soft);
  margin: 0 0 14px;
}
.soon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.soon-list li {
  color: var(--text-soft);
  font-size: 0.96rem;
  padding-left: 20px;
  position: relative;
}
.soon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-maya);
  opacity: 0.75;
}
.soon-list li strong {
  color: var(--text);
  font-weight: 600;
}
.email-form {
  display: flex;
  gap: 8px;
}
.email-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}
.email-form button {
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  background: var(--accent-maya);
  color: #1a1300;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 48px;
  padding: 36px 28px;
  border-top: 1px solid var(--border);
  background: #0a0c1c;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.footer-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li {
  margin-bottom: 6px;
}
.footer-grid li a {
  color: var(--text-soft);
}
.copy {
  text-align: center;
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero,
  .latest-card,
  .vote-callout {
    grid-template-columns: 1fr;
  }
  .hero-art img {
    max-width: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-header nav {
    display: none;
  }
  /* Stack hosts vertically on mobile: avatar above, bubble below, tail points up. */
  .host-intro,
  .host-intro.theo {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
    gap: 18px;
  }
  .host-avatar {
    width: 140px;
    height: 140px;
  }
  .host-intro.theo .host-avatar {
    order: -1;
  }
  .host-bubble {
    width: 100%;
  }
  /* On mobile, rotate the tail to point upward at the avatar. */
  .host-intro.maya .host-bubble::before,
  .host-intro.theo .host-bubble::before {
    top: -14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-width: 0 14px 14px 14px;
    border-color: transparent transparent var(--border) transparent;
  }
  .host-intro.maya .host-bubble::after,
  .host-intro.theo .host-bubble::after {
    top: -12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-width: 0 13px 13px 13px;
    border-color: transparent transparent var(--bg-card) transparent;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .listen-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
}
