/* Responsive, live recipient experience: same real renderer, no preview gate.
   The player is wide on computers and genuinely edge-to-edge on phones. */
.mother-v2 .mds-static-preview .mds-phone{pointer-events:none}
.mother-v2 .mds-static-preview .mds-demo-disclosure{margin:-6px 0 8px}
.mother-v2 .mds-live-demo{padding:62px 0 68px;background:#f0e5de;scroll-margin-top:18px;border-top:1px solid #e8d6ca}
.mother-v2 .mds-live-demo>.container{width:min(1180px,calc(100% - 36px))}
.mother-v2 .mds-live-heading{margin:0 auto 25px;text-align:center;max-width:710px}
.mother-v2 .mds-live-heading h2{font:400 clamp(35px,4.5vw,58px)/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.052em;color:#433237;margin:12px 0}
.mother-v2 .mds-live-heading h2 em{font-weight:400;color:#a87974}
.mother-v2 .mds-live-heading p{font-size:15px;line-height:1.55;color:#6e5957;max-width:620px;margin:10px auto 0}
.mother-v2 .mds-live-layout{display:flex;flex-direction:column;align-items:stretch;gap:19px;max-width:1110px;margin-inline:auto}
.mother-v2 .mds-live-player{width:100%;border-radius:24px;padding:12px;background:#fffaf6;border:1px solid #dcc8c0;box-shadow:0 22px 66px rgba(70,40,37,.10);min-width:0}
.mother-v2 .mds-live-player-head{display:flex;align-items:center;gap:10px;padding:6px 10px 13px;font-size:12px;color:#684d54}
.mother-v2 .mds-live-player-head strong{font-weight:800;font-size:12px;letter-spacing:.055em}
.mother-v2 .mds-live-player-head span:last-child{margin-left:auto;font-size:11px;color:#9a7e7a}
.mother-v2 .mds-live-signal{flex:none;display:block;width:8px;height:8px;background:#af6b70;border-radius:50%;box-shadow:0 0 0 4px #f1ddd8}
.mother-v2 .mds-live-frame-wrap{width:100%;height:clamp(515px,56vw,685px);position:relative;overflow:hidden;border-radius:16px;background:#1c1518;isolation:isolate}
.mother-v2 #mds-live-frame{position:absolute;inset:0;width:100%;height:100%;border:0;background:#1c1518;opacity:0;visibility:hidden;transition:opacity .22s ease}
.mother-v2 .mds-live-ready #mds-live-frame{opacity:1;visibility:visible}
.mother-v2 .mds-live-loading{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;gap:15px;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 35%,#654750 0%,#2b1b23 60%,#1c1518 100%);color:#f5e8e0;font-size:14px}
.mother-v2 .mds-live-loading[hidden],.mother-v2 .mds-live-error[hidden]{display:none!important}
.mother-v2 .mds-live-spinner{height:26px;width:26px;display:block;border-radius:50%;border:2px solid #ffffff55;border-top-color:white;animation:mds-loading-rotate .75s linear infinite}
@keyframes mds-loading-rotate{to{transform:rotate(360deg)}}
.mother-v2 .mds-live-error{position:absolute;z-index:3;inset:0;background:rgba(38,25,29,.96);color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:22px;text-align:center}
.mother-v2 .mds-live-error button{border:0;border-radius:999px;padding:12px 20px;min-height:44px;background:#f8e9e2;color:#4b323a;font-weight:800;cursor:pointer}
.mother-v2 .mds-live-error a{color:#fff;text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}
.mother-v2 .mds-live-caption{font-size:12px;line-height:1.6;color:#796a68;text-align:center;margin:11px 7px 2px}
.mother-v2 .mds-live-after{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:2px 6px;flex-wrap:wrap}
.mother-v2 .mds-live-after-copy{display:flex;flex-direction:column;gap:5px;min-width:230px;flex:1}
.mother-v2 .mds-live-after-copy strong{color:#4b363c;font-size:17px}
.mother-v2 .mds-live-after-copy span{color:#765f62;font-size:13px;line-height:1.5}
.mother-v2 .mds-live-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mother-v2 .mds-live-actions .md-button{min-width:220px;min-height:48px;font-size:13px}
.mother-v2 .mds-live-full-link{min-height:44px;display:inline-flex;align-items:center;padding:0 4px;color:#6f4b52;text-decoration:underline;text-underline-offset:4px;font-size:13px;font-weight:700}
.mother-v2 .mds-live-help{min-height:44px;display:flex;align-items:center;border:0;background:none;color:#704753;font-size:12px;font-weight:750;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media(max-width:830px){
 .mother-v2 .mds-live-demo{padding:50px 0 54px}
 .mother-v2 .mds-live-frame-wrap{height:clamp(490px,71vw,610px)}
 .mother-v2 .mds-live-after{align-items:stretch}
 .mother-v2 .mds-live-actions{justify-content:flex-start}
}
@media(max-width:680px){
 .mother-v2 .mds-live-demo{padding:36px 0 44px}
 .mother-v2 .mds-live-demo>.container{width:100%;max-width:none}
 .mother-v2 .mds-live-heading{padding-inline:18px;margin-bottom:21px}
 .mother-v2 .mds-live-heading h2{font-size:clamp(32px,9.2vw,40px)}
 .mother-v2 .mds-live-heading p{font-size:13px;line-height:1.5}
 .mother-v2 .mds-live-layout{gap:12px}
 .mother-v2 .mds-live-player{border-radius:0;border-left:0;border-right:0;padding:0;background:transparent;box-shadow:none}
 .mother-v2 .mds-live-player-head{padding:10px 18px 12px;gap:8px;font-size:10px}
 .mother-v2 .mds-live-player-head strong{font-size:11px}
 .mother-v2 .mds-live-player-head span:last-child{font-size:10px}
 .mother-v2 .mds-live-frame-wrap{height:clamp(475px,75svh,680px);border-radius:0}
 .mother-v2 .mds-live-caption{font-size:11px;line-height:1.5;padding-inline:18px;margin:12px 0}
 .mother-v2 .mds-live-after{display:flex;flex-direction:column;align-items:stretch;padding:5px 18px;gap:14px}
 .mother-v2 .mds-live-after-copy strong{font-size:16px}
 .mother-v2 .mds-live-after-copy span{font-size:12px}
 .mother-v2 .mds-live-actions{display:grid;grid-template-columns:1fr;gap:5px}
 .mother-v2 .mds-live-actions .md-button{width:100%;min-width:0}
 .mother-v2 .mds-live-full-link,.mother-v2 .mds-live-help{justify-content:center}
}
@media(max-width:350px){
 .mother-v2 .mds-live-frame-wrap{height:clamp(455px,75svh,565px)}
 .mother-v2 .mds-live-player-head span:last-child{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
 .mother-v2 #mds-live-frame{transition:none}
 .mother-v2 .mds-live-spinner{animation:none}
}
/* The existing floating support and optional analytics notice must not
   obscure the story controls. Consent is never granted automatically. */
.mother-v2.mds-demo-in-view .sy-support-trigger{display:none!important}
/* Do not hide cookie consent while video is visible. */

/* The mobile layout displays the one real player immediately after the
   compact hero. CSS order never moves its iframe DOM node, so an orientation
   change does not reload the recipient story or discard playback progress. */
@media(max-width:680px){
  .mother-v2 #md-main{display:flex;flex-direction:column}
  .mother-v2 #md-main>*{order:10}
  .mother-v2 #md-main>.mdv2-hero{order:0}
  .mother-v2 #md-main>.mds-live-demo{order:1}
  .mother-v2 #md-main>.md-trust{order:2}
  .mother-v2 .mdv2-preview{display:none}
  .mother-v2 .mdv2-hero{
    grid-template-areas:"message" "actions";
    grid-template-rows:auto auto;
    min-height:0;
    padding-bottom:20px;
  }
  .mother-v2 .mdv2-hero-action .md-button-secondary{display:none}
  .mother-v2 #md-main>.mds-live-demo{padding:20px 0 30px}
  .mother-v2 .mds-live-heading{margin-bottom:12px}
  .mother-v2 .mds-live-heading h2{font-size:clamp(25px,7.4vw,34px);margin:5px 0 7px}
  .mother-v2 .mds-live-heading p{font-size:12px;margin-top:4px}
  .mother-v2 .mds-live-frame-wrap{height:clamp(460px,72svh,650px)}
}

/* Short landscape phones / split-screen windows: the whole player, including
   its Next/Back controls, must fit inside one viewport instead of extending
   500-685px below the fold. Scrollable text remains inside each scene. */
@media(orientation:landscape) and (max-height:540px){
  .mother-v2 .mds-live-frame-wrap{
    height:clamp(260px,calc(100svh - 48px),430px)!important;
  }
}
