/*--------------------------------------------------------------
# Tube skin
# Dark video-tube look: compact header, category bar, dense grid,
# meta line under thumbs, card-style single video page.
# Loaded after style.css (see inc/tube-skin.php).
# Accent color = "Main color" in Theme Options (--tube-accent).
# Columns      = "Videos per row" in Theme Options (--tube-cols).
--------------------------------------------------------------*/
:root {
	--tube-accent: #ff7a1a;
	--tube-cols: 5;
	--tube-bg: #111214;
	--tube-surface: #1a1b1e;
	--tube-surface-2: #24262a;
	--tube-border: #2c2e33;
	--tube-text: #e9e9ea;
	--tube-muted: #9b9ca1;
	--tube-surface-3: #2e3035;
	--tube-search-bg: #000;
	--tube-highlight: #7fa8ff;
	--tube-radius: 6px;
	--tube-gap: 14px;
}

/* Light mode (moon button in the header) */
html.tube-light {
	--tube-bg: #f3f4f6;
	--tube-surface: #ffffff;
	--tube-surface-2: #eef0f3;
	--tube-surface-3: #e5e7eb;
	--tube-border: #d9dce1;
	--tube-text: #16171a;
	--tube-muted: #60646c;
	--tube-search-bg: #f3f4f6;
	--tube-highlight: #2f6fe4;
}

/* ---------- Base ---------- */
body.tube-skin,
body.tube-skin.custom-background {
	background-color: var(--tube-bg);
	color: var(--tube-text);
	font-family: "Roboto", Arial, Helvetica, sans-serif;
}

body.tube-skin #page,
body.tube-skin .site-branding,
body.tube-skin .site-content,
body.tube-skin .archive-content,
body.tube-skin .title-block {
	background: transparent;
}

body.tube-skin .site-branding {
	background: var(--tube-surface);
}

body.tube-skin pre {
	background: var(--tube-surface-2);
	color: var(--tube-text);
}

body.tube-skin .tags-letter-block .tag-items .tag-item a {
	color: var(--tube-text);
}

body.tube-skin .tags-letter-block .tag-items .tag-item a:hover,
body.tube-skin .membership ul li:hover {
	background: var(--tube-surface-2);
}

body.tube-skin h1,
body.tube-skin h2,
body.tube-skin h3,
body.tube-skin h4,
body.tube-skin .widget-title,
body.tube-skin .page-title,
body.tube-skin .comments-title,
body.tube-skin .comment-reply-title,
body.tube-skin .page .entry-title {
	color: var(--tube-text);
}

body.tube-skin a:hover {
	color: var(--tube-accent);
}

body.tube-skin input[type="text"],
body.tube-skin input[type="email"],
body.tube-skin input[type="url"],
body.tube-skin input[type="password"],
body.tube-skin input[type="search"],
body.tube-skin input[type="number"],
body.tube-skin select,
body.tube-skin textarea {
	background-color: var(--tube-surface-2);
	border: 1px solid var(--tube-border);
	color: var(--tube-text);
}

body.tube-skin ::placeholder {
	color: var(--tube-muted);
}

/* ---------- Header (one row: logo, search, upload, menu, icons) ---------- */
body.tube-skin .header.tube-header {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: none;
	margin: 0;
	padding: 14px 30px;
	position: relative;
	background: var(--tube-surface);
	border-bottom: 1px solid var(--tube-border);
}

body.tube-skin .tube-header .site-branding {
	flex: 0 0 auto;
	min-height: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	display: flex;
	align-items: center;
}

body.tube-skin .tube-header .site-branding .logo {
	margin: 0;
	max-width: none;
}

body.tube-skin .site-branding .logo .site-title {
	margin: 0;
	line-height: 1;
}

body.tube-skin .site-branding .logo .site-title a {
	color: var(--tube-text);
	font-weight: 900;
	letter-spacing: -0.5px;
}

body.tube-skin .site-branding .logo .site-title a i {
	color: var(--tube-highlight);
}

body.tube-skin .site-description {
	color: var(--tube-muted);
	margin: 2px 0 0;
}

/* Search: wide black box, magnifier inside on the right */
body.tube-skin .tube-header .header-search {
	position: static !important;
	transform: none !important;
	top: auto !important;
	left: auto !important;
	display: block !important;
	flex: 1 1 420px;
	max-width: 560px;
	width: auto !important;
	margin: 0 0 0 40px;
	background: transparent;
}

body.tube-skin .tube-header .header-search form {
	position: relative;
	margin: 0;
}

body.tube-skin .tube-header .header-search input.input-group-field {
	float: none;
	width: 100%;
	height: 48px;
	line-height: 48px;
	margin: 0;
	padding: 0 52px 0 22px;
	font-size: 17px;
	font-weight: 700;
	color: var(--tube-text);
	background: var(--tube-search-bg);
	border: 1px solid var(--tube-border);
	border-radius: 4px;
}

