/* Reacher S5 page — matches botbuhdy.com palette: #080810 bg, sage #7b9b7b, gold #d4af37 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #080810; color: #e0e0e0; overflow-x: hidden; line-height: 1.5;
}
body.modal-open { overflow: hidden; }
a { color: #d4af37; }
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 110% 80% at 18% 12%, rgba(123,155,123,0.18) 0%, transparent 62%),
    radial-gradient(ellipse 90% 70% at 82% 88%, rgba(212,175,55,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 100% 90% at 50% 50%, rgba(100,140,200,0.10) 0%, transparent 70%);
  filter: blur(28px); animation: auroraShift 28s ease-in-out infinite; }
@keyframes auroraShift { 0%,100% { opacity: 1; } 50% { opacity: 0.8; } }
.glow-1 { position: fixed; top: -30%; left: -20%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(123,155,123,0.06) 0%, transparent 70%); z-index: 0; pointer-events: none; }
.glow-2 { position: fixed; bottom: -30%; right: -20%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, transparent 70%); z-index: 0; pointer-events: none; }

/* Header (same as main site) */
.site-header {
  padding: 14px max(20px, calc((100% - 1200px)/2));
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123,155,123,0.12);
  position: sticky; top: 0; z-index: 100;
}
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.3em; font-weight: 700; color: #fff; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-header nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: #888; text-decoration: none; font-size: 0.9em; transition: color 0.3s; }
.site-header nav a:hover { color: #d4af37; }
.site-header nav a.back-link { color: #d4af37; border: 1px solid rgba(212,175,55,0.4); background: rgba(212,175,55,0.06); padding: 7px 14px; border-radius: 8px; font-weight: 600; }
.site-header nav a.back-link:hover { background: rgba(212,175,55,0.14); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }

/* Hero */
.hero { padding: 44px 0 20px; text-align: center; }
.hero-tagline { font-size: 0.95em; color: #d4af37; margin-bottom: 12px; letter-spacing: 2px; text-transform: uppercase; }
.hero h1 { font-size: 3em; line-height: 1.15; color: #fff; margin-bottom: 28px; }
.hero h1 .accent { color: #7b9b7b; }
.hero-video { position: relative; width: 100%; max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.25); box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 40px rgba(212,175,55,0.06); background: #000; box-sizing: border-box; }
.hero-video iframe, .hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; border: 0; display: block; background: #000; }
.hero-legal { width: 100%; max-width: 980px; margin: 12px auto 6px; box-sizing: border-box; }
.hero-legal img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 12px; }
.hero-legal-note { max-width: 980px; margin: 0 auto 14px; padding: 0 4px; font-size: 0.88em; line-height: 1.45; color: #aaa; }
.hero-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(8,8,16,0.35), rgba(8,8,16,0.8)), var(--poster, none) center/cover no-repeat; }
.hp-inner { text-align: center; padding: 20px; }
.hp-play { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid rgba(212,175,55,0.8); background: rgba(10,10,15,0.55);
  position: relative; animation: pulse 2.6s ease-in-out infinite; }
.hp-play::after { content: ''; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #d4af37; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.35); } 50% { box-shadow: 0 0 0 16px rgba(212,175,55,0); } }
.hp-label { font-size: 1.6em; font-weight: 700; color: #fff; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.hp-sub { color: #ccc; margin-top: 6px; font-size: 0.95em; text-shadow: 0 2px 10px rgba(0,0,0,0.9); }
.hero-text { max-width: 760px; margin: 30px auto 10px; color: #aaa; font-size: 1.05em; line-height: 1.75; text-align: left; }
.hero-text p + p { margin-top: 14px; }
.hero-text strong { color: #e8e8e8; }
.hero-stats { display: flex; justify-content: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.stat { display: flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 50px; text-decoration: none;
  background: rgba(123,155,123,0.06); border: 1px solid rgba(123,155,123,0.15); color: #999; transition: all 0.3s; }
a.stat:hover { border-color: #7b9b7b; transform: translateY(-2px); }
.stat b { color: #d4af37; font-size: 1.15em; }
.stat span { font-size: 0.85em; }

/* Sections */
.section { padding: 46px 0; scroll-margin-top: 70px; }
.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.section-line { width: 40px; height: 2px; background: linear-gradient(90deg, #7b9b7b, #d4af37); border-radius: 1px; flex-shrink: 0; }
.section-label { font-size: 0.75em; text-transform: uppercase; letter-spacing: 3px; color: #7b9b7b; font-weight: 600; }
.section-title { font-size: 1.9em; color: #fff; font-weight: 700; margin-bottom: 10px; }
.section-text { color: #888; line-height: 1.7; max-width: 720px; margin-bottom: 24px; }
.muted { color: #666; font-size: 0.85em; margin-top: 10px; }

/* Chapter nav */
.chapter-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; position: sticky; top: 69px; z-index: 50;
  padding: 10px 0; background: linear-gradient(180deg, rgba(8,8,16,0.95) 70%, rgba(8,8,16,0)); }
.chapter-nav a { color: #aaa; text-decoration: none; font-size: 0.82em; padding: 6px 12px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); transition: all 0.25s; white-space: nowrap; }
.chapter-nav a b { color: #d4af37; margin-right: 4px; }
.chapter-nav a:hover, .chapter-nav a.active { border-color: #d4af37; color: #fff; background: rgba(212,175,55,0.08); }

.chapter { margin-top: 34px; scroll-margin-top: 130px; }
.chapter-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid rgba(123,155,123,0.15); padding-bottom: 10px; margin-bottom: 16px; }
.chapter-num { font-family: "Courier New", monospace; color: #7b9b7b; font-size: 0.9em; letter-spacing: 2px; }
.chapter-head h3 { color: #fff; font-size: 1.4em; }
.chapter-dates { color: #d4af37; font-size: 0.85em; letter-spacing: 1px; text-transform: uppercase; }
.chapter-count { margin-left: auto; color: #666; font-size: 0.8em; }
.chapter-blurb { color: #888; font-size: 0.95em; margin: -6px 0 16px; max-width: 760px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tile { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden;
  cursor: pointer; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; text-align: left; color: inherit; font: inherit; padding: 0; display: flex; flex-direction: column; }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); border-color: rgba(212,175,55,0.35); box-shadow: 0 10px 30px rgba(0,0,0,0.4); outline: none; }
.tile .ph { position: relative; aspect-ratio: 1/1; background: #111; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.tile:hover img { transform: scale(1.05); }
.tile .num { position: absolute; top: 8px; left: 8px; font-size: 0.7em; font-family: "Courier New", monospace; background: rgba(8,8,16,0.75); color: #d4af37; padding: 2px 7px; border-radius: 4px; }
.tile .badge { position: absolute; bottom: 8px; left: 8px; right: 8px; font-size: 0.66em; background: rgba(8,8,16,0.8); color: #ddd; padding: 3px 7px; border-radius: 4px; text-align: center; }
.tile .cap { padding: 9px 11px 11px; }
.tile .cap b { display: block; color: #ddd; font-size: 0.84em; font-weight: 600; line-height: 1.3; }
.tile .cap span { display: block; color: #666; font-size: 0.74em; margin-top: 3px; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.vtile .ph { aspect-ratio: 16/9; }
.vtile .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; border-radius: 50%;
  background: rgba(10,10,15,0.65); border: 2px solid rgba(212,175,55,0.85); transition: all 0.3s; }
.vtile .play::after { content: ''; position: absolute; left: 20px; top: 15px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #d4af37; }
.vtile:hover .play { background: rgba(212,175,55,0.9); }
.vtile:hover .play::after { border-left-color: #0a0a0f; }
.vtile .dur { position: absolute; right: 8px; bottom: 8px; font-size: 0.72em; background: rgba(8,8,16,0.8); color: #eee; padding: 2px 7px; border-radius: 4px; }
.vtile .cap p { color: #888; font-size: 0.8em; margin-top: 6px; line-height: 1.45; }

/* Dated YouTube drops under the hero (hero embed is never replaced) */
.drops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.drop-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(212,175,55,0.18); border-radius: 14px; overflow: hidden; }
.drop-card .drop-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.drop-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.drop-card .drop-info { padding: 12px 14px 16px; }
.drop-card .drop-date { color: #d4af37; font-size: 0.75em; letter-spacing: 1.5px; text-transform: uppercase; }
.drop-card h3 { color: #fff; font-size: 1.05em; margin: 4px 0 8px; }
.drop-card a { color: #7b9b7b; font-size: 0.85em; }

/* Cast */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.cast-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(123,155,123,0.12); border-radius: 12px; overflow: hidden; }
.cast-card .ph { aspect-ratio: 4/5; background: #111; overflow: hidden; }
.cast-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.cast-card .ph.noimg { display: flex; align-items: center; justify-content: center; color: #666; font-size: 0.85em; text-align: center; padding: 10px; background: linear-gradient(135deg, rgba(123,155,123,0.12), rgba(212,175,55,0.08)); }
.cast-card .info { padding: 10px 12px 12px; }
.cast-card h4 { color: #fff; font-size: 0.98em; }
.cast-card .role { color: #d4af37; font-size: 0.8em; margin-top: 2px; }
.cast-card .credit { color: #666; font-size: 0.68em; margin-top: 8px; line-height: 1.4; }
.cast-card .credit a { color: #7b9b7b; }
.credits { margin-top: 22px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 12px 16px; }
.credits summary { cursor: pointer; color: #d4af37; font-weight: 600; }
.credits ul { margin: 12px 0 0 18px; color: #888; font-size: 0.82em; }
.credits li { margin: 5px 0; }
.credits a { color: #7b9b7b; }

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.06); padding: 34px 40px 40px; text-align: center; color: #555; font-size: 0.85em; margin-top: 30px; }
.footer-logo { justify-content: center; margin-bottom: 14px; font-size: 1.1em; }
.footer-logo .logo-icon { width: 32px; height: 32px; }
.footer-note { max-width: 760px; margin: 0 auto 8px; line-height: 1.6; color: #666; }
.footer-links { margin: 14px 0 10px; }
.footer-links a { color: #888; text-decoration: none; margin: 0 12px; transition: color 0.3s; }
.footer-links a:hover { color: #d4af37; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 1000; background: #050509; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.lb[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 14px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); z-index: 3; }
.lb-counter { color: #d4af37; font-family: "Courier New", monospace; font-size: 0.95em; white-space: nowrap; }
.lb-chapter { color: #888; font-size: 0.82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lb-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #ddd;
  font-size: 1.25em; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.2s; }
.lb-btn:hover { border-color: #d4af37; color: #d4af37; }
.lb-close { font-size: 1.6em; }
.lb-dl { color: #0a0a0f; background: linear-gradient(135deg, #d4af37, #b8941f); padding: 9px 14px; border-radius: 6px; font-weight: 700; font-size: 0.85em; text-decoration: none; white-space: nowrap; }
.lb-stage { flex: 1; position: relative; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb-stage.zoomed { cursor: grab; }
.lb-stage.dragging { cursor: grabbing; }
.lb-stage img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; transform-origin: center center;
  transform: translate(-50%,-50%); will-change: transform; transition: opacity 0.2s; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.lb-stage img.loading { opacity: 0.25; }
.lb-spinner { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px; border-radius: 50%; border: 3px solid rgba(212,175,55,0.2); border-top-color: #d4af37; animation: spin 0.8s linear infinite; display: none; }
.lb-spinner.on { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 50px; height: 70px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,15,0.6); color: #ddd; font-size: 2.4em; line-height: 1; cursor: pointer; border-radius: 10px; transition: all 0.2s; }
.lb-nav:hover { color: #d4af37; border-color: #d4af37; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-caption { z-index: 3; padding: 12px 20px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: rgba(10,10,15,0.92); border-top: 1px solid rgba(123,155,123,0.18);
  color: #bbb; font-size: 0.92em; line-height: 1.55; max-height: 32vh; overflow-y: auto; }
.lb-caption .ct { color: #fff; font-weight: 700; font-size: 1.02em; }
.lb-caption .cm { color: #7b9b7b; font-size: 0.85em; margin-left: 8px; }
.lb-caption .cc { display: block; color: #d4af37; font-size: 0.8em; margin-top: 4px; }
.lb-caption .ch { color: #666; font-size: 0.8em; display: block; margin-top: 2px; }
.lb-caption .hint { color: #555; font-size: 0.75em; display: block; margin-top: 4px; }
.vm-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 76px; min-height: 0; }
.vm-stage video { max-width: 100%; max-height: 100%; width: 100%; background: #000; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding: 10px 16px; }
  .site-header nav { width: 100%; justify-content: center; gap: 12px; padding-top: 8px; border-top: 1px solid rgba(123,155,123,0.08); }
  .site-header nav a { font-size: 0.82em; }
  .chapter-nav { top: 0; position: static; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; overflow-x: clip; }
  .hero { padding: 26px 0 10px; }
  .hero-video { width: 100%; max-width: 100%; border-radius: 10px; }
  .hero-legal { display: none; }
  .hero-legal-note { font-size: 0.8em; }
  .hero h1 { font-size: 1.9em; margin-bottom: 20px; }
  .hero-text { font-size: 0.98em; }
  .hp-label { font-size: 1.2em; } .hp-sub { font-size: 0.82em; }
  .hp-play { width: 60px; height: 60px; margin-bottom: 10px; } .hp-play::after { left: 23px; top: 17px; border-width: 12px 0 12px 19px; }
  .section-title { font-size: 1.4em; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .chapter-count { margin-left: 0; width: 100%; }

  .lb-nav { width: 40px; height: 48px; font-size: 1.8em; top: 64px; transform: none; background: rgba(10,10,15,0.7); }
  .lb-chapter { display: none; }
  .lb-btn { width: 36px; height: 36px; font-size: 1.1em; }
  .vm-stage { padding: 0; }

  .lb-caption { font-size: 0.85em; }
  .site-footer { padding: 28px 18px 34px; }
}
@media (max-width: 480px) {
  .hero-video { border-radius: 8px; }
  .hero h1 { font-size: 1.55em; }
  .video-grid { grid-template-columns: 1fr; }
  .lb-dl { padding: 8px 10px; font-size: 0.78em; }
}

/* Official links + cast links (v3) */
.official-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 4px; }
.official-links .btn { padding: 11px 22px; font-size: 0.92em; border-radius: 6px; text-decoration: none; font-weight: 600; transition: all 0.3s; display: inline-block; }
.btn-gold { background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%); color: #0a0a0f; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,175,55,0.25); }
.btn-ghost { background: transparent; color: #bbb; border: 1px solid rgba(255,255,255,0.18); }
.btn-ghost:hover { border-color: #7b9b7b; color: #7b9b7b; transform: translateY(-2px); }
.hero-text a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(212,175,55,0.6); }
.hero-text a:hover { color: #d4af37; }
.cast-card .ext { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cast-card .ext a { font-size: 0.7em; font-weight: 600; text-decoration: none; padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(212,175,55,0.35); color: #d4af37; background: rgba(212,175,55,0.06); }
.cast-card .ext a:hover { background: rgba(212,175,55,0.16); }
@media (max-width: 480px) { .official-links .btn { width: 100%; text-align: center; } }
.hero h1 .accent { display: block; }
