:root {
	--bg:        #110525;
	--surface:   #1a0b30;
	--surface-2: #241040;
	--border:    #2f1a4f;
	--text:      #ffffff;
	--dim:       #cfc6dd;
	--muted:     #8a7ba6;
	--accent:    #9333ea;
	--accent-2:  #d63bb0;
	--accent-hi: #b565f5;
	--ok:        #55c157;
	--bad:       #d2456b;
	--gap:       6px;
	--maxw:      1440px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg:        #f5f2f9;
	--surface:   #ffffff;
	--surface-2: #ece6f5;
	--border:    #dcd2ec;
	--text:      #180f26;
	--dim:       #3b2f4d;
	--muted:     #6d6280;
	--accent:    #7c22ce;
	--accent-2:  #b91c8e;
	--accent-hi: #5b189c;
	color-scheme: light;
}

*, *::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-family: var(--font);
	font-size: 15px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
button { font: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 8px; }

.ic {
	width: 1em; height: 1em; flex: 0 0 auto;
	fill: none; stroke: currentColor;
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
	vertical-align: -.15em;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.head {
	position: sticky; top: 0; z-index: 100;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}
.head-row {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: 8px; padding-top: 8px; padding-bottom: 8px;
}
.logo {
	margin-right: auto;
	font-size: clamp(22px, 7vw, 30px); font-weight: 800; line-height: 1;
	letter-spacing: 1px; white-space: nowrap;
	color: var(--text);
}
.logo span {
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: var(--accent);
}

.saved-link, .theme-toggle {
	position: relative; flex: 0 0 auto;
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border: 1px solid var(--border);
	background: var(--surface-2); color: var(--accent-hi);
	cursor: pointer;
}
.saved-link:hover, .theme-toggle:hover { border-color: var(--accent); }
.saved-link .ic, .theme-toggle .ic { font-size: 22px; }
.saved-link b {
	position: absolute; top: -6px; right: -6px;
	min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 10px; background: var(--accent-2); color: #fff;
	font-size: 11px; line-height: 20px; text-align: center;
}
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }

.search { display: flex; flex: 1 1 100%; order: 5; margin: 0; }
.search input {
	flex: 1 1 auto; min-width: 0;
	height: 48px; padding: 0 14px;
	border: 1px solid var(--border); border-right: 0; border-radius: 0;
	background: var(--surface-2); color: var(--text);
	font-size: 16px; outline: 0;
	-webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); }
.search button {
	flex: 0 0 auto; width: 56px; height: 48px;
	display: grid; place-items: center;
	border: 0; border-radius: 0;
	background: var(--accent); color: #fff; cursor: pointer;
}
.search button .ic { font-size: 21px; stroke-width: 2.4; }
.search button:hover { background: var(--accent-hi); }

.nav { background: var(--surface-2); border-top: 1px solid var(--border); }
.nav-row {
	display: flex;
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.nav-row::-webkit-scrollbar { display: none; }
.nav a {
	flex: 0 0 auto;
	padding: 12px 14px;
	font-size: 13px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .5px;
	color: var(--muted); white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }

.spot { text-align: center; margin: 10px 0; }
.spot > div { margin: 0 auto; }
.spot:empty { display: none; }
.spot-mid { grid-column: 1 / -1; margin: 6px 0; }

.title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 14px 2px 8px; }
.title-row .page-title { margin: 0; }
.title-count { color: var(--muted); font-size: 13px; }
.clear-link {
	margin-left: auto; padding: 4px 0;
	border: 0; background: none;
	color: var(--accent-hi); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer;
}
.clear-link:hover { color: var(--text); }

.page-title, .section-title {
	margin: 14px 2px 8px;
	font-size: 18px; font-weight: 700;
	text-transform: uppercase; color: var(--text); line-height: 1.25;
}
.page-title .ic-title { color: var(--accent-hi); margin-right: 6px; }
.video-title { text-transform: none; font-size: 17px; }

