/* 黄豆短剧 hd-theme v4.0 — Stage+Deck 架构 */
/*
 * Architecture
 * ────────────
 * Mast  (.hd-top)     → sticky studio masthead
 * Lanes (.hd-lanes)   → horizontal topic / channel strips
 * Stage (.hd-stage)   → hero / search / cinema landing (alias: .hd-hero)
 * Deck  (.hd-deck)    → main column + sticky side rail
 * Band  (.hd-band)    → full-bleed content bands
 * Foot  (.hd-foot)    → site footer
 *
 * New surfaces: .hd-bento · .hd-cinema · .hd-toc · .hd-side-card · .hd-filter__facets
 * Legacy: hd-vitem / rail / wall / mosaic / sheet / ep-* / screen / dock / detail /
 *         feature / picks / chips / portals / pod / calendar / intent / board /
 *         pulse / pagehead / crumb / btn* / pager / feed* / row* / lost* /
 *         sitemap / notice* / find* / log* / menu* / drawer / top-btn / hero /
 *         kicker / meta / article / faq* / hub-nav / tags / platforms / film* / wrap
 *
 * JS contracts (do not rename):
 * .hd-top .hd-menu .hd-drawer .hd-menu-btn .hd-log-btn #history-panel
 * .hd-log__clear .historyclean .hd-find #search .lazyload
 * [data-source-tabs] [data-source-tab] [data-source-pane]
 * #dplayer .m3u8_type .url_type .hd-top-btn .hd-notice__x .copylink
 * [data-rail-prev] [data-rail-next]
 */

/* ============================================================
   0. Design tokens — cool slate studio
   ============================================================ */
:root {
  --hd-bg: #ebf0f6;
  --hd-paper: #f4f7fb;
  --hd-paper-2: #e2e8f0;
  --hd-panel: #ffffff;
  --hd-panel-2: #f1f5f9;
  --hd-ink: #0b1220;
  --hd-ink-2: #1e293b;
  --hd-muted: #64748b;
  --hd-line: #cfd8e6;
  --hd-mast: #07101c;
  --hd-header: var(--hd-mast);
  --hd-header-text: #e8eef9;
  --hd-on-dark: #e8eef9;
  --hd-on-dark-muted: rgba(232, 238, 249, 0.72);
  --hd-brand: #f2a11a;
  --hd-brand-2: #ffbf3d;
  --hd-accent: #0e7c74;
  --hd-accent-2: #14968c;
  --hd-rank: #ea580c;
  --hd-rank-2: #f97316;
  --hd-play: #0e7c74;
  --hd-play-2: #14968c;
  --hd-poster-bg: #c5cede;
  --hd-cap: var(--hd-brand);
  --hd-cap-2: var(--hd-brand-2);
  --hd-stem: var(--hd-accent);
  --hd-stem-2: var(--hd-accent-2);
  --hd-gold: var(--hd-rank);
  --hd-dark: #07101c;
  --hd-dark-panel: #122033;
  --hd-amber: #f2a11a;
  --hd-teal: #0e7c74;
  --hd-ink-tone: #0b1220;
  --hd-radius: 10px;
  --hd-radius-lg: 16px;
  --hd-radius-xl: 22px;
  --hd-max: 1240px;
  --hd-deck-side: 300px;
  --hd-poster-w: 140px;
  --hd-poster-w-lg: 220px;
  --hd-mast-h: 62px;
  --hd-font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --hd-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --hd-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --hd-mono: "JetBrains Mono", "DIN Alternate", "Consolas", ui-monospace, monospace;
  --hd-shadow: 0 14px 40px rgba(7, 16, 28, 0.1);
  --hd-shadow-sm: 0 4px 14px rgba(7, 16, 28, 0.06);
  --hd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hd-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   1. Base reset & document
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--hd-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--hd-ink);
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 65% 40% at 0% 0%, rgba(242, 161, 26, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 36% at 100% 6%, rgba(14, 124, 116, 0.09), transparent 52%),
    linear-gradient(180deg, #f2f5fa 0%, var(--hd-bg) 28%, #e4eaf2 100%);
}

img { max-width: 100%; display: block; }
a { color: var(--hd-accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--hd-brand); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.45em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 0.75em; }
button, input { font: inherit; }
.hide, .hidden { display: none !important; }
.empty-state { text-align: center; padding: 40px; color: var(--hd-muted); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Poster aspect 2:3 everywhere */
.hd-poster,
.hd-vitem__cover,
.hd-feature__poster,
.hd-detail__poster,
.hd-row__thumb,
.hd-feed__thumb,
.hd-cinema__poster,
.hd-film__poster,
.hd-bento__hero .hd-vitem__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--hd-poster-bg);
}
.hd-poster > img,
.hd-vitem__cover > img,
.hd-feature__poster > img,
.hd-detail__poster > img,
.hd-row__thumb > img,
.hd-feed__thumb > img,
.hd-cinema__poster > img,
.hd-film__poster > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

/* ============================================================
   2. Wrap & layout primitives
   ============================================================ */
.hd-wrap {
  width: 100%;
  max-width: var(--hd-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   3. MAST — .hd-top
   ============================================================ */
.hd-top {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 16, 28, 0.97);
  backdrop-filter: saturate(1.25) blur(10px);
  -webkit-backdrop-filter: saturate(1.25) blur(10px);
  border-bottom: 1px solid rgba(242, 161, 26, 0.16);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}
.hd-top__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--hd-mast-h);
}
.hd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hd-header-text);
  flex-shrink: 0;
}
.hd-brand:hover { color: #fff; }
.hd-brand__glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--hd-brand-2), var(--hd-brand));
  color: var(--hd-mast);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 4px 14px rgba(242, 161, 26, 0.35);
}
.hd-brand__name {
  font-family: var(--hd-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hd-menu {
  display: none;
  gap: 3px;
  flex: 1;
}
.hd-menu__link {
  padding: 7px 13px;
  border-radius: var(--hd-radius);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.76);
}
.hd-menu__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.hd-menu__link.is-active {
  color: var(--hd-mast);
  background: linear-gradient(135deg, var(--hd-brand-2), var(--hd-brand));
}

.hd-top__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.hd-find {
  position: relative;
  width: 100%;
  max-width: 240px;
}
.hd-find input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--hd-radius);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
  font-size: 13px;
}
.hd-find input::placeholder { color: rgba(255, 255, 255, 0.42); }
.hd-find input:focus {
  border-color: var(--hd-accent-2);
  background: rgba(255, 255, 255, 0.12);
}
.hd-find button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: linear-gradient(135deg, var(--hd-accent-2), var(--hd-accent));
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.hd-find--lg { max-width: 100%; }
.hd-find--lg input { height: 50px; font-size: 15px; padding-right: 110px; }
.hd-find--lg button {
  width: auto;
  padding: 0 18px;
  height: 42px;
  right: 4px;
}

