/* 站内页补充样式 · comic-pop · 活力片库横滑 + 移动端 */
:root {
  --pop-yellow: #ffeb3b;
  --pop-yellow-light: #fff9c4;
  --pop-yellow-bg: #fffde7;
  --pop-yellow-dark: #f9a825;
  --pop-red: #e53935;
  --pop-red-dark: #c62828;
  --pop-red-soft: rgba(229, 57, 53, 0.12);
  --pop-blue: #1565c0;
  --pop-blue-dark: #0d47a1;
  --pop-blue-soft: rgba(21, 101, 192, 0.12);
  --bg-page: var(--pop-yellow-bg);
  --card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5d4037;
  --line: #ffe082;
}

/* 内页容器 */
.inner-page--cq {
  padding: 28px 0 52px;
}

.inner-page--cq .page-head-panel {
  margin-bottom: 16px;
}

.inner-page--cq .section-title h1 {
  border-left: 5px solid var(--pop-red);
  padding-left: 14px;
}

.inner-page--cq .section-title p {
  color: var(--text-muted);
}

/* 筛选面板 */
.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: 0 2px 12px rgba(249, 168, 37, 0.1);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--pop-blue);
  box-shadow: 0 0 0 3px var(--pop-blue-soft);
}

/* 排行徽章 */
.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--pop-red), var(--pop-red-dark));
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
}

.tuy-card .tuy-card__media {
  position: relative;
}

/* 空状态 */
.search-empty,
.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-radius: 14px;
  background: var(--card);
  border: 2px dashed var(--line);
}

/* 分类页网格 */
.category-page-grid.home-pop-cats__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* 热播横滑条 */
.cq-block--hot-strip {
  margin-bottom: 8px;
}

.cq-scroll-strip {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--pop-red) var(--pop-yellow-light);
  padding-bottom: 8px;
  margin: 0 -4px;
}

.cq-scroll-strip::-webkit-scrollbar {
  height: 6px;
}

.cq-scroll-strip::-webkit-scrollbar-track {
  background: var(--pop-yellow-light);
  border-radius: 999px;
}

.cq-scroll-strip::-webkit-scrollbar-thumb {
  background: var(--pop-red);
  border-radius: 999px;
}

.cq-card-grid--scroll {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  grid-template-columns: unset !important;
  padding: 4px 4px 8px;
}

.cq-card-grid--scroll > .tuy-card {
  flex: 0 0 min(200px, 42vw);
  scroll-snap-align: start;
  max-width: 200px;
}

.cq-block--hot-strip .cq-block__head h2 {
  border-left-color: var(--pop-red) !important;
}

/* 频道区块横滑（HOME_SECTIONS） */
.home-tuyona__stack > .cq-block:nth-of-type(even) .cq-card-grid--dense {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  gap: 16px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--pop-blue) var(--pop-yellow-light);
}

.home-tuyona__stack > .cq-block:nth-of-type(even) .cq-card-grid--dense > .tuy-card {
  flex: 0 0 min(180px, 40vw);
  scroll-snap-align: start;
}

@media (max-width: 1100px) {
  .category-page-grid.home-pop-cats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .category-page-grid.home-pop-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-page--cq {
    padding: 16px 0 40px;
  }

  .cq-card-grid--scroll > .tuy-card {
    flex: 0 0 min(160px, 52vw);
  }

  .footer-tuy__grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .footer-tuy__mid-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

/* 播放器描述 */
.mother-play-desc {
  max-width: min(1180px, calc(100% - 32px));
  margin: 12px auto 24px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.mirror-player-slot {
  max-width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 16px;
}

.mirror-player-slot video {
  border-radius: 12px;
  border: 3px solid var(--pop-blue);
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.18);
}

.video-frame--play video {
  border: 3px solid var(--pop-red);
  border-radius: 12px;
}

/* 区块入场微动效 */
.cq-block,
.home-pop-cats,
.tuyona-features {
  animation: cpFadeUp 0.45s ease both;
}

@keyframes cpFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cq-block,
  .home-pop-cats,
  .tuyona-features {
    animation: none;
  }

  .cq-scroll-strip,
  .home-tuyona__stack > .cq-block:nth-of-type(even) .cq-card-grid--dense {
    scroll-behavior: auto;
  }
}
