/* Keep the video first in both reading and keyboard order. */
body.studio-watch-page .w146-serverbar{border-bottom:0;border-top:1px solid var(--studio-component-card-border)}
body.studio-watch-page .w146 .w148-episode-switch{align-items:stretch!important}
body.studio-watch-page .w146 .w187-switch-card{width:100%!important;height:100%;align-self:stretch!important;justify-self:stretch!important}
.watch-report-short{display:none}
@media(max-width:760px){
  .w146-report .watch-report-short{display:inline;font-size:10px}
  .w146-report .watch-report-full{display:none}
  body.studio-watch-page .w146{padding-top:calc(14px + var(--watch-top-clearance,0px))!important}
  body.studio-watch-page .w146>.container{width:calc(100% - 24px)!important;padding:0!important}
  body.studio-watch-page .w146-head{align-items:center;gap:10px;margin-bottom:14px!important}
  body.studio-watch-page .w146-title{gap:10px;align-items:center}
  body.studio-watch-page .w146-poster{flex:0 0 44px;width:44px;height:64px;border-radius:8px}
  body.studio-watch-page .w146-title nav{display:none}
  body.studio-watch-page .w146-kicker{font-size:10px;line-height:1.6;margin:0 0 4px}
  body.studio-watch-page .w146-title h1{font-size:20px!important;line-height:1.5;margin:0!important}
  body.studio-watch-page .w146-title p{font-size:11px;line-height:1.7;margin:4px 0 0}
  body.studio-watch-page .w146-back{display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;padding:6px;border-radius:10px}
  body.studio-watch-page .w146-back :is(small,b){display:none}
  body.studio-watch-page .w146-player-shell{border-radius:14px;overflow:hidden;box-shadow:none}
  body.studio-watch-page .w146-player{aspect-ratio:16/9!important;min-height:0!important;height:auto}
  body.studio-watch-page .w435-player-gate{gap:8px;padding:14px}
  body.studio-watch-page .w435-player-gate>i{width:48px;height:48px;font-size:20px;box-shadow:none}
  body.studio-watch-page .w435-player-gate>span{gap:2px}
  body.studio-watch-page .w435-player-gate small{font-size:9px}
  body.studio-watch-page .w435-player-gate b{font-size:16px}
  body.studio-watch-page .w435-player-gate em{font-size:10px;max-width:300px;line-height:1.6}
  body.studio-watch-page .w146-serverbar{display:grid!important;grid-template-columns:minmax(0,1fr) 44px;gap:8px;padding:12px!important;background:var(--studio-component-card-bg)!important}
  body.studio-watch-page .w146-tier-switch{grid-column:1/-1;display:flex;width:100%;min-width:0;padding:3px;border-radius:10px}
  body.studio-watch-page .w146-tier-switch :is(button,a){flex:1;min-width:0;min-height:44px;padding:6px 12px;font:inherit;font-size:12px;gap:8px}
  body.studio-watch-page .w146-server-select{grid-column:1;grid-row:2;min-width:0!important;max-width:none;width:100%!important;min-height:48px;height:auto;padding:6px 10px}
  body.studio-watch-page .w146-server-select>span{min-width:0;max-width:calc(100% - 20px)}
  body.studio-watch-page .w146-server-select small{font-size:9px;line-height:1.5}
  body.studio-watch-page .w146-server-select b{font-size:11px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.studio-watch-page .w146-server-select select{width:100%}
  body.studio-watch-page .w146-refresh{grid-column:2;grid-row:2;min-width:44px;width:44px;height:48px;margin:0!important}
  body.studio-watch-page .w146-server-health{grid-column:1;grid-row:3;display:flex;height:auto;min-height:44px;padding:0 5px;border:0;background:transparent!important;font-size:10px;gap:6px}
  body.studio-watch-page .w146-server-health b{margin-inline-start:auto;font-size:9px}
  body.studio-watch-page .w146-report{grid-column:2;grid-row:3;display:flex;min-width:44px;width:44px;height:44px;margin:0!important;padding:4px;border-radius:9px;font-size:9px;line-height:1.4;text-align:center}
  body.studio-watch-page .w146 .w148-control-strip{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:0!important;margin:14px 0 0;border:0;background:transparent!important;box-shadow:none}
  body.studio-watch-page .w146 .w148-control-strip .w148-episode-switch{grid-column:1!important;grid-row:1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important}
  body.studio-watch-page .w146 .w187-current-episode{display:none!important}
  body.studio-watch-page .w146 .w187-switch-card{display:grid!important;grid-template-columns:minmax(0,1fr) 24px!important;grid-template-rows:24px auto!important;grid-row:1!important;min-height:82px!important;height:100%;width:100%!important;align-self:stretch!important;justify-self:stretch!important;padding:10px!important;gap:6px!important;border-radius:12px;background:var(--studio-component-card-bg)!important;text-align:start;transform:none!important}
  body.studio-watch-page .w146 .w187-switch-card>i{grid-column:2;grid-row:1;width:24px!important;height:24px!important;font-size:18px;border:0!important;border-radius:6px;direction:ltr}
  body.studio-watch-page .w146 .w187-switch-card>span{display:contents!important}
  body.studio-watch-page .w146 .w187-switch-card>span small{grid-column:1;grid-row:1;align-self:center;font-size:10px;line-height:1.5;white-space:normal;text-align:start}
  body.studio-watch-page .w146 .w187-switch-card>span b{grid-column:1/-1;grid-row:2;align-self:start;margin:0;font-size:13px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;text-align:start}
  body.studio-watch-page .w146 .w187-switch-card>em{display:none}
  body.studio-watch-page .w146 .w187-switch-card.is-next:not(.disabled){border-color:var(--studio-color-accent);background:var(--studio-component-control-bg)!important}
  body.studio-watch-page .w146 .w237-progress-card{grid-column:1!important;grid-row:2!important;min-width:0;gap:9px;padding:12px!important;padding-inline-start:66px!important;border-radius:12px;background:var(--studio-component-card-bg)!important}
  body.studio-watch-page .w146 .w237-progress-row{grid-template-columns:minmax(0,1fr) minmax(30px,.7fr);gap:5px 8px}
  body.studio-watch-page .w146 .w237-progress-row>span small{font-size:10px}
  body.studio-watch-page .w146 .w237-progress-row>span b{font-size:12px}
  body.studio-watch-page .w146 .w237-progress-row>em{grid-column:1/-1;font-size:9px;text-align:start}
  body.studio-watch-page .w146 .w305-manual-completion{width:44px;height:44px;inset-inline-start:10px;animation:none;box-shadow:none}
  body.studio-watch-page .w146 .w148-control-strip .w148-download{grid-column:1!important;grid-row:3!important;min-height:52px!important;padding:8px 11px;gap:10px}
  body.studio-watch-page .w148-download>i{width:32px;height:34px;font-size:19px}
  body.studio-watch-page .w148-download b{font-size:12px!important}
  body.studio-watch-page .w148-download small{font-size:9px!important}
  body.studio-watch-page .w146-library{margin-top:22px;padding:0!important;border:0;background:transparent!important;box-shadow:none}
  body.studio-watch-page .w146-library>header{display:block;margin-bottom:12px}
  body.studio-watch-page .w146-library>header>div>span{display:none}
  body.studio-watch-page .w146-library h2{font-size:22px;margin:0 0 5px}
  body.studio-watch-page .w146-library p{font-size:11px;line-height:1.8;margin:0}
  body.studio-watch-page .w146-library-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%;margin-top:14px}
  body.studio-watch-page .w146-library-tools label{min-width:0;gap:5px}
  body.studio-watch-page .w146-library-tools label small{font-size:10px}
  body.studio-watch-page .w146-library-tools label.search{grid-column:1/-1;min-width:0}
  body.studio-watch-page .w146-library-tools :is(select,input){min-width:0;width:100%;min-height:44px;padding-block:9px;font:inherit;font-size:12px}
  body.studio-watch-page .w146-episode-status{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;margin:12px 0;font-size:10px}
  body.studio-watch-page .w146 .w146-episode-grid{grid-template-columns:minmax(0,1fr)!important;gap:8px}
  body.studio-watch-page .w146 .w146-episode-grid>a{min-height:76px;grid-template-columns:40px minmax(0,1fr) 28px;gap:10px;padding:10px;border-radius:12px;transform:none!important}
  body.studio-watch-page .w146 .w146-episode-grid .episode-number{width:40px;height:44px;border:0;border-radius:8px}
  body.studio-watch-page .w146 .w146-episode-grid .episode-number small{display:none}
  body.studio-watch-page .w146 .w146-episode-grid .episode-number b{font-size:18px}
  body.studio-watch-page .w146 .w146-episode-grid .episode-code{font-size:9px}
  body.studio-watch-page .w146 .w146-episode-grid>a>div>b{font-size:13px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
  body.studio-watch-page .w146 .w146-episode-grid>a>div>em{font-size:10px;line-height:1.6}
  body.studio-watch-page .w146 .w146-episode-grid .episode-play{width:28px;height:30px}
  body.studio-watch-page .w146 .w146-episode-grid>a.active{border-inline-start:3px solid var(--studio-color-accent)}
  body.studio-watch-page .w203-movie-control{grid-template-columns:minmax(0,1fr);gap:9px;padding:0;border:0;background:transparent!important}
  body.studio-watch-page .w203-movie-progress{grid-template-columns:90px minmax(0,1fr) 60px;gap:8px;padding:12px}
  body.studio-watch-page .w203-movie-progress small{font-size:10px}
  body.studio-watch-page .w203-movie-progress>em{font-size:10px;line-height:1.6}
  body.studio-watch-page .w203-movie-control .w146-problem{min-height:48px;padding:8px 11px;gap:10px;border-radius:12px}
  body.studio-watch-page .w203-movie-control .w146-problem>i{width:32px;height:32px;font-size:18px}
  body.studio-watch-page .w203-movie-control .w146-problem b{font-size:12px}
  body.studio-watch-page .w203-movie-control .w146-problem small{display:none}
  body.studio-watch-page .w148-similar{margin-top:24px;padding:0;border:0;background:transparent!important;box-shadow:none}
  body.studio-watch-page .w148-similar>header{gap:12px;align-items:center}
  body.studio-watch-page .w148-similar>header>div>span{display:none}
  body.studio-watch-page .w148-similar h2{font-size:20px;line-height:1.5}
  body.studio-watch-page .w148-similar>header>a{flex:none;min-height:44px;display:flex;align-items:center;padding:6px 9px;font-size:10px}
  body.studio-watch-page .w148-similar-grid{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 0 10px}
  body.studio-watch-page .w148-similar-grid>a{flex:0 0 min(85%,320px);grid-template-columns:78px minmax(0,1fr);gap:10px;scroll-snap-align:start;padding:8px}
  body.studio-watch-page .w148-similar-grid figure{height:64px}
  body.studio-watch-page .w148-similar-grid>a>i{display:none}
  body.studio-watch-page .w148-similar-grid b{font-size:12px;line-height:1.6}
  body.studio-watch-page .w146-reactions{padding:14px!important}
  body.studio-watch-page .w146-reactions h2{font-size:19px!important;line-height:1.6}
  body.studio-watch-page .w146-reactions>header{gap:10px}
  body.studio-watch-page .w146-reaction-list{gap:7px}
  body.studio-watch-page .w146-reaction-list button{min-height:78px!important;padding:9px 5px!important}
  body.studio-watch-page .w146-reaction-list button b{font-size:11px!important}
  body.studio-watch-page .w189-report-modal :is(select,textarea,button){font-family:inherit}
  body.studio-theme.studio-watch-page .episode-community-unified .community-composer{display:block!important;min-width:0;padding:12px!important}
  body.studio-theme.studio-watch-page .episode-community-unified .community-composer>.community-avatar{display:none}
  body.studio-theme.studio-watch-page .episode-community-unified .community-composer>div{min-width:0;max-width:100%}
  body.studio-theme.studio-watch-page .episode-community-unified .community-composer textarea{width:100%;min-width:0;font-size:16px!important}
  body.studio-theme.studio-watch-page .episode-community-unified .community-composer footer{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0;padding-top:10px}
  body.studio-theme.studio-watch-page .episode-community-unified .community-composer footer>*{min-width:0;max-width:100%;margin:0!important}
  body.studio-theme.studio-watch-page .episode-community-unified .community-composer footer label{min-height:44px;white-space:normal;font-size:10px}
  body.studio-theme.studio-watch-page .episode-community-unified .comment-image-picker{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--studio-component-control-border);border-radius:9px;background:var(--studio-component-control-bg);cursor:pointer}
  body.studio-theme.studio-watch-page .episode-community-unified .comment-image-picker input[type="file"]{position:absolute;inset:0;width:100%;height:100%;min-width:0;max-width:100%;opacity:0;cursor:pointer}
  body.studio-theme.studio-watch-page .episode-community-unified .comment-image-picker:focus-within{outline:2px solid var(--studio-color-link);outline-offset:2px}
  body.studio-theme.studio-watch-page .episode-community-unified .community-composer footer>small{grid-column:1/-1;font-size:10px;text-align:end}
  body.studio-theme.studio-watch-page .episode-community-unified .community-composer footer>button{grid-column:1/-1;width:100%;min-height:44px;font-size:12px}
}
@media(min-width:540px) and (max-width:760px){
  body.studio-watch-page .w146 .w146-episode-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:350px){
  body.studio-watch-page .w435-player-gate{gap:5px;padding:9px}
  body.studio-watch-page .w435-player-gate>i{width:40px;height:40px;font-size:17px}
  body.studio-watch-page .w435-player-gate em{font-size:9px}
  body.studio-watch-page .w146-title h1{font-size:18px!important}
}
