/* ==========================================================================
   夸克短剧主题 duanju
   暗黑短剧风格：纯黑背景 / #dc2626 红色强调 / 海报网格 / 详情双栏
   参考主流短剧站点视觉语言
   ========================================================================== */

/* ---------- 全局变量：强制覆盖浅色与深色两套配色 ---------- */
html:root,
html[data-uc-scheme="light"]:root,
html[data-uc-scheme="dark"]:root {
  color-scheme: dark !important;

  --dj-bg: #000000 !important;
  --dj-bg-mid: #0a0a0a !important;
  --dj-surface: #111111 !important;
  --dj-surface-2: #1a1a1a !important;
  --dj-surface-3: #222222 !important;
  --dj-glass: rgba(0, 0, 0, .85) !important;
  --dj-card: #111111 !important;
  --dj-card-solid: #111111 !important;
  --dj-chip: #1a1a1a !important;
  --dj-panel: #111111 !important;

  --dj-text: #ffffff !important;
  --dj-text-soft: #e5e5e5 !important;
  --dj-muted: #a3a3a3 !important;
  --dj-muted-2: #737373 !important;

  --dj-line: rgba(255, 255, 255, .08) !important;
  --dj-stroke: rgba(255, 255, 255, .08) !important;
  --dj-stroke-strong: rgba(255, 255, 255, .15) !important;

  --dj-accent: #dc2626 !important;
  --dj-accent-hover: #ef4444 !important;
  --dj-accent-ink: #ffffff !important;
  --dj-accent-soft: rgba(220, 38, 38, .15) !important;
  --dj-accent-deep: #ef4444 !important;
  --dj-brand: #dc2626 !important;
  --dj-brand-ink: #ffffff !important;
  --dj-brand-soft: rgba(220, 38, 38, .15) !important;

  --dj-orange: #fb923c !important;
  --dj-blue: #60a5fa !important;
  --dj-emerald: #34d399 !important;
  --dj-sky: #38bdf8 !important;

  --dj-shadow: rgba(0, 0, 0, .6) !important;
  --dj-overlay: rgba(0, 0, 0, .75) !important;

  --dj-radius: 8px !important;
  --dj-radius-lg: 12px !important;
  --dj-radius-xl: 16px !important;

  --dj-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  --dj-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;

  /* 覆盖社区变量 */
  --bg: var(--dj-bg) !important;
  --bg-mid: var(--dj-bg-mid) !important;
  --surface: var(--dj-surface) !important;
  --surface-2: var(--dj-surface-2) !important;
  --surface-3: var(--dj-surface-3) !important;
  --glass: var(--dj-glass) !important;
  --card: var(--dj-card) !important;
  --card-solid: var(--dj-card-solid) !important;
  --chip: var(--dj-chip) !important;
  --panel: var(--dj-panel) !important;
  --text: var(--dj-text) !important;
  --text-soft: var(--dj-text-soft) !important;
  --muted: var(--dj-muted) !important;
  --muted-2: var(--dj-muted-2) !important;
  --line: var(--dj-line) !important;
  --stroke: var(--dj-stroke) !important;
  --stroke-strong: var(--dj-stroke-strong) !important;
  --accent: var(--dj-accent) !important;
  --accent-hover: var(--dj-accent-hover) !important;
  --accent-ink: var(--dj-accent-ink) !important;
  --accent-soft: var(--dj-accent-soft) !important;
  --accent-deep: var(--dj-accent-deep) !important;
  --brand: var(--dj-brand) !important;
  --brand-ink: var(--dj-brand-ink) !important;
  --brand-soft: var(--dj-brand-soft) !important;
  --shadow: var(--dj-shadow) !important;
  --overlay: var(--dj-overlay) !important;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .55) !important;
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, .45), 0 14px 34px rgba(0, 0, 0, .6) !important;
  --main-bar-h: 56px !important;
  --radius: var(--dj-radius) !important;
  --radius-sm: 6px !important;
  --font: var(--dj-font) !important;
  --font-sans: var(--dj-font) !important;
  --font-mono: var(--dj-font-mono) !important;
}

