/* ==========================================================================
   Desi Bokep — Main Stylesheet
   ========================================================================== */

:root {
	/* Tube-site dark palette */
	--bg: #0a0e17;
	--bg-elevated: #0f1520;
	--surface: #131a28;
	--surface-hover: #182030;
	--card: var(--surface);
	--card-hover: var(--surface-hover);
	--border: #2b3a51;
	--border-soft: #2b3a51;
	--card-divider: #2b3a51;
	--card-border: #1e2a3c;
	--search-bg: #0f172a;
	--site-inset: 5px;
	--card-pad-x: 5px;
	--card-pad-y: 4px;
	--text: #eef2f7;
	--text-muted: #9aa8bc;
	--text-subtle: #738299;
	--accent: #3d6db5;
	--accent-hover: #5a8fd4;
	--accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
	--icon-color: #7a8ea8;
	--overlay: rgba(6, 10, 18, 0.82);
	--player-bg: #060910;

	/* Appearance tokens (Customizer-overridable) */
	--header-bg: var(--bg-elevated);
	--nav-bg: var(--bg-elevated);
	--nav-text: #eef2f7;
	--nav-text-active: var(--text);
	--search-text: var(--text);
	--card-title-color: var(--text);
	--card-meta-color: #b7c2d1;
	--card-hover-border: var(--card-border);
	--thumb-overlay-color: #000000;
	--thumb-overlay-gradient: color-mix(in srgb, var(--thumb-overlay-color) 22%, transparent);
	--thumb-overlay-text: #ffffff;
	--single-bg: var(--surface);
	--single-title-color: var(--text);
	--single-meta-color: #b7c2d1;
	--pill-cat-bg: transparent;
	--pill-cat-border: #86befe;
	--pill-cat-border-color: color-mix(in srgb, var(--pill-cat-border) 42%, transparent);
	--pill-cat-text: #eef2f7;
	--pill-tag-bg: transparent;
	--pill-tag-border: #86befe;
	--pill-tag-border-color: color-mix(in srgb, var(--pill-tag-border) 30%, transparent);
	--pill-tag-text: #d1e4ff;
	--link-color: #86befe;
	--link-hover-color: #c5deff;
	--footer-bg: transparent;
	--footer-text: var(--text);
	--footer-link: var(--text);

	/* Type */
	--text-xs: 0.6875rem;
	--text-sm: 0.8125rem;
	--text-base: 0.875rem;
	--text-md: 0.9375rem;
	--text-lg: 1.0625rem;
	--text-xl: 1.1875rem;

	/* Spacing rhythm — compact tube layout */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--stack-sm: var(--space-2);
	--stack-md: var(--space-3);
	--stack-lg: var(--space-4);
	--grid-gap: 5px;

	/* Layout */
	--radius: 4px;
	--radius-sm: 3px;
	--search-radius: 8px;
	--header-h: 65px;
	--primary-nav-h: 39px;
	--nav-item-pad-y: 0;
	--nav-item-pad-x: 11px;
	--nav-menu-gap: 0.35rem;
	--nav-after-gap: 0;
	--search-h: 44px;
	--control-h: 44px;
	--touch-min: 44px;
	--logo-w: 88px;
	--logo-h: 40px;
	--max-w: 1200px;
	--sidebar-w: 360px;
	--single-main-w: 840px;
	--container-w: 1200px;
	--container-gap: 5px;
	--container-section-gap: 5px;
	--container-pad-top: 0;
	--container-pad-x: 5px;
	--container-pad-bottom: 0;
	--pagination-gap-after-grid: 5px;
	--pagination-pad-x: 5px;
	--pagination-pad-y: 5px;
	--pagination-btn-h: 38px;
	--pagination-btn-gap: 6px;

	/* Icons */
	--icon-meta: 12px;
	--icon-play: 30px;

	/* Motion */
	--ease: cubic-bezier(0.25, 0.1, 0.25, 1);
	--duration: 0.15s;
	--transition: var(--duration) var(--ease);
	--focus-ring: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--text-base);
	line-height: 1.4;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overscroll-behavior-y: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 0.85em; }
button { font: inherit; cursor: pointer; }

:focus { outline: none; }

:focus-visible {
	box-shadow: var(--focus-ring);
	transition: box-shadow 0.12s var(--ease);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */

.icon {
	display: block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	color: var(--icon-color);
}

.icon--meta {
	width: var(--icon-meta);
	height: var(--icon-meta);
	margin-top: -0.5px;
}

.icon--play { width: var(--icon-play); height: var(--icon-play); color: #fff; opacity: 0.8; }
.icon--search-btn { width: 15px; height: 15px; flex-shrink: 0; }
.icon--tag { width: 10px; height: 10px; }

.icon--placeholder {
	width: 22px;
	height: 22px;
	opacity: 0.35;
	color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   Meta row
   -------------------------------------------------------------------------- */

.meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 7px;
	row-gap: 2px;
}

.meta-row__item {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-width: 0;
	font-size: var(--text-xs);
	font-weight: 500;
	line-height: 1;
	color: var(--text-muted);
	letter-spacing: 0.01em;
}

.meta-row__item span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.video-card .meta-row__item span {
	white-space: normal;
	text-overflow: unset;
	overflow: visible;
}

.video-card .meta-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	column-gap: 6px;
	row-gap: 0;
	height: 24px;
	min-height: 22px;
	max-height: 26px;
	box-sizing: border-box;
	padding: 3px 5px;
	margin: 0;
	overflow: hidden;
}

.video-card .meta-row__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	color: var(--card-meta-color);
}

