.gpc-player {
	--gpc-ratio: 16 / 9;
	overflow: hidden;
	background: #18140f;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 20px;
	color: #fff;
	box-shadow: 0 18px 40px rgba(27, 20, 13, 0.2);
}

.gpc-player--4-3 {
	--gpc-ratio: 4 / 3;
}

.gpc-player--3-2 {
	--gpc-ratio: 3 / 2;
}

.gpc-player--9-16 {
	--gpc-ratio: 9 / 16;
	max-width: 620px;
	margin-right: auto;
	margin-left: auto;
}

.gpc-player__stage {
	position: relative;
	width: 100%;
	aspect-ratio: var(--gpc-ratio);
	max-height: min(74vh, 820px);
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 35%, rgba(255, 204, 51, 0.18), transparent 35%),
		#18140f;
}

.gpc-player__poster,
.gpc-player__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.gpc-player__poster {
	display: grid;
	place-items: center;
}

.gpc-player__ad-layer {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: grid;
	visibility: hidden;
	padding: 12px;
	place-items: center;
	background: rgba(8, 7, 6, 0.42);
	opacity: 0;
	pointer-events: none;
	transition: opacity 160ms ease, visibility 160ms ease;
}

.gpc-player__ad-layer.is-visible {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.gpc-player__ad-card {
	width: 316px;
	max-width: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 10px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
	color: #211c16;
}

.gpc-player__ad-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 38px;
	padding: 0 5px 0 12px;
	background: #f5f3ef;
	border-bottom: 1px solid #dedad3;
}

.gpc-player__ad-header span {
	color: #777067;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.gpc-player__ad-header button {
	display: grid;
	width: 30px;
	height: 30px;
	padding: 0;
	place-items: center;
	background: #211c16;
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	font-size: 21px;
	font-weight: 700;
	line-height: 1;
}

.gpc-player__ad-header button:hover,
.gpc-player__ad-header button:focus-visible {
	background: #b42318;
	outline: 3px solid rgba(255, 204, 51, 0.72);
	outline-offset: 1px;
}

.gpc-player__ad-slot {
	display: grid;
	width: 300px;
	height: 250px;
	margin: 0 auto;
	overflow: hidden;
	place-items: center;
	background: #fff;
}

.gpc-player__ad-slot .widget {
	width: 300px;
	max-width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	overflow: visible;
	line-height: 0;
}

.gpc-player__ad-slot .widget:empty,
.gpc-player__ad-slot .widget > p:only-child:empty {
	display: none;
}

.gpc-player__ad-slot iframe,
.gpc-player__ad-slot ins,
.gpc-player__ad-slot img {
	display: block;
	max-width: 300px;
	max-height: 250px;
	margin: 0 auto;
}

.gpc-player__ad-slot iframe,
.gpc-player__ad-slot ins,
.gpc-player__ad-slot img {
	max-width: 300px;
	max-height: 250px;
}

.gpc-player__poster-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gpc-player__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(15, 12, 9, 0.86), rgba(15, 12, 9, 0.12) 75%),
		linear-gradient(90deg, rgba(15, 12, 9, 0.32), transparent);
}

.gpc-player__launch {
	position: absolute;
	right: 24px;
	bottom: 28px;
	left: 24px;
	z-index: 2;
	text-align: center;
}

.gpc-player__mini-label {
	display: inline-block;
	margin-bottom: 8px;
	color: #ffdb6f;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.gpc-player__launch h2 {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(1.7rem, 5vw, 3.6rem);
	line-height: 1;
	letter-spacing: -0.05em;
	text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.gpc-player__launch p {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 11px;
}

.gpc-player__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	background: #ffcc33;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 999px;
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15), 0 12px 30px rgba(0, 0, 0, 0.26);
	color: #211c16;
	cursor: pointer;
	font-size: 15px;
	font-weight: 900;
	transition: transform 160ms ease, background 160ms ease;
}

.gpc-player__play:hover,
.gpc-player__play:focus-visible {
	background: #ffdb69;
	transform: translateY(-2px);
}

.gpc-player__play span {
	font-size: 13px;
}

.gpc-player__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 58px;
	padding: 8px 12px 8px 16px;
	background: #211c16;
}

.gpc-player__identity {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	font-size: 12px;
}

.gpc-player__identity strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gpc-player__status {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	background: #b2a89c;
	border-radius: 50%;
}

.gpc-player.is-playing .gpc-player__status {
	background: #52b788;
	box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.16);
}

.gpc-player__actions {
	display: flex;
	gap: 6px;
}

.gpc-player__actions button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 11px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	font-size: 11px;
	font-weight: 700;
}

.gpc-player__actions button:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.14);
}

.gpc-player__actions button:disabled {
	cursor: not-allowed;
	opacity: 0.38;
}

.gpc-player-message {
	padding: 28px;
	background: #fff4ce;
	border: 1px solid #ead48b;
	border-radius: 18px;
	color: #5e4913;
	text-align: center;
}

.gpc-player-message a {
	text-decoration: underline;
}

@media (max-width: 620px) {
	.gpc-player {
		border-radius: 14px;
	}

	.gpc-player__launch {
		right: 14px;
		bottom: 16px;
		left: 14px;
	}

	.gpc-player__launch h2 {
		margin-bottom: 10px;
	}

	.gpc-player__launch p,
	.gpc-player__mini-label {
		display: none;
	}

	.gpc-player__play {
		min-height: 46px;
		padding: 0 19px;
		font-size: 13px;
	}

	.gpc-player__actions button span:last-child {
		display: none;
	}

	.gpc-player__ad-layer {
		padding: 6px;
	}

	.gpc-player__ad-card {
		width: 308px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gpc-player *,
	.gpc-player *::before,
	.gpc-player *::after {
		transition-duration: 0.01ms !important;
	}
}
