/* 91porna-style theme override */
:root {
  --dx-bg: #000;
  --dx-bg2: #111;
  --dx-bg3: #1a1a1a;
  --dx-bg4: #222;
  --dx-line: #2a2a2a;
  --dx-text: #e8e8e8;
  --dx-muted: #9a9a9a;
  --dx-primary: #ff7a00;
  --dx-primary2: #ff9500;
  --dx-radius: 6px;
  --dx-header-h: 110px;
  --tx-color: #ff7a00;
  --tx-color2: #e8e8e8;
  --tx-bg2: #111;
  --tx-bg3: #1a1a1a;
}

html, body.dx-body, body {
  background: var(--dx-bg) !important;
  color: var(--dx-text);
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }

a { color: var(--dx-text); }
a:hover { color: var(--dx-primary); }

/* 强行覆盖旧主题 1200px 固定宽，解决手机裁剪 */
.tx-wide,
.dx-page-wrap {
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
  overflow-x: hidden;
}

.dx-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.dx-muted {
  color: var(--dx-muted);
  font-size: 13px;
  margin-left: 8px;
}

/* 分类页二级胶囊 */
.dx-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.dx-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 36px;
  padding: 0 12px;
  background: #444;
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.dx-pill.is-on,
.dx-pill:hover {
  background: var(--dx-primary);
  color: #111 !important;
}

.dx-main {
  padding-top: calc(var(--dx-header-h) + 12px);
  padding-bottom: 40px;
  min-height: 60vh;
}

/* ===== Header ===== */
.dx-header {
  position: relative;
  z-index: 200;
  overflow: visible !important;
}
.dx-header-bar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 200;
  background: rgba(0,0,0,.96);
  border-bottom: 1px solid var(--dx-line);
  overflow: visible !important;
}
.dx-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.dx-menu-btn {
  display: none;
  width: 40px;
  height: 32px;
  background: transparent;
  border: 0;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.dx-menu-btn span {
  display: block;
  height: 2px;
  width: 22px;
  background: #fff;
  border-radius: 2px;
}
.dx-logo {
  display: inline-flex;
  align-items: center;
}
.dx-logo img {
  height: 30px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.dx-search {
  display: flex;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.dx-search-input {
  flex: 1;
  height: 40px;
  border: 0;
  outline: 0;
  background: #2a2a2a;
  color: #fff;
  border-radius: var(--dx-radius) 0 0 var(--dx-radius);
  padding: 0 14px;
}
.dx-search-btn {
  width: 54px;
  height: 40px;
  border: 0;
  background: var(--dx-primary);
  color: #111;
  border-radius: 0 var(--dx-radius) var(--dx-radius) 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dx-search-btn:hover { background: var(--dx-primary2); }
.dx-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.dx-lang {
  display: inline-flex;
  gap: 4px;
  background: #1c1c1c;
  border-radius: 20px;
  padding: 2px;
}
.dx-lang-btn {
  border: 0;
  background: transparent;
  color: var(--dx-muted);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 16px;
  cursor: pointer;
}
.dx-lang-btn.is-on,
.dx-lang-btn:hover {
  background: var(--dx-primary);
  color: #111;
}
.dx-lang-mobile {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.dx-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dx-primary);
  white-space: nowrap;
}
.dx-user-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dx-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23111' d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E") center/60% no-repeat;
}
.dx-user-txt { font-size: 13px; }

/* Nav - 91porna：鼠标悬停出现深灰面板 + 横向胶囊 */
.dx-nav {
  border-top: 1px solid var(--dx-line);
  width: 100%;
  overflow: visible !important;
  position: relative;
  z-index: 90;
}
.dx-nav-list.dx-container,
.dx-nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start !important;
  list-style: none;
  margin: 0 auto !important;
  padding: 0 16px !important;
  min-height: 48px;
  width: 100% !important;
  max-width: 1280px;
  box-sizing: border-box;
  /* 关键：overflow 会裁掉绝对定位二级菜单 */
  overflow: visible !important;
  text-align: left;
}
.dx-nav-list > li {
  position: relative;
  flex: 0 0 auto;
  margin-right: 22px;
  float: none !important;
}
.dx-nav-list > li:first-child .dx-nav-item {
  padding-left: 0;
}
.dx-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0;
  color: #e8e8e8;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.dx-nav-item.is-on,
.dx-nav-drop:hover > .dx-nav-item,
.dx-nav-item:hover {
  color: var(--dx-primary) !important;
}
.dx-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .85;
  transition: transform .25s ease;
}
.dx-nav-drop:hover > .dx-nav-item .dx-caret {
  transform: rotate(180deg);
}