.video-card .meta-row__item .icon {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	color: var(--card-meta-color);
	opacity: 1;
}

.video-card .meta-row__sep {
	width: 2px;
	height: 2px;
	opacity: 0.7;
}

.meta-row__item .icon {
	flex-shrink: 0;
}

.meta-row__sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--border);
	color: var(--border);
	opacity: 1;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   One centered site block (1200px) — header, nav, main, footer
   -------------------------------------------------------------------------- */

.site-frame {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--container-w);
	margin-left: auto;
	margin-right: auto;
	min-height: 100vh;
	background: var(--bg-elevated);
}

/* Content inset — borders on header/nav/footer span full container width */
.site-header__inner,
.primary-nav__inner,
.site-container,
.layout-with-sidebar {
	padding-left: max(var(--container-pad-x), env(safe-area-inset-left, 0));
	padding-right: max(var(--container-pad-x), env(safe-area-inset-right, 0));
}

.site-container,
.layout-with-sidebar {
	padding-top: 0;
	padding-bottom: var(--container-pad-bottom);
}

/* --------------------------------------------------------------------------
   Header + primary navigation
   -------------------------------------------------------------------------- */

.site-top {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-bg);
	padding-top: env(safe-area-inset-top, 0);
	border-bottom: 1px solid var(--border);
}

.site-header {
	background: inherit;
	border-bottom: none;
}

.primary-nav {
	background: var(--nav-bg);
	border-top: 1px solid var(--border);
	border-bottom: none;
}

.primary-nav:not(:has(.primary-menu)) {
	display: none;
	border: none;
}

body:not(.has-primary-nav) .site-header {
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--site-inset);
	box-sizing: border-box;
	height: var(--header-h);
	min-height: var(--header-h);
	padding-top: var(--site-inset);
	padding-bottom: var(--site-inset);
}

.site-header__brand {
	min-width: 0;
	flex: 0 1 auto;
	max-width: var(--logo-w);
}

.site-header__logo {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: var(--logo-w);
	font-size: var(--text-sm);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	margin: 0;
}

.site-header__brand .custom-logo-link {
	display: block;
	line-height: 0;
	max-width: var(--logo-w);
}

.site-header__brand .custom-logo {
	display: block;
	width: var(--logo-w);
	height: var(--logo-h);
	max-width: 100%;
	object-fit: contain;
}

.site-header__actions {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	min-width: 0;
	justify-content: flex-end;
}

/* Unified search — outer form owns border, radius, overflow */
.site-header__search {
	display: flex;
	align-items: stretch;
	align-self: center;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 280px;
	height: var(--search-h);
	margin: 0;
	border: 1px solid var(--border);
	border-radius: var(--search-radius);
	background: var(--search-bg);
	overflow: hidden;
	transition: border-color var(--transition);
}

.site-header__search:focus-within {
	border-color: var(--accent-hover);
}

.site-header__search-field {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 var(--site-inset);
	border: none;
	border-radius: 0;
	background: transparent;
}

.site-header__search-field input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: var(--search-h);
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--search-text);
	font-size: var(--text-sm);
	line-height: var(--search-h);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.site-header__search-field input[type="search"]::placeholder {
	color: var(--text-subtle);
}

.site-header__search-submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	align-self: stretch;
	min-height: var(--search-h);
	padding: 0 var(--site-inset);
	border: none;
	border-left: 1px solid var(--border);
	border-radius: 0;
	background: transparent;
	color: var(--search-text);
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	transition: color var(--transition), background var(--transition);
}

.site-header__search-submit-label {
	display: inline;
}

.site-header__search-submit:hover {
	color: var(--accent-hover);
	background: rgba(255, 255, 255, 0.03);
}

.primary-nav__inner {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	min-height: var(--primary-nav-h);
	display: flex;
	align-items: stretch;
}

.primary-nav__inner::-webkit-scrollbar {
	display: none;
}

.primary-menu,
ul#primary-menu {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--nav-menu-gap);
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu > li,
ul#primary-menu > li {
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a,
ul#primary-menu a {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: var(--primary-nav-h);
	min-height: var(--primary-nav-h);
	padding: var(--nav-item-pad-y) var(--nav-item-pad-x);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--nav-text);
	white-space: nowrap;
	transition: color var(--transition), background var(--transition);
	-webkit-tap-highlight-color: transparent;
}

.primary-menu > li:first-child > a,
ul#primary-menu > li:first-child > a {
	padding-left: 0;
}

.primary-menu > li:first-child.current-menu-item > a,
.primary-menu > li:first-child.current-menu-ancestor > a,
ul#primary-menu > li:first-child.current-menu-item > a,
ul#primary-menu > li:first-child.current-menu-ancestor > a {
	margin-left: calc(var(--container-pad-x) * -1);
	padding-left: var(--container-pad-x);
}

.primary-menu > li:last-child > a,
ul#primary-menu > li:last-child > a {
	padding-right: var(--nav-item-pad-x);
}

.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
ul#primary-menu .current-menu-item > a,
ul#primary-menu .current-menu-ancestor > a {
	color: var(--nav-text-active);
	background: var(--accent-soft);
}