/* ---------- 基础 ---------- */
body {
  background: var(--dj-bg) !important;
  color: var(--dj-text) !important;
  font-family: var(--dj-font) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(220, 38, 38, .4) !important;
  color: #fff !important;
}

/* ---------- 无障碍：跳转到正文 ---------- */
.dj-skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--dj-accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: top .2s ease;
}

.dj-skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 999px;
  border: 1px solid #000;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* ---------- 隐藏社区默认侧边栏 ---------- */
.sidebar,
.bar-left,
.bar-brand {
  display: none !important;
}

/* ---------- 主布局 ---------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- 顶部导航 ---------- */
.dj-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .92), rgba(0, 0, 0, .6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}

.dj-navbar.is-scrolled {
  background: rgba(0, 0, 0, .95);
  border-bottom-color: var(--dj-line);
}

.dj-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  max-width: 100%;
}

@media (min-width: 768px) {
  .dj-navbar-inner {
    padding: 0 48px;
    height: 64px;
  }
}

/* Logo */
.dj-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dj-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dj-logo-icon svg {
  width: 100%;
  height: 100%;
  color: var(--dj-accent);
}

.dj-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--dj-accent);
  letter-spacing: -0.5px;
  transition: color .2s ease;
}

.dj-logo:hover .dj-logo-text {
  color: var(--dj-accent-hover);
}

@media (min-width: 768px) {
  .dj-logo-text {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .dj-logo-text {
    font-size: 28px;
  }
}

/* 导航链接 */
.dj-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 767px) {
  .dj-nav {
    display: none;
  }
}

.dj-nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--dj-muted);
  transition: color .2s ease;
  position: relative;
  padding: 4px 0;
}

.dj-nav-item:hover,
.dj-nav-item.is-active {
  color: var(--dj-text);
}

.dj-nav-item.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--dj-accent);
  border-radius: 1px;
}

/* 导航下拉 */
.dj-nav-dropdown {
  position: relative;
}

.dj-nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dj-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s ease;
}

.dj-nav-dropdown-btn:hover {
  color: var(--dj-text);
}

.dj-nav-dropdown-btn.is-active {
  color: var(--dj-text);
}

.dj-nav-dropdown-btn svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.dj-nav-dropdown:hover .dj-nav-dropdown-btn svg {
  transform: rotate(180deg);
}

.dj-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 100;
}

.dj-nav-dropdown:hover .dj-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dj-nav-dropdown-panel {
  width: 360px;
  background: rgba(20, 20, 20, .98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dj-line);
  border-radius: var(--dj-radius-xl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
  padding: 20px;
}

.dj-nav-dropdown-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.dj-nav-dropdown-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dj-nav-dropdown-dot.is-red {
  background: var(--dj-accent);
}

.dj-nav-dropdown-dot.is-sky {
  background: var(--dj-sky);
}

.dj-nav-dropdown-dot.is-emerald {
  background: var(--dj-emerald);
}

.dj-nav-dropdown-dot.is-orange {
  background: var(--dj-orange);
}

.dj-nav-dropdown-label {
  font-size: 12px;
  font-weight: 700;
}

.dj-nav-dropdown-label.is-red {
  color: #fca5a5;
}

.dj-nav-dropdown-label.is-sky {
  color: #7dd3fc;
}

.dj-nav-dropdown-label.is-emerald {
  color: #6ee7b7;
}

.dj-nav-dropdown-label.is-orange {
  color: #fdba74;
}

.dj-nav-dropdown-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dj-nav-dropdown-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--dj-text-soft);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--dj-line);
  border-radius: 999px;
  transition: all .2s ease;
  cursor: pointer;
}

.dj-nav-dropdown-tag:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--dj-stroke-strong);
  color: var(--dj-text);
}