/* 二级下拉：截图同款 */
.dx-sub-menu {
  display: none !important;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background-color: #222 !important;
  border-radius: 8px;
  padding: 18px 20px !important;
  z-index: 1000 !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px !important;
  width: max-content;
  max-width: min(920px, 94vw);
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  border: 0 !important;
  margin: 0 !important;
}
/* 顶部小三角 */
.dx-sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #222;
}
/* 填补缝隙，避免鼠标移入时闪退 */
.dx-sub-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.dx-nav-drop:hover > .dx-sub-menu,
.dx-nav-drop:focus-within > .dx-sub-menu,
.dx-sub-menu:hover {
  display: flex !important;
}
.dx-nav-drop.is-empty > .dx-sub-menu,
.dx-sub-menu:empty {
  display: none !important;
}
.dx-sub-item {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 40px;
  padding: 0 8px;
  margin: 0 !important;
  box-sizing: border-box;
  background-color: #444 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 500;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .2s ease;
  flex-shrink: 0;
  line-height: 1.2;
}
.dx-sub-item:hover {
  background-color: var(--dx-primary) !important;
  color: #111 !important;
  transform: translateY(-2px);
}

/* Drawer */
.dx-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.dx-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.dx-drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .2s;
}
.dx-drawer.is-open .dx-drawer-mask { opacity: 1; }
.dx-drawer-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(82vw, 320px);
  background: #121212;
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow: auto;
}
.dx-drawer.is-open .dx-drawer-panel { transform: none; }
.dx-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--dx-line);
}
.dx-drawer-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dx-drawer-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.dx-drawer-x {
  border: 0;
  background: transparent;
  color: var(--dx-primary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.dx-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}
.dx-drawer-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: #1a1a1a;
  border-radius: 6px;
  color: #e8e8e8;
  font-size: 15px;
  text-decoration: none;
  box-sizing: border-box;
}
.dx-drawer-group {
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
}
.dx-drawer-toggle {
  display: flex;
  align-items: center;
}
.dx-drawer-toggle .dx-drawer-link {
  flex: 1;
  margin: 0;
  background: transparent;
  border-radius: 0;
}
.dx-drawer-parent {
  flex: 0 0 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #e8e8e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dx-drawer-parent .dx-caret {
  transition: transform .25s ease;
}
.dx-drawer-group.is-open > .dx-drawer-toggle .dx-caret {
  transform: rotate(180deg);
}
.dx-drawer-group.is-empty .dx-drawer-parent {
  display: none;
}
.dx-drawer-subs {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}
.dx-drawer-group.is-open > .dx-drawer-subs {
  display: grid;
}
.dx-drawer-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 6px;
  background: #333;
  border-radius: 8px;
  color: #fff !important;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
}
.dx-drawer-pill:hover {
  background: var(--dx-primary);
  color: #111 !important;
}
html.dx-drawer-lock,
html.dx-drawer-lock body {
  overflow: hidden;
  touch-action: none;
}

/* 旧列表 .row 里的视频卡片 → 强制自适应网格 */
ul.row.row-space8,
ul.row.row-m-space8,
.dx-page-wrap ul.row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
  float: none !important;
  width: 100% !important;
}
ul.row > .dx-video-li,
ul.row > li {
  float: none !important;
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
.dx-video-tags {
  display: none !important;
}
@media (min-width: 768px) {
  .dx-video-tags {
    display: block !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Sections */
.dx-section { margin: 18px 0 28px; }
.dx-h1 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.dx-h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.dx-sec-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: sticky;
  top: var(--dx-header-h);
  z-index: 5;
  background: #000;
  padding: 8px 0;
}
.dx-more {
  margin-left: auto;
  color: var(--dx-muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}
.dx-more:hover { color: var(--dx-primary); }
.dx-more::after {
  content: "→";
  margin-left: 4px;
}

/* Icon ads - 同 91porna 首页横向图标（后台网址·推荐1） */
.dx-icon-ads {
  margin: 4px 0 20px;
}
.dx-recommend-icons {
  list-style: none;
  margin: 0;
  padding: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 8px;
  justify-content: flex-start;
}
.dx-recommend-icons li {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  flex: 0 0 60px;
  text-align: center;
}
.dx-recommend-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ddd;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  width: 100%;
}
.dx-recommend-icons img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #222;
  display: block;
}
.dx-recommend-icons span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ccc;
}
.dx-recommend-icons a:hover { color: var(--dx-primary); }
.dx-recommend-icons a:hover span { color: var(--dx-primary); }