@media (hover: hover) {
	.primary-menu a:hover,
	ul#primary-menu a:hover {
		color: var(--nav-text-active);
		background: var(--surface-hover);
	}

	.primary-menu .current-menu-item > a:hover,
	.primary-menu .current-menu-ancestor > a:hover,
	ul#primary-menu .current-menu-item > a:hover,
	ul#primary-menu .current-menu-ancestor > a:hover {
		background: var(--accent-soft);
	}
}

@media (max-width: 639px) {
	.site-header__actions {
		flex: 0 0 62% !important;
		width: 62% !important;
		min-width: 62% !important;
	}

	.site-header__brand {
		flex: 0 0 38% !important;
		width: 38% !important;
		max-width: none;
	}

	.site-header__logo {
		max-width: 100%;
	}

	.site-header__brand .custom-logo-link {
		max-width: 100%;
	}

	.site-header__brand .custom-logo {
		width: auto;
		max-width: 100%;
		height: auto;
		max-height: var(--logo-h);
	}

	#site-search,
	.site-header__search {
		width: 100% !important;
		max-width: none !important;
	}

	.site-header__search-submit-label {
		display: none;
	}

	.site-header__search-submit {
		flex: 0 0 var(--search-h);
		padding: 0;
	}
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.site-main {
	margin: 0;
	padding: 0;
}

.site-container--grid .video-grid,
.posts-masonry,
.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 5px;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 0;
	padding-right: 0;
}

.site-container--grid .archive-header {
	margin-bottom: var(--container-section-gap);
	padding: 0;
}

.site-container--grid .no-posts {
	padding: var(--space-4) 0;
}

/* Single post: main content + trending sidebar */
.layout-with-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--site-inset);
}

.layout-with-sidebar__content {
	flex: 1;
	min-width: 0;
}

@media (min-width: 960px) {
	.layout-with-sidebar {
		flex-direction: row;
		align-items: flex-start;
		gap: var(--site-inset);
	}

	.layout-with-sidebar--single {
		gap: 0;
		align-items: flex-start;
		padding-left: 0;
		padding-right: 0;
		flex-wrap: wrap;
	}

	.layout-with-sidebar--single .layout-with-sidebar__content {
		flex: 0 0 var(--single-main-w);
		max-width: var(--single-main-w);
		width: var(--single-main-w);
		min-width: 0;
		overflow-x: clip;
		border-right: 1px solid var(--card-border);
		box-sizing: border-box;
		order: 1;
	}

	.layout-with-sidebar--single .sidebar {
		flex: 0 0 360px;
		width: 360px;
		max-width: 360px;
		flex-shrink: 0;
		align-self: flex-start;
		position: static;
		top: auto;
		border-left: none;
		padding-left: 0;
		box-sizing: border-box;
		order: 2;
	}

	.layout-with-sidebar--single .more-videos {
		order: 3;
	}

	.sidebar {
		flex: 0 0 var(--sidebar-w);
		width: var(--sidebar-w);
		position: sticky;
		top: calc(var(--header-h) + var(--primary-nav-h));
		border-left: 1px solid var(--border);
		padding-left: var(--site-inset);
	}
}

body:not(.has-primary-nav) .sidebar {
	top: var(--header-h);
}

/* --------------------------------------------------------------------------
   Video grid
   -------------------------------------------------------------------------- */

/* Override third-party column width classes on post articles */
.posts-masonry > .video-card,
.posts-masonry > article,
.video-grid > .video-card,
.video-grid > article {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Video card
   -------------------------------------------------------------------------- */

.video-card {
	border: 1px solid var(--card-border);
	border-radius: 0;
	overflow: hidden;
	background: var(--surface);
	transition: opacity var(--transition);
}

.video-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
}

.video-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bg-elevated);
}

.video-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: brightness(0.94);
	transition: filter var(--transition);
}

.video-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	background: linear-gradient(165deg, var(--surface) 0%, var(--bg-elevated) 100%);
}

.video-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, var(--thumb-overlay-gradient) 0%, transparent 45%);
	pointer-events: none;
}

.video-card__thumb-meta {
	display: none;
}

.video-card__play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--transition);
	pointer-events: none;
}

.video-card__play::before {
	content: "";
	position: absolute;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.38);
}

.video-card__play .icon {
	position: relative;
	z-index: 1;
	opacity: 0.85;
}

.video-card__body {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 0 0 auto;
	min-height: 52px;
	max-height: 54px;
	background: var(--surface);
	overflow: hidden;
}

.video-card__title {
	font-size: 14px;
	font-weight: 700;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 18px;
	height: 28px;
	min-height: 28px;
	max-height: 28px;
	box-sizing: border-box;
	letter-spacing: 0;
	margin: 0;
	padding: 5px;
	border-bottom: 1px solid var(--card-divider);
	color: var(--card-title-color);
}

@media (hover: hover) {
	.site-header__logo:hover { color: var(--accent-hover); }

	.video-card:hover .video-card__play { opacity: 1; }
	.video-card:hover .video-card__play .icon { opacity: 0.9; }
	.video-card:hover .video-card__title { color: var(--accent-hover); }
	.video-card:hover .video-card__img { filter: brightness(1); }
}

