/* ==========================================================================
   benben-nb-st17 Differentiated Portal Layout Stylesheet (?v=20261256)
   Independent qh-* Namespace · Two-Tier Header · 76%/24% Main+Rank Split
   ========================================================================== */
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.58;
  color: var(--qh-text, #1e293b);
  background-color: var(--qh-bg, #f3f5f8);
  overflow-x: clip;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--qh-text); text-decoration: none; transition: color 0.15s ease; }
a:hover, a:focus { color: var(--qh-accent); text-decoration: none; outline: none; }
ul, ol, dl, dt, dd, figure { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
em, i { font-style: normal; }
img { border: 0; vertical-align: middle; max-width: 100%; }
.text-muted { color: var(--qh-muted) !important; }

.qh-wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 1440px) { .qh-wrap { max-width: 1300px; } }
@media (max-width: 767px) { .qh-wrap { padding: 0 8px; } }

/* ================= 1. Two-Tier Portal Header (qh-hd) ================= */
header.qh-hd {
  position: fixed;
  top: var(--mob-ad-top, 0px);
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--qh-upper-bg);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
.qh-hd-upper {
  height: 56px;
  border-bottom: 1px solid var(--qh-border);
}
.qh-hd-upper-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}
.qh-brand {
  flex: 0 0 auto;
  max-width: 240px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.qh-brand a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--qh-accent);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qh-brand .qh-back-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--qh-text);
}
.qh-brand .qh-back-title .iconfont {
  color: var(--qh-accent);
  margin-right: 3px;
}

/* ST17 Rounded-Rect Search Box with Accent Button */
.qh-search {
  position: relative;
  flex: 0 1 400px;
  min-width: 160px;
}
.qh-search form.mac-search {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  border-radius: 7px;
  background: var(--qh-card2);
  border: 1.5px solid var(--qh-border);
  overflow: hidden;
  margin: 0;
}
.qh-search form.mac-search:focus-within {
  border-color: var(--qh-accent);
  background: var(--qh-card);
}
.qh-search .mac-wd {
  flex: 1 1 auto;
  width: 100%;
  height: 34px;
  line-height: 34px;
  border: 0 !important;
  background: transparent !important;
  color: var(--qh-text) !important;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  scroll-margin: 0 !important;
}
.qh-search .qh-search-btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 0;
  background: var(--qh-btn-bg);
  color: var(--qh-btn-fg);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.qh-search .qh-hot-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--qh-card);
  border: 1px solid var(--qh-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  padding: 10px 12px;
  z-index: 960;
}
.qh-search:focus-within .qh-hot-drop { display: block; }
.qh-hot-drop-hd { font-size: 12px; font-weight: 700; color: var(--qh-muted); margin-bottom: 6px; }
.qh-hot-drop ul li {
  line-height: 28px;
  height: 28px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qh-hot-drop ul li i {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 3px;
  background: var(--qh-card2);
  color: var(--qh-muted);
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}
.qh-hot-drop ul li:nth-child(1) i { background: #b91c1c; color: #fff; }
.qh-hot-drop ul li:nth-child(2) i { background: #c2410c; color: #fff; }
.qh-hot-drop ul li:nth-child(3) i { background: #b45309; color: #fff; }

.qh-hd-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.qh-act-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  color: var(--qh-text);
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
}
.qh-act-link:hover { border-color: var(--qh-accent); color: var(--qh-accent); }
.qh-hist-trigger { position: relative; cursor: pointer; }
.qh-hist-pop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 280px;
  background: var(--qh-card);
  border: 1px solid var(--qh-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  padding: 10px 12px;
  z-index: 960;
}
.qh-hist-trigger:hover .qh-hist-pop { display: block; }
.qh-hist-hd {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--qh-border);
}

/* Tier 2 Dark Menubar (Desktop Signature of ShouTu 17) */
.qh-hd-menubar {
  height: 42px;
  background: var(--qh-menubar-bg);
  color: var(--qh-menubar-fg);
}
.qh-hd-menubar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
}
.qh-menu-list {
  display: flex;
  align-items: center;
  height: 42px;
}
.qh-menu-list > li > a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--qh-menubar-fg);
  position: relative;
}
.qh-menu-list > li > a:hover,
.qh-menu-list > li.active > a {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-weight: 700;
}
.qh-menu-list > li.active > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--qh-menubar-act);
}
.qh-menu-note {
  font-size: 12.5px;
  color: rgba(248, 250, 252, 0.85);
}