.dx-banner-ads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 16px;
}
.dx-banner-ad {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #151515;
  min-height: 48px;
  line-height: 0;
}
.dx-banner-ad img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* 详情页广告位可见性：PC 轮播 / 移动双列横幅 */
.dx-detail-banner-pc { display: block; margin: 0 0 12px; }
.dx-detail-banner-m { display: none; }
.dx-aspect-banner {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #151515;
  line-height: 0;
}
.dx-aspect-banner img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  display: block;
}
.dx-detail-banner-swiper {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.dx-detail-banner-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: .45;
}
.dx-detail-banner-swiper .swiper-pagination-bullet-active {
  background: var(--dx-primary);
  opacity: 1;
}

/* Gossip / art cards */
.dx-post-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dx-banner-ads:not(:has(a)) { display: none; }
.dx-recommend-icons:not(:has(li)) { display: none; }

.dx-post-item {
  height: 168px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a center/cover no-repeat;
  position: relative;
}
.dx-post-mask {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.82) 100%);
  box-sizing: border-box;
}
.dx-post-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dx-post-desc {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Video grid */
.dx-video-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.dx-video-li,
.dx-video-item { min-width: 0; max-width: 100%; }
.dx-video-poster {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #1a1a1a;
  width: 100%;
}
.dx-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}
.dx-video-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 10px;
}
.dx-video-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #ddd;
  min-height: 2.8em;
}
.dx-video-title:hover { color: var(--dx-primary); }
.dx-video-tags {
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--dx-muted);
}
.dx-video-tags a {
  color: var(--dx-muted);
  margin-right: 8px;
}
.dx-video-tags a:hover { color: var(--dx-primary); }

@media (min-width: 768px) {
  .dx-video-tags { display: block; }
  .dx-video-title {
    -webkit-line-clamp: 1;
    min-height: auto;
    font-size: 15px;
  }
}

/* Topic */
.dx-topic-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.dx-topic-pic {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #1a1a1a;
}
.dx-topic-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dx-topic-name {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #ddd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer */
.dx-footer {
  border-top: 1px solid var(--dx-line);
  padding: 32px 0 48px;
  color: var(--dx-muted);
  font-size: 13px;
  line-height: 1.7;
}
.dx-footer-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 24px;
}
.dx-footer-logo img {
  max-height: 36px;
  width: auto;
}
.dx-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}
.dx-footer-nav a { color: #bbb; }
.dx-footer-copy { color: var(--dx-muted); }

/* Float */
.dx-float {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dx-float-history,
.dx-float-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--dx-primary);
  color: #111 !important;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(255,122,0,.35);
}
.dx-float-top {
  width: 42px;
  height: 42px;
  padding: 0;
  align-self: flex-end;
}
.dx-float-history:hover,
.dx-float-top:hover { filter: brightness(1.08); }