/* Mobile & small screens */
@media (max-width: 539px) {
	.site-footer { margin-top: 0; }

	.video-card__play { opacity: 1; }

	.video-card__play .icon {
		width: 26px;
		height: 26px;
		opacity: 0.7;
	}
}

/* --------------------------------------------------------------------------
   Archive header
   -------------------------------------------------------------------------- */

.archive-header {
	margin-bottom: 5px;
	padding: 0;
}

.archive-header__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 0;
}

body.category .archive-header__title,
body.tag .archive-header__title {
	font-size: 1.5rem;
	line-height: 1.5;
	font-weight: 500;
	text-align: center;
	margin: 0 0 10px;
}

.archive-header__desc {
	margin-top: 4px;
	font-size: 12px;
	color: #7a8799;
	line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.sidebar {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
}

.sidebar__title,
.sidebar .widget-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 8px;
	padding: 0;
	border: none;
	letter-spacing: 0;
	text-align: center;
	color: var(--text);
}

.icon--sidebar-title {
	width: 14px;
	height: 14px;
	color: var(--text);
	flex-shrink: 0;
}

.sidebar-popular-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-popular-list__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-popular-list__link {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 10px;
	min-height: 70px;
	height: 70px;
	padding: 0;
	margin: 0;
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.sidebar-popular-list__thumb {
	flex: 0 0 70px;
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--bg-elevated);
}

.sidebar-popular-list__img {
	display: block;
	width: 70px;
	height: 70px;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

.sidebar-popular-list__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	background: var(--bg-elevated);
}

.sidebar-popular-list__placeholder .icon--placeholder {
	width: 16px;
	height: 16px;
}

.sidebar-popular-list__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
}

.sidebar-popular-list__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #e5e7eb;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sidebar-popular-list__meta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	color: #9aa8bc;
}

.sidebar-popular-list__meta .icon {
	width: 12px;
	height: 12px;
	color: #9aa8bc;
	opacity: 1;
}

.sidebar-popular-list__empty {
	font-size: var(--text-sm);
	color: var(--text-muted);
	padding: 0;
}

@media (hover: hover) {
	.sidebar-popular-list__link:hover .sidebar-popular-list__title {
		color: #f3f4f6;
	}
}

@media (min-width: 960px) {
	.layout-with-sidebar--single .sidebar .widget,
	.layout-with-sidebar--single .sidebar__widget--popular,
	#vlike_popular_posts_widget-2 {
		box-sizing: border-box;
		padding: 10px;
		margin-bottom: 24px;
		background: transparent;
	}

	#vlike_popular_posts_widget-2 .widget-title {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		font-size: 14px;
		font-weight: 700;
		margin: 0 0 8px;
		padding: 0;
		border: none;
		text-align: center;
		color: var(--text);
	}

	#vlike_popular_posts_widget-2 ul {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	#vlike_popular_posts_widget-2 li {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	#vlike_popular_posts_widget-2 li > a,
	#vlike_popular_posts_widget-2 .popular-post-item,
	#vlike_popular_posts_widget-2 .vlike-popular-item {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		gap: 10px;
		min-height: 70px;
		height: 70px;
		padding: 0;
		margin: 0;
		color: inherit;
		text-decoration: none;
	}

	#vlike_popular_posts_widget-2 .post-thumbnail,
	#vlike_popular_posts_widget-2 .thumbnail,
	#vlike_popular_posts_widget-2 .wpp-thumbnail,
	#vlike_popular_posts_widget-2 li > a > span:first-child:not([class*="meta"]):not([class*="view"]):not([class*="title"]) {
		flex: 0 0 70px;
		flex-shrink: 0;
		width: 70px;
		height: 70px;
		overflow: hidden;
		border-radius: 4px;
	}

	#vlike_popular_posts_widget-2 img {
		display: block;
		flex: 0 0 70px;
		flex-shrink: 0;
		width: 70px;
		height: 70px;
		object-fit: cover;
		aspect-ratio: 1 / 1;
		border-radius: 4px;
	}

	#vlike_popular_posts_widget-2 .post-detail,
	#vlike_popular_posts_widget-2 .post-info,
	#vlike_popular_posts_widget-2 .post-content,
	#vlike_popular_posts_widget-2 li > a > div,
	#vlike_popular_posts_widget-2 li > a > span:last-child {
		flex: 1;
		min-width: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 3px;
	}

	#vlike_popular_posts_widget-2 .post-title,
	#vlike_popular_posts_widget-2 .title,
	#vlike_popular_posts_widget-2 li > a > div > a,
	#vlike_popular_posts_widget-2 li > a > div > span:first-child,
	#vlike_popular_posts_widget-2 li > a > span:last-child > span:first-child {
		display: block;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.3;
		color: #e5e7eb;
		text-decoration: none;
	}

	#vlike_popular_posts_widget-2 .post-meta,
	#vlike_popular_posts_widget-2 .views,
	#vlike_popular_posts_widget-2 .meta,
	#vlike_popular_posts_widget-2 li > a > div > span:last-child,
	#vlike_popular_posts_widget-2 li > a > span:last-child > span:last-child {
		font-size: 12px;
		font-weight: 500;
		line-height: 1;
		color: #9aa8bc;
	}

	#vlike_popular_posts_widget-2 .post-title:hover,
	#vlike_popular_posts_widget-2 li > a:hover .post-title,
	#vlike_popular_posts_widget-2 li > a:hover > div > span:first-child {
		color: #f3f4f6;
	}
}

