/*! VidStream theme — dark video UI (fully local assets) */

/*
 * Self-hosted Roboto. Put the following files into /assets/fonts/:
 *   roboto-400.woff2
 *   roboto-500.woff2
 * Nothing is ever requested from Google — the font is served from
 * your own domain.
 */
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local("Roboto"), local("Roboto-Regular"),
	     url("../fonts/roboto-400.woff2") format("woff2");
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: local("Roboto Medium"), local("Roboto-Medium"),
	     url("../fonts/roboto-500.woff2") format("woff2");
}

/* ===== Theming tokens ===== */
:root,
[data-theme="dark"] {
	--bg:            #020408;
	--bg-2:          #0a0d13;
	--overlay-5:     rgba(255,255,255,.05);
	--overlay-10:    rgba(255,255,255,.10);
	--overlay-15:    rgba(255,255,255,.15);
	--text:          #d8dce0;
	--text-clear:    #fff;
	--text-dim:      #8a8f98;
	--text-dim-2:    #6b6f78;
	--header-bg:     rgba(2,4,8,.78);
	--header-bg-scroll: rgba(2,4,8,.92);
	--sidebar-bg:    rgba(2,4,8,.94);
	--accent:        #ff3c78;
}
[data-theme="light"] {
	--bg:            #f6f7f9;
	--bg-2:          #ffffff;
	--overlay-5:     rgba(0,0,0,.05);
	--overlay-10:    rgba(0,0,0,.10);
	--overlay-15:    rgba(0,0,0,.15);
	--text:          #262a30;
	--text-clear:    #0b0d12;
	--text-dim:      #5a616b;
	--text-dim-2:    #868c95;
	--header-bg:     rgba(255,255,255,.78);
	--header-bg-scroll: rgba(255,255,255,.92);
	--sidebar-bg:    rgba(255,255,255,.96);
	--accent:        #e91e63;
}
@media (prefers-color-scheme: light) {
	:root:not([data-theme]) {
		--bg:            #f6f7f9;
		--bg-2:          #ffffff;
		--overlay-5:     rgba(0,0,0,.05);
		--overlay-10:    rgba(0,0,0,.10);
		--overlay-15:    rgba(0,0,0,.15);
		--text:          #262a30;
		--text-clear:    #0b0d12;
		--text-dim:      #5a616b;
		--text-dim-2:    #868c95;
		--header-bg:     rgba(255,255,255,.78);
		--header-bg-scroll: rgba(255,255,255,.92);
		--sidebar-bg:    rgba(255,255,255,.96);
		--accent:        #e91e63;
	}
}

:root {
	--radius-12:     12px;
	--radius-8:      8px;
	--header-h:      48px;
	--sidebar-w:     56px;
	--sidebar-w-exp: 240px;
	--gap:           16px;
	--font:          "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
	                 Helvetica, Arial, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #3ea6ff; outline-offset: 2px; }

/* ===== Layout skeleton ===== */
.vs-app { min-height: 100vh; }

/* ===== Header ===== */
.vs-header {
	position: fixed;
	inset: 0 0 auto 0;
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	z-index: 1000;
	backdrop-filter: blur(10px);
	background: var(--header-bg);
	transition: background .3s;
	border-bottom: 1px solid var(--overlay-5);
}
.vs-header .vs-logo { display: inline-flex; padding: 0 8px; align-items: center; }
.vs-header .vs-logo img { height: 28px; width: auto; }

.vs-spacer { flex: 1; }

.vs-icon-btn {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	color: var(--text);
	transition: background .15s, color .15s;
}
.vs-icon-btn:hover { background: var(--overlay-5); color: var(--text-clear); }

.vs-search {
	display: none;
	align-items: center;
	background: var(--overlay-5);
	border-radius: 999px;
	padding: 0 14px 0 10px;
	height: 36px;
	min-width: 220px;
	max-width: 420px;
	flex: 0 1 360px;
}
.vs-search-label { display: flex; align-items: center; gap: 8px; width: 100%; }
.vs-search-icon { color: var(--text-dim); flex-shrink: 0; }
.vs-search input {
	background: transparent;
	border: 0;
	outline: 0;
	flex: 1;
	color: var(--text-clear);
	height: 100%;
	font-size: 14px;
}
@media (min-width: 768px) { .vs-search { display: flex; } }

.vs-user-btn {
	width: 40px; height: 40px;
	border-radius: 50%;
	overflow: hidden;
	display: inline-flex;
}
.vs-user-avatar, .vs-user-btn img { width: 32px; height: 32px; border-radius: 50%; margin: auto; }

/* ===== Sidebar (icon-only by default, expands on hover) ===== */
.vs-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	width: var(--sidebar-w);
	padding-top: var(--header-h);
	background: var(--sidebar-bg);
	border-right: 1px solid var(--overlay-10);
	overflow: hidden;
	z-index: 900;
	transition: width .2s ease, box-shadow .2s;
}
.vs-sidebar:hover,
.vs-sidebar.is-open {
	width: var(--sidebar-w-exp);
	overflow-y: auto;
	box-shadow: 6px 0 24px rgba(0,0,0,.35);
}

