:root {
  --bg: #070711;
  --bg-soft: #111124;
  --card: rgba(255,255,255,0.08);
  --card-strong: rgba(255,255,255,0.13);
  --line: rgba(255,255,255,0.14);
  --text: #f8fafc;
  --muted: #b8bed1;
  --muted-2: #858da8;
  --primary: #8b5cf6;
  --primary-2: #ec4899;
  --cyan: #22d3ee;
  --green: #34d399;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(236,72,153,0.26), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(34,211,238,0.2), transparent 32rem),
    radial-gradient(circle at 50% 42%, rgba(139,92,246,0.18), transparent 34rem),
    var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}
.brand img { width: 38px; height: 38px; border-radius: 12px; }

.nav-links {
  display: flex;
  gap: 1.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.25rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  min-height: 88vh;
  padding-top: 4rem;
}
.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  margin: 0 0 1rem;
}
.hero h1,
.section-heading h2,
.s3-card h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}
.hero h1 {
  max-width: 780px;
}
.hero-text {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 1.4rem 0 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary), var(--cyan));
  color: white;
  box-shadow: 0 18px 45px rgba(139,92,246,0.38);
}
.btn.secondary {
  background: rgba(255,255,255,0.08);
  border-color: var(--line);
  color: var(--text);
}
.btn.full { width: 100%; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.trust-row span,
.summary-pill,
.popular-badge {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-card { display: flex; justify-content: center; }
.phone-frame {
  width: min(390px, 92vw);
  aspect-ratio: 9/16;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 44px;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  position: relative;
}
.phone-top {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #080812;
  border-radius: 999px;
  z-index: 3;
}
.story-preview {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(236,72,153,0.58), rgba(124,58,237,0.42), rgba(6,182,212,0.54)),
    radial-gradient(circle at 50% 35%, #fff 0 5%, transparent 28%),
    linear-gradient(180deg, #1b1432, #05050b);
}
.story-preview::before {
  content: "";
  position: absolute;
  inset: 12% 16% 18%;
  background: rgba(255,255,255,0.18);
  border-radius: 48% 52% 42% 58%;
  filter: blur(1px);
  animation: morph 8s infinite alternate ease-in-out;
}
@keyframes morph {
  from { transform: rotate(-8deg) scale(0.94); }
  to { transform: rotate(9deg) scale(1.08); }
}
.floating-badge {
  position: absolute;
  z-index: 2;
  background: rgba(7,7,17,0.64);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(18px);
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.83rem;
}
.badge-one { top: 16%; left: 9%; }
.badge-two { bottom: 19%; right: 8%; }
.play-circle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.34);
  backdrop-filter: blur(16px);
  font-size: 1.6rem;
  box-shadow: 0 16px 35px rgba(0,0,0,0.22);
}
.timeline {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.timeline span {
  height: 5px;
  background: rgba(255,255,255,0.38);
  border-radius: 999px;
}
.timeline span:first-child { background: white; }

.stats-strip {
  max-width: var(--max);
  margin: -1rem auto 0;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stats-strip div,
.creator-card,
.summary-card,
.mood-card,
.price-card,
.usage-card,
.table-wrap,
.s3-card,
details,
.final-cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 70px rgba(0,0,0,0.16);
}
.stats-strip div {
  padding: 1.2rem;
}
.stats-strip strong { display: block; font-size: 1.7rem; letter-spacing: -0.06em; }
.stats-strip span { color: var(--muted); font-size: 0.9rem; }

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.section-heading h2,
.s3-card h2,
.final-cta h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}
.section-heading p:not(.eyebrow),
.s3-card p,
.final-cta p,
.mood-card p,
.price-card span,
details p,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.creator-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.3rem;
  align-items: start;
}
.creator-card,
.summary-card,
.usage-card,
.final-cta {
  padding: clamp(1.2rem, 3vw, 2rem);
}
.upload-box {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  min-height: 220px;
  border: 1px dashed rgba(255,255,255,0.34);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.upload-box:hover { border-color: var(--cyan); background: rgba(34,211,238,0.08); }
.upload-box input { display: none; }
.upload-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  font-size: 2rem;
  font-weight: 500;
}
.upload-box small { color: var(--muted-2); }
.input-group { margin-top: 1.2rem; }
.input-group > label {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 850;
}
select {
  width: 100%;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem;
  outline: none;
}
select option { color: #111827; }
.muted-inline { color: var(--muted-2); font-weight: 700; font-size: 0.9em; }
textarea {
  width: 100%;
  min-height: 96px;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem;
  outline: none;
  resize: vertical;
  line-height: 1.5;
}
textarea::placeholder { color: var(--muted-2); }
.helper-note { display: block; margin-top: 0.5rem; color: var(--muted-2); line-height: 1.5; }

.caption-list {
  display: grid;
  gap: 0.8rem;
}
.caption-empty-state {
  padding: 0.95rem;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: var(--muted-2);
  line-height: 1.5;
}
.caption-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}
.caption-item label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}
.caption-item label span {
  color: var(--text);
  font-weight: 800;
}
.caption-item label small {
  color: var(--muted-2);
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.platform {
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: rgba(255,255,255,0.07);
  padding: 0.9rem 0.6rem;
  font-weight: 800;
}
.platform.active {
  border-color: rgba(34,211,238,0.8);
  background: rgba(34,211,238,0.14);
}
#generateBtn { margin-top: 1.3rem; }
.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.summary-top > span:last-child {
  color: var(--green);
  font-weight: 900;
}
.summary-card h3 {
  font-size: 2rem;
  letter-spacing: -0.06em;
  margin: 1rem 0;
}

.preview-panel {
  margin: 0.8rem 0 1rem;
  display: grid;
  gap: 0.65rem;
}
.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.preview-title {
  color: var(--text);
  font-weight: 950;
  letter-spacing: -0.03em;
}
.preview-size-note {
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 800;
}
.preview-stage {
  position: relative;
  width: min(100%, 210px);
  max-height: 380px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(236,72,153,0.30), rgba(124,58,237,0.26), rgba(6,182,212,0.30)), rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 18px 34px rgba(0,0,0,0.20);
}
.preview-stage.ratio-9-16 { aspect-ratio: 9 / 16; }
.preview-stage.ratio-16-9 { aspect-ratio: 16 / 9; width: min(100%, 320px); max-height: 190px; }
.preview-stage.ratio-1-1 { aspect-ratio: 1 / 1; max-height: 260px; }
.preview-stage.ratio-4-5 { aspect-ratio: 4 / 5; max-height: 330px; }
.preview-stage.preview-ready { outline: 2px solid rgba(34,211,238,0.42); }
.preview-stage img,
.preview-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-stage.preview-ready img {
  animation: finalPreviewMotion 5s ease-in-out infinite alternate;
}
@keyframes finalPreviewMotion {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1.3rem;
  color: var(--muted);
}
.preview-empty span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font-size: 2rem;
}
.preview-empty strong { color: var(--text); }
.preview-empty small { color: var(--muted-2); line-height: 1.5; }
.preview-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.30), transparent 35%, rgba(0,0,0,0.42));
}
.preview-overlay .preview-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.preview-overlay .preview-chip span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.34rem 0.52rem;
  border-radius: 999px;
  background: rgba(7,7,17,0.62);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
}
.preview-overlay .preview-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(14px);
  font-weight: 900;
}
.preview-overlay .preview-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  padding: 0.58rem;
  border-radius: 14px;
  background: rgba(7,7,17,0.58);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}
.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.preview-meta button {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-weight: 800;
  cursor: pointer;
}
.thumb-strip {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.thumb-strip:empty { display: none; }
.thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  padding: 0;
  cursor: pointer;
  position: relative;
}
.thumb.active { border-color: var(--cyan); }
.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb[data-kind="video"]::after {
  content: "▶";
  position: absolute;
  inset: auto 6px 5px auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.62);
  color: white;
  font-size: 0.65rem;
}
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.summary-list span { color: var(--muted); }
.summary-list strong { text-align: right; }
.progress-wrap { margin: 1.4rem 0; }
.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.progress {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress span {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-2), var(--primary), var(--cyan));
  transition: width .35s ease;
}

.mood-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mood-card,
.price-card,
details { padding: 1.4rem; }
.mood-card span { font-size: 2rem; }
.mood-card h3,
.price-card h3 { font-size: 1.35rem; margin: 0.8rem 0 0.35rem; letter-spacing: -0.04em; }

.table-wrap { overflow: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th, td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
th { color: var(--cyan); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.1em; }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 800; }

.price-card { position: relative; display: flex; flex-direction: column; gap: 0.7rem; }
.price-card.popular {
  background: linear-gradient(180deg, rgba(139,92,246,0.24), rgba(255,255,255,0.08));
  border-color: rgba(139,92,246,0.6);
  transform: translateY(-10px);
}
.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text);
}
.price {
  font-size: 2.6rem;
  font-weight: 950;
  letter-spacing: -0.08em;
  margin: 0.3rem 0 0;
}
.price-card strong { color: var(--cyan); font-size: 1.1rem; }
.price-card .btn { margin-top: auto; }
.usage-card { margin-top: 1rem; }
.usage-card h3 { margin-top: 0; }
.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.usage-grid span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.85rem;
  color: var(--muted);
}
.usage-grid strong { color: var(--text); white-space: nowrap; }

.s3-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2rem;
  padding: clamp(1.3rem, 4vw, 2.5rem);
  background:
    linear-gradient(135deg, rgba(236,72,153,0.14), rgba(34,211,238,0.1)),
    var(--card);
}
.flow-list {
  display: grid;
  gap: 0.8rem;
}
.flow-list span {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.9rem 1rem;
  border-radius: 16px;
  color: var(--muted);
}

.faq-grid { grid-template-columns: repeat(2, 1fr); }
summary {
  cursor: pointer;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.final-cta { text-align: center; }
.final-cta p { max-width: 560px; margin: 1rem auto 1.5rem; }
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 920px) {
  .hero,
  .creator-grid,
  .s3-card { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .stats-strip,
  .mood-grid,
  .pricing-grid,
  .usage-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.popular { transform: none; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  .section-pad { padding: 4rem 1rem; }
  .site-header { padding: 0.8rem 1rem; }
  .nav-cta { display: none; }
  .hero-actions .btn { width: 100%; }
  .stats-strip,
  .mood-grid,
  .pricing-grid,
  .usage-grid,
  .faq-grid,
  .platform-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .summary-list li { flex-direction: column; gap: 0.2rem; }
  .summary-list strong { text-align: left; }
  .preview-stage { width: min(100%, 190px); max-height: 340px; }
  .preview-stage.ratio-16-9 { width: min(100%, 290px); max-height: 170px; }
  .preview-stage.ratio-1-1 { max-height: 230px; }
  .preview-stage.ratio-4-5 { max-height: 300px; }
}

/* v4: playable final preview animation + auto captions */
.preview-stage.playing {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255,255,255,0.12) inset;
}

.preview-stage .preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-stage.preview-ready .animated-media {
  animation: picstagramKenBurns 5.2s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes picstagramKenBurns {
  0% { transform: scale(1.02) translate3d(-1.5%, 1%, 0); filter: saturate(1.02) contrast(1.02); }
  50% { transform: scale(1.09) translate3d(1.5%, -1.5%, 0); filter: saturate(1.15) contrast(1.05); }
  100% { transform: scale(1.14) translate3d(-1%, -2%, 0); filter: saturate(1.08) contrast(1.08); }
}

.preview-stage.preview-ready::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.18), transparent 22%),
    linear-gradient(160deg, rgba(236,72,153,0.18), transparent 34%, rgba(34,211,238,0.16));
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: previewLightSweep 3.2s ease-in-out infinite alternate;
}

@keyframes previewLightSweep {
  from { opacity: 0.35; transform: translateX(-1%); }
  to { opacity: 0.75; transform: translateX(1%); }
}

.auto-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 46px;
  z-index: 3;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.48));
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.auto-caption strong {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.auto-caption small {
  font-size: 0.72rem;
  opacity: 0.92;
}

.auto-caption.caption-live strong,
.auto-caption.caption-live small {
  animation: captionPop 2.6s ease-in-out infinite;
}

@keyframes captionPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.98); }
  16% { opacity: 1; transform: translateY(0) scale(1); }
  78% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0.6; transform: translateY(-4px) scale(1.01); }
}

.preview-stage.preview-ready .preview-play {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 12px 34px rgba(0,0,0,0.22);
}

@media (max-width: 640px) {
  .auto-caption {
    left: 10px;
    right: 10px;
    bottom: 42px;
    padding: 9px 10px;
  }

  .auto-caption strong { font-size: 0.9rem; }
  .auto-caption small { font-size: 0.66rem; }
}

/* v5 stability patch: platform buttons + compact playable preview */
.platform {
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.platform:focus-visible,
.preview-play:focus-visible,
.thumb:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}
.preview-stage {
  width: min(100%, 220px);
  height: auto;
  max-height: min(380px, 58vh);
}
.preview-stage.ratio-9-16 { width: min(100%, 210px); }
.preview-stage.ratio-16-9 { width: min(100%, 360px); max-height: min(210px, 40vh); }
.preview-stage.ratio-1-1 { width: min(100%, 260px); max-height: min(260px, 48vh); }
.preview-stage.ratio-4-5 { width: min(100%, 235px); max-height: min(330px, 55vh); }
.preview-overlay { z-index: 2; }
.preview-play {
  pointer-events: auto !important;
  color: #fff;
  cursor: pointer;
}
.preview-caption { z-index: 4; }
.auto-caption { pointer-events: none; }
.preview-chip { z-index: 4; }
.preview-meta { flex-wrap: wrap; }

@media (max-width: 620px) {
  .preview-stage.ratio-9-16 { width: min(100%, 185px); max-height: min(330px, 52vh); }
  .preview-stage.ratio-16-9 { width: min(100%, 300px); max-height: min(170px, 34vh); }
  .preview-stage.ratio-1-1 { width: min(100%, 225px); max-height: min(225px, 42vh); }
  .preview-stage.ratio-4-5 { width: min(100%, 205px); max-height: min(285px, 48vh); }
}

/* v6 cinematic movie-preview engine */
.preview-size-note::after {
  content: " • cinematic fade";
  color: var(--cyan);
}

.movie-stage {
  isolation: isolate;
  background: #070711;
}

.movie-stage.preview-ready {
  outline: 2px solid rgba(34, 211, 238, 0.42);
  box-shadow: 0 26px 80px rgba(0,0,0,0.48), 0 0 0 1px rgba(255,255,255,0.12) inset;
}

.movie-stage .cinema-bg,
.movie-stage .cinema-next,
.movie-stage .cinema-main,
.movie-stage .cinema-vignette,
.movie-stage .film-grain,
.movie-stage .light-leak,
.movie-stage .motion-lines,
.movie-stage .movie-ui,
.movie-stage .cinema-bars {
  position: absolute;
  inset: 0;
}

.movie-stage .cinema-bg {
  z-index: 0;
  transform: scale(1.12);
  filter: blur(18px) saturate(1.25) brightness(0.75);
  opacity: 0.72;
}

.movie-stage .cinema-next {
  z-index: 1;
  opacity: 0;
  transform: scale(1.02);
  filter: blur(1px) saturate(1.02);
}

.movie-stage .cinema-main {
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.movie-stage img,
.movie-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.movie-stage .main-media,
.movie-stage .bg-media,
.movie-stage .next-media {
  transform-origin: center;
}

.movie-stage.playing .main-media {
  animation: moviePushZoom 4.6s cubic-bezier(.2,.65,.2,1) both;
}

.movie-stage.playing .bg-media {
  animation: movieBgDrift 4.6s ease-in-out both;
}

.movie-stage.playing .cinema-next {
  animation: movieCrossDissolve 4.6s ease-in-out both;
}

.movie-stage.scene-2.playing .main-media { animation-name: movieTiltPan; }
.movie-stage.scene-3.playing .main-media { animation-name: moviePushLeft; }
.movie-stage.scene-4.playing .main-media { animation-name: movieRevealRise; }
.movie-stage.scene-5.playing .main-media { animation-name: movieFinalReveal; }

@keyframes moviePushZoom {
  0% { opacity: 0; transform: scale(1.03) translate3d(-1.5%, 1%, 0); filter: contrast(1.02) saturate(1.02) brightness(.92); }
  16% { opacity: 1; }
  52% { opacity: 1; transform: scale(1.1) translate3d(1.2%, -1.2%, 0); filter: contrast(1.07) saturate(1.1) brightness(1); }
  84% { opacity: .96; }
  100% { opacity: .82; transform: scale(1.14) translate3d(-0.8%, -1.6%, 0); filter: contrast(1.03) saturate(1.06) brightness(.97); }
}

@keyframes movieTiltPan {
  0% { opacity: 0; transform: scale(1.08) translate3d(1.6%, -1%, 0) rotate(-0.6deg); }
  14% { opacity: 1; }
  55% { transform: scale(1.14) translate3d(-1.5%, 1.2%, 0) rotate(0.4deg); }
  84% { opacity: .95; }
  100% { opacity: .82; transform: scale(1.18) translate3d(0.8%, -0.8%, 0) rotate(0deg); }
}

@keyframes moviePushLeft {
  0% { opacity: 0; transform: scale(1.06) translate3d(2.4%, 0, 0); }
  14% { opacity: 1; }
  100% { opacity: .84; transform: scale(1.14) translate3d(-2.4%, 0, 0); }
}

@keyframes movieRevealRise {
  0% { opacity: 0; transform: scale(1.14) translate3d(0, 2.5%, 0); filter: brightness(0.84) saturate(1); }
  18% { opacity: 1; }
  28% { filter: brightness(1.06) saturate(1.14); }
  100% { opacity: .84; transform: scale(1.08) translate3d(0, -1.4%, 0); filter: brightness(.98) saturate(1.06); }
}

@keyframes movieFinalReveal {
  0% { opacity: 0; transform: scale(1.03) translate3d(-1.8%, 1.8%, 0); }
  16% { opacity: 1; }
  36% { transform: scale(1.12) translate3d(1.8%, -0.8%, 0); }
  100% { opacity: .86; transform: scale(1.08) translate3d(0, 0, 0); }
}

@keyframes movieBgDrift {
  0% { opacity: .38; transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
  20% { opacity: .62; }
  100% { opacity: .48; transform: scale(1.18) translate3d(1.8%, -1.8%, 0); }
}

@keyframes movieCrossDissolve {
  0%, 52% { opacity: 0; transform: scale(1.04) translateX(2.5%); }
  68% { opacity: .18; }
  84% { opacity: .42; transform: scale(1.08) translateX(.5%); }
  100% { opacity: .62; transform: scale(1.1) translateX(-1.5%); }
}

.movie-stage .cinema-vignette {
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 35%, rgba(0,0,0,0.28) 70%, rgba(0,0,0,0.66) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.36), transparent 25%, transparent 62%, rgba(0,0,0,0.58));
}

.movie-stage.playing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,0) 24%, rgba(0,0,0,0) 76%, rgba(0,0,0,.58));
  animation: movieSceneFade 4.6s ease-in-out both;
}

@keyframes movieSceneFade {
  0% { opacity: .9; }
  14% { opacity: .12; }
  82% { opacity: .08; }
  100% { opacity: .55; }
}

.movie-stage .cinema-bars {
  z-index: 6;
  pointer-events: none;
}
.movie-stage .cinema-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 7.5%;
  background: rgba(0,0,0,0.82);
  transform: translateY(0);
}
.movie-stage .cinema-bars span:first-child { top: 0; }
.movie-stage .cinema-bars span:last-child { bottom: 0; }
.movie-stage.ratio-9-16 .cinema-bars span,
.movie-stage.ratio-4-5 .cinema-bars span { height: 5.5%; }
.movie-stage.ratio-1-1 .cinema-bars span { height: 7%; }

.movie-stage .film-grain {
  z-index: 7;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.28) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 60%, rgba(0,0,0,0.3) 0 1px, transparent 1px);
  background-size: 18px 18px, 27px 27px, 13px 13px;
  animation: movieGrain .52s steps(2) infinite;
}

@keyframes movieGrain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(-.5%, -.5%); }
  100% { transform: translate(.5%, .5%); }
}

.movie-stage .light-leak {
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 10% 18%, rgba(255,255,255,0.42), transparent 15%),
    radial-gradient(circle at 80% 22%, rgba(236,72,153,0.38), transparent 20%),
    linear-gradient(125deg, transparent, rgba(34,211,238,0.22), transparent 50%, rgba(245,158,11,0.22));
}
.movie-stage.playing .light-leak { animation: movieLightLeak 4.6s ease-in-out both; }

@keyframes movieLightLeak {
  0%, 12% { opacity: 0; transform: translateX(-5%); }
  24% { opacity: .42; transform: translateX(1.5%); }
  54% { opacity: .14; transform: translateX(3%); }
  82% { opacity: .34; transform: translateX(-1.5%); }
  100% { opacity: 0; transform: translateX(5%); }
}

.movie-stage .motion-lines {
  z-index: 9;
  pointer-events: none;
  opacity: 0;
}
.movie-stage .motion-lines i {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-20%);
}
.movie-stage .motion-lines i:nth-child(1) { top: 31%; }
.movie-stage .motion-lines i:nth-child(2) { top: 48%; }
.movie-stage .motion-lines i:nth-child(3) { top: 65%; }
.movie-stage.scene-3.playing .motion-lines,
.movie-stage.scene-5.playing .motion-lines { animation: movieMotionLines 1.1s ease-out both; }

@keyframes movieMotionLines {
  0% { opacity: 0; transform: translateX(-16%); }
  35% { opacity: 0.58; }
  100% { opacity: 0; transform: translateX(16%); }
}

.movie-stage .movie-ui {
  z-index: 12;
  pointer-events: none;
}

.movie-stage .movie-chips {
  position: absolute;
  top: 12px;
  left: 10px;
  right: 10px;
  z-index: 13;
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
}
.movie-stage .movie-chips span,
.movie-stage .scene-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.34rem 0.52rem;
  border-radius: 999px;
  background: rgba(7,7,17,0.58);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.movie-stage .scene-label {
  position: absolute;
  left: 12px;
  bottom: 78px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255,255,255,0.86);
}

.movie-stage .movie-play {
  pointer-events: auto !important;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.36);
  box-shadow: 0 18px 42px rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-weight: 950;
}
.movie-stage.playing .movie-play {
  opacity: .08;
  transform: scale(.82);
  transition: opacity .2s ease, transform .2s ease;
}
.movie-stage.playing:hover .movie-play {
  opacity: .95;
  transform: scale(1);
}

.movie-stage .movie-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 34px;
  z-index: 13;
  display: grid;
  gap: 0.22rem;
  padding: 0.72rem 0.78rem;
  border-radius: 18px;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.56));
  text-shadow: 0 2px 16px rgba(0,0,0,0.72);
  backdrop-filter: blur(3px);
}
.movie-stage .movie-caption strong {
  font-size: clamp(0.95rem, 2.6vw, 1.12rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.movie-stage .movie-caption small {
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  line-height: 1.25;
}
.movie-stage .movie-caption.caption-live {
  animation: movieCaptionBeat 2.28s ease-in-out both;
}

@keyframes movieCaptionBeat {
  0% { opacity: 0; transform: translateY(12px) scale(.98); filter: blur(2px); }
  16% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  82% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-6px) scale(1.01); }
}

.movie-stage .movie-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 14;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
}
.movie-stage .movie-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-2), var(--primary), var(--cyan));
}

.movie-stage.mood-sad { filter: saturate(.88) contrast(1.05); }
.movie-stage.mood-romantic .light-leak { background: radial-gradient(circle at 20% 20%, rgba(236,72,153,.55), transparent 22%), linear-gradient(140deg, rgba(255,255,255,.13), transparent 45%, rgba(244,114,182,.28)); }
.movie-stage.mood-energetic .motion-lines { opacity: .2; }
.movie-stage.mood-dramatic .cinema-vignette { background: radial-gradient(circle at center, transparent 28%, rgba(0,0,0,.36) 62%, rgba(0,0,0,.78) 100%), linear-gradient(180deg, rgba(0,0,0,.5), transparent 35%, rgba(0,0,0,.68)); }

.movie-empty span {
  animation: movieClap 1.8s ease-in-out infinite;
}
@keyframes movieClap {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.04); }
}

@media (max-width: 620px) {
  .movie-stage .movie-chips span:nth-child(2),
  .movie-stage .movie-chips span:nth-child(3) { display: none; }
  .movie-stage .scene-label { bottom: 72px; font-size: 0.54rem; }
  .movie-stage .movie-caption { left: 10px; right: 10px; bottom: 31px; padding: 0.62rem 0.66rem; }
  .movie-stage .movie-caption strong { font-size: 0.92rem; }
  .movie-stage .movie-caption small { font-size: 0.66rem; }
  .movie-stage .movie-progress { left: 10px; right: 10px; bottom: 12px; }
}


/* v7 fade-in / fade-out enhancement */
.movie-stage .cinema-main {
  opacity: 1;
}

.movie-stage.playing .cinema-main {
  animation: movieCrossfadeMain 4.6s ease-in-out both;
}

.movie-stage.playing .cinema-next {
  animation: movieCrossfadeNext 4.6s ease-in-out both;
}

.movie-stage.playing .cinema-bg {
  animation: movieBgFade 4.6s ease-in-out both;
}

@keyframes movieCrossfadeMain {
  0% { opacity: 0; }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0.18; }
}

@keyframes movieCrossfadeNext {
  0%, 62% { opacity: 0; transform: scale(1.04); }
  78% { opacity: 0.32; transform: scale(1.08); }
  100% { opacity: 0.9; transform: scale(1.12); }
}

@keyframes movieBgFade {
  0% { opacity: 0.18; transform: scale(1.08) translate3d(-1%, 0.5%, 0); }
  15% { opacity: 0.72; }
  100% { opacity: 0.62; transform: scale(1.22) translate3d(2%, -2%, 0); }
}

.movie-stage .movie-caption {
  animation-duration: 2.28s;
}

.movie-stage.playing .movie-caption {
  animation: movieCaptionFade 4.6s ease-in-out both;
}

@keyframes movieCaptionFade {
  0% { opacity: 0; transform: translateY(10px); }
  16% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}


/* v8 trailer enhancements */
.preview-size-note::after {
  content: " • cinematic trailer";
}

.movie-stage.beat-fast .movie-progress span {
  box-shadow: 0 0 14px rgba(34,211,238,.5);
}

.movie-stage.mode-intro .cinema-main,
.movie-stage.mode-outro .cinema-main {
  filter: saturate(.82) brightness(.78);
}

.movie-stage .sound-chip {
  position: absolute;
  right: 10px;
  top: 44px;
  z-index: 13;
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  padding: .34rem .56rem;
  border-radius: 999px;
  background: rgba(7,7,17,.58);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.movie-stage .sound-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52,211,153,.75);
  animation: soundPulse 1.1s ease-in-out infinite;
}

@keyframes soundPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.35); opacity: 1; }
}

.movie-stage .audio-wave {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 22px;
  z-index: 13;
  height: 22px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}

.movie-stage .audio-wave i {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(34,211,238,.75));
  height: 18%;
  opacity: .75;
}

.movie-stage.playing .audio-wave i:nth-child(1) { animation: waveBeat .95s ease-in-out infinite .02s; }
.movie-stage.playing .audio-wave i:nth-child(2) { animation: waveBeat .85s ease-in-out infinite .18s; }
.movie-stage.playing .audio-wave i:nth-child(3) { animation: waveBeat 1.05s ease-in-out infinite .1s; }
.movie-stage.playing .audio-wave i:nth-child(4) { animation: waveBeat .78s ease-in-out infinite .24s; }
.movie-stage.playing .audio-wave i:nth-child(5) { animation: waveBeat .92s ease-in-out infinite .08s; }
.movie-stage.playing .audio-wave i:nth-child(6) { animation: waveBeat 1.1s ease-in-out infinite .16s; }
.movie-stage.playing .audio-wave i:nth-child(7) { animation: waveBeat .88s ease-in-out infinite .28s; }

@keyframes waveBeat {
  0%, 100% { height: 18%; opacity: .45; }
  35% { height: 92%; opacity: 1; }
  60% { height: 46%; opacity: .72; }
}

.movie-stage .trailer-card {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  z-index: 13;
  transform: translateY(-50%);
  display: grid;
  gap: .3rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10,10,20,.42), rgba(10,10,20,.72));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  text-align: center;
  color: #fff;
}

.movie-stage .trailer-card strong {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  letter-spacing: -.05em;
  line-height: 1;
}

.movie-stage .trailer-card small {
  color: rgba(255,255,255,.88);
  font-size: .72rem;
  line-height: 1.35;
}

