/* Scrollvideo section scoped to homepage and reversible via plugin deactivation. */
#meiyu-scrollvideo-preview,
#meiyu-scrollvideo-preview *{box-sizing:border-box}
#meiyu-scrollvideo-preview.msv-section{display:none;position:relative!important;isolation:isolate;width:100%!important;max-width:none!important;height:340vh!important;margin:0!important;padding:0!important;background:#1b092b!important;color:#fff!important;z-index:1;}
#meiyu-scrollvideo-preview.msv-section.msv-ready{display:block!important}
#meiyu-scrollvideo-preview .msv-sticky{position:sticky!important;top:0!important;left:0!important;width:100%!important;height:100vh!important;height:100svh!important;min-height:560px;overflow:hidden;background:radial-gradient(ellipse at 70% 48%,#311241 0%,#200a31 62%,#1b092b 100%)}
#meiyu-scrollvideo-preview .msv-grain{position:absolute;inset:0;z-index:3;pointer-events:none;background:radial-gradient(circle at 74% 37%,rgba(218,111,177,.08),transparent 35%)}
#meiyu-scrollvideo-preview .msv-video-wrap{position:absolute;inset:0 0 0 auto;z-index:1;width:min(86vw,1510px);height:100%;overflow:hidden;pointer-events:none;}
#meiyu-scrollvideo-preview .msv-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center center;filter:saturate(1.12) contrast(1.03);}
#meiyu-scrollvideo-preview .msv-video-fallback{position:absolute;inset:0;background-size:contain;background-position:center;background-repeat:no-repeat;opacity:0;}
#meiyu-scrollvideo-preview .msv-overlay{position:absolute;inset:0;z-index:2;background:linear-gradient(90deg,#1b092b 0%,rgba(27,9,43,.98) 12%,rgba(27,9,43,.90) 32%,rgba(27,9,43,.22) 62%,rgba(27,9,43,.05) 100%);pointer-events:none}
#meiyu-scrollvideo-preview .msv-inner{position:relative;z-index:4;margin:0 auto;max-width:1440px;height:100%;padding:clamp(95px,14vh,170px) clamp(28px,6vw,110px) 56px;}
#meiyu-scrollvideo-preview .msv-stages{position:relative;width:min(500px,43vw);height:min(380px,50vh);}
#meiyu-scrollvideo-preview .msv-copy{position:absolute;inset:0;opacity:0;transform:translateY(20px);transition:opacity .48s ease,transform .65s cubic-bezier(.22,.61,.36,1);pointer-events:none;}
#meiyu-scrollvideo-preview .msv-copy.is-active{opacity:1;transform:translateY(0);pointer-events:auto;}
#meiyu-scrollvideo-preview .msv-kicker{display:flex;align-items:center;gap:10px;color:#d991ba;font-weight:700!important;line-height:1.3!important;font-size:12px!important;letter-spacing:.18em!important;text-transform:uppercase;margin:0 0 32px}
#meiyu-scrollvideo-preview .msv-dot{display:inline-block;width:7px;height:7px;background:#f6ad64;border-radius:50%;box-shadow:0 0 22px rgba(246,173,100,.55)}
#meiyu-scrollvideo-preview h2{font-family:inherit!important;color:#fff!important;font-size:clamp(46px,5.25vw,83px)!important;line-height:1.05!important;font-weight:760!important;letter-spacing:-.045em!important;margin:0 0 24px!important;text-transform:none!important;}
#meiyu-scrollvideo-preview p{max-width:440px;color:rgba(247,240,250,.82)!important;font-size:clamp(16px,1.14vw,19px)!important;line-height:1.65!important;font-weight:400!important;margin:0!important;}
#meiyu-scrollvideo-preview .msv-cta{display:inline-flex!important;gap:20px;align-items:center;margin-top:28px!important;color:#fff!important;border:1px solid rgba(237,160,211,.53);border-radius:999px;padding:13px 22px!important;font-size:14px!important;text-decoration:none!important;background:rgba(134,56,117,.16);transition:background .2s ease;}
#meiyu-scrollvideo-preview .msv-cta:hover,#meiyu-scrollvideo-preview .msv-cta:focus-visible{background:rgba(154,62,135,.36)}
#meiyu-scrollvideo-preview .msv-foot{position:absolute;bottom:clamp(56px,9vh,104px);left:clamp(28px,6vw,110px);right:clamp(28px,6vw,110px);display:flex;align-items:center;justify-content:space-between;gap:25px;}
#meiyu-scrollvideo-preview .msv-scroll-hint{display:flex;align-items:center;gap:10px;font-size:12px!important;letter-spacing:.025em;color:rgba(244,223,244,.64)}
#meiyu-scrollvideo-preview .msv-scroll-icon{font-size:25px;color:#f6ad64}
#meiyu-scrollvideo-preview .msv-steps{display:flex;gap:26px;align-items:center;}
#meiyu-scrollvideo-preview .msv-steps span{font-size:10px!important;letter-spacing:.17em;color:rgba(244,223,244,.39);transition:color .3s ease;}
#meiyu-scrollvideo-preview .msv-steps span.is-active{color:#ffce99}
#meiyu-scrollvideo-preview .msv-bar{position:absolute;bottom:0;left:0;right:0;height:3px;z-index:6;background:rgba(235,171,220,.15)}
#meiyu-scrollvideo-preview .msv-bar-fill{display:block;width:100%;height:100%;background:linear-gradient(90deg,#a94e98,#f6ad64);transform-origin:left center;transform:scaleX(0);will-change:transform}
@media(max-width:900px){
 #meiyu-scrollvideo-preview .msv-video-wrap{width:100%;inset:0}
 #meiyu-scrollvideo-preview .msv-video{height:80%;object-position:center 12%}
 #meiyu-scrollvideo-preview .msv-overlay{background:linear-gradient(0deg,#1b092b 3%,rgba(27,9,43,.90) 21%,rgba(27,9,43,.10) 56%,rgba(27,9,43,.18) 100%)}
 #meiyu-scrollvideo-preview .msv-inner{padding:0 26px 38px;display:flex;flex-direction:column;justify-content:flex-end;}
 #meiyu-scrollvideo-preview .msv-stages{width:100%;height:286px;max-height:39svh}
 #meiyu-scrollvideo-preview .msv-copy{top:0}
 #meiyu-scrollvideo-preview h2{font-size:clamp(40px,9vw,58px)!important;margin-bottom:12px!important}
 #meiyu-scrollvideo-preview p{font-size:15px!important;line-height:1.55!important;max-width:430px;}
 #meiyu-scrollvideo-preview .msv-kicker{margin-bottom:18px}
 #meiyu-scrollvideo-preview .msv-foot{position:static;align-items:flex-end;flex-direction:column;margin-top:16px;gap:12px}
 #meiyu-scrollvideo-preview .msv-scroll-hint{display:none}
 #meiyu-scrollvideo-preview .msv-steps{gap:17px}
 #meiyu-scrollvideo-preview .msv-cta{margin-top:15px!important;padding:9px 14px!important;font-size:12px!important}
}
@media(max-width:560px){
 #meiyu-scrollvideo-preview.msv-section{height:260svh!important}
 #meiyu-scrollvideo-preview .msv-sticky{min-height:500px}
 #meiyu-scrollvideo-preview .msv-inner{padding:0 22px 34px}
 #meiyu-scrollvideo-preview .msv-stages{height:263px;max-height:43svh}
 #meiyu-scrollvideo-preview .msv-video{height:77%;object-position:center 0%}
 #meiyu-scrollvideo-preview .msv-steps span{font-size:8px!important;letter-spacing:.1em}
 #meiyu-scrollvideo-preview h2{font-size:clamp(39px,10.5vw,49px)!important}
 #meiyu-scrollvideo-preview p{font-size:13px!important;line-height:1.5!important}
}
@media(prefers-reduced-motion:reduce){
 #meiyu-scrollvideo-preview.msv-section{height:auto!important;min-height:580px!important}
 #meiyu-scrollvideo-preview .msv-sticky{position:relative!important;height:700px!important;min-height:580px}
 #meiyu-scrollvideo-preview .msv-video{display:none}
 #meiyu-scrollvideo-preview .msv-video-fallback{opacity:1}
 #meiyu-scrollvideo-preview .msv-copy{transition:none!important;transform:none!important}
 #meiyu-scrollvideo-preview .msv-steps{display:none}
}