.hd-log-btn,
.hd-menu-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--hd-header-text);
  padding: 7px 12px;
  border-radius: var(--hd-radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.hd-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 0;
  line-height: 0;
}
.hd-menu-btn::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.hd-drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--hd-mast);
}
.hd-drawer.is-open {
  display: flex;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.hd-drawer a {
  padding: 10px 12px;
  border-radius: var(--hd-radius);
  font-weight: 600;
  color: var(--hd-on-dark-muted);
}
.hd-drawer a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hd-log { position: relative; }
.hd-log__panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  max-height: 360px;
  overflow: auto;
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow);
  padding: 12px;
  z-index: 300;
}
.hd-log__panel.is-open { display: block; }
.hd-log__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}
.hd-log__clear,
.historyclean {
  border: 0;
  background: none;
  color: var(--hd-accent);
  cursor: pointer;
  font-size: 12px;
}
.hd-log__list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hd-line);
  font-size: 13px;
  color: var(--hd-ink-2);
}
.hd-log__empty { font-size: 13px; color: var(--hd-muted); margin: 0; }

@media (min-width: 900px) {
  .hd-menu { display: flex; }
  .hd-menu-btn { display: none; }
  .hd-drawer { display: none !important; }
}

/* ============================================================
   4. LANES — .hd-lanes
   ============================================================ */
.hd-lanes {
  position: relative;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  margin: 0 0 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  background: transparent;
  border-bottom: none;
}
.hd-lanes__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  width: 100%;
}
.hd-lanes__track::-webkit-scrollbar { height: 3px; }
.hd-lanes__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
.hd-lanes__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hd-line);
  background: var(--hd-panel);
  color: var(--hd-ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--hd-ease);
}
.hd-lanes__item:hover {
  color: var(--hd-accent);
  border-color: var(--hd-accent);
  background: rgba(14, 124, 116, 0.08);
  transform: translateY(-1px);
}
.hd-lanes__item.is-active,
.hd-lanes__item.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--hd-accent-2), var(--hd-accent));
  border-color: transparent;
}
.hd-lanes__item em {
  font-style: normal;
  font-family: var(--hd-mono);
  font-size: 11px;
  opacity: 0.7;
}
.hd-lanes__item.is-active em { opacity: 0.9; color: inherit; }

/* ============================================================
   5. STAGE — .hd-stage (+ .hd-hero alias)
   ============================================================ */
.hd-stage,
.hd-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 44px;
  margin-bottom: 4px;
  color: var(--hd-on-dark);
  border-radius: 0 0 28px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(128deg, rgba(7, 16, 28, 0.97) 0%, rgba(12, 32, 48, 0.92) 48%, rgba(14, 124, 116, 0.7) 100%),
    radial-gradient(circle at 88% 16%, rgba(255, 191, 61, 0.26), transparent 42%);
}
.hd-stage::after,
.hd-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -72px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 161, 26, 0.22), transparent 70%);
  pointer-events: none;
}
.hd-stage .hd-wrap,
.hd-hero .hd-wrap { position: relative; z-index: 1; }

.hd-stage__grid,
.hd-hero__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hd-stage__grid,
  .hd-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.hd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hd-brand-2);
  margin-bottom: 12px;
}
.hd-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--hd-brand);
  border-radius: 2px;
}

.hd-stage h1,
.hd-hero h1 {
  font-family: var(--hd-display);
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}
.hd-stage__lead,
.hd-hero__lead {
  font-size: 15px;
  color: var(--hd-on-dark-muted);
  max-width: 40em;
  margin-bottom: 22px;
}

/* Stage 大搜索：与文案 / chips 拉开上下间距 */
.hd-stage .hd-find--lg,
.hd-hero .hd-find--lg {
  margin: 10px 0 0;
  max-width: 560px;
}
.hd-stage .hd-find--lg input,
.hd-hero .hd-find--lg input {
  background: rgba(255, 255, 255, 0.97);
  color: var(--hd-ink);
  border-color: transparent;
}
.hd-stage .hd-find--lg input::placeholder,
.hd-hero .hd-find--lg input::placeholder { color: var(--hd-muted); }
.hd-stage .hd-find--lg button,
.hd-hero .hd-find--lg button {
  background: linear-gradient(135deg, var(--hd-brand-2), var(--hd-brand));
  color: var(--hd-mast);
  font-weight: 800;
}

.hd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.hd-tags a {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--hd-line);
  border-radius: 999px;
  color: var(--hd-ink-2);
  background: var(--hd-panel);
}
.hd-tags a:hover {
  border-color: var(--hd-accent);
  color: var(--hd-accent);
}
.hd-tags--wide { gap: 10px; }
.hd-tags--wide a {
  font-size: 13px;
  padding: 6px 14px;
}

/* ============================================================
   6. DECK — .hd-deck (main + sticky side)
   ============================================================ */
.hd-deck {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin: 28px 0;
  align-items: start;
}
.hd-deck__main { min-width: 0; }
.hd-deck__side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 1024px) {
  .hd-deck {
    grid-template-columns: minmax(0, 1fr) var(--hd-deck-side);
  }
  .hd-deck__side {
    position: sticky;
    top: calc(var(--hd-mast-h) + 16px);
    max-height: calc(100vh - var(--hd-mast-h) - 32px);
    overflow: auto;
    scrollbar-width: thin;
  }
}
.hd-deck--reverse {
  direction: rtl;
}
.hd-deck--reverse > * {
  direction: ltr;
}
@media (min-width: 1024px) {
  .hd-deck--reverse {
    grid-template-columns: var(--hd-deck-side) minmax(0, 1fr);
  }
}

