/* ==========================================================================
   TikTok Downloader - SssTTK Premium Responsive Theme
   ========================================================================== */

:root {
	--tvd-primary: #ec4899;
	--tvd-primary-hover: #db2777;
	--tvd-accent: #a855f7;
	--tvd-bg-dark: #0f172a;
	--tvd-text: #1e293b;
	--tvd-text-muted: #64748b;
	--tvd-radius: 16px;
	--tvd-pill-radius: 10px;
	--tvd-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.tvd-container.tvd-sssttk-theme {
	width: 100% !important;
	margin: 1.5rem auto !important;
	box-sizing: border-box !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	position: relative !important;
}

/* ==========================================================================
   Hero & Header Section
   ========================================================================== */
.tvd-hero-wrap {
	border-radius: var(--tvd-radius);
	padding: 3rem 1.5rem 2.5rem;
	text-align: center;
	box-shadow: 0 20px 35px -10px rgba(168, 85, 247, 0.25);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.tvd-hero-inner {
	max-width: 920px;
	margin: 0 auto;
}

.tvd-hero-logo {
	font-size: 2.75rem !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	margin: 0 0 0.5rem 0 !important;
	letter-spacing: -0.5px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	line-height: 1.2 !important;
}

.tvd-hero-tagline {
	font-size: 1.15rem !important;
	font-weight: 500 !important;
	color: rgba(255, 255, 255, 0.95) !important;
	margin: 0 0 1.75rem 0 !important;
	line-height: 1.4 !important;
}

/* ==========================================================================
   Category Tabs
   ========================================================================== */
.tvd-category-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 1.75rem;
	background: rgba(0, 0, 0, 0.18);
	padding: 6px;
	border-radius: 50px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.tvd-tab-btn {
	background: transparent !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 50px !important;
	padding: 8px 22px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
	outline: none !important;
	text-decoration: none !important;
}

.tvd-tab-btn:hover {
	background: rgba(255, 255, 255, 0.15) !important;
	color: #ffffff !important;
}

.tvd-tab-btn.active {
	background: #ffffff !important;
	color: #1e293b !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   Modern Search Bar Row
   ========================================================================== */
/* ==========================================================================
   Modern Search Bar Row (Matches Image 2)
   ========================================================================== */
.tvd-form {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.tvd-search-bar-wrap {
	display: flex;
	align-items: center;
	background: #0f172a;
	background: linear-gradient(180deg, #182234 0%, #0d131f 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 10px 12px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
	gap: 10px;
	box-sizing: border-box;
}

.tvd-input-box {
	flex: 1;
	display: flex;
	align-items: center;
	background: #ffffff !important;
	border: 2px solid #38bdf8 !important;
	border-radius: 8px;
	height: 48px;
	padding: 0 12px;
	box-sizing: border-box;
	position: relative;
	min-width: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tvd-input-box:focus-within {
	border-color: #0284c7 !important;
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

.tvd-input-box input.tvd-url-input,
.tvd-input-box input[type="text"] {
	flex: 1 !important;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	color: #0f172a !important;
	font-size: 15px !important;
	height: 100% !important;
	padding: 0 6px !important;
	margin: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	font-family: inherit !important;
	-webkit-appearance: none !important;
}

.tvd-input-box input::placeholder {
	color: #94a3b8 !important;
	font-weight: 400;
}

.tvd-btn-clear {
	background: none !important;
	border: none !important;
	font-size: 1.3rem !important;
	color: #94a3b8 !important;
	cursor: pointer !important;
	padding: 0 4px !important;
	line-height: 1 !important;
}

.tvd-btn-clear:hover {
	color: #475569 !important;
}

.tvd-search-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* Paste Button (White pill, pink accent) */
.tvd-btn-paste {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	background: #ffffff !important;
	color: #e11d48 !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	height: 48px !important;
	padding: 0 18px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.tvd-btn-paste:hover {
	background: #fff1f2 !important;
	border-color: #fecdd3 !important;
	transform: translateY(-1px);
}

.tvd-btn-paste .tvd-icon-paste {
	stroke: #e11d48 !important;
}

/* Download Video Button (White pill, dark slate text & icon) */
.tvd-btn-submit {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	background: #ffffff !important;
	color: #0f172a !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	height: 48px !important;
	padding: 0 22px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.tvd-btn-submit:hover {
	background: #f8fafc !important;
	border-color: #cbd5e1 !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.tvd-btn-submit .tvd-icon-download {
	stroke: #0f172a !important;
}

.tvd-btn-spinner {
	width: 15px;
	height: 15px;
	border: 2px solid rgba(15, 23, 42, 0.2);
	border-top-color: #0f172a;
	border-radius: 50%;
	animation: tvd-spin 0.7s linear infinite;
	display: inline-block;
}

@keyframes tvd-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   Status & Alert Messages
   ========================================================================== */
.tvd-status-container {
	margin: 1.5rem auto 0;
	width: 100%;
}

.tvd-alert {
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 1rem;
	text-align: center;
	line-height: 1.5;
}

.tvd-alert-info {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.tvd-alert-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.tvd-alert-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Single Video Result Card
   ========================================================================== */
.tvd-result-card {
	margin-top: 2rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--tvd-radius);
	padding: 1.75rem;
	box-shadow: var(--tvd-shadow);
}

.tvd-result-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	align-items: start;
}

.tvd-thumb-wrapper {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #000000;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	position: relative;
	aspect-ratio: 9 / 14;
}

.tvd-result-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tvd-result-details {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tvd-author-info {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tvd-author-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
}

.tvd-author-username {
	font-size: 0.95rem;
	color: #64748b;
}

.tvd-video-title {
	font-size: 1rem;
	color: #334155;
	line-height: 1.5;
	margin: 0;
}

.tvd-meta-badges {
	display: flex;
	gap: 8px;
}

.tvd-badge {
	display: inline-block;
	background: #f1f5f9;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
}

.tvd-download-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}

.tvd-btn-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #0ea5e9;
	color: #ffffff !important;
	border: none;
	border-radius: 10px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.tvd-btn-download:hover {
	background: #0284c7;
	transform: translateY(-1px);
}

.tvd-btn-download.watermark-free {
	background: #10b981;
}

.tvd-btn-download.watermark-free:hover {
	background: #059669;
}

/* ==========================================================================
   Profile Bulk Downloader Results (SssTTK Design)
   ========================================================================== */
.tvd-profile-results {
	margin-top: 2rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--tvd-radius);
	padding: 1.75rem;
	box-shadow: var(--tvd-shadow);
}

.tvd-profile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 1.5rem;
}

.tvd-profile-header-left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tvd-profile-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--tvd-primary);
}

.tvd-profile-title-wrap h3 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: #0f172a;
}

.tvd-profile-title-wrap p {
	margin: 2px 0 0;
	font-size: 0.9rem;
	color: #64748b;
}

.tvd-profile-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.tvd-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.tvd-profile-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}

.tvd-profile-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.tvd-profile-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 14;
	background: #0f172a;
	overflow: hidden;
}

.tvd-profile-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tvd-profile-card-details {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.tvd-profile-card-title {
	font-size: 13px;
	color: #334155;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tvd-profile-card-btn {
	margin-top: auto;
	width: 100%;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	background: var(--tvd-primary);
	color: #ffffff !important;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.tvd-profile-card-btn:hover {
	background: var(--tvd-primary-hover);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
	.tvd-hero-wrap {
		padding: 2rem 1rem 1.75rem;
	}

	.tvd-hero-logo {
		font-size: 2rem !important;
	}

	.tvd-hero-tagline {
		font-size: 1rem !important;
	}

	.tvd-search-bar-wrap {
		flex-direction: column;
		padding: 10px;
	}

	.tvd-input-box {
		width: 100%;
	}

	.tvd-search-actions {
		width: 100%;
		display: flex;
		gap: 8px;
	}

	.tvd-btn-paste,
	.tvd-btn-submit {
		flex: 1;
		padding: 0 14px !important;
		font-size: 14px !important;
	}

	.tvd-result-grid {
		grid-template-columns: 1fr;
	}

	.tvd-thumb-wrapper {
		max-width: 260px;
		margin: 0 auto;
	}

	.tvd-profile-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.tvd-category-tabs {
		gap: 4px;
	}

	.tvd-tab-btn {
		padding: 6px 14px !important;
		font-size: 12px !important;
	}

	.tvd-profile-grid {
		grid-template-columns: 1fr;
	}
}
