/* Hero carousel ad slides — image-only (recommended 1200 × 430) */
.hero-slide-ad {
  padding: 0;
  align-items: stretch;
  background: #060b17;
}

.hero-slide-ad .hero-ad-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.hero-slide-ad .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #060b17;
}

.hero-slide-ad .hero-ad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  margin: 0;
  display: inline-block;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.hf-hero-container .hero-slide-ad {
  padding: 0;
}

.hf-hero-container .hero-slide-ad .hero-bg {
  object-fit: contain;
  object-position: center;
}

/* Site-wide ad slot sizing — keeps uploaded images within recommended dimensions */

.site-ad {
  display: block;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  line-height: 0;
}

.site-ad-label,
.site-ad-fallback .site-ad-label {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: inline-block;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  pointer-events: none;
}

.site-ad-fallback {
  position: relative;
}

.site-ad img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Header & footer — 970 × 90 */
.site-ad-header-wrap,
.site-ad-footer-wrap {
  width: 100%;
  background: var(--surface, #f8fafc);
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.site-ad-footer-wrap {
  border-bottom: 0;
  border-top: 1px solid var(--line, #e2e8f0);
}

.site-ad-header-inner,
.site-ad-footer-inner {
  max-width: 970px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.site-ad-header-wrap .site-ad,
.site-ad-footer-wrap .site-ad,
.site-ad.site-ad-header_banner,
.site-ad.site-ad-footer_banner {
  display: block;
  width: 100%;
  height: 90px;
  margin: 0 auto;
  overflow: hidden;
}

.site-ad-header-wrap .site-ad img,
.site-ad-footer-wrap .site-ad img,
.site-ad.site-ad-header_banner img,
.site-ad.site-ad-footer_banner img {
  display: block;
  width: 100%;
  height: 90px;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

/* Article top — 728 × 90 */
.art-top-ad {
  margin: 0 0 16px;
}

.art-top-ad .site-ad,
.site-ad.site-ad-article_top {
  display: block;
  max-width: 728px;
}

.art-top-ad .site-ad,
.site-ad.site-ad-article_top {
  height: 90px;
  overflow: hidden;
}

.art-top-ad .site-ad img,
.site-ad.site-ad-article_top img {
  width: 100%;
  height: 90px;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

/* Homepage / mobile leaderboard — 970 × 250 */
.hf-ad-banner:has(.hf-ad-banner-link) {
  min-height: 0;
  padding: 0;
  background: #0f172a;
  display: block;
  border-radius: var(--hf-radius, 12px);
}

.hf-ad-banner-link {
  display: block;
  width: 100%;
  max-height: 250px;
  overflow: hidden;
}

.hf-ad-banner-link img,
.site-ad.site-ad-homepage_leaderboard img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

.mh-ad-inner--image {
  max-height: 250px;
  overflow: hidden;
}

.mh-ad-inner--image img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

/* News & article sidebar image — 300 × 600 */
.sl-side-ad-card,
.art-side-ad-card {
  position: relative;
  overflow: hidden;
}

.sl-side-ad-card .sl-ad-link,
.art-side-ad-card .art-ad-link {
  display: block;
  max-height: 600px;
  overflow: hidden;
}

.sl-side-ad-card .sl-ad-link img,
.art-side-ad-card .art-ad-link img,
.site-ad.site-ad-news_listing_sidebar img,
.site-ad.site-ad-article_sidebar img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

/* Sidebar promo — 300 × 250 */
.sl-side-special-offer .sl-ad-promo-link,
.art-side-special-offer .art-ad-promo-link {
  display: block;
  max-height: 250px;
  overflow: hidden;
}

.sl-ad-promo-link img,
.art-ad-promo-link img,
.site-ad.site-ad-news_sidebar_promo img,
.site-ad.site-ad-article_sidebar_promo img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

/* HIT MARKET — banner 970×90, sidebar 300×250 */
.hit-market-page .hm-ad-banner .site-ad {
  display: block;
  width: 100%;
  height: 90px;
  overflow: hidden;
}

.hit-market-page .hm-ad-banner .site-ad img,
.site-ad.site-ad-hit_market_banner img {
  width: 100%;
  height: 90px;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.hit-market-page .hm-ad-sidebar .site-ad {
  max-height: 250px;
  overflow: hidden;
}

.hit-market-page .hm-ad-sidebar .site-ad img,
.site-ad.site-ad-hit_market_sidebar img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}
