:root {
  color-scheme: dark;
  --background: #0c0f14;
  --panel: rgba(16, 22, 31, 0.88);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f4f5f7;
  --muted: rgba(244, 245, 247, 0.68);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --photo-cow: url("../../assets/media/IMG_1268.JPG");
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100svh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 180, 95, 0.09), transparent 24%),
    linear-gradient(180deg, #121822 0%, var(--background) 58%, #080b10 100%);
}
a { color: inherit; text-decoration: none; }
.episode-page { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 40px; }
.site-footer {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}
.episode-nav, .episode-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: 22px;
}
.episode-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.episode-card { display: grid; gap: 16px; padding: 22px; }
.eyebrow, .path, .section-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2 { margin: 0; font-weight: 500; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; }
.lede, p, li { color: var(--muted); line-height: 1.65; }
.meta, .episode-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip, .episode-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 14px; margin-top: 14px; }
.stack { display: grid; gap: 14px; }
.embed-shell {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}
audio, iframe { width: 100%; }
iframe { min-height: 260px; border: 0; background: rgba(255, 255, 255, 0.03); }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .episode-nav { flex-direction: column; }
}

:root {
  --background: #000000;
  --panel: rgba(10, 10, 10, 0.9);
  --accent: #d7b45f;
  --accent-soft: rgba(215, 180, 95, 0.18);
}

html, body {
  background-color: #000000;
}

body {
  background: none;
  background-color: #000000;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(180deg, rgba(8, 10, 8, 0.54), rgba(7, 8, 7, 0.78)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08) 36%, rgba(0, 0, 0, 0.42)),
    var(--photo-cow),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.16) 0.5px, transparent 0.9px),
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.12) 0.6px, transparent 1px);
  background-size: cover, cover, cover, 180px 180px, 180px 180px;
  background-position: center 42%, center 42%, center 42%, 0 0, 0 0;
  opacity: 0.38;
}

body::after {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 32%),
    radial-gradient(circle at bottom right, rgba(215, 180, 95, 0.06), transparent 28%),
    radial-gradient(circle at center, transparent 58%, rgba(0, 0, 0, 0.46) 100%);
}

.episode-nav,
.episode-card,
.site-footer,
.embed-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.episode-nav::after,
.episode-card::after,
.site-footer::after,
.embed-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 22%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.2;
}

.episode-nav::before,
.episode-card::before,
.site-footer::before,
.embed-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(9, 11, 9, 0.46), rgba(7, 8, 7, 0.72)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.38)),
    var(--photo-cow);
  background-size: cover;
  background-position: center 52%;
  opacity: 0.42;
  z-index: 0;
}

.episode-card:nth-of-type(2n)::before,
.layout aside .episode-card::before {
  background-position: center 62%;
  opacity: 0.34;
}

.episode-nav > *,
.episode-card > *,
.site-footer > *,
.embed-shell > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.path,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::after,
.path::after,
.section-kicker::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}

h1,
h2 {
  text-wrap: balance;
}

.chip,
.episode-link {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.chip:hover,
.episode-link:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 180, 95, 0.24);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}