body.tube-skin .tube-header .header-search input.input-group-field:focus {
	border-color: var(--tube-highlight) !important;
}

body.tube-skin .tube-header .header-search input.input-group-field::placeholder {
	color: var(--tube-muted);
	font-weight: 700;
}

body.tube-skin .tube-header .header-search input#searchsubmit {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 48px;
	line-height: 48px;
	margin: 0;
	padding: 0;
	font-family: FontAwesome;
	font-size: 18px;
	color: var(--tube-muted);
	background: transparent !important;
	border: none;
	border-radius: 0 4px 4px 0;
	box-shadow: none;
}

body.tube-skin .tube-header .header-search input#searchsubmit:hover {
	color: var(--tube-text);
}

/* Square upload button */
.tube-upload-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 4px;
	background: var(--tube-surface-3);
	color: var(--tube-text) !important;
	font-size: 22px;
}

.tube-upload-btn:hover {
	background: var(--tube-border);
}

/* Menu links inline */
body.tube-skin .tube-header #site-navigation {
	float: none;
	clear: none;
	width: auto;
	height: auto;
	line-height: normal;
	margin: 0 0 0 auto;
	display: flex;
	align-items: center;
	background: transparent;
	position: static;
}

body.tube-skin .tube-header #site-navigation::after {
	content: none;
}

body.tube-skin .tube-header #site-navigation > ul {
	display: flex;
	align-items: center;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

body.tube-skin .tube-header #site-navigation > ul > li > a {
	height: 48px;
	line-height: 48px;
	padding: 0 15px;
	font-size: 17px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	color: var(--tube-text);
	border: none !important;
}

body.tube-skin .tube-header #site-navigation > ul > li:hover > a,
body.tube-skin .tube-header #site-navigation > ul > li.current-menu-item > a {
	color: var(--tube-highlight);
}

body.tube-skin #site-navigation ul ul {
	background: var(--tube-surface-2);
	border: 1px solid var(--tube-border);
	border-radius: 0 0 4px 4px;
}

body.tube-skin #site-navigation ul ul li a {
	color: var(--tube-text);
}

body.tube-skin #site-navigation ul ul li a:hover {
	background: var(--tube-surface-3);
}

body.tube-skin .tube-header #site-navigation #head-mobile,
body.tube-skin .tube-header #site-navigation .button-nav {
	display: none;
}

/* Login / sign up (only when membership is on) */
body.tube-skin .tube-header #site-navigation .membership {
	position: static !important;
	order: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 10px;
}

body.tube-skin .membership a,
body.tube-skin .membership .welcome {
	color: var(--tube-text);
	font-weight: 700;
}

body.tube-skin .membership a.button {
	color: #fff;
	border-radius: 4px;
	background-color: var(--tube-highlight) !important;
}

body.tube-skin #site-navigation .membership ul {
	background-color: var(--tube-surface-2);
	border: 1px solid var(--tube-border);
}

/* Icons: heart, dark mode, language */
.tube-header-icons {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 4px;
}

.tube-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 4px;
	background: transparent !important;
	color: var(--tube-text) !important;
	font-size: 24px;
	cursor: pointer;
	box-shadow: none;
}

.tube-icon-btn:hover {
	color: var(--tube-highlight) !important;
}

.tube-lang {
	position: relative;
}

.tube-lang-current {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 6px 0 10px;
	margin: 0;
	border: none;
	background: transparent !important;
	color: var(--tube-text);
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: none;
}

.tube-lang-current .fa-globe {
	font-size: 22px;
}

.tube-lang-list {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 1000;
	min-width: 170px;
	margin: 6px 0 0;
	padding: 6px 0;
	list-style: none;
	background: var(--tube-surface-2);
	border: 1px solid var(--tube-border);
	border-radius: 4px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.tube-lang.open .tube-lang-list {
	display: block;
}

.tube-lang-list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	color: var(--tube-text);
	font-size: 14px;
}

.tube-lang-list a:hover,
.tube-lang-list .current a {
	background: var(--tube-surface-3);
	color: var(--tube-highlight);
}

body.tube-skin .tube-header .search-menu-mobile {
	display: none;
}

body.tube-skin #menu-toggle i,
body.tube-skin .header-search-mobile i {
	color: var(--tube-text);
}

/* ---------- Category bar: one row of grey buttons ---------- */
.tube-category-bar {
	background: var(--tube-surface);
	border-bottom: 1px solid var(--tube-border);
	padding: 12px 0;
}

.tube-category-bar .row {
	max-width: none;
	padding: 0 22px;
}

.tube-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.tube-cat-list::-webkit-scrollbar {
	display: none;
}

.tube-cat-list li {
	flex: 0 0 auto;
	margin: 0;
}

