/* vod_list_np2 — np2 首页/频道影片列表（单轨，可独立拖入 PB） */

/* vod_list_np2 — kit 组件样式 */

.np2-row { margin: 0 0 18px; }
.np2-row__head {
  display: flex;
  align-items: center;
  padding: 0 12px 8px;
  gap: 8px;
}
.np2-row__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.np2-row__ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #f5a623;
}
.np2-row__ico svg {
  width: 100%;
  height: 100%;
  display: block;
}
.np2-row__title-txt {
  min-width: 0;
}
.np2-row__more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 0;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.np2-row__more-txt {
  flex: 0 0 auto;
}
.np2-row__more-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cfd2d6;
  color: #121214;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.np2-row__more-ico svg {
  display: block;
  width: 10px;
  height: 10px;
}
.np2-row__more:hover {
  color: #c8cbcf;
}
.np2-row__more:hover .np2-row__more-ico {
  background: #e8eaed;
  transform: translateX(1px);
}
.np2-row__more:active .np2-row__more-ico {
  transform: translateX(1px) scale(0.96);
}
.np2-row__shuffle {
  border: 0;
  background: transparent;
  color: var(--c-text-muted);
  font-size: 12px;
  cursor: pointer;
}
.np2-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
}
.np2-card { flex: 0 0 46%; min-width: 140px; text-decoration: none; color: inherit; }
.np2-card__pic {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #2a2c2e;
}
.np2-card img,
.np2-card .np2-poster-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #2a2c2e;
  display: block;
}
/* splash VideoPayTag：右上角胶囊（金币 / VIP 互斥） */
.np2-paytag {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}
.np2-paytag__vip {
  display: flex;
  height: 14px;
  min-width: 30px;
  padding: 0.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff7ec 0%, #ffb78e 100%);
  box-sizing: border-box;
}
.np2-paytag__vip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 30px;
  padding: 0 3px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  height: 13px;
  color: #000;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
  background-image: linear-gradient(to right, #fee2ba 13%, #e69167 100%);
  box-sizing: border-box;
}
.np2-paytag__coin {
  display: flex;
  height: 14px;
  min-width: 28px;
  padding: 0.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb8749 0%, #ed4e2e 100%);
  box-sizing: border-box;
}
.np2-paytag__coin-inner {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 100%;
  flex: 1;
  padding: 0 3px 0 2px;
  border-radius: 999px;
  background-image: linear-gradient(105deg, #ff5e00 11%, #e12810 100%);
  box-sizing: border-box;
}
.np2-paytag__coin-ico {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  display: block;
}
.np2-paytag__amt {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-align: center;
}
.np2-card__name {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}
.np2-card__meta {
  font-size: 11px;
  color: #8b8e93;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.3;
}
.np2-card__when {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a8abb0;
}
.np2-card__hits {
  flex: 0 0 auto;
  color: #8b8e93;
  font-variant-numeric: tabular-nums;
}
[data-component="vod_list_np2"] .np2-card img,
[data-component="vod_list_np2"] .np2-card .np2-poster-ph {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}
/* grid2 封面角标位置 */
.np2-card__pic .np2-paytag {
  top: 6px;
  right: 6px;
}
/* 对齐 splash displayType=3：pb-[131.858%] */
[data-component="vod_list_np2"] .np2-v3__pic img {
  aspect-ratio: 100 / 131.858;
  border-radius: 10px;
}
/* 对齐 splash displayType=1：pb-[53.138%] */
[data-component="vod_list_np2"] .np2-hs__pic img {
  aspect-ratio: 100 / 53.138;
  border-radius: 10px;
}
.np2-row__title { flex: 1; min-width: 0; overflow: hidden; }
.np2-row__title-txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-component="vod_list_np2"] .np2-top { gap: 8px; padding: 8px 12px; }
[data-component="vod_list_np2"] .np2-top__logo { display: flex !important; }
[data-component="vod_list_np2"] .np2-top__brand-wrap,
[data-component="vod_list_np2"] .np2-top__brand { display: none !important; }
[data-component="vod_list_np2"] .np2-top__search { flex: 1 1 auto; min-width: 0; height: 32px; font-size: 13px; }
[data-component="vod_list_np2"] .np2-row { margin: 0 0 10px; display: flex; flex-direction: column; }
[data-component="vod_list_np2"] .np2-row__head { padding: 0 12px 4px; }
[data-component="vod_list_np2"] .np2-row__title { font-size: 14px; font-weight: 700; }
[data-component="vod_list_np2"] .np2-row__more { font-size: 11px; color: #8b8e93; }
.np2-row--grid2 .np2-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
  overflow: visible;
  padding: 0 12px;
}
/* —— 统一卡片壳（grid2 / cols3 / hscroll）—— */
.np2-row--grid2 .np2-card,
.np2-row--cols3 .np2-v3,
.np2-row--hscroll .np2-hs {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #1e2022;
  text-decoration: none;
  color: inherit;
  transition: background 180ms ease, transform 120ms ease;
}
.np2-row--grid2 .np2-card:active,
.np2-row--cols3 .np2-v3:active,
.np2-row--hscroll .np2-hs:active {
  transform: scale(0.985);
}
.np2-row--grid2 .np2-card {
  flex: none;
  width: auto;
  min-width: 0;
  max-width: none;
}
.np2-row--grid2 .np2-card:nth-child(n+5) { display: none; }
.np2-row--grid2 .np2-card__pic,
.np2-row--cols3 .np2-v3__pic,
.np2-row--hscroll .np2-hs__pic {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #141618;
}
.np2-row--grid2 .np2-card img,
.np2-row--grid2 .np2-card .np2-poster-ph {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  object-fit: cover;
}
.np2-row--cols3 .np2-v3__pic img {
  width: 100%;
  aspect-ratio: 100 / 131.858;
  border-radius: 0;
  object-fit: cover;
  display: block;
  background: #141618;
}
.np2-row--hscroll .np2-hs__pic img {
  width: 100%;
  aspect-ratio: 100 / 53.138;
  border-radius: 0;
  object-fit: cover;
  display: block;
  background: #141618;
}
.np2-row--grid2 .np2-card__body,
.np2-row--cols3 .np2-card__body,
.np2-row--hscroll .np2-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
  flex: 1 1 auto;
  min-height: 0;
}
.np2-row--grid2 .np2-card__name,
.np2-row--cols3 .np2-card__name,
.np2-row--hscroll .np2-card__name {
  margin-top: 0;
}
.np2-row--grid2 .np2-card__meta,
.np2-row--cols3 .np2-card__meta,
.np2-row--hscroll .np2-card__meta {
  margin-top: 0;
}
.np2-row--grid2 .np2-card__pic .np2-paytag,
.np2-row--cols3 .np2-v3__pic .np2-paytag,
.np2-row--hscroll .np2-hs__pic .np2-paytag {
  top: 6px;
  right: 6px;
}
.np2-row--grid2 .np2-card__pic .np2-paytag__coin,
.np2-row--cols3 .np2-v3__pic .np2-paytag__coin,
.np2-row--hscroll .np2-hs__pic .np2-paytag__coin {
  min-width: auto;
  width: auto;
  height: 18px;
  padding: 0.5px;
  border-radius: 999px;
}
.np2-row--grid2 .np2-card__pic .np2-paytag__coin-inner,
.np2-row--cols3 .np2-v3__pic .np2-paytag__coin-inner,
.np2-row--hscroll .np2-hs__pic .np2-paytag__coin-inner {
  gap: 2px;
  padding: 0 5px 0 3px;
  border-radius: 999px;
}
.np2-row--grid2 .np2-card__pic .np2-paytag__coin-ico,
.np2-row--cols3 .np2-v3__pic .np2-paytag__coin-ico,
.np2-row--hscroll .np2-hs__pic .np2-paytag__coin-ico {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
}
.np2-row--grid2 .np2-card__pic .np2-paytag__amt,
.np2-row--cols3 .np2-v3__pic .np2-paytag__amt,
.np2-row--hscroll .np2-hs__pic .np2-paytag__amt {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.np2-row--grid2 .np2-card__pic .np2-paytag__vip,
.np2-row--cols3 .np2-v3__pic .np2-paytag__vip,
.np2-row--hscroll .np2-hs__pic .np2-paytag__vip {
  height: 18px;
  min-width: 36px;
}
.np2-row--grid2 .np2-card__pic .np2-paytag__vip-inner,
.np2-row--cols3 .np2-v3__pic .np2-paytag__vip-inner,
.np2-row--hscroll .np2-hs__pic .np2-paytag__vip-inner {
  height: 17px;
  font-size: 11px;
}
[data-component="vod_list_np2"] .np2-row--grid2 .np2-card__name,
[data-component="vod_list_np2"] .np2-row--cols3 .np2-card__name,
[data-component="vod_list_np2"] .np2-row--hscroll .np2-card__name {
  font-size: 13px;
  font-weight: 500;
  margin-top: 0;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 0;
  color: #f5f6f8;
  text-wrap: pretty;
}
[data-component="vod_list_np2"] .np2-row--grid2 .np2-card__meta,
[data-component="vod_list_np2"] .np2-row--cols3 .np2-card__meta,
[data-component="vod_list_np2"] .np2-row--hscroll .np2-card__meta {
  margin-top: 0;
}
[data-component="vod_list_np2"] .np2-row__shuffle {
  display: inline-flex !important;
  align-self: stretch;
  width: calc(100% - 24px);
  max-width: none;
  margin: 8px 12px 14px;
  height: 33px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #2a2c2e !important;
  color: #c8c8c8;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}
.np2-row--hscroll .np2-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 12px 8px;
}
.np2-row--hscroll .np2-cards::-webkit-scrollbar { display: none; }
/* splash VideoItem hscroll：w-[239rem] @375 → 239/375 vw */
.np2-row--hscroll .np2-hs {
  flex: 0 0 auto;
  width: calc(239 / 375 * 100vw);
  min-width: 0;
  max-width: none;
}

.np2-row--cols3 .np2-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 6px;
  padding: 0 12px 10px;
  overflow: visible;
}
.np2-row--cols3 .np2-v3:nth-child(n+7) { display: none; }
.np2-v3 { min-width: 0; }

