/* Shared chrome for pages that only load ad-slots.css (e.g. list pages).
   Game/home pages also load home-game-hero.css — keep this aligned, no max-width squeeze. */
.ad-label {
  display: block;
  width: 100%;
  font-size: 0.62rem;
  color: var(--text-secondary);
  opacity: 0.4;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  box-sizing: border-box;
}

.sidebar-ad-slot {
  background: var(--card-bg);
  border: 1px dashed rgba(var(--accent-rgb), 0.18);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-secondary);
  font-size: 0.75rem;
  box-sizing: border-box;
  width: 100%;
}

.banner-ad-wrap {
  text-align: center;
  background: var(--card-bg);
  border: 1px dashed rgba(var(--accent-rgb), 0.2);
  border-radius: 10px;
  padding: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  color: var(--text-secondary);
  font-size: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.banner-ad-wrap .ad-label {
  text-align: center;
  margin-bottom: 2px;
}

.ad-slot-host {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.ad-slot-host .ad-slot-iframe {
  max-width: 100%;
}

.banner-ad-wrap .ad-slot-host {
  margin-top: 0;
  min-height: 68px;
  overflow: hidden;
}

.banner-ad-wrap .ad-slot-host .ad-slot-iframe {
  width: 100%;
  min-height: 68px;
  overflow: hidden;
  vertical-align: top;
}

.GAMES-section .GAMES-banner-ad {
  margin-top: 14px;
  margin-bottom: 4px;
}

.sidebar-ad-slot > .ad-slot-host {
  margin-top: 10px;
}

.sidebar-ad-slot,
.sidebar-ad-slot.sidebar-ad-slot--below-local {
  min-height: 0 !important;
  height: auto !important;
  justify-content: flex-start !important;
}

.ad-slot-host--sidebar {
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.ad-slot-host--sidebar .ad-slot-iframe {
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
}

.ad-slot-host--list-rail {
  width: 300px;
  max-width: 100%;
  height: 600px;
  min-height: 600px;
  max-height: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.ad-slot-host--list-rail .ad-slot-iframe {
  height: 600px !important;
  min-height: 600px !important;
  max-height: 600px !important;
}

.GAMES-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.GAMES-layout__main {
  min-width: 0;
}

.GAMES-layout__rail {
  width: 300px;
  position: sticky;
  top: 88px;
}

.GAMES-layout__rail .sidebar-ad-slot {
  min-height: 0 !important;
  height: auto !important;
  justify-content: flex-start !important;
  align-items: stretch;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 300px;
  padding: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.GAMES-layout__rail .ad-label {
  text-align: center;
  margin-bottom: 2px;
}

.GAMES-layout__rail .sidebar-ad-slot > .ad-slot-host {
  margin-top: 0;
}

.GAMES-layout--no-rail {
  grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
  .GAMES-layout {
    grid-template-columns: 1fr;
  }
  /* Layout only: iframe is never mounted ≤ ad_list_rail_max_width (see ad-slot-lazy.js) */
  .GAMES-layout__rail {
    display: none;
  }
}

@media (max-width: 768px) {
  .banner-ad-wrap {
    display: none !important;
  }
}
