/*
Theme Name: Hongguo Board 红果精选
Description: 红果短剧精选榜单 / 分类导航站主题，配合「红果精选榜单 Hongguo Board」插件使用。只做索引与推荐，播放跳转红果官方页面。双皮肤：午夜影院 / 纸感编辑部，可在「外观 → 自定义」切换。
Version: 1.4.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hongguo-board
*/

/* Full palette is declared here as well as in the plugin stylesheet, so the
   theme still renders correctly when the plugin is not activated. */
:root,
[data-skin="dark"],
body.hgb-skin-dark {
	--hgb-bg: #0b0c10;
	--hgb-bg-soft: #111319;
	--hgb-surface: #161920;
	--hgb-surface-2: #1e222c;
	--hgb-line: rgba(255, 255, 255, .09);
	--hgb-line-strong: rgba(255, 255, 255, .18);
	--hgb-text: #f2f3f7;
	--hgb-muted: #9aa1af;
	--hgb-faint: #6d7482;
	--hgb-accent: #ff4d55;
	--hgb-accent-2: #ff914f;
	--hgb-accent-soft: rgba(255, 77, 85, .13);
	--hgb-accent-text: #ffffff;
	--hgb-gold: #f2c46b;
	--hgb-pinned-line: rgba(242, 196, 107, .42);
	--hgb-note-bg: rgba(242, 196, 107, .10);
	--hgb-note-text: #e9c891;
	--hgb-shadow: 0 22px 48px rgba(0, 0, 0, .48);
	--hgb-cover-shade: linear-gradient(180deg, rgba(8, 9, 13, 0) 55%, rgba(8, 9, 13, .55) 100%);
	--hgb-glass: rgba(22, 25, 32, .74);
	--hgb-placeholder: linear-gradient(150deg, #262b37, #14171e);
	--hgb-font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--hgb-hero-glow-a: rgba(255, 77, 85, .20);
	--hgb-hero-glow-b: rgba(255, 145, 79, .10);
	--hgb-grid-opacity: .32;
	--hgb-header-bg: rgba(11, 12, 16, .82);
	--hgb-panel-bg: rgba(22, 25, 32, .66);
}
[data-skin="light"],
body.hgb-skin-light {
	--hgb-bg: #f3f0ea;
	--hgb-bg-soft: #fbf9f5;
	--hgb-surface: #ffffff;
	--hgb-surface-2: #f4f1eb;
	--hgb-line: rgba(38, 32, 28, .11);
	--hgb-line-strong: rgba(38, 32, 28, .2);
	--hgb-text: #211d1a;
	--hgb-muted: #706961;
	--hgb-faint: #9c948b;
	--hgb-accent: #c43a2d;
	--hgb-accent-2: #e2703d;
	--hgb-accent-soft: rgba(196, 58, 45, .08);
	--hgb-accent-text: #ffffff;
	--hgb-gold: #a97a2e;
	--hgb-pinned-line: rgba(169, 122, 46, .46);
	--hgb-note-bg: #f8efe0;
	--hgb-note-text: #8a5a1b;
	--hgb-shadow: 0 16px 36px rgba(66, 48, 36, .13);
	--hgb-cover-shade: linear-gradient(180deg, rgba(28, 18, 12, 0) 62%, rgba(28, 18, 12, .28) 100%);
	--hgb-glass: rgba(255, 255, 255, .82);
	--hgb-placeholder: linear-gradient(150deg, #e8e0d5, #f8f4ee);
	--hgb-font-display: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
	--hgb-hero-glow-a: rgba(196, 58, 45, .10);
	--hgb-hero-glow-b: rgba(226, 112, 61, .08);
	--hgb-grid-opacity: .42;
	--hgb-header-bg: rgba(251, 249, 245, .86);
	--hgb-panel-bg: rgba(255, 255, 255, .72);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--hgb-bg);
	color: var(--hgb-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 15px; line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-main { min-height: 60vh; }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 30;
	background: var(--hgb-header-bg);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid var(--hgb-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 70px; }
.site-logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.site-logo__mark {
	width: 34px; height: 34px; border-radius: 11px;
	background: linear-gradient(140deg, var(--hgb-accent), var(--hgb-accent-2));
	color: #fff; display: inline-flex; align-items: center; justify-content: center;
	font-size: 17px; font-weight: 700;
	box-shadow: 0 6px 18px rgba(255, 77, 85, .26);
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo__text strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.site-logo__text small { font-size: 10px; letter-spacing: .14em; color: var(--hgb-faint); text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
	position: relative; padding: 8px 13px; border-radius: 8px;
	font-size: 13.5px; color: var(--hgb-muted); font-weight: 600;
	transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--hgb-text); background: var(--hgb-accent-soft); }
.site-header__badge {
	display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
	font-size: 11px; color: var(--hgb-muted);
	padding: 7px 12px; border: 1px solid var(--hgb-line); border-radius: 999px;
}
.site-header__badge i {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--hgb-accent); box-shadow: 0 0 0 3px var(--hgb-accent-soft);
}

/* ---------- hero ---------- */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(880px 460px at 78% -12%, var(--hgb-hero-glow-a), transparent 70%),
		radial-gradient(620px 400px at 6% 118%, var(--hgb-hero-glow-b), transparent 70%),
		var(--hgb-bg-soft);
	border-bottom: 1px solid var(--hgb-line);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(var(--hgb-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--hgb-line) 1px, transparent 1px);
	background-size: 52px 52px;
	opacity: var(--hgb-grid-opacity);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
.hero__inner {
	position: relative; display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
	gap: 64px; align-items: center;
	padding-top: 78px; padding-bottom: 76px;
}
.hero__content { min-width: 0; }
.hero__eyebrow {
	display: flex; align-items: center; gap: 10px;
	font-size: 11px; letter-spacing: .18em; font-weight: 700;
	color: var(--hgb-accent); text-transform: uppercase; margin: 0 0 20px;
}
.hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--hgb-accent); border-radius: 2px; }
.hero__title {
	font-family: var(--hgb-font-display);
	font-size: clamp(38px, 5.2vw, 62px); line-height: 1.08;
	font-weight: 800; letter-spacing: -.045em; margin: 0 0 10px;
}
.hero__title-accent {
	display: block; font-size: clamp(17px, 2vw, 22px); font-weight: 700;
	letter-spacing: .01em; margin: 0 0 18px;
	background: linear-gradient(100deg, var(--hgb-accent), var(--hgb-accent-2));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 15.5px; color: var(--hgb-muted); margin: 0 0 28px; max-width: 540px; line-height: 1.8; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 17px; border-radius: 10px;
	background: var(--hgb-surface); border: 1px solid var(--hgb-line-strong);
	color: var(--hgb-text); font-size: 13px; font-weight: 600;
	transition: background .22s, color .22s, border-color .22s, transform .22s;
}
.chip::before { content: "↗"; font-size: 12px; color: var(--hgb-accent); }
.chip:hover {
	background: var(--hgb-accent); border-color: var(--hgb-accent);
	color: #fff; transform: translateY(-2px);
}
.chip:hover::before { color: #fff; }
.hero__flow { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 11.5px; color: var(--hgb-faint); }
.hero__flow span { padding: 5px 10px; border: 1px solid var(--hgb-line); border-radius: 6px; }
.hero__flow i { font-style: normal; color: var(--hgb-accent); }

.hero__panel {
	background: var(--hgb-panel-bg); border: 1px solid var(--hgb-line-strong);
	border-radius: 18px; padding: 24px 26px;
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: var(--hgb-shadow);
}
.hero__panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.hero__panel-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--hgb-muted); }
.hero__panel-live {
	font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--hgb-accent);
	padding: 4px 9px; border-radius: 999px; background: var(--hgb-accent-soft);
}
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero__stat { display: flex; flex-direction: column; gap: 3px; }
.hero__stat + .hero__stat { padding-left: 14px; border-left: 1px solid var(--hgb-line); }
.hero__stat strong {
	font-family: var(--hgb-font-display); font-size: 30px; line-height: 1.1;
	font-weight: 800; letter-spacing: -.03em; color: var(--hgb-text);
	font-variant-numeric: tabular-nums;
}
.hero__stat span { font-size: 11px; color: var(--hgb-faint); }
.hero__panel-rule { height: 1px; background: var(--hgb-line); margin: 22px 0 16px; }
.hero__panel-desc { font-size: 12.5px; line-height: 1.75; color: var(--hgb-muted); margin: 0 0 12px; }
.hero__panel-foot { font-size: 11px; color: var(--hgb-faint); margin: 0; letter-spacing: .02em; }

