/* Testimonial carousel card — Obsidian Dark & Editorial Light support. */

.rcf-tc {
	background: #161513;
	color: #ffffff;
	border: 1px solid rgba(245, 166, 75, 0.16);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.85);
	font-family: inherit;
	line-height: 1.45;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.rcf-tc__title {
	margin: 0;
	padding: 22px 22px 16px;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #ffffff;
	text-wrap: balance;
}

.rcf-tc__quote {
	margin: 8px 0 0;
	color: #d6cfc6;
	font-size: 0.95rem;
	line-height: 1.45;
}

.rcf-tc__quote[hidden] {
	display: none;
}

.rcf-tc__stage {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000000;
	overflow: hidden;
}

.rcf-tc__stage iframe,
.rcf-tc__mount {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.rcf-tc__poster {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: #000000;
	cursor: pointer;
	transition: opacity 0.25s ease;
}

.rcf-tc__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.88;
	transition: transform 0.35s ease, opacity 0.25s ease;
}

.rcf-tc__poster:hover .rcf-tc__thumb {
	opacity: 1;
	transform: scale(1.02);
}

.rcf-tc__play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: #f5a64b;
	color: #0e0e0e;
	transform: translate(-50%, -50%);
	box-shadow: 0 12px 30px -6px rgba(245, 166, 75, 0.55);
	transition: transform 0.2s ease, background 0.2s ease;
}

.rcf-tc__poster:hover .rcf-tc__play {
	background: #ffba66;
	transform: translate(-50%, -50%) scale(1.06);
}

.rcf-tc__play svg {
	margin-left: 3px;
}

.rcf-tc.is-started .rcf-tc__poster {
	opacity: 0;
	pointer-events: none;
}

.rcf-tc__sound {
	position: absolute;
	z-index: 3;
	left: 12px;
	bottom: 54px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(245, 166, 75, 0.45);
	border-radius: 999px;
	background: rgba(14, 14, 14, 0.9);
	color: #ffffff;
	font: 700 0.85rem/1 inherit;
	cursor: pointer;
}

.rcf-tc__sound[hidden] {
	display: none;
}

.rcf-tc__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 16px 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rcf-tc__who {
	margin: 0;
	min-width: 0;
}

.rcf-tc__name {
	display: block;
	font-weight: 800;
	font-size: 0.98rem;
	color: #ffffff;
}

.rcf-tc__co {
	display: block;
	color: #a6a098;
	font-size: 0.86rem;
}

.rcf-tc__nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
}

.rcf-tc__arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.03);
	color: #ffffff;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rcf-tc__arrow:hover {
	border-color: #f5a64b;
	background: rgba(245, 166, 75, 0.14);
	color: #f5a64b;
}

.rcf-tc__dots {
	display: inline-flex;
}

.rcf-tc__dot {
	position: relative;
	width: 24px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.rcf-tc__dot::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.26);
	transform: translate(-50%, -50%);
	transition: background 0.2s ease, width 0.2s ease;
}

.rcf-tc__dot[aria-current="true"]::before {
	width: 10px;
	height: 10px;
	background: #f5a64b;
}

.rcf-tc.is-error .rcf-tc__who::after {
	content: "This video can't load right now.";
	display: block;
	margin-top: 4px;
	color: #f5a64b;
	font-size: 0.85rem;
}

.rcf-tc button:focus-visible {
	outline: 2px solid #f5a64b;
	outline-offset: 2px;
}

/* Light Mode Overrides */
html[data-theme="light"] .rcf-tc {
	background: #ffffff;
	color: #141210;
	border-color: rgba(20, 18, 16, 0.1);
	box-shadow: 0 22px 46px -26px rgba(20, 18, 16, 0.18);
}

html[data-theme="light"] .rcf-tc__title,
html[data-theme="light"] .rcf-tc__name {
	color: #141210;
}

html[data-theme="light"] .rcf-tc__co,
html[data-theme="light"] .rcf-tc__quote {
	color: #5c564e;
}

html[data-theme="light"] .rcf-tc__bar {
	border-top-color: rgba(20, 18, 16, 0.08);
}

html[data-theme="light"] .rcf-tc__arrow {
	border-color: rgba(20, 18, 16, 0.16);
	background: #faf8f5;
	color: #141210;
}

html[data-theme="light"] .rcf-tc__arrow:hover {
	border-color: #d9821f;
	background: rgba(245, 166, 75, 0.16);
	color: #b5650c;
}

html[data-theme="light"] .rcf-tc__dot::before {
	background: rgba(20, 18, 16, 0.22);
}

@media (max-width: 640px) {
	.rcf-tc__title { padding: 16px 16px 12px; font-size: 1.1rem; }
	.rcf-tc__bar { padding: 12px 12px 14px 16px; }
	.rcf-tc__play { width: 56px; height: 56px; }
	.rcf-tc__sound { left: 10px; bottom: 46px; min-height: 36px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.rcf-tc,
	.rcf-tc__poster,
	.rcf-tc__thumb,
	.rcf-tc__play { transition: none; }
}
