@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap");

/* NeonOtaku tube chrome layer — after overrides-neon.css and agegate.css. Rollback: remove <link>. */

:root {
	--tube-bg: #2b2c30;
	--tube-surface: #25262a;
	--tube-text: #fff;
	--tube-muted: #8d8d8d;
	--tube-badge: #262626;
	--tube-accent: #ff2bd6;
}

html,
body {
	background: var(--tube-bg) !important;
	background-image: none !important;
	color: var(--tube-text) !important;
	font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
	font-size: 15px;
}

a {
	color: var(--tube-text);
}

a:hover,
.th:hover .th-title,
.th:hover .th-description,
.model-info strong,
.video-info p a:hover {
	color: var(--tube-accent);
}

:focus-visible {
	outline: 2px solid var(--tube-accent);
	outline-offset: 2px;
}

nav.nav,
.title ul.sort,
ul.sort {
	display: none !important;
}

a.nav-toggle {
	display: none !important;
}

/* Header */
header.header,
.header {
	position: static !important;
	top: auto;
	z-index: 40;
	padding: 12px 0 !important;
	background: var(--tube-surface) !important;
	border-bottom: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

header.header::after {
	content: none !important;
	display: none !important;
}

header.header > .container {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

header.header .clearfix {
	display: contents;
}

header.header .clearfix::after {
	content: none !important;
	display: none !important;
}

a.logo,
header.header a.logo {
	position: static !important;
	top: auto !important;
	left: auto !important;
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none;
	font-family: "Source Sans 3", system-ui, sans-serif !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em;
	line-height: 1 !important;
	text-decoration: none !important;
	background: none !important;
	-webkit-background-clip: unset !important;
	background-clip: unset !important;
	-webkit-text-fill-color: var(--tube-text) !important;
	color: var(--tube-text) !important;
	filter: none !important;
}

.header-lang {
	display: flex;
	align-items: center;
	margin: 0 0 0 auto;
	padding: 0;
	list-style: none;
}

.header-lang li {
	margin: 0;
	list-style: none;
}

select#lang_sel,
.header-lang .select {
	display: inline-block;
	width: auto;
	min-width: 100px;
	height: 32px;
	margin: 0;
	padding: 0 28px 0 10px;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	background-color: var(--tube-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238d8d8d' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	color: var(--tube-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 30px;
	box-shadow: none;
	cursor: pointer;
}

select#lang_sel:hover,
.header-lang .select:hover {
	border-color: rgba(255, 255, 255, 0.25);
	box-shadow: none;
}

select#lang_sel option {
	background: var(--tube-surface);
	color: var(--tube-text);
}

header.header .search {
	float: none;
	flex: 1 1 280px;
	max-width: 600px;
	margin: 0;
}

.input-search {
	height: 32px !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 4px !important;
	background: var(--tube-bg) !important;
	color: var(--tube-text) !important;
	font-family: inherit;
	font-size: 15px;
	box-shadow: none !important;
}

.input-search::placeholder {
	color: var(--tube-muted);
}

.input-search:focus {
	border-color: rgba(255, 255, 255, 0.28) !important;
	box-shadow: none !important;
	opacity: 1 !important;
}

.btn-search,
.search-toggle {
	color: var(--tube-muted) !important;
}

.btn-search:hover,
.search-toggle:hover,
.search-toggle.toggled {
	color: var(--tube-text) !important;
	opacity: 1 !important;
}

/* Site nav row */
nav.site-nav {
	background: var(--tube-surface);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav.site-nav > .container {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 40px;
}

nav.site-nav > .container > a:first-child {
	margin-left: 48px;
}

nav.site-nav a {
	color: var(--tube-text) !important;
	font-size: 15px;
	font-weight: 400;
	text-decoration: none !important;
	line-height: 40px;
}

nav.site-nav a:hover {
	color: var(--tube-accent) !important;
}

/* Category chips */
nav.top-categories {
	background: var(--tube-surface);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding: 8px 0;
}

ul.top-categories-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.top-categories-list li {
	margin: 0;
	display: inline-flex;
}

ul.top-categories-list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 10px;
	border: none;
	border-radius: 4px;
	background: var(--tube-surface);
	color: var(--tube-text) !important;
	font-size: 15px;
	font-weight: 400;
	text-decoration: none !important;
	transition: background 0.15s ease;
	box-shadow: none;
	transform: none;
}

ul.top-categories-list a:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--tube-text) !important;
	box-shadow: none;
	transform: none;
}

.top-categories-count {
	color: var(--tube-muted);
	font-size: 13px;
	font-weight: 400;
}

ul.top-categories-list a:hover .top-categories-count {
	color: var(--tube-muted);
}

/* Section title */
.title {
	margin: 18px 0 14px;
}

.title h1,
article.video-wrapper > h1,
.video-wrapper h1 {
	float: none;
	margin: 0;
	padding: 0;
	border-left: none;
	box-shadow: none;
	color: var(--tube-text) !important;
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	text-align: left;
}

h1 span {
	border-left: 0 !important;
	color: var(--tube-muted) !important;
	font-size: 13px;
	font-weight: 400;
}

.container {
	width: auto !important;
	max-width: 1400px;
}

/* Thumbs grid */
.thumbs {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	column-gap: 10px;
	row-gap: 20px;
	margin: 0 !important;
}

.thumbs::before,
.thumbs::after {
	display: none;
	content: none;
}

@media (max-width: 1279px) and (min-width: 986px) {
	.thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 985px) and (min-width: 768px) {
	.thumbs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) and (min-width: 561px) {
	.thumbs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.thumbs {
		grid-template-columns: minmax(0, 1fr);
	}
}

.th {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	transform: none !important;
	transition: none;
}

.th:hover {
	transform: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.th-image {
	border-radius: 0;
	background: var(--tube-surface) !important;
}

.th-duration,
.th:hover .th-duration {
	left: auto !important;
	right: 4px !important;
	bottom: 4px !important;
	height: 15px !important;
	padding: 0 3px !important;
	border: none !important;
	border-radius: 3px;
	background: var(--tube-badge) !important;
	color: var(--tube-text) !important;
	font-size: 11px;
	font-weight: 400;
	line-height: 15px;
	box-shadow: none !important;
}

.th-duration i.icon-clock {
	display: none !important;
}

.th-hd,
.th:hover .th-hd {
	right: 4px !important;
	bottom: 22px !important;
	border-radius: 3px;
	background: var(--tube-badge) !important;
	color: var(--tube-text) !important;
	font-size: 11px;
	box-shadow: none;
}

.th-title,
.th-description {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: var(--tube-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 18px;
	font-family: inherit;
}

.th:hover .th-title,
.th:hover .th-description {
	color: var(--tube-accent) !important;
	text-decoration: none;
}

.th-tags:empty {
	display: none !important;
}

/* Pagination */
.paginator .btn-default,
.btn-default {
	border: none !important;
	border-radius: 4px !important;
	background: var(--tube-surface) !important;
	color: var(--tube-text) !important;
	font-family: inherit;
	font-size: 15px;
	min-height: 30px;
	line-height: 30px;
	padding: 0 12px;
}

.btn-default:hover,
.btn-default.sel {
	background: rgba(255, 255, 255, 0.08) !important;
	color: var(--tube-text) !important;
}

.paginator .btn-default.active,
.btn-default.active {
	background: var(--tube-accent) !important;
	color: #fff !important;
	box-shadow: none;
}

.paginator {
	margin: 28px 0 36px !important;
}

/* Video page */
@media (min-width: 1280px) {
	.video-container {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 10px;
		width: 100% !important;
		float: none !important;
		align-items: start;
	}

	.video-container .player-container {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		height: auto;
	}

	.video-container .video-info {
		grid-column: 2;
		grid-row: 1;
	}
}

@media (max-width: 1279px) {
	.video-container {
		display: block !important;
		width: 100% !important;
		float: none !important;
	}
}

.player,
.player-container {
	border: none !important;
	border-radius: 0 !important;
	background: var(--tube-surface) !important;
	box-shadow: none !important;
	overflow: visible;
	filter: none !important;
	transform: none !important;
	pointer-events: auto;
}

.video-info,
.video-tags {
	color: var(--tube-text);
}

.video-aside,
.bottom-blocks {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	box-shadow: none !important;
}

.video-tags a,
a.tag,
.tag {
	display: inline-flex;
	align-items: center;
	height: 30px;
	margin: 0 6px 6px 0;
	padding: 0 10px;
	border: none;
	border-radius: 4px;
	background: var(--tube-surface);
	color: var(--tube-text) !important;
	font-size: 15px;
	text-decoration: none !important;
}

.video-tags a:hover,
.tag:hover,
a.tag:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--tube-accent) !important;
}

/* Categories list */
ul.categories {
	column-gap: 24px;
}

.categories a {
	color: var(--tube-text) !important;
	line-height: 32px;
	font-size: 15px;
}

.categories a:hover,
.categories a:hover span {
	color: var(--tube-accent) !important;
}

.categories span {
	color: var(--tube-muted);
}

.categories .categories-letter,
.categories-letter {
	color: var(--tube-accent) !important;
	font-family: inherit;
	font-weight: 600;
}

/* Footer */
footer.footer,
.footer {
	margin-top: 44px;
	background: var(--tube-surface) !important;
	border-top: none !important;
	box-shadow: none;
	color: var(--tube-muted) !important;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 14px;
}

.footer-nav a {
	color: var(--tube-muted) !important;
	font-size: 14px;
	text-decoration: none;
}

.footer-nav a:hover,
.footer p a:hover {
	color: var(--tube-text) !important;
}

.footer p,
.footer p a {
	color: var(--tube-muted);
	font-size: 14px;
}

.goup {
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	background: var(--tube-surface) !important;
	color: var(--tube-muted) !important;
	box-shadow: none;
}

.goup:hover {
	background: var(--tube-accent) !important;
	border-color: var(--tube-accent);
	color: #fff !important;
	opacity: 1 !important;
}

.sidebar-nav {
	background: var(--tube-surface) !important;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--tube-text);
}

.sidebar-nav-title h3 {
	color: var(--tube-text);
	font-family: inherit;
}

.sidebar-nav a {
	color: var(--tube-muted);
}

/* Age-gate colors only */
#agegate-root .agegate-card,
#agegate-root [class*="card"] {
	background: var(--tube-surface) !important;
}

#agegate-root button[type="submit"],
#agegate-root .agegate-enter,
#agegate-root a.agegate-enter {
	background: var(--tube-accent) !important;
	border-color: var(--tube-accent) !important;
	color: #fff !important;
}

#agegate-root a:not(.agegate-enter) {
	color: var(--tube-muted) !important;
}

@media screen and (max-width: 767px) {
	.container {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}

	a.logo,
	header.header a.logo {
		font-size: 20px !important;
	}

	header.header > .container {
		flex-wrap: wrap;
	}

	.search-toggle {
		order: 10;
		margin-left: auto;
	}

	.header-lang {
		margin-left: 0;
		order: 5;
	}

	header.header .search {
		order: 15;
		flex: 1 1 100%;
		max-width: none;
	}

	nav.top-categories {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	ul.top-categories-list {
		flex-wrap: nowrap;
		width: max-content;
		padding: 0 10px;
	}

	ul.top-categories-list a {
		white-space: nowrap;
	}

	.title h1,
	h1 {
		text-align: left !important;
	}
}
