:root {
  --page: #05060b;
  --panel: #0b0e18;
  --panel-2: #101424;
  --text: #f7f8fb;
  --muted: #aeb6c8;
  --line: rgba(255, 255, 255, 0.10);

  --blue: #2c8cff;
  --blue-deep: #0c2f83;
  --red: #ff3148;
  --red-deep: #7a1028;

  --shell: 1180px;
  --radius: 18px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(44, 140, 255, 0.10), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(255, 49, 72, 0.10), transparent 28rem),
    var(--page);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

/* Header + banner now come from the shared css/site-header.css. */

/* Section eyebrow (kept: used by the section heading). */
.eyebrow {
  margin: 0 0 8px;
  color: #d7dcec;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(44, 140, 255, 0.92), rgba(255, 49, 72, 0.92));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* Episode section */

.episodes-section {
  /* Sits directly under the shared header, so only a comfortable top gap. */
  padding-block: 44px 90px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-weight: 800;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 22px;
}

.episode-card {
  --accent: var(--blue);
  position: relative;
  height: 100%;
  overflow: hidden;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.episode-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 82%, white 4%);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.48),
    0 0 28px color-mix(in srgb, var(--accent) 16%, transparent);
}

.episode-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.episode-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(44, 140, 255, 0.20), rgba(255, 49, 72, 0.20)),
    #d8d8dc;
}

.episode-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
}

.episode-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.episode-card:hover .episode-card__image {
  transform: scale(1.025);
}

.episode-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(9, 11, 18, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.episode-card__badge {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 72%, #05060b);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.36);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.episode-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 218px;
  padding: 18px 18px 20px;
}

.episode-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.episode-card__meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: color-mix(in srgb, var(--accent) 80%, white);
}

.episode-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.episode-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  margin: 14px 0 0;
  color: #d5daea;
  font-size: 0.94rem;
  line-height: 1.48;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.episode-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: color-mix(in srgb, var(--accent) 72%, white);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.episode-card__cta::after {
  content: "→";
  font-size: 1.1em;
  transition: transform 160ms ease;
}

.episode-card:hover .episode-card__cta::after {
  transform: translateX(4px);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.load-more-button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: var(--panel-2);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.load-more-button:hover,
.load-more-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: #171c2d;
}

.load-more-button[hidden] {
  display: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #030409;
}

.site-footer__inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Responsive */

@media (max-width: 900px) {
  .episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 22px), var(--shell));
  }

  .episodes-section {
    padding-block: 32px 70px;
  }

  .episode-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .episode-card__body {
    min-height: 0;
  }

  .filters {
    width: 100%;
  }

  .filter-button {
    flex: 1;
  }

  .site-footer__inner {
    min-height: 110px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-block: 24px;
  }

  .site-footer__inner p {
    margin: 0;
  }
}