.np2-row__shuffle-ico {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}
[data-component="vod_list_np2"] .np2-row__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}
[data-component="vod_list_np2"] .np2-row__title-txt {
  white-space: normal;
}
[data-component="vod_list_np2"] .np2-ads .pb-ads-grid__tile,
.np2-ads .pb-ads-grid__tile {
  border-radius: 12px;
}
[data-component="vod_list_np2"] .np2-ads .pb-ads-grid__cap,
.np2-ads .pb-ads-grid__cap {
  font-size: 11px;
  color: #f2f3f5;
}

@media (min-width: 961px) {
  /* 区块标题：与下方卡片同宽对齐，勿单独加大左右内边距 */
  [data-component="vod_list_np2"] .np2-row {
    margin: 0 0 14px;
  }
  [data-component="vod_list_np2"] .np2-row__head {
    padding: 0 0 4px;
    align-items: center;
  }
  [data-component="vod_list_np2"] .np2-row__title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
  }
  [data-component="vod_list_np2"] .np2-row__more {
    font-size: 11px;
    gap: 8px;
    min-height: 0;
    padding: 0;
    transition: color 160ms ease;
  }
  [data-component="vod_list_np2"] .np2-row__more-ico {
    width: 20px;
    height: 20px;
  }
  [data-component="vod_list_np2"] .np2-row__more-ico svg {
    width: 11px;
    height: 11px;
  }
  [data-component="vod_list_np2"] .np2-row__more:hover {
    color: #f5a623;
  }
  [data-component="vod_list_np2"] .np2-row__more:hover .np2-row__more-ico {
    background: rgba(245, 166, 35, 0.22);
    color: #f5a623;
  }

  /* 双列横版 → 桌面 4 列，多露出几张 */
  [data-component="vod_list_np2"] .np2-row--grid2 .np2-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 14px;
    padding: 0;
  }
  [data-component="vod_list_np2"] .np2-row--grid2 .np2-card:nth-child(n+5) {
    display: block;
  }
  [data-component="vod_list_np2"] .np2-row--grid2 .np2-card:nth-child(n+9) {
    display: none;
  }
  [data-component="vod_list_np2"] .np2-row--grid2 .np2-card img,
  [data-component="vod_list_np2"] .np2-row--grid2 .np2-card .np2-poster-ph {
    border-radius: 0;
    transition: transform 200ms ease, filter 200ms ease;
  }
  [data-component="vod_list_np2"] .np2-row--grid2 .np2-card:hover .np2-card__pic img {
    transform: scale(1.03);
    filter: brightness(1.06);
  }
  [data-component="vod_list_np2"] .np2-row--grid2 .np2-card__name,
  [data-component="vod_list_np2"] .np2-row--cols3 .np2-card__name,
  [data-component="vod_list_np2"] .np2-row--hscroll .np2-card__name {
    font-size: 14px;
    margin-top: 0;
    min-height: 0;
  }
  [data-component="vod_list_np2"] .np2-row--grid2 .np2-card__meta,
  [data-component="vod_list_np2"] .np2-row--cols3 .np2-card__meta,
  [data-component="vod_list_np2"] .np2-row--hscroll .np2-card__meta {
    font-size: 12px;
    margin-top: 0;
  }
  [data-component="vod_list_np2"] .np2-row--grid2 .np2-card__body,
  [data-component="vod_list_np2"] .np2-row--cols3 .np2-card__body,
  [data-component="vod_list_np2"] .np2-row--hscroll .np2-card__body {
    padding: 10px 12px 12px;
  }

  /* 三列竖版 → 桌面 6 列，两行共 12 张 */
  [data-component="vod_list_np2"] .np2-row--cols3 .np2-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 12px;
    overflow: visible;
    padding: 0;
  }
  [data-component="vod_list_np2"] .np2-row--cols3 .np2-v3:nth-child(n+7) {
    display: block;
  }
  [data-component="vod_list_np2"] .np2-row--cols3 .np2-v3:nth-child(n+13) {
    display: none;
  }
  [data-component="vod_list_np2"] .np2-row--cols3 .np2-v3 {
    width: auto;
    min-width: 0;
  }
  [data-component="vod_list_np2"] .np2-row--cols3 .np2-v3__pic img {
    border-radius: 0;
    transition: transform 200ms ease, filter 200ms ease;
  }
  [data-component="vod_list_np2"] .np2-row--cols3 .np2-v3:hover .np2-v3__pic img {
    transform: scale(1.03);
    filter: brightness(1.06);
  }

  /* 横滑宽卡 → 桌面固定 4 列网格，不再手指滑动 */
  [data-component="vod_list_np2"] .np2-row--hscroll .np2-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 14px;
    overflow: visible;
    padding: 0;
  }
  [data-component="vod_list_np2"] .np2-row--hscroll .np2-hs {
    width: auto;
    max-width: none;
  }
  [data-component="vod_list_np2"] .np2-row--hscroll .np2-hs__pic img {
    border-radius: 0;
    transition: transform 200ms ease, filter 200ms ease;
  }
  [data-component="vod_list_np2"] .np2-row--hscroll .np2-hs:hover .np2-hs__pic img {
    transform: scale(1.03);
    filter: brightness(1.06);
  }
  [data-component="vod_list_np2"] .np2-row--hscroll .np2-hs:nth-child(n+5) {
    display: none;
  }

  /* 换一换：居中窄按钮，别拉满屏宽 */
  [data-component="vod_list_np2"] .np2-row__shuffle {
    width: auto;
    min-width: 160px;
    max-width: 220px;
    align-self: center;
    margin: 14px auto 0;
    height: 36px;
    border-radius: 10px;
    transition: background 160ms ease, color 160ms ease;
  }
  [data-component="vod_list_np2"] .np2-row__shuffle:hover {
    background: #34363a !important;
    color: #fff;
  }
  [data-component="vod_list_np2"] .np2-row__shuffle:active {
    transform: scale(0.98);
  }
}
