/* ==========================================================================
   myDB Studio — Product Video Walkthroughs & Interactive Chapter Deep-Dives
   Scoped strictly to .product-videos-section to prevent any global collisions.
   Supports Dark and Light modes with pixel-perfect modern SaaS aesthetics.
   ========================================================================== */

.product-videos-section {
  padding: 5rem 0 4.5rem;
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary, #000000) 0%, rgba(12, 12, 12, 0.6) 50%, var(--bg-primary, #000000) 100%);
  border-top: 1px solid var(--border-subtle, #1e1e1e);
  border-bottom: 1px solid var(--border-subtle, #1e1e1e);
  overflow: hidden;
}

[data-theme="light"] .product-videos-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 50%, #F8FAFC 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Ambient Radial Glow */
.pv-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(245, 158, 11, 0.16), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .pv-ambient-glow {
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(245, 158, 11, 0.1), transparent 70%);
  filter: blur(45px);
}

/* Section Header */
.pv-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.pv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-400, #fbbf24);
  border: 1px solid rgba(245, 158, 11, 0.28);
  margin-bottom: 1rem;
}

.pv-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary, #f4f4f5);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

[data-theme="light"] .pv-title {
  color: #0F172A;
}

.pv-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary, #a1a1aa);
  line-height: 1.6;
}

[data-theme="light"] .pv-subtitle {
  color: #475569;
}

/* ==========================================================================
   PART 1: HERO VIDEO (Big & Prominently Defined)
   ========================================================================== */
.pv-hero-block {
  max-width: 980px;
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 1;
}

.pv-hero-window {
  background: #080808;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px -5px rgba(245, 158, 11, 0.22);
  transition: all 0.3s ease;
}

[data-theme="light"] .pv-hero-window {
  background: #FFFFFF;
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 25px rgba(245, 158, 11, 0.15);
}

/* Window Chrome */
.pv-window-bar {
  height: 44px;
  background: linear-gradient(180deg, #181818 0%, #121212 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.15rem;
  user-select: none;
}

[data-theme="light"] .pv-window-bar {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.pv-window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pv-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.pv-dot-red { background: #FF5F56; }
.pv-dot-yellow { background: #FFBD2E; }
.pv-dot-green { background: #27C93F; }

.pv-window-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #a1a1aa);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="light"] .pv-window-title {
  color: #475569;
}

.pv-window-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 600;
}

.pv-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: pv-pulse 2s infinite;
}

@keyframes pv-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Video Stage (16:9 Aspect Ratio) */
.pv-video-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  display: block;
  cursor: pointer;
}

/* Centered Big Play Button */
.pv-big-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border: 2px solid var(--amber-500, #f59e0b);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.pv-big-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.pv-big-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--amber-500, #f59e0b);
  color: #000000;
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.55);
}

.pv-big-play-btn svg {
  margin-left: 4px;
}

/* Buffering / Loading Spinner */
.pv-buffering-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  pointer-events: none;
  z-index: 12;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-buffering-spinner.hidden {
  opacity: 0;
  pointer-events: none;
}

.pv-spinner-ring {
  width: 100%;
  height: 100%;
  border: 3.5px solid rgba(245, 158, 11, 0.22);
  border-top-color: var(--amber-500, #f59e0b);
  border-radius: 50%;
  animation: pv-spin 0.75s linear infinite;
}

@keyframes pv-spin {
  to { transform: rotate(360deg); }
}

/* Video Error Fallback Overlay */
.pv-error-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  z-index: 20;
  padding: 1.5rem;
  text-align: center;
  transition: opacity 0.25s ease;
}

.pv-error-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.pv-error-icon {
  color: #EF4444;
  margin-bottom: 0.25rem;
}

.pv-error-msg {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F87171;
  letter-spacing: -0.01em;
}

