/* AGEM v8.2 — the real demo player replaces the portrait. */
.memory-demo-scene .memory-background{background:radial-gradient(ellipse at 75% 45%,#27214f70,transparent 46%),radial-gradient(ellipse at 95% 50%,#14364345,transparent 47%),linear-gradient(145deg,#080a18,#070912 74%);opacity:1;max-height:none}
.memory-demo-scene .memory-shade{background:linear-gradient(90deg,#070912b3,transparent 53%),linear-gradient(0deg,#070912 0,transparent 26%,transparent 82%,#070912 100%)}
.memory-demo-scene #memoryField{height:min(1120px,100%);z-index:-1;pointer-events:none;mask-image:none}
.memory-demo-scene .memory-body{grid-template-columns:minmax(0,.83fr) minmax(0,1.22fr);gap:clamp(34px,4vw,72px);align-items:center;min-height:765px}
.memory-demo-scene .memory-copy{max-width:520px;min-width:0}
.memory-demo{position:relative;z-index:2;min-width:0;width:100%;align-self:center;pointer-events:auto;padding:14px 0}
.memory-demo-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px;padding:0 2px}
.memory-demo-heading .tiny-caption{display:flex;align-items:center;gap:10px;font-size:9px;letter-spacing:.18em;color:#b6b6d2}
.memory-demo-heading i{display:block;width:5px;height:5px;border-radius:50%;background:#c4a9ff;box-shadow:0 0 12px #b79bfdaa}
.demo-format{font:9px ui-monospace,Consolas,monospace;color:#8f94af;letter-spacing:.1em}
.memory-player-frame{position:relative;isolation:isolate;overflow:hidden;border-radius:11px;border:1px solid #b9acf355;background:#0c1020;box-shadow:0 28px 74px #02040d9e,0 0 45px #ad85ff0f,inset 0 1px 0 #d0c0ff10;transition:border-color .3s,box-shadow .3s}
.memory-player-frame:before{content:'';position:absolute;inset:0 18% auto;height:1px;z-index:2;pointer-events:none;background:linear-gradient(90deg,transparent,#c5b0ffad,#a1dffe6b,transparent)}
.memory-player-frame:hover,.memory-player-frame:focus-within{border-color:#c1b3fa9c;box-shadow:0 28px 74px #02040d9e,0 0 40px #a287fb21,inset 0 1px 0 #d0c0ff10}
.memory-player-bar{height:44px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #bbabed17;background:linear-gradient(95deg,#14152b,#111522);position:relative;z-index:1}
.player-brand{display:flex;align-items:center;gap:8px;font-size:10px;color:#c2c4dc;min-width:0}
.player-brand .icon{width:17px;height:17px;color:#b6a2e7;stroke-width:1.2}
.player-status{font:8px ui-monospace,Consolas,monospace;letter-spacing:.13em;color:#8f91ad;white-space:nowrap}
.memory-player-frame[data-state=playing] .player-status{color:#aadbd0}.memory-player-frame[data-state=error] .player-status{color:#edbcaa}
.memory-video-stage{aspect-ratio:16/9;position:relative;isolation:isolate;background:#0a0d19}
.memory-video-stage video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#05070e;z-index:2}
.memory-demo-empty{position:absolute;inset:0;display:grid;align-items:center;justify-items:center;padding:34px 22px 52px;overflow:hidden;background:radial-gradient(ellipse at 50% 47%,#8a61dd18,transparent 60%),linear-gradient(130deg,#101226,#0a0f1b)}
.empty-grid{position:absolute;inset:0;pointer-events:none;opacity:.48;background-image:linear-gradient(#a59ce809 1px,transparent 1px),linear-gradient(90deg,#a59ce809 1px,transparent 1px);background-size:38px 38px;mask-image:radial-gradient(ellipse,#000,transparent 85%)}
.memory-empty-content{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}
.memory-upload-play{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;border:1px solid #c2a8ff68;position:relative;background:linear-gradient(150deg,#af87ff25,#80c7e70b);color:#e3d8ff;box-shadow:0 0 28px #ac7afb1c,inset 0 1px 0 #e5d6ff1f;transition:background .25s,box-shadow .25s,border-color .25s;margin-bottom:26px}
.memory-upload-play:before{content:'';position:absolute;inset:-8px;border-radius:50%;border:1px solid #c0a6f211;pointer-events:none}
.memory-upload-play .icon{width:22px;height:22px;stroke-width:1.1;margin-left:3px;fill:#d6c7ff18}
.memory-upload-play:hover{background:#aa82fc35;box-shadow:0 0 35px #ad88fa40;border-color:#dccfffaa}
.empty-eyebrow{font:8px ui-monospace,Consolas,monospace;color:#9597b4;letter-spacing:.23em;margin-bottom:11px}
.memory-empty-content strong{font-weight:350;letter-spacing:-.025em;font-size:clamp(20px,2vw,29px);line-height:1.3;color:#e4ddf6}
.memory-empty-content>p{font-size:11px;line-height:1.7;color:#939ab4;margin-top:10px}
.memory-pick-link{display:inline-flex;align-items:center;gap:7px;font-size:10px;line-height:1.6;color:#c5b1eb;margin-top:15px;padding:4px 3px;text-underline-offset:5px}
.memory-pick-link:hover{color:#efe4ff;text-decoration:underline}.memory-pick-link .icon{width:12px;height:12px}
.empty-player-controls{position:absolute;bottom:0;left:0;right:0;height:40px;display:flex;align-items:center;gap:13px;padding:0 18px;color:#595f7b;border-top:1px solid #c1adff0b;background:#080c1670;font:9px ui-monospace,Consolas,monospace;pointer-events:none}
.empty-player-controls .icon{width:13px;height:13px;stroke-width:1.2}.empty-player-controls i{flex:1;height:2px;background:#6e739332;border-radius:2px}
.memory-demo-footer{display:flex;align-items:baseline;gap:12px;justify-content:space-between;margin-top:17px;padding:0 2px}
.demo-footnote{font-size:9px;line-height:1.8;color:#9396ae;max-width:80%}.demo-filetype{font:8px ui-monospace,Consolas,monospace;white-space:nowrap;letter-spacing:.08em;color:#7a83a0}
#memoryReset{margin-left:auto;color:#cbb7f2;font-size:10px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;padding:2px}
.memory-demo-message{font-size:10px;line-height:1.7;color:#debaa7;padding-inline:2px;margin-top:10px;overflow-wrap:anywhere}.memory-demo-message:empty{display:none}
.memory-effects-note{display:flex;align-items:center;gap:9px;font-size:9px;line-height:1.8;color:#a7a1bf;margin-top:27px;padding:17px 2px 0;border-top:1px solid #baa8f11c;max-width:100%}
.memory-effects-note .small-dot{box-shadow:0 0 9px #ac8dea33}
@media(min-width:1800px){.memory-demo-scene .memory-body{min-height:840px}.memory-demo-scene #memoryField{height:min(1180px,100%)}}
@media(max-width:1180px){.memory-demo-scene .memory-body{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:27px}.memory-upload-play{width:52px;height:52px;margin-bottom:19px}.memory-demo-empty{padding:24px 16px 47px}.memory-empty-content>p{font-size:10px;max-width:260px}.memory-pick-link{margin-top:10px}.memory-demo-heading .tiny-caption{font-size:8px}.player-status{font-size:7px}.demo-footnote{font-size:8px}.memory-empty-content strong{font-size:22px}}
@media(min-width:761px) and (max-width:960px){.memory-demo-scene .memory-body{grid-template-columns:1fr 1.15fr;gap:24px}.memory-player-bar{height:36px;padding:0 12px}.memory-upload-play{width:43px;height:43px;margin-bottom:17px}.empty-eyebrow{font-size:6px;margin-bottom:6px}.memory-empty-content strong{font-size:18px}.memory-empty-content>p{margin-top:5px;font-size:9px;max-width:230px}.memory-pick-link{font-size:9px;margin-top:7px}.empty-player-controls{height:29px}.memory-demo-empty{padding:18px 10px 36px}.player-brand{font-size:9px}.player-brand .icon{width:14px;height:14px}.player-status{font-size:6px;letter-spacing:.06em}.memory-effects-note{font-size:8px}}
@media(max-width:760px){
.memory-demo-scene .memory-body{display:flex;flex-direction:column-reverse;gap:33px;min-height:0;padding-top:28px;padding-bottom:31px}
.memory-demo-scene .memory-background{background:radial-gradient(ellipse 90% 490px at 70% 275px,#34285170,transparent 76%),linear-gradient(#080b19,#070912)}
.memory-demo-scene .memory-shade{background:linear-gradient(180deg,#070912 0,transparent 140px,transparent 425px,#070912 670px)}
.memory-demo-scene #memoryField{height:700px;max-height:100%;mask-image:linear-gradient(#000 0,#000 72%,transparent 100%)}
.memory-demo{padding:12px 0 0}.memory-demo-heading{margin-bottom:14px}.memory-demo-heading .tiny-caption{font-size:8px;letter-spacing:.12em}
.memory-player-bar{height:37px;padding:0 13px}.player-brand{font-size:9px}.player-brand .icon{width:14px;height:14px}.player-status{font-size:6px;letter-spacing:.08em}
.memory-upload-play{width:48px;height:48px;margin-bottom:21px}.memory-upload-play .icon{width:19px;height:19px}.empty-eyebrow{font-size:7px;margin-bottom:7px}
.memory-empty-content strong{font-size:clamp(18px,3.8vw,26px)}.memory-empty-content>p{font-size:10px;max-width:100%;margin-top:6px}
.memory-demo-empty{padding:26px 16px 42px}.empty-player-controls{height:33px;padding:0 12px;gap:10px;font-size:8px}
.memory-pick-link{font-size:10px;margin-top:8px}.memory-demo-footer{gap:10px;margin-top:13px}.demo-footnote{font-size:8px;max-width:80%}.demo-filetype{font-size:7px}
.memory-effects-note{font-size:8px;margin-top:20px;padding-top:13px}.memory-demo-message{font-size:9px}}
@media(max-width:450px){.memory-upload-play{width:39px;height:39px;margin-bottom:14px}.memory-upload-play:before{inset:-5px}.memory-upload-play .icon{width:16px;height:16px}.empty-eyebrow{font-size:6px;letter-spacing:.16em;margin-bottom:6px}.memory-empty-content strong{font-size:19px}.memory-empty-content>p{font-size:9px;margin-top:5px}.memory-pick-link{font-size:9px;margin-top:7px;padding:3px}.memory-demo-empty{padding:17px 10px 33px}.empty-player-controls{height:27px}.memory-player-bar{height:34px}.memory-demo-heading .tiny-caption{font-size:7px}.memory-demo-footer{flex-wrap:wrap;row-gap:4px}.demo-footnote{max-width:78%;font-size:7px}.memory-player-frame{border-radius:8px}}
@media(max-width:375px){.memory-upload-play{width:35px;height:35px;margin-bottom:10px}.memory-empty-content strong{font-size:18px}.memory-empty-content>p{font-size:8.5px}.memory-pick-link{margin-top:5px}.empty-eyebrow{margin-bottom:5px}}
@media print{.memory-demo{display:none!important}}
