/* ==========================================================================
   Video Tube Pro - Dark Premium Theme Stylesheet
   ========================================================================== */

:root {
	--background: #0a0a0f;
	--surface: #14141c;
	--surface-2: #1a1a24;
	--surface-hover: #22222e;
	--text: #f0f0f5;
	--muted: #8a8a9a;
	--muted-2: #5a5a6a;
	--accent: #ff2e63;
	--accent-hover: #ff5577;
	--accent-soft: rgba(255, 46, 99, 0.12);
	--border: #26262f;
	--border-soft: #1e1e28;
	--radius: 10px;
	--radius-sm: 6px;
	--radius-lg: 16px;
	--radius-xl: 22px;
	--header-h: 60px;
	--catnav-h: 48px;
	--shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
	--transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--success: #22c55e;
	--warning: #f59e0b;
	--error: #ef4444;
	--info: #3b82f6;
	--maxw: 1440px;
}

[data-theme="light"] {
	--background: #f5f5f7;
	--surface: #ffffff;
	--surface-2: #ebebef;
	--surface-hover: #e0e0e6;
	--text: #14141c;
	--muted: #6a6a7a;
	--muted-2: #9a9aaa;
	--border: #dcdce2;
	--border-soft: #ececf0;
	--accent-soft: rgba(255, 46, 99, 0.1);
	--shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font);
	background: var(--background);
	color: var(--text);
	line-height: 1.5;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Skip link */
.vtp-skip-link {
	position: absolute; top: -100px; left: 0;
	background: var(--accent); color: #fff;
	padding: 8px 16px; z-index: 10000; border-radius: 0 0 var(--radius-sm) 0;
}
.vtp-skip-link:focus { top: 0; }

/* Layout */
.vtp-container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; width: 100%; }
.vtp-container-narrow { max-width: 720px; }
.vtp-main { padding-bottom: 80px; min-height: 60vh; }

/* ==========================================================================
   Header
   ========================================================================== */
.vtp-header {
	position: sticky; top: 0; z-index: 1000;
	background: rgba(10, 10, 15, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-soft);
}
[data-theme="light"] .vtp-header { background: rgba(255, 255, 255, 0.92); }
.vtp-header-inner {
	display: flex; align-items: center; gap: 16px;
	height: var(--header-h); max-width: var(--maxw); margin: 0 auto; padding: 0 16px;
}
.vtp-header-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.vtp-header-center { flex: 1.6; display: flex; justify-content: center; }
.vtp-header-right { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }

/* Logo */
.vtp-logo { flex-shrink: 0; }
.vtp-logo-text { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; }
.vtp-logo-icon {
	width: 28px; height: 28px; border-radius: var(--radius-sm);
	background: var(--accent);
	display: inline-flex; align-items: center; justify-content: center;
	position: relative;
}
.vtp-logo-icon::after {
	content: ''; width: 0; height: 0;
	border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
	margin-left: 2px;
}
.vtp-logo-name { letter-spacing: -0.02em; }
.custom-logo-link img { max-height: 32px; width: auto; }

/* Desktop nav */
.vtp-nav-desktop { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.vtp-nav-link {
	padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500;
	font-size: 14px; display: inline-flex; align-items: center; gap: 4px;
	transition: background var(--transition);
}
.vtp-nav-link:hover { background: var(--surface-2); color: var(--text); }
.vtp-nav-dropdown { position: relative; }
.vtp-dropdown-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); box-shadow: var(--shadow-lg);
	padding: 8px; display: flex; flex-direction: column; gap: 2px;
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: all var(--transition);
}
.vtp-nav-dropdown:hover .vtp-dropdown-menu,
.vtp-nav-dropdown:focus-within .vtp-dropdown-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.vtp-dropdown-menu a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.vtp-dropdown-menu a:hover { background: var(--surface-hover); }

