/* ==========================================================
   theme.css —— hl-37 酷黑 · 石墨深色 + 橙 #F08C00 · 自适应版
   电脑 / 平板 / 手机通用。改颜色只需改 :root 里的变量。
   ========================================================== */
:root {
	--bg: #F4F5F7;
	--panel: #FFFFFF;
	--panel-2: #F3F4F6;
	--line: #ECEDF0;
	--text: #222222;
	--muted: #666666;
	--dim: #999999;
	--accent: #F08C00;
	--accent-2: #FFB547;
	--accent-soft: rgba(240, 140, 0, .14);
	--grad: linear-gradient(90deg, #F08C00, #FFB547);
	--shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .04);
	--radius: 8px;
	--container: 1200px;
	--pad: 20px;
	--cols: 6;
	--font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
@media (max-width: 1024px) { :root { --cols: 4; } }
@media (max-width: 768px) { :root { --pad: 12px; } }
@media (max-width: 560px) { :root { --cols: 3; } }

/* ---------- 基础 ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 var(--font); overflow-x: hidden; }
body * { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid var(--accent); outline-offset: 2px;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
main.container { padding-top: 20px; padding-bottom: 8px; }
.box { padding: 16px 18px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }

/* 海报占位 + 懒加载 */
.card-img, .rank-cover, .side-cover, .vod-cover, .thumb {
	position: relative; display: block; overflow: hidden; aspect-ratio: 29 / 40;
	border-radius: 6px; background: var(--panel-2) url(../images/lazy.svg) center / 38% no-repeat;
}
.card-img img, .rank-cover img, .side-cover img, .vod-cover img, .thumb img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.thumb.is-wide { aspect-ratio: 16 / 10; }
/* 封面和文字并排时，封面保持自身比例，不随文字高度拉伸 */
.card-img, .rank-cover, .side-cover, .vod-cover, .thumb { align-self: flex-start; height: auto; }

/* ---------- 按钮、标签 ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 40px; padding: 0 22px; border-radius: 20px; border: 1px solid transparent;
	font-size: 14px; white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(240, 140, 0, .25); }
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-ghost { border-color: #DDDFE3; background: #fff; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span, .tags a { padding: 1px 9px; border-radius: 4px; background: var(--panel-2); color: var(--muted); font-size: 12px; line-height: 20px; }
.tags span:empty { display: none; }
.tags .tag-hl { background: var(--accent-soft); color: var(--accent); }

/* ---------- 头部 ---------- */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); }
.hd-bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-text { font-size: 21px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12em; }
.hd-search {
	flex: 1 1 auto; max-width: 440px; margin-left: auto; display: flex; height: 40px;
	border: 1px solid #E3E5E8; border-radius: 20px; overflow: hidden; background: var(--panel-2);
}
.hd-search:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(240, 140, 0, .16); }
.hd-search input[type="text"] {
	flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
	color: var(--text); padding: 0 16px; font: 14px var(--font);
}
.hd-search input[type="text"]::placeholder { color: var(--dim); }
.hd-search input[type="submit"] {
	flex: none; border: 0; background: var(--grad); color: #fff; padding: 0 22px;
	font: 14px var(--font); cursor: pointer; -webkit-appearance: none; appearance: none; border-radius: 0;
}
.hd-tools { position: relative; display: flex; align-items: center; gap: 8px; flex: none; }
.hd-tool {
	position: relative; display: flex; align-items: center; gap: 6px; padding: 7px 12px;
	border-radius: 18px; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap;
}
.hd-tool:hover { background: var(--panel-2); color: var(--accent); }
.hd-tool svg { width: 18px; height: 18px; flex: none; }
.hd-hot { display: flex; align-items: center; gap: 14px; height: 30px; margin-top: -8px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.hd-hot a { color: var(--muted); }
.hd-nav { border-top: 1px solid var(--line); }
.nav-list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { flex: none; }
.nav-list a { position: relative; display: block; padding: 0 15px; line-height: 48px; font-size: 15px; color: #444; }
.nav-list a:hover { color: var(--accent); }
.nav-list .is-current a { color: var(--accent); font-weight: 600; }
.nav-list .is-current a::after {
	content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px;
	border-radius: 3px 3px 0 0; background: var(--grad);
}

/* 播放记录下拉（苹果CMS 自带 MAC.History 生成） */
.hd-tools .mac_history_box {
	position: absolute; z-index: 120; left: auto !important; right: 0; width: 280px; max-width: calc(100vw - 24px);
	margin: 8px 0 0; padding: 6px 0; border: 1px solid var(--line); border-radius: 10px;
	background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); font-size: 13px;
}
.hd-tools .mac_history_box::before, .hd-tools .mac_history_box::after { display: none; }
.hd-tools .mac_history_box dt { height: auto; padding: 4px 14px 8px; line-height: 20px; border-bottom: 1px solid var(--line); text-align: right; }
.hd-tools .mac_history_box dt a { color: var(--dim); font-size: 12px; }
.hd-tools .mac_history_box dd, .hd-tools .mac_history_box dd.odd {
	width: auto; height: auto; margin: 0; padding: 0 14px; line-height: 38px; background: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd-tools .mac_history_box dd a { display: block; color: var(--text); }
.hd-tools .mac_history_box dd a:hover { background: none; color: var(--accent); }
.hd-tools .mac_history_box dd:hover { background: var(--panel-2); }
.hd-tools .mac_history_box dd.hide { display: block; color: var(--dim); text-align: center; }

/* ---------- 区块标题、选项卡 ---------- */
.sec { margin-top: 28px; }
.sec-hd { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-bottom: 14px; }
.sec-hd h2, .sec-hd h1 { position: relative; padding-left: 12px; font-size: 19px; font-weight: 700; white-space: nowrap; }
.sec-hd h2::before, .sec-hd h1::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--grad); }
.sec-tip { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sec-tip b { color: var(--accent); font-weight: 600; }
.sec-more { margin-left: auto; flex: none; padding: 3px 12px; border-radius: 14px; background: var(--panel); color: var(--muted); font-size: 13px; box-shadow: var(--shadow); }
.page-hd h1 { margin: 4px 0 16px; font-size: 22px; font-weight: 700; }
.page-hd h1 strong { color: var(--accent); }
.page-hd h1 b { color: var(--accent); }
.page-hd-flex { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.page-hd-flex h1 { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 14px; color: var(--dim); font-size: 13px; }
.crumbs a { color: var(--muted); }
.crumbs span:empty { display: none; }
.tabs {
	display: flex; gap: 2px; margin-left: auto; padding: 3px; border-radius: 18px;
	background: var(--panel-2); overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; padding: 4px 13px; border-radius: 15px; background: none; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--accent); }
.tab.is-active { background: var(--grad); color: #fff; }
.link-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.link-tabs::-webkit-scrollbar { display: none; }
.link-tabs a { flex: none; padding: 6px 16px; border-radius: 18px; background: var(--panel); color: var(--muted); font-size: 14px; box-shadow: var(--shadow); white-space: nowrap; }
.link-tabs a.is-active { background: var(--grad); color: #fff; }
.empty-tip { padding: 48px 0; text-align: center; color: var(--dim); grid-column: 1 / -1; }
.empty-tip a { color: var(--accent); }

/* ---------- 海报卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 20px 16px; }
.card { display: block; min-width: 0; }
.card-tag {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 8px 6px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7));
	color: #fff; font-size: 12px; font-style: normal; text-align: right;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-tag:empty { display: none; }
.card-score { position: absolute; top: 6px; right: 6px; padding: 0 6px; border-radius: 4px; background: rgba(240, 140, 0, .92); color: #fff; font-size: 12px; font-style: normal; line-height: 20px; }
.card-score:empty { display: none; }
.card-name { display: block; margin-top: 8px; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { display: block; margin-top: 2px; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub:empty { display: none; }

/* ---------- 首页：轮播 + 资讯 ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
.home-top:has(.hero.is-empty) { grid-template-columns: minmax(0, 1fr); }
.hero { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; background: #2A2D33; box-shadow: var(--shadow); }
.hero.is-empty { display: none; }
.hero-track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; color: #fff; }
.hero-slide:hover { color: #fff; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { display: none; }
.hero-cap {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px;
	padding: 56px 28px 42px; background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}
.hero-cap strong { font-size: 24px; line-height: 1.3; }
.hero-cap em { font-style: normal; font-size: 13px; color: #FFB48F; }
.hero-blurb { display: none; }
.hero-slide.is-poster .hero-img { filter: blur(26px) brightness(.5); transform: scale(1.2); }
.hero-slide.is-poster .hero-poster {
	display: block; position: absolute; right: 7%; top: 50%; transform: translateY(-50%);
	height: 80%; width: auto; aspect-ratio: 29 / 40; object-fit: cover;
	border-radius: 6px; box-shadow: 0 14px 36px rgba(0, 0, 0, .45);
}
.hero-slide.is-poster .hero-cap { top: 0; right: 38%; justify-content: center; padding: 24px 0 24px 36px; background: none; }
.hero-slide.is-poster .hero-cap strong { font-size: 28px; }
.hero-slide.is-poster .hero-blurb {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	margin-top: 8px; font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, .78);
}
.hero-btn {
	position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px;
	display: grid; place-items: center; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s;
}
.hero-btn svg { width: 20px; height: 20px; }
.hero:hover .hero-btn, .hero-btn:focus-visible { opacity: 1; }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots { position: absolute; left: 28px; bottom: 18px; z-index: 2; display: flex; gap: 6px; }
.hero-dots button { width: 16px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s; }
.hero-dots button.is-active { width: 28px; background: var(--accent); }
.hero.is-single .hero-btn, .hero.is-single .hero-dots { display: none; }
@media (hover: none) { .hero-btn { display: none; } }

.home-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick-links a {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px;
	border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); color: var(--muted); font-size: 13px;
}
.quick-links a:hover { color: var(--accent); }
.quick-links svg { width: 24px; height: 24px; color: var(--accent); }
.news-box { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-box { padding-bottom: 13px; }
.news-box .box-title { gap: 10px; }
.news-box .tabs { margin-left: auto; }
.news-box .tab { padding: 2px 10px; font-size: 12px; }
.news-box .text-list li { padding: 6px 0; }
.news-box .text-list li:nth-child(n+8) { display: none; }
.news-box .rank-all { display: none; margin-top: auto; padding-top: 8px; }
.box-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.box-title a { color: var(--dim); font-size: 12px; font-weight: 400; }
.text-list { min-height: 0; overflow: hidden; }
.text-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.text-list li:last-child { border-bottom: 0; }
.text-list a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-list span { flex: none; max-width: 42%; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-list .no { flex: none; width: 18px; color: var(--dim); font-style: normal; font-size: 12px; text-align: center; }
.text-list li:nth-child(-n+3) .no { color: var(--accent); font-weight: 700; }

/* 首页分类区块：左卡片右榜单 */
.sec-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.sec-split .cards { --cols: 6; }

/* ---------- 排行榜列表 ---------- */
.rank { padding: 16px 14px 10px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.rank .sec-hd { margin-bottom: 8px; padding-left: 4px; }
.rank .sec-hd h2 { font-size: 17px; }
.rank-list li a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 6px; color: var(--text); }
.rank-list li a:hover { background: var(--panel-2); color: var(--accent); }
.rank-num {
	flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px;
	background: var(--panel-2); color: var(--dim); font-size: 12px; font-weight: 700; font-style: normal;
}
.rank-list li:nth-child(1) .rank-num, .board-list li:nth-child(1) .rank-num { background: #FF4D4F; color: #fff; }
.rank-list li:nth-child(2) .rank-num, .board-list li:nth-child(2) .rank-num { background: #FF7A33; color: #fff; }
.rank-list li:nth-child(3) .rank-num, .board-list li:nth-child(3) .rank-num { background: #FFAA33; color: #fff; }
.rank-name { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { flex: none; max-width: 38%; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-top a { align-items: flex-start; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; }
.rank-cover { flex: none; width: 72px; border-radius: 6px; }
.rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.rank-info strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.4; }
.rank-info em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info small { font-size: 12px; color: var(--accent); }
.rank-all { display: block; margin-top: 6px; padding: 10px 0 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }

/* 排行页（长列表） */
.board-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding: 6px 18px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.board-list li { min-width: 0; border-bottom: 1px dashed var(--line); }
.board-list li a { display: flex; align-items: center; gap: 12px; padding: 11px 2px; color: var(--text); }
.board-list li a:hover .board-name { color: var(--accent); }
.board-name { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-meta { flex: none; max-width: 32%; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-hits { flex: none; min-width: 56px; color: var(--accent); font-size: 13px; text-align: right; }

/* ---------- 友情链接、页脚 ---------- */
.link-list { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 13px; }
.site-footer {
	margin-top: 40px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--line); background: #fff;
	color: var(--dim); font-size: 12px; line-height: 1.9; text-align: center;
}
.ft-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 12px; font-size: 13px; }
.ft-nav a { color: var(--muted); }
.to-top {
	position: fixed; right: 18px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
	width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%;
	background: #fff; color: var(--accent); box-shadow: 0 4px 16px rgba(0, 0, 0, .12); cursor: pointer;
	opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.to-top.is-show { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 筛选 ---------- */
.filter { padding: 6px 18px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.filter-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.filter-row:last-child { border-bottom: 0; }
.filter-label { flex: none; width: 3em; line-height: 28px; color: var(--dim); font-size: 13px; }
.filter-opts { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.chip { flex: none; display: inline-block; padding: 0 12px; line-height: 28px; border-radius: 14px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.chip:hover { background: var(--panel-2); color: var(--accent); }
.chip.is-active { background: var(--grad); color: #fff; }

/* ---------- 翻页 ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 4px; }
.pager .page_link {
	display: inline-block; float: none; min-width: 36px; height: 36px; margin: 0; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted);
	font-size: 14px; line-height: 34px; text-align: center;
}
.pager .page_link:hover { border-color: var(--accent); color: var(--accent); }
.pager .page_link.is-current { border-color: transparent; background: var(--grad); color: #fff; }

/* ---------- 详情页 ---------- */
.vod-head { position: relative; display: flex; gap: 28px; padding: 24px; border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.vod-cover { z-index: 1; flex: none; width: 210px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.vod-info { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.vod-info > * { position: relative; z-index: 1; }
.vod-info h1 { font-size: 26px; line-height: 1.3; }
.vod-info h1 .score { margin-left: 10px; color: var(--accent); font-size: 20px; font-weight: 700; }
.vod-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; font-size: 13px; }
.vod-meta div { display: flex; gap: 10px; min-width: 0; }
.vod-meta .full { grid-column: 1 / -1; }
.vod-meta dt { flex: none; min-width: 3em; color: var(--dim); white-space: nowrap; }
.vod-meta dd { flex: 1; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.vod-meta dd a { margin-right: 8px; color: var(--text); }
.vod-meta dd a:hover { color: var(--accent); }
.vod-desc { color: var(--muted); font-size: 14px; line-height: 1.85; }
.vod-desc-in { max-height: 5.6em; overflow: hidden; overflow-wrap: anywhere; }
.vod-desc-in p { margin: 0 0 6px; }
.vod-desc-in * { max-width: 100% !important; float: none !important; box-sizing: border-box; }
.vod-desc-in img { height: auto !important; border-radius: 6px; }
.vod-desc-in table { display: block; overflow-x: auto; }
.vod-desc.is-open .vod-desc-in { max-height: none; }
.desc-toggle { margin-top: 2px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 13px; cursor: pointer; }
.vod-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.digg-btn em { font-style: normal; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 20px; }
.layout-main > .sec:first-child, .layout-side > .sec:first-child { margin-top: 0; }
.layout-main > .sec, .layout-side > .sec { margin-top: 20px; }

/* 选集 */
.playlist { padding: 16px 18px 18px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.playlist .sec-hd { margin-bottom: 6px; }
.pl-order { margin-left: auto; color: var(--muted); font-size: 13px; cursor: pointer; }
.pl-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tab { position: relative; flex: none; padding: 8px 12px; border: 0; background: none; color: var(--muted); font-size: 14px; white-space: nowrap; cursor: pointer; }
.pl-tab small { margin-left: 4px; color: var(--dim); font-size: 11px; }
.pl-tab.is-active { color: var(--accent); font-weight: 600; }
.pl-tab.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.pl-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; max-height: 324px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.pl-eps a {
	display: block; height: 36px; padding: 0 8px; border-radius: 6px; background: var(--panel-2);
	color: var(--text); font-size: 13px; line-height: 36px; text-align: center;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-eps a:hover { background: var(--accent-soft); color: var(--accent); }
.pl-eps a.is-active { background: var(--grad); color: #fff; }

/* 相关推荐（侧栏） */
.side-box { padding: 16px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.side-list { display: grid; gap: 14px; }
.side-item { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.side-cover { flex: none; width: 76px; border-radius: 6px; }
.side-cover.is-wide { width: 104px; aspect-ratio: 16 / 10; }
.side-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--dim); font-size: 12px; }
.side-info strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 2px; color: var(--text); font-size: 14px; line-height: 1.4; font-weight: 500; }
.side-item:hover strong { color: var(--accent); }
.side-info em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 播放页 ---------- */
.play-hd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.play-hd h1 { font-size: 20px; line-height: 1.4; }
.play-hd h1 span { margin-left: 10px; color: var(--accent); font-size: 16px; font-weight: 500; }
.play-tip { margin-left: auto; color: var(--dim); font-size: 12px; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.player-in { position: absolute; inset: 0; }
.player-in > *, .player-in .MacPlayer, .player-in table, .player-in iframe, .player-in video, .player-in embed, .player-in object {
	width: 100% !important; height: 100% !important; max-width: none; margin: 0 !important;
}
.player-in table { border-collapse: collapse; }
.player-in td { padding: 0; }
.play-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mini-info { display: flex; align-items: flex-start; gap: 14px; }
.mini-info .vod-cover { width: 96px; box-shadow: none; }
.mini-info .vod-meta { grid-template-columns: minmax(0, 1fr); }

/* ---------- 评论（苹果CMS评论，结构见 comment/ajax.html） ---------- */
.cmt-box .mac_comment { float: none; width: auto; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.cmt-box { padding: 16px 18px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.mac_comment .comment_form { margin-bottom: 8px; }
.mac_comment .input_wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.mac_comment .input_wrap:focus-within { border-color: var(--accent); background: #fff; }
.mac_comment textarea.comment_content {
	display: block; width: 100%; height: 88px; padding: 10px 12px; border: 0; outline: none; resize: vertical;
	background: transparent; color: var(--text); font: 14px/1.6 var(--font);
}
.cmt-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: #fff; }
.cmt-tools .cmt-count { margin-right: auto; color: var(--dim); font-size: 12px; }
.cmt-tools input.verify { width: 86px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.cmt-tools img.comm-code { height: 30px; border-radius: 4px; cursor: pointer; }
.cmt-tools .comment_submit { height: 30px; padding: 0 18px; border: 0; border-radius: 15px; background: var(--grad); color: #fff; font-size: 13px; cursor: pointer; }
.cmt-list > li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cmt-list > li:last-child { border-bottom: 0; }
.cmt-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cmt-meta strong { color: var(--text); font-weight: 600; }
.cmt-meta time, .cmt-meta .cmt-floor { color: var(--dim); font-size: 12px; }
.cmt-meta .cmt-floor { margin-left: auto; }
.cmt-text { margin: 4px 0 6px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.cmt-text img { vertical-align: middle; }
.cmt-actions { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--dim); }
.cmt-actions a { color: var(--dim); }
.cmt-actions a:hover { color: var(--accent); }
.cmt-actions em { font-style: normal; margin-left: 3px; }
.cmt-replies { margin-top: 8px; padding: 2px 12px; border-radius: 6px; background: var(--panel-2); }
.cmt-replies:empty { display: none; }
.cmt-replies .cmt-reply { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.cmt-replies .cmt-reply:last-child { border-bottom: 0; }
.cmt-replies .cmt-reply strong { color: var(--accent); font-weight: 500; }
.mac_comment .comment_reply_form { margin-top: 10px; }
.cmt-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.cmt-pager a { min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 13px; line-height: 30px; text-align: center; }
.cmt-pager a.page_current { border-color: transparent; background: var(--grad); color: #fff; }
.cmt-empty { padding: 24px 0; color: var(--dim); text-align: center; }

/* ---------- 搜索页 ---------- */
.s-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.s-item { min-width: 0; display: flex; gap: 16px; padding: 14px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.s-cover { flex: none; width: 120px; align-self: flex-start; }
.s-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.s-info h2 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-line { min-width: 0; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-desc { overflow-wrap: anywhere; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.7; }
.s-desc * { display: inline !important; width: auto !important; max-width: 100% !important; height: auto !important; float: none !important; position: static !important; margin: 0 !important; padding: 0 !important; font-size: inherit !important; }
.s-desc img, .s-desc br, .s-desc script, .s-desc style { display: none !important; }
.s-info .btn { align-self: flex-start; margin-top: auto; }

/* ---------- 文章 ---------- */
.art-list > li { border-bottom: 1px solid var(--line); }
.art-list > li:last-child { border-bottom: 0; }
.art-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; color: var(--text); }
.art-item .thumb { flex: none; width: 180px; aspect-ratio: 16 / 10; }
.art-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.art-body h3 { font-size: 17px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-item:hover h3 { color: var(--accent); }
.art-body p { color: var(--muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.art-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; color: var(--dim); font-size: 12px; }
.article { padding: 24px 28px; }
.article h1 { font-size: 26px; line-height: 1.4; }
.article .art-meta { margin: 12px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article-content { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.article-content p { margin: 0 0 1em; }
.article-content * { max-width: 100% !important; box-sizing: border-box; }
.article-content img { height: auto !important; border-radius: 6px; }
.article-content table { display: block; overflow-x: auto; }

/* ---------- 专题 ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-card { display: block; overflow: hidden; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); color: var(--text); }
.topic-card .thumb { border-radius: 0; aspect-ratio: 16 / 9; }
.topic-card .topic-body { padding: 12px 14px 14px; }
.topic-card h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-card h3 small { margin-left: 6px; color: var(--accent); font-size: 12px; font-weight: 400; }
.topic-card p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.topic-card:hover h3 { color: var(--accent); }
.topic-head .vod-cover { aspect-ratio: 16 / 10; width: 320px; }

/* ---------- 演员 / 角色 ---------- */
.cards-actor { --cols: 8; }
.card-img.is-actor, .vod-cover.is-actor { aspect-ratio: 3 / 4; }
.actor-card .card-name, .actor-card .card-sub { text-align: center; }
.mini-search { display: flex; height: 36px; margin-left: auto; border: 1px solid #E3E5E8; border-radius: 18px; overflow: hidden; background: #fff; }
.mini-search input { width: 180px; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); padding: 0 14px; font: 13px var(--font); }
.mini-search button { border: 0; padding: 0 16px; background: var(--grad); color: #fff; font-size: 13px; cursor: pointer; }

/* ---------- 留言板 ---------- */
.gbook-form textarea {
	display: block; width: 100%; min-height: 110px; padding: 10px 12px; resize: vertical;
	border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font: 14px/1.7 var(--font); outline: none;
}
.gbook-form textarea:focus { border-color: var(--accent); background: #fff; }
.form-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; color: var(--dim); font-size: 12px; }
.form-row .grow { margin-right: auto; }
.form-row input[type="text"] { width: 96px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.form-row img { height: 34px; border-radius: 4px; cursor: pointer; }
.form-row .gbook_submit { height: 36px; padding: 0 24px; border: 0; border-radius: 18px; background: var(--grad); color: #fff; font-size: 14px; cursor: pointer; }
.msg-list > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.msg-list > li:last-child { border-bottom: 0; }
.msg-reply { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--accent-soft); font-size: 13px; }
.msg-reply strong { color: var(--accent); }

/* 苹果CMS 搜索联想下拉框（宽度由 theme.js 对齐到搜索框） */
.mac_results {
	z-index: 200; margin-top: 6px; padding: 6px 0; overflow: hidden;
	border: 1px solid var(--line); border-radius: 10px; background: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12); color: var(--text); font-family: var(--font);
}
.mac_results ul { margin: 0; padding: 0; list-style: none; background: none; }
.mac_results li, .mac_results li.ac_even, .mac_results li.ac_odd {
	margin: 0; padding: 0 16px; line-height: 38px; height: 38px; border: 0;
	background: none; color: var(--text); font-size: 14px; cursor: pointer;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mac_results li strong { color: var(--accent); font-weight: 600; }
.mac_results li.ac_over { background: var(--accent-soft); color: var(--accent); }

/* ---------- 苹果CMS 弹窗（报错、登录、提示） ---------- */
.mac_pop_bg, .mac_pop_msg_bg { background: rgba(0, 0, 0, .45); }
.mac_pop {
	top: 50%; left: 50%; right: auto; bottom: auto; margin: 0; padding: 0;
	transform: translate(-50%, -50%);
	width: 440px !important; max-width: calc(100vw - 24px); height: auto !important; max-height: calc(100vh - 40px); overflow: auto;
	border: 0; border-radius: 12px; background: #fff; color: var(--text);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25); font-family: var(--font);
}
.mac_pop .pop_top { display: flex; align-items: center; width: auto; height: auto; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); background: none; }
.mac_pop .pop_top h2 { float: none; flex: 1; font-size: 16px; font-weight: 600; font-family: var(--font); color: var(--text); }
.mac_pop span.pop_close {
	float: none; flex: none; width: 32px; height: 32px; border-radius: 50%; background: none;
	font-size: 15px; line-height: 32px; text-indent: 0; text-align: center; color: var(--dim); font-weight: 400; cursor: pointer;
}
.mac_pop span.pop_close:hover { background: var(--panel-2); color: var(--text); }
.mac_pop .pop_content { padding: 18px 20px 20px; }
.mac_pop_msg {
	top: 50%; left: 50%; right: auto; bottom: auto; margin: 0; transform: translate(-50%, -50%);
	width: auto !important; height: auto !important; min-width: 180px; max-width: calc(100vw - 40px);
	padding: 14px 24px; border-radius: 10px; background: rgba(34, 34, 34, .92); border: 0;
}
.mac_pop_msg .pop-msg { color: #fff; font-size: 14px; line-height: 1.6; }
.report-box .report-tip { margin-bottom: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.report-box textarea {
	display: block; width: 100%; min-height: 120px; padding: 10px 12px; resize: vertical;
	border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text);
	font: 13px/1.7 var(--font); outline: none;
}
.report-box textarea:focus, .report-box input[type="text"]:focus { border-color: var(--accent); }
.report-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 14px; color: var(--dim); font-size: 12px; }
.report-row .remaining-w { margin-left: auto; float: none; padding: 0; border: 0; line-height: 1.5; }
.report-verify { display: flex; align-items: center; gap: 6px; }
.report-verify input { width: 80px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; }
.report-verify .mac_verify_img { height: 30px; border-radius: 4px; cursor: pointer; }
.report-submit { display: block; width: 100%; height: 40px; border: 0; border-radius: 20px; background: var(--grad); color: #fff; font: 14px var(--font); cursor: pointer; }
.mac_pop .mac_login { width: auto; height: auto; padding: 0; background: none; font-family: var(--font); }
.mac_pop .mac_login .login_form_group { margin-bottom: 12px; overflow: hidden; }
.mac_pop .mac_login .login_form_group input {
	height: 40px; line-height: 40px; padding: 0 14px 0 36px; border: 1px solid var(--line); border-radius: 8px;
	background-color: var(--panel-2); color: var(--text); font-size: 14px;
}
.mac_pop .mac_login .login_form_group input.mac_u_verify { width: 58%; float: left; }
.mac_pop .mac_login .login_form_group .mac_verify_img { float: right; height: 40px; border-radius: 6px; cursor: pointer; }
.mac_pop .mac_login .login_form_link { display: flex; justify-content: space-between; margin: 0 2px 14px; font-size: 13px; }
.mac_pop .mac_login .login_form_link a { color: var(--muted); }
.mac_pop .mac_login .login_form_group input.login_form_submit { padding: 0; border: 0; border-radius: 20px; background: var(--grad); color: #fff; font-size: 15px; cursor: pointer; }

/* ==========================================================
   平板（≤1024px）
   ========================================================== */
@media (max-width: 1024px) {
	.home-top, .layout-2, .sec-split { grid-template-columns: minmax(0, 1fr); }
	.sec-split .cards { --cols: 4; }
	.text-list.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
	.news-box .text-list li:nth-child(8) { display: flex; }
	.news-box .text-list li:nth-child(n+9) { display: none; }
	.news-box .rank-all { display: block; }
	.side-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
	.side-item { flex-direction: column; gap: 8px; }
	.side-cover, .side-cover.is-wide { width: 100%; }
	.side-info em { display: none; }
	.side-info strong { font-size: 13px; }
	.s-list { grid-template-columns: minmax(0, 1fr); }
	.board-list { grid-template-columns: minmax(0, 1fr); }
	.page-gbook .layout-side { order: -1; }
	.cards-actor { --cols: 6; }
	.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================
   手机（≤768px）
   ========================================================== */
@media (max-width: 768px) {
	.hd-bar { flex-wrap: wrap; height: auto; gap: 10px 8px; padding-top: 10px; padding-bottom: 10px; }
	.logo-mark { width: 30px; height: 30px; }
	.logo-text { font-size: 18px; }
	.hd-search { order: 3; flex: 1 0 100%; max-width: none; height: 38px; margin: 0; }
	.hd-tools { margin-left: auto; gap: 2px; }
	.hd-tool { padding: 6px 8px; }
	.hd-tool span { display: none; }
	.hd-hot { display: none; }
	.nav-list a { padding: 0 12px; line-height: 44px; }
	.nav-list .is-current a::after { left: 12px; right: 12px; }

	main.container { padding-top: 14px; }
	.sec { margin-top: 24px; }
	.sec-hd { flex-wrap: wrap; row-gap: 4px; }
	.sec-hd h2 { font-size: 17px; }
	.sec-tip { order: 3; flex: 0 0 100%; }
	.page-hd h1 { font-size: 18px; margin-bottom: 12px; }
	.cards { gap: 14px 10px; }
	.sec-split .cards { --cols: 3; }
	.card-name { margin-top: 6px; font-size: 13px; }
	.box { padding: 14px; }

	.hero { aspect-ratio: 16 / 9; }
	.hero-cap { padding: 40px 16px 30px; }
	.hero-cap strong { font-size: 18px; }
	.hero-slide.is-poster .hero-poster { right: 5%; height: 82%; }
	.hero-slide.is-poster .hero-cap { right: 44%; padding: 16px 0 16px 18px; }
	.hero-slide.is-poster .hero-cap strong { font-size: 18px; }
	.hero-slide.is-poster .hero-blurb { -webkit-line-clamp: 2; font-size: 12px; margin-top: 4px; }
	.hero-dots { left: 16px; bottom: 12px; }
	.text-list.cols-2 { grid-template-columns: minmax(0, 1fr); }
	.news-box .text-list li:nth-child(n+7) { display: none; }

	.filter { padding: 4px 12px; }
	.filter-row { gap: 8px; padding: 6px 0; }
	.filter-label { width: 2.6em; }
	.filter-opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.filter-opts::-webkit-scrollbar { display: none; }

	.vod-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px 14px; align-items: start; padding: 16px; }
	.vod-head .vod-cover { width: 100%; grid-row: 1 / span 3; }
	.vod-head .vod-info { display: contents; }
	.vod-head .vod-info h1 { grid-column: 2; font-size: 19px; }
	.vod-info h1 .score { font-size: 16px; margin-left: 6px; }
	.vod-head .vod-info .tags, .vod-head .vod-meta { grid-column: 2; }
	.vod-meta { grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: 12px; }
	.vod-meta dt { min-width: 2.6em; }
	.vod-meta dd { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
	.vod-meta .m-hide { display: none; }
	.vod-head .vod-desc, .vod-head .vod-actions { grid-column: 1 / -1; }
	.mini-info .vod-cover { width: 84px; }
	.vod-actions .btn { flex: 1; padding: 0 10px; }
	.vod-head.topic-head { grid-template-columns: minmax(0, 1fr); }
	.vod-head.topic-head .vod-cover { grid-row: auto; width: 100%; }
	.vod-head.topic-head .vod-info h1, .vod-head.topic-head .vod-info .tags, .vod-head.topic-head .vod-meta { grid-column: 1; }

	.playlist, .cmt-box, .side-box { padding: 14px; }
	.pl-eps { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 268px; }
	.pl-eps a { height: 34px; line-height: 34px; font-size: 12px; }

	.page-play { display: flex; flex-direction: column; padding-top: 0 !important; }
	.page-play .player { order: -1; width: auto; margin: 0 calc(-1 * var(--pad)); border-radius: 0; }
	.play-hd { margin: 12px 0 10px; }
	.play-hd h1 { font-size: 17px; }
	.play-hd h1 span { font-size: 14px; }
	.play-tip { margin-left: 0; width: 100%; }
	.play-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.play-bar .btn { height: 36px; padding: 0 4px; font-size: 13px; }

	.s-item { gap: 12px; padding: 12px; }
	.s-cover { width: 96px; }
	.s-info { gap: 6px; }
	.s-info h2 { font-size: 15px; }
	.s-desc { -webkit-line-clamp: 2; font-size: 12px; }

	.board-list { padding: 2px 14px; gap: 0; }
	.board-meta { display: none; }
	.art-item { gap: 12px; padding: 12px 0; }
	.art-item .thumb { width: 116px; }
	.art-body h3 { font-size: 15px; }
	.art-body p { display: none; }
	.article { padding: 16px; }
	.article h1 { font-size: 20px; }
	.article-content { font-size: 15px; }
	.topic-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.mini-search { width: 100%; margin-left: 0; }
	.mini-search input { flex: 1; width: auto; }
	.cmt-list > li { gap: 10px; }
	.cmt-avatar { width: 32px; height: 32px; font-size: 13px; }
	.to-top { right: 12px; width: 38px; height: 38px; }
}

/* ==========================================================
   小手机（≤560px）
   ========================================================== */
@media (max-width: 560px) {
	.pager .pg-edge { display: none; }
	.pager .page_link { min-width: 34px; height: 34px; padding: 0 9px; line-height: 32px; }
	.cards-actor { --cols: 4; gap: 14px 8px; }
	.quick-links a { padding: 10px 2px; font-size: 12px; }
	.page-home .cards .card:nth-child(n+10) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   hl-12 搜索页：综合搜索（最佳匹配 + 影片 + 演员 + 资讯）
   ========================================================== */
.zs-head { display: grid; gap: 12px; padding: 20px 22px 0; }
.zs-form { display: flex; height: 46px; max-width: 640px; overflow: hidden; border: 2px solid var(--accent); border-radius: 24px; background: #fff; }
.zs-form input { flex: 1; min-width: 0; padding: 0 18px; border: 0; outline: none; color: var(--text); font: 15px var(--font); }
.zs-form button { flex: none; padding: 0 26px; border: 0; background: var(--grad); color: #fff; font-size: 15px; cursor: pointer; }
.zs-sum { color: var(--muted); font-size: 14px; }
.zs-sum strong { color: var(--accent); }
.zs-tabs { display: flex; gap: 4px; margin: 0 -22px; padding: 0 22px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.zs-tabs button { position: relative; flex: none; padding: 12px 16px; border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.zs-tabs button small { margin-left: 2px; color: var(--dim); font-size: 12px; }
.zs-tabs button.is-active { color: var(--accent); font-weight: 600; }
.zs-tabs button.is-active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); }
.zs-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 16px; }
.zs-best { grid-column: 1 / -1; display: flex; gap: 22px; padding: 18px; border: 1px solid #FFD9C7; border-radius: var(--radius); background: linear-gradient(90deg, #FFF6F1, #fff 60%); }
.zs-best .vod-cover { flex: none; width: 150px; box-shadow: 0 8px 20px rgba(255, 100, 40, .18); }
.zs-best-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.zs-badge { align-self: flex-start; padding: 1px 10px; border-radius: 3px; background: var(--grad); color: #fff; font-size: 12px; }
.zs-best-b h2 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-act { display: flex; gap: 10px; margin-top: auto; }
.page-zs mark { padding: 0 1px; border-radius: 2px; background: #FFE2D3; color: var(--accent); }
@media (max-width: 1024px) { .zs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 768px) {
	.zs-head { padding: 14px 14px 0; }
	.zs-form { height: 42px; }
	.zs-form button { padding: 0 16px; }
	.zs-tabs { margin: 0 -14px; padding: 0 14px; }
	.zs-tabs button { padding: 11px 12px; font-size: 14px; }
	.zs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
	.zs-best { gap: 12px; padding: 12px; }
	.zs-best .vod-cover { width: 96px; }
	.zs-best-b h2 { font-size: 17px; }
	.zs-best .s-desc { -webkit-line-clamp: 2; font-size: 12px; }
	.zs-best .s-line { display: none; }
	.zs-act .btn { flex: 1; padding: 0 8px; height: 36px; }
}

/* ==========================================================
   hl-37：酷黑 · 石墨深色 + 橙
   ========================================================== */
:root { --bg: #18181B; --panel: #222226; --panel-2: #2C2C31; --line: #34343A; --text: #ECECEE; --muted: #B3B3BA; --dim: #85858E; --shadow: none; color-scheme: dark; }
body { background: var(--bg); color: var(--text); }
a { color: inherit; }
.g-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); box-sizing: border-box; }
.g-main { padding-top: 16px; padding-bottom: 32px; }
.crumbs, .crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--accent); }
/* 页头 */
.g-head { position: sticky; top: 0; z-index: 60; background: #0F0F11; border-bottom: 1px solid #26262B; }
.g-head-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.g-logo { display: flex; align-items: center; gap: 8px; flex: none; color: #fff; font-size: 20px; font-weight: 800; }
.g-logo svg { width: 32px; height: 32px; }
.g-logo span { max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.g-nav::-webkit-scrollbar { display: none; }
.g-nav .nav-list { display: flex; gap: 2px; white-space: nowrap; }
.g-nav .nav-list a { display: block; padding: 0 12px; color: var(--muted); font-size: 15px; line-height: 60px; }
.g-nav .nav-list a:hover { color: #fff; }
.g-nav .nav-list .is-current a, body.pg-new .g-nav .nav-new a, body.pg-top .g-nav .nav-top a { color: var(--accent); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.g-search { display: flex; flex: 0 1 240px; min-width: 0; height: 36px; overflow: hidden; border-radius: 6px; background: #26262B; }
.g-search input { flex: 1; min-width: 0; padding: 0 12px; border: 0; background: none; color: var(--text); font: 14px var(--font); outline: none; }
.g-search input::placeholder { color: var(--dim); }
.g-search button { flex: none; width: 40px; border: 0; background: var(--accent); color: #18181B; cursor: pointer; }
.g-search button svg { width: 18px; height: 18px; }
.g-tools { position: relative; display: flex; gap: 2px; flex: none; }
.g-tool { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: var(--muted); }
.g-tool:hover { background: #26262B; color: var(--accent); }
.g-tool svg { width: 20px; height: 20px; }
.g-tools .mac_history_box { position: absolute !important; top: calc(100% + 12px) !important; right: 0 !important; left: auto !important; z-index: 9999; width: 300px !important; max-width: calc(100vw - 24px); max-height: 380px; overflow-y: auto; margin: 0; padding: 0 0 6px !important; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); text-align: left; }
.g-tools .mac_history_box dt { display: flex; justify-content: space-between; padding: 12px 16px 10px !important; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 12px; font-weight: 400; }
.g-tools .mac_history_box dt::before { content: "观看记录"; color: var(--text); font-size: 14px; }
.g-tools .mac_history_box dt a { color: var(--dim); }
.g-tools .mac_history_box dd { height: auto !important; min-height: 0 !important; margin: 0; line-height: normal !important; overflow: visible !important; border-bottom: 1px solid var(--line); }
.g-tools .mac_history_box dd:last-child { border-bottom: 0; }
.g-tools .mac_history_box dd a { display: flex !important; align-items: center; gap: 10px; padding: 11px 16px !important; color: var(--text) !important; font-size: 14px !important; line-height: 1.4 !important; }
.g-tools .mac_history_box dd a::after { content: "继续观看 ›"; flex: none; margin-left: auto; color: var(--accent); font-size: 12px; }
.g-tools .mac_history_box dd a:hover { background: var(--accent-soft); }
.g-tools .mac_history_box dd.hide { display: block; padding: 22px 16px !important; color: var(--dim); font-size: 13px; text-align: center; }
/* 页脚 */
.g-foot { margin-top: 10px; padding: 24px 0; border-top: 1px solid #26262B; background: #0F0F11; color: var(--dim); font-size: 13px; text-align: center; }
.g-foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.g-foot-nav a { color: var(--muted); }
.g-foot-nav a:hover { color: var(--accent); }
.g-foot p + p { margin-top: 6px; }
/* 通用 */
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 14px; cursor: pointer; }
.g-btn svg { width: 17px; height: 17px; }
.g-btn:hover { border-color: var(--accent); color: var(--accent); }
.g-btn.is-primary { border-color: transparent; background: var(--accent); color: #18181B; font-weight: 700; }
.g-btn.is-primary:hover { background: var(--accent-2); color: #18181B; }
.g-btn[disabled] { opacity: .5; cursor: default; }
.g-ibtn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--muted); font-size: 13px; cursor: pointer; }
.g-ibtn svg { width: 15px; height: 15px; }
.g-ibtn em { font-style: normal; }
.g-ibtn:hover { border-color: var(--accent); color: var(--accent); }
.g-linkbtn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.g-sec { margin-bottom: 30px; }
.g-box { margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.g-sec-hd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.g-sec-hd h1, .g-sec-hd h2 { padding-left: 12px; border-left: 4px solid var(--accent); color: #fff; font-size: 20px; line-height: 1.2; }
.g-sec-hd h2 a { color: inherit; }
.g-tip { color: var(--dim); font-size: 13px; }
.g-tip b { color: var(--accent); }
.g-more { margin-left: auto; color: var(--dim); font-size: 13px; }
.g-more:hover { color: var(--accent); }
.g-subs { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.g-subs::-webkit-scrollbar { display: none; }
.g-subs a { flex: none; color: var(--muted); font-size: 14px; }
.g-subs a:hover { color: var(--accent); }
.g-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; }
.g-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--text); }
.g-card .card-img { position: relative; width: 100%; border-radius: 8px; background: var(--panel-2); }
.g-rem { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 8px 5px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: var(--accent-2); font-size: 12px; font-style: normal; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-sub { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-card:hover .g-name { color: var(--accent); }
.g-links .link-list { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.g-links .link-list a { color: var(--muted); font-size: 14px; }
.g-links .link-list .muted { color: var(--dim); font-size: 13px; }
/* 首页：机场翻牌看板 */
.g-flap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; margin-bottom: 22px; padding: 24px; border-radius: 14px; background: radial-gradient(ellipse at 20% 0%, #2A2418, #141416 60%); border: 1px solid #2E2A22; }
.g-flap.is-empty { display: none; }
.g-flap-board { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.g-flap-hd { display: flex; justify-content: space-between; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 3px; }
.g-flap-hd b { font-family: Consolas, Menlo, monospace; letter-spacing: 1px; }
.g-flap-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; }
.g-flap-row small { color: var(--dim); font-size: 12px; letter-spacing: 1px; }
.g-flap-row > span { display: flex; flex-wrap: wrap; gap: 3px; min-height: 34px; }
.g-flap-row .ch { position: relative; display: inline-grid; place-items: center; min-width: 24px; height: 34px; padding: 0 3px; border-radius: 3px; background: #0B0B0C; color: #F2F2F2; font-family: "PingFang SC", "Microsoft YaHei", Consolas, monospace; font-size: 18px; font-weight: 700; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.g-flap-row .ch::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .7); }
.g-flap-row .ch.is-flip { animation: flapch .14s linear; }
@keyframes flapch { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.g-flap-row.is-name .ch { min-width: 36px; height: 50px; font-size: 28px; color: var(--accent-2); }
.g-flap-row.is-name > span { min-height: 50px; }
.g-flap-blurb { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.8; }
.g-flap-acts { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.g-flap-dots { display: flex; gap: 6px; }
.g-flap-dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: #3A3A40; cursor: pointer; }
.g-flap-dots button.is-on { background: var(--accent); }
.g-flap-pic { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: #0B0B0C; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.g-flap-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; }
.g-flap-pic img.is-on { opacity: 1; }
/* 首页：分类图标方块 */
.g-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 30px; }
.g-tiles a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); }
.g-tiles a:hover { border-color: var(--accent); }
.g-tiles i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: #2A2418; color: var(--accent); font-style: normal; }
.g-tiles i svg { width: 22px; height: 22px; }
.g-tiles b { font-size: 15px; }
.g-tiles small { margin-left: auto; color: var(--dim); font-size: 12px; white-space: nowrap; }
/* 首页：横版宽卡片 */
.g-wides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
.g-wide { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--text); }
.g-wide-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--panel-2); }
.g-wide-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .4s; }
.g-wide:hover .g-wide-pic img { transform: scale(1.05); }
.g-wide-pic em { position: absolute; right: 6px; bottom: 6px; padding: 1px 8px; border-radius: 4px; background: rgba(0, 0, 0, .75); color: var(--accent-2); font-size: 12px; font-style: normal; }
.g-wide-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-wide-b b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-wide-b small { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-wide-b > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.6; }
.g-wide:hover b { color: var(--accent); }
/* 分类页：列表 / 网格 */
.g-thead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.g-thead h1 { color: #fff; font-size: 26px; }
.g-thead .g-asearch { margin-left: auto; }
.g-view { display: flex; margin-left: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.g-view button { display: grid; place-items: center; width: 38px; height: 34px; border: 0; background: var(--panel); color: var(--dim); cursor: pointer; }
.g-view button svg { width: 18px; height: 18px; }
.g-view button.is-on { background: var(--accent); color: #18181B; }
.g-list.is-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.g-li { display: flex; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.g-li-pic { position: relative; flex: none; width: 120px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--panel-2); }
.g-li-pic img { width: 100%; height: 100%; object-fit: cover; }
.g-li-pic em { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: var(--accent-2); font-size: 11px; font-style: normal; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-li-b { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.g-li-name { color: #fff; font-size: 17px; font-weight: 700; }
.g-li-name:hover { color: var(--accent); }
.g-li-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.g-li-meta span { padding: 1px 8px; border-radius: 4px; background: var(--panel-2); color: var(--muted); font-size: 12px; }
.g-li-meta .is-score { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.g-li-cast { color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-li-blurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.7; }
.g-li-play { align-self: flex-start; height: 32px; margin-top: auto; padding: 0 14px; }
.g-list.is-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; }
.g-list.is-grid .g-li { flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; }
.g-list.is-grid .g-li-pic { width: 100%; }
.g-list.is-grid .g-li-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-list.is-grid .g-li-meta, .g-list.is-grid .g-li-blurb, .g-list.is-grid .g-li-play { display: none; }
.g-list.is-grid .g-li-cast { font-size: 12px; }
/* 筛选页：手风琴筛选 */
.g-filter { margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.g-acc-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.g-acc-btn { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); cursor: pointer; }
.g-acc-btn small { color: var(--dim); font-size: 12px; }
.g-acc-btn b { font-size: 14px; }
.g-acc-btn svg { width: 14px; height: 14px; color: var(--dim); transform: rotate(90deg); transition: transform .2s; }
.g-acc-btn.is-set { border-color: var(--accent); }
.g-acc-btn.is-set b { color: var(--accent); }
.g-acc-btn[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
.g-acc-btn[aria-expanded="true"] svg { transform: rotate(-90deg); color: var(--accent); }
.g-sort { display: flex; gap: 4px; margin-left: auto; padding: 3px; border-radius: 8px; background: var(--panel-2); }
.g-sort a { padding: 5px 12px; border-radius: 6px; color: var(--muted); font-size: 13px; }
.g-sort a.is-on { background: var(--accent); color: #18181B; font-weight: 700; }
.g-acc-panel { margin-top: 12px; padding: 14px; border-radius: 10px; background: #1B1B1E; }
.g-acc-panel[hidden] { display: none; }
.g-acc-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.g-acc-opts a { padding: 5px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 14px; }
.g-acc-opts a:hover { border-color: var(--accent); color: var(--accent); }
.g-acc-opts a.is-on { border-color: var(--accent); background: var(--accent); color: #18181B; font-weight: 700; }
/* 详情页：扫码续看 */
.g-dtop { display: grid; grid-template-columns: 220px minmax(0, 1fr) 210px; gap: 26px; margin-bottom: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.g-dcover { width: 100% !important; border-radius: 10px; }
.g-dinfo { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.g-dinfo h1 { color: #fff; font-size: 28px; line-height: 1.25; }
.g-dinfo h1 small { margin-left: 10px; color: var(--dim); font-size: 15px; font-weight: 400; }
.g-dmeta { display: flex; flex-wrap: wrap; gap: 6px; }
.g-dmeta span { padding: 2px 10px; border-radius: 4px; background: var(--panel-2); color: var(--muted); font-size: 13px; }
.g-dmeta .is-rem { background: var(--accent); color: #18181B; font-weight: 700; }
.g-dmeta .is-score { color: var(--accent-2); font-weight: 700; }
.g-dline { display: flex; gap: 10px; font-size: 14px; }
.g-dline b, .g-cast > b { flex: none; width: 3em; color: var(--dim); font-weight: 400; }
.g-dline a { display: inline-block; margin-right: 10px; }
.g-dline a:hover { color: var(--accent); }
.g-cast { display: flex; gap: 10px; font-size: 14px; }
.g-cast-row { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.g-cast-row a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 18px; background: var(--panel-2); color: var(--text); font-size: 13px; }
.g-cast-row a i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #18181B; font-size: 12px; font-style: normal; font-weight: 700; }
.g-cast-row a:hover { background: var(--accent-soft); color: var(--accent); }
.g-dblurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.8; }
.g-dacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.g-scan { display: flex; flex-direction: column; align-items: center; gap: 10px; align-self: start; padding: 16px; border: 1px dashed #4A4030; border-radius: 12px; background: #1C1A16; text-align: center; }
.g-scan[hidden] { display: none; }
.g-scan-hd { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.g-scan img { width: 150px; height: 150px; padding: 8px; border-radius: 8px; background: #fff; image-rendering: pixelated; }
.g-scan-tip { color: var(--dim); font-size: 12px; line-height: 1.6; }
.g-pl { padding: 0; background: none; box-shadow: none; }
.g-pl .pl-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.g-pl .pl-tabs { flex: 1; min-width: 0; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0; border: 0; }
.g-pl .pl-tabs::-webkit-scrollbar { display: none; }
.g-pl .pl-tab { flex: none; padding: 6px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--muted); white-space: nowrap; box-shadow: none; }
.g-pl .pl-tab.is-active { border-color: transparent; background: var(--accent); color: #18181B; font-weight: 700; }
.g-pl .pl-order { flex: none; margin: 0; white-space: nowrap; color: var(--dim); }
.g-pl .pl-eps { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: none !important; overflow: visible !important; }
.g-pl .pl-eps a { border-radius: 6px; background: var(--panel-2); color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
.g-pl .pl-eps a:hover { color: var(--accent); }
.g-pl .pl-eps a.is-active { background: var(--accent); color: #18181B; font-weight: 700; }
/* 播放页：底部常驻选集条 */
.g-player .player { border-radius: 10px; }
.g-ptitle { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 14px 0 18px; }
.g-ptitle h1 { flex: 1; min-width: 0; font-size: 21px; }
.g-ptitle h1 a { color: #fff; }
.g-ptitle h1 span { margin-left: 10px; color: var(--accent); font-size: 15px; font-weight: 500; }
.g-pacts { display: flex; flex-wrap: wrap; gap: 6px; }
.g-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid #2E2A22; background: rgba(15, 15, 17, .96); backdrop-filter: blur(8px); }
.g-dock[hidden] { display: none; }
.g-dock-in { display: flex; align-items: center; gap: 10px; height: 64px; }
.g-dock-name { flex: none; display: flex; flex-direction: column; max-width: 180px; min-width: 0; }
.g-dock-name b { color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-dock-name small { color: var(--accent); font-size: 12px; }
.g-dock-btn { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); color: var(--text); }
.g-dock-btn svg { width: 18px; height: 18px; }
.g-dock-btn:hover { background: var(--accent); color: #18181B; }
.g-dock-btn.is-none { opacity: .3; pointer-events: none; }
.g-dock-track { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.g-dock-track::-webkit-scrollbar { display: none; }
.g-dock-track a { flex: none; padding: 8px 12px; border-radius: 6px; background: var(--panel-2); color: var(--muted); font-size: 13px; white-space: nowrap; }
.g-dock-track a:hover { color: var(--accent); }
.g-dock-track a.is-active { background: var(--accent); color: #18181B; font-weight: 700; }
body.has-dock { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
body.has-dock .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
/* 搜索：加载更多 */
.g-shd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.g-shd h1 { color: #fff; font-size: 23px; word-break: break-all; }
.g-shd strong, .g-shd b { color: var(--accent); }
.g-shd span { color: var(--dim); font-size: 14px; }
.g-loadmore { margin: 26px 0 10px; text-align: center; }
.g-loadmore[hidden] { display: none; }
.g-loadmore .g-btn { min-width: 220px; }
.g-paging-src { display: none; }
.page-search mark { padding: 0 1px; background: var(--accent-soft); color: var(--accent); }
.g-grid .card.is-new { animation: moreIn .5s both; }
@keyframes moreIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* 最近更新：天 × 分类 热度表 */
.g-heat-wrap { overflow-x: auto; }
.g-heat-t { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 4px; }
.g-heat-t th { padding: 6px 8px; color: var(--muted); font-size: 13px; font-weight: 500; text-align: center; white-space: nowrap; }
.g-heat-t thead th small { display: block; color: var(--dim); font-size: 11px; }
.g-heat-t tbody th { text-align: left; color: var(--text); }
.g-heat-t td { padding: 0; }
.g-heat-t td button { display: block; width: 100%; height: 38px; border: 0; border-radius: 6px; background: rgba(240, 140, 0, var(--a, .06)); color: #fff; font: 700 13px var(--font); cursor: pointer; }
.g-heat-t td button.is-zero { color: #4A4A52; cursor: default; }
.g-heat-t td button.is-on { box-shadow: 0 0 0 2px #fff inset; }
.g-heat-sel { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.g-heat-sel b { color: #fff; font-size: 16px; }
.g-heat-sel span { color: var(--dim); font-size: 13px; }
.g-heat-sel .g-linkbtn { margin-left: auto; font-size: 13px; }
.g-nlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
.g-nlist li[hidden] { display: none; }
.g-nlist li a { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); }
.g-nlist li a:hover { border-color: var(--accent); }
.g-ni-pic { flex: none; width: 46px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--panel-2); }
.g-ni-pic img { width: 100%; height: 100%; object-fit: cover; }
.g-ni-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-ni-b b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ni-b em { color: var(--accent); font-size: 12px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ni-b small { color: var(--dim); font-size: 12px; }
/* 排行：金字塔 */
.g-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.g-seg .tab { padding: 6px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); font-size: 14px; cursor: pointer; box-shadow: none; }
.g-seg .tab.is-active { border-color: transparent; background: var(--accent); color: #18181B; font-weight: 700; }
.g-pyr { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.g-pyr-row { display: flex; justify-content: center; gap: 16px; width: 100%; }
.g-pyr-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: var(--w, 150px); min-width: 0; color: var(--text); text-align: center; }
.g-pyr-item .card-img { position: relative; width: 100%; border-radius: 10px; background: var(--panel-2); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.g-pyr-item > i { position: absolute; left: 50%; top: -12px; z-index: 3; min-width: 30px; padding: 2px 8px; border-radius: 14px; background: #3A3A40; color: #fff; font-size: 13px; font-style: normal; font-weight: 800; transform: translateX(-50%); }
.g-pyr-row:nth-child(1) .g-pyr-item > i { background: linear-gradient(135deg, #FFD54F, #F08C00); color: #18181B; font-size: 16px; }
.g-pyr-row:nth-child(2) .g-pyr-item > i { background: var(--accent); color: #18181B; }
.g-pyr-item b { max-width: 100%; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-pyr-row:nth-child(1) .g-pyr-item b { font-size: 17px; color: var(--accent-2); }
.g-pyr-item em { color: var(--dim); font-size: 12px; font-style: normal; }
.g-pyr-item:hover b { color: var(--accent); }
/* 明星：S/A/B/C 等级 */
.g-asearch { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.g-asearch input { width: 180px; height: 34px; padding: 0 12px; border: 0; background: none; color: var(--text); font: 14px var(--font); outline: none; }
.g-asearch button { padding: 0 14px; border: 0; background: var(--accent); color: #18181B; cursor: pointer; }
.g-tierlegend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 16px; color: var(--dim); font-size: 12px; }
.g-tierlegend i { margin-left: 8px; }
.g-tier, .g-tierlegend i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font-size: 13px; font-style: normal; font-weight: 900; }
.t-s, .g-tier.t-s { background: linear-gradient(135deg, #FFD54F, #F08C00); color: #18181B; }
.t-a, .g-tier.t-a { background: #E05A47; color: #fff; }
.t-b, .g-tier.t-b { background: #4A7BD0; color: #fff; }
.t-c, .g-tier.t-c { background: #4A4A52; color: #ddd; }
.g-faces { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; }
.g-face { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; color: var(--text); text-align: center; }
.g-face-pic { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--panel-2); }
.g-face-pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.g-face .g-tier { position: absolute; right: 4%; bottom: 4%; width: 30px; height: 30px; border: 3px solid var(--bg); border-radius: 50%; font-size: 14px; }
.g-face b { max-width: 100%; margin-top: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-face small { color: var(--dim); font-size: 12px; }
.g-face:hover b { color: var(--accent); }
.g-acard { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
.g-acard-pic { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--panel-2); }
.g-acard-pic img { width: 100%; height: 100%; object-fit: cover; }
.g-acard-b { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.g-acard-b h1 { color: #fff; font-size: 26px; }
.g-acard-b h1 small { margin-left: 10px; color: var(--dim); font-size: 14px; font-weight: 400; }
.g-adl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 14px; }
.g-adl div { display: flex; gap: 10px; min-width: 0; }
.g-adl dt { flex: none; width: 3.5em; color: var(--dim); }
.g-adl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.g-wstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.g-wstats > div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.g-wstats small { display: block; color: var(--dim); font-size: 12px; }
.g-wstats b { display: block; margin: 4px 0 2px; color: var(--accent); font-size: 28px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-wstats span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-wstats > div:nth-child(4) b { color: #fff; font-size: 18px; margin-top: 8px; }
/* 下载页 */
.g-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
.g-dl-b { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.g-dl-b h1 { color: #fff; font-size: 24px; }
.g-dl-b h1 span { color: var(--accent); font-size: 17px; }
.g-dl-addr { display: flex; gap: 10px; }
.g-dl-addr input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--text); font: 14px var(--font); }
.g-dl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.toast04 { position: fixed; left: 50%; bottom: 100px; z-index: 300; transform: translateX(-50%); padding: 10px 20px; border-radius: 20px; background: var(--accent); color: #18181B; font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ---------- 自适应 ---------- */
@media (max-width: 1100px) {
	.g-grid, .g-faces, .g-list.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.g-wides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g-dtop { grid-template-columns: 200px minmax(0, 1fr); }
	.g-scan { grid-column: 1 / -1; flex-direction: row; justify-content: center; flex-wrap: wrap; text-align: left; }
	.g-scan img { width: 110px; height: 110px; }
	.g-list.is-list { grid-template-columns: minmax(0, 1fr); }
	.g-nlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g-wstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.g-nav { order: 4; flex-basis: 100%; }
	.g-head-in { flex-wrap: wrap; height: auto; padding-top: 8px; row-gap: 0; }
	.g-nav .nav-list a { line-height: 42px; }
	.g-search { flex: 1 1 0; margin-left: auto; }
}
@media (max-width: 768px) {
	.g-logo { font-size: 17px; }
	.g-logo svg { width: 28px; height: 28px; }
	.g-main { padding-top: 12px; }
	.g-grid, .g-faces, .g-list.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
	.g-name { font-size: 13px; }
	.g-sec-hd h2 { font-size: 18px; }
	.g-sec-hd .g-subs { order: 3; flex-basis: 100%; }
	.g-flap { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 14px; }
	.g-flap-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.g-flap-row small { display: none; }
	.g-flap-row .ch { min-width: 18px; height: 26px; font-size: 14px; }
	.g-flap-row.is-name .ch { min-width: 24px; height: 34px; font-size: 19px; }
	.g-flap-row.is-name > span { min-height: 34px; }
	.g-flap-row:not(.is-name):nth-of-type(n+4) { display: none; }
	.g-flap-blurb { display: none; }
	.g-flap-acts { flex-wrap: wrap; gap: 10px; }
	.g-flap-acts .g-btn { height: 34px; padding: 0 14px; }
	.g-flap-pic { align-self: start; }
	.g-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.g-tiles a { flex-direction: column; gap: 6px; padding: 10px 6px; text-align: center; }
	.g-tiles small { margin-left: 0; }
	.g-wides { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.g-wide { flex-direction: row; gap: 12px; }
	.g-wide-pic { flex: none; width: 46%; }
	.g-wide-b > span { -webkit-line-clamp: 3; }
	.g-thead h1 { font-size: 22px; }
	.g-thead .g-subs { order: 3; flex-basis: 100%; }
	.g-li { gap: 12px; padding: 10px; }
	.g-li-pic { width: 92px; }
	.g-li-blurb { -webkit-line-clamp: 2; }
	.g-acc-btn { flex: 1 1 calc(50% - 8px); justify-content: space-between; }
	.g-sort { margin-left: 0; width: 100%; justify-content: center; }
	.g-dtop { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px; }
	.g-dinfo { display: contents; }
	.g-dinfo h1 { grid-column: 2; font-size: 20px; align-self: start; }
	.g-dcover { grid-row: 1 / span 2; align-self: start; }
	.g-dmeta { grid-column: 2; align-self: start; }
	.g-dline, .g-cast, .g-dblurb, .g-dacts { grid-column: 1 / -1; }
	.g-dacts .is-primary { flex: 1 1 100%; }
	.g-scan { display: none; }
	.g-pl .pl-eps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.page-play .g-player { margin: 0 calc(-1 * var(--pad)); }
	.page-play .g-player .player { border-radius: 0; margin: 0; }
	.g-ptitle h1 { flex-basis: 100%; font-size: 17px; }
	.g-pacts { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.g-pacts .g-ibtn { justify-content: center; padding: 0 6px; }
	.g-dock-in { gap: 6px; height: 58px; }
	.g-dock-name { display: none; }
	.g-nlist { grid-template-columns: minmax(0, 1fr); }
	.g-pyr { gap: 18px; }
	.g-pyr-row { gap: 8px; }
	.g-asearch { width: 100%; margin-left: 0 !important; }
	.g-asearch input { flex: 1; width: auto; }
	.g-acard { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
	.g-acard-b h1 { font-size: 21px; }
	.g-acard-b h1 small { display: block; margin: 2px 0 0; }
	.g-adl { grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: 13px; }
	.g-wstats b { font-size: 22px; }
	.g-dl { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
	.g-dl-addr { flex-direction: column; grid-column: 1 / -1; }
	.g-dl-addr input { flex: none; width: 100%; }
	.g-dl-acts { grid-column: 1 / -1; }
}
/* 翻牌看板标题：单行显示，手机上收短 */
.g-flap-hd { gap: 10px; }
.g-flap-hd span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-flap-hd b { flex: none; }
@media (max-width: 768px) { .g-flap-hd { font-size: 11px; letter-spacing: 1px; } }
/* 分类图标方块：名称不换行 */
.g-tiles b { white-space: nowrap; }
.g-tiles small { flex: none; }
@media (min-width: 769px) { .g-tiles a { gap: 10px; padding: 14px 12px; } }
@media (min-width: 769px) and (max-width: 1100px) { .g-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