.tube-cat-list a {
	display: block;
	padding: 8px 11px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--tube-text);
	background: var(--tube-surface-3);
	border-radius: 4px;
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s;
}

.tube-cat-list a:hover {
	background: var(--tube-border);
	color: var(--tube-text);
}

/* First button and "View all" in blue, like the active / featured ones */
.tube-cat-list li:first-child a,
.tube-cat-list .tube-cat-all a,
.tube-cat-list .current-cat a,
.tube-cat-list .current-menu-item a {
	color: var(--tube-highlight) !important;
}

.tube-cat-list .tube-cat-all a i {
	display: none;
}

/* ---------- Header on tablets and phones ---------- */
@media (max-width: 1000px) {
	body.tube-skin .header.tube-header {
		flex-wrap: wrap;
		gap: 10px 8px;
		min-height: 64px;
		padding: 8px 12px;
	}

	body.tube-skin .tube-header .site-branding {
		order: 1;
		flex: 1 1 auto;
		min-width: 0;
	}

	body.tube-skin .site-branding .logo .site-title a {
		font-size: 26px !important;
	}

	body.tube-skin .site-branding .logo img {
		max-height: 44px;
		margin: 0;
	}

	body.tube-skin .tube-upload-btn {
		order: 2;
		width: 40px;
		height: 40px;
		font-size: 19px;
	}

	body.tube-skin .tube-header-icons {
		order: 3;
		gap: 0;
	}

	body.tube-skin .tube-icon-btn {
		width: 38px;
		height: 40px;
		font-size: 20px;
	}

	body.tube-skin .tube-lang-current {
		height: 40px;
		font-size: 15px;
		padding: 0 4px;
	}

	body.tube-skin .tube-header .search-menu-mobile {
		order: 4;
		display: flex;
		align-items: center;
		gap: 4px;
		position: static;
		width: auto;
	}

	body.tube-skin .tube-header .header-search-mobile,
	body.tube-skin .tube-header #menu-toggle {
		float: none;
		margin: 0;
		width: 38px;
		text-align: center;
		cursor: pointer;
	}

	body.tube-skin .tube-header #menu-toggle i,
	body.tube-skin .tube-header .header-search-mobile i {
		font-size: 22px;
	}

	body.tube-skin .tube-header .header-search {
		order: 5;
		display: none !important;
		flex: 1 1 100%;
		max-width: none;
		margin: 0;
	}

	body.tube-skin .tube-header .header-search.search-open {
		display: block !important;
	}

	body.tube-skin .tube-header .header-search input.input-group-field {
		height: 44px;
		line-height: 44px;
		font-size: 16px;
		padding: 0 46px 0 14px;
	}

	body.tube-skin .tube-header .header-search input#searchsubmit {
		width: 44px;
		height: 44px;
		line-height: 44px;
	}

	/* Off-canvas menu opened by the burger button (main.js animates "right") */
	body.tube-skin .tube-header #site-navigation {
		position: fixed;
		top: 64px;
		right: -260px;
		width: 250px;
		height: calc(100% - 64px);
		margin: 0;
		display: block;
		overflow: auto;
		z-index: 99998;
		background: var(--tube-surface);
		border-left: 1px solid var(--tube-border);
	}

	body.admin-bar.tube-skin .tube-header #site-navigation {
		top: 96px;
	}

	body.tube-skin .tube-header #site-navigation > ul {
		display: block !important;
	}

	body.tube-skin .tube-header #site-navigation > ul > li {
		float: none;
	}

	body.tube-skin .tube-header #site-navigation > ul > li > a {
		height: auto;
		line-height: 1.3;
		padding: 14px 18px;
		font-size: 16px;
		border-bottom: 1px solid var(--tube-border) !important;
	}

	body.tube-skin .tube-header #site-navigation .membership {
		margin: 0;
		padding: 14px 18px;
		border-bottom: 1px solid var(--tube-border);
	}

	.tube-category-bar {
		padding: 10px 0;
	}

	.tube-category-bar .row {
		padding: 0 12px;
	}

	.tube-cat-list {
		gap: 8px;
	}

	.tube-cat-list a {
		font-size: 14px;
		padding: 7px 10px;
	}
}

@media (max-width: 782px) {
	body.admin-bar.tube-skin .tube-header #site-navigation {
		top: 110px;
	}
}

@media (max-width: 575.98px) {
	body.tube-skin .tube-upload-btn,
	body.tube-skin .tube-fav {
		display: none;
	}
}

/* ---------- Content area ---------- */
body.tube-skin .site-content {
	padding-top: 18px;
}

body.tube-skin .archive-content,
body.tube-skin .entry-content,
body.tube-skin .under-video-block {
	background: transparent;
}

/* Section header: title on the left, sort tabs on the right */
.tube-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tube-border);
}