.vs-sidebar-inner {
	display: flex; flex-direction: column;
	min-height: 100%;
	padding: 10px 6px 16px;
}
.vs-nav { display: flex; flex-direction: column; gap: 2px; }
.vs-nav-item {
	position: relative;
	display: flex; align-items: center; gap: 16px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--radius-12);
	color: var(--text);
	white-space: nowrap;
	transition: background .12s, color .12s;
}
.vs-nav-item:hover { background: var(--overlay-5); color: var(--text-clear); }
.vs-nav-item.is-active { background: var(--overlay-10); color: var(--text-clear); }
.vs-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
/* Text is removed from layout when sidebar is collapsed — otherwise
   the flex gap keeps reserving space for it and the icon is pushed
   off-screen when the sidebar is only 56px wide. */
.vs-sidebar:not(:hover):not(.is-open) .vs-nav-item span { display: none; }
.vs-sidebar:not(:hover):not(.is-open) .vs-nav-item {
	justify-content: center;
	padding: 0;
}

.vs-sidebar:not(:hover):not(.is-open) .vs-footer-links,
.vs-sidebar:not(:hover):not(.is-open) .vs-copyright {
	opacity: 0;
}

.vs-footer-links {
	margin-top: auto;
	padding: 16px 14px 8px;
	display: flex; flex-wrap: wrap; gap: 10px;
	font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
	transition: opacity .15s;
}
.vs-footer-links a { color: var(--text-dim); transition: color .12s; }
.vs-footer-links a:hover { color: var(--text-clear); }
.vs-copyright { padding: 8px 14px 0; color: var(--text-dim-2); font-size: 11px; transition: opacity .15s; }

.vs-sidebar-backdrop {
	position: fixed; inset: 0;
	background: rgba(0,0,0,.5);
	opacity: 0; pointer-events: none;
	transition: opacity .2s;
	z-index: 850;
}
.vs-sidebar.is-open ~ .vs-sidebar-backdrop { opacity: 1; pointer-events: auto; }

/* Mobile: hide sidebar by default, slide in */
@media (max-width: 1023px) {
	.vs-sidebar { width: 0; }
	.vs-sidebar.is-open { width: var(--sidebar-w-exp); }
	.vs-sidebar:hover { width: 0; }
	.vs-sidebar.is-open:hover { width: var(--sidebar-w-exp); }
}
@media (min-width: 1024px) {
	.vs-sidebar-open { display: none; }
}

/* ===== Main content ===== */
.vs-main {
	padding-top: var(--header-h);
	padding-left: 0;
	padding-bottom: 120px;
}
@media (min-width: 1024px) {
	.vs-main { padding-left: var(--sidebar-w); }
}

/* ===== Theme toggle button ===== */
.vs-theme-toggle { position: relative; }
.vs-theme-toggle .sun  { display: none; }
.vs-theme-toggle .moon { display: block; }
[data-theme="light"] .vs-theme-toggle .sun  { display: block; }
[data-theme="light"] .vs-theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
	:root:not([data-theme]) .vs-theme-toggle .sun  { display: block; }
	:root:not([data-theme]) .vs-theme-toggle .moon { display: none; }
}

/* ===== Video parts switcher (single-video page) ===== */
.vs-parts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 16px;
}
.vs-parts button {
	padding: 6px 12px;
	background: var(--overlay-5);
	border-radius: 999px;
	color: var(--text);
	font-size: 13px;
	transition: background .12s, color .12s;
}
.vs-parts button:hover { background: var(--overlay-10); color: var(--text-clear); }
.vs-parts button.is-active { background: var(--accent); color: #fff; }
.vs-parts button small { opacity: .7; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* Preview hover on card */
.vs-card-media video.vs-preview {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.vs-card:hover video.vs-preview { opacity: 1; }

/* ===== Hero glow ===== */
.vs-hero {
	position: absolute;
	top: var(--header-h);
	left: 0; right: 0;
	height: 49vh;
	pointer-events: none;
	opacity: .9;
	overflow: hidden;
}
.vs-hero-img {
	position: absolute; inset: 0;
	background:
		radial-gradient(80% 60% at 50% 0%, rgba(255,60,120,.25), transparent 60%),
		radial-gradient(60% 40% at 30% 10%, rgba(60,120,255,.2), transparent 60%);
}
.vs-hero-gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.4), var(--bg));
}