.movie-stage .trailer-kicker {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto .2rem;
  padding: .28rem .52rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.movie-stage.mode-intro .trailer-card,
.movie-stage.mode-outro .trailer-card {
  animation: trailerCardIn 1.35s ease both;
}

@keyframes trailerCardIn {
  0% { opacity: 0; transform: translateY(calc(-50% + 16px)) scale(.96); filter: blur(5px); }
  20% { opacity: 1; }
  100% { opacity: 1; transform: translateY(-50%) scale(1); filter: blur(0); }
}

.movie-stage.mode-outro .trailer-card {
  background: linear-gradient(180deg, rgba(20,16,40,.45), rgba(20,16,40,.8));
}

.movie-stage .movie-progress {
  bottom: 10px;
}

@media (max-width: 620px) {
  .movie-stage .sound-chip { top: 40px; right: 8px; font-size: .54rem; }
  .movie-stage .audio-wave { left: 10px; right: 10px; height: 18px; bottom: 18px; }
  .movie-stage .trailer-card { left: 12px; right: 12px; padding: .85rem .8rem .9rem; }
}


/* v11 continuous movie flow */
.preview-size-note::after {
  content: " • continuous cinema";
}

.movie-stage .cinema-glow,
.movie-stage .cinema-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.movie-stage .cinema-glow {
  z-index: 8;
  opacity: .28;
  background:
    radial-gradient(circle at 18% 24%, rgba(236,72,153,.20), transparent 20%),
    radial-gradient(circle at 76% 28%, rgba(34,211,238,.18), transparent 22%),
    radial-gradient(circle at 52% 78%, rgba(245,158,11,.14), transparent 24%);
}
.movie-stage.playing .cinema-glow { animation: cinemaGlowDrift 6.4s ease-in-out infinite alternate; }

@keyframes cinemaGlowDrift {
  0% { transform: scale(1) translate3d(0,0,0); opacity: .2; }
  100% { transform: scale(1.08) translate3d(1.2%, -1.2%, 0); opacity: .34; }
}

.movie-stage .cinema-particles { z-index: 9; }
.movie-stage .cinema-particles i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.85), rgba(255,255,255,.08));
  opacity: 0;
  filter: blur(.4px);
}
.movie-stage .cinema-particles i:nth-child(1) { left: 14%; top: 78%; }
.movie-stage .cinema-particles i:nth-child(2) { left: 28%; top: 64%; }
.movie-stage .cinema-particles i:nth-child(3) { left: 46%; top: 82%; }
.movie-stage .cinema-particles i:nth-child(4) { left: 66%; top: 72%; }
.movie-stage .cinema-particles i:nth-child(5) { left: 78%; top: 58%; }
.movie-stage .cinema-particles i:nth-child(6) { left: 86%; top: 80%; }
.movie-stage.playing .cinema-particles i:nth-child(1) { animation: floatParticle 5.6s linear infinite .1s; }
.movie-stage.playing .cinema-particles i:nth-child(2) { animation: floatParticle 4.8s linear infinite .8s; }
.movie-stage.playing .cinema-particles i:nth-child(3) { animation: floatParticle 6.2s linear infinite .4s; }
.movie-stage.playing .cinema-particles i:nth-child(4) { animation: floatParticle 5.1s linear infinite 1.2s; }
.movie-stage.playing .cinema-particles i:nth-child(5) { animation: floatParticle 6.6s linear infinite .6s; }
.movie-stage.playing .cinema-particles i:nth-child(6) { animation: floatParticle 5.4s linear infinite 1.6s; }

@keyframes floatParticle {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(.6); }
  15% { opacity: .42; }
  100% { opacity: 0; transform: translate3d(0, -95px, 0) scale(1.25); }
}

.movie-stage.playing .main-media,
.movie-stage.playing .bg-media,
.movie-stage.playing .cinema-next,
.movie-stage.playing .light-leak,
.movie-stage.playing::after {
  animation-duration: 3.1s;
}

.movie-stage .movie-caption.caption-live { animation-duration: 2.2s; }
.movie-stage.playing .main-media {
  animation-timing-function: cubic-bezier(.18,.62,.25,1);
}

@keyframes moviePushZoom {
  0% { opacity: .28; transform: scale(1.04) translate3d(-1.2%, .8%, 0); filter: contrast(1.02) saturate(1.04) brightness(.93); }
  12% { opacity: 1; }
  62% { opacity: 1; transform: scale(1.11) translate3d(1.15%, -1.1%, 0); filter: contrast(1.07) saturate(1.1) brightness(1.01); }
  100% { opacity: .94; transform: scale(1.15) translate3d(-.7%, -1.4%, 0); filter: contrast(1.03) saturate(1.06) brightness(.99); }
}
@keyframes movieTiltPan {
  0% { opacity: .26; transform: scale(1.08) translate3d(1.5%, -.9%, 0) rotate(-.45deg); }
  12% { opacity: 1; }
  100% { opacity: .94; transform: scale(1.18) translate3d(-1.4%, 1.1%, 0) rotate(.2deg); }
}
@keyframes moviePushLeft {
  0% { opacity: .24; transform: scale(1.06) translate3d(2.2%, 0, 0); }
  12% { opacity: 1; }
  100% { opacity: .94; transform: scale(1.15) translate3d(-2.1%, 0, 0); }
}
@keyframes movieRevealRise {
  0% { opacity: .24; transform: scale(1.12) translate3d(0, 2.1%, 0); filter: brightness(0.9) saturate(1); }
  12% { opacity: 1; }
  100% { opacity: .94; transform: scale(1.08) translate3d(0, -1.2%, 0); filter: brightness(1) saturate(1.08); }
}
@keyframes movieFinalReveal {
  0% { opacity: .26; transform: scale(1.04) translate3d(-1.4%, 1.4%, 0); }
  12% { opacity: 1; }
  100% { opacity: .94; transform: scale(1.1) translate3d(.4%, -.2%, 0); }
}
@keyframes movieBgDrift {
  0% { opacity: .42; transform: scale(1.12) translate3d(-1.2%, .8%, 0); }
  100% { opacity: .58; transform: scale(1.2) translate3d(1.5%, -1.5%, 0); }
}
@keyframes movieCrossDissolve {
  0% { opacity: 0; transform: scale(1.03) translateX(2%); }
  28% { opacity: .08; }
  58% { opacity: .34; }
  84% { opacity: .54; transform: scale(1.08) translateX(.3%); }
  100% { opacity: .72; transform: scale(1.1) translateX(-1.2%); }
}
@keyframes movieSceneFade {
  0% { opacity: .24; }
  10% { opacity: .02; }
  88% { opacity: .02; }
  100% { opacity: .16; }
}
@keyframes movieLightLeak {
  0%, 8% { opacity: 0; transform: translateX(-4%); }
  22% { opacity: .34; transform: translateX(1.4%); }
  52% { opacity: .12; transform: translateX(2.5%); }
  80% { opacity: .26; transform: translateX(-1.2%); }
  100% { opacity: 0; transform: translateX(4%); }
}

.movie-stage .movie-caption {
  z-index: 14;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(8,8,18,.22), rgba(8,8,18,.5));
}
.movie-stage .movie-caption.caption-live {
  animation: movieCaptionBeat 2.2s ease-in-out infinite;
}
@keyframes movieCaptionBeat {
  0% { opacity: .2; transform: translateY(8px) scale(.985); filter: blur(1.5px); }
  12% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  82% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: .18; transform: translateY(-5px) scale(1.01); }
}

.movie-stage .scene-label {
  background: rgba(5, 7, 16, .58);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: .35rem .6rem;
}

.movie-stage .audio-wave { opacity: .92; }


/* v12 overlapping fade-in / fade-out transition */
.preview-size-note::after {
  content: " • overlap fade";
}

.movie-stage .cinema-main { z-index: 3; }
.movie-stage .cinema-next { z-index: 2; }

.movie-stage.playing .main-media,
.movie-stage.playing .bg-media,
.movie-stage.playing .cinema-next,
.movie-stage.playing .light-leak,
.movie-stage.playing::after {
  animation-duration: 3.25s;
}

.movie-stage.playing .cinema-next {
  animation-name: movieCrossDissolve;
  animation-timing-function: cubic-bezier(.22,.61,.36,1);
  animation-fill-mode: both;
}

/* current scene gently fades out while the next scene fades in underneath */
@keyframes moviePushZoom {
  0% { opacity: .88; transform: scale(1.04) translate3d(-1.2%, .8%, 0); filter: contrast(1.02) saturate(1.04) brightness(.94); }
  12% { opacity: 1; }
  58% { opacity: .96; transform: scale(1.11) translate3d(1.1%, -1.05%, 0); filter: contrast(1.07) saturate(1.1) brightness(1.01); }
  78% { opacity: .72; }
  100% { opacity: .18; transform: scale(1.15) translate3d(-.7%, -1.4%, 0); filter: contrast(1.03) saturate(1.06) brightness(.98); }
}
@keyframes movieTiltPan {
  0% { opacity: .86; transform: scale(1.08) translate3d(1.5%, -.9%, 0) rotate(-.45deg); }
  12% { opacity: 1; }
  62% { opacity: .96; }
  100% { opacity: .18; transform: scale(1.18) translate3d(-1.4%, 1.1%, 0) rotate(.2deg); }
}
@keyframes moviePushLeft {
  0% { opacity: .86; transform: scale(1.06) translate3d(2.2%, 0, 0); }
  12% { opacity: 1; }
  64% { opacity: .95; }
  100% { opacity: .18; transform: scale(1.15) translate3d(-2.1%, 0, 0); }
}
@keyframes movieRevealRise {
  0% { opacity: .84; transform: scale(1.12) translate3d(0, 2.1%, 0); filter: brightness(0.9) saturate(1); }
  12% { opacity: 1; }
  60% { opacity: .95; }
  100% { opacity: .18; transform: scale(1.08) translate3d(0, -1.2%, 0); filter: brightness(1) saturate(1.08); }
}
@keyframes movieFinalReveal {
  0% { opacity: .86; transform: scale(1.04) translate3d(-1.4%, 1.4%, 0); }
  12% { opacity: 1; }
  60% { opacity: .96; }
  100% { opacity: .18; transform: scale(1.1) translate3d(.4%, -.2%, 0); }
}

/* incoming scene starts earlier and reaches strong visibility before the outgoing one ends */
@keyframes movieCrossDissolve {
  0% { opacity: 0; transform: scale(1.02) translate3d(1.8%, 0, 0); filter: brightness(.92) saturate(.98); }
  26% { opacity: .08; }
  42% { opacity: .26; }
  58% { opacity: .52; transform: scale(1.05) translate3d(.9%, -.3%, 0); }
  78% { opacity: .78; }
  100% { opacity: .96; transform: scale(1.1) translate3d(-1.1%, -.6%, 0); filter: brightness(1) saturate(1.04); }
}

/* softer top-layer fade so the overlap feels seamless rather than blinking */
@keyframes movieSceneFade {
  0% { opacity: .10; }
  12% { opacity: .02; }
  84% { opacity: .02; }
  100% { opacity: .08; }
}

.movie-stage .light-leak {
  mix-blend-mode: screen;
  opacity: .14;
}
.movie-stage .movie-caption {
  transition: opacity .45s ease, transform .45s ease;
}


/* v13 remove perceived delay between overlapping slides */
.preview-size-note::after {
  content: " • seamless overlap";
}

/* keep the upcoming slide slightly present from the start */
.movie-stage .cinema-next {
  opacity: .08;
}

.movie-stage.playing .main-media,
.movie-stage.playing .bg-media,
.movie-stage.playing .cinema-next,
.movie-stage.playing .light-leak,
.movie-stage.playing::after {
  animation-duration: 2.9s;
}

/* outgoing slide should stay visible longer while the next one appears immediately */
@keyframes moviePushZoom {
  0% { opacity: .98; transform: scale(1.04) translate3d(-1.2%, .8%, 0); filter: contrast(1.02) saturate(1.04) brightness(.95); }
  50% { opacity: .98; transform: scale(1.1) translate3d(1%, -1%, 0); }
  78% { opacity: .82; }
  100% { opacity: .34; transform: scale(1.14) translate3d(-.6%, -1.2%, 0); filter: contrast(1.03) saturate(1.06) brightness(.99); }
}
@keyframes movieTiltPan {
  0% { opacity: .98; transform: scale(1.08) translate3d(1.3%, -.8%, 0) rotate(-.35deg); }
  52% { opacity: .98; }
  80% { opacity: .82; }
  100% { opacity: .34; transform: scale(1.16) translate3d(-1.2%, 1%, 0) rotate(.15deg); }
}
@keyframes moviePushLeft {
  0% { opacity: .98; transform: scale(1.06) translate3d(2%, 0, 0); }
  52% { opacity: .98; }
  80% { opacity: .82; }
  100% { opacity: .34; transform: scale(1.14) translate3d(-1.9%, 0, 0); }
}
@keyframes movieRevealRise {
  0% { opacity: .98; transform: scale(1.12) translate3d(0, 1.8%, 0); filter: brightness(0.92) saturate(1); }
  52% { opacity: .98; }
  80% { opacity: .82; }
  100% { opacity: .34; transform: scale(1.08) translate3d(0, -1%, 0); filter: brightness(1) saturate(1.08); }
}
@keyframes movieFinalReveal {
  0% { opacity: .98; transform: scale(1.04) translate3d(-1.2%, 1.2%, 0); }
  52% { opacity: .98; }
  80% { opacity: .82; }
  100% { opacity: .34; transform: scale(1.09) translate3d(.3%, -.15%, 0); }
}

/* incoming slide begins immediately so there is no half-second dead zone */
@keyframes movieCrossDissolve {
  0% { opacity: .16; transform: scale(1.02) translate3d(1.5%, 0, 0); filter: brightness(.94) saturate(.99); }
  10% { opacity: .28; }
  22% { opacity: .44; }
  38% { opacity: .62; transform: scale(1.04) translate3d(1%, -.2%, 0); }
  62% { opacity: .82; }
  82% { opacity: .94; }
  100% { opacity: 1; transform: scale(1.08) translate3d(-.9%, -.4%, 0); filter: brightness(1) saturate(1.04); }
}

/* almost invisible overlay fade so the transition stays smooth */
@keyframes movieSceneFade {
  0% { opacity: .05; }
  100% { opacity: .04; }
}

.movie-stage .movie-caption.caption-live {
  animation-duration: 2s;
}


/* v14 longer overlapping transition to remove pause */
.preview-size-note::after {
  content: " • long overlap fade";
}

.movie-stage .cinema-next {
  opacity: .18;
}

.movie-stage.playing .main-media,
.movie-stage.playing .bg-media,
.movie-stage.playing .cinema-next,
.movie-stage.playing .light-leak,
.movie-stage.playing::after {
  animation-duration: 4.2s;
}

.movie-stage .movie-caption.caption-live {
  animation-duration: 2.8s;
}

/* outgoing clip stays alive longer and fades more slowly */
@keyframes moviePushZoom {
  0% { opacity: 1; transform: scale(1.03) translate3d(-1%, .7%, 0); filter: contrast(1.02) saturate(1.03) brightness(.96); }
  46% { opacity: 1; transform: scale(1.08) translate3d(.8%, -.8%, 0); }
  72% { opacity: .92; }
  88% { opacity: .64; }
  100% { opacity: .30; transform: scale(1.12) translate3d(-.5%, -1%, 0); filter: contrast(1.02) saturate(1.05) brightness(.99); }
}
@keyframes movieTiltPan {
  0% { opacity: 1; transform: scale(1.06) translate3d(1.1%, -.7%, 0) rotate(-.3deg); }
  48% { opacity: 1; }
  74% { opacity: .92; }
  100% { opacity: .30; transform: scale(1.14) translate3d(-1%, .8%, 0) rotate(.12deg); }
}
@keyframes moviePushLeft {
  0% { opacity: 1; transform: scale(1.05) translate3d(1.7%, 0, 0); }
  48% { opacity: 1; }
  74% { opacity: .92; }
  100% { opacity: .30; transform: scale(1.12) translate3d(-1.6%, 0, 0); }
}
@keyframes movieRevealRise {
  0% { opacity: 1; transform: scale(1.1) translate3d(0, 1.4%, 0); filter: brightness(.94) saturate(1); }
  48% { opacity: 1; }
  74% { opacity: .92; }
  100% { opacity: .30; transform: scale(1.07) translate3d(0, -.8%, 0); filter: brightness(1) saturate(1.06); }
}
@keyframes movieFinalReveal {
  0% { opacity: 1; transform: scale(1.03) translate3d(-1%, 1%, 0); }
  48% { opacity: 1; }
  74% { opacity: .92; }
  100% { opacity: .30; transform: scale(1.08) translate3d(.2%, -.1%, 0); }
}

/* incoming slide becomes visible early and rises slowly for a longer overlap */
@keyframes movieCrossDissolve {
  0% { opacity: .24; transform: scale(1.015) translate3d(1.2%, 0, 0); filter: brightness(.95) saturate(.99); }
  18% { opacity: .34; }
  36% { opacity: .52; }
  56% { opacity: .72; transform: scale(1.03) translate3d(.8%, -.15%, 0); }
  76% { opacity: .88; }
  100% { opacity: 1; transform: scale(1.065) translate3d(-.7%, -.35%, 0); filter: brightness(1) saturate(1.03); }
}

/* keep overlay nearly static so transition reads as continuous */
@keyframes movieSceneFade {
  0% { opacity: .035; }
  100% { opacity: .03; }
}


/* v15 early-overlap transition: removes the visual stop between scenes */
.preview-size-note::after {
  content: " • no-pause overlap";
}

.movie-stage .cinema-next {
  opacity: .26;
}

/* Animations last longer than the scene timer; JS advances before the animation finishes. */
.movie-stage.playing .main-media,
.movie-stage.playing .bg-media,
.movie-stage.playing .cinema-next,
.movie-stage.playing .light-leak,
.movie-stage.playing::after {
  animation-duration: 5.6s;
}

.movie-stage .movie-caption.caption-live {
  animation-duration: 3.2s;
}

@keyframes moviePushZoom {
  0% { opacity: 1; transform: scale(1.03) translate3d(-.9%, .6%, 0); filter: contrast(1.02) saturate(1.03) brightness(.96); }
  42% { opacity: 1; transform: scale(1.075) translate3d(.7%, -.7%, 0); }
  66% { opacity: .94; }
  86% { opacity: .72; }
  100% { opacity: .44; transform: scale(1.12) translate3d(-.5%, -.95%, 0); filter: contrast(1.02) saturate(1.05) brightness(.99); }
}
@keyframes movieTiltPan {
  0% { opacity: 1; transform: scale(1.055) translate3d(1%, -.6%, 0) rotate(-.24deg); }
  42% { opacity: 1; }
  66% { opacity: .94; }
  100% { opacity: .44; transform: scale(1.13) translate3d(-.9%, .7%, 0) rotate(.1deg); }
}
@keyframes moviePushLeft {
  0% { opacity: 1; transform: scale(1.045) translate3d(1.5%, 0, 0); }
  42% { opacity: 1; }
  66% { opacity: .94; }
  100% { opacity: .44; transform: scale(1.11) translate3d(-1.4%, 0, 0); }
}
@keyframes movieRevealRise {
  0% { opacity: 1; transform: scale(1.09) translate3d(0, 1.1%, 0); filter: brightness(.94) saturate(1); }
  42% { opacity: 1; }
  66% { opacity: .94; }
  100% { opacity: .44; transform: scale(1.065) translate3d(0, -.7%, 0); filter: brightness(1) saturate(1.06); }
}
@keyframes movieFinalReveal {
  0% { opacity: 1; transform: scale(1.025) translate3d(-.8%, .8%, 0); }
  42% { opacity: 1; }
  66% { opacity: .94; }
  100% { opacity: .44; transform: scale(1.075) translate3d(.18%, -.08%, 0); }
}

@keyframes movieCrossDissolve {
  0% { opacity: .30; transform: scale(1.01) translate3d(1%, 0, 0); filter: brightness(.96) saturate(1); }
  16% { opacity: .42; }
  32% { opacity: .58; }
  48% { opacity: .74; transform: scale(1.025) translate3d(.55%, -.12%, 0); }
  68% { opacity: .90; }
  100% { opacity: 1; transform: scale(1.055) translate3d(-.55%, -.25%, 0); filter: brightness(1) saturate(1.03); }
}

@keyframes movieSceneFade {
  0% { opacity: .02; }
  100% { opacity: .02; }
}

.movie-stage .film-grain,
.movie-stage .cinema-glow,
.movie-stage .cinema-particles,
.movie-stage .audio-wave {
  animation-play-state: running;
}

/* v16 true continuous crossfade engine: no scene rebuild, no pause */
.preview-size-note::after {
  content: " • no-pause crossfade";
}

.seamless-stage .seamless-bg,
.seamless-stage .seamless-main,
.seamless-stage .seamless-layer,
.seamless-stage .seamless-captions,
.seamless-stage .seamless-caption {
  position: absolute;
  inset: 0;
}

.seamless-stage .seamless-bg {
  z-index: 0;
  transform: scale(1.14);
  filter: blur(18px) saturate(1.18) brightness(.72);
  opacity: .8;
}

.seamless-stage .seamless-main {
  z-index: 3;
  overflow: hidden;
}

.seamless-stage .seamless-layer {
  opacity: .12;
  will-change: opacity, transform;
  transform-origin: center;
}

.seamless-stage .seamless-bg .seamless-layer {
  opacity: .48;
  filter: blur(12px) saturate(1.2) brightness(.75);
}

.seamless-stage .seamless-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seamless-stage .cinema-vignette,
.seamless-stage .cinema-bars,
.seamless-stage .film-grain,
.seamless-stage .light-leak,
.seamless-stage .cinema-glow,
.seamless-stage .cinema-particles,
.seamless-stage .movie-ui {
  position: absolute;
  inset: 0;
}

.seamless-stage .seamless-captions {
  z-index: 14;
  pointer-events: none;
}

.seamless-stage .seamless-caption {
  left: 12px;
  right: 12px;
  top: auto;
  bottom: 34px;
  height: auto;
  display: grid;
  gap: .22rem;
  padding: .72rem .78rem;
  border-radius: 18px;
  color: #fff;
  text-align: left;
  opacity: 0;
  background: linear-gradient(180deg, rgba(8,8,18,.20), rgba(8,8,18,.54));
  text-shadow: 0 2px 16px rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  will-change: opacity, transform;
}

