/* ======================== */
/*     影片详情区域基础     */
/* ======================== */
/* ======================== */
/*     影片详情区域基础     */
/* ======================== */
/* 容器样式 */
.video-info-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0.5;
  z-index: 0;
}
.video-info-wrapper > *:not(.video-info-bg) {
  position: relative;
  z-index: 1;
}
/* 视频标题 */
.video-title {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
  border-left: 4px solid #1e90ff;
  padding-left: 10px;
  text-align: center;
  user-select: none;
}
/* 视频信息区 */
.video-info-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 20px;
  border-radius: 10px;
  overflow: hidden;
  flex-wrap: nowrap;
  z-index: 1;
}
.video-info-wrapper img {
  margin-right: 20px;
}

.video-info-wrapper img {
  width: 140px;              /* 固定宽度，PC端不拉伸 */
  height: auto;
  border-radius: 8px;
  flex: 0 0 auto;             /* 不允许拉伸、不收缩 */
  object-fit: cover;
  user-select: none;
  display: block;
}

.video-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.video-info > * {
  margin-bottom: 8px;
}
.video-info > *:last-child {
  margin-bottom: 0;
}
.video-info-line {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-wrap: nowrap;
}

.video-info-label {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 700;
  color: #ffcc66;
  font-weight: bold;
  margin-right: 8px;
  user-select: none;
}

.video-info-content {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  color: #66b1ff;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100vw;
  padding-bottom: 3px;
}

.video-info-content::-webkit-scrollbar {
  display: none;
}

.video-info-content a {
  color: #fff;
  text-decoration: none;
  margin-right: 12px;
  font-size: 14px;
  white-space: nowrap;
  display: inline-block;
  transition: color 0.3s, text-decoration 0.3s;
}

.video-info-content a:hover {
  color: #1e90ff;
  text-decoration: underline;
}

/* 移动端布局调整 */
@media screen and (max-width: 768px) {
  .video-info-wrapper {
    flex-direction: column;
    max-width: 100vw;
    align-items: center;
  }

  .video-info {
    max-width: 95vw;
    width: 100%;
    
  }

  .video-info-wrapper img {
    width: 110px;
    margin-bottom: 10px;
  }

  .video-info-label {
    margin-right: 6px;
    font-size: 14px;
     color: #ffcc66;
    font-weight: bold;
  }

  .video-info-content {
    font-size: 13px;
    max-width: 100vw;
  }

  .video-info-content a {
    margin-right: 8px;
    font-size: 13px;
  }
}

#introText.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* 影片简介独立区域 */
/* ======================= */
/*     剧情简介区域样式     */
/* ======================= */
.vod-desc-box {
  margin: 30px 0;
  padding: 20px;
  background: rgba(24, 24, 24, 0.85);
  border-left: 4px solid #ffcc00;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
  color: #ddd;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.vod-desc-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffcc00;
  margin-bottom: 12px;
  border-bottom: 1px dashed #444;
  padding-bottom: 4px;
}

.vod-desc-content {
  font-size: 15px;
  line-height: 1.9;
  max-height: 150px;
  overflow: hidden;
  position: relative;
   text-align: center;
  transition: max-height 0.3s ease;
}
.vod-desc-content.expanded {
 max-height: none;
}

.vod-desc-toggle {
  
  margin: 16px auto 0;
  display: block;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  text-align: center;
  transition: color 0.3s;

}
.vod-desc-toggle:hover {
  color: #fff;
}
.play-line-content {
  text-align: center;
}

/* 小屏优化 */
@media screen and (max-width: 768px) {
  .vod-desc-content {
    line-height: 1.8;
  }
  .vod-desc-box {
    padding: 16px;
    border-radius: 10px;
  }

  .vod-desc-title {
    font-size: 16px;
  }

  .vod-desc-content {
    font-size: 14px;
  }
}

.detail-line a {
    text-decoration: none;
    color: #E95927;
    }
