/* 首页分类视频分区：每个分类展示 4 个视频，并支持“更多/换一换”。 */
body.dark-home-body .home-category-sections {
  width: calc(100% - .24rem);
  margin: .16rem auto 0;
}

body.dark-home-body .home-category-section {
  margin-top: .16rem;
  padding: .18rem;
  border-radius: .22rem;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(16, 16, 19, .96);
  box-shadow: 0 .14rem .36rem rgba(0, 0, 0, .24);
}

body.dark-home-body .home-category-head,
body.dark-home-body .home-category-actions,
body.dark-home-body .home-category-title {
  display: flex;
  align-items: center;
}

body.dark-home-body .home-category-head {
  justify-content: space-between;
  gap: .14rem;
  margin-bottom: .16rem;
}

body.dark-home-body .home-category-title {
  min-width: 0;
  color: #fff;
  font-size: .3rem;
  line-height: 1.2;
  font-weight: 700;
}

body.dark-home-body .home-category-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-home-body .home-category-dot {
  width: .16rem;
  height: .32rem;
  margin-right: .1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb04d 0%, #ff5a1f 100%);
  box-shadow: 0 0 .18rem rgba(255, 109, 29, .42);
}

body.dark-home-body .home-category-actions {
  flex: 0 0 auto;
  gap: .1rem;
}

body.dark-home-body .home-category-more,
body.dark-home-body .home-category-refresh {
  height: .46rem;
  padding: 0 .16rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 145, 45, .2);
  background: rgba(255, 145, 45, .1);
  color: #ffad61;
  font-size: .22rem;
  line-height: .44rem;
}

body.dark-home-body .home-category-refresh {
  cursor: pointer;
  font-family: inherit;
}

body.dark-home-body .home-category-refresh.is-loading {
  opacity: .68;
}

body.dark-home-body .home-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .14rem;
}

body.dark-home-body .home-category-card {
  min-width: 0;
  color: #fff;
}

body.dark-home-body .home-category-cover {
  position: relative;
  height: 1.88rem;
  border-radius: .16rem;
  overflow: hidden;
  background: #151519;
}

body.dark-home-body .home-category-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.dark-home-body .home-category-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%);
}

body.dark-home-body .home-category-meta {
  position: absolute;
  left: .1rem;
  right: .1rem;
  bottom: .08rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: .08rem;
  color: #fff;
  font-size: .18rem;
}

body.dark-home-body .home-category-meta span {
  max-width: 58%;
  min-height: .28rem;
  padding: 0 .08rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .48);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-home-body .home-category-name {
  margin-top: .08rem;
  min-height: .62rem;
  color: rgba(255, 255, 255, .9);
  font-size: .22rem;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.dark-home-body .home-category-empty {
  grid-column: 1 / -1;
  min-height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .16rem;
  border: 1px dashed rgba(255, 145, 45, .24);
  background: rgba(255, 145, 45, .06);
  color: rgba(255, 255, 255, .58);
  font-size: .22rem;
  text-align: center;
}
