/* Watch pages — /watch and /watch/<slug> (WATCH_PAGES_PLAN.md).
   Everything is prefixed w- so nothing collides with marketing.css. */

.w-page { max-width: 1100px; margin: 0 auto; padding: 40px 32px 80px; }  /* matches .topbar-inner */
.w-draft {
  background: #D4920A; color: #fff; text-align: center; font-size: 14px; font-weight: 600;
  padding: 8px 16px;
}
.w-title { font-size: 44px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 700; }
.w-lede { font-size: 18px; color: var(--text-secondary); max-width: 640px; margin: 0 0 24px; }

.w-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }

/* Video frame */
.w-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #111;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(45,42,38,.06), 0 20px 50px -12px rgba(45,42,38,.28);
}
.w-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #F9F8F6; }
.w-frame-missing { display: grid; place-items: center; background: var(--surface-alt); color: var(--text-secondary); font-size: 15px; }
.w-play { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0,0,0,.04); cursor: pointer; }
.w-play[hidden] { display: none; }
.w-play .w-play-btn {
  position: absolute; left: 50%; top: 90%; transform: translate(-50%, -50%);
  height: 56px; padding: 0 26px 0 20px; border-radius: 999px; background: var(--brand); color: #fff;
  display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 17px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .15s ease;
}
.w-play:hover .w-play-btn, .w-play:focus-visible .w-play-btn { transform: translate(-50%, -50%) scale(1.06); }
.w-play .w-cc {
  position: absolute; left: 14px; top: 12px; color: #fff; background: rgba(0,0,0,.55);
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; display: flex; gap: 8px; align-items: center;
}
.w-cc-pill { border: 1.5px solid #fff; border-radius: 4px; font-size: 10px; font-weight: 800; padding: 0 4px; }

/* End screen */
.w-end {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 24px; color: #fff;
  background: rgba(31,29,27,.86); backdrop-filter: blur(6px);
}
.w-end.is-shown { display: flex; }
.w-end h3 { font-size: 28px; margin: 0; line-height: 1.2; font-weight: 700; }
.w-end p { margin: 0; opacity: .8; }
.w-end-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.w-btn {
  background: var(--brand); color: #fff; border: 0; border-radius: 10px; font-weight: 600;
  padding: 12px 22px; cursor: pointer; text-decoration: none; display: inline-block; font-size: 15px;
}
.w-btn:hover { background: var(--brand-dark); color: #fff; }
.w-btn-ghost {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px; padding: 12px 22px; cursor: pointer; font-weight: 500; font-size: 15px;
}
.w-end-next { display: flex; gap: 12px; margin-top: 4px; }
.w-end-next a { display: block; width: 180px; text-decoration: none; text-align: left; font-size: 13px; color: #fff; }
.w-end-next img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,.15);
}

/* Share */
.w-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.w-share-label { font-size: 14px; font-weight: 600; color: var(--text); margin-right: 4px; }
.w-share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.w-share-btn:hover { border-color: var(--brand); background: var(--brand-lighter); color: var(--text); }
.w-share-btn svg { width: 16px; height: 16px; }
.w-share-btn[hidden] { display: none; }
.w-share-icon { padding: 8px 10px; }
.w-share-native { background: var(--brand); border-color: var(--brand); color: #fff; }
.w-share-native:hover { background: var(--brand-dark); color: #fff; }
.w-share-btn.is-copied { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.w-share-manual { flex-basis: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.w-thanks-share { font-size: 14px; color: var(--text-secondary); margin: 0 0 16px; }
.w-thanks-share a, .w-linklike { color: var(--brand-text); font-weight: 600; }
.w-linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }

/* Chapters */
.w-chapters { margin-top: 22px; }
.w-chapters h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 700; }
.w-chapter-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.w-chapter {
  display: flex; gap: 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; cursor: pointer; text-align: left; color: var(--text); font-size: 14px;
}
.w-chapter:hover { border-color: var(--brand); background: var(--brand-lighter); }
.w-chapter .w-ts { font-variant-numeric: tabular-nums; color: var(--brand-text); font-weight: 600; font-size: 13px; min-width: 36px; }

.w-proof { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); }
.w-proof a { color: var(--brand-text); font-weight: 600; text-decoration: none; }
.w-proof a:hover { text-decoration: underline; }

/* Lead card */
.w-lead {
  position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; scroll-margin-top: 24px;
  box-shadow: 0 1px 2px rgba(45,42,38,.05), 0 12px 30px -16px rgba(45,42,38,.2);
}
.w-lead.is-pulsing { animation: w-pulse 1.2s ease 1; }
@keyframes w-pulse { 0% { box-shadow: 0 0 0 0 hsla(18,78%,55%,.5); } 100% { box-shadow: 0 0 0 16px hsla(18,78%,55%,0); } }
.w-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.w-lead h2 { font-size: 22px; line-height: 1.25; margin: 6px 0 8px; font-weight: 700; }
.w-sub { font-size: 14px; color: var(--text-secondary); margin: 0 0 18px; }
.w-flash { border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.w-flash-error { background: var(--danger-bg); color: var(--danger); }
.w-flash-success { background: var(--success-bg); color: var(--success); }
.w-field { margin-bottom: 12px; }
.w-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.w-field input, .w-field select, .w-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--bg);
  color: var(--text); font: inherit; font-size: 15px;
}
.w-field input:focus, .w-field select:focus, .w-field textarea:focus {
  outline: 2px solid var(--brand-light); border-color: var(--brand); background: #fff;
}
.w-hp { position: absolute; left: -9999px; }
.w-more { font-size: 13px; color: var(--brand-text); background: none; border: 0; padding: 0; cursor: pointer; margin: 2px 0 12px; font-weight: 600; }
.w-turnstile { margin-bottom: 14px; }
.w-lead .w-btn { width: 100%; padding: 14px; font-size: 16px; }
.w-fine { font-size: 12px; color: var(--text-muted); text-align: center; margin: 10px 0 0; }
.w-fine a { color: var(--text-secondary); }
.w-perks { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); display: grid; gap: 6px; }
.w-perks li { display: flex; gap: 8px; }
.w-perks li::before { content: "✓"; color: var(--success); font-weight: 800; }
.w-thanks { text-align: center; padding: 12px 4px; }
.w-thanks .w-check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success);
  display: grid; place-items: center; margin: 0 auto 14px; font-size: 28px; font-weight: 800;
}
.w-thanks p { color: var(--text-secondary); font-size: 14px; margin: 0 0 16px; }

