/* StreamsPage 美化样式 */

/* 整体页面样式 */
.streams-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: var(--dark-color, #404040);
  background-color: var(--bg-color, #f7f8fe);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* URL输入区域样式 */
.url-input-section {
  margin-bottom: 20px;
  /* background: linear-gradient(to right, rgba(var(--primary-color-rgb, 124, 58, 237), 0.05), rgba(var(--primary-color-rgb, 124, 58, 237), 0.1)); */
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.url-input-box {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
}

.url-input-box input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px 0 0 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.url-input-box input:focus {
  outline: none;
  border-color: var(--primary-color, #7c3aed);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 124, 58, 237), 0.15);
}

/* 统一按钮基础样式 */
.btn-primary {
  background: var(--primary-gradient, linear-gradient(45deg, #7c3aed, #8b5cf6));
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(var(--primary-color-rgb, 124, 58, 237), 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--primary-color-rgb, 124, 58, 237), 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: linear-gradient(45deg, #BDBDBD, #E0E0E0);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

/* 修改播放按钮样式 */
.play-button, .search-button {
  background: var(--primary-gradient, linear-gradient(45deg, #7c3aed, #8b5cf6));
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(var(--primary-color-rgb, 124, 58, 237), 0.15);
}

.description-toggle-btn {
  background: none;
  border: none;
  color: var(--primary-color, #ebe5f5);
  cursor: pointer;
  font-size: 14px;
  padding: 8px 16px;
  margin-top: 10px;
  transition: all 0.25s ease;
  font-weight: 600;
}

.description-toggle-btn:hover {
  color: var(--primary-color, #e8e1f2);
  transform: translateY(-2px);
}

/* 修改剧集按钮样式 */
.episode-button {
  background-color: white;
  border: 1px solid rgba(var(--primary-color-rgb, 124, 58, 237), 0.2);
  border-radius: 8px;
  padding: 8px;
  font-size: 14px;
  color: var(--dark-color, #333);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.episode-button:hover {
  background-color: rgba(var(--primary-color-rgb, 124, 58, 237), 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(var(--primary-color-rgb, 124, 58, 237), 0.08);
}

.episode-button.active {
  background: var(--primary-gradient, linear-gradient(45deg, #7c3aed, #8b5cf6));
  color: white;
  font-weight: 600;
  border-color: var(--primary-color, #7c3aed);
  box-shadow: 0 2px 6px rgba(var(--primary-color-rgb, 124, 58, 237), 0.2);
}

/* 修改分页按钮样式 */
.page-button {
  background: var(--primary-gradient, linear-gradient(45deg, #7c3aed, #8b5cf6));
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  min-width: 100px;
  box-shadow: 0 2px 6px rgba(var(--primary-color-rgb, 124, 58, 237), 0.15);
}


/* 修改清除历史记录按钮 */
.clear-history-btn {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--gray-color, #777);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.clear-history-btn:hover {
  background-color: rgba(var(--error-color-rgb, 244, 67, 54), 0.08);
  color: var(--error-color, #f44336);
  border-color: rgba(var(--error-color-rgb, 244, 67, 54), 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(var(--error-color-rgb, 244, 67, 54), 0.1);
}

/* 播放器区域样式 */
.player-section {
  margin: 25px 0;
}

.player-container {
  /* background-color: #ffffff; */
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.player-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  /* background: var(--primary-gradient, linear-gradient(90deg, #7c3aed, #8b5cf6)); */
}

.stream-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stream-info-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color, #333);
  margin: 0;
}

.stream-quality-info {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.04);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.quality-label {
  margin-right: 5px;
  color: #555;
}

.quality-value {
  font-weight: bold;
  color: var(--primary-color, #7c3aed);
}

/* 搜索和筛选区域样式 */
.streams-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  width: 100%;
  /* background: white; */
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
}

.search-bar {
  flex-grow: 1;
  display: flex;
}

.search-bar input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  /* background: rgba(250, 250, 250, 0.8); */
}

.search-bar input:focus {
  border-color: var(--primary-color, #7c3aed);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 124, 58, 237), 0.1);
  outline: none;
  background: white;
}

.filter-options {
  min-width: 150px;
  position: relative;
}

.filter-options::after {
  content: "▼";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color, #7c3aed);
  font-size: 10px;
  pointer-events: none;
}

.filter-options select {
  padding: 12px 15px;
  padding-right: 35px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  appearance: none;
  background-color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-options select:focus {
  border-color: var(--primary-color, #7c3aed);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 124, 58, 237), 0.1);
  outline: none;
}

/* 流媒体卡片样式 */
.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.stream-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  position: relative;
}

.stream-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.stream-thumbnail {
  height: 130px;
  position: relative;
  overflow: hidden;
}

.stream-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.stream-card:hover .stream-image {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3) 50%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
  cursor: pointer;
  z-index: 2;
}


.stream-card:hover .play-overlay {
  opacity: 1;
}

/* .play-icon {
  color: white;
  font-size: 48px;
  background: rgba(var(--primary-color-rgb, 124, 58, 237), 0.8);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.stream-card:hover .play-icon {
  transform: scale(1);
} */
.play-icon {
  color: white;
  font-size: 48px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb, 124, 58, 237), 0.85);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0.9;
}

.stream-card:hover .play-icon {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 历史记录部分 */
.history-section {
  margin: 1.5rem 0;
  background: linear-gradient(to right, rgba(var(--primary-color-rgb, 124, 58, 237), 0.03), rgba(var(--primary-color-rgb, #f1effe), 0.08));
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.history-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient, linear-gradient(to bottom, #7c3aed, #8b5cf6));
  border-radius: 4px 0 0 4px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.history-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color, #333);
  display: flex;
  align-items: center;
}

.history-header h2::before {
  content: "⏱";
  margin-right: 8px;
  font-size: 1.1rem;
}

.history-items {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: thin; /* Firefox */
}

.history-items::-webkit-scrollbar {
  height: 6px;
}

.history-items::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 3px;
}

.history-items::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.history-items::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.25);
}

.history-item {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  max-width: 200px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.history-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.history-thumbnail {
  height: 90px;
  position: relative;
  overflow: hidden;
}

.history-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.history-item:hover .history-image {
  transform: scale(1.05);
}

.history-play-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background-color: rgba(var(--primary-color-rgb, 124, 58, 237), 0.9);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: scale(0.9);
}

.history-item:hover .history-play-icon {
  opacity: 1;
  transform: scale(1);
}

.history-info {
  padding: 12px;
}

.history-info h3 {
  margin: 0 0 5px 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dark-color, #333);
}

.history-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gray-color, #888);
}

/* 折叠内容样式优化 */
.description-content {
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--gray-color, #444);
}

.description-content.collapsed {
  max-height: 4.8em; /* 约显示3行文字 */
  overflow: hidden;
  position: relative;
}

.description-content.collapsed .movie-details {
  opacity: 0; /* 完全隐藏演职人员信息 */
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.description-content.collapsed:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.6em;
  background: linear-gradient(transparent, var(--bg-color, #ffffff));
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* 电影详情样式 */
.movie-details {
  background-color: rgba(var(--primary-color-rgb, 124, 58, 237), 0.04);
  border-radius: 12px;
  padding: 18px;
  margin: 15px 0;
  border: 1px solid rgba(var(--primary-color-rgb, 124, 58, 237), 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .streams-page {
    padding: 15px;
    border-radius: 12px;
  }
  
  .url-input-section {
    padding: 12px;
  }
  
  .streams-filter {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 6px;
  }
  
  .filter-options {
    min-width: 100px;
  }
  
  .filter-options select {
    font-size: 13px;
    padding: 10px;
    padding-right: 25px;
  }
  
  .search-bar input {
    padding: 10px;
    font-size: 13px;
  }
  
  .search-button {
    padding: 10px 12px;
    font-size: 13px;
    min-width: 60px;
  }

  .player-container {
    padding: 15px;
    border-radius: 12px;
  }
  
  .url-input-box {
    flex-direction: column;
  }
  
  .url-input-box input {
    border-radius: 8px;
    margin-bottom: 10px;
  }

  /* 超小屏幕分页适配 */
  .pagination {
    width: 100%;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .play-button {
    border-radius: 8px;
    width: 100%;
  }

  .stream-info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .stream-quality-info {
    margin-top: 5px;
  }

  .history-items {
    gap: 10px;
  }

  .history-item {
    min-width: 150px;
    max-width: 160px;
  }
  
  .history-thumbnail {
    height: 90px;
  }

  /* 分页组件移动端样式 */
  .pagination {
    margin-top: 25px;
    gap: 10px;
  }
  
  .page-button {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .page-info {
    text-align: center;
    width: 100%;
    padding: 5px 0;
  }
  
  .streams-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  
  .stream-thumbnail {
    height: 130px;
  }
  
  .stream-info {
    padding: 12px;
  }
  
  .stream-info h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .stream-info p {
    font-size: 0.8rem;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
  }
  
  .stream-meta {
    gap: 5px;
  }
  
  .stream-category, 
  .stream-meta .stream-year, 
  .stream-meta .stream-remarks, 
  .stream-meta .stream-duration {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .episode-selector {
    padding: 12px;
  }
  
  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
  }
  
  .episode-button {
    padding: 6px;
    font-size: 12px;
  }
}

.stream-category {
  background-color: rgba(var(--primary-color-rgb, 124, 58, 237), 0.1);
  color: var(--primary-color, #7c3aed);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

/* 分页控件 */
/* .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 35px 0;
  gap: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
} */
/* 分页样式 - 完全重写 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-info {
  font-size: 0.95rem;
  color: var(--dark-color, #333);
  font-weight: 500;
  padding: 0 15px;
  text-align: center;
}

.page-button {
  width: 40px;
  height: 40px;
  min-width: 40px; /* 确保最小宽度 */
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: white;
  color: var(--primary-color, #7c3aed);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative; /* 为绝对定位做准备 */
  overflow: hidden; /* 防止文本溢出 */
}

.page-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #999;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

/* 搜索错误提示 */
.search-error {
  background-color: rgba(var(--error-color-rgb, 244, 67, 54), 0.1);
  border-left: 4px solid var(--error-color, #f44336);
  padding: 18px;
  margin-bottom: 25px;
  border-radius: 8px;
  color: var(--error-dark-color, #d32f2f);
  box-shadow: 0 4px 15px rgba(var(--error-color-rgb, 244, 67, 54), 0.1);
}

.search-error .offline-tip {
  color: var(--gray-color, #666);
  font-size: 14px;
  margin: 12px 0;
  font-style: italic;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
}

.search-error .error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.search-error .retry-button {
  background: linear-gradient(45deg, var(--error-color, #f44336), var(--error-light-color, #e57373));
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
}

.search-error .mock-button {
  background: var(--primary-gradient, linear-gradient(45deg, #7c3aed, #8b5cf6));
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
}

/* 加载动画样式 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 增强流媒体卡片的样式 */
.stream-meta .stream-year {
  background-color: rgba(var(--primary-color-rgb, 124, 58, 237), 0.08);
  color: var(--primary-color, #7c3aed);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.stream-meta .stream-remarks {
  background-color: rgba(16, 185, 129, 0.1);
  color: rgb(16, 185, 129);
}

.stream-meta .stream-duration {
  background-color: rgba(var(--primary-color-rgb, 124, 58, 237), 0.15);
  color: var(--primary-color, #7c3aed);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

/* 标题样式 */
h1 {
  margin-bottom: 15px;
  color: var(--dark-color, #333);
  font-weight: 700;
}

.page-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  color: var(--dark-color, #333);
  font-weight: 700;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient, linear-gradient(45deg, #7c3aed, #8b5cf6));
  border-radius: 2px;
}

.description {
  color: var(--gray-color, #666);
  margin-bottom: 30px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 视频播放器自定义样式 */
.video-player-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  margin-bottom: 20px;
}

/* 剧集选择器样式增强 */
.episode-selector {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(var(--primary-color-rgb, 124, 58, 237), 0.03);
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-color-rgb, 124, 58, 237), 0.08);
}

.episode-title {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--dark-color, #333);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.episode-title::before {
  content: "📺";
  margin-right: 8px;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
}

.stream-info {
  padding: 12px;
}

.stream-info h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-info p {
  margin-bottom: 10px;
  -webkit-line-clamp: 2;
}

.stream-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* 推荐部分样式 */
.recommendation-section {
  margin-top: 20px;
  margin-bottom: 40px;
}

/* 确保推荐卡片在不同主题下都能正常显示 */
.recommendation-card {
  background-color: var(--card-bg-color, #fff);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* 适配暗色模式 */
@media (prefers-color-scheme: dark) {
  .recommendation-card {
    background-color: var(--card-bg-color-dark, #333);
  }
} 