/* ===================================================================
   StrikePoint — Commander Striker: Mission Control.
   The series page (/commander-striker/), the "Commander Striker
   Adventures" gallery section and the homepage feature, all rendered from
   src/commander-striker.mjs. Colors and fonts come from pages.css (or the
   homepage's inline copy); players use /youtube-embed.css.
   =================================================================== */

.cs-page .visually-hidden, .cs-feature .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Buttons and links ---------- */
.cs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.cs-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 15px 30px; font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cs-btn--primary {
  background: var(--red); color: #fff;
  box-shadow: 0 0 0 1px var(--red), 0 8px 32px rgba(255,42,60,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.cs-btn--primary:hover { background: var(--red-glow); transform: translateY(-2px); }
.cs-btn--secondary { background: transparent; color: var(--blue-glow); border: 1px solid var(--blue); }
.cs-btn--secondary:hover { background: rgba(30,136,255,0.12); color: #fff; }
.cs-btn--small { min-height: 44px; padding: 11px 22px; font-size: 14px; }
/* Angled buttons are clip-pathed, so their focus ring sits inside the edge. */
.cs-btn:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

.cs-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-glow); text-decoration: underline; text-underline-offset: 5px;
}
.cs-link:hover { color: #fff; }
.cs-link:focus-visible, .cs-step:focus-visible, .cs-card-thumb:focus-visible {
  outline: 3px solid var(--blue-glow); outline-offset: 3px;
}

.cs-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-glow);
}
.cs-disclosure {
  margin-top: 22px; max-width: 46rem;
  font-size: 15px; line-height: 1.6; color: var(--ink-dim);
  padding-left: 14px; border-left: 3px solid var(--line-bright);
}

/* ---------- Series page hero ---------- */
.cs-hero {
  position: relative; overflow: hidden; padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(255,42,60,0.22), transparent 70%),
    radial-gradient(60% 90% at 100% 100%, rgba(30,136,255,0.24), transparent 70%),
    var(--bg-1);
}
.cs-title {
  font-family: 'Black Ops One', sans-serif; font-weight: 400;
  font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: 0.01em;
  color: var(--ink); margin-bottom: 22px;
}
.cs-title span { display: block; color: var(--blue-glow); }
.cs-intro { max-width: 46rem; font-size: clamp(18px, 2vw, 21px); color: var(--steel); text-wrap: pretty; }

.cs-section { padding: 72px 0; }
.cs-section--episodes { padding-top: 0; }

/* ---------- Standby (no episode published yet) ---------- */
.cs-soon {
  padding: 36px 32px; text-align: center;
  background: var(--bg-1); border: 1px dashed var(--line-bright);
}
.cs-soon-title { margin: 10px 0 12px; font-family: 'Black Ops One', sans-serif; font-weight: 400; font-size: clamp(24px, 3vw, 32px); }
.cs-soon p:last-child { color: var(--ink-dim); }

/* ---------- Episode library ---------- */
.cs-library {
  list-style: none; margin-top: 40px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.cs-card article {
  height: 100%; display: flex; flex-direction: column;
  background: var(--bg-1); border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
.cs-card:nth-child(even) article { border-top-color: var(--blue); }
.cs-card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.cs-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 0.3s; }
.cs-card-thumb:hover img { transform: scale(1.04); }
.cs-card-num {
  position: absolute; left: 0; bottom: 0; padding: 6px 14px;
  font-family: 'Black Ops One', sans-serif; font-size: 22px; color: #fff;
  background: rgba(5,7,13,0.82);
}
.cs-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.cs-card-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.03em; }
.cs-card-body p:not(.cs-kicker) { color: var(--ink-dim); font-size: 16px; }
.cs-card-body .cs-btn { margin-top: auto; align-self: flex-start; }

/* ---------- Episodes ---------- */
.cs-episode { scroll-margin-top: 100px; padding-top: 64px; }
.cs-episode + .cs-episode { margin-top: 32px; border-top: 1px solid var(--line); }
.cs-episode-head { margin-bottom: 22px; max-width: 46rem; }
.cs-episode-title {
  margin: 8px 0 10px; font-family: 'Black Ops One', sans-serif; font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1;
}
.cs-episode-head p:last-child { color: var(--ink-dim); font-size: 17px; }

