/* Wave 2 Cinema Interactive Studio — 100% GPU (transform + opacity only) */

/* 1. Living Pre-Click Hero Director Telemetry Bar */
.hero-frame-aura {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(75% 65% at 50% 85%, rgba(240, 195, 90, 0.2), transparent 72%);
  opacity: 0.35;
  animation: avHeroBreath 5.2s ease-in-out infinite;
}
.hero-telemetry-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none;
  padding: 16px 14px 10px;
  background: linear-gradient(180deg, rgba(5, 9, 20, 0), rgba(5, 9, 20, 0.88) 78%);
  display: flex; flex-direction: column; gap: 7px;
}
.hero-telemetry-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(245, 247, 252, 0.88);
}
.hero-live-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); }
.hero-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0;
  animation: avStudioPulse 2.4s ease-in-out infinite;
}
.hero-telemetry-spec { color: rgba(245, 247, 252, 0.72); }
.hero-playhead-track {
  display: block; height: 3px; border-radius: 999px; overflow: hidden;
  background: rgba(245, 247, 252, 0.22);
}
.hero-playhead-fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, #C9972B, #F0C35A, #FFF0BF);
  transform-origin: left center;
  animation: avPlayheadSweep 7.2s linear infinite;
}
.hero-frame.is-playing .hero-telemetry-bar,
.hero-frame.is-playing .hero-frame-aura { display: none; }

@keyframes avStudioPulse {
  0%, 100% { transform: scale3d(0.86, 0.86, 1); opacity: 0.52; }
  50% { transform: scale3d(1.22, 1.22, 1); opacity: 1; }
}
@keyframes avPlayheadSweep {
  0% { transform: scaleX(0.06); opacity: 0.72; }
  88% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.35; }
}
@keyframes avHeroBreath {
  0%, 100% { opacity: 0.24; }
  50% { opacity: 0.56; }
}

/* 2. Interactive 3-Step Studio Lab ("Phòng Chạy Thử 3 Bước Ra Tiền") */
.studio-lab {
  margin-top: 34px; padding: 26px 24px; border-radius: 8px;
  background: var(--obsidian); color: var(--light);
  border: 1px solid rgba(240, 195, 90, 0.32);
}
.studio-lab-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 18px;
}
.studio-lab-head h3 {
  font-family: var(--font-serif); font-size: clamp(1.25rem, 2.2vw, 1.65rem); color: var(--light);
}
.lab-case-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-case-btn {
  min-height: 44px; padding: 0 14px; border-radius: 4px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(245, 247, 252, 0.2);
  color: rgba(245, 247, 252, 0.84); font-size: 0.84rem; font-weight: 700;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lab-case-btn.is-active { background: var(--gold); border-color: var(--gold); color: #070C18; }
.lab-step-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.lab-step-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lab-step-btn {
  min-height: 44px; padding: 8px 12px; border-radius: 4px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(245, 247, 252, 0.14);
  color: rgba(245, 247, 252, 0.78); font-size: 0.82rem; font-weight: 700;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lab-step-btn.is-active {
  background: rgba(240, 195, 90, 0.16); border-color: var(--gold); color: var(--gold);
}
.lab-rail {
  height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden;
}
.lab-rail-fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, #C9972B, #F0C35A);
  transform-origin: left center;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.lab-stage {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 24px; align-items: center;
}
.lab-preview-frame {
  aspect-ratio: 9 / 12; max-height: 340px; width: 100%; border-radius: 6px; overflow: hidden;
  background: #050914; border: 1px solid rgba(240, 195, 90, 0.26);
}
.lab-preview-frame.is-wide { aspect-ratio: 16 / 10; }
.lab-preview-frame img { width: 100%; height: 100%; object-fit: cover; }
.lab-console-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lab-step-tag {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold);
}
.lab-console-info h4 { font-family: var(--font-serif); font-size: 1.42rem; color: var(--light); }
.lab-console-info p { margin: 0; font-size: 0.94rem; color: var(--light-muted); max-width: 540px; }
.lab-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.lab-metric-pill {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: var(--gold);
  background: rgba(240, 195, 90, 0.12); border: 1px solid rgba(240, 195, 90, 0.32);
}
.lab-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* 3. Unified Showcase Filter Bar */
.showcase-filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 28px;
}
.filter-pill {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(245, 247, 252, 0.2);
  color: rgba(245, 247, 252, 0.86); font-size: 0.86rem; font-weight: 700; white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-pill.is-active { background: var(--gold); border-color: var(--gold); color: #070C18; }

/* 4. Mobile 9:16 Showcase Reel Controls */
.showcase-reel-nav {
  display: none; align-items: center; justify-content: center; gap: 14px; margin-top: 14px;
}
.reel-arrow {
  min-width: 44px; min-height: 44px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(240, 195, 90, 0.38);
  color: var(--gold); font-size: 1.4rem; line-height: 1;
}
.reel-status { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.reel-dots { display: flex; align-items: center; gap: 6px; }
.reel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(245, 247, 252, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.reel-dot.is-active { background: var(--gold); transform: scale3d(1.35, 1.35, 1); }
.reel-counter { font-size: 0.78rem; font-weight: 700; color: var(--gold); letter-spacing: 0.06em; }

@media (hover: hover) and (pointer: fine) {
  .lab-case-btn:hover, .lab-step-btn:hover, .filter-pill:hover {
    border-color: var(--gold); transform: translate3d(0, -1px, 0);
  }
}

@media (max-width: 820px) {
  .lab-stage { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lab-preview-frame { max-height: 250px; aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  .studio-lab { padding: 18px 14px; margin-top: 22px; }
  .lab-case-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .lab-case-btn { flex-shrink: 0; font-size: 0.8rem; padding: 0 12px; }
  .lab-step-tabs { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lab-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lab-actions .btn { padding: 0 8px; font-size: 0.78rem; }
  .showcase-filter-bar {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    padding: 2px 2px 8px; margin-bottom: 14px; scrollbar-width: none;
  }
  .showcase-filter-bar::-webkit-scrollbar, .lab-case-tabs::-webkit-scrollbar { display: none; }
  .filter-pill { flex-shrink: 0; font-size: 0.82rem; padding: 0 14px; }
  .showcase-reel-nav { display: flex; }
  .hero-telemetry-bar { padding: 10px 10px 8px; }
  .hero-telemetry-row { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-live-dot, .hero-playhead-fill, .hero-frame-aura { animation: none !important; }
  .hero-playhead-fill { transform: scaleX(0.35); opacity: 0.85; }
}