@media (max-width: 959px) {
	.sidebar {
		border-left: none;
		margin: 0;
		width: auto;
		max-width: none;
		padding: 5px var(--container-pad-x) 0;
		border-top: 1px solid var(--border-soft);
	}

	body.single .layout-with-sidebar--single {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		padding-left: 0;
		padding-right: 0;
	}

	body.single .layout-with-sidebar--single .layout-with-sidebar__content {
		order: 1;
		width: 100%;
		max-width: none;
		flex: none;
		border-right: none;
		overflow-x: visible;
	}

	body.single .layout-with-sidebar--single .more-videos {
		order: 2;
		width: 100%;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}

	body.single .layout-with-sidebar--single .sidebar {
		order: 3;
		width: 100%;
		max-width: none;
		margin-bottom: 18px;
		padding-left: 0;
		padding-right: 0;
		border-top: none;
	}

	body.single .single-video__player,
	body.single .single-video__like-panel,
	body.single .single-video__header,
	body.single .single-video__taxonomies {
		margin-left: 0;
		margin-right: 0;
		width: 100%;
		max-width: 100%;
	}

	body.single .single-video__header {
		padding-left: 10px;
		padding-right: 10px;
	}

	body.single .single-video__like-panel {
		padding-left: 0;
		padding-right: 0;
	}
}

/* --------------------------------------------------------------------------
   Single post — zero-gap OTT stack
   -------------------------------------------------------------------------- */

.layout-with-sidebar--single .layout-with-sidebar__content {
	display: block;
	min-width: 0;
}

.single-video {
	width: 100%;
	max-width: none;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--bg-elevated);
}

/* Top stack — flush left to main column edge (lower blocks keep inset gutter) */
.single-video__player,
.single-video__like-panel,
.single-video__header {
	box-sizing: border-box;
	margin-left: calc(var(--container-pad-x) * -1);
	width: calc(100% + var(--container-pad-x));
	max-width: calc(100% + var(--container-pad-x));
	padding-left: 0;
}

.single-video__player {
	position: relative;
	margin-top: 0;
	margin-right: 0;
	margin-bottom: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	overflow: hidden;
	background: var(--player-bg);
	aspect-ratio: 16 / 9;
}

.single-video__native {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--player-bg);
}

.single-video__embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	background: var(--player-bg);
}

.single-video__embed iframe,
.single-video__embed embed,
.single-video__embed object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	border: 0;
}

.single-video__fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.single-video__fallback img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-video__fallback--empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--player-bg);
}

.single-video__like-panel {
	display: flex;
	align-items: stretch;
	min-height: 47px;
	margin-top: 0;
	margin-right: 0;
	margin-bottom: 0;
	padding: 0;
	background: #0b0f17;
	border: none;
}

.single-video__like-panel .pld-like-dislike-wrap {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0;
	width: 100%;
	margin: 0 !important;
	padding: 0;
}

.single-video__like-panel .pld-common-wrap {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	min-height: 47px;
	margin: 0 !important;
	padding: 0 10px;
}

.single-video__like-panel .pld-like-wrap {
	border-right: 1px solid #1e2a3c;
}

.single-video__like-panel .pld-like-dislike-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 47px;
	padding: 8px 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #b7c2d1 !important;
	text-decoration: none;
	box-shadow: none !important;
	border: none;
	background: transparent;
	-webkit-tap-highlight-color: transparent;
}

.single-video__like-panel .pld-like-dislike-trigger i {
	font-size: 18px;
	line-height: 1;
}

.single-video__like-panel .pld-like-dislike-trigger:hover {
	color: var(--text) !important;
}

.single-video__like-panel .pld-like-dislike-trigger.pld-undo-trigger {
	color: #86befe !important;
}

.single-video__like-panel .pld-count-wrap {
	margin-left: 0;
	font-size: 15px;
	font-weight: 600;
	color: #b7c2d1 !important;
}

.single-video__like-panel .pld-like-dislike-wrap br,
.single-video__like-panel .pld-like-dislike-wrap p {
	display: none;
}

.single-video__header {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 0;
	margin-right: 0;
	margin-bottom: 0;
	padding: 8px 10px 10px 0;
	background: var(--single-bg);
	border-top: 1px solid var(--border);
}

.single-video__title {
	margin: 0 10px 5px;
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0;
	color: var(--single-title-color);
}

.single-video__meta.meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0;
	row-gap: 0;
	margin: 0 10px 5px;
	padding: 0;
}

.single-video__meta .meta-row__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	color: var(--single-meta-color);
}

.single-video__meta-pipe {
	padding: 0 7px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	color: var(--single-meta-color);
	opacity: 0.55;
}

.single-video__meta .meta-row__item .icon {
	width: 15px;
	height: 15px;
	color: var(--single-meta-color);
	opacity: 1;
}

.single-video__content {
	margin: 0;
	padding: 10px;
	font-size: 16px;
	line-height: 24px;
	color: #fff;
	background: var(--bg-elevated);
	border-top: 1px solid var(--border);
}

.single-video__content p {
	margin: 0 0 0.75em;
}

.single-video__content p:last-child {
	margin-bottom: 0;
}

.single-video__content a {
	color: var(--link-color);
	text-decoration: none;
}