.tube-section-head .widget-title {
	font-size: 20px;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.tube-section-head .widget-title::before {
	content: "";
	width: 4px;
	height: 20px;
	border-radius: 2px;
	background: var(--tube-accent);
}

.tube-section-head .tube-count,
.tube-section-head .search-video-number {
	color: var(--tube-muted);
	font-size: 14px;
	margin: 0;
}

.tube-section-head .filters {
	margin: 0 0 0 auto;
}

.tube-section-head .archive-description {
	flex-basis: 100%;
	color: var(--tube-muted);
	font-size: 14px;
}

/* Sort tabs */
body.tube-skin .filters-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

body.tube-skin .filters a {
	margin: 0;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--tube-muted);
	background: var(--tube-surface);
	border: 1px solid var(--tube-border) !important;
	border-radius: var(--tube-radius);
}

body.tube-skin .filters a::before {
	content: none;
}

body.tube-skin .filters a:hover {
	color: var(--tube-text);
}

body.tube-skin .filters a.active {
	color: #fff;
	background: var(--tube-accent);
	border-color: var(--tube-accent) !important;
}

body.tube-skin .filter-title {
	color: var(--tube-text);
}

/* Homepage widgets ("Most viewed", etc.) */
body.tube-skin .widget_videos_listings {
	margin-bottom: 26px;
}

body.tube-skin .widget_videos_listings > .widget-title {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--tube-border);
}

body.tube-skin .widget_videos_listings > .widget-title::before {
	content: "";
	width: 4px;
	height: 20px;
	border-radius: 2px;
	background: var(--tube-accent);
}

body.tube-skin .more-videos {
	background: var(--tube-surface-2);
	color: var(--tube-text);
	border-radius: var(--tube-radius);
	font-size: 13px;
}

body.tube-skin .more-videos i {
	color: var(--tube-accent);
}

/* ---------- Video grid ---------- */
body.tube-skin .videos-list {
	display: grid;
	grid-template-columns: repeat(var(--tube-cols), minmax(0, 1fr));
	gap: 18px var(--tube-gap);
	margin: 0;
	overflow: visible;
}

body.tube-skin .videos-list::before,
body.tube-skin .videos-list::after {
	content: none;
}

body.tube-skin .videos-list .thumb-block {
	width: auto !important;
	float: none;
	display: block !important;
	clear: none !important;
	padding: 0;
	margin: 0;
	overflow: visible;
}

/* Listing with the ad block on the right */
body.tube-skin .video-list-content.with-happy {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--tube-gap);
	align-items: start;
}

body.tube-skin .video-list-content.with-happy .videos-list {
	grid-template-columns: repeat(calc(var(--tube-cols) - 1), minmax(0, 1fr));
	width: auto;
	float: none;
}

body.tube-skin .video-list-content.with-happy .video-archive-ad {
	float: none;
	width: 300px;
	height: auto !important;
	position: sticky;
	top: 10px;
}

body.tube-skin .video-list-content {
	min-height: 0;
}

/* Thumbnail */
body.tube-skin .thumb-block .post-thumbnail {
	border-radius: var(--tube-radius);
	overflow: hidden;
	background: var(--tube-surface-2);
}

body.tube-skin .thumb-block .post-thumbnail img {
	display: block;
	transition: transform 0.25s ease;
}

body.tube-skin .thumb-block:hover .post-thumbnail img.video-main-thumb {
	transform: scale(1.04);
}

body.tube-skin .no-thumb {
	background: var(--tube-surface-2);
}

body.tube-skin .no-thumb span {
	color: var(--tube-muted);
}

/* Duration bottom-right, HD top-left */
body.tube-skin .thumb-block span.duration {
	left: auto;
	right: 6px;
	bottom: 6px;
	height: auto;
	padding: 2px 6px;
	line-height: 1.4;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: rgba(0, 0, 0, 0.78);
	border-radius: 4px;
	z-index: 3;
}

body.tube-skin .thumb-block span.hd-video {
	top: 6px;
	left: 6px;
	right: auto;
	padding: 2px 5px;
	font-size: 11px;
	font-style: normal;
	font-weight: 900;
	line-height: 1.4;
	color: #fff;
	background: var(--tube-accent) !important;
	border-radius: 4px;
	z-index: 3;
}

/* Title + meta under the thumb */
body.tube-skin .thumb-block .entry-header {
	height: auto;
	padding: 8px 2px 0;
	color: var(--tube-text);
	font-size: 14px;
	font-weight: 500;
	overflow: visible;
}

body.tube-skin .thumb-block .title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: none;
	line-height: 1.35;
	color: var(--tube-text);
}

body.tube-skin .thumb-block:hover span.title {
	color: var(--tube-accent);
}

body.tube-skin .thumb-block .under-thumb {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 5px;
	font-size: 12px;
	color: var(--tube-muted);
	white-space: nowrap;
	overflow: hidden;
}