.seamless-stage .seamless-caption strong {
  font-size: clamp(.95rem, 2.6vw, 1.12rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.seamless-stage .seamless-caption small {
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  line-height: 1.25;
}

.seamless-stage .seamless-progress span {
  animation-name: seamlessProgress;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes seamlessProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.seamless-stage.playing .movie-play {
  opacity: .08;
  transform: scale(.82);
}

.seamless-stage.playing:hover .movie-play {
  opacity: .95;
  transform: scale(1);
}

.seamless-stage:not(.playing) .seamless-layer,
.seamless-stage:not(.playing) .seamless-caption,
.seamless-stage:not(.playing) .seamless-progress span {
  animation-play-state: paused !important;
}

@media (max-width: 620px) {
  .seamless-stage .seamless-caption {
    left: 10px;
    right: 10px;
    bottom: 31px;
    padding: .62rem .66rem;
  }
  .seamless-stage .seamless-caption strong { font-size: .92rem; }
  .seamless-stage .seamless-caption small { font-size: .66rem; }
}


/* v17 longer per-slide hold for clearer images */
.preview-size-note::after {
  content: " • clearer long hold";
}

.seamless-stage .seamless-layer {
  opacity: .08;
}

.seamless-stage .seamless-bg .seamless-layer {
  opacity: .38;
}

.seamless-stage .seamless-caption {
  background: linear-gradient(180deg, rgba(8,8,18,.14), rgba(8,8,18,.46));
}

.seamless-stage .seamless-media {
  filter: saturate(1.04) contrast(1.02);
}


/* v19 user-uploaded music */
.music-upload {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.95rem;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.music-upload:hover {
  border-color: rgba(34,211,238,0.75);
  background: rgba(34,211,238,0.08);
}
.music-upload input { display: none; }
.music-upload > span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}
.music-upload strong {
  color: var(--text);
  font-weight: 850;
  overflow-wrap: anywhere;
}
.music-upload small {
  color: var(--muted-2);
  line-height: 1.4;
}


/* v20 user controls: animation, transition, speed, captions, music fade */
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.control-grid label {
  display: grid;
  gap: .42rem;
  padding: .72rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.control-grid label span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}
.control-grid select {
  padding: .72rem .75rem;
  border-radius: 12px;
}

.seamless-stage.trans-blur-dissolve .seamless-layer { filter: blur(1px) saturate(1.04); }
.seamless-stage.trans-blur-dissolve .seamless-layer[style] { }
.seamless-stage.trans-zoom-fade .seamless-media { transform: scale(1.015); }
.seamless-stage.trans-light-leak .light-leak { opacity: .26; animation-duration: 2.8s; }
.seamless-stage.trans-slide-pan .seamless-layer { transform-origin: 45% 50%; }
.seamless-stage.trans-flash-cut .light-leak { opacity: .38; }
.seamless-stage.trans-flash-cut .cinema-glow { opacity: .42; }

.seamless-stage.cap-pos-top .seamless-caption { top: 28px; bottom: auto; }
.seamless-stage.cap-pos-center .seamless-caption { top: 50%; bottom: auto; transform: translateY(-50%); text-align: center; }
.seamless-stage.cap-pos-bottom .seamless-caption { bottom: 34px; }

.seamless-stage.cap-clean .seamless-caption { background: rgba(8,8,18,.62); border-radius: 14px; text-align: left; }
.seamless-stage.cap-minimal .seamless-caption { background: transparent; backdrop-filter: none; text-shadow: 0 3px 18px rgba(0,0,0,.9); padding-left: 0; padding-right: 0; }
.seamless-stage.cap-bold .seamless-caption strong { font-size: clamp(1.15rem, 3vw, 1.45rem); text-transform: uppercase; letter-spacing: -.04em; }
.seamless-stage.cap-glow .seamless-caption { box-shadow: 0 0 26px rgba(34,211,238,.28); border: 1px solid rgba(34,211,238,.28); }
.seamless-stage.cap-cinematic .seamless-caption { border: 1px solid rgba(255,255,255,.12); }

.seamless-stage.speed-fast .film-grain { opacity: .24; }
.seamless-stage.speed-very-slow .cinema-particles { opacity: .75; }
.seamless-stage.anim-dramatic-trailer .cinema-vignette { background: radial-gradient(circle at center, transparent 24%, rgba(0,0,0,.42) 62%, rgba(0,0,0,.82) 100%), linear-gradient(180deg, rgba(0,0,0,.55), transparent 38%, rgba(0,0,0,.72)); }
.seamless-stage.anim-soft-memories .film-grain { opacity: .09; }
.seamless-stage.anim-energetic-cuts .motion-lines { opacity: .24; }

@media (max-width: 620px) {
  .control-grid { grid-template-columns: 1fr; }
}


/* v21: fully wired customization controls */
.preview-size-note::after { content: " • controls active"; }

.seamless-stage.trans-blur-dissolve .seamless-main { filter: saturate(1.05); }
.seamless-stage.trans-blur-dissolve .cinema-glow { opacity: .18; }
.seamless-stage.trans-zoom-fade .seamless-main { transform: scale(1.01); }
.seamless-stage.trans-light-leak .light-leak { opacity: .46; animation-duration: 2.2s; }
.seamless-stage.trans-light-leak .cinema-glow { opacity: .46; }
.seamless-stage.trans-slide-pan .seamless-main { transform: perspective(900px) rotateY(.6deg); }
.seamless-stage.trans-flash-cut .light-leak { opacity: .7; }
.seamless-stage.trans-flash-cut .film-grain { opacity: .32; }

.seamless-stage.anim-smooth-zoom .scene-label::after { content: " • Smooth Zoom"; }
.seamless-stage.anim-cinematic-pan .scene-label::after { content: " • Cinematic Pan"; }
.seamless-stage.anim-parallax-motion .scene-label::after { content: " • Parallax"; }
.seamless-stage.anim-soft-memories .scene-label::after { content: " • Soft"; }
.seamless-stage.anim-dramatic-trailer .scene-label::after { content: " • Dramatic"; }
.seamless-stage.anim-energetic-cuts .scene-label::after { content: " • Energetic"; }

.seamless-stage.cap-pos-top .seamless-caption { top: 36px; bottom: auto; }
.seamless-stage.cap-pos-center .seamless-caption { top: 50%; bottom: auto; transform: translateY(-50%); text-align: center; }
.seamless-stage.cap-pos-bottom .seamless-caption { bottom: 34px; top: auto; }

.seamless-stage.cap-clean .seamless-caption { background: rgba(8,8,18,.64); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; box-shadow: none; }
.seamless-stage.cap-minimal .seamless-caption { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; text-shadow: 0 4px 22px rgba(0,0,0,.98); }
.seamless-stage.cap-bold .seamless-caption strong { font-size: clamp(1.2rem, 3.3vw, 1.55rem); text-transform: uppercase; letter-spacing: -.05em; }
.seamless-stage.cap-bold .seamless-caption { background: rgba(0,0,0,.68); border: 2px solid rgba(255,255,255,.2); }
.seamless-stage.cap-glow .seamless-caption { box-shadow: 0 0 32px rgba(34,211,238,.36), inset 0 0 18px rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.36); }
.seamless-stage.cap-cinematic .seamless-caption { border: 1px solid rgba(255,255,255,.13); background: linear-gradient(180deg, rgba(8,8,18,.20), rgba(8,8,18,.54)); }

.seamless-stage.speed-fast .audio-wave i { animation-duration: .5s !important; }
.seamless-stage.speed-slow .audio-wave i { animation-duration: 1.4s !important; }
.seamless-stage.speed-very-slow .audio-wave i { animation-duration: 1.8s !important; }

.seamless-stage.anim-soft-memories .cinema-vignette { background: radial-gradient(circle at center, transparent 44%, rgba(0,0,0,.18) 76%, rgba(0,0,0,.44) 100%), linear-gradient(180deg, rgba(0,0,0,.18), transparent 30%, rgba(0,0,0,.36)); }
.seamless-stage.anim-dramatic-trailer .cinema-vignette { background: radial-gradient(circle at center, transparent 22%, rgba(0,0,0,.48) 62%, rgba(0,0,0,.86) 100%), linear-gradient(180deg, rgba(0,0,0,.62), transparent 38%, rgba(0,0,0,.76)); }
.seamless-stage.anim-energetic-cuts .cinema-glow { opacity: .52; }
.seamless-stage.anim-parallax-motion .film-grain { opacity: .22; }


/* v22 align overlay boxes and clean caption overlap */
.preview-size-note::after {
  content: " • aligned overlay";
}

.seamless-stage .movie-chips {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 14;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.seamless-stage .movie-chips span:nth-child(1) {
  grid-column: 1 / -1;
  justify-self: start;
}

.seamless-stage .movie-chips span:nth-child(2) {
  grid-column: 1;
  justify-self: start;
  max-width: 100%;
}

.seamless-stage .movie-chips span:nth-child(3) {
  display: none;
}

.seamless-stage .sound-chip {
  position: absolute;
  top: 58px;
  right: 12px;
  left: auto;
  z-index: 14;
  max-width: 46%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seamless-stage .scene-label {
  left: 12px;
  bottom: 86px;
  right: auto;
  max-width: calc(100% - 24px);
}

.seamless-stage .seamless-captions {
  z-index: 15;
}

.seamless-stage .seamless-caption {
  left: 14px;
  right: 14px;
  bottom: 34px;
  margin: 0;
  border-radius: 20px;
  box-sizing: border-box;
}

@media (max-width: 620px) {
  .seamless-stage .movie-chips {
    gap: 6px;
    left: 10px;
    right: 10px;
  }

  .seamless-stage .movie-chips span,
  .seamless-stage .sound-chip,
  .seamless-stage .scene-label {
    font-size: 0.56rem;
  }

  .seamless-stage .sound-chip {
    top: 54px;
    right: 10px;
    max-width: 50%;
  }

  .seamless-stage .scene-label {
    left: 10px;
    bottom: 80px;
  }

  .seamless-stage .seamless-caption {
    left: 12px;
    right: 12px;
  }
}


/* v23 clean aligned top badges and hide internal effect labels */
.preview-size-note::after {
  content: " • clean overlay";
}

.seamless-stage .scene-label {
  display: none !important;
}

.seamless-stage .movie-chips {
  display: none !important;
}

.seamless-stage .preview-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 16;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.seamless-stage .badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.seamless-stage .mood-chip,
.seamless-stage .platform-chip,
.seamless-stage .sound-chip {
  position: static !important;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.44rem 0.62rem;
  border-radius: 999px;
  background: rgba(7,7,17,0.62);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.seamless-stage .mood-chip {
  justify-self: start;
  max-width: 100%;
}

.seamless-stage .platform-chip {
  flex: 0 1 auto;
  max-width: 48%;
}

.seamless-stage .sound-chip {
  flex: 0 1 auto;
  max-width: 50%;
  gap: 0.36rem;
}

.seamless-stage .sound-dot {
  flex: 0 0 9px;
}

.seamless-stage .seamless-caption {
  bottom: 34px !important;
}

.seamless-stage .movie-play {
  z-index: 18;
}

@media (max-width: 620px) {
  .seamless-stage .preview-badges {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 7px;
  }

  .seamless-stage .mood-chip,
  .seamless-stage .platform-chip,
  .seamless-stage .sound-chip {
    min-height: 29px;
    padding: 0.38rem 0.52rem;
    font-size: 0.56rem;
  }

  .seamless-stage .platform-chip { max-width: 46%; }
  .seamless-stage .sound-chip { max-width: 52%; }
}


/* v27 rectangular format preview + equalizer/light controls */
.preview-stage.ratio-16-9,
.preview-stage.ratio-1-1,
.preview-stage.ratio-4-5 {
  border-radius: 18px;
}

.preview-stage.ratio-16-9 {
  width: min(100%, 340px);
}

.preview-stage.ratio-1-1,
.preview-stage.ratio-4-5 {
  width: min(100%, 250px);
}

.seamless-stage .preview-badges {
  gap: 7px;
}

.seamless-stage .badge-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.seamless-stage .mood-chip,
.seamless-stage .platform-chip,
.seamless-stage .sound-chip {
  border-radius: 16px;
  min-height: 34px;
  padding: 0.46rem 0.72rem;
}

.seamless-stage .mood-chip {
  max-width: min(82%, 220px);
}

.seamless-stage .platform-chip,
.seamless-stage .sound-chip {
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-content: flex-start;
}

.seamless-stage.ratio-4-5 .platform-chip,
.seamless-stage.ratio-4-5 .sound-chip,
.seamless-stage.ratio-1-1 .platform-chip,
.seamless-stage.ratio-1-1 .sound-chip {
  font-size: 0.58rem;
}

.seamless-stage .sound-chip {
  justify-self: stretch;
}

/* equalizer options */
.seamless-stage.eq-off .audio-wave {
  display: none;
}

.seamless-stage.eq-bars .audio-wave {
  opacity: .96;
}

.seamless-stage.eq-pulse .audio-wave {
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 22px;
  gap: 6px;
  justify-content: center;
}

.seamless-stage.eq-pulse .audio-wave i {
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(34,211,238,.72));
  transform-origin: center bottom;
}

.seamless-stage.playing.eq-pulse .audio-wave i:nth-child(1) { animation: pulseBeat 1.05s ease-in-out infinite .04s; }
.seamless-stage.playing.eq-pulse .audio-wave i:nth-child(2) { animation: pulseBeat .88s ease-in-out infinite .18s; }
.seamless-stage.playing.eq-pulse .audio-wave i:nth-child(3) { animation: pulseBeat 1.12s ease-in-out infinite .1s; }
.seamless-stage.playing.eq-pulse .audio-wave i:nth-child(4) { animation: pulseBeat .84s ease-in-out infinite .22s; }
.seamless-stage.playing.eq-pulse .audio-wave i:nth-child(5) { animation: pulseBeat .96s ease-in-out infinite .08s; }
.seamless-stage.playing.eq-pulse .audio-wave i:nth-child(6) { animation: pulseBeat 1.08s ease-in-out infinite .16s; }
.seamless-stage.playing.eq-pulse .audio-wave i:nth-child(7) { animation: pulseBeat .92s ease-in-out infinite .28s; }

@keyframes pulseBeat {
  0%, 100% { transform: scaleY(.35); opacity: .55; }
  45% { transform: scaleY(1.05); opacity: 1; }
}

/* light effect options */
.seamless-stage.light-off .light-leak,
.seamless-stage.light-off .cinema-glow,
.seamless-stage.light-off .cinema-particles {
  display: none;
}

.seamless-stage.light-soft-glow .light-leak {
  opacity: .08;
}

.seamless-stage.light-soft-glow .cinema-glow {
  opacity: .24;
}

.seamless-stage.light-light-leak .light-leak {
  opacity: .24;
}

.seamless-stage.light-light-leak .cinema-glow {
  opacity: .18;
}

.seamless-stage.light-spotlight .cinema-glow {
  opacity: .38;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.26), transparent 16%),
    radial-gradient(circle at 50% 30%, rgba(34,211,238,.14), transparent 36%),
    radial-gradient(circle at 20% 22%, rgba(236,72,153,.14), transparent 20%);
}

.seamless-stage.light-spotlight .light-leak {
  opacity: .06;
}

@media (max-width: 620px) {
  .preview-stage.ratio-1-1,
  .preview-stage.ratio-4-5 {
    width: min(100%, 230px);
  }

  .seamless-stage .mood-chip,
  .seamless-stage .platform-chip,
  .seamless-stage .sound-chip {
    border-radius: 14px;
    min-height: 30px;
    padding: 0.4rem 0.56rem;
  }

  .seamless-stage.ratio-4-5 .platform-chip,
  .seamless-stage.ratio-4-5 .sound-chip,
  .seamless-stage.ratio-1-1 .platform-chip,
  .seamless-stage.ratio-1-1 .sound-chip {
    font-size: 0.54rem;
  }
}


/* v28 cleaner overlay: show only a readable rectangular platform chip at upper-left */
.seamless-stage .preview-badges {
  top: 12px;
  left: 12px;
  right: auto;
  width: auto;
  display: block;
  max-width: calc(100% - 24px);
}

.seamless-stage .badge-row,
.seamless-stage .mood-chip,
.seamless-stage .sound-chip {
  display: none !important;
}

.seamless-stage .platform-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-width: 112px;
  max-width: min(72%, 210px);
  min-height: 34px;
  padding: 0.5rem 0.78rem;
  border-radius: 12px;
  background: rgba(7, 7, 17, 0.78);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 8px 24px rgba(0,0,0,0.24);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-stage.ratio-16-9 .seamless-stage .platform-chip {
  max-width: min(42%, 180px);
}

.preview-stage.ratio-1-1 .seamless-stage .platform-chip,
.preview-stage.ratio-4-5 .seamless-stage .platform-chip,
.preview-stage.ratio-9-16 .seamless-stage .platform-chip {
  max-width: min(70%, 210px);
}

@media (max-width: 620px) {
  .seamless-stage .preview-badges {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .seamless-stage .platform-chip {
    min-width: 96px;
    min-height: 30px;
    max-width: min(76%, 188px);
    padding: 0.42rem 0.62rem;
    border-radius: 10px;
    font-size: 0.58rem;
  }
}


/* v29 improvements: overlay toggle, cleaner play button, upgraded equalizer/light effects */
.seamless-stage.overlay-none .preview-badges {
  display: none !important;
}

.seamless-stage .movie-play {
  pointer-events: auto !important;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), rgba(255,255,255,.12) 42%, rgba(10,12,24,.58) 100%);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 16px 40px rgba(0,0,0,.32), 0 0 0 6px rgba(34,211,238,.08);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-weight: 950;
  font-size: 1.25rem;
  transition: transform .22s ease, opacity .22s ease, box-shadow .22s ease, background .22s ease;
}
.seamless-stage .movie-play:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 46px rgba(0,0,0,.36), 0 0 0 8px rgba(34,211,238,.10);
}
.seamless-stage.playing .movie-play {
  opacity: .06;
  transform: scale(.82);
}
.seamless-stage.playing:hover .movie-play {
  opacity: .92;
  transform: scale(1);
}

.seamless-stage.eq-line .audio-wave {
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 16px;
  gap: 10px;
  justify-content: center;
}
.seamless-stage.eq-line .audio-wave::before {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(34,211,238,.7), rgba(255,255,255,.1));
  box-shadow: 0 0 18px rgba(34,211,238,.28);
}
.seamless-stage.eq-line .audio-wave i {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.98), rgba(34,211,238,.9) 58%, rgba(59,130,246,.5) 100%);
  box-shadow: 0 0 12px rgba(34,211,238,.55);
  transform-origin: center center;
}
.seamless-stage.playing.eq-line .audio-wave i:nth-child(1) { animation: eqLineFloat 1.2s ease-in-out infinite .02s; }
.seamless-stage.playing.eq-line .audio-wave i:nth-child(2) { animation: eqLineFloat .95s ease-in-out infinite .12s; }
.seamless-stage.playing.eq-line .audio-wave i:nth-child(3) { animation: eqLineFloat 1.08s ease-in-out infinite .06s; }
.seamless-stage.playing.eq-line .audio-wave i:nth-child(4) { animation: eqLineFloat .88s ease-in-out infinite .18s; }
.seamless-stage.playing.eq-line .audio-wave i:nth-child(5) { animation: eqLineFloat 1.16s ease-in-out infinite .1s; }
.seamless-stage.playing.eq-line .audio-wave i:nth-child(6) { animation: eqLineFloat .92s ease-in-out infinite .16s; }
.seamless-stage.playing.eq-line .audio-wave i:nth-child(7) { animation: eqLineFloat 1.1s ease-in-out infinite .22s; }
@keyframes eqLineFloat {
  0%, 100% { transform: translateY(1px) scale(.9); opacity: .62; }
  50% { transform: translateY(-7px) scale(1.15); opacity: 1; }
}

.seamless-stage.light-soft-glow .light-leak {
  opacity: .12;
}
.seamless-stage.light-soft-glow .cinema-glow {
  opacity: .34;
}
.seamless-stage.light-light-leak .light-leak {
  opacity: .38;
}
.seamless-stage.light-light-leak .cinema-glow {
  opacity: .26;
}
.seamless-stage.light-spotlight .cinema-glow {
  opacity: .48;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,.28), transparent 14%),
    radial-gradient(circle at 50% 28%, rgba(34,211,238,.22), transparent 34%),
    radial-gradient(circle at 18% 22%, rgba(236,72,153,.18), transparent 18%),
    radial-gradient(circle at 82% 24%, rgba(99,102,241,.16), transparent 18%);
}
.seamless-stage.light-spotlight .light-leak {
  opacity: .14;
}
.seamless-stage.light-neon-bloom .cinema-glow {
  opacity: .52;
  background:
    radial-gradient(circle at 16% 22%, rgba(236,72,153,.28), transparent 20%),
    radial-gradient(circle at 78% 18%, rgba(34,211,238,.26), transparent 22%),
    radial-gradient(circle at 50% 72%, rgba(168,85,247,.24), transparent 30%),
    radial-gradient(circle at 48% 28%, rgba(255,255,255,.12), transparent 18%);
}
.seamless-stage.light-neon-bloom .light-leak {
  opacity: .24;
  mix-blend-mode: screen;
}
.seamless-stage.light-neon-bloom .cinema-particles {
  opacity: .9;
}

@media (max-width: 620px) {
  .seamless-stage .movie-play {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
  }
  .seamless-stage.eq-line .audio-wave {
    left: 14px;
    right: 14px;
    bottom: 16px;
    gap: 8px;
  }
}


/* v30 export quality, play-button modes, extra equalizer/light polish */
.preview-size-note::after {
  content: " • v30 controls";
}

.seamless-stage.play-show .movie-play {
  opacity: .92 !important;
  transform: scale(1) !important;
}
.seamless-stage.play-hide .movie-play {
  display: none !important;
}
.seamless-stage.play-auto.playing .movie-play {
  opacity: .05;
}

.seamless-stage.quality-720p {
  box-shadow: 0 20px 54px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.1) inset;
}
.seamless-stage.quality-1080p {
  box-shadow: 0 24px 68px rgba(0,0,0,.42), 0 0 0 1px rgba(34,211,238,.24) inset;
}
.seamless-stage.quality-2k {
  box-shadow: 0 28px 82px rgba(0,0,0,.48), 0 0 0 2px rgba(34,211,238,.28) inset, 0 0 40px rgba(139,92,246,.18);
}
.seamless-stage.quality-2k .seamless-media {
  filter: saturate(1.08) contrast(1.04) sharpness(1);
}

/* stronger equalizer styling */
.seamless-stage.eq-bars .audio-wave i {
  box-shadow: 0 0 10px rgba(34,211,238,.28);
}
.seamless-stage.eq-pulse .audio-wave i {
  box-shadow: 0 0 16px rgba(34,211,238,.38);
}
.seamless-stage.eq-line .audio-wave::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34,211,238,.28), transparent 70%);
  filter: blur(8px);
}

/* extra cinematic bloom for premium-looking preview */
.seamless-stage.light-neon-bloom .cinema-glow {
  animation: neonBloomMove 5.8s ease-in-out infinite alternate;
}
@keyframes neonBloomMove {
  0% { transform: scale(1) translate3d(-1%, .6%, 0); opacity: .42; }
  100% { transform: scale(1.08) translate3d(1.2%, -1%, 0); opacity: .64; }
}
.seamless-stage.light-spotlight .cinema-glow {
  animation: spotlightSweep 6.5s ease-in-out infinite alternate;
}
@keyframes spotlightSweep {
  0% { transform: translateX(-2%) scale(1.02); }
  100% { transform: translateX(2%) scale(1.08); }
}

.control-grid label select#exportQuality,
.control-grid label select#playButtonMode {
  border-color: rgba(34,211,238,.22);
}


/* v31: show the image cleanly before overlays and transitions start */
.preview-stage.preview-idle {
  background: #060711;
}

.preview-stage.preview-idle .cinema-main,
.preview-stage.preview-idle .clear-main {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.preview-stage.preview-idle .main-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.preview-stage.preview-idle .cinema-bg,
.preview-stage.preview-idle .cinema-vignette,
.preview-stage.preview-idle .cinema-bars,
.preview-stage.preview-idle .film-grain,
.preview-stage.preview-idle .light-leak,
.preview-stage.preview-idle .cinema-glow,
.preview-stage.preview-idle .cinema-particles,
.preview-stage.preview-idle .motion-lines,
.preview-stage.preview-idle .movie-caption,
.preview-stage.preview-idle .audio-wave,
.preview-stage.preview-idle .movie-progress,
.preview-stage.preview-idle .scene-label {
  display: none !important;
}

.preview-stage.preview-idle .movie-ui.clean-ui {
  position: absolute;
  inset: 0;
  z-index: 8;
}

.preview-stage.preview-idle .preview-badges {
  top: 12px;
  left: 12px;
  right: auto;
}

.preview-stage.preview-idle .movie-play {
  opacity: 1 !important;
}

/* when playback starts, allow a short clear reveal before UI overlays fade in */
.seamless-stage.playing .preview-badges,
.seamless-stage.playing .movie-caption,
.seamless-stage.playing .audio-wave,
.seamless-stage.playing .movie-progress {
  animation: overlayFadeIn .45s ease .8s both;
}

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


/* v32 caption on/off */
.seamless-stage.cap-toggle-off .movie-caption {
  display: none !important;
}


/* v33 thumbnail generator */
.thumbnail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.btn.ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn.ghost[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.thumbnail-upload-wrap {
  min-width: 0;
}
.thumbnail-upload-wrap.is-hidden {
  display: none;
}
.thumbnail-upload {
  width: 100%;
  margin-top: 0.45rem;
}
.thumbnail-controls-grid {
  align-items: start;
}

.thumbnail-panel {
  margin-top: 1rem;
}

.thumbnail-stage {
  position: relative;
  width: 100%;
  min-height: 240px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}
.thumbnail-stage.ratio-9-16 { aspect-ratio: 9 / 16; }
.thumbnail-stage.ratio-16-9 { aspect-ratio: 16 / 9; }
.thumbnail-stage.ratio-1-1 { aspect-ratio: 1 / 1; }
.thumbnail-stage.ratio-4-5 { aspect-ratio: 4 / 5; }

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail-empty {
  min-height: inherit;
}

.thumbnail-overlay-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: calc(100% - 28px);
  padding: 0.45rem 0.72rem;
  border-radius: 12px;
  background: rgba(7,7,17,0.70);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 700px) {
  .thumbnail-actions .btn {
    width: 100%;
  }
}


/* v34 smoother, clearer slide timing */
.preview-size-note::after {
  content: " • clearer timing";
}

/* Slightly calmer motion during continuous playback for better image readability */
.seamless-stage.playing .seamless-main .seamless-layer .main-media,
.seamless-stage.playing .seamless-main .seamless-layer .seamless-media {
  will-change: transform, opacity, filter;
}

/* Let overlays arrive a bit later so the image is readable longer */
.seamless-stage.playing .preview-badges,
.seamless-stage.playing .movie-caption,
.seamless-stage.playing .audio-wave,
.seamless-stage.playing .movie-progress {
  animation-delay: 1.05s;
}


/* v35: compact thumbnail panel, drag-drop reordering, caption dropdown */
.thumbnail-panel .thumbnail-stage {
  width: min(100%, 185px);
  min-height: 0;
  max-height: 330px;
  margin: 0 auto;
  border-radius: 22px;
}
.thumbnail-panel .thumbnail-stage.ratio-16-9 {
  width: min(100%, 280px);
  max-height: 170px;
}
.thumbnail-panel .thumbnail-stage.ratio-1-1 {
  width: min(100%, 220px);
  max-height: 220px;
}
.thumbnail-panel .thumbnail-stage.ratio-4-5 {
  width: min(100%, 205px);
  max-height: 256px;
}
.thumbnail-panel .preview-meta,
.thumbnail-panel .preview-head {
  max-width: 280px;
  margin-inline: auto;
}
.thumb-help {
  display: block;
  margin-top: -0.2rem;
}
.thumb {
  touch-action: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.thumb:hover {
  transform: translateY(-2px);
}
.thumb.dragging {
  opacity: .45;
  transform: scale(.96);
}
.thumb.drop-target {
  border-color: rgba(236,72,153,.85);
  box-shadow: 0 0 0 3px rgba(236,72,153,.14);
}
.thumb-handle {
  position: absolute;
  inset: 4px 4px auto auto;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(8,10,22,.72);
  color: rgba(255,255,255,.92);
  font-size: 0.6rem;
  font-weight: 900;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.12);
}
.caption-dropdown {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.caption-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  color: var(--text);
  font-weight: 800;
}
.caption-dropdown summary::-webkit-details-marker { display:none; }
.caption-dropdown summary::after {
  content: '⌄';
  color: var(--muted-2);
  font-size: 1rem;
  transition: transform .18s ease;
}
.caption-dropdown[open] summary::after {
  transform: rotate(180deg);
}
.caption-dropdown-note {
  color: var(--muted-2);
  font-size: 0.86rem;
  font-weight: 700;
}
.caption-dropdown-body {
  padding: 0 1rem 1rem;
}
@media (max-width: 700px) {
  .thumbnail-panel .thumbnail-stage {
    width: min(100%, 200px);
  }
}

/* v36 AI Director Mode */
.ai-director-card {
  border: 1px solid rgba(34,211,238,0.20);
  background: linear-gradient(180deg, rgba(34,211,238,0.08), rgba(139,92,246,0.07));
  border-radius: 22px;
  padding: 1rem;
}
.ai-director-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.ai-director-head label {
  margin: 0 0 0.25rem;
  color: var(--text);
}
.ai-director-head small {
  display: block;
  color: var(--muted-2);
  line-height: 1.45;
}
.ai-director-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.ai-director-mini span {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 0.35rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}
.director-panel {
  display: grid;
  gap: 0.7rem;
  margin: 0.85rem 0 1rem;
  padding: 0.9rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}
.director-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.director-panel-head span {
  color: var(--muted-2);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.director-panel-head strong {
  color: var(--cyan);
  font-size: 0.86rem;
  text-align: right;
}
.director-dna {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.director-dna span {
  padding: 0.65rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.director-dna strong {
  display: block;
  color: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}
.emotion-curve {
  display: flex;
  align-items: end;
  gap: 0.42rem;
  min-height: 64px;
  padding: 0.6rem 0.55rem 0.4rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(34,211,238,0.06), rgba(236,72,153,0.05));
  border: 1px solid rgba(255,255,255,0.08);
}
.emotion-curve i {
  flex: 1;
  height: var(--h, 45%);
  min-height: 18px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(34,211,238,.9), rgba(139,92,246,.75), rgba(236,72,153,.7));
  position: relative;
  box-shadow: 0 0 18px rgba(34,211,238,0.14);
}
.emotion-curve i span {
  position: absolute;
  left: 50%;
  bottom: -1.35rem;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 750;
  max-width: 52px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .ai-director-head { align-items: stretch; flex-direction: column; }
  .ai-director-head .btn { width: 100%; }
  .ai-director-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .director-dna { grid-template-columns: 1fr; }
}


/* v37 rewarded ad export flow */
.ad-unlock-card,
.export-panel {
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  padding: 1rem;
}
.ad-unlock-head,
.export-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.ad-unlock-head label,
.export-head h4 {
  margin: 0;
  color: var(--text);
  font-weight: 950;
  letter-spacing: -0.03em;
}
.ad-unlock-head small {
  display: block;
  color: var(--muted-2);
  margin-top: .28rem;
  line-height: 1.45;
}
.ad-pill,
#exportStatus {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: .42rem .65rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,7,17,.55);
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 900;
}
.ad-unlock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: .9rem;
}
.ad-unlock-actions .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.ad-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: .85rem;
}
.ad-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-2), var(--primary), var(--cyan));
  transition: width .35s ease;
}
.export-panel { margin: 1rem 0; }
.export-head h4 { font-size: 1.12rem; margin-top: .45rem; }
.export-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .85rem 0;
}
.export-steps span {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  color: var(--muted-2);
  border-radius: 999px;
  padding: .4rem .58rem;
  font-size: .72rem;
  font-weight: 800;
}
.export-steps span.active {
  color: #fff;
  border-color: rgba(34,211,238,.5);
  background: rgba(34,211,238,.16);
}
.export-steps span.done {
  color: var(--green);
  border-color: rgba(52,211,153,.42);
  background: rgba(52,211,153,.12);
}
#exportVideoBtn[disabled] { opacity: .52; cursor: not-allowed; transform: none; }
@media (max-width: 700px) {
  .ad-unlock-actions { grid-template-columns: 1fr; }
  .ad-unlock-head, .export-head { align-items: stretch; flex-direction: column; }
  .ad-pill, #exportStatus { width: fit-content; }
}