/* Side cards inside deck */
.hd-side-card {
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  padding: 16px 16px 14px;
  box-shadow: var(--hd-shadow-sm);
}
.hd-side-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hd-line);
}
.hd-side-card__head h3,
.hd-side-card__title {
  font-family: var(--hd-display);
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: var(--hd-ink);
}
.hd-side-card__more {
  font-size: 12px;
  font-weight: 700;
  color: var(--hd-accent);
  white-space: nowrap;
}
.hd-side-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hd-side-list__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--hd-line);
  font-size: 13px;
}
.hd-side-list__item:last-child { border-bottom: 0; }
.hd-side-list__num {
  font-family: var(--hd-mono);
  font-weight: 800;
  font-size: 13px;
  color: var(--hd-muted);
  line-height: 1.4;
}
.hd-side-list__num.is-hot,
.hd-side-list__item:nth-child(-n+3) .hd-side-list__num {
  color: var(--hd-rank);
}
.hd-side-list__item a {
  color: var(--hd-ink-2);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hd-side-list__item a:hover { color: var(--hd-accent); }
.hd-side-list__meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--hd-muted);
  font-weight: 500;
}

/* ============================================================
   7. BAND — .hd-band
   ============================================================ */
.hd-band {
  position: relative;
  margin: 36px -24px;
  padding: 28px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)),
    var(--hd-paper);
  border-block: 1px solid var(--hd-line);
}
.hd-band--ink {
  background: linear-gradient(135deg, #0a1626 0%, #12263a 55%, #0e4a46 100%);
  color: var(--hd-on-dark);
  border-block-color: transparent;
}
.hd-band--ink a { color: var(--hd-brand-2); }
.hd-band--ink a:hover { color: #fff; }
.hd-band--teal {
  background:
    linear-gradient(120deg, rgba(14, 124, 116, 0.08), transparent 50%),
    var(--hd-paper);
}
.hd-band--amber {
  background:
    linear-gradient(120deg, rgba(242, 161, 26, 0.1), transparent 50%),
    var(--hd-paper);
}
.hd-band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.hd-band__head h2 {
  font-family: var(--hd-display);
  font-size: 1.25rem;
  margin: 0;
}
.hd-band--ink .hd-band__head h2 { color: #fff; }

/* ============================================================
   8. FOOT — .hd-foot
   ============================================================ */
.hd-foot {
  margin-top: 64px;
  background: var(--hd-mast);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 32px;
  font-size: 13px;
}
.hd-foot a { color: rgba(255, 255, 255, 0.85); }
.hd-foot a:hover { color: var(--hd-brand-2); }
.hd-foot__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}
.hd-foot__grid > div:first-child > p {
  margin: 0;
  max-width: 28em;
  line-height: 1.55;
}
.hd-foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hd-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.hd-foot h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hd-brand);
  margin: 0 0 12px;
}
.hd-foot ul { margin: 0; padding: 0; list-style: none; }
.hd-foot li { margin-bottom: 8px; }
.hd-foot__legal {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.7;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.hd-foot__legal p { margin: 0 0 10px; }
.hd-foot__copy {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
  .hd-foot {
    margin-top: 40px;
    padding: 28px 0 24px;
    font-size: 12px;
  }
  .hd-foot__grid {
    gap: 16px 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
  }
  .hd-foot__grid > div:first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .hd-foot__grid > div:first-child > p {
    flex: 1 1 100%;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hd-foot__brand { margin-bottom: 0; font-size: 1rem; }
  .hd-foot h4 { font-size: 11px; margin-bottom: 8px; letter-spacing: 0.04em; }
  .hd-foot li { margin-bottom: 5px; line-height: 1.35; }
  .hd-foot li a { font-size: 11px; word-break: break-all; }
  .hd-foot__legal { padding-top: 14px; font-size: 11px; line-height: 1.55; }
  .hd-foot__copy { margin-top: 10px; font-size: 11px; }
}
@media (min-width: 768px) {
  .hd-foot__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

/* ============================================================
   9. NOTICE
   ============================================================ */
.hd-notice {
  background: linear-gradient(90deg, #0e7c74, #14968c 55%, #0f8a82);
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
  position: relative;
}
.hd-notice p {
  margin: 0;
  text-align: center;
  padding-right: 28px;
}
.hd-notice__x {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
}
.hd-notice.is-hidden { display: none; }

/* ============================================================
   10. BENTO — asymmetric grid
   ============================================================ */
.hd-bento {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(120px, auto);
  margin: 24px 0;
}
@media (min-width: 700px) {
  .hd-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
  }
  /* 左大右四宫：hero 占 2×2，其余四格各占 1 */
  .hd-bento__hero {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
  .hd-bento__cell { grid-column: span 1; }
  .hd-bento__cell--sm { grid-column: span 1; }
  .hd-bento__cell--md { grid-column: span 2; }
  .hd-bento__cell--wide { grid-column: span 2; }
}
.hd-bento__hero,
.hd-bento__cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--hd-radius-lg);
  border: 1px solid var(--hd-line);
  background: var(--hd-panel);
  box-shadow: 0 4px 16px rgba(7, 16, 28, 0.06);
  padding: 18px;
  color: var(--hd-ink);
  transition: transform 0.25s var(--hd-ease), box-shadow 0.25s;
}
.hd-bento__hero:hover,
.hd-bento__cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--hd-shadow);
  color: inherit;
}
.hd-bento__hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(7, 16, 28, 0.2), rgba(7, 16, 28, 0.88)),
    linear-gradient(135deg, #0e7c74, #0a4f4a 50%, #152033);
}
.hd-bento__hero:hover { color: #fff; }
.hd-bento__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hd-brand-2);
  margin-bottom: 10px;
}
.hd-bento__hero h2,
.hd-bento__hero h3,
.hd-bento__hero strong {
  font-family: var(--hd-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: #fff;
  margin: 0 0 8px;
  display: block;
  font-weight: 800;
}
.hd-bento__hero p,
.hd-bento__hero > span:not(.hd-bento__kicker) {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36em;
}
.hd-bento__cell h3,
.hd-bento__cell strong {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  display: block;
  color: inherit;
}
.hd-bento__cell p,
.hd-bento__cell span {
  margin: 0;
  font-size: 13px;
  color: var(--hd-muted);
  line-height: 1.5;
}
.hd-bento__cell--amber {
  background:
    linear-gradient(145deg, rgba(242, 161, 26, 0.16), transparent 55%),
    var(--hd-panel);
  border-color: rgba(242, 161, 26, 0.35);
}
.hd-bento__cell--teal {
  background:
    linear-gradient(145deg, rgba(14, 124, 116, 0.14), transparent 55%),
    var(--hd-panel);
  border-color: rgba(14, 124, 116, 0.32);
}
.hd-bento__cell--ink {
  background: linear-gradient(145deg, #0b1220, #152a40);
  color: #fff;
  border-color: transparent;
}
.hd-bento__cell--ink h3,
.hd-bento__cell--ink strong { color: #fff; }
.hd-bento__cell--ink p,
.hd-bento__cell--ink span { color: rgba(232, 238, 249, 0.7); }

/* ============================================================
   11. CINEMA — detail hero (inset with side gutters)
   ============================================================ */
.hd-cinema {
  position: relative;
  overflow: hidden;
  border-radius: var(--hd-radius-lg);
  margin: 12px 0 24px;
  min-height: 300px;
  background: var(--hd-dark);
  color: #fff;
  box-shadow: var(--hd-shadow);
}
.hd-cinema__bg {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center 20%;
  filter: blur(28px) brightness(0.42) saturate(1.1);
  transform: scale(1.12);
  pointer-events: none;
}
.hd-cinema__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7, 16, 28, 0.9) 0%, rgba(7, 16, 28, 0.58) 55%, rgba(14, 124, 116, 0.38) 100%);
}
.hd-cinema__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  padding: 22px 20px 26px;
  align-items: end;
}
@media (min-width: 700px) {
  .hd-cinema__body {
    grid-template-columns: 160px minmax(0, 1fr);
    padding: 28px 28px 32px;
    gap: 28px;
  }
}
@media (min-width: 1024px) {
  .hd-cinema__body {
    grid-template-columns: 200px minmax(0, 1fr);
    padding: 32px 36px 36px;
  }
}
.hd-cinema__poster {
  position: relative;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  border-radius: var(--hd-radius);
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--hd-poster);
}
.hd-cinema__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (min-width: 700px) {
  .hd-cinema__poster { max-width: none; margin: 0; }
}
.hd-cinema__play {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
}
.hd-cinema__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.hd-cinema__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hd-cinema__meta em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--hd-mono);
  font-size: 11px;
}
.hd-cinema h1 {
  font-family: var(--hd-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: #fff;
  margin: 0 0 12px;
}
.hd-cinema__score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 8px;
  font-family: var(--hd-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--hd-brand-2);
  background: rgba(242, 161, 26, 0.18);
  vertical-align: middle;
}
.hd-cinema__intro {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52em;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hd-cinema__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ============================================================
   12. TOC — sticky section nav
   ============================================================ */
.hd-toc {
  position: sticky;
  top: calc(var(--hd-mast-h) + 8px);
  z-index: 60;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  margin: 0 0 18px;
  background: color-mix(in srgb, var(--hd-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hd-line);
  scrollbar-width: none;
}
.hd-toc::-webkit-scrollbar { display: none; }
.hd-toc a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hd-ink-2);
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hd-toc a:hover {
  border-color: var(--hd-accent);
  color: var(--hd-accent);
}
.hd-toc a.is-active {
  background: var(--hd-accent);
  border-color: var(--hd-accent);
  color: #fff;
}

/* ============================================================
   13. PORTALS / INTENT / POD / CALENDAR / BOARD / PULSE
   ============================================================ */
.hd-portals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 520px) {
  .hd-portals { grid-template-columns: repeat(3, 1fr); }
}
.hd-portal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  color: var(--hd-ink);
  transition: transform 0.2s var(--hd-ease), box-shadow 0.2s;
}
.hd-portal:hover {
  transform: translateY(-3px);
  box-shadow: var(--hd-shadow);
  color: var(--hd-ink);
  border-color: var(--hd-accent);
}
.hd-portal--wide { grid-column: span 2; }
@media (min-width: 520px) {
  .hd-portal--wide { grid-column: span 1; }
}
.hd-portal__num {
  font-family: var(--hd-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hd-accent);
  line-height: 1;
  opacity: 0.35;
}
.hd-portal__label { font-size: 15px; font-weight: 800; }
.hd-portal__hint { font-size: 11px; color: var(--hd-muted); }
.hd-portal--hot {
  background: linear-gradient(135deg, #14968c, #0e7c74 55%, #0b5f59);
  border-color: transparent;
  color: #fff;
}
.hd-portal--hot .hd-portal__num { color: rgba(255, 255, 255, 0.4); }
.hd-portal--hot .hd-portal__hint { color: rgba(255, 255, 255, 0.75); }

.hd-intent {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 22px 0 8px;
}
@media (min-width: 760px) {
  .hd-intent { grid-template-columns: repeat(3, 1fr); }
}
.hd-intent__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  color: var(--hd-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s var(--hd-ease), border-color 0.2s, box-shadow 0.2s;
}
.hd-intent__card:hover {
  transform: translateY(-3px);
  border-color: var(--hd-accent);
  box-shadow: var(--hd-shadow);
  color: var(--hd-ink);
}
.hd-intent__idx {
  font-family: var(--hd-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hd-brand);
  line-height: 1;
  opacity: 0.85;
}
.hd-intent__card strong { font-size: 15px; }
.hd-intent__card span {
  font-size: 12px;
  color: var(--hd-muted);
  line-height: 1.5;
}

.hd-pod {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 8px;
}
.hd-pod__item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, var(--hd-panel-2) 100%);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  padding: 16px 16px 14px;
  transition: transform 0.2s var(--hd-ease), box-shadow 0.2s, border-color 0.2s;
  color: inherit;
}
.hd-pod__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--hd-brand), var(--hd-accent));
}
.hd-pod__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--hd-shadow);
  border-color: rgba(14, 124, 116, 0.35);
  color: inherit;
}
.hd-pod__item strong {
  display: block;
  color: var(--hd-ink);
  font-size: 15px;
  margin-bottom: 4px;
}
.hd-pod__item span { color: var(--hd-muted); font-size: 12px; }
@media (max-width: 860px) {
  .hd-pod { grid-template-columns: repeat(2, 1fr); }
}