body.tube-skin .thumb-block .views,
body.tube-skin .thumb-block .rating {
	margin: 0;
	font-size: 12px;
	color: var(--tube-muted);
}

body.tube-skin .thumb-block .rating {
	color: #5fbf3a;
	font-weight: 700;
}

body.tube-skin .thumb-block .views i,
body.tube-skin .thumb-block .rating i {
	margin-right: 3px;
}

body.tube-skin .thumb-block .time-ago {
	margin-left: auto;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Category / actor cards (Categories page) */
body.tube-skin .categories-list .thumb-block .entry-header {
	font-weight: 700;
	text-align: left;
}

body.tube-skin .categories-list .thumb-block .entry-header span,
body.tube-skin .categories-list .thumb-block .entry-header .cat-title {
	color: var(--tube-text);
}

/* ---------- Pagination ---------- */
body.tube-skin .pagination {
	margin: 26px auto 10px;
}

body.tube-skin .pagination ul li a:not(.current):not(:hover),
body.tube-skin .mobile-pagination ul li span {
	background-color: var(--tube-surface-2) !important;
	border-color: var(--tube-border) !important;
	color: var(--tube-text);
}

body.tube-skin .pagination ul li a {
	border-radius: var(--tube-radius);
	min-width: 38px;
	text-align: center;
}

/* ---------- Labels / tags ---------- */
body.tube-skin .label {
	background: var(--tube-surface-2);
	color: var(--tube-text);
	border: 1px solid var(--tube-border);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 13px;
}

body.tube-skin .label i {
	color: var(--tube-accent);
	margin-right: 3px;
}

body.tube-skin .label:hover,
body.tube-skin .label:hover i {
	color: #fff;
}

body.tube-skin a.tag-cloud-link {
	background: var(--tube-surface-2);
	color: var(--tube-text);
}

/* ---------- Single video ---------- */
body.tube-skin .video-player-area {
	background: var(--tube-surface);
	border: 1px solid var(--tube-border);
	border-radius: var(--tube-radius);
	overflow: hidden;
}

body.tube-skin .video-player {
	background: #000;
}

body.tube-skin .video-player-area .video-infos {
	padding: 16px 20px 10px;
	align-items: flex-start;
	gap: 16px;
}

body.tube-skin .video-player-area .video-infos h1 {
	font-size: 22px;
	line-height: 1.3;
	margin: 0 0 8px;
	color: var(--tube-text);
}

.tube-video-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 13px;
	color: var(--tube-muted);
}

.tube-video-meta i {
	color: var(--tube-accent);
	margin-right: 4px;
}

body.tube-skin .video-player-area .video-infos .tracking-btn a {
	border-radius: var(--tube-radius);
	white-space: nowrap;
}

body.tube-skin .video-actions {
	background: transparent;
	border-top: 1px solid var(--tube-border);
	border-bottom: 1px solid var(--tube-border);
	margin: 0 20px;
	align-items: center;
}

body.tube-skin #video-rate {
	margin: 10px 0;
}

body.tube-skin #video-rate .post-like a,
body.tube-skin #video-rate i,
body.tube-skin span.post-like {
	color: var(--tube-text);
}

body.tube-skin #video-links {
	margin: 0;
}

body.tube-skin #video-links a,
body.tube-skin #video-links a i {
	color: var(--tube-text);
	font-weight: 500;
}

body.tube-skin #video-links a {
	padding: 7px 14px;
	background: var(--tube-surface-2);
	border: 1px solid var(--tube-border);
	border-radius: 999px;
}

body.tube-skin .rating-bar {
	background: var(--tube-surface-2);
}

body.tube-skin .post-like a {
	background: var(--tube-surface-2);
	border: 1px solid var(--tube-border);
}

body.tube-skin .rating-likes-bar {
	color: var(--tube-muted);
}

body.tube-skin .video-share {
	background: var(--tube-surface-2);
	color: var(--tube-text);
	margin: 12px 20px 0;
	border-radius: var(--tube-radius);
}

body.tube-skin .video-share textarea {
	background: var(--tube-bg);
	color: var(--tube-text);
}

body.tube-skin .video-tags {
	padding: 14px 20px 4px;
}

body.tube-skin .video-tags .tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.tube-skin .video-tags a {
	margin: 0;
}

body.tube-skin .video-description {
	padding: 6px 20px 18px;
	color: var(--tube-muted);
	font-size: 14px;
	line-height: 1.6;
}

body.tube-skin .video-description p {
	color: var(--tube-muted);
}

body.tube-skin .morelink {
	color: var(--tube-text);
}

/* Related videos */
body.tube-skin .under-video-block {
	padding-top: 24px;
}

body.tube-skin .tube-related-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tube-border);
}

body.tube-skin .tube-related-title::before {
	content: "";
	width: 4px;
	height: 20px;
	border-radius: 2px;
	background: var(--tube-accent);
}