.dj-nav-dropdown-tag.is-active {
  background: rgba(220, 38, 38, .16);
  border-color: rgba(220, 38, 38, .5);
  color: var(--dj-text);
}

/* 搜索按钮 */
.dj-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--dj-line);
  border-radius: 999px;
  color: var(--dj-muted);
  cursor: pointer;
  transition: all .2s ease;
}

.dj-search-btn:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--dj-stroke-strong);
}

.dj-search-btn svg {
  width: 16px;
  height: 16px;
}

.dj-search-btn span {
  font-size: 14px;
  display: none;
}

.dj-search-btn kbd {
  font-size: 10px;
  padding: 2px 6px;
  background: transparent;
  border: 1px solid var(--dj-line);
  border-radius: 4px;
  font-family: inherit;
  color: var(--dj-muted-2);
  display: none;
}

@media (min-width: 768px) {
  .dj-search-btn span {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .dj-search-btn kbd {
    display: inline;
  }
}

/* 移动端菜单按钮 */
.dj-mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: var(--dj-radius);
  color: var(--dj-text);
  cursor: pointer;
  transition: background .2s ease;
}

.dj-mobile-menu-btn:hover {
  background: rgba(255, 255, 255, .1);
}

.dj-mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .dj-mobile-menu-btn {
    display: none;
  }
}

/* 移动端抽屉菜单 */
.dj-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.dj-mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
}

.dj-mobile-drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
}

.dj-mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--dj-surface);
  border-right: 1px solid var(--dj-line);
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}

.dj-mobile-drawer.is-open .dj-mobile-drawer-panel {
  transform: translateX(0);
}

.dj-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dj-line);
}

.dj-mobile-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--dj-radius);
  color: var(--dj-text);
  cursor: pointer;
}

.dj-mobile-drawer-close:hover {
  background: rgba(255, 255, 255, .1);
}

.dj-mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.dj-mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  color: var(--dj-text-soft);
  border-bottom: 1px solid var(--dj-line);
}

.dj-mobile-nav-item:last-child {
  border-bottom: none;
}

.dj-mobile-nav-item:hover {
  color: var(--dj-text);
}

.dj-mobile-nav-section {
  margin-top: 20px;
}

.dj-mobile-nav-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--dj-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.dj-mobile-nav-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin: 4px 4px 4px 0;
  font-size: 13px;
  color: var(--dj-text-soft);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--dj-line);
  border-radius: 999px;
}

.dj-mobile-nav-tag.is-active {
  color: var(--dj-text);
  background: rgba(220, 38, 38, .16);
  border-color: rgba(220, 38, 38, .5);
}

/* ---------- 主内容区 ---------- */
.dj-main {
  flex: 1;
  padding-top: 56px;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .dj-main {
    padding-top: 64px;
  }
}

.dj-container {
  padding: 0 16px;
  max-width: 100%;
}

@media (min-width: 768px) {
  .dj-container {
    padding: 0 48px;
  }
}

/* ---------- 首页海报网格（手机端两列，minmax(0,1fr) 防 nowrap 元信息撑破） ---------- */
.dj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 0;
}

@media (min-width: 640px) {
  .dj-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .dj-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .dj-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .dj-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

/* 短剧卡片 */
.dj-card {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
  transition: transform .3s ease, z-index .3s ease;
}

.dj-card:hover {
  transform: scale(1.02);
  z-index: 10;
}

.dj-card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--dj-radius-lg);
  background: var(--dj-surface-2);
}

.dj-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.dj-card:hover .dj-card-poster img {
  transform: scale(1.05);
}

.dj-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .4), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: var(--dj-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.dj-card:hover .dj-card-overlay {
  opacity: 1;
}

.dj-card-overlay-content {
  transform: translateY(8px);
  transition: transform .3s ease;
}

.dj-card:hover .dj-card-overlay-content {
  transform: translateY(0);
}

.dj-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--dj-accent);
  color: #fff;
  margin-bottom: 8px;
}

