h1 {
      font-size: 22px;
      color: #ffe066;
      margin: 16px 0 12px;
    }
    .search-key {
      font-size: 16px;
      margin-bottom: 16px;
    }
    .video-grid {
      display: flex;
      flex-wrap: wrap;
      margin-left: -6px;
      margin-right: -6px;
    }
    .video-card {
      width: 14.28%;
      padding: 6px;
      box-sizing: border-box;
    }
    @media screen and (max-width: 1023px) {
      .video-card {
        width: 33.33%;
      }
    }
    @media screen and (max-width: 767px) {
      .video-card {
        width: 33.33%;
      }
    }
    .video-card-inner {
      background: #1a1a1a;
      border-radius: 6px;
      overflow: hidden;
      transition: transform 0.2s;
    }
    .video-card-inner:hover {
      transform: scale(1.02);
    }
    .video-thumb-wrap {
      display: block;
      position: relative;
      width: 100%;
      padding-top: 150%;
      background: #000;
    }
    .video-thumb-wrap img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .video-badge {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      font-size: 12px;
      padding: 2px 4px;
      text-align: center;
    }
    .video-info {
      padding: 6px;
    }
    .video-title {
      font-size: 14px;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .pagination {
      margin-top: 20px;
      text-align: center;
    }
    .pagination a,
    .pagination span {
      display: inline-block;
      margin: 0 4px;
      padding: 4px 10px;
      background: rgba(255,255,255,0.05);
      color: #ccc;
      font-size: 13px;
      border-radius: 4px;
      text-decoration: none;
    }
    .pagination a:hover,
    .pagination .current {
      background: #ff4757;
      color: #ffffff;
    }
footer{
    text-align: center;
    font-size: 16px;
    color: #555;
}
.pagination {
  margin: 10px 0;
  text-align: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pagination::-webkit-scrollbar {
  display: none;
}
.pagination ul {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ccc;
  text-decoration: none;
  min-width: 36px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.pagination a:hover {
  background: #ff6b81;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,107,129,0.4);
}

.pagination li.active span {
  background: #ff4757;
  color: #fff;
  font-weight: bold;
  cursor: default;
}

.pagination li.disabled span {
  color: #666;
  background: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

.pagination li.hidden-xs {
  display: inline-block;
}

.pagination li.visible-xs {
  display: none;
}

/* 移动端适配：隐藏多余页码，仅保留当前页/总页数 */
@media screen and (max-width: 768px) {
  .pagination ul {
    gap: 6px;
    justify-content: flex-start;
    padding: 0 10px;
    
  }

  .pagination li.hidden-xs {
    display: none;
  }

  .pagination li.visible-xs {
    display: inline-block;
  }

  .pagination a,
  .pagination span {
    padding: 5px 10px;
    font-size: 12px;
    min-width: auto;
  }
}


