:root{
  --av-ink:#071426;
  --av-navy:#06101f;
  --av-blue:#2446a5;
  --av-sky:#eef5ff;
  --av-line:#dfe8f4;
  --av-muted:#5d6b80;
  --av-shadow:0 28px 72px rgba(10,31,68,.14);
}

.ai-video-page .detail-main{overflow:visible;background:#fff}
.ai-video-page a{text-decoration:none}
.ai-video-page #portfolio,
.ai-video-page #pipeline,
.ai-video-page #strengths,
.ai-video-page #contact{scroll-margin-top:calc(var(--header,62px) + 100px)}
.av-section{position:relative;padding:82px 0}
.av-section-head{display:grid;gap:14px;align-items:end;margin-bottom:30px}
.av-section-head.center{max-width:860px;margin:0 auto 36px;text-align:center;justify-items:center}
.av-section-head h2{margin:0;color:var(--av-ink);font-size:clamp(38px,4.4vw,62px);line-height:1.07;letter-spacing:-.075em;font-weight:900}
.av-section-head p{margin:0;color:var(--av-muted);font-size:16px;line-height:1.75;font-weight:600;word-break:keep-all}
.av-kicker{display:inline-flex;align-items:center;gap:9px;width:max-content;min-height:36px;padding:0 14px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.08);color:#dbeafe;font-size:12px;font-weight:900;backdrop-filter:blur(12px)}
.av-kicker:before{content:"";width:9px;height:9px;border-radius:50%;background:#60a5fa;box-shadow:0 0 0 5px rgba(96,165,250,.15)}
.av-kicker.light{border-color:#d9e5f8;background:#fff;color:var(--av-blue);box-shadow:0 12px 30px rgba(10,31,68,.06)}

.av-hero{position:relative;min-height:100svh !important;padding:calc(var(--header,62px) + 68px) 0 82px;overflow:clip;box-sizing:border-box;background:radial-gradient(circle at 16% 18%,rgba(53,91,204,.33),transparent 29%),radial-gradient(circle at 84% 12%,rgba(117,88,224,.26),transparent 29%),linear-gradient(135deg,#06101f 0%,#091a35 48%,#10275a 100%)}
.av-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:82px 82px;mask-image:linear-gradient(180deg,#000,transparent 94%);pointer-events:none}
.av-hero:after{content:"";position:absolute;left:58%;top:18%;width:420px;height:420px;border-radius:50%;background:rgba(71,105,224,.18);filter:blur(100px);pointer-events:none}
.av-hero-inner{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,.98fr) minmax(440px,1.02fr);gap:54px;align-items:center}
.av-hero-copy{position:relative;z-index:3;min-width:0}
.av-hero-copy h1{margin:18px 0 0;color:#fff;font-size:clamp(48px,5.2vw,74px);line-height:1.04;letter-spacing:-.075em;font-weight:900}
.av-hero-copy h1 span{background:linear-gradient(100deg,#fff,#9bc4ff 48%,#bcaeff);-webkit-background-clip:text;background-clip:text;color:transparent}
.av-hero-copy p{max-width:620px;margin:24px 0 0;color:rgba(238,245,255,.8);font-size:18px;line-height:1.75;font-weight:600;letter-spacing:-.03em;word-break:keep-all}
.av-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.av-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:999px;font-size:14px;font-weight:900;transition:transform .22s ease,box-shadow .22s ease}
.av-btn.primary{background:#fff;color:#071426;box-shadow:0 18px 36px rgba(0,0,0,.22)}
.av-btn.ghost{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;backdrop-filter:blur(12px)}
.av-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.av-hero-tags span{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(255,255,255,.075);color:#dbeafe;font-size:11.5px;font-weight:900}
.av-hero-art{position:relative;min-width:0;min-height:512px}
.av-hero-art:before{content:"";position:absolute;inset:6% 4%;border-radius:50%;background:linear-gradient(135deg,rgba(55,104,255,.34),rgba(139,92,246,.24));filter:blur(46px)}
.av-card-main{position:absolute;inset:26px 44px 34px 28px;display:block;overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:32px;background:#09111f;box-shadow:0 38px 90px rgba(0,0,0,.38);transform:perspective(1100px) rotateY(-2deg)}
.av-card-main:before{content:"";position:absolute;inset:10px;z-index:4;border:1px solid rgba(255,255,255,.18);border-radius:24px;pointer-events:none}
.av-card-main:after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(5,13,28,.02),rgba(5,13,28,.76));pointer-events:none}
.av-hero-player,.av-hero-video-trigger,.av-hero-video-shell{position:relative;display:block;width:100%;height:100%}
.av-hero-video-trigger{padding:0;border:0;background:#09111f;cursor:pointer}
.av-hero-video-trigger img,.av-floating-card img{display:block;width:100%;height:100%;object-fit:cover}
.av-hero-video-shell{z-index:2;background:#030712}
.av-hero-video-shell iframe{display:block;width:100%;height:100%;border:0}
.av-hero-video-close{position:absolute;right:16px;top:16px;z-index:5;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid rgba(255,255,255,.36);border-radius:50%;background:rgba(7,20,38,.82);color:#fff;font-size:24px;line-height:1;cursor:pointer;backdrop-filter:blur(10px)}
.av-hero-video-trigger:focus-visible,.av-hero-video-close:focus-visible{outline:3px solid #8db8ff;outline-offset:-4px}
.av-play{position:absolute;left:50%;top:48%;z-index:3;display:grid;place-items:center;width:82px;height:82px;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 22px 48px rgba(0,0,0,.28);transform:translate(-50%,-50%);transition:transform .25s ease}
.av-play i{display:block;width:0;height:0;margin-left:6px;border-top:14px solid transparent;border-bottom:14px solid transparent;border-left:22px solid var(--av-blue)}
.av-card-caption{position:absolute;left:28px;right:28px;bottom:24px;z-index:3;color:#fff}
.av-card-caption b{display:block;font-size:27px;line-height:1.1;font-weight:900;letter-spacing:-.055em}
.av-card-caption small{display:block;margin-top:7px;color:rgba(255,255,255,.76);font-size:12.5px;font-weight:900}
.av-floating-card{position:absolute;z-index:4;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:24px;background:rgba(255,255,255,.1);box-shadow:0 24px 60px rgba(0,0,0,.28);backdrop-filter:blur(12px)}
.av-float-studio{left:0;bottom:4px;width:202px;height:136px}
.av-float-studio:after,.av-float-flow:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,rgba(6,17,31,.82))}
.av-float-studio span{position:absolute;left:15px;bottom:14px;z-index:2;color:#fff;font-size:12px;font-weight:900}
.av-float-flow{right:0;top:8px;width:172px;height:126px}
.av-float-flow>div{position:absolute;left:16px;right:16px;bottom:15px;z-index:2;color:#fff}
.av-float-flow strong{display:block;font-size:21px;font-weight:900}
.av-float-flow em{display:block;margin-top:5px;color:#dbeafe;font-size:10.5px;font-style:normal;font-weight:900}

.ai-video-page .av-detail-nav a:focus-visible{outline:3px solid rgba(36,70,165,.24);outline-offset:-2px;background:#f0f5ff;color:var(--av-blue)}

.av-showcase{isolation:isolate;background:radial-gradient(circle at 18% 6%,rgba(36,70,165,.08),transparent 26%),linear-gradient(180deg,#fff,#f7fbff)}
.av-showcase:before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(36,70,165,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(36,70,165,.035) 1px,transparent 1px);background-size:86px 86px;mask-image:linear-gradient(180deg,rgba(0,0,0,.55),transparent 72%)}
.av-project-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:290px;gap:18px}
.av-project-card{position:relative;overflow:hidden;border:1px solid rgba(214,226,246,.95);border-radius:30px;background:#fff;box-shadow:0 22px 54px rgba(10,31,68,.11)}
.av-project-card.tall{grid-column:span 2;grid-row:span 2}
.av-project-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .48s ease,filter .48s ease}
.av-project-card:not(.av-video-project):before{content:"";position:absolute;inset:10px;z-index:2;border:1px solid rgba(255,255,255,.35);border-radius:22px;pointer-events:none}
.av-project-card:not(.av-video-project):after,.av-video-project:after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 20%,rgba(7,20,38,.38) 58%,rgba(7,20,38,.9));pointer-events:none}
.av-project-copy{position:absolute;left:24px;right:24px;bottom:24px;z-index:3;color:#fff}
.av-project-copy h3{margin:0 0 7px;font-size:clamp(23px,2.2vw,34px);line-height:1.1;letter-spacing:-.065em}
.av-project-copy p{margin:0;color:rgba(255,255,255,.82);font-size:13.5px;line-height:1.6;font-weight:700;word-break:keep-all}
.av-video-project{background:#071426}
.av-project-video{position:absolute;inset:0;overflow:hidden;background:#071426}
.av-video-trigger{position:relative;display:block;width:100%;height:100%;padding:0;border:0;overflow:hidden;background:#071426;cursor:pointer}
.av-video-trigger img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .35s ease,filter .35s ease}
.av-video-play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:78px;height:78px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 18px 42px rgba(0,0,0,.28);transform:translate(-50%,-50%);transition:transform .25s ease,box-shadow .25s ease}
.av-video-play i{display:block;width:0;height:0;margin-left:5px;border-top:12px solid transparent;border-bottom:12px solid transparent;border-left:19px solid var(--av-blue)}
.av-video-trigger:focus-visible{outline:3px solid #73a6ff;outline-offset:-4px}
.av-video-project .av-project-copy{position:absolute;left:24px;right:24px;bottom:24px;z-index:3;color:#fff;pointer-events:none}
.av-video-project .av-project-copy h3{font-size:clamp(24px,2.1vw,32px)}
.av-video-project .av-project-copy p{color:rgba(255,255,255,.84)}
.av-project-channel{display:inline-flex;align-items:center;min-height:38px;margin-top:14px;padding:0 13px;pointer-events:auto;border:1px solid rgba(255,255,255,.3);border-radius:999px;background:rgba(7,20,38,.52);color:#fff;font-size:11.5px;font-weight:900;backdrop-filter:blur(10px);transition:background .2s ease,border-color .2s ease}
.av-project-channel:focus-visible{outline:3px solid #8db8ff;outline-offset:3px}
.av-video-modal-open{overflow:hidden}
.av-video-modal{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:28px;background:rgba(3,9,20,.82);backdrop-filter:blur(12px)}
.av-video-modal-dialog{position:relative;width:min(1100px,100%)}
.av-video-modal-frame{overflow:hidden;width:100%;aspect-ratio:16/9;border:1px solid rgba(255,255,255,.18);border-radius:24px;background:#000;box-shadow:0 32px 100px rgba(0,0,0,.48)}
.av-video-modal-frame iframe{display:block;width:100%;height:100%;border:0}
.av-video-modal-close{position:absolute;right:-14px;top:-54px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.38);border-radius:50%;background:rgba(7,20,38,.9);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.av-video-modal-close:focus-visible{outline:3px solid #8db8ff;outline-offset:3px}

.av-visual{overflow:hidden;background:linear-gradient(135deg,#071426,#0c1d3c 58%,#142f68)}
.av-visual:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 82% 20%,rgba(124,102,234,.22),transparent 25%),linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:auto,88px 88px,88px 88px}
.av-visual .detail-wrap{position:relative;z-index:1}
.av-visual .av-section-head h2{color:#fff}
.av-visual .av-section-head p{color:rgba(255,255,255,.72)}
.av-visual .av-kicker.light{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#dbeafe;box-shadow:none}
.av-pipeline{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.av-pipeline:before{content:"";position:absolute;left:8%;right:8%;top:54px;height:2px;background:linear-gradient(90deg,rgba(119,162,255,.25),#78a7ff,rgba(155,128,247,.3))}
.av-pipeline article{position:relative;display:flex;min-height:270px;padding:22px 18px 20px;flex-direction:column;border:1px solid rgba(255,255,255,.13);border-radius:26px;background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.055));color:#fff;box-shadow:0 24px 58px rgba(0,0,0,.18);backdrop-filter:blur(12px);transition:transform .24s ease,border-color .24s ease}
.av-pipeline-icon{position:relative;z-index:2;display:grid;place-items:center;width:64px;height:64px;border:1px solid rgba(255,255,255,.2);border-radius:20px;background:linear-gradient(145deg,#3158bb,#6b55d6);color:#fff;box-shadow:0 15px 34px rgba(39,71,171,.34)}
.av-pipeline-icon svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.av-pipeline article>b{display:block;margin-top:18px;color:#8eb8ff;font-size:11px;letter-spacing:.1em}
.av-pipeline h3{margin:20px 0 8px;font-size:19px;line-height:1.28;word-break:keep-all}
.av-pipeline p{margin:0;color:rgba(255,255,255,.68);font-size:12.5px;line-height:1.62;font-weight:650;word-break:keep-all}

.av-strength{background:linear-gradient(180deg,#fff,#f6f9ff)}
.av-strength-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.av-strength-grid article{position:relative;display:flex;min-height:238px;padding:24px;overflow:hidden;flex-direction:column;border:1px solid var(--av-line);border-radius:26px;background:#fff;box-shadow:0 18px 46px rgba(10,31,68,.07);transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease}
.av-strength-grid article:after{content:"";position:absolute;right:-38px;top:-42px;width:120px;height:120px;border-radius:50%;background:rgba(36,70,165,.06)}
.av-strength-grid b{position:relative;z-index:1;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#eef5ff;color:var(--av-blue);font-size:12px;font-weight:900}
.av-strength-grid article>div{position:relative;z-index:1}
.av-strength-grid h3{margin:20px 0 9px;color:var(--av-ink);font-size:21px;line-height:1.22;letter-spacing:-.055em;word-break:keep-all}
.av-strength-grid p{margin:0;color:var(--av-muted);font-size:13.5px;line-height:1.65;font-weight:650;word-break:keep-all}

.av-cta{padding:74px 0 100px;background:linear-gradient(180deg,#f7fbff,#eef6ff)}
.av-cta-box{position:relative;min-height:320px;padding:52px 54px;overflow:hidden;border-radius:38px;background-image:linear-gradient(90deg,rgba(7,20,38,.92),rgba(7,20,38,.52)),url('../assets/ai-video/hero-visual-poster.jpg');background-position:center;background-size:cover;color:#fff;box-shadow:0 34px 86px rgba(10,31,68,.22)}
.av-cta-box:before{content:"";position:absolute;right:-90px;top:-110px;width:330px;height:330px;border-radius:50%;background:rgba(255,255,255,.14)}
.av-cta-box>span{position:relative;display:inline-flex;margin-bottom:18px;padding:8px 13px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.12);font-size:12px;font-weight:900}
.av-cta-box h2{position:relative;max-width:760px;margin:0;color:#fff;font-size:clamp(40px,5vw,74px);line-height:1.05;letter-spacing:-.08em}
.av-cta-box .av-btn{position:relative;margin-top:28px}

@media(hover:hover) and (pointer:fine){
  .av-btn:hover{transform:translateY(-2px)}
  .av-card-main:hover .av-play{transform:translate(-50%,-50%) scale(1.08)}
  .av-project-card:not(.av-video-project):hover>img{transform:scale(1.045);filter:saturate(1.08)}
  .av-video-trigger:hover img{transform:scale(1.025);filter:saturate(1.06)}
  .av-video-trigger:hover .av-video-play{transform:translate(-50%,-50%) scale(1.06);box-shadow:0 22px 48px rgba(0,0,0,.34)}
  .av-project-channel:hover{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.2)}
  .av-pipeline article:hover{border-color:rgba(143,177,255,.36);transform:translateY(-3px)}
  .av-strength-grid article:hover{border-color:#bfd2ee;box-shadow:0 26px 58px rgba(10,31,68,.11);transform:translateY(-3px)}
}

@media(max-width:1180px){
  .av-hero{height:auto;min-height:auto;padding-bottom:74px}
  .av-hero-inner{grid-template-columns:1fr}
  .av-hero-copy{max-width:760px}
  .av-hero-art{width:min(100%,760px);min-height:520px;margin-top:8px}
  .av-project-grid{grid-template-columns:1fr 1fr;grid-auto-rows:280px}
  .av-project-card.tall{grid-column:span 2;grid-row:span 2}
  .av-pipeline{grid-template-columns:repeat(3,minmax(0,1fr))}
  .av-pipeline:before{display:none}
  .av-pipeline article{min-height:238px}
  .av-strength-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .av-strength-grid article{min-height:210px}
}

@media(max-width:900px){
  .av-section{padding:68px 0}
  .av-section-head h2{font-size:42px}
  .av-pipeline{grid-template-columns:1fr 1fr}
  .av-pipeline article{min-height:225px}
}

@media(max-width:760px){
  .av-hero{padding:96px 0 58px}
  .av-hero-copy h1{font-size:clamp(42px,12vw,56px)}
  .av-hero-copy p{font-size:16px;line-height:1.7}
  .av-hero-actions{display:grid;grid-template-columns:1fr}
  .av-btn{width:100%}
  .av-hero-art{min-height:400px}
  .av-card-main{inset:0 0 58px;border-radius:26px;transform:none}
  .av-float-studio{left:10px;width:168px;height:112px}
  .av-float-flow{right:8px;width:138px;height:100px}
  .av-play{width:68px;height:68px}
  .av-card-caption{left:20px;right:20px;bottom:19px}
  .av-card-caption b{font-size:22px}
  .ai-video-page .av-detail-nav{position:static;display:block;min-width:0;margin:0!important;overflow:visible}
  .ai-video-page .av-detail-nav .detail-quick-inner{width:calc(100% - 32px)!important;min-width:0!important;margin-right:auto!important;margin-left:auto!important;box-sizing:border-box;justify-content:flex-start!important;overflow-x:auto}
  .av-project-grid,.av-pipeline,.av-strength-grid{grid-template-columns:1fr}
  .av-project-grid{grid-auto-rows:auto}
  .av-project-card.tall{grid-column:span 1;grid-row:span 1}
  .av-project-card:not(.av-video-project){min-height:280px}
  .av-video-project{min-height:340px}
  .av-video-project .av-project-copy{left:20px;right:20px;bottom:20px}
  .av-project-channel{min-height:42px;max-width:100%;padding:0 14px;white-space:nowrap}
  .av-video-play{width:68px;height:68px}
  .av-video-modal{padding:18px}
  .av-video-modal-frame{border-radius:18px}
  .av-video-modal-close{right:0;top:-50px;width:42px;height:42px}
  .av-pipeline article{min-height:0;padding:20px;border-radius:24px}
  .av-strength-grid article{min-height:0;padding:20px;border-radius:24px}
  .av-cta-box{min-height:280px;padding:40px 28px;border-radius:30px}
  .av-cta-box h2{font-size:40px}
}

@media(max-width:430px){
  .av-kicker{font-size:11px}
  .av-hero-copy h1{font-size:43px}
  .av-hero-tags span{min-height:31px;font-size:11px}
  .av-hero-art{min-height:360px}
  .av-float-studio{width:148px;height:98px}
  .av-float-flow{width:116px;height:86px}
  .av-section-head h2{font-size:34px}
  .av-cta-box h2{font-size:34px}
}

@media(prefers-reduced-motion:reduce){
  .av-btn,.av-play,.av-project-card img,.av-video-play,.av-project-channel,.av-pipeline article,.av-strength-grid article{transition:none!important}
}


/* Final deployment audit: prevent the AI video quick navigation from inheriting legacy fixed geometry at compact desktop and tablet widths. */
@media(max-width:1300px){
  .ai-video-page .av-detail-nav{
    position:sticky!important;
    top:calc(var(--header,62px) + 10px)!important;
    left:auto!important;
    right:auto!important;
    z-index:30!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:-28px 0 0!important;
    overflow:visible!important;
  }
  .ai-video-page .av-detail-nav .detail-quick-inner{
    width:min(1180px,calc(100% - 104px))!important;
    min-width:0!important;
    margin-right:auto!important;
    margin-left:auto!important;
    box-sizing:border-box!important;
    overflow-x:auto!important;
  }
}
@media(max-width:900px){
  .ai-video-page .av-detail-nav{position:static!important;margin:0!important;}
  .ai-video-page .av-detail-nav .detail-quick-inner{width:calc(100% - 40px)!important;}
}
@media(max-width:760px){
  .ai-video-page .av-detail-nav .detail-quick-inner{width:calc(100% - 32px)!important;}
}

/* =========================================================
   AI VIDEO HERO — original design, minimal final correction
   ========================================================= */
.ai-video-page .av-card-main{
  isolation:isolate;
}

.ai-video-page .av-hero-stage,
.ai-video-page .av-hero-video-trigger,
.ai-video-page .av-hero-video-shell{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}

.ai-video-page .av-hero-stage{
  z-index:2;
}

.ai-video-page .av-hero-video-trigger{
  z-index:1;
  overflow:hidden;
  padding:0;
  border:0;
  border-radius:inherit;
  background:#09111f;
  color:#fff;
  cursor:pointer;
  opacity:1;
  visibility:visible;
  transition:opacity .2s ease,visibility .2s ease;
}

.ai-video-page .av-hero-video-trigger.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.ai-video-page .av-hero-cover-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:none;
  transform:none;
}

.ai-video-page .av-cover-copy{
  position:absolute;
  right:28px;
  bottom:25px;
  z-index:4;
  display:grid;
  justify-items:end;
  gap:6px;
  width:min(72%,360px);
  text-align:right;
  pointer-events:none;
}

.ai-video-page .av-cover-copy strong{
  display:block;
  max-width:100%;
  color:#fff;
  font-size:26px;
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.055em;
  white-space:nowrap;
  text-shadow:0 3px 14px rgba(0,0,0,.62);
}

.ai-video-page .av-cover-copy small{
  display:block;
  max-width:100%;
  color:rgba(255,255,255,.76);
  font-size:11px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:.01em;
  white-space:nowrap;
  text-shadow:0 2px 10px rgba(0,0,0,.58);
}

.ai-video-page .av-hero-video-shell{
  z-index:2;
  overflow:hidden;
  border-radius:inherit;
  background:#000;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease,visibility .2s ease;
}

.ai-video-page .av-hero-video-shell.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.ai-video-page .av-hero-video-shell iframe{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  border:0;
  filter:none!important;
  transform:none!important;
}

.ai-video-page .av-hero-art.is-video-playing .av-card-main{
  inset:26px 44px 34px 28px;
  transform:perspective(1100px) rotateY(-2deg);
}

.ai-video-page .av-hero-art.is-video-playing .av-card-main::before,
.ai-video-page .av-hero-art.is-video-playing .av-card-main::after{
  opacity:0;
}

/* Small cards retain original size/image treatment. Only text alignment is unified. */
.ai-video-page .av-float-studio > div,
.ai-video-page .av-float-flow > div{
  position:absolute;
  left:16px;
  right:16px;
  top:16px;
  bottom:auto;
  z-index:2;
  color:#fff;
}

.ai-video-page .av-float-studio strong,
.ai-video-page .av-float-flow strong{
  display:block;
  color:#fff;
  font-size:21px;
  line-height:1.14;
  font-weight:900;
  letter-spacing:-.045em;
  text-shadow:0 2px 10px rgba(0,0,0,.48);
}

.ai-video-page .av-float-studio em,
.ai-video-page .av-float-flow em{
  display:block;
  margin-top:6px;
  color:#dbeafe;
  font-size:10.5px;
  line-height:1.3;
  font-style:normal;
  font-weight:900;
  white-space:nowrap;
  text-shadow:0 2px 8px rgba(0,0,0,.45);
}

/* During playback, the two small cards stay in place. */
.ai-video-page .av-hero-art.is-video-playing .av-floating-card{
  opacity:1;
  visibility:visible;
}

@media(max-width:760px){
  .ai-video-page .av-cover-copy{
    right:18px;
    bottom:17px;
    width:min(76%,250px);
  }

  .ai-video-page .av-cover-copy strong{
    font-size:18px;
  }

  .ai-video-page .av-cover-copy small{
    font-size:8.5px;
  }

  .ai-video-page .av-float-studio > div,
  .ai-video-page .av-float-flow > div{
    left:12px;
    right:10px;
    top:12px;
  }

  .ai-video-page .av-float-studio strong,
  .ai-video-page .av-float-flow strong{
    font-size:14px;
  }

  .ai-video-page .av-float-studio em,
  .ai-video-page .av-float-flow em{
    margin-top:4px;
    font-size:8px;
  }

  .ai-video-page .av-hero-art.is-video-playing .av-card-main{
    inset:0 0 58px;
    transform:none;
  }
}

@media(max-width:430px){
  .ai-video-page .av-cover-copy{
    right:14px;
    bottom:14px;
    width:min(78%,210px);
  }

  .ai-video-page .av-cover-copy strong{
    font-size:15px;
  }

  .ai-video-page .av-cover-copy small{
    font-size:7px;
    letter-spacing:0;
  }
}

/* =========================================================
   AI VIDEO HERO — original layout minimal corrections v8
   1) Cover image is always shown before playback.
   2) Video plays only inside the existing large frame and can be closed.
   3) Production-flow copy sits at the lower-right of its small card.
   ========================================================= */

/* Pre-play image layer must stay above any inactive player layer. */
.ai-video-page .av-hero-stage{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.ai-video-page .av-hero-video-trigger{
  z-index:3!important;
  opacity:1;
  visibility:visible;
}

.ai-video-page .av-hero-video-trigger.is-hidden{
  z-index:1!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* The iframe exists only during playback and fills the unchanged card. */
.ai-video-page .av-hero-video-shell,
.ai-video-page .av-hero-video-shell.is-active{
  position:absolute;
  inset:0;
  z-index:8!important;
  display:block;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:inherit;
  background:#000;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

.ai-video-page .av-hero-video-shell iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  transform:none!important;
}

/* Clearly visible close control. Closing unmounts the iframe and restores the cover. */
.ai-video-page .av-hero-video-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  z-index:20!important;
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.52)!important;
  border-radius:50%!important;
  background:rgba(4,15,34,.88)!important;
  color:#fff!important;
  font-size:25px!important;
  line-height:1!important;
  box-shadow:0 10px 26px rgba(0,0,0,.28)!important;
  cursor:pointer!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Keep the original large-card geometry before and during playback. */
.ai-video-page .av-hero-art.is-video-playing .av-card-main{
  inset:26px 44px 34px 28px!important;
  transform:perspective(1100px) rotateY(-2deg)!important;
}

/* Editing card remains top-left as approved. */
.ai-video-page .av-float-studio > div{
  left:16px!important;
  right:16px!important;
  top:16px!important;
  bottom:auto!important;
  text-align:left!important;
}

/* Production-flow copy moves to the lower-right inside its own card. */
.ai-video-page .av-float-flow > div{
  left:14px!important;
  right:14px!important;
  top:auto!important;
  bottom:14px!important;
  text-align:right!important;
}

.ai-video-page .av-float-flow strong,
.ai-video-page .av-float-flow em{
  text-align:right!important;
}

@media(max-width:760px){
  .ai-video-page .av-hero-art.is-video-playing .av-card-main{
    inset:0 0 58px!important;
    transform:none!important;
  }

  .ai-video-page .av-float-flow > div{
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
  }

  .ai-video-page .av-hero-video-close{
    top:10px!important;
    right:10px!important;
    width:36px!important;
    height:36px!important;
    font-size:22px!important;
  }
}



/* =========================================================
   AI VIDEO HERO — v9 minimal correction
   1. Original studio cover image is restored in AiVideoPlayer.jsx.
   2. Playback close button is placed at the upper-left so the
      upper-right production-flow card cannot cover it.
   ========================================================= */
.ai-video-page .av-card-main .av-hero-video-close,
.ai-video-page .av-hero-stage .av-hero-video-close{
  position:absolute!important;
  top:14px!important;
  left:14px!important;
  right:auto!important;
  z-index:100!important;
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.58)!important;
  border-radius:50%!important;
  background:rgba(4,15,34,.92)!important;
  color:#fff!important;
  font-family:Arial,sans-serif!important;
  font-size:27px!important;
  font-weight:400!important;
  line-height:1!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  box-shadow:0 10px 28px rgba(0,0,0,.34)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

.ai-video-page .av-card-main .av-hero-video-close:hover,
.ai-video-page .av-hero-stage .av-hero-video-close:hover{
  background:rgba(18,45,82,.98)!important;
  transform:translateY(-1px)!important;
}

@media(max-width:760px){
  .ai-video-page .av-card-main .av-hero-video-close,
  .ai-video-page .av-hero-stage .av-hero-video-close{
    top:10px!important;
    left:10px!important;
    width:38px!important;
    height:38px!important;
    font-size:24px!important;
  }
}

/* =========================================================
   AI VIDEO HERO — v10 micro adjustment
   - Main visual frame slightly wider on desktop
   - Waiting-cover image only gets a very light blur
   - Overlay text and playback video remain perfectly sharp
   ========================================================= */
@media(min-width:761px){
  .ai-video-page .av-card-main,
  .ai-video-page .av-hero-art.is-video-playing .av-card-main{
    left:20px!important;
    right:24px!important;
  }
}

/* Blur only the pre-play cover image itself. */
.ai-video-page .av-hero-video-trigger:not(.is-hidden) .av-hero-cover-image{
  filter:blur(1.15px) saturate(1.03) contrast(1.02)!important;
  transform:scale(1.012)!important;
}

/* Text, play control and playing iframe remain sharp. */
.ai-video-page .av-cover-copy,
.ai-video-page .av-play,
.ai-video-page .av-hero-video-shell,
.ai-video-page .av-hero-video-shell iframe{
  filter:none!important;
}

@media(max-width:760px){
  .ai-video-page .av-hero-video-trigger:not(.is-hidden) .av-hero-cover-image{
    filter:blur(.8px) saturate(1.02) contrast(1.01)!important;
    transform:scale(1.008)!important;
  }
}

/* =========================================================
   AI VIDEO HERO — v11 final micro adjustment
   1. 제작 흐름 카드: 오른쪽 8px, 위 5px 이동
   2. 하단 퀵 메뉴: 은은한 반투명 처리
   3. 대기 이미지 블러 제거
   4. 대기 이미지에만 아주 약한 어두운 오버레이 유지
   다른 구조·문구·재생 상태는 변경하지 않음
   ========================================================= */

/* 제작 흐름 카드 위치만 미세 조정 */
@media(min-width:761px){
  .ai-video-page .av-float-flow{
    right:-8px!important;
    top:3px!important;
  }
}

/* 하단 퀵 메뉴를 배경에 자연스럽게 연결 */
.ai-video-page .av-detail-nav .detail-quick-inner{
  background:rgba(255,255,255,.86)!important;
  border:1px solid rgba(255,255,255,.34)!important;
  box-shadow:0 18px 46px rgba(5,20,48,.10)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}

/* 재생 전 커버 이미지: 블러 제거, 선명도만 자연스럽게 보정 */
.ai-video-page .av-hero-video-trigger:not(.is-hidden) .av-hero-cover-image{
  filter:saturate(1.03) contrast(1.04) brightness(.94)!important;
  transform:scale(1.004)!important;
}

/* 재생 전 이미지에만 아주 약한 어두운 오버레이 */
.ai-video-page .av-hero-video-trigger:not(.is-hidden) .av-hero-cover-shade{
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
  background:
    linear-gradient(
      180deg,
      rgba(3,9,22,.015) 0%,
      rgba(3,9,22,.025) 58%,
      rgba(3,9,22,.15) 100%
    )!important;
  filter:none!important;
  pointer-events:none!important;
}

/* 문구·버튼·재생 영상에는 블러나 필터를 적용하지 않음 */
.ai-video-page .av-cover-copy,
.ai-video-page .av-play,
.ai-video-page .av-play-label,
.ai-video-page .av-hero-video-shell,
.ai-video-page .av-hero-video-shell iframe{
  filter:none!important;
}

/* 재생 중에는 커버 오버레이 완전 제거 */
.ai-video-page .av-hero-video-trigger.is-hidden .av-hero-cover-shade,
.ai-video-page .av-hero-art.is-video-playing .av-hero-cover-shade{
  opacity:0!important;
  visibility:hidden!important;
}

@media(max-width:760px){
  .ai-video-page .av-hero-video-trigger:not(.is-hidden) .av-hero-cover-image{
    filter:saturate(1.02) contrast(1.03) brightness(.95)!important;
    transform:scale(1.003)!important;
  }

  .ai-video-page .av-detail-nav .detail-quick-inner{
    background:rgba(255,255,255,.9)!important;
    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
  }
}

/* =========================================================
   AI VIDEO — v12 English layout correction
   영문 전환 시 제목·설명·버튼·태그·메인 카드 문구가
   영역을 벗어나지 않도록 영문 화면에만 적용
   ========================================================= */

body.lang-en.ai-video-page .av-hero-inner{
  grid-template-columns:minmax(0,1.04fr) minmax(430px,.96fr);
  gap:46px;
}

body.lang-en.ai-video-page .av-hero-copy{
  max-width:660px;
}

body.lang-en.ai-video-page .av-hero-copy h1{
  max-width:650px;
  margin-top:16px;
  font-size:clamp(48px,4.35vw,64px);
  line-height:1.02;
  letter-spacing:-.052em;
  word-break:normal;
  overflow-wrap:normal;
  text-wrap:balance;
}

body.lang-en.ai-video-page .av-hero-copy h1 span{
  display:block;
}

body.lang-en.ai-video-page .av-hero-copy p{
  max-width:650px;
  margin-top:20px;
  font-size:15.5px;
  line-height:1.62;
  letter-spacing:-.015em;
  word-break:normal;
  overflow-wrap:break-word;
}

body.lang-en.ai-video-page .av-hero-actions{
  margin-top:25px;
}

body.lang-en.ai-video-page .av-btn{
  min-height:46px;
  padding-inline:18px;
  font-size:13px;
  white-space:nowrap;
}

body.lang-en.ai-video-page .av-hero-tags{
  max-width:650px;
  margin-top:20px;
  gap:7px;
}

body.lang-en.ai-video-page .av-hero-tags span{
  min-height:31px;
  padding-inline:10px;
  font-size:10.5px;
  white-space:nowrap;
}

/* 오른쪽 메인 카드 하단 영문 문구가 잘리지 않도록 축소 */
body.lang-en.ai-video-page .av-cover-copy{
  right:22px;
  bottom:20px;
  width:min(78%,390px);
}

body.lang-en.ai-video-page .av-cover-copy strong{
  max-width:100%;
  font-size:17px;
  line-height:1.12;
  letter-spacing:-.035em;
  white-space:normal;
  text-wrap:balance;
}

body.lang-en.ai-video-page .av-cover-copy small{
  max-width:100%;
  font-size:8px;
  line-height:1.3;
  letter-spacing:.055em;
  white-space:normal;
}

/* 작은 카드 영문 문구도 카드 안에서 안정적으로 유지 */
body.lang-en.ai-video-page .av-float-flow strong,
body.lang-en.ai-video-page .av-float-studio strong{
  font-size:17px;
  letter-spacing:-.025em;
}

body.lang-en.ai-video-page .av-float-flow em,
body.lang-en.ai-video-page .av-float-studio em{
  font-size:8.5px;
  white-space:normal;
}

/* 일반 데스크톱에서 첫 화면 하단 요소가 잘리지 않도록 세로 간격 정리 */
@media(min-width:1101px) and (max-height:900px){
  body.lang-en.ai-video-page .av-hero{
    padding-top:calc(var(--header,62px) + 50px);
    padding-bottom:68px;
  }

  body.lang-en.ai-video-page .av-hero-copy h1{
    font-size:clamp(46px,4vw,58px);
  }

  body.lang-en.ai-video-page .av-hero-copy p{
    margin-top:17px;
  }

  body.lang-en.ai-video-page .av-hero-actions{
    margin-top:21px;
  }

  body.lang-en.ai-video-page .av-hero-tags{
    margin-top:17px;
  }
}

@media(max-width:1100px){
  body.lang-en.ai-video-page .av-hero-inner{
    grid-template-columns:1fr;
    gap:34px;
  }

  body.lang-en.ai-video-page .av-hero-copy,
  body.lang-en.ai-video-page .av-hero-copy h1,
  body.lang-en.ai-video-page .av-hero-copy p{
    max-width:760px;
  }

  body.lang-en.ai-video-page .av-hero-copy h1{
    font-size:clamp(46px,7vw,62px);
  }
}

@media(max-width:760px){
  body.lang-en.ai-video-page .av-hero-copy h1{
    font-size:clamp(38px,10.8vw,50px);
    line-height:1.03;
    letter-spacing:-.045em;
  }

  body.lang-en.ai-video-page .av-hero-copy p{
    font-size:14.5px;
    line-height:1.62;
  }

  body.lang-en.ai-video-page .av-hero-actions{
    grid-template-columns:1fr;
  }

  body.lang-en.ai-video-page .av-btn{
    width:100%;
    font-size:12.5px;
  }

  body.lang-en.ai-video-page .av-hero-tags{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.lang-en.ai-video-page .av-hero-tags span{
    justify-content:center;
    text-align:center;
    white-space:normal;
  }

  body.lang-en.ai-video-page .av-cover-copy{
    right:16px;
    bottom:15px;
    width:min(74%,250px);
  }

  body.lang-en.ai-video-page .av-cover-copy strong{
    font-size:13px;
  }

  body.lang-en.ai-video-page .av-cover-copy small{
    font-size:6.8px;
  }
}

@media(max-width:430px){
  body.lang-en.ai-video-page .av-hero-copy h1{
    font-size:38px;
  }

  body.lang-en.ai-video-page .av-hero-tags{
    grid-template-columns:1fr;
  }
}