/* ---------------------------------------------------------
   Cast intros — overlay independent from the episode feed.
   The editor changes configuration, not the episode videos.
   --------------------------------------------------------- */
.mf-intro[hidden] { display: none !important; }
.mf-intro {
  position: absolute; inset: 0; z-index: 65;
  background: #05080d; display: grid; place-items: center;
  overflow: hidden;
}
.mf-intro__screen {
  position: relative;
  width: min(100%, 575px, 56.25vh);
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 40% 25%, #51412d, #111a2a 65%);
}
.mf-intro__card { display: none; position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.mf-intro__card.is-visible { display: block; }
.mf-intro__portrait,.mf-intro__character {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: mf-cast-zoom var(--mf-intro-duration, 2.45s) linear both;
}
.mf-intro__character {
  opacity: 0; animation: mf-character-reveal var(--mf-intro-duration, 2.45s) ease-in-out both;
}
/* For panoramic character art, retain the ENTIRE image (e.g. Stella's GULP scene). */
.mf-intro__image--contain {
  object-fit: contain;
  background: radial-gradient(ellipse at 45% 42%, #233b58 0%, #101726 68%, #05080d 100%);
  animation-name: mf-character-reveal-contained;
}
.mf-image-unavailable { display: none; }
.mf-intro__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,10,20,.40) 0%, transparent 23%, rgba(0,0,0,.03) 35%, rgba(8,12,22,.62) 68%, rgba(7,12,20,.93) 100%);
}
.mf-intro__frame { position: absolute; inset: 2.2% 3%; border: 2px solid #f3dfa9; border-radius: 24px; box-shadow: 0 0 20px rgba(236,192,105,.32), inset 0 0 20px rgba(236,192,105,.11); pointer-events: none; }
.mf-intro__masthead { position: absolute; top: 7%; width: 100%; text-align: center; font-size: clamp(13px,2.5vh,23px); letter-spacing: .18em; color: #fff1c5; text-shadow: 0 2px 10px #000; font-weight: 850; }
.mf-intro__credits { position: absolute; left: 7%; right: 7%; bottom: 15%; color: #fff1d5; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.9); }
.mf-intro__label { font-size: clamp(13px,2.5vh,23px); letter-spacing: .28em; font-weight: 800; }
.mf-intro__name { font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-style: italic; font-size: clamp(40px,8.1vh,78px); line-height: 1.13; overflow-wrap: anywhere; }
.mf-intro__role { margin-top: 6px; font-size: clamp(16px,3vh,27px); font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
/* The role credit appears with the fictional-character image, not during the real photo. */
.mf-intro__card--has-character .mf-intro__role {
  opacity: 0;
  animation: mf-role-reveal var(--mf-intro-duration, 2.45s) ease-in both;
}
.mf-intro__decor { position: absolute; bottom: 5%; width: 100%; text-align: center; font-size: 25px; letter-spacing: 1em; color: #f5d484; }
.mf-intro__skip { position: absolute; z-index: 5; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); min-height: 42px; border: 1px solid rgba(255,255,255,.7); border-radius: 99px; padding: 0 18px; background: rgba(8,10,14,.80); color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; }
.mf-intro__skip:hover { background: #283246; }
.mf-intro__skip:focus-visible { outline: 3px solid #f5d484; outline-offset: 3px; }
@keyframes mf-cast-zoom { from {transform: scale(1)} to {transform: scale(1.12)} }
@keyframes mf-character-reveal { 0%,42% {opacity:0; transform:scale(1.04)} 57%,100% {opacity:1; transform:scale(1.14)} }
@keyframes mf-character-reveal-contained { 0%,42% { opacity:0; transform:scale(1) } 57%,100% { opacity:1; transform:scale(1) } }
@keyframes mf-role-reveal { 0%,42% {opacity:0} 57%,100% {opacity:1} }
@media (prefers-reduced-motion: reduce) { .mf-intro__portrait,.mf-intro__character { animation: none; } .mf-intro__character,.mf-intro__card--has-character .mf-intro__role { opacity:1; animation:none; } }
