/* Homepage ad icon strip */

.home-ad-icons {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 28px;
  overflow: auto hidden;
}

.home-ad-icon {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  text-decoration: none;
}

.home-ad-icon-cover {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.3);
  outline-offset: -1px;
  background: #dcdcdc;
}

.home-ad-icon-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-ad-icon-name {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: calc(14px + var(--pc-font-boost, 0px));
  line-height: 20px;
}

@media (min-width: 768px) {
  .home-ad-icons {
    gap: 1.647059cqw;
  }

  .home-ad-icon {
    width: 4.705882cqw;
    gap: 0.235294cqw;
  }

  .home-ad-icon-cover {
    width: 4.705882cqw;
    height: 4.705882cqw;
    border-radius: 0.705882cqw;
  }

  .home-ad-icon-name {
    font-size: calc(0.823529cqw + var(--pc-font-boost, 0px));
    line-height: 1.176471cqw;
  }
}

@media (max-width: 767px) {
  .home-ad-icon--pc-only {
    display: none !important;
  }

  .home-ad-icons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    overflow: visible;
  }

  .home-ad-icon {
    width: 100%;
    min-width: 0;
  }

  .home-ad-icon-cover {
    width: 48px;
    height: 48px;
    max-width: 100%;
    margin: 0 auto;
  }

  .home-ad-icon-name {
    width: 100%;
    font-size: calc(11px + var(--pc-font-boost, 0px));
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .home-ad-icon-cover {
    width: 40px;
    height: 40px;
  }

  .home-ad-icon-name {
    font-size: calc(10px + var(--pc-font-boost, 0px));
  }
}