.hd-calendar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.hd-calendar a {
  flex: 0 0 auto;
  min-width: 76px;
  text-align: center;
  padding: 12px 10px;
  border-radius: var(--hd-radius);
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  color: var(--hd-ink-2);
  font-size: 13px;
  transition: border-color 0.15s, transform 0.15s;
}
.hd-calendar a:hover {
  border-color: var(--hd-accent);
  transform: translateY(-1px);
}
.hd-calendar a em {
  display: block;
  font-style: normal;
  color: var(--hd-brand);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 2px;
  font-family: var(--hd-mono);
}
.hd-calendar a.is-today {
  background: linear-gradient(160deg, #07101c, #152033);
  color: var(--hd-on-dark);
  border-color: transparent;
}
.hd-calendar a.is-today em { color: var(--hd-brand-2); }

.hd-board {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: var(--hd-radius-lg);
  background:
    linear-gradient(135deg, rgba(14, 124, 116, 0.06), transparent 40%),
    var(--hd-panel);
  border: 1px solid var(--hd-line);
}
.hd-board h2 {
  font-family: var(--hd-display);
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.hd-board p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--hd-muted);
  max-width: 52em;
}
.hd-board__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hd-board__links a {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hd-paper);
  border: 1px solid var(--hd-line);
  color: var(--hd-ink-2);
}
.hd-board__links a:hover {
  background: var(--hd-accent);
  border-color: var(--hd-accent);
  color: #fff;
}

