/* Viewing room: scoped below Games and above the existing Work Library. */
.pm{padding:50px 0 70px;scroll-margin-top:90px}.pm-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:27px}.pm-heading .pp-label{margin-bottom:15px}.pm-heading h2{font-size:clamp(32px,3.5vw,46px);letter-spacing:-.055em;margin:0;line-height:1.1}.pm-heading>span{color:#8798a8;font-size:12px}.pm-collections{display:flex;gap:7px;overflow-x:auto;padding:4px 0 20px;scrollbar-width:thin;scrollbar-color:#ffffff20 transparent}.pm-collections button{white-space:nowrap;border:1px solid #ffffff14;border-radius:999px;padding:11px 15px;background:#ffffff03;color:#98a7b7;font:500 11px/1.4 Inter,sans-serif;cursor:pointer;transition:color .2s,background .2s,transform .2s}.pm-collections button[aria-pressed=true]{color:#9bceed;border-color:#81bde243;background:#9bceed09}.pm-collections button:hover{color:#c6e6f8;background:#ffffff08;transform:translateY(-2px)}.pm-layout{display:grid;grid-template-columns:minmax(0,1fr) 295px;gap:20px;align-items:start}.pm-main{min-width:0}.pm-stage{position:relative;aspect-ratio:16/9;background:#020304;border:1px solid #ffffff1c;border-radius:19px;overflow:hidden;isolation:isolate;box-shadow:0 20px 60px #0004}.pm-stage video,.pm-stage>img{display:block;width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.pm [hidden],.pm-sheet [hidden]{display:none!important}.pm button,.pm-sheet button{font-family:Inter,sans-serif}.pm button:focus-visible,.pm input:focus-visible,.pm-stage:focus-visible,.pm-sheet button:focus-visible{outline:2px solid #9bceed;outline-offset:3px}.pm-bigplay{position:absolute;inset:0;margin:auto;width:60px;height:60px;display:grid;place-items:center;border:1px solid #9bceed55;border-radius:50%;background:#05070a80;backdrop-filter:blur(20px);color:#c6e6f8;font-size:28px;cursor:pointer;transition:transform .25s,background .25s}.pm-bigplay:hover{transform:scale(1.06);background:#9bceed20}.pm-controls{position:absolute;bottom:0;left:0;right:0;padding:30px 17px 12px;background:linear-gradient(transparent,#030609d9);opacity:0;transition:opacity .25s}.pm-awake .pm-controls,.pm-controls:focus-within{opacity:1}.pm-controls__row{display:flex;align-items:center;gap:8px;margin-top:9px}.pm-controls__row button{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#c5cfd9;font-size:19px;cursor:pointer;transition:color .2s,background .2s}.pm-controls__row button:hover{color:#9bceed;background:#ffffff0c}.pm-controls__row button:disabled{opacity:.3;cursor:default}.pm-controls__row #pm-open{margin-left:auto}.pm-controls__row #pm-time{font-size:10px;color:#a8b6c5;white-space:nowrap;margin-left:6px}.pm input[type=range]{accent-color:#9bceed;cursor:pointer}.pm-seek{display:block;width:100%;height:3px;margin:0;appearance:none;background:linear-gradient(to right,#9bceed var(--progress,0%),#ffffff35 var(--progress,0%));border-radius:3px}.pm-seek::-webkit-slider-thumb{appearance:none;width:10px;height:10px;border-radius:50%;background:#c6e6f8}.pm-controls #pm-volume{width:55px;height:3px}#pm-feedback{position:absolute;top:14px;left:16px;right:16px;font-size:11px;color:#c6d7e6;text-shadow:0 1px 4px #000;pointer-events:none}.pm-info{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 3px 18px}.pm-info p{margin:0}.pm-info #pm-context{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#81bde2}.pm-info h3{font-size:26px;font-weight:600;letter-spacing:-.04em;margin:9px 0}.pm-info #pm-description{font-size:12px;line-height:1.8;color:#99a9b9;max-width:620px}.pm-info .ap-btn{font-size:11px;min-height:40px;flex-shrink:0}.pm-under{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ffffff12;padding:14px 3px;color:#7e91a4;font-size:10px}.pm-under button{display:none;align-items:center;gap:9px;border:1px solid #ffffff20;border-radius:999px;background:#ffffff04;color:#b6c7d7;padding:10px 15px;cursor:pointer}.pm-list-panel{border:1px solid #ffffff20;border-radius:19px;padding:18px 10px;background:linear-gradient(145deg,#ffffff07,transparent 52%),#05070a7a;backdrop-filter:blur(26px) saturate(105%)}.pm-list-head{padding:0 10px 17px;border-bottom:1px solid #ffffff12;margin-bottom:9px}.pm-list-head>span,.pm-sheet-head small{display:block;font-size:9px;letter-spacing:.13em;text-transform:uppercase;color:#8095a9;margin-bottom:8px}.pm-list-head strong{font-size:13px;font-weight:500;color:#d3dfe9}.pm-item{display:flex;align-items:center;width:100%;gap:12px;text-align:left;padding:10px 9px;border:1px solid transparent;border-radius:12px;background:none;color:#b3c0ce;cursor:pointer;transition:transform .22s,color .22s,background .22s,border-color .22s}.pm-item:hover{transform:translateY(-2px);background:#ffffff06;color:#c6e6f8}.pm-item[aria-pressed=true]{border-color:#81bde22e;background:#9bceed08;color:#c6e6f8}.pm-item-art{position:relative;display:block;width:86px;aspect-ratio:16/10;flex-shrink:0;border-radius:8px;overflow:hidden;background:#020304}.pm-item-art img{width:100%;height:100%;object-fit:cover;display:block}.pm-item-art i{position:absolute;inset:0;display:grid;place-items:center;opacity:0;background:#0004;color:#d7efff}.pm-item:hover .pm-item-art i{opacity:1}.pm-item>span:nth-child(2){flex:1;min-width:0}.pm-item strong{display:block;font-size:11px;font-weight:500;line-height:1.5}.pm-item small{display:block;color:#7f94a7;font-size:9px;margin-top:5px}.pm-selected{font-size:14px;opacity:0;color:#9bceed}.pm-item[aria-pressed=true] .pm-selected{opacity:1}#pm-items{max-height:390px;overflow:auto;scrollbar-width:thin;scrollbar-color:#ffffff20 transparent}.pm-sheet{position:fixed;inset:auto 12px 12px;margin:0 auto;width:min(520px,calc(100% - 24px));max-height:75svh;overflow:auto;border:1px solid #ffffff25;border-radius:22px;padding:20px 12px;background:linear-gradient(145deg,#ffffff09,transparent 52%),#05070ac7;color:#edf1f5;backdrop-filter:blur(26px) saturate(105%)}.pm-sheet::backdrop{background:#03060966;backdrop-filter:blur(5px)}.pm-sheet-head{display:flex;justify-content:space-between;align-items:center;padding:0 10px 18px;border-bottom:1px solid #ffffff14;margin-bottom:10px}.pm-sheet-head strong{font-size:15px;font-weight:500}.pm-sheet-head button{width:32px;height:32px;background:#ffffff04;border:1px solid #ffffff20;border-radius:50%;color:#c5d3df;font-size:23px;cursor:pointer}.pm-stage:fullscreen{border-radius:0;aspect-ratio:auto;width:100%;height:100%;border:0}.pm-stage:fullscreen .pm-controls{padding:50px 4vw 25px}.pm-stage:fullscreen .pm-controls__row button{width:40px;height:40px;font-size:24px}
@media(max-width:1050px){.pm-layout{grid-template-columns:minmax(0,1fr) 255px;gap:14px}.pm-item-art{width:65px}.pm-item{gap:9px}.pm-controls #pm-volume{display:none}.pm-controls__row{gap:4px}}
@media(max-width:850px){.pm-layout{grid-template-columns:1fr}.pm-list-panel{display:none}.pm-under button{display:flex}.pm-heading{align-items:start;flex-direction:column;gap:12px}.pm-heading>span{font-size:11px}.pm{padding:40px 0 45px}.pm-info h3{font-size:24px}.pm-controls #pm-volume{display:none}.pm-collections{margin-right:-3%;padding-right:3%}.pm-controls{padding:24px 10px 9px}.pm-controls__row{gap:4px}.pm-controls__row button{width:27px;height:28px;font-size:18px}.pm-controls__row #pm-time{font-size:9px;margin-left:2px}}
@media(prefers-reduced-motion:reduce){.pm *,.pm-sheet *{transition:none!important}.pm button:hover,.pm-sheet button:hover{transform:none!important}}

/* Library-first browsing: collection is a player tool, not a second catalog. */
.pm-heading,.pm-collections,.pm-list-panel,.pm-under{display:none}
.pm-layout{display:block}
.pm{padding-top:35px}
.pm-stage>.pm-info{position:absolute;top:0;left:0;right:0;z-index:2;padding:22px 25px 40px;margin:0;background:linear-gradient(#030609b3,transparent);opacity:0;pointer-events:none;transition:opacity .25s ease;align-items:start}
.pm-stage.pm-awake>.pm-info{opacity:1}
.pm-stage>.pm-info #pm-context{font-size:9px;color:#a1b7ca}
.pm-stage>.pm-info h3{font-size:21px;margin:7px 0 0;color:#edf1f5}
.pm-stage>.pm-info #pm-description,.pm-stage>.pm-info #player-breakdown{display:none}
.pm-controls{z-index:4}
.pm-controls__row #pm-open{width:auto;display:flex;gap:7px;padding:0 9px;font-size:18px}
#pm-open span{font-size:11px}
.pm-stage>.pm-sheet{position:absolute;inset:auto 15px 75px auto;margin:0;width:min(340px,calc(100% - 30px));max-height:calc(100% - 98px);overflow-y:auto;z-index:5;border-radius:16px;padding:15px 9px;background:linear-gradient(145deg,#ffffff09,transparent 52%),rgba(5,7,10,.72);box-shadow:0 12px 35px #0005;backdrop-filter:blur(26px) saturate(105%)}
.pm-stage>.pm-sheet[hidden]{display:none!important}
.pm-stage>.pm-sheet .pm-sheet-head{padding:0 9px 12px;position:sticky;top:-15px;background:#070b10e6;z-index:1}
.pm-stage>.pm-sheet .pm-sheet-head strong{font-size:13px}
.pm-stage>.pm-sheet .pm-item{padding:8px;gap:11px}
.pm-stage>.pm-sheet .pm-item-art{width:82px}
@media(max-width:850px){.pm-layout{display:block}.pm-stage>.pm-info{padding:15px 16px 30px}.pm-stage>.pm-info h3{font-size:17px}.pm-stage>.pm-info #pm-context{font-size:8px}.pm-stage>.pm-sheet{inset:9px 9px 65px auto;width:min(310px,calc(100% - 18px));max-height:calc(100% - 74px);padding:9px}.pm-stage>.pm-sheet .pm-sheet-head{top:-9px;padding-bottom:8px;margin-bottom:5px}.pm-stage>.pm-sheet .pm-sheet-head small{display:none}.pm-stage>.pm-sheet .pm-item-art{width:66px}.pm-stage>.pm-sheet .pm-item{padding:6px}.pm-stage>.pm-sheet .pm-item strong{font-size:10px}.pm-stage>.pm-sheet .pm-item small{font-size:8px;margin-top:2px}#pm-open span{font-size:9px}.pm-controls__row #pm-open{padding:0 5px;gap:4px}}
@media(prefers-reduced-motion:reduce){.pm-stage>.pm-info{transition:none}}
/* Mouse clicks should not pin controls open; keyboard focus remains visible. */
.pm-stage:not(.pm-awake) .pm-controls{opacity:0;pointer-events:none}
.pm-stage .pm-controls:has(:focus-visible){opacity:1;pointer-events:auto}
.pm-stage.pm-awake .pm-controls{pointer-events:auto}

/* Restore section hierarchy while keeping collection browsing inside the player. */
.pm-heading{display:flex}
.pm-heading .pp-label{display:flex}
#pm-collection-picker{width:100%;max-width:245px;padding:6px 27px 6px 8px;border:1px solid #ffffff1c;border-radius:8px;background:#0a1016;color:#d0dfeb;font:500 12px/1.5 Inter,sans-serif;cursor:pointer;color-scheme:dark}
#pm-collection-picker:focus-visible{outline:2px solid #9bceed;outline-offset:2px}
.pm-stage>.pm-sheet .pm-sheet-head>div{min-width:0;flex:1;margin-right:10px}
.pm-stage>.pm-sheet #pm-sheet-name[hidden]{display:none}
/* Native page and panel scrollbars retain their behavior, with matching surfaces. */
html{color-scheme:dark;scrollbar-width:thin;scrollbar-color:#638398 #080b0f}
.pm-sheet,#pm-items,.pm-collections{scrollbar-width:thin;scrollbar-color:#638398 #080b0f}
html::-webkit-scrollbar,.pm-sheet::-webkit-scrollbar,#pm-items::-webkit-scrollbar,.pm-collections::-webkit-scrollbar{width:8px;height:6px}
html::-webkit-scrollbar-track,.pm-sheet::-webkit-scrollbar-track,#pm-items::-webkit-scrollbar-track,.pm-collections::-webkit-scrollbar-track{background:#080b0f}
html::-webkit-scrollbar-thumb,.pm-sheet::-webkit-scrollbar-thumb,#pm-items::-webkit-scrollbar-thumb,.pm-collections::-webkit-scrollbar-thumb{background:#638398;border:2px solid #080b0f;border-radius:999px}
html::-webkit-scrollbar-thumb:hover,.pm-sheet::-webkit-scrollbar-thumb:hover,#pm-items::-webkit-scrollbar-thumb:hover{background:#81bde2}
@media(max-width:850px){.pm-heading{display:flex;flex-direction:column;align-items:start}#pm-collection-picker{font-size:11px;padding-block:4px}}

/* Neutral utility scrollbars; reserve icy blue for selected and active content. */
html,.pm-sheet,#pm-items,.pm-collections{scrollbar-color:#626b76 #080b0f}
html::-webkit-scrollbar-thumb,.pm-sheet::-webkit-scrollbar-thumb,#pm-items::-webkit-scrollbar-thumb,.pm-collections::-webkit-scrollbar-thumb{background:#626b76}
html::-webkit-scrollbar-thumb:hover,.pm-sheet::-webkit-scrollbar-thumb:hover,#pm-items::-webkit-scrollbar-thumb:hover,.pm-collections::-webkit-scrollbar-thumb:hover{background:#8995a3}

/* Custom collection chooser: neutral glass rows replace the native select UI. */
.pm-stage>.pm-sheet{scrollbar-width:none}
.pm-stage>.pm-sheet::-webkit-scrollbar{display:none;width:0}
#pm-collection-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:none;width:100%;padding:6px 0;border:0;border-radius:6px;background:transparent;color:#d0dfeb;text-align:left;font:500 12px/1.5 Inter,sans-serif;cursor:pointer}
#pm-collection-picker>i{font-size:17px;color:#8d9caa;transition:transform .2s}
#pm-collection-picker[aria-expanded=true]>i{transform:rotate(180deg)}
#pm-collection-picker:hover{color:#c6e6f8}
#pm-collection-menu{padding:3px 1px 12px;margin-bottom:8px;border-bottom:1px solid #ffffff12}
#pm-collection-menu[hidden]{display:none}
#pm-collection-menu>button{display:flex;align-items:center;gap:11px;width:100%;min-height:37px;padding:9px 11px;border:1px solid transparent;border-radius:9px;background:none;color:#a2adb9;font:500 11px/1.4 Inter,sans-serif;text-align:left;cursor:pointer;transition:background .2s,color .2s,transform .2s}
#pm-collection-menu>button>span{flex:1}
#pm-collection-menu>button>i{color:#8797a6;font-size:14px}
#pm-collection-menu>button .pm-menu-check{opacity:0}
#pm-collection-menu>button[aria-pressed=true]{background:#ffffff08;border-color:#ffffff10;color:#d1dce6}
#pm-collection-menu>button[aria-pressed=true]>i{color:#9bceed}
#pm-collection-menu>button[aria-pressed=true] .pm-menu-check{opacity:1}
#pm-collection-menu>button:hover{background:#ffffff09;color:#c6e6f8;transform:translateY(-1px)}
.pm-more-items{position:sticky;bottom:0;left:calc(50% - 15px);display:grid;place-items:center;width:30px;height:25px;margin:0 auto -4px;border:1px solid #ffffff20;border-radius:999px;background:#090e14e6;backdrop-filter:blur(15px);color:#a2adb9;font-size:19px;cursor:pointer;box-shadow:0 0 15px #0009;transition:color .2s,border-color .2s}
.pm-more-items[hidden]{display:none!important}.pm-more-items:hover{color:#9bceed;border-color:#81bde244}
@media(prefers-reduced-motion:reduce){#pm-collection-menu>button,#pm-collection-picker>i{transition:none}#pm-collection-menu>button:hover{transform:none}}

/* Collection lens matches the approved navigation glass, without a solid header slab. */
.pm-stage>.pm-sheet{background:linear-gradient(145deg,#ffffff09,transparent 52%),rgba(5,7,10,.48);backdrop-filter:blur(26px) saturate(105%);-webkit-backdrop-filter:blur(26px) saturate(105%);border-color:#ffffff23;box-shadow:inset 0 1px 0 #ffffff0d,0 12px 32px #0004}
.pm-stage>.pm-sheet .pm-sheet-head{background:transparent;position:relative;top:auto;z-index:7}
/* The chooser floats over thumbnails, preserving the collection panel's dimensions. */
#pm-collection-menu{position:absolute;top:73px;left:9px;right:9px;z-index:8;margin:0;padding:7px;max-height:calc(100% - 84px);overflow-y:auto;border:1px solid #ffffff23;border-radius:12px;background:linear-gradient(145deg,#ffffff09,transparent 52%),rgba(5,7,10,.76);backdrop-filter:blur(26px) saturate(105%);-webkit-backdrop-filter:blur(26px) saturate(105%);box-shadow:0 12px 32px #0005;scrollbar-width:none}
#pm-collection-menu::-webkit-scrollbar{display:none}
@media(prefers-reduced-motion:no-preference){
 .pm-stage>.pm-sheet:not([hidden]){animation:pm-panel-arrive .18s ease-out}
 #pm-collection-menu:not([hidden]){animation:pm-menu-arrive .16s ease-out}
 @keyframes pm-panel-arrive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
 @keyframes pm-menu-arrive{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
}
@media(max-width:850px){#pm-collection-menu{top:53px;max-height:calc(100% - 62px)}}

/* One panel, two views: chooser replaces thumbnails instead of layering over them. */
.pm-stage>.pm-sheet.pm-choosing{height:min(370px,calc(100% - 98px))}
#pm-collection-menu{position:static;inset:auto;max-height:none;overflow:visible;margin:0;padding:3px 0 8px;border:0;border-radius:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
.pm-sheet.pm-choosing #pm-sheet-items{display:none}
.pm-sheet.pm-choosing .pm-sheet-head{position:sticky;top:-15px;background:linear-gradient(145deg,#ffffff04,transparent),rgba(5,7,10,.6);backdrop-filter:blur(26px);border-radius:8px}
#pm-collection-menu>button{min-height:39px}
@media(max-width:850px){.pm-stage>.pm-sheet.pm-choosing{height:calc(100% - 74px)}.pm-sheet.pm-choosing .pm-sheet-head{top:-9px}#pm-collection-menu>button{min-height:36px}}

/* Consistent single glass lens; header inherits the panel instead of adding a slab. */
.pm-sheet.pm-choosing .pm-sheet-head,.pm-stage>.pm-sheet .pm-sheet-head{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:0;position:relative;top:auto}
/* Reserve a centered overflow cue below rows, away from thumbnail text. */
.pm-stage>.pm-sheet{padding-bottom:32px}
.pm-stage>.pm-sheet .pm-more-items{position:sticky;bottom:-23px;left:auto;width:28px;height:24px;min-height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin:8px auto -23px;padding:0;border:1px solid #ffffff23;border-radius:999px;background:linear-gradient(145deg,#ffffff09,transparent 52%),rgba(5,7,10,.48);backdrop-filter:blur(26px) saturate(105%);-webkit-backdrop-filter:blur(26px) saturate(105%);box-shadow:0 3px 10px #0003;color:#a2adb9;line-height:1}
.pm-stage>.pm-sheet .pm-more-items i{display:block;font-size:18px;line-height:1}
.pm-stage>.pm-sheet .pm-more-items:hover{color:#c6e6f8;border-color:#81bde244}
.pm-stage>.pm-sheet .pm-more-items[hidden]{display:none!important}

/* Selected collection identity stays clear without restoring the opaque header. */
#pm-collection-picker>span{position:relative;display:flex;align-items:center;gap:9px;color:#9bceed;font-weight:550}
#pm-collection-picker>span::before{content:'';display:block;flex:0 0 3px;width:3px;height:14px;border-radius:3px;background:#81bde2;box-shadow:0 0 7px #81bde225}
#pm-collection-picker>i{color:#a2adb9}
/* Plain overflow chevron, with a comfortable invisible click target. */
.pm-stage>.pm-sheet .pm-more-items,.pm-stage>.pm-sheet .pm-more-items:hover{width:30px;height:26px;min-height:26px;border:0;border-radius:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;color:#b4bdc9}
.pm-stage>.pm-sheet .pm-more-items:hover{color:#9bceed}
.pm-stage>.pm-sheet .pm-more-items i{font-size:21px;text-shadow:0 1px 5px #0008}

/* Muted collection heading: blue-gray identity rather than an illuminated control. */
#pm-collection-picker>span{color:#94afc0;font-weight:500}
#pm-collection-picker>span::before{background:#819eaf;box-shadow:none;opacity:.7}
#pm-collection-picker:hover>span{color:#b4cbd9}

/* Match Creative work's resting and hover colors without an extra marker. */
#pm-collection-picker>span{color:#81bde2;font-weight:500;transition:color .25s ease}
#pm-collection-picker>span::before{display:none}
#pm-collection-picker:hover>span{color:#b5ddf4}
@media(prefers-reduced-motion:reduce){#pm-collection-picker>span{transition:none}}

/* Phone-only density refinement: less empty space, full-size touch targets. */
@media(max-width:600px){
 .pm-stage>.pm-sheet{width:min(275px,calc(100% - 18px));padding:8px 7px 27px;border-radius:15px}
 .pm-stage>.pm-sheet .pm-sheet-head{padding:0 6px 8px;margin-bottom:5px;gap:8px}
 .pm-stage>.pm-sheet .pm-sheet-head>div{margin-right:4px}
 .pm-sheet-head button{width:30px;height:30px;flex-shrink:0}
 #pm-collection-picker{padding:4px 0;font-size:11px;gap:8px}
 .pm-stage>.pm-sheet .pm-item{min-height:48px;padding:5px 6px;gap:9px;border-radius:9px}
 .pm-stage>.pm-sheet .pm-item-art{width:58px;border-radius:6px}
 .pm-stage>.pm-sheet .pm-item strong{font-size:10px;line-height:1.4}
 .pm-stage>.pm-sheet .pm-item small{font-size:8px;margin-top:3px}
 .pm-stage>.pm-sheet .pm-selected{font-size:12px}
 #pm-collection-menu>button{min-height:38px;padding:8px 9px;gap:9px}
}


/* Phone collection panel: reduce unused horizontal space, not the video stage. */
@media(max-width:600px){
 .pm-stage>.pm-sheet{width:min(235px,calc(100% - 18px))}
 .pm-stage>.pm-sheet .pm-item{gap:8px}
 .pm-stage>.pm-sheet .pm-item>span:nth-child(2){flex:1;min-width:0}
 #pm-collection-menu>button{gap:8px;padding-inline:8px}
 #pm-collection-menu>button>span{min-width:0;white-space:normal}
}

/* Shared horizontal width for every collection and both chooser/item views. */
.pm-stage>.pm-sheet{width:min(270px,calc(100% - 18px))}
@media(max-width:850px){.pm-stage>.pm-sheet{width:min(270px,calc(100% - 18px))}}
@media(max-width:600px){.pm-stage>.pm-sheet{width:min(270px,calc(100% - 18px))}}

/* Content-sized, right-anchored collection lens. Never stretch between top and bottom. */
.pm-stage>.pm-sheet{top:auto;left:auto;right:12px;bottom:68px;height:auto;min-height:0;max-height:calc(100% - 82px)}
.pm-stage>.pm-sheet.pm-choosing{height:auto;min-height:0;max-height:calc(100% - 82px)}
@media(max-width:850px){
 .pm-stage>.pm-sheet,.pm-stage>.pm-sheet.pm-choosing{inset:auto 9px 60px auto;width:min(235px,70%);height:auto;min-height:0;max-height:calc(100% - 72px)}
}
@media(max-width:600px){
 .pm-stage>.pm-sheet,.pm-stage>.pm-sheet.pm-choosing{inset:auto 8px 53px auto;width:min(220px,68%);height:auto;min-height:0;max-height:calc(100% - 64px);padding:8px 7px 12px}
 .pm-stage>.pm-sheet .pm-more-items{bottom:-8px;margin:5px auto -7px}
 .pm-stage>.pm-sheet .pm-item-art{width:49px}
 .pm-stage>.pm-sheet .pm-item{gap:7px;padding-inline:5px}
 #pm-collection-picker{font-size:10px;gap:5px}
 .pm-stage>.pm-sheet .pm-sheet-head>div{margin-right:2px}
 .pm-stage>.pm-sheet .pm-sheet-head button{width:27px;height:27px;font-size:20px}
 .pm-stage>.pm-sheet .pm-item strong{font-size:9px;overflow-wrap:anywhere}
 #pm-collection-menu>button{font-size:10px;padding-inline:7px;gap:7px}
}

/* Desktop has room for full titles; retain the compact phone rules above. */
@media(min-width:851px){
 .pm-stage>.pm-sheet,.pm-stage>.pm-sheet.pm-choosing{width:min(340px,calc(100% - 30px));height:auto;min-height:0}
 .pm-stage>.pm-sheet .pm-item strong{white-space:nowrap;font-size:11px}
 #pm-collection-menu>button>span{white-space:nowrap}
}

/* Watch arrivals start concealed before first paint, then reveal after framing. */
html.pm-watch-pending .pm-heading,html.pm-watch-pending #player-stage{opacity:0}

/* Keep the controls available on touch and fit the collection inside the video. */
@media (max-width:600px), (hover:none) and (pointer:coarse){
 .pm-stage.pm-touch-input:not(.pm-awake)>.pm-controls{opacity:0;pointer-events:none}
}
@media (max-width:600px), (max-width:850px) and (hover:none) and (pointer:coarse){
 .pm-stage>.pm-sheet,.pm-stage>.pm-sheet.pm-choosing{
  inset:auto 8px 60px auto;width:min(185px,58%);max-height:min(142px,calc(100% - 70px));
  padding:4px 5px 6px;overscroll-behavior-y:contain;touch-action:pan-y
 }
 .pm-stage>.pm-sheet .pm-sheet-head{top:-4px;padding:0 4px 3px;margin-bottom:2px}
 .pm-stage>.pm-sheet .pm-item{min-height:44px;padding:3px 4px;gap:6px}
 .pm-stage>.pm-sheet .pm-item-art{width:39px}
 #pm-collection-menu>button{min-height:44px}
}
@media (hover:none) and (pointer:coarse){
 .pm-stage:fullscreen>.pm-sheet,.pm-stage:fullscreen>.pm-sheet.pm-choosing{bottom:86px;max-height:min(142px,calc(100% - 96px))}
}

/* Playback shortcuts act in place without flashing a focus outline. */
.pm-stage.pm-shortcut-active:focus-visible,
.pm-stage.pm-shortcut-active :focus-visible{outline:none}

/* Desktop collection stays compact even when the video fills the screen. */
@media (min-width:601px) and (hover:hover) and (pointer:fine){
 .pm-stage>.pm-sheet{
  --pm-drawer-bottom:68px;
  --pm-drawer-cap:388px;
  box-sizing:border-box;
  bottom:var(--pm-drawer-bottom);
  max-height:min(var(--pm-drawer-cap),calc(100% - var(--pm-drawer-bottom) - 14px));
 }
 .pm-stage>.pm-sheet.pm-choosing{
  --pm-drawer-cap:260px;
  max-height:min(var(--pm-drawer-cap),calc(100% - var(--pm-drawer-bottom) - 14px));
 }
 .pm-stage:fullscreen>.pm-sheet{--pm-drawer-bottom:88px}
}

.pm-sheet-bottom-close{display:none}
.pm-stage>.pm-sheet.pm-bottom-sheet,
.pm-stage>.pm-sheet.pm-bottom-sheet.pm-choosing{
 position:fixed;inset:auto 0 0;width:auto;max-width:none;height:auto;
 max-height:68vh;max-height:68dvh;min-height:0;box-sizing:border-box;
 margin:0;padding:10px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
 display:flex;flex-direction:column;overflow:hidden;gap:6px;
 border:1px solid #ffffff23;border-radius:18px 18px 0 0;
 background:linear-gradient(145deg,#ffffff09,transparent 52%),rgba(5,7,10,.94)
}
.pm-bottom-sheet::backdrop{background:#02040660}
.pm-stage>.pm-sheet.pm-bottom-sheet .pm-sheet-head{flex:none;padding:0 6px 8px;margin:0}
.pm-bottom-sheet #pm-sheet-close,.pm-stage>.pm-sheet.pm-bottom-sheet .pm-more-items{display:none}
.pm-bottom-sheet :is(#pm-sheet-items,#pm-collection-menu){
 min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 2px
}
.pm-bottom-sheet :is(#pm-sheet-items,#pm-collection-menu)[hidden]{display:none}
.pm-stage>.pm-sheet.pm-bottom-sheet .pm-item{min-height:48px;gap:10px}
.pm-stage>.pm-sheet.pm-bottom-sheet .pm-item-art{width:54px}
.pm-stage>.pm-sheet.pm-bottom-sheet .pm-item strong,.pm-bottom-sheet #pm-collection-menu>button,.pm-bottom-sheet #pm-collection-picker{overflow-wrap:anywhere}
.pm-stage>.pm-sheet.pm-bottom-sheet .pm-item strong,.pm-bottom-sheet #pm-collection-picker,.pm-bottom-sheet #pm-collection-menu>button{font-size:13px}
.pm-stage>.pm-sheet.pm-bottom-sheet .pm-item small{font-size:10px}
.pm-bottom-sheet .pm-sheet-bottom-close{
 display:block;flex:none;min-height:44px;width:100%;border:1px solid #ffffff23;border-radius:12px;
 background:#ffffff08;color:#c5d3df;font:550 13px Inter,sans-serif;cursor:pointer
}

.pm-stage.pm-touch-input:focus-visible,
.pm-stage.pm-touch-input :focus-visible{outline:none}
@media(prefers-reduced-motion:no-preference){
 .pm-stage>.pm-sheet.pm-bottom-sheet[open]{animation:pm-bottom-sheet-arrive .34s ease-out}
}
@keyframes pm-bottom-sheet-arrive{
 from{opacity:0;transform:translateY(12px)}
 to{opacity:1;transform:translateY(0)}
}

/* Five visible rows on mobile, with the header and Close outside the scroll area. */
.pm-bottom-sheet #pm-collection-menu{max-height:220px}
.pm-bottom-sheet #pm-collection-menu>button{min-height:44px;box-sizing:border-box}
.pm-bottom-sheet #pm-sheet-items{max-height:240px}
