/**
 * Breakout Clips — hero clapboard demo (prompt + video)
 * Scope: wrap your HTML in .ais_new_hero_right_part
 *
 * Usage:
 *   <link rel="stylesheet" href="ais_new_hero_right_part.css">
 *   <div class="ais_new_hero_right_part"> ... clapboard markup ... </div>
 */

/* ----- design tokens (local to this block) ----- */
.ais_new_hero_right_part {
	--ais-ink: #0d0d0f;
	--ais-paper: #ffffff;
	--ais-accent: #5b5cf6;
	--ais-rule: rgba(13, 13, 15, 0.10);

	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--ais-ink);
	-webkit-font-smoothing: antialiased;
}

.ais_new_hero_right_part,
.ais_new_hero_right_part *,
.ais_new_hero_right_part *::before,
.ais_new_hero_right_part *::after {
	box-sizing: border-box;
}

.ais_new_hero_right_part svg,
.ais_new_hero_right_part video {
	max-width: 100%;
}

/* ----- clapboard ----- */
.ais_new_hero_right_part .clapboard {
	width: 100%;
	max-width: 400px;
	background: var(--ais-paper);
	color: var(--ais-ink);
	border-radius: 4px;
	transform: rotate(2deg);
	box-shadow:
		0 30px 60px rgba(13, 13, 15, 0.28),
		0 8px 20px rgba(13, 13, 15, 0.16),
		0 0 0 1px var(--ais-rule);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	animation: ais-hero-float 6s ease-in-out infinite;
}

@keyframes ais-hero-float {

	0%,
	100% {
		transform: rotate(2deg) translateY(0);
	}

	50% {
		transform: rotate(2deg) translateY(-6px);
	}
}

.ais_new_hero_right_part .clapboard-stripes {
	height: 56px;
	flex-shrink: 0;
	background: repeating-linear-gradient(-45deg,
			var(--ais-ink) 0,
			var(--ais-ink) 28px,
			var(--ais-paper) 28px,
			var(--ais-paper) 56px);
	border-bottom: 3px solid var(--ais-ink);
	position: relative;
	z-index: 2;
}

.ais_new_hero_right_part .clapboard-body {
	padding: 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	z-index: 2;
}

/* ----- typed prompt ----- */
.ais_new_hero_right_part .demo-prompt {
	background: var(--ais-ink);
	color: var(--ais-paper);
	border-radius: 6px;
	padding: 12px 14px;
	font-family: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace;
	font-size: 12px;
	line-height: 1.5;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ais_new_hero_right_part .demo-prompt-label {
	font-size: 8px;
	letter-spacing: 0.2em;
	color: var(--ais-accent);
	text-transform: uppercase;
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
}

.ais_new_hero_right_part .demo-prompt-text {
	color: rgba(245, 241, 234, 0.92);
	min-height: 36px;
	position: relative;
}

.ais_new_hero_right_part .demo-prompt-text .typed {
	white-space: normal;
	word-break: break-word;
}

.ais_new_hero_right_part .demo-prompt-text .caret {
	display: inline-block;
	width: 1px;
	margin-left: 1px;
	border-right: 1.5px solid var(--ais-accent);
	animation: ais-caret-blink 1s steps(1) infinite;
	vertical-align: text-bottom;
	height: 1em;
}

@keyframes ais-caret-blink {

	0%,
	50% {
		opacity: 1;
	}

	50.01%,
	100% {
		opacity: 0;
	}
}

/* ----- video scene ----- */
.ais_new_hero_right_part .demo-scene {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	position: relative;
	overflow: hidden;
	background: var(--ais-ink);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ais_new_hero_right_part .demo-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.ais_new_hero_right_part .demo-video.active {
	opacity: 1;
	transform: scale(1);
}

/* ----- audio toggle ----- */
.ais_new_hero_right_part .hero-audio-toggle {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 3;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	border: none;
	background: rgba(13, 13, 15, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: var(--ais-paper);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.ais_new_hero_right_part .hero-audio-toggle:hover {
	background: rgba(13, 13, 15, 0.8);
}

.ais_new_hero_right_part .hero-audio-toggle svg {
	width: 16px;
	height: 16px;
}

.ais_new_hero_right_part .hero-audio-toggle .icon-on {
	display: none;
}

.ais_new_hero_right_part .hero-audio-toggle.unmuted .icon-on {
	display: block;
}

.ais_new_hero_right_part .hero-audio-toggle.unmuted .icon-off {
	display: none;
}

/* ----- category tag ----- */
.ais_new_hero_right_part .demo-tag {
	position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: rgba(13, 13, 15, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--ais-paper);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 11px;
    border-radius: 999px;
    height: 25px;
    line-height: 25px;
}

/* ----- NEW corner stamp ----- */
.ais_new_hero_right_part .clapboard-stamp {
    position: absolute;
    top: 14px;
    left: -34px;
    background: var(--accent);
    color: var(--paper);
    background: #5b5cf6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 40px;
    transform: rotate(-45deg);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    height: 25px;
    line-height: 25px;
}

/* ----- responsive ----- */

@media (min-width: 767px) and (max-width: 1200px) {
	.ais_new_imp_bc_header .hero-right {
		max-width: 100% !important;
	}
}

@media (max-width: 920px) {
	.ais_new_hero_right_part .clapboard-stamp {
		left: -30px;
	}
}
@media (max-width: 767px) {
	.ais_new_imp_bc_header .hero-right {
		margin-top: 10px;
	}
}

@media (max-width: 680px) {
	.ais_new_hero_right_part .demo-prompt-text {
		min-height: 54px;
	}
}