/* Cabeçalho do TWA Shorts: transparente e com ações na mesma régua visual. */
.twa-shorts-widget .twa-shorts-fullscreen.active>.twa-shorts-top{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) 40px 40px!important;
  align-items:center!important;
  gap:8px!important;
  min-height:68px!important;
  padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left))!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.twa-shorts-widget .twa-shorts-fullscreen.active>.twa-shorts-top::before,
.twa-shorts-widget .twa-shorts-fullscreen.active>.twa-shorts-top::after{background:transparent!important;box-shadow:none!important;opacity:0!important}
.twa-shorts-widget .twa-shorts-fullscreen>.twa-shorts-top>.twa-shorts-search-open,
.twa-shorts-widget .twa-shorts-fullscreen>.twa-shorts-top>[data-twa-shorts-close]{
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  display:grid!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  place-items:center!important;
  align-self:center!important;
  justify-self:center!important;
  line-height:1!important;
  transform:none!important;
}
.twa-shorts-widget .twa-shorts-fullscreen>.twa-shorts-top>.twa-shorts-search-open{grid-column:3!important}
.twa-shorts-widget .twa-shorts-fullscreen>.twa-shorts-top>[data-twa-shorts-close]{grid-column:4!important}
.twa-shorts-widget .twa-shorts-fullscreen>.twa-shorts-top>.twa-shorts-search-open svg{display:block!important;width:22px!important;height:22px!important;margin:0!important}
.twa-shorts-widget .twa-shorts-fullscreen>.twa-shorts-top>[data-twa-shorts-close]:before{display:grid!important;width:100%!important;height:100%!important;place-items:center!important;transform:none!important}
.twa-shorts-widget .twa-shorts-property-avatar.is-empty,
.twa-shorts-widget .twa-shorts-property-avatar[hidden]{display:none!important}
/* Marca do feed encosta na mesma margem do conteúdo, sem ocupar a coluna vazia do voltar. */
.twa-shorts-widget .twa-shorts-fullscreen.active.is-video-surface>.twa-shorts-top>strong{
  grid-column:1 / span 2!important;
  justify-self:start!important;
  margin-left:0!important;
}
/* Na coleção de curtidos, a assinatura ganha um respiro óptico entre TWA e SHORTS. */
.twa-shorts-widget .twa-shorts-fullscreen.active.is-liked-page>.twa-shorts-top>strong span{margin-left:7px!important}
@media(max-width:720px){
  .twa-shorts-widget .twa-shorts-fullscreen.active>.twa-shorts-top{grid-template-columns:34px minmax(0,1fr) 36px 36px!important;gap:7px!important;padding-right:max(10px,env(safe-area-inset-right))!important;padding-left:max(14px,env(safe-area-inset-left))!important}
  .twa-shorts-widget .twa-shorts-fullscreen>.twa-shorts-top>.twa-shorts-search-open,
  .twa-shorts-widget .twa-shorts-fullscreen>.twa-shorts-top>[data-twa-shorts-close]{width:36px!important;height:36px!important;min-width:36px!important}
}
