/* Shared spatial architecture, with curated per-film lighting. No canvas render loop. */
.portal-reel,.cinema-gallery{--light-a:107,103,188;--light-b:46,126,161;--orbit-shift:0deg;background:#050d17;isolation:isolate}
.showroom-space{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 50% 46%,#10213b88,transparent 68%),linear-gradient(155deg,#050d17,#081220 55%,#040b13);perspective:1100px}
.showroom-space:before{content:'';position:absolute;inset:0;opacity:.16;background-image:radial-gradient(circle at 19% 28%,#bcd8ed 0 1px,transparent 1.5px),radial-gradient(circle at 77% 19%,#bcd8ed 0 .8px,transparent 1.3px),radial-gradient(circle at 89% 65%,#a3bfd2 0 .7px,transparent 1.2px);background-size:470px 430px,620px 530px,370px 610px}
.showroom-space i{position:absolute;display:block;transition:background 1s ease,border-color 1s ease,box-shadow 1s ease,opacity 1s ease}
.space-halo{left:15%;top:15%;width:70%;height:65%;border:1px solid rgba(var(--light-a),.32);border-radius:50%;transform:rotateX(57deg) rotateZ(-24deg);box-shadow:0 0 28px rgba(var(--light-a),.12),inset 0 0 20px rgba(var(--light-b),.08);animation:spatial-breathe 24s ease-in-out infinite alternate}
.space-orbit{left:8%;top:8%;width:84%;height:76%;border:1px solid rgba(var(--light-b),.15);border-radius:50%;transform:rotateX(62deg) rotateZ(calc(20deg + var(--orbit-shift)));transition:transform 1.8s ease,border-color 1s;box-shadow:0 1px 0 rgba(var(--light-b),.12)}
.space-floor{left:-30%;right:-30%;top:61%;height:65%;transform-origin:50% 0;transform:rotateX(69deg);background-image:linear-gradient(rgba(var(--light-b),.10) 1px,transparent 1px),linear-gradient(90deg,rgba(var(--light-b),.10) 1px,transparent 1px);background-size:76px 76px;mask-image:radial-gradient(ellipse at 50% 25%,#0009,transparent 66%);opacity:.7}
.space-glow{left:22%;right:22%;top:30%;height:48%;background:radial-gradient(ellipse at 38% 45%,rgba(var(--light-a),.22),transparent 65%),radial-gradient(ellipse at 65% 65%,rgba(var(--light-b),.19),transparent 68%);filter:blur(28px)}
@keyframes spatial-breathe{to{transform:rotateX(61deg) rotateZ(-15deg) translateY(-12px)}}
.portal-reel:before,.cinema-gallery:before,.cinema-gallery:after{display:none}
.portal-reel{z-index:12}.portal-reel>.showroom-space{z-index:0}.portal-reel-stage,.portal-reel-heading,.portal-reel-caption,.portal-reel-footer,.reel-controls{z-index:1}
.portal-reel-stage{--reel-width:min(59vw,860px);--reel-radius:min(51.1vw,745px);height:74%;margin:0;perspective:1800px;perspective-origin:50% 50%}
.portal-reel-face{border-color:rgba(var(--light-b),.42);box-shadow:0 16px 32px #0008,0 0 15px rgba(var(--light-a),.10);border-radius:3px}
.portal-reel-face:after{border-color:rgba(var(--light-b),.8);box-shadow:inset 0 0 12px rgba(var(--light-a),.12)}
.portal-reel-stage:before{inset:20% 15% 15%;background:radial-gradient(ellipse,rgba(var(--light-a),.15),transparent 68%);transition:background 1s}
.portal-reel-stage:after{bottom:10%;left:23%;right:23%;height:6%;background:radial-gradient(ellipse,rgba(var(--light-a),.2),transparent 70%);transition:background 1s;filter:blur(16px)}
.portal-reel-heading{top:4%}.portal-reel-heading h2{font-size:clamp(25px,2.7vw,42px);letter-spacing:.035em}.portal-reel-heading>span{font-size:10px;letter-spacing:.25em}
.portal-reel-caption{bottom:18%;gap:7px}.portal-reel-caption>span{position:relative;font-size:9px;padding-bottom:10px}.portal-reel-caption>span:after{content:'';position:absolute;bottom:0;left:calc(50% - 22px);width:44px;height:1px;background:#e8c47e70}.portal-reel-caption strong{font-size:19px}.portal-reel-caption small{color:#a3b4c5;font-size:10px}
.reel-controls{position:absolute;left:50%;bottom:10.8%;transform:translateX(-50%);display:flex;gap:8px;white-space:nowrap}.reel-controls button{padding:9px 14px;min-height:40px;border:1px solid #b4cde624;border-radius:3px;background:#0b1728b3;color:#b6c6d5;font-size:11px}.reel-controls button:hover{border-color:#e8c47e77;color:#f4f1eb}.reel-controls button:focus-visible{outline:2px solid #e8c47e;outline-offset:3px}.portal-reel-footer{bottom:3.4%}
.cinema-shell:before{background:radial-gradient(ellipse,rgba(var(--light-a),.14),transparent 70%);transition:background 1s}.cinema-shell:after{background:rgba(var(--light-b),.12);transition:background 1s}
.cinema-plane[data-offset="0"]{border-color:rgba(var(--light-a),.52);box-shadow:0 25px 45px #0007,0 0 18px rgba(var(--light-b),.10)}
/* Wider, legible side planes stay within the showroom, rather than clipping at the edge. */
.cinema-plane{width:60%;max-width:860px}.cinema-stage:after{width:60%;max-width:860px}.cinema-plane[data-offset="1"]{transform:translate(0%,-50%) translateZ(-160px) rotateY(-38deg) scale(.78);opacity:.8;filter:brightness(.78)}.cinema-plane[data-offset="-1"]{transform:translate(-100%,-50%) translateZ(-160px) rotateY(38deg) scale(.78);opacity:.8;filter:brightness(.78)}.cinema-plane[data-offset="2"],.cinema-plane[data-offset="-2"]{opacity:.09}
.is-turning .space-orbit{transform:rotateX(62deg) rotateZ(28deg)}.is-turning .space-glow{opacity:.7}.cinematic-turn .cinema-plane:after{border-color:rgba(var(--light-b),.7)}
.space-paused .showroom-space *{animation-play-state:paused}
@media(max-width:760px){.portal-reel-stage{--reel-width:78vw;--reel-radius:67.55vw;height:60%;perspective:1000px}.portal-reel-heading{top:8%}.portal-reel-caption{bottom:23%}.portal-reel-caption strong{font-size:15px}.reel-controls{bottom:14%}.reel-controls button{font-size:10px;padding:8px 10px}.portal-reel-footer{bottom:5%}.space-halo{left:6%;width:88%;opacity:.6}.space-orbit{display:none}.space-floor{background-size:100px 100px;opacity:.4}.space-glow{filter:none;left:12%;right:12%}.cinema-plane,.cinema-stage:after{width:80%}.cinema-plane[data-offset="1"]{transform:translate(-5%,-50%) translateZ(-180px) rotateY(-37deg) scale(.72)}.cinema-plane[data-offset="-1"]{transform:translate(-95%,-50%) translateZ(-180px) rotateY(37deg) scale(.72)}.cinema-plane[data-offset="2"],.cinema-plane[data-offset="-2"]{visibility:hidden}.portal-reel-stage:after{filter:none}}
@media(prefers-reduced-motion:reduce){.showroom-space *{animation:none!important;transition:none!important}.portal-reel-ring{transform:translateZ(calc(-1 * var(--reel-radius))) rotateY(var(--reel-angle,0deg))!important}.portal-reel-face:not(:first-child){display:block}.space-glow{filter:none}.portal-reel-caption{transition:none}}
/* Keep film metadata beneath the screen, with visible architectural depth. */
.portal-reel-stage{transform:translateY(-35px)}
.space-halo{border-color:rgba(var(--light-a),.5);box-shadow:0 0 36px rgba(var(--light-a),.19),inset 0 0 30px rgba(var(--light-b),.1);top:3%;height:78%}
.space-orbit{border-color:rgba(var(--light-b),.28);top:2%;height:88%}
.space-glow{top:22%;height:62%;left:12%;right:12%;background:radial-gradient(ellipse at 38% 45%,rgba(var(--light-a),.28),transparent 65%),radial-gradient(ellipse at 65% 65%,rgba(var(--light-b),.24),transparent 68%)}
@media(max-width:760px){.portal-reel-stage{transform:translateY(-12px)}.space-halo{border-color:rgba(var(--light-a),.28)}}
#reelSeek{width:110px;height:14px;margin-top:3px;accent-color:#e8c47e;cursor:pointer;opacity:.75}#reelSeek:focus-visible{outline:2px solid #e8c47e;outline-offset:4px}.portal-reel-caption{bottom:17%}
@media(max-width:760px){.portal-reel-caption{bottom:22%}#reelSeek{width:90px}}
.portal-reel-stage{transform:translateY(-62px)}
.space-halo{top:9%;height:58%;transform:rotateX(28deg) rotateZ(-13deg);animation-name:showroom-orbit-depth}
@keyframes showroom-orbit-depth{to{transform:rotateX(32deg) rotateZ(-7deg) translateY(-8px)}}
.space-floor{top:64%;opacity:.9}
@media(max-width:760px){.portal-reel-stage{transform:translateY(-12px)}.space-halo{height:55%;top:17%}.space-floor{opacity:.4}}
/* WebKit-safe decoder plane: video is coplanar with the settled front face,
   outside the rotating ring. Real frame snapshots carry the 3D movement. */
.portal-reel-stage>video.reel-live-media{position:absolute;left:50%;top:50%;width:var(--reel-width);height:auto;aspect-ratio:16/9;transform:translate(-50%,-50%);object-fit:contain;background:#02060b;z-index:2;border-radius:2px;pointer-events:none}
.space-glow{mask-image:radial-gradient(ellipse,#000 20%,transparent 70%)}
@media(min-width:761px) and (max-height:850px){.portal-reel-heading{top:0}.portal-reel-heading h2{font-size:28px;margin:10px 0}.portal-reel-heading>span{font-size:9px}}

/* A quiet invitation: keep the hit area fixed while its halo breathes. */
#portalReelSkip{position:relative;isolation:isolate;border-color:#e8c47e99;background:#14223780;box-shadow:0 0 18px #e8c47e14}
#portalReelSkip:after{content:'';position:absolute;inset:-5px;border:1px solid #e8c47e88;border-radius:7px;pointer-events:none;animation:studio-entry-invite 3.2s ease-out infinite}
#portalReelSkip>span{display:inline-block;animation:studio-entry-nudge 3.2s ease-in-out infinite}
#portalReelSkip:hover,#portalReelSkip:focus-visible{background:#243147;border-color:#e8c47e}
#portalReelSkip:is(:hover,:focus-visible):after,#portalReelSkip:is(:hover,:focus-visible)>span{animation-play-state:paused}
#reelMute.needs-sound{border-color:#e8c47e99;color:#e8c47e;background:#243147}
@keyframes studio-entry-invite{0%,15%{opacity:0;transform:scale(.97)}30%{opacity:.65}75%,100%{opacity:0;transform:scale(1.1,1.25)}}
@keyframes studio-entry-nudge{0%,24%,60%,100%{transform:translateX(0)}38%,48%{transform:translateX(3px)}}
@media(prefers-reduced-motion:reduce){#portalReelSkip:after,#portalReelSkip>span{animation:none}#portalReelSkip:after{opacity:.3}}
