/* App-sized layout with intentional touch scrolling, including horizontal rails. */
html,body{width:100%;max-width:100%;min-width:0;touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%;overscroll-behavior-y:none}
html{min-height:100%;}body{min-height:100dvh}
html[data-theme] :is(button,a,select,summary){-webkit-tap-highlight-color:transparent}
html[data-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){font-size:16px}
html[data-theme] :is(.vw,.full,.lv,#artist-studio){overscroll-behavior:contain;max-width:100%;scrollbar-gutter:auto}
html[data-theme] :is(.meta>div,.pt,.vh>b,.studio-head h2){min-width:0}
html[data-theme] .full>.art{object-fit:contain}
html[data-theme] :is(.nav,.mini){box-sizing:border-box}
@media(display-mode:standalone){html[data-theme] body{overscroll-behavior:none}}

/* iOS standalone uses an overlay status bar. Keep its inset opaque even
   while the document scrolls underneath the sticky app header. */
:root{--ritm-safe-top:env(safe-area-inset-top,0px)}
html[data-theme]{padding-top:var(--ritm-safe-top)}
html[data-theme] body::before{content:"";position:fixed;inset:0 0 auto;height:var(--ritm-safe-top);background:var(--bg,#0a0506);z-index:2147483646;pointer-events:none}
html[data-theme] header.ritm-clean-header{top:var(--ritm-safe-top)}
html[data-theme] #ritm-video-player.ritm-watch-page .watch-page-bar{padding-top:calc(10px + var(--ritm-safe-top))}
@media(max-width:600px){html[data-theme] #ritm-video-player.ritm-watch-page .watch-page-bar{padding-top:calc(8px + var(--ritm-safe-top))}}
