:root {
	--bg: #f5f5f5;
	--panel: #ffffff;
	--chip: #e2e2e2;
	--chip-hover: #d4d4d4;
	--border: #cdcdcd;
	--line: #e0e0e0;
	--text: #222222;
	--text-2: #767676;
	--accent: #e34449;
	--nav: #2d2d2d;
	--ad: #e8e8e8;
	--gold: #f7b500;
	--live: #ff3b30;
	--maxw: 1600px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #121212;
	--panel: #1c1c1c;
	--chip: #2e2e2e;
	--chip-hover: #3a3a3a;
	--border: #3d3d3d;
	--line: #2c2c2c;
	--text: #eeeeee;
	--text-2: #9a9a9a;
	--nav: #000000;
	--ad: #1a1a1a;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-width: 320px;
	background: var(--bg);
	color: var(--text);
	font: 14px/1.4 Arial, "Helvetica Neue", Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1em; height: 1em; flex: none; fill: currentColor; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 10px; }

.hdr { position: sticky; top: 0; z-index: 30; background: var(--panel); }
.hdr-in {
	position: relative;
	display: flex; align-items: center;
	max-width: var(--maxw); height: 52px;
	margin: 0 auto; padding: 0 2px 0 8px;
}

.logo { display: inline-flex; align-items: center; margin-right: auto; color: var(--text); }
.logo-m { width: 40px; height: 40px; flex: none; margin-right: 5px; }
.logo-w { height: 20px; width: auto; }

.hbtn {
	display: grid; place-items: center;
	width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%;
	background: none; cursor: pointer; color: var(--text);
}
.hbtn .ic { font-size: 28px; }
.hbtn:active { background: var(--chip); }

.sbox {
	display: none;
	position: absolute; top: 100%; left: 0; right: 0;
	margin: 0; padding: 8px 10px 12px;
	background: var(--panel);
	box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
}
.s-open .sbox { display: block; }
.sfield {
	display: flex; height: 40px;
	border: 1px solid var(--border); border-radius: 4px;
	background: var(--panel); overflow: hidden;
}
.sfield input {
	flex: 1; min-width: 0; height: 100%;
	padding: 0 12px; border: 0; outline: 0;
	background: none; font-size: 16px;
	-webkit-appearance: none; appearance: none;
}
.sfield input::placeholder { color: var(--text-2); }
.sfield button {
	width: 46px; border: 0;
	background: var(--chip); color: var(--text); cursor: pointer;
}
.sfield button .ic { font-size: 22px; }
.sgs-h {
	margin: 12px 2px 6px;
	font-size: 12px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .4px;
	color: var(--text-2);
}
.sgs-h:has(+ .sgs-list:empty), .sgs-h:has(+ .tags:empty) { display: none; }
.sgs-list a {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 4px; font-size: 15px;
}
.sgs-list .ic { font-size: 18px; color: var(--text-2); }

