/**
 * Floating video bubble + lightbox.
 *
 * Shared by every page that shows the circular clip: the front page and the
 * Wheel of Fortune product page. Kept in its own file so pages that do not use
 * it never download these rules.
 */
/* ---------- Floating intro video bubble ---------- */

.sr-lw-bubble {
	position: fixed;
	left: 22px;
	bottom: 22px;
	z-index: 900;
	display: flex;
	align-items: center;
	gap: 10px;
	direction: rtl;
}

.sr-lw-bubble__btn {
	position: relative;
	width: 116px;
	height: 116px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(140deg, #8b5cf6, #6d28d9 55%, #4c1d95);
	cursor: pointer;
	isolation: isolate;
	box-shadow: 0 18px 40px -14px rgba(76, 29, 149, .75), inset 0 0 0 1px rgba(255, 255, 255, .18);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}

.sr-lw-bubble__btn:hover {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 24px 50px -16px rgba(76, 29, 149, .85), inset 0 0 0 1px rgba(255, 255, 255, .26);
}

.sr-lw-bubble__btn:focus-visible {
	outline: 3px solid #c4b5fd;
	outline-offset: 4px;
}

.sr-lw-bubble__ring {
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, rgba(167, 139, 250, 0), rgba(167, 139, 250, .95), rgba(139, 92, 246, .1), rgba(167, 139, 250, 0));
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
	animation: sr-lw-spin 6s linear infinite;
	pointer-events: none;
}

@keyframes sr-lw-spin {
	to { transform: rotate(360deg); }
}

.sr-lw-bubble__media {
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	overflow: hidden;
	background: #1e1b4b;
}

.sr-lw-bubble__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* No picture-in-picture button in any browser overlay. */
.sr-lw-bubble__video::-webkit-media-controls-picture-in-picture-button,
.sr-lw-vmodal__video::-webkit-media-controls-picture-in-picture-button {
	display: none !important;
}

.sr-lw-bubble__badge {
	position: absolute;
	left: 50%;
	bottom: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-left: -13px;
	border-radius: 50%;
	background: rgba(15, 12, 40, .55);
	color: #fff;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .3s, transform .3s;
	pointer-events: none;
}

.sr-lw-bubble__btn:hover .sr-lw-bubble__badge,
.sr-lw-bubble__btn:focus-visible .sr-lw-bubble__badge {
	opacity: 1;
	transform: translateY(0);
}

.sr-lw-bubble__tip {
	order: -1;
	padding: 7px 13px;
	border-radius: 999px;
	background: rgba(30, 27, 75, .92);
	color: #ede9fe;
	font-size: .78rem;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 10px 24px -12px rgba(30, 27, 75, .9);
	opacity: 0;
	transform: translateX(8px);
	transition: opacity .3s, transform .3s;
	pointer-events: none;
}

.sr-lw-bubble:hover .sr-lw-bubble__tip {
	opacity: 1;
	transform: translateX(0);
}

/* ---------- Video lightbox ---------- */

.sr-lw-vmodal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.sr-lw-vmodal[hidden] { display: none !important; }

.sr-lw-vmodal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 7, 24, .74);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
	animation: sr-lw-vmodal-fade .28s ease both;
}

.sr-lw-vmodal__dialog {
	position: relative;
	width: min(94vw, 46vh);
	aspect-ratio: 9 / 16;
	border-radius: 26px;
	overflow: hidden;
	background: #0b0a1a;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .92), inset 0 0 0 1px rgba(255, 255, 255, .08);
	animation: sr-lw-vmodal-in .45s cubic-bezier(.2, .9, .25, 1) both;
	transform-origin: 8% 100%;
}

.sr-lw-vmodal__bar {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 12px 26px;
	background: linear-gradient(to bottom, rgba(6, 5, 18, .82), rgba(6, 5, 18, 0));
}

/* The player column; the playlist sits next to it on wide screens. */
.sr-lw-vmodal__stage {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ---------- Playlist menu (SMS pages) ---------- */

.sr-lw-vmodal__dialog.has-playlist {
	display: flex;
	flex-direction: row;
	width: auto;
	aspect-ratio: auto;
	height: min(86vh, 760px);
	max-width: 94vw;
}

.sr-lw-vmodal__dialog.has-playlist .sr-lw-vmodal__stage {
	width: auto;
	height: 100%;
	flex: 0 0 auto;
	aspect-ratio: 9 / 16;
}

.sr-lw-vmodal__menu {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	width: 252px;
	padding: 16px 14px;
	background: linear-gradient(180deg, #14122b, #0b0a1a);
	border-inline-start: 1px solid rgba(255, 255, 255, .08);
	overflow-y: auto;
}

.sr-lw-vmodal__menu-title {
	margin: 0 0 10px;
	color: #c4b5fd;
	font-size: .72rem;
	font-weight: 700;
}

.sr-lw-vmodal__menu-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-lw-vmodal__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 12px;
	background: rgba(255, 255, 255, .04);
	color: rgba(255, 255, 255, .86);
	font-family: inherit;
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.6;
	text-align: start;
	cursor: pointer;
	transition: background .25s, border-color .25s, color .25s, transform .25s;
}

.sr-lw-vmodal__item:hover {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .24);
	transform: translateX(-2px);
}

.sr-lw-vmodal__item.is-active {
	background: linear-gradient(135deg, rgba(139, 92, 246, .92), rgba(109, 40, 217, .92));
	border-color: rgba(196, 181, 253, .7);
	color: #fff;
	box-shadow: 0 12px 26px -14px rgba(109, 40, 217, .95);
}