.qh-mob-cat-btn {
  display: none;
  align-items: center;
  gap: 3px;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--qh-btn-bg);
  color: var(--qh-btn-fg) !important;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Header Spacers: Zero Blank Gap */
.qh-hd-spacer,
.qh-hd-spacer--sub {
  height: calc(110px + var(--mob-ad-flow-top, 0px));
  width: 100%;
}

@media (max-width: 767px) {
  .qh-hd-menubar, .qh-act-link, .qh-hist-trigger { display: none !important; }
  .qh-mob-cat-btn { display: inline-flex !important; }
  .qh-hd-upper, .qh-hd-upper-in { height: 50px !important; gap: 8px; }
  .qh-brand { max-width: 120px; font-size: 16px; }
  .qh-search { flex: 1 1 auto; min-width: 0; }
  .qh-search form.mac-search { height: 32px; border-radius: 999px; }
  .qh-search .mac-wd { height: 30px; line-height: 30px; font-size: 16px !important; padding: 0 10px; }
  .qh-search .qh-search-btn { height: 30px; padding: 0 10px; border-radius: 0 999px 999px 0; }
  .qh-search .qh-search-btn span { display: none; }

  nav.qh-mob-strip {
    display: block !important;
    position: fixed;
    top: calc(50px + var(--mob-ad-top, 0px));
    left: 0;
    right: 0;
    height: 38px !important;
    background: var(--qh-menubar-bg);
    z-index: 890;
    overflow: hidden;
  }
  .qh-mob-strip ul.swiper-wrapper {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 6px;
  }
  .qh-mob-strip li.swiper-slide { width: auto !important; flex: 0 0 auto; }
  .qh-mob-strip li.swiper-slide a {
    display: inline-block;
    height: 38px;
    line-height: 38px;
    padding: 0 11px;
    font-size: 14px;
    color: rgba(248, 250, 252, 0.90);
    position: relative;
  }
  .qh-mob-strip li.swiper-slide.active a {
    color: #ffffff;
    font-weight: 700;
  }
  .qh-mob-strip li.swiper-slide.active a::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 3px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--qh-menubar-act);
  }
  .qh-hd-spacer { height: calc(96px + var(--mob-ad-flow-top, 0px)) !important; }
  .qh-hd-spacer--sub { height: calc(58px + var(--mob-ad-flow-top, 0px)) !important; }
  html[data-ms="0"] header.qh-hd,
  html[data-ms="0"] nav.qh-mob-strip { position: relative !important; top: auto !important; }
  html[data-ms="0"] .qh-hd-spacer,
  html[data-ms="0"] .qh-hd-spacer--sub { height: 8px !important; }
}

/* ================= 2. Centered Pill-Capsule Breadcrumb & Hub Subnav ================= */
nav.qh-trail {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0 14px;
  margin: 0 auto 12px auto;
  border-radius: 999px !important;
  background: var(--qh-card);
  border: 1px solid var(--qh-border);
  font-size: 13px;
  color: var(--qh-muted);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}
nav.qh-trail::-webkit-scrollbar { display: none; }
nav.qh-trail a { color: var(--qh-text); font-weight: 500; }
nav.qh-trail a:hover { color: var(--qh-accent); }
nav.qh-trail .qh-sep { opacity: 0.55; }
nav.qh-trail .qh-cur { color: var(--qh-accent); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.qh-portal-pills {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
@media (max-width: 767px) {
  .qh-portal-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .qh-portal-pill { height: 34px; padding: 0 4px; gap: 3px; font-size: 12px; white-space: nowrap; overflow: hidden; }
  .qh-portal-pill .iconfont { font-size: 13px; }
}
.qh-portal-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--qh-card);
  border: 1px solid var(--qh-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--qh-text);
}
.qh-portal-pill i, .qh-portal-pill .iconfont { color: var(--qh-accent); }
.qh-portal-pill:hover { border-color: var(--qh-accent); color: var(--qh-accent); }

