/* ==========================================================
   Sal and Eddie - The Inside Track
   style.css
   ========================================================== */

/* -- RESET & VARIABLES -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root {
  --black: #0a0a12;
  --black-light: #14141f;
  --orange: #ff6b35;
  --orange-dark: #e55a28;
  --sage: #a8a67b;
  --sage-dark: #8a886a;
  --white: #f0ede6;
  --white-dim: #c8c5bb;
  --grey: #2a2a3a;
  --font-display: 'Bangers', cursive;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

/* Bangers metrics changed upstream - restore letter spacing globally.
   Body text uses DM Sans so this only hits display-font elements. */
h1, h2, h3, .pilot-label, .nav-subscribe, .footer-logo,
.about-quote, .section-label, .section-title, .char-card h3,
.episode-card h3, .coming-soon h2 {
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Bangers ships ONE weight (400). A heading is bold by browser default, so
     the browser was synthesising the bold it could not find — smearing each
     glyph over itself, which read as the text being printed twice slightly
     out of register (owner, 2026-08-11). Ask for the weight that exists, and
     refuse synthesis outright so this cannot come back if a weight is set
     somewhere else later. */
  font-weight: 400;
  font-synthesis: none;
}
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  /* Bangers ships ONE weight (400), so any element the browser thinks
   should be bold — every heading, and anything at 500+ — was getting a
   SYNTHESISED bold: the glyph smeared over itself, which reads as muddy
   (owner spotted it on the stat numbers, 2026-08-12). A targeted rule
   fixed two selectors in August and left the hero headline, every h2/h3
   and the Subscribe button still smearing. This is inherited, so it
   covers anything added later. Safe for the body faces: DM Sans and
   Comic Neue ship real 500/700, and only SYNTHETIC weights are
   suppressed — a real bold face still renders bold. */
  font-synthesis: none;
}

/* -- UTILITY -- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* -- ACCENT BARS (top and bottom, per style guide) -- */
body::before, body::after {
  content: '';
  position: fixed;
  left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  z-index: 1000;
}
body::before { top: 0; }
body::after { bottom: 0; }

/* -- NAV -- */
nav {
  position: fixed;
  top: 3px;
  left: 0; right: 0;
  z-index: 900;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 53, 0.15);
  padding: 12px 0;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 42px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-subscribe {
  background: var(--orange) !important;
  color: var(--black) !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 16px !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s !important;
}
.nav-subscribe:hover { background: var(--orange-dark) !important; }

/* -- CHANNEL BANNER -- */
.channel-banner {
  margin-top: 67px; /* nav height + orange bar */
  width: 100%;
  overflow: hidden;
  background: var(--sage-dark);
  border-bottom: 2px solid var(--orange);
}
.channel-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 240px;
}

/* -- HERO -- */
.hero {
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(168, 166, 123, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
}

/* -- PILOT EMBED (9:16 vertical video) -- */
.pilot-frame {
  width: 280px;
  flex-shrink: 0;
}
.pilot-video-wrap {
  position: relative;
  width: 280px;
  height: 498px; /* 9:16 ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border: 2px solid var(--grey);
  background: var(--grey);
}
.pilot-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* Facade player — matches the episode pages (owner, 2026-08-11). The poster
   fills the frame and the bar sits on it; clicking swaps in the embed. */
.pilot-video-wrap { cursor: pointer; }
.pilot-video-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pilot-video-wrap .watch {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(10,10,18,0.72);
  backdrop-filter: blur(3px);
  border-top: 1px solid rgba(240,237,230,0.22);
  padding: 13px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.18s, color 0.18s;
}
.pilot-video-wrap .watch em {
  font-style: normal;
  opacity: 0.6;
  font-size: 9px;
  vertical-align: 2px;
  margin: 0 9px;
  letter-spacing: 0;
}
.pilot-video-wrap:hover .watch,
.pilot-video-wrap:focus-visible .watch {
  background: var(--orange);
  color: var(--black);
}
.pilot-video-wrap:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.pilot-label {
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
}

/* -- HERO TEXT (right side) -- */
.hero-content { padding-top: 8px; }
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}
.hero-tagline .accent { color: var(--orange); }
.hero-bets {
  list-style: none;
  margin-bottom: 24px;
  padding: 0;
  max-width: 520px;
}
.hero-bets li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--white-dim);
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}
.hero-bets li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--orange);
}
.hero-description {
  font-size: 17px;
  color: var(--white-dim);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

/* -- SOCIAL LINKS GRID -- */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-btn.yt { background: #ff0000; color: #fff; }
.social-btn.tt { background: #fff; color: #000; }
.social-btn.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-btn.x { background: #000; color: #fff; border-color: #333; }
.social-btn.bs { background: #0085ff; color: #fff; }
.social-btn.fb { background: #1877f2; color: #fff; }
/* Threads was in the markup but never had a rule, so it fell back to the
   browser's default link blue (#0000ee) on a transparent background — 2.2:1
   against this page, effectively unreadable (owner, 2026-08-11). Black like
   X, which is Threads' own brand colour too. */
.social-btn.th { background: #000; color: #fff; border-color: #333; }

/* -- SECTION COMMON -- */
.section-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  color: var(--white);
}
.section-title .accent { color: var(--orange); }

/* -- ABOUT -- */
.about {
  padding: 80px 0;
  background: var(--black-light);
  border-top: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
}
.about-intro {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}
.about-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 24px;
  line-height: 1.15;
}
.about-intro h2 .accent { color: var(--orange); }
.about-intro p {
  color: var(--white-dim);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--white);
  margin-top: 28px;
  line-height: 1.25;
}
.about-intro p.about-quote {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--white);
  line-height: 1.25;
}
.about-quote .accent { color: var(--orange); }

.character-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.char-card {
  background: #909672;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
  border-bottom: 4px solid var(--black);
}
.char-card:last-child { border-bottom: none; }
.char-headshot {
  height: 240px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  object-position: bottom;
  align-self: flex-end;
}
.char-text {
  flex: 1;
  padding: 28px 36px;
  align-self: center;
}
.char-card h3 {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--orange);
  -webkit-text-stroke: 2.5px var(--black);
  text-stroke: 2.5px var(--black);
  paint-order: stroke fill;
  margin-bottom: 0;
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}
.char-card .role {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(10, 10, 18, 0.45);
  margin-bottom: 12px;
  font-weight: 700;
}
.char-card p {
  font-size: 17px;
  color: rgba(10, 10, 18, 0.8);
  line-height: 1.5;
  margin-bottom: 0;
}
/* Eddie's card: text right-aligned, fills left side */
.char-card:last-child .char-text {
  text-align: right;
}

/* -- EPISODES -- */
.episodes {
  padding: 80px 0;
}
.episodes-header {
  text-align: center;
  margin-bottom: 48px;
}
.episodes-sub {
  color: var(--white-dim);
  font-size: 15px;
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.episode-card {
  background: var(--black-light);
  border: 1px solid var(--grey);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.episode-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}
.episode-thumb {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--grey);
}
.episode-thumb iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.episode-thumb .placeholder-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--white-dim);
  font-size: 18px;
}
.episode-info { padding: 16px; }
.episode-number {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.episode-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}
.episode-desc {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.5;
}

