.opg-gallery,
.opg-gallery * {
	box-sizing: border-box;
}

.opg-gallery {
	--opg-accent: #1677ff;
	--opg-ink: #111827;
	--opg-muted: #667085;
	--opg-line: #e5e7eb;
	--opg-soft: #f6f7f9;
	--opg-stage: #050608;
	--opg-radius: 18px;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 28px 14px;
	color: var(--opg-ink);
	font-family: inherit;
}

.opg-gallery button {
	font: inherit;
}

.opg-heading-wrap {
	margin: 0 0 22px;
}

.opg-title {
	margin: 0;
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -0.035em;
	color: var(--opg-ink);
}

.opg-title-line {
	display: block;
	width: 74px;
	height: 5px;
	margin-top: 12px;
	border-radius: 999px;
	background: var(--opg-accent);
}

.opg-empty {
	padding: 54px 24px;
	border: 1px dashed #cfd4dc;
	border-radius: var(--opg-radius);
	background: var(--opg-soft);
	text-align: center;
	color: var(--opg-muted);
}

.opg-empty strong {
	color: var(--opg-ink);
}

.opg-theatre {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 18px;
	align-items: start;
}

.opg-main-column {
	min-width: 0;
}

.opg-stage {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 420px;
	max-height: 720px;
	border-radius: var(--opg-radius);
	background: var(--opg-stage);
	box-shadow: 0 24px 70px rgba(5, 8, 16, 0.22);
	outline: none;
}

.opg-stage:focus-visible {
	box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.28), 0 24px 70px rgba(5, 8, 16, 0.22);
}

.opg-stage-media,
.opg-stage-element {
	width: 100%;
	height: 100%;
}

.opg-stage-media {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--opg-stage);
}

.opg-stage-element {
	display: block;
	object-fit: contain;
	background: var(--opg-stage);
}

video.opg-stage-element {
	object-fit: contain;
}

.opg-stage-shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, transparent 26%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.22) 34%, transparent 58%);
}

.opg-stage-top {
	position: absolute;
	z-index: 4;
	top: 16px;
	left: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	pointer-events: none;
}

.opg-counter,
.opg-kind {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(8, 10, 14, 0.62);
	backdrop-filter: blur(12px);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.opg-stage-arrow,
.opg-centre-control {
	position: absolute;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(7, 9, 12, 0.56);
	backdrop-filter: blur(12px);
	color: #fff;
	cursor: pointer;
	transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.opg-stage-arrow {
	top: 50%;
	width: 44px;
	height: 62px;
	margin-top: -31px;
	border-radius: 12px;
	font-size: 24px;
	opacity: 0;
}

.opg-stage:hover .opg-stage-arrow,
.opg-stage:focus-within .opg-stage-arrow {
	opacity: 1;
}

.opg-stage-arrow:hover,
.opg-stage-arrow:focus-visible,
.opg-centre-control:hover,
.opg-centre-control:focus-visible {
	background: rgba(22, 119, 255, 0.9);
	outline: none;
	transform: scale(1.04);
}

.opg-stage-arrow:disabled {
	opacity: 0.22 !important;
	cursor: default;
	transform: none;
}

.opg-stage-prev {
	left: 14px;
}

.opg-stage-next {
	right: 14px;
}

.opg-centre-control {
	top: 50%;
	left: 50%;
	width: 70px;
	height: 70px;
	margin: -35px 0 0 -35px;
	border-radius: 50%;
	font-size: 26px;
	opacity: 0;
}

.opg-centre-control span {
	display: block;
	transform: translateX(2px);
}

.opg-centre-control.is-playing span {
	transform: none;
}

.opg-stage:hover .opg-centre-control,
.opg-stage:focus-within .opg-centre-control,
.opg-gallery[data-current-type="image"] .opg-centre-control {
	opacity: 1;
}

.opg-stage-bottom {
	position: absolute;
	z-index: 4;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 42px 22px 18px;
	color: #fff;
	pointer-events: none;
}

.opg-stage-copy {
	max-width: min(720px, 82%);
}

.opg-stage-copy h3 {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(19px, 2.6vw, 30px);
	line-height: 1.15;
	font-weight: 900;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.opg-stage-copy p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	font-weight: 650;
}

.opg-hide-captions .opg-stage-copy h3,
.opg-hide-captions .opg-playlist-copy strong {
	display: none;
}

.opg-progress {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 4px;
	margin-top: 15px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
}

.opg-progress span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #fff;
	transition: width 120ms linear;
}

.opg-loading[hidden],
.opg-swipe-hint[hidden],
.opg-playlist-item[hidden] {
	display: none !important;
}

.opg-loading {
	position: absolute;
	z-index: 7;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.56);
	backdrop-filter: blur(8px);
}

