/* 爱看：左侧分类常驻，封面底部压标题，像一间暗场影院。 */
html { -webkit-text-size-adjust: 100%; }
html, body {
	background: #070b12;
	color: #e7edf5;
	font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a, button { touch-action: manipulation; }
body { min-width: 320px; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.max { width: auto; max-width: 1280px; margin: 0 auto; padding: 0 18px; }
.content, .vod-details-container, .card, .card-content, .vod-info { background: transparent; box-shadow: none; border: 0; }
.also:not(:has(a)) { display: none; }

.site-head {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(7, 11, 18, 0.94);
	border-bottom: 1px solid rgba(232, 177, 90, 0.16);
	backdrop-filter: blur(10px);
}
.head-bar { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.logo-mobile {
	flex: 0 0 auto;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #e8b15a;
}
.header-search { flex: 1; }
.soso {
	display: flex;
	align-items: stretch;
	height: 40px;
	border-radius: 4px;
	overflow: hidden;
	background: #121924;
	border: 1px solid rgba(232, 177, 90, 0.35);
}
.soso input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	font-size: 14px;
	padding: 0 14px;
}
.soso input::placeholder { color: #8b97a8; }
.searchBtn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0 14px;
	border: 0;
	background: #e8b15a;
	color: #1a1408;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.searchBtn svg { width: 16px; height: 16px; fill: #1a1408; }

.rail {
	background: #0c121b;
}
.rail-logo {
	display: none;
	padding: 6px 12px 16px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 3px;
	color: #e8b15a;
}
.cat-row { display: flex; }
.cat {
	color: #c5d0de;
	font-size: 14px;
	white-space: nowrap;
}
.cat:hover, .cat.is-on { color: #1a1408; background: #e8b15a; }
#linksNav { max-width: 1280px; margin: 12px auto 0; padding: 0 18px; }
#linksNav .max { max-width: none; width: auto; margin: 0; padding: 0; }
#linksNav .max.flex { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
#linksNav .item a { border-radius: 4px; font-size: 13px; }

.hot-keys:not(:has(a)) { display: none; }
.hot-keys { max-width: 1280px; margin: 0 auto; padding: 12px 18px 2px; background: transparent; border: 0; }
.hot-keys .hot-wrap { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.hot-keys .hot-wrap::-webkit-scrollbar { display: none; }
.hot-keys .hot-chip { flex: 0 0 auto; }
.hot-keys .hot-chip {
	width: auto;
	min-width: 0;
	height: 28px;
	padding: 0 10px;
	border-radius: 2px;
	border: 1px solid rgba(232, 177, 90, 0.28);
	background: transparent;
	color: #d7deea;
	font-size: 13px;
	line-height: 26px;
	box-shadow: none;
}
.hot-keys .hot-chip:nth-child(4n + 2) { color: #e8b15a; border-color: rgba(232, 177, 90, 0.55); }
.hot-keys .hot-chip:nth-child(4n) { background: #e8b15a; border-color: #e8b15a; color: #1a1408; }
.hot-keys .hot-chip:hover { background: #e8b15a; border-color: #e8b15a; color: #1a1408; }

.app-promo:not(:has(a)) { display: none; }
.app-promo { max-width: 1280px; margin: 8px auto 0; padding: 0 18px; }
.app-row {
	display: inline-flex;
	gap: 16px;
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	background: #121924;
	border: 1px solid rgba(232, 177, 90, 0.22);
	border-radius: 8px;
	padding: 10px 16px 8px;
}
.app-row::-webkit-scrollbar { display: none; }
.app-item {
	flex: 0 0 64px;
	width: 64px;
	text-align: center;
	color: #f4e2c0;
}
.app-icon {
	display: block;
	width: 48px;
	height: 48px;
	margin: 0 auto 6px;
	border-radius: 12px;
	object-fit: cover;
	background: #0c1118;
	box-shadow: 0 0 0 1px rgba(232, 177, 90, 0.2);
}
.app-item span {
	display: block;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #d7deea;
}

.ad-container { max-width: 1280px; margin: 8px auto; padding: 0 18px; text-align: center; }
.ad-item { margin: 6px 0; }
.ad-link { display: block; }
.ad-image { width: 100%; max-width: 1000px; height: auto; min-height: 60px; display: block; margin: 0 auto; object-fit: contain; }
img.ad-image[src^="data:image"], img.ad-image.image-loading, img.ad-image.image-error { width: auto; max-width: 220px; height: 56px; min-height: 0; }

.page-head { padding: 18px 0 4px; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 600; color: #f4e2c0; }

.video_box { margin: 4px 0 20px; }
.video_box .title {
	display: flex;
	align-items: center;
	margin: 16px 0 12px;
	padding: 0;
	background: transparent;
	border-radius: 0;
	color: #f4e2c0;
}
.video_box .title h6 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: 0.08em; }
.video-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; margin: 0; }
.video-box .video-item { position: relative; display: block; width: auto; min-width: 0; flex: none; padding: 0; }
.video-item .img-box { position: relative; height: auto; aspect-ratio: 16 / 9; border-radius: 2px; overflow: hidden; background: #141b27; }
.video-item .img-box img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.video-item:hover .img-box img { transform: scale(1.04); filter: brightness(1.08); }
.video-item .txt-ellipsis-2 {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	min-height: 0;
	padding: 28px 8px 8px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
	color: #fff;
	font-size: 13px;
	line-height: 1.35;
	pointer-events: none;
}
.video-item .txt-ellipsis-2 a, .video-item .txt-ellipsis-2 h3 { color: #fff; font-size: inherit; font-weight: 500; line-height: inherit; margin: 0; pointer-events: auto; }

#titleH { margin: 12px 0 12px; font-size: 20px; font-weight: 600; line-height: 1.45; color: #f7f4ee; }
.plaryer-wrapper {
	position: relative;
	width: min(100%, calc(72vh * 16 / 9));
	margin: 0 auto 18px;
	aspect-ratio: 16 / 9;
	height: auto;
	background: #000;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.plaryer-wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.also { margin: 6px 0 20px; }
.also h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: #f4e2c0; letter-spacing: 0.06em; }
.also-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.also-list a { display: block; overflow: hidden; color: #c5d0de; font-size: 13px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.also-list a::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 8px; border-radius: 50%; background: #e8b15a; vertical-align: 2px; }
.also-list a:hover { color: #e8b15a; }

.pagina { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 8px; }
.pagina a, .pagina strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 34px;
	padding: 0 10px;
	border-radius: 2px;
	background: #121924;
	color: #d5deea;
	border: 1px solid rgba(255, 255, 255, 0.06);
	text-shadow: none;
	box-shadow: none;
}
.pagina strong, .pagina a:hover { background: #e8b15a; border-color: #e8b15a; color: #1a1408; transform: none; }
.pagina span { color: #8b97a8; padding: 0 2px; }

#friendLinks { max-width: 1280px; margin: 16px auto 0; padding: 0 18px; }
.footer-container { max-width: 1280px; margin: 28px auto 0; padding: 22px 18px 32px; background: transparent; border-top: 1px solid rgba(232, 177, 90, 0.16); }
.footer-content { text-align: center; }
.footer-text { max-width: 640px; margin: 0 auto; color: #93a0b3; font-size: 13px; line-height: 1.8; }
.footer-desc { margin: 0 0 8px; color: #d5deea; }
.footer-email { margin: 0 0 8px; color: #e8b15a; font-size: 13px; }
.footer-email a { color: inherit; }
.footer-note { margin: 0 0 6px; color: #6d7b8e; font-size: 12px; }
.footer-copyright { margin: 0; color: #6d7b8e; font-size: 12px; }

@media (min-width: 960px) {
	body { padding-left: 208px; }
	.logo-mobile { display: none; }
	.rail {
		position: fixed;
		z-index: 40;
		top: 0;
		left: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		width: 208px;
		overflow: auto;
		border-right: 1px solid rgba(232, 177, 90, 0.16);
		padding: 18px 10px 28px;
	}
	.rail-logo { display: block; }
	.cat-row { flex-direction: column; gap: 2px; }
	.cat { display: block; padding: 8px 12px; border-radius: 4px; }
	.head-bar { min-height: 68px; }
	.header-search { max-width: 640px; }
}
@media (hover: none) {
	.video-item:hover .img-box img { transform: none; filter: none; }
}
@media (max-width: 959px) {
	.site-head { padding-top: env(safe-area-inset-top); }
	.head-bar { height: 52px; min-height: 52px; }
	.soso { height: 40px; }
	.soso input { font-size: 16px; }
	.rail {
		position: sticky;
		top: calc(52px + env(safe-area-inset-top));
		z-index: 25;
		border-bottom: 1px solid rgba(232, 177, 90, 0.16);
	}
	.cat-row, #linksNav .max.flex, .hot-keys .hot-wrap, .app-row {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.cat-row::-webkit-scrollbar, #linksNav .max.flex::-webkit-scrollbar, .hot-keys .hot-wrap::-webkit-scrollbar, .app-row::-webkit-scrollbar { display: none; }
	.cat-row { gap: 8px; padding: 8px 10px; }
	.cat { flex: 0 0 auto; height: 36px; padding: 0 12px; border-radius: 2px; background: #121924; line-height: 36px; }
	#linksNav .item { flex: 0 0 auto; }
	.hot-keys .hot-chip { flex: 0 0 auto; height: 34px; line-height: 32px; }
}
@media (max-width: 1200px) {
	.video-box { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.max, .hot-keys, #linksNav, .ad-container, .app-promo, #friendLinks, .footer-container { padding-left: 10px; padding-right: 10px; }
	.app-item { flex-basis: 64px; width: 64px; }
	.app-icon { width: 48px; height: 48px; border-radius: 12px; }
	.searchBtn { padding: 0 12px; }
	.logo-mobile { font-size: 20px; letter-spacing: 1px; }
	.video-box { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
	.video-item .txt-ellipsis-2 {
		position: static;
		padding: 6px 2px 0;
		background: none;
		color: #e7edf5;
		pointer-events: auto;
		min-height: 2.6em;
		font-size: 13px;
	}
	.video-item .txt-ellipsis-2 a, .video-item .txt-ellipsis-2 h3 { color: #e7edf5; }
	.page-head { padding-top: 12px; }
	.page-head h1, .video_box .title h6, #titleH { font-size: 16px; }
	.also-list { grid-template-columns: 1fr; }
	.pagina { gap: 8px; margin: 16px 0; }
	.pagina a, .pagina strong { min-width: 36px; height: 40px; padding: 0 10px; font-size: 14px; }
	.footer-container { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