/* Search */
.vtp-search { position: relative; width: 100%; max-width: 520px; display: flex; }
.vtp-search-input {
	width: 100%; height: 40px; padding: 0 44px 0 16px;
	background: var(--surface-2); border: 1px solid var(--border);
	border-radius: 20px; color: var(--text); font-size: 14px;
	transition: all var(--transition);
}
.vtp-search-input::placeholder { color: var(--muted); }
.vtp-search-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.vtp-search-btn {
	position: absolute; right: 4px; top: 4px;
	width: 32px; height: 32px; border-radius: 50%;
	background: transparent; display: flex; align-items: center; justify-content: center;
	color: var(--muted);
}
.vtp-search-btn:hover { color: var(--accent); }
.vtp-search-suggestions {
	position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); box-shadow: var(--shadow-lg);
	max-height: 400px; overflow-y: auto; z-index: 100;
	display: none;
}
.vtp-search-suggestions.open { display: block; }
.vtp-search-suggestion {
	display: flex; gap: 12px; padding: 10px 14px; align-items: center;
	border-bottom: 1px solid var(--border-soft); cursor: pointer;
}
.vtp-search-suggestion:hover { background: var(--surface-hover); }
.vtp-search-suggestion img { width: 64px; height: 36px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.vtp-search-suggestion-info { flex: 1; min-width: 0; }
.vtp-search-suggestion-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtp-search-suggestion-meta { font-size: 12px; color: var(--muted); }

/* Header right buttons */
.vtp-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 600;
	font-size: 14px; transition: all var(--transition); white-space: nowrap;
}
.vtp-btn-accent { background: var(--accent); color: #fff; }
.vtp-btn-accent:hover { background: var(--accent-hover); color: #fff; }
.vtp-btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.vtp-btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.vtp-btn-lg { padding: 12px 24px; font-size: 15px; }
.vtp-icon-btn {
	width: 40px; height: 40px; border-radius: 50%;
	background: transparent; display: flex; align-items: center; justify-content: center;
	color: var(--muted); position: relative; transition: all var(--transition);
}
.vtp-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.vtp-badge {
	position: absolute; top: 6px; right: 6px;
	min-width: 8px; height: 8px; border-radius: 50%;
	background: var(--accent);
}
.vtp-upload-btn { font-size: 14px; }
.vtp-avatar { border-radius: 50%; object-fit: cover; }
.vtp-avatar-mini { border-radius: 50%; object-fit: cover; }
.vtp-account { position: relative; }
.vtp-account-btn {
	display: flex; align-items: center; gap: 6px; padding: 4px 8px;
	border-radius: 20px; transition: background var(--transition);
}
.vtp-account-btn:hover { background: var(--surface-2); }
.vtp-account-menu {
	position: absolute; top: 100%; right: 0; margin-top: 6px;
	min-width: 220px; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: all var(--transition); z-index: 200;
	display: flex; flex-direction: column; gap: 2px;
}
.vtp-account:hover .vtp-account-menu,
.vtp-account:focus-within .vtp-account-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.vtp-account-info { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.vtp-account-info small { color: var(--muted); font-size: 12px; }
.vtp-account-menu a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.vtp-account-menu a:hover { background: var(--surface-hover); }

/* Hamburger */
.vtp-hamburger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.vtp-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* Category nav */
.vtp-category-nav { border-bottom: 1px solid var(--border-soft); background: var(--background); }
.vtp-category-nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.vtp-cat-list { display: flex; gap: 4px; height: var(--catnav-h); align-items: center; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vtp-cat-list::-webkit-scrollbar { display: none; }
.vtp-cat-list li { flex-shrink: 0; }
.vtp-cat-list a {
	display: block; padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 500;
	color: var(--muted); white-space: nowrap; transition: all var(--transition);
}
.vtp-cat-list a:hover, .vtp-cat-list a.active { background: var(--surface-2); color: var(--text); }
.vtp-cat-list a.active { color: var(--accent); background: var(--accent-soft); }

/* Mobile nav */
.vtp-mobile-nav {
	position: fixed; top: 0; left: -300px; width: 300px; height: 100vh;
	background: var(--surface); z-index: 1100; overflow-y: auto;
	transition: left 0.3s ease; border-right: 1px solid var(--border);
	padding: 16px;
}
.vtp-mobile-nav.open { left: 0; }
.vtp-mobile-nav-header { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); margin-bottom: 16px; }
.vtp-mobile-nav-header > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vtp-mobile-nav-header small { color: var(--muted); font-size: 12px; }
.vtp-mobile-nav-close { font-size: 28px; line-height: 1; color: var(--muted); padding: 4px 8px; }
.vtp-mobile-nav nav { display: flex; flex-direction: column; gap: 2px; }
.vtp-mobile-nav nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; }
.vtp-mobile-nav nav a:hover { background: var(--surface-hover); }
.vtp-mobile-nav nav hr { border: none; border-top: 1px solid var(--border-soft); margin: 12px 0; }
.vtp-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1050;
	opacity: 0; visibility: hidden; transition: all var(--transition);
}
.vtp-overlay.open { opacity: 1; visibility: visible; }

/* ==========================================================================
   Sections
   ========================================================================== */
.vtp-home { padding-top: 24px; }
.vtp-section { margin-bottom: 48px; }
.vtp-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.vtp-section-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.vtp-section-title::before { content: ''; width: 4px; height: 22px; background: var(--accent); border-radius: 2px; }
.vtp-section-link { font-size: 14px; color: var(--muted); font-weight: 500; }
.vtp-section-link:hover { color: var(--accent); }
.vtp-page-header { margin: 24px 0 20px; }
.vtp-page-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }

