/* ==============================================================
   EXPLAINER ANIMATION & VIDEO SHOWCASE SECTION
   Theme: Modern Cinema / Gurukul Digital Studio / Interactive Explainer
   ============================================================== */

.explainer-showcase-section {
  position: relative;
  padding: 5.5rem 0 6rem;
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F6 40%, #F1F5F9 100%);
  overflow: hidden;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

/* Background Ambient Lighting */
.explainer-showcase-section::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 103, 31, 0.12) 0%, rgba(4, 106, 56, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.explainer-showcase-section .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.explainer-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.explainer-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.explainer-header .section-tag.saffron {
  background: #FFF2E8;
  color: #EA580C;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.explainer-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.explainer-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  color: #475569;
  line-height: 1.65;
  margin: 0 auto;
}

/* ==============================================================
   THEATER STAGE CONTAINER (VIDEO FRAME MOCKUP)
   ============================================================== */
.explainer-theater-stage {
  position: relative;
  background: linear-gradient(160deg, #090D16 0%, #0F172A 45%, #131E38 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  color: #F8FAFC;
  transition: box-shadow 0.3s ease;
}

.explainer-theater-stage:hover {
  box-shadow: 0 30px 70px -12px rgba(15, 23, 42, 0.55), 0 0 40px rgba(255, 103, 31, 0.15);
}

/* Top Device Chrome / Navigation Bar */
.theater-chrome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
  flex-wrap: wrap;
}

.theater-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.theater-dot.red { background: #EF4444; }
.theater-dot.amber { background: #F59E0B; }
.theater-dot.green { background: #10B981; }

.theater-title-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.theater-title-badge i {
  color: #FF671F;
}

.theater-title-badge .live-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Mode Switcher Tabs */
.theater-mode-tabs {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theater-tab-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
  font-family: inherit;
}

.theater-tab-btn:hover {
  color: #FFFFFF;
}

.theater-tab-btn.active {
  background: linear-gradient(135deg, #FF671F 0%, #EA580C 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}

/* Right Tool Actions */
.theater-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theater-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.theater-tool-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.theater-tool-btn.active-tool {
  background: #046A38;
  color: #FFFFFF;
  border-color: #0E8A42;
}

/* ==============================================================
   STORY / CHAPTER PROGRESS TIMELINE
   ============================================================== */
.explainer-story-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 0.85rem 1.4rem 0.6rem;
  background: rgba(10, 15, 28, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.story-chapter-chip {
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  outline: none;
}

.story-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.story-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF671F 0%, #10B981 100%);
  border-radius: 9999px;
  transition: width 0.15s linear;
}

.story-chapter-chip.done .story-bar-fill {
  width: 100%;
}

.story-chapter-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748B;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-chapter-chip.active .story-chapter-label {
  color: #F8FAFC;
  font-weight: 700;
}

.story-chapter-chip.done .story-chapter-label {
  color: #94A3B8;
}

.story-chapter-label i {
  font-size: 0.72rem;
  color: #FF671F;
}

/* ==============================================================
   SCENE MAIN STAGE
   ============================================================== */
.explainer-stage-viewport {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.explainer-scene {
  display: none;
  width: 100%;
  padding: 2.2rem 2.4rem;
  animation: sceneFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.explainer-scene.active {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@keyframes sceneFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scene Narrative (Text Side) */
.scene-narrative {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.scene-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(255, 103, 31, 0.15);
  color: #FF9E67;
  border: 1px solid rgba(255, 103, 31, 0.3);
  width: fit-content;
}

.scene-title {
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.scene-title .highlight-orange {
  color: #FF7A30;
}

.scene-title .highlight-green {
  color: #34D399;
}

.scene-desc {
  font-size: 0.98rem;
  color: #CBD5E1;
  line-height: 1.7;
}

.scene-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.scene-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.scene-bullet-item i {
  margin-top: 3px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.scene-bullet-item.saffron-icon i { color: #FF7A30; }
.scene-bullet-item.green-icon i { color: #34D399; }
.scene-bullet-item.gold-icon i { color: #FBBF24; }
.scene-bullet-item.blue-icon i { color: #60A5FA; }

.scene-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.explainer-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #FF671F 0%, #E0530A 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.2s ease;
}

.explainer-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
  color: #FFFFFF;
}

.explainer-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0 !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: all 0.2s ease;
}

.explainer-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==============================================================
   VISUAL ANIMATION STAGE (GRAPHICS SIDE)
   ============================================================== */
.scene-visual-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  overflow: hidden;
}

/* Ambient Visual Glow */
.scene-visual-box::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 103, 31, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.visual-element-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Scene 1 Visual: Chaos to Awakening Sunrise --- */
.sun-awakening-graphic {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-core {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #FDBA74 0%, #FF671F 70%, #C2410C 100%);
  box-shadow: 0 0 45px rgba(255, 103, 31, 0.75), 0 0 90px rgba(255, 103, 31, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #FFFFFF;
  position: relative;
  z-index: 2;
  animation: sunPulse 3s infinite alternate ease-in-out;
}

@keyframes sunPulse {
  0% { transform: scale(0.96); box-shadow: 0 0 35px rgba(255, 103, 31, 0.6); }
  100% { transform: scale(1.05); box-shadow: 0 0 60px rgba(255, 103, 31, 0.95); }
}

.sun-rays-ring {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 2px dashed rgba(255, 180, 100, 0.45);
  border-radius: 50%;
  animation: rotateSlow 24s linear infinite;
}

.sun-aura-outer {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: rotateSlowReverse 36s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateSlowReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.scene1-floating-tags {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.floating-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #F1F5F9;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: floatPill 3s infinite ease-in-out;
}

.floating-pill:nth-child(2) { animation-delay: 1s; }
.floating-pill:nth-child(3) { animation-delay: 2s; }

@keyframes floatPill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --- Scene 2 Visual: 24-Hour Dial (30 Min vs 23:30 Hrs) --- */
.clock-pie-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 1rem;
}

.clock-dial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.clock-pie-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 22;
}

.clock-pie-30min {
  fill: none;
  stroke: url(#saffronGradient);
  stroke-width: 24;
  stroke-dasharray: 628;
  stroke-dashoffset: 615; /* Small slice representing 30 mins (1/48th) */
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(255, 103, 31, 0.8));
  animation: pulseSlice 2s infinite ease-in-out;
}

@keyframes pulseSlice {
  0%, 100% { stroke-width: 24; }
  50% { stroke-width: 28; filter: drop-shadow(0 0 16px rgba(255, 103, 31, 1)); }
}

.clock-center-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.clock-center-time {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.clock-center-time span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #FF7A30;
  display: block;
  margin-top: 3px;
}

.clock-habit-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 320px;
}

.habit-mini-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.habit-mini-chip i {
  color: #10B981;
  font-size: 0.72rem;
}

/* --- Scene 3 Visual: Interactive App Screen & Progress Wheel --- */
.mockup-phone-frame {
  width: 260px;
  background: #090E17;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}

.mockup-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.45rem;
}

.mockup-app-user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #F8FAFC;
}

.mockup-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FF671F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.mockup-streak-badge {
  background: rgba(249, 115, 22, 0.2);
  color: #FB923C;
  border: 1px solid rgba(249, 115, 22, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  animation: streakFire 1.5s infinite alternate ease-in-out;
}

@keyframes streakFire {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.06); filter: brightness(1.25); }
}

.mockup-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.72rem;
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.mockup-score-bar-wrap {
  margin-top: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem;
  border-radius: 10px;
  text-align: center;
}

.mockup-score-label {
  font-size: 0.7rem;
  color: #94A3B8;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mockup-progress-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.mockup-progress-fill {
  width: 87%;
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
  border-radius: 9999px;
  animation: scoreLoad 2s ease-out;
}

@keyframes scoreLoad {
  from { width: 0%; }
  to { width: 87%; }
}

/* --- Scene 4 Visual: 5 F's Orbital Rings & Compounding Wealth --- */
.orbitals-container {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-center-wealth {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: radial-gradient(circle, #D97706 0%, #92400E 100%);
  box-shadow: 0 0 35px rgba(217, 119, 6, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
  z-index: 2;
  border: 2px solid #FDE68A;
}

.orbit-center-wealth i {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.orbit-center-wealth span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.orbital-ring {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  animation: rotateSlow 20s linear infinite;
}

.satellite-node {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sat-faith   { top: -19px; left: calc(50% - 19px); background: #3B82F6; }
.sat-family  { top: 25%; right: -12px; background: #EC4899; }
.sat-friends { bottom: 6%; right: 18px; background: #8B5CF6; }
.sat-fitness { bottom: 6%; left: 18px; background: #10B981; }
.sat-finance { top: 25%; left: -12px; background: #F59E0B; }

.wealth-compound-badge {
  margin-top: 1.2rem;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FDE68A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Scene 5 Visual: National Vision 2050 Certificate & Flag --- */
.cert-vision-mockup {
  position: relative;
  width: 250px;
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF3C7 100%);
  border-radius: 14px;
  border: 2px solid #D97706;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  padding: 1rem 0.9rem;
  color: #1E293B;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  animation: floatPill 3.5s infinite ease-in-out;
}

.cert-mockup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400E;
  text-transform: uppercase;
  border-bottom: 1px dashed #D97706;
  padding-bottom: 0.4rem;
}

.cert-mockup-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #78350F;
  margin: 2px 0;
}

.cert-mockup-stamp {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #D97706;
  background: #FFFBEB;
}

.cert-tiranga-ribbon {
  height: 4px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #FF671F 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #046A38 66.6%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cert-mockup-sub {
  font-size: 0.68rem;
  color: #475569;
  font-weight: 600;
}

/* ==============================================================
   PLAYBACK CONTROLS BAR (BOTTOM OF THEATER)
   ============================================================== */
.theater-playback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: rgba(10, 15, 28, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
  flex-wrap: wrap;
}

.playback-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.playback-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.playback-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.playback-btn.play-pause-btn {
  background: linear-gradient(135deg, #FF671F 0%, #EA580C 100%);
  border: none;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
}

.playback-btn.play-pause-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.6);
}

.playback-status-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #CBD5E1;
}

.playback-status-info strong {
  color: #FFFFFF;
}

.playback-right-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.speed-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-toggle-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
}

.scene-timer-badge {
  font-size: 0.78rem;
  font-family: monospace, monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==============================================================
   MODE 2: EMBEDDED OFFICIAL VIDEO PLAYER TAB
   ============================================================== */
.explainer-video-player-wrap {
  display: none;
  position: relative;
  width: 100%;
  background: #000000;
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.explainer-video-player-wrap.active {
  display: block;
}

.explainer-video-elem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 103, 31, 0.9);
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
  z-index: 5;
}

.video-overlay-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #FF671F;
}

/* ==============================================================
   3 BOTTOM TAKEAWAY CARDS
   ============================================================== */
.explainer-pillars-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.explainer-pillar-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.explainer-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pillar-icon-box.saffron { background: #FFF2E8; color: #EA580C; }
.pillar-icon-box.green { background: #E8F7EE; color: #0E8A42; }
.pillar-icon-box.gold { background: #FEF3C7; color: #D97706; }

.pillar-card-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.35rem;
}

.pillar-card-content p {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0;
}

/* ==============================================================
   RESPONSIVE STYLES
   ============================================================== */
@media (max-width: 992px) {
  .explainer-scene.active {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.8rem 1.4rem;
  }

  .scene-visual-box {
    min-height: 320px;
    order: -1; /* Show graphic on top on tablets/mobiles */
  }

  .explainer-story-progress {
    overflow-x: auto;
    padding: 0.75rem 1rem 0.5rem;
    scrollbar-width: none;
  }
  
  .explainer-story-progress::-webkit-scrollbar {
    display: none;
  }

  .story-chapter-chip {
    min-width: 130px;
  }

  .explainer-pillars-summary {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .explainer-showcase-section {
    padding: 3.5rem 0 4rem;
  }

  .theater-chrome-bar {
    padding: 0.7rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .theater-mode-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .theater-tab-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.76rem;
    padding: 0.35rem 0.5rem;
  }

  .theater-playback-bar {
    padding: 0.75rem 0.9rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .playback-status-info {
    justify-content: center;
    font-size: 0.78rem;
  }

  .playback-right-group {
    justify-content: space-between;
  }

  .clock-pie-container,
  .sun-awakening-graphic,
  .orbitals-container {
    transform: scale(0.85);
  }

  .scene-title {
    font-size: 1.35rem;
  }

  .scene-desc {
    font-size: 0.9rem;
  }

  .scene-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .explainer-btn-primary,
  .explainer-btn-secondary {
    justify-content: center;
  }
}
