/* =========================================================
   TV FE LIVE - FRONTEND
   ========================================================= */
.tvfe-upcoming-row{
	margin-top: 6px;
}

.tvfe-related{
	margin-top: 10px;
}

.tvfe-main-card{
	margin-bottom: 0;
}
.tvfe-wrap{
	position: relative;
	overflow: hidden;
	padding: 24px;
	background: linear-gradient(180deg, #f6f7fb 0%, #f3f4f8 50%, #eceef5 100%);
	font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tvfe-wrap *{
	box-sizing: border-box;
}

.tvfe-wrap img{
	max-width: 100%;
	display: block;
}

.tvfe-inner{
	position: relative;
	z-index: 2;
	max-width: 980px;
	margin: 0 auto;
}

.tvfe-bg-orb{
	position: absolute;
	border-radius: 999px;
	filter: blur(160px);
	pointer-events: none;
	z-index: 1;
}

.tvfe-bg-orb-1{
	top: -10%;
	left: 10%;
	width: 520px;
	height: 520px;
	background: rgba(168, 85, 247, 0.18);
}

.tvfe-bg-orb-2{
	right: 10%;
	bottom: -10%;
	width: 520px;
	height: 520px;
	background: rgba(251, 191, 36, 0.15);
}

.tvfe-bg-orb-3{
	top: 35%;
	left: 45%;
	width: 380px;
	height: 380px;
	background: rgba(34, 211, 238, 0.10);
}

/* =========================================================
   HEADER
   ========================================================= */

.tvfe-header{
	text-align: center;
	margin-bottom: 36px;
}

.tvfe-section-title{
	margin: 0;
	font-size: clamp(26px, 4vw, 34px);
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: #0f172a;
}

.tvfe-section-subtitle{
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.6;
	font-weight: 400;
	color: #64748b;
}

/* =========================================================
   MAIN VIDEO CARD
   ========================================================= */

.tvfe-main-card{
	border: 1px solid rgba(255,255,255,0.60);
	background: rgba(255,255,255,0.70);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 24px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}

.tvfe-main-card:hover{
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.10);
}

.tvfe-main-card-inner{
	padding: 16px 16px 20px;
}

.tvfe-player-shell{
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background: #0f172a;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.tvfe-frame{
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

.tvfe-frame iframe{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.tvfe-main-poster{
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.tvfe-main-poster img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tvfe-main-poster::after{
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.70) 0%, rgba(0,0,0,.10) 55%, rgba(0,0,0,0) 100%);
}

.tvfe-main-play{
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	cursor: pointer;
	z-index: 2;
}

.tvfe-main-play-badge{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: rgba(255,255,255,0.25);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	transition: transform .22s ease, background .22s ease;
}

.tvfe-main-play:hover .tvfe-main-play-badge{
	transform: scale(1.05);
	background: rgba(255,255,255,0.32);
}

.tvfe-main-overlay-content{
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tvfe-main-chip{
	display: inline-flex;
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.10);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: rgba(255,255,255,0.82);
	font-size: 10px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tvfe-main-title{
	margin: 0;
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.35;
	font-weight: 500;
	color: #fff;
}

/* =========================================================
   UPCOMING ROW
   ========================================================= */

.tvfe-upcoming-row{
	padding: 0 4px;
}

.tvfe-upcoming-link{
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	text-align: left;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.tvfe-upcoming-link:hover{
	background: rgba(148, 163, 184, 0.10);
}

.tvfe-upcoming-meta{
	min-width: 0;
}

.tvfe-upcoming-kicker{
	display: inline-block;
	margin-right: 8px;
	font-size: 10px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
}

.tvfe-upcoming-program{
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
	color: #1e293b;
}

.tvfe-upcoming-dot{
	display: inline-block;
	margin: 0 8px;
	color: #cbd5e1;
}

.tvfe-upcoming-time{
	font-size: 14px;
	line-height: 1.4;
	font-weight: 400;
	color: #64748b;
}

.tvfe-upcoming-cta{
	flex-shrink: 0;
	font-size: 12px;
	line-height: 1;
	font-weight: 500;
	color: #64748b;
}

/* =========================================================
   SECONDARY VIDEOS
   ========================================================= */

.tvfe-related{
	margin-top: 0;
}

.tvfe-related-grid{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.tvfe-related-card{
	width: 100%;
	display: block;
	padding: 10px;
	border: 1px solid rgba(255,255,255,0.60);
	border-radius: 18px;
	background: rgba(255,255,255,0.55);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}

.tvfe-related-card:hover{
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

.tvfe-related-card.is-active{
	border-color: rgba(253, 186, 116, 0.80);
}

.tvfe-related-card-inner{
	display: flex;
	align-items: center;
	gap: 12px;
}

.tvfe-related-thumb{
	width: 96px;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #cbd5e1;
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.tvfe-related-thumb img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tvfe-related-thumb-fallback{
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(196,181,253,.85), rgba(196,181,253,.35), rgba(103,232,249,.35));
	transition: transform .22s ease;
}

.tvfe-related-card:hover .tvfe-related-thumb-fallback,
.tvfe-related-card:hover .tvfe-related-thumb img{
	transform: scale(1.05);
}

.tvfe-related-body{
	min-width: 0;
	flex: 1;
}

.tvfe-related-title{
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 500;
	color: #1e293b;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.tvfe-related-action{
	margin-top: 8px;
	font-size: 11px;
	line-height: 1;
	font-weight: 400;
	color: #64748b;
}

/* =========================================================
   RETURN BUTTON / EMPTY STATE
   ========================================================= */

.tvfe-return-btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 14px;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: #0f172a;
	color: #fff;
	font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: transform .2s ease, opacity .2s ease;
}

.tvfe-return-btn:hover{
	transform: translateY(-1px);
	opacity: .92;
}

.tvfe-empty-state{
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	padding: 24px;
	border-radius: 20px;
	background: linear-gradient(180deg, #f8fafc, #eef2f7);
	text-align: center;
	color: #64748b;
}

.tvfe-empty-state p{
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

/* =========================================================
   REVEAL
   ========================================================= */

.tvfe-reveal{
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s ease, transform .7s ease;
}

.tvfe-reveal.is-visible{
	opacity: 1;
	transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px){
	.tvfe-wrap{
		padding: 20px 16px;
	}

	.tvfe-header{
		margin-bottom: 28px;
	}

	.tvfe-section-title{
		font-size: 28px;
	}

	.tvfe-main-card-inner{
		padding: 14px 14px 18px;
	}

	.tvfe-main-play-badge{
		width: 58px;
		height: 58px;
		font-size: 20px;
	}

	.tvfe-related-grid{
		grid-template-columns: 1fr;
	}

	.tvfe-related-thumb{
		width: 88px;
	}
}

@media (prefers-reduced-motion: reduce){
	.tvfe-main-play-badge,
	.tvfe-related-card,
	.tvfe-related-thumb-fallback,
	.tvfe-related-thumb img,
	.tvfe-reveal{
		transition: none !important;
		transform: none !important;
	}
}