:root .qh-hub-tabs {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin-bottom: 12px;
  overflow-x: auto;
  overflow-y: hidden !important;
  scrollbar-width: none;
}
:root .qh-hub-tabs::-webkit-scrollbar { display: none; }
.qh-hub-tabs-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px !important;
  white-space: nowrap;
}
.qh-hub-tabs-in a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--qh-card);
  border: 1px solid var(--qh-border);
  color: var(--qh-text);
  font-size: 13px;
  font-weight: 500;
}
.qh-hub-tabs-in a.active,
.qh-hub-tabs-in a:hover {
  background: var(--qh-btn-bg);
  border-color: var(--qh-btn-bg);
  color: var(--qh-btn-fg) !important;
}

/* ================= 3. Asymmetric 76% Main + 24% Rank Sidebar Split Layout ================= */
.qh-split {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.qh-split-main {
  flex: 1 1 0;
  min-width: 0;
}
.qh-split-side {
  flex: 0 0 280px;
  width: 280px;
}
@media (max-width: 991px) {
  .qh-split { display: block; }
  .qh-split-side { display: none !important; }
}

.qh-panel {
  background: var(--qh-card);
  border: 1px solid var(--qh-border);
  border-radius: 8px;
  padding: 14px 15px;
  margin-bottom: 14px;
}
html[data-box="1"] .qh-panel,
body.box .qh-panel {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
@media (max-width: 767px) {
  .qh-panel { padding: 10px; margin-bottom: 10px; }
}
.qh-split > .qh-panel,
.qh-split-main > .qh-panel:last-child,
.qh-split-side > .qh-panel:last-child { margin-bottom: 0; }

.qh-panel-hd {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--qh-border);
}
.qh-panel-hd .qh-hd-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.qh-panel-hd .qh-hd-bar {
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--qh-accent);
  flex: 0 0 4px;
}
.qh-panel-hd h1,
.qh-panel-hd h2,
.qh-panel-hd h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--qh-text);
  line-height: 1.35;
}
@media (max-width: 767px) {
  .qh-panel-hd h1, .qh-panel-hd h2, .qh-panel-hd h3 { font-size: 16px; }
}
.qh-subcat-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  overflow: hidden;
}
.qh-subcat-inline a { font-size: 13px; color: var(--qh-muted); white-space: nowrap; }
.qh-subcat-inline a:hover { color: var(--qh-accent); }
.qh-panel-more {
  margin-left: auto;
  font-size: 13px;
  color: var(--qh-muted);
  white-space: nowrap;
}
.qh-panel-more:hover { color: var(--qh-accent); }

/* ================= 4. Hero Banner & 5-Column (PC) / 3-Column (Mobile) Zero-Jitter Poster Grid ================= */
.qh-banner-wrap {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #111827;
}
.qh-hero-banner {
  display: block;
  position: relative;
  width: 100%;
  height: 330px;
  overflow: hidden;
  background: #111827;
}
@media (max-width: 767px) { .qh-hero-banner { height: 184px; } }
.qh-hero-ambient {
  position: absolute;
  inset: -18px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.66);
  transform: scale(1.08);
  z-index: 1;
}
.qh-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.06) 0%, rgba(15,23,42,0.72) 100%);
  z-index: 2;
}
.qh-hero-stage {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.qh-hero-img { max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; }
.qh-banner-caption {
  position: absolute;
  left: 14px;
  right: 90px;
  bottom: 10px;
  z-index: 4;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.68);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

ul.qh-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -6px;
}
ul.qh-grid > li.qh-cell {
  width: 20%; /* 5 columns inside 76% main column! */
  padding: 0 6px 12px 6px;
  box-sizing: border-box;
}
ul.qh-grid--full > li.qh-cell {
  width: 16.6667%; /* 6 columns when full-width */
}
@media (min-width: 768px) and (max-width: 991px) {
  ul.qh-grid > li.qh-cell, ul.qh-grid--full > li.qh-cell { width: 25%; }
}
@media (max-width: 767px) {
  ul.qh-grid { margin: 0 -4px; }
  ul.qh-grid > li.qh-cell, ul.qh-grid--full > li.qh-cell {
    width: 33.3333%;
    padding: 0 4px 10px 4px;
  }
  ul.qh-grid.qh-mob-limit6 > li.qh-cell:nth-child(n+7) { display: none; }
}

