/**
 * KH Tube v1.1 — Premium media platform UI
 * Palette: #2563EB / #3B82F6 / #60A5FA · text #111827 · bg #F8FAFC
 */

:root {
	--kh-primary: #2563eb;
	--kh-secondary: #3b82f6;
	--kh-accent: #60a5fa;
	--kh-text: #111827;
	--kh-text-muted: #6b7280;
	--kh-bg: #f8fafc;
	--kh-surface: #ffffff;
	--kh-border: #e2e8f0;
	--kh-radius: 14px;
	--kh-radius-sm: 10px;
	--kh-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
	--kh-shadow-hover: 0 12px 28px rgba(37, 99, 235, 0.18);
	--kh-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	--kh-gap: 1.125rem;
	--kh-cols: 2;
	--kh-container: 1280px;
	--kh-container-wide: 1560px;
}

@media (min-width: 768px) { :root { --kh-cols: 3; } }
@media (min-width: 1024px) { :root { --kh-cols: 5; } }

/* Theme integration — inherit typography, neutralize harsh overrides */
body.kh-tube-active .kh-tube-theme-integrated {
	font-family: inherit;
	color: var(--kh-text);
	line-height: 1.6;
}

body.kh-tube-active .kh-tube-content-area {
	float: none;
	width: 100%;
}

.kh-tube-container {
	max-width: var(--kh-container);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.kh-tube-container--wide {
	max-width: var(--kh-container-wide);
}

.kh-tube-wrap {
	padding: 1.5rem 0 3rem;
}

.kh-tube-shortcode-wrap {
	padding: 2rem 0;
}

/* Layout */
.kh-tube-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 992px) {
	.kh-tube-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

/* Page header */
.kh-tube-page-header {
	margin-bottom: 1.75rem;
}

.kh-tube-page-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	margin: 0 0 0.35rem;
	color: var(--kh-text);
	letter-spacing: -0.02em;
}

.kh-tube-page-subtitle {
	margin: 0;
	color: var(--kh-text-muted);
	font-size: 1.05rem;
}

.kh-tube-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.kh-tube-section-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0;
	color: var(--kh-text);
	padding-left: 0.75rem;
	border-left: 4px solid var(--kh-primary);
	letter-spacing: -0.01em;
}

.kh-tube-section {
	margin-bottom: 2.75rem;
}

/* Grid */
.kh-tube-grid {
	display: grid;
	grid-template-columns: repeat(var(--kh-cols), minmax(0, 1fr));
	gap: var(--kh-gap);
}

/* Premium card */
.kh-tube-card--premium {
	background: var(--kh-surface);
	border-radius: var(--kh-radius);
	border: 1px solid var(--kh-border);
	box-shadow: var(--kh-shadow);
	overflow: hidden;
	transition: transform var(--kh-transition), box-shadow var(--kh-transition), border-color var(--kh-transition);
}

.kh-tube-card--premium:hover {
	transform: scale(1.03);
	box-shadow: var(--kh-shadow-hover);
	border-color: var(--kh-accent);
}

.kh-tube-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.kh-tube-card-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e2e8f0;
}

.kh-tube-card-thumb img,
.kh-tube-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--kh-transition);
}

.kh-tube-card--premium:hover .kh-tube-card-thumb img {
	transform: scale(1.05);
}

.kh-tube-card-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0);
	transition: background var(--kh-transition);
	pointer-events: none;
}

.kh-tube-card--premium:hover .kh-tube-card-overlay {
	background: rgba(17, 24, 39, 0.35);
}

.kh-tube-card-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	opacity: 0;
	transition: opacity var(--kh-transition);
	z-index: 2;
}

.kh-tube-card--premium:hover .kh-tube-card-play {
	opacity: 1;
}

.kh-tube-card-duration {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 3;
	background: rgba(17, 24, 39, 0.88);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 3px 7px;
	border-radius: 6px;
}

.kh-tube-card-body {
	padding: 0.75rem 0.85rem 0.95rem;
}

