/* 
 * HornySimp Video Post Stylesheet
 * Integrated with MNG Studio Tube Suite
 * Powers Server 1/2 switching, Model avatar chips, Primary tags,
 * Collapsible Description box, Ad Layout sidebars, and 4-column related posts.
 */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* Main Layout Wrappers */
.hscp-main-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 15px 50px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
}

.hscp-post-container {
	width: 100%;
	max-width: 950px;
	margin-bottom: 25px;
}

/* =========================================
   AD SECTIONS & RESPONSIVE BREAKPOINT RULES
   ========================================= */

/* 1. Top Container (950px, 3 Slots) */
.hscp-top-ads-wrapper {
	width: 100%;
	max-width: 950px;
	margin-bottom: 15px;
}

.hscp-top-ad-grid {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.hscp-ad-slot {
	width: 300px;
	min-height: 250px;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 2. Wide Top Banner (900x250) */
.hscp-wide-top-wrapper {
	width: 100%;
	max-width: 950px;
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
}

/* 3. Mobile, Mid, Footer Banners */
.hscp-mobile-banner-wrapper,
.hscp-mid-banner-wrapper,
.hscp-footer-banner-wrapper {
	width: 100%;
	max-width: 350px;
	margin: 25px auto;
	display: flex;
	justify-content: center;
}

/* 4. Bottom Wide (728x90) */
.hscp-bottom-wide-wrapper {
	width: 100%;
	max-width: 750px;
	margin: 25px auto;
	display: flex;
	justify-content: center;
}

/* Responsive Ad Logic */
@media (max-width: 900px) {
	.top-slot-3 {
		display: none !important;
	}
	.hscp-wide-top-wrapper {
		display: none !important;
	}
}

@media (max-width: 750px) {
	.hscp-bottom-wide-wrapper {
		display: none !important;
	}
}

@media (max-width: 650px) {
	.top-slot-2 {
		display: none !important;
	}
}

/* =========================================
   VIDEO PLAYER & SERVER TABS
   ========================================= */
.hscp-server-tabs {
	display: flex;
	gap: 3px;
	margin-bottom: 0;
}

.hscp-tab-button {
	background: #2a2a38;
	color: #e5e7eb;
	border: none;
	padding: 10px 24px;
	font-family: 'Oswald', sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	cursor: pointer;
	font-weight: 600;
	letter-spacing: 0.5px;
	border-radius: 6px 6px 0 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.hscp-tab-button:hover {
	background: #3b3b4f;
	color: #ffffff;
}

.hscp-tab-button.active {
	background: #74143B;
	color: #ffffff;
}

.hscp-video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
	background: #000000;
	margin-bottom: 18px;
	border-bottom: 3.5px solid #74143B;
	border-radius: 0 6px 6px 6px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hscp-video-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	border: none;
}

.hscp-video-iframe.active {
	display: block;
}

/* =========================================
   VIDEO TITLE & DOWNLOAD BUTTON BAR
   ========================================= */
.hscp-video-info-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hscp-main-title {
	font-family: 'Oswald', sans-serif;
	font-size: 24px;
	line-height: 1.3;
	color: #74143B;
	margin: 0;
	flex: 1;
	min-width: 250px;
	font-weight: 700;
	letter-spacing: -0.3px;
}

.hscp-download-button {
	background: #74143B;
	color: #ffffff !important;
	padding: 10px 22px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(116, 20, 59, 0.35);
	transition: background 0.2s ease, transform 0.2s ease;
}

.hscp-download-button:hover {
	background: #8e1948;
	transform: translateY(-1px);
}

/* =========================================
   MODEL INFO ROW (UNDER TITLE)
   Multi-Model Avatar Chips
   ========================================= */
.hscp-models-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.hscp-models-label {
	font-weight: 700;
	font-size: 14px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hscp-models-chips-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.hscp-model-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 14px 4px 5px;
	background: rgba(116, 20, 59, 0.08);
	border: 1px solid rgba(116, 20, 59, 0.25);
	border-radius: 9999px;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.hscp-model-chip:hover {
	background: rgba(116, 20, 59, 0.16);
	border-color: #74143B;
	transform: translateY(-1px);
}

.hscp-model-chip-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 1.5px solid #74143B;
}

.hscp-model-chip-name {
	font-size: 13.5px;
	font-weight: 600;
	color: #74143B;
}

/* =========================================
   PRIMARY TAGS (UNDER TITLE WITH BORDER DESIGN)
   ========================================= */
.hscp-primary-tags-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.hscp-tag-pill {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12.5px;
	font-weight: 500;
	color: #4b5563;
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 9999px;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.hscp-tag-pill:hover {
	color: #74143B;
	border-color: #74143B;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(116, 20, 59, 0.15);
}

/* =========================================
   COLLAPSIBLE DESCRIPTION BOX
   (Exact Match to User Screenshots)
   ========================================= */
.hscp-description-wrapper {
	margin: 22px 0 25px;
	padding-top: 15px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	width: 100%;
}

.hscp-description-heading {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 10px 0;
}

.hscp-desc-container {
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14.5px;
	line-height: 1.6;
	color: #1f2937;
	transition: all 0.3s ease;
}

.hscp-desc-meta-title {
	font-weight: 700;
	color: #111827;
	display: block;
	margin-bottom: 8px;
}

.hscp-desc-gap {
	height: 6px;
}

.hscp-desc-article-body {
	color: #374151;
}

.hscp-desc-article-body p {
	margin: 0 0 10px 0;
	line-height: 1.6;
}

/* Collapsed State: Shows 2 lines with fade and + button */
.hscp-desc-container.is-collapsed {
	max-height: 52px;
	overflow: hidden;
	padding-right: 32px;
}

.hscp-desc-container.is-collapsed::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 30px;
	height: 32px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
	pointer-events: none;
}

/* Expanded State: Full text visible, no gradient */
.hscp-desc-container.is-expanded {
	max-height: none;
	overflow: visible;
	padding-right: 32px;
}

.hscp-desc-container.is-expanded::after {
	display: none;
}

/* Bottom Right Toggle Button (+ and ✕) */
.hscp-desc-toggle {
	position: absolute;
	right: 0;
	bottom: 2px;
	background: transparent;
	border: none;
	font-size: 22px;
	font-weight: 400;
	cursor: pointer;
	color: #111827;
	line-height: 1;
	padding: 2px 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	transition: transform 0.2s ease, color 0.2s ease;
}

.hscp-desc-toggle:hover {
	color: #74143B;
	transform: scale(1.15);
}

.hscp-desc-container.is-collapsed .hscp-toggle-icon.plus {
	display: block;
}

.hscp-desc-container.is-collapsed .hscp-toggle-icon.close {
	display: none;
}

.hscp-desc-container.is-expanded .hscp-toggle-icon.plus {
	display: none;
}

.hscp-desc-container.is-expanded .hscp-toggle-icon.close {
	display: block;
	font-size: 18px;
}

/* =========================================
   RELATED POSTS (4-COLUMN GRID)
   ========================================= */
.hscp-related-posts-container {
	width: 100%;
	max-width: 950px;
	margin-top: 30px;
}

.hscp-related-posts-container h3 {
	font-family: 'Oswald', sans-serif;
	color: #74143B;
	border-bottom: 2px solid #74143B;
	padding-bottom: 8px;
	margin-bottom: 20px;
	font-size: 20px;
	text-transform: uppercase;
}

.hscp-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

@media (max-width: 768px) {
	.hscp-related-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

.hscp-related-item a {
	display: block;
	text-decoration: none !important;
}

.hscp-thumb-wrapper {
	position: relative;
	padding-top: 56.25%; /* 16:9 ratio */
	overflow: hidden;
	margin-bottom: 8px;
	background: #000000;
	border-radius: 8px;
}

.hscp-thumb-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.9;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.hscp-related-item a:hover .hscp-thumb-wrapper img {
	opacity: 1;
	transform: scale(1.05);
}

.hscp-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-size: 20px;
	background: rgba(0, 0, 0, 0.65);
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition: transform 0.2s ease, background 0.2s ease;
}

.hscp-related-item a:hover .hscp-play-icon {
	transform: translate(-50%, -50%) scale(1.15);
	background: rgba(116, 20, 59, 0.85);
}

.hscp-related-item h4 {
	margin: 0;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	color: #1f2937;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	transition: color 0.2s ease;
}

.hscp-related-item h4:hover {
	color: #74143B;
}
