.drama-header {
  width: 100%;
  max-width: 100rem;
  margin: auto;
  text-align: center;
  background-color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

/* 封面容器 */
.drama-cover {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  margin-bottom: 2rem; /* 下方间距 */
}

/* 封面图片 */
.cover-img {
  max-width: 75%;
  aspect-ratio: 9 / 16;
  border-radius: 1rem;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cover-img:hover {
  transform: scale(0.98); /* 放大效果 */
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.15); /* 增强阴影 */
}
/* 标签容器 */
.drama-tags {
  display: flex;
  flex-wrap: wrap; /* 允许换行 */
  justify-content: center; /* 居中对齐 */
  gap: 1rem; /* 标签之间的间距 */
  margin: 1.5rem 0; /* 上下间距 */
}

/* 单个标签样式 */
.tag-item {
  background-color: #f7d328;
  color: #202020;
  font-size: 1.6rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}
.tag-item:hover {
  background-color: #ffcc00; /* 悬停时颜色变化 */
  transform: scale(1.1); /* 放大效果 */
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1); /* 添加阴影 */
}
.drama-title {
  font-family: SourceHanSansSC-Bold;
  font-weight: 700;
  font-size: 3.5rem;
  color: #202020;
  margin-bottom: 2rem;
}

.drama-description {
  font-size: 2.6rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.drama-rating {
  font-size: 2.6rem;
  color: #202020;
  margin-bottom: 3rem;
}

.rating-stars {
  color: #f7d328;
}

/* 评论容器 */
.drama-comments {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(145deg, #f9f9f9, #eaeaea);
  border-radius: 1.5rem;
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.1);
  max-height: 50rem; /* PC端限制高度 */
  /* overflow: auto; */
  overflow-y: hidden;
  position: relative; /* 确保子元素可以相对定位 */
}
/* .drama-comments::-webkit-scrollbar {
  width: 0.8rem; 
}

.drama-comments::-webkit-scrollbar-thumb {
  background: #f7d328; 
  border-radius: 1rem; 
}

.drama-comments::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05); 
} */
/* 包裹评论的容器 */
.comments-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* 每条评论之间的间距 */
  animation: scrollComments 20s linear infinite; /* 默认动画 */
}

/* 单条评论 */
.comment-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.15);
}

/* 用户头像占位 */
.comment-avatar {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: #f7d328;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* 用户信息头部 */
.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-header .comment-user {
  font-family: SourceHanSansSC-Bold;
  font-weight: 700;
  font-size: 1.8rem;
  color: #202020;
  margin-left: 1rem;
}

.comment-header .comment-time {
  font-size: 1.4rem;
  color: #999999;
  margin-left: auto; /* 时间戳靠右 */
}

/* 评论内容 */
.comment-text {
  font-size: 1.6rem;
  color: #666666;
  line-height: 1.6;
  margin-top: 0.5rem;
  text-align: left;
}
/* 集数样式 */
.drama-episodes {
  font-size: 2.6rem;
  color: #202020;
  margin: 1.5rem 0; /* 上下间距 */
  text-align: center;
}

.episodes-label {
  font-family: SourceHanSansSC-Bold;
  font-weight: 700;
  margin-right: 1rem;
}

.episodes-count {
  color: #f7d328; /* 使用评分星星的颜色 */
  font-weight: 700;
}
/* 播放按钮容器 */
.play-button-container {
  text-align: center; /* 居中对齐 */
  margin: 2rem 0; /* 上下间距 */
}

/* 播放按钮 */
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f7d328, #ffcc00);
  color: #202020;
  font-family: SourceHanSansSC-Bold;
  font-weight: 700;
  font-size: 2rem;
  padding: 1rem 2rem;
  border-radius: 2rem;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease; /* 动画效果 */
}

.play-button:hover {
  background: linear-gradient(145deg, #ffcc00, #f7d328); /* 渐变反转 */
  transform: scale(1.05); /* 放大效果 */
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.15); /* 增强阴影 */
}

/* 播放图标 */
.play-icon {
  font-size: 2.4rem;
  margin-right: 0.8rem;
}
/* 应用动画 */
.scroll-animation {
  animation: scrollComments 10s linear infinite; /* 动画持续时间 */
}

/* 停止动画 */
.scroll-animation.paused {
  animation-play-state: paused; /* 暂停动画 */
}
/* 停止动画 */
.comments-wrapper.paused {
  animation-play-state: paused; /* 暂停动画 */
}
/* 骨架屏样式 */
.skeleton {
  background: linear-gradient(90deg, #eaeaea 25%, #f9f9f9 50%, #eaeaea 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 0.5rem;
}

.skeleton-cover {
  height: 25rem;
  margin-bottom: 1rem;
}

.skeleton-title {
  height: 3rem;
  margin-bottom: 1rem;
}

.skeleton-tags {
  height: 2rem;
  margin-bottom: 1rem;
}

.skeleton-description {
  height: 20rem;
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* 响应式适配 */
@media (max-width: 820px) {
  .skeleton-cover {
    height: 20rem; /* 调整封面骨架屏高度 */
  }
  .skeleton-title {
    height: 2.5rem; /* 调整标题骨架屏高度 */
  }
  .skeleton-tags {
    height: 1.8rem; /* 调整标签骨架屏高度 */
  }
  .skeleton-description {
    height: 4rem; /* 调整描述骨架屏高度 */
  }
  .drama-header {
    justify-items: center;
    padding: 2rem;
  }
  .drama-cover {
    max-width: 75%; /* 在移动端进一步缩小封面宽度 */
  }
  .drama-title {
    font-size: 2.5rem;
  }

  .drama-description {
    font-size: 2rem;
  }
  .cover-img {
    max-width: 90%; /* 在移动端进一步缩小 */
  }
  .tag-item {
    font-size: 1.4rem; /* 在移动端缩小字体 */
    padding: 0.4rem 0.8rem; /* 缩小内边距 */
  }
  .drama-rating {
    font-size: 2rem;
  }

  .drama-comments {
    max-height: 30rem; /* 移动端限制高度 */
  }

  .comments-wrapper {
    animation-duration: 10s; /* 移动端动画速度加快 */
  }

  .comment-header .comment-user {
    font-size: 1.6rem;
  }

  .comment-text {
    font-size: 1.4rem;
  }
  .drama-episodes {
    font-size: 2rem;
  }
  .play-button {
    font-size: 1.6rem;
    padding: 0.8rem 1.6rem;
  }

  .play-icon {
    font-size: 2rem;
  }
}
/* 滚动动画 */
@keyframes scrollComments {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%); /* 向上滚动一半的高度 */
  }
}
