/* CAPP Brand Premiere WOW Viewer R2 — AppKit inherited; immersive viewer only */
.bp-page .capp-head-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%}
.bp-immersive-page,.bp-immersive-page #page{background:#08060b}
.bp-immersive-page #page>.page-content,.bp-immersive-page .capp-master-wrap{padding:0;margin:0;width:100%;max-width:none}
#bp-view{color:#fff;font-family:inherit;width:100%;margin:0}
#bp-view .bp-stage{position:fixed;inset:0;isolation:isolate;overflow:hidden;background:#09070d;height:100vh;height:100dvh;display:flex;flex-direction:column;touch-action:none;z-index:10;box-sizing:border-box}
#bp-view .bp-slide,#bp-view .bp-peek{position:absolute;inset:0;display:flex;flex-direction:column;min-height:0;isolation:isolate;transform:translate3d(0,0,0);will-change:transform;backface-visibility:hidden}
#bp-view .bp-slide{z-index:2}
#bp-view .bp-peek{z-index:1;pointer-events:none;overflow:hidden;background:#0e0a11}
#bp-view .bp-peek[hidden]{display:none!important}
#bp-view .bp-peek img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#bp-view .bp-peek:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#08040b9e,transparent 42%,#08040bda);pointer-events:none}
#bp-view .bp-peek.bp-peek-chapter:after{display:none}
#bp-view .bp-peek-chapter .bp-peek-copy{display:none!important}
#bp-view .bp-peek-copy{position:absolute;left:max(16px,env(safe-area-inset-left,0px));right:88px;bottom:calc(28px + env(safe-area-inset-bottom,0px));z-index:1;color:#fff;text-shadow:0 5px 22px #0008}
#bp-view .bp-peek-copy strong{display:block;font-size:clamp(25px,7vw,40px);line-height:1.1;margin-top:10px;overflow-wrap:anywhere}
#bp-view .bp-peek-copy small{font-weight:800;color:#ffd3f1;letter-spacing:.08em}
#bp-view .bp-media,#bp-view .bp-shade{position:absolute;inset:0;z-index:-1;pointer-events:none}
#bp-view .bp-media{display:flex;align-items:center;justify-content:center;background:#0a070d}
#bp-view .bp-stage.bp-chapter-motion .bp-media{backface-visibility:hidden;will-change:transform}
#bp-view .bp-media img,#bp-view .bp-media video{width:100%;height:100%;object-fit:cover;display:block}
/* R2.6: Cinematic motion ONLY after image settles, never on swipe preview. */
@media (prefers-reduced-motion: no-preference) {
  #bp-view .bp-stage.bp-still-settled .bp-media > img#bp-image:not([hidden]) {
    transform-origin: center center;
    animation: bp-still-after-settle-r26 18s ease-out 1 forwards;
    will-change: transform;
  }
  #bp-view .bp-stage.bp-still-settled.bp-still-dragging .bp-media > img#bp-image:not([hidden]) {
    animation-play-state: paused;
  }
}
@keyframes bp-still-after-settle-r26 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-.55%,.35%,0) scale(1.052); }
}
#bp-view .bp-shade{background:linear-gradient(180deg,rgba(7,5,10,.36) 0%,rgba(7,5,10,.07) 23%,transparent 40%,rgba(7,5,10,.16) 57%,rgba(7,5,10,.56) 76%,rgba(7,5,10,.9) 100%)}
#bp-view .bp-top{padding:calc(env(safe-area-inset-top,0px) + 10px) max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));position:relative;flex-shrink:0;z-index:3;display:flex;align-items:center;gap:12px}
#bp-view .capp-master-header{position:relative;display:flex;align-items:center;gap:12px;flex:0 0 auto;margin:0;padding:0;background:transparent}
#bp-view .capp-head-button{background:rgba(11,8,15,.38);color:#fff;border:1px solid rgba(255,255,255,.36);text-decoration:none;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 20px #0002}
#bp-view .capp-head-button svg{display:block}
#bp-view .bp-progress{display:flex;flex:1 1 0;align-items:center;gap:5px;min-width:0;height:44px}
#bp-view .bp-progress button{flex:1;min-width:0;min-height:44px;height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;position:relative;cursor:pointer;touch-action:manipulation}
#bp-view .bp-progress button:after{content:"";position:absolute;inset:20px 0;border-radius:99px;background:rgba(255,255,255,.48)}
#bp-view .bp-progress button.active:after{background:#ff5bc8}
#bp-view .bp-progress button:focus-visible{outline:2px solid #fff;outline-offset:-2px;border-radius:8px}
#bp-view .bp-kicker{font-size:10px;letter-spacing:.1em;font-weight:750;color:#ffe1f4;line-height:1.4;text-transform:uppercase;text-shadow:0 2px 12px #0009}
#bp-view .bp-copy{margin-top:auto;padding:12px 90px calc(22px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));position:relative;min-height:0;z-index:3;pointer-events:none}
#bp-view .bp-copy>*{pointer-events:auto}
#bp-view .bp-brand-title{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;color:#fff!important;font-size:20px;font-weight:850;line-height:1.3;max-width:100%;margin-bottom:10px;text-decoration:none!important;text-shadow:0 3px 14px #000a;overflow-wrap:anywhere}
#bp-view .bp-copy h2{color:#fff;font-size:clamp(27px,6.6vw,42px);font-weight:850;line-height:1.07;letter-spacing:-.035em;margin:7px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;text-shadow:0 5px 18px #0009}
#bp-view .bp-copy p{color:#fff;font-size:14px;line-height:1.45;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;text-shadow:0 3px 14px #0009}
#bp-view button{font:inherit;color:#fff;cursor:pointer;min-height:44px;border:1px solid #ffffff38;border-radius:999px;background:rgba(18,10,24,.42);padding:8px 12px;font-weight:700;touch-action:manipulation}
#bp-view button:disabled{opacity:.42;cursor:default}
#bp-view #bp-read{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(145deg,#ff5bc8,#ba289f);border:0;color:#fff;font-size:13px;font-weight:800;min-height:43px;padding:9px 16px;box-shadow:0 8px 26px rgba(86,11,65,.25)}
#bp-view #bp-read svg{width:17px;height:17px;flex:none}
#bp-view #bp-hotspot{position:absolute;top:46%;right:20px;display:flex;align-items:center;gap:7px;font-size:12px;background:rgba(16,10,20,.55);border:1px solid #ffffff7a;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:2;max-width:calc(100% - 32px)}
#bp-view #bp-hotspot[data-position=left]{right:auto;left:16px}#bp-view #bp-hotspot[data-position=center]{right:auto;left:50%;transform:translateX(-50%)}
#bp-view #bp-hotspot svg{color:#ffa6e4;flex:none}
#bp-view .bp-rail{position:absolute;right:max(14px,env(safe-area-inset-right,0px));bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:4;display:flex;flex-direction:column;align-items:center;gap:15px;width:60px}
#bp-view .bp-rail-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:60px;min-height:61px;padding:4px 0;border:0!important;background:transparent!important;border-radius:12px;filter:drop-shadow(0 3px 5px #0007)}
#bp-view .bp-rail-button svg{width:30px;height:30px;stroke-width:2;filter:drop-shadow(0 2px 2px #0006)}
#bp-view .bp-rail-button span{font-size:10px;font-weight:750;color:#fff;text-shadow:0 2px 8px #000a}
#bp-view .bp-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:60px;width:60px;min-height:76px;height:auto;border:0!important;background:transparent!important;box-shadow:none;border-radius:12px;padding:2px 0;overflow:visible;isolation:isolate}
#bp-view .bp-follow-avatar{display:flex;position:relative;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;border:2px solid #ff5bc8;background:#fff;box-shadow:0 6px 18px #0006}
#bp-view .bp-follow-logo{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;border-radius:50%;background:#fff;color:#ba289f;font-size:22px;font-weight:850}
#bp-view .bp-follow-plus{position:absolute;z-index:2;bottom:-6px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:linear-gradient(145deg,#ff5bc8,#ba289f);border:2px solid #fff;color:#fff;box-shadow:0 4px 11px #0005;pointer-events:none}
#bp-view .bp-follow-plus svg{width:14px;height:14px;stroke-width:2.7}
#bp-view .bp-follow-caption{font-size:10px;font-weight:800;line-height:1.1;color:#fff;text-shadow:0 2px 8px #000a;padding-top:5px}
#bp-view .bp-verified-badge{display:inline-block;flex:none;width:22px;height:22px;vertical-align:middle;filter:drop-shadow(0 2px 5px rgba(0,0,0,.22))}
#bp-view .bp-follow-logo .bp-logo{display:block;width:100%;height:100%;border-radius:50%;object-fit:contain;background:#fff;padding:2px;box-sizing:border-box}
#bp-view .bp-rail-button:focus-visible,#bp-view .bp-brand:focus-visible,#bp-view #bp-read:focus-visible{outline:2px solid #fff;outline-offset:3px}
/* Keyboard/screen-reader controls remain reachable; only show on keyboard focus. */
#bp-view .bp-access-controls{position:absolute;top:0;left:-9999px;width:1px;height:1px;overflow:hidden}
#bp-view .bp-access-controls:focus-within{position:absolute;top:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:8px;right:8px;width:auto;height:auto;overflow:visible;z-index:9;background:rgba(20,12,24,.94);padding:10px;border-radius:12px}
#bp-view .bp-actions,#bp-view .bp-nav{display:flex;align-items:center;justify-content:space-between;gap:6px}
#bp-view #bp-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#bp-view .bp-status{position:absolute;inset:auto 16px calc(48% - 20px);padding:14px;border-radius:16px;background:rgba(20,12,24,.88);backdrop-filter:blur(12px);color:white;text-align:center;z-index:8;pointer-events:none;overflow-wrap:anywhere}
#bp-view dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,560px);max-width:100%;max-height:min(78dvh,700px);box-sizing:border-box;border:1px solid rgba(255,255,255,.26);border-radius:26px 26px 0 0;background:rgba(35,22,39,.60);color:#fff;padding:0 22px calc(24px + env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain;touch-action:pan-y;backdrop-filter:blur(22px) saturate(1.12);-webkit-backdrop-filter:blur(22px) saturate(1.12);box-shadow:0 -24px 80px #0007;animation:bp-sheet-in 220ms ease-out}
#bp-view dialog::backdrop{background:rgba(0,0,0,.32);backdrop-filter:none;-webkit-backdrop-filter:none}
#bp-view .bp-reader-top{position:sticky;top:0;z-index:2;min-height:63px;display:flex;align-items:center;justify-content:flex-end;margin:0 -10px 12px;padding:10px 10px;background:linear-gradient(180deg,rgba(35,22,39,.92),rgba(35,22,39,.16))}
#bp-view .bp-reader-handle{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:38px;height:4px;border-radius:10px;background:#ffffff6b}
#bp-view #bp-close{width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:0;background:#ffffff20;border:1px solid #ffffff30}
#bp-view #bp-close svg{width:20px;height:20px}
#bp-view dialog h2{color:#fff;font-size:24px;line-height:1.18;margin:6px 0 14px}
#bp-view dialog p{white-space:pre-wrap;overflow-wrap:anywhere;color:#fff;font-size:15px;line-height:1.55}
#bp-view dialog img{width:100%;max-height:260px;object-fit:contain;border-radius:14px;margin-bottom:12px}
#bp-view #bp-reader-brand{display:block;color:#ffb5e7;margin:12px 0;text-decoration:underline}
#bp-view [hidden]{display:none!important}
@keyframes bp-sheet-in{from{transform:translateY(30px)}to{transform:translateY(0)}}
@media(max-height:600px){#bp-view .bp-copy h2{font-size:24px}#bp-view .bp-copy p{-webkit-line-clamp:1}#bp-view .bp-rail{gap:5px}#bp-view .bp-brand{min-height:68px}#bp-view .bp-follow-avatar{width:48px;height:48px}#bp-view .bp-rail-button{min-height:48px}#bp-view .bp-rail-button svg{width:25px;height:25px}#bp-view .bp-top{padding-top:calc(env(safe-area-inset-top,0px) + 4px)}}
@media(max-width:360px){#bp-view .bp-copy{padding-right:78px}#bp-view .bp-copy h2{font-size:25px}#bp-view .bp-brand-title{font-size:18px}#bp-view .bp-rail{right:9px}}
@media(prefers-reduced-motion:reduce){#bp-view .bp-slide,#bp-view .bp-peek{will-change:auto}#bp-view dialog{animation:none}}

.bp-studio{max-width:700px;margin:auto}.bp-studio .bp-panel{background:var(--capp-card,#fff);color:var(--capp-text,#222);border:1px solid #ba289f30;border-radius:20px;padding:18px;margin-bottom:14px;overflow-wrap:anywhere}.bp-studio h2{font-size:20px;color:inherit}.bp-studio label{display:block;margin:10px 0;font-weight:650;color:inherit}.bp-studio input,.bp-studio textarea,.bp-studio select{display:block;width:100%;border:1px solid #ba289f55;border-radius:10px;padding:10px;color:inherit;background:transparent;font-size:16px;box-sizing:border-box}.bp-studio textarea{min-height:70px}.bp-studio button,.bp-studio .bp-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:0;border-radius:999px;background:linear-gradient(145deg,#ff5bc8,#ba289f);color:white;font-weight:700;text-decoration:none;margin:5px 4px 5px 0}.bp-studio .bp-chapter{border-top:1px solid #ba289f33;padding:12px 0}.bp-studio .bp-thumb{width:100%;max-height:220px;object-fit:contain;border-radius:12px;background:#221a26}.bp-studio .bp-alert{padding:14px;background:#ba289f20;border-radius:12px;margin-bottom:12px}.bp-studio .bp-link{color:#ba289f;font-weight:700}.bp-studio details{margin:10px 0}.bp-studio .bp-meta{font-size:12px;opacity:.75}.bp-studio .bp-actions{display:flex;flex-wrap:wrap;gap:5px}.bp-studio .bp-asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.bp-studio .bp-asset-grid figure{margin:0}.bp-studio .bp-asset-grid img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:8px;background:#ddd}.bp-studio .bp-asset-grid figcaption{font-size:12px}

.cb-brand-explore-page #cb-app .bp-entry{display:flex;justify-content:space-between;align-items:center;gap:12px;text-decoration:none;color:#fff;background:linear-gradient(135deg,#211322,#632057);border-radius:20px;padding:15px 18px;margin:15px 0 0;box-shadow:0 10px 22px #4c174521}.cb-brand-explore-page #cb-app .bp-entry small{display:block;letter-spacing:.14em;font-size:10px;color:#ffb8e6}.cb-brand-explore-page #cb-app .bp-entry strong{font-size:18px;line-height:1.3;color:white}.cb-brand-explore-page #cb-app .bp-entry>span:last-child{font-size:25px}


.bp-studio .bp-guide{background:#ba289f12;padding:12px;border-radius:12px;color:inherit}