.sr-lw-vmodal__item-num {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	font-size: .7rem;
	font-variant-numeric: tabular-nums;
}

.sr-lw-vmodal__item.is-active .sr-lw-vmodal__item-num {
	background: rgba(255, 255, 255, .3);
}

.sr-lw-vmodal__time {
	min-width: 34px;
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
	opacity: .9;
}

.sr-lw-vmodal__track {
	position: relative;
	flex: 1;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .26);
	cursor: pointer;
	overflow: hidden;
}

.sr-lw-vmodal__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #a78bfa, #8b5cf6);
	transition: width .15s linear;
}

.sr-lw-vmodal__sound,
.sr-lw-vmodal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	cursor: pointer;
	transition: background .25s, transform .25s;
}

.sr-lw-vmodal__sound:hover,
.sr-lw-vmodal__close:hover {
	background: rgba(255, 255, 255, .28);
}

.sr-lw-vmodal__close:hover span { display: inline-block; transform: rotate(90deg); }
.sr-lw-vmodal__close span { transition: transform .3s; line-height: 1; font-size: 1.25rem; }

.sr-lw-vmodal__sound-off { display: none; }
.sr-lw-vmodal__sound.is-muted .sr-lw-vmodal__sound-on { display: none; }
.sr-lw-vmodal__sound.is-muted .sr-lw-vmodal__sound-off { display: block; }

.sr-lw-vmodal__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #0b0a1a;
	cursor: pointer;
}

.sr-lw-vmodal__pause {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	margin: -33px 0 0 -33px;
	border-radius: 50%;
	background: rgba(10, 8, 26, .5);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: #fff;
	opacity: 0;
	transform: scale(.86);
	transition: opacity .25s, transform .25s;
	pointer-events: none;
}

.sr-lw-vmodal__dialog.is-paused .sr-lw-vmodal__pause {
	opacity: 1;
	transform: scale(1);
}

.sr-lw-vmodal__end {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 26px 18px 22px;
	background: linear-gradient(to top, rgba(9, 7, 24, .96) 35%, rgba(9, 7, 24, 0));
	animation: sr-lw-vmodal-fade .3s ease both;
}

.sr-lw-vmodal__end[hidden] { display: none; }

.sr-lw-vmodal__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
}

.sr-lw-vmodal__replay {
	padding: 9px 20px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-family: inherit;
	font-size: .82rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .25s, border-color .25s;
}

.sr-lw-vmodal__replay:hover {
	background: rgba(255, 255, 255, .24);
	border-color: rgba(255, 255, 255, .6);
}

.sr-lw-vmodal__dismiss {
	padding: 9px 20px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, .82);
	font-family: inherit;
	font-size: .82rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .25s, border-color .25s, color .25s;
}

.sr-lw-vmodal__dismiss:hover {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .4);
	color: #fff;
}

.sr-lw-vmodal__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 18px;
	border-radius: 14px;
	background: linear-gradient(135deg, #8b5cf6, #6d28d9);
	color: #fff;
	font-size: .86rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 14px 30px -14px rgba(109, 40, 217, .95);
	transition: transform .25s, box-shadow .25s;
}

.sr-lw-vmodal__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 34px -14px rgba(109, 40, 217, 1);
}

@keyframes sr-lw-vmodal-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes sr-lw-vmodal-in {
	from { opacity: 0; transform: translate(-16px, 24px) scale(.86); }
	to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@media (max-width: 1024px) {
	.sr-lw-bubble__btn { width: 100px; height: 100px; }
	.sr-lw-bubble { left: 16px; bottom: 16px; }
}

/* The sticky action bar appears at 900px, so the bubble has to clear it. */
@media (max-width: 900px) {
	.sr-lw-bubble {
		left: 14px;
		bottom: calc(62px + env(safe-area-inset-bottom) + 14px);
	}
	.sr-lw-bubble__btn { width: 92px; height: 92px; }
	.sr-lw-bubble__tip { display: none; }
	.sr-lw-bubble__badge { opacity: 1; transform: none; bottom: 6px; width: 22px; height: 22px; margin-left: -11px; }
	.sr-lw-vmodal__dialog { width: min(92vw, 44vh); }
	.sr-lw-vmodal__dialog.has-playlist {
		flex-direction: column-reverse;
		width: min(92vw, 44vh);
		height: auto;
		max-height: 92vh;
	}
	.sr-lw-vmodal__dialog.has-playlist .sr-lw-vmodal__stage {
		width: 100%;
		height: auto;
		aspect-ratio: 9 / 16;
	}
	.sr-lw-vmodal__menu {
		width: 100%;
		padding: 10px 12px;
		border-inline-start: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .08);
		overflow: visible;
	}
	.sr-lw-vmodal__menu-title { display: none; }
	.sr-lw-vmodal__menu-list {
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.sr-lw-vmodal__menu-list::-webkit-scrollbar { display: none; }
	.sr-lw-vmodal__item {
		width: auto;
		white-space: nowrap;
	}
}

@media (max-width: 600px) {
	.sr-lw-bubble { left: 12px; }
	.sr-lw-bubble__btn { width: 84px; height: 84px; }
}

@media (max-width: 380px) {
	.sr-lw-bubble__btn { width: 76px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
	.sr-lw-bubble__ring { animation: none; }
	.sr-lw-vmodal__dialog,
	.sr-lw-vmodal__backdrop { animation: none; }
	.sr-lw-bubble__btn,
	.sr-lw-bubble__tip,
	.sr-lw-bubble__badge { transition: none; }
}
