.episode-selector {
  margin-top: 20px;
  background-color: var(--bg-color, #fcfbfe);
  border-radius: 8px;
  padding: 15px;
}

.episode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--primary-color-rgb, 124, 58, 237), 0.1);
}

.episode-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--dark-color, #333);
}

.episode-count {
  color: var(--gray-color, #666);
  font-size: 14px;
}

.episode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.episode-item {
  padding: 8px 15px;
  background-color: #fff;
  border: 1px solid rgba(var(--primary-color-rgb, 124, 58, 237), 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 14px;
  color: var(--dark-color, #333);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

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

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

/* 分页控件样式 */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.page-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-button {
  background: var(--primary-gradient, linear-gradient(45deg, #7c3aed, #8b5cf6));
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(var(--primary-color-rgb, 124, 58, 237), 0.15);
  z-index: 1; /* 确保按钮在上层 */
}

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

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

.page-info {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--dark-color, #333);
}

.current-page {
  font-weight: bold;
  color: var(--primary-color, #7c3aed);
  margin-right: 2px;
}

.total-pages {
  color: var(--gray-color, #666);
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 5px;
}

.jump-input {
  width: 50px;
  padding: 5px;
  border: 1px solid rgba(var(--primary-color-rgb, 124, 58, 237), 0.2);
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

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

.jump-button {
  background: var(--primary-gradient, linear-gradient(45deg, #7c3aed, #8b5cf6));
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 14px;
  z-index: 1; /* 确保按钮在上层 */
}

.jump-button:hover {
  background: var(--primary-gradient, linear-gradient(45deg, #6c2aed, #7b4cf6));
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(var(--primary-color-rgb, 124, 58, 237), 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .episode-list {
    gap: 8px;
  }
  
  .episode-item {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .pagination-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-navigation {
    width: 100%;
    justify-content: space-between;
  }
  
  .page-jump {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
  }
}
