/* room-theater.css · ur7-13 · The Theater: black stage, soft fade, pill buttons, gold play line, replies panel. */
html.urth-on,html.urth-on body{overscroll-behavior:none}
.urth{position:fixed;inset:0;z-index:38;background:#000;color:#e7e9ea;overflow:hidden;opacity:0;transition:opacity .22s,transform .3s cubic-bezier(.2,.8,.2,1);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.urth.on{opacity:1}
.urth-stage{position:absolute;left:0;right:0;top:0;bottom:0;touch-action:none;transition:bottom .3s cubic-bezier(.2,.8,.2,1)}
.urth-sl{position:absolute;inset:0;display:grid;place-items:center;will-change:transform}
.urth-sl video{width:100%;height:100%;object-fit:contain;background:#000;display:block}
.urth-big{position:absolute;left:50%;top:50%;width:68px;height:68px;margin:-34px 0 0 -34px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;display:grid;place-items:center;opacity:0;transform:scale(.8);transition:opacity .18s,transform .18s;pointer-events:none}
.urth-big svg{width:32px;height:32px;margin-left:3px}
.urth.paused .urth-sl:last-child .urth-big{opacity:1;transform:none}
.urth-x{position:absolute;z-index:3;top:calc(env(safe-area-inset-top) + 10px);left:12px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(20,20,20,.6);color:#fff;display:grid;place-items:center;padding:0;cursor:pointer}
.urth-x svg{width:22px;height:22px}
.urth-dock{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:48px 14px calc(env(safe-area-inset-bottom) + 6px);background:linear-gradient(to bottom,transparent,rgba(0,0,0,.72) 38%,#000);transition:opacity .2s}
.urth-who{display:flex;align-items:center;gap:10px;min-width:0}
.urth-av{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;background:#2f3336}
.urth-in{display:grid;place-items:center;font-weight:800;color:#D4AC5E;background:#16181c;box-shadow:inset 0 0 0 1px rgba(212,172,94,.4)}
.urth-nm{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.urth-nm b{font-size:16px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px}
.urth-nm b svg{width:17px;height:17px;flex:none}
.urth-nm small{font-size:14px;color:#8b98a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.urth-fo{flex:none;height:34px;padding:0 16px;border-radius:99px;border:0;background:#1d1f23;color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
.urth-fo.on{background:transparent;box-shadow:inset 0 0 0 1px #536471;color:#e7e9ea}
.urth-tx{margin:10px 0 0;font-size:15.5px;font-weight:700;line-height:1.35;cursor:pointer;overflow-wrap:anywhere}
.urth-tx.open{max-height:32vh;overflow-y:auto;font-weight:500;-webkit-user-select:text;user-select:text}
.urth-more{color:#8b98a5}
.urth-acts{display:flex;gap:8px;margin-top:12px}
.urth-a{flex:1 1 0;min-width:0;height:42px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;border:0;border-radius:99px;background:rgba(32,35,39,.78);color:#e7e9ea;font:inherit;font-size:14.5px;font-weight:700;cursor:pointer;transition:transform .12s}
.urth-a[data-k=save],.urth-a[data-k=share]{flex:0 0 42px;padding:0}
.urth-a svg{width:20px;height:20px;flex:none}
.urth-a .ic{display:inline-flex}
.urth-a em{font-style:normal;font-variant-numeric:tabular-nums}
.urth-a em:empty{display:none}
.urth-a.on{color:#D4AC5E}
.urth-a[data-k=heart].on{color:#f91880}
.urth-a:active{transform:scale(.96)}
.urth-bar{margin-top:8px}
.urth-prog{position:relative;height:18px;cursor:pointer;touch-action:none}
.urth-prog::before,.urth-prog i{content:"";position:absolute;left:0;right:0;top:8px;height:3px;border-radius:2px}
.urth-prog::before{background:rgba(255,255,255,.22)}
.urth-prog i{background:#D4AC5E;transform-origin:left center;transform:scaleX(0)}
.urth-ctl{display:flex;align-items:center;gap:2px;height:44px}
.urth-ctl button{height:44px;min-width:44px;border:0;background:none;color:#fff;display:grid;place-items:center;padding:0 6px;cursor:pointer;font:inherit}
.urth-ctl svg{width:24px;height:24px}
.urth-pp .i-play,.urth.paused .urth-pp .i-pause{display:none}
.urth.paused .urth-pp .i-play{display:block}
.urth-snd .i-off,.urth-snd.off .i-on{display:none}
.urth-snd.off .i-off{display:block}
.urth-t{font-size:14px;font-weight:600;color:#c4cbd2;font-variant-numeric:tabular-nums;min-width:48px;padding-left:4px}
.urth-fl{flex:1}
.urth-ctl .urth-spd{font-size:19px;font-weight:800;letter-spacing:-.01em}
.urth-say{position:absolute;z-index:4;left:50%;top:calc(env(safe-area-inset-top) + 64px);transform:translate(-50%,-8px);padding:8px 15px;border-radius:99px;background:rgba(22,24,28,.92);box-shadow:inset 0 0 0 1px rgba(212,172,94,.38);font-size:13.5px;font-weight:700;white-space:nowrap;opacity:0;transition:opacity .22s,transform .3s;pointer-events:none}
.urth-say.on{opacity:1;transform:translate(-50%,0)}
.urth.rp-on .urth-stage{bottom:62%}
.urth.rp-on .urth-dock{opacity:0;pointer-events:none}
.urth-rp{position:absolute;z-index:5;left:0;right:0;bottom:0;height:62%;display:flex;flex-direction:column;background:#000;border-radius:18px 18px 0 0;box-shadow:0 -1px 0 #2f3336,0 -18px 40px rgba(0,0,0,.6);transform:translate3d(0,100%,0);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.urth.rp-on .urth-rp{transform:none}
.urth-rp-hd{position:relative;flex:none;display:flex;align-items:center;justify-content:center;height:52px;padding-top:6px;touch-action:none;cursor:grab}
.urth-rp-g{position:absolute;top:7px;left:50%;width:38px;height:4px;margin-left:-19px;border-radius:2px;background:#3e4144}
.urth-rp-hd b{font-size:16px;font-weight:800}
.urth-rp-x{position:absolute;right:8px;top:8px;width:40px;height:40px;border:0;border-radius:50%;background:none;color:#e7e9ea;display:grid;place-items:center;cursor:pointer;padding:0}
.urth-rp-x svg{width:20px;height:20px}
.urth-rp-ls{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-top:1px solid #2f3336;-webkit-user-select:text;user-select:text}
.urth-r{display:flex;gap:10px;padding:12px 14px;border-bottom:1px solid #16181c}
.urth-r .urth-av{width:34px;height:34px;font-size:14px}
.urth-rm{flex:1;min-width:0}
.urth-rh{display:flex;gap:6px;align-items:baseline;min-width:0}
.urth-rh b{font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.urth-rh small{font-size:14px;color:#71767b;white-space:nowrap}
.urth-rm p{margin:3px 0 0;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.urth-r.gone p{color:#71767b;font-style:italic;margin:0}
.urth-empty{padding:34px 20px;text-align:center;color:#71767b;font-size:15px}
.urth-empty b{display:block;color:#e7e9ea;font-size:18px;margin-bottom:4px}
.urth-retry{margin-top:10px;height:36px;padding:0 16px;border-radius:99px;border:0;background:#e7e9ea;color:#000;font:inherit;font-weight:800;cursor:pointer}
.urth-spin{width:26px;height:26px;margin:22px auto;border-radius:50%;border:2.5px solid rgba(212,172,94,.25);border-top-color:#D4AC5E;animation:urth-spin .8s linear infinite}
@keyframes urth-spin{to{transform:rotate(360deg)}}
.urth-cz{flex:none;display:flex;align-items:flex-end;gap:10px;padding:8px 12px calc(env(safe-area-inset-bottom) + 8px);border-top:1px solid #2f3336;background:#000}
.urth-cz textarea{flex:1;min-height:42px;max-height:120px;resize:none;padding:10px 16px;border-radius:21px;border:1px solid #2f3336;background:#16181c;color:#e7e9ea;font:inherit;font-size:16px;line-height:1.35;outline:none}
.urth-cz textarea:focus{border-color:#D4AC5E}
.urth-go{flex:none;height:42px;padding:0 18px;border-radius:99px;border:0;background:#e7e9ea;color:#000;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
.urth-go:disabled{opacity:.45;cursor:default}
.urth-go.busy{opacity:.6}
@media (min-width:700px){.urth-dock,.urth-rp{max-width:600px;margin:0 auto}}
@media (prefers-reduced-motion:reduce){.urth,.urth-rp,.urth-stage,.urth-say,.urth-big{transition:none}}
/*ur7-13:bare  tap the video: controls and back arrow fade together, tap again to bring them back */
.urth-x{transition:opacity .2s}
.urth.bare .urth-dock,.urth.bare .urth-x{opacity:0;pointer-events:none}
/*ur7-13:third  replies open: video rises into the top third below the notch, full width, still playing */
.urth-stage{transition:top .3s cubic-bezier(.2,.8,.2,1),bottom .3s cubic-bezier(.2,.8,.2,1)}
.urth.rp-on .urth-stage{top:env(safe-area-inset-top);bottom:64%}
.urth-rp{height:64%}
@media (prefers-reduced-motion:reduce){.urth-stage,.urth-x{transition:none}}
/*ur7-13b:rich  the post page's thread inside the Theater sheet */
.urth-rich .pv-new{position:absolute;z-index:3;top:60px;left:50%;right:auto;bottom:auto;margin:0;transform:translateX(-50%)}
.urth-rich .pv-cz{position:relative;z-index:2}
/*ur7-13b:above  sort, report and delete open above the Theater, not behind it */
.urth-on .dlg{z-index:50!important}
.urth-on .burst{z-index:60}
/*ur7-13c:box  the reply box never squashes below normal height */
.urth-rich .pv-row textarea{min-height:40px}
/*ur7-13d:fit  the slide fills the stage above the tray; nothing bleeds under it */
.urth.rp-on .urth-stage{overflow:hidden}
.urth.rp-on .urth-sl{position:absolute;left:0;top:0;right:0;bottom:0}
/*ur7-13e:img  photos in the Theater */
.urth-ph img{width:100%;height:100%;object-fit:contain;display:block;background:#000;-webkit-user-drag:none;-webkit-touch-callout:none}
.urth-rb{display:flex;align-items:center;width:100%;height:42px;margin-top:10px;padding:0 16px;border-radius:21px;border:1px solid #2f3336;background:#16181c;color:#71767b;font:inherit;font-size:16px;text-align:left;cursor:text}
.urth-rb:active{border-color:#1d9bf0}
.urth-n{position:absolute;z-index:3;top:calc(env(safe-area-inset-top) + 18px);right:14px;padding:4px 10px;border-radius:99px;background:rgba(20,20,20,.6);color:#fff;font-size:13px;font-weight:700;transition:opacity .2s}
.urth-n:empty{display:none}
.urth.bare .urth-n,.urth.rp-on .urth-n{opacity:0;pointer-events:none}
/*ur7-13f:seek  hide the first frame until the video reaches your second, then fade in */
.urth-sl video{transition:opacity .18s}
.urth-sl.urth-seek video{opacity:0}
@media (prefers-reduced-motion:reduce){.urth-sl video{transition:none}}
/*ur7-13g:warm  the next video loads out of sight */
.urth-warm{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.urth-warm video{width:1px;height:1px}
