@import url("https://fonts.googleapis.com/css2?family=Abel&family=Source+Code+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap");

:root {
  --bg-black: #000000;
  --bg-series-banner: #121b27;
  --text-white: #ffffff;
  --text-body: #d8d8d8;
  --text-nav: #a5a5a5;
  --text-muted: #8c8c8c;
  --warm-outline: #e6dfd3;
  --border-subtle: #242424;
  --font-display: "Abel", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--text-white);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.65rem 1rem;
  background: var(--text-white);
  color: var(--bg-black);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Sticky Scroll Bar (Home page) */
.sticky-scroll-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--bg-black);
  border-bottom: 1px solid #1c1c1c;
}

.sticky-scroll-nav[hidden] {
  display: none;
}

.sticky-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 2rem;
}

/* Split-Centered Header */
.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1rem;
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-group {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-nav);
  white-space: nowrap;
  transition: color 0.16s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-white);
}

.brand-center {
  display: flex;
  justify-content: center;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-align: center;
}

.wordmark-top {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--text-white);
  text-transform: uppercase;
}

.wordmark-bottom {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--text-body);
  text-transform: uppercase;
  margin-top: 4px;
}

.mobile-menu-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  padding: 0.4rem 0.8rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.mobile-drawer {
  margin-top: 1rem;
  padding: 1.1rem;
  background: rgba(0, 0, 0, 0.94);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.mobile-drawer[hidden] {
  display: none;
}

/* Square Ghost Buttons */
.ghost-btn {
  display: inline-block;
  border: 2px solid var(--text-white);
  border-radius: 0;
  background: transparent;
  color: var(--text-white);
  padding: 0.9rem 1.85rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ghost-btn:hover {
  background: var(--text-white);
  color: var(--bg-black);
}

.ghost-btn-warm {
  border-color: var(--warm-outline);
  color: var(--warm-outline);
}

.ghost-btn-warm:hover {
  background: var(--warm-outline);
  color: var(--bg-black);
}

.ghost-btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 11px;
}

.text-link-btn {
  background: none;
  border: 0;
  color: var(--text-nav);
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
}

/* Hero Section (Home) */
.hero-section {
  position: relative;
  min-height: clamp(460px, 72vh, 740px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: #090909;
  /* Channel Banner options from ./assets/banners/:
     1_Frontline_Truths.jpg | 2_Frontline_Truths_Battles.jpg
     3_Frontline_Truths_Plain.jpg | 5_Frontline_Truths_Metal_AllDevices.jpg */
  background-image: url("./assets/banners/2_Frontline_Truths_Battles.jpg");
  background-size: cover;
  background-position: center center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.06) 28%,
    rgba(0, 0, 0, 0.06) 70%,
    rgba(0, 0, 0, 0.75) 90%,
    #000000 100%
  );
  pointer-events: none;
}

.hero-bottom-cta {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 0 1.25rem 3.25rem;
}

/* Featured Documentary Section */
.featured-section {
  background: var(--bg-black);
  padding: 3.5rem 1.25rem 1rem;
}

.featured-inner {
  max-width: 680px;
  margin: 0 auto;
}

.featured-eyebrow {
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-nav);
}

/* Spotify Video Podcast Section */
.spotify-section {
  background: var(--bg-black);
  padding: 3rem 1.25rem 0.5rem;
}

.spotify-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.spotify-embed-wrap {
  width: 100%;
  max-width: 624px;
  margin: 0 auto;
}

.spotify-embed-wrap iframe {
  width: 100%;
  max-width: 624px;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  margin: 0 auto;
}

.spotify-link-row {
  margin-top: 1rem;
}

.spotify-direct-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-nav);
  transition: color 0.16s ease;
}

.spotify-direct-link:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.hero-video-frame,
.series-trailer-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.hero-cover-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-cover-art {
  width: 100%;
  height: 100%;
}

.hero-cover-art svg,
.hero-cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-white);
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.hero-cover-btn:hover .hero-play-icon {
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.68);
}

.hero-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero-iframe[hidden],
.hero-demo-fallback[hidden] {
  display: none;
}

.hero-demo-fallback {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  background: #0b0b0b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}

.fallback-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fallback-copy {
  margin: 0;
  max-width: 400px;
  font-size: 12px;
  color: var(--text-body);
}

.fallback-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}



/* Our Mission Section */
.mission-section {
  background: var(--bg-black);
  padding: 5.5rem 1.25rem 6rem;
}

.mission-inner {
  max-width: 640px;
  margin: 0 auto;
}

.mission-heading {
  margin: 0 0 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-white);
}