body.tube-skin .under-video-block .show-more-related {
	text-align: center;
	margin-top: 20px;
}

body.tube-skin .under-video-block .show-more-related a.button {
	border-radius: 999px;
	padding: 10px 26px;
}

/* Sidebar ads area next to the player */
body.tube-skin .sidebar-ads {
	background: transparent;
}

/* ---------- Comments ---------- */
body.tube-skin .comments-area,
body.tube-skin .comment-body {
	color: var(--tube-text);
}

body.tube-skin .comment-list .comment-body {
	border-color: var(--tube-border);
}

/* ---------- Left sidebar (optional) ---------- */
body.tube-skin .archive-aside {
	background: var(--tube-surface);
	border: 1px solid var(--tube-border);
	border-radius: var(--tube-radius);
}

body.tube-skin .archive-aside a {
	color: var(--tube-text);
}

/* ---------- Footer ---------- */
body.tube-skin .footer-widget-zone {
	background: var(--tube-surface);
	border-top: 1px solid var(--tube-border);
	color: var(--tube-text);
}

body.tube-skin .site-footer {
	background: var(--tube-surface);
	border-top: 1px solid var(--tube-border);
	color: var(--tube-muted);
	margin-top: 30px;
}

body.tube-skin .footer-menu-container a {
	color: var(--tube-text);
	font-weight: 500;
}

body.tube-skin .site-footer .site-info {
	color: var(--tube-muted);
	font-size: 13px;
}

body.tube-skin #back-to-top {
	border-radius: 50%;
}

/* ---------- Pages / modals ---------- */
body.tube-skin .modal-content {
	background: var(--tube-surface);
	color: var(--tube-text);
}

body.tube-skin .entry-content,
body.tube-skin .page .entry-content {
	color: var(--tube-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
	body.tube-skin .videos-list {
		grid-template-columns: repeat(min(var(--tube-cols), 4), minmax(0, 1fr));
	}

	body.tube-skin .video-list-content.with-happy .videos-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	body.tube-skin .videos-list,
	body.tube-skin .video-list-content.with-happy .videos-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.tube-skin .video-list-content.with-happy {
		grid-template-columns: minmax(0, 1fr);
	}

	body.tube-skin .video-list-content.with-happy .video-archive-ad {
		width: auto;
		position: static;
	}

	body.tube-skin #site-navigation,
	body.tube-skin #site-navigation ul {
		background: var(--tube-surface);
	}

	body.tube-skin .header-search {
		background: var(--tube-surface);
	}

	body.tube-skin .membership .login a {
		background: var(--tube-surface-2);
		color: var(--tube-text);
	}
}

@media (max-width: 767.98px) {
	.tube-category-bar .row {
		padding: 0 10px;
	}

	body.tube-skin .videos-list,
	body.tube-skin .video-list-content.with-happy .videos-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 10px;
	}

	body.tube-skin .videos-list .thumb-block.full-width {
		grid-column: 1 / -1;
	}

	.tube-section-head .filters {
		margin: 0;
		flex-basis: 100%;
	}

	body.tube-skin .filters a.filter-title {
		display: none !important;
	}

	body.tube-skin .filters {
		height: auto;
		display: block;
		width: 100%;
	}

	body.tube-skin .filters .filters-list {
		display: flex !important;
		position: static;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding: 0;
		background: transparent;
		box-shadow: none;
	}

	body.tube-skin .filters a,
	body.tube-skin .filters a:first-child {
		display: block;
		white-space: nowrap;
		padding: 6px 12px;
	}

	body.tube-skin .video-player-area {
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	body.tube-skin .video-player-area .video-infos {
		flex-direction: column;
		padding: 12px 12px 8px;
	}

	body.tube-skin .video-player-area .video-infos h1 {
		font-size: 18px;
	}

	body.tube-skin .video-actions {
		margin: 0 12px;
	}

	body.tube-skin .video-tags,
	body.tube-skin .video-description {
		padding-left: 12px;
		padding-right: 12px;
	}

	body.tube-skin .thumb-block .time-ago {
		display: none;
	}
}

@media (min-width: 1001px) and (max-width: 1300px) {
	body.tube-skin .header.tube-header {
		gap: 12px;
		padding: 14px 18px;
	}

	body.tube-skin .tube-header .header-search {
		flex: 1 1 260px;
		min-width: 220px;
		margin-left: 10px;
	}

	body.tube-skin .tube-header #site-navigation > ul > li > a {
		padding: 0 9px;
		font-size: 15px;
	}

	body.tube-skin .tube-icon-btn {
		width: 36px;
		font-size: 20px;
	}
}

/* Keep header icon buttons transparent (style.css paints every button:hover grey) */
.tube-header-icons button.tube-icon-btn,
.tube-header-icons button.tube-icon-btn:hover,
.tube-header-icons button.tube-icon-btn:focus,
.tube-header-icons button.tube-lang-current,
.tube-header-icons button.tube-lang-current:hover,
.tube-header-icons button.tube-lang-current:focus {
	background-color: transparent !important;
	color: var(--tube-text);
}