.kh-tube-card-title {
	font-size: 0.92rem;
	font-weight: 600;
	margin: 0 0 0.4rem;
	line-height: 1.35;
	color: var(--kh-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kh-tube-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	font-size: 0.78rem;
	color: var(--kh-text-muted);
}

.kh-tube-card-views {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.kh-tube-icon {
	flex-shrink: 0;
}

/* Slider */
.kh-tube-slider-wrap {
	margin: 0 -0.25rem;
}

.kh-tube-slider {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding: 0.35rem 0.25rem 0.75rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.kh-tube-slide {
	flex: 0 0 min(88%, 300px);
	scroll-snap-align: start;
}

.kh-tube-slide-title {
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.7rem 0.85rem;
	margin: 0;
	color: var(--kh-text);
}

/* Hero / Homepage */
.kh-tube-hero {
	background: linear-gradient(135deg, var(--kh-primary) 0%, var(--kh-secondary) 55%, var(--kh-accent) 100%);
	border-radius: var(--kh-radius);
	padding: clamp(2rem, 5vw, 3.5rem) 2rem;
	margin-bottom: 2rem;
	color: #fff;
	box-shadow: var(--kh-shadow-hover);
}

.kh-tube-hero-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	margin: 0 0 0.5rem;
	letter-spacing: -0.03em;
}

.kh-tube-hero-subtitle {
	margin: 0 0 1.25rem;
	opacity: 0.92;
	font-size: 1.1rem;
	max-width: 560px;
}

.kh-tube-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: transform var(--kh-transition), box-shadow var(--kh-transition);
}

.kh-tube-btn--primary {
	background: #fff;
	color: var(--kh-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.kh-tube-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	color: var(--kh-primary);
}

.kh-tube-category-row {
	margin-bottom: 2rem;
}

.kh-tube-category-row-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.kh-tube-category-row-head h3 {
	margin: 0;
	font-size: 1.05rem;
}

.kh-tube-category-row-head a {
	color: var(--kh-text);
	text-decoration: none;
}

.kh-tube-link-more {
	font-size: 0.875rem;
	color: var(--kh-primary);
	text-decoration: none;
	font-weight: 600;
}

/* Categories */
.kh-tube-cat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.kh-tube-cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 1rem;
	background: var(--kh-surface);
	border: 1px solid var(--kh-border);
	border-radius: 999px;
	color: var(--kh-text);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: background var(--kh-transition), border-color var(--kh-transition), color var(--kh-transition);
}

.kh-tube-cat-pill:hover {
	background: var(--kh-primary);
	border-color: var(--kh-primary);
	color: #fff;
}

.kh-tube-cat-count {
	font-size: 0.75rem;
	opacity: 0.8;
}

/* Sidebar widget system */
.kh-tube-sidebar {
	background: var(--kh-surface);
	border: 1px solid var(--kh-border);
	border-radius: var(--kh-radius);
	box-shadow: var(--kh-shadow);
}

.kh-tube-sidebar-inner {
	padding: 1.25rem;
}

@media (min-width: 992px) {
	.kh-tube-sidebar--sticky {
		position: sticky;
		top: 1.5rem;
	}
}

.kh-tube-sidebar-toggle {
	display: none;
	width: 100%;
	margin-bottom: 0.75rem;
	padding: 0.65rem;
	background: var(--kh-primary);
	color: #fff;
	border: none;
	border-radius: var(--kh-radius-sm);
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 991px) {
	.kh-tube-sidebar-toggle {
		display: block;
	}
	.kh-tube-sidebar--sticky .kh-tube-sidebar-inner {
		display: none;
	}
	.kh-tube-sidebar--sticky.is-open .kh-tube-sidebar-inner {
		display: block;
	}
}

.kh-tube-widget {
	margin-bottom: 1.35rem;
	padding-bottom: 1.35rem;
	border-bottom: 1px solid var(--kh-border);
}

.kh-tube-widget:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.kh-tube-widget-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--kh-text);
}