.hd-pulse {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 20px;
  padding: 10px 14px;
  border-radius: var(--hd-radius);
  background: rgba(14, 124, 116, 0.08);
  border: 1px dashed rgba(14, 124, 116, 0.28);
  font-size: 13px;
  color: var(--hd-ink-2);
}
.hd-pulse__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hd-accent);
  box-shadow: 0 0 0 0 rgba(20, 150, 140, 0.55);
  animation: hd-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes hd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 150, 140, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(20, 150, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 150, 140, 0); }
}
.hd-pulse a { font-weight: 700; color: var(--hd-accent); }

/* ============================================================
   14. FEATURE spotlight
   ============================================================ */
.hd-feature {
  margin: 36px 0;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-radius: var(--hd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hd-line);
  background: var(--hd-panel);
  box-shadow: var(--hd-shadow);
}
@media (min-width: 768px) {
  .hd-feature { grid-template-columns: 280px 1fr; }
}
.hd-feature__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  min-height: 280px;
  background: var(--hd-ink);
}
.hd-feature__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hd-feature__body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hd-feature__body h2 {
  font-family: var(--hd-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.hd-feature__body h2 a { color: var(--hd-ink); }
.hd-feature__meta {
  font-size: 13px;
  color: var(--hd-muted);
  margin-bottom: 10px;
}
.hd-feature__desc {
  font-size: 14px;
  color: var(--hd-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.hd-feature__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   15. BLOCK heads
   ============================================================ */
.hd-block { margin: 40px 0; }
.hd-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--hd-accent), var(--hd-brand), transparent) 1;
}
.hd-block__head h2,
.hd-block__head h3 {
  font-family: var(--hd-display);
  font-size: 1.25rem;
  margin: 0;
}
.hd-block__head h2 a,
.hd-block__head h3 a { color: var(--hd-ink); }
.hd-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--hd-accent);
  white-space: nowrap;
}
.hd-subtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.hd-subtags a {
  font-size: 12px;
  color: var(--hd-muted);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.hd-subtags a:hover {
  color: var(--hd-accent);
  border-bottom-color: var(--hd-accent);
}

/* ============================================================
   16. RAIL + VITEM cards
   ============================================================ */
.hd-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hd-rail::-webkit-scrollbar { height: 4px; }
.hd-rail::-webkit-scrollbar-thumb {
  background: var(--hd-line);
  border-radius: 4px;
}
[data-rail-prev],
[data-rail-next] {
  border: 1px solid var(--hd-line);
  background: var(--hd-panel);
  color: var(--hd-ink-2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  box-shadow: var(--hd-shadow-sm);
}
[data-rail-prev]:hover,
[data-rail-next]:hover {
  border-color: var(--hd-accent);
  color: var(--hd-accent);
}

.hd-vitem {
  flex: 0 0 var(--hd-poster-w);
  width: var(--hd-poster-w);
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  .hd-vitem { flex-basis: 156px; width: 156px; }
}
.hd-vitem__cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--hd-radius);
  overflow: hidden;
  background: var(--hd-poster-bg);
}
.hd-vitem__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s var(--hd-ease);
}
.hd-vitem__cover:hover img { transform: scale(1.04); }
.hd-vitem__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 55%);
}
.hd-vitem__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--hd-cap);
  color: #fff;
  z-index: 2;
}
.hd-vitem__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.hd-vitem__sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--hd-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 2.8em;
}
.hd-vitem--stack .hd-vitem__shade,
.hd-vitem--stack .hd-vitem__title { display: none; }
.hd-vitem--stack .hd-vitem__cap {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.hd-vitem--stack .hd-vitem__cap a { color: var(--hd-ink); }
.hd-vitem--stack .hd-vitem__cap a:hover { color: var(--hd-accent); }
.hd-vitem--stack .hd-vitem__sub {
  -webkit-line-clamp: 1;
  min-height: auto;
  margin-top: 4px;
}

/* ============================================================
   17. PICKS numbered lists
   ============================================================ */
.hd-picks {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .hd-picks { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hd-picks { grid-template-columns: repeat(4, 1fr); }
}
.hd-pick-col {
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 14px 14px 10px;
  min-width: 0;
}
.hd-pick-col h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--hd-rank);
}
.hd-pick-col h3 a { color: var(--hd-ink); }
.hd-pick-col ol { margin: 0; padding: 0; list-style: none; }
.hd-pick-col li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed var(--hd-line);
  font-size: 13px;
}
.hd-pick-col li:last-child { border-bottom: 0; }
.hd-pick-col li .n {
  font-family: var(--hd-mono);
  font-weight: 800;
  color: var(--hd-muted);
}
.hd-pick-col li .n.is-hot { color: var(--hd-rank); }
.hd-pick-col li a {
  color: var(--hd-ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hd-pick-col li a:hover { color: var(--hd-accent); }

/* ============================================================
   18. PAGEHEAD / CRUMB
   ============================================================ */
.hd-pagehead {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--hd-line);
  margin-bottom: 28px;
}
.hd-crumb {
  font-size: 12px;
  color: var(--hd-muted);
  margin-bottom: 10px;
}
.hd-crumb a { color: var(--hd-stem); }
.hd-crumb em {
  font-style: normal;
  color: var(--hd-ink);
  font-weight: 600;
}
.hd-pagehead h1 {
  font-family: var(--hd-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 8px;
}
.hd-pagehead__sub {
  font-size: 14px;
  color: var(--hd-muted);
  max-width: 720px;
}
.hd-detail-page .hd-pagehead {
  padding: 28px 0 0;
  border-bottom: none;
  margin-bottom: 0;
}

/* ============================================================
   19. DETAIL (legacy card layout)
   ============================================================ */
.hd-detail {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  padding: 20px;
  margin: 16px 0 0;
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow);
  position: relative;
  z-index: 1;
}
.hd-detail-page .hd-sheet--episodes {
  margin-top: 20px;
  position: relative;
  z-index: 2;
}
.hd-detail-page--v02 .hd-wrap + .hd-wrap > :first-child,
.hd-detail-page--v03 .hd-wrap + .hd-wrap > :first-child {
  margin-top: 20px;
}
.hd-detail .hd-tags { margin-bottom: 16px; }
@media (min-width: 768px) {
  .hd-detail {
    grid-template-columns: var(--hd-poster-w-lg) 1fr;
    align-items: start;
    padding: 24px 28px;
  }
}
.hd-detail__poster {
  width: 100%;
  max-width: var(--hd-poster-w-lg);
  margin: 0 auto;
  border-radius: var(--hd-radius);
  box-shadow: 0 10px 28px rgba(7, 16, 28, 0.18);
}
.hd-detail__play {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
}
.hd-detail__main h1 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 14px;
  line-height: 1.35;
  font-family: var(--hd-display);
}
.hd-detail__score {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--hd-mono);
  color: var(--hd-rank);
  background: rgba(234, 88, 12, 0.12);
  border-radius: 6px;
  vertical-align: middle;
}
.hd-meta {
  margin: 0 0 14px;
  list-style: none;
}
.hd-meta li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hd-line);
  font-size: 14px;
  line-height: 1.5;
}
.hd-meta li:last-child { border-bottom: 0; }
.hd-meta li em {
  font-style: normal;
  color: var(--hd-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.hd-detail__intro {
  font-size: 14px;
  color: var(--hd-ink-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.hd-detail__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ============================================================
   20. FILM (legacy blur stage)
   ============================================================ */
.hd-film { margin-bottom: 32px; }
.hd-film__stage {
  position: relative;
  border-radius: var(--hd-radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: var(--hd-dark);
  margin-bottom: 0;
}
.hd-film__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: blur(24px) brightness(0.45);
  transform: scale(1.1);
}
.hd-film__card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  padding: 28px 24px 80px;
  color: #fff;
}
@media (min-width: 700px) {
  .hd-film__card {
    grid-template-columns: 180px 1fr;
    padding: 32px 32px 80px;
  }
}
.hd-film__poster {
  border-radius: var(--hd-radius);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.hd-film__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hd-film__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hd-gold);
  margin-bottom: 8px;
}
.hd-film__card h1 {
  font-family: var(--hd-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 12px;
}
.hd-spec {
  display: grid;
  gap: 6px 20px;
  grid-template-columns: 1fr;
  font-size: 13px;
  margin-bottom: 16px;
}
@media (min-width: 520px) {
  .hd-spec { grid-template-columns: 1fr 1fr; }
}
.hd-spec div { display: flex; gap: 6px; }
.hd-spec dt {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.hd-spec dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}
.hd-film__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.hd-film__note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ============================================================
   21. SHEET / EPISODES / PLATFORMS / HUB / FAQ / ARTICLE
   ============================================================ */
.hd-sheet {
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.hd-sheet h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hd-line);
}
.hd-ep-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.hd-ep-tabs a {
  padding: 6px 14px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--hd-ink-2);
}
.hd-ep-tabs a.active,
.hd-ep-tabs a:hover {
  background: var(--hd-stem);
  border-color: var(--hd-stem);
  color: #fff;
}
.hd-ep-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hd-ep-grid a {
  min-width: 48px;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  font-size: 13px;
  font-family: var(--hd-mono);
  color: var(--hd-ink-2);
  background: var(--hd-paper);
}
.hd-ep-grid a:hover,
.hd-ep-grid a.is-current {
  background: var(--hd-play);
  border-color: var(--hd-play);
  color: #fff;
}
.hd-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hd-platforms a {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px dashed var(--hd-line);
  border-radius: var(--hd-radius);
  color: var(--hd-muted);
}
.hd-platforms a:hover {
  border-color: var(--hd-stem);
  color: var(--hd-stem);
}
.hd-ep-note {
  font-size: 12px;
  color: var(--hd-muted);
  margin: -6px 0 12px;
}
.hd-hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hd-hub-nav a {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  color: var(--hd-ink-2);
  background: var(--hd-paper);
}
.hd-hub-nav a:hover {
  border-color: var(--hd-accent);
  color: var(--hd-accent);
}
.hd-tips-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--hd-ink-2);
  list-style: disc;
}
.hd-tips-list li { margin-bottom: 8px; }
.hd-article {
  font-size: 14px;
  color: var(--hd-ink-2);
  line-height: 1.75;
}
.hd-faq-item { margin-bottom: 14px; }
.hd-faq-item h4 { font-size: 14px; margin-bottom: 4px; }
.hd-faq-item p {
  font-size: 13px;
  color: var(--hd-muted);
  margin: 0;
}
.hd-faq { margin: 8px 0; }
.hd-highlights { margin-top: 16px; }
.hd-highlights h4 { font-size: 15px; margin-bottom: 8px; }
.hd-highlights ul { margin: 0; padding-left: 18px; list-style: disc; }
.hd-highlights li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--hd-ink-2);
}

