/* Dedicated trailer overlay skin. Loaded after gold.min.css. */
body.trailer-modal-open {
	overscroll-behavior: none;
}

.trailer-is-loading {
	cursor: progress !important;
}

.trailer-overlay {
	--trailer-gold: #d4a853;
	--trailer-gold-strong: #b8860b;
	--trailer-panel-bg: #121212;
	--trailer-panel-border: rgba(255, 255, 255, 0.1);
	--trailer-text: #fff;
	--trailer-muted: #aaa59c;
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background: rgba(0, 0, 0, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 180ms ease, visibility 180ms ease;
}

.trailer-overlay.visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.trailer-dialog {
	position: relative;
	width: min(1120px, 100%);
	max-height: min(820px, calc(100dvh - 56px));
	overflow: hidden;
	color: var(--trailer-text);
	background:
		radial-gradient(circle at 100% 0, rgba(212, 168, 83, 0.1), transparent 36%),
		var(--trailer-panel-bg);
	border: 1px solid var(--trailer-panel-border);
	border-radius: 22px;
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
	transform: translateY(10px) scale(0.985);
	transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
	outline: 0;
}

.trailer-overlay.visible .trailer-dialog {
	transform: translateY(0) scale(1);
}

html.light .trailer-overlay {
	--trailer-panel-bg: #fff;
	--trailer-panel-border: rgba(20, 20, 20, 0.13);
	--trailer-text: #171717;
	--trailer-muted: #67625a;
	background: rgba(12, 12, 12, 0.66);
}

.trailer-content {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.8fr);
	gap: 0;
	width: 100%;
	max-width: none;
	max-height: inherit;
}

.trailer-player-col {
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 28px;
	background: #050505;
}

.trailer-player-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	overflow: hidden;
	background: #000;
	border-radius: 14px;
	box-shadow: 0 16px 50px rgba(0, 0, 0, 0.42);
}

.trailer-player-wrap .trailer-video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	color-scheme: dark;
	background: #000;
}

.trailer-panel-col {
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-width: 0;
	max-height: min(820px, calc(100dvh - 56px));
	padding: 34px 30px 30px;
	overflow-y: auto;
	color: var(--trailer-text);
	scrollbar-width: thin;
	scrollbar-color: rgba(212, 168, 83, 0.45) transparent;
}

.trailer-panel-handle {
	display: none;
}

.trailer-overlay-close {
	position: absolute;
	z-index: 3;
	inset-block-start: 14px;
	inset-inline-end: 14px;
	inset-inline-start: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: var(--trailer-text);
	background: color-mix(in srgb, var(--trailer-panel-bg) 78%, transparent);
	border: 1px solid var(--trailer-panel-border);
	border-radius: 999px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.trailer-overlay-close svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.trailer-overlay-close:hover {
	color: #16120a;
	background: var(--trailer-gold);
	transform: scale(1.04);
}

.trailer-overlay-close:focus-visible,
.trailer-cta-primary:focus-visible,
.trailer-endscreen-cta:focus-visible,
.trailer-endscreen-replay:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(212, 168, 83, 0.65);
}

html.light .trailer-overlay-close:focus-visible,
html.light .trailer-cta-primary:focus-visible,
html.light .trailer-endscreen-cta:focus-visible,
html.light .trailer-endscreen-replay:focus-visible {
	outline-color: #151515;
}

.trailer-studio-header {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	padding-inline-end: 44px;
}

.trailer-studio-logo,
.trailer-studio-monogram {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 12px;
}

.trailer-studio-logo {
	display: block;
	object-fit: cover;
	background: #222;
	border: 1px solid var(--trailer-panel-border);
}

.trailer-studio-monogram {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #17120a;
	background:
		radial-gradient(circle at 70% 20%, #f0d59a, transparent 42%),
		var(--trailer-gold);
	font-size: 20px;
	font-weight: 800;
}

.trailer-studio-name {
	min-width: 0;
	overflow: hidden;
	color: var(--trailer-text);
	font-size: 15px;
	font-weight: 750;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.trailer-preview-label {
	align-self: flex-start;
	padding: 6px 10px;
	color: #f4d58d;
	background: rgba(212, 168, 83, 0.12);
	border: 1px solid rgba(212, 168, 83, 0.27);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

html.light .trailer-preview-label {
	color: #76550a;
	background: rgba(184, 134, 11, 0.11);
	border-color: rgba(184, 134, 11, 0.25);
}

.trailer-title {
	margin: 0;
	padding: 0;
	color: var(--trailer-text);
	font-size: clamp(20px, 2vw, 27px);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.16;
}

.trailer-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	color: var(--trailer-muted);
	font-size: 13px;
	line-height: 1.4;
	opacity: 1;
}

.trailer-cta-primary,
.trailer-endscreen-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	color: #17120a !important;
	background: linear-gradient(135deg, #e4bd68, var(--trailer-gold));
	border: 0;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(184, 134, 11, 0.22);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.trailer-cta-primary {
	margin-top: 3px;
}

.trailer-cta-primary:hover,
.trailer-endscreen-cta:hover {
	color: #17120a !important;
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 15px 34px rgba(184, 134, 11, 0.3);
}

.trailer-cta-primary > span {
	font-size: 19px;
	line-height: 1;
}

html[dir="rtl"] .trailer-cta-primary > span {
	transform: rotate(180deg);
}

.trailer-locked-screens {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
	width: 100%;
	margin-top: 2px;
}

.trailer-locked-screen {
	position: relative;
	display: block;
	min-width: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #090909;
	border: 1px solid var(--trailer-panel-border);
	border-radius: 9px;
}

.trailer-locked-screen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(5px) brightness(0.55);
	transform: scale(1.08);
}

.trailer-lock-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(0, 0, 0, 0.08);
}

.trailer-lock-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65));
}

