:root {
	--bg: #10171e;
	--bar: #0c1218;
	--hdr: #151e27;
	--surface: #1e2b39;
	--surface-2: #273a4d;
	--line: #223040;
	--text: #caced2;
	--text-2: #7f8b97;
	--white: #ffffff;
	--accent: #0ba4f9;
	--accent-2: #2b94e1;
	--like: #46a546;
	--dislike: #d84646;
	--maxw: 1680px;
	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 -apple-system, BlinkMacSystemFont, Arial, 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(--hdr); border-bottom: 1px solid var(--line); }
.hdr-in {
	position: relative;
	display: flex; align-items: center;
	max-width: var(--maxw); height: 50px;
	margin: 0 auto; padding: 0 4px;
}

.logo {
	display: inline-flex; align-items: flex-start; flex: none;
	margin-right: auto; padding-top: 2px;
	color: var(--white); white-space: nowrap;
}
.logo-t { font-size: 23px; font-weight: 800; line-height: 26px; letter-spacing: -.6px; }
.logo-b {
	position: relative;
	margin: -3px 0 0 2px; padding: 0 5px;
	border-radius: 4px; background: var(--accent-2);
	font-size: 12px; font-weight: 700; line-height: 18px; letter-spacing: .3px;
	text-transform: uppercase; color: var(--white);
}
.logo-b::after {
	content: "";
	position: absolute; left: 3px; bottom: -4px;
	border-style: solid; border-width: 4px 4px 0 0;
	border-color: var(--accent-2) transparent transparent transparent;
}

.hbtn {
	display: grid; place-items: center; flex: none;
	width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 4px;
	background: none; cursor: pointer; color: var(--text);
}
.hbtn .ic { font-size: 26px; }
.hbtn:active { background: var(--surface); }
.mbtn { margin-right: 4px; }

.hnav { display: none; }

.sbox {
	display: none;
	position: absolute; top: 100%; left: 0; right: 0;
	margin: 0; padding: 8px 10px 12px;
	background: var(--hdr);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .45);
}
.s-open .sbox { display: block; }
.sfield { display: flex; height: 42px; background: var(--bg); border: 1px solid var(--surface-2); }
.sfield input {
	flex: 1; min-width: 0; height: 100%;
	padding: 0 12px; border: 0; outline: 0;
	background: none; font-size: 16px; color: var(--white);
	-webkit-appearance: none; appearance: none;
}
.sfield input::placeholder { color: var(--text-2); }
.sfield button {
	width: 46px; border: 0;
	background: var(--accent-2); color: var(--white); cursor: pointer;
}
.sfield button .ic { font-size: 21px; }
.sgs-h {
	margin: 12px 2px 6px;
	font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .5px;
	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: 16px; color: var(--text-2); }

.qnav { background: var(--bar); border-bottom: 1px solid var(--line); }
.qnav-in {
	display: flex; align-items: center; gap: 20px;
	max-width: var(--maxw); height: 38px;
	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: 12px; font-weight: 700; color: var(--text);
	white-space: nowrap; text-transform: uppercase; letter-spacing: .3px;
}
.qnav em { font-style: normal; color: var(--accent); }
.qnav .ic { font-size: 16px; }
.c-hot { color: #ff5a3c; }
.c-top { color: var(--accent); }

.drawer {
	position: fixed; top: 0; bottom: 0; left: 0; right: auto;
	width: 290px; max-width: 86vw;
	height: 100%; max-height: none;
	margin: 0; padding: 0; border: 0;
	background: var(--hdr); color: var(--text);
}
.drawer::backdrop { background: rgba(0, 0, 0, .65); }
.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: 50px; padding: 0 4px 0 12px;
	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 {
	display: flex; align-items: center; gap: 14px;
	padding: 11px 16px;
	font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--white);
}
.dr-nav .ic { font-size: 20px; color: var(--text-2); }
.dr-h {
	padding: 14px 16px 6px;
	font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .5px;
	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); }

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