/* Responsive */
@media screen and (max-width: 1199px) {
  .dx-video-grid,
  .dx-topic-grid { grid-template-columns: repeat(3, 1fr); }
  ul.row.row-space8,
  ul.row.row-m-space8,
  .dx-page-wrap ul.row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 992px) {
  :root { --dx-header-h: 108px; }
  .dx-nav { display: none; }
  .dx-menu-btn { display: inline-flex; }
  .dx-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .dx-logo {
    flex: 1;
    justify-content: center;
  }
  .dx-logo img { height: 24px; max-width: 160px; }
  .dx-search {
    display: flex;
    flex: 0 0 100%;
    max-width: none;
    order: 5;
  }
  .dx-user-txt { display: none; }
  .dx-lang {
    display: inline-flex;
    transform: scale(0.92);
    transform-origin: right center;
  }
  .dx-h1 { font-size: 16px; }
  .dx-h2 { font-size: 18px; }
  .dx-post-grid { grid-template-columns: 1fr; }
  .dx-post-item { height: 140px; }
  .dx-post-title { font-size: 15px; }
  .dx-video-grid,
  .dx-topic-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  ul.row.row-space8,
  ul.row.row-m-space8,
  .dx-page-wrap ul.row {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .dx-recommend-icons {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .dx-recommend-icons::-webkit-scrollbar { display: none; }
  .dx-recommend-icons li {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
  }
  .dx-recommend-icons img { width: 48px; height: 48px; border-radius: 8px; }
  .dx-recommend-icons a { font-size: 11px; }
  /* 双列横幅在移动端保持 2 列（与 91porna 列表顶部横幅一致） */
  .dx-banner-ads { grid-template-columns: 1fr 1fr; gap: 6px; }
  .dx-banner-ad img { height: 56px; }
  .dx-detail-banner-pc { display: none; }
  .dx-detail-banner-m { display: block; margin: 0 0 10px; }
  .dx-footer-row { grid-template-columns: 1fr; gap: 16px; }
  .dx-main { padding-top: 120px; padding-bottom: 56px; }
  .dx-sec-hd { top: 108px; }
  .dx-float { right: 12px; bottom: 16px; }
  .dx-float-history span { display: none; }
  .dx-float-history { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
  .dx-container { padding: 0 12px; }
  .dx-drawer-panel { width: min(88vw, 300px); }
  .dx-trans-tip { right: 12px; bottom: 80px; font-size: 11px; }
}

@media screen and (max-width: 640px) {
  :root { --dx-header-h: 104px; }
  .dx-main { padding-top: 116px; }
  .dx-sec-hd { top: 104px; padding: 6px 0; }
  .dx-h1 { font-size: 15px; }
  .dx-h2 { font-size: 16px; }
  .dx-search-input { height: 38px; font-size: 14px; }
  .dx-search-btn { width: 48px; height: 38px; }
  .dx-recommend-icons li {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
  }
  .dx-recommend-icons img { width: 44px; height: 44px; }
  .dx-recommend-icons a { font-size: 11px; }
  .dx-video-grid,
  .dx-topic-grid { gap: 8px; }
  .dx-video-title { font-size: 13px; margin-top: 6px; }
  .dx-post-item { height: 120px; }
  .dx-post-mask { padding: 14px 16px; }
  .dx-post-title { font-size: 14px; }
  .dx-banner-ad img { height: 56px; }
}

@media screen and (max-width: 380px) {
  .dx-lang-btn { padding: 4px 6px; font-size: 11px; }
  .dx-recommend-icons li {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
  }
}

/* 全站自动翻译提示 */
.dx-trans-tip {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 9999;
  background: rgba(0,0,0,.85);
  color: #fff;
  border: 1px solid var(--dx-primary);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
html.dx-translating body {
  cursor: progress;
}

/* 空下拉隐藏；无二级时去掉箭头 */
.dx-sub-menu:empty,
.dx-nav-drop.is-empty .dx-sub-menu {
  display: none !important;
}
.dx-nav-drop.is-empty .dx-caret {
  display: none;
}

/* 防横向撑破 */
img, video, iframe, table {
  max-width: 100%;
}
[class*=col-] {
  max-width: 100%;
}

/* ========== 视频详情 / 播放页（91porna 布局） ========== */
/* 不要覆盖 .dx-main 的 padding-top，否则会被固定顶栏挡住播放器 */
.dx-detail-page { padding-bottom: 40px; }
body[data-page="play"] .dx-main.dx-detail-page {
  padding-top: calc(var(--dx-header-h) + 20px);
}
body[data-page="play"] .dx-player-wrap {
  margin-top: 8px;
  scroll-margin-top: calc(var(--dx-header-h) + 16px);
}
.dx-detail-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.dx-detail-main { flex: 1; min-width: 0; }
.dx-detail-side {
  width: 260px;
  flex-shrink: 0;
}

.dx-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--dx-muted, #848484);
}
.dx-breadcrumbs a { color: inherit; }
.dx-breadcrumbs a:hover { color: var(--dx-primary); }
.dx-bc-sep { margin: 0 8px; opacity: .6; }
.dx-bc-current {
  color: var(--dx-text, #eee);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

/* PC 顶部横幅轮播 */
.dx-detail-banner-pc {
  display: none;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dx-bg2, #1a1a1a);
}
.dx-detail-banner-pc:has(.swiper-slide) { display: block; }
.dx-detail-banner-pc .swiper-container,
.dx-detail-banner-pc .swiper-slide { width: 100%; }
.dx-aspect-banner {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 2;
  overflow: hidden;
  background: #111;
}
.dx-aspect-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dx-detail-banner-pc .swiper-pagination-bullet {
  background: #fff;
  opacity: .45;
}
.dx-detail-banner-pc .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--dx-primary);
}

/* 手机顶部横幅列表 */
.dx-detail-banner-m {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 8px 0 12px;
}
.dx-detail-banner-m:empty { display: none; }
.dx-detail-banner-m .dx-aspect-banner { aspect-ratio: 16 / 5; border-radius: 6px; }

/* 播放器 */
.dx-player-wrap {
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.dx-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.dx-player-box > * ,
.dx-player-box iframe,
.dx-player-box .MacPlayer,
.dx-player-box .Embed,
.dx-player-box video {
  position: absolute !important;
  left: 0; top: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border: 0;
}

/* 详情中间图标广告 */
.dx-detail-icons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 8px;
  margin: 12px 0;
  padding: 12px;
  list-style: none;
  border: 1px solid var(--dx-border, #333);
  border-radius: 10px;
  background: var(--dx-bg2, #161616);
}
.dx-detail-icons:empty { display: none; }
.dx-detail-icons li { min-width: 0; }
.dx-detail-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--dx-text, #ccc);
  font-size: 12px;
  line-height: 1.3;
}
.dx-detail-icons a:hover { color: var(--dx-primary); }
.dx-detail-icons img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 6px;
  background: #222;
}
.dx-detail-icons span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dx-detail-title {
  margin: 14px 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #eee;
}

.dx-detail-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 10px 0 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #848484;
  font-size: 13px;
}
.dx-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  cursor: default;
}
a.dx-stat { cursor: pointer; }
a.dx-stat:hover { color: var(--dx-primary); }
.dx-stat svg { flex-shrink: 0; opacity: .85; }

/* Tabs */
.dx-detail-tabs { margin-top: 4px; }
.dx-tab-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 52px;
  z-index: 5;
  background: var(--dx-bg, #0d0d0d);
}
.dx-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 16px;
  padding: 8px 4px;
  margin-right: 18px;
  cursor: pointer;
}
.dx-tab.is-on {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--dx-primary);
}
.dx-tab-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--dx-bg2, #1a1a1a);
  border-radius: 999px;
  padding: 4px 10px;
}
.dx-act-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ddd;
  font-size: 13px;
  padding: 6px 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.dx-act-btn:hover { color: var(--dx-primary); }