.single-video__content a:hover {
	color: var(--link-hover-color);
}

.single-video__taxonomies {
	margin-left: calc(var(--container-pad-x) * -1);
	width: calc(100% + var(--container-pad-x));
	max-width: calc(100% + var(--container-pad-x));
	margin-top: 0;
	margin-right: 0;
	margin-bottom: 0;
	padding: 8px 0 10px;
	background: var(--single-bg);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	font-size: 14px;
	line-height: 20px;
	color: var(--single-meta-color);
}

.single-video__taxonomy-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 6px;
	row-gap: 5px;
	margin: 0;
	padding-left: 10px;
	padding-right: 10px;
}

.single-video__taxonomy-row + .single-video__taxonomy-row {
	margin-top: 4px;
}

.single-video__taxonomy-label {
	flex: 0 0 auto;
	color: var(--single-meta-color);
	font-weight: 500;
}

.single-video__taxonomy-items {
	display: inline-flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 6px;
	min-width: 0;
}

.single-video__tax-pill {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	max-width: 100%;
	border-radius: 999px;
	text-decoration: none;
	color: var(--pill-cat-text);
	border: 1px solid var(--pill-cat-border-color);
	background: var(--pill-cat-bg);
	line-height: 1.2;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}

.single-video__tax-pill--cat {
	gap: 5px;
	padding: 5px 11px;
	font-size: 13px;
	font-weight: 500;
}

.single-video__tax-pill--tag {
	gap: 4px;
	padding: 4px 9px;
	font-size: 12px;
	font-weight: 500;
	border-color: var(--pill-tag-border-color);
	color: var(--pill-tag-text);
	background: var(--pill-tag-bg);
}

.icon--tax-cat {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: var(--link-color);
	opacity: 1;
}

.icon--tax-tag {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	color: var(--pill-tag-text);
	opacity: 1;
}

.single-video__tax-pill:hover {
	color: #fff;
	border-color: color-mix(in srgb, var(--pill-cat-border) 62%, transparent);
	background: color-mix(in srgb, var(--pill-cat-border) 6%, transparent);
}

.single-video__tax-pill--tag:hover {
	color: #fff;
}

.single-video__tax-pill:hover .icon {
	color: var(--link-hover-color);
}

.more-videos {
	margin: 0;
	padding: 0 max(var(--container-pad-x), env(safe-area-inset-right, 0)) 5px max(var(--container-pad-x), env(safe-area-inset-left, 0));
	background: var(--bg-elevated);
}