.mission-copy {
  color: var(--text-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
}

.mission-copy p {
  margin: 0 0 1.4rem;
}

.mission-figure {
  margin: 2.75rem auto 0;
  max-width: 540px;
}

.mission-photo-frame {
  border: 3px solid var(--text-white);
  background: #141414;
  overflow: hidden;
}

.mission-photo-svg,
.mission-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.mission-caption {
  margin-top: 0.85rem;
  font-size: 12.5px;
  font-style: italic;
  color: #b8b8b8;
  line-height: 1.65;
}

.mission-cta {
  margin-top: 3rem;
  text-align: center;
}

/* Series Page Banner (#121b27) */
.series-banner {
  background-color: var(--bg-series-banner);
  background-image:
    linear-gradient(
      to bottom,
      rgba(18, 27, 39, 0.78),
      rgba(18, 27, 39, 0.88) 75%,
      #000000 100%
    ),
    url("./assets/banners/1_Frontline_Truths.jpg");
  background-size: cover;
  background-position: center 30%;
  padding-bottom: 4rem;
}

.series-banner-inner {
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  text-align: center;
}

.series-heading {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-white);
}

.series-trailer-wrap {
  width: 100%;
}

/* Series Episode Catalog (#000000) */
.series-catalog-section {
  background: var(--bg-black);
  padding: 3.5rem 1.25rem 5rem;
}

.series-container {
  max-width: 1012px;
  margin: 0 auto;
}

.demo-banner {
  margin-bottom: 2rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-subtle);
  background: #0d0d0d;
  font-size: 12px;
  color: var(--text-muted);
}

.demo-banner[hidden] {
  display: none;
}

.series-filter-bar {
  padding-bottom: 1.25rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.series-filter-tabs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.series-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.25rem 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.series-tab:hover,
.series-tab.is-active {
  color: var(--text-white);
}

.series-tab.is-active {
  border-bottom-color: var(--text-white);
}

.series-search-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.series-search-input {
  width: 100%;
  max-width: 240px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #3a3a3a;
  padding: 0.35rem 0;
  font-size: 12px;
  color: var(--text-white);
}

.series-search-input::placeholder {
  color: var(--text-muted);
}

.series-search-input:focus {
  outline: none;
  border-bottom-color: var(--text-white);
}

.series-count {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 2-Column Horizontal Episode Stack */
.episode-stack {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.episode-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.episode-thumb-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #222222;
  background: #101010;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.episode-thumb-link img,
.episode-thumb-link svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.episode-thumb-link:hover img,
.episode-thumb-link:hover svg {
  opacity: 0.85;
  transform: scale(1.015);
}

.episode-play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-white);
  display: grid;
  place-items: center;
  opacity: 0.88;
  transition: transform 0.16s ease;
}

.episode-thumb-link:hover .episode-play-badge {
  transform: scale(1.07);
}

.episode-duration {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 0, 0, 0.85);
  font-size: 11px;
  color: var(--text-white);
}

.episode-content {
  text-align: left;
}

.episode-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-white);
}

.episode-title a:hover,
.episode-title button:hover {
  text-decoration: underline;
}

.episode-title-btn {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.episode-synopsis {
  margin: 0 0 0.9rem;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-body);
}

.episode-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 11.5px;
  color: var(--text-muted);
}

.episode-yt-action {
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-white);
  cursor: pointer;
}

.episode-yt-action:hover {
  text-decoration: underline;
}

.series-empty {
  padding: 3.5rem 1rem;
  text-align: center;
  color: var(--text-body);
}

.series-empty[hidden],
.series-load-more[hidden] {
  display: none;
}

.series-load-more {
  margin-top: 3rem;
  text-align: center;
}

.series-bottom-cta {
  margin-top: 4.5rem;
  text-align: center;
}

/* Minimal Footer */
.site-footer {
  background: var(--bg-black);
  border-top: 1px solid #161616;
  padding: 3.25rem 1.25rem;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-white);
}

.footer-socials a:hover {
  opacity: 0.75;
}

.footer-credit {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #666666;
}

/* Optional Video Modal (when config.clickMode === "modal") */
.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-dialog {
  width: 100%;
  max-width: 860px;
  background: #0d0d0d;
  border: 1px solid #2d2d2d;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #222222;
}

.modal-cat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.modal-player-wrap {
  aspect-ratio: 16 / 9;
  background: #000000;
}

.modal-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.modal-body {
  padding: 1.25rem;
}

.modal-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}

.modal-desc {
  margin: 0 0 1rem;
  font-size: 13px;
  color: var(--text-body);
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #222222;
}

.modal-meta {
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
  }
  .nav-group {
    display: flex;
  }
  .nav-left {
    justify-content: flex-end;
  }
  .nav-right {
    justify-content: flex-start;
  }
  .mobile-menu-btn {
    display: none;
  }
  .series-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .episode-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem;
  }
}