/* v39 caption alignment and safer positioning */
.seamless-stage .seamless-caption,
.movie-stage .movie-caption {
  width: min(calc(100% - 28px), 78%);
  max-width: 460px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.seamless-stage.cap-pos-top .seamless-caption,
.movie-stage.cap-pos-top .movie-caption {
  top: 28px;
  bottom: auto;
  transform: translateX(-50%);
}

.seamless-stage.cap-pos-center .seamless-caption,
.movie-stage.cap-pos-center .movie-caption {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  text-align: center;
}

.seamless-stage.cap-pos-bottom .seamless-caption,
.movie-stage.cap-pos-bottom .movie-caption {
  top: auto;
  bottom: 34px;
  transform: translateX(-50%);
}

@media (max-width: 620px) {
  .seamless-stage .seamless-caption,
  .movie-stage .movie-caption {
    width: min(calc(100% - 20px), 88%);
    max-width: none;
  }
}


/* v40 black and white color mode */
.movie-stage.color-black-white img,
.movie-stage.color-black-white video {
  filter: grayscale(1) contrast(1.05) brightness(.98);
}

.movie-stage.color-black-white .cinema-bg {
  filter: blur(18px) grayscale(1) saturate(.6) brightness(0.72);
}

.movie-stage.color-black-white .cinema-next {
  filter: blur(1px) grayscale(1) contrast(1.03);
}

.thumbnail-stage.color-black-white .thumbnail-image {
  filter: grayscale(1) contrast(1.05);
}


/* v41 caption toggle fix */
.seamless-stage.cap-toggle-off .seamless-captions,
.seamless-stage.cap-toggle-off .seamless-caption,
.movie-stage.cap-toggle-off .movie-caption {
  display: none !important;
}


/* v42 AI story tools */
.ai-story-tools .story-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.ai-story-tools .story-tools-grid .btn {
  min-height: 44px;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .ai-story-tools .story-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* v49 safety: content remains visible even if JavaScript fails */
.reveal { opacity: 1 !important; transform: none !important; }


/* v50 backend/S3 upload status */
.backend-upload-status {
  margin-top: -0.25rem;
  padding: 0.78rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.backend-upload-status[data-connected="true"] {
  border-color: rgba(52,211,153,0.28);
  background: rgba(52,211,153,0.08);
  color: #d1fae5;
}


/* v55 mobile performance safety */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .preview-stage *, .movie-stage * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .particle-field, .equalizer, .light-layer, .glow-orb, .ambient-orb, .music-wave, .floating-badge { display: none !important; }
  .preview-stage, .movie-stage { transform: translateZ(0); contain: layout paint; }
  .thumb-card img, .thumb-card video { max-height: 92px; object-fit: cover; }
  .creator-grid, .hero-grid, .pricing-grid { grid-template-columns: 1fr !important; }
  .control-grid, .customization-grid { grid-template-columns: 1fr !important; }
  .btn, button, select, input, textarea { min-height: 44px; }
}


/* v74 preview fullscreen */
.preview-stage:fullscreen {
  background: #020617;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.preview-stage:fullscreen .seamless-main,
.preview-stage:fullscreen .cinema-main,
.preview-stage:fullscreen .cinema-bg,
.preview-stage:fullscreen .seamless-bg {
  width: 100%;
  height: 100%;
}

.preview-stage:fullscreen img,
.preview-stage:fullscreen video {
  object-fit: cover;
}


/* v75 live preview recorder */
.preview-stage:fullscreen {
  background: #000;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.preview-stage:fullscreen .cinema-bg,
.preview-stage:fullscreen .cinema-next,
.preview-stage:fullscreen .cinema-main,
.preview-stage:fullscreen .seamless-main,
.preview-stage:fullscreen .seamless-bg {
  inset: 0;
}

.preview-stage:fullscreen img,
.preview-stage:fullscreen video {
  object-fit: cover;
}

.preview-stage:fullscreen .movie-ui {
  pointer-events: none;
}


/* v82 caption overflow fix */
.movie-stage .movie-caption,
.seamless-stage .seamless-caption,
.preview-stage .movie-caption,
.preview-stage .seamless-caption {
  box-sizing: border-box;
  max-width: calc(100% - 28px);
  max-height: 32%;
  overflow: hidden;
  padding: clamp(0.45rem, 1.6vw, 0.85rem) clamp(0.55rem, 2vw, 1rem);
  line-height: 1.12;
}

.movie-stage .movie-caption strong,
.seamless-stage .seamless-caption strong,
.preview-stage .movie-caption strong,
.preview-stage .seamless-caption strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.08;
  margin-bottom: 0.16rem;
}

.movie-stage .movie-caption small,
.seamless-stage .seamless-caption small,
.preview-stage .movie-caption small,
.preview-stage .seamless-caption small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.14;
}

.seamless-stage.cap-pos-bottom .seamless-caption,
.movie-stage.cap-pos-bottom .movie-caption {
  bottom: clamp(18px, 4%, 34px);
}

.seamless-stage.cap-pos-top .seamless-caption,
.movie-stage.cap-pos-top .movie-caption {
  top: clamp(18px, 4%, 34px);
}


/* v83 simple small caption */
.movie-stage .movie-caption,
.seamless-stage .seamless-caption,
.preview-stage .movie-caption,
.preview-stage .seamless-caption {
  box-sizing: border-box;
  max-width: calc(100% - 28px);
  max-height: 28%;
  overflow: hidden;
  padding: 0.5rem 0.65rem;
  font-size: clamp(0.72rem, 1.8vw, 0.95rem);
  line-height: 1.18;
}

.movie-stage .movie-caption strong,
.seamless-stage .seamless-caption strong,
.preview-stage .movie-caption strong,
.preview-stage .seamless-caption strong {
  display: inline;
  font-size: inherit !important;
  font-weight: 500 !important;
  line-height: 1.18;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.movie-stage .movie-caption small,
.seamless-stage .seamless-caption small,
.preview-stage .movie-caption small,
.preview-stage .seamless-caption small {
  display: inline;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: 1.18;
  overflow-wrap: anywhere;
  word-break: break-word;
  opacity: 0.92;
}

.movie-stage .movie-caption strong::after,
.seamless-stage .seamless-caption strong::after,
.preview-stage .movie-caption strong::after,
.preview-stage .seamless-caption strong::after {
  content: " ";
}

/* v84: one-word small captions */
.movie-stage .movie-caption,
.seamless-stage .seamless-caption,
.preview-stage .movie-caption,
.preview-stage .seamless-caption {
  max-width: calc(100% - 32px);
  max-height: 18%;
  overflow: hidden;
  padding: 0.42rem 0.58rem !important;
  font-size: clamp(0.72rem, 1.7vw, 0.92rem) !important;
  line-height: 1.1 !important;
}

.movie-stage .movie-caption strong,
.seamless-stage .seamless-caption strong,
.preview-stage .movie-caption strong,
.preview-stage .seamless-caption strong {
  display: inline !important;
  font-size: inherit !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
}

.movie-stage .movie-caption small,
.seamless-stage .seamless-caption small,
.preview-stage .movie-caption small,
.preview-stage .seamless-caption small {
  display: none !important;
}

/* v94 Creator Pro Studio: advanced presets, FX, camera, frames, and MP4-recorded canvas effects */
.pro-tools-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(34,211,238,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34,211,238,.14), transparent 36%),
    radial-gradient(circle at 90% 12%, rgba(236,72,153,.14), transparent 34%),
    rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}
.pro-tools-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: .85rem;
}
.pro-tools-head strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -.03em;
}
.pro-tools-head small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  margin-top: .18rem;
}
.pro-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: .25rem .6rem;
  border-radius: 999px;
  color: #061018;
  background: linear-gradient(135deg, #22d3ee, #a7f3d0);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .02em;
}
.pro-tools-grid label {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.14);
}
.studio-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .85rem;
}
.preset-chip {
  min-height: 34px;
  padding: .52rem .72rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-size: .78rem;
  font-weight: 850;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.preset-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(34,211,238,.48);
  background: rgba(34,211,238,.1);
}

.seamless-stage .studio-fx,
.seamless-stage .beat-pulse,
.seamless-stage .studio-frame,
.seamless-stage .studio-safe-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.seamless-stage .studio-fx { z-index: 10; overflow: hidden; opacity: 0; }
.seamless-stage .beat-pulse { z-index: 11; opacity: 0; }
.seamless-stage .studio-frame,
.seamless-stage .studio-safe-grid { z-index: 19; }
.seamless-stage.fx-none .studio-fx { display: none; }

.seamless-stage.fx-lens-flare .studio-fx,
.seamless-stage.fx-light-rays .studio-fx,
.seamless-stage.fx-film-dust .studio-fx,
.seamless-stage.fx-glass-reflection .studio-fx,
.seamless-stage.fx-product-shine .studio-fx,
.seamless-stage.fx-luxury-shimmer .studio-fx,
.seamless-stage.fx-spotlight-sweep .studio-fx,
.seamless-stage.fx-soft-particles .studio-fx,
.seamless-stage.fx-heart-bokeh .studio-fx,
.seamless-stage.fx-speed-lines .studio-fx,
.seamless-stage.fx-bokeh .studio-fx,
.seamless-stage.fx-stars .studio-fx,
.seamless-stage.fx-confetti .studio-fx,
.seamless-stage.fx-rain .studio-fx,
.seamless-stage.fx-snow .studio-fx,
.seamless-stage.fx-sparks .studio-fx,
.seamless-stage.fx-divine-glow .studio-fx,
.seamless-stage.fx-rose-petals .studio-fx,
.seamless-stage.fx-candle-glow .studio-fx,
.seamless-stage.fx-diamond-sparkle .studio-fx,
.seamless-stage.fx-aurora-ribbon .studio-fx,
.seamless-stage.fx-fireworks .studio-fx,
.seamless-stage.fx-angel-dust .studio-fx,
.seamless-stage.fx-stage-lasers .studio-fx { opacity: 1; }

.seamless-stage .studio-fx i {
  position: absolute;
  display: block;
  left: calc((var(--i, 1) * 8%) + 4%);
  top: calc((var(--i, 1) * 11%) % 100%);
}
.seamless-stage .studio-fx i:nth-child(1) { --i: 1; left: 8%; top: 74%; }
.seamless-stage .studio-fx i:nth-child(2) { --i: 2; left: 18%; top: 34%; }
.seamless-stage .studio-fx i:nth-child(3) { --i: 3; left: 29%; top: 62%; }
.seamless-stage .studio-fx i:nth-child(4) { --i: 4; left: 38%; top: 18%; }
.seamless-stage .studio-fx i:nth-child(5) { --i: 5; left: 49%; top: 82%; }
.seamless-stage .studio-fx i:nth-child(6) { --i: 6; left: 58%; top: 41%; }
.seamless-stage .studio-fx i:nth-child(7) { --i: 7; left: 67%; top: 70%; }
.seamless-stage .studio-fx i:nth-child(8) { --i: 8; left: 75%; top: 27%; }
.seamless-stage .studio-fx i:nth-child(9) { --i: 9; left: 84%; top: 57%; }
.seamless-stage .studio-fx i:nth-child(10) { --i: 10; left: 91%; top: 12%; }
.seamless-stage .studio-fx i:nth-child(11) { --i: 11; left: 12%; top: 8%; }
.seamless-stage .studio-fx i:nth-child(12) { --i: 12; left: 88%; top: 86%; }

.seamless-stage.fx-bokeh .studio-fx i {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.62), rgba(34,211,238,.18) 42%, transparent 68%);
  filter: blur(.6px);
  mix-blend-mode: screen;
}
.seamless-stage.playing.fx-bokeh .studio-fx i { animation: studioBokeh 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.42s); }
@keyframes studioBokeh {
  0%,100% { transform: translate3d(0, 12px, 0) scale(.75); opacity: .18; }
  45% { transform: translate3d(10px, -34px, 0) scale(1.24); opacity: .72; }
}

.seamless-stage.fx-stars .studio-fx i,
.seamless-stage.fx-snow .studio-fx i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 0 10px rgba(255,255,255,.58);
}
.seamless-stage.playing.fx-stars .studio-fx i { animation: starTwinkle 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.17s); }
@keyframes starTwinkle { 0%,100%{ opacity:.2; transform:scale(.75) } 50%{ opacity:1; transform:scale(1.4) } }
.seamless-stage.playing.fx-snow .studio-fx i { animation: snowFall 6.4s linear infinite; animation-delay: calc(var(--i) * -.34s); }
@keyframes snowFall { from{ transform:translate3d(0,-24px,0); opacity:.2 } 45%{ opacity:.75 } to{ transform:translate3d(18px,120px,0); opacity:.05 } }

.seamless-stage.fx-confetti .studio-fx i {
  width: 12px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, #22d3ee, #ec4899);
}
.seamless-stage.fx-confetti .studio-fx i:nth-child(3n) { background: #facc15; }
.seamless-stage.fx-confetti .studio-fx i:nth-child(3n+1) { background: #34d399; }
.seamless-stage.playing.fx-confetti .studio-fx i { animation: confettiFall 4.1s linear infinite; animation-delay: calc(var(--i) * -.22s); }
@keyframes confettiFall { from{ transform:translate3d(0,-80px,0) rotate(0deg); opacity:0 } 10%{opacity:.85} to{ transform:translate3d(-20px,150px,0) rotate(460deg); opacity:0 } }

.seamless-stage.fx-rain .studio-fx i {
  width: 2px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.45));
  transform: rotate(22deg);
}
.seamless-stage.playing.fx-rain .studio-fx i { animation: rainDrop .92s linear infinite; animation-delay: calc(var(--i) * -.08s); }
@keyframes rainDrop { from{ transform:translate3d(28px,-80px,0) rotate(22deg); opacity:0 } 20%{opacity:.55} to{ transform:translate3d(-42px,150px,0) rotate(22deg); opacity:0 } }

.seamless-stage.fx-sparks .studio-fx i {
  width: 3px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(250,204,21,0), rgba(250,204,21,.85), rgba(255,255,255,.9));
  box-shadow: 0 0 14px rgba(250,204,21,.6);
  transform: rotate(42deg);
}
.seamless-stage.playing.fx-sparks .studio-fx i { animation: sparkRise 1.55s ease-out infinite; animation-delay: calc(var(--i) * -.12s); }
@keyframes sparkRise { from{ transform:translate3d(-20px,60px,0) rotate(42deg); opacity:0 } 30%{opacity:.9} to{ transform:translate3d(28px,-70px,0) rotate(42deg); opacity:0 } }


.seamless-stage.fx-lens-flare .studio-fx::before,
.seamless-stage.fx-light-rays .studio-fx::before,
.seamless-stage.fx-glass-reflection .studio-fx::before,
.seamless-stage.fx-product-shine .studio-fx::before,
.seamless-stage.fx-spotlight-sweep .studio-fx::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.seamless-stage.fx-lens-flare .studio-fx::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.58), rgba(255,255,255,.13) 9%, transparent 21%),
    radial-gradient(circle at 42% 31%, rgba(255,255,255,.22), transparent 9%),
    linear-gradient(100deg, transparent 18%, rgba(255,255,255,.16), transparent 54%);
  animation: premiumLensFlare 7.6s ease-in-out infinite;
}
.seamless-stage.fx-light-rays .studio-fx::before {
  background: repeating-linear-gradient(112deg, transparent 0 13%, rgba(255,255,255,.10) 14%, transparent 18%);
  filter: blur(1px);
  animation: premiumLightRays 8.5s ease-in-out infinite;
}
.seamless-stage.fx-glass-reflection .studio-fx::before,
.seamless-stage.fx-product-shine .studio-fx::before {
  background: linear-gradient(108deg, transparent 31%, rgba(255,255,255,.28) 43%, rgba(255,255,255,.08) 49%, transparent 62%);
  transform: translateX(-64%) rotate(0deg);
}
.seamless-stage.playing.fx-glass-reflection .studio-fx::before { animation: glassSweep 5.4s ease-in-out infinite; }
.seamless-stage.playing.fx-product-shine .studio-fx::before { animation: glassSweep 3.6s ease-in-out infinite; }
.seamless-stage.fx-spotlight-sweep .studio-fx::before {
  background: radial-gradient(circle at 20% 45%, rgba(255,255,255,.24), rgba(255,255,255,.07) 28%, transparent 58%);
  animation: spotlightSweep 6.8s ease-in-out infinite alternate;
}
.seamless-stage.fx-film-dust .studio-fx i,
.seamless-stage.fx-soft-particles .studio-fx i,
.seamless-stage.fx-luxury-shimmer .studio-fx i,
.seamless-stage.fx-heart-bokeh .studio-fx i,
.seamless-stage.fx-speed-lines .studio-fx i {
  mix-blend-mode: screen;
}
.seamless-stage.fx-film-dust .studio-fx i {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  box-shadow: 0 0 8px rgba(255,255,255,.32);
}
.seamless-stage.playing.fx-film-dust .studio-fx i { animation: filmDustFloat 4.8s linear infinite; animation-delay: calc(var(--i) * -.21s); }
.seamless-stage.fx-soft-particles .studio-fx i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.46), transparent 70%);
}
.seamless-stage.playing.fx-soft-particles .studio-fx i { animation: softParticleDrift 7.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.36s); }
.seamless-stage.fx-luxury-shimmer .studio-fx i {
  width: 12px;
  height: 12px;
  background: transparent;
}
.seamless-stage.fx-luxury-shimmer .studio-fx i::before,
.seamless-stage.fx-luxury-shimmer .studio-fx i::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  transform: translate(-50%,-50%);
  box-shadow: 0 0 14px rgba(255,255,255,.65);
}
.seamless-stage.fx-luxury-shimmer .studio-fx i::after { transform: translate(-50%,-50%) rotate(90deg); }
.seamless-stage.playing.fx-luxury-shimmer .studio-fx i { animation: luxuryShimmer 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.18s); }
.seamless-stage.fx-heart-bokeh .studio-fx i::before {
  content: "♡";
  font-size: 22px;
  color: rgba(255,255,255,.58);
  text-shadow: 0 0 14px rgba(236,72,153,.28);
}
.seamless-stage.playing.fx-heart-bokeh .studio-fx i { animation: heartBokehFloat 6.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.29s); }
.seamless-stage.fx-speed-lines .studio-fx i {
  width: 68px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: rotate(-8deg);
}
.seamless-stage.playing.fx-speed-lines .studio-fx i { animation: speedLineRush 1.05s linear infinite; animation-delay: calc(var(--i) * -.07s); }
.seamless-stage.fxint-subtle .studio-fx { opacity: .58; }
.seamless-stage.fxint-medium .studio-fx { opacity: .78; }
.seamless-stage.fxint-premium .studio-fx { opacity: 1; }
@keyframes premiumLensFlare { 0%,100%{ transform:translate3d(-4%,-1%,0); opacity:.28 } 45%{ transform:translate3d(18%,4%,0); opacity:.78 } }
@keyframes premiumLightRays { 0%,100%{ transform:translateX(-4%) rotate(0deg); opacity:.25 } 50%{ transform:translateX(8%) rotate(1deg); opacity:.66 } }
@keyframes glassSweep { from{ transform:translateX(-72%) } 42%{ opacity:.78 } to{ transform:translateX(72%) } }
@keyframes spotlightSweep { from{ transform:translateX(-14%); opacity:.2 } to{ transform:translateX(28%); opacity:.72 } }
@keyframes filmDustFloat { from{ transform:translate3d(0,-8px,0); opacity:.12 } 50%{ opacity:.55 } to{ transform:translate3d(8px,28px,0); opacity:.08 } }
@keyframes softParticleDrift { 0%,100%{ transform:translate3d(-10px,10px,0) scale(.75); opacity:.14 } 50%{ transform:translate3d(15px,-32px,0) scale(1.32); opacity:.65 } }
@keyframes luxuryShimmer { 0%,100%{ transform:scale(.55) rotate(0deg); opacity:.08 } 44%{ transform:scale(1.18) rotate(26deg); opacity:.9 } }
@keyframes heartBokehFloat { from{ transform:translate3d(0,44px,0) scale(.78); opacity:0 } 28%{ opacity:.6 } to{ transform:translate3d(10px,-62px,0) scale(1.08); opacity:0 } }
@keyframes speedLineRush { from{ transform:translate3d(-90px,0,0) rotate(-8deg); opacity:0 } 25%{ opacity:.65 } to{ transform:translate3d(110px,-14px,0) rotate(-8deg); opacity:0 } }

/* v145 Premium Visual Effects Pack: emotional/event overlays captured by Animated MP4 export */
.seamless-stage.fx-divine-glow .studio-fx::before,
.seamless-stage.fx-candle-glow .studio-fx::before,
.seamless-stage.fx-aurora-ribbon .studio-fx::before,
.seamless-stage.fx-stage-lasers .studio-fx::before,
.seamless-stage.fx-fireworks .studio-fx::before {
  content: "";
  position: absolute;
  inset: -22%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.seamless-stage.fx-divine-glow .studio-fx::before {
  background:
    radial-gradient(circle at 50% -8%, rgba(255,255,255,.46), rgba(250,204,21,.18) 21%, transparent 46%),
    repeating-linear-gradient(105deg, transparent 0 10%, rgba(255,255,255,.12) 11%, transparent 15%);
  filter: blur(.8px);
}
.seamless-stage.playing.fx-divine-glow .studio-fx::before { animation: divineGlowSweep 7.8s ease-in-out infinite; }
.seamless-stage.fx-divine-glow .studio-fx i,
.seamless-stage.fx-angel-dust .studio-fx i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(250,204,21,.34) 48%, transparent 72%);
  box-shadow: 0 0 14px rgba(250,204,21,.45);
  mix-blend-mode: screen;
}
.seamless-stage.playing.fx-divine-glow .studio-fx i,
.seamless-stage.playing.fx-angel-dust .studio-fx i { animation: angelDustRise 6.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.27s); }

.seamless-stage.fx-rose-petals .studio-fx i {
  width: 18px;
  height: 11px;
  border-radius: 80% 20% 80% 20%;
  background: linear-gradient(135deg, rgba(251,113,133,.78), rgba(244,63,94,.32));
  box-shadow: 0 0 12px rgba(244,63,94,.22);
  transform: rotate(22deg);
  mix-blend-mode: screen;
}
.seamless-stage.fx-rose-petals .studio-fx i:nth-child(even) { background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(251,113,133,.25)); }
.seamless-stage.playing.fx-rose-petals .studio-fx i { animation: rosePetalFall 7.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.31s); }

.seamless-stage.fx-candle-glow .studio-fx::before {
  background:
    radial-gradient(circle at 50% 100%, rgba(251,191,36,.32), rgba(245,158,11,.13) 26%, transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,.1), rgba(245,158,11,.08));
}
.seamless-stage.playing.fx-candle-glow .studio-fx::before { animation: candleGlowPulse 4.8s ease-in-out infinite; }
.seamless-stage.fx-candle-glow .studio-fx i {
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(251,191,36,.65), transparent);
  box-shadow: 0 0 14px rgba(251,191,36,.45);
  mix-blend-mode: screen;
}
.seamless-stage.playing.fx-candle-glow .studio-fx i { animation: candleFlicker 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.16s); }

.seamless-stage.fx-diamond-sparkle .studio-fx i {
  width: 16px;
  height: 16px;
  background: transparent;
  transform: rotate(45deg);
}
.seamless-stage.fx-diamond-sparkle .studio-fx i::before,
.seamless-stage.fx-diamond-sparkle .studio-fx i::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 18px rgba(255,255,255,.7), 0 0 28px rgba(250,204,21,.28);
  transform: translate(-50%,-50%);
}
.seamless-stage.fx-diamond-sparkle .studio-fx i::after { transform: translate(-50%,-50%) rotate(90deg); }
.seamless-stage.playing.fx-diamond-sparkle .studio-fx i { animation: diamondSparkle 2.15s ease-in-out infinite; animation-delay: calc(var(--i) * -.13s); }

.seamless-stage.fx-aurora-ribbon .studio-fx::before {
  background:
    linear-gradient(102deg, transparent 4%, rgba(34,211,238,.2), rgba(168,85,247,.18), rgba(236,72,153,.16), transparent 74%),
    linear-gradient(72deg, transparent 18%, rgba(250,204,21,.1), transparent 62%);
  filter: blur(5px) saturate(1.25);
  transform: translateX(-18%) rotate(-8deg);
}
.seamless-stage.playing.fx-aurora-ribbon .studio-fx::before { animation: auroraRibbon 8.8s ease-in-out infinite; }
.seamless-stage.fx-aurora-ribbon .studio-fx i { display: none; }

.seamless-stage.fx-fireworks .studio-fx::before {
  background:
    radial-gradient(circle at 22% 25%, rgba(250,204,21,.34), transparent 12%),
    radial-gradient(circle at 74% 18%, rgba(34,211,238,.32), transparent 12%),
    radial-gradient(circle at 58% 62%, rgba(236,72,153,.28), transparent 13%);
  opacity: .72;
}
.seamless-stage.fx-fireworks .studio-fx i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 0 10px rgba(255,255,255,.6), 0 0 18px rgba(34,211,238,.45);
}
.seamless-stage.fx-fireworks .studio-fx i:nth-child(3n) { box-shadow: 0 0 10px rgba(255,255,255,.7), 0 0 20px rgba(250,204,21,.55); }
.seamless-stage.fx-fireworks .studio-fx i:nth-child(3n+1) { box-shadow: 0 0 10px rgba(255,255,255,.7), 0 0 20px rgba(236,72,153,.55); }
.seamless-stage.playing.fx-fireworks .studio-fx i { animation: fireworkPop 2.4s ease-out infinite; animation-delay: calc(var(--i) * -.13s); }

.seamless-stage.fx-stage-lasers .studio-fx::before {
  background:
    linear-gradient(78deg, transparent 0 40%, rgba(34,211,238,.25) 42%, transparent 48%),
    linear-gradient(111deg, transparent 0 52%, rgba(236,72,153,.22) 54%, transparent 61%),
    linear-gradient(95deg, transparent 0 26%, rgba(250,204,21,.18) 28%, transparent 33%);
  filter: blur(.8px);
}
.seamless-stage.playing.fx-stage-lasers .studio-fx::before { animation: stageLaserSweep 2.9s ease-in-out infinite alternate; }
.seamless-stage.fx-stage-lasers .studio-fx i { display: none; }

.seamless-stage.fxint-bold.fx-divine-glow .studio-fx,
.seamless-stage.fxint-bold.fx-rose-petals .studio-fx,
.seamless-stage.fxint-bold.fx-diamond-sparkle .studio-fx,
.seamless-stage.fxint-bold.fx-fireworks .studio-fx,
.seamless-stage.fxint-bold.fx-stage-lasers .studio-fx { filter: saturate(1.28) contrast(1.08); }
@keyframes divineGlowSweep { 0%,100%{ transform:translate3d(-4%,-2%,0); opacity:.36 } 48%{ transform:translate3d(7%,3%,0); opacity:.88 } }
@keyframes angelDustRise { from{ transform:translate3d(0,54px,0) scale(.7); opacity:0 } 34%{ opacity:.75 } to{ transform:translate3d(14px,-80px,0) scale(1.12); opacity:0 } }
@keyframes rosePetalFall { 0%{ transform:translate3d(-12px,-78px,0) rotate(0deg); opacity:0 } 15%{ opacity:.7 } 100%{ transform:translate3d(22px,155px,0) rotate(360deg); opacity:0 } }
@keyframes candleGlowPulse { 0%,100%{ opacity:.34; filter:blur(1px) } 50%{ opacity:.75; filter:blur(2px) } }
@keyframes candleFlicker { 0%,100%{ transform:translateY(24px) scaleY(.7); opacity:.12 } 50%{ transform:translateY(-18px) scaleY(1.08); opacity:.58 } }
@keyframes diamondSparkle { 0%,100%{ transform:scale(.48) rotate(45deg); opacity:.08 } 46%{ transform:scale(1.25) rotate(82deg); opacity:1 } }
@keyframes auroraRibbon { 0%,100%{ transform:translateX(-22%) rotate(-8deg); opacity:.35 } 52%{ transform:translateX(18%) rotate(7deg); opacity:.82 } }
@keyframes fireworkPop { 0%{ transform:scale(.2) translate3d(0,0,0); opacity:0 } 18%{ opacity:1 } 100%{ transform:scale(1.9) translate3d(calc((var(--i) - 6) * 4px), calc((6 - var(--i)) * 5px), 0); opacity:0 } }
@keyframes stageLaserSweep { from{ transform:rotate(-4deg) translateX(-8%); opacity:.28 } to{ transform:rotate(5deg) translateX(10%); opacity:.85 } }


.seamless-stage.color-warm-film .seamless-media { filter: sepia(.18) saturate(1.12) contrast(1.04) brightness(1.02); }
.seamless-stage.color-vivid-pop .seamless-media { filter: saturate(1.34) contrast(1.08) brightness(1.04); }
.seamless-stage.color-teal-orange .seamless-media { filter: saturate(1.18) contrast(1.12) hue-rotate(-8deg); }
.seamless-stage.color-vintage-fade .seamless-media { filter: sepia(.24) saturate(.9) contrast(.95) brightness(1.05); }
.seamless-stage.color-cyber-neon .seamless-media { filter: saturate(1.55) contrast(1.14) brightness(1.05); }
.seamless-stage.color-cyber-neon .cinema-glow { opacity: .7; }

.seamless-stage.camera-dolly.playing .seamless-main { animation: cameraDolly 5.8s ease-in-out infinite alternate; }
.seamless-stage.camera-orbit.playing .seamless-main { animation: cameraOrbit 6.2s ease-in-out infinite alternate; transform-origin: center; }
.seamless-stage.camera-handheld.playing .seamless-main { animation: cameraHandheld .88s ease-in-out infinite alternate; }
.seamless-stage.camera-locked .seamless-main { transform: none !important; animation: none !important; }
@keyframes cameraDolly { from{ transform:scale(1.01) } to{ transform:scale(1.05) translateY(-.7%) } }
@keyframes cameraOrbit { from{ transform:perspective(900px) rotateY(-1.4deg) scale(1.01) } to{ transform:perspective(900px) rotateY(1.6deg) scale(1.04) } }
@keyframes cameraHandheld { from{ transform:translate3d(-.5%,.3%,0) scale(1.012) } to{ transform:translate3d(.6%,-.4%,0) scale(1.02) } }

.seamless-stage.text-none .seamless-caption strong,
.seamless-stage.text-none .seamless-caption small { animation: none !important; }
.seamless-stage.playing.text-pop .seamless-caption strong { animation: textPop .9s cubic-bezier(.2,1.4,.32,1) both; }
.seamless-stage.playing.text-slide-up .seamless-caption strong,
.seamless-stage.playing.text-slide-up .seamless-caption small { animation: textSlideUp .82s ease both; }
.seamless-stage.playing.text-typewriter .seamless-caption strong {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  animation: typewriterReveal 1.4s steps(18,end) both;
}
@keyframes textPop { from{ transform:scale(.82); opacity:0 } to{ transform:scale(1); opacity:1 } }
@keyframes textSlideUp { from{ transform:translateY(12px); opacity:0 } to{ transform:translateY(0); opacity:1 } }
@keyframes typewriterReveal { from{ width:0 } to{ width:100% } }

.seamless-stage.beat-low.playing .beat-pulse,
.seamless-stage.beat-medium.playing .beat-pulse,
.seamless-stage.beat-high.playing .beat-pulse {
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,.18), transparent 52%);
  mix-blend-mode: screen;
  animation: beatPulse 1s ease-in-out infinite;
}
.seamless-stage.beat-low .beat-pulse { opacity: .08; }
.seamless-stage.beat-medium .beat-pulse { opacity: .16; }
.seamless-stage.beat-high .beat-pulse { opacity: .28; animation-duration: .68s !important; }
@keyframes beatPulse { 0%,100%{ transform:scale(1); opacity:.03 } 45%{ transform:scale(1.045); opacity:.34 } }

