/*
 Theme Name: CP社 - 专属高级流媒体主题
 Theme URI: https://cpshe.cn
 Description: 基于 Blocksy 深度定制的女性向纯爱影视资源主题，包含大厂级前端 UI 与私域引流引擎。
 Author: CP社
 Author URI: https://cpshe.cn
 Template: blocksy
 Version: 1.3
 */

/* ============================================
   基础 Reset 与 CSS 变量 (你原本的代码从这里开始往下保留)
   ============================================ */
:root {
  --bg-dark: #0f0f11;
  --primary-accent: #ff4d4f;
  --primary-hover: #ff7875;
  --card-radius: 12px;
  --glass-blur: blur(20px);
  --glass-bg: rgba(15, 15, 17, 0.75);
}

body {
  background-color: var(--bg-dark) !important; /* 强制生效 */
  color: #f3f4f6;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 70px;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { padding-bottom: 0px; }
}

/* ============================================
   毛玻璃与隐藏滚动条
   ============================================ */
.glass-effect {
  -webkit-backdrop-filter: var(--glass-blur) !important;
  backdrop-filter: var(--glass-blur) !important;
  background-color: var(--glass-bg) !important;
  border-color: rgba(255, 255, 255, 0.05);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================
   卡片 — 圆润质感与底纹
   ============================================ */
.custom-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  background-color: #000;
  transform: translateZ(0);
  isolation: isolate;
  border: none !important;
  box-shadow: 0 0 0 1px transparent !important;
  outline: none !important;
  /* 终极抗锯齿防漏光神器：强制 GPU 使用严格的矢量蒙版裁剪圆角，彻底消除任何次像素白边 */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  /* 添加极其平滑的阴影与边框过渡 */
  transition: box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-card img {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* 物理扩容法（免编译底层保障）：图像向四周延展 1px，彻底填补 GPU 栅格化缝隙 */
  width: calc(100% + 2px) !important;
  height: calc(100% + 2px) !important;
  max-width: none !important;
  top: -1px !important;
  left: -1px !important;
}

.group:hover .custom-card img {
  transform: scale(1.06) translateZ(0);
}

.card-overlay {
  background: linear-gradient(to top, rgba(15,15,17,0.95) 0%, rgba(15,15,17,0.4) 40%, transparent 100%);
  bottom: -2px !important;
}

/* ============================================
   固定底栏与影视标签
   ============================================ */
.strict-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  height: 56px;
}
.movie-tag {
  background-color: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem; /* 圆角标签，对标html */
  font-size: 0.7rem;
}
@media (min-width: 768px) {
  .movie-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
}

/* ============================================
   分页导航 (Pagination)
   ============================================ */
.pagination-custom {
  width: 100%;
}
.pagination-custom .screen-reader-text {
  display: none;
}
.pagination-custom .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.pagination-custom .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}
.pagination-custom .page-numbers:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-accent);
}
.pagination-custom .page-numbers.current {
  color: #fff;
  background-color: var(--primary-accent);
  border-color: var(--primary-accent);
  box-shadow: 0 4px 15px rgba(255, 77, 79, 0.3);
}
.pagination-custom .prev.page-numbers,
.pagination-custom .next.page-numbers {
  background-color: transparent;
  color: #d1d5db;
  border-color: transparent;
}
.pagination-custom .prev.page-numbers:hover,
.pagination-custom .next.page-numbers:hover {
  color: var(--primary-accent);
  background-color: rgba(255, 255, 255, 0.05);
}
