/* ============================================================
   Video Watch Page — css/pages/video-watch-page.css
   Dedicated per-video watch pages (Video SEO Phase 2).
   Follows the same calm, Christ-centered design language as
   videos-page.css and study-page.css. Pages also load
   css/components/lang-picker.css (via components.css) for the shared
   .jw-language-switcher language picker — same component used on
   letter/blog pages, not duplicated here.
   ============================================================ */

:root {
  --vw-brand-blue:      #4a90e2;
  --vw-brand-blue-dark: #2a64b8;
  --vw-ink:             #2c3e50;
  --vw-muted:           #6c757d;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */

.video-watch-hero {
  background: radial-gradient(
      1100px 480px at 50% -40%,
      rgba(74, 144, 226, 0.18),
      transparent
    ),
    linear-gradient(135deg, rgba(74, 144, 226, 0.06), rgba(53, 122, 189, 0.08));
  padding: 64px 0 40px;
}

@media (max-width: 575.98px) {
  .video-watch-hero {
    padding-top: 52px;
  }
}

/* Breadcrumb (mirrors .study-lesson-breadcrumb's plain-text pattern, which
   is inherently RTL-safe since the separator is a normal inline element,
   not a Bootstrap ::before that would need a separate RTL flip rule). */
.video-watch-breadcrumb {
  font-size: 0.88rem;
  color: var(--vw-muted);
  margin-bottom: 1.1rem;
}

.video-watch-breadcrumb a {
  color: var(--vw-brand-blue);
  text-decoration: none;
}

.video-watch-breadcrumb a:hover {
  text-decoration: underline;
}

.video-watch-breadcrumb .sep {
  margin: 0 0.4rem;
  color: #b0bcc8;
}

.video-watch-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--vw-brand-blue-dark);
  background: rgba(74, 144, 226, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.video-watch-hero h1 {
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: var(--vw-ink);
  font-size: 1.9rem;
}

.video-watch-intro {
  max-width: 720px;
  margin: 0.9rem 0 0;
  color: #3e4a57;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ─── Player ─────────────────────────────────────────────────────────────────── */

.video-watch-player-section {
  padding: 8px 0 8px;
}

/* Vertical (9:16) Shorts wrapper — centered, sensibly capped on desktop so a
   vertical video never becomes absurdly tall; fluid on mobile. */
.video-watch-player-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(2, 8, 20, 0.18);
}

.video-watch-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@supports not (aspect-ratio: 9 / 16) {
  .video-watch-player-wrap::before {
    content: '';
    display: block;
    padding-top: 177.78%;
  }
}

@media (max-width: 480px) {
  .video-watch-player-wrap {
    max-width: 320px;
  }
}

/* ─── Content sections ───────────────────────────────────────────────────────── */

.video-watch-section {
  padding: 40px 0;
}

.video-watch-section.bg-gray {
  background: #f4f6fb;
}

.video-watch-content {
  max-width: 760px;
  margin: 0 auto;
}

.video-watch-heading {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--vw-ink);
  margin: 0 0 0.9rem;
}

.video-watch-body p {
  color: #3e4a57;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.video-watch-key-ideas {
  margin: 0 0 1.2rem;
  padding-inline-start: 1.3rem;
}

.video-watch-key-ideas li {
  color: #3e4a57;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

/* ─── Scripture quote (mirrors .video-scripture in videos-page.css) ─────────── */

.video-watch-scripture {
  border-inline-start: 3px solid var(--vw-brand-blue);
  padding: 0.7rem 1rem;
  margin: 0 0 1.2rem;
  background: #f7f9fc;
  border-start-end-radius: 8px;
  border-end-end-radius: 8px;
}

.video-watch-scripture-text {
  display: block;
  font-size: 0.95rem;
  color: #3e4a57;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

.video-watch-scripture-ref {
  display: block;
  font-size: 0.82rem;
  color: var(--vw-muted);
  font-style: normal;
  font-weight: 600;
}

/* ─── Prev / Next navigation ─────────────────────────────────────────────────── */

.video-watch-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.video-watch-nav-link {
  flex: 1 1 220px;
  display: block;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid #d0d8e4;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: all 0.18s ease;
}

.video-watch-nav-link:hover {
  border-color: var(--vw-brand-blue);
  box-shadow: 0 6px 18px rgba(74, 144, 226, 0.14);
}

.video-watch-nav-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--vw-muted);
  margin-bottom: 0.25rem;
}

.video-watch-nav-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--vw-ink);
}

.video-watch-nav-link.is-next {
  text-align: end;
}

/* ─── Back to library / related links ────────────────────────────────────────── */

.video-watch-back-link,
.video-watch-related a {
  color: var(--vw-brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.video-watch-back-link:hover,
.video-watch-related a:hover {
  text-decoration: underline;
}

.video-watch-related {
  margin-top: 0.5rem;
}

.video-watch-related ul {
  margin: 0.5rem 0 0;
  padding-inline-start: 1.2rem;
}

.video-watch-related li {
  margin-bottom: 0.4rem;
  font-size: 0.96rem;
}

/* ─── RTL overrides ──────────────────────────────────────────────────────────── */

[dir="rtl"] .video-watch-key-ideas,
[dir="rtl"] .video-watch-related ul {
  padding-inline-start: 1.3rem;
}

[dir="rtl"] .video-watch-nav-link.is-next {
  text-align: start;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
  .video-watch-hero h1 {
    font-size: 1.5rem;
  }

  .video-watch-intro {
    font-size: 0.98rem;
  }

  .video-watch-nav {
    flex-direction: column;
  }

  .video-watch-nav-link.is-next {
    text-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-watch-nav-link {
    transition: none !important;
  }
}
