/* Top ad strip – high visibility */
.ads-wrap {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.65rem 0.5rem 0.45rem;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  background: transparent;
  margin: 0 auto;
  max-width: 1120px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(29, 185, 84, 0.35);
  border-color: #1db954;
}

#ads figcaption,
#ads .caption {
  height: 16px;
  font-size: 11px;
  color: #c8d6e3;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  line-height: 1.2;
}

@media (max-width: 520px) {
  #ads > div {
    width: 64px;
  }

  #ads img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  #ads figcaption,
  #ads .caption {
    max-width: 64px;
    font-size: 10px;
  }
}
