/* ==========================================================================
   Kriyasya Mind & Wellbeing — Audio-Visual Orchestrator (V2 + WOW Edition)
   Cinematic Video-Player Landing Component & Dual-Channel Session Audio
   ========================================================================== */

:root {
  --mwa-accent: #14b8a6;
  --mwa-accent-glow: rgba(20, 184, 166, 0.45);
  --mwa-accent-light: #6ee7c8;
  --mwa-bg-glass: rgba(10, 15, 28, 0.85);
  --mwa-border-glass: rgba(255, 255, 255, 0.12);
  --mwa-ink: #f0f4ff;
  --mwa-soft: #a2b0cc;
  --mwa-faint: #5d6880;
}

/* Hide legacy authored language tabs above video frame across all tools */
.video-tabs,
.tabs:has([onclick*="setVideo"]),
.tabs:has(#vEN, #vHI) {
  display: none !important;
}

/* Ensure container for video player has clean dimensions */
.video:has(.mwa-video-card),
.video.mwa-mounted {
  padding-top: 0 !important;
  height: auto !important;
  background: transparent !important;
}

/* Ensure SEO landing content is always immediately visible without waiting for scroll/IntersectionObserver */
.scroll-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   1. LANDING PAGE VIDEO-PLAYER COMPONENT
   -------------------------------------------------------------------------- */

.mwa-player-wrap {
  position: relative;
  width: 100%;
  margin: 28px 0 36px;
  clear: both;
}

.mwa-video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #070a14;
  border: 1px solid var(--mwa-border-glass);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.mwa-video-card:hover {
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 35px rgba(20, 184, 166, 0.15);
}

/* Background Hero Image Layer with Ken-Burns Motion */
.mwa-video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  transform: scale(1.01);
}

.mwa-video-card.mwa-playing .mwa-video-poster {
  animation: mwaKenBurns 28s ease-in-out infinite alternate;
}

@keyframes mwaKenBurns {
  0% { transform: scale(1.02) translate(0, 0); }
  50% { transform: scale(1.09) translate(-1%, -1%); }
  100% { transform: scale(1.05) translate(1%, 0.5%); }
}

/* Dark Cinematic Vignette Overlay */
.mwa-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 45%, rgba(10, 15, 28, 0.15) 0%, rgba(7, 10, 20, 0.55) 60%, rgba(5, 7, 14, 0.92) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mwa-video-card.mwa-playing .mwa-video-overlay {
  background: radial-gradient(circle at 50% 45%, rgba(10, 15, 28, 0.25) 0%, rgba(7, 10, 20, 0.65) 60%, rgba(5, 7, 14, 0.95) 100%);
}

/* Top Badge Bar */
.mwa-top-bar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  pointer-events: auto;
}

.mwa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 15, 28, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.mwa-badge .mwa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mwa-accent-light);
  box-shadow: 0 0 10px var(--mwa-accent);
}

.mwa-video-card.mwa-playing .mwa-badge .mwa-dot {
  animation: mwaDotPulse 1.6s ease-in-out infinite;
}

@keyframes mwaDotPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--mwa-accent-light); }
}

.mwa-lang-pills {
  display: inline-flex;
  background: rgba(10, 15, 28, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.mwa-lang-btn {
  background: transparent;
  border: 0;
  color: var(--mwa-soft);
  font-weight: 800;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mwa-lang-btn.active {
  background: linear-gradient(135deg, var(--mwa-accent), var(--mwa-accent-light));
  color: #080d1a;
  box-shadow: 0 2px 8px var(--mwa-accent-glow);
}

/* Center Play / Pause Area */
.mwa-center-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mwa-halo {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mwa-accent-glow) 0%, rgba(20, 184, 166, 0) 70%);
  opacity: 0.45;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.mwa-video-card.mwa-playing .mwa-halo {
  opacity: 0.85;
  animation: mwaHaloPulse 3s ease-in-out infinite;
}

@keyframes mwaHaloPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.35); opacity: 0.9; }
}