/* Source tabs (JS contract)
   [data-source-tabs] [data-source-tab] [data-source-pane] */
[data-source-tabs] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
[data-source-tab] {
  padding: 6px 14px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--hd-ink-2);
  background: var(--hd-paper);
  cursor: pointer;
}
[data-source-tab].is-active,
[data-source-tab].active,
[data-source-tab]:hover {
  background: var(--hd-accent);
  border-color: var(--hd-accent);
  color: #fff;
}
[data-source-pane] { display: none; }
[data-source-pane].is-active,
[data-source-pane].active { display: block; }

.copylink {
  cursor: pointer;
  color: var(--hd-accent);
  font-weight: 600;
}
.copylink:hover { color: var(--hd-brand); }

/* ============================================================
   22. SCREEN / DOCK (player)
   ============================================================ */
.hd-screen {
  position: relative;
  background: var(--hd-dark);
  margin: 0 0 20px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  overflow: hidden;
  box-shadow: var(--hd-shadow);
}
.hd-screen .m3u8_type,
.hd-screen #dplayer {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.hd-dock {
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--hd-shadow);
}
.hd-dock h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--hd-ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hd-accent);
}
.hd-play-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.hd-play-acts a {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  color: var(--hd-ink-2);
  background: var(--hd-panel-2);
}
.hd-play-acts a:hover {
  border-color: var(--hd-accent);
  color: var(--hd-accent);
  background: var(--hd-panel);
}
.hd-play-acts a.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.hd-screen .url_type {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2;
}
.hd-screen .url_type.is-on { display: flex; }