.dj-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--dj-text);
  margin-top: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}

.dj-card:hover .dj-card-title {
  color: var(--dj-accent-hover);
}

.dj-card-meta {
  font-size: 12px;
  color: var(--dj-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dj-card-episodes {
  color: var(--dj-orange);
  font-weight: 500;
}

.dj-card-date {
  color: var(--dj-muted-2);
}

/* 空状态 */
.dj-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--dj-muted);
}

.dj-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: .5;
}

.dj-empty p {
  font-size: 14px;
}

/* ---------- 分页 ---------- */
.dj-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0 60px;
}

.dj-load-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dj-text-soft);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--dj-line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}

.dj-load-more:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--dj-text);
}

.dj-load-more svg {
  width: 16px;
  height: 16px;
}

.dj-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dj-pager-btn,
.dj-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  background: rgba(255, 255, 255, .05);
  color: var(--dj-text-soft);
}

.dj-pager-btn:hover,
.dj-pager-num:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--dj-text);
}

.dj-pager-btn.is-active,
.dj-pager-num.is-active {
  background: var(--dj-accent);
  color: #fff;
  font-weight: 500;
}

.dj-pager-ellipsis {
  padding: 0 4px;
  color: var(--dj-muted-2);
}

.dj-auto-load {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dj-muted-2);
  cursor: pointer;
}

.dj-auto-load input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--dj-accent);
  cursor: pointer;
}

/* ---------- 详情页 ---------- */
.dj-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 60px;
}

@media (min-width: 768px) {
  .dj-detail {
    padding: 48px 48px 80px;
  }
}

.dj-detail-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .dj-detail-top {
    flex-direction: row;
    align-items: flex-start;
  }
}

.dj-detail-poster {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .dj-detail-poster {
    width: 360px;
    margin: 0;
  }
}

.dj-detail-poster-inner {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--dj-radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .8);
  border: 1px solid var(--dj-line);
  background: var(--dj-surface);
}

.dj-detail-poster-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.dj-detail-poster-inner:hover img {
  transform: scale(1.05);
}

.dj-detail-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent);
  opacity: 0;
  transition: opacity .5s ease;
}

.dj-detail-poster-inner:hover .dj-detail-poster-overlay {
  opacity: 1;
}

.dj-detail-info {
  flex: 1;
  min-width: 0;
}

.dj-detail-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dj-text);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}

@media (min-width: 768px) {
  .dj-detail-title {
    font-size: 42px;
  }
}

@media (min-width: 1024px) {
  .dj-detail-title {
    font-size: 48px;
  }
}

.dj-detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.dj-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--dj-radius);
}

.dj-badge-blue {
  background: rgba(59, 130, 246, .2);
  color: var(--dj-blue);
  border: 1px solid rgba(59, 130, 246, .2);
}

.dj-badge-gray {
  background: rgba(255, 255, 255, .1);
  color: var(--dj-text-soft);
  border: 1px solid var(--dj-line);
}

.dj-badge svg {
  width: 16px;
  height: 16px;
}

.dj-detail-section {
  margin-top: 32px;
}

.dj-detail-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dj-text);
  margin-bottom: 16px;
}

.dj-detail-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--dj-blue);
}

.dj-detail-section-title .dj-accent-bar {
  width: 4px;
  height: 24px;
  background: var(--dj-accent);
  border-radius: 2px;
}

.dj-detail-synopsis {
  font-size: 14px;
  color: var(--dj-text-soft);
  line-height: 1.7;
  white-space: pre-line;
}

.dj-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.dj-detail-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.dj-detail-meta-label {
  flex-shrink: 0;
  width: 70px;
  color: var(--dj-muted);
}

.dj-detail-meta-value {
  flex: 1;
  color: var(--dj-text-soft);
}