#meiyu-scrollvideo-preview.msv-video-error .msv-video{display:none!important}
#meiyu-scrollvideo-preview.msv-video-error .msv-video-fallback{opacity:1!important}

/* Frame based canvas rendering: show poster until first decoded frame is ready. */
#meiyu-scrollvideo-preview .msv-canvas{opacity:0;transition:opacity .12s ease}
#meiyu-scrollvideo-preview .msv-video-fallback{opacity:1!important;transition:opacity .12s ease}
#meiyu-scrollvideo-preview.msv-frame-ready .msv-canvas{opacity:1}
#meiyu-scrollvideo-preview.msv-frame-ready .msv-video-fallback{opacity:0!important}
#meiyu-scrollvideo-preview.msv-video-error .msv-video-fallback{opacity:1!important}

@media(max-width:900px){
 #meiyu-scrollvideo-preview .msv-video-fallback{height:80%;background-position:center 12%}
}
@media(max-width:560px){
 #meiyu-scrollvideo-preview .msv-video-fallback{height:77%;background-position:center top}
}


/* V1.3.0: mobile animation and storytelling move into the same visual zone. */
@media (max-width: 900px) {
 #meiyu-scrollvideo-preview .msv-video-wrap{
   inset: max(7svh, calc(100svh - clamp(285px, 43svh, 350px) - 260px)) 0 auto 0!important;
   width: 100%!important;
   height: 265px!important;
   overflow: hidden!important;
   -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 10%,#000 80%,transparent 100%);
   mask-image:linear-gradient(to bottom,transparent 0%,#000 10%,#000 80%,transparent 100%);
 }
 #meiyu-scrollvideo-preview .msv-canvas,
 #meiyu-scrollvideo-preview .msv-video {
   inset: 0!important;
   width: 100%!important;
   height: 100%!important;
   object-fit: contain!important;
   object-position: center top!important;
   transform: scale(1.15);
   transform-origin: center center;
 }
 #meiyu-scrollvideo-preview .msv-video-fallback{
   inset: 0!important;
   width: 100%!important;
   height: 100%!important;
   background-size: contain!important;
   background-position: center top!important;
   transform: scale(1.15);
   transform-origin: center center;
 }
 #meiyu-scrollvideo-preview .msv-overlay {
   background:linear-gradient(180deg,
     rgba(27,9,43,.07) 0%,
     rgba(27,9,43,.03) 32%,
     rgba(27,9,43,.15) 48%,
     rgba(27,9,43,.78) 63%,
     #1b092b 77%,
     #1b092b 100%)!important;
 }
 #meiyu-scrollvideo-preview .msv-inner{
   padding-bottom:calc(24px + env(safe-area-inset-bottom))!important;
 }
 #meiyu-scrollvideo-preview .msv-stages{
   height:clamp(288px,42svh,370px)!important;
   max-height:none!important;
 }
 #meiyu-scrollvideo-preview .msv-kicker{margin-bottom:12px!important}
 #meiyu-scrollvideo-preview .msv-foot{margin-top:8px!important}
}
@media (max-width: 560px) {
 #meiyu-scrollvideo-preview.msv-section{height:300svh!important}
 #meiyu-scrollvideo-preview .msv-video-wrap{inset:max(7svh, calc(100svh - clamp(285px, 43svh, 350px) - 260px)) 0 auto 0!important;height:265px!important}
 #meiyu-scrollvideo-preview .msv-canvas,
 #meiyu-scrollvideo-preview .msv-video {transform:scale(1.15)!important}
 #meiyu-scrollvideo-preview .msv-video-fallback{transform:scale(1.15)!important}
 #meiyu-scrollvideo-preview .msv-stages{height:clamp(285px,43svh,350px)!important}
 #meiyu-scrollvideo-preview .msv-inner{padding:0 22px calc(24px + env(safe-area-inset-bottom))!important}
 #meiyu-scrollvideo-preview h2{font-size:clamp(38px,10vw,48px)!important;line-height:1.065!important}
 #meiyu-scrollvideo-preview p{font-size:14px!important;line-height:1.48!important}
 #meiyu-scrollvideo-preview .msv-cta{margin-top:13px!important}
}
@media (max-width:560px) and (max-height:620px) {
 #meiyu-scrollvideo-preview .msv-video-wrap{inset:max(7svh, calc(100svh - 285px - 260px)) 0 auto 0!important;height:245px!important}
 #meiyu-scrollvideo-preview .msv-stages{height:270px!important}
 #meiyu-scrollvideo-preview h2{font-size:clamp(34px,9vw,43px)!important}
 #meiyu-scrollvideo-preview p{font-size:12.5px!important}
}
@media (prefers-reduced-motion:reduce) {
 #meiyu-scrollvideo-preview.msv-section{height:auto!important;min-height:580px!important}
 #meiyu-scrollvideo-preview .msv-sticky{position:relative!important;height:700px!important}
 #meiyu-scrollvideo-preview .msv-canvas{display:none!important}
 #meiyu-scrollvideo-preview .msv-video-fallback{opacity:1!important}
}
