/* ================================================================
   video-page.css — hello-child
   Product Video single page
   Compatible with Redlight101 theme (--rl-* variables)
   ================================================================ */

/* ── Tokens ── */
:root {
  --rlv-accent:      var(--rl-primary,      #FF6B35);
  --rlv-accent-dark: var(--rl-primary-dark,  #D64420);
  --rlv-gradient:    var(--rl-gradient-primary, linear-gradient(135deg,#FF6B35 0%,#FF8C42 100%));
  --rlv-ink:         var(--rl-text-primary,  #2a2a2a);
  --rlv-ink-mid:     var(--rl-text-secondary,#4a4a4a);
  --rlv-ink-soft:    var(--rl-text-muted,    #888888);
  --rlv-white:       var(--rl-bg-white,      #ffffff);
  --rlv-bg:          var(--rl-bg-light,      #fafafa);
  --rlv-border:      var(--rl-border,        #e0e0e0);
  --rlv-shadow:      0 2px 10px rgba(0,0,0,.05);
  --rlv-shadow-md:   0 5px 20px rgba(255,107,53,.10);
  --rlv-shadow-btn:  0 4px 15px rgba(255,107,53,.20);
  --rlv-radius:      15px;
  --rlv-radius-sm:   8px;
  --rlv-radius-pill: 25px;
  --rlv-transition:  .3s ease;
  --rlv-font:        var(--rl-font-body,    -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif);
  --rlv-font-head:   var(--rl-font-heading, -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif);
}

/* ── Reset for page scope ── */
.rlv-page {
  font-family: var(--rlv-font);
  color: var(--rlv-ink-mid);
  background: var(--rlv-bg);
  -webkit-font-smoothing: antialiased;
}

/* ================================================================
   HERO
   ================================================================ */

.rlv-hero {
  background: var(--rlv-ink);
  padding: 48px 20px 40px;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient accent overlay */
.rlv-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,107,53,.08) 100%);
  pointer-events: none;
}

.rlv-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Back link */
.rlv-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color var(--rlv-transition);
}

.rlv-back:hover { color: var(--rlv-accent); }

/* Meta badges */
.rlv-hero__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rlv-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(255,107,53,.18);
  color: var(--rlv-accent);
  border: 1px solid rgba(255,107,53,.30);
  border-radius: var(--rlv-radius-pill);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Title */
.rlv-hero__title {
  font-family: var(--rlv-font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.25;
  max-width: 760px;
}

.rlv-hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.60);
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}

/* ================================================================
   LAYOUT — two-column: main + sidebar
   ================================================================ */

.rlv-layout {
  padding: 40px 20px 80px;
}

.rlv-layout__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: flex-start;
}

/* ================================================================
   VIDEO PLAYER
   ================================================================ */

.rlv-player-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--rlv-radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,.20);
  margin-bottom: 28px;
  aspect-ratio: 16 / 9;
}

.rlv-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Play overlay */
.rlv-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--rlv-transition);
}

.rlv-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.rlv-play-btn {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--rlv-gradient);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,107,53,.45);
  transition: transform var(--rlv-transition), box-shadow var(--rlv-transition);
}

.rlv-play-btn:hover {
  transform: scale(1.10);
  box-shadow: 0 8px 32px rgba(255,107,53,.60);
}

/* ================================================================
   DESCRIPTION
   ================================================================ */

.rlv-description {
  font-size: 1rem;
  color: var(--rlv-ink-mid);
  line-height: 1.7;
  margin: 0 0 36px;
}

/* ================================================================
   SECTIONS (steps + notes)
   ================================================================ */

.rlv-section {
  margin-bottom: 40px;
}

.rlv-section-title {
  font-family: var(--rlv-font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rlv-ink);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,107,53,.20);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rlv-section-icon { font-style: normal; }

/* ── Steps ── */
.rlv-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rlv-step {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--rlv-radius-sm);
  margin-bottom: 8px;
  background: var(--rlv-white);
  border: 1px solid var(--rlv-border);
  box-shadow: var(--rlv-shadow);
  transition: all var(--rlv-transition);
}

.rlv-step--jumpable {
  cursor: pointer;
}

.rlv-step--jumpable:hover {
  border-color: rgba(255,107,53,.30);
  box-shadow: var(--rlv-shadow-md);
  transform: translateX(4px);
}

