/* 宽屏首页：手机壳 max-width / rem 根会把 PC 像素布局压成一条。只在首页 PC 树存在时放开。 */
@media (min-width: 768px) {
  .mobile[data-v-a63edf08]:has(.m-home-pc) {
    max-width: none !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .m-home-mb {
    display: none !important;
  }

  .pc[data-v-887f8e98]:has(.m-home-pc) .m-home-pc .drama_list,
  .mobile[data-v-a63edf08]:has(.m-home-pc) .m-home-pc .drama_list {
    width: auto;
    overflow: visible;
    scrollbar-width: auto;
  }

  .pc[data-v-887f8e98]:has(.m-home-pc)
    .m-home-pc
    .drama_list:not(.column)
    .item,
  .mobile[data-v-a63edf08]:has(.m-home-pc)
    .m-home-pc
    .drama_list:not(.column)
    .item {
    width: 178px;
    height: auto;
    margin-bottom: 16px;
    margin-right: 0;
  }

  .pc[data-v-887f8e98]:has(.m-home-pc) .m-home-pc .drama_list:not(.column) .img,
  .mobile[data-v-a63edf08]:has(.m-home-pc)
    .m-home-pc
    .drama_list:not(.column)
    .img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .m-home-pc .recommend-grid.drama_list {
    grid-template-columns: repeat(7, calc((100% - 90px) / 7)) !important;
  }

  .pc[data-v-887f8e98]:has(.m-home-pc) .m-home-pc .recommend-grid .item,
  .mobile[data-v-a63edf08]:has(.m-home-pc) .m-home-pc .recommend-grid .item {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
  }

  .pc[data-v-887f8e98]:has(.m-home-pc) .m-home-pc .drama_list .title,
  .mobile[data-v-a63edf08]:has(.m-home-pc) .m-home-pc .drama_list .title {
    height: auto;
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
  }
}

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

  .m-home-mb .hk-promotion-grid,
  .m-home-mb .hk-promotion-rail {
    box-sizing: border-box;
    width: auto;
    margin-right: 0.32rem;
    margin-left: 0.32rem;
  }

  .m-home-mb .hk-promotion-grid {
    --promo-grid-gap: 0.24rem;
    --promo-grid-size: 1.28rem;
    margin-top: 0.24rem;
    margin-bottom: 0.16rem;
    padding: 0.4rem 0.24rem 0.24rem;
    overflow: hidden;
    border-radius: 0.2rem;
    background: #333;
  }

  .m-home-mb .hk-promotion-grid__track {
    display: flex;
    width: max-content;
    animation: m-home-promo-grid-marquee calc(var(--promo-grid-count, 8) * 2.5s) linear infinite;
  }

  .m-home-mb .hk-promotion-grid__group {
    display: flex;
    flex: none;
    gap: var(--promo-grid-gap);
    padding-right: var(--promo-grid-gap);
  }

  .m-home-mb .hk-promotion-grid__item {
    display: inline-flex;
    flex: 0 0 var(--promo-grid-size);
    flex-direction: column;
    align-items: center;
    gap: 0.08rem;
    width: var(--promo-grid-size);
    color: #fff;
    text-decoration: none;
  }

  .m-home-mb .hk-promotion-grid__thumb {
    position: relative;
    display: block;
    width: var(--promo-grid-size);
    height: var(--promo-grid-size);
    overflow: hidden;
    border-radius: 0.24rem;
    background: #464646;
  }

  .m-home-mb .hk-promotion-grid__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .m-home-mb .hk-promotion-grid__title {
    width: 100%;
    overflow: hidden;
    font-size: 0.22rem;
    line-height: 0.32rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .m-home-mb .hk-promotion-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
    padding: 0.16rem 0 0.24rem;
  }

  .m-home-mb .hk-promotion-card {
    position: relative;
    display: block;
    height: 1.72rem;
    overflow: hidden;
    border-radius: 0.2rem;
    background: #232328;
  }

  .m-home-mb .hk-promotion-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .m-home-mb .hk-promotion-card__tag {
    display: inline-flex;
    align-items: center;
    height: 0.36rem;
    padding: 0 0.12rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    font-size: 0.2rem;
    line-height: 0.28rem;
  }
}

.m-home-pc .hk-promotion-grid,
.m-home-pc .hk-promotion-rail {
  box-sizing: border-box;
  width: min(1636px, 100vw - 180px);
  max-width: min(1636px, 100vw - 180px);
  margin-left: auto;
  margin-right: auto;
}

.m-home-pc .hk-promotion-grid {
  /* --promo-grid-gap: 12px;
  --promo-grid-size: 80px;
  margin-top: 4px;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: grab;
  user-select: none; */

  --promo-grid-gap: 12px;
  --promo-grid-size: 80px;
  /* margin-top: 4px; */
  margin-top: 30px;
  margin-bottom: 30px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  background: #333;
  padding: 20px;
  border-radius: 10px;
}

.m-home-pc .hk-promotion-grid__track {
  display: flex;
  width: max-content;
  animation: m-home-promo-grid-marquee calc(var(--promo-grid-count, 8) * 2.5s)
    linear infinite;
}

.m-home-pc .hk-promotion-grid__group {
  display: flex;
  flex: none;
  gap: var(--promo-grid-gap);
  padding-right: var(--promo-grid-gap);
}

.m-home-pc .hk-promotion-grid__item {
  display: inline-flex;
  flex: 0 0 var(--promo-grid-size);
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: var(--promo-grid-size);
  color: #fff;
  text-decoration: none;
}

.m-home-pc .hk-promotion-grid__thumb {
  position: relative;
  display: block;
  width: var(--promo-grid-size);
  height: var(--promo-grid-size);
  overflow: hidden;
  border-radius: 12px;
  background: #464646;
}

.m-home-pc .hk-promotion-grid__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-home-pc .hk-promotion-grid__title {
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-home-pc .hk-promotion-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px 0;
}

.m-home-pc .hk-promotion-card {
  position: relative;
  display: block;
  height: 169px;
  overflow: hidden;
  border-radius: 12px;
  background: #232328;
}

.m-home-pc .hk-promotion-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-home-pc .hk-promotion-card__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 11px;
  line-height: 14px;
}

@keyframes m-home-promo-grid-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1642px) {
  .m-home-pc .hk-promotion-grid,
  .m-home-pc .hk-promotion-rail {
    width: min(1366px, 100vw - 180px);
    max-width: min(1366px, 100vw - 180px);
  }
}

@media (max-width: 1450px) {
  .m-home-pc .hk-promotion-grid,
  .m-home-pc .hk-promotion-rail {
    width: min(1295px, 100vw - 180px);
    max-width: min(1295px, 100vw - 180px);
  }
}

@media (max-width: 1370px) {
  .m-home-pc .hk-promotion-grid,
  .m-home-pc .hk-promotion-rail {
    width: min(1200px, 100vw - 180px);
    max-width: min(1200px, 100vw - 180px);
  }
}

@media (max-width: 1300px) {
  .m-home-pc .hk-promotion-grid,
  .m-home-pc .hk-promotion-rail {
    width: min(1100px, 100vw - 180px);
    max-width: min(1100px, 100vw - 180px);
  }
}
