html.tw-on { --stick-top: 0px; overscroll-behavior-y: none; }
html.tw-on body { overscroll-behavior-y: none; }
html.tw-on .topbar { display: none; }
html.tw-on #shell { padding-top: 0; }
html.tw-on main.page.stream-page .player-sticky { top: 0; padding-top: env(safe-area-inset-top); }
html.tw-on .bottomnav { transform: translateY(100%); visibility: hidden; transition: none; }
html.tw-on main.page.stream-page { padding-bottom: 10px; }
html.tw-on main.page.stream-page .otabs-bar { top: calc(env(safe-area-inset-top) + var(--page-w, 100vw) * .5625); }
html.tw-on { --side-cut: calc(env(safe-area-inset-top) + max(0px, env(safe-area-inset-bottom) - 20px)); }
html.tw-on main.page.stream-page.panel-tab { padding-bottom: calc(10px + max(0px, env(safe-area-inset-bottom) - 20px)); }
html.tw-on main.page.stream-page + .site-foot { margin-top: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.tw-down { display: none; }
html.tw-on .tw-down { display: grid; place-items: center; position: absolute; z-index: 6; left: 6px; top: 6px; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .38); color: #fff; cursor: pointer; transition: opacity .2s; -webkit-tap-highlight-color: transparent; }
html.tw-on .tw-down:active { background: rgba(0, 0, 0, .6); }
html.tw-on .player-box:not(.yt-ui):not(.yt-paused):not(.tw-ui) .tw-down { opacity: 0; pointer-events: none; transition: opacity .35s; }
html.tw-moved #main { transform: translate3d(0, var(--tw-y, 0px), 0); }
html.tw-moved #main .stream-layout > div > :not(.player-sticky),
html.tw-moved #main .stream-layout > .side,
html.tw-moved #shell > :not(#main):not(.topbar),
html.tw-moved .bottomnav { opacity: calc(1 - var(--tw-p, 0)); }
html.tw-moved, html.tw-moved body, html.tw-moved #app, html.tw-moved #shell { background-color: color-mix(in srgb, #000 calc(var(--tw-p, 0) * 100%), var(--bg)); }
html.tw-anim #main { transition: transform .34s cubic-bezier(.2, .8, .2, 1); }
html.tw-anim #main .stream-layout > div > :not(.player-sticky),
html.tw-anim #main .stream-layout > .side,
html.tw-anim #shell > :not(#main):not(.topbar),
html.tw-anim .bottomnav { transition: opacity .34s ease; }
html.tw-anim, html.tw-anim body, html.tw-anim #app, html.tw-anim #shell { transition: background-color .34s ease; }
html.tw-full { overflow: hidden; }
html.tw-full #main .stream-layout > div > :not(.player-sticky),
html.tw-full #main .stream-layout > .side,
html.tw-full #shell > :not(#main):not(.topbar),
html.tw-full .bottomnav { pointer-events: none; }
html.tw-full .tw-down, html.tw-moved .tw-down { opacity: 0; pointer-events: none; }
.tw-hint { position: fixed; z-index: 60; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); font: 600 13px/1.2 system-ui, sans-serif;
  white-space: nowrap; transition: opacity .3s, transform .3s; }
.tw-hint.show { opacity: 1; transform: translate(-50%, 0); }
.tw-scrim { display: none; }
html.tw-on main.page.stream-page:not(.tw-host) > .tw-scrim { display: block; position: fixed; z-index: 59; inset: 0; background: var(--bg); opacity: var(--tw-q, 0);
  pointer-events: none; will-change: opacity; }
html.tw-shrink #main .stream-layout > div > :not(.player-sticky),
html.tw-shrink #main .stream-layout > .side { pointer-events: none; }
html.tw-shrink #main .player-sticky { transform-origin: 0 0; z-index: 60; background: transparent; will-change: transform; }
html.tw-shrink #main .player-box > :not(.player-wrap):not(.tw-down):not(.tw-grab) { visibility: hidden !important; }
html.tw-shrink .tw-down { opacity: 0 !important; }
html.tw-shrink #main .player-wrap, #tw-host .player-wrap {
  border-radius: var(--tw-r, 0px); clip-path: inset(0 round var(--tw-r, 0px));
  box-shadow: 0 calc(10px * var(--tw-inv, 1)) calc(30px * var(--tw-inv, 1)) rgba(0, 0, 0, calc(.55 * var(--tw-sh, 0))); }
main.page.tw-host { position: fixed; z-index: 60; left: 0; top: 0; width: 0; height: 0; min-height: 0; margin: 0; padding: 0; max-width: none; transform: none; overflow: visible; pointer-events: none; }
main.page.tw-host .stream-layout > div > :not(.player-sticky),
main.page.tw-host .stream-layout > .side,
main.page.tw-host .player-box > :not(.player-wrap),
main.page.tw-host .player-wrap > :not(iframe):not(div) { display: none !important; }
main.page.tw-host .player-sticky { position: fixed; z-index: 60; left: 0; top: 0; width: 100vw; margin: 0; padding: 0; transform-origin: 0 0; background: transparent; will-change: transform; }
main.page.tw-host.tw-closing .player-sticky { opacity: 0; transition: opacity .2s ease; }
#tw-host .player-wrap > iframe { transform: none !important; }
.tw-win { position: fixed; z-index: 61; left: 0; top: 0; border-radius: 12px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; opacity: 0; transition: opacity .2s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.tw-win.in { opacity: 1; }
.tw-win.out { opacity: 0; pointer-events: none; }
.tw-win.held { cursor: grabbing; }
.tw-win button { position: absolute; top: 6px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .82); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.tw-win button:active { background: rgba(0, 0, 0, .95); }
.tw-win .tw-pip-pp { left: 6px; }
.tw-win .tw-pip-x { right: 6px; }
html.tw-on.tw-vdrag main.page.stream-page:not(.tw-host) .player-wrap {
  display: flex; flex-direction: column-reverse; overflow-x: hidden; overflow-y: scroll; overscroll-behavior: auto; scrollbar-width: none; }
html.tw-on.tw-vdrag main.page.stream-page:not(.tw-host) .player-wrap::-webkit-scrollbar { display: none; }
html.tw-on.tw-vdrag main.page.stream-page:not(.tw-host) .player-wrap::before { content: ""; order: 1; flex: none; height: 5000px; pointer-events: none; }
html.tw-on.tw-vdrag main.page.stream-page:not(.tw-host) .player-wrap > iframe { position: sticky; inset: 0; flex: none; height: 100%; }
html.tw-on.tw-vdrag main.page.stream-page:not(.tw-host) .player-sticky { will-change: transform; transform-origin: 0 0; z-index: 60; }
html.tw-on.tw-vdrag main.page.stream-page:not(.tw-host) .player-wrap { clip-path: inset(0 round var(--tw-r, 0px)); }
html.tw-on.tw-vdrag main.page.stream-page:not(.tw-host) .player-box > :not(.player-wrap) { touch-action: none; }
.tw-grab { display: none; }
html.tw-on.tw-vdrag main.page.stream-page:not(.tw-host) .player-box.tw-played > .tw-grab,
html.tw-on.tw-vdrag main.page.stream-page:not(.tw-host) .player-box:not(.yt-paused) > .tw-grab { display: block; position: absolute; z-index: 2; left: 0; right: 0; top: 0;
  bottom: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
html.tw-on.tw-vdrag main.page.stream-page:not(.tw-host) .player-box.yt-paused > .tw-grab { bottom: 64px; }
