/* Deadpool Cinematic — all selectors scoped to this theme */
body.swft-deadpool-cinematic{--dp-red:#e92b45;--dp-blood:#8f152b;--dp-gold:#f4b85d;--dp-black:#080a10;background:#090b10!important;color:var(--swft-text)!important;font-family:Impact,'Arial Narrow','Franklin Gothic Medium',system-ui,sans-serif!important;min-height:100vh}

/* Pure-CSS 20-second cinematic rotation: odd and even background scenes alternate. */
html:has(body.swft-deadpool-cinematic){background:#090b10;isolation:isolate}
body.swft-deadpool-cinematic{background:transparent!important;isolation:auto!important}
html:has(body.swft-deadpool-cinematic)::before,html:has(body.swft-deadpool-cinematic)::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background-size:cover;background-position:center;filter:saturate(.86) contrast(1.1);}
html:has(body.swft-deadpool-cinematic)::before{animation:dp-bg-odd 240s linear infinite,dp-odd-opacity 40s ease-in-out infinite}
html:has(body.swft-deadpool-cinematic)::after{animation:dp-bg-even 240s linear infinite,dp-even-opacity 40s ease-in-out infinite}
@keyframes dp-bg-odd{0%,16.665%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-01.webp')}16.667%,33.332%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-03.webp')}33.334%,49.999%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-05.webp')}50%,66.665%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-07.webp')}66.667%,83.332%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-09.webp')}83.334%,100%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-11.webp')}}
@keyframes dp-bg-even{0%,16.665%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-02.webp')}16.667%,33.332%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-04.webp')}33.334%,49.999%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-06.webp')}50%,66.665%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-08.webp')}66.667%,83.332%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-10.webp')}83.334%,100%{background-image:linear-gradient(90deg,#06060ad0,#07060b40,#06060aba),url('assets/background-12.webp')}}
@keyframes dp-odd-opacity{0%,43%{opacity:.7}50%,93%{opacity:0}100%{opacity:.7}}
@keyframes dp-even-opacity{0%,43%{opacity:0}50%,93%{opacity:.7}100%{opacity:0}}
/* Do not create stacking contexts around forum content or floating weather controls. */
body.swft-deadpool-cinematic .swf{color:#fff0ee!important}
body.swft-deadpool-cinematic :is(.swf .panel,.swf .side-panel,.swf .swf-category,.swf .swf-forum-row,.swf .item,.swf .post,.swf .swf-account-card,.swf .swfcp-panel,.swf .swsh-wide){background:linear-gradient(140deg,rgba(30,23,32,.97),rgba(10,12,19,.94))!important;border:1px solid #803342!important;color:#fff1ee!important;box-shadow:0 8px 25px #0008,inset 0 1px #ffffff0c!important;backdrop-filter:blur(7px)}
body.swft-deadpool-cinematic .swf :is(.panel>h2,.side-panel>h3,.swfcp-header,.swf-category-head){font-family:Impact,'Arial Narrow',sans-serif!important;text-transform:uppercase;letter-spacing:.065em!important;color:#fff4ec!important}
body.swft-deadpool-cinematic .swf :is(.panel>h2,.side-panel>h3){position:relative;background:linear-gradient(90deg,#8b172d,#2a111c 68%,transparent)!important;border-left:5px solid #ffbd61!important;padding:12px 16px!important;margin:-2px -2px 17px!important;box-shadow:inset 0 -2px #e63a49a0!important;text-shadow:2px 2px #10080c!important}
body.swft-deadpool-cinematic .swf .swf-category-head{min-height:100px!important;width:100%!important;position:relative!important;isolation:isolate!important;overflow:hidden!important;background:linear-gradient(90deg,#380a19d9,#220b17bb),url('assets/background-07.webp') center 36%/cover!important;border-bottom:3px solid #f3a747!important;padding:22px 26px!important;animation:dp-category-pulse 6s ease-in-out infinite alternate!important}
body.swft-deadpool-cinematic .swf .swf-category:nth-of-type(3n+2) .swf-category-head{background-image:linear-gradient(90deg,#380a19e0,#220b17aa),url('assets/background-01.webp')!important}
body.swft-deadpool-cinematic .swf .swf-category:nth-of-type(3n+3) .swf-category-head{background-image:linear-gradient(90deg,#380a19e0,#220b17aa),url('assets/background-09.webp')!important}
body.swft-deadpool-cinematic .swf .swf-category-head:after{content:'';position:absolute;inset:-100% auto -100% -35%;width:24%;background:linear-gradient(90deg,transparent,#fff3,transparent);transform:rotate(17deg);animation:dp-sweep 8s linear infinite;pointer-events:none}
body.swft-deadpool-cinematic .swf .swf-category-head span{font-size:clamp(21px,2.5vw,32px)!important;text-shadow:0 3px 7px #000,2px 2px #9c152b!important}
body.swft-deadpool-cinematic .swf .swf-category-head small{color:#ffe1b8!important;text-shadow:0 2px 5px #000!important}
body.swft-deadpool-cinematic .swf>header.hero{min-height:540px!important;padding:70px 5%!important;display:flex!important;flex-direction:column!important;justify-content:center!important;overflow:hidden!important;border:2px solid #bd344b!important;border-radius:18px!important;background:linear-gradient(90deg,#08080ee6,#1a0b1599 55%,#08080e22),url('assets/background-01.webp') center/cover!important;box-shadow:0 25px 55px #000b,0 0 30px #a40e2633!important;isolation:isolate!important}
body.swft-deadpool-cinematic .swf>header.hero:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(120deg,transparent 0 30px,#fa344408 30px 32px);pointer-events:none;animation:dp-stripes 14s linear infinite}
body.swft-deadpool-cinematic .swf>header.hero h1{font-family:Impact,'Arial Black',sans-serif!important;font-size:clamp(44px,6.5vw,98px)!important;line-height:1.03!important;letter-spacing:.025em!important;color:#fff!important;text-transform:uppercase!important;text-shadow:5px 5px #aa142d,8px 8px #000!important;max-width:900px;animation:dp-hero-in 1s ease both}
body.swft-deadpool-cinematic .swf>header.hero p{color:#fff0df!important;font-size:clamp(16px,1.8vw,22px)!important;text-shadow:0 3px 10px #000!important}
body.swft-deadpool-cinematic .swf>header.hero .muted{color:#ffc36a!important;letter-spacing:.18em!important}
body.swft-deadpool-cinematic .swf .swf-forum-row{transition:transform .25s,border-color .25s,box-shadow .25s!important}
body.swft-deadpool-cinematic .swf .swf-forum-row:hover{transform:translateX(4px);border-color:#e94052!important;box-shadow:inset 4px 0 #f7bb61,0 0 24px #df173b30!important}
body.swft-deadpool-cinematic .swf .swf-forum-icon{background:radial-gradient(circle,#6c1d31,#150e18)!important;border:1px solid #a93a50!important;width:66px!important;height:66px!important;border-radius:14px!important;overflow:visible!important;transition:transform .3s,filter .3s,box-shadow .3s!important}
body.swft-deadpool-cinematic .swf .swf-forum-icon img.dp-forum-image{display:block!important;width:58px!important;height:58px!important;object-fit:contain!important;filter:drop-shadow(0 3px 4px #000)!important;transition:transform .35s,filter .35s!important}
body.swft-deadpool-cinematic .swf .swf-forum-row:hover .swf-forum-icon{transform:rotate(-5deg) scale(1.1)!important;box-shadow:0 0 18px #ec315d88!important}
body.swft-deadpool-cinematic .swf .swf-forum-row:hover img.dp-forum-image{transform:rotate(7deg) scale(1.18)!important;filter:drop-shadow(0 0 10px #ff4d65)!important}
body.swft-deadpool-cinematic .swf :is(a,.swf-forum-name){color:#ffc0b0!important}
body.swft-deadpool-cinematic .swf a:hover{color:#ffdc91!important}
body.swft-deadpool-cinematic .swf :is(button,.btn,.swf-quick-actions>a){background:linear-gradient(125deg,#a41b34,#e43d4e)!important;color:#fff!important;border:1px solid #ff8b7d!important;transition:filter .2s,transform .2s!important}
body.swft-deadpool-cinematic .swf :is(button,.btn):hover{filter:brightness(1.2);transform:translateY(-2px)}
body.swft-deadpool-cinematic .swf :is(input,textarea,select){background:#1a1620!important;color:#fff!important;border-color:#944356!important}
body.swft-deadpool-cinematic .swf :is(p,.muted,.meta,.swf-latest-meta){color:#d5c2c4!important}
body.swft-deadpool-cinematic :is(#swf-unified-nav .swf-unified-row,#swf-unified-nav .swf-unified-panel){background:#17101bef!important;border-color:#8d3245!important}
body.swft-deadpool-cinematic #swf-unified-nav :is(summary,a){color:#fff0ed!important}
body.swft-deadpool-cinematic #swf-unified-nav :is(summary,a):hover{background:#8e2037!important}
@keyframes dp-sweep{0%{left:-35%}40%,100%{left:125%}}
@keyframes dp-stripes{to{background-position:180px 0}}
@keyframes dp-category-pulse{to{box-shadow:inset 0 0 45px #d9303d55,0 0 20px #c1224033}}
@keyframes dp-hero-in{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){body.swft-deadpool-cinematic .swf>header.hero{min-height:390px!important;padding:38px 22px!important}body.swft-deadpool-cinematic .swf .swf-category-head{min-height:80px!important;padding:16px!important}body.swft-deadpool-cinematic .swf .swf-forum-icon{width:46px!important;height:46px!important}body.swft-deadpool-cinematic .swf .swf-forum-icon img.dp-forum-image{width:42px!important;height:42px!important}}
@media(prefers-reduced-motion:reduce){body.swft-deadpool-cinematic *,body.swft-deadpool-cinematic *:before,body.swft-deadpool-cinematic *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* CSS-only icon replacement; no JavaScript file required by the theme installer. */
body.swft-deadpool-cinematic .swf .swf-forum-icon{font-size:0!important;color:transparent!important;background-repeat:no-repeat!important;background-position:center!important;background-size:contain!important;}
body.swft-deadpool-cinematic .swf .swf-forum-icon :is(svg,img,i){display:none!important}
body.swft-deadpool-cinematic .swf .swf-forum-row:hover .swf-forum-icon{filter:drop-shadow(0 0 10px #ff4d65)!important}

/* v1.0.5: each forum row gets a different icon, assigned by theme.js. */
body.swft-deadpool-cinematic .swf .swf-forum-row .swf-forum-icon[data-dp-icon]{background-image:var(--dp-forum-image)!important;background-position:center!important;background-repeat:no-repeat!important;background-size:contain!important;}
body.swft-deadpool-cinematic .swf .swf-forum-row .swf-forum-icon[data-dp-icon]:hover,body.swft-deadpool-cinematic .swf .swf-forum-row:hover .swf-forum-icon[data-dp-icon]{transform:translateY(-3px) rotate(-5deg) scale(1.12)!important;filter:drop-shadow(0 0 12px #ff365b)!important;}

/* v1.0.7: background layers belong to the root, never the forum or weather panel. */
html:has(body.swft-deadpool-cinematic)::before,html:has(body.swft-deadpool-cinematic)::after{z-index:-1!important}
