/* ============================================================
   黑果AI — 整站覆盖层
   目标：普通、干净、内容优先。只有黑白灰 + 一个大搜索框。
   规则：不动 PHP，只用 CSS 隐藏与重排；删掉本文件必须能退回模板原样。
   ============================================================ */

:root {
	--bg: #121212;
	--surface: #191919;
	--surface-2: #202020;
	--line: #2b2b2b;
	--ink: #ececec;
	--muted: #9a9a9a;
	--dim: #6b6b6b;
	--radius: 3px;
	--accent: #a678ff;
	--max: 1320px;

	/* 兼容旧页面用到的变量名 */
	--hg-bg: var(--bg);
	--hg-surface: var(--surface);
	--hg-surface-2: var(--surface-2);
	--hg-line: var(--line);
	--hg-line-strong: #3a3a3a;
	--hg-ink: var(--ink);
	--hg-muted: var(--muted);
	--hg-dim: var(--dim);
	--hg-accent: #a678ff;
	--hg-accent-ink: #111;
	--hg-radius: var(--radius);
	--hg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html { background: var(--bg); color-scheme: dark; }
body {
	background: var(--bg) !important;
	color: var(--ink) !important;
	font-family: var(--hg-font) !important;
	font-size: 14px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { background: var(--surface-2); }
::selection { background: #fff; color: #111; }
* { scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }

h1, h2, h3, h4 { font-weight: 600 !important; letter-spacing: 0; color: var(--ink); }
h1 { font-size: 22px; }
h2 { font-size: 18px; }

.w1200 { max-width: var(--max) !important; margin: 0 auto; padding: 0 18px; }
.uk-container, .uk-container-center { padding: 0; }

/* 干掉模板的花活：发光、阴影、渐变、圆角 */
* { box-shadow: none !important; text-shadow: none !important; }
img, .video-pic, .uk-panel, .uk-card { border-radius: var(--radius) !important; }
body > .bg, .bg-img, .banner-bg { display: none !important; }

/* ------------------------------------------------ 顶部：logo + 导航 + 搜索 */
.hg-head {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 14px 0;
	flex-wrap: wrap;
}
.hg-logo { flex: 0 0 auto; display: block; }
.hg-logo img { height: 26px; width: auto; display: block; }
.hg-nav { display: flex; gap: 20px; font-size: 14px; white-space: nowrap; overflow-x: auto; }
.hg-nav a { color: #c9c9c9; }
.hg-nav a:hover { color: #fff; }
.hg-search { display: flex; gap: 8px; margin-left: auto; flex: 1 1 260px; max-width: 380px; }
.hg-rule-line { height: 1px; background: var(--line); margin-bottom: 4px; }

/* 旧的左侧导航结构（保留兼容） */
.left-nav { display: none !important; }

/* ------------------------------------------------ 搜索 */
.right-content { float: none !important; width: 100% !important; }
.right-content > .uk-clearfix { display: block; padding: 22px 0 6px; }
.search { float: none !important; max-width: 620px; }
.search form { display: flex; gap: 8px; }
.search-input {
	flex: 1;
	height: 44px !important;
	padding: 0 14px !important;
	background: var(--surface) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	color: var(--ink) !important;
	font-size: 14px !important;
}
.search-input:focus { outline: 0; border-color: #5a5a5a !important; background: #1d1d1d !important; }
.search-input::placeholder { color: var(--dim) !important; }
.search button {
	height: 44px;
	min-width: 88px;
	background: var(--accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--radius) !important;
	font-size: 14px;
	cursor: pointer;
}
.search button:hover { background: #b98cff !important; }
.search button .icon { font-size: 15px; }

/* 藏掉提示、收藏按钮 */
.h-tip, .icon-shoucang { display: none !important; }

/* 藏掉广告位与分割线 */
.right-content > .line, .right-content > li { display: none !important; }

/* ------------------------------------------------ 列表 */
.list-videos { margin: 18px 0 34px !important; }
.video-head { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 14px; }
.video-head h3, .h3-color { font-size: 15px !important; color: var(--ink) !important; font-weight: 600 !important; }

.video-content > div { width: 20% !important; margin-bottom: 20px !important; }
@media (max-width: 1100px) { .video-content > div { width: 25% !important; } }
@media (max-width: 820px)  { .video-content > div { width: 33.33% !important; } }
@media (max-width: 560px)  { .video-content > div { width: 50% !important; } }

.video-pic {
	position: relative;
	display: block !important;
	border: 0 !important;
	border-radius: var(--radius) !important;
	overflow: hidden;
	background: var(--surface-2) !important;
}
.video-pic img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.video-pic::after { display: none; }
.video-pic:hover img { opacity: .82; }
.live-tag { display: none; }

.video-title { padding-top: 7px; }
.video-title a {
	color: var(--ink) !important;
	font-size: 13px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.video-title a:hover { color: #fff !important; }
.video-play, .video-like, .video-title p { display: none !important; }

/* 友链整块 */
.list-videos:has(.links-list) { display: none; }

/* ------------------------------------------------ 分页 */
#wr-page, .uk-pagination { text-align: center; margin: 10px 0 40px; }
.uk-pagination > li > a, #wr-page a, .wrpage {
	display: inline-block;
	margin: 0 3px;
	padding: 7px 12px;
	background: transparent !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	color: var(--muted) !important;
	font-size: 13px;
}
.uk-pagination > li > a:hover, .uk-pagination .uk-active > a,
#wr-page a.on, .wrpage:hover, .curwrpage {
	background: var(--accent) !important;
	border-color: var(--accent) !important;
	color: #fff !important;
}
.wr_dotted { color: var(--dim) !important; background: transparent !important; border: 0 !important; }

/* ------------------------------------------------ 详情页 */
.right-container { padding-bottom: 40px; }
.video-detail, .detail { color: var(--ink); }
.detail h1, .vod-info h1 { font-size: 20px; margin-bottom: 10px; }
.detail .desc, [class*="desc"] { color: var(--muted) !important; font-size: 13px; line-height: 1.8; }

.btn, .play-btn, .detail .btn {
	display: inline-block;
	padding: 10px 20px;
	background: var(--accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--radius) !important;
}
.btn:hover { background: #b98cff !important; color: #fff !important; }

.player, .play-box, #player { background: #000; border-radius: var(--radius); overflow: hidden; }
.player video, #player video { width: 100%; display: block; }

/* ------------------------------------------------ 页脚 */
.footer, .uk-footer, footer {
	border-top: 1px solid var(--line);
	margin-top: 40px;
	padding: 22px 0 40px;
	color: var(--dim) !important;
	font-size: 12px;
	line-height: 1.9;
}
.footer a, .uk-footer a { color: var(--muted); }
.footer a:hover { color: #fff; }

/* ------------------------------------------------ 去掉模板白底卡片 */
.w1200, .right-content, .right-container, .list-videos,
.uk-grid, .video-content, #wr-page, .search, .search form,
.footer, footer {
	background: transparent !important;
}
.w1200, .right-content, .right-container { background: var(--bg) !important; }
.uk-grid > * { background: transparent !important; }

/* 搜索框压掉模板的胶囊样式 */
.search { border: 0 !important; border-radius: 0 !important; padding: 0 !important; }
.search form { border-radius: 0 !important; }
.search input, .search-input {
	height: 44px !important;
	padding: 0 14px !important;
	background: var(--surface) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	color: var(--ink) !important;
	font-size: 14px !important;
}
.search input:focus { border-color: #5a5a5a !important; }

.video-title a { color: #dddddd !important; }

/* 右下下载角标改素色 */
.hg-dl {
	background: var(--accent) !important;
	color: #fff !important;
	border-radius: var(--radius) !important;
	box-shadow: none !important;
	font-weight: 600 !important;
}
.hg-dl:hover { filter: none !important; background: #b98cff !important; }

/* ------------------------------------------------ 移动端 */
@media (max-width: 720px) {
	.w1200 { padding: 0 12px; }
	.left-nav { gap: 12px; padding: 10px 0; }
	.left-nav > div[data-uk-accordion], .uk-nav-sub { gap: 12px; }
	.logo img { height: 22px; }
	.right-content > .uk-clearfix { padding: 14px 0 4px; }
	.search { max-width: 100%; }
	.search button { min-width: 64px; }
	.search button .icon { font-size: 14px; }
	h1 { font-size: 18px; }
}
