/* 视频列表页面样式 */

/* 主容器 - 左右布局 */
.ny-video-list .video-list-container {
  display: flex;
  gap: 0.44rem;
  padding: 0.5rem 0 0.8rem;
}

/* 左侧视频播放区 */
.ny-video-list .video-player {
  width: 12.36rem;
  height: 7.43rem;
  overflow: hidden;
}

.ny-video-list .player-box {
  position: relative;
  border-radius: 0.1rem;
  overflow: hidden;
  height: 100%;
}

.ny-video-list .player-box .poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ny-video-list .player-box video {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

/* 播放按钮 */
.ny-video-list .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.72rem;
  height: 0.72rem;
  background: url('../images/ny14-icon2.png') center center no-repeat;
  background-size: 100% auto;
  cursor: pointer;
  transition: all 0.3s ease;
}



/* 视频描述 */
.ny-video-list .video-desc {
  padding: 0.6rem 0 0.62rem 0.57rem;
  font-size: 0.18rem;
  color: #fff;
  line-height: 1.6;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* 右侧轮播区 */
.ny-video-list .video-swiper-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ny-video-list .video-swiper {
  display: flex;
  flex-direction: column;
  gap: 0.21rem;
  /* 固定高度 = 3个卡片高度 + 2个间距 */
  height: calc(2.08rem * 3 + 0.21rem * 2);
  overflow: hidden;
}

.ny-video-list .video-slide {
  flex-shrink: 0;
}

/* 给第一个 slide 添加过渡动画 */
.ny-video-list .video-slide:first-child {
  transition: margin-top 0.4s ease;
}

/* 视频卡片 */
.ny-video-list .video-card {
  position: relative;
  border-radius: 0.08rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  width: 3.2rem;
  height: 2.08rem;
}

.ny-video-list .video-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 卡片标题 */
.ny-video-list .video-card::after {
  position: absolute;
  content: '';
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: rgba(7,78,209,0.3) url('../images/ny14-icon1.png') center center no-repeat;
  transition: all 0.3s;
}

/* 卡片 hover 和 active 状态 */
.ny-video-list .video-card:hover::after,
.ny-video-list .video-card.active::after{
  height: 100%;
}

/* 导航按钮容器 */
.ny-video-list .swiper-nav {
  display: flex;
  justify-content: flex-start;
  gap: 0.2rem;
  padding-top: 0.2rem;
}

/* 导航按钮 */
.ny-video-list .swiper-btn {
  width: 0.36rem;
  height: 0.36rem;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}

.ny-video-list .swiper-btn.prev {
  background-image: url('../images/prev-2.png');
}

.ny-video-list .swiper-btn.prev:hover {
  background-image: url('../images/prev-1.png');
}

.ny-video-list .swiper-btn.next {
  background-image: url('../images/next-2.png');
}

.ny-video-list .swiper-btn.next:hover {
  background-image: url('../images/next-1.png');
}

/* 禁用状态 */
.ny-video-list .swiper-btn.swiper-button-disabled,
.ny-video-list .swiper-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 移动端横向轮播 - 默认隐藏 */
.ny-video-list .video-swiper-mobile {
  display: none;
  width: 100%;
  margin-top: 0.3rem;
}
.video-swiper-mobile .video-card{
  width: 100%;
}
/* ========== 响应式布局 ========== */

/* 平板端 */
@media (max-width: 1024px) {
  .ny-video-list .video-list-container {
    flex-direction: column;
    gap: 0.4rem;
  }

  .ny-video-list .video-player {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  /* 隐藏桌面端垂直轮播 */
  .ny-video-list .video-swiper-wrap {
    display: none;
  }

  /* 显示移动端横向轮播 */
  .ny-video-list .video-swiper-mobile {
    display: block;
  }

  .ny-video-list .play-btn {
    width: 0.5rem;
    height: 0.5rem;
    transform: translate(-50%, -100%);
  }

  .ny-video-list .play-btn::before {
    border-width: 0.15rem 0 0.15rem 0.25rem;
  }
  .ny-video-list .swiper-nav{
    justify-content: center;
  }

}

/* 手机端 */
@media (max-width: 640px) {
  .ny-video-list .video-list-container{
    gap: 0rem;
  }
  .ny-video-list .video-list-container {
    padding: 0.3rem 0 0.5rem;
  }

  .ny-video-list .video-desc {
    padding: 0.6rem 0 0.5rem 0.2rem;
  }

  .ny-video-list .card-title {
    font-size: 0.24rem;
    padding: 0.5rem 0.2rem 0.15rem;
  }

}