/* ---------- shared section heading ---------- */
.content-area { padding: 0 0 72px; counter-reset: hgb-section; }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 20px; }
.section-head__index {
	font-size: 11px; font-weight: 700; letter-spacing: .14em;
	color: var(--hgb-accent); padding-right: 12px; border-right: 1px solid var(--hgb-line);
}
.section-head__title { font-family: var(--hgb-font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.section-head__desc { font-size: 12.5px; color: var(--hgb-muted); margin: 0; }

/* ---------- spotlight ---------- */
.spotlight { padding: 58px 0 4px; }
.hgb-spotlight .hgb-card { border-radius: 20px; }
.hgb-spotlight .hgb-card__main { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.hgb-spotlight .hgb-card__cover { aspect-ratio: auto; height: 100%; min-height: 318px; }
.hgb-spotlight .hgb-card__placeholder { font-size: 52px; }
.hgb-spotlight .hgb-card__body { padding: 30px 34px; justify-content: center; }
.hgb-spotlight .hgb-card__title { font-size: 27px; margin-bottom: 10px; white-space: normal; }
.hgb-spotlight .hgb-card__meta { font-size: 12.5px; margin-bottom: 14px; }
.hgb-spotlight .hgb-card__intro { font-size: 13.5px; -webkit-line-clamp: 3; line-height: 1.8; margin-bottom: 14px; }
.hgb-spotlight .hgb-card__note { font-size: 12.5px; max-width: 520px; }
.hgb-spotlight .hgb-card__cta { max-width: 200px; margin-top: 4px; padding: 11px 15px; font-size: 13px; }
.hgb-spotlight .hgb-card__fallback { padding: 11px; }
.spotlight__flag {
	display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
	font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--hgb-gold);
}

/* ---------- boards ---------- */
.boards { padding-top: 58px; }

/* ---------- scenes ---------- */
.scenes { margin-top: 8px; }
.scene-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.scene-chip {
	position: relative; display: flex; align-items: center; gap: 12px;
	min-height: 88px; padding: 13px 15px;
	background: var(--hgb-surface); border: 1px solid var(--hgb-line);
	border-radius: 13px; color: var(--hgb-text);
	transition: border-color .22s, transform .22s, box-shadow .22s;
}
.scene-chip__no {
	align-self: flex-start; padding-top: 3px;
	font-size: 10.5px; font-weight: 700; color: var(--hgb-faint);
	font-variant-numeric: tabular-nums;
}
.scene-chip__thumb {
	flex: 0 0 44px; width: 44px; height: 60px; overflow: hidden;
	display: grid; place-items: center;
	background: var(--hgb-surface-2); border-radius: 7px;
}
.scene-chip__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-chip__thumb i { font-style: normal; font-size: 19px; font-weight: 700; color: var(--hgb-faint); }
.scene-chip__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.scene-chip__body strong { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.scene-chip__body em {
	font-style: normal; font-size: 11px; color: var(--hgb-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scene-chip__count {
	font-size: 11px; color: var(--hgb-muted); background: var(--hgb-surface-2);
	border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.scene-chip__count::after { content: " 部"; }
.scene-chip:hover {
	border-color: var(--hgb-accent); transform: translateY(-3px); box-shadow: var(--hgb-shadow);
}
.scene-note { font-size: 12px; color: var(--hgb-faint); margin: 14px 0 0; }

/* ---------- scene topic brief ---------- */
.scene-brief {
	display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
	padding: 22px 24px; margin: 22px 0 8px;
	background: var(--hgb-surface); border: 1px solid var(--hgb-line); border-radius: 14px;
}
.scene-brief__label {
	display: inline-block; margin-bottom: 9px;
	font-size: 10px; letter-spacing: .12em; font-weight: 700; color: var(--hgb-accent);
}
.scene-brief__text p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--hgb-muted); }
.scene-brief__rule { margin-top: 7px !important; font-size: 11.5px !important; color: var(--hgb-faint) !important; }
.scene-brief__stats { display: flex; gap: 22px; }
.scene-brief__stats > div { display: flex; flex-direction: column; gap: 5px; text-align: center; }
.scene-brief__stats strong { font-size: 15px; font-weight: 800; white-space: nowrap; }
.scene-brief__stats span { font-size: 10.5px; color: var(--hgb-faint); white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer {
	background: var(--hgb-bg-soft); border-top: 1px solid var(--hgb-line);
	padding: 46px 0 0; margin-top: 20px;
}
.site-footer__inner { display: grid; grid-template-columns: 1.1fr .7fr 1.2fr; gap: 40px; padding-bottom: 36px; }
.site-footer__brand { display: flex; align-items: flex-start; gap: 13px; }
.site-footer__brand strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.site-footer__brand p { font-size: 12.5px; line-height: 1.7; color: var(--hgb-muted); margin: 0; }
.site-footer__head { display: block; font-size: 11px; letter-spacing: .12em; font-weight: 700; color: var(--hgb-faint); margin-bottom: 14px; text-transform: uppercase; }
.site-footer__nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer__nav a { font-size: 13px; color: var(--hgb-muted); width: fit-content; }
.site-footer__nav a:hover { color: var(--hgb-accent); }
.site-footer__note { font-size: 12px; line-height: 1.85; color: var(--hgb-muted); margin: 0; }
.site-footer__bottom {
	border-top: 1px solid var(--hgb-line); padding: 18px 0 24px;
	font-size: 11.5px; color: var(--hgb-faint);
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-footer .hgb-disclaimer { margin: 0 0 12px; }

/* ---------- single drama ---------- */
.breadcrumb { font-size: 12px; color: var(--hgb-faint); padding: 24px 0 0; }
.breadcrumb a:hover { color: var(--hgb-accent); }
.breadcrumb span { padding: 0 7px; }
.related { margin-top: 8px; padding: 46px 0 8px; border-top: 1px solid var(--hgb-line); }
.related .section-head__title { font-size: 22px; }
.drama-hero {
	display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px;
	padding: 34px 0 56px;
}
.drama-hero__cover {
	border-radius: 18px; overflow: hidden; background: var(--hgb-surface-2);
	aspect-ratio: 3 / 4; border: 1px solid var(--hgb-line);
}
.drama-hero__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drama-hero__placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	background: var(--hgb-placeholder); color: var(--hgb-faint);
	font-size: 46px; font-weight: 700; letter-spacing: .08em;
}
.drama-hero__panel {
	background: var(--hgb-surface); border: 1px solid var(--hgb-line);
	border-radius: 18px; padding: 32px 34px;
}
.drama-hero__title {
	font-family: var(--hgb-font-display); font-size: 34px; line-height: 1.25;
	font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px;
}
.drama-hero__meta { font-size: 13px; color: var(--hgb-muted); margin: 0 0 18px; }
.drama-hero__intro { font-size: 14px; line-height: 1.9; color: var(--hgb-text); opacity: .86; margin: 0 0 20px; }
.drama-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.btn-primary {
	display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px;
	background: linear-gradient(120deg, var(--hgb-accent), var(--hgb-accent-2));
	color: #fff; border-radius: 11px; font-size: 14px; font-weight: 700;
	box-shadow: 0 10px 24px rgba(255, 77, 85, .22);
	transition: transform .22s, box-shadow .22s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 77, 85, .32); }
.btn-ghost { font-size: 12.5px; color: var(--hgb-muted); border-bottom: 1px dashed var(--hgb-line-strong); padding-bottom: 2px; }
.btn-ghost:hover { color: var(--hgb-accent); }

/* ---------- misc ---------- */
.notice-box {
	background: var(--hgb-surface); border: 1px solid var(--hgb-line);
	border-radius: 18px; padding: 34px; margin: 56px auto; max-width: 720px;
	box-shadow: var(--hgb-shadow);
}
.notice-box h1 { font-family: var(--hgb-font-display); font-size: 24px; margin: 0 0 12px; font-weight: 800; }
.notice-box p { color: var(--hgb-muted); margin: 0; line-height: 1.8; }
.page-head { padding: 46px 0 26px; }
.page-head .hero__eyebrow { margin-bottom: 12px; }
.page-head__title { font-family: var(--hgb-font-display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.page-head__desc { font-size: 13.5px; color: var(--hgb-muted); margin: 0; }
/* The scene shortcode prints its own heading; the archive already has one. */
body.tax-hg_scene .hgb-board > .hgb-board__head { display: none; }
.navigation.pagination { display: flex; gap: 8px; justify-content: center; padding: 12px 0 40px; }
.navigation.pagination .page-numbers {
	padding: 8px 14px; border: 1px solid var(--hgb-line); border-radius: 8px; font-size: 13px;
}
.navigation.pagination .current { background: var(--hgb-accent); border-color: var(--hgb-accent); color: #fff; }

/* ---------- decision blocks ----------
   These carry the site's actual argument: the boards below are data, these
   blocks are the decision. Spacing is deliberately tighter than the boards so
   the top of the page reads as one flow instead of four separate sections. */
.block { padding-top: 58px; scroll-margin-top: 88px; }
.block--chooser { padding-top: 44px; }
.block--boards .boards { padding-top: 0; }

/* watch-time / mood chooser */
.chooser {
	border: 1px solid var(--hgb-line);
	border-radius: 18px;
	background: var(--hgb-surface);
	padding: 20px 24px 16px;
}
.chooser__row {
	display: flex; align-items: flex-start; gap: 18px;
	padding: 12px 0; border-bottom: 1px dashed var(--hgb-line);
}
.chooser__row:last-of-type { border-bottom: 0; }
.chooser__key {
	flex: 0 0 122px; padding-top: 13px;
	font-size: 12px; letter-spacing: .02em; color: var(--hgb-faint);
}
.chooser__set { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 auto; min-width: 0; }
.chooser__opt {
	flex: 1 1 170px; min-width: 0;
	display: flex; flex-direction: column; gap: 3px;
	padding: 12px 16px; border: 1px solid var(--hgb-line); border-radius: 12px;
	background: var(--hgb-surface-2);
	transition: border-color .2s, transform .2s;
}
.chooser__opt:hover { border-color: var(--hgb-accent); transform: translateY(-2px); }
.chooser__opt strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.chooser__opt em { font-style: normal; font-size: 11.5px; color: var(--hgb-muted); }
.chooser__opt--mood { flex: 0 1 148px; }
.chooser__opt--mood strong { font-size: 13.5px; }
.chooser__foot { margin: 10px 0 0; font-size: 11.5px; color: var(--hgb-faint); }

/* rule-scored shortlist */
.picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pick { display: flex; flex-direction: column; min-width: 0; }
.pick .hgb-card { flex: 1 1 auto; }
.pick__why { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 0; }
.pick__why span {
	padding: 3px 8px; border-radius: 6px;
	font-size: 11px; line-height: 1.5;
	background: var(--hgb-accent-soft); color: var(--hgb-accent);
}
.picks__rule { margin: 16px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--hgb-faint); }

/* rank history */
.trend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trend__col {
	display: flex; flex-direction: column; min-width: 0;
	padding: 18px; border: 1px solid var(--hgb-line); border-radius: 16px;
	background: var(--hgb-surface);
}
.trend__head { margin-bottom: 4px; }
.trend__head h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.trend__head span { font-size: 11.5px; color: var(--hgb-faint); }
.trend__row {
	display: flex; align-items: center; gap: 10px; min-width: 0;
	padding: 9px 0; border-top: 1px solid var(--hgb-line);
}
.trend__row:hover .trend__body strong { color: var(--hgb-accent); }
.trend__thumb {
	flex: 0 0 34px; width: 34px; height: 46px; border-radius: 7px; overflow: hidden;
	background: var(--hgb-placeholder);
	display: flex; align-items: center; justify-content: center;
}
.trend__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trend__thumb i { font-style: normal; font-size: 13px; color: var(--hgb-muted); }
.trend__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trend__body strong {
	font-size: 13px; font-weight: 600;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trend__body em {
	font-style: normal; font-size: 11px; color: var(--hgb-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trend__delta { flex: 0 0 auto; padding: 3px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; }
.trend__delta--new { background: var(--hgb-accent-soft); color: var(--hgb-accent); }
.trend__delta--up { background: rgba(63, 191, 90, .14); color: #56c96e; }
.trend__delta--down { background: rgba(140, 145, 155, .16); color: var(--hgb-faint); }
[data-skin="light"] .trend__delta--up { color: #2f7d43; background: rgba(47, 125, 67, .12); }
.trend__hold {
	flex: 1 1 auto;
	display: flex; flex-direction: column; justify-content: center;
	margin-top: 12px; padding: 18px 16px;
	border-radius: 12px; background: var(--hgb-surface-2);
}
.trend__hold strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.trend__hold p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.65; color: var(--hgb-muted); }
.trend__none { margin: 10px 0 0; font-size: 12.5px; color: var(--hgb-faint); }
.trend__foot { margin: 14px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--hgb-faint); }

/* same-genre comparison */
.cmp { border: 1px solid var(--hgb-line); border-radius: 16px; background: var(--hgb-surface); overflow: hidden; }
.cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp__table { width: 100%; min-width: 620px; border-collapse: collapse; }
.cmp__table th, .cmp__table td {
	padding: 12px 14px; text-align: left; font-size: 13px;
	border-bottom: 1px solid var(--hgb-line); white-space: nowrap;
}
.cmp__table thead th {
	font-size: 11px; font-weight: 600; letter-spacing: .06em;
	color: var(--hgb-faint); background: var(--hgb-surface-2);
}
.cmp__table tbody th { font-weight: 600; }
.cmp__table tbody th a:hover { color: var(--hgb-accent); }
.cmp__table tbody tr:last-child th, .cmp__table tbody tr:last-child td { border-bottom: 0; }
.cmp__table tbody tr:hover { background: var(--hgb-accent-soft); }
.cmp__tags { color: var(--hgb-muted); }
.cmp__foot {
	display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
	margin: 0; padding: 12px 14px;
	border-top: 1px solid var(--hgb-line);
	font-size: 11.5px; color: var(--hgb-faint);
}
.cmp__foot a { color: var(--hgb-accent); }

/* archive watch-time switch */
.budget-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.budget-switch__item {
	padding: 7px 14px; border: 1px solid var(--hgb-line); border-radius: 999px;
	font-size: 12.5px; color: var(--hgb-muted); transition: color .2s, border-color .2s;
}
.budget-switch__item:hover { border-color: var(--hgb-accent); color: var(--hgb-text); }
.budget-switch__item.is-active { background: var(--hgb-accent); border-color: var(--hgb-accent); color: var(--hgb-accent-text); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
	.hero__inner { gap: 36px; padding-top: 62px; padding-bottom: 62px; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__note { grid-column: 1 / -1; }
	.picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.trend { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
	.container { padding: 0 16px; }
	.site-header__inner { height: 60px; gap: 12px; }
	.site-header__badge { display: none; }
	.site-logo__text small { display: none; }
	.site-nav a { padding: 7px 10px; font-size: 12.5px; }
	.hero__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 44px; }
	.hero__title { font-size: 36px; }
	.hero__panel { padding: 20px; }
	.hero__stat strong { font-size: 25px; }
	.hero__flow { display: none; }
	.spotlight { padding-top: 44px; }
	.hgb-spotlight .hgb-card__main { grid-template-columns: 1fr; }
	.hgb-spotlight .hgb-card__cover { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
	.hgb-spotlight .hgb-card__body { padding: 20px; }
	.hgb-spotlight .hgb-card__title { font-size: 21px; }
	.hgb-spotlight .hgb-card__intro, .hgb-spotlight .hgb-card__note { display: none; }
	.scene-list { grid-template-columns: 1fr 1fr; gap: 10px; }
	.scene-chip { padding: 11px; gap: 9px; min-height: 76px; }
	.scene-chip__no { display: none; }
	.scene-chip__thumb { flex-basis: 36px; width: 36px; height: 50px; }
	.scene-brief { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
	.scene-brief__stats { gap: 18px; justify-content: space-between; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 26px; }
	.drama-hero { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 24px 0 40px; }
	.drama-hero__panel { padding: 18px; }
	.drama-hero__title { font-size: 21px; }
	.drama-hero__intro { font-size: 13px; }
	.page-head { padding-top: 30px; }
	.page-head__title { font-size: 26px; }
	.picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.chooser { padding: 16px 16px 12px; border-radius: 14px; }
	.chooser__row { flex-direction: column; gap: 8px; padding: 10px 0; }
	.chooser__key { flex: none; padding-top: 0; }
	.chooser__opt { flex: 1 1 138px; padding: 10px 13px; }
	.chooser__opt strong { font-size: 14px; }
	.chooser__opt--mood { flex: 1 1 130px; }
	.trend__col { padding: 15px; }
	.cmp__foot { flex-direction: column; gap: 6px; }
}
@media (max-width: 420px) {
	.scene-list { grid-template-columns: 1fr; }
	.hero__stats { gap: 6px; }
	.hero__stat + .hero__stat { padding-left: 9px; }
	.picks { grid-template-columns: 1fr; }
	.pick__why { margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.chip, .scene-chip, .btn-primary, .site-nav a { transition: none; }
}
