* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
}


.icon {
  font-size: 18px;
}


.detail-hero {
  background-size: cover;
  background-position: center;
  color: white;
  min-height: 300px;
  position: relative;
  display: flex;
  padding: 20px 60px 20px 60px;
}

.detail-poster {
  width: 300px;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  flex-shrink: 0;
  z-index: 99;
  position: relative; /* 添加相对定位，用于海报上评分圆圈的绝对定位 */
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 添加海报上方评分样式 */
.poster-rating {
  position: absolute;
  right: 10px;
  z-index: 100;
  bottom: -15px;
}

.poster-rating .detail-rating-circle {
  width: 55px;
  height: 55px;
  background-color: #081c22;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  position: relative;
  margin-bottom: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.detail-show-info {
  margin-left: 20px;
  max-width: 100%;
  z-index: 99;
}

.season-release-date {
  margin-top: 40px;
  display: flex;
}

.detail-title-box {
  display: flex;
  align-items: center;
}
.detail-title {
  font-size: 32px;
  margin-bottom: 10px;
}
.detail-title-year {
  font-size: 28px;
  margin-bottom: 10px;
}

.detail-rating{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 10px 0;
}

.detail-rating-circle {
  width: 60px;
  height: 60px;
  background-color: #081c22;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  position: relative;
  margin-bottom: 15px;
  z-index: 1; /* 确保内容在最上层 */
}

.detail-rating-circle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  background: conic-gradient(
    var(--rating-color, #21d07a) 0% calc(var(--rating-percent, 0) * 1%),
    transparent calc(var(--rating-percent, 0) * 1%) 100%
  );
  box-sizing: border-box;
  z-index: -2; /* 确保在内容之下 */
}

.detail-rating-circle::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
  background-color: #081c22;
  z-index: -1; /* 确保在内容之下但在环形之上 */
}

  /* 添加评分颜色差异化 */
  .detail-rating-circle[data-score="high"] {
    --rating-color: #21d07a; /* 绿色 - 8分以上 */
  }

  .detail-rating-circle[data-score="medium"] {
    --rating-color: #d2d531; /* 黄色 - 5-8分 */
  }

  .detail-rating-circle[data-score="low"] {
    --rating-color: #db2360; /* 红色 - 5分以下 */
  }

.detail-actions {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.detail-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #032541;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}

.detail-overview {
  margin-top: 20px;
}

.detail-crew {
  display: flex;
  margin-top: 20px;
  gap: 50px;
  height: 100px;
}

.detail-cast-section {
  padding: 20px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

.cast-section {
  padding: 0 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* 防止内容溢出 */
  box-sizing: border-box; /* 确保padding不会增加宽度 */
}

.cast-grid {
  display: flex;
  overflow-x: auto;
  /* padding: 20px 0; */
  gap: 20px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  max-width: 100%; /* 限制最大宽度 */
  width: 100%; /* 确保宽度不超过父容器 */
}

.cast-card {
  min-width: 140px;
  max-width: 140px; /* 固定最大宽度 */
  flex-shrink: 0;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cast-img {
  height: 175px;
  width: 100%;
  background-color: #dbdbdb;
}

.cast-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-info {
  padding: 10px;
}

.cast-name {
  font-weight: bold;
}

.cast-role {
  font-size: 14px;
  color: #666;
}

.seasons-section {
  padding: 20px;
  background-color: white;
  /* margin-top: 20px; */
}

.season-card {
  display: flex;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.season-poster {
  width: 130px;
  height: 195px;
  flex-shrink: 0;
  margin: 10px;
}

.season-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.season-info {
  padding: 15px;
}

.season-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.season-title a {
  text-decoration: none;
  color: #333;
}

.season-year {
  color: #666;
  margin-bottom: 10px;
}

.season-desc {
  font-size: 14px;
  line-height: 1.5;
  height: 70px;
}

.social-section {
  padding: 20px;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid #e3e3e3;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 15px;
  cursor: pointer;
}

.tab.active {
  border-bottom: 4px solid #01b4e4;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-input {
  padding: 10px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
}

.media-section {
  padding: 20px;
}

.media-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.media-tab {
  padding: 5px 10px;
  cursor: pointer;
}

.media-tab.active {
  font-weight: bold;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.media-item {
  height: 169px;
  border-radius: 8px;
  overflow: hidden;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-item {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.sidebar-item .company-logo{
  max-width: 100%;
  height: 50px;
  margin: 5px auto;
}

.sidebar-item .company-logo-text{
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 30px;
  max-height: 100px;
  margin-bottom: 5px;
  display: inline-block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 10px;
  font-weight: bold;
  background: linear-gradient(45deg, #82d3e9, #045b69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-item .network-logo{
  max-width: 220px;
}

.sidebar-space-block {
  margin: 10px;
}
.stats {
  display: flex;
  gap: 15px;
  align-items: center;
}

.stat-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #081c22;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tag {
  background-color: #e3e3e3;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.detail-overview-more a{
  color: #409eff;
  text-decoration: none;
}


.main-content {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 60px;
  max-width: 1600px;
}

.hero-content {
  display: flex;
  /* align-items: center; */
  justify-content: center;
  margin: 0 auto;
  max-width: 1460px;
}
.detail-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1024px;
}

.no-reviews {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 10px;
  text-align: justify;
}

.download-input-box {
  padding: 24px 24px 18px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.download-flex-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  justify-content: center;
  gap: 32px;
}
.download-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  flex: 1;
}
.download-input-msg {
  color: #e74c3c;
  margin-bottom: 10px;
  font-size: 15px;
  align-self: flex-start;
}
.download-input-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}
.download-input-field {
  padding: 10px 12px;
  font-size: 17px;
  border: 1px solid #d0d0d0;
  border-radius: 7px;
  outline: none;
  width: 80%;
  transition: border 0.2s;
  margin-right: 10px;
}
.download-input-field:focus {
  border: 1.5px solid #409eff;
}
.download-input-btn {
  background: #409eff;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 28px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.download-input-btn:hover {
  background: #3078c6;
}
.download-tips {
  width: 100%;
  text-align: left;
  color: #e74c3c;
  font-size: 16px;
  margin-top: 8px;
  margin-bottom: 0;
  font-weight: bold;;
}
.download-qrcode-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  margin-top: 0;
}
.download-qrcode-tip {
  font-size: 13px;
  color: #888;
  margin-top: 6px;
}
.download-qrcode-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  background: #f5f5f5;
  object-fit: cover;
  border: 1px solid #eee;
}
.tips {
  margin: 40px auto 30px auto;
  padding: 28px 24px;
  max-width: 520px;
  background: #f7fafc;
  border: 1.5px solid #e3e8ee;
  border-radius: 12px;
  text-align: center;
  color: #444;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.notips p {
  margin: 40px auto 30px auto;
  padding: 28px 24px;
  background: #f7fafc;
  border: 1.5px solid #e3e8ee;
  border-radius: 12px;
  text-align: center;
  color: #444;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin: 0;
  font-weight: 500;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .main-content {
    flex-direction: row;
  }
  
  .detail-content {
    flex: 1;
    margin: 20px 0;
  }
  
  .sidebar {
    width: 320px;
  }
}

.detail-desc{
  z-index: 99;
  margin-top: 20px;
  clear: both;
  height: 250px;
}

.detail-desc-title{
  font-size: 20px;
  margin-top: 10px;
}

@media screen and (max-width: 1180px) {
  .detail-desc {
    width: 100%;
    margin: 0 auto;
  } 
  .season-release-date {
    margin-top: 150px;
  }
  .detail-crew {
    display: none;
  }
  .season-desc {
    font-size: 14px;
    line-height: 1.5;
    height: 0px;
  }
}

@media screen and (max-width: 1024px) {
  .season-desc {
    font-size: 14px;
    line-height: 1.5;
    height: 70px;
  }
}
@media screen and (max-width: 932px) {
  .season-desc {
    font-size: 14px;
    line-height: 1.5;
    height: 0px;
  }
  .season-release-date {
    margin-top: 110px;
  }
}

  /**
  * 适配820宽度以下的屏幕
  */

@media screen and (max-width: 820px) {
  .detail-poster {
    display: none;
  }
  .detail-desc {
    width: 100%;
    height:auto;
    margin: 0 auto;
  }
  .season-poster {
    display: none;
  }
}

.language-tag {
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-size: 14px;
  display: inline-block;
}

.fan-section {
  padding: 20px;
}

.fan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.fan-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fan-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #dbdbdb;
  overflow: hidden;
}

.fan-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fan-name {
  font-weight: bold;
}

.fan-points {
  color: #666;
  font-size: 14px;
}

.placeholder-250-300 {
  width: 250px;
  height: 300px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.placeholder-250-250 {
  width: 250px;
  height: 250px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.placeholder-detail {
  width: 100%;
  height: 200px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .detail-hero {
    flex-direction: column;
    align-items: center;
    /* text-align: center; */
    padding: 20px;
  }
  
  .detail-poster {
    width: 200px;
    height: 300px;
    margin-bottom: 20px;
  }
  
  /* 调整移动端下海报评分的位置 */
  .poster-rating {
    right: 10px; /* 改为右侧对齐 */
    left: auto; /* 清除左侧对齐 */
  }
  
  .detail-show-info {
    margin-top: 20px;
  }
  
  .detail-title-box {
    flex-direction: row;
    align-items: center;
    /* justify-content: center; */
    gap: 10px;
  }
  
  .detail-title {
    font-size: 24px;
  }
  
  .detail-title-year {
    font-size: 20px;
  }
  
  /* .detail-rating {
    justify-content: center;
  } */
  
  .detail-actions {
    justify-content: center;
  }
  
  .detail-crew {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    display: none;
  }
  
  .main-content {
    margin: 0 20px;
  }
  
  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .season-card {
    flex-direction: column;
    align-items: center;
  }
  
  .season-poster {
    margin: 10px auto;
  }
  
  /* .season-info {
    text-align: center;
  } */
  .season-release-date {
    margin-top: 150px;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .show-info {
    margin-left: 0;
    margin-top: 20px;
  }
  
  .actions {
    justify-content: center;
  }
  
  .crew {
    flex-direction: column;
    gap: 20px;
  }
  

  .type-name {
    display: none;
  }
  .detail-desc {
    height: 100%;
    margin: 0 auto;
  }
  
}

@media (max-width: 520px) {
  .detail-poster {
    width: 150px;
    height: 225px;
    display: none;
  }
  
  /* 在小屏幕下为评分圆圈添加特殊样式，使其仍然可见 */
  .poster-rating {
    position: absolute;
    top: 10px;
    right: 10px; /* 改为右侧对齐，与其他屏幕尺寸保持一致 */
    left: auto; /* 清除左侧对齐 */
    z-index: 100;
  }
  
  .poster-rating .detail-rating-circle {
    width: 45px;
    height: 45px;
    font-size: 14px;
  }
  
  .detail-title {
    font-size: 20px;
  }
  
  .detail-title-year {
    font-size: 16px;
  }
  
  .detail-rating-circle {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  
  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .detail-rating {
    display: none;
  }

  .main-content {
    padding: 0 5px;
    margin: 0 auto;
  }

  .cast-section {
    padding: 10px;
    width: 100%;
  }

  .cast-img {
    height: 120px;
  }
  
  .season-info {
    text-align: left;
  }

  .season-poster {
    display: none;
  }

  .season-card {
    flex-direction: column;
    align-items: stretch;
  }
  .season-desc {
    font-size: 14px;
    line-height: 1.5;
    height: 45px;
  }
  /** download-section */
  .download-flex-row {
    gap: 5px;
  }
.download-input-btn {
    padding: 8px 8px;
    width: 25%;
  }
}

/* 适配宽度1400以上的屏幕 */
@media (min-width: 1400px) {
  .detail-show-info{
    min-width: 1000px;
  }
}