:root {
	--gpl-bg: #050508;
	--gpl-panel: #11131a;
	--gpl-panel-soft: #181b24;
	--gpl-text: #ffffff;
	--gpl-muted: #aeb4c0;
	--gpl-border: rgba(255,255,255,.12);
	--gpl-accent: #e50914;
	--gpl-accent-dark: #b20710;
}

.gpl-streamlearn,
.gpl-streamlearn * {
	box-sizing: border-box;
}

.gpl-streamlearn {
	background: var(--gpl-bg);
	color: var(--gpl-text);
	font-family: inherit;
	padding: 0 0 32px;
	clear: both;
}

.gpl-streamlearn a {
	color: inherit;
	text-decoration: none;
}

.gpl-placeholder,
.gpl-notice,
.gpl-empty-card {
	padding: 18px;
	border: 1px solid var(--gpl-border);
	border-radius: 14px;
	background: var(--gpl-panel);
	color: var(--gpl-muted);
}

.gpl-hero {
	min-height: 460px;
	background-color: #0b0d12;
	background-size: cover;
	background-position: center;
	border-radius: 0 0 22px 22px;
	display: flex;
	align-items: center;
	padding: clamp(34px, 7vw, 84px);
	margin-bottom: 30px;
}

.gpl-detail-hero {
	border-radius: 22px;
}

.gpl-hero-content {
	max-width: 680px;
}

.gpl-kicker,
.gpl-card-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(229, 9, 20, .92);
	border-radius: 999px;
	padding: 6px 10px;
}

.gpl-hero h1 {
	font-size: clamp(34px, 6vw, 72px);
	line-height: 1;
	margin: 18px 0 14px;
	color: #fff;
}

.gpl-hero p {
	font-size: clamp(16px, 2.2vw, 20px);
	line-height: 1.55;
	color: #eef0f4;
	margin: 0 0 24px;
}

.gpl-actions,
.gpl-player-actions,
.gpl-locked-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.gpl-button,
.gpl-streamlearn button.gpl-button,
.gpl-locked-box .gpl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 11px 18px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.gpl-button:hover,
.gpl-streamlearn button.gpl-button:hover {
	transform: translateY(-1px);
}

.gpl-button-primary {
	background: var(--gpl-accent);
	color: #fff !important;
}

.gpl-button-primary:hover {
	background: var(--gpl-accent-dark);
}

.gpl-button-secondary {
	background: rgba(255,255,255,.12);
	border-color: var(--gpl-border);
	color: #fff !important;
}

.gpl-row {
	margin: 0 0 30px;
	padding: 0 clamp(16px, 4vw, 44px);
}

.gpl-row-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 12px;
}

.gpl-row h2,
.gpl-season-section h2,
.gpl-access-panel h2 {
	font-size: clamp(20px, 3vw, 30px);
	line-height: 1.15;
	margin: 0;
	color: #fff;
}

.gpl-card-row {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	padding: 3px 0 18px;
	-webkit-overflow-scrolling: touch;
}

.gpl-card-row::-webkit-scrollbar {
	height: 9px;
}

.gpl-card-row::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,.22);
	border-radius: 999px;
}

.gpl-card {
	position: relative;
	flex: 0 0 clamp(210px, 22vw, 310px);
	scroll-snap-align: start;
	background: var(--gpl-panel);
	border: 1px solid var(--gpl-border);
	border-radius: 16px;
	overflow: hidden;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gpl-card:hover {
	transform: translateY(-4px) scale(1.015);
	border-color: rgba(255,255,255,.24);
	box-shadow: 0 16px 44px rgba(0,0,0,.35);
}

.gpl-card-image {
	position: relative;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
}

.gpl-card-image:after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.64));
}

.gpl-card-badge {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 2;
	font-size: 10px;
	padding: 5px 8px;
	background: rgba(0,0,0,.68);
}

.gpl-card-locked .gpl-card-badge {
	background: rgba(229,9,20,.9);
}

.gpl-card-body {
	padding: 14px 14px 16px;
}

.gpl-card h3 {
	font-size: 17px;
	line-height: 1.25;
	margin: 0 0 8px;
	color: #fff;
}

.gpl-card p {
	font-size: 13px;
	line-height: 1.45;
	margin: 0 0 10px;
	color: var(--gpl-muted);
}

.gpl-card-meta {
	font-size: 12px;
	color: #d7dbe3;
}

