/**
 * KH Tube v1.4 — Premium palette, readability, platform shell
 */

:root,
body.kh-tube-v14 {
	--kh-primary: #1d4ed8;
	--kh-secondary: #2563eb;
	--kh-accent: #60a5fa;
	--kh-bg: #0b0f19;
	--kh-surface: #151b2d;
	--kh-card: #151b2d;
	--kh-text: #f3f4f6;
	--kh-text-muted: #d1d5db;
	--kh-text-strong: #ffffff;
	--kh-border: rgba(96, 165, 250, 0.16);
	--kh-glow: rgba(29, 78, 216, 0.4);
}

body.kh-tube-v14 {
	background: var(--kh-bg);
	color: var(--kh-text);
}

body.kh-tube-v14 .kh-tube-section-title,
body.kh-tube-v14 .kh-tube-page-title,
body.kh-tube-v14 .kh-tube-hero-title,
body.kh-tube-v14 .kh-tube-single-title,
body.kh-tube-v14 .kh-tube-card-title,
body.kh-tube-v14 .kh-tube-widget-title,
body.kh-tube-v14 .kh-tube-footer-title {
	color: var(--kh-text-strong);
	font-weight: 800;
	letter-spacing: -0.02em;
}

body.kh-tube-v14 .kh-tube-page-subtitle,
body.kh-tube-v14 .kh-tube-hero-subtitle,
body.kh-tube-v14 .kh-tube-card-meta,
body.kh-tube-v14 .kh-tube-meta-pill,
body.kh-tube-v14 .kh-tube-footer--v12 a,
body.kh-tube-v14 .kh-tube-description-content {
	color: var(--kh-text-muted);
}

body.kh-tube-v14 .kh-tube-card--v13 .kh-tube-card-title,
body.kh-tube-v14 .kh-tube-card--stream .kh-tube-card-title {
	color: var(--kh-text-strong);
	font-size: 1rem;
	line-height: 1.4;
}

body.kh-tube-v14 .kh-tube-card--v13:hover {
	transform: translateY(-5px) scale(1.015);
	box-shadow: 0 16px 40px var(--kh-glow);
	border-color: var(--kh-accent);
}

body.kh-tube-v14 .kh-tube-card-duration {
	background: rgba(0, 0, 0, 0.82);
	color: #fff;
	font-weight: 800;
}

body.kh-tube-v14 .kh-tube-card-views {
	color: var(--kh-text);
	font-weight: 700;
}

/* Platform shell */
.kh-tube-platform-shell {
	padding: 0 0 2rem;
}

body.kh-tube-platform-home .entry-header,
body.kh-tube-platform-home .page-title,
body.kh-tube-platform-home .hero-section {
	display: none !important;
}

body.kh-tube-platform .kh-tube-platform-header {
	margin-bottom: 0;
}

.kh-tube-homepage--v14 .kh-tube-section {
	margin-bottom: 2.5rem;
}

.kh-tube-section--homepage-slider,
.kh-tube-section--category-slider {
	margin-bottom: 2rem;
}

/* Blocksy content spacing */
body.kh-tube-blocksy.kh-tube-platform .site-main,
body.kh-tube-blocksy.kh-tube-platform #main {
	padding-top: 0;
}

body.kh-tube-blocksy-header .ct-header,
body.kh-tube-blocksy-header #header,
body.kh-tube-blocksy-header [data-id="header"],
body.kh-tube-blocksy-header .site-header {
	display: none !important;
}

body.kh-tube-blocksy-footer .ct-footer,
body.kh-tube-blocksy-footer #footer,
body.kh-tube-blocksy-footer [data-id="footer"],
body.kh-tube-blocksy-footer .site-footer {
	display: none !important;
}

/* Hero & buttons v1.4 */
.kh-tube-hero--v12-compact .kh-tube-hero-title {
	color: var(--kh-text-strong);
}

.kh-tube-hero--v12-compact .kh-tube-hero-subtitle {
	color: var(--kh-text-muted);
}

.kh-tube-btn--primary {
	background: linear-gradient(135deg, var(--kh-primary), var(--kh-secondary));
	color: #fff;
	font-weight: 800;
}

.kh-tube-btn--outline {
	color: var(--kh-text-strong);
	border-color: var(--kh-border);
}

/* Section heads */
.kh-tube-section-head--v12 .kh-tube-section-title {
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.kh-tube-section-accent {
	box-shadow: 0 0 16px var(--kh-glow);
}

/* Sidebar on platform pages */
.kh-tube-sidebar--v12 {
	background: var(--kh-surface);
	border: 1px solid var(--kh-border);
}

.kh-tube-sidebar--v12 .kh-tube-widget-title {
	color: var(--kh-text-strong);
}

.kh-tube-sidebar-ranked a,
.kh-tube-sidebar-latest a {
	color: var(--kh-text);
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	body.kh-tube-v14 .kh-tube-card--v13:hover {
		transform: none;
	}
}