.seamless-stage.frame-neon .studio-frame {
  inset: 9px;
  border: 2px solid rgba(34,211,238,.74);
  border-radius: 18px;
  box-shadow: 0 0 22px rgba(34,211,238,.34), inset 0 0 22px rgba(139,92,246,.18);
}
.seamless-stage.frame-film .studio-frame::before,
.seamless-stage.frame-film .studio-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 7.5%;
  background: rgba(0,0,0,.62);
}
.seamless-stage.frame-film .studio-frame::before { top: 0; }
.seamless-stage.frame-film .studio-frame::after { bottom: 0; }
.seamless-stage.frame-safe-grid .studio-safe-grid {
  background:
    linear-gradient(90deg, transparent 33.2%, rgba(255,255,255,.24) 33.4%, transparent 33.6%, transparent 66.4%, rgba(255,255,255,.24) 66.6%, transparent 66.8%),
    linear-gradient(180deg, transparent 33.2%, rgba(255,255,255,.24) 33.4%, transparent 33.6%, transparent 66.4%, rgba(255,255,255,.24) 66.6%, transparent 66.8%);
  box-shadow: inset 0 0 0 1px rgba(34,211,238,.32), inset 0 0 0 18px rgba(0,0,0,.05);
}
.seamless-stage.frame-social-card .studio-frame {
  inset: 6px;
  border-radius: 22px;
  border: 4px solid transparent;
  background: linear-gradient(#0000,#0000) padding-box, linear-gradient(135deg, #ec4899, #8b5cf6, #22d3ee) border-box;
  opacity: .72;
}

.seamless-stage.trans-bokeh-dissolve .cinema-glow { opacity: .58; }
.seamless-stage.trans-bokeh-dissolve .studio-fx i { mix-blend-mode: screen; }
.seamless-stage.trans-glitch-sweep .seamless-main { filter: contrast(1.12) saturate(1.18); }
.seamless-stage.trans-glitch-sweep.playing .light-leak { animation-duration: 1.1s; opacity: .42; }
.seamless-stage.trans-curtain-wipe .cinema-bars span { height: 9%; }
.seamless-stage.anim-whip-zoom .film-grain { opacity: .28; }
.seamless-stage.anim-dolly-push .cinema-glow { opacity: .38; }
.seamless-stage.anim-orbit-3d .seamless-main { transform-origin: center; }
.seamless-stage.anim-magazine-reveal .seamless-caption { border-radius: 10px; }

@media (max-width: 620px) {
  .pro-tools-panel { padding: .85rem; border-radius: 18px; }
  .studio-presets { gap: .42rem; }
  .preset-chip { font-size: .72rem; padding: .48rem .58rem; }
  .seamless-stage.frame-neon .studio-frame { inset: 7px; border-radius: 14px; }
  .seamless-stage.frame-social-card .studio-frame { inset: 5px; border-width: 3px; }
}

/* v95 Director Clapper + Smoke/Lightning Studio Controls */
.director-clapper-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 10% 0%, rgba(34,211,238,.20), transparent 32%),
    linear-gradient(145deg, rgba(15,23,42,.92), rgba(88,28,135,.38));
  box-shadow: 0 20px 55px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.06);
}
.director-clapper-card::before {
  content: '';
  position: absolute;
  inset: -42% auto auto -12%;
  width: 72%;
  height: 60%;
  transform: rotate(-9deg);
  opacity: .18;
  background: repeating-linear-gradient(135deg, #fff 0 18px, #020617 18px 36px);
  pointer-events: none;
}
.director-clapper-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .95rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(2,6,23,.36);
  backdrop-filter: blur(10px);
}
.director-clapper-icon {
  width: 54px;
  height: 42px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px 8px 10px 10px;
  background: linear-gradient(180deg, #f8fafc 0 34%, #0f172a 34% 100%);
  box-shadow: 0 12px 25px rgba(0,0,0,.34);
  transform-origin: left bottom;
}
.director-clapper-icon::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(135deg, #f8fafc 0 9px, #111827 9px 18px);
  transform: rotate(-7deg) translateY(-8px);
  transform-origin: left bottom;
  animation: clapperSnap 2.8s ease-in-out infinite;
}
.director-clapper-icon i {
  width: 28px;
  height: 4px;
  display: block;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 0 rgba(255,255,255,.66), 0 -8px 0 rgba(255,255,255,.66);
}
.director-clapper-hero strong {
  display: block;
  color: #fff;
  font-size: .88rem;
  letter-spacing: .18em;
}
.director-clapper-hero small {
  display: block;
  margin-top: .12rem;
  color: rgba(226,232,240,.82);
  line-height: 1.35;
}
.director-clapper-btn {
  position: relative;
  box-shadow: 0 12px 30px rgba(34,211,238,.18);
}
.director-clapper-btn::after {
  content: 'DIRECTOR';
  position: absolute;
  top: -10px;
  right: 12px;
  padding: .12rem .38rem;
  border-radius: 999px;
  color: #03131d;
  background: linear-gradient(135deg, #a7f3d0, #22d3ee);
  font-size: .55rem;
  font-weight: 950;
  letter-spacing: .08em;
}
.director-panel {
  border-color: rgba(34,211,238,.24);
  background:
    linear-gradient(180deg, rgba(34,211,238,.08), rgba(139,92,246,.08)),
    rgba(255,255,255,.035);
}
.director-panel-head span::before {
  content: '🎬 ';
}
@keyframes clapperSnap {
  0%, 72%, 100% { transform: rotate(-7deg) translateY(-8px); }
  78% { transform: rotate(4deg) translateY(-2px); }
  84% { transform: rotate(-2deg) translateY(-6px); }
}

.feature-chip.off {
  border-color: rgba(248,113,113,.36);
  color: #fecaca;
}
.feature-chip.off:hover {
  border-color: rgba(248,113,113,.62);
  background: rgba(248,113,113,.10);
}

.seamless-stage.fx-smoke .studio-fx,
.seamless-stage.fx-lightning .studio-fx { opacity: 1; }

.seamless-stage.fx-smoke .studio-fx i {
  width: clamp(54px, 18vw, 120px);
  height: clamp(54px, 18vw, 120px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(148,163,184,.11) 46%, transparent 72%);
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: .42;
}
.seamless-stage.playing.fx-smoke .studio-fx i {
  animation: cinematicSmoke 8.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.58s);
}
@keyframes cinematicSmoke {
  0% { transform: translate3d(-18px, 75px, 0) scale(.72); opacity: 0; }
  20% { opacity: .34; }
  58% { opacity: .48; }
  100% { transform: translate3d(26px, -132px, 0) scale(1.65); opacity: 0; }
}

.seamless-stage.fx-lightning .studio-fx::before,
.seamless-stage.fx-lightning .studio-fx::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(186,230,253,.42), transparent 48%);
  mix-blend-mode: screen;
}
.seamless-stage.fx-lightning .studio-fx i {
  width: 4px;
  height: clamp(88px, 31vw, 210px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(125,211,252,.82), rgba(255,255,255,.94));
  box-shadow: 0 0 18px rgba(34,211,238,.82), 0 0 36px rgba(99,102,241,.42);
  clip-path: polygon(46% 0, 100% 34%, 61% 34%, 88% 100%, 0 44%, 42% 44%);
  opacity: 0;
}
.seamless-stage.fx-lightning .studio-fx i:nth-child(odd) { transform: rotate(16deg); }
.seamless-stage.fx-lightning .studio-fx i:nth-child(even) { transform: rotate(-18deg); }
.seamless-stage.playing.fx-lightning .studio-fx i {
  animation: lightningBolt 2.15s steps(2,end) infinite;
  animation-delay: calc(var(--i) * -.11s);
}
.seamless-stage.playing.fx-lightning .studio-fx::before { animation: lightningFlash 2.15s steps(2,end) infinite; }
@keyframes lightningBolt {
  0%, 78%, 100% { opacity: 0; filter: blur(0); }
  80% { opacity: .95; filter: blur(.2px); }
  84% { opacity: .18; }
  88% { opacity: .82; }
}
@keyframes lightningFlash {
  0%, 76%, 100% { opacity: 0; }
  81% { opacity: .28; }
  86% { opacity: .08; }
  90% { opacity: .20; }
}

.seamless-stage.anim-smoke-drift .cinema-vignette { background: radial-gradient(circle at center, transparent 38%, rgba(15,23,42,.26) 72%, rgba(0,0,0,.62) 100%); }
.seamless-stage.anim-lightning-strike .cinema-glow { opacity: .55; }
.seamless-stage.anim-lightning-strike.playing .film-grain { animation-duration: .8s; opacity: .32; }
.seamless-stage.trans-smoke-wipe .light-leak { opacity: .18; filter: blur(16px); }
.seamless-stage.trans-lightning-flash.playing .cinema-glow { animation: lightningFlash 2.2s steps(2,end) infinite; }

.seamless-stage.features-off .seamless-bg,
.seamless-stage.features-off .studio-fx,
.seamless-stage.features-off .beat-pulse,
.seamless-stage.features-off .studio-frame,
.seamless-stage.features-off .studio-safe-grid,
.seamless-stage.features-off .audio-wave,
.seamless-stage.features-off .movie-progress,
.seamless-stage.features-off .light-leak,
.seamless-stage.features-off .cinema-particles,
.seamless-stage.features-off .film-grain,
.seamless-stage.features-off .cinema-glow,
.seamless-stage.features-off .cinema-vignette {
  display: none !important;
}
.seamless-stage.features-off .seamless-main .seamless-layer {
  opacity: 0 !important;
  animation: none !important;
  transform: none !important;
  filter: none !important;
}
.seamless-stage.features-off .seamless-main .layer-0 {
  opacity: 1 !important;
}
.seamless-stage.features-off .seamless-main .seamless-media {
  filter: none !important;
  transform: none !important;
}
.seamless-stage.features-off .seamless-caption {
  opacity: 0 !important;
  animation: none !important;
}
.seamless-stage.features-off .caption-0 {
  opacity: 1 !important;
}
.seamless-stage.features-off .movie-play {
  opacity: .78;
}

@media (max-width: 620px) {
  .director-clapper-hero { align-items: flex-start; }
  .director-clapper-icon { width: 48px; height: 38px; }
}


/* v96: smoke, lightning, and yellow spark effects removed from visible creator tools.
   Keep this guard so old cached states cannot auto-apply them. */
.seamless-stage.fx-smoke .studio-fx,
.seamless-stage.fx-lightning .studio-fx,
.seamless-stage.fx-sparks .studio-fx {
  display: none !important;
  opacity: 0 !important;
}
.seamless-stage.anim-smoke-drift .cinema-vignette,
.seamless-stage.anim-lightning-strike .cinema-glow,
.seamless-stage.trans-smoke-wipe .light-leak,
.seamless-stage.trans-lightning-flash .cinema-glow {
  animation: none !important;
  opacity: 0 !important;
}

/* v97 Director's Cut Pro: premium clean filters and business/creator tools */
.pro-tools-panel {
  position: relative;
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 24px 70px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.12);
}
.pro-tools-panel::after {
  content: "PRO";
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  color: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15,23,42,.28);
}
.director-clapper-card {
  border-color: rgba(125,211,252,.34);
  box-shadow: 0 26px 80px rgba(14,165,233,.18), inset 0 1px 0 rgba(255,255,255,.14);
}
.director-clapper-hero strong {
  letter-spacing: .22em;
}
.director-clapper-btn {
  box-shadow: 0 14px 40px rgba(14,165,233,.24);
}

.seamless-stage.color-executive-clean .seamless-media,
.thumbnail-stage.color-executive-clean .thumbnail-image { filter: saturate(1.06) contrast(1.06) brightness(1.03); }
.seamless-stage.color-premium-film .seamless-media,
.thumbnail-stage.color-premium-film .thumbnail-image { filter: sepia(.10) saturate(1.08) contrast(1.10) brightness(1.02); }
.seamless-stage.color-luxury-gold .seamless-media,
.thumbnail-stage.color-luxury-gold .thumbnail-image { filter: sepia(.18) saturate(1.18) contrast(1.08) brightness(1.04); }
.seamless-stage.color-real-estate-bright .seamless-media,
.thumbnail-stage.color-real-estate-bright .thumbnail-image { filter: saturate(1.12) contrast(1.02) brightness(1.12); }
.seamless-stage.color-food-pop .seamless-media,
.thumbnail-stage.color-food-pop .thumbnail-image { filter: saturate(1.42) contrast(1.09) brightness(1.05); }
.seamless-stage.color-beauty-soft .seamless-media,
.thumbnail-stage.color-beauty-soft .thumbnail-image { filter: saturate(1.08) contrast(.98) brightness(1.07); }
.seamless-stage.color-documentary .seamless-media,
.thumbnail-stage.color-documentary .thumbnail-image { filter: contrast(1.12) saturate(.94) brightness(1.01); }
.seamless-stage.color-luxury-bw .seamless-media,
.thumbnail-stage.color-luxury-bw .thumbnail-image { filter: grayscale(1) contrast(1.18) brightness(1.03); }

.seamless-stage.color-executive-clean .cinema-glow { opacity: .24; }
.seamless-stage.color-premium-film .cinema-vignette { opacity: .72; }
.seamless-stage.color-luxury-gold .cinema-glow { opacity: .44; }
.seamless-stage.color-real-estate-bright .cinema-vignette { opacity: .36; }
.seamless-stage.color-food-pop .cinema-glow { opacity: .32; }
.seamless-stage.color-documentary .film-grain { opacity: .18; }
.seamless-stage.color-luxury-bw .film-grain { opacity: .22; }

.seamless-stage.camera-product.playing .seamless-main { animation: cameraProductShowcase 5.6s ease-in-out infinite alternate; }
.seamless-stage.camera-real-estate.playing .seamless-main { animation: cameraRealEstateGlide 8s ease-in-out infinite alternate; }
.seamless-stage.camera-interview.playing .seamless-main { animation: cameraInterviewClean 7s ease-in-out infinite alternate; }
@keyframes cameraProductShowcase { from{ transform:perspective(900px) rotateY(-.8deg) scale(1.01) } to{ transform:perspective(900px) rotateY(1.2deg) scale(1.05) translateY(-.3%) } }
@keyframes cameraRealEstateGlide { from{ transform:scale(1.01) translateX(-.55%) } to{ transform:scale(1.045) translateX(.65%) } }
@keyframes cameraInterviewClean { from{ transform:scale(1.005) } to{ transform:scale(1.025) translateY(-.18%) } }

.seamless-stage.anim-hero-push .cinema-glow { opacity: .36; }
.seamless-stage.anim-clean-reveal .film-grain { opacity: .08; }
.seamless-stage.anim-product-showcase .studio-frame { border-color: rgba(255,255,255,.28); }
.seamless-stage.anim-gallery-flow .cinema-bars span { height: 7%; }
.seamless-stage.trans-premium-fade .cinema-glow { opacity: .34; }
.seamless-stage.trans-lens-blur .seamless-layer { filter: blur(.65px) saturate(1.06); }
.seamless-stage.trans-split-reveal .studio-frame { inset: 10px; border-style: solid; }

/* Keep removed effects impossible to display from old cached selections. */
.seamless-stage.fx-smoke .studio-fx,
.seamless-stage.fx-lightning .studio-fx,
.seamless-stage.fx-sparks .studio-fx {
  display: none !important;
  opacity: 0 !important;
}

/* v98: polished picstagram.com watermark and single-position caption guard */
.picstagram-watermark {
  position: absolute;
  right: clamp(10px, 3.8%, 20px);
  bottom: clamp(10px, 3.2%, 18px);
  z-index: 26;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.56rem;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(0.66rem, 2.2vw, 0.82rem);
  line-height: 1;
  letter-spacing: -0.015em;
  background:
    linear-gradient(120deg, rgba(99,102,241,0.88), rgba(236,72,153,0.82) 52%, rgba(14,165,233,0.78)),
    rgba(2,6,23,0.62);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 10px 26px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.24);
  backdrop-filter: blur(12px) saturate(1.25);
  pointer-events: none;
  user-select: none;
}

.picstagram-watermark strong {
  font-weight: 900;
  text-transform: lowercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.32);
}

.picstagram-mark {
  width: 1.05em;
  height: 1.05em;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

.picstagram-mark i {
  width: 0.44em;
  height: 0.44em;
  display: block;
  border-radius: 50%;
  background: linear-gradient(135deg, #111827, #4338ca 48%, #db2777);
}

.seamless-stage .movie-caption {
  display: none !important;
}

.seamless-stage.cap-pos-bottom .seamless-caption,
.movie-stage.cap-pos-bottom .movie-caption {
  top: auto !important;
  bottom: clamp(42px, 7%, 64px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  text-align: left !important;
}

.seamless-stage.cap-pos-top .seamless-caption,
.movie-stage.cap-pos-top .movie-caption {
  top: clamp(18px, 4%, 34px) !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.seamless-stage.cap-pos-center .seamless-caption,
.movie-stage.cap-pos-center .movie-caption {
  top: 50% !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
}

.seamless-stage .seamless-captions .seamless-caption {
  max-height: 18% !important;
  z-index: 24;
}

.seamless-stage.cap-toggle-off .seamless-captions,
.seamless-stage.cap-toggle-off .seamless-caption,
.movie-stage.cap-toggle-off .movie-caption {
  display: none !important;
}

@media (max-width: 620px) {
  .picstagram-watermark {
    right: 10px;
    bottom: 10px;
    font-size: 0.66rem;
    padding: 0.34rem 0.48rem;
  }
  .seamless-stage.cap-pos-bottom .seamless-caption,
  .movie-stage.cap-pos-bottom .movie-caption {
    bottom: 44px !important;
  }
}

/* v99: Director save workflow, single-caption guard, and text-only watermark */
.director-save-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.director-save-card strong { display:block; color:#fff; font-weight:900; letter-spacing:-0.02em; }
.director-save-card small { display:block; margin-top:0.22rem; color:rgba(255,255,255,0.68); line-height:1.35; }
.director-save-card.saved { border-color: rgba(52,211,153,0.38); background: rgba(52,211,153,0.08); }
.director-save-card.dirty { border-color: rgba(251,191,36,0.32); background: rgba(251,191,36,0.07); }
.director-save-card .btn[disabled] { opacity:0.55; cursor:not-allowed; transform:none; }

.seamless-stage .seamless-caption:not(.single-live-caption) { display:none !important; }
.seamless-stage .single-live-caption {
  display:block !important;
  opacity:1 !important;
  animation: singleCaptionRefresh .42s ease both !important;
  z-index: 28 !important;
}
.seamless-stage.cap-pos-bottom .single-live-caption,
.movie-stage.cap-pos-bottom .single-live-caption {
  top:auto !important;
  bottom:clamp(42px, 7%, 64px) !important;
  left:50% !important;
  transform:translateX(-50%) !important;
}
.seamless-stage.cap-pos-center .single-live-caption,
.movie-stage.cap-pos-center .single-live-caption {
  top:50% !important;
  bottom:auto !important;
  left:50% !important;
  transform:translate(-50%, -50%) !important;
  text-align:center !important;
}
.seamless-stage.cap-pos-top .single-live-caption,
.movie-stage.cap-pos-top .single-live-caption {
  top:clamp(18px, 4%, 34px) !important;
  bottom:auto !important;
  left:50% !important;
  transform:translateX(-50%) !important;
}
@keyframes singleCaptionRefresh { from { opacity:0; transform:translateX(-50%) translateY(8px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
.seamless-stage.cap-pos-center .single-live-caption { animation-name: singleCaptionRefreshCenter !important; }
@keyframes singleCaptionRefreshCenter { from { opacity:0; transform:translate(-50%, calc(-50% + 8px)); } to { opacity:1; transform:translate(-50%, -50%); } }

.picstagram-watermark.picstagram-watermark-text,
.picstagram-watermark {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  right: clamp(12px, 4%, 22px) !important;
  bottom: clamp(12px, 3.5%, 20px) !important;
  color: rgba(255,255,255,0.92) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.72), 0 1px 2px rgba(0,0,0,0.9);
  letter-spacing: -0.02em;
}
.picstagram-watermark strong {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900 !important;
  font-size: clamp(0.72rem, 2.3vw, 0.9rem);
  text-transform: lowercase;
  border-bottom: 1px solid rgba(255,255,255,0.62);
  padding-bottom: 0.04em;
}
.picstagram-mark { display:none !important; }

@media (max-width: 700px) {
  .director-save-card { flex-direction: column; align-items: stretch; }
}


/* v100: single caption hard lock + local recorder image reliability */
.preview-stage .auto-caption,
.preview-stage .preview-caption,
.preview-stage .movie-caption,
.preview-stage .seamless-captions {
  display: none !important;
}
.preview-stage .single-live-caption#livePreviewCaption {
  display: grid !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 40 !important;
  width: min(82%, 560px) !important;
  max-height: 18% !important;
  overflow: hidden !important;
}
.preview-stage.cap-toggle-off .single-live-caption#livePreviewCaption {
  display: none !important;
}
.preview-stage.cap-pos-bottom .single-live-caption#livePreviewCaption {
  top: auto !important;
  bottom: clamp(42px, 7%, 64px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
.preview-stage.cap-pos-center .single-live-caption#livePreviewCaption {
  top: 50% !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
}
.preview-stage.cap-pos-top .single-live-caption#livePreviewCaption {
  top: clamp(18px, 4%, 34px) !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
.thumb[data-kind="gif"]::after {
  content: "GIF";
}


/* v101: record preview button is available after media upload; actions auto-save the Director's Cut if needed */
#localRecordBtn:not(:disabled),
#generateBtn:not(:disabled) {
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#localRecordBtn:disabled,
#generateBtn:disabled {
  cursor: not-allowed !important;
  opacity: 0.58 !important;
}
.preview-stage .auto-caption,
.preview-stage .preview-caption,
.preview-stage .movie-caption,
.preview-stage .seamless-captions {
  display: none !important;
}
.preview-stage #livePreviewCaption.single-live-caption {
  display: grid !important;
}

/* v102: hard caption lock + GIF upload disabled */
#previewStage.preview-stage .auto-caption,
#previewStage.preview-stage .preview-caption,
#previewStage.preview-stage .movie-caption,
#previewStage.preview-stage .seamless-captions,
#previewStage.preview-stage .caption-0,
#previewStage.preview-stage .caption-1,
#previewStage.preview-stage .caption-2,
#previewStage.preview-stage [data-caption-layer],
#previewStage.preview-stage [class*="legacy-caption"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

#previewStage.preview-stage .seamless-caption:not(#livePreviewCaption) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

#previewStage.preview-stage #livePreviewCaption.single-live-caption {
  position: absolute !important;
  right: auto !important;
  width: min(82%, 560px) !important;
  max-height: 18% !important;
  overflow: hidden !important;
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 60 !important;
  animation: none !important;
}

#previewStage.preview-stage.cap-pos-bottom #livePreviewCaption.single-live-caption,
#previewStage.preview-stage #livePreviewCaption.single-live-caption.caption-position-bottom {
  inset: auto auto clamp(42px, 7%, 64px) 50% !important;
  transform: translateX(-50%) !important;
  text-align: left !important;
}

#previewStage.preview-stage.cap-pos-center #livePreviewCaption.single-live-caption,
#previewStage.preview-stage #livePreviewCaption.single-live-caption.caption-position-center {
  inset: 50% auto auto 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
}

#previewStage.preview-stage.cap-pos-top #livePreviewCaption.single-live-caption,
#previewStage.preview-stage #livePreviewCaption.single-live-caption.caption-position-top {
  inset: clamp(18px, 4%, 34px) auto auto 50% !important;
  transform: translateX(-50%) !important;
  text-align: left !important;
}

#previewStage.preview-stage.cap-toggle-off #livePreviewCaption.single-live-caption {
  display: none !important;
  visibility: hidden !important;
}

.thumb[data-kind="gif"]::after { content: "" !important; display: none !important; }

/* v104: real single-caption renderer. Old caption classes are removed in JS; this style uses a new class name so legacy CSS cannot place a second caption in the center. */
#previewStage.preview-stage .auto-caption,
#previewStage.preview-stage .preview-caption,
#previewStage.preview-stage .movie-caption,
#previewStage.preview-stage .seamless-captions,
#previewStage.preview-stage .seamless-caption,
#previewStage.preview-stage [data-caption-layer],
#previewStage.preview-stage [class*="legacy-caption"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

#previewStage.preview-stage #directorCaptionLayer.director-caption-layer {
  position: absolute !important;
  right: auto !important;
  width: min(82%, 560px) !important;
  max-width: calc(100% - 32px) !important;
  max-height: 18% !important;
  overflow: hidden !important;
  display: grid !important;
  gap: 0.14rem !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 90 !important;
  animation: none !important;
  box-sizing: border-box !important;
  padding: 0.46rem 0.64rem !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(8,8,18,0.22), rgba(8,8,18,0.62)) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.86) !important;
}

#previewStage.preview-stage #directorCaptionLayer.director-caption-layer strong,
#previewStage.preview-stage #directorCaptionLayer.director-caption-layer small {
  display: block !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

#previewStage.preview-stage #directorCaptionLayer.director-caption-layer strong {
  font-size: clamp(0.82rem, 2vw, 1.02rem) !important;
  font-weight: 800 !important;
}

#previewStage.preview-stage #directorCaptionLayer.director-caption-layer small {
  font-size: clamp(0.7rem, 1.6vw, 0.86rem) !important;
  font-weight: 500 !important;
  opacity: 0.9 !important;
}

#previewStage.preview-stage #directorCaptionLayer.director-caption-layer[data-position="bottom"] {
  inset: auto auto clamp(42px, 7%, 64px) 50% !important;
  transform: translateX(-50%) !important;
  text-align: left !important;
}

#previewStage.preview-stage #directorCaptionLayer.director-caption-layer[data-position="center"] {
  inset: 50% auto auto 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
}

#previewStage.preview-stage #directorCaptionLayer.director-caption-layer[data-position="top"] {
  inset: clamp(18px, 4%, 34px) auto auto 50% !important;
  transform: translateX(-50%) !important;
  text-align: left !important;
}

#previewStage.preview-stage.cap-toggle-off #directorCaptionLayer.director-caption-layer {
  display: none !important;
  visibility: hidden !important;
}


/* v104: keep Final MP4 action clickable after media upload; auto-save settings on click. */
#exportVideoBtn:not(:disabled) {
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#exportVideoBtn:disabled {
  cursor: not-allowed !important;
  opacity: 0.58 !important;
}

.fx-presets { margin-top: 10px; }
.fx-chip { border-color: rgba(124, 58, 237, .25); }

/* v106 Director's Cut Pro: business FX packs, smart FX timing, premium intro/outro animations */
.pack-chip { border-color: rgba(14, 165, 233, .28); }
.intro-chip, .outro-chip { border-color: rgba(245, 158, 11, .30); }
.fx-chip.smart { border-color: rgba(236, 72, 153, .35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 26px rgba(124,58,237,.14); }
.fx-pack-presets, .intro-outro-presets { margin-top: 10px; }

.seamless-stage .intro-fx-layer,
.seamless-stage .outro-fx-layer {
  position: absolute;
  inset: 0;
  z-index: 38;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

.seamless-stage.features-off .intro-fx-layer,
.seamless-stage.features-off .outro-fx-layer,
.seamless-stage.intro-none .intro-fx-layer,
.seamless-stage.outro-none .outro-fx-layer { display: none; }

.seamless-stage.fx-light-sweep .studio-fx,
.seamless-stage.fx-hologram .studio-fx,
.seamless-stage.fx-prism .studio-fx,
.seamless-stage.fx-vhs-clean .studio-fx,
.seamless-stage.fx-golden-hour .studio-fx,
.seamless-stage.fx-ink-reveal .studio-fx,
.seamless-stage.fx-cinema-fog .studio-fx { opacity: 1; }

.seamless-stage.fx-light-sweep .studio-fx::before,
.seamless-stage.fx-prism .studio-fx::before,
.seamless-stage.fx-golden-hour .studio-fx::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.20) 45%, transparent 62%);
  transform: translateX(-48%) rotate(0deg);
  mix-blend-mode: screen;
}
.seamless-stage.playing.fx-light-sweep .studio-fx::before,
.seamless-stage.playing.fx-prism .studio-fx::before,
.seamless-stage.playing.fx-golden-hour .studio-fx::before { animation: proLightSweep 4.8s ease-in-out infinite; }

.seamless-stage.fx-hologram .studio-fx::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.10) 0 1px, transparent 1px 10px);
  mix-blend-mode: screen;
  opacity: .58;
}
.seamless-stage.playing.fx-hologram .studio-fx::before { animation: holoScan 2.2s linear infinite; }

