/* 社交功能样式 */

/* 剧集操作按钮 */
.series-actions {
  margin: 20px 0;
  padding: 15px;
  background: var(--gray);
  border-radius: 8px;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--dark);
  border: 1px solid var(--light-gray);
  color: white;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.action-btn span:first-child {
  font-size: 24px;
}

.action-btn span:last-child {
  font-size: 12px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  flex: 1;
  min-width: 80px;
  background: var(--dark);
  border: 1px solid var(--light-gray);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

/* 评论区 */
.comments-section {
  margin: 20px 0;
  padding: 15px;
  background: var(--gray);
  border-radius: 8px;
}

.comments-section h3 {
  margin-bottom: 15px;
}

.comment-input {
  margin-bottom: 20px;
}

.comment-input textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  color: white;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 10px;
}

.login-prompt {
  text-align: center;
  padding: 20px;
  color: var(--light-gray);
}

.login-prompt a {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

.comments-list {
  max-height: 400px;
  overflow-y: auto;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--dark);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.comment-username {
  font-weight: bold;
  font-size: 14px;
}

.comment-time {
  font-size: 12px;
  color: var(--light-gray);
}

.comment-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  word-wrap: break-word;
}

.comment-actions {
  display: flex;
  gap: 10px;
}

.comment-like {
  background: none;
  border: none;
  color: var(--light-gray);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s;
}

.comment-like:hover {
  background: rgba(255,255,255,0.1);
}

.comment-like.active {
  color: var(--primary);
}

/* 回复 */
.replies {
  margin-top: 10px;
  padding-left: 20px;
  border-left: 2px solid var(--dark);
}

.reply-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
}

.reply-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reply-content {
  flex: 1;
}

.reply-username {
  font-weight: bold;
  font-size: 13px;
  margin-right: 8px;
}

.reply-text {
  font-size: 13px;
  line-height: 1.4;
  display: inline;
}

/* 相似推荐 */
.similar-section {
  margin: 20px 0;
}

.similar-section h3 {
  margin-bottom: 15px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.similar-card {
  cursor: pointer;
  transition: transform 0.3s;
}

.similar-card:active {
  transform: scale(0.95);
}

.similar-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 5px;
}

.similar-card p {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式 */
@media (min-width: 768px) {
  .similar-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .action-buttons {
    max-width: 400px;
  }
}