.dx-act-btn + .dx-act-btn {
  border-left: 1px solid rgba(255,255,255,.12);
  margin-left: 4px;
  padding-left: 12px;
}

.dx-share-box {
  display: flex;
  margin: 10px 0 14px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #404040;
}
.dx-share-box[hidden] { display: none !important; }
.dx-share-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: #000;
  color: #ccc;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}
.dx-share-copy {
  flex-shrink: 0;
  border: 0;
  background: #404040;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
}
.dx-share-copy:hover { background: var(--dx-primary); color: #000; }

.dx-tab-pane { display: none; padding-top: 14px; }
.dx-tab-pane.is-on { display: block; }

.dx-detail-h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.dx-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.dx-tag-list a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--dx-bg2, #222);
  color: #ddd;
  font-size: 13px;
}
.dx-tag-list a:hover {
  color: var(--dx-primary);
  background: #2a2a2a;
}

.dx-uploader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dx-uploader-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #222;
}
.dx-uploader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dx-uploader-meta { flex: 1; min-width: 0; }
.dx-uploader-name {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dx-uploader-sub { font-size: 13px; color: #888; }
.dx-uploader-sub em { color: var(--dx-primary); font-style: normal; margin-left: 2px; }
.dx-uploader-follow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--dx-primary);
  color: #111 !important;
  font-size: 14px;
  font-weight: 600;
}
.dx-uploader-follow:hover { opacity: .9; }