:root .qh-thumb,
:root .img-pic {
  display: block;
  position: relative;
  width: 100%;
  height: 0 !important;
  padding-top: 140% !important;
  overflow: hidden !important;
  border-radius: 6px;
  background: var(--qh-card2) url('../images/pic.png') center center / cover no-repeat;
}

/* Zero-Blink / Zero-Jitter Poster Image Lock */
:root .qh-thumb img,
:root .qh-thumb img.fade-in,
:root .img-pic img,
:root .img-pic img.fade-in,
:root .qh-detail-cover img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center top !important;
  -webkit-animation: none !important;
  animation: none !important;
  -webkit-transition: none !important;
  transition: none !important;
  -webkit-transform: none !important;
  transform: none !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  will-change: auto !important;
  opacity: 1 !important;
}
:root img[src$="images/pic.png"],
:root img[src$="images/pic_wide.png"] {
  object-position: center center !important;
}

.qh-score-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 3;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--qh-btn-bg);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}
.qh-ep-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 14px 6px 4px 6px;
  font-size: 12px;
  color: #ffffff;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.84) 100%);
}
.qh-card-ttl {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qh-card-ttl a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qh-card-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--qh-muted);
  height: 18px;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sidebar Numbered Rank List (ShouTu 17 Signature) */
ul.qh-rank-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  border-bottom: 1px dashed var(--qh-border);
  font-size: 13.5px;
}
ul.qh-rank-list li:last-child { border-bottom: 0; }
.qh-rank-num {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 4px;
  background: var(--qh-card2);
  color: var(--qh-muted);
  font-size: 11.5px;
  font-weight: 700;
}
ul.qh-rank-list li:nth-child(1) .qh-rank-num { background: #b91c1c; color: #fff; }
ul.qh-rank-list li:nth-child(2) .qh-rank-num { background: #c2410c; color: #fff; }
ul.qh-rank-list li:nth-child(3) .qh-rank-num { background: #b45309; color: #fff; }
.qh-rank-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qh-rank-rem {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--qh-muted);
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================= 5. Dotted Filter Matrix (qh-filter-box) ================= */
.qh-filter-row {
  display: flex;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dotted var(--qh-border);
  overflow: hidden;
}
.qh-filter-row:last-child { border-bottom: 0; padding-bottom: 0; }
.qh-filter-lbl {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--qh-muted);
  margin-right: 10px;
}
.qh-filter-swiper {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.qh-filter-swiper ul.swiper-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qh-filter-swiper li.swiper-slide { width: auto !important; flex: 0 0 auto; }
.qh-filter-swiper li.swiper-slide a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--qh-text);
}
.qh-filter-swiper li.swiper-slide.active a {
  background: var(--qh-btn-bg);
  color: var(--qh-btn-fg) !important;
  font-weight: 600;
}

/* ================= 6. Detail <article>/<dl> Hero, Compact Playlist & 16:9 Theater ================= */
.qh-detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
figure.qh-detail-cover {
  flex: 0 0 185px;
  width: 185px;
  position: relative;
  height: 0 !important;
  padding-top: 259px !important; /* Exact 5:7 Lock -> 0.00px Shift */
  border-radius: 7px;
  overflow: hidden;
  background: var(--qh-card2) url('../images/pic.png') center center / cover no-repeat;
}
.qh-detail-meta { flex: 1 1 auto; min-width: 0; }
.qh-detail-meta h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}
dl.qh-meta-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin-bottom: 12px;
}
dl.qh-meta-dl div.qh-dl-pair {
  display: flex;
  align-items: baseline;
  min-width: 0;
  font-size: 13.5px;
}
dl.qh-meta-dl div.qh-dl-pair.is-wide { grid-column: 1 / -1; }
dl.qh-meta-dl dt {
  flex: 0 0 auto;
  color: var(--qh-muted);
  font-weight: 500;
  margin-right: 4px;
}
dl.qh-meta-dl dd {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qh-cta-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qh-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--qh-btn-bg) !important;
  color: var(--qh-btn-fg) !important;
  font-size: 14px;
  font-weight: 700;
}
.qh-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
  color: var(--qh-text);
  font-size: 13px;
}
@media (max-width: 767px) {
  .qh-detail-hero { gap: 11px; }
  figure.qh-detail-cover {
    flex: 0 0 106px;
    width: 106px;
    padding-top: 148px !important;
  }
  .qh-detail-meta h1 { font-size: 17px; margin-bottom: 5px; }
  dl.qh-meta-dl { grid-template-columns: 1fr; gap: 3px; margin-bottom: 6px; }
  dl.qh-meta-dl div.qh-dl-pair { font-size: 12.5px; }
  .qh-btn-play, .qh-btn-ghost { height: 32px; padding: 0 14px; font-size: 12.5px; }
}

