/* Social Video System — Frontend */
:root {
	--svs-bg: #0a0a0a;
	--svs-card: #141414;
	--svs-text: #f5f5f5;
	--svs-muted: #a3a3a3;
	--svs-accent: #ff4458;
	--svs-radius: 12px;
	--svs-max: 680px;
	--svs-ad-min-h: 90px;
}

.svs-landing-body {
	margin: 0;
	background: var(--svs-bg);
	color: var(--svs-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.svs-app {
	max-width: var(--svs-max);
	margin: 0 auto;
	min-height: 100vh;
}

.svs-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 10, 10, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid #222;
}

.svs-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
}

.svs-logo {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--svs-text);
	text-decoration: none;
}

.svs-back {
	color: var(--svs-text);
	text-decoration: none;
	font-size: 0.95rem;
}

.svs-ad-wrap {
	padding: 8px 12px;
	min-height: var(--svs-ad-min-h);
	contain: layout style;
}

.svs-ad-slot {
	min-height: var(--svs-ad-min-h);
	display: block;
	overflow: hidden;
}

.svs-ad-slot.svs-ad-lazy {
	min-height: 50px;
}

.svs-ad-inner {
	width: 100%;
	text-align: center;
}

.svs-ad-inner iframe,
.svs-ad-inner ins {
	max-width: 100%;
}

.svs-ad-inner script {
	display: none !important;
}

.svs-ad-inner > div[id^="div-gpt-ad"],
.svs-ad-inner > ins.adsbygoogle {
	display: block !important;
	min-height: 90px;
	margin: 0 auto;
}

.svs-main-feed {
	padding: 0 0 24px;
}

.svs-post-card {
	background: var(--svs-card);
	border-radius: var(--svs-radius);
	margin: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.svs-post-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.svs-thumb-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #1a1a1a;
	overflow: hidden;
	min-height: 180px;
}

.svs-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: relative;
	z-index: 1;
}

.svs-thumb-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
	color: var(--svs-muted);
	font-size: 0.85rem;
	z-index: 0;
}

.svs-thumb-wrap.has-broken-thumb .svs-thumb,
.svs-thumb.svs-thumb-broken {
	opacity: 0;
}

.svs-thumb-wrap.has-broken-thumb::before {
	content: 'Image load nahi hui';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--svs-muted);
	font-size: 0.8rem;
	z-index: 0;
}

.svs-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.6));
	pointer-events: none;
}

.svs-play-btn,
.svs-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: #fff;
	pointer-events: none;
}

.svs-post-meta {
	padding: 12px 14px;
}

.svs-post-title {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 600;
}

.svs-post-caption {
	margin: 0;
	font-size: 0.875rem;
	color: var(--svs-muted);
	line-height: 1.4;
}

.svs-post-ad {
	padding: 0 12px 12px;
}

.svs-empty {
	text-align: center;
	padding: 48px 16px;
	color: var(--svs-muted);
}

/* Video page */
.svs-video-page .svs-player-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.svs-player {
	position: absolute;
	inset: 0;
}

.svs-player-iframe,
.svs-player-video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.svs-video-info {
	padding: 16px;
}

.svs-video-title {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.svs-video-caption {
	margin: 0;
	color: var(--svs-muted);
	font-size: 0.9rem;
}

.svs-recommendations {
	padding: 16px;
	border-top: 1px solid #222;
}

.svs-section-title {
	margin: 0 0 12px;
	font-size: 1rem;
}

.svs-rec-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.svs-rec-card {
	text-decoration: none;
	color: inherit;
}

.svs-rec-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}

.svs-rec-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.svs-rec-title {
	margin: 8px 0 0;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.3;
}

.svs-site-footer {
	text-align: center;
	padding: 24px;
	color: var(--svs-muted);
	font-size: 0.8rem;
}

/* Desktop */
@media (min-width: 768px) {
	:root {
		--svs-max: 520px;
	}

	.svs-app {
		box-shadow: 0 0 0 1px #222;
	}
}

@media (min-width: 1024px) {
	:root {
		--svs-max: 600px;
	}
}