/* 网盘资源（netdisk 插件渲染，主题仅做视觉适配，不修改插件文件） */
.netdisk-block {
  margin: 32px 0 0 !important;
  padding: 24px !important;
  background: rgba(18, 18, 18, .6) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--dj-line) !important;
  border-radius: var(--dj-radius-xl) !important;
  box-shadow: none !important;
  color: var(--dj-text-soft) !important;
}

@media (min-width: 768px) {
  .netdisk-block {
    padding: 32px !important;
  }
}

.netdisk-head strong {
  color: var(--dj-text) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

.netdisk-head > i,
.netdisk-head i:first-child {
  color: var(--dj-accent) !important;
  font-size: 20px !important;
}

.netdisk-count {
  background: rgba(0, 0, 0, .3) !important;
  border: 1px solid var(--dj-line) !important;
  color: var(--dj-muted) !important;
}

.netdisk-item,
.netdisk-row {
  border-top: 1px solid var(--dj-line) !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
}

.netdisk-list > *:first-child {
  border-top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.netdisk-item-main strong {
  color: var(--dj-text) !important;
}

.netdisk-item-main,
.netdisk-item-meta {
  color: var(--dj-muted) !important;
}

.netdisk-pwd,
.netdisk-code {
  background: rgba(0, 0, 0, .3) !important;
  border: 1px solid var(--dj-line) !important;
  color: var(--dj-text-soft) !important;
}

.netdisk-item .btn,
.netdisk-btn,
.netdisk-open,
.netdisk-copy {
  border-radius: 999px !important;
}

a.dj-badge {
  text-decoration: none;
  transition: all .2s ease;
}

a.dj-badge:hover {
  border-color: var(--dj-accent);
  color: var(--dj-text);
}

/* 详情页正文（剥离元信息后的剩余内容） */
.dj-detail-body {
  margin-top: 32px;
  padding: 24px;
  background: rgba(18, 18, 18, .6);
  border: 1px solid var(--dj-line);
  border-radius: var(--dj-radius-xl);
  font-size: 15px;
  line-height: 1.9;
  color: var(--dj-text-soft);
  word-break: break-word;
}

.dj-detail-body p {
  margin: 0 0 1em;
}

.dj-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--dj-radius-lg);
  margin: 12px 0;
}

.dj-detail-body a {
  color: var(--dj-accent);
}

/* 操作栏 */
.dj-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* 评论区 */
.dj-replies {
  margin-top: 32px;
  padding: 24px;
  background: rgba(18, 18, 18, .6);
  border: 1px solid var(--dj-line);
  border-radius: var(--dj-radius-xl);
}

.dj-replies .reply-head {
  margin-bottom: 16px;
}

.dj-replies .reply-form {
  margin-top: 20px;
}

.reply-login-card {
  margin-top: 20px;
}

/* 锁定区块与主题一致 */
.topic-lock-block {
  margin-top: 28px;
}

/* 单页 */
.dj-page {
  padding-top: 16px;
}

.dj-page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dj-text);
  margin-bottom: 24px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .dj-page-title {
    font-size: 36px;
  }
}

.dj-page-body {
  margin-top: 0;
}

/* ---------- 页脚 ---------- */
.dj-footer {
  margin-top: 80px;
  border-top: 1px solid var(--dj-line);
  background: linear-gradient(to bottom, #000, #0a0a0a);
}

.dj-footer-inner {
  padding: 48px 16px;
  max-width: 100%;
}

@media (min-width: 768px) {
  .dj-footer-inner {
    padding: 48px;
  }
}

.dj-footer-disclaimer {
  margin-bottom: 32px;
}

.dj-footer-disclaimer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dj-text);
  margin-bottom: 16px;
}

