/* InfinityPRO — reforço visual dos previews do showcase.
   03/09/2026: os celulares laterais usam SitePreview em CSS antes de virarem iframe.
   Sem mídia, esses previews pareciam telas brancas/sem imagem. Esta folha usa somente
   assets locais e versionados do próprio InfinityPLACE, sem dependência de CDN. */

body .ip-cf-item .ip-sp-hero {
  position: relative;
  overflow: hidden;
  background-color: #101725;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

body .ip-cf-item .ip-sp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(5, 10, 22, .03), rgba(5, 10, 22, .30));
  pointer-events: none;
}

body .ip-cf-item .ip-sp-hero > i,
body .ip-cf-item .ip-sp-hero > strong,
body .ip-cf-item .ip-sp-hero > em {
  opacity: 0;
}

body .ip-cf-item:nth-child(2) .ip-sp-hero { background-image: url('/infinitypro/ig/DWHnQUyGCFV_1.jpg'); }
body .ip-cf-item:nth-child(3) .ip-sp-hero { background-image: url('/infinitypro/ig/DW2NKaRjfJ2_1.jpg'); }
body .ip-cf-item:nth-child(4) .ip-sp-hero { background-image: url('/infinitypro/ig/DWHqyEWmNmI_1.jpg'); }
body .ip-cf-item:nth-child(5) .ip-sp-hero { background-image: url('/infinitypro/ig/DWHo9ePGPNq_1.jpg'); }
body .ip-cf-item:nth-child(6) .ip-sp-hero { background-image: url('/infinitypro/ig/DWUFfkAjYs__1.jpg'); }

body .ip-cf-item .ip-sp-cards > i {
  background-color: #e9eef7;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-color: rgba(15, 23, 42, .08);
}
body .ip-cf-item:nth-child(2) .ip-sp-cards > i { background-image: url('/infinitypro/ig/DWHnQUyGCFV_2.jpg'); }
body .ip-cf-item:nth-child(3) .ip-sp-cards > i { background-image: url('/infinitypro/ig/DW2NKaRjfJ2_2.jpg'); }
body .ip-cf-item:nth-child(4) .ip-sp-cards > i { background-image: url('/infinitypro/ig/DWHqyEWmNmI_2.jpg'); }
body .ip-cf-item:nth-child(5) .ip-sp-cards > i { background-image: url('/infinitypro/ig/DWHo9ePGPNq_2.jpg'); }
body .ip-cf-item:nth-child(6) .ip-sp-cards > i { background-image: url('/infinitypro/ig/DWUFfkAjYs__2.jpg'); }

body .ip-anel-planeta {
  object-fit: contain;
  background: transparent;
}

body .ipf-card,
body .ipf-img {
  background: linear-gradient(145deg, #111827, #0b1020);
}
body .ipf-card img,
body .ipf-img img {
  object-fit: cover;
  background: #111827;
}

/* /infinitypro/feed — o antigo hero era um iframe da Rede Andrade e podia ficar
   completamente branco. A composição abaixo usa as publicações reais da própria marca. */
body .ip-feed-hero-preview {
  width: 100%;
  height: 100%;
  min-height: 305px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 0%, rgba(0,113,227,.12), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(94,92,230,.14), transparent 32%),
    #f8fafc;
  color: #111827;
  overflow: hidden;
}
body .ip-feed-hero-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.86);
}
body .ip-feed-hero-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg,#0071e3,#5e5ce6);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 5px 16px rgba(0,113,227,.24);
}
body .ip-feed-hero-who {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}
body .ip-feed-hero-who b { font-size: 12px; font-weight: 900; }
body .ip-feed-hero-who em { margin-top: 3px; font-size: 9px; font-style: normal; color: #64748b; }
body .ip-feed-hero-live {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0,113,227,.09);
  color: #0071e3;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
body .ip-feed-hero-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1.45fr .8fr .8fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
  padding: 9px;
  min-height: 0;
}
body .ip-feed-hero-grid figure {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 0 8px 20px -14px rgba(15,23,42,.55);
}
body .ip-feed-hero-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111827;
}
body .ip-feed-hero-main { grid-row: 1 / 3; }
body .ip-feed-hero-main::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(transparent, rgba(4,8,18,.82));
  pointer-events: none;
}
body .ip-feed-hero-main figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1.15;
}
body .ip-feed-hero-main figcaption b { font-size: 13px; font-weight: 900; }
body .ip-feed-hero-main figcaption span { margin-top: 3px; font-size: 9px; color: rgba(255,255,255,.75); }
body .ip-feed-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 13px 10px;
  border-top: 1px solid rgba(15,23,42,.06);
  color: #64748b;
  font-size: 9px;
}
body .ip-feed-hero-foot span { display: inline-flex; align-items: center; gap: 6px; }
body .ip-feed-hero-foot i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
body .ip-feed-hero-foot b { color: #0f172a; font-size: 10px; }

@media (max-width: 760px) {
  body .ip-cf-item .ip-sp-hero { background-position: center top; }
  body .ip-feed-hero-preview { min-height: 260px; }
  body .ip-feed-hero-grid { grid-template-columns: 1.2fr 1fr; }
  body .ip-feed-hero-grid figure:nth-child(4),
  body .ip-feed-hero-grid figure:nth-child(5) { display: none; }
  body .ip-feed-hero-live { display: none; }
}
