/* Core overrides & extras for PangXie.TV */

/* Core layout tweaks */

body {
  background-attachment: fixed;
}

.site-nav {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.nav-link.nav-link-active {
  text-shadow: 0 0 18px rgba(251, 146, 60, 0.75);
}

/* Search icon placeholder (can be extended with real SVG) */

.nav-search::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1.6px solid rgba(148, 163, 184, 0.84);
  box-shadow: 2px 2px 0 0 rgba(148, 163, 184, 0.84);
  opacity: 0.78;
}

/* Section header ornament */

.section-header-main h2 {
  position: relative;
  padding-left: 12px;
}

.section-header-main h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 52%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #f97316, #fb7185);
  box-shadow: 0 6px 20px rgba(248, 113, 22, 0.7);
}

/* Card shadows / hover extras */

.hot-item .hot-cover {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.86);
}

.hot-link:hover .hot-cover {
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.96);
}

/* Rating badge variant (optional) */

.hot-rating {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(250, 204, 21, 0.7);
}

/* Footer gradient extras */

.footer {
  background-image:
    radial-gradient(circle at top, rgba(30, 64, 175, 0.32), transparent 52%),
    radial-gradient(circle at 10% 120%, rgba(248, 113, 22, 0.22), transparent 55%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 1));
}

/* Mobile nav open state helper */

.nav-mobile-panel.open {
  display: block;
}

/* Hero QR subtle animation */

.qr-box img {
  transform-origin: center;
  transition: transform 0.4s ease-out;
}

.qr-box:hover img {
  transform: scale(1.03);
}

/* Download button subtle glow */

.btn-primary {
  position: relative;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.3), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.btn-primary:hover::after {
  opacity: 1;
}

/* Small tweaks for mid-width */

@media (max-width: 960px) {
  .nav-inner {
    gap: 12px;
  }

  .nav-search {
    display: none;
  }
}
/* ===== Mobile Nav ===== */

.nav-mobile-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: #050816;
  z-index: 1001;
  padding: 20px;
  transition: right .28s ease;
  box-shadow: -20px 0 40px rgba(0,0,0,.6);
}

.nav-mobile-panel.open {
  right: 0;
}

.nav-mobile-links a {
  display: block;
  font-size: 16px;
  color: #f9fafb;
  border-bottom: 1px solid rgba(148,163,184,.15);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
}

.nav-overlay.show {
  display: block;
}

/* 锁滚动 */
body.nav-open {
  overflow: hidden;
}
.paging-beauty{
  margin:28px auto 10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  align-items:center;
  font-size:14px;
}

.paging-beauty a{
  text-decoration:none;
}

.paging-beauty .pg-num,
.paging-beauty .pg-btn{
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#e5e7eb;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  transition:.15s ease;
}

.paging-beauty .pg-num:hover,
.paging-beauty .pg-btn:hover{
  background:rgba(255,255,255,.12);
}

.paging-beauty .pg-num.active{
  background:linear-gradient(135deg,#ff7a18,#ffb347);
  color:#111;
  border:none;
  font-weight:600;
}

.paging-beauty .pg-btn.disabled{
  opacity:.35;
  pointer-events:none;
}

.paging-beauty .pg-ellipsis{
  color:#9ca3af;
  padding:0 4px;
  user-select:none;
}
#content{
  min-height:60vh;
}
.seo-text{
  min-height:120px;
}
/* ========== CLS 修复 ========= */

/* 海报图片提前占位（核心） */
.mediacard img{
  width:100%;
  height:auto;
  aspect-ratio:2 / 3;
  display:block;
  background:#0b1020;
}

/* 列表容器提前占位，防止 JS 插入抖动 */
.hot-list{
  min-height:320px;
}
.media-card .poster{
  aspect-ratio:2/3;
  overflow:hidden;
}

.media-card .poster img{
  width:100%;
  height:100%;
  object-fit:cover;
}
/* 预占首页列表高度，防止 CLS */

.section .hot-list {
    min-height: 360px;
    contain-intrinsic-size: 360px;
}
.section-header-main h2{
  position: relative;
  padding-left: 14px;   /* 给 before 预留空间 */
}

.section-header-main h2::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);

  width:6px;
  height:16px;

  border-radius:3px;
  background: linear-gradient(180deg,#fb923c,#f97316);

  display:block;
}