.dx-detail-desc {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
  word-break: break-word;
}
.dx-detail-desc img { max-width: 100%; height: auto; }

.dx-info-panel {
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dx-info-panel:not(:has(.dx-info-card)) { display: none; }
.dx-info-card {
  background: #111;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.7;
  color: #ccc;
  font-size: 13px;
}
.dx-info-card:hover { border-color: var(--dx-primary); }
.dx-info-label { color: #fff; font-weight: 700; margin-right: 6px; }
.dx-info-card a { color: var(--dx-primary); word-break: break-all; }
.dx-info-tip { color: #999; font-size: 12px; margin-left: 6px; }

.dx-hot-cats {
  border: 1px dashed #333;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 22px;
}
.dx-hot-cats-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.dx-hot-cats-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dx-hot-cats-btns a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px;
  background: #1a1a1a;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  color: var(--dx-primary);
  font-size: 12px;
  text-align: center;
}
.dx-hot-cats-btns a:hover {
  border-color: var(--dx-primary);
  background: #1f1f1f;
}

.dx-detail-rel { margin-bottom: 8px; }

/* 侧栏热门 */
.dx-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dx-side-item { display: block; color: inherit; }
.dx-side-pic {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
}
.dx-side-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dx-side-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 11px;
  font-style: normal;
}
.dx-side-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 13px;
  color: #ddd;
  line-height: 1.4;
}
.dx-side-item:hover .dx-side-name { color: var(--dx-primary); }
.dx-side-tags {
  margin-top: 4px;
  font-size: 12px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dx-side-tags a { color: inherit; margin-right: 6px; }
.dx-side-tags a:hover { color: var(--dx-primary); }
.dx-side-ad .dx-side-name { color: var(--dx-primary); }

/* 评论区适配 */
.dx-detail-page .mac_comment,
.dx-detail-page .cmt_form,
.dx-detail-page .cmt_wrap { max-width: 100%; }
.dx-detail-page .comment_content,
.dx-detail-page textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #ddd;
  border-radius: 6px;
  padding: 10px;
}

@media screen and (min-width: 768px) {
  .dx-detail-banner-pc { display: none; }
  .dx-detail-banner-pc:has(.swiper-slide) { display: block; }
  .dx-detail-banner-m { display: none; }
  .dx-detail-icons {
    grid-template-columns: repeat(10, 1fr);
    border: 0;
    background: transparent;
    padding: 4px 0;
  }
  .dx-detail-icons img { width: 48px; height: 48px; }
  .dx-detail-title { font-size: 22px; }
  .dx-tab-bar { top: 0; position: relative; }
}

@media screen and (min-width: 1100px) {
  .dx-detail-icons { grid-template-columns: repeat(15, 1fr); }
  .dx-detail-icons img { width: 56px; height: 56px; }
}

@media screen and (max-width: 991px) {
  .dx-detail-layout { flex-direction: column; }
  .dx-detail-side { width: 100%; }
  .dx-side-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dx-side-tags { display: none; }
}

@media screen and (max-width: 767px) {
  .dx-detail-banner-pc { display: none !important; }
  .dx-detail-icons { grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px; }
  .dx-detail-icons img { width: 48px; height: 48px; }
  .dx-detail-icons span { font-size: 11px; }
  .dx-detail-title { font-size: 17px; }
  .dx-detail-stats { gap: 10px 12px; font-size: 12px; }
  .dx-tab { font-size: 15px; margin-right: 12px; }
  .dx-tab-actions { padding: 2px 6px; }
  .dx-act-btn { font-size: 12px; padding: 6px; }
  .dx-uploader-avatar { width: 40px; height: 40px; }
  .dx-hot-cats-btns { grid-template-columns: repeat(2, 1fr); }
  .dx-detail-rel.dx-video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* :has 不支持时的兜底：无 slide 时由 JS 加 is-empty */
.dx-detail-banner-pc.is-empty,
.dx-detail-banner-m.is-empty,
.dx-detail-icons.is-empty,
.dx-info-panel.is-empty { display: none !important; }