/* ============================================================
   23. WALL / MOSAIC / CHIPS
   ============================================================ */
.hd-wall {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .hd-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hd-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.hd-wall .hd-vitem {
  flex: none;
  width: 100%;
  min-width: 0;
}

.hd-mosaic {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  align-items: start;
}
@media (min-width: 700px) {
  .hd-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .hd-mosaic { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* 禁止首格放大，全站海报统一 2:3 */
.hd-mosaic .hd-vitem,
.hd-wall .hd-vitem {
  width: 100%;
  flex: none;
  min-width: 0;
}
.hd-mosaic .hd-vitem__cover,
.hd-wall .hd-vitem__cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--hd-radius-sm);
  background: var(--hd-poster);
}
.hd-mosaic .hd-vitem__cover img,
.hd-wall .hd-vitem__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hd-mosaic .hd-vitem:first-child,
.hd-wall .hd-vitem:first-child {
  grid-column: auto;
  grid-row: auto;
}

.hd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--hd-panel);
  border-radius: var(--hd-radius-lg);
  border: 1px solid var(--hd-line);
}
.hd-chips__label {
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  color: var(--hd-stem);
}
.hd-chips a {
  font-size: 12px;
  padding: 5px 12px;
  background: var(--hd-paper);
  border-radius: 999px;
  color: var(--hd-ink-2);
  border: 1px solid var(--hd-line);
}
.hd-chips a:hover {
  background: var(--hd-accent);
  border-color: var(--hd-accent);
  color: #fff;
}
.hd-chips a .n {
  font-weight: 800;
  margin-right: 4px;
  color: var(--hd-rank);
  font-family: var(--hd-mono);
}
.hd-chips a:hover .n { color: #fff; }

/* Stage 题材 chips：暗色舞台适配 + 上下边距（须盖过 .hd-chips） */
.hd-chips.hd-stage__chips {
  margin: 22px 0 4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 10px;
}
.hd-chips.hd-stage__chips a {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
}
.hd-chips.hd-stage__chips a:hover {
  background: var(--hd-brand);
  border-color: var(--hd-brand);
  color: var(--hd-mast);
}

/* ============================================================
   24. FILTER (+ facets horizontal grid)
   ============================================================ */
.hd-filter {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hd-filter {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}
.hd-filter__side {
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  padding: 16px;
}
@media (min-width: 900px) {
  .hd-filter__side {
    position: sticky;
    top: 80px;
    z-index: 2;
  }
}
@media (max-width: 899px) {
  .hd-filter__side {
    position: static;
    margin-bottom: 20px;
  }
  .hd-filter__main {
    position: relative;
    z-index: 1;
  }
}

/* Horizontal facet grid (desktop) */
.hd-filter__facets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
}
.hd-filter__facets dl {
  display: grid;
  gap: 8px 16px;
  margin: 0;
  align-items: start;
}
.hd-filter__facets dt {
  font-size: 12px;
  font-weight: 800;
  color: var(--hd-stem);
  padding-top: 6px;
}
.hd-filter__facets dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.hd-filter__facets dd a {
  font-size: 12px;
  padding: 5px 11px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  color: var(--hd-muted);
  background: var(--hd-paper);
}
.hd-filter__facets dd a.active,
.hd-filter__facets dd a:hover {
  background: var(--hd-stem);
  border-color: var(--hd-stem);
  color: #fff;
}
@media (min-width: 768px) {
  .hd-filter__facets dl {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}
@media (min-width: 1024px) {
  .hd-filter__facets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }
  .hd-filter--facets-only {
    display: block;
  }
  .hd-filter--facets-only .hd-filter__side { display: none; }
  .hd-filter--facets-only .hd-filter__main { width: 100%; }
}

.hd-filter .hd-wall {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
@media (min-width: 640px) {
  .hd-filter .hd-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .hd-filter .hd-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.hd-filter .hd-wall .hd-vitem {
  width: 100%;
  min-width: 0;
}
.hd-filter .hd-wall .hd-vitem__cover {
  display: block;
  width: 100%;
}
.hd-filter__side dl { margin: 0 0 14px; }
.hd-filter__side dt {
  font-size: 12px;
  font-weight: 800;
  color: var(--hd-stem);
  margin-bottom: 8px;
}
.hd-filter__side dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.hd-filter__side dd a {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  color: var(--hd-muted);
}
.hd-filter__side dd a.active,
.hd-filter__side dd a:hover {
  background: var(--hd-stem);
  border-color: var(--hd-stem);
  color: #fff;
}

/* ============================================================
   25. ROWS / FEED
   ============================================================ */
.hd-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hd-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 72px 1fr;
  padding: 14px;
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  align-items: start;
}
@media (min-width: 640px) {
  .hd-row { grid-template-columns: 100px 1fr; }
}
.hd-row__thumb {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--hd-radius);
  overflow: hidden;
  background: var(--hd-ink);
}
.hd-row__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hd-row__title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.hd-row__title a { color: var(--hd-ink); }
.hd-row__meta {
  font-size: 12px;
  color: var(--hd-muted);
  margin-bottom: 4px;
  word-break: break-word;
}
.hd-row__desc {
  font-size: 13px;
  color: var(--hd-ink-2);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.hd-row > div:last-child {
  min-width: 0;
  overflow: hidden;
}
.hd-row__acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hd-feed { margin-top: 8px; }
.hd-feed__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--hd-line);
}
.hd-feed__date {
  display: block;
  font-family: var(--hd-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--hd-rank);
  line-height: 1.4;
  margin-bottom: 10px;
}
.hd-feed__body {
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
}
.hd-feed__thumb {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--hd-radius);
  overflow: hidden;
  background: var(--hd-poster-bg);
}
.hd-feed__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hd-feed__main {
  min-width: 0;
  overflow: hidden;
}
.hd-feed__title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.hd-feed__title a { color: var(--hd-ink); }
.hd-feed__meta {
  font-size: 12px;
  color: var(--hd-muted);
  margin: 0 0 6px;
  line-height: 1.5;
  word-break: break-word;
}
.hd-feed__desc {
  font-size: 13px;
  color: var(--hd-ink-2);
  margin: 0 0 10px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.hd-feed__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (min-width: 640px) {
  .hd-feed__item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 0;
  }
  .hd-feed__date { margin-bottom: 0; }
  .hd-feed__body {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
  }
  .hd-feed__title { font-size: 16px; }
}