/* ST17 Playlist Panel (Source Tabs + Compact Mobile First-Screen Grid) */
.qh-src-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--qh-border);
}
.qh-src-swiper { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.qh-src-swiper ul.swiper-wrapper { display: flex; align-items: center; gap: 6px; }
.qh-src-swiper li.swiper-slide { width: auto !important; flex: 0 0 auto; }
.qh-src-swiper li.swiper-slide a.qh-src-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 31px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
  color: var(--qh-text);
  font-size: 13px;
  font-weight: 600;
}
.qh-src-swiper li.swiper-slide.active a.qh-src-tab {
  background: var(--qh-btn-bg) !important;
  border-color: var(--qh-btn-bg) !important;
  color: var(--qh-btn-fg) !important;
}
.qh-sort-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--qh-text);
}
.qh-ep-pane { display: none; }
.qh-ep-pane.show { display: block !important; }
ul.qh-ep-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 0 -4px;
  max-height: 280px;
  overflow-y: auto;
}
ul.qh-ep-grid > li {
  width: 14.2857%;
  padding: 4px;
  box-sizing: border-box;
}
@media (max-width: 991px) { ul.qh-ep-grid > li { width: 20%; } }
@media (max-width: 767px) {
  .qh-playlist-sec { padding: 8px 9px !important; margin-bottom: 8px !important; }
  .qh-src-bar { padding-bottom: 6px !important; margin-bottom: 6px !important; }
  ul.qh-ep-grid { margin: 0 -3px; max-height: 246px; }
  ul.qh-ep-grid > li { width: 25%; padding: 3px; }
}
ul.qh-ep-grid > li > a {
  display: block;
  height: 34px;
  line-height: 32px;
  padding: 0 6px;
  text-align: center;
  border-radius: 5px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border) !important;
  color: var(--qh-text);
  font-size: 13px;
  font-weight: 500 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box !important;
  transform: none !important;
}
ul.qh-ep-grid > li > a:hover,
ul.qh-ep-grid > li.active > a,
ul.qh-ep-grid > li > a.active {
  background: var(--qh-btn-bg) !important;
  border-color: var(--qh-btn-bg) !important;
  color: var(--qh-btn-fg) !important;
}