.detail-meta span a{
    font-size: 13px;
    color: #fff;
    text-decoration: none;
  }
@media (max-width: 768px) {

  .vod-desc-content {
    max-height: 200px;
  }
   .detail-meta span {
    font-size: 13px;
    color: #fff;
  }
}

.play-line-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.play-line-tab {
  
  display: flex;
  flex-wrap: wrap;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 6px 14px;
  background: #2c2c2c;
  color: #ccc;
  border-radius: 4px;
  cursor: pointer;
}
.play-line-tab.active {
  background-color: #ff4757;
  color: #fff;
}
.play-line-content {
  display: none;
}
.play-line-content.active {
  display: block;
}
.episode-wrap {
  margin-bottom: 20px;
}

/* 集数容器优化：减小右边空隙，贴近两侧 */
.episode-list {
display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin: 0;


    }
  .episode-list.expanded {
      max-height: none;
    }
.episode-item {
  flex: 1 0 22%;               /* 统一宽度 */
  height: 30px;                /* 统一高度 */
  line-height: 30px;           /* 文字垂直居中 */
  text-align: center;          /* 水平居中 */
  background-color: #222;
  color: #ccc;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  }

  .episode-toggle {
   display: none;
  margin: 10px auto;
  background: transparent;
  border: none;
  color: #1e90ff;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.episode-toggle:hover {
  text-decoration: underline;
  text-decoration: none;
}
/* 移动端适配：最多显示3行集数 */
@media screen and (max-width: 768px) {
  .episode-item {
    height: 30px;
    font-size: 13px;
    display: flex;          /* 使用 flex 来完美居中 */
    align-items: center;    /* 垂直居中 */
    justify-content: center;/* 水平居中 */ 
  }
  
  .episode-expand-wrapper {
    display: block;
  }

  .episode-wrapper {
    position: relative;
  }


  
}

 /* 影片推荐 */
.recommend-section {
  margin: 30px 0;
}

.recommend-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 4px solid #1e90ff;
  color: #fff;
}

.recommend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommend-item {
  width: 180px;
  flex: 0 0 auto;
}

.recommend-item a {
  text-decoration: none;
  color: #fff;
  display: block;
}

.recommend-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.recommend-item img {
  width: 100%;
  height: 230px; /* 可改为 160px 等 */
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.recommend-remarks {
  position: absolute;
  bottom: 4px;
  right: 6px;
  background: rgba(30, 144, 255, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 12px;
}

.recommend-name {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 推荐浮动 */
.recommend-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.recommend-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(30, 144, 255, 0.3);
}
/* 移动端：一行 3 个推荐项 */
@media screen and (max-width: 768px) {
  .recommend-list {
    justify-content: space-between;
    gap: 0; /* 可视需求决定是否移除间距 */
  }
  .recommend-item img {
    height: 160px;
  }
  .recommend-item {
    width: 32%;
    margin-bottom: 12px; /* 增加每行之间的垂直间距 */
  }

}
/* PC端每行更多集数 */
@media screen and (min-width: 769px) {
  .episode-item {
    flex: 0 0 9%;
    height: 30px;
    font-size: 13px;
    display: flex;          /* 使用 flex 来完美居中 */
    align-items: center;    /* 垂直居中 */
    justify-content: center;/* 水平居中 */
    
  }
}
/* 评分模块 */
.score-box {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.score-box > *:not(:last-child) {
  margin-right: 10px;
}
.score-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ff6600, #cc3300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 120, 0, 0.5);
}

/* 标签样式 */
.tag {
  display: inline-block;
  background: #292929;
  padding: 4px 10px;
  border-radius: 16px;
  color: #ffcc88;
  border: 1px solid #444;
  margin-right: 8px;
  white-space: nowrap;
  text-align: center;
  
}
.tag a {
  align-items: center;
  color: #ffcc88;
  text-decoration: none;
}
.tag a:hover {
  color: #fff;
  text-decoration: underline;
}