.more-videos__title {
	margin: 0 0 5px;
	padding: 8px 10px 6px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	color: var(--text);
	background: rgba(11, 15, 23, 0.62);
	box-shadow: inset 0 1px 0 rgba(43, 58, 81, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.more-videos .posts-masonry {
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 0;
	padding-right: 0;
}

@media (min-width: 960px) {
	body.single .more-videos {
		width: var(--single-main-w);
		max-width: var(--single-main-w);
		margin-right: auto;
		margin-left: 0;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}
}

@media (max-width: 767px) {
	body.single .layout-with-sidebar--single .more-videos,
	body.single .more-videos {
		padding-left: 5px;
		padding-right: 5px;
		padding-bottom: 5px;
		box-sizing: border-box;
	}

	body.single #more-videos-title.more-videos__title {
		padding-left: 0;
		padding-right: 0;
		margin-left: -5px;
		margin-right: -5px;
		width: auto;
		text-align: center;
	}

	body.single .more-videos .video-grid,
	body.single .more-videos .posts-masonry {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 5px;
		padding: 0;
		margin: 0;
		width: 100%;
		box-sizing: border-box;
	}

	body.single .more-videos .video-card {
		width: 100% !important;
		min-width: 0;
		margin: 0 !important;
		border-radius: 0;
		box-shadow: none;
	}

	body.single .more-videos .video-card__thumb {
		aspect-ratio: 16 / 9;
	}

	body.single .more-videos .video-card__img {
		object-fit: cover;
		object-position: center;
	}

	body.single .more-videos .video-card__overlay {
		background: linear-gradient(to top, var(--thumb-overlay-gradient) 0%, transparent 45%);
	}

	body.single .more-videos .video-card__thumb-meta {
		display: flex;
		justify-content: space-between;
		align-items: flex-end;
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 3;
		gap: 4px;
		padding: 4px 5px;
		min-height: 0;
		background: none;
		pointer-events: none;
		box-sizing: border-box;
	}

	body.single .more-videos .video-card__thumb-meta-pill {
		display: inline-flex;
		align-items: center;
		gap: 3px;
		max-width: calc(50% - 2px);
		padding: 2px 5px;
		border-radius: 999px;
		background: rgba(0, 0, 0, 0.68);
		font-size: 10px;
		font-weight: 600;
		line-height: 1;
		color: #fff;
		letter-spacing: 0;
	}

	body.single .more-videos .video-card__thumb-meta-pill .icon--thumb-meta {
		flex-shrink: 0;
		width: 10px;
		height: 10px;
		color: #fff;
		opacity: 0.95;
	}

	body.single .more-videos .video-card__thumb-meta-pill span {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		min-width: 0;
	}

	body.single .more-videos .video-card__thumb-meta-pill--views {
		margin-right: auto;
	}

	body.single .more-videos .video-card__thumb-meta-pill--duration {
		margin-left: auto;
	}

	body.single .more-videos .video-card__body .meta-row {
		display: none;
	}

	body.single .more-videos .video-card__body {
		flex: 0 0 22px;
		min-height: 22px;
		max-height: 22px;
		height: 22px;
	}

	body.single .more-videos .video-card__title {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		height: 22px;
		min-height: 22px;
		max-height: 22px;
		padding: 3px 4px;
		font-size: 12px;
		font-weight: 700;
		line-height: 16px;
		text-align: center;
		border-bottom: none;
	}

	body.single .more-videos .video-card__play {
		display: none;
	}

	body.single .sidebar__widget--popular {
		padding-left: 10px;
	}
}

/* --------------------------------------------------------------------------
   Mobile-only production refinements
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	/* Fix 1 — Trending This Week header strip (single post) */
	body.single .sidebar__widget--popular .sidebar__title,
	body.single .sidebar__widget--popular .widget-title {
		margin: 0 -5px 5px;
		padding: 8px 10px 6px;
		background: rgba(11, 15, 23, 0.62);
		box-shadow: inset 0 1px 0 rgba(43, 58, 81, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
	}

	/* Fix 2 — Category/tag archive title top spacing */
	body.category .site-container--grid .archive-header,
	body.tag .site-container--grid .archive-header {
		padding-top: 8px;
	}

	/* Fix 3 — Grid video title hardening */
	.video-card__title {
		font-size: 14px !important;
		font-weight: 600 !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 1 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
		line-height: 18px !important;
		height: 28px !important;
		min-height: 26px !important;
		max-height: 28px !important;
		box-sizing: border-box !important;
		letter-spacing: 0 !important;
		margin: 0 !important;
		padding: 5px !important;
		border-bottom: 1px solid var(--card-divider) !important;
		color: var(--text) !important;
		white-space: normal !important;
		text-overflow: clip !important;
	}

	/* Fix 4 — Meta row refinement */
	.video-card .meta-row__item {
		display: inline-flex !important;
		align-items: center !important;
		gap: 4px !important;
		font-size: 14px !important;
		font-weight: 500 !important;
		line-height: 1 !important;
		color: var(--card-meta-color) !important;
	}

	/* Fix 5 — Tag pill refinement */
	.single-video__tax-pill--tag {
		gap: 4px;
		padding: 4px 9px;
		font-size: 13px;
		font-weight: 500;
		border-color: var(--pill-tag-border-color);
		color: var(--pill-tag-text);
	}

	/* Fix 6 — Single title spacing / meta cleanup (sane line-heights) */
	body.single .single-video__title {
		margin: 0 10px 4px;
		font-size: 18px;
		line-height: 1.25;
	}

	body.single .single-video__meta.meta-row {
		margin: 0 10px 6px;
		min-height: 0;
	}

	body.single .single-video__meta .meta-row__item {
		line-height: 1.2;
	}

	/* Fix 7 — Grid edge-to-edge spacing + overflow protection */
	.site-container--grid,
	.site-container--grid .video-grid-section {
		overflow-x: clip;
		overflow-x: hidden;
	}

	.site-container--grid .posts-masonry > .video-card,
	.site-container--grid .posts-masonry > article,
	.site-container--grid .video-grid > .video-card,
	.site-container--grid .video-grid > article {
		width: calc(100% + 12px) !important;
		max-width: none !important;
		float: none !important;
		margin-left: -5px !important;
		margin-right: -5px !important;
		margin-top: 0 !important;
		margin-bottom: 8px !important;
	}

	/* Preserve More Videos mobile title behavior over grid title hardening */
	body.single .more-videos .video-card__title {
		display: block !important;
		-webkit-line-clamp: unset !important;
		-webkit-box-orient: unset !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		white-space: nowrap !important;
		height: 22px !important;
		min-height: 22px !important;
		max-height: 22px !important;
		padding: 3px 4px !important;
		font-size: 12px !important;
		font-weight: 700 !important;
		line-height: 16px !important;
		text-align: center;
		border-bottom: none !important;
	}
}

@media (max-width: 639px) {
	:root {
		--container-pad-x: 10px;
	}

	.layout-with-sidebar--single .single-video {
		max-width: none;
	}

	.single-video__content {
		padding-left: 10px;
		padding-right: 10px;
	}

	.single-video__taxonomy-row {
		padding-left: 10px;
		padding-right: 10px;
	}
}

/* --------------------------------------------------------------------------
   Static pages
   -------------------------------------------------------------------------- */

.site-container--page {
	padding-top: var(--site-inset);
	padding-bottom: var(--container-pad-bottom);
}

.static-page__header {
	margin: 0 0 var(--site-inset);
}

.static-page__title {
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	margin: 0;
	color: var(--text);
}

.static-page__content {
	margin: 0;
	padding: var(--space-4);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.static-page__content p {
	margin: 0 0 0.75em;
}

.static-page__content p:last-child {
	margin-bottom: 0;
}

.static-page__content h2,
.static-page__content h3,
.static-page__content h4 {
	margin: 1.25em 0 0.5em;
	color: var(--text);
	line-height: 1.35;
}

.static-page__content ul,
.static-page__content ol {
	margin: 0 0 0.75em;
	padding-left: 1.25em;
}

.static-page__content li {
	margin: 0 0 0.35em;
}

.static-page__content a {
	color: var(--link-color);
	text-decoration: none;
}

.static-page__content a:hover {
	color: var(--link-hover-color);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.site-container--grid .pagination {
	box-sizing: border-box;
	width: calc(100% + (var(--container-pad-x) * 2));
	max-width: calc(100% + (var(--container-pad-x) * 2));
	margin-top: var(--pagination-gap-after-grid);
	margin-left: calc(var(--container-pad-x) * -1);
	margin-right: calc(var(--container-pad-x) * -1);
	margin-bottom: 0;
	padding: var(--pagination-pad-y) var(--pagination-pad-x);
	border-top: 1px solid var(--border);
}

.site-container--grid .pagination .nav-links {
	display: flex;
	flex-wrap: nowrap;
	justify-content: stretch;
	align-items: stretch;
	width: 100%;
	gap: var(--pagination-btn-gap);
	margin: 0;
	padding: 0;
}

.site-container--grid .pagination .page-numbers {
	flex: 1 1 0;
	min-width: 0;
	height: var(--pagination-btn-h);
	padding: 0 10px;
	font-size: var(--text-sm);
}

.site-container--grid .pagination .page-numbers.dots {
	display: none;
}

/* Homepage SEO description — main content flow */
.site-container--grid .home-description {
	box-sizing: border-box;
	width: calc(100% + (var(--container-pad-x) * 2));
	max-width: calc(100% + (var(--container-pad-x) * 2));
	margin-left: calc(var(--container-pad-x) * -1);
	margin-right: calc(var(--container-pad-x) * -1);
	padding: var(--site-inset);
	border-top: 1px solid var(--border);
}

.home-description h1 {
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	margin: 0 0 var(--site-inset);
	color: var(--text);
}

.home-description p {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	margin: 0;
	color: var(--text);
}

.home-description a {
	color: var(--accent-hover);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.home-description a:hover {
	color: var(--text);
}

.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--pagination-btn-gap);
	margin-top: var(--stack-sm);
	padding: 0;
}

.layout-with-sidebar__content > .video-grid-section .pagination,
.layout-with-sidebar__content > .video-grid-section .nav-links,
.layout-with-sidebar__content > section .pagination,
.layout-with-sidebar__content > section .nav-links {
	padding-left: 0;
	padding-right: 0;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--surface);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--text-muted);
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text);
}

