.ads-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ads-bar .applist-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 10px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
  padding: 2px;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(26, 95, 42, 0.22);
}

#ads figcaption,
#ads .caption {
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 640px) {
  #ads > div { width: 72px; }
  #ads img { width: 64px; height: 64px; }
}
