



/* 播放线路及集数列表 */
.play-line-tabs,
.episode-list {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0;
  justify-content: center;
  -webkit-overflow-scrolling: touch; /* iOS 滚动惯性 */
}

/* 播放线路和集数按钮 */
.play-line-tab,
.episode-item {
  padding: 6px 14px;
  background: #1a1a1a;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
  user-select: none;
  -webkit-tap-highlight-color: transparent; /* 去除点击时的高亮 */
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.play-line-tab:hover,
.episode-item:hover {
  background: #333;
}

.play-line-tab.active,
.episode-item.active {
  background: #1e90ff;
  color: #fff;
}

/* 播放器区域 */
#player,
.video-player {
  width: 100%;
  height: 500px; /* PC默认高度 */
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  margin-top:10px;
}

/* 移动端播放器高度调整 */
@media screen and (max-width: 768px) {
  #player,
  .video-player {
    height: 240px;
  }
}

/* 视频标题 */
.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;
}

/* 剧集列表默认样式 */
.episode-list {
  max-height: calc(3 * 36px);
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-bottom: 20px;
  /* 解决iOS下flex子元素宽度bug */
  min-height: 120px;
}

.episode-item {
  width: calc(25% - 10px);
  margin: 0 5px 10px;
  text-align: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.15);
  color: #eee;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.episode-item.active {
  background: rgba(30, 144, 255, 0.8);
  color: #fff;
}

.episode-list.expanded {
  max-height: none;
}

/* 展开更多按钮容器 */
.episode-expand-wrapper {
  text-align: center;
  margin: 16px 0 28px;
}

/* 展开更多按钮样式 */
#toggleEpisodes {
  display: none;
  margin: 0 auto 30px;
  background: transparent;
  border: none;
  color: #1e90ff;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#toggleEpisodes:hover {
  text-decoration: underline;
}

/* 移动端适配：最多显示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;
  }

  .episode-mask {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, #000, transparent);
    pointer-events: none;
    z-index: 1;
  }

  .episode-list.expanded + .episode-mask {
    display: none;
  }
}

/* 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;/* 水平居中 */
    
  }
}

/* 简介区域 */
.intro-wrapper {
  margin: 20px 0;
  color: #ddd;
  line-height: 1.7;
  font-size: 14px;
  position: relative;
}

.intro-title {
  font-size: 16px;
  color: #fff;
  margin-bottom: 10px;
  user-select: none;
}

.intro-section {
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  max-height: 86px; /* 16px * 1.8(line-height) * 3行 = 86.4px */
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.intro-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 1.7;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
  display: block;
  pointer-events: none;
}

.intro-section.expanded {
  max-height: none;
}

.intro-section.expanded::after {
  display: none;
}

.expand-tip {
  color: #1e90ff;
  font-size: 13px;
  margin-top: 6px;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* 视频信息区 */
.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 {
  width: 140px;              /* 固定宽度，PC端不拉伸 */
  height: auto;
  border-radius: 8px;
  flex: 0 0 auto;             /* 不允许拉伸、不收缩 */
  object-fit: cover;
  user-select: none;
  display: block;
  margin-right: 20px;
}

.video-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.video-info > * {
  margin-bottom: 8px;
}

.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;
  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;
  }

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

  .video-info-content a {
    margin-right: 8px;
    font-size: 13px;
  }
}
#introText {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 限制3行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-height 0.3s ease;
}

#introText.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}
 /* 影片推荐 */
.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;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  list-style: none;
}

.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;
}

/* 移动端：一行 3 个推荐项 */
@media screen and (max-width: 768px) {

  .recommend-item img {
    height: 160px;
  }
  .recommend-item {
    width: 32%;
    margin-bottom: 12px; /* 增加每行之间的垂直间距 */
  }

}
/* 背景模糊层 */
.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;
}
/* 推荐浮动 */
.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);
}
/* ======================== */
/*         评分模块         */
/* ======================== */

.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 {
  color: #ffcc88;
  text-decoration: none;
}

.tag a:hover {
  color: #fff;
  text-decoration: underline;
}