.sorts {
	display: flex; margin: 6px 0 8px;
	border: 1px solid var(--border); background: var(--surface);
}
.sort-link {
	flex: 1 1 0; min-width: 0;
	display: inline-flex; align-items: center; justify-content: center; gap: 5px;
	height: 38px; padding: 0 4px;
	border: 0; border-right: 1px solid var(--border);
	background: none; color: var(--muted);
	font-size: 12px; font-weight: 700; white-space: nowrap;
	text-transform: uppercase; letter-spacing: 0;
	cursor: pointer;
}
.sort-link:last-child { border-right: 0; }
.sort-link:hover { color: var(--text); }
.sort-link.active { background: var(--accent); color: #fff; }
.sort-link b { font-weight: 700; opacity: .75; }

.grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap);
}

.card { position: relative; min-width: 0; }
.card-link { display: block; }
.card-thumb {
	position: relative; display: block;
	aspect-ratio: 16 / 9;
	background: var(--surface-2);
	overflow: hidden;
}
.card-thumb img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .25s ease;
}
.card-link:hover .card-thumb img { transform: scale(1.05); }
.card-dur, .card-rate {
	position: absolute; bottom: 4px;
	padding: 0 5px;
	background: rgba(0,0,0,.78); color: #fff;
	font-size: 12px; font-weight: 600; line-height: 19px;
}
.card-dur { right: 4px; }
.card-rate { left: 4px; color: #8ee68f; }
.card-title {
	display: block;
	padding: 6px 2px 0;
	font-size: 13px; line-height: 1.3; color: var(--dim);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-link:hover .card-title { color: var(--accent-hi); }
.card-meta {
	display: flex; align-items: center; gap: 6px;
	padding: 3px 2px 10px;
	color: var(--muted); font-size: 11px;
}
.card-meta > * { white-space: nowrap; }
.card-meta .m-model, .card-meta .m-date { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card-meta .m-model { color: var(--accent-hi); font-weight: 600; }
.card-meta .m-model:hover { color: var(--text); }
.card-meta .m-views { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.card-meta .ic-eye { color: var(--accent); }

.wl {
	position: absolute; top: 4px; right: 4px; z-index: 2;
	width: 32px; height: 32px;
	display: grid; place-items: center;
	padding: 0; border: 0; border-radius: 50%;
	background: rgba(17,5,37,.72); color: #fff;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}
.wl .ic { font-size: 17px; }
.wl:hover { background: var(--accent); }
.wl.on { background: var(--accent-2); color: #fff; }
.wl.on .ic { fill: currentColor; }

.pager {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 5px;
	margin: 16px 0 6px;
}
.pager a, .pager span {
	min-width: 42px; height: 42px; padding: 0 12px;
	display: inline-grid; place-items: center;
	border: 1px solid var(--border); background: var(--surface);
	color: var(--dim); font-size: 14px; font-weight: 700;
}
.pager a:hover { border-color: var(--accent); color: var(--text); }
.pager .pg-cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .pg-gap { border: 0; background: none; min-width: 20px; padding: 0; color: var(--muted); }
.pager .pg-next { background: var(--surface-2); color: var(--text); }

.block { margin-top: 18px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sec-head .section-title { margin-left: 2px; }
.more {
	flex: 0 0 auto; margin-right: 2px;
	color: var(--accent-hi); font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.more::after { content: " \203A"; }
.more:hover { color: var(--text); }

.grid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap);
}
.tile { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.tile-thumb { display: block; aspect-ratio: 16 / 9; }
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.tile:hover .tile-thumb img { transform: scale(1.05); }
.tile-name {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 22px 8px 7px;
	background: linear-gradient(transparent, rgba(10,3,24,.92));
	color: #fff; font-size: 14px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .3px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-count {
	position: absolute; top: 5px; right: 5px;
	padding: 0 6px;
	background: var(--accent); color: #fff;
	font-size: 11px; font-weight: 700; line-height: 18px;
}

.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 2px 4px; }
.chips:empty { display: none; }
.chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 12px;
	border: 1px solid var(--border);
	background: var(--surface); color: var(--dim);
	font-size: 12px; text-transform: uppercase; letter-spacing: .3px;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip .ic { color: var(--accent-hi); }
.chip small { color: var(--muted); font-size: 11px; }
.chip-tag { text-transform: none; font-size: 13px; }
.chip-tag::before { content: "#"; color: var(--accent-hi); font-weight: 700; }
.chips-cloud .chip-tag { font-size: 14px; padding: 8px 14px; }

.av {
	--h: 280;
	flex: 0 0 auto;
	width: 28px; height: 28px; border-radius: 50%;
	display: inline-grid; place-items: center;
	background: linear-gradient(135deg, hsl(var(--h) 62% 48%), hsl(calc(var(--h) + 40) 62% 34%));
	color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .3px;
}
.av-lg { width: 56px; height: 56px; font-size: 19px; }
.av-xl { width: 72px; height: 72px; font-size: 25px; }

.mchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 2px 4px; }
.mchip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 4px 12px 4px 4px;
	border: 1px solid var(--border); border-radius: 22px;
	background: var(--surface); color: var(--text);
	font-size: 13px; font-weight: 600;
}
.mchip:hover { border-color: var(--accent); }
.mchip-count { color: var(--muted); font-size: 12px; font-weight: 400; }

.mgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap);
}
.mcard {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 14px 8px 12px;
	border: 1px solid var(--border); background: var(--surface);
	text-align: center; min-width: 0;
}
.mcard:hover { border-color: var(--accent); }
.mcard-name { max-width: 100%; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-count { color: var(--muted); font-size: 12px; }

.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 2px 12px; }
.letters a {
	min-width: 36px; height: 36px; padding: 0 8px;
	display: inline-grid; place-items: center;
	border: 1px solid var(--border); background: var(--surface);
	color: var(--dim); font-size: 13px; font-weight: 700;
}
.letters a:hover { border-color: var(--accent); color: var(--text); }
.letters a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.letters a.lt-wide { padding: 0 12px; text-transform: uppercase; font-size: 12px; }

.az { columns: 2; column-gap: 14px; margin: 6px 2px; }
.az a {
	display: block; padding: 6px 0;
	border-bottom: 1px solid var(--border);
	color: var(--dim); font-size: 14px; text-transform: capitalize;
	break-inside: avoid;
}
.az a:hover { color: var(--accent-hi); }
.az small { color: var(--muted); font-size: 12px; }

.model-head { display: flex; align-items: center; gap: 14px; margin: 14px 2px 6px; }
.model-info { min-width: 0; }
.model-info .page-title { margin: 0 0 4px; text-transform: none; font-size: 22px; }
.model-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.model-stats span { display: inline-flex; align-items: center; gap: 5px; }
.model-stats .ic { color: var(--accent-hi); }
.model-stats a { color: var(--accent-hi); font-weight: 700; }
.model-desc { margin: 6px 0 0; color: var(--dim); font-size: 14px; }

.player-wrap { margin: 8px -8px 0; background: #000; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video video, .video iframe, .video embed, .video object, .video source {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.player-poster { position: absolute; inset: 0; cursor: pointer; z-index: 10; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; }
.player-play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 74px; height: 74px; border-radius: 50%;
	background: rgba(17,5,37,.6); border: 2px solid var(--accent-hi);
	pointer-events: none;
}
.player-play::before {
	content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%);
	width: 0; height: 0; border-style: solid;
	border-width: 15px 0 15px 25px;
	border-color: transparent transparent transparent #fff;
}

.video-bar { display: flex; align-items: center; gap: 6px; margin: 10px 2px 4px; }
.rating { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }
.rate-btn, .wl-big, .share-btn {
	display: inline-flex; align-items: center; gap: 7px;
	height: 38px; padding: 0 14px;
	border: 1px solid var(--border);
	background: var(--surface); color: var(--text);
	font-size: 14px; font-weight: 700; cursor: pointer;
}
.rate-btn .ic, .wl-big .ic, .share-btn .ic { font-size: 18px; }
.share-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.share-btn.done { border-color: var(--ok); color: #7ede80; }
.rate-up:hover, .rate-up.active     { border-color: var(--ok); color: #7ede80; }
.rate-down:hover, .rate-down.active { border-color: var(--bad); color: #f0849e; }
.rating.rated .rate-btn { cursor: default; opacity: .7; }
.rating.rated .rate-btn.active { opacity: 1; }
.rate-bar { flex: 1 1 60px; min-width: 24px; max-width: 200px; height: 5px; overflow: hidden; background: var(--bad); }
.rate-pct { white-space: nowrap; }
.video-bar .rate-btn, .video-bar .wl-big, .video-bar .share-btn { flex: 0 0 auto; padding: 0 11px; }
@media (max-width: 479px) {
	.video-bar .wl-big span, .video-bar .share-btn span, .rate-votes { display: none; }
	.video-bar .wl-big, .video-bar .share-btn { width: 40px; padding: 0; justify-content: center; }
}
.rate-bar span { display: block; height: 100%; background: var(--ok); }
.rate-pct { color: var(--muted); font-size: 13px; }
.wl-big { position: static; width: auto; border-radius: 0; }
.wl-big:hover { background: var(--surface-2); border-color: var(--accent); }
.wl-big.on { background: var(--accent-2); border-color: var(--accent-2); }

.video-info { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 2px; color: var(--muted); font-size: 13px; }
.video-info span { display: inline-flex; align-items: center; gap: 5px; }
.video-info .ic { color: var(--accent-hi); }

.video-info a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-hi); }

.vchips {
	position: relative;
	display: flex; flex-wrap: nowrap; gap: 5px;
	margin: 8px 2px 4px; overflow: hidden;
}
.vchips > a { flex: 0 0 auto; }
.vchips .chip, .vchips .mchip { height: 30px; padding-top: 0; padding-bottom: 0; }
.vchips .mchip { padding-left: 3px; font-size: 12px; }
.vchips .av { width: 24px; height: 24px; font-size: 10px; }
.vchips-more {
	position: absolute; right: 0; top: 0;
	height: 30px; min-width: 40px; padding: 0 10px;
	border: 1px solid var(--accent); background: var(--surface-2); color: var(--text);
	font-size: 12px; font-weight: 700; cursor: pointer;
	box-shadow: -14px 0 10px var(--bg);
}
.vchips.open { flex-wrap: wrap; overflow: visible; }
.vchips.open .vchips-more { position: static; box-shadow: none; }

.mhead { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: inherit; }
.mhead:hover { color: var(--accent-hi); }
.mhead .av { width: 28px; height: 28px; font-size: 11px; }
.mhead-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mblock .sec-head { align-items: center; }
.mblock .section-title { min-width: 0; }
.rel-block + .spot-mid { margin: 16px 0 4px; }

.empty {
	margin: 10px 2px; padding: 26px 16px;
	border: 1px dashed var(--border); background: var(--surface);
	color: var(--dim); text-align: center;
}
.empty .ic { color: var(--accent-hi); }

.site-footer {
	margin-top: 24px; padding: 18px 8px 28px;
	border-top: 1px solid var(--border);
	background: var(--surface);
	color: var(--muted); font-size: 13px; text-align: center;
}
.site-footer p { margin: 10px 0 0; }
.site-footer span { color: var(--accent-hi); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot-nav a { color: var(--dim); font-weight: 600; }
.foot-nav a:hover { color: var(--accent-hi); }

@media (hover: hover) {
	.card .wl:not(.on) { opacity: 0; }
	.card:hover .wl { opacity: 1; }
}

@media (min-width: 600px) {
	.grid, .grid-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.az { columns: 3; }
	.player-wrap { margin: 8px 0 0; }
}

@media (min-width: 860px) {
	.wrap { padding-left: 14px; padding-right: 14px; }
	.head-row { padding-top: 10px; padding-bottom: 10px; }
	.video-bar, .video-info, .vchips { max-width: 1100px; }
	.sorts { max-width: 520px; }
	.head-row { flex-wrap: nowrap; gap: 12px; }
	.logo { margin-right: 10px; }
	.search { order: 0; flex: 1 1 auto; max-width: 560px; margin-left: auto; }
	.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
	.grid-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.mgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
	.az { columns: 5; }
	.page-title, .section-title { font-size: 22px; margin: 18px 2px 10px; }
	.video-title { font-size: 20px; }
	.title-row { margin: 18px 2px 10px; }
	.card-title { font-size: 14px; }
	.card-meta { font-size: 12px; }
	.player-wrap { max-width: 1100px; }
}

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

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