.seamless-stage.fx-vhs-clean .studio-fx::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 20%;
  background: rgba(255,255,255,.45);
  box-shadow: 0 0 18px rgba(255,255,255,.35);
}
.seamless-stage.playing.fx-vhs-clean .studio-fx::before { animation: cleanVhsScan 3.2s linear infinite; }

.seamless-stage.fx-cinema-fog .studio-fx i,
.seamless-stage.fx-ink-reveal .studio-fx i {
  width: clamp(70px, 18vw, 170px);
  height: clamp(70px, 18vw, 170px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 68%);
  filter: blur(14px);
  mix-blend-mode: screen;
}
.seamless-stage.playing.fx-cinema-fog .studio-fx i { animation: proFogDrift 8s ease-in-out infinite; animation-delay: calc(var(--i) * -.35s); }
.seamless-stage.playing.fx-ink-reveal .studio-fx i { animation: inkRevealFloat 5.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.24s); }

.seamless-stage.fxtime-intro .studio-fx { animation: fxIntroOnly var(--dur, 12s) linear infinite; }
.seamless-stage.fxtime-ending .studio-fx { animation: fxEndingOnly var(--dur, 12s) linear infinite; }
.seamless-stage.fxtime-middle .studio-fx { animation: fxMiddleOnly var(--dur, 12s) linear infinite; }
.seamless-stage.fxtime-intro-outro .studio-fx { animation: fxIntroOutroOnly var(--dur, 12s) linear infinite; }

.seamless-stage.fxint-bold .studio-fx { opacity: 1; filter: saturate(1.18) contrast(1.04); }

.seamless-stage.intro-director-clap .intro-fx-layer,
.seamless-stage.intro-camera-flash .intro-fx-layer,
.seamless-stage.intro-cinematic-doors .intro-fx-layer,
.seamless-stage.intro-brick-break .intro-fx-layer,
.seamless-stage.intro-glass-shatter .intro-fx-layer,
.seamless-stage.intro-logo-reveal .intro-fx-layer,
.seamless-stage.intro-spotlight-open .intro-fx-layer {
  opacity: 1;
  animation: introLayerFade 2.4s ease forwards;
}

.seamless-stage.outro-website-card .outro-fx-layer,
.seamless-stage.outro-director-slate .outro-fx-layer,
.seamless-stage.outro-brick-break .outro-fx-layer,
.seamless-stage.outro-glass-shatter .outro-fx-layer,
.seamless-stage.outro-curtain-close .outro-fx-layer,
.seamless-stage.outro-subscribe-card .outro-fx-layer,
.seamless-stage.outro-fade-brand .outro-fx-layer {
  opacity: 1;
  animation: outroLayerPulse var(--dur, 14s) ease-in-out infinite;
}

.seamless-stage.intro-director-clap .intro-fx-layer::before,
.seamless-stage.outro-director-slate .outro-fx-layer::before {
  content: "PICSTAGRAM DIRECTOR'S CUT";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  padding: clamp(12px, 3vw, 24px);
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(135deg, rgba(2,6,23,.94), rgba(15,23,42,.80));
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
  transform-origin: top left;
  animation: clapperDrop 2s ease forwards;
}

.seamless-stage.intro-camera-flash .intro-fx-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.92);
  animation: flashOut 1.4s ease forwards;
}

.seamless-stage.intro-cinematic-doors .intro-fx-layer::before,
.seamless-stage.intro-cinematic-doors .intro-fx-layer::after,
.seamless-stage.outro-curtain-close .outro-fx-layer::before,
.seamless-stage.outro-curtain-close .outro-fx-layer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: rgba(0,0,0,.88);
}
.seamless-stage.intro-cinematic-doors .intro-fx-layer::before { left: 0; animation: doorLeftOpen 2.2s ease forwards; }
.seamless-stage.intro-cinematic-doors .intro-fx-layer::after { right: 0; animation: doorRightOpen 2.2s ease forwards; }
.seamless-stage.outro-curtain-close .outro-fx-layer::before { left: 0; animation: doorLeftClose var(--dur, 14s) ease-in-out infinite; }
.seamless-stage.outro-curtain-close .outro-fx-layer::after { right: 0; animation: doorRightClose var(--dur, 14s) ease-in-out infinite; }

.seamless-stage.intro-brick-break .intro-fx-layer b,
.seamless-stage.outro-brick-break .outro-fx-layer b {
  position: absolute;
  width: 34%;
  height: 20%;
  background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(30,41,59,.78));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(1), .seamless-stage.outro-brick-break .outro-fx-layer b:nth-child(1) { left: 0; top: 0; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(2), .seamless-stage.outro-brick-break .outro-fx-layer b:nth-child(2) { left: 33%; top: 0; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(3), .seamless-stage.outro-brick-break .outro-fx-layer b:nth-child(3) { right: 0; top: 0; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(4), .seamless-stage.outro-brick-break .outro-fx-layer b:nth-child(4) { left: 0; top: 20%; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(5) { left: 33%; top: 20%; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(6) { right: 0; top: 20%; }
.seamless-stage.intro-brick-break .intro-fx-layer b { animation: brickBreak 2.4s ease forwards; animation-delay: calc(var(--i, 1) * .04s); }
.seamless-stage.outro-brick-break .outro-fx-layer b { animation: brickOutro var(--dur, 14s) ease-in-out infinite; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(1), .seamless-stage.outro-brick-break .outro-fx-layer b:nth-child(1) { --i:1; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(2), .seamless-stage.outro-brick-break .outro-fx-layer b:nth-child(2) { --i:2; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(3), .seamless-stage.outro-brick-break .outro-fx-layer b:nth-child(3) { --i:3; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(4), .seamless-stage.outro-brick-break .outro-fx-layer b:nth-child(4) { --i:4; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(5), .seamless-stage.outro-brick-break .outro-fx-layer b:nth-child(5) { --i:5; }
.seamless-stage.intro-brick-break .intro-fx-layer b:nth-child(6), .seamless-stage.outro-brick-break .outro-fx-layer b:nth-child(6) { --i:6; }

.seamless-stage.intro-glass-shatter .intro-fx-layer::before,
.seamless-stage.outro-glass-shatter .outro-fx-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 20deg at 50% 50%, transparent, rgba(255,255,255,.22), transparent, rgba(255,255,255,.18), transparent);
  clip-path: polygon(50% 50%, 64% 0, 69% 41%, 100% 18%, 74% 57%, 100% 100%, 56% 70%, 39% 100%, 43% 61%, 0 80%, 32% 49%, 0 22%, 39% 38%);
  animation: shatterPop 2.1s ease forwards;
}

.seamless-stage.intro-logo-reveal .intro-fx-layer span,
.seamless-stage.outro-website-card .outro-fx-layer strong,
.seamless-stage.outro-subscribe-card .outro-fx-layer strong,
.seamless-stage.outro-fade-brand .outro-fx-layer strong,
.seamless-stage.outro-director-slate .outro-fx-layer strong {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 900;
  font-size: clamp(24px, 6vw, 58px);
  letter-spacing: .02em;
  text-shadow: 0 16px 42px rgba(0,0,0,.55);
  white-space: nowrap;
}
.seamless-stage.outro-fx-layer small,
.seamless-stage .outro-fx-layer small {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.78);
  font-size: clamp(12px, 2.5vw, 20px);
}
.seamless-stage.intro-logo-reveal .intro-fx-layer span { animation: logoReveal 2.1s ease forwards; }

.seamless-stage.intro-spotlight-open .intro-fx-layer::before {
  content: '';
  position: absolute;
  inset: -5%;
  background: radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(0,0,0,.82) 38%, rgba(0,0,0,.95) 100%);
  animation: spotlightOpen 2.2s ease forwards;
}

#previewStage.preview-stage.cap-lower-third #directorCaptionLayer.director-caption-layer,
#previewStage.preview-stage.cap-news #directorCaptionLayer.director-caption-layer,
#previewStage.preview-stage.cap-price-tag #directorCaptionLayer.director-caption-layer,
#previewStage.preview-stage.cap-testimonial #directorCaptionLayer.director-caption-layer {
  background: rgba(2,6,23,.70);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 14px 18px;
  backdrop-filter: blur(12px);
}
#previewStage.preview-stage.cap-price-tag #directorCaptionLayer.director-caption-layer { border-radius: 999px; width: auto; min-width: min(72%, 460px); text-align: center; }
#previewStage.preview-stage.cap-kinetic #directorCaptionLayer.director-caption-layer strong { animation: captionKinetic 1.4s ease-in-out infinite; }
#previewStage.preview-stage.cap-typewriter-pro #directorCaptionLayer.director-caption-layer strong { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 100%; animation: typewriterPro 3.2s steps(28,end) infinite alternate; }
#previewStage.preview-stage.cap-testimonial #directorCaptionLayer.director-caption-layer strong::before { content: '“'; opacity: .8; margin-right: 4px; }
#previewStage.preview-stage.cap-testimonial #directorCaptionLayer.director-caption-layer strong::after { content: '”'; opacity: .8; margin-left: 4px; }

@keyframes proLightSweep { 0% { transform: translateX(-58%) rotate(0deg); opacity: 0; } 20%,70% { opacity: 1; } 100% { transform: translateX(58%) rotate(0deg); opacity: 0; } }
@keyframes holoScan { 0% { transform: translateY(-12px); } 100% { transform: translateY(12px); } }
@keyframes cleanVhsScan { 0% { top: -5%; opacity: 0; } 20%,80% { opacity: .9; } 100% { top: 105%; opacity: 0; } }
@keyframes proFogDrift { 0%,100% { transform: translate3d(-4%, 2%, 0) scale(.95); opacity: .35; } 50% { transform: translate3d(7%, -5%, 0) scale(1.15); opacity: .70; } }
@keyframes inkRevealFloat { 0% { transform: scale(.25); opacity: .05; } 45% { opacity: .45; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes fxIntroOnly { 0%,22% { opacity: 1; } 28%,100% { opacity: 0; } }
@keyframes fxEndingOnly { 0%,72% { opacity: 0; } 80%,100% { opacity: 1; } }
@keyframes fxMiddleOnly { 0%,28%,76%,100% { opacity: 0; } 38%,64% { opacity: 1; } }
@keyframes fxIntroOutroOnly { 0%,18%,82%,100% { opacity: 1; } 28%,72% { opacity: 0; } }
@keyframes introLayerFade { 0% { opacity: 1; } 78% { opacity: .92; } 100% { opacity: 0; visibility: hidden; } }
@keyframes outroLayerPulse { 0%,72% { opacity: 0; } 82%,100% { opacity: 1; } }
@keyframes clapperDrop { 0% { transform: rotate(-14deg) translateY(-120%); } 38% { transform: rotate(-4deg) translateY(0); } 100% { transform: rotate(0deg) translateY(-3%); opacity: 0; } }
@keyframes flashOut { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes doorLeftOpen { 0% { transform: translateX(0); } 100% { transform: translateX(-105%); } }
@keyframes doorRightOpen { 0% { transform: translateX(0); } 100% { transform: translateX(105%); } }
@keyframes doorLeftClose { 0%,78% { transform: translateX(-105%); } 100% { transform: translateX(0); } }
@keyframes doorRightClose { 0%,78% { transform: translateX(105%); } 100% { transform: translateX(0); } }
@keyframes brickBreak { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(calc((var(--i) - 3.5) * 34%), 55%) rotate(calc((var(--i) - 3) * 12deg)); opacity: 0; } }
@keyframes brickOutro { 0%,74% { opacity: 0; transform: translateY(26%); } 90%,100% { opacity: 1; transform: translateY(0); } }
@keyframes shatterPop { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes logoReveal { 0% { opacity: 0; filter: blur(16px); transform: translate(-50%,-50%) scale(.82); } 45% { opacity: 1; filter: blur(0); transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.08); } }
@keyframes spotlightOpen { 0% { transform: scale(.72); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes captionKinetic { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes typewriterPro { from { max-width: 12%; } to { max-width: 100%; } }

/* v107 homepage hero: sliding phone feature showcase */
:root { --max: 1360px; }
.home-hero-v107 {
  grid-template-columns: minmax(0, 0.95fr) minmax(560px, 1.15fr);
  gap: clamp(2.2rem, 4vw, 4.8rem);
  min-height: calc(100vh - 72px);
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
  position: relative;
}
.home-hero-v107::before {
  content: "";
  position: absolute;
  inset: auto -6vw 5% 38%;
  height: 36%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, .19), rgba(139,92,246,.16) 42%, transparent 70%);
  filter: blur(8px);
  opacity: .95;
}
.home-hero-v107 .hero-copy { position: relative; z-index: 3; }
.gradient-text {
  display: inline-block;
  background: linear-gradient(135deg, #f472ff 0%, #8b5cf6 38%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 44px rgba(139,92,246,.22);
}
.home-hero-v107 .hero-text {
  max-width: 620px;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.65;
}
.hero-primary { gap: .65rem; min-width: 210px; }
.hero-badges span { backdrop-filter: blur(16px); }
.hero-social-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.55rem;
  color: rgba(248,250,252,.82);
  font-size: .95rem;
}
.avatar-stack { display: inline-flex; align-items: center; padding-right: .25rem; }
.avatar-stack i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(236,72,153,.85), rgba(34,211,238,.78));
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
  font-size: .72rem;
  font-weight: 900;
  margin-left: -7px;
  font-style: normal;
}
.avatar-stack i:first-child { margin-left: 0; }
.avatar-stack i:nth-child(2) { background: linear-gradient(135deg, rgba(34,211,238,.72), rgba(139,92,246,.85)); }
.avatar-stack i:nth-child(3) { background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(139,92,246,.7)); }
.avatar-stack i:nth-child(4) { background: rgba(255,255,255,.1); }
.stars { color: #facc15; letter-spacing: .08em; }

.hero-feature-showcase {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 1600px;
}
.hero-phone-aura {
  position: absolute;
  width: min(760px, 98vw);
  height: min(580px, 70vw);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 70%, rgba(236,72,153,.28), transparent 28%),
    radial-gradient(circle at 78% 56%, rgba(34,211,238,.32), transparent 31%),
    radial-gradient(circle at 50% 50%, rgba(139,92,246,.2), transparent 62%);
  filter: blur(22px);
  transform: translateY(12%);
  opacity: .98;
  z-index: -3;
}
.feature-phone {
  width: min(430px, 80vw);
  height: min(740px, 138vw);
  max-height: 78vh;
  min-height: 590px;
  border-radius: 52px;
  border: 1px solid rgba(255,255,255,.28);
  background:
    linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.04) 18%, rgba(4,6,18,.96) 48%, rgba(3,7,18,.98)),
    radial-gradient(circle at 50% 0%, rgba(139,92,246,.32), transparent 40%);
  box-shadow:
    0 34px 90px rgba(0,0,0,.45),
    inset 0 0 0 9px rgba(0,0,0,.64),
    inset 0 0 0 11px rgba(255,255,255,.06),
    0 0 70px rgba(139,92,246,.2);
  position: relative;
  overflow: visible;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.feature-phone::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -34px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(236,72,153,.42), rgba(34,211,238,.46), transparent);
  filter: blur(16px);
  opacity: .82;
  z-index: -2;
}
.phone-hardware-glow {
  position: absolute;
  inset: 16px;
  border-radius: 39px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 26%, rgba(139,92,246,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  box-shadow: inset 0 0 70px rgba(34,211,238,.06);
  overflow: hidden;
}
.phone-hardware-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.25) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.18) 0 1px, transparent 1px);
  background-size: 90px 110px, 120px 120px;
  opacity: .18;
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  border-radius: 999px;
  background: #03030a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  z-index: 20;
}
.phone-speaker-dot {
  position: absolute;
  top: 35px;
  left: calc(50% + 42px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #1d4ed8, #020617 70%);
  z-index: 21;
}
.feature-slider {
  position: absolute;
  inset: 72px 0 92px;
  overflow: visible;
  transform-style: preserve-3d;
  pointer-events: auto;
}
.feature-slide {
  --card-w: clamp(158px, 16vw, 230px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  min-height: 410px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  padding: 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.035)),
    radial-gradient(circle at 50% 5%, rgba(139,92,246,.42), transparent 48%),
    rgba(8,10,25,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 60px rgba(0,0,0,.36);
  transform: translate(-50%, -50%) scale(.68) translateX(0) rotateY(0deg);
  opacity: 0;
  transition: transform .72s cubic-bezier(.2,.9,.22,1), opacity .45s ease, filter .45s ease, border-color .45s ease;
  filter: saturate(.85) brightness(.78);
  will-change: transform, opacity;
}
.feature-slide h3 {
  margin: .55rem 0 .72rem;
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
  line-height: 1.18;
  letter-spacing: -.045em;
}
.feature-slide p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .92rem;
  line-height: 1.45;
}
.feature-number {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: .86rem;
}
.feature-slide.is-active {
  transform: translate(-50%, -50%) translateX(0) translateZ(72px) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 9;
  border-color: rgba(255,255,255,.45);
  background:
    linear-gradient(160deg, rgba(236,72,153,.58), rgba(139,92,246,.52) 48%, rgba(29,78,216,.36)),
    rgba(8,10,25,.9);
  box-shadow: 0 0 0 1px rgba(236,72,153,.25), 0 28px 70px rgba(0,0,0,.44), 0 0 52px rgba(168,85,247,.46);
  filter: saturate(1.18) brightness(1.08);
}
.feature-slide.is-prev {
  transform: translate(-50%, -50%) translateX(-225px) translateZ(8px) scale(.88) rotateY(-16deg);
  opacity: .86;
  z-index: 6;
}
.feature-slide.is-next {
  transform: translate(-50%, -50%) translateX(225px) translateZ(8px) scale(.88) rotateY(16deg);
  opacity: .86;
  z-index: 6;
}
.feature-slide.is-far-left {
  transform: translate(-50%, -50%) translateX(-390px) translateZ(-48px) scale(.72) rotateY(-22deg);
  opacity: .54;
  z-index: 3;
}
.feature-slide.is-far-right {
  transform: translate(-50%, -50%) translateX(390px) translateZ(-48px) scale(.72) rotateY(22deg);
  opacity: .54;
  z-index: 3;
}
.feature-slide.is-back-left {
  transform: translate(-50%, -50%) translateX(-520px) translateZ(-120px) scale(.6) rotateY(-26deg);
  opacity: .22;
  z-index: 1;
}
.feature-slide.is-back-right {
  transform: translate(-50%, -50%) translateX(520px) translateZ(-120px) scale(.6) rotateY(26deg);
  opacity: .22;
  z-index: 1;
}
.mood-orb {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  margin: 1.3rem auto .55rem;
  background: radial-gradient(circle at 45% 38%, rgba(255,255,255,.9), rgba(236,72,153,.45) 42%, rgba(124,58,237,.42) 70%, rgba(34,211,238,.18));
  box-shadow: 0 0 44px rgba(236,72,153,.42), inset 0 0 24px rgba(255,255,255,.18);
  font-size: 3.4rem;
}
.wave-line {
  width: 100%;
  height: 34px;
  margin: .15rem 0 .6rem;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent) center/100% 2px no-repeat;
  position: relative;
  overflow: hidden;
  opacity: .8;
}
.wave-line::before {
  content: "";
  position: absolute;
  inset: 8px 0;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.95) 8px 10px, transparent 10px 20px);
  clip-path: polygon(0 48%, 7% 34%, 14% 52%, 22% 25%, 31% 58%, 40% 43%, 52% 72%, 61% 35%, 73% 57%, 83% 28%, 92% 60%, 100% 46%, 100% 100%, 0 100%);
  animation: waveShift 2.8s linear infinite;
}
@keyframes waveShift { to { transform: translateX(-28px); } }
.feature-status {
  margin-top: auto;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.22);
  padding: .55rem 1rem;
  font-size: .86rem;
}
.clapper-icon, .play-tile, .intro-grid-icon {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  margin: auto auto 0;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 24px rgba(255,255,255,.04);
}
.clapper-icon { position: relative; overflow: hidden; }
.clapper-icon span {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 20px;
  height: 24px;
  transform: rotate(-14deg);
  transform-origin: left center;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.92) 0 14px, rgba(255,255,255,.16) 14px 28px);
  border-radius: 4px;
}
.clapper-icon b,
.clapper-icon i {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: rgba(255,255,255,.38);
  bottom: 28px;
}
.clapper-icon i { bottom: 43px; }
.play-tile {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.1rem;
  background: linear-gradient(135deg, rgba(29,78,216,.4), rgba(139,92,246,.42));
  box-shadow: 0 0 34px rgba(34,211,238,.16);
}
.flare-star {
  width: 130px;
  height: 130px;
  margin: auto auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.96), rgba(250,204,21,.55) 8%, rgba(236,72,153,.22) 18%, transparent 36%),
    conic-gradient(from 0deg, transparent 0 15%, rgba(255,255,255,.75) 16%, transparent 18% 50%, rgba(255,255,255,.75) 52%, transparent 54% 100%);
  filter: drop-shadow(0 0 22px rgba(250,204,21,.45));
  animation: flarePulse 3s ease-in-out infinite;
}
@keyframes flarePulse { 50% { transform: scale(1.08) rotate(12deg); opacity: .82; } }
.intro-grid-icon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 13px;
}
.intro-grid-icon span {
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139,92,246,.65), rgba(34,211,238,.2));
  border: 1px solid rgba(255,255,255,.12);
}
.phone-carousel-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 30;
  display: grid;
  gap: 1.05rem;
  place-items: center;
  pointer-events: auto;
}
.home-feature-dots { display: flex; gap: .7rem; }
.home-feature-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  box-shadow: none;
  cursor: pointer;
}
.home-feature-dot.is-active {
  width: 26px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #22d3ee);
  box-shadow: 0 0 18px rgba(139,92,246,.64);
}
.swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,.55);
  font-size: .86rem;
}
.feature-arrow {
  width: 38px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.8);
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.feature-arrow:hover {
  color: white;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
}

@media (max-width: 1180px) {
  .home-hero-v107 { grid-template-columns: 1fr; text-align: left; }
  .hero-feature-showcase { min-height: 620px; margin-top: 1rem; }
  .feature-phone { width: min(410px, 76vw); }
}
@media (max-width: 760px) {
  .home-hero-v107 { padding-top: 2.6rem; }
  .hero-social-proof { align-items: flex-start; }
  .hero-feature-showcase { min-height: 560px; overflow: hidden; }
  .feature-phone { width: min(360px, 88vw); min-height: 520px; height: 590px; max-height: none; border-radius: 42px; }
  .feature-slider { inset: 66px 0 88px; }
  .feature-slide { --card-w: 190px; min-height: 350px; padding: 1.05rem .9rem; }
  .feature-slide.is-prev { transform: translate(-50%, -50%) translateX(-170px) translateZ(0) scale(.78) rotateY(-14deg); }
  .feature-slide.is-next { transform: translate(-50%, -50%) translateX(170px) translateZ(0) scale(.78) rotateY(14deg); }
  .feature-slide.is-far-left { transform: translate(-50%, -50%) translateX(-285px) translateZ(-60px) scale(.58) rotateY(-20deg); opacity: .28; }
  .feature-slide.is-far-right { transform: translate(-50%, -50%) translateX(285px) translateZ(-60px) scale(.58) rotateY(20deg); opacity: .28; }
  .feature-slide.is-back-left, .feature-slide.is-back-right { opacity: 0; }
  .mood-orb { width: 94px; height: 94px; font-size: 2.7rem; }
  .swipe-hint span { font-size: .78rem; }
}
@media (max-width: 480px) {
  .feature-phone { width: 94vw; }
  .feature-slide { --card-w: 182px; }
  .hero-feature-showcase { margin-left: -1rem; margin-right: -1rem; }
}

/* v110 final platform policy: free guest export, premium login + credits, PayPal checkout, temporary project storage */
.temporary-project-notice {
  margin: 1rem 0 1.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14,165,233,0.10), rgba(124,58,237,0.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 44px rgba(2,6,23,0.18);
  color: rgba(255,255,255,0.82);
  display: grid;
  gap: 0.28rem;
}
.temporary-project-notice strong {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.temporary-project-notice span {
  font-size: 0.9rem;
  line-height: 1.45;
}
.export-policy-card {
  border-color: rgba(52,211,153,0.26);
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(59,130,246,0.08));
}
.export-policy-card .ad-pill {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.34);
  color: #d1fae5;
}
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.auth-modal.open { display: flex; }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(18px);
}
.auth-card {
  position: relative;
  width: min(440px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at top left, rgba(124,58,237,0.34), transparent 44%),
    radial-gradient(circle at bottom right, rgba(14,165,233,0.22), transparent 48%),
    rgba(10,15,31,0.96);
  box-shadow: 0 34px 100px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.10);
  padding: 1.5rem;
  color: #fff;
}
.auth-card h2 {
  margin: 0.55rem 0 0.45rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.auth-card p {
  margin: 0 0 1.1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}
.auth-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.auth-tab {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.78);
  padding: 0.72rem 0.8rem;
  cursor: pointer;
  font-weight: 800;
}
.auth-tab.active {
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  color: #fff;
  box-shadow: 0 14px 32px rgba(124,58,237,0.28);
}
.auth-field {
  display: grid;
  gap: 0.38rem;
  margin-bottom: 0.85rem;
  color: rgba(255,255,255,0.76);
  font-weight: 700;
}
.auth-field input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.86rem 0.95rem;
  outline: none;
}
.auth-field input:focus {
  border-color: rgba(14,165,233,0.62);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
}
.storage-policy-section .s3-card {
  border-color: rgba(52,211,153,0.20);
}
@media (max-width: 640px) {
  .auth-card { padding: 1.15rem; border-radius: 22px; }
  .auth-tabs { grid-template-columns: 1fr; }
}

/* v110 PayPal credits and premium export checkout */
.btn.tiny {
  min-height: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
}
.credits-balance-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(14,165,233,0.09));
}
.credits-balance-card span {
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.credits-balance-card strong {
  color: #fff;
  font-size: 0.92rem;
  white-space: nowrap;
}
.credit-purchase-card {
  width: min(940px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
}
.credit-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.credit-package-option {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  padding: 0.95rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.34rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.credit-package-option:hover,
.credit-package-option.active {
  transform: translateY(-2px);
  border-color: rgba(34,211,238,0.54);
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(14,165,233,0.16));
}
.credit-package-option strong { font-size: 1rem; }
.credit-package-option span { color: var(--cyan); font-weight: 950; }
.credit-package-option small { color: rgba(255,255,255,0.64); font-weight: 800; }
.credit-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}
.paypal-box,
.paypal-card-fields {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.055);
  padding: 1rem;
}
.paypal-box h3,
.paypal-card-fields h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.paypal-buttons {
  min-height: 48px;
}
.paypal-card-fields.hidden { display: none; }
.paypal-card-field {
  min-height: 45px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  padding: 0.55rem 0.7rem;
}
.card-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
#creditPurchaseStatus {
  display: block;
  margin-top: 0.85rem;
}
@media (max-width: 860px) {
  .credit-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credit-checkout-grid { grid-template-columns: 1fr; }
  .credits-balance-card { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .credit-package-grid { grid-template-columns: 1fr; }
  .card-field-row { grid-template-columns: 1fr; }
}


/* v116 clearer credit checkout states */
.checkout-loading,
.checkout-error {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 16px;
  color: rgba(255,255,255,0.76);
  text-align: center;
  padding: 0.8rem;
  font-weight: 800;
}
.checkout-error {
  border-color: rgba(248,113,113,0.38);
  background: rgba(248,113,113,0.10);
  color: #fecaca;
}

/* v121 Admin button hard fix */
.site-header, .nav-actions, .nav-account, #adminDashboardNavBtn, #myAccountNavBtn { pointer-events: auto !important; }
#adminDashboardNavBtn { position: relative; z-index: 100001; cursor: pointer !important; }
#adminDashboardModal.open { display: flex !important; }
.admin-dashboard-card { z-index: 10000; }

/* v116 My Account auth flow */
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-account {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav-account.logged-in {
  border-color: rgba(34,211,238,0.42);
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(14,165,233,0.18));
}
.account-card {
  width: min(560px, 100%);
}
.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.account-summary-item {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.065);
  padding: 0.9rem;
  min-width: 0;
}
.account-summary-item span {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.account-summary-item strong {
  display: block;
  color: #fff;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}
.account-actions {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0.75rem;
}
@media (max-width: 760px) {
  .nav-actions { gap: 0.45rem; }
  .nav-account { padding: 0.65rem 0.75rem; font-size: 0.86rem; }
  .account-summary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-actions .nav-cta { display: none; }
}

/* v121 Admin Dashboard + Credit History + Payment Reliability */
.mini-btn {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.38rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.account-history-panel {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.055);
  padding: 0.9rem;
  margin: 0.9rem 0;
}
.account-history-panel h3,
.admin-panel h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.025em;
}
.account-history-list,
.admin-list {
  display: grid;
  gap: 0.55rem;
  max-height: 250px;
  overflow: auto;
  padding-right: 0.25rem;
}
.history-row,
.admin-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  padding: 0.72rem 0.78rem;
}
.history-row strong,
.admin-list-row strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}
.history-row small,
.admin-list-row small {
  display: block;
  color: rgba(255,255,255,0.58);
  font-size: 0.72rem;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}
