/* 翻页栏样式 */
.th-pagination {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 100;
  min-width: 320px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* SEO 版本 - 完全不占用空间 */
.th-pagination-seo {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.th-pagination-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.th-pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.th-pagination-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.th-pagination-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 50px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-pagination-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.th-pagination-btn.th-pagination-prev,
.th-pagination-btn.th-pagination-next {
  font-size: 13px;
  padding: 10px 16px;
}

.th-pagination-btn.th-pagination-page {
  background: rgba(255, 255, 255, 0.15);
  min-width: 50px;
}

.th-pagination-current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  min-width: 50px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* SEO隐藏的分页链接 */
.th-seo-pagination {
  display: none;
}

.th-seo-pagination a {
  color: #fff;
  text-decoration: none;
}

/* a标签样式重置 */
.th-pagination-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 跳转输入框样式 */
.th-pagination-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.th-pagination-jump-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.th-pagination-jump-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  width: 60px;
  text-align: center;
  transition: all 0.2s;
}

.th-pagination-jump-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.th-pagination-jump-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.th-pagination-jump-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.th-pagination-jump-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.th-pagination-jump-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 完整的翻页导航样式 - 显示所有页码但不占用页面空间 */
.th-pagination-full {
  position: absolute;
  left: -9999px;
  top: -9999px;
  padding: 30px 20px;
  background: #f8f9fa;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.th-pagination-nav {
  max-width: 100%;
}

.th-pagination-nav-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.th-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.th-pagination-link:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
  transform: translateY(-1px);
}

.th-pagination-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

.th-pagination-active:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 骨架屏 */
.th-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.th-skeleton-item {
  border-radius: 10px;
  overflow: hidden;
}

.th-skeleton-cover {
  position: relative;
  width: 100%;
  padding-top: 133%;
  /* 3:4 宽高比 */
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

.th-skeleton-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

.th-skeleton-title {
  height: 20px;
  margin: 12px 12px 6px 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

.th-skeleton-subtitle {
  height: 16px;
  width: 60%;
  margin: 0 12px 12px 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* 响应式设计 - 与剧集列表保持一致 */
/* 移动端：3列 */
@media (max-width: 767px) {
  .th-skeleton {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* 平板适配：5列 */
@media screen and (min-width: 768px) {
  .th-skeleton {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

/* 大屏设备适配：6列 */
@media screen and (min-width: 1024px) {
  .th-skeleton {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}