/* Credits maker */
.stage-wrap { margin-top: 18px; }
.stage {
  position: relative; overflow: hidden; border-radius: 20px; background: #050f08;
  aspect-ratio: 16 / 9; width: 100%; border: 1px solid rgba(140, 220, 160, .2); box-shadow: var(--shadow);
  color: #f2f7f0;
}
.stage:fullscreen { border-radius: 0; aspect-ratio: auto; }
.frames { position: absolute; inset: 0; z-index: 1; }
.frame {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4%; opacity: 0; filter: blur(14px); transform: scale(1.06);
  transition: opacity .9s ease, filter 1.1s ease, transform 2.6s ease-out;
}
.frame.on { opacity: 1; filter: blur(0); transform: scale(1); }
.frame.out { opacity: 0; filter: blur(10px); transform: scale(.97); transition: opacity .6s ease, filter .6s ease, transform .6s ease; }
.frame .role { font-size: clamp(.7rem, 1.8vw, 1.05rem); letter-spacing: .3em; text-transform: uppercase; color: #a9c4ae; margin-bottom: 1.2%; }
.frame .nm { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 3%; font-size: clamp(1.3rem, 5.2vw, 3.6rem); font-weight: 500; }
.frame .nm .w { display: inline-flex; align-items: center; white-space: nowrap; }
.frame .tile { --t: clamp(40px, 9vw, 104px) !important; margin: 0 .12em; }
.frame.title .nm { font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 5rem); gap: 0 4%; }
.frame.title .tile { --t: clamp(52px, 12vw, 140px) !important; }
.frame.title .w span.txt { color: #f6f8ec; }
.frame.end .nm { font-family: var(--font-display); }
.stage-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); z-index: 2; }
.stage-progress span { display: block; height: 100%; width: 0; background: #4fc26a; }
.stage-controls { margin-top: 12px; }

.cast-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; counter-reset: c; }
.cast-row { display: grid; grid-template-columns: 1fr 150px 38px; gap: 6px; align-items: center; }
.cast-row input, .cast-row select { padding: 10px 12px; }
@media (max-width: 480px) { .cast-row { grid-template-columns: 1fr 112px 38px; } .cast-row select { font-size: .85rem; padding: 10px 6px; } }
.cast-preview { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cast-preview li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.cast-preview .tile { --t: 40px; }
.cast-preview .r { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