.dj-footer-disclaimer-title svg {
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

.dj-footer-disclaimer-content {
  font-size: 14px;
  color: var(--dj-muted);
  line-height: 1.7;
}

.dj-footer-disclaimer-content p {
  margin-bottom: 12px;
}

.dj-footer-disclaimer-content strong {
  color: var(--dj-text);
  font-weight: 500;
}

.dj-footer-disclaimer-content .text-xs {
  font-size: 12px;
  color: var(--dj-muted-2);
  margin-top: 16px;
}

.dj-footer-divider {
  border-top: 1px solid var(--dj-line);
  margin: 24px 0;
}

@media (max-width: 767px) {
  .dj-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dj-footer-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .dj-footer-sublinks {
    gap: 12px;
  }
}

.dj-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}

.dj-footer-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--dj-muted-2);
}

.dj-footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.dj-footer-nav a {
  color: var(--dj-muted-2);
  transition: color .2s ease;
}

.dj-footer-nav a:hover {
  color: var(--dj-text-soft);
}

.dj-footer-sublinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .04);
  font-size: 12px;
}

.dj-footer-sublinks a {
  color: var(--dj-muted-2);
  transition: color .2s ease;
}

.dj-footer-sublinks a:hover {
  color: var(--dj-muted);
}

.dj-footer-friends {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .04);
  font-size: 12px;
}

.dj-footer-friends-label {
  color: var(--dj-muted-2);
}

.dj-footer-friends a {
  color: var(--dj-muted-2);
  transition: color .2s ease;
}

.dj-footer-friends a:hover {
  color: var(--dj-muted);
}

.dj-footer-friends .dj-footer-friends-more {
  color: var(--dj-accent);
}

.dj-footer-friends .dj-footer-friends-more:hover {
  color: var(--dj-accent-hover);
}

.dj-footer-beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding-bottom: 8px;
  color: var(--dj-muted-2);
  font-size: 12px;
}

.dj-footer-beian a {
  color: inherit;
  text-decoration: none;
}

.dj-footer-beian a:hover {
  color: var(--dj-muted);
}

.dj-footer-divider-dot {
  color: var(--dj-surface-3);
}

.dj-footer-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dj-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, .8);
  animation: dj-online-pulse 2s ease-in-out infinite;
}
@keyframes dj-online-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.dj-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--dj-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .2s ease;
}

.dj-back-top:hover {
  color: var(--dj-text);
}

.dj-back-top svg {
  width: 16px;
  height: 16px;
}

/* ---------- 搜索弹窗 ---------- */
.dj-search-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}

.dj-search-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.dj-search-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
}

.dj-search-modal-panel {
  position: relative;
  width: 90%;
  max-width: 560px;
  background: var(--dj-surface);
  border: 1px solid var(--dj-line);
  border-radius: var(--dj-radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .8);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform .2s ease;
}

.dj-search-modal.is-open .dj-search-modal-panel {
  transform: translateY(0);
}

.dj-search-modal-head {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dj-line);
}

.dj-search-modal-head svg {
  width: 20px;
  height: 20px;
  color: var(--dj-muted);
  margin-right: 12px;
}

.dj-search-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--dj-text);
  padding: 0;
}

.dj-search-modal-input::placeholder {
  color: var(--dj-muted-2);
}

.dj-search-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--dj-radius);
  color: var(--dj-muted);
  cursor: pointer;
  margin-left: 12px;
}

.dj-search-modal-close:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--dj-text);
}

.dj-search-modal-body {
  padding: 16px 20px;
  max-height: 400px;
  overflow-y: auto;
}

.dj-search-modal-hint {
  font-size: 13px;
  color: var(--dj-muted-2);
  text-align: center;
  padding: 40px 20px;
}

/* ---------- 用户菜单（user-dd 组件样式由社区 base.css 提供，此处仅做布局胶水） ---------- */
.dj-navbar-inner .user-dd {
  flex: 0 0 auto;
}

.dj-navbar-inner .user-dd-btn {
  display: grid;
  place-items: center;
}