.kh-tube-sidebar-cats a {
	display: flex;
	justify-content: space-between;
	padding: 0.4rem 0;
	color: var(--kh-text);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color var(--kh-transition);
}

.kh-tube-sidebar-cats a:hover {
	color: var(--kh-primary);
}

.kh-tube-sidebar-cats em {
	font-style: normal;
	color: var(--kh-text-muted);
	font-size: 0.8rem;
}

.kh-tube-sidebar-ranked li {
	display: flex;
	gap: 0.65rem;
	margin-bottom: 0.65rem;
	list-style: none;
}

.kh-tube-sidebar-ranked,
.kh-tube-sidebar-latest,
.kh-tube-sidebar-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kh-tube-rank {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	background: var(--kh-primary);
	color: #fff;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kh-tube-ranked-body a {
	color: var(--kh-text);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
	display: block;
}

.kh-tube-ranked-body a:hover {
	color: var(--kh-primary);
}

.kh-tube-sidebar-meta {
	display: block;
	font-size: 0.75rem;
	color: var(--kh-text-muted);
	margin-top: 0.15rem;
}

.kh-tube-sidebar-latest a {
	display: block;
	padding: 0.35rem 0;
	color: var(--kh-text);
	text-decoration: none;
	font-size: 0.875rem;
	border-bottom: 1px dashed var(--kh-border);
}

.kh-tube-sidebar-latest a:hover {
	color: var(--kh-primary);
}

.kh-tube-sidebar-latest li:last-child a {
	border-bottom: none;
}

/* Single video */
.kh-tube-single-player {
	margin-bottom: 1.25rem;
	border-radius: var(--kh-radius);
	overflow: hidden;
	background: #0f172a;
	box-shadow: var(--kh-shadow-hover);
	border: 1px solid var(--kh-border);
}

.kh-tube-player-wrap,
.kh-tube-player-wrap .plyr {
	width: 100%;
}

.kh-tube-single-title {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 800;
	margin: 0 0 0.75rem;
	color: var(--kh-text);
	letter-spacing: -0.02em;
}

.kh-tube-single-meta-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--kh-border);
}

.kh-tube-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--kh-text-muted);
}

.kh-tube-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.kh-tube-single-cats a {
	display: inline-block;
	margin-right: 0.35rem;
	padding: 0.2rem 0.55rem;
	background: rgba(37, 99, 235, 0.08);
	color: var(--kh-primary);
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 500;
}

.kh-tube-share {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.kh-tube-share-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kh-text-muted);
}

.kh-tube-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--kh-border);
	background: var(--kh-surface);
	color: var(--kh-text);
	text-decoration: none;
	cursor: pointer;
	transition: background var(--kh-transition), color var(--kh-transition), border-color var(--kh-transition);
}

.kh-tube-share-btn:hover {
	background: var(--kh-primary);
	border-color: var(--kh-primary);
	color: #fff;
}

.kh-tube-share-btn.is-copied {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}

.kh-tube-content-label {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--kh-text);
}

.kh-tube-single-content {
	color: var(--kh-text);
	margin-bottom: 2rem;
	font-size: 1rem;
}

.kh-tube-related {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--kh-border);
}

/* Ads */
.kh-tube-ad {
	margin: 1rem 0;
	text-align: center;
	border-radius: var(--kh-radius-sm);
	overflow: hidden;
}

.kh-tube-ad-img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: var(--kh-radius-sm);
}

.kh-tube-ad-video {
	max-width: 100%;
	width: 100%;
	border-radius: var(--kh-radius-sm);
}

.kh-tube-ad-code {
	min-height: 90px;
}

/* Pagination */
.kh-tube-pagination {
	margin-top: 2rem;
	text-align: center;
}

.kh-tube-pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	margin: 0 0.12rem;
	background: var(--kh-surface);
	border: 1px solid var(--kh-border);
	color: var(--kh-text);
	text-decoration: none;
	border-radius: var(--kh-radius-sm);
	font-size: 0.875rem;
}

