/* Novel all list page */

.novel-all-page .list-toolbar__filter-expand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  background: var(--color-primary-500, #fecb03);
  border-radius: 9px;
  color: rgba(0, 0, 0, 0.9);
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 20px;
}

.novel-all-page .list-toolbar__filter-expand-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.novel-all-page .list-toolbar__sort--active {
  color: var(--text-primary);
  font-weight: 600;
}

.novel-all-page .sort-arrows .sort-arrows__icon {
  display: block;
  width: 6px;
  height: 5px;
  flex-shrink: 0;
  object-fit: contain;
}

@media (min-width: 769px) {
  .novel-all-page .novel-list-section .media-grid,
  .novel-more-page .novel-list-section .media-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }

  .novel-all-page .novel-list-section .media-card__cover,
  .novel-more-page .novel-list-section .media-card__cover {
    height: auto;
    aspect-ratio: 198 / 265;
  }

  .novel-all-page .novel-list-section .media-card__placeholder,
  .novel-more-page .novel-list-section .media-card__placeholder {
    width: 100%;
    height: 100%;
    top: 0;
    aspect-ratio: auto;
  }

  .novel-all-page .novel-list-section .media-card__logo-wrap,
  .novel-more-page .novel-list-section .media-card__logo-wrap {
    left: 50%;
    top: 64%;
    transform: translateX(-50%);
  }

  .novel-all-page .novel-list-section .media-card__title,
  .novel-more-page .novel-list-section .media-card__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
  }

  .novel-all-page .novel-list-section .media-card__tags .meta-tag__text,
  .novel-all-page .novel-list-section .media-card__body > .section-header > .meta-tag .meta-tag__text,
  .novel-all-page .novel-list-section .media-card__stats .meta-tag__text,
  .novel-more-page .novel-list-section .media-card__tags .meta-tag__text,
  .novel-more-page .novel-list-section .media-card__body > .section-header > .meta-tag .meta-tag__text,
  .novel-more-page .novel-list-section .media-card__stats .meta-tag__text {
    font-size: 16px;
    line-height: 22px;
  }

  .novel-all-page .novel-list-section .media-card__stats .meta-stat__icon,
  .novel-all-page .novel-list-section .media-card__stats .meta-stat__icon .icon,
  .novel-more-page .novel-list-section .media-card__stats .meta-stat__icon,
  .novel-more-page .novel-list-section .media-card__stats .meta-stat__icon .icon {
    width: 22px;
    height: 22px;
  }

  .novel-all-page .novel-list-section .grid-promo-card__cover,
  .novel-more-page .novel-list-section .grid-promo-card__cover {
    height: auto;
    aspect-ratio: 198 / 265;
  }
}

@media (max-width: 1024px) {
  .novel-all-page .list-toolbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .novel-all-page .list-toolbar__sorts {
    flex-wrap: nowrap;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .novel-all-page .list-toolbar {
    align-self: stretch;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .novel-all-page .list-toolbar__filter {
    gap: 4px;
    font-size: 12px;
    line-height: 18px;
    flex-shrink: 0;
  }

  .novel-all-page .list-toolbar__filter-icon {
    width: 16px;
    height: 16px;
  }

  .novel-all-page .list-toolbar__filter-expand {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 16px;
  }

  .novel-all-page .list-toolbar__filter-expand-icon {
    width: 10px;
    height: 10px;
  }

  .novel-all-page .list-toolbar__sorts {
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .novel-all-page .list-toolbar__sorts::-webkit-scrollbar {
    display: none;
  }

  .novel-all-page .list-toolbar__sort {
    gap: 2px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .novel-all-page .list-toolbar__sort--active {
    color: var(--text-primary);
    font-weight: 600;
  }

  .novel-all-page .list-toolbar__sort:has(.sort-arrows) {
    gap: 4px;
  }

  .novel-all-page .sort-arrows {
    gap: 2px;
  }

  .novel-all-page .sort-arrows .sort-arrows__icon {
    width: 6px;
    height: 5px;
  }
}

/* 769-1150px:6 列过渡为自适应列宽,标题字号随列宽缩放 */
@media (min-width: 769px) and (max-width: 1150px) {
  .novel-all-page .novel-list-section .media-grid,
  .novel-more-page .novel-list-section .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .novel-all-page .novel-list-section .media-card__title,
  .novel-more-page .novel-list-section .media-card__title {
    font-size: clamp(14px, 1.6vw, 20px);
    line-height: 1.4;
  }
}