/* ---------- 响应式调整 ---------- */
@media (max-width: 767px) {
  .dj-detail-title {
    font-size: 28px;
  }

  .netdisk-block {
    padding: 20px !important;
  }

  .netdisk-head {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ---------- 覆盖社区默认样式 ---------- */
.main-bar {
  display: none !important;
}

.plaza-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.plaza-feed {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.article-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.content {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

/* 隐藏不需要的社区元素（仅限非会员中心页面的右栏；
   会员中心的侧栏 _member_side.html 同为 .plaza-aside，必须放行） */
.plaza-main:not(.shell-member) > .plaza-aside,
.plaza-left,
.js-skin-banner {
  display: none !important;
}

/* 会员中心双栏：与夸克影院主题一致的间距观感 */
.plaza-main.shell-member {
  padding: 8px 0 48px !important;
  gap: 24px !important;
}

/* ---------- 详情页：面包屑 / 上下篇 / 相关推荐 ---------- */
.dj-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--dj-muted);
}

.dj-breadcrumb a {
  color: var(--dj-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.dj-breadcrumb a:hover {
  color: var(--dj-accent);
}

.dj-breadcrumb-sep {
  color: var(--dj-muted-2);
}

.dj-breadcrumb-current {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dj-text-soft);
}

@media (min-width: 768px) {
  .dj-breadcrumb-current {
    max-width: 60%;
  }
}

.dj-adjacent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .dj-adjacent {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.dj-adjacent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--dj-line);
  border-radius: var(--dj-radius-lg);
  color: var(--dj-text-soft);
  font-size: 14px;
  text-decoration: none;
  transition: all .2s ease;
}

.dj-adjacent-item:hover {
  background: rgba(255, 255, 255, .06);
  border-color: var(--dj-stroke-strong);
  color: var(--dj-text);
}

.dj-adjacent-item.is-next {
  justify-content: flex-end;
  text-align: right;
}

.dj-adjacent-label {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--dj-muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

.dj-adjacent-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dj-related {
  margin-top: 48px;
}

.dj-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dj-related-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dj-text);
}

.dj-related-title .dj-accent-bar {
  width: 4px;
  height: 24px;
  background: var(--dj-accent);
  border-radius: 2px;
}

.dj-related-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--dj-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.dj-related-more:hover {
  color: var(--dj-accent);
}

.dj-related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

@media (min-width: 640px) {
  .dj-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .dj-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .dj-related-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ==========================================================================
   日夜模式：切换按钮 + 白天模式（浅色配色参考 BBS 社区浅色方案）
   ========================================================================== */
.dj-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--dj-line);
  border-radius: 999px;
  color: var(--dj-muted);
  font-size: 17px;
  cursor: pointer;
  transition: all .2s ease;
}
.dj-mode-toggle:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--dj-stroke-strong);
  color: var(--dj-text);
}
.dj-mode-toggle .dj-mode-ic-moon { display: none; }
html[data-dj-mode="day"] .dj-mode-toggle .dj-mode-ic-sun { display: none; }
html[data-dj-mode="day"] .dj-mode-toggle .dj-mode-ic-moon { display: inline; }

