/* Shared pagination — PC circle pager + H5 compact bar */

.pagination--pc {
  display: none;
}

.pagination--h5 {
  display: none;
}

/* ========== H5 ========== */
@media (max-width: 768px) {
  .pagination--h5 {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    overflow: hidden;
    align-self: center;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .pagination__h5-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 18px;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
  }

  .pagination__h5-btn--prev:not(.is-disabled) {
    background: #ecd227;
    color: #333;
  }

  .pagination__h5-btn--prev.is-disabled {
    background: rgba(255, 225, 32, 0.3);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
  }

  .pagination__h5-btn--next:not(.is-disabled) {
    background: #ecd227;
    color: #333;
  }

  .pagination__h5-btn--next.is-disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
    background: rgba(255, 225, 32, 0.3);
    color: rgba(255, 255, 255, 0.5);
  }

  .pagination__h5-btn--jump {
    width: 60px;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.1);
    color: #989898;
  }

  .pagination__h5-info {
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
    font-weight: 400;
    white-space: nowrap;
  }

  .pagination__h5-input {
    width: 60px;
    height: 30px;
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
    font-weight: 400;
    box-sizing: border-box;
  }
}

/* ========== PC ========== */
@media (min-width: 769px) {
  .pagination--pc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 0;
    align-self: center;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .pagination__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #3d3d3d;
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    line-height: 22px;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
  }

  .pagination__circle:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  .pagination__circle--active {
    background: #ecd227;
    color: #3d3d3d;
    cursor: default;
  }

  .pagination__circle img {
    display: block;
    width: 24px;
    height: 24px;
  }

  .pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 48px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    line-height: 22px;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
    font-weight: 400;
  }

  .pagination__goto {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
  }

  .pagination__goto-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    line-height: 22px;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
    font-weight: 400;
  }

  .pagination__goto-input {
    width: 72px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #3d3d3d;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
    font-weight: 400;
    box-sizing: border-box;
  }

  .pagination__goto-btn {
    width: 96px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #ecd227;
    color: #3d3d3d;
    font-size: 16px;
    line-height: 22px;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
    font-weight: 400;
    cursor: pointer;
  }
}