.kh-tube-pagination .page-numbers.current,
.kh-tube-pagination .page-numbers:hover {
	background: var(--kh-primary);
	border-color: var(--kh-primary);
	color: #fff;
}

.kh-tube-empty {
	text-align: center;
	padding: 2.5rem;
	color: var(--kh-text-muted);
	background: var(--kh-surface);
	border-radius: var(--kh-radius);
	border: 1px dashed var(--kh-border);
}

.kh-tube-wrap * {
	box-sizing: border-box;
}

/* Plyr accent */
body.kh-tube-active .plyr--full-ui input[type=range] {
	color: var(--kh-primary);
}

body.kh-tube-active .plyr__control--overlaid {
	background: var(--kh-primary);
}

/* ========== KH Tube Ultimate v1.1.1 ========== */

.kh-tube-hero--ultimate {
	position: relative;
	overflow: hidden;
	border-radius: var(--kh-radius);
	padding: clamp(2.5rem, 6vw, 4rem) 2rem;
	margin-bottom: 2rem;
	color: #fff;
}

.kh-tube-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--kh-primary) 0%, var(--kh-secondary) 50%, var(--kh-accent) 100%);
	animation: kh-hero-shift 12s ease-in-out infinite alternate;
}

@keyframes kh-hero-shift {
	from { filter: brightness(1); }
	to { filter: brightness(1.08); }
}

.kh-tube-hero--ultimate .kh-tube-hero-content {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.kh-tube-hero-icons {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-size: 1.25rem;
	opacity: 0.9;
}

.kh-tube-hero-icon {
	animation: kh-float 3s ease-in-out infinite;
}

.kh-tube-hero-icon:nth-child(2) { animation-delay: 0.4s; }
.kh-tube-hero-icon:nth-child(3) { animation-delay: 0.8s; }

@keyframes kh-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

.kh-tube-btn--secondary {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(6px);
}

.kh-tube-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.kh-tube-btn-icon {
	margin-right: 0.35rem;
}

/* Magazine featured grid */
.kh-tube-magazine-grid {
	display: grid;
	gap: var(--kh-gap);
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.kh-tube-magazine-grid {
		grid-template-columns: 1.4fr 1fr;
		grid-template-rows: auto auto;
	}
	.kh-tube-magazine-main { grid-row: 1 / 3; }
	.kh-tube-magazine-side {
		display: flex;
		flex-direction: column;
		gap: var(--kh-gap);
	}
	.kh-tube-magazine-bottom {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--kh-gap);
	}
}

.kh-tube-card--lg .kh-tube-card-title { font-size: 1.1rem; }
.kh-tube-card--lg .kh-tube-card-thumb { aspect-ratio: 16/10; }

/* Carousel */
.kh-tube-carousel {
	position: relative;
	padding: 0 2.5rem;
}

.kh-tube-carousel-viewport {
	overflow: hidden;
}

.kh-tube-carousel-track {
	display: flex;
	gap: 1rem;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.kh-tube-carousel-slide {
	flex: 0 0 min(85%, 260px);
}

.kh-tube-carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--kh-border);
	background: var(--kh-surface);
	color: var(--kh-primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--kh-shadow);
	transition: background var(--kh-transition), color var(--kh-transition);
	z-index: 2;
}

.kh-tube-carousel-nav:hover {
	background: var(--kh-primary);
	color: #fff;
}

.kh-tube-carousel-nav--prev { left: 0; }
.kh-tube-carousel-nav--next { right: 0; }

.kh-tube-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.75rem;
}

.kh-tube-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: var(--kh-border);
	cursor: pointer;
	padding: 0;
}

.kh-tube-carousel-dot.is-active {
	background: var(--kh-primary);
	width: 22px;
	border-radius: 4px;
}

/* Category horizontal rows */
.kh-tube-carousel-row {
	position: relative;
	padding: 0 2rem;
}