.mwa-main-play-btn {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px var(--mwa-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.mwa-main-play-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 40px var(--mwa-accent);
}

.mwa-main-play-btn:active {
  transform: scale(0.95);
}

.mwa-main-play-btn svg {
  width: 28px;
  height: 28px;
  fill: #090e1c;
  transition: transform 0.15s ease;
}

.mwa-main-play-btn.mwa-is-play svg {
  margin-left: 3px;
}

/* Soundwave Frequency Visualizer (Animated Bars) */
.mwa-visualizer {
  position: absolute;
  bottom: 58px;
  left: 0;
  right: 0;
  z-index: 4;
  height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 0 24px;
  pointer-events: none;
  opacity: 0.2;
  transition: opacity 0.5s ease;
}

.mwa-video-card.mwa-playing .mwa-visualizer {
  opacity: 0.85;
}

.mwa-visualizer .mwa-vbar {
  flex: 0 0 4px;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--mwa-accent-light) 0%, var(--mwa-accent) 100%);
  transition: height 0.15s ease;
}

.mwa-video-card.mwa-playing .mwa-visualizer .mwa-vbar {
  animation: mwaBarWave 1.2s ease-in-out infinite alternate;
}

.mwa-visualizer .mwa-vbar:nth-child(2n) { animation-duration: 0.8s; animation-delay: 0.1s; }
.mwa-visualizer .mwa-vbar:nth-child(3n) { animation-duration: 1.4s; animation-delay: 0.25s; }
.mwa-visualizer .mwa-vbar:nth-child(4n) { animation-duration: 1.0s; animation-delay: 0.4s; }
.mwa-visualizer .mwa-vbar:nth-child(5n) { animation-duration: 1.6s; animation-delay: 0.15s; }

@keyframes mwaBarWave {
  0% { height: 6px; }
  100% { height: 32px; }
}

/* Bottom Controls Bar */
.mwa-controls-bar {
  position: relative;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px 14px;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0) 0%, rgba(8, 12, 24, 0.88) 35%, rgba(6, 9, 18, 0.98) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Timeline / Scrub Bar */
.mwa-timeline-wrap {
  position: relative;
  width: 100%;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.mwa-timeline-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  transition: height 0.15s ease;
  overflow: visible;
}

.mwa-timeline-wrap:hover .mwa-timeline-track {
  height: 6px;
}

.mwa-timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--mwa-accent), var(--mwa-accent-light));
  box-shadow: 0 0 10px var(--mwa-accent-glow);
}

.mwa-timeline-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.mwa-timeline-wrap:hover .mwa-timeline-thumb,
.mwa-video-card.mwa-playing .mwa-timeline-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Controls Row */
.mwa-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mwa-left-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mwa-mini-btn {
  background: transparent;
  border: 0;
  color: var(--mwa-ink);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mwa-mini-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.mwa-mini-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mwa-time-display {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--mwa-soft);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mwa-time-display .mwa-curr {
  color: #fff;
}

.mwa-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ambient Music (BGM) Toggle Button */
.mwa-bgm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--mwa-accent-light);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mwa-bgm-toggle:hover {
  background: rgba(20, 184, 166, 0.22);
  border-color: var(--mwa-accent);
}

.mwa-bgm-toggle.mwa-muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--mwa-faint);
}

.mwa-bgm-toggle .mwa-note-icon {
  font-size: 13px;
}

/* Script / Transcript Toggle Button */
.mwa-script-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--mwa-soft);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mwa-script-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.mwa-script-toggle.active {
  background: rgba(20, 184, 166, 0.18);
  border-color: var(--mwa-accent);
  color: #fff;
  box-shadow: 0 0 14px var(--mwa-accent-glow);
}

.mwa-script-toggle .mwa-script-icon {
  font-size: 12px;
}

