/* ===== 详情页样式 ===== */

.detail-header {
  display: flex;
  gap: 24px;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

.detail-poster {
  width: 240px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.detail-poster img {
  width: 100%;
  display: block;
}

.detail-info {
  flex: 1;
  min-width: 0;
}

.detail-info h1 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2a2a2a;
}

.detail-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-meta .meta-label {
  color: #777;
}

.detail-meta .meta-value {
  color: #ccc;
}

.detail-meta .meta-value a {
  color: #e74c3c;
  margin-right: 8px;
}

.detail-meta .meta-value a:hover {
  text-decoration: underline;
}

.detail-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-score .score-num {
  font-size: 32px;
  font-weight: bold;
  color: #e74c3c;
}

.detail-score .score-text {
  font-size: 13px;
  color: #777;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-actions .btn {
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-play {
  background: #e74c3c;
  color: #fff;
}

.btn-play:hover {
  background: #c0392b;
}

.btn-fav {
  background: #2a2a2a;
  color: #ccc;
}

.btn-fav:hover {
  background: #333;
  color: #e74c3c;
}

.detail-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.8;
}

.detail-desc .desc-label {
  font-weight: 500;
  color: #ccc;
}

.detail-desc .desc-toggle {
  color: #e74c3c;
  cursor: pointer;
  font-size: 13px;
  margin-left: 6px;
}

.detail-desc .desc-full {
  display: none;
}

.detail-desc .desc-full.show {
  display: inline;
}

/* 剧集列表/播放地址 */
.episode-section {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.episode-section h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.episode-section h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #e74c3c;
  border-radius: 2px;
}

.source-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.source-tabs a {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #888;
  background: #222;
  transition: all 0.2s;
}

.source-tabs a:hover,
.source-tabs a.active {
  background: #e74c3c;
  color: #fff;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
}

.episode-grid a {
  display: block;
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  background: #222;
  font-size: 13px;
  color: #aaa;
  transition: all 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-grid a:hover,
.episode-grid a.active {
  background: #e74c3c;
  color: #fff;
}

/* 推荐区域 */
.recommend-section {
  margin-bottom: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
  .detail-header {
    flex-direction: column;
    align-items: center;
  }

  .detail-poster {
    width: 200px;
  }

  .detail-info h1 {
    font-size: 20px;
    text-align: center;
  }

  .detail-meta {
    justify-content: center;
  }

  .detail-actions {
    justify-content: center;
  }

  .episode-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 480px) {
  .detail-poster {
    width: 160px;
  }

  .episode-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