.gpl-card-action {
	position: absolute;
	top: 9px;
	right: 9px;
	z-index: 3;
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 999px;
	background: rgba(0,0,0,.66);
	color: #fff;
	font-size: 12px;
	padding: 6px 9px;
	cursor: pointer;
}

.gpl-season-section,
.gpl-access-panel,
.gpl-player-header,
.gpl-player,
.gpl-episode-nav {
	margin: 28px clamp(16px, 4vw, 44px);
}

.gpl-seasons {
	display: grid;
	gap: 22px;
	margin-top: 16px;
}

.gpl-season {
	background: var(--gpl-panel);
	border: 1px solid var(--gpl-border);
	border-radius: 18px;
	padding: 18px;
}

.gpl-season-header h3 {
	font-size: 22px;
	margin: 0 0 6px;
	color: #fff;
}

.gpl-season-header p {
	color: var(--gpl-muted);
	margin: 0 0 14px;
}

.gpl-episode-list {
	display: grid;
	gap: 12px;
}

.gpl-episode-item {
	background: var(--gpl-panel-soft);
	border: 1px solid var(--gpl-border);
	border-radius: 14px;
	overflow: hidden;
}

.gpl-episode-item a {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 16px;
	align-items: stretch;
}

.gpl-episode-thumb {
	min-height: 105px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.gpl-episode-thumb:before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.35);
}

.gpl-episode-thumb span {
	position: relative;
	z-index: 2;
	background: rgba(0,0,0,.72);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	padding: 8px 12px;
}

.gpl-episode-info {
	padding: 14px 16px 14px 0;
}

.gpl-episode-info h4 {
	font-size: 18px;
	line-height: 1.25;
	margin: 0 0 7px;
	color: #fff;
}

.gpl-episode-info p,
.gpl-player-header p {
	color: var(--gpl-muted);
	margin: 0 0 10px;
}

.gpl-episode-meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: #dce1ea;
}

.gpl-episode-item.is-watched {
	border-color: rgba(46, 204, 113, .42);
}

.gpl-episode-item.is-locked {
	opacity: .72;
}

.gpl-player-header {
	max-width: 980px;
}

.gpl-player-kicker,
.gpl-player-kicker a {
	color: var(--gpl-muted);
	font-weight: 700;
}

.gpl-player-header h1 {
	font-size: clamp(30px, 5vw, 54px);
	line-height: 1;
	margin: 10px 0;
	color: #fff;
}

.gpl-player {
	max-width: 1160px;
}

.gpl-video-wrap {
	background: #000;
	border: 1px solid var(--gpl-border);
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gpl-video-wrap iframe,
.gpl-video-wrap video {
	width: 100%;
	height: 100%;
	display: block;
}

.gpl-video-missing {
	color: var(--gpl-muted);
	padding: 24px;
}

.gpl-player-actions {
	margin-top: 16px;
}

.gpl-episode-nav {
	max-width: 1160px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 12px;
	align-items: center;
}

.gpl-episode-nav > *:last-child {
	justify-self: end;
}

.gpl-access-panel {
	background: var(--gpl-panel);
	border: 1px solid var(--gpl-border);
	border-radius: 18px;
	padding: 24px;
}

.gpl-access-group {
	margin-top: 24px;
}

.gpl-access-group h3 {
	font-size: 22px;
	margin: 0 0 6px;
	color: #fff;
}

.gpl-access-group p {
	margin: 0 0 14px;
	color: var(--gpl-muted);
}

.gpl-access-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	clear: both;
	width: 100%;
}