.tube-header-icons button.tube-icon-btn:hover,
.tube-header-icons button.tube-lang-current:hover {
	color: var(--tube-highlight) !important;
}

/*--------------------------------------------------------------
# One container for header, category bar, content and footer
# Same max width and side gutter everywhere.
--------------------------------------------------------------*/
:root {
	--tube-max: 1600px;
	--tube-gutter: 30px;
	--tube-pad: max(var(--tube-gutter), calc((100% - var(--tube-max)) / 2));
}

body.tube-skin .header.tube-header {
	padding-left: var(--tube-pad);
	padding-right: var(--tube-pad);
}

body.tube-skin .tube-category-bar {
	padding-left: var(--tube-pad);
	padding-right: var(--tube-pad);
}

body.tube-skin .tube-category-bar .row {
	max-width: none;
	padding: 0;
}

body.tube-skin #content.site-content {
	max-width: none;
	margin: 0;
	padding: 0;
}

body.tube-skin #primary,
body.tube-skin .footer-widget-zone,
body.tube-skin .happy-footer,
body.tube-skin .happy-footer-mobile {
	padding-left: var(--tube-pad);
	padding-right: var(--tube-pad);
}

body.tube-skin .archive-content {
	float: none;
	padding: 24px 0 40px;
}

body.tube-skin .entry-content,
body.tube-skin .under-video-block {
	padding-left: 0;
	padding-right: 0;
}

body.tube-skin .entry-content {
	padding-top: 24px;
}

body.tube-skin .under-video-block {
	border-bottom: none;
	padding-bottom: 40px;
}

body.tube-skin .footer-widget-zone .row {
	max-width: none;
	padding: 0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.tube-footer-top {
	background: var(--tube-surface);
	border-top: 1px solid var(--tube-border);
	padding: 34px var(--tube-pad) 40px;
}

.tube-footer-title {
	margin: 0 0 14px;
	font-size: 22px;
	font-weight: 700;
	color: var(--tube-text);
}

.tube-seo {
	margin-bottom: 34px;
}

.tube-seo:last-child {
	margin-bottom: 0;
}

.tube-seo-text,
.tube-seo-text p {
	color: var(--tube-muted);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.65;
	margin: 0;
}

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

.tube-trending-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tube-trending-list li {
	margin: 0;
}

.tube-trending-list a {
	display: block;
	padding: 6px 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--tube-muted);
	background: var(--tube-surface-3);
	border-radius: 4px;
	transition: color 0.15s, background-color 0.15s;
}

.tube-trending-list a:hover {
	color: var(--tube-text);
	background: var(--tube-border);
}

body.tube-skin .site-footer.tube-footer {
	margin: 0;
	padding: 0;
	background: var(--tube-surface-2);
	border-top: none;
	color: var(--tube-muted);
}

body.tube-skin .site-footer.tube-footer::before,
body.tube-skin .site-footer.tube-footer::after {
	content: none;
}

.tube-footer-bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 110px;
	padding: 20px var(--tube-pad);
}

.tube-footer-brand {
	flex: 1 1 0;
	min-width: 0;
}

.tube-footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 34px;
	font-weight: 900;
	letter-spacing: -0.5px;
	color: var(--tube-text) !important;
}

.tube-footer-logo i {
	color: var(--tube-highlight);
}

.tube-footer-logo img {
	display: block;
	max-height: 56px;
	width: auto;
}

body.tube-skin .tube-footer .footer-menu-container {
	flex: 0 1 auto;
	width: auto;
}

body.tube-skin .tube-footer .footer-menu-container ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 40px;
	margin: 0;
	padding: 0;
}

body.tube-skin .tube-footer .footer-menu-container ul li {
	display: block;
	margin: 0;
}

body.tube-skin .tube-footer .footer-menu-container a {
	color: var(--tube-text);
	font-size: 18px;
	font-weight: 700;
}

body.tube-skin .tube-footer .footer-menu-container a:hover {
	color: var(--tube-highlight);
}

/* Square back-to-top button at the right of the footer bar */
body.tube-skin #back-to-top.tube-back-to-top {
	position: static;
	flex: 0 0 auto;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 0;
	opacity: 1;
	border-radius: 4px;
	font-size: 16px;
	color: var(--tube-muted) !important;
	background-color: var(--tube-surface-3) !important;
}

body.tube-skin #back-to-top.tube-back-to-top:hover {
	color: var(--tube-text) !important;
	background-color: var(--tube-border) !important;
}

.tube-footer-bar .tube-footer-brand + #back-to-top,
.tube-footer-bar .footer-menu-container + #back-to-top {
	margin-left: 0;
}