/* In-Player Glassmorphic Transcript Drawer */
.mwa-script-drawer {
  position: absolute;
  bottom: 64px;
  left: 14px;
  right: 14px;
  max-height: 58%;
  display: none;
  flex-direction: column;
  background: rgba(8, 12, 22, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 10;
  overflow: hidden;
  animation: mwaDrawerPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mwaDrawerPop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mwa-script-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mwa-script-drawer-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mwa-accent-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mwa-script-drawer-close {
  background: transparent;
  border: 0;
  color: var(--mwa-soft);
  font-size: 15px;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.15s ease;
}

.mwa-script-drawer-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mwa-script-drawer-content {
  padding: 12px 16px;
  overflow-y: auto;
  color: #f1f5f9;
  font-size: 13.5px;
  line-height: 1.62;
  font-family: inherit;
  max-height: 190px;
}

.mwa-script-drawer-content::-webkit-scrollbar {
  width: 5px;
}

.mwa-script-drawer-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}

.mwa-script-body {
  margin: 0;
  white-space: pre-line;
}

/* --------------------------------------------------------------------------
   2. IN-SESSION FLOATING AUDIO COMPANION BAR
   -------------------------------------------------------------------------- */

.mwa-session-companion {
  position: relative;
  top: 0;
  z-index: 180;
  max-width: 680px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 20px;
  background: rgba(12, 17, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 0 20px rgba(20, 184, 166, 0.12);
  animation: mwaSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

@keyframes mwaSlideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mwa-companion-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mwa-companion-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mwa-accent), var(--mwa-accent-light));
  color: #080d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--mwa-accent-glow);
}

.mwa-companion-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mwa-companion-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mwa-companion-status {
  font-size: 11px;
  color: var(--mwa-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mwa-mini-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.mwa-mini-eq i {
  width: 2px;
  height: 3px;
  background: var(--mwa-accent-light);
  border-radius: 1px;
}

.mwa-speaking .mwa-mini-eq i {
  animation: mwaMiniEq 0.8s ease-in-out infinite alternate;
}

.mwa-speaking .mwa-mini-eq i:nth-child(2) { animation-delay: 0.15s; }
.mwa-speaking .mwa-mini-eq i:nth-child(3) { animation-delay: 0.3s; }

@keyframes mwaMiniEq {
  0% { height: 3px; }
  100% { height: 10px; }
}

.mwa-companion-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mwa-skip-intro-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mwa-skip-intro-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.mwa-replay-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--mwa-soft);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mwa-replay-btn:hover {
  border-color: var(--mwa-accent);
  color: #fff;
}

/* Reduced motion considerations */
@media (prefers-reduced-motion: reduce) {
  .mwa-video-card.mwa-playing .mwa-video-poster,
  .mwa-halo,
  .mwa-visualizer .mwa-vbar,
  .mwa-mini-eq i,
  .mwa-video-card.mwa-playing .mwa-badge .mwa-dot {
    animation: none !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .mwa-video-card {
    min-height: 200px;
    border-radius: 14px;
  }
  .mwa-main-play-btn {
    width: 60px;
    height: 60px;
  }
  .mwa-main-play-btn svg {
    width: 24px;
    height: 24px;
  }
  .mwa-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
  .mwa-visualizer {
    bottom: 50px;
    height: 26px;
    gap: 3px;
  }
  .mwa-controls-bar {
    padding: 8px 12px 10px;
  }
  .mwa-session-companion {
    top: 0;
    margin: 0 auto 16px;
    padding: 6px 12px;
    border-radius: 14px;
  }
  .mwa-bgm-toggle {
    font-size: 10.5px;
    padding: 4px 8px;
  }
}

/* --------------------------------------------------------------------------
   3. IN-SESSION ARRIVAL & INTENTION STAGE (Solution B)
   -------------------------------------------------------------------------- */

/* Global session container scrolling and top navigation clearance (only when session is active) */
.session.active, #session.active, .tool-session.active, .session.show, #session.show, .tool-session.show, .flowcard-wrap.active, .mwa-in-arrival, body.mws-session-only .session, body.mws-session-only #session, body.mws-session-only .tool-session {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-top: calc(var(--lvh-h, 72px) + 20px) !important;
  padding-bottom: 90px !important;
  padding-left: clamp(12px, 3vw, 24px) !important;
  padding-right: clamp(12px, 3vw, 24px) !important;
  box-sizing: border-box !important;
}

/* Universal landing clearance: in-flow landing pages do not need double offset because #lvh is sticky */
.wrap.landing, #landing, .shell, .main-wrap {
  box-sizing: border-box !important;
}