/* ===== Rows (sliders) ===== */
.vs-rows { position: relative; z-index: 1; padding-top: 12px; }

.vs-slider {
	position: relative;
	margin: 6px 0;
}
.vs-slider-track {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 12px;
}
.vs-slider-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .vs-slider-track { padding: 4px 16px; } }
@media (min-width: 1024px) { .vs-slider-track { padding: 4px 24px; } }

.vs-slider-nav {
	position: absolute;
	inset: 0 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	pointer-events: none;
}
.vs-arrow {
	width: 36px; height: 36px;
	background: rgba(2,4,8,.7);
	backdrop-filter: blur(8px);
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	pointer-events: auto;
	opacity: 0; transform: translateX(-4px);
	transition: opacity .2s, transform .2s;
	color: var(--text);
}
.vs-slider:hover .vs-arrow { opacity: 1; transform: none; }
.vs-arrow:hover { background: rgba(2,4,8,.9); color: var(--text-clear); }
.vs-arrow.is-hidden { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .vs-arrow { display: none; } }

/* Creators */
.vs-creator {
	flex: 0 0 72px;
	text-align: center;
	position: relative;
	padding-top: 4px;
}
.vs-creator-avatar {
	display: block;
	width: 64px; height: 64px;
	margin: 0 auto 6px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--overlay-10);
	transition: height .2s;
}
.vs-creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vs-creator:hover .vs-creator-avatar { height: 96px; }
.vs-creator-name {
	display: block;
	color: var(--text-dim);
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden; text-overflow: ellipsis;
	padding: 0 2px 6px;
}
.vs-letter {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	font-size: 24px; font-weight: 500; color: #fff;
}

/* Pills */
.vs-pill {
	display: inline-flex; align-items: center; gap: 8px;
	height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--overlay-5);
	box-shadow: inset 0 0 0 1px var(--overlay-10);
	color: var(--text);
	font-size: 13px;
	white-space: nowrap;
	transition: background .12s, color .12s;
	flex: 0 0 auto;
}
.vs-pill:hover { background: var(--overlay-10); color: var(--text-clear); }
.vs-pill-lg { height: 40px; padding-left: 4px; }
.vs-pill-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.vs-pill-text { overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* ===== Grid ===== */
.vs-grid-wrap { padding: 0 12px; }
@media (min-width: 640px) { .vs-grid-wrap { padding: 0 16px; } }
@media (min-width: 1024px) { .vs-grid-wrap { padding: 0 24px; } }

.vs-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 8px 12px;
}
@media (min-width: 560px)  { .vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .vs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; } }
@media (min-width: 1280px) { .vs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1700px) { .vs-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 2100px) { .vs-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ===== Card ===== */
.vs-card {
	position: relative;
}
.vs-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--overlay-5);
	border-radius: var(--radius-12);
	overflow: hidden;
}
.vs-card-img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .3s;
}
.vs-card:hover .vs-card-img { transform: scale(1.02); }
.vs-card-img-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #1a1d24, #0a0d13); }
.vs-card-duration {
	position: absolute;
	right: 8px; bottom: 8px;
	padding: 4px 8px;
	background: rgba(0,0,0,.8);
	color: #fff;
	border-radius: 6px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}

.vs-card-info {
	display: flex;
	gap: 12px;
	padding: 12px 4px;
}
.vs-card-avatar {
	flex: 0 0 36px;
	width: 36px; height: 36px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--overlay-5);
}
.vs-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vs-letter-sm {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	font-size: 14px; font-weight: 500; color: #fff;
	background: var(--overlay-10);
}

