/* ── TVFL Player Spotlight Widget ──────────────────────────────────────────── */

.tvfl-ps-widget {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 5px;
	padding: 15px;
}

/* ── Widget Title ────────────────────────────────────────────────────────── */

.tvfl-ps-widget-title {
	margin: 0 0 20px;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 32px;
	line-height: 32px;
	color: var(--e-global-color-secondary, #fff);
	letter-spacing: 0.02em;
}

/* ── Card layout ─────────────────────────────────────────────────────────── */

.tvfl-ps-card {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 15px;
}

/* ── Image column (40%) ──────────────────────────────────────────────────── */

.tvfl-ps-image-col {
	flex: 0 0 40%;
	max-width: 40%;
	min-height: 280px;
	position: relative;
	overflow: hidden;
	border-radius: 5px;
}

.tvfl-ps-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 5px !important;
}

/* ── Info column (60%) ───────────────────────────────────────────────────── */

.tvfl-ps-info-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* ── Player name ─────────────────────────────────────────────────────────── */

.tvfl-ps-name {
	margin: 0;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: var(--e-global-color-secondary, #fff);
}

/* ── Position + Location (same line, dot-separated) ──────────────────────── */

.tvfl-ps-meta {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0;
	flex-wrap: wrap;
}

.tvfl-ps-position,
.tvfl-ps-location {
	font-size: 14px;
	font-weight: 500;
	color: var(--e-global-color-primary, #C61F26);
	letter-spacing: 0.04em;
}

.tvfl-ps-position {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
}

.tvfl-ps-location {
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
}

.tvfl-ps-meta-dot {
	color: var(--e-global-color-primary, #C61F26);
	padding: 0 4px;
	font-size: 14px;
}

/* ── Stats grid ──────────────────────────────────────────────────────────── */

.tvfl-ps-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 5px 0;
}

.tvfl-ps-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	text-align: center;
}

.tvfl-ps-stat-num {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 30px;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--e-global-color-secondary, #fff);
}

.tvfl-ps-stat-lbl {
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 9px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	line-height: 1.2;
}

/* ── Bio text ────────────────────────────────────────────────────────────── */

.tvfl-ps-desc {
	margin: 0;
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 12px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.6);
}

/* ── View Profile button ─────────────────────────────────────────────────── */

.tvfl-ps-btn {
	align-self: flex-start;
	padding: 8px 15px;
	background: transparent;
	border: 1px solid var(--e-global-color-c31cee6, rgba(255, 255, 255, 0.15));
	color: var(--e-global-color-secondary, #fff);
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 1rem;
	letter-spacing: 0.06em;
	line-height: 20px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.tvfl-ps-btn:hover {
	background-color: var(--e-global-color-primary, #C61F26);
	border-color: var(--e-global-color-primary, #C61F26);
	color: #fff;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */

.tvfl-ps-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.tvfl-ps-modal[hidden] { display: none !important; }

.tvfl-ps-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.tvfl-ps-modal-inner {
	position: relative;
	background: var(--e-global-color-9b6255b, #121212);
	border: 1px solid var(--e-global-color-c31cee6, rgba(255, 255, 255, 0.1));
	border-radius: 8px;
	padding: 36px 32px 32px;
	max-width: 720px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 1;
}

.tvfl-ps-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	transition: color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}
.tvfl-ps-modal-close:hover {
	color: var(--e-global-color-primary, #C61F26);
}

.tvfl-ps-modal-content {
	color: rgba(255, 255, 255, 0.82);
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 14px;
	line-height: 1.75;
}
.tvfl-ps-modal-content h1,
.tvfl-ps-modal-content h2,
.tvfl-ps-modal-content h3 {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	color: var(--e-global-color-secondary, #fff);
	margin: 0 0 12px;
}
.tvfl-ps-modal-content p { margin: 0 0 14px; }
.tvfl-ps-modal-content p:last-child { margin-bottom: 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.tvfl-ps-card {
		flex-direction: column;
	}
	.tvfl-ps-image-col {
		flex: none;
		max-width: 100%;
		min-height: 260px;
	}
	.tvfl-ps-modal-inner {
		padding: 28px 20px 24px;
	}
}

@media (max-width: 480px) {
	.tvfl-ps-stat-num { font-size: 22px; }
	.tvfl-ps-name     { font-size: 22px; }
}

/* ── Elementor editor: always show desktop layout in the canvas ───────────── */

.elementor-editor-active .tvfl-ps-card {
	flex-direction: row !important;
	flex-wrap: nowrap !important;
}
.elementor-editor-active .tvfl-ps-image-col {
	flex: 0 0 40% !important;
	max-width: 40% !important;
}