@media (max-width: 680px) {
  .shell {
    padding: 10px 14px 28px !important;
  }
  .panel {
    padding: 24px 18px !important;
  }
  .card {
    padding: 18px 16px !important;
  }
}

/* Hide other session cards/widgets while Arrival Stage is active */
.mwa-in-arrival > *:not(.mwa-session-companion):not(.mwa-arrival-stage) {
  display: none !important;
}

.mwa-arrival-stage {
  width: 100%;
  max-width: 680px;
  margin: 12px auto 24px;
  animation: mwaFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-sizing: border-box;
}

.mwa-arrival-stage.mwa-arrival-fading {
  opacity: 0;
  transform: scale(0.96) translateY(-12px);
  pointer-events: none;
}

.mwa-arrival-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(16, 22, 36, 0.95), rgba(10, 14, 24, 0.97));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 34px 30px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  box-sizing: border-box;
}

.mwa-arrival-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 200px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.32), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mwa-arrival-card > * {
  position: relative;
  z-index: 1;
}

.mwa-arrival-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--mwa-accent-light, #6ee7c8);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.mwa-arrival-sparkle {
  color: #facc15;
  font-size: 13px;
}

.mwa-arrival-title {
  font-family: var(--mwa-display-font, 'Fraunces', serif);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

/* Pulsing Meditative Orb */
.mwa-arrival-orb-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mwa-arrival-aura {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.4), transparent 70%);
  animation: mwaAuraPulse 3s ease-in-out infinite;
}

.mwa-arrival-orb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(20, 184, 166, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.3);
}

.mwa-arrival-icon {
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

@keyframes mwaAuraPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.35; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.mwa-arrival-cue {
  font-size: 14px;
  color: var(--mwa-soft, #a2b0cc);
  margin: 0 0 16px;
  line-height: 1.5;
}

.mwa-arrival-script-box {
  background: rgba(8, 12, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px 22px;
  margin: 0 auto 18px;
  max-width: 580px;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.mwa-arrival-script-text {
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.65;
  font-style: italic;
}

/* Waveform Visualizer */
.mwa-arrival-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 20px;
  margin: 0 auto 20px;
}

.mwa-arrival-waveform i {
  display: inline-block;
  width: 3px;
  height: 4px;
  background: var(--mwa-accent-light, #6ee7c8);
  border-radius: 2px;
  opacity: 0.35;
  transition: height 0.15s ease, opacity 0.15s ease;
}

.mwa-arrival-stage.mwa-speaking .mwa-arrival-waveform i {
  opacity: 0.95;
  animation: mwaWaveformDance 1.2s ease-in-out infinite alternate;
}

.mwa-arrival-stage.mwa-speaking .mwa-arrival-waveform i:nth-child(2n) { animation-delay: 0.15s; }
.mwa-arrival-stage.mwa-speaking .mwa-arrival-waveform i:nth-child(3n) { animation-delay: 0.3s; }
.mwa-arrival-stage.mwa-speaking .mwa-arrival-waveform i:nth-child(4n) { animation-delay: 0.45s; }

@keyframes mwaWaveformDance {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Actions */
.mwa-arrival-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mwa-arrival-begin-btn {
  background: linear-gradient(135deg, var(--mwa-accent, #14b8a6), var(--mwa-accent-light, #6ee7c8));
  color: #06101a;
  border: 0;
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px var(--mwa-accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mwa-arrival-begin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px var(--mwa-accent-glow);
}

.mwa-arrival-begin-btn:active {
  transform: scale(0.97);
}

.mwa-arrival-replay-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mwa-arrival-replay-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

@keyframes mwaFadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .mwa-arrival-card {
    padding: 24px 18px 22px;
    border-radius: 18px;
  }
  .mwa-arrival-title {
    font-size: 20px;
  }
  .mwa-arrival-script-box {
    padding: 12px 14px;
  }
  .mwa-arrival-script-text {
    font-size: 13px;
  }
  .mwa-arrival-begin-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
  .mwa-arrival-replay-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Redundant caption box suppression */
#lvCaption {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

