/* Local, click-to-load MAD-Aid preview; all selectors stay inside its wrapper. */
[data-madaid-video] { min-width:0; background:#f0edf7; }
[data-madaid-video] [data-madaid-frame] { position:relative; width:100%; aspect-ratio:16/9; margin-inline:auto; overflow:hidden; isolation:isolate; background:linear-gradient(135deg,#292549 0%,#4a4697 62%,#913e91 100%); }
[data-madaid-video] [data-madaid-play] { position:absolute; inset:0; display:block; width:100%; height:100%; min-height:44px; margin:0; padding:20px; border:0; border-radius:0; color:#fff; background:transparent; font:inherit; text-align:left; cursor:pointer; }
[data-madaid-video] [data-madaid-play][hidden] { display:none!important; }
[data-madaid-video] [data-madaid-play]:focus-visible { outline:4px solid #fff; outline-offset:-6px; }
[data-madaid-video] .madaid-brand { position:absolute; top:18px; left:20px; font-size:clamp(16px,2.2vw,22px); font-weight:700; line-height:1.2; letter-spacing:.02em; }
[data-madaid-video] .madaid-play-icon { position:absolute; top:50%; left:50%; display:grid; width:64px; height:64px; place-items:center; border:2px solid #fff; border-radius:50%; color:#fff; background:#4a4697; transform:translate(-50%,-50%); }
[data-madaid-video] .madaid-play-icon svg { width:24px; height:24px; margin-left:3px; fill:currentColor; }
[data-madaid-video] [data-madaid-play]:hover .madaid-play-icon,
[data-madaid-video] [data-madaid-play]:focus-visible .madaid-play-icon { background:#cb398d; }
[data-madaid-video] .madaid-play-label { position:absolute; right:20px; bottom:18px; left:20px; font-size:16px; font-weight:700; line-height:1.4; }
[data-madaid-video][data-madaid-state="loading"] [data-madaid-frame],
[data-madaid-video][data-madaid-state="loaded"] [data-madaid-frame] { width:100%; max-width:360px; aspect-ratio:9/16; background:#111; }
[data-madaid-video] .video-player { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; }
[data-madaid-video] .video-loading { position:absolute; z-index:2; right:12px; bottom:12px; left:12px; width:fit-content; max-width:calc(100% - 24px); padding:9px 12px; border-radius:8px; color:#fff; background:rgba(41,37,73,.94); font-size:14px; line-height:1.45; pointer-events:none; }
[data-madaid-video] [data-madaid-status] { margin:0; padding:12px 20px; color:#484155; background:#f0edf7; font-size:14px; line-height:1.5; }
[data-madaid-video] [data-madaid-status]:empty { display:none; }
@media (max-width:760px) {
  [data-madaid-video][data-madaid-state="loading"] [data-madaid-frame],
  [data-madaid-video][data-madaid-state="loaded"] [data-madaid-frame] { max-width:100%; }
  [data-madaid-video] .madaid-brand { top:14px; left:16px; }
  [data-madaid-video] .madaid-play-label { right:16px; bottom:14px; left:16px; font-size:15px; }
  [data-madaid-video] .madaid-play-icon { width:56px; height:56px; }
}