/* -- EMPTY EPISODES STATE -- */
.episodes-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.episodes-empty-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white-dim);
  margin-bottom: 12px;
}
.episodes-empty-title .accent { color: var(--orange); }
.episodes-empty-sub {
  color: var(--sage-dark);
  font-size: 15px;
}

/* -- COMING SOON SECTION -- */
.coming-soon {
  padding: 60px 0;
  text-align: center;
  background: var(--black-light);
  border-top: 1px solid var(--grey);
}
.coming-soon h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 16px;
}
.coming-soon h2 .accent { color: var(--orange); }
.coming-soon p {
  color: var(--white-dim);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 28px;
}
.coming-soon .social-grid { justify-content: center; }

/* -- FOOTER -- */
footer {
  padding: 40px 0 48px;
  text-align: center;
  border-top: 1px solid var(--grey);
}
footer p {
  font-size: 13px;
  color: var(--sage-dark);
}
footer a { color: var(--sage); text-decoration: none; }
footer a:hover { color: var(--orange); }
.footer-logo {
  height: 30px;
  margin-bottom: 12px;
  opacity: 0.6;
}

/* -- EPISODES PAGE (9:16 vertical grid) -- */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.ep-card {
  background: var(--black-light);
  border: 1px solid var(--grey);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.ep-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}
.ep-card-video {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: var(--grey);
  overflow: hidden;
}
.ep-card-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.ep-card-info { padding: 14px; }
.ep-card-num {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ep-card-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
}
.ep-card-desc {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.5;
}

/* -- UPCOMING EPISODES LIST -- */
.upcoming-list {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  max-width: 600px;
}
.upcoming-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey);
}
.upcoming-item:last-child { border-bottom: none; }
.upcoming-date {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 80px;
}
.upcoming-title {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--white-dim);
  line-height: 1.4;
  font-weight: 400;
}

/* -- ANIMATIONS -- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.fade-in.d1 { animation-delay: 0.1s; }
.fade-in.d2 { animation-delay: 0.2s; }
.fade-in.d3 { animation-delay: 0.3s; }
.fade-in.d4 { animation-delay: 0.4s; }

/* -- RESPONSIVE -- */
@media (max-width: 768px) {
  .channel-banner img { max-height: 140px; }
  .hero { padding: 40px 0 32px; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
  }
  .pilot-frame { order: 1; }
  .hero-content { order: 2; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-bets { display: inline-block; text-align: left; }
  .social-grid { justify-content: center; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-image { max-width: 280px; margin: 0 auto; }
  .char-card {
    min-height: auto;
  }
  .char-headshot { height: 160px; }
  .char-text { padding: 16px 20px; }
  .char-card h3 { font-size: 48px; }
  .char-card p { font-size: 14px; }
  .character-cards { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-subscribe) { display: none; }
  .episode-grid { grid-template-columns: 1fr; }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}
@media (max-width: 480px) {
  .pilot-frame { width: 240px; }
  .pilot-video-wrap { width: 240px; height: 427px; }
}
