/* RevYoutube — Modern 9:16 Carousel & Custom On-Site Shorts Player */

.revyt-section {
	position: relative;
	padding: 72px 0 64px;
	background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
	overflow: hidden;
}

.revyt-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.revyt-heading-group {
	min-width: 0;
}

.revyt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #d98200;
	background: rgba(255, 176, 59, 0.14);
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.revyt-eyebrow-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ff3b30;
	box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2);
}

.revyt-title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	color: #1a1816;
	letter-spacing: 0.4px;
	line-height: 1.2;
}

.revyt-title-bar {
	width: 68px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, #ffb03b 0%, #ff8c00 100%);
	margin-top: 12px;
}

.revyt-subtitle {
	margin: 10px 0 0;
	color: #6b655c;
	font-size: 14.5px;
}

.revyt-arrows {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.revyt-arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(26, 24, 22, 0.12);
	background: #ffffff;
	color: #1a1816;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(26, 24, 22, 0.06);
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.revyt-arrow:hover:not(:disabled) {
	background: #ffb03b;
	border-color: #ffb03b;
	color: #1a1816;
	transform: translateY(-2px);
}

.revyt-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Carousel Track */
.revyt-carousel-wrap {
	position: relative;
}

.revyt-track {
	--revyt-gap: 18px;
	display: flex;
	gap: var(--revyt-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 6px 2px 14px;
	cursor: grab;
}

.revyt-track::-webkit-scrollbar {
	display: none;
}

.revyt-track.is-dragging {
	scroll-behavior: auto;
	scroll-snap-type: none;
	cursor: grabbing;
}

.revyt-card {
	display: block;
	position: relative;
	flex: 0 0 calc((100% - (var(--revyt-cols, 5) - 1) * var(--revyt-gap)) / var(--revyt-cols, 5));
	border-radius: 18px;
	overflow: hidden;
	border: none;
	padding: 0;
	margin: 0;
	background: #1a1816;
	scroll-snap-align: start;
	cursor: pointer;
	text-align: left;
	box-shadow: 0 12px 28px rgba(26, 24, 22, 0.14);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.revyt-card::before {
	content: "";
	display: block;
	width: 100%;
	padding-top: 177.7778%;
}

.revyt-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 36px rgba(26, 24, 22, 0.22);
}

.revyt-card:focus-visible {
	outline: 3px solid #ffb03b;
	outline-offset: 3px;
}

.revyt-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.revyt-card:hover .revyt-card-img {
	transform: scale(1.06);
}

.revyt-card-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.24) 0%,
		rgba(0, 0, 0, 0.02) 38%,
		rgba(0, 0, 0, 0.14) 64%,
		rgba(15, 13, 12, 0.88) 100%
	);
	pointer-events: none;
}

.revyt-shorts-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(20, 18, 16, 0.62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
	pointer-events: none;
}

.revyt-shorts-badge svg {
	color: #ffb03b;
}

.revyt-card-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
	pointer-events: none;
}

.revyt-card-play svg {
	margin-left: 3px;
}

.revyt-card:hover .revyt-card-play {
	transform: translate(-50%, -50%) scale(1.1);
	background: #ffb03b;
	border-color: #ffb03b;
	color: #1a1816;
}

.revyt-card-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 14px 14px;
	pointer-events: none;
}

.revyt-card-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.38;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.revyt-track-progress {
	height: 3px;
	width: 100%;
	background: rgba(26, 24, 22, 0.1);
	border-radius: 999px;
	overflow: hidden;
	margin-top: 8px;
}