/* ============================================================
   26. BUTTONS / PAGER / LINK
   ============================================================ */
.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--hd-radius);
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--hd-play-2), var(--hd-play));
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}
.hd-btn:hover {
  background: linear-gradient(135deg, #2dd4bf, var(--hd-play-2));
  color: #fff;
  transform: translateY(-1px);
}
.hd-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.hd-btn--sm {
  padding: 6px 14px;
  font-size: 12px;
}
.hd-btn--line {
  background: transparent;
  border: 1px solid var(--hd-line);
  color: var(--hd-ink-2);
}
.hd-btn--line:hover {
  border-color: var(--hd-accent);
  color: var(--hd-accent);
  background: transparent;
}
.hd-btn--brand {
  background: linear-gradient(135deg, var(--hd-brand-2), var(--hd-brand));
  color: var(--hd-mast);
}
.hd-btn--brand:hover {
  background: linear-gradient(135deg, #ffd06a, var(--hd-brand-2));
  color: var(--hd-mast);
}
.hd-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--hd-stem);
}

.hd-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.hd-pager a {
  padding: 8px 16px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--hd-ink-2);
  background: var(--hd-panel);
}
.hd-pager a:hover {
  border-color: var(--hd-accent);
  color: var(--hd-accent);
}
.hd-pager a.is-current,
.hd-pager a.active {
  background: var(--hd-accent);
  border-color: var(--hd-accent);
  color: #fff;
}
.hd-count {
  font-size: 13px;
  color: var(--hd-muted);
  margin-bottom: 16px;
  font-family: var(--hd-mono);
}

/* ============================================================
   27. LOST (404) / SITEMAP
   ============================================================ */
.hd-lost {
  text-align: center;
  padding: 60px 20px 80px;
  max-width: 520px;
  margin: 0 auto;
}
.hd-lost__code {
  font-family: var(--hd-mono);
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--hd-line);
  margin-bottom: 8px;
}
.hd-lost h1 {
  font-family: var(--hd-display);
  font-size: 1.5rem;
}
.hd-lost p {
  color: var(--hd-muted);
  font-size: 14px;
}
.hd-lost__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.hd-lost__nav a {
  padding: 8px 16px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--hd-ink-2);
  background: var(--hd-panel);
}

.hd-sitemap {
  margin: 40px 0;
  padding: 24px;
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
}
.hd-sitemap h3 {
  font-family: var(--hd-display);
  margin-bottom: 8px;
}
.hd-sitemap__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.hd-sitemap__links a {
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   28. BACK-TO-TOP
   ============================================================ */
.hd-top-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--hd-accent);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--hd-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 150;
}
.hd-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.hd-top-btn::before {
  content: '↑';
  font-size: 18px;
  line-height: 1;
}

/* ============================================================
   29. Lazyload placeholder
   ============================================================ */
.lazyload,
img.lazyload {
  background: linear-gradient(110deg, var(--hd-paper-2) 30%, var(--hd-paper) 50%, var(--hd-paper-2) 70%);
  background-size: 200% 100%;
}

/* ============================================================
   30. Mobile responsive
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --hd-poster-w: 108px;
    --hd-poster-w-lg: 140px;
  }
  .hd-wrap { padding: 0 16px; }
  .hd-band {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hd-stage,
  .hd-hero {
    border-radius: 0 0 20px 20px;
    padding: 32px 0 36px;
  }
  .hd-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
  .hd-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hd-rail { gap: 10px; }
  .hd-detail {
    padding: 16px;
    margin-top: 12px;
  }
  .hd-detail-page .hd-sheet--episodes { margin-top: 16px; }
  .hd-vitem__cap,
  .hd-vitem--stack .hd-vitem__cap {
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }
  .hd-row { grid-template-columns: 72px 1fr; }
  /* 修复：移动端不可清零左右内边距 */
  .hd-cinema__body { padding: 20px 16px 24px; }
  .hd-bento__hero { min-height: 220px; }
  .hd-deck { margin: 20px 0; gap: 18px; }
  .hd-toc {
    top: var(--hd-mast-h);
    margin-bottom: 12px;
  }
  .hd-find { max-width: 160px; }
  .hd-brand__name { font-size: 1rem; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .hd-detail {
    grid-template-columns: var(--hd-poster-w-lg) 1fr;
    align-items: start;
  }
  .hd-detail__poster { max-width: var(--hd-poster-w-lg); }
}

@media (max-width: 520px) {
  .hd-find { display: none; }
  .hd-top__tools .hd-find { display: none; }
}

@media (max-width: 860px) {
  .hd-stage,
  .hd-hero {
    border-radius: 0 0 20px 20px;
    padding: 32px 0 36px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* End hd-theme v4.0 — Stage+Deck */
