/* Content surfaces inside the optional mobile app shell. Shared players retain playback ownership. */
.mobile-app-episodes-link{display:none!important}
body.studio-theme .mobile-content-support,body.studio-theme.studio-title-detail .title-actions .mobile-content-support{display:none!important}
.mobile-app-quality,.mobile-app-quality::details-content{display:contents}
.mobile-app-quality>summary{display:none}
@media(max-width:820px),(max-width:1024px) and (max-height:500px){
  /* Inline support stays reachable without covering the player, episode navigation or title actions. */
  body.has-mobile-app-shell.has-mobile-content-support .a2-support-widget:not(.is-open){visibility:hidden!important;pointer-events:none!important}
  body.has-mobile-app-shell.has-mobile-content-support .a2-support-widget:not(.is-open) :is(.support-launcher,.a2-support-restore){display:none!important}
  body.studio-theme.has-mobile-app-shell .mobile-content-support,body.studio-theme.has-mobile-app-shell.studio-title-detail .title-actions .mobile-content-support{display:flex!important;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px!important;padding:8px!important;border:1px solid var(--studio-component-control-border)!important;border-radius:12px;background:var(--studio-component-control-bg)!important;color:var(--studio-color-link)!important;font:inherit;font-size:12px!important;font-weight:700;line-height:1.6;cursor:pointer;box-sizing:border-box}
  body.has-mobile-app-shell .mobile-content-support svg{width:18px;height:18px;flex:none}
  body.has-mobile-app-shell .mobile-content-support>span{min-width:0;overflow-wrap:anywhere}
  body.has-mobile-app-shell .mobile-content-support-count{padding:1px 5px;border-radius:6px;background:var(--studio-color-accent);color:var(--studio-color-on-accent);font-size:10px}
  body.has-mobile-app-shell .mobile-content-support-count[hidden]{display:none}
  body.has-mobile-app-shell .mobile-content-support:focus-visible{outline:2px solid var(--studio-color-link);outline-offset:3px}
  body.studio-theme.has-mobile-app-shell.has-mobile-content-support .w146 .w146-head-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px!important}
  body.studio-theme.has-mobile-app-shell.has-mobile-content-support .w146 .w146-head-actions>:is(a,button){min-width:0!important;width:auto!important;padding:8px 4px!important;gap:5px!important}
  body.studio-theme.has-mobile-app-shell.has-mobile-content-support .w146 .w146-head-actions :is(b,span){font-size:11px!important;white-space:normal;line-height:1.5}
  body.has-mobile-app-shell .mobile-app-episodes-link{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 14px;border:1px solid var(--studio-component-control-border);border-radius:12px;background:var(--studio-component-control-bg);color:var(--studio-color-link);font-family:inherit;font-size:13px;font-weight:700;line-height:1.5;text-decoration:none;box-sizing:border-box}
  body.has-mobile-app-shell :is(#title-episodes,#watch-episodes){scroll-margin-top:calc(var(--studio-page-clearance,76px) + 12px)}
  body.has-mobile-app-shell .mobile-app-episodes-link:focus-visible,body.has-mobile-app-shell .mobile-app-quality>summary:focus-visible{outline:2px solid var(--studio-color-link);outline-offset:3px}
  body.has-mobile-app-shell.studio-title-detail .title-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%;margin-block:14px!important}
  body.has-mobile-app-shell.studio-title-detail .title-actions>.primary{grid-column:1/-1;min-height:50px!important;font-size:15px!important;justify-content:center;border-radius:14px!important}
  body.has-mobile-app-shell.studio-title-detail .title-actions-more{display:block}
  body.has-mobile-app-shell.studio-title-detail .title-actions-more>summary{display:flex;align-items:center;justify-content:center;min-height:48px;box-sizing:border-box;padding:10px;border:1px solid var(--studio-component-control-border);border-radius:12px;background:var(--studio-component-control-bg);font-size:13px!important;list-style:none}
  body.has-mobile-app-shell.studio-title-detail .title-actions-more>summary::-webkit-details-marker{display:none}
  body.has-mobile-app-shell.studio-title-detail .title-actions-more::details-content{display:block}
  body.has-mobile-app-shell.studio-title-detail .title-secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:8px}
  body.has-mobile-app-shell.studio-title-detail .title-copy h1{font-size:clamp(23px,5.8vw,30px)!important;line-height:1.45!important;overflow-wrap:anywhere}
  body.has-mobile-app-shell.studio-title-detail .title-synopsis>p{font-size:14px;line-height:1.9}
  /* Make the player and the next episode the strongest actions. */
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146>.container{width:calc(100% - 24px)!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-title{min-width:0;gap:10px!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-title>div{min-width:0}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-title h1{font-size:clamp(18px,4.8vw,24px)!important;line-height:1.55!important;margin-block:3px!important;overflow-wrap:anywhere}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-title p{font-size:12px!important;line-height:1.7}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-head-actions{gap:6px}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-player{width:100%!important;aspect-ratio:16/9;min-height:0!important;border-radius:14px 14px 0 0}
  /* Access and unavailable messages need their natural height, not a video's aspect ratio. */
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-player[data-player-state="empty"]{aspect-ratio:auto!important;height:auto!important;max-height:none!important;min-height:210px!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-player[data-player-state="empty"]>.w146-empty{position:relative;inset:auto;width:100%;height:auto;min-height:210px;box-sizing:border-box;padding:20px 16px!important;align-content:center;gap:10px}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-player-shell{border-radius:14px}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-serverbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:10px!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-server-select{flex:1 0 100%!important;min-width:0!important;max-width:none!important;height:50px!important;order:1}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-tier-switch{flex:1 0 100%;order:0}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-tier-switch :is(button,a){flex:1;min-width:0!important;min-height:44px}
  body.has-mobile-app-shell.studio-watch-page :is(.w146-server-health,.w146-refresh,.w146-report){order:2;min-height:44px!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-server-health{flex:1;min-width:0;padding:0 8px;font-size:11px}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w148-control-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:0!important;width:100%;min-width:0;box-sizing:border-box}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w148-control-strip .w148-episode-switch{grid-column:1/-1!important;grid-row:1!important;order:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;padding:0!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w148-episode-switch .w187-current-episode{display:none!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w148-episode-switch .w187-switch-card{grid-row:1!important;grid-template-rows:auto!important;width:100%;height:auto!important;min-width:0;min-height:64px!important;box-sizing:border-box;gap:8px!important;padding:10px!important;justify-self:stretch!important;align-content:center!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w187-switch-card>em{display:none!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w187-switch-card :is(b,small){font-size:12px!important;line-height:1.6}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w148-control-strip>.mobile-app-episodes-link{grid-row:2!important;grid-column:1!important;order:1}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w148-control-strip>.w148-download{grid-column:2!important;grid-row:2!important;order:1;min-width:0;min-height:48px!important;padding:10px!important;gap:8px!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w148-control-strip>.w148-download small{display:none!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w148-control-strip>.w148-download b{font-size:12px!important;white-space:normal;line-height:1.6}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w237-progress-card{grid-column:1/-1!important;grid-row:3!important;order:2;min-width:0}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w148-episode-switch .w187-switch-card.is-previous{grid-template-columns:30px minmax(0,1fr)!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w148-episode-switch .w187-switch-card.is-next{grid-template-columns:minmax(0,1fr) 30px!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w187-switch-card>span{display:flex!important;flex-direction:column;gap:2px;grid-row:1!important;min-width:0}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w187-switch-card.is-previous>span{grid-column:2!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w187-switch-card.is-next>span{grid-column:1!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w187-switch-card.is-previous>i{grid-column:1!important;grid-row:1!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w187-switch-card.is-next>i{grid-column:2!important;grid-row:1!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w187-switch-card :is(b,small){white-space:normal!important;overflow-wrap:anywhere}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w187-switch-card>i{width:30px;height:32px}
  body.has-mobile-app-shell :is(.a2-episodes__tools input,.a2-episodes__tools select){font-size:16px!important}
  body.has-mobile-app-shell .a2-episodes__filters button{min-height:44px}
  /* Download quality is a disclosure, with the existing access-aware server actions inside. */
  body.has-mobile-app-shell.studio-download-page .dl-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
  body.has-mobile-app-shell.studio-download-page .dl-summary{position:relative;inset:auto;display:flex!important;align-items:center;gap:12px;padding:12px!important;border-radius:16px}
  body.has-mobile-app-shell.studio-download-page .dl-poster{flex:0 0 66px!important;width:66px!important;height:94px!important;min-height:0!important;border-radius:10px;overflow:hidden}
  body.has-mobile-app-shell.studio-download-page .dl-poster:after,body.has-mobile-app-shell.studio-download-page .dl-poster>span{display:none}
  body.has-mobile-app-shell.studio-download-page .dl-summary-copy{flex:1;min-width:0;margin:0!important;padding:0!important}
  body.has-mobile-app-shell.studio-download-page .dl-summary h1{font-size:17px!important;margin:0 0 4px!important;line-height:1.6}
  body.has-mobile-app-shell.studio-download-page .dl-summary-copy>p{font-size:12px!important;line-height:1.7}
  body.has-mobile-app-shell.studio-download-page :is(.dl-summary-copy>small,.dl-safety,.dl-progress,.dl-stage:has(.dl-quality-picker)){display:none!important}
  body.has-mobile-app-shell.studio-download-page .dl-account{margin-top:8px;padding:6px 8px;gap:6px;background:var(--studio-component-control-bg)}
  body.has-mobile-app-shell.studio-download-page .dl-account>i{display:none}
  body.has-mobile-app-shell.studio-download-page .dl-account>div{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
  body.has-mobile-app-shell.studio-download-page .dl-account span{margin:0}
  body.has-mobile-app-shell.studio-download-page .dl-episode-meta{gap:6px;margin-top:6px}
  body.has-mobile-app-shell.studio-download-page .dl-episode-meta span{padding:3px 7px;font-size:10px}
  body.has-mobile-app-shell.studio-download-page .server-stage{margin:0;padding:14px!important;border-radius:16px}
  body.has-mobile-app-shell.studio-download-page .server-stage .dl-stage-title{margin-bottom:14px}
  body.has-mobile-app-shell.studio-download-page .dl-stage-title h2{font-size:18px!important}
  body.has-mobile-app-shell.studio-download-page .dl-stage-title span{display:none}
  body.has-mobile-app-shell .mobile-app-quality{display:block;border:1px solid var(--studio-component-control-border);border-radius:14px;margin-top:10px;background:var(--studio-component-control-bg);overflow:hidden}
  body.has-mobile-app-shell .mobile-app-quality::details-content{display:block}
  body.has-mobile-app-shell .mobile-app-quality>summary{display:flex;align-items:center;gap:10px;min-height:62px;padding:12px;box-sizing:border-box;list-style:none;cursor:pointer;color:var(--studio-color-heading)}
  body.has-mobile-app-shell .mobile-app-quality>summary::-webkit-details-marker{display:none}
  body.has-mobile-app-shell .mobile-app-quality>summary strong{font-size:19px;direction:ltr}
  body.has-mobile-app-shell .mobile-app-quality>summary span{flex:1;font-size:12px;color:var(--studio-color-text-muted)}
  body.has-mobile-app-shell .mobile-app-quality>summary i{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--studio-component-control-border);border-radius:10px;font-style:normal;color:var(--studio-color-link)}
  body.has-mobile-app-shell .mobile-app-quality[open]>summary i{transform:rotate(180deg)}
  body.has-mobile-app-shell .mobile-app-quality .dl-server-panel{display:grid!important;gap:8px;margin:0;padding:0 8px 8px}
  body.has-mobile-app-shell .mobile-app-quality .dl-server{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:10px}
  body.has-mobile-app-shell .mobile-app-quality .dl-server-logo{width:32px;height:32px;font-size:13px;border-radius:9px}
  body.has-mobile-app-shell .mobile-app-quality .dl-server-info>div{flex-wrap:wrap;gap:4px}
  body.has-mobile-app-shell .mobile-app-quality .dl-server h3{font-size:13px!important;overflow-wrap:anywhere}
  body.has-mobile-app-shell .mobile-app-quality .dl-server-access{grid-column:auto;max-width:75px;text-align:center;font-size:10px}
  body.has-mobile-app-shell .mobile-app-quality .dl-server>a{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;box-sizing:border-box;font-size:13px!important;white-space:normal}
  body.has-mobile-app-shell .mobile-app-quality .dl-more{min-height:44px;font:inherit;font-size:12px}
}
@media(min-width:600px) and (max-width:1024px) and (max-height:500px){
  body.studio-theme.has-mobile-app-shell.studio-watch-page{--mobile-app-dock-height:0px;padding-bottom:0!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .studio-site-header{height:auto!important;min-height:0!important;padding-bottom:0!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);align-items:center;gap:16px!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-poster{width:42px;height:60px;flex:0 0 42px}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .mobile-app-dock{display:none!important}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-player{max-height:calc(100dvh - var(--studio-page-clearance,84px) - 12px);aspect-ratio:16/9}
  body.studio-theme.has-mobile-app-shell.studio-watch-page .w146 .w146-player :is(iframe,video){object-fit:contain}
}
