/* ---- Hero background + phone screen positioning ---- */

.cr-hero-screen {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	aspect-ratio: 9 / 16;
	border-radius: 20px;
	overflow: hidden;
	background: var(--cr-bg-alt, #050505);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 480px) {
	.cr-hero-screen {
		max-width: 100%;
		border-radius: 0;
	}
}

/* ---- Loading / error states ---- */

.cr-loading,
.cr-error {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: rgba(245, 245, 240, 0.7);
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	padding: 16px;
	box-sizing: border-box;
}
.cr-error {
	flex-direction: column;
	gap: 8px;
}

/* ---- TikTok-style vertical scroll player, fills the phone screen ---- */

.cr-scroll {
	height: 100%;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.cr-scroll::-webkit-scrollbar {
	display: none;
}

.cr-slide {
	position: relative;
	height: 100%;
	width: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.cr-slide iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}

.cr-slide .cr-thumb {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: brightness(0.75);
	transition: opacity 0.3s ease;
}
.cr-slide.cr-active .cr-thumb {
	opacity: 0;
	pointer-events: none;
}

.cr-slide .cr-tap {
	position: absolute;
	inset: 0;
	z-index: 3;
	cursor: pointer;
	background: transparent;
	border: 0;
	padding: 0;
}

.cr-caption {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 16px;
	z-index: 4;
	color: var(--cr-ink, #f5f5f0);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
	pointer-events: none;
}

/* ---- Player + share sidebar layout ---- */

.cr-player-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
}

.cr-share {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-shrink: 0;
}

.cr-share-btn {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--cr-panel, #141414);
	border: 1px solid var(--cr-border, rgba(245, 245, 240, 0.18));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cr-ink, #f5f5f0);
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cr-share-btn svg {
	width: 17px;
	height: 17px;
}
.cr-share-btn:hover,
.cr-share-btn:focus-visible {
	transform: translateY(-2px);
	outline: none;
}
.cr-share-btn[data-platform="facebook"]:hover { border-color: #1877f2; color: #1877f2; }
.cr-share-btn[data-platform="x"]:hover        { border-color: var(--cr-ink, #f5f5f0); }
.cr-share-btn[data-platform="whatsapp"]:hover { border-color: #25d366; color: #25d366; }
.cr-share-btn[data-platform="copy"]:hover      { border-color: var(--cr-accent, #ffcc00); color: var(--cr-accent, #ffcc00); }

.cr-share-toast {
	position: absolute;
	left: 46px;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 6px;
	white-space: nowrap;
	pointer-events: none;
}

@media (max-width: 480px) {
	.cr-player-wrap {
		max-width: 100%;
		gap: 8px;
	}
	.cr-share-btn {
		width: 32px;
		height: 32px;
	}
	.cr-share-btn svg {
		width: 14px;
		height: 14px;
	}
}

.cr-mute {
	position: absolute;
	right: 10px;
	top: 14px;
	z-index: 5;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	border: 1.5px solid rgba(245, 245, 240, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	cursor: pointer;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.cr-mute svg {
	width: 20px;
	height: 20px;
}

.cr-rail {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	z-index: 6;
	display: flex;
	flex-direction: column;
	gap: 5px;
	max-height: 70%;
	overflow: hidden;
}

.cr-sprocket {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(245, 245, 240, 0.22);
	transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.cr-sprocket.cr-current {
	background: var(--cr-accent-2, #ff3b30);
	box-shadow: 0 0 5px 1px rgba(255, 59, 48, 0.7);
	transform: scale(1.3);
}

.cr-mute:focus-visible,
.cr-tap:focus-visible {
	outline: 2px solid var(--cr-accent-2, #ff3b30);
	outline-offset: 2px;
}