.opg-loading span {
	position: absolute;
	inset: 11px;
	border: 3px solid rgba(255, 255, 255, 0.26);
	border-top-color: #fff;
	border-radius: 50%;
	animation: opg-spin 800ms linear infinite;
}

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

.opg-swipe-hint {
	display: none;
}

.opg-player-toolbar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 10px;
	align-items: center;
	margin-top: 12px;
}

.opg-player-toolbar button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 15px;
	border: 1px solid var(--opg-line);
	border-radius: 12px;
	background: #fff;
	color: var(--opg-ink);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.opg-player-toolbar button:first-child {
	justify-self: start;
}

.opg-player-toolbar button:last-child {
	justify-self: end;
}

.opg-player-toolbar button:hover,
.opg-player-toolbar button:focus-visible {
	border-color: var(--opg-accent);
	color: var(--opg-accent);
	outline: none;
	transform: translateY(-1px);
}

.opg-player-toolbar button:disabled {
	opacity: 0.38;
	cursor: default;
	transform: none;
}

.opg-player-toolbar [data-opg-autoplay-toggle] {
	min-width: 150px;
	background: var(--opg-soft);
}

.opg-player-toolbar [data-opg-autoplay-toggle].is-active {
	border-color: rgba(22, 119, 255, 0.26);
	background: rgba(22, 119, 255, 0.08);
	color: var(--opg-accent);
}

.opg-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #98a2b3;
}

.is-active .opg-status-dot {
	background: #12b76a;
	box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.13);
}

.opg-playlist {
	position: sticky;
	top: 18px;
	overflow: hidden;
	max-height: min(720px, calc(100vh - 36px));
	border: 1px solid var(--opg-line);
	border-radius: var(--opg-radius);
	background: #fff;
	box-shadow: 0 18px 48px rgba(16, 24, 40, 0.09);
}

.opg-playlist-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 12px;
	border-bottom: 1px solid var(--opg-line);
}

.opg-playlist-head h3 {
	margin: 2px 0 0;
	font-size: 18px;
	line-height: 1.15;
	font-weight: 900;
	color: var(--opg-ink);
}

.opg-playlist-head > strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 28px;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--opg-soft);
	color: var(--opg-muted);
	font-size: 12px;
}

.opg-eyebrow {
	color: var(--opg-accent);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.opg-filters {
	display: flex;
	gap: 6px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--opg-line);
	overflow-x: auto;
	scrollbar-width: none;
}

.opg-filters::-webkit-scrollbar {
	display: none;
}

.opg-filter {
	flex: 0 0 auto;
	min-height: 32px;
	padding: 6px 11px;
	border: 1px solid var(--opg-line);
	border-radius: 999px;
	background: #fff;
	color: var(--opg-muted);
	font-size: 11px;
	font-weight: 850;
	cursor: pointer;
}

.opg-filter:hover,
.opg-filter:focus-visible {
	border-color: var(--opg-accent);
	color: var(--opg-accent);
	outline: none;
}

.opg-filter.is-active {
	border-color: var(--opg-accent);
	background: var(--opg-accent);
	color: #fff;
}

.opg-playlist-list {
	overflow-x: hidden;
	overflow-y: auto;
	max-height: calc(min(720px, 100vh - 36px) - 121px);
	padding: 8px;
	scrollbar-width: thin;
	scrollbar-color: #cfd4dc transparent;
}

.opg-playlist-list::-webkit-scrollbar {
	width: 6px;
}

.opg-playlist-list::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: #cfd4dc;
}

.opg-playlist-item {
	position: relative;
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) 22px;
	gap: 11px;
	align-items: center;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: transparent;
	color: var(--opg-ink);
	text-align: left;
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.opg-playlist-item + .opg-playlist-item {
	margin-top: 3px;
}

.opg-playlist-item:hover,
.opg-playlist-item:focus-visible {
	border-color: #d8dee8;
	background: var(--opg-soft);
	outline: none;
	transform: translateX(-2px);
}

.opg-playlist-item.is-current {
	border-color: rgba(22, 119, 255, 0.25);
	background: rgba(22, 119, 255, 0.075);
}

.opg-playlist-item.is-current::before {
	position: absolute;
	top: 11px;
	bottom: 11px;
	left: 0;
	width: 3px;
	border-radius: 0 999px 999px 0;
	background: var(--opg-accent);
	content: "";
}

.opg-playlist-thumb {
	position: relative;
	overflow: hidden;
	width: 104px;
	height: 65px;
	border-radius: 9px;
	background: #0b0d12;
}

.opg-playlist-thumb img,
.opg-video-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.opg-video-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 25% 20%, rgba(22, 119, 255, 0.52), transparent 35%),
		linear-gradient(145deg, #171b25, #050608);
	color: rgba(255, 255, 255, 0.86);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
}

.opg-thumb-kind {
	position: absolute;
	right: 5px;
	bottom: 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 10px;
}

.opg-playlist-copy {
	min-width: 0;
}

.opg-playlist-copy strong {
	display: -webkit-box;
	overflow: hidden;
	color: var(--opg-ink);
	font-size: 13px;
	line-height: 1.3;
	font-weight: 850;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.opg-playlist-copy small {
	display: block;
	margin-top: 5px;
	color: var(--opg-muted);
	font-size: 10px;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.opg-now-playing {
	display: none;
	align-items: end;
	justify-content: center;
	gap: 2px;
	height: 18px;
}

.opg-playlist-item.is-current .opg-now-playing {
	display: flex;
}

.opg-now-playing i {
	display: block;
	width: 3px;
	height: 5px;
	border-radius: 999px;
	background: var(--opg-accent);
	animation: opg-equalize 750ms ease-in-out infinite alternate;
}

.opg-now-playing i:nth-child(2) {
	height: 13px;
	animation-delay: 180ms;
}

.opg-now-playing i:nth-child(3) {
	height: 9px;
	animation-delay: 330ms;
}

@keyframes opg-equalize {
	to { height: 17px; }
}

.opg-preload-bin {
	position: fixed;
	top: -10px;
	left: -10px;
	overflow: hidden;
	width: 1px;
	height: 1px;
	opacity: 0.001;
	pointer-events: none;
}

.opg-preload-bin video {
	width: 1px;
	height: 1px;
}

.opg-noscript-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.opg-noscript-grid a {
	overflow: hidden;
	border: 1px solid var(--opg-line);
	border-radius: 12px;
	background: #fff;
	color: var(--opg-ink);
	text-decoration: none;
}

.opg-noscript-grid a > span {
	display: block;
	height: 180px;
	background: #080a0d;
}

.opg-noscript-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.opg-noscript-grid strong {
	display: block;
	padding: 12px;
}

@media (max-width: 1020px) {
	.opg-theatre {
		grid-template-columns: minmax(0, 1fr) 280px;
	}

	.opg-playlist-item {
		grid-template-columns: 86px minmax(0, 1fr) 18px;
		gap: 9px;
	}

	.opg-playlist-thumb {
		width: 86px;
		height: 56px;
	}
}

@media (max-width: 780px) {
	.opg-gallery {
		padding: 20px 0 30px;
	}

	.opg-heading-wrap {
		padding: 0 15px;
		margin-bottom: 16px;
	}

	.opg-title {
		font-size: clamp(29px, 10vw, 42px);
	}

	.opg-theatre {
		display: block;
	}

	.opg-stage {
		width: calc(100% - 16px);
		height: min(76svh, 720px);
		min-height: 500px;
		max-height: none;
		margin: 0 8px;
		aspect-ratio: auto;
		border-radius: calc(var(--opg-radius) * 0.8);
		touch-action: auto;
	}

	.opg-stage-media {
		background: #030406;
	}

	.opg-gallery[data-mobile-swipe="1"] .opg-stage {
		touch-action: pan-x;
	}

	.opg-gallery[data-mobile-swipe="0"] .opg-swipe-hint {
		display: none;
	}

	.opg-stage-element {
		object-fit: contain;
	}

	.opg-stage-arrow {
		top: auto;
		bottom: 92px;
		width: 38px;
		height: 44px;
		margin: 0;
		opacity: 0.74;
		font-size: 19px;
	}

	.opg-stage-prev {
		left: 12px;
	}

	.opg-stage-next {
		right: 12px;
	}

	.opg-centre-control {
		width: 62px;
		height: 62px;
		margin: -31px 0 0 -31px;
		opacity: 0.9;
	}

	.opg-stage-top {
		top: 12px;
		left: 12px;
		right: 12px;
	}

	.opg-stage-bottom {
		padding: 52px 16px 18px;
	}

	.opg-stage-copy {
		max-width: calc(100% - 62px);
	}

	.opg-stage-copy h3 {
		font-size: clamp(20px, 6vw, 27px);
	}

	.opg-swipe-hint {
		position: absolute;
		z-index: 6;
		right: 14px;
		bottom: 68px;
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		gap: 1px;
		color: rgba(255, 255, 255, 0.78);
		font-size: 9px;
		font-weight: 850;
		letter-spacing: 0.03em;
		text-transform: uppercase;
		pointer-events: none;
		animation: opg-swipe-hint 1.6s ease-in-out infinite;
	}

	.opg-swipe-hint span {
		font-size: 23px;
		line-height: 1;
	}

	.opg-gallery.has-swiped .opg-swipe-hint {
		display: none;
	}

	@keyframes opg-swipe-hint {
		50% { transform: translateY(-7px); }
	}

	.opg-player-toolbar {
		grid-template-columns: 1fr auto 1fr;
		margin: 10px 8px 0;
	}

	.opg-player-toolbar button {
		min-height: 42px;
		padding: 8px 10px;
		border-radius: 10px;
		font-size: 11px;
	}

	.opg-player-toolbar [data-opg-autoplay-toggle] {
		min-width: 132px;
	}

	.opg-playlist {
		position: relative;
		top: auto;
		max-height: none;
		margin: 16px 8px 0;
		border-radius: calc(var(--opg-radius) * 0.8);
	}

	.opg-playlist-head {
		padding: 14px;
	}

	.opg-filters {
		padding: 9px 11px;
	}

	.opg-playlist-list {
		display: flex;
		gap: 9px;
		overflow-x: auto;
		overflow-y: hidden;
		max-height: none;
		padding: 10px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.opg-playlist-list::-webkit-scrollbar {
		display: none;
	}

	.opg-playlist-item {
		flex: 0 0 min(78vw, 310px);
		grid-template-columns: 92px minmax(0, 1fr) 18px;
		min-height: 82px;
		margin: 0 !important;
		padding: 7px;
		border-color: var(--opg-line);
		scroll-snap-align: start;
	}

	.opg-playlist-item:hover,
	.opg-playlist-item:focus-visible {
		transform: none;
	}

	.opg-playlist-item.is-current::before {
		top: auto;
		right: 10px;
		bottom: 0;
		left: 10px;
		width: auto;
		height: 3px;
		border-radius: 999px 999px 0 0;
	}

	.opg-playlist-thumb {
		width: 92px;
		height: 62px;
	}

	.opg-noscript-grid {
		grid-template-columns: 1fr;
		padding: 0 8px;
	}
}

@media (max-width: 420px) {
	.opg-stage {
		min-height: 470px;
		height: 72svh;
	}

	.opg-player-toolbar button:first-child,
	.opg-player-toolbar button:last-child {
		font-size: 0;
	}

	.opg-player-toolbar button:first-child span,
	.opg-player-toolbar button:last-child span {
		font-size: 16px;
	}

	.opg-player-toolbar [data-opg-autoplay-toggle] {
		min-width: 128px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.opg-gallery *,
	.opg-gallery *::before,
	.opg-gallery *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Version 4 player layout -------------------------------------------------- */
.opg-stage-slot {
	position: relative;
	width: 100%;
	min-height: 420px;
	max-height: 720px;
	aspect-ratio: 16 / 9;
}

.opg-stage-slot .opg-stage {
	height: 100%;
	min-height: 0;
	max-height: none;
	aspect-ratio: auto;
}

video.opg-stage-element {
	accent-color: var(--opg-accent);
}

.opg-gallery[data-current-type="video"] .opg-stage,
.opg-gallery[data-current-type="video"] .opg-stage-media,
.opg-gallery[data-current-type="video"] video.opg-stage-element {
	background: #000;
}

.opg-custom-controls {
	position: absolute;
	z-index: 8;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 38px 16px 12px;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 58%, rgba(0, 0, 0, 0.96) 100%);
	color: #fff;
}

.opg-stage-progress {
	--opg-progress: 0%;
	display: block;
	width: 100%;
	height: 18px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.opg-stage-progress::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--opg-accent) 0 var(--opg-progress), rgba(255, 255, 255, 0.38) var(--opg-progress) 100%);
}

.opg-stage-progress::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--opg-accent) 0 var(--opg-progress), rgba(255, 255, 255, 0.38) var(--opg-progress) 100%);
}

.opg-stage-progress::-webkit-slider-thumb {
	width: 13px;
	height: 13px;
	margin-top: -4.5px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.28);
	appearance: none;
	-webkit-appearance: none;
}

.opg-stage-progress::-moz-range-thumb {
	width: 13px;
	height: 13px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.28);
}

.opg-stage-progress:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.opg-stage-progress:disabled {
	opacity: 1;
	cursor: default;
}

.opg-control-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
}

.opg-control-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 20px;
	cursor: pointer;
}

.opg-control-button:hover,
.opg-control-button:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	outline: none;
}

.opg-control-time {
	min-width: 92px;
	font-size: 12px;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.opg-control-spacer {
	flex: 1;
}

.opg-quality-wrap select {
	min-width: 84px;
	height: 34px;
	padding: 0 30px 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 7px;
	background: rgba(0, 0, 0, 0.76);
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.opg-quality-wrap select option {
	background: #111;
	color: #fff;
}

.opg-volume-control {
	width: 82px;
	accent-color: #fff;
}

.opg-gallery[data-current-type="image"] .opg-custom-controls {
	padding: 0;
	background: none;
}

.opg-gallery[data-current-type="image"] .opg-stage-progress {
	height: 8px;
}

.opg-gallery[data-current-type="image"] .opg-control-row {
	display: none;
}

.opg-watch-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 2px 4px;
	border-bottom: 1px solid var(--opg-line);
}

.opg-watch-meta h3 {
	margin: 0;
	color: var(--opg-ink);
	font-size: clamp(20px, 2.4vw, 29px);
	line-height: 1.18;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.opg-watch-meta p {
	margin: 7px 0 0;
	color: var(--opg-muted);
	font-size: 13px;
	font-weight: 650;
}

.opg-watch-meta p strong {
	color: var(--opg-ink);
	font-weight: 900;
}

.opg-hide-captions .opg-watch-meta h3,
.opg-hide-captions .opg-image-caption strong {
	display: none;
}

.opg-pip-close {
	position: absolute;
	z-index: 12;
	top: 8px;
	right: 8px;
	display: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.opg-gallery.is-pip .opg-stage {
	position: fixed;
	z-index: 999999;
	right: 18px;
	bottom: 18px;
	width: min(430px, calc(100vw - 36px));
	height: auto;
	min-height: 0;
	aspect-ratio: 16 / 9;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
	animation: opg-pip-in 180ms ease-out;
}

.opg-gallery.is-pip .opg-pip-close {
	display: inline-flex;
}

.opg-gallery.is-pip .opg-stage-top,
.opg-gallery.is-pip .opg-stage-arrow,
.opg-gallery.is-pip .opg-centre-control,
.opg-gallery.is-pip .opg-swipe-hint,
.opg-gallery.is-pip .opg-loading {
	display: none !important;
}

@keyframes opg-pip-in {
	from { opacity: 0; transform: translateY(12px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.opg-preview-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #090b10;
	transition: transform 220ms ease, opacity 180ms ease;
}

.opg-playlist-item:hover .opg-preview-video,
.opg-playlist-item:focus-visible .opg-preview-video,
.opg-playlist-item.is-current .opg-preview-video {
	transform: scale(1.04);
}

.opg-playlist-item.is-current .opg-preview-video {
	opacity: 0.72;
}

.opg-images-section {
	margin-top: 42px;
	padding-top: 28px;
	border-top: 1px solid var(--opg-line);
}

.opg-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 16px;
}

.opg-section-heading h3 {
	margin: 3px 0 0;
	color: var(--opg-ink);
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1.12;
	font-weight: 900;
	letter-spacing: -0.025em;
}

.opg-section-heading > span {
	color: var(--opg-muted);
	font-size: 12px;
	font-weight: 800;
}

.opg-image-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.opg-image-card {
	min-width: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--opg-line);
	border-radius: 14px;
	background: #fff;
	color: var(--opg-ink);
	text-align: left;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.opg-image-card[hidden] {
	display: none !important;
}

.opg-image-card:hover,
.opg-image-card:focus-visible,
.opg-image-card.is-current {
	border-color: rgba(22, 119, 255, 0.55);
	box-shadow: 0 14px 36px rgba(16, 24, 40, 0.13);
	transform: translateY(-3px);
	outline: none;
}

.opg-image-frame {
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #eef1f5;
}

.opg-image-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 260ms ease;
}

.opg-image-card:hover .opg-image-frame img,
.opg-image-card:focus-visible .opg-image-frame img {
	transform: scale(1.045);
}

.opg-image-caption {
	display: block;
	padding: 11px 12px 12px;
}

.opg-image-caption strong {
	display: block;
	overflow: hidden;
	color: var(--opg-ink);
	font-size: 13px;
	line-height: 1.35;
	font-weight: 850;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.opg-image-caption small {
	display: block;
	margin-top: 4px;
	color: var(--opg-muted);
	font-size: 10px;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.opg-image-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
}

.opg-image-pagination[hidden] {
	display: none !important;
}

.opg-image-pagination button {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--opg-line);
	border-radius: 10px;
	background: #fff;
	color: var(--opg-ink);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.opg-image-pagination button:hover,
.opg-image-pagination button:focus-visible {
	border-color: var(--opg-accent);
	color: var(--opg-accent);
	outline: none;
}

.opg-image-pagination button:disabled {
	opacity: 0.38;
	cursor: default;
}

.opg-image-pagination span {
	min-width: 58px;
	color: var(--opg-muted);
	font-size: 12px;
	font-weight: 850;
	text-align: center;
}

@media (max-width: 1020px) {
	.opg-image-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	.opg-stage-slot {
		width: calc(100% - 16px);
		height: min(76svh, 720px);
		min-height: 500px;
		max-height: none;
		margin: 0 8px;
		aspect-ratio: auto;
	}

	.opg-stage-slot .opg-stage {
		width: 100%;
		height: 100%;
		margin: 0;
	}

	.opg-watch-meta {
		margin: 0 12px;
		padding-top: 14px;
	}

	.opg-watch-meta h3 {
		font-size: 21px;
	}

	.opg-gallery.is-pip .opg-stage {
		right: 10px;
		bottom: 10px;
		width: min(360px, calc(100vw - 20px));
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
		margin: 0;
	}

	.opg-images-section {
		margin: 34px 8px 0;
		padding-top: 22px;
	}

	.opg-image-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.opg-section-heading {
		align-items: center;
	}
}

@media (max-width: 480px) {
	.opg-image-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.opg-image-caption {
		padding: 9px 9px 10px;
	}

	.opg-image-caption strong {
		font-size: 12px;
	}

	.opg-image-pagination button {
		padding: 8px 10px;
		font-size: 11px;
	}
}


/* Version 4.1 custom player refinements ---------------------------------- */
.opg-centre-control {
	width: 82px;
	height: 82px;
	margin: -41px 0 0 -41px;
	border-color: rgba(255, 255, 255, 0.34);
	background: rgba(0, 0, 0, 0.58);
	font-size: 34px;
}

.opg-centre-control:hover,
.opg-centre-control:focus-visible {
	background: rgba(0, 0, 0, 0.72);
	transform: scale(1.05);
}

.opg-centre-control span {
	color: #fff;
	font-weight: 900;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.opg-stage-arrow {
	overflow: visible;
}

.opg-stage-arrow-icon {
	position: relative;
	z-index: 2;
}

.opg-nav-preview {
	position: absolute;
	top: 50%;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	width: 250px;
	padding: 9px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.92);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44);
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%) scale(0.96);
	transition: opacity 150ms ease, transform 150ms ease;
}

.opg-stage-prev .opg-nav-preview {
	left: calc(100% + 10px);
}

.opg-stage-next .opg-nav-preview {
	right: calc(100% + 10px);
}

.opg-stage-arrow:hover .opg-nav-preview,
.opg-stage-arrow:focus-visible .opg-nav-preview {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}

.opg-nav-preview-media {
	display: block;
	overflow: hidden;
	width: 112px;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	background: #000;
}

.opg-nav-preview-media img,
.opg-nav-preview-media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}

.opg-nav-preview-copy {
	display: -webkit-box;
	overflow: hidden;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
	text-align: left;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.opg-stage:fullscreen {
	width: 100vw;
	height: 100vh;
	max-height: none;
	border-radius: 0;
}

.opg-stage:fullscreen .opg-stage-media,
.opg-stage:fullscreen .opg-stage-element {
	width: 100%;
	height: 100%;
}

@media (max-width: 780px) {
	.opg-custom-controls {
		padding: 28px 10px 8px;
	}

	.opg-control-row {
		gap: 6px;
	}

	.opg-volume-control {
		display: none;
	}

	.opg-control-time {
		min-width: 78px;
		font-size: 11px;
	}

	.opg-quality-wrap select {
		min-width: 72px;
		padding-left: 8px;
		font-size: 11px;
	}

	.opg-centre-control {
		width: 68px;
		height: 68px;
		margin: -34px 0 0 -34px;
		font-size: 28px;
	}

	.opg-nav-preview {
		display: none;
	}
}


.opg-gallery[data-current-type="video"] .opg-stage-arrow {
	opacity: 0.78;
}

.opg-gallery[data-current-type="video"] .opg-stage:hover .opg-stage-arrow,
.opg-gallery[data-current-type="video"] .opg-stage:focus-within .opg-stage-arrow {
	opacity: 1;
}

.opg-centre-control:not(.is-playing) {
	opacity: 1;
}


/* Version 4.2 YouTube-style black player and section ---------------------- */
.opg-gallery {
	--opg-ink: #ffffff;
	--opg-muted: #a3a3a3;
	--opg-line: #2a2a2a;
	--opg-soft: #171717;
	--opg-stage: #000000;
	position: relative;
	isolation: isolate;
	color: #fff;
	background: #000;
}

.opg-gallery::before {
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	background: #000;
	content: "";
	transform: translateX(-50%);
}

.opg-title,
.opg-watch-meta h3,
.opg-watch-meta p strong,
.opg-playlist-head h3,
.opg-playlist-copy strong,
.opg-section-heading h3,
.opg-image-caption strong,
.opg-noscript-grid strong {
	color: #fff;
}

.opg-watch-meta p,
.opg-playlist-copy small,
.opg-section-heading > span,
.opg-image-caption small,
.opg-image-pagination span,
.opg-empty {
	color: #aaa;
}

.opg-empty,
.opg-playlist,
.opg-player-toolbar button,
.opg-filter,
.opg-image-card,
.opg-image-pagination button,
.opg-noscript-grid a {
	border-color: #2a2a2a;
	background: #111;
	color: #fff;
}

.opg-playlist-head,
.opg-filters,
.opg-watch-meta,
.opg-images-section {
	border-color: #2a2a2a;
}

.opg-playlist-head > strong,
.opg-player-toolbar [data-opg-autoplay-toggle] {
	background: #181818;
	color: #bbb;
}

.opg-playlist-item {
	color: #fff;
}

.opg-playlist-item:hover,
.opg-playlist-item:focus-visible,
.opg-image-card:hover,
.opg-image-card:focus-visible,
.opg-image-card.is-current,
.opg-player-toolbar button:hover,
.opg-player-toolbar button:focus-visible,
.opg-image-pagination button:hover,
.opg-image-pagination button:focus-visible {
	border-color: #444;
	background: #1b1b1b;
	color: #fff;
}

.opg-playlist-item.is-current {
	border-color: rgba(255, 255, 255, 0.25);
	background: #202020;
}

.opg-image-frame {
	background: #111;
}

.opg-player-toolbar {
	display: flex;
	justify-content: center;
}

.opg-player-toolbar [data-opg-autoplay-toggle] {
	min-width: 150px;
}

.opg-custom-controls,
.opg-stage-top,
.opg-centre-control {
	transition: opacity 190ms ease, visibility 190ms ease, transform 190ms ease;
}

.opg-gallery.opg-controls-hidden[data-current-type="video"] .opg-custom-controls {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
}

.opg-gallery.opg-controls-hidden[data-current-type="video"] .opg-stage-top,
.opg-gallery.opg-controls-hidden[data-current-type="video"] .opg-centre-control {
	visibility: hidden;
	opacity: 0 !important;
	pointer-events: none;
}

.opg-centre-control {
	border: 0;
	background: rgba(0, 0, 0, 0.58);
	color: #fff;
}

.opg-centre-control:hover,
.opg-centre-control:focus-visible {
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
}

.opg-centre-icon,
.opg-control-play-icon {
	position: relative;
	display: block;
	width: 28px;
	height: 30px;
	font-size: 0;
	transform: none !important;
}

.opg-control-play-icon {
	width: 18px;
	height: 22px;
}

.opg-centre-control:not(.is-playing) .opg-centre-icon::before,
.opg-control-play:not(.is-playing) .opg-control-play-icon::before {
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
	border-left: 23px solid #fff;
	content: "";
	transform: translate(-50%, -50%);
}

.opg-control-play:not(.is-playing) .opg-control-play-icon::before {
	border-top-width: 11px;
	border-bottom-width: 11px;
	border-left-width: 17px;
}

.opg-centre-control.is-playing .opg-centre-icon::before,
.opg-centre-control.is-playing .opg-centre-icon::after,
.opg-control-play.is-playing .opg-control-play-icon::before,
.opg-control-play.is-playing .opg-control-play-icon::after {
	position: absolute;
	top: 2px;
	bottom: 2px;
	width: 7px;
	border-radius: 1px;
	background: #fff;
	content: "";
}

.opg-centre-control.is-playing .opg-centre-icon::before,
.opg-control-play.is-playing .opg-control-play-icon::before {
	left: 3px;
}

.opg-centre-control.is-playing .opg-centre-icon::after,
.opg-control-play.is-playing .opg-control-play-icon::after {
	right: 3px;
}

.opg-control-play.is-playing .opg-control-play-icon::before,
.opg-control-play.is-playing .opg-control-play-icon::after {
	width: 5px;
}

.opg-control-button,
.opg-control-button:hover,
.opg-control-button:focus-visible {
	color: #fff;
}

.opg-control-nav {
	position: relative;
	flex: 0 0 36px;
}

.opg-control-nav:disabled {
	opacity: 0.28;
	cursor: default;
}

.opg-control-nav-icon {
	font-size: 20px;
	line-height: 1;
}

.opg-control-nav .opg-nav-preview {
	top: auto;
	bottom: calc(100% + 12px);
	width: 250px;
	transform: translateY(5px) scale(0.96);
}

.opg-control-prev .opg-nav-preview {
	right: auto;
	left: 0;
}

.opg-control-next .opg-nav-preview {
	right: 0;
	left: auto;
}

.opg-control-nav:hover .opg-nav-preview,
.opg-control-nav:focus-visible .opg-nav-preview {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.opg-gallery[data-current-type="image"] .opg-custom-controls {
	padding: 38px 16px 12px;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 58%, rgba(0, 0, 0, 0.96) 100%);
}

.opg-gallery[data-current-type="image"] .opg-stage-progress {
	height: 18px;
}

.opg-gallery[data-current-type="image"] .opg-control-row {
	display: flex;
}

.opg-gallery[data-current-type="image"] .opg-control-time,
.opg-gallery[data-current-type="image"] .opg-quality-wrap,
.opg-gallery[data-current-type="image"] [data-opg-mute],
.opg-gallery[data-current-type="image"] .opg-volume-control {
	display: none;
}

@media (max-width: 780px) {
	.opg-gallery {
		padding-top: 26px;
		padding-bottom: 34px;
	}

	.opg-custom-controls,
	.opg-gallery[data-current-type="image"] .opg-custom-controls {
		padding: 28px 10px 8px;
	}

	.opg-control-nav .opg-nav-preview {
		display: none;
	}
}


/* Version 4.3 deferred mobile player and compact Watch Next ---------------- */
.opg-stage-slot { scroll-margin-top: 92px; }
.opg-mobile-video-title { display: none; }
.opg-gallery.opg-gallery-pending .opg-loading { display: none !important; }

@media (max-width: 780px) {
	.opg-gallery:not(.opg-gallery-ready).is-pip .opg-stage,
	.opg-gallery.opg-gallery-pending.is-pip .opg-stage {
		position: relative; right: auto; bottom: auto; width: 100%; box-shadow: none;
	}
	.opg-playlist-head { align-items: center; padding: 12px 10px; }
	.opg-playlist-head h3 { font-size: 18px; }
	.opg-playlist-list { gap: 8px; padding: 8px 10px 11px; }
	.opg-playlist-item {
		position: relative; flex: 0 0 clamp(138px, 42vw, 176px); display: block;
		min-height: 0; overflow: hidden; padding: 0; border: 1px solid var(--opg-line);
		background: #111; scroll-snap-align: start;
	}
	.opg-playlist-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
	.opg-playlist-copy { display: block; padding: 8px 8px 9px; }
	.opg-playlist-copy strong {
		display: -webkit-box; min-height: 2.55em; font-size: 12px; line-height: 1.28;
		-webkit-box-orient: vertical; -webkit-line-clamp: 2;
	}
	.opg-playlist-copy small { margin-top: 4px; font-size: 9px; }
	.opg-playlist-item .opg-now-playing {
		position: absolute; top: 8px; right: 8px; width: 28px; height: 24px;
		padding: 4px; background: rgba(0, 0, 0, .72);
	}
	.opg-playlist-item.is-current::before { right: 0; bottom: 0; left: 0; }
	.opg-gallery[data-current-type="video"] .opg-mobile-video-title {
		position: absolute; z-index: 8; right: 58px; bottom: 75px; left: 14px;
		display: -webkit-box; overflow: hidden; color: #fff;
		font-size: clamp(14px, 4.1vw, 18px); font-weight: 850; line-height: 1.25;
		letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .95);
		pointer-events: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
	}
	.opg-gallery.is-pip .opg-mobile-video-title { display: none !important; }
}

@media (max-width: 420px) {
	.opg-playlist-item { flex-basis: clamp(132px, 44vw, 160px); }
	.opg-gallery[data-current-type="video"] .opg-mobile-video-title {
		right: 50px; bottom: 72px; font-size: 14px;
	}
}

@media (max-width: 780px) {
	.opg-gallery[data-current-type="video"] .opg-watch-meta h3 {
		display: none;
	}

	.opg-gallery[data-current-type="video"] .opg-watch-meta {
		padding-top: 10px;
	}
}