.trailer-endscreen {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	overflow-y: auto;
	color: #fff;
	background: rgba(5, 5, 5, 0.86);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.trailer-endscreen[hidden] {
	display: none !important;
}

.trailer-endscreen-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: min(430px, 100%);
	max-width: 430px;
}

.trailer-endscreen-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	color: #16120a;
	background: var(--trailer-gold);
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(212, 168, 83, 0.27);
}

.trailer-endscreen-icon svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.trailer-endscreen-text {
	color: #fff;
	font-size: 17px;
	font-weight: 750;
	line-height: 1.25;
	text-align: center;
}

.trailer-endscreen-replay {
	min-height: 40px;
	padding: 8px 18px;
	color: rgba(255, 255, 255, 0.82);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	font: inherit;
	font-size: 13px;
	font-weight: 650;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.trailer-endscreen-replay:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.13);
	border-color: rgba(255, 255, 255, 0.55);
}

/* Existing video-page conversion panel, without fabricated social proof. */
.trailer-end-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 14px 0;
	padding: 22px;
	color: var(--general-color);
	background:
		radial-gradient(circle at 50% 0, rgba(212, 168, 83, 0.14), transparent 50%),
		var(--thumb-box-bg);
	border: 1px solid rgba(212, 168, 83, 0.23);
	border-radius: 14px;
}

.trailer-end-panel .trailer-endscreen-icon {
	width: 44px;
	height: 44px;
}

.trailer-end-panel .trailer-endscreen-text {
	color: var(--general-color);
}

.trailer-end-panel .trailer-locked-screens,
.trailer-end-panel .trailer-endscreen-cta {
	width: min(470px, 100%);
}

@media (max-width: 900px) {
	.trailer-overlay {
		align-items: flex-end;
		padding: 0;
		background: rgba(0, 0, 0, 0.7);
	}

	.trailer-dialog {
		width: 100%;
		max-height: min(94dvh, 860px);
		overflow-y: auto;
		border-width: 1px 0 0;
		border-radius: 20px 20px 0 0;
		transform: translateY(100%);
		overscroll-behavior: contain;
	}

	.trailer-overlay.visible .trailer-dialog {
		transform: translateY(0);
	}

	.trailer-content {
		display: flex;
		flex-direction: column;
		max-width: 100%;
		max-height: none;
		gap: 0;
	}

	.trailer-panel-handle {
		position: relative;
		z-index: 2;
		display: flex;
		justify-content: center;
		height: 24px;
		padding-top: 8px;
	}

	.trailer-panel-handle > span {
		display: block;
		width: 38px;
		height: 4px;
		background: var(--trailer-muted);
		border-radius: 999px;
		opacity: 0.55;
	}

	.trailer-overlay-close {
		inset-block-start: 30px;
		inset-inline-end: 12px;
		width: 40px;
		height: 40px;
		color: #fff;
		background: rgba(0, 0, 0, 0.66);
		border-color: rgba(255, 255, 255, 0.25);
	}

	.trailer-player-col {
		padding: 0;
	}

	.trailer-player-wrap {
		border-radius: 0;
		box-shadow: none;
	}

	.trailer-panel-col {
		gap: 12px;
		max-height: none;
		padding: 18px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
		overflow: visible;
	}

	.trailer-studio-header {
		padding-inline-end: 0;
	}

	.trailer-title {
		font-size: clamp(19px, 5vw, 24px);
	}

	.trailer-locked-screens {
		max-width: 520px;
	}
}

@media (max-width: 520px) {
	.trailer-endscreen {
		padding: 12px;
	}

	.trailer-endscreen-content {
		gap: 9px;
	}

	.trailer-endscreen-icon {
		width: 42px;
		height: 42px;
	}

	.trailer-endscreen-icon svg {
		width: 22px;
		height: 22px;
	}

	.trailer-endscreen-text {
		font-size: 15px;
	}

	.trailer-endscreen .trailer-locked-screens {
		display: none;
	}

	.trailer-endscreen-cta {
		min-height: 44px;
		padding: 10px 14px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trailer-overlay,
	.trailer-dialog,
	.trailer-overlay-close,
	.trailer-cta-primary,
	.trailer-endscreen-cta,
	.trailer-endscreen-replay {
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
		animation: none !important;
	}
}