.vs-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vs-card-creator {
	color: var(--text);
	font-size: 13px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vs-card-title {
	color: var(--text);
	font-size: 14px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vs-card:hover .vs-card-title { color: var(--text-clear); }
.vs-card-meta {
	display: flex; gap: 12px;
	color: var(--text-dim);
	font-size: 12px;
	margin-top: 6px;
	align-items: center;
}
.vs-card-likes { display: inline-flex; align-items: center; gap: 4px; }

.vs-card-more {
	width: 32px; height: 32px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	color: var(--text-dim);
	margin: -2px -6px 0 0;
	opacity: 0;
	transition: opacity .15s, background .12s, color .12s;
}
.vs-card:hover .vs-card-more { opacity: 1; }
.vs-card-more:hover { background: var(--overlay-5); color: var(--text-clear); }

/* Load-more + empty */
.vs-load-more {
	display: block;
	margin: 24px auto;
	padding: 10px 24px;
	background: var(--overlay-5);
	border-radius: 999px;
	color: var(--text);
	transition: background .12s, color .12s;
}
.vs-load-more:hover { background: var(--overlay-10); color: var(--text-clear); }
.vs-empty { padding: 40px; color: var(--text-dim); text-align: center; }

/* ===== Pagination ===== */
.vs-pagination {
	display: flex;
	justify-content: center;
	margin: 32px 0;
}
.vs-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px; height: 36px;
	padding: 0 12px;
	margin: 0 2px;
	border-radius: 999px;
	background: var(--overlay-5);
	color: var(--text);
	transition: background .12s, color .12s;
}
.vs-pagination .page-numbers:hover,
.vs-pagination .page-numbers.current {
	background: var(--overlay-10);
	color: var(--text-clear);
}
.vs-pagination .page-numbers.dots { background: transparent; }

/* ===== Single video: two-column layout ===== */
.vs-single { max-width: 1320px; margin: 0 auto; padding: 0 12px; }
@media (min-width: 1024px) { .vs-single { padding: 0 24px; } }

.vs-video-page {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 16px 12px 40px;
}
@media (min-width: 640px)  { .vs-video-page { padding: 16px 16px 40px; } }
@media (min-width: 1024px) { .vs-video-page { padding: 16px 24px 40px; } }
@media (min-width: 1200px) {
	.vs-video-page {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
}
.vs-video-main  { min-width: 0; }
.vs-video-aside { min-width: 0; }

@media (min-width: 1200px) {
	.vs-video-aside { position: sticky; top: calc(var(--header-h) + 12px); align-self: start; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; padding-right: 4px; }
}

.vs-player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--radius-12);
	overflow: hidden;
}
.vs-player video,
.vs-player iframe { width: 100%; height: 100%; border: 0; background: #000; }
.vs-player video { object-fit: contain; }
.vs-player-part { position: absolute; inset: 0; }
.vs-player-part[hidden] { display: none !important; }
.vs-player-empty { color: var(--text-dim); display: flex; align-items: center; justify-content: center; height: 100%; }

/* Video head (title + meta + chips) */
.vs-video-head { margin-top: 16px; }
.vs-video-title {
	font-size: 20px;
	line-height: 1.25;
	color: var(--text-clear);
	margin: 0 0 8px;
	word-wrap: break-word;
}
@media (min-width: 640px) { .vs-video-title { font-size: 24px; } }
.vs-video-meta {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; flex-wrap: wrap;
	gap: 14px;
	color: var(--text-dim);
	font-size: 13px;
}
.vs-video-meta li { position: relative; }
.vs-video-meta li + li::before {
	content: "";
	position: absolute;
	left: -9px; top: 50%;
	width: 3px; height: 3px;
	background: var(--text-dim-2);
	border-radius: 50%;
	transform: translateY(-50%);
}
.vs-video-chips {
	display: flex; flex-wrap: wrap; gap: 6px;
	margin-top: 12px;
}
.vs-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px;
	background: var(--overlay-5);
	border-radius: 999px;
	color: var(--text);
	font-size: 13px;
	transition: background .12s, color .12s;
}
.vs-chip:hover { background: var(--overlay-10); color: var(--text-clear); }

/* Action row */
.vs-video-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 16px 0;
	padding: 12px 0;
	border-top: 1px solid var(--overlay-5);
	border-bottom: 1px solid var(--overlay-5);
	align-items: center;
}
@media (min-width: 720px) {
	.vs-video-actions {
		grid-template-columns: auto auto 1fr;
	}
}