/* The frame keeps each video's own aspect ratio (set inline) and stays
   within the viewport height, so vertical episodes are centred. */
.cs-player { margin: 0; }
.cs-player .cs-frame { margin-inline: auto; border: 1px solid var(--line-bright); }
.cs-player--portrait .yt-play-btn { padding: 12px 20px; font-size: 14px; letter-spacing: 0.12em; }

.cs-recap { margin-top: 26px; max-width: 46rem; padding: 20px 22px; background: var(--bg-1); border-left: 3px solid var(--blue); }
.cs-recap h4 { margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-glow); }
.cs-recap p { color: var(--steel); }

.cs-steps { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 26px; }
.cs-step {
  display: flex; flex-direction: column; gap: 4px; min-height: 44px; max-width: 100%;
  padding: 12px 18px; text-decoration: none; color: var(--ink);
  background: var(--bg-1); border: 1px solid var(--line-bright);
  transition: border-color 0.2s, background 0.2s;
}
.cs-step:hover { border-color: var(--blue); background: rgba(30,136,255,0.1); }
.cs-step--next { margin-left: auto; text-align: right; }
.cs-step-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-glow); }
.cs-step--prev .cs-step-label::before { content: "\2190\00a0"; }
.cs-step--next .cs-step-label::after { content: "\00a0\2192"; }
.cs-step-name { font-weight: 600; }

/* ---------- Booking call to action ---------- */
.cs-cta {
  margin-top: 32px; padding: 30px 30px 26px;
  background: linear-gradient(135deg, rgba(255,42,60,0.16), rgba(30,136,255,0.16)), var(--bg-1);
  border: 1px solid var(--line-bright);
}
.cs-cta-title {
  font-family: 'Black Ops One', sans-serif; font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; color: var(--ink); margin-bottom: 8px;
}
h2.cs-cta-title { font-size: clamp(26px, 3.4vw, 40px); }
.cs-section--episodes > .wrap > .cs-cta:last-child, .cs-section > .wrap > .cs-cta:last-child { margin-top: 72px; }
.cs-cta > p { color: var(--steel); font-size: 17px; }
.cs-cta .cs-actions { margin-top: 18px; }
.cs-cta-note { margin-top: 16px; font-size: 14px; color: var(--ink-dim) !important; }

/* ---------- Gallery section and homepage feature ---------- */
.cs-feature {
  margin-top: 72px; padding: 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: center;
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(255,42,60,0.16), transparent 70%),
    radial-gradient(70% 100% at 100% 100%, rgba(30,136,255,0.18), transparent 70%),
    var(--bg-1);
  border: 1px solid var(--line-bright);
  scroll-margin-top: 110px;
}
.cs-feature--home { margin-top: 0; }
/* Keep vertical episodes compact in the features (overrides the inline cap). */
.cs-feature .cs-player--portrait .cs-frame { max-width: min(100%, 340px) !important; }
.cs-feature-title {
  font-family: 'Black Ops One', sans-serif; font-weight: 400;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.05; color: var(--ink); margin-bottom: 14px;
}
.cs-feature-text > p:not(.cs-kicker):not(.cs-disclosure):not(.section-eyebrow) { color: var(--ink-dim); font-size: 17px; }
.cs-feature-text .cs-kicker { margin-top: 18px; }
.cs-feature-episode { margin: 6px 0 8px; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; }
.cs-feature .cs-disclosure { font-size: 14px; }
.cs-home { padding: 72px 0; }

@media (max-width: 900px) {
  .cs-feature { grid-template-columns: 1fr; padding: 24px 20px; gap: 26px; }
}
@media (max-width: 640px) {
  .cs-hero { padding: 56px 0 44px; }
  .cs-section, .cs-home { padding: 52px 0; }
  .cs-actions { flex-direction: column; align-items: stretch; }
  .cs-actions .cs-btn, .cs-actions .cs-link { width: 100%; justify-content: center; }
  .cs-card-body .cs-btn { align-self: stretch; }
  .cs-cta { padding: 24px 20px; }
  .cs-steps { flex-direction: column; }
  .cs-step--next { margin-left: 0; }
  .cs-library { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-btn, .cs-card-thumb img, .cs-step { transition: none; }
  .cs-btn--primary:hover, .cs-card-thumb:hover img { transform: none; }
}