.history-row b,
.admin-list-row b {
  color: #fff;
  white-space: nowrap;
}
.history-row.positive b { color: #86efac; }
.history-row.negative b { color: #fca5a5; }
.empty-admin-list {
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 16px;
  padding: 0.85rem;
  color: rgba(255,255,255,0.66);
  font-weight: 800;
  text-align: center;
}
.admin-dashboard-card {
  width: min(1120px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.5rem 0 1rem;
}
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.admin-metric {
  border: 1px solid rgba(34,211,238,0.17);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.13), rgba(14,165,233,0.08));
  padding: 0.9rem;
  min-width: 0;
}
.admin-metric span {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-metric strong {
  display: block;
  margin: 0.35rem 0 0.2rem;
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.admin-metric small { color: rgba(255,255,255,0.60); font-weight: 750; }
.admin-panels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.admin-panel {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  min-width: 0;
}
@media (max-width: 980px) {
  .admin-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-panels-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .history-row,
  .admin-list-row { grid-template-columns: 1fr; }
  .admin-metrics-grid { grid-template-columns: 1fr; }
}


/* v121 Production Launch Pack */
.nav-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-link-button:hover { color: #fff; }
.modal-divider { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 18px 0; }
.policy-card { max-width: 720px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.launch-limit-note {
  border: 1px solid rgba(124,58,237,.35);
  background: rgba(124,58,237,.12);
  border-radius: 18px;
  padding: 14px 16px;
  color: rgba(255,255,255,.86);
}


/* v124 SMTP launch panel */
.admin-actions.stacked { align-items: stretch; gap: 10px; }
.auth-field.compact { margin: 0; }
.launch-email-panel .admin-list { margin-top: 10px; }
.launch-check-ok { color: #a7f3d0; }
.launch-check-warn { color: #fde68a; }
.launch-check-bad { color: #fecaca; }

/* v125 Public Launch Polish */
.launch-ready-section {
  position: relative;
  overflow: hidden;
}
.launch-ready-section::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 50%;
  width: min(620px, 80vw);
  height: min(620px, 80vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 62%);
  pointer-events: none;
}
.launch-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.launch-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  border-radius: 24px;
  padding: 22px;
  min-height: 154px;
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}
.launch-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.04rem;
  color: #fff;
}
.launch-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.74);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: rgba(226, 232, 240, 0.76);
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}
@media (max-width: 920px) {
  .launch-grid { grid-template-columns: 1fr; }
}

/* v126 Premium navigation polish */
.site-header-v126 {
  position: sticky;
  top: 12px;
  z-index: 80;
  width: calc(100% - 32px);
  max-width: 1180px;
  min-height: 68px;
  margin: 12px auto 0;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(10,14,35,0.76), rgba(18,11,42,0.66));
  box-shadow: 0 24px 70px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(26px) saturate(145%);
}
.site-header-v126::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(124,58,237,0.24), transparent 34%), radial-gradient(circle at 82% 0%, rgba(34,211,238,0.16), transparent 30%);
  opacity: 0.95;
}
.site-header-v126 > * { position: relative; z-index: 1; }
.site-header-v126 .brand {
  flex: 0 0 auto;
  padding: 0.24rem 0.6rem 0.24rem 0.3rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
}
.site-header-v126 .brand img {
  width: 42px;
  height: 42px;
  box-shadow: 0 10px 28px rgba(124,58,237,0.30);
}
.site-header-v126 .brand span { letter-spacing: -0.045em; }
.site-header-v126 .brand em {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
  padding: 0.24rem 0.48rem;
  border: 1px solid rgba(34,211,238,0.22);
  border-radius: 999px;
  color: rgba(165,243,252,0.9);
  background: rgba(34,211,238,0.08);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links-v126 {
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  gap: 0.34rem;
  min-width: 0;
  color: rgba(255,255,255,0.68);
  font-size: 0.91rem;
  font-weight: 820;
}
.nav-links-v126 > a,
.nav-dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 42px;
  padding: 0.54rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255,255,255,0.72);
  background: transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.nav-links-v126 > a:hover,
.nav-dropdown:hover .nav-dropdown-button,
.nav-dropdown-button:hover {
  color: #fff;
  background: rgba(255,255,255,0.075);
  border-color: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.nav-dropdown { position: relative; display: inline-flex; }
.nav-dropdown-button { appearance: none; cursor: pointer; font: inherit; font-weight: 850; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 245px;
  display: grid;
  gap: 0.28rem;
  padding: 0.58rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(10,12,28,0.95);
  box-shadow: 0 28px 80px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.nav-dropdown-menu a,
.nav-dropdown-menu .nav-link-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 0.64rem 0.78rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(255,255,255,0.76);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 800;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu .nav-link-button:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(14,165,233,0.14));
}
.nav-actions-v126 { flex: 0 0 auto; gap: 0.42rem; }
.nav-actions-v126 .nav-account {
  min-height: 42px;
  padding: 0.58rem 0.78rem;
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.88);
  box-shadow: none;
}
.nav-actions-v126 .nav-admin {
  color: rgba(255,255,255,0.64);
  background: transparent;
}
.nav-actions-v126 .nav-account:hover {
  color: #fff;
  background: rgba(255,255,255,0.095);
  border-color: rgba(34,211,238,0.20);
}
.nav-actions-v126 .nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.96rem;
  border: 0;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  box-shadow: 0 16px 36px rgba(124,58,237,0.32);
}
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.075);
  color: #fff;
}
.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.site-header.menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1120px) {
  .site-header-v126 { flex-wrap: wrap; }
  .mobile-menu-toggle { display: grid; margin-left: auto; }
  .site-header-v126 .brand em { display: none; }
  .nav-links-v126,
  .nav-actions-v126 {
    display: none;
    flex-basis: 100%;
    width: 100%;
  }
  .site-header-v126.menu-open .nav-links-v126,
  .site-header-v126.menu-open .nav-actions-v126 {
    display: grid;
  }
  .nav-links-v126 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.46rem;
    padding: 0.8rem 0.2rem 0.2rem;
  }
  .nav-links-v126 > a,
  .nav-dropdown-button {
    justify-content: center;
    width: 100%;
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.08);
  }
  .nav-dropdown { display: grid; grid-column: 1 / -1; }
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.45rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255,255,255,0.045);
    box-shadow: none;
  }
  .nav-actions-v126 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.48rem;
    padding: 0.35rem 0.2rem 0.2rem;
  }
  .nav-actions-v126 .nav-account,
  .nav-actions-v126 .nav-cta { justify-content: center; width: 100%; }
}
@media (max-width: 620px) {
  .site-header-v126 {
    top: 8px;
    width: calc(100% - 20px);
    border-radius: 24px;
  }
  .nav-links-v126,
  .nav-actions-v126 { grid-template-columns: 1fr; }
  .nav-actions-v126 .nav-cta { display: inline-flex !important; }
  .site-header-v126 .brand span { font-size: 1.05rem; }
}


/* v134 Director's Cut mood presets */
.director-mood-presets {
  padding: .75rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236,72,153,.10), rgba(34,211,238,.08));
  border: 1px solid rgba(255,255,255,.12);
}
.preset-chip.mood-chip {
  border-color: rgba(236,72,153,.24);
  background: rgba(255,255,255,.09);
  box-shadow: 0 10px 28px rgba(15,23,42,.10);
}
.preset-chip.mood-chip:hover {
  border-color: rgba(236,72,153,.52);
  background: rgba(236,72,153,.14);
}

/* v135: AI Captions / Lyrics / Bible Verse Overlay */
.ai-caption-studio {
  display: grid;
  gap: 0.72rem;
  padding: 0.9rem;
  margin-bottom: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(236,72,153,0.18);
  background: linear-gradient(135deg, rgba(236,72,153,0.10), rgba(34,211,238,0.08));
}
.ai-caption-head {
  display: grid;
  gap: 0.25rem;
}
.ai-caption-head strong {
  color: var(--text);
  font-size: 0.98rem;
}
.ai-caption-head small {
  color: var(--muted);
  line-height: 1.35;
}
.ai-caption-studio textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 0.78rem 0.85rem;
  background: rgba(7,7,17,0.58);
  color: var(--text);
  outline: none;
  font: inherit;
}
.ai-caption-studio textarea:focus {
  border-color: rgba(34,211,238,0.5);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.12);
}
.ai-caption-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.ai-caption-actions .btn { min-height: 40px; }
.ai-caption-chips {
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
}
.ai-caption-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}
#previewStage.preview-stage.cap-engine-lyrics-style #directorCaptionLayer.director-caption-layer,
#previewStage.preview-stage.cap-engine-lyrics-worship #directorCaptionLayer.director-caption-layer {
  width: min(88%, 620px) !important;
  max-height: 22% !important;
  text-align: center !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(8,8,18,0.18), rgba(8,8,18,0.72)) !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
  box-shadow: 0 18px 38px rgba(0,0,0,0.34), 0 0 28px rgba(236,72,153,0.12) !important;
}
#previewStage.preview-stage.cap-engine-lyrics-style #directorCaptionLayer.director-caption-layer strong,
#previewStage.preview-stage.cap-engine-lyrics-worship #directorCaptionLayer.director-caption-layer strong {
  font-size: clamp(0.95rem, 2.5vw, 1.34rem) !important;
  letter-spacing: -0.02em !important;
}
#previewStage.preview-stage.cap-engine-bible-verse #directorCaptionLayer.director-caption-layer,
#previewStage.preview-stage.cap-engine-worship-mix #directorCaptionLayer.director-caption-layer {
  border-radius: 18px !important;
  border: 1px solid rgba(245, 213, 137, 0.34) !important;
  background: linear-gradient(180deg, rgba(44,31,8,0.18), rgba(8,8,18,0.76)) !important;
  box-shadow: 0 16px 44px rgba(0,0,0,0.36), 0 0 32px rgba(245,158,11,0.16) !important;
}
#previewStage.preview-stage.cap-engine-bible-verse #directorCaptionLayer.director-caption-layer::before,
#previewStage.preview-stage.cap-engine-worship-mix #directorCaptionLayer.director-caption-layer::before {
  content: '✦';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245,158,11,0.95);
  color: #1a1202;
  font-size: 0.72rem;
  box-shadow: 0 0 24px rgba(245,158,11,0.34);
}
#previewStage.preview-stage.cap-engine-bible-verse #directorCaptionLayer.director-caption-layer small,
#previewStage.preview-stage.cap-engine-worship-mix #directorCaptionLayer.director-caption-layer small {
  color: rgba(255,232,178,0.94) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}
#previewStage.preview-stage.cap-engine-love-quote #directorCaptionLayer.director-caption-layer {
  background: linear-gradient(180deg, rgba(236,72,153,0.22), rgba(8,8,18,0.70)) !important;
  border: 1px solid rgba(244,114,182,0.30) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.36), 0 0 30px rgba(236,72,153,.18) !important;
}
@media (max-width: 620px) {
  .ai-caption-actions .btn { width: 100%; }
}


/* v137 Projector Border Mode */

.projector-presets .projector-chip {
  border-color: rgba(245, 213, 137, 0.24);
}
.projector-presets .projector-chip.smart {
  background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(34,211,238,.12));
}
.projector-border-layer {
  position: absolute;
  inset: 0;
  z-index: 78;
  pointer-events: none;
  overflow: hidden;
  --projector-a: rgba(255,255,255,.84);
  --projector-b: rgba(203,213,225,.45);
  --projector-fill: rgba(7, 7, 18, .48);
  --projector-text: rgba(255,255,255,.96);
  --projector-glow: rgba(255,255,255,.20);
}
.projector-border-layer .projector-top,
.projector-border-layer .projector-side,
.projector-border-layer .projector-corners b {
  position: absolute;
  display: block;
}
.projector-border-layer .projector-top {
  top: 0;
  left: 0;
  right: 0;
  height: clamp(34px, 8.5%, 78px);
  display: grid;
  place-items: center;
  padding: 0 12%;
  color: var(--projector-text);
  background: linear-gradient(90deg, var(--projector-b), var(--projector-fill), var(--projector-b));
  border-bottom: 1px solid var(--projector-a);
  box-shadow: 0 0 28px var(--projector-glow), inset 0 -18px 26px rgba(0,0,0,.24);
  text-shadow: 0 2px 16px rgba(0,0,0,.92), 0 0 18px var(--projector-glow);
  text-align: center;
}
.projector-border-layer .projector-top span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
  font-size: clamp(.72rem, 3.2vw, 1.05rem);
  letter-spacing: .02em;
}
.projector-border-layer .projector-side {
  top: 0;
  bottom: 0;
  width: clamp(18px, 7.4%, 58px);
  background: linear-gradient(90deg, var(--projector-a), var(--projector-fill), transparent);
  box-shadow: 0 0 26px var(--projector-glow), inset 0 0 18px rgba(255,255,255,.08);
}
.projector-border-layer .projector-right {
  right: 0;
  transform: scaleX(-1);
}
.projector-border-layer .projector-left { left: 0; }
.projector-border-layer .projector-side i {
  position: absolute;
  top: 12%;
  bottom: 10%;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, var(--projector-a), transparent);
  opacity: .92;
}
.projector-border-layer .projector-side i:nth-child(1) { left: 28%; }
.projector-border-layer .projector-side i:nth-child(2) { left: 52%; opacity: .6; }
.projector-border-layer .projector-side i:nth-child(3) { left: 74%; opacity: .42; }
.projector-border-layer .projector-corners b {
  width: 22%;
  height: 12%;
  border-color: var(--projector-a);
  filter: drop-shadow(0 0 10px var(--projector-glow));
}
.projector-border-layer .projector-corners b:nth-child(1) { top: 7px; left: 7px; border-top: 2px solid; border-left: 2px solid; }
.projector-border-layer .projector-corners b:nth-child(2) { top: 7px; right: 7px; border-top: 2px solid; border-right: 2px solid; }
.projector-border-layer .projector-corners b:nth-child(3) { bottom: 7px; left: 7px; border-bottom: 2px solid; border-left: 2px solid; }
.projector-border-layer .projector-corners b:nth-child(4) { bottom: 7px; right: 7px; border-bottom: 2px solid; border-right: 2px solid; }
.projector-border-layer.area-upper-only .projector-corners b:nth-child(3),
.projector-border-layer.area-upper-only .projector-corners b:nth-child(4) { display: none; }
.projector-border-layer.area-sides-only .projector-top { display: none; }
.projector-border-layer.area-upper-only .projector-side { display: none; }
.projector-border-layer.projector-roman-pillars {
  --projector-a: rgba(255,255,255,.92);
  --projector-b: rgba(226,232,240,.48);
  --projector-fill: rgba(15,23,42,.48);
  --projector-glow: rgba(226,232,240,.22);
}
.projector-border-layer.projector-roman-pillars .projector-side::before,
.projector-border-layer.projector-roman-pillars .projector-side::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 7%;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.32), rgba(255,255,255,.78), rgba(255,255,255,.18));
}
.projector-border-layer.projector-roman-pillars .projector-side::before { top: 5%; }
.projector-border-layer.projector-roman-pillars .projector-side::after { bottom: 5%; }
.projector-border-layer.projector-church-worship {
  --projector-a: rgba(250,204,21,.88);
  --projector-b: rgba(59,130,246,.42);
  --projector-fill: rgba(8,15,33,.58);
  --projector-text: #fff7d6;
  --projector-glow: rgba(250,204,21,.30);
}
.projector-border-layer.projector-church-worship .projector-top::before { content: '✦'; margin-right: .42rem; }
.projector-border-layer.projector-wedding-floral {
  --projector-a: rgba(251,207,232,.94);
  --projector-b: rgba(244,114,182,.42);
  --projector-fill: rgba(49,12,35,.50);
  --projector-text: #fff1f8;
  --projector-glow: rgba(244,114,182,.32);
}
.projector-border-layer.projector-wedding-floral .projector-top::before,
.projector-border-layer.projector-wedding-floral .projector-top::after { content: '❦'; color: var(--projector-a); margin: 0 .55rem; }
.projector-border-layer.projector-luxury-gold {
  --projector-a: rgba(251,191,36,.96);
  --projector-b: rgba(217,119,6,.48);
  --projector-fill: rgba(39,22,5,.58);
  --projector-text: #fff7d6;
  --projector-glow: rgba(251,191,36,.34);
}
.projector-border-layer.projector-led-wall {
  --projector-a: rgba(34,211,238,.96);
  --projector-b: rgba(236,72,153,.48);
  --projector-fill: rgba(3,7,18,.56);
  --projector-text: #ecfeff;
  --projector-glow: rgba(34,211,238,.34);
}
.projector-border-layer.projector-led-wall::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: .16;
  mix-blend-mode: screen;
}
.projector-border-layer.projector-memorial-soft {
  --projector-a: rgba(226,232,240,.88);
  --projector-b: rgba(148,163,184,.35);
  --projector-fill: rgba(15,23,42,.56);
  --projector-text: #f8fafc;
  --projector-glow: rgba(226,232,240,.22);
}
#previewStage.projector-off .projector-border-layer,
#previewStage.features-off .projector-border-layer { display: none !important; }
#previewStage.projector-on.projector-area-sides-top #directorCaptionLayer.director-caption-layer[data-position="top"],
#previewStage.projector-auto.projector-area-sides-top #directorCaptionLayer.director-caption-layer[data-position="top"],
#previewStage.projector-on.projector-area-upper-only #directorCaptionLayer.director-caption-layer[data-position="top"],
#previewStage.projector-auto.projector-area-upper-only #directorCaptionLayer.director-caption-layer[data-position="top"] {
  inset: clamp(54px, 10%, 82px) auto auto 50% !important;
}
@media (max-width: 620px) {
  .projector-border-layer .projector-top span { font-size: .68rem; }
  .projector-border-layer .projector-side { width: clamp(14px, 6.5%, 38px); }
}


.thumbnail-controls-grid input[type="text"] {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 14px;
  padding: 0.78rem 0.9rem;
  outline: none;
}
.thumbnail-controls-grid input[type="text"]::placeholder {
  color: rgba(255,255,255,0.46);
}
.thumbnail-stage::after {
  content: "AI Thumbnail";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: .38rem .62rem;
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.82);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
}
.thumbnail-stage:has(.thumbnail-empty)::after {
  display: none;
}
@media (max-width: 700px) {
  .thumbnail-controls-grid input[type="text"] {
    font-size: 16px;
  }
}

/* v138: Client Delivery + Paid Final Download */
.client-delivery-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(14,165,233,.08));
  box-shadow: 0 18px 45px rgba(0,0,0,.20);
}
.client-delivery-panel h4 { margin: .25rem 0 0; }
.client-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: .85rem 0;
}
.client-delivery-grid label,
.client-message-field {
  display: grid;
  gap: .35rem;
  color: var(--muted, #cbd5e1);
  font-size: .82rem;
}
.client-delivery-grid input,
.client-message-field textarea,
.client-link-row input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(15,23,42,.78);
  color: #fff;
  padding: .72rem .8rem;
  outline: none;
}
.client-message-field textarea { resize: vertical; min-height: 74px; }
.client-payment-toggle {
  display: flex;
  gap: .55rem;
  align-items: center;
  padding: .7rem .8rem;
  margin: .75rem 0;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 16px;
  color: #e2e8f0;
  background: rgba(15,23,42,.42);
}
.client-link-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .5rem;
  align-items: center;
  margin: .85rem 0;
}
.client-link-row input { font-size: .78rem; color: #dbeafe; }
@media (max-width: 720px) {
  .client-delivery-grid,
  .client-link-row { grid-template-columns: 1fr; }
  .client-link-row .btn { width: 100%; }
}

/* v144 MVP stability + professional workflow polish */
.mvp-workflow-card {
  margin: 0 auto 1.35rem;
  max-width: 1180px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 28px;
  padding: 1.05rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(245,243,255,0.9));
  box-shadow: 0 22px 70px rgba(37, 22, 78, 0.08);
}
.mvp-workflow-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.mvp-workflow-head h3 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  letter-spacing: -0.03em;
}
.mvp-workflow-head small {
  color: #6b6477;
  font-weight: 700;
  text-align: right;
}
.mvp-workflow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}
.mvp-workflow-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  border-radius: 18px;
  padding: 0.65rem 0.7rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(39, 39, 42, 0.08);
  color: #70697c;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.mvp-workflow-steps li b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  font-size: 0.82rem;
}
.mvp-workflow-steps li.is-complete {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(236, 253, 245, 0.86);
  color: #065f46;
}
.mvp-workflow-steps li.is-complete b {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}
.mvp-workflow-steps li.is-active {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.42);
  background: rgba(250, 245, 255, 0.95);
  color: #4c1d95;
  box-shadow: 0 14px 35px rgba(124, 58, 237, 0.13);
}
.mvp-qa-strip {
  margin: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border-radius: 20px;
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.mvp-qa-strip strong {
  display: block;
  font-size: 0.95rem;
}
.mvp-qa-strip small {
  color: #6b6477;
  display: block;
  margin-top: 0.15rem;
}
.mvp-qa-strip.is-ok {
  background: rgba(236, 253, 245, 0.9);
  border-color: rgba(16, 185, 129, 0.28);
}
.mvp-qa-strip.is-warn {
  background: rgba(255, 251, 235, 0.9);
  border-color: rgba(245, 158, 11, 0.3);
}
body.picstagram-export-busy #exportPanel,
body.picstagram-export-busy #previewPanel {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08), 0 24px 80px rgba(124, 58, 237, 0.12);
}
body.picstagram-export-busy #exportVideoBtn {
  pointer-events: none;
}
@media (max-width: 920px) {
  .mvp-workflow-head { align-items: flex-start; flex-direction: column; }
  .mvp-workflow-head small { text-align: left; }
  .mvp-workflow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mvp-workflow-card { border-radius: 22px; padding: 0.85rem; }
  .mvp-workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mvp-workflow-steps li { min-height: 48px; font-size: 0.88rem; }
  .mvp-qa-strip { align-items: flex-start; flex-direction: column; }
  .mvp-qa-strip .btn { width: 100%; }
}

/* v145 UI accents */
.preset-chip.v145 { border-color: rgba(250, 204, 21, .34); background: linear-gradient(135deg, rgba(250,204,21,.11), rgba(124,58,237,.12)); }
.preset-chip.v145:hover { border-color: rgba(250, 204, 21, .65); box-shadow: 0 12px 32px rgba(250,204,21,.12); }


/* v146 Better AI Director Automation */
.ai-automation-card {
  border: 1px solid rgba(255, 214, 120, 0.28);
  background: linear-gradient(135deg, rgba(255, 245, 215, 0.10), rgba(118, 92, 255, 0.08));
  box-shadow: 0 18px 48px rgba(11, 12, 22, 0.12);
}
.ai-automation-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.ai-automation-head label {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.ai-automation-head small,
.ai-automation-report {
  color: rgba(255,255,255,0.72);
}
.automation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 214, 120, 0.18);
  color: #ffe9a6;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(255, 214, 120, 0.34);
}
.automation-grid {
  margin-top: 8px;
}
.ai-automation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.ai-automation-report {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.9rem;
  line-height: 1.45;
}
@media (max-width: 720px) {
  .ai-automation-head { flex-direction: column; }
  .ai-automation-actions .btn { width: 100%; }
}


/* v147 Real Templates / Theme Library */
.theme-library-card {
  border: 1px solid rgba(245, 197, 107, 0.28);
  background: linear-gradient(145deg, rgba(32, 23, 42, 0.96), rgba(13, 18, 34, 0.95));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.theme-library-head,
.theme-template-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.theme-library-head small {
  display: block;
  color: rgba(255,255,255,.68);
  line-height: 1.45;
  margin-top: .25rem;
}
.theme-template-controls { margin-bottom: 1rem; }
.theme-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.theme-template-card {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  color: #fff;
  text-align: left;
  padding: .9rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem .7rem;
  align-items: start;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.theme-template-card span { font-size: 1.35rem; line-height: 1; grid-row: span 2; }
.theme-template-card strong { font-size: .95rem; letter-spacing: -.01em; }
.theme-template-card small { color: rgba(255,255,255,.64); line-height: 1.35; }
.theme-template-card:hover,
.theme-template-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(245,197,107,.58);
  background: rgba(245,197,107,.12);
  box-shadow: 0 12px 30px rgba(245,197,107,.10);
}
.theme-template-card.is-hidden { display: none; }
.theme-template-status { margin-top: .8rem; }
@media (max-width: 720px) {
  .theme-template-grid { grid-template-columns: 1fr; }
  .theme-library-head,
  .theme-template-actions { align-items: stretch; flex-direction: column; }
  .theme-template-actions .btn { width: 100%; }
}


/* v148 Launch / Pricing / Payment Polish */
.launch-payment-polish {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(117, 218, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(12, 19, 40, 0.96), rgba(30, 18, 45, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.launch-payment-head,
.launch-payment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.launch-payment-head h3 { margin: .1rem 0 .35rem; font-size: clamp(1.35rem, 2vw, 2rem); }
.launch-payment-head p { max-width: 720px; color: rgba(255,255,255,.72); }
.launch-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 1rem 0;
}
.launch-pay-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: .9rem;
  background: rgba(255,255,255,.055);
}
.launch-pay-card span,
.price-kicker { color: rgba(255,255,255,.62); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.launch-pay-card strong { display: block; margin: .25rem 0; color: #fff; font-size: 1.05rem; }
.launch-pay-card small,
.price-note { color: rgba(255,255,255,.64); line-height: 1.35; display: block; }
.launch-payment-table {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.18);
  margin: .95rem 0;
}
.launch-payment-table span { display: block; padding: .85rem; color: rgba(255,255,255,.7); }
.launch-pricing-row {
  display: grid;
  grid-template-columns: 1.15fr .85fr 1.2fr;
  gap: .75rem;
  padding: .75rem .9rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.76);
}
.launch-pricing-row:first-child { border-top: 0; }
.launch-pricing-row strong { color: #fff; }
.launch-price-card { position: relative; overflow: hidden; }
.launch-price-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -45% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117,218,255,.18), transparent 65%);
  pointer-events: none;
}
@media (max-width: 920px) {
  .launch-payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .launch-payment-head,
  .launch-payment-actions { flex-direction: column; align-items: stretch; }
  .launch-payment-grid,
  .launch-pricing-row { grid-template-columns: 1fr; }
  .launch-payment-head .btn,
  .launch-payment-actions .btn { width: 100%; }
}


/* v149 Organized Toolbox UI -------------------------------------------------
   Keeps all Picstagram tools, but contains them in neat workflow shelves. */
html[data-picstagram-toolbox-ui="v149"] .creator-card {
  gap: 18px;
}

.toolbox-v149-intro {
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.toolbox-v149-intro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.toolbox-v149-intro h3 {
  margin: 0 0 4px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.toolbox-v149-intro p {
  margin: 0;
  color: rgba(255,255,255,.74);
  line-height: 1.45;
}

.toolbox-v149-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbox-v149-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.toolbox-v149-nav button {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: inherit;
  border-radius: 16px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: .82rem;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.toolbox-v149-nav button span {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 3px;
}

.toolbox-v149-nav button:hover,
.toolbox-v149-nav button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  outline: none;
}

.tool-shelf-v149 {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(8, 10, 24, .45);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(0,0,0,.16);
}

.tool-shelf-v149[open] {
  border-color: rgba(255,255,255,.22);
  background: rgba(12, 14, 33, .6);
}

.tool-shelf-v149 > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  user-select: none;
}

.tool-shelf-v149 > summary::-webkit-details-marker {
  display: none;
}

.tool-shelf-v149 .tool-shelf-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tool-shelf-v149 .tool-shelf-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  flex: 0 0 auto;
}

.tool-shelf-v149 .tool-shelf-title strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.tool-shelf-v149 .tool-shelf-title small {
  display: block;
  color: rgba(255,255,255,.62);
  line-height: 1.35;
  margin-top: 2px;
}

.tool-shelf-v149 .tool-shelf-chevron {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.76);
  transition: transform .2s ease, background .2s ease;
  flex: 0 0 auto;
}

.tool-shelf-v149[open] .tool-shelf-chevron {
  transform: rotate(180deg);
  background: rgba(255,255,255,.14);
}

.tool-shelf-v149 .tool-shelf-body {
  padding: 0 18px 18px;
  display: grid;
  gap: 14px;
}

.tool-shelf-v149 .input-group,
.tool-shelf-v149 .ai-director-card,
.tool-shelf-v149 .ai-automation-card,
.tool-shelf-v149 .theme-library-card,
.tool-shelf-v149 .ad-unlock-card {
  margin: 0;
}

.tool-shelf-v149 .tool-shelf-body > .btn.full {
  width: 100%;
}

.tool-shelf-v149.pro-tools-shelf-v149 .tool-shelf-body {
  max-height: 650px;
  overflow: auto;
  padding-right: 12px;
}

