/* APP recommendation ad bar */
.ad-bar {
  background: var(--white, #fff);
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.06);
}

#applist {
  text-align: center;
}

#applist .applist-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary, #0a2540);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

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

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

#ads figure {
  margin: 0;
  padding: 0;
}

#ads img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.15);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid transparent;
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  cursor: pointer;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 22px rgba(212, 160, 23, 0.35);
  border-color: var(--accent, #d4a017);
}

#ads .caption {
  margin-top: 6px;
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: #5a6a7a;
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ad-bar { padding: 10px 0; }

  #ads > div { width: 72px; }

  #ads img {
    width: 64px;
    height: 64px;
  }
}