.gpl-access-card,
.gpl-access-grid a.gpl-access-card {
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	min-height: 124px;
	padding: 16px;
	border: 1px solid var(--gpl-border);
	border-radius: 14px;
	background: var(--gpl-panel-soft);
	color: #fff !important;
	text-align: center;
	text-decoration: none !important;
	line-height: 1.35;
	box-shadow: none;
	transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.gpl-access-card:hover {
	transform: translateY(-3px);
	border-color: rgba(229,9,20,.72);
	background: #202430;
}

.gpl-access-duration,
.gpl-access-title,
.gpl-access-price {
	display: block !important;
}

.gpl-access-duration {
	font-weight: 800;
	font-size: 16px;
	margin-bottom: 6px;
}

.gpl-access-title {
	font-size: 12px;
	color: var(--gpl-muted);
	margin-bottom: 8px;
}

.gpl-access-price {
	font-weight: 800;
	font-size: 18px;
}

.gpl-locked-box {
	max-width: 840px;
	margin: 40px auto;
	padding: 32px;
	border: 1px solid var(--gpl-border);
	border-radius: 18px;
	background: var(--gpl-panel);
	color: #fff;
	text-align: center;
}

.gpl-locked-box h2 {
	margin-top: 0;
	color: #fff;
}

.gpl-locked-box p,
.gpl-muted {
	color: var(--gpl-muted);
}

.gpl-locked-product {
	font-weight: 700;
	color: #fff !important;
}

@media (max-width: 760px) {
	.gpl-hero {
		min-height: 380px;
		padding: 30px 18px;
	}

	.gpl-card {
		flex-basis: 245px;
	}

	.gpl-episode-item a {
		grid-template-columns: 1fr;
	}

	.gpl-episode-info {
		padding: 14px;
	}

	.gpl-episode-nav {
		grid-template-columns: 1fr;
	}

	.gpl-episode-nav > *:last-child {
		justify-self: stretch;
	}

	.gpl-episode-nav .gpl-button {
		width: 100%;
	}
}

/* Stage 2 polish */
.gpl-streamlearn {
	padding: 0 0 44px;
}

.gpl-hero {
	min-height: 340px;
	padding: clamp(28px, 5vw, 64px);
	margin-bottom: 22px;
}

.gpl-library .gpl-hero {
	min-height: 360px;
}

.gpl-detail-hero {
	min-height: 320px;
}

.gpl-hero h1 {
	font-size: clamp(32px, 4.8vw, 58px);
}

.gpl-row {
	margin-bottom: 24px;
}

.gpl-card {
	flex-basis: clamp(220px, 19vw, 285px);
}

.gpl-card-image {
	background-color: #1b1f29;
}

.gpl-card-body {
	min-height: 112px;
}

.gpl-card h3 {
	font-weight: 800;
}

.gpl-season-section,
.gpl-access-panel,
.gpl-player-header,
.gpl-player,
.gpl-episode-nav {
	padding-left: clamp(16px, 4vw, 44px);
	padding-right: clamp(16px, 4vw, 44px);
}

.gpl-access-panel,
.gpl-locked-box {
	max-width: 980px;
}

.gpl-access-grid,
.gpl-locked-box .gpl-access-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
	gap: 14px !important;
	align-items: stretch;
	width: 100% !important;
}

.gpl-access-card,
.gpl-access-grid a.gpl-access-card,
.gpl-locked-box .gpl-access-grid a.gpl-access-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-height: 132px !important;
	padding: 18px 14px !important;
	border: 1px solid var(--gpl-border) !important;
	border-radius: 16px !important;
	background: linear-gradient(180deg, #1b1f2a, #12151d) !important;
	color: #fff !important;
	text-align: center !important;
	text-decoration: none !important;
	box-shadow: 0 10px 26px rgba(0,0,0,.22) !important;
	white-space: normal !important;
}

.gpl-access-card:hover,
.gpl-locked-box .gpl-access-grid a.gpl-access-card:hover {
	transform: translateY(-3px);
	border-color: rgba(229, 9, 20, .8) !important;
	background: linear-gradient(180deg, #252a36, #171b24) !important;
}

.gpl-access-duration {
	font-size: 15px !important;
	font-weight: 900 !important;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.gpl-access-title {
	font-size: 12px !important;
	line-height: 1.35 !important;
}

.gpl-access-price {
	font-size: 20px !important;
	font-weight: 900 !important;
	color: #fff !important;
}

.gpl-access-price .woocommerce-Price-amount,
.gpl-access-price .amount {
	color: #fff !important;
}

.gpl-episode-item {
	transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.gpl-episode-item:hover {
	transform: translateY(-2px);
	border-color: rgba(255,255,255,.24);
	background: #1d212c;
}

.gpl-player-header,
.gpl-player,
.gpl-episode-nav {
	margin-left: 0;
	margin-right: 0;
}

.gpl-video-wrap {
	max-height: 72vh;
}

@media (max-width: 760px) {
	.gpl-hero,
	.gpl-library .gpl-hero,
	.gpl-detail-hero {
		min-height: 300px;
	}

	.gpl-card {
		flex-basis: 235px;
	}

	.gpl-access-grid,
	.gpl-locked-box .gpl-access-grid {
		grid-template-columns: 1fr !important;
	}
}