/* 消息中心入口（含 VIP 开通/到期通知未读角标） */
.dj-msg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--dj-line);
  border-radius: 999px;
  color: var(--dj-muted);
  font-size: 17px;
  text-decoration: none;
  transition: all .2s ease;
}
.dj-msg-btn:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--dj-stroke-strong);
  color: var(--dj-text);
}
.dj-msg-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}
.dj-msg-badge.is-inline {
  position: static;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

/* 白天模式：变量级换肤（--dj-* 与社区组件共用的 --bg 等同步置浅） */
html[data-dj-mode="day"]:root {
  color-scheme: light !important;

  --dj-bg: #f5f5f5 !important;
  --dj-bg-mid: #efefef !important;
  --dj-surface: #ffffff !important;
  --dj-surface-2: #f0f0f0 !important;
  --dj-surface-3: #e8e8e8 !important;
  --dj-glass: rgba(255, 255, 255, .92) !important;
  --dj-card: #ffffff !important;
  --dj-card-solid: #ffffff !important;
  --dj-chip: #ececec !important;
  --dj-panel: #ffffff !important;

  --dj-text: #0a0a0a !important;
  --dj-text-soft: #2e2e2e !important;
  --dj-muted: #8a8a8a !important;
  --dj-muted-2: #6b6b6b !important;

  --dj-line: rgba(0, 0, 0, .07) !important;
  --dj-stroke: rgba(0, 0, 0, .07) !important;
  --dj-stroke-strong: rgba(0, 0, 0, .14) !important;

  --dj-shadow: rgba(0, 0, 0, .08) !important;
  --dj-overlay: rgba(0, 0, 0, .4) !important;

  /* 社区 base.css 渲染的组件（用户菜单、模态、表单等）共用变量 */
  --bg: #f5f5f5 !important;
  --bg-mid: #efefef !important;
  --surface: #ffffff !important;
  --glass: rgba(255, 255, 255, .92) !important;
  --card: #ffffff !important;
  --card-solid: #ffffff !important;
  --chip: #ececec !important;
  --panel: #ffffff !important;
  --text: #0a0a0a !important;
  --text-soft: #2e2e2e !important;
  --muted: #8a8a8a !important;
  --line: rgba(0, 0, 0, .07) !important;
  --stroke: rgba(0, 0, 0, .07) !important;
  --stroke-strong: rgba(0, 0, 0, .14) !important;
  --shadow: rgba(0, 0, 0, .06) !important;
  --overlay: rgba(0, 0, 0, .4) !important;
  --cover: linear-gradient(160deg, #ececec, #dcdcdc) !important;
  --cover-ink: #0a0a0a !important;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 24px rgba(0, 0, 0, .05) !important;
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, .04), 0 16px 40px rgba(0, 0, 0, .08) !important;
}

/* 白天模式：硬编码深色处覆盖为浅色 */
html[data-dj-mode="day"] body {
  background: var(--dj-bg) !important;
  color: var(--dj-text) !important;
}
html[data-dj-mode="day"] ::-webkit-scrollbar-track { background: #f0f0f0; }
html[data-dj-mode="day"] ::-webkit-scrollbar-thumb { background: #c9c9c9; border-color: #f0f0f0; }
html[data-dj-mode="day"] ::-webkit-scrollbar-thumb:hover { background: #b0b0b0; }
html[data-dj-mode="day"] .dj-navbar {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .95), rgba(255, 255, 255, .78));
}
html[data-dj-mode="day"] .dj-navbar.is-scrolled {
  background: rgba(255, 255, 255, .95);
}
html[data-dj-mode="day"] .dj-footer {
  background: linear-gradient(to bottom, #f5f5f5, #ececec);
}
html[data-dj-mode="day"] .dj-mode-toggle {
  background: rgba(0, 0, 0, .04);
}
html[data-dj-mode="day"] .dj-mode-toggle:hover {
  background: rgba(0, 0, 0, .08);
}
html[data-dj-mode="day"] .dj-search-btn {
  background: rgba(0, 0, 0, .04);
}
html[data-dj-mode="day"] .dj-search-btn:hover {
  background: rgba(0, 0, 0, .08);
}
html[data-dj-mode="day"] .dj-msg-btn {
  background: rgba(0, 0, 0, .04);
}
html[data-dj-mode="day"] .dj-msg-btn:hover {
  background: rgba(0, 0, 0, .08);
}

/* 白天模式：详情页内容区去掉卡片底色，与页面背景一致（透明、无边框阴影） */
html[data-dj-mode="day"] .dj-detail-body,
html[data-dj-mode="day"] .dj-replies,
html[data-dj-mode="day"] .netdisk-block {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html[data-dj-mode="day"] .dj-detail-poster-inner {
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .2) !important;
}