.revyt-track-progress-fill {
	height: 100%;
	width: 25%;
	background: linear-gradient(90deg, #ffb03b, #ff8c00);
	border-radius: 999px;
	transition: width 0.2s ease, transform 0.2s ease;
}

/* Responsive Breakpoints */
@media (max-width: 1199px) {
	.revyt-card {
		flex: 0 0 calc((100% - 3 * var(--revyt-gap)) / 4);
	}
}

@media (max-width: 991px) {
	.revyt-section {
		padding: 56px 0 48px;
	}
	.revyt-card {
		flex: 0 0 calc((100% - 2 * var(--revyt-gap)) / 3);
	}
}

@media (max-width: 575px) {
	.revyt-section {
		padding: 44px 0 40px;
	}
	.revyt-title {
		font-size: 24px;
	}
	.revyt-arrows {
		display: none;
	}
	.revyt-track {
		--revyt-gap: 12px;
	}
	.revyt-card {
		flex: 0 0 45.5%;
		border-radius: 15px;
	}
	.revyt-card-play {
		width: 48px;
		height: 48px;
	}
	.revyt-card-title {
		font-size: 12.5px;
	}
}

/* ==========================================================================
   Custom On-Site Shorts Player Modal (Zero YouTube Redirect)
   ========================================================================== */
body.revyt-modal-open {
	overflow: hidden !important;
}

.revyt-modal {
	position: fixed;
	inset: 0;
	z-index: 1000010;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.revyt-modal[hidden] {
	display: none !important;
}

.revyt-modal.is-visible {
	opacity: 1;
}

.revyt-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 9, 8, 0.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.revyt-modal-shell {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 100%;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
	pointer-events: none;
}

.revyt-modal-nav {
	pointer-events: auto;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.revyt-modal-nav:hover:not(:disabled) {
	background: #ffb03b;
	border-color: #ffb03b;
	color: #1a1816;
	transform: scale(1.06);
}

.revyt-modal-nav:disabled {
	opacity: 0.25;
	cursor: default;
}

.revyt-player-stage {
	pointer-events: auto;
	position: relative;
	height: min(86vh, 800px);
	aspect-ratio: 9 / 16;
	max-width: calc(100vw - 160px);
	border-radius: 22px;
	overflow: hidden;
	background: #000000;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.revyt-iframe-slot {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #000000;
}

.revyt-iframe {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
	pointer-events: none !important;
}

.revyt-player-shield {
	position: absolute;
	inset: 0;
	z-index: 4;
	cursor: pointer;
	touch-action: none;
}

/* Loading spinner */
.revyt-spinner {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.revyt-player-stage.is-loading .revyt-spinner {
	opacity: 1;
}

.revyt-spinner span {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #ffb03b;
	animation: revytSpin 0.8s linear infinite;
}

@keyframes revytSpin {
	to { transform: rotate(360deg); }
}

/* Center tap play/pause feedback */
.revyt-pulse-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	transform: translate(-50%, -50%) scale(0.8);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(18, 16, 15, 0.68);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.revyt-pulse-icon .revyt-icon-play,
.revyt-pulse-icon .revyt-icon-pause {
	display: none;
}

.revyt-player-stage.is-paused .revyt-pulse-icon {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.revyt-player-stage.is-paused .revyt-pulse-icon .revyt-icon-play {
	display: block;
	margin-left: 3px;
}

.revyt-player-stage.show-pulse .revyt-pulse-icon {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.06);
}

.revyt-player-stage.show-pulse:not(.is-paused) .revyt-pulse-icon .revyt-icon-pause {
	display: block;
}

/* Unmute pill for mobile autoplay restrictions */
.revyt-unmute-pill {
	position: absolute;
	top: 66px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 7;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(20, 18, 16, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #ffffff;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.revyt-unmute-pill[hidden] {
	display: none !important;
}

/* Top bar */
.revyt-player-top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 36px;
	background: linear-gradient(180deg, rgba(10, 9, 8, 0.94) 0%, rgba(10, 9, 8, 0.72) 56%, rgba(10, 9, 8, 0) 100%);
	pointer-events: none;
}

.revyt-player-counter {
	background: rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.revyt-player-top-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: auto;
}

.revyt-ctrl-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(20, 18, 16, 0.62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.revyt-ctrl-btn:hover {
	background: rgba(255, 176, 59, 0.9);
	color: #1a1816;
}

.revyt-mute-btn .revyt-vol-off { display: none; }
.revyt-player-stage.is-muted .revyt-mute-btn .revyt-vol-on { display: none; }
.revyt-player-stage.is-muted .revyt-mute-btn .revyt-vol-off { display: block; }

/* Bottom overlay */
.revyt-player-bottom {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 6;
	padding: 44px 14px calc(14px + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(0deg, rgba(10, 9, 8, 0.96) 0%, rgba(10, 9, 8, 0.78) 54%, rgba(10, 9, 8, 0) 100%);
	pointer-events: none;
}

.revyt-player-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}

.revyt-player-title {
	margin: 0;
	color: #ffffff;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.38;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.revyt-player-cta {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #ffb03b;
	color: #1a1816 !important;
	font-size: 12.5px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: 999px;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(255, 176, 59, 0.35);
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.revyt-player-cta:hover {
	background: #ffc266;
	transform: translateY(-1px);
}

.revyt-player-cta[hidden] {
	display: none !important;
}

.revyt-player-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	pointer-events: auto;
}

.revyt-playpause-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}

.revyt-playpause-btn .revyt-pp-play { display: none; }
.revyt-player-stage.is-paused .revyt-playpause-btn .revyt-pp-pause { display: none; }
.revyt-player-stage.is-paused .revyt-playpause-btn .revyt-pp-play { display: block; margin-left: 2px; }

.revyt-seek-bar {
	flex: 1;
	padding: 10px 0;
	cursor: pointer;
}

.revyt-seek-track {
	height: 4px;
	background: rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	overflow: hidden;
}

.revyt-seek-fill {
	height: 100%;
	width: 0%;
	background: #ffb03b;
	border-radius: 999px;
	transition: width 0.12s linear;
}

.revyt-mobile-step {
	display: none;
	align-items: center;
	gap: 6px;
}

.revyt-step-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

@media (max-width: 768px) {
	.revyt-modal-shell {
		padding: 0;
	}
	.revyt-modal-nav {
		display: none;
	}
	.revyt-player-stage {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-width: none;
		aspect-ratio: auto;
		border-radius: 0;
	}
	.revyt-mobile-step {
		display: flex;
	}
}