.tube-footer-bar > #back-to-top {
	flex: 0 0 60px;
}

/* Keep the menu centred: brand and button share the remaining space */
.tube-footer-bar::after {
	content: none;
}

body.tube-skin .tube-footer .social-share {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 0 var(--tube-pad) 16px;
}

body.tube-skin .site-footer .site-info.tube-copyright {
	margin: 0;
	padding: 16px var(--tube-pad);
	border-top: 1px solid var(--tube-border);
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--tube-muted);
}

body.tube-skin .site-footer .site-info.tube-copyright a {
	color: var(--tube-text);
}

@media (max-width: 1000px) {
	:root {
		--tube-gutter: 12px;
	}

	body.tube-skin .header.tube-header {
		padding-left: 12px;
		padding-right: 12px;
	}

	.tube-footer-bar {
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 16px;
	}

	.tube-footer-brand {
		flex: 1 1 auto;
	}

	body.tube-skin .tube-footer .footer-menu-container {
		order: 3;
		flex: 1 1 100%;
	}

	body.tube-skin .tube-footer .footer-menu-container ul {
		justify-content: flex-start;
		gap: 10px 22px;
	}

	body.tube-skin .tube-footer .footer-menu-container a {
		font-size: 15px;
	}

	.tube-footer-logo {
		font-size: 26px;
	}

	body.tube-skin #back-to-top.tube-back-to-top {
		width: 46px;
		height: 46px;
	}

	.tube-footer-bar > #back-to-top {
		flex-basis: 46px;
	}

	.tube-footer-title {
		font-size: 19px;
	}

	.tube-seo-text,
	.tube-seo-text p {
		font-size: 14px;
	}

	.tube-trending-list {
		gap: 8px;
	}

	.tube-trending-list a {
		font-size: 14px;
	}
}

@media (min-width: 1001px) {
	.tube-footer-bar {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}

	.tube-footer-bar .tube-footer-brand {
		grid-column: 1;
	}

	body.tube-skin .tube-footer-bar .footer-menu-container {
		grid-column: 2;
	}

	body.tube-skin .tube-footer-bar #back-to-top.tube-back-to-top {
		grid-column: 3;
		justify-self: end;
	}
}

/*--------------------------------------------------------------
# Channels
--------------------------------------------------------------*/
.tube-channel-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: var(--tube-radius);
	background: var(--tube-surface-2);
	border: 1px solid var(--tube-border);
}

.tube-channel-thumb img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.tube-channel-thumb img.channel-logo {
	object-fit: contain;
	padding: 18px;
}

.tube-channel-card:hover .tube-channel-thumb img {
	transform: scale(1.04);
}

.tube-channel-initial,
.tube-channel-avatar.no-logo span {
	font-size: 48px;
	font-weight: 900;
	color: var(--tube-highlight);
}

body.tube-skin .tube-channel-card .entry-header .title {
	font-weight: 700;
	-webkit-line-clamp: 1;
}

body.tube-skin .tube-channel-card .under-thumb .views i {
	color: var(--tube-highlight);
}

.tube-channel-header {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px;
	margin-bottom: 22px;
	background: var(--tube-surface);
	border: 1px solid var(--tube-border);
	border-radius: var(--tube-radius);
}

.tube-channel-avatar {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 50%;
	background: var(--tube-surface-3);
}

.tube-channel-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tube-channel-info {
	flex: 1 1 auto;
	min-width: 0;
}

.tube-channel-name {
	margin: 0 0 4px;
	font-size: 26px;
	line-height: 1.2;
	color: var(--tube-text);
}

.tube-channel-info .tube-count {
	color: var(--tube-muted);
	font-size: 14px;
}

.tube-channel-info .archive-description {
	margin-top: 8px;
	color: var(--tube-muted);
	font-size: 14px;
}

.tube-channel-info .archive-description p {
	margin: 0;
}

.tube-channel-all {
	flex: 0 0 auto;
	padding: 9px 14px;
	border-radius: 4px;
	font-weight: 700;
	color: var(--tube-text) !important;
	background: var(--tube-surface-3);
}

.tube-channel-all:hover {
	background: var(--tube-border);
}

.tube-video-channel {
	font-weight: 700;
	color: var(--tube-text) !important;
}

.tube-video-channel:hover {
	color: var(--tube-highlight) !important;
}

body.tube-skin .label.label-channel {
	color: var(--tube-highlight);
	font-weight: 700;
}

.tube-empty {
	color: var(--tube-muted);
	padding: 40px 0;
	text-align: center;
}

@media (max-width: 767.98px) {
	.tube-channel-header {
		flex-wrap: wrap;
		padding: 14px;
		gap: 12px;
	}

	.tube-channel-avatar {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
	}

	.tube-channel-name {
		font-size: 20px;
	}

	.tube-channel-all {
		flex-basis: 100%;
		text-align: center;
	}
}