.sec-head { margin: 16px 0 12px; }
.sec-title {
	font-size: 16px; font-weight: 700; line-height: 1.3;
	text-transform: uppercase; color: var(--white);
	word-break: break-word;
}
.sec-title span { color: var(--accent); }
.sec-sub { display: inline-block; font-size: 13px; font-weight: 400; text-transform: none; color: var(--text-2); }
.sec-sub a { color: var(--accent); }
.sec-more { flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.blk .sec-head, .sec-head:has(> .sec-more) { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.sorts {
	display: flex; gap: 6px; margin-top: 10px;
	overflow-x: auto; scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.sorts::-webkit-scrollbar { display: none; }
.sort {
	display: inline-flex; align-items: center; gap: 6px; flex: none;
	height: 32px; padding: 0 12px;
	border-radius: 4px; background: var(--surface);
	font-size: 11px; font-weight: 700; letter-spacing: .3px;
	text-transform: uppercase; white-space: nowrap; color: var(--text);
}
.sort .ic { font-size: 15px; }
.sort:not(.on) .ic { display: none; }
.sort.on { background: var(--accent-2); color: var(--white); }

.chip {
	display: inline-flex; align-items: center; gap: 6px; flex: none;
	height: 32px; padding: 0 11px;
	border-radius: 4px; background: var(--surface);
	font-size: 13px; white-space: nowrap; text-transform: capitalize; color: var(--text);
}
.chip .ic { font-size: 14px; 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: minmax(0, 1fr); gap: 16px 8px; }
.grid-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: block; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur {
	position: absolute; right: 6px; bottom: 6px;
	padding: 0 5px; border-radius: 3px;
	background: rgba(22, 32, 42, .8); color: var(--white);
	font-size: 13px; font-weight: 700; line-height: 20px;
}
.dur:empty { display: none; }
.card-t {
	display: -webkit-box; margin-top: 7px; overflow: hidden;
	font-size: 14px; line-height: 20px; color: var(--text);
	-webkit-line-clamp: 2; -webkit-box-orient: vertical;
	word-break: break-word;
}
.card-m {
	display: flex; align-items: center; margin-top: 3px; overflow: hidden;
	font-size: 12px; line-height: 17px; white-space: nowrap; color: var(--text-2);
}
.card-m span { display: inline-flex; align-items: center; gap: 4px; }
.card-m span + span { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.card-m .ic { font-size: 12px; }
.m-up { color: var(--like); }
.cat .card-t {
	display: flex; justify-content: space-between; gap: 6px;
	font-weight: 700; text-transform: uppercase; color: var(--white);
	-webkit-line-clamp: unset;
}
.cat .card-t span { flex: none; font-weight: 400; color: var(--text-2); }

.pager {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 5px; margin: 26px 0 8px; color: var(--text-2);
}
.pager a, .pg-cur {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 10px;
	border-radius: 4px; background: var(--surface);
	font-size: 14px; font-weight: 700; color: var(--text);
}
.pg-cur { background: var(--accent-2); color: var(--white); }
.pager .pg-arr { font-size: 22px; font-weight: 400; line-height: 1; }
.pg-gap { padding: 0 2px; font-weight: 700; }

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

.v-head { display: flex; align-items: flex-start; gap: 6px; margin: 14px 0 10px; }
.v-title {
	flex: 1; min-width: 0;
	display: -webkit-box; overflow: hidden;
	font-size: 16px; font-weight: 700; line-height: 22px;
	text-transform: uppercase; color: var(--white);
	-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: -3px; 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: 70px; height: 70px;
	border: 4px solid var(--white); background: rgba(0, 0, 0, .3);
	transition: background .15s, border-color .15s;
}
.play::before {
	content: "";
	position: absolute; top: 50%; left: 50%;
	margin: -13px 0 0 -8px;
	border-style: solid; border-width: 13px 0 13px 22px;
	border-color: transparent transparent transparent var(--white);
}
.poster:hover .play { background: var(--accent-2); border-color: var(--accent-2); }
.pnav {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	background: rgba(0, 0, 0, .4); color: var(--white);
}
.pnav .ic { font-size: 22px; }
.pprev { left: 22%; }
.pnext { left: 78%; }
.pbar {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; align-items: center; gap: 14px;
	padding: 26px 10px 8px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .75));
	color: var(--white); font-size: 13px; font-weight: 700;
}
.pbar span { display: inline-flex; align-items: center; gap: 5px; }
.pbar .ic { font-size: 17px; }
.pbar .pset { margin-left: auto; }
.pbar .pset .ic { font-size: 19px; }

.acts { display: flex; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.act {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	flex: 1; min-width: 0; height: 38px; padding: 0 12px;
	border: 0; border-radius: 4px;
	background: var(--surface); cursor: pointer;
	font-size: 11px; font-weight: 700; letter-spacing: .3px;
	text-transform: uppercase; color: var(--text);
}
.act .ic { font-size: 18px; }
.act[data-v="2"] { color: var(--like); }
.act[data-v="1"] { color: var(--dislike); }
.act[data-v="2"].on { background: var(--like); color: var(--white); }
.act[data-v="1"].on { background: var(--dislike); color: var(--white); }
.rated .act[data-v] { cursor: default; }
.rated .act[data-v]:not(.on) { opacity: .45; }
.v-meta { margin: 12px 0 4px; font-size: 13px; color: var(--text-2); }
.v-meta:empty { display: none; }
main > .sec-title { margin: 20px 0 12px; }

.ftr {
	margin-top: 32px; padding: 24px 0 32px;
	border-top: 1px solid var(--line);
	background: var(--bar);
	font-size: 13px; text-align: center; color: var(--text-2);
}
.ftr .logo { margin: 0 0 14px; }
.ftr-nav {
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: 6px 18px; margin-bottom: 12px;
	font-weight: 700; text-transform: uppercase; font-size: 12px; color: var(--accent);
}
.ftr p { max-width: 640px; margin: 0 auto; }
.seo { max-width: 900px; margin: 22px auto 0; font-size: 13px; line-height: 1.6; text-align: center; color: var(--text-2); }

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

@media (max-width: 359px) {
	.logo-t { font-size: 20px; }
}

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

@media (min-width: 768px) {
	.wrap { padding: 0 16px; }
	.hdr-in { gap: 12px; height: 64px; padding: 0 16px 0 8px; }
	.logo { margin-right: 0; }
	.logo-t { font-size: 27px; line-height: 30px; }
	.logo-b { font-size: 13px; line-height: 20px; }
	.sbtn { display: none; }
	.sbox {
		display: block;
		position: relative; top: auto; left: auto; right: auto;
		flex: 0 1 460px; margin: 0 0 0 auto; padding: 0;
		background: none; border: 0; box-shadow: none;
	}
	.sfield { height: 44px; }
	.sgs {
		display: none;
		position: absolute; top: 48px; left: 0; right: 0;
		padding: 4px 12px 12px;
		border: 1px solid var(--line);
		background: var(--hdr);
		box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
	}
	.sbox:focus-within .sgs, .sgs:hover { display: block; }
	.qnav-in { padding: 0 16px; }
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
	.grid-cat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sec-title { font-size: 18px; }
	.v-title { font-size: 18px; line-height: 24px; }
	.player { margin: 0; }
	.acts { justify-content: flex-start; }
	.sorts { flex-wrap: wrap; }
	.act { flex: none; }
}

@media (min-width: 1024px) {
	.mbtn { display: none; }
	.hdr-in { padding-left: 16px; }
	.logo { margin-right: 18px; }
	.hnav { display: flex; align-self: stretch; }
	.hnav a {
		display: flex; align-items: center;
		padding: 0 10px; border-bottom: 3px solid transparent;
		font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--text);
		white-space: nowrap;
	}
	.hnav a.on { color: var(--white); border-bottom-color: var(--accent-2); }
	.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.grid-cat { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.player, .acts, .v-head { max-width: 1060px; }
}

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