/* Top ad bar — clickable app icons */
.ads-bar {
  position: sticky;
  top: 68px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line, #d5e2da);
  box-shadow: 0 4px 16px rgba(6, 50, 28, 0.06);
  padding: 8px 0 6px;
}

.ads-bar .ads-label {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin: 0 0 4px;
  letter-spacing: 0.04em;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 10px;
  background: transparent;
  margin: 4px 0 2px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  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;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 480px) {
  #ads img {
    width: 58px;
    height: 58px;
  }

  #ads > div {
    width: 62px;
  }
}