.pv-error-sub {
  font-size: 0.82rem;
  color: var(--text-muted, #71717a);
  max-width: 320px;
  line-height: 1.5;
}

.pv-retry-btn {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: var(--amber-500, #f59e0b);
  color: #000000;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.pv-retry-btn:hover {
  background: #FBBF24;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

/* Sound Pill */
.pv-sound-pill {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.pv-sound-pill:hover {
  background: var(--amber-500, #f59e0b);
  color: #000000;
  border-color: var(--amber-500, #f59e0b);
  transform: translateY(-1px);
}

/* Custom Controls Footer */
.pv-controls-bar {
  height: 52px;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1.25rem;
  user-select: none;
  z-index: 5;
  position: relative;
}

[data-theme="light"] .pv-controls-bar {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(0, 0, 0, 0.08);
}

.pv-ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary, #a1a1aa);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pv-ctrl-btn:hover {
  color: var(--text-primary, #f4f4f5);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .pv-ctrl-btn {
  color: #64748B;
}

[data-theme="light"] .pv-ctrl-btn:hover {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.06);
}

.pv-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber-500, #f59e0b);
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.pv-play-btn:hover {
  background: #FBBF24;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}

.pv-time-readout {
  font-size: 0.78rem;
  font-family: var(--font-mono, monospace);
  color: var(--text-secondary, #a1a1aa);
  min-width: 95px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

[data-theme="light"] .pv-time-readout {
  color: #64748B;
}

/* Scrubber Timeline with Chapter Ticks */
.pv-scrubber {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
  touch-action: none;
  user-select: none;
}

[data-theme="light"] .pv-scrubber {
  background: rgba(0, 0, 0, 0.1);
}

.pv-scrubber:hover,
.pv-scrubber.is-dragging {
  height: 10px;
}

.pv-scrubber-buf {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  pointer-events: none;
}

[data-theme="light"] .pv-scrubber-buf {
  background: rgba(0, 0, 0, 0.15);
}

.pv-scrubber-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #D97706 0%, #F59E0B 75%, #FBBF24 100%);
  border-radius: 9999px;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.pv-scrubber-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5), 0 0 0 2.5px var(--amber-500, #f59e0b);
  transition: transform 0.15s ease;
}

.pv-scrubber:hover .pv-scrubber-thumb,
.pv-scrubber.is-dragging .pv-scrubber-thumb {
  transform: translateY(-50%) scale(1);
}

/* Chapter Marker Tick on Progress Bar */
.pv-scrubber-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 2;
}

/* Scrubber Hover / Drag Tooltip (YouTube Style) */
.pv-scrubber-tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 0;
  transform: translateX(-50%);
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 15;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.pv-scrubber-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: rgba(18, 18, 18, 0.95) transparent transparent transparent;
}

[data-theme="light"] .pv-scrubber-tooltip {
  background: #0F172A;
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .pv-scrubber-tooltip::after {
  border-color: #0F172A transparent transparent transparent;
}

.pv-scrubber:hover .pv-scrubber-tooltip,
.pv-scrubber.is-dragging .pv-scrubber-tooltip {
  opacity: 1;
}

/* Fullscreen adaptation */
.pv-hero-window:fullscreen,
.pv-deepdive-card:fullscreen,
.pv-hero-window:-webkit-full-screen,
.pv-deepdive-card:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  border-radius: 0 !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  background: #000000 !important;
}

.pv-hero-window:fullscreen .pv-video-viewport,
.pv-deepdive-card:fullscreen .pv-video-viewport,
.pv-hero-window:-webkit-full-screen .pv-video-viewport,
.pv-deepdive-card:-webkit-full-screen .pv-video-viewport {
  flex: 1 !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}

.pv-hero-window:fullscreen .pv-controls-bar,
.pv-deepdive-card:fullscreen .pv-controls-bar,
.pv-hero-window:-webkit-full-screen .pv-controls-bar,
.pv-deepdive-card:-webkit-full-screen .pv-controls-bar {
  background: rgba(10, 10, 10, 0.96) !important;
}

.pv-fs-icon-enter,
.pv-fs-icon-exit {
  display: inline-block;
  vertical-align: middle;
}

.pv-fs-icon-enter.hidden,
.pv-fs-icon-exit.hidden {
  display: none !important;
}

.pv-vol-slider {
  width: 0;
  opacity: 0;
  transition: width 0.2s ease, opacity 0.2s ease;
  accent-color: var(--amber-500, #f59e0b);
  cursor: pointer;
  margin-left: 0.35rem;
}

.pv-vol-wrap {
  display: flex;
  align-items: center;
}

.pv-vol-wrap:hover .pv-vol-slider,
.pv-vol-wrap:focus-within .pv-vol-slider {
  width: 65px;
  opacity: 1;
}

.pv-speed-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--text-secondary, #a1a1aa);
  font-size: 0.74rem;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .pv-speed-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

.pv-speed-btn:hover {
  color: var(--text-primary, #f4f4f5);
  border-color: var(--amber-500, #f59e0b);
  background: rgba(245, 158, 11, 0.15);
}

/* Hero Feature Highlights Strip */
.pv-hero-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pv-hl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle, #1e1e1e);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary, #a1a1aa);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .pv-hl-pill {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pv-hl-pill svg {
  color: var(--amber-400, #fbbf24);
}

/* ==========================================================================
   PART 2: INTERACTIVE CHAPTER DEEP-DIVES (Side-by-Side YouTube Style)
   ========================================================================== */
.product-videos-section .container {
  max-width: 1160px;
  width: 100%;
  padding: 0 1.5rem;
}

/* ==========================================================================
   PART 2: INTERACTIVE CHAPTER DEEP-DIVES (Large Video + Compact Sidebar)
   ========================================================================== */
.pv-features-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.pv-deepdive-layout {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 1.15rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Left: Deep-Dive Video Window (Expanded Size for Maximum Readability) */
.pv-deepdive-card {
  background: #080808;
  border: 1px solid var(--border-subtle, #1e1e1e);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: fit-content;
}

[data-theme="light"] .pv-deepdive-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.1);
}

.pv-deepdive-info-bar {
  padding: 0.85rem 1.25rem;
  background: rgba(16, 16, 16, 0.95);
  border-top: 1px solid var(--border-subtle, #1e1e1e);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

[data-theme="light"] .pv-deepdive-info-bar {
  background: #F8FAFC;
  border-top-color: rgba(0, 0, 0, 0.08);
}

.pv-active-chapter-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #f4f4f5);
}

[data-theme="light"] .pv-active-chapter-title {
  color: #0F172A;
}

.pv-active-chapter-sub {
  font-size: 0.76rem;
  color: var(--text-muted, #71717a);
  margin-top: 0.12rem;
}

/* Right: Compact YouTube-Style Chapters List Container */
.pv-chapters-container {
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid var(--border-subtle, #1e1e1e);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  width: 295px;
  min-height: 480px;
  height: 540px;
  box-sizing: border-box;
}

[data-theme="light"] .pv-chapters-container {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
}

.pv-chapters-top-bar {
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #181818 0%, #121212 100%);
  border-bottom: 1px solid var(--border-subtle, #1e1e1e);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .pv-chapters-top-bar {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.pv-chapters-top-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary, #f4f4f5);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

[data-theme="light"] .pv-chapters-top-title {
  color: #0F172A;
}

.pv-chapters-top-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono, monospace);
  color: var(--amber-400, #fbbf24);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 600;
}

.pv-chapters-list {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0.45rem 1.75rem;
  gap: 0.3rem;
  scroll-behavior: smooth;
  box-sizing: border-box;
  mask-image: linear-gradient(to bottom, black calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 32px), transparent 100%);
}

/* Custom Scrollbar for Chapters */
.pv-chapters-list::-webkit-scrollbar {
  width: 5px;
}
.pv-chapters-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.pv-chapters-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
}
.pv-chapters-list::-webkit-scrollbar-thumb:hover {
  background: var(--amber-500, #f59e0b);
}

/* Single Chapter Item */
.pv-chapter-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  user-select: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.pv-chapter-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 158, 11, 0.25);
  transform: translateX(2px);
}

[data-theme="light"] .pv-chapter-item:hover {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
}

.pv-chapter-item.active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0%, rgba(20, 20, 20, 0.8) 100%);
  border-color: var(--amber-500, #f59e0b);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .pv-chapter-item.active {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.8) 0%, #FFFFFF 100%);
  border-color: var(--amber-500, #f59e0b);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.pv-chapter-time {
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  font-weight: 700;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #a1a1aa);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pv-chapter-item.active .pv-chapter-time {
  background: var(--amber-500, #f59e0b);
  color: #000000;
  border-color: var(--amber-500, #f59e0b);
  font-weight: 800;
}

[data-theme="light"] .pv-chapter-time {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

.pv-chapter-body {
  flex: 1;
  min-width: 0;
}

.pv-chapter-title {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--text-primary, #f4f4f5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .pv-chapter-title {
  color: #0F172A;
}

.pv-chapter-item.active .pv-chapter-title {
  color: var(--amber-400, #fbbf24);
  font-weight: 700;
}

[data-theme="light"] .pv-chapter-item.active .pv-chapter-title {
  color: #D97706;
}

.pv-chapter-desc {
  font-size: 0.70rem;
  color: var(--text-muted, #71717a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.08rem;
}

[data-theme="light"] .pv-chapter-desc {
  color: #64748B;
}

.pv-chapter-play-icon {
  width: 12px;
  height: 12px;
  color: var(--amber-400, #fbbf24);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pv-chapter-item:hover .pv-chapter-play-icon,
.pv-chapter-item.active .pv-chapter-play-icon {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1080px) {
  .pv-deepdive-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
  }
  .pv-chapters-container {
    width: 300px;
  }
}

@media (max-width: 860px) {
  .pv-deepdive-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pv-chapters-container {
    width: 100%;
  }
  .pv-chapters-list {
    max-height: 320px;
  }
  .pv-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  .product-videos-section {
    padding: 3.5rem 0 2.5rem;
  }
  .pv-window-bar {
    height: 38px;
    padding: 0 0.85rem;
  }
  .pv-window-title {
    display: none;
  }
  .pv-controls-bar {
    height: 48px;
    padding: 0 0.85rem;
    gap: 0.5rem;
  }
  .pv-vol-wrap {
    display: none;
  }
  .pv-chapters-list {
    max-height: 280px;
  }
}