/* 16:9 Theater Player & Single-Icon Marquee Notice */
.qh-theater-box {
  background: #0d111a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #22293a;
  margin-bottom: 12px;
  position: relative;
  z-index: 20;
}
.player-tipss {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  background: #171e2e;
  color: #e2e8f0;
  font-size: 12.5px !important;
  overflow: hidden;
  white-space: nowrap;
}
.player-tipss .tip-ico { color: #fbbf24; margin-right: 6px; }
.player-tipss .tip-close { margin-left: auto; color: #cbd5e1; cursor: pointer; padding: 2px 4px; }
@media (max-width: 767px) {
  .qh-theater-box { margin-left: -8px; margin-right: -8px; border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 8px; }
  .player-tipss { height: 28px; padding: 0 8px; font-size: 12px !important; }
}
.qh-player-video {
  position: relative;
  width: 100%;
  height: 0 !important;
  padding-bottom: 56.25% !important;
  background: #000;
  overflow: hidden;
}
.qh-player-video .MacPlayer,
.qh-player-video #playleft,
.qh-player-video #cms_play,
.qh-player-video iframe,
.qh-player-video video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}
@media (max-width: 920px) and (orientation: landscape) {
  .qh-player-video { padding-bottom: 0 !important; height: calc(100vh - 84px) !important; max-height: 82vh !important; }
}
.qh-player-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: #141a27;
  color: #e2e8f0;
}
.qh-player-foot h1 { font-size: 15px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qh-player-foot h1 a { color: #fff; }
.qh-player-btns { display: inline-flex; gap: 6px; margin-left: auto; }
.qh-player-btns a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.12);
  color: #f8fafc;
  font-size: 12px;
}
.qh-player-btns a:hover { background: var(--qh-btn-bg); color: #fff; }
body.qh-lights-off::after { content: ""; position: fixed; inset: 0; background: rgba(5,8,15,0.88); z-index: 910; }
body.qh-lights-off .qh-theater-box { z-index: 920; }

/* ================= 7. Dossier Table (<dl>), <details> Q&A Deck, Search & Colored Digg ================= */
dl.qh-dossier-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--qh-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
@media (max-width: 767px) { dl.qh-dossier-table { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qh-dos-cell {
  padding: 8px 10px;
  border-right: 1px solid var(--qh-border);
  border-bottom: 1px solid var(--qh-border);
  background: var(--qh-card2);
}
.qh-dos-cell dt { font-size: 11.5px; color: var(--qh-muted); }
.qh-dos-cell dd { font-size: 13px; font-weight: 600; color: var(--qh-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qh-synopsis-prose {
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
  font-size: 14px;
  line-height: 1.75;
}
.qh-synopsis-prose p { margin-bottom: 8px; }
.qh-synopsis-prose p:last-child { margin-bottom: 0; }
.qh-tag-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qh-tag-pills a {
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--qh-soft);
  border: 1px solid var(--qh-soft-bd);
  color: var(--qh-accent);
  font-size: 12px;
}

/* Semantic <details open class="qh-qa-entry"> Q&A Cards */
.qh-qa-deck { display: flex; flex-direction: column; gap: 9px; }
details.qh-qa-entry {
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
  border-radius: 7px;
  padding: 10px 12px;
}
summary.qh-qa-q {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--qh-text);
}
summary.qh-qa-q::-webkit-details-marker { display: none; }
.qh-qa-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
}
.qh-qa-tag--q { background: var(--qh-btn-bg); color: var(--qh-btn-fg); }
.qh-qa-tag--a { background: var(--qh-soft); color: var(--qh-accent); border: 1px solid var(--qh-soft-bd); }
.qh-qa-a-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 7px; }
.qh-qa-a-txt { font-size: 13.5px; line-height: 1.68; color: var(--qh-muted); word-break: break-word; }
.qh-qa-url { color: var(--qh-accent); font-family: monospace; }

/* Search Media List */
.qh-search-items { display: flex; flex-direction: column; gap: 12px; }
.qh-search-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 7px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
}
.qh-search-thumb { flex: 0 0 110px; width: 110px; }
.qh-search-info { flex: 1 1 auto; min-width: 0; }
.qh-search-info h2 { font-size: 16.5px; font-weight: 700; margin-bottom: 5px; }
.qh-search-info p { font-size: 13px; color: var(--qh-muted); margin-bottom: 4px; }
@media (max-width: 767px) {
  .qh-search-thumb { flex: 0 0 86px; width: 86px; }
  .qh-search-info h2 { font-size: 15px; }
}

/* Actor Detail & Skin-Adaptive Colored Digg Capsules */
.qh-actor-row { display: flex; gap: 18px; align-items: flex-start; }
.qh-actor-poster { flex: 0 0 160px; width: 160px; }
@media (max-width: 767px) { .qh-actor-row { gap: 12px; } .qh-actor-poster { flex: 0 0 102px; width: 102px; } }
.star_digg { display: flex; gap: 8px; margin-top: 8px; }
.star_digg a.digg_link {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.star_digg a.up { background: var(--qh-soft) !important; color: var(--qh-accent) !important; border: 1px solid var(--qh-soft-bd) !important; }
.star_digg a.down { background: rgba(100,116,139,0.12) !important; color: var(--qh-muted) !important; border: 1px solid var(--qh-border) !important; }

/* Pagination */
#page ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
#page ul li a, #page ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  border-radius: 6px;
  background: var(--qh-card);
  border: 1px solid var(--qh-border);
  color: var(--qh-text);
  font-size: 13px;
}
#page ul li.active span, #page ul li.active a {
  background: var(--qh-btn-bg);
  border-color: var(--qh-btn-bg);
  color: var(--qh-btn-fg);
}
.qh-empty { text-align: center; padding: 36px 12px; color: var(--qh-muted); }

