/* Layout density — keep chrome thin */

body.layout-compact .xh-hero,
body.layout-compact .xh-hero-copy { min-height: min(32vh, 240px); }
body.layout-compact .xh-hero-copy { padding: 24px 22px 32px; }
body.layout-compact .xh-river .xh-card { flex-basis: 118px; }

body.layout-theater .xh-hero-shade {
  background:
    linear-gradient(0deg, rgba(17,17,19,.88) 10%, rgba(17,17,19,.25) 55%, rgba(17,17,19,.4) 100%),
    linear-gradient(90deg, rgba(17,17,19,.5), transparent 50%);
}
body.layout-theater .xh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; }

/* —— theater ≈ ARTE: giant accent title on the photo, 3-link nav + white button, pill genre row —— */
body.layout-theater .xh-hero h1 {
  font-size: clamp(40px, 5.4vw, 76px); font-weight: 900; letter-spacing: -.04em; line-height: 1;
  color: var(--xh-amber); text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
body.layout-theater .xh-hero--theater .xh-hero-copy { max-width: 720px; padding-bottom: 76px; }
body.layout-theater .xh-eyebrow { color: var(--xh-amber); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
body.layout-theater .xh-acts-dl { background: #fff; color: #111; }
body.layout-theater .xh-acts-dl:hover { background: #eee; color: #111; }
body.layout-theater .xh-cats { justify-content: center; gap: 10px; margin: -4px 0 28px; border: 0; }
body.layout-theater .xh-cats a {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; color: var(--xh-text);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); margin: 0;
}
body.layout-theater .xh-cats a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
body.layout-theater .xh-cats .xh-cats-more { color: var(--xh-muted); border-style: dashed; }

/* —— classic ≈ ReelShort: copy keeps clear of the poster strip —— */
@media (min-width: 901px) { body.layout-classic .xh-hero--sw-thumbs .xh-hero-copy { padding-right: 24px; } }

body.layout-ranks .xh-board {
  background: transparent;
  border: 0;
  padding: 0;
}

@media (max-width: 900px) {
  body.layout-theater .xh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xh-cats--short { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .xh-cats--short a { flex-shrink: 0; }
  body.layout-theater .xh-hero--theater .xh-hero-copy { padding-bottom: 72px; }
}

/* —— ranks ≈ iQIYI: outline APP + solid 下载 in the nav; round hero buttons —— */
body.layout-ranks .xh-acts-login {
  height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.35); color: var(--xh-text);
}
body.layout-ranks .xh-hero-actions .xh-cta { border-radius: 999px; }
body.layout-ranks .xh-hero-actions .xh-cta:first-child { background: var(--xh-amber); color: var(--xh-on-accent, #fff); }

/* —— split ≈ DramaBox: the board panel scrolls beside the picture|copy hero —— */
body.layout-split .xh-split { grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr); align-items: stretch; }
body.layout-split .xh-side-panel { height: 0; min-height: 100%; max-height: none; overflow: auto; scrollbar-width: thin; } /* as tall as the hero, scrolls the rest */
@media (max-width: 900px) {
  body.layout-split .xh-split { grid-template-columns: 1fr; } /* stack: the desktop two-column rule above outranks style.css's phone rule */
  body.layout-split .xh-side-panel { height: auto; max-height: 520px; }
}

/* —— magazine ≈ Criterion / NOWNESS: promo strip on top, centred kicker + serif rail titles, hairlines —— */
body.layout-magazine .xh-ad--bar { margin: 0 -16px 12px; border-radius: 0; padding: 8px 16px; justify-content: center; }
body.layout-magazine .xh-rail { padding-top: 22px; border-top: 1px solid var(--xh-line); margin-bottom: 40px; }
body.layout-magazine .xh-rail-head { flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 22px; }
body.layout-magazine .xh-section-title {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  font-weight: 400; font-size: 34px; letter-spacing: .04em;
}
body.layout-magazine .xh-kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #c9a96a; font-family: "SF Pro Text", "PingFang SC", sans-serif; }
body.layout-magazine .xh-view-all { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
body.layout-magazine .xh-hero { margin-top: 0; }

/* —— Home bottom blocks (2026-10-22): 下载步骤 · 为什么选择 · 追剧体验 · 常见问题 · 关于本站 (template-parts/home-extras.php) —— */
.xh-x { margin: 6px 0 36px; }
.xh-x .xh-kicker { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--xh-amber); }
.xh-x-grid { display: grid; grid-template-columns: repeat(var(--xh-x-cols, 3), minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.xh-x-card { min-width: 0; padding: 20px 18px; background: var(--xh-elev); border: 1px solid var(--xh-line); border-radius: var(--xh-radius-lg); }
.xh-x-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; line-height: 1.4; color: var(--xh-text); }
.xh-x-card p, .xh-x-card blockquote { margin: 0; font-size: 14px; line-height: 1.75; color: var(--xh-muted); }
.xh-x-num { display: inline-flex; width: 28px; height: 28px; margin-bottom: 12px; align-items: center; justify-content: center; border-radius: 50%; background: var(--xh-amber); color: var(--xh-on-accent, #fff); font-size: 14px; font-weight: 700; }
.xh-x-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 18px 0 0; font-size: 14px; }
.xh-x-cta a:not(.xh-cta) { color: var(--xh-amber); text-decoration: underline; text-underline-offset: 3px; }
.xh-x-why .xh-x-grid { --xh-x-cols: 4; }
.xh-x-rev blockquote { color: var(--xh-text); }
.xh-x-rev footer { margin-top: 10px; font-size: 12px; color: var(--xh-muted); }
.xh-x-rev footer a { color: var(--xh-amber); }
.xh-x-faq .xh-x-grid { --xh-x-cols: 2; }
.xh-x-faq h3::before { content: "Q"; margin-right: 8px; color: var(--xh-amber); }
.xh-x-about { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 32px 0 4px; border-top: 1px solid var(--xh-line); }
.xh-x-about p { margin: 0 0 12px; font-size: 15px; line-height: 1.75; color: var(--xh-text); }
@media (max-width: 900px) {
  .xh-x-grid, .xh-x-faq .xh-x-grid { --xh-x-cols: 1; }
  .xh-x-why .xh-x-grid { --xh-x-cols: 2; gap: 10px; }
  .xh-x-card { padding: 16px 14px; }
  .xh-x-about { grid-template-columns: 1fr; gap: 12px; }
}
/* showcase / apptab chrome: the blocks sit inside their own containers, keep their spacing */
body.layout-showcase .xh-x { margin-bottom: 40px; }
body.layout-apptab .xh-x { margin-bottom: 0; } /* the stack already spaces siblings 32px */