/* Cards (related + gallery) */
.w-more-videos { margin-top: 64px; }
.w-more-videos h2 { font-size: 22px; margin: 0 0 16px; font-weight: 700; }
.w-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.w-cards-3 { grid-template-columns: repeat(3, 1fr); }
.w-card { text-decoration: none; display: block; color: var(--text); }
.w-thumb { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; background: var(--surface-alt); }
.w-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.w-card:hover .w-thumb img { transform: scale(1.03); }
.w-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.w-card-name { font-weight: 600; margin-top: 8px; font-size: 15px; }
.w-card-desc { font-size: 13px; color: var(--text-secondary); }
.w-empty { color: var(--text-secondary); font-size: 16px; }

/* Phone: pinned "Talk to us" */
.w-sticky-cta { display: none; }

@media (max-width: 960px) {
  .w-grid { grid-template-columns: 1fr; }
  .w-lead { position: static; }
  .w-cards, .w-cards-3 { grid-template-columns: repeat(2, 1fr); }
  .w-title { font-size: 34px; }
  .w-end-next { display: none; }
  .w-end h3 { font-size: 20px; }
}

@media (max-width: 768px) {
  .w-page { padding: 24px 16px 110px; }
  .w-title { font-size: 30px; }
  .w-lede { font-size: 16px; }
  .w-chapter-list { grid-template-columns: 1fr; }
  .w-frame.has-vertical { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
  .w-sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px 20px;
    background: linear-gradient(to top, var(--bg) 70%, rgba(250,250,248,0));
  }
  .w-sticky-cta[hidden] { display: none; }
  .w-sticky-cta .w-btn { width: 100%; text-align: center; padding: 14px; font-size: 16px; box-shadow: 0 8px 20px -6px hsla(18,78%,45%,.6); }
}

@media (orientation: landscape) and (max-width: 768px) {
  .w-frame.has-vertical { aspect-ratio: 16 / 9; max-height: none; }
}