.vs-rating {
	display: inline-flex; align-items: center; gap: 2px;
	color: var(--text-dim);
}
.vs-star {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px;
	border-radius: 50%;
	color: var(--text-dim-2);
	transition: color .12s, background .12s, transform .12s;
}
.vs-star:hover { background: var(--overlay-5); transform: scale(1.08); }
.vs-star.is-on { color: #ffc93c; }
.vs-rating-count { font-size: 12px; margin-left: 6px; }

.vs-action-group { display: inline-flex; gap: 4px; }
.vs-action-group .vs-icon-btn { width: 36px; height: 36px; border-radius: 999px; background: var(--overlay-5); }
.vs-action-group .vs-icon-btn:hover { background: var(--overlay-10); color: var(--text-clear); }
.vs-like-btn { width: auto !important; padding: 0 10px; gap: 6px; }
.vs-like-btn.is-liked { color: var(--accent); }

.vs-tabs {
	display: flex; flex-wrap: wrap; gap: 4px;
	justify-content: flex-end;
}
@media (max-width: 719px) { .vs-tabs { justify-content: flex-start; } }
.vs-tab {
	display: inline-flex; align-items: center; gap: 6px;
	height: 34px;
	padding: 0 12px;
	background: transparent;
	border-radius: 999px;
	color: var(--text-dim);
	font-size: 13px;
	transition: background .12s, color .12s;
	text-decoration: none;
}
.vs-tab:hover { background: var(--overlay-5); color: var(--text-clear); }
.vs-tab.is-active { background: var(--overlay-10); color: var(--text-clear); }

/* Tab panes */
.vs-tab-pane { padding: 12px 0; }
.vs-tab-pane[hidden] { display: none !important; }
.vs-tab-pane h3 { font-size: 18px; color: var(--text-clear); margin: 0 0 12px; }

.vs-prose { color: var(--text); font-size: 14px; line-height: 1.6; }
.vs-prose p { margin: 0 0 12px; }
.vs-prose a { color: var(--accent); }
.vs-prose img { max-width: 100%; height: auto; border-radius: 8px; }

/* Screenshots grid */
.vs-shots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
}
.vs-shot { display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; }
.vs-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.vs-shot:hover img { transform: scale(1.05); }

/* Aside: Popular Today */
.vs-aside-title {
	font-size: 16px;
	color: var(--text-clear);
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.vs-aside-list { display: flex; flex-direction: column; gap: 10px; }
.vs-aside-card {
	display: flex; gap: 10px;
	padding: 6px;
	border-radius: var(--radius-8);
	transition: background .12s;
}
.vs-aside-card:hover { background: var(--overlay-5); }
.vs-aside-thumb {
	position: relative;
	flex: 0 0 130px;
	aspect-ratio: 16/9;
	border-radius: 8px;
	overflow: hidden;
	background: var(--overlay-5);
}
.vs-aside-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vs-aside-dur {
	position: absolute; right: 4px; bottom: 4px;
	padding: 2px 6px;
	background: rgba(0,0,0,.8);
	color: #fff;
	border-radius: 4px;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}
.vs-aside-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vs-aside-ttl {
	color: var(--text);
	font-size: 13px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vs-aside-card:hover .vs-aside-ttl { color: var(--text-clear); }
.vs-aside-meta { display: flex; gap: 8px; font-size: 11px; color: var(--text-dim); }

/* Related section below */
.vs-related { margin-top: 16px; }
.vs-related .vs-page-title { margin-top: 0; }

/* Comments (built-in) */
.vs-tab-pane .comment-list { list-style: none; padding: 0; margin: 0 0 16px; }
.vs-tab-pane .comment-list li { padding: 12px 0; border-bottom: 1px solid var(--overlay-5); }
.vs-tab-pane .comment-form textarea,
.vs-tab-pane .comment-form input[type=text],
.vs-tab-pane .comment-form input[type=email],
.vs-tab-pane .comment-form input[type=url] {
	width: 100%;
	background: var(--overlay-5);
	color: var(--text);
	border: 1px solid var(--overlay-10);
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
}
.vs-tab-pane .comment-form .submit {
	margin-top: 8px;
	background: var(--accent);
	color: #fff;
	border-radius: 999px;
	padding: 8px 20px;
	border: 0;
	cursor: pointer;
}

/* ===== Archive/search heading ===== */
.vs-page-title {
	font-size: 20px;
	margin: 24px 12px 12px;
	color: var(--text-clear);
}
@media (min-width: 1024px) { .vs-page-title { margin: 24px 24px 12px; } }

/* ===== Mobile tweaks ===== */
@media (max-width: 640px) {
	.vs-card-info { padding: 10px 2px; }
	.vs-card-creator, .vs-card-title { font-size: 13px; }
}