.tool-shelf-v149.pro-tools-shelf-v149 .control-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-shelf-v149.pro-tools-shelf-v149 .studio-presets {
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.toolbox-v149-status {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  line-height: 1.45;
}

.toolbox-v149-status strong {
  color: #fff;
}

html[data-picstagram-toolbox-ui="v149"] .theme-template-grid {
  max-height: 390px;
  overflow: auto;
  padding-right: 4px;
}

html[data-picstagram-toolbox-ui="v149"] .launch-pricing-card,
html[data-picstagram-toolbox-ui="v149"] .mvp-workflow-card {
  border-radius: 24px;
}

html[data-picstagram-toolbox-ui="v149"] .summary-card {
  align-self: start;
}

@media (min-width: 980px) {
  html[data-picstagram-toolbox-ui="v149"] .summary-card {
    position: sticky;
    top: 18px;
  }
}

@media (max-width: 900px) {
  .toolbox-v149-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tool-shelf-v149.pro-tools-shelf-v149 .control-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .toolbox-v149-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbox-v149-intro-head,
  .tool-shelf-v149 > summary {
    align-items: flex-start;
  }
  .tool-shelf-v149 > summary {
    padding: 14px;
  }
  .tool-shelf-v149 .tool-shelf-body {
    padding: 0 14px 14px;
  }
}


/* v156: keep the working dark studio design, improve readability, organize presets, and add collapsible movie controls. */
:root {
  --v156-dark-1: #120824;
  --v156-dark-2: #23104d;
  --v156-purple: #7c3aed;
  --v156-cyan: #06b6d4;
  --v156-card: rgba(255,255,255,0.08);
  --v156-card-strong: rgba(255,255,255,0.12);
  --v156-line: rgba(255,255,255,0.20);
  --v156-text: #ffffff;
  --v156-muted: rgba(255,255,255,0.72);
}

.site-header,
.site-header-v126 {
  background: linear-gradient(110deg, rgba(39, 15, 91, 0.98), rgba(19, 28, 64, 0.98), rgba(9, 109, 148, 0.92)) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: 0 18px 48px rgba(10, 5, 35, .35) !important;
  backdrop-filter: blur(20px);
}
.site-header a,
.site-header button,
.site-header .brand span,
.site-header .brand em { color: #fff !important; }
.site-header .brand em { background: rgba(6, 182, 212, .14); border-color: rgba(125, 211, 252, .45); }
.site-header .nav-cta { background: linear-gradient(135deg, var(--v156-purple), var(--v156-cyan)) !important; color: #fff !important; }
.site-header .nav-account { border-color: rgba(255,255,255,.22) !important; background: rgba(255,255,255,.06) !important; }
.nav-dropdown-menu { background: #17122d !important; border-color: rgba(255,255,255,.18) !important; }

.tool-accordion {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(7, 10, 25, .22);
  overflow: hidden;
}
.tool-accordion > summary,
.tool-accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: #fff;
  font-weight: 900;
  letter-spacing: .01em;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
}
.tool-accordion > summary::-webkit-details-marker { display: none; }
.tool-accordion > summary::after {
  content: "−";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.10);
  font-size: 20px;
}
.tool-accordion:not([open]) > summary::after { content: "+"; }
.tool-accordion summary small { color: rgba(255,255,255,.72); font-weight: 700; font-size: 12px; }
.tool-accordion-body { padding: 18px; }
.movie-controls-accordion:not([open]) { margin-bottom: 18px; }

/* Make preset groups look intentional instead of a long crowded cloud. */
.pro-tools-panel .studio-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px;
  margin: 18px 0 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
}
.pro-tools-panel .studio-presets::before {
  content: attr(aria-label);
  flex: 1 0 100%;
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .92;
}
.pro-tools-panel .preset-chip {
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
  font-weight: 800;
  white-space: nowrap;
}
.pro-tools-panel .preset-chip:hover,
.pro-tools-panel .preset-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, .72);
  background: rgba(124, 58, 237, .22);
  outline: none;
}
.pro-tools-panel .preset-chip.smart,
.pro-tools-panel .preset-chip.v145,
.pro-tools-panel .pack-chip.v145 {
  border-color: rgba(250, 204, 21, .55);
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(250,204,21,.11));
}
.pro-tools-panel .preset-chip.off {
  opacity: .9;
  border-color: rgba(255,255,255,.26);
}

/* Keep dark studio readable while avoiding the washed-out UI from the failed mockup rebuilds. */
.creator-card,
.summary-card,
.mvp-workflow-card,
.pro-tools-panel,
.director-save-card,
.input-group,
.export-panel,
.preview-panel {
  color: #fff;
}
.creator-card select,
.creator-card input,
.creator-card textarea,
.summary-card select,
.summary-card input,
.summary-card textarea {
  color: #111827;
  background: #fff;
}
.creator-card label,
.input-group > label,
.control-grid label span,
.pro-tools-head strong,
.director-save-card strong { color: #fff; }
.creator-card small,
.helper-note,
.pro-tools-head small,
.director-save-card small { color: rgba(255,255,255,.72); }

/* Slightly organize the left vertical tools shown in the restored dark design. */
.mvp-workflow-steps li,
.platform,
.theme-template-card,
.ai-automation-card {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.mvp-workflow-steps li:hover,
.platform:hover,
.theme-template-card:hover,
.ai-automation-card:hover { transform: translateY(-1px); }

@media (max-width: 760px) {
  .tool-accordion-body { padding: 14px; }
  .pro-tools-panel .studio-presets { padding: 14px; gap: 8px; }
  .pro-tools-panel .preset-chip { width: 100%; justify-content: center; }
  .pro-tools-panel .studio-presets::before { text-align: center; }
}


/* v157 Dark UI Polish + Layout Spacing Fix -------------------------------- */
:root {
  --v157-bg-1: #120824;
  --v157-bg-2: #191538;
  --v157-panel: rgba(16, 18, 39, 0.88);
  --v157-panel-soft: rgba(23, 25, 50, 0.72);
  --v157-border: rgba(182, 165, 255, 0.18);
  --v157-text: #f7f7fb;
  --v157-muted: rgba(247, 247, 251, 0.72);
}

html[data-picstagram-ui-polish='v157'] body,
html[data-picstagram-ui-polish='v157'] .creator-section {
  background: radial-gradient(circle at top, rgba(124,58,237,.18), transparent 30%), linear-gradient(180deg, #0b0b18 0%, #12152a 45%, #0a0c16 100%);
}
html[data-picstagram-ui-polish='v157'] .section-heading {
  padding: 20px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(31,25,57,.94), rgba(17,19,36,.92));
  border: 1px solid var(--v157-border);
  box-shadow: 0 18px 44px rgba(4, 6, 18, .28);
  margin-bottom: 18px;
}
html[data-picstagram-ui-polish='v157'] .section-heading .eyebrow,
html[data-picstagram-ui-polish='v157'] .section-heading p,
html[data-picstagram-ui-polish='v157'] .section-heading h2 { color: var(--v157-text) !important; }
html[data-picstagram-ui-polish='v157'] .section-heading p { opacity: .82; }

html[data-picstagram-ui-polish='v157'] .mvp-workflow-card {
  background: linear-gradient(135deg, rgba(18,14,37,.98), rgba(20,27,50,.96)) !important;
  border: 1px solid var(--v157-border) !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .28) !important;
}
html[data-picstagram-ui-polish='v157'] .mvp-workflow-head h3,
html[data-picstagram-ui-polish='v157'] .mvp-workflow-head small,
html[data-picstagram-ui-polish='v157'] .mvp-workflow-card .summary-pill { color: var(--v157-text) !important; }
html[data-picstagram-ui-polish='v157'] .mvp-workflow-card .summary-pill {
  background: rgba(124,58,237,.20);
  border: 1px solid rgba(125, 211, 252, .28);
}
html[data-picstagram-ui-polish='v157'] .mvp-workflow-steps li {
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: var(--v157-text) !important;
}
html[data-picstagram-ui-polish='v157'] .mvp-workflow-steps li b {
  background: rgba(255,255,255,.12);
  color: #e9ddff;
}
html[data-picstagram-ui-polish='v157'] .mvp-workflow-steps li.is-active,
html[data-picstagram-ui-polish='v157'] .mvp-workflow-steps li[aria-current='step'] {
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(6,182,212,.16)) !important;
  border-color: rgba(125,211,252,.30) !important;
}

html[data-picstagram-ui-polish='v157'] .toolbox-v149-intro,
html[data-picstagram-ui-polish='v157'] .tool-shelf-v149,
html[data-picstagram-ui-polish='v157'] .input-group,
html[data-picstagram-ui-polish='v157'] .ai-director-card,
html[data-picstagram-ui-polish='v157'] .ai-automation-card,
html[data-picstagram-ui-polish='v157'] .theme-library-card,
html[data-picstagram-ui-polish='v157'] .temporary-project-notice,
html[data-picstagram-ui-polish='v157'] .backend-upload-status,
html[data-picstagram-ui-polish='v157'] .export-policy-card {
  background: linear-gradient(135deg, rgba(17, 18, 36, .96), rgba(23, 28, 56, .92)) !important;
  border-color: rgba(255,255,255,.09) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
html[data-picstagram-ui-polish='v157'] .toolbox-v149-intro h3,
html[data-picstagram-ui-polish='v157'] .tool-shelf-v149 .tool-shelf-title strong,
html[data-picstagram-ui-polish='v157'] .tool-shelf-v149 summary,
html[data-picstagram-ui-polish='v157'] .toolbox-v149-status strong,
html[data-picstagram-ui-polish='v157'] .input-group > label,
html[data-picstagram-ui-polish='v157'] .input-group label,
html[data-picstagram-ui-polish='v157'] .theme-library-head label,
html[data-picstagram-ui-polish='v157'] .ai-automation-head label,
html[data-picstagram-ui-polish='v157'] .ai-director-head label { color: var(--v157-text) !important; }
html[data-picstagram-ui-polish='v157'] .toolbox-v149-intro p,
html[data-picstagram-ui-polish='v157'] .tool-shelf-v149 .tool-shelf-title small,
html[data-picstagram-ui-polish='v157'] .toolbox-v149-status,
html[data-picstagram-ui-polish='v157'] .helper-note,
html[data-picstagram-ui-polish='v157'] .input-group small,
html[data-picstagram-ui-polish='v157'] .muted-inline { color: var(--v157-muted) !important; }

html[data-picstagram-ui-polish='v157'] .toolbox-v149-nav {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}
html[data-picstagram-ui-polish='v157'] .toolbox-v149-nav button {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
}
html[data-picstagram-ui-polish='v157'] .toolbox-v149-nav button span { margin: 0; }

html[data-picstagram-ui-polish='v157'] .creator-card .control-grid,
html[data-picstagram-ui-polish='v157'] .thumbnail-controls-grid,
html[data-picstagram-ui-polish='v157'] .automation-grid,
html[data-picstagram-ui-polish='v157'] .pro-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 16px;
  align-items: start;
}
html[data-picstagram-ui-polish='v157'] .creator-card .control-grid > label { min-width: 0; }
html[data-picstagram-ui-polish='v157'] .creator-card .control-grid > label > span {
  display: block;
  margin-bottom: 6px;
}
html[data-picstagram-ui-polish='v157'] .creator-card select,
html[data-picstagram-ui-polish='v157'] .creator-card input,
html[data-picstagram-ui-polish='v157'] .creator-card textarea {
  min-height: 48px;
  width: 100%;
  border-radius: 16px;
}
html[data-picstagram-ui-polish='v157'] .tool-accordion > summary,
html[data-picstagram-ui-polish='v157'] .tool-accordion-summary {
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(255,255,255,.045));
}
html[data-picstagram-ui-polish='v157'] .movie-control-tip {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

html[data-picstagram-ui-polish='v157'] .studio-presets {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px !important;
  align-items: stretch;
}
html[data-picstagram-ui-polish='v157'] .studio-presets::before { margin-bottom: 6px; }
html[data-picstagram-ui-polish='v157'] .studio-presets .preset-chip,
html[data-picstagram-ui-polish='v157'] .studio-presets .pack-chip {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  padding: 12px 16px;
}
html[data-picstagram-ui-polish='v157'] .pro-tools-panel .studio-presets {
  padding: 16px;
  border-radius: 20px;
}
html[data-picstagram-ui-polish='v157'] .pro-tools-head { align-items: start; gap: 14px; }
html[data-picstagram-ui-polish='v157'] .pro-pill { flex: 0 0 auto; }

html[data-picstagram-ui-polish='v157'] .creator-grid { align-items: start; }
html[data-picstagram-ui-polish='v157'] .summary-card,
html[data-picstagram-ui-polish='v157'] .preview-panel,
html[data-picstagram-ui-polish='v157'] .export-panel {
  background: linear-gradient(135deg, rgba(16,18,38,.97), rgba(20, 26, 51, .94)) !important;
  border-color: rgba(255,255,255,.09) !important;
  color: var(--v157-text) !important;
}

@media (max-width: 960px) {
  html[data-picstagram-ui-polish='v157'] .studio-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html[data-picstagram-ui-polish='v157'] .section-heading { padding: 18px; }
  html[data-picstagram-ui-polish='v157'] .studio-presets,
  html[data-picstagram-ui-polish='v157'] .toolbox-v149-nav { grid-template-columns: 1fr; }
  html[data-picstagram-ui-polish='v157'] .movie-control-tip { display: none; }
}


/* v159 Responsive Centering + Hero Layout Fix ------------------------------
   Layout-only patch. Keeps v157 dark studio, previewer and export logic intact. */
:root {
  --v159-max: 1320px;
  --v159-pad: clamp(18px, 3vw, 42px);
}

html[data-picstagram-responsive-fix='v159'],
html[data-picstagram-responsive-fix='v159'] body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html[data-picstagram-responsive-fix='v159'] .site-header,
html[data-picstagram-responsive-fix='v159'] .site-header-v126 {
  width: min(calc(100% - 32px), var(--v159-max));
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
  box-sizing: border-box;
}

html[data-picstagram-responsive-fix='v159'] main,
html[data-picstagram-responsive-fix='v159'] .hero,
html[data-picstagram-responsive-fix='v159'] .section-pad,
html[data-picstagram-responsive-fix='v159'] .stats-strip,
html[data-picstagram-responsive-fix='v159'] .creator-section,
html[data-picstagram-responsive-fix='v159'] .pricing-section,
html[data-picstagram-responsive-fix='v159'] .launch-section {
  width: min(calc(100% - 32px), var(--v159-max));
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

html[data-picstagram-responsive-fix='v159'] .hero {
  min-height: auto;
  padding-left: var(--v159-pad) !important;
  padding-right: var(--v159-pad) !important;
  overflow: hidden;
  border-radius: 34px;
}

html[data-picstagram-responsive-fix='v159'] .hero-grid,
html[data-picstagram-responsive-fix='v159'] .hero-content,
html[data-picstagram-responsive-fix='v159'] .hero-copy,
html[data-picstagram-responsive-fix='v159'] .hero-visual {
  min-width: 0;
  box-sizing: border-box;
}

html[data-picstagram-responsive-fix='v159'] .hero h1,
html[data-picstagram-responsive-fix='v159'] .hero-title,
html[data-picstagram-responsive-fix='v159'] .section-heading h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}

html[data-picstagram-responsive-fix='v159'] .hero h1,
html[data-picstagram-responsive-fix='v159'] .hero-title {
  font-size: clamp(2.6rem, 6vw, 5.8rem) !important;
  line-height: .98 !important;
  letter-spacing: -0.055em;
}

html[data-picstagram-responsive-fix='v159'] .hero p,
html[data-picstagram-responsive-fix='v159'] .hero-subtitle {
  max-width: 720px;
}

html[data-picstagram-responsive-fix='v159'] .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

html[data-picstagram-responsive-fix='v159'] .phone-frame,
html[data-picstagram-responsive-fix='v159'] .hero-card,
html[data-picstagram-responsive-fix='v159'] .hero-visual img {
  max-width: 100%;
}

html[data-picstagram-responsive-fix='v159'] .creator-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(18px, 3vw, 32px);
}

html[data-picstagram-responsive-fix='v159'] .creator-card,
html[data-picstagram-responsive-fix='v159'] .summary-card {
  min-width: 0;
}

@media (max-width: 1180px) {
  html[data-picstagram-responsive-fix='v159'] .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-picstagram-responsive-fix='v159'] .hero h1,
  html[data-picstagram-responsive-fix='v159'] .hero-title {
    font-size: clamp(2.4rem, 7vw, 4.8rem) !important;
  }
  html[data-picstagram-responsive-fix='v159'] .hero-visual {
    justify-self: center;
    width: min(100%, 860px);
  }
}

@media (max-width: 980px) {
  html[data-picstagram-responsive-fix='v159'] .site-header,
  html[data-picstagram-responsive-fix='v159'] main,
  html[data-picstagram-responsive-fix='v159'] .hero,
  html[data-picstagram-responsive-fix='v159'] .section-pad,
  html[data-picstagram-responsive-fix='v159'] .stats-strip,
  html[data-picstagram-responsive-fix='v159'] .creator-section {
    width: min(calc(100% - 24px), var(--v159-max));
  }
  html[data-picstagram-responsive-fix='v159'] .creator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html[data-picstagram-responsive-fix='v159'] .site-header,
  html[data-picstagram-responsive-fix='v159'] main,
  html[data-picstagram-responsive-fix='v159'] .hero,
  html[data-picstagram-responsive-fix='v159'] .section-pad,
  html[data-picstagram-responsive-fix='v159'] .stats-strip,
  html[data-picstagram-responsive-fix='v159'] .creator-section {
    width: calc(100% - 16px);
  }
  html[data-picstagram-responsive-fix='v159'] .hero {
    padding-left: 18px !important;
    padding-right: 18px !important;
    border-radius: 24px;
  }
  html[data-picstagram-responsive-fix='v159'] .hero h1,
  html[data-picstagram-responsive-fix='v159'] .hero-title {
    font-size: clamp(2.15rem, 12vw, 3.2rem) !important;
    letter-spacing: -0.045em;
  }
}


/* v159 Compact Dark Header + Fold Fix ------------------------------------- */
html[data-picstagram-compact-fold='v159'] body {
  overflow-x: hidden;
}

/* Keep the good v158 centering, but remove the giant desktop hero height. */
html[data-picstagram-compact-fold='v159'] .hero,
html[data-picstagram-compact-fold='v159'] .hero-section,
html[data-picstagram-compact-fold='v159'] .hero-wrap {
  min-height: auto !important;
  padding-top: clamp(24px, 3.2vw, 56px) !important;
  padding-bottom: clamp(20px, 2.8vw, 44px) !important;
  margin-bottom: 0 !important;
}
html[data-picstagram-compact-fold='v159'] .hero .container,
html[data-picstagram-compact-fold='v159'] .hero-inner,
html[data-picstagram-compact-fold='v159'] .hero-content {
  max-width: min(1180px, calc(100vw - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
html[data-picstagram-compact-fold='v159'] .hero h1,
html[data-picstagram-compact-fold='v159'] .hero-title {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: clamp(3rem, 6.2vw, 5.9rem) !important;
  line-height: .95 !important;
  letter-spacing: -0.055em !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
html[data-picstagram-compact-fold='v159'] .hero p,
html[data-picstagram-compact-fold='v159'] .hero-subtitle {
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: clamp(1rem, 1.45vw, 1.22rem) !important;
  line-height: 1.45 !important;
}
html[data-picstagram-compact-fold='v159'] .hero-visual,
html[data-picstagram-compact-fold='v159'] .hero-phone,
html[data-picstagram-compact-fold='v159'] .hero-card-stack {
  transform: scale(.92) !important;
  transform-origin: center top !important;
  margin-top: clamp(14px, 2vw, 24px) !important;
}

/* Darken the workflow area that turned white again. */
html[data-picstagram-compact-fold='v159'] .mvp-workflow-card,
html[data-picstagram-compact-fold='v159'] .mvp-workflow-card.reveal,
html[data-picstagram-compact-fold='v159'] #mvpWorkflowCard {
  background: linear-gradient(135deg, rgba(18,14,37,.98), rgba(20,27,50,.96)) !important;
  border: 1px solid rgba(182,165,255,.18) !important;
  color: #f7f7fb !important;
  box-shadow: 0 22px 52px rgba(0,0,0,.28) !important;
}
html[data-picstagram-compact-fold='v159'] .mvp-workflow-head h3,
html[data-picstagram-compact-fold='v159'] .mvp-workflow-head small,
html[data-picstagram-compact-fold='v159'] .mvp-workflow-card .summary-pill {
  color: #f7f7fb !important;
}
html[data-picstagram-compact-fold='v159'] .mvp-workflow-card .summary-pill {
  background: rgba(124,58,237,.20) !important;
  border: 1px solid rgba(125, 211, 252, .28) !important;
}
html[data-picstagram-compact-fold='v159'] .mvp-workflow-steps li {
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #f7f7fb !important;
}
html[data-picstagram-compact-fold='v159'] .mvp-workflow-steps li b {
  background: rgba(255,255,255,.12) !important;
  color: #e9ddff !important;
}
html[data-picstagram-compact-fold='v159'] .mvp-workflow-steps li.is-active,
html[data-picstagram-compact-fold='v159'] .mvp-workflow-steps li[aria-current='step'] {
  background: linear-gradient(135deg, rgba(124,58,237,.24), rgba(6,182,212,.16)) !important;
  border-color: rgba(125,211,252,.30) !important;
}

/* Bring the actual creator workspace closer above the fold. */
html[data-picstagram-compact-fold='v159'] .stats-strip {
  margin-top: 0 !important;
  margin-bottom: clamp(14px, 2vw, 24px) !important;
}
html[data-picstagram-compact-fold='v159'] .creator-section,
html[data-picstagram-compact-fold='v159'] #creator.section-pad {
  padding-top: clamp(18px, 2.2vw, 34px) !important;
}
html[data-picstagram-compact-fold='v159'] .section-heading {
  padding-top: clamp(16px, 2vw, 24px) !important;
  padding-bottom: clamp(14px, 1.8vw, 22px) !important;
  margin-bottom: 14px !important;
}
html[data-picstagram-compact-fold='v159'] .section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.8rem) !important;
  line-height: 1.02 !important;
}
html[data-picstagram-compact-fold='v159'] .creator-grid {
  margin-top: 14px !important;
}

/* Compact laptop heights like the user's monitor without losing readability. */
@media (min-width: 900px) and (max-height: 820px) {
  html[data-picstagram-compact-fold='v159'] .hero,
  html[data-picstagram-compact-fold='v159'] .hero-section,
  html[data-picstagram-compact-fold='v159'] .hero-wrap {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
  html[data-picstagram-compact-fold='v159'] .hero h1,
  html[data-picstagram-compact-fold='v159'] .hero-title {
    font-size: clamp(2.7rem, 5.4vw, 4.7rem) !important;
  }
  html[data-picstagram-compact-fold='v159'] .hero p,
  html[data-picstagram-compact-fold='v159'] .hero-subtitle {
    margin-top: 8px !important;
  }
  html[data-picstagram-compact-fold='v159'] .hero-visual,
  html[data-picstagram-compact-fold='v159'] .hero-phone,
  html[data-picstagram-compact-fold='v159'] .hero-card-stack {
    display: none !important;
  }
}

@media (max-width: 760px) {
  html[data-picstagram-compact-fold='v159'] .hero h1,
  html[data-picstagram-compact-fold='v159'] .hero-title {
    font-size: clamp(2.15rem, 11vw, 3.6rem) !important;
    line-height: 1.03 !important;
  }
  html[data-picstagram-compact-fold='v159'] .hero,
  html[data-picstagram-compact-fold='v159'] .hero-section,
  html[data-picstagram-compact-fold='v159'] .hero-wrap {
    padding-top: 22px !important;
    padding-bottom: 20px !important;
  }
}


/* v161 Mobile Launch Polish + Public UX Wording ---------------------------- */
html[data-picstagram-mobile-launch-polish='v161'] .launch-ux-note-v161 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
html[data-picstagram-mobile-launch-polish='v161'] .launch-ux-note-v161 > div {
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border-radius: 16px;
  padding: 12px 13px;
  min-height: 84px;
}
html[data-picstagram-mobile-launch-polish='v161'] .launch-ux-note-v161 strong {
  display: block;
  color: #fff;
  font-size: .94rem;
  margin-bottom: 5px;
}
html[data-picstagram-mobile-launch-polish='v161'] .launch-ux-note-v161 span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  line-height: 1.35;
}
html[data-picstagram-mobile-launch-polish='v161'] #exportHelp,
html[data-picstagram-mobile-launch-polish='v161'] #clientDeliveryStatus {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(6, 182, 212, .08);
  border: 1px solid rgba(125, 211, 252, .18);
  color: rgba(255,255,255,.84) !important;
}
html[data-picstagram-mobile-launch-polish='v161'] .btn,
html[data-picstagram-mobile-launch-polish='v161'] button,
html[data-picstagram-mobile-launch-polish='v161'] .preset-chip,
html[data-picstagram-mobile-launch-polish='v161'] .platform {
  touch-action: manipulation;
}
@media (max-width: 900px) {
  html[data-picstagram-mobile-launch-polish='v161'] .launch-ux-note-v161 {
    grid-template-columns: 1fr;
  }
  html[data-picstagram-mobile-launch-polish='v161'] .creator-grid {
    grid-template-columns: 1fr !important;
  }
  html[data-picstagram-mobile-launch-polish='v161'] .creator-card,
  html[data-picstagram-mobile-launch-polish='v161'] .summary-card {
    width: 100%;
  }
  html[data-picstagram-mobile-launch-polish='v161'] .btn.full,
  html[data-picstagram-mobile-launch-polish='v161'] #exportVideoBtn,
  html[data-picstagram-mobile-launch-polish='v161'] #createDeliveryLinkBtn {
    min-height: 54px;
    font-size: 1rem;
    border-radius: 16px;
  }
}
@media (max-width: 640px) {
  html[data-picstagram-mobile-launch-polish='v161'] .site-header {
    margin: 10px;
    border-radius: 22px;
  }
  html[data-picstagram-mobile-launch-polish='v161'] .mvp-workflow-steps {
    display: flex !important;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }
  html[data-picstagram-mobile-launch-polish='v161'] .mvp-workflow-steps li {
    min-width: 138px;
    scroll-snap-align: start;
  }
  html[data-picstagram-mobile-launch-polish='v161'] .platform-grid,
  html[data-picstagram-mobile-launch-polish='v161'] .toolbox-v149-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html[data-picstagram-mobile-launch-polish='v161'] .studio-presets {
    grid-template-columns: 1fr !important;
  }
  html[data-picstagram-mobile-launch-polish='v161'] .client-delivery-grid {
    grid-template-columns: 1fr !important;
  }
  html[data-picstagram-mobile-launch-polish='v161'] .client-link-row {
    grid-template-columns: 1fr !important;
  }
  html[data-picstagram-mobile-launch-polish='v161'] input,
  html[data-picstagram-mobile-launch-polish='v161'] select,
  html[data-picstagram-mobile-launch-polish='v161'] textarea {
    font-size: 16px !important;
  }
}


/* v171: Guest Client Delivery enabled - no large login blocker */
#clientDeliveryStatus {
  background: rgba(8, 16, 40, 0.34) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  color: rgba(255,255,255,0.96) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  max-width: 680px !important;
  margin: 12px auto !important;
}
#createDeliveryLinkBtn {
  min-height: 42px !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
}

/* v172: readable transparent Client Delivery login blocker */
.v172-delivery-panel {
  position: relative !important;
}

.v172-delivery-login-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 30 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 10, 28, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: inherit;
  pointer-events: auto;
}

.v172-delivery-login-card {
  width: min(92%, 520px);
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(8, 16, 40, 0.74);
  border: 1px solid rgba(125, 211, 252, 0.32);
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  text-align: center;
  color: #fff;
}

.v172-delivery-login-card strong {
  display: block;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.15;
  margin-bottom: 8px;
}

.v172-delivery-login-card p {
  margin: 0 auto 14px;
  max-width: 440px;
  color: rgba(255,255,255,.86);
  line-height: 1.45;
  font-size: 15px;
}

.v172-delivery-login-card button {
  min-height: 44px !important;
  width: auto !important;
  min-width: 190px !important;
  max-width: 280px !important;
  padding: 10px 20px !important;
  border-radius: 14px !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  background: linear-gradient(135deg, #7c3aed, #06b6d4) !important;
  box-shadow: 0 10px 26px rgba(6,182,212,.25) !important;
  cursor: pointer !important;
}

.v172-delivery-login-card small {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.72);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .v172-delivery-login-overlay {
    padding: 12px;
    align-items: center;
  }

  .v172-delivery-login-card {
    padding: 15px;
  }

  .v172-delivery-login-card button {
    width: 100% !important;
    max-width: 100% !important;
  }
}
