.ads-bar {
  background: linear-gradient(180deg, #f0f7f2 0%, #fff 100%);
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 12px 0 14px;
  position: sticky;
  top: 72px;
  z-index: 900;
}

.ads-bar-title {
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted, #5a6270);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: .5px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: transparent;
  margin: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(24, 24, 24, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid #fff;
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  padding: 2px;
}

#ads a:hover img,
#ads a:active img {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px rgba(26, 122, 60, 0.22);
}

#ads figcaption,
#ads .caption {
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: #555;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
}

@media (max-width: 600px) {
  .ads-bar { top: 64px; padding: 10px 0 12px; }
  #ads > div { width: 72px; }
  #ads img { width: 58px; height: 58px; }
}