.qnav { background: var(--nav); }
.qnav-in {
	display: flex; align-items: center; gap: 18px;
	max-width: var(--maxw); height: 36px;
	margin: 0 auto; padding: 0 10px;
	overflow-x: auto; scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.qnav-in::-webkit-scrollbar { display: none; }
.qnav a {
	display: inline-flex; align-items: center; gap: 6px; flex: none;
	font-size: 14px; color: #fff;
	white-space: nowrap; text-transform: capitalize;
}
.qnav em { font-style: normal; color: var(--gold); }
.qnav .ic { font-size: 18px; }
.c-hot { color: var(--live); }
.c-top { color: var(--gold); }

.drawer {
	position: fixed; top: 0; right: 0; bottom: 0; left: auto;
	width: 300px; max-width: 86vw;
	height: 100%; max-height: none;
	margin: 0; padding: 0; border: 0;
	background: var(--panel); color: var(--text);
}
.drawer::backdrop { background: rgba(0, 0, 0, .5); }
.drawer[open] { animation: dr-in .2s ease-out; }
@keyframes dr-in { from { transform: translateX(100%); } }
html:has(.drawer[open]) { overflow: hidden; }
.dr-in { height: 100%; overflow-y: auto; padding-bottom: 20px; }
.dr-top {
	display: flex; align-items: center; justify-content: space-between;
	height: 52px; padding: 0 2px 0 10px;
	border-bottom: 1px solid var(--line);
}
.dr-top .logo { margin: 0; }
.dr-nav { padding: 6px 0; border-bottom: 1px solid var(--line); }
.dr-nav a, .dr-theme {
	display: flex; align-items: center; gap: 14px;
	width: 100%; padding: 11px 16px;
	font-size: 15px; font-weight: 700;
}
.dr-nav .ic, .dr-theme .ic { font-size: 22px; }
.dr-h {
	padding: 14px 16px 6px;
	font-size: 12px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .4px;
	color: var(--text-2);
}
.dr-h:has(+ .dr-cats:empty) { display: none; }
.dr-cats a {
	display: flex; justify-content: space-between; gap: 10px;
	padding: 9px 16px; font-size: 15px;
	text-transform: capitalize;
}
.dr-cats span { font-size: 13px; color: var(--text-2); }
.dr-theme {
	margin-top: 8px;
	border: 0; border-top: 1px solid var(--line);
	background: none; cursor: pointer; text-align: left;
}
.sw {
	position: relative;
	width: 36px; height: 20px; margin-left: auto;
	border-radius: 10px; background: var(--border);
}
.sw::after {
	content: "";
	position: absolute; top: 2px; left: 2px;
	width: 16px; height: 16px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
	transition: transform .15s;
}
[data-theme="dark"] .sw { background: var(--accent); }
[data-theme="dark"] .sw::after { transform: translateX(16px); }

.spot { display: flex; justify-content: center; max-width: 100%; margin: 10px auto; }
.spot:empty { display: none; }
.spot-top { margin: 0; padding: 10px 0; background: var(--ad); }
.spot-grid { grid-column: 1 / -1; margin: 2px 0; }

.sec-head { margin: 14px 0 10px; }
.sec-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.sec-sub { display: inline-block; font-size: 13px; font-weight: 400; color: var(--text-2); }
.sec-sub a { text-decoration: underline; }
.sec-more { font-size: 14px; font-weight: 700; color: var(--accent); }
.blk .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.sorts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sort {
	display: inline-flex; align-items: center; gap: 5px; flex: none;
	height: 28px; padding: 0 10px;
	border: 1px solid var(--border); border-radius: 4px;
	background: var(--panel);
	font-size: 14px; white-space: nowrap;
}
.sort .ic { font-size: 16px; }
.sort:not(.on) .ic { display: none; }
.sort.on { background: var(--chip); border-color: var(--chip); }

.chip {
	display: inline-flex; align-items: center; gap: 5px; flex: none;
	height: 28px; padding: 0 10px;
	border-radius: 3px; background: var(--chip);
	font-size: 14px; white-space: nowrap; text-transform: capitalize;
}
.chip .ic { font-size: 15px; color: var(--text-2); }
.chip span { font-size: 12px; color: var(--text-2); }

.chips {
	display: flex; gap: 6px; margin: 0 0 10px;
	overflow-x: auto; scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips:empty { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags:empty { display: none; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 4px; }
.grid-cat { column-gap: 10px; }
.card { display: block; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--chip); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur {
	position: absolute; right: 5px; bottom: 5px;
	padding: 0 5px; border-radius: 3px;
	background: rgba(0, 0, 0, .65); color: #fff;
	font-size: 13px; font-weight: 700; line-height: 19px;
}
.dur:empty { display: none; }
.card-t {
	margin-top: 5px; overflow: hidden;
	font-size: 13px; font-weight: 700; line-height: 17px;
	white-space: nowrap; text-overflow: ellipsis;
}
.card-m {
	display: flex; align-items: center; margin-top: 2px; overflow: hidden;
	font-size: 13px; line-height: 17px; white-space: nowrap; color: var(--text-2);
}
.card-m span { display: inline-flex; align-items: center; gap: 3px; }
.card-m span + span { margin-left: 7px; padding-left: 7px; border-left: 1px solid var(--border); }
.card-m .ic { font-size: 13px; }
.cat .card-t { display: flex; justify-content: space-between; gap: 6px; font-size: 14px; text-transform: capitalize; }
.cat .card-t span { flex: none; font-size: 13px; font-weight: 400; color: var(--text-2); }

.pager {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 4px; margin: 22px 0 6px; color: var(--text-2);
}
.pager a, .pg-cur {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; height: 38px; padding: 0 7px;
	border: 1px solid var(--border); border-radius: 4px;
	background: var(--panel);
	font-size: 15px; font-weight: 700; color: var(--text);
}
.pg-cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .pg-arr { font-size: 22px; font-weight: 400; line-height: 1; }
.pg-gap { padding: 0 2px; font-weight: 700; }

.blk { margin-top: 26px; }
.blk > .sec-title { margin-bottom: 10px; }
.blk:has(> .tags:empty) { display: none; }

.v-head { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 8px; }
.v-title {
	flex: 1; min-width: 0;
	display: -webkit-box; overflow: hidden;
	font-size: 18px; font-weight: 700; line-height: 24px;
	-webkit-line-clamp: 2; -webkit-box-orient: vertical;
	word-break: break-word;
}
.v-head.open .v-title { display: block; }
.v-more {
	display: grid; place-items: center; flex: none;
	width: 28px; height: 28px; margin-top: 22px; padding: 0;
	border: 0; background: none; cursor: pointer; color: var(--text);
}
.v-more .ic { font-size: 26px; transition: transform .15s; }
.v-head.open .v-more .ic { transform: rotate(180deg); }
.v-tags { margin: 0 0 10px; }

.player { margin: 0 -10px; background: #000; }
.video { position: relative; height: 0; padding-top: 56.25%; overflow: hidden; background: #000; }
.video video, .video iframe {
	position: absolute; top: 0; left: 0;
	width: 100%; height: 100%; border: 0; background: #000;
}
.poster { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 100%; cursor: pointer; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.play, .pnav {
	position: absolute; top: 50%; border-radius: 50%;
	transform: translate(-50%, -50%);
}
.play { left: 50%; width: 56px; height: 56px; background: rgba(0, 0, 0, .55); transition: background .15s; }
.play::before {
	content: "";
	position: absolute; top: 50%; left: 50%;
	margin: -11px 0 0 -7px;
	border-style: solid; border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent #fff;
}
.poster:hover .play { background: var(--accent); }
.pnav {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	background: rgba(0, 0, 0, .4); color: #fff;
}
.pnav .ic { font-size: 22px; }
.pprev { left: 25%; }
.pnext { left: 75%; }
.pbar {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; align-items: center; gap: 14px;
	padding: 24px 10px 8px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7));
	color: #fff; font-size: 14px; font-weight: 700;
}
.pbar span { display: inline-flex; align-items: center; gap: 5px; }
.pbar .ic { font-size: 18px; }
.pbar .pset { margin-left: auto; }
.pbar .pset .ic { font-size: 20px; }

.acts { display: flex; justify-content: space-around; padding: 8px 0; border-bottom: 1px solid var(--line); }
.act {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	min-width: 76px; padding: 4px 10px;
	border: 0; border-radius: 8px;
	background: none; cursor: pointer;
	font-size: 14px; color: var(--text);
}
.act .ic { font-size: 26px; }
.act:active { background: var(--chip); }
.act.on { color: var(--accent); }
.rated .act[data-v] { cursor: default; }
.rated .act[data-v]:not(.on) { opacity: .45; }
.v-meta { margin: 12px 0 4px; font-size: 14px; color: var(--text-2); }
main > .sec-title { margin: 18px 0 10px; }
.v-meta:empty { display: none; }

.ftr {
	margin-top: 28px; padding: 22px 0 30px;
	border-top: 1px solid var(--line);
	background: var(--panel);
	font-size: 13px; text-align: center; color: var(--text-2);
}
.ftr .logo { margin: 0 0 12px; }
.ftr-nav {
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: 6px 18px; margin-bottom: 12px;
	font-weight: 700; color: var(--text);
}
.ftr p { max-width: 640px; margin: 0 auto; }

@media (hover: hover) {
	.card:hover .card-t { color: var(--accent); }
	.chip:hover, .sort:hover { background: var(--chip-hover); }
	.pager a:hover { border-color: var(--text-2); }
	.qnav a:hover { text-decoration: underline; }
	.dr-nav a:hover, .dr-cats a:hover, .sgs-list a:hover, .ftr-nav a:hover { color: var(--accent); }
}

@media (max-width: 359px) {
	.logo-m { width: 34px; height: 34px; }
	.logo-w { height: 17px; }
}

@media (min-width: 600px) {
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
	.wrap { padding: 0 16px; }
	.hdr { border-bottom: 1px solid var(--line); }
	.hdr-in { gap: 12px; padding: 0 8px 0 16px; }
	.logo { margin-right: 0; }
	.logo-w { height: 22px; }
	.sbtn { display: none; }
	.sbox {
		display: block;
		position: relative; top: auto; left: auto; right: auto;
		flex: 0 1 560px; margin: 0 auto; padding: 0;
		background: none; box-shadow: none;
	}
	.sgs {
		display: none;
		position: absolute; top: 46px; left: 0; right: 0;
		padding: 4px 12px 12px;
		border: 1px solid var(--line); border-radius: 6px;
		background: var(--panel);
		box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
	}
	.sbox:focus-within .sgs, .sgs:hover { display: block; }
	.qnav-in { padding: 0 16px; }
	.grid { gap: 18px 10px; }
	.sec-title, .v-title { font-size: 22px; }
	.v-title { line-height: 28px; }
	.v-more { margin-top: 28px; }
	.player { margin: 0; }
	.acts { justify-content: flex-start; gap: 8px; }
}

@media (min-width: 1024px) {
	.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.player, .acts, .v-head { max-width: 1040px; }
}

@media (min-width: 1360px) {
	.grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