.kh-tube-carousel-row-track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.kh-tube-carousel-row-track::-webkit-scrollbar { display: none; }

.kh-tube-carousel-row-item {
	flex: 0 0 min(72%, 220px);
	scroll-snap-align: start;
}

.kh-tube-row-nav {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--kh-border);
	background: var(--kh-surface);
	cursor: pointer;
	z-index: 2;
}

.kh-tube-row-nav--prev { left: 0; }
.kh-tube-row-nav--next { right: 0; }

/* Latest grid density */
.kh-tube-grid--latest { --kh-cols: 2; }
@media (min-width: 768px) { .kh-tube-grid--latest { --kh-cols: 3; } }
@media (min-width: 1024px) { .kh-tube-grid--latest { --kh-cols: 4; } }
@media (min-width: 1400px) { .kh-tube-grid--latest { --kh-cols: 5; } }

/* Footer */
.kh-tube-footer {
	margin-top: 3rem;
	padding: 2.5rem 0 1.5rem;
	background: var(--kh-surface);
	border-top: 1px solid var(--kh-border);
	border-radius: var(--kh-radius) var(--kh-radius) 0 0;
}

.kh-tube-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: var(--kh-container-wide);
	margin: 0 auto;
	padding: 0 1.25rem;
}

@media (min-width: 768px) {
	.kh-tube-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.kh-tube-footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.kh-tube-footer-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--kh-text);
}

.kh-tube-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kh-tube-footer-col a {
	color: var(--kh-text-muted);
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1.8;
	transition: color var(--kh-transition);
}

.kh-tube-footer-col a:hover { color: var(--kh-primary); }

.kh-tube-footer-about,
.kh-tube-footer-signature {
	font-size: 0.875rem;
	color: var(--kh-text-muted);
	line-height: 1.6;
}

/* Description panel */
.kh-tube-description-panel {
	background: var(--kh-surface);
	border: 1px solid var(--kh-border);
	border-radius: var(--kh-radius);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	box-shadow: var(--kh-shadow);
}

.kh-tube-description-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.kh-tube-description-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--kh-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.kh-tube-description-name { display: block; color: var(--kh-text); }
.kh-tube-description-role { font-size: 0.8rem; color: var(--kh-text-muted); }

.kh-tube-description-body.is-collapsed .kh-tube-description-content {
	max-height: 120px;
	overflow: hidden;
	position: relative;
}

.kh-tube-description-body.is-collapsed .kh-tube-description-content::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48px;
	background: linear-gradient(transparent, var(--kh-surface));
}

.kh-tube-description-toggle {
	margin-top: 0.75rem;
	background: none;
	border: none;
	color: var(--kh-primary);
	font-weight: 600;
	cursor: pointer;
	font-size: 0.875rem;
}

.kh-tube-description-body:not(.is-collapsed) + .kh-tube-description-toggle .kh-tube-description-toggle-more,
.kh-tube-description-body.is-collapsed + .kh-tube-description-toggle .kh-tube-description-toggle-less {
	display: none;
}

/* Likes + single actions */
.kh-tube-single-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.kh-tube-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--kh-border);
	background: var(--kh-surface);
	color: var(--kh-text);
	cursor: pointer;
	transition: background var(--kh-transition), color var(--kh-transition), border-color var(--kh-transition);
}

.kh-tube-like-btn:hover,
.kh-tube-like-btn.is-liked {
	background: rgba(37, 99, 235, 0.1);
	border-color: var(--kh-primary);
	color: var(--kh-primary);
}

.kh-tube-single-article--ultimate {
	background: var(--kh-surface);
	border-radius: var(--kh-radius);
	border: 1px solid var(--kh-border);
	padding: 1.25rem;
	box-shadow: var(--kh-shadow);
}

.kh-tube-home-ads { margin: 1.5rem 0; }

body.kh-tube-active .kh-tube-wrap--homepage {
	background: var(--kh-bg);
}