/* --------------------------------------------------------------------------
   Footer bar
   -------------------------------------------------------------------------- */

.site-footer {
	margin-top: 0;
	background: var(--footer-bg);
	border-top: 1px solid var(--border);
	box-sizing: border-box;
	padding: 0;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 5px var(--site-inset);
	padding-left: max(var(--site-inset), env(safe-area-inset-left, 0));
	padding-right: max(var(--site-inset), env(safe-area-inset-right, 0));
	padding-bottom: max(5px, env(safe-area-inset-bottom, 0));
	font-size: 13px;
	color: var(--footer-text);
}

@media (min-width: 600px) {
	.site-footer__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.site-footer__left {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	font-size: 13px;
	font-weight: 400;
	color: var(--footer-text);
}

@media (min-width: 600px) {
	.site-footer__left {
		justify-content: flex-start;
	}
}

.site-footer__copy {
	line-height: 1.25;
}

.site-footer__name {
	font-weight: 400;
	color: var(--accent-hover);
}

.site-footer__nav {
	display: flex;
	justify-content: center;
}

@media (min-width: 600px) {
	.site-footer__nav {
		justify-content: flex-end;
	}
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 7px;
}

@media (min-width: 600px) {
	.footer-menu {
		justify-content: flex-end;
	}
}

.footer-menu a {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--footer-link);
	transition: color var(--transition);
}

.footer-menu a:hover {
	color: var(--accent-hover);
}

@media (max-width: 639px) {
	.site-footer__inner {
		flex-direction: column;
		align-items: center;
		gap: 2px;
		padding: 5px var(--container-pad-x);
		padding-left: max(var(--container-pad-x), env(safe-area-inset-left, 0));
		padding-right: max(var(--container-pad-x), env(safe-area-inset-right, 0));
		padding-bottom: max(5px, env(safe-area-inset-bottom, 0));
	}

	.site-footer__left,
	.site-footer__nav {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.site-footer__copy {
		font-size: 0.8125rem;
		line-height: 1.25;
	}

	.footer-menu {
		gap: 3px 6px;
	}

	.footer-menu a {
		font-size: 0.8125rem;
		line-height: 1.25;
	}
}

/* --------------------------------------------------------------------------
   404 & empty states
   -------------------------------------------------------------------------- */

.error-page {
	text-align: center;
	padding: var(--space-6) var(--space-3);
}

.error-page__code {
	font-size: 3rem;
	font-weight: 800;
	color: var(--accent);
	line-height: 1;
	margin-bottom: var(--space-2);
}

.error-page__message {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin-bottom: var(--space-4);
}

.error-page__link {
	display: inline-block;
	padding: 8px 20px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: var(--text);
	font-weight: 600;
	font-size: var(--text-sm);
	transition: background var(--transition);
}

.error-page__link:hover { background: var(--accent-hover); }

.no-posts {
	padding: var(--space-4);
	text-align: center;
	font-size: var(--text-sm);
	color: var(--text-muted);
}