/* ================= 8. Complete Styled Mobile Category Drawer & 220vh Keyboard Shield ================= */
body.qh-drawer-lock { overflow: hidden !important; }
body.qh-drawer-lock header.qh-hd { z-index: 1003 !important; }
.qh-mob-mask {
  position: fixed;
  top: calc(50px + var(--mob-ad-top, 0px));
  left: 0;
  right: 0;
  bottom: -120vh !important;
  min-height: 220vh !important;
  background: rgba(15, 23, 42, 0.56);
  z-index: 1000 !important;
  display: none;
}
.qh-mob-drawer {
  position: fixed;
  top: calc(50px + var(--mob-ad-top, 0px));
  left: 0;
  right: 0;
  max-height: calc(var(--benben-vvh, 100vh) - 50px - var(--mob-ad-top, 0px) - var(--mob-ad-bottom, 0px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  background: var(--qh-card);
  border-bottom: 1px solid var(--qh-border);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
  padding: 12px 12px calc(68px + env(safe-area-inset-bottom, 0px)) 12px !important;
  z-index: 1002 !important;
  display: none;
}
.qh-mob-drawer.is-open, .qh-mob-mask.is-open { display: block !important; }
@media (min-width: 768px) { .qh-mob-drawer, .qh-mob-mask { display: none !important; } }

.qh-drawer-topbar { display: flex; gap: 6px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--qh-border); }
.qh-drawer-topbar a {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 34px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
  font-size: 12.5px;
  color: var(--qh-text) !important;
  white-space: nowrap;
}
.qh-drawer-topbar a .iconfont { color: var(--qh-accent) !important; font-size: 13.5px !important; }
.qh-drawer-sec { margin-bottom: 12px; }
.qh-drawer-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--qh-muted);
  margin: 4px 0 8px;
}
.qh-drawer-hd::before {
  content: "";
  width: 3.5px;
  height: 13px;
  border-radius: 2px;
  background: var(--qh-accent);
}
.qh-hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.qh-hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 4px;
  border-radius: 8px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
  font-size: 12px;
  color: var(--qh-text) !important;
  text-align: center;
}
.qh-hub-card .iconfont { font-size: 18px !important; color: var(--qh-accent) !important; }
.qh-hub-card.is-accent { background: var(--qh-soft); border-color: var(--qh-soft-bd); font-weight: 600; }
.qh-hub-card.is-cur, .qh-hub-card.is-active { background: var(--qh-soft); border-color: var(--qh-accent); color: var(--qh-accent) !important; font-weight: 700; }
.qh-cat-group {
  margin-bottom: 10px;
  padding: 10px 11px;
  border-radius: 8px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
}
.qh-cat-parent { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.qh-cat-main { display: inline-flex !important; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--qh-text) !important; }
.qh-cat-main::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--qh-accent); }
.qh-cat-main.active { color: var(--qh-accent) !important; }
.qh-cat-filter {
  display: inline-flex !important;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--qh-card);
  border: 1px solid var(--qh-border);
  font-size: 11.5px;
  color: var(--qh-muted) !important;
}
.qh-cat-subs { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; }
.qh-cat-subs a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--qh-card);
  border: 1px solid var(--qh-border);
  color: var(--qh-text) !important;
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qh-cat-subs a:hover, .qh-cat-subs a.active {
  background: var(--qh-btn-bg) !important;
  border-color: var(--qh-btn-bg) !important;
  color: var(--qh-btn-fg) !important;
  font-weight: 600;
}

