/* drama_outline.css - 短剧大纲工件预览卡片样式 */

/* 详细版本卡片 */
.drama-outline-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin: 12px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.drama-outline-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

/* 头部区域 */
.drama-outline-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drama-outline-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8b5cf6;
}

.drama-outline-title-section {
  flex: 1;
  min-width: 0;
}

.drama-outline-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0 0 6px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drama-outline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.drama-outline-genre {
  color: #8b5cf6;
}

.drama-outline-separator {
  color: #4b5563;
}

.drama-outline-episodes {
  color: #9ca3af;
}

.drama-outline-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
}

/* 内容区域 */
.drama-outline-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 分段样式 */
.drama-outline-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drama-outline-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drama-outline-section-icon {
  width: 20px;
  height: 20px;
  color: #8b5cf6;
  flex-shrink: 0;
}

.drama-outline-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  margin: 0;
}

.drama-outline-section-text {
  font-size: 13px;
  line-height: 1.6;
  color: #9ca3af;
  margin: 0;
  padding-left: 28px;
}

/* 分集列表 */
.drama-outline-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 28px;
}

.drama-outline-episode {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.drama-outline-episode:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.2);
}

.drama-outline-episode-num {
  color: #8b5cf6;
  font-weight: 500;
  flex-shrink: 0;
}

.drama-outline-episode-title {
  color: #d1d5db;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drama-outline-episode-more {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  padding: 8px;
}

/* 列表样式 */
.drama-outline-list {
  list-style: none;
  padding-left: 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drama-outline-list li {
  font-size: 13px;
  color: #9ca3af;
  padding-left: 16px;
  position: relative;
}

.drama-outline-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #8b5cf6;
}

/* 展开/收起按钮 */
.drama-outline-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #9ca3af;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drama-outline-expand-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.drama-outline-expand-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.drama-outline-card.expanded .drama-outline-expand-icon {
  transform: rotate(180deg);
}

/* 响应式 */
@media (max-width: 640px) {
  .drama-outline-card {
    padding: 16px;
  }

  .drama-outline-header {
    gap: 12px;
  }

  .drama-outline-icon {
    width: 40px;
    height: 40px;
  }

  .drama-outline-title {
    font-size: 15px;
  }

  .drama-outline-meta {
    font-size: 12px;
  }
}