.rlv-step__num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--rlv-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rlv-font-head);
  font-weight: 700;
  font-size: .85rem;
  box-shadow: var(--rlv-shadow-btn);
  flex-shrink: 0;
  margin-top: 2px;
}

.rlv-step__body { flex: 1; min-width: 0; }

.rlv-step__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.rlv-step__title {
  font-family: var(--rlv-font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--rlv-ink);
}

.rlv-step__ts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--rlv-accent);
  background: rgba(255,107,53,.08);
  padding: 2px 10px;
  border-radius: var(--rlv-radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.rlv-step__desc {
  font-size: .875rem;
  color: var(--rlv-ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ── Notes ── */
.rlv-notes {
  background: var(--rlv-white);
  border: 1px solid var(--rlv-border);
  border-radius: var(--rlv-radius);
  padding: 24px 28px;
  box-shadow: var(--rlv-shadow);
  font-size: .9rem;
  color: var(--rlv-ink-mid);
  line-height: 1.7;
}

.rlv-notes p  { margin: 0 0 12px; }
.rlv-notes p:last-child { margin-bottom: 0; }
.rlv-notes ul, .rlv-notes ol { padding-left: 20px; margin: 0 0 12px; }
.rlv-notes li { margin-bottom: 6px; }
.rlv-notes strong { color: var(--rlv-ink); }

/* ================================================================
   SIDEBAR
   ================================================================ */

.rlv-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rlv-sidebar-card {
  background: var(--rlv-white);
  border: 1px solid var(--rlv-border);
  border-radius: var(--rlv-radius);
  padding: 20px 22px;
  box-shadow: var(--rlv-shadow);
}

.rlv-sidebar-title {
  font-family: var(--rlv-font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--rlv-ink);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rlv-border);
}

/* ── Chapter list ── */
.rlv-chapters {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rlv-chapter {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--rlv-radius-sm);
  cursor: pointer;
  transition: background var(--rlv-transition), transform var(--rlv-transition);
  border-left: 3px solid transparent;
}

.rlv-chapter:hover {
  background: rgba(255,107,53,.06);
  border-left-color: rgba(255,107,53,.30);
}

.rlv-chapter--active {
  background: rgba(255,107,53,.08) !important;
  border-left-color: var(--rlv-accent) !important;
}

.rlv-chapter--active .rlv-chapter__title {
  color: var(--rlv-accent);
  font-weight: 700;
}

.rlv-chapter--active .rlv-chapter__time {
  color: var(--rlv-accent);
}

.rlv-chapter__num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--rlv-bg);
  border: 1px solid var(--rlv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--rlv-ink-soft);
  flex-shrink: 0;
  margin-top: 1px;
}

.rlv-chapter__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rlv-chapter__title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--rlv-ink);
  line-height: 1.3;
  transition: color var(--rlv-transition);
}

.rlv-chapter__desc {
  font-size: .75rem;
  color: var(--rlv-ink-soft);
  line-height: 1.3;
}

.rlv-chapter__time {
  font-size: .75rem;
  font-weight: 700;
  color: var(--rlv-ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  transition: color var(--rlv-transition);
}

/* ── Related product card ── */
.rlv-related { }

.rlv-related__img-link { display: block; margin-bottom: 14px; }

.rlv-related__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--rlv-radius-sm);
  display: block;
  transition: transform var(--rlv-transition);
}

.rlv-related__img-link:hover .rlv-related__img {
  transform: scale(1.02);
}

.rlv-related__name {
  font-family: var(--rlv-font-head);
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}

.rlv-related__name a {
  color: var(--rlv-ink);
  text-decoration: none;
  transition: color var(--rlv-transition);
}

.rlv-related__name a:hover { color: var(--rlv-accent); }

.rlv-related__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rlv-accent);
  margin-bottom: 14px;
}

.rlv-related__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 20px;
  background: var(--rlv-gradient);
  color: #fff;
  border-radius: var(--rlv-radius-pill);
  font-family: var(--rlv-font);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--rlv-shadow-btn);
  transition: all var(--rlv-transition);
}

.rlv-related__btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,.40);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  .rlv-layout__inner {
    grid-template-columns: 1fr;
  }

  .rlv-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .rlv-hero { padding: 32px 16px 28px; }

  .rlv-layout { padding: 24px 16px 60px; }

  .rlv-sidebar { grid-template-columns: 1fr; }

  .rlv-play-btn { width: 56px; height: 56px; }

  .rlv-hero__title { font-size: 1.4rem; }

  .rlv-step { padding: 12px 14px; }
}
