/* Portal Radar Theme 0.9.26 — Home Top Premium.
   O formato selecionado no inventário determina a proporção do quadro comercial.
   A arte original nunca é recortada nem deformada. CSS antigo da Home usa
   !important e alturas fixas; seletores específicos abaixo prevalecem. */
@media (min-width:701px) {
  body.prt-theme .prc-home-top-stage .prc-home-top-stage-inner {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:stretch!important;
    width:min(1440px,calc(100% - 48px))!important;
    gap:20px!important;
  }
  body.prt-theme .prc-home-top-stage .prc-home-top-ad {
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
  }
  body.prt-theme .prc-home-top-stage .prc-home-top-ad .prc-ad-slot {
    display:block!important;
    position:relative!important;
    width:100%!important;
    max-width:var(--prt-premium-width,970px)!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:var(--prt-premium-ratio,970 / 180)!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body.prt-theme .prc-home-top-stage .prc-home-top-ad .prc-ad-slot>a {
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
  }
  body.prt-theme .prc-home-top-stage .prc-home-top-ad .prc-ad-slot picture,
  body.prt-theme .prc-home-top-stage .prc-home-top-ad .prc-ad-slot img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
    padding:0!important;
  }
  body.prt-theme .prc-home-top-stage .prc-portal-rating {
    align-self:stretch!important;
    width:100%!important;
    height:auto!important;
    min-height:128px!important;
    max-height:none!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  /* Os formatos 90px usam o card de avaliação compacto. */
  body.prt-theme .prc-home-top-stage.prt-premium-format-728x90 .prc-portal-rating,
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x90 .prc-portal-rating {
    padding:6px 13px!important;
    justify-content:center!important;
    gap:0!important;
  }
  body.prt-theme .prc-home-top-stage.prt-premium-format-728x90 .prc-portal-rating>span,
  body.prt-theme .prc-home-top-stage.prt-premium-format-728x90 .prc-portal-rating>p,
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x90 .prc-portal-rating>span,
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x90 .prc-portal-rating>p {
    display:none!important;
  }
  body.prt-theme .prc-home-top-stage.prt-premium-format-728x90 .prc-portal-rating>h2,
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x90 .prc-portal-rating>h2 {
    font-size:17px!important;
    line-height:1.05!important;
    margin:0 0 3px!important;
  }
  body.prt-theme .prc-home-top-stage.prt-premium-format-728x90 .prc-rating-stars button,
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x90 .prc-rating-stars button {
    font-size:20px!important;
    line-height:1!important;
  }
  body.prt-theme .prc-home-top-stage.prt-premium-format-728x90 .prc-portal-rating small,
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x90 .prc-portal-rating small {
    font-size:9px!important;
    line-height:1.1!important;
    margin-top:3px!important;
  }
}
/* Duas colunas somente onde a largura deixa espaço útil para o card. */
@media (min-width:1100px) {
  body.prt-theme .prc-home-top-stage:not(.prt-premium-format-970x90) .prc-home-top-stage-inner {
    grid-template-columns:minmax(0,min(var(--prt-premium-width,970px),calc(100% - 280px))) minmax(0,1fr)!important;
  }
  body.prt-theme .prc-home-top-stage:not(.prt-premium-format-970x90) .prc-portal-rating {
    min-height:0!important;
  }
}
@media (min-width:1280px) {
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x90 .prc-home-top-stage-inner {
    grid-template-columns:minmax(0,min(970px,calc(100% - 280px))) minmax(0,1fr)!important;
  }
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x90 .prc-portal-rating {
    min-height:0!important;
  }
}
/* Mobile preserva o banner natural proporcional e o card abaixo. */
@media (max-width:700px) {
  body.prt-theme .prc-home-top-stage .prc-home-top-stage-inner {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:calc(100% - 28px)!important;
    gap:14px!important;
  }
  body.prt-theme .prc-home-top-stage .prc-home-top-ad .prc-ad-slot,
  body.prt-theme .prc-home-top-stage .prc-home-top-ad .prc-ad-slot>a,
  body.prt-theme .prc-home-top-stage .prc-home-top-ad .prc-ad-slot picture,
  body.prt-theme .prc-home-top-stage .prc-home-top-ad .prc-ad-slot img {
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
  }
  body.prt-theme .prc-home-top-stage .prc-portal-rating {
    height:auto!important;
    max-height:none!important;
    min-height:128px!important;
  }
}

/* Em notebooks menores, o formato 970×180 exige card compacto para
   não aumentar a altura da linha além da moldura proporcional. */
@media (min-width:1100px) and (max-width:1279px) {
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x180 .prc-portal-rating {
    padding:8px 14px!important;justify-content:center!important;gap:1px!important;
  }
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x180 .prc-portal-rating>span,
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x180 .prc-portal-rating>p {display:none!important;}
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x180 .prc-portal-rating>h2 {font-size:19px!important;margin:0 0 3px!important;}
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x180 .prc-rating-stars button {font-size:22px!important;}
  body.prt-theme .prc-home-top-stage.prt-premium-format-970x180 .prc-portal-rating small {font-size:9px!important;margin-top:2px!important;}
}
