/*
 * Asia2TV page-clearance core v428.
 * Every internal-page introduction starts after the real fixed Studio shell.
 * The admin command bar already reserves its own flow space, so it must not be
 * counted a second time here.
 */
body.studio-theme{
  --studio-page-clearance:var(--studio-shell-clearance,116px);
  --studio-page-breathing-room:12px;
}

/* Home and internal pages share the measured fixed-header clearance. */
body.studio-theme .new-episodes-page,
body.studio-theme .a2-member-workspace,
body.studio-theme:not(:has(.a2-member-workspace)) .studio-safe-page,
body.studio-theme .studio-catalog-hero{
  padding-top:var(--studio-page-clearance)!important;
}

/* Catalogue/account fallback views also follow the measured shell. */
body.studio-theme main>.hero,
body.studio-theme.studio-member-fallback:not(:has(.a2-member-workspace)) .studio-member-center{
  padding-top:var(--studio-page-clearance)!important;
}

/* Hero artwork meets the header; only internal introductions need breathing room. */
body.studio-theme .studio-page{
  padding-top:max(0px,calc(var(--studio-page-clearance) - var(--studio-page-breathing-room)))!important;
}

/* Cinematic catalog pages previously used three unrelated fixed offsets. */
body.studio-theme .cine-page{
  padding-top:calc(var(--studio-page-clearance) + var(--studio-page-breathing-room))!important;
}

/* Title pages retain their intentional movie/series visual gap. */
body.studio-theme.studio-title-detail{
  --title-shell-offset:var(--studio-page-clearance);
}

/* V510.0.3: desktop artist portraits also clear the fixed shell and their outer orbit. */
@media(min-width:721px){
  body.studio-theme.studio-artist-profile .artist-identity-grid{
    padding-top:calc(var(--studio-page-clearance) + 28px)!important;
    padding-bottom:42px;
  }
}

/* Legacy page families still in service. */
body.studio-theme .detail-hero,
body.studio-theme .watch-wrap,
body.studio-theme .download-hero,
body.studio-theme .checkout-page,
body.studio-theme .payment-issue-page{
  padding-top:calc(var(--studio-page-clearance) + var(--studio-page-breathing-room))!important;
}

@media (max-width:720px){
  /* Player ads must never leave a blank canvas before the watch experience. */
  body.studio-watch-page .ad-slot-player_top{
    display:none!important;
    width:0!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body.studio-watch-page .w146{
    padding-top:calc(var(--studio-page-clearance) + 8px)!important;
  }

  /* Artist introductions use the same shell source as every other page. */
  body.studio-theme.studio-artists-directory .talent-stage-grid,
  body.studio-theme.studio-artist-profile .artist-identity-grid{
    padding-top:calc(var(--studio-page-clearance) + 10px)!important;
  }

  /* Member content follows the workspace card; it must not reserve the header twice. */
  body.studio-theme:has(.a2-member-workspace) :is(
    .member-page,
    .studio-member-center,
    .community-account-page,
    .finance-center-page,
    .member-invoice-page,
    .report-center-page,
    .member-support-page,
    .notification-center-page,
    .member-library-hub,
    .member-library-page,
    .watch-history-page
  ){
    padding-top:24px!important;
  }
}