/* Featured carousel */
.vtp-featured-carousel {
	display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none;
	-webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
	padding-bottom: 8px;
}
.vtp-featured-carousel::-webkit-scrollbar { display: none; }
.vtp-featured-carousel .video-card-featured { min-width: 340px; max-width: 420px; scroll-snap-align: start; }

/* ==========================================================================
   Video Grid & Cards
   ========================================================================== */
.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.video-card {
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	overflow: hidden;
	transition: all var(--transition);
	cursor: pointer;
}
.video-card:hover {
	border-color: var(--border);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}
.video-card-thumb { display: block; }
.video-card-media {
	position: relative; aspect-ratio: 16 / 9; background: var(--surface-2);
	overflow: hidden;
}
.video-card-poster {
	width: 100%; height: 100%; object-fit: cover;
	transition: opacity var(--transition);
}
.video-card-preview {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; opacity: 0; transition: opacity 0.3s ease;
	background: var(--surface-2);
}
.video-card.preview-active .video-card-preview { opacity: 1; }
.video-card.preview-active .video-card-poster { opacity: 0; }
.video-card-duration {
	position: absolute; bottom: 8px; right: 8px;
	background: rgba(0, 0, 0, 0.82); color: #fff;
	padding: 2px 7px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.video-card-badge {
	position: absolute; top: 8px; left: 8px;
	background: var(--accent); color: #fff;
	padding: 3px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.04em;
}
.video-card-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
	width: 50px; height: 50px; border-radius: 50%;
	background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
	display: flex; align-items: center; justify-content: center;
	color: #fff; opacity: 0; transition: all var(--transition);
}
.video-card:hover .video-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card-play i { font-size: 22px; margin-left: 3px; }
.video-card-info { padding: 12px 14px 14px; }
.video-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card-title a { color: var(--text); }
.video-card-title a:hover { color: var(--accent); }
.video-card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.video-card-author { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.video-card-author:hover { color: var(--accent); }
.video-card-stats { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.video-card-dot { font-size: 10px; opacity: 0.5; }
.video-card-cat {
	display: inline-block; margin-top: 8px; font-size: 11px; color: var(--accent);
	text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.video-card-overlay {
	position: absolute; bottom: 0; left: 0; right: 0;
	background: linear-gradient(transparent, rgba(0,0,0,0.85));
	padding: 16px 14px 12px; opacity: 0; transition: opacity var(--transition);
}
.video-card-featured .video-card-overlay { opacity: 1; }
.video-card-overlay-title { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.video-card-overlay .video-card-stats { color: rgba(255,255,255,0.8); }

/* ==========================================================================
   Single Video Page
   ========================================================================== */
.vtp-single-container { padding: 24px 16px; }
.vtp-single-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.vtp-single-title { font-size: 24px; font-weight: 700; margin: 16px 0 12px; letter-spacing: -0.02em; }
.vtp-single-meta {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	padding-bottom: 16px; border-bottom: 1px solid var(--border-soft);
}
.vtp-meta-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.vtp-meta-left i { font-size: 16px; }
.vtp-meta-cat { background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.vtp-meta-duration { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.vtp-meta-source { font-size: 13px; color: var(--muted); }
.vtp-meta-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vtp-vote-group { display: flex; background: var(--surface-2); border-radius: 20px; overflow: hidden; }
.vtp-vote-btn {
	display: flex; align-items: center; gap: 6px; padding: 8px 14px;
	background: transparent; color: var(--text); font-size: 14px; font-weight: 600;
	transition: all var(--transition);
}
.vtp-vote-btn:hover:not(:disabled) { background: var(--surface-hover); }
.vtp-vote-btn.vtp-like-btn:hover:not(:disabled) { color: var(--success); }
.vtp-vote-btn.vtp-dislike-btn:hover:not(:disabled) { color: var(--error); }
.vtp-vote-btn.voted { opacity: 0.6; }
.vtp-vote-btn.vtp-like-btn.voted { color: var(--success); }
.vtp-vote-btn.vtp-dislike-btn.voted { color: var(--error); }
.vtp-vote-btn:disabled { cursor: default; }
.vtp-action-btn {
	display: flex; align-items: center; gap: 6px; padding: 8px 14px;
	background: var(--surface-2); border-radius: 20px; font-size: 14px; font-weight: 500;
	color: var(--text); transition: all var(--transition);
}
.vtp-action-btn:hover { background: var(--surface-hover); }

/* Author */
.vtp-single-author {
	display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border-soft);
}
.vtp-author-info { display: flex; flex-direction: column; gap: 2px; }
.vtp-author-name { font-weight: 600; font-size: 15px; }
.vtp-author-name:hover { color: var(--accent); }
.vtp-author-info small { color: var(--muted); font-size: 12px; }

/* Description */
.vtp-single-description { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.vtp-desc-toggle { font-size: 14px; font-weight: 600; margin-bottom: 8px; cursor: pointer; }
.vtp-desc-content { color: var(--text); font-size: 14px; line-height: 1.6; }
.vtp-desc-content p { margin-bottom: 10px; }

/* Tags */
.vtp-single-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }

/* CTA button section */
.vtp-cta-section { padding: 20px 0; border-bottom: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.vtp-cta-button { font-size: 16px; padding: 14px 32px; border-radius: var(--radius); box-shadow: 0 4px 16px var(--accent-soft); }
.vtp-cta-button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 46, 99, 0.3); }
.vtp-cta-source { font-size: 13px; color: var(--muted); }
.vtp-player-no-video { display: flex; align-items: center; justify-content: center; }
.vtp-player-poster-fallback { width: 100%; height: 100%; object-fit: cover; }
.vtp-tag {
	padding: 4px 12px; background: var(--surface-2); border-radius: 14px;
	font-size: 13px; color: var(--muted); transition: all var(--transition);
}
.vtp-tag:hover { background: var(--accent-soft); color: var(--accent); }

/* ==========================================================================
   Video Player
   ========================================================================== */
.vtp-player-wrapper { margin-bottom: 16px; }
.vtp-player-container {
	position: relative; aspect-ratio: 16 / 9; background: #000;
	border-radius: var(--radius-lg); overflow: hidden;
}
.vtp-player-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.vtp-player-overlay {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,0.25); transition: opacity var(--transition); cursor: pointer;
}
.vtp-player-overlay.hidden { opacity: 0; pointer-events: none; }
.vtp-player-bigplay {
	width: 72px; height: 72px; border-radius: 50%;
	background: var(--accent); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 28px; transition: all var(--transition);
	box-shadow: 0 6px 20px rgba(255, 46, 99, 0.4);
}
.vtp-player-bigplay:hover { transform: scale(1.08); background: var(--accent-hover); }
.vtp-player-bigplay i { margin-left: 4px; }

.vtp-player-controls {
	position: absolute; bottom: 0; left: 0; right: 0;
	background: linear-gradient(transparent, rgba(0,0,0,0.85));
	padding: 30px 12px 10px; opacity: 0; transition: opacity var(--transition);
}
.vtp-player-container:hover .vtp-player-controls,
.vtp-player-container.show-controls .vtp-player-controls { opacity: 1; }
.vtp-player-progress {
	position: relative; height: 5px; background: rgba(255,255,255,0.2);
	border-radius: 3px; cursor: pointer; margin-bottom: 10px; transition: height 0.15s;
}
.vtp-player-progress:hover { height: 7px; }
.vtp-player-progress-buffered {
	position: absolute; top: 0; left: 0; height: 100%;
	background: rgba(255,255,255,0.25); border-radius: 3px; width: 0;
}
.vtp-player-progress-filled {
	position: absolute; top: 0; left: 0; height: 100%;
	background: var(--accent); border-radius: 3px; width: 0;
}
.vtp-player-progress-handle {
	position: absolute; top: 50%; left: 0; width: 13px; height: 13px;
	background: var(--accent); border-radius: 50%; transform: translate(-50%, -50%);
	opacity: 0; transition: opacity 0.15s;
}
.vtp-player-progress:hover .vtp-player-progress-handle { opacity: 1; }
.vtp-player-buttons { display: flex; align-items: center; justify-content: space-between; }
.vtp-player-left, .vtp-player-right { display: flex; align-items: center; gap: 6px; }
.vtp-player-btn {
	width: 34px; height: 34px; border-radius: 50%; color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 16px;
	transition: all var(--transition);
}
.vtp-player-btn:hover { background: rgba(255,255,255,0.15); }
.vtp-player-volume { display: flex; align-items: center; gap: 4px; }
.vtp-player-volume-slider {
	width: 70px; height: 4px; -webkit-appearance: none; appearance: none;
	background: rgba(255,255,255,0.3); border-radius: 2px; cursor: pointer;
}
.vtp-player-volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: #fff; border-radius: 50%; }
.vtp-player-volume-slider::-moz-range-thumb { width: 12px; height: 12px; background: #fff; border-radius: 50%; border: none; }
.vtp-player-time { color: #fff; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; padding: 0 6px; }

/* ==========================================================================
   Related Videos
   ========================================================================== */
.vtp-related { position: sticky; top: calc(var(--header-h) + var(--catnav-h) + 16px); }
.vtp-related-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.vtp-related-list { display: flex; flex-direction: column; gap: 12px; max-height: 80vh; overflow-y: auto; scrollbar-width: thin; }
.vtp-related-card { display: flex; gap: 10px; transition: all var(--transition); }
.vtp-related-thumb { position: relative; flex-shrink: 0; width: 130px; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.vtp-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vtp-related-info { flex: 1; min-width: 0; }
.vtp-related-card-title { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vtp-related-card-title a { color: var(--text); }
.vtp-related-card-title a:hover { color: var(--accent); }
.vtp-related-stats, .vtp-related-date { font-size: 12px; color: var(--muted); }

/* ==========================================================================
   Sort bar
   ========================================================================== */
.vtp-sort-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 20px; }
.vtp-sort-link {
	padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 500;
	background: var(--surface-2); color: var(--muted); transition: all var(--transition);
}
.vtp-sort-link:hover { color: var(--text); background: var(--surface-hover); }
.vtp-sort-link.active { background: var(--accent); color: #fff; }

/* Taxonomy header */
.vtp-tax-header .vtp-tax-desc { color: var(--muted); margin-bottom: 8px; }
.vtp-tax-meta { margin-bottom: 8px; }
.vtp-tax-count { font-size: 14px; color: var(--muted); }

/* Search */
.vtp-search-large { display: flex; gap: 8px; margin: 12px 0; max-width: 600px; }
.vtp-search-input-large {
	flex: 1; height: 48px; padding: 0 16px;
	background: var(--surface-2); border: 1px solid var(--border);
	border-radius: var(--radius); color: var(--text); font-size: 15px;
}
.vtp-search-input-large:focus { border-color: var(--accent); outline: none; }
.vtp-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.vtp-empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* 404 */
.vtp-404 { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.vtp-404-code { font-size: 96px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.vtp-404-text { color: var(--muted); margin-bottom: 24px; font-size: 16px; }
.vtp-404 .vtp-search-large { margin: 0 auto 24px; }
.vtp-404 .vtp-btn-ghost { display: inline-block; }

/* Author page */
.vtp-author-header { display: flex; align-items: center; gap: 20px; margin: 32px 0 24px; padding: 24px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
.vtp-author-avatar { border-radius: 50%; object-fit: cover; }
.vtp-author-meta { flex: 1; }
.vtp-author-bio { color: var(--muted); margin: 8px 0; }
.vtp-author-stats { color: var(--muted); font-size: 14px; }

/* Pagination */
.vtp-pagination { display: flex; justify-content: center; margin: 32px 0; }
.vtp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; margin: 0 3px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-weight: 500; font-size: 14px; transition: all var(--transition); }
.vtp-pagination .page-numbers:hover { background: var(--surface-hover); }
.vtp-pagination .page-numbers.current { background: var(--accent); color: #fff; }

/* ==========================================================================
   Comments
   ========================================================================== */
.vtp-comments { margin: 32px 0; }
.vtp-comments-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.vtp-comment-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.vtp-comment { padding-bottom: 0; }
.vtp-comment-inner { display: flex; gap: 12px; }
.vtp-comment-body { flex: 1; }
.vtp-comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.vtp-comment-author { font-weight: 600; font-size: 14px; }
.vtp-comment-date { color: var(--muted); font-size: 12px; }
.vtp-comment-content { font-size: 14px; line-height: 1.5; color: var(--text); }
.vtp-comment-content p { margin-bottom: 8px; }
.vtp-comment-pending { color: var(--warning); font-style: italic; margin-bottom: 6px; }
.vtp-comment-actions { margin-top: 8px; }
.vtp-comment-actions a { font-size: 13px; color: var(--muted); }
.vtp-comment-actions a:hover { color: var(--accent); }
.vtp-comment-form { margin-top: 24px; }
.vtp-comment-textarea { margin-bottom: 12px; }
.vtp-comment-textarea label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.vtp-comment-textarea textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 12px; resize: vertical; }
.vtp-comment-textarea textarea:focus { border-color: var(--accent); outline: none; }
.vtp-comment-form .vtp-btn { margin-top: 8px; }

/* ==========================================================================
   Upload page
   ========================================================================== */
.vtp-upload-page { padding: 24px 16px; }
.vtp-upload-form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.vtp-form-row { display: flex; flex-direction: column; gap: 6px; }
.vtp-form-row label { font-weight: 600; font-size: 14px; }
.vtp-form-row .required { color: var(--accent); }
.vtp-form-row input[type="text"], .vtp-form-row input[type="url"], .vtp-form-row textarea, .vtp-form-row select {
	background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
	color: var(--text); padding: 12px; transition: border var(--transition);
}
.vtp-form-row input:focus, .vtp-form-row textarea:focus, .vtp-form-row select:focus { border-color: var(--accent); outline: none; }
.vtp-form-row small { color: var(--muted); font-size: 12px; }
.vtp-media-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vtp-alert { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; margin-top: 24px; }
.vtp-alert p { margin-bottom: 16px; color: var(--muted); }
.vtp-muted { color: var(--muted); font-size: 13px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.vtp-footer { background: var(--surface); border-top: 1px solid var(--border-soft); padding: 48px 0 80px; }
.vtp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.vtp-footer-brand .vtp-footer-desc { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 300px; }
.vtp-footer-links { display: flex; flex-direction: column; gap: 8px; }
.vtp-footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.vtp-footer-links a { font-size: 13px; color: var(--muted); }
.vtp-footer-links a:hover { color: var(--accent); }
.vtp-footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 20px; text-align: center; }
.vtp-footer-bottom p { font-size: 13px; color: var(--muted); }

/* Mobile bottom nav */
.vtp-mobile-bottom-nav {
	display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
	background: rgba(20, 20, 28, 0.96); backdrop-filter: blur(12px);
	border-top: 1px solid var(--border-soft);
	padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
	justify-content: space-around; align-items: center;
}
[data-theme="light"] .vtp-mobile-bottom-nav { background: rgba(255,255,255,0.96); }
.vtp-mbn-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; color: var(--muted); font-size: 11px; flex: 1; }
.vtp-mbn-item i { font-size: 20px; }
.vtp-mbn-item:active, .vtp-mbn-item.active { color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large desktop 1440px+ */
@media (min-width: 1440px) {
	.video-grid { grid-template-columns: repeat(5, 1fr); }
	:root { --maxw: 1600px; }
}

/* Desktop 1280px */
@media (min-width: 1280px) and (max-width: 1439px) {
	.video-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Large 1024px+ */
@media (min-width: 1024px) and (max-width: 1279px) {
	.video-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
	.video-grid { grid-template-columns: repeat(3, 1fr); }
	.vtp-single-layout { grid-template-columns: 1fr; }
	.vtp-single-sidebar { margin-top: 32px; }
	.vtp-related { position: static; }
	.vtp-related-list { flex-direction: row; flex-wrap: wrap; max-height: none; }
	.vtp-related-card { width: calc(33.33% - 8px); }
	.vtp-footer-grid { grid-template-columns: 1fr 1fr; }
	.vtp-nav-desktop { display: none; }
}

/* Mobile - hide desktop nav, show hamburger */
@media (max-width: 768px) {
	:root { --header-h: 56px; }
	.vtp-header-center { display: none; }
	.vtp-nav-desktop { display: none; }
	.vtp-hamburger { display: flex; }
	.vtp-header-left { gap: 8px; }
	.vtp-header-right .vtp-upload-btn span,
	.vtp-account-btn span { display: none; }
	.vtp-notifications-btn { display: none; }
	.vtp-upload-btn { padding: 8px; }
	.vtp-upload-btn i { margin: 0; }
	.vtp-account-btn { padding: 4px; }

	.vtp-single-layout { grid-template-columns: 1fr; }
	.vtp-single-sidebar { margin-top: 32px; }
	.vtp-related { position: static; }
	.vtp-related-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 12px; }
	.vtp-related-list::-webkit-scrollbar { display: none; }
	.vtp-related-card { flex-shrink: 0; width: 240px; }
	.vtp-related-thumb { width: 240px; }

	.video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.vtp-section { margin-bottom: 32px; }
	.vtp-section-title { font-size: 18px; }
	.vtp-page-title { font-size: 22px; }
	.vtp-single-title { font-size: 18px; }
	.vtp-single-meta { flex-direction: column; align-items: flex-start; }

	.vtp-footer { padding-bottom: 88px; }
	.vtp-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
	.vtp-footer-brand { grid-column: 1 / -1; }

	.vtp-mobile-bottom-nav { display: flex; }
	.vtp-main { padding-bottom: 76px; }

	.vtp-author-header { flex-direction: column; text-align: center; padding: 20px; }
	.vtp-featured-carousel .video-card-featured { min-width: 280px; }
}

/* Small mobile */
@media (max-width: 480px) {
	.video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.video-card-info { padding: 8px 10px 10px; }
	.video-card-title { font-size: 13px; }
	.video-card-author span { display: none; }
	.vtp-container { padding: 0 10px; }
	.vtp-section-title { font-size: 16px; }
	.vtp-page-title { font-size: 20px; }
	.vtp-player-container { border-radius: var(--radius); }
	.vtp-player-bigplay { width: 60px; height: 60px; font-size: 22px; }
	.vtp-related-card { width: 200px; }
	.vtp-related-thumb { width: 200px; }
	.vtp-footer-grid { grid-template-columns: 1fr; }
	.vtp-search-large { flex-direction: column; }
}

/* Very small */
@media (max-width: 360px) {
	.video-grid { grid-template-columns: 1fr; }
	.video-card-media { aspect-ratio: 16 / 9; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.video-card:hover { transform: none; }
	.video-card-preview { display: none !important; }
}

/* Icons fallback (lucide font) */
[class^="icon-"], [class*=" icon-"] { font-style: normal; display: inline-flex; }
