/* ============ Card ============ */
.tms-plp .tms-plp__media,
.tms-plp .tms-plp__media:hover,
.tms-plp .tms-plp__media:focus {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: #141416;
	color: inherit;
	box-shadow: none;
	text-transform: none;
	line-height: 0;
	transform: none;
	aspect-ratio: var(--tms-plp-ratio, 16 / 9);
}
.tms-plp .tms-plp--r-9-16 { --tms-plp-ratio: 9 / 16; }
.tms-plp .tms-plp--r-4-5  { --tms-plp-ratio: 4 / 5; }
.tms-plp .tms-plp--r-1-1  { --tms-plp-ratio: 1 / 1; }

.tms-plp .tms-plp__media:focus-visible {
	outline: 3px solid #ED1E5A;
	outline-offset: 3px;
}

.tms-plp .tms-plp__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.tms-plp .tms-plp__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%);
	pointer-events: none;
}
.tms-plp .tms-plp__media:hover img { transform: scale(1.05); }

.tms-plp .tms-plp__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(0,0,0,.6);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .02em;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.tms-plp .tms-plp__badge svg { width: 14px; height: 14px; fill: currentColor; }

.tms-plp .tms-plp__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 62px;
	height: 62px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	transform: translate(-50%, -50%);
	transition: transform .3s ease;
	box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.tms-plp .tms-plp__play svg {
	width: 42%;
	height: 42%;
	margin-left: 6%;
	fill: #ED1E5A;
}
.tms-plp .tms-plp__media:hover .tms-plp__play { transform: translate(-50%, -50%) scale(1.1); }

.tms-plp .tms-plp__title {
	margin: 14px 0 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: inherit;
	transition: color .3s ease;
}

/* ============ Popup ============ */
html.tms-plpm-lock { overflow: hidden; }

.tms-plpm {
	--tms-plp-accent: #ED1E5A;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
}
.tms-plpm.is-open { opacity: 1; visibility: visible; }

.tms-plpm__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 10, .9);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.tms-plpm__panel {
	position: relative;
	width: min(1000px, 100%, calc((100vh - 48px - 220px) * 16 / 9));
	min-width: min(560px, 100%);
	max-height: calc(100vh - 48px);
	overflow-x: hidden;
	overflow-y: auto;
	background: #121214;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0,0,0,.5);
	transform: translateY(18px) scale(.98);
	transition: transform .35s ease;
}
.tms-plpm.is-open .tms-plpm__panel { transform: none; }

.tms-plpm__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.tms-plpm__body { padding: 24px 28px 28px; }
.tms-plpm__body:empty { display: none; }
.tms-plpm__body::before {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	margin-bottom: 14px;
	border-radius: 2px;
	background: var(--tms-plp-accent);
}

.tms-plpm .tms-plpm__title {
	margin: 0 0 10px;
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}
.tms-plpm .tms-plpm__desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #b9b9c2;
}

.tms-plpm__seasons {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,.08);
}
.tms-plpm__seasons-label {
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8a8a94;
}
.tms-plpm__seasons-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.tms-plpm .tms-plpm__season,
.tms-plpm .tms-plpm__season:hover,
.tms-plpm .tms-plpm__season:focus {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 18px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease;
}
.tms-plpm .tms-plpm__season:hover { border-color: var(--tms-plp-accent); }
.tms-plpm .tms-plpm__season.is-active {
	background: var(--tms-plp-accent);
	border-color: var(--tms-plp-accent);
}
.tms-plpm .tms-plpm__season svg { width: 14px; height: 14px; fill: currentColor; opacity: .7; }
.tms-plpm .tms-plpm__season:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.tms-plpm .tms-plpm__close,
.tms-plpm .tms-plpm__close:hover,
.tms-plpm .tms-plpm__close:focus {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,.6);
	cursor: pointer;
	box-shadow: none;
}
.tms-plpm .tms-plpm__close:hover { background: var(--tms-plp-accent); }
.tms-plpm .tms-plpm__close svg { width: 20px; height: 20px; fill: #fff; }

.tms-plpm .tms-plpm__fallback {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--tms-plp-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
	.tms-plpm { padding: 12px; }
	.tms-plpm__panel {
		width: 100%;
		min-width: 0;
		max-height: calc(100vh - 24px);
	}
	.tms-plpm__body { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.tms-plp .tms-plp__media img,
	.tms-plp .tms-plp__play,
	.tms-plpm,
	.tms-plpm__panel { transition: none; }
}