/* Footer, Mobile Bottom Tabbar & Floating Tools */
footer.qh-ft {
  background: var(--qh-card);
  border-top: 1px solid var(--qh-border);
  padding: 22px 12px;
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--qh-muted);
}
.qh-ft-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-bottom: 8px; }
.qh-ft-links a { color: var(--qh-text); }
.qh-ft-links a:hover { color: var(--qh-accent); }
@media (max-width: 767px) {
  footer.qh-ft { margin-bottom: calc(56px + var(--mob-ad-flow-bottom, 0px)); padding: 16px 10px; }
  html[data-mb="0"] footer.qh-ft { margin-bottom: 12px; }
}
nav.qh-bot-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--mob-ad-bottom, 0px);
  height: 54px;
  background: var(--qh-card);
  border-top: 1px solid var(--qh-border);
  display: flex;
  align-items: center;
  z-index: 880;
}
@media (min-width: 768px) { nav.qh-bot-tabbar { display: none !important; } }
html[data-mb="0"] nav.qh-bot-tabbar { display: none !important; }
nav.qh-bot-tabbar a { flex: 1 1 20%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11.5px; color: var(--qh-muted); }
nav.qh-bot-tabbar a .iconfont { font-size: 19px; margin-bottom: 2px; }

ul.qh-float-dock.qh-dock-list {
  position: fixed;
  right: 16px;
  bottom: calc(74px + var(--mob-ad-bottom, 0px));
  z-index: 870;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
ul.qh-float-dock.qh-dock-list > li {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--qh-card);
  border: 1px solid var(--qh-border);
  box-shadow: 0 4px 12px rgba(15,23,42,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qh-text);
  cursor: pointer;
}
ul.qh-float-dock.qh-dock-list > li.qh-dock-top { display: none; }
ul.qh-float-dock.qh-dock-list > li:hover { background: var(--qh-btn-bg); color: var(--qh-btn-fg); }

#mac-pop-bg, #mac-tips-bg { position: fixed; top: 0; left: 0; right: 0; bottom: -120vh !important; min-height: 220vh !important; background: rgba(15,23,42,0.56); z-index: 2000; }
#mac-pop-box, #mac-tips-box { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 90%; max-width: 360px; background: var(--qh-card); color: var(--qh-text); border: 1px solid var(--qh-border); border-radius: 12px; padding: 16px; z-index: 2001; }
#theme-skin, #theme-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
#theme-skin li, #theme-box li { padding: 8px 10px; border-radius: 6px; background: var(--qh-card2); border: 1px solid var(--qh-border); text-align: center; font-size: 13px; font-weight: 600; cursor: pointer; }

.qh-sitemap-sec { margin-bottom: 12px; }
.qh-sitemap-sec h3 { font-size: 14.5px; font-weight: 700; color: var(--qh-accent); margin-bottom: 8px; }
.qh-sitemap-links { display: flex; flex-wrap: wrap; gap: 8px; }
.qh-sitemap-links a { display: inline-block; padding: 5px 12px; border-radius: 6px; background: var(--qh-card2); border: 1px solid var(--qh-border); font-size: 13px; color: var(--qh-text); }
.qh-sitemap-links a:hover { border-color: var(--qh-accent); color: var(--qh-accent); }

.qh-form-ctrl {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--qh-card2);
  border: 1px solid var(--qh-border);
  color: var(--qh-text);
  font-size: 14px;
  box-sizing: border-box;
}

/* Mobile Soft-Keyboard 220vh Zero-Poster-Bleed Shield */
@media (max-width: 767px) {
  html.mob-hdr-search-open, html.mob-hdr-search-open body,
  html.mob-overlay-open, html.mob-overlay-open body {
    background-color: var(--qh-bg) !important;
    background-image: none !important;
    overscroll-behavior-y: none !important;
  }
  html.mob-hdr-search-open::after {
    content: "";
    position: fixed;
    top: calc(50px + var(--mob-ad-top, 0px));
    left: 0;
    right: 0;
    bottom: -120vh;
    min-height: 220vh;
    background: var(--qh-bg);
    z-index: 895;
    pointer-events: none;
  }
  html.mob-hdr-search-open body > :not(header):not(.qh-hd):not(.autocomplete-suggestions):not(#mac-pop-bg):not(#mac-pop-box):not(#mac-tips-bg):not(#mac-tips-box):not(script):not(style):not(link),
  html.mob-overlay-open body > :not(header):not(.qh-hd):not(.qh-mob-drawer):not(.qh-mob-mask):not(.autocomplete-suggestions):not(#mac-pop-bg):not(#mac-pop-box):not(#mac-tips-bg):not(#mac-tips-box):not(script):not(style):not(link) {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
