/* Static index ad slots — swap images/URLs in index.html & index.js */

.static-ad {
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(72, 101, 255, 0.12), rgba(255, 209, 0, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.static-ad__link {
  display: block;
  line-height: 0;
  text-decoration: none !important;
}

.static-ad__link img,
.static-ad__link svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* 1 — 分类栏下方（位于 main-container 内） */
.static-ad--under-nav {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 12px;
}

.static-ad--under-nav .static-ad__link img {
  max-height: 120px;
  object-fit: cover;
  object-position: center;
}

/* 游戏区内：整行打断 flex */
.static-ad--grid-break {
  flex-basis: 100%;
  width: 100%;
  max-width: 100%;
  margin: 10px 0;
  border-radius: 18px;
}

.static-ad--grid-break .static-ad__link img {
  max-height: 100px;
  object-fit: cover;
}

/* 4 — 游戏列表末尾 */
.static-ad--after-games {
  flex-basis: 100%;
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  margin-bottom: 6px;
}

.static-ad--after-games .static-ad__link img {
  max-height: 110px;
  object-fit: cover;
}

.static-ad__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 4px 10px 0;
  font-family: system-ui, sans-serif;
}

@media (max-width: 1100px) {
  .static-ad--under-nav {
    width: 100%;
    margin-top: 4px;
  }

  .static-ad--under-nav .static-ad__link img {
    max-height: 96px;
  }

  .static-ad--grid-break .static-ad__link img {
    max-height: 88px;
  }

  .static-ad--after-games .static-ad__link img {
    max-height: 92px;
  }
}
