/* T45 Reel Carousel */
.t45r {
	--spv-d: 4;
	--spv-t: 3;
	--spv-m: 1.6;
	--gap: 16px;
	--radius: 14px;
	--spv: var(--spv-d);
	position: relative;
	width: 100%;
	max-width: 100%;
}
.t45r *, .t45r *::before, .t45r *::after { box-sizing: border-box; }
@media (max-width: 1024px) { .t45r { --spv: var(--spv-t); } }
@media (max-width: 640px)  { .t45r { --spv: var(--spv-m); } }

.t45r__viewport { position: relative; }

.t45r__track {
	display: flex;
	gap: var(--gap);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.t45r__track::-webkit-scrollbar { display: none; }

.t45r__slide {
	position: relative;
	flex: 0 0 calc((100% - (var(--spv) - 1) * var(--gap)) / var(--spv));
	aspect-ratio: 9 / 16;
	border-radius: var(--radius);
	overflow: hidden;
	scroll-snap-align: start;
	background: linear-gradient(160deg, #20242b, #0b0d10);
	isolation: isolate;
	transform: translateZ(0);
}

.t45r__media { position: absolute; inset: 0; z-index: 0; }
.t45r__poster {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; display: block;
	margin: 0; max-width: none;
}
.t45r__video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; display: block;
	opacity: 0; transition: opacity .4s ease;
	pointer-events: none;
}
/* 16:9 player cropped to 9:16 (Shorts fill exactly, landscape is centre-cropped) */
.t45r__yt {
	position: absolute; top: 0; left: 50%;
	height: 100%; width: 316.05%;
	transform: translateX(-50%);
	border: 0; opacity: 0; transition: opacity .4s ease;
	pointer-events: none;
}
.t45r__video.is-ready, .t45r__yt.is-ready { opacity: 1; }

.t45r__shade {
	position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
	z-index: 1; pointer-events: none;
	background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
}
.t45r__title {
	position: absolute; left: 12px; right: 56px; bottom: 12px;
	z-index: 3; pointer-events: none;
	color: #fff; font-size: 14px; line-height: 1.3; font-weight: 600;
	text-shadow: 0 1px 3px rgba(0,0,0,.6);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.t45r__play {
	position: absolute; right: 10px; bottom: 10px; z-index: 3;
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center;
	background: rgba(0,0,0,.55); color: #fff;
	pointer-events: none; transition: transform .2s ease, background .2s ease;
}
.t45r__slide:hover .t45r__play { transform: scale(1.12); background: rgba(0,0,0,.75); }

.t45r .t45r__open,
.t45r .t45r__open:hover,
.t45r .t45r__open:focus,
.t45r .t45r__open:active {
	position: absolute; inset: 0; z-index: 2;
	width: 100%; height: 100%; min-height: 0;
	margin: 0; padding: 0; border: 0; border-radius: inherit;
	background: transparent; color: inherit; box-shadow: none;
	cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.t45r .t45r__open:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }

/* Arrows */
.t45r .t45r__nav,
.t45r .t45r__nav:hover,
.t45r .t45r__nav:focus {
	position: absolute; top: 50%; z-index: 5;
	width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0;
	transform: translateY(-50%);
	display: grid; place-items: center;
	border: 0; border-radius: 50%;
	background: rgba(255,255,255,.95); color: #111;
	box-shadow: 0 2px 10px rgba(0,0,0,.3);
	cursor: pointer; transition: opacity .2s ease;
}
.t45r .t45r__nav:hover { background: #fff; }
.t45r__nav--prev { left: 8px; }
.t45r__nav--next { right: 8px; }
.t45r .t45r__nav[disabled] { opacity: 0; pointer-events: none; }
.t45r.is-static .t45r__nav,
.t45r.t45r--noarrows .t45r__nav { display: none; }
@media (hover: none), (pointer: coarse) { .t45r .t45r__nav { display: none; } }

/* Popup */
html.t45r-lock { overflow: hidden !important; }

.t45r-modal {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
	overscroll-behavior: contain;
}
.t45r-modal.is-open { opacity: 1; visibility: visible; }
.t45r-modal__backdrop {
	position: absolute; inset: 0;
	background: rgba(0,0,0,.9);
	touch-action: none;
}
.t45r-modal__box {
	--r: .5625;
	position: relative; z-index: 1;
	width: min(94vw, calc((100vh - 32px) * var(--r)));
	width: min(94vw, calc((100dvh - 32px) * var(--r)));
	aspect-ratio: var(--r);
	background: #000; border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.t45r-modal__stage { position: absolute; inset: 0; }
.t45r-modal__stage iframe,
.t45r-modal__stage video {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border: 0; border-radius: 12px; background: #000; object-fit: contain; display: block;
}
.t45r-modal .t45r-modal__close,
.t45r-modal .t45r-modal__close:hover,
.t45r-modal .t45r-modal__close:focus {
	position: fixed; z-index: 3;
	top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
	width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0;
	display: grid; place-items: center;
	border: 0; border-radius: 50%;
	background: rgba(255,255,255,.2); color: #fff;
	box-shadow: none; cursor: pointer;
}
.t45r-modal .t45r-modal__close:hover { background: rgba(255,255,255,.35); }

@media (prefers-reduced-motion: reduce) {
	.t45r__track { scroll-behavior: auto; }
	.t45r__video, .t45r__yt, .t45r-modal { transition: none; }
}
