/* ── TVFL Top Performers Widget ─────────────────────────────────────────────── */

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

/* ── Header ──────────────────────────────────────────────────────────────── */

.tvfl-tp-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.tvfl-tp-title {
	margin: 0;
	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;
}

.tvfl-tp-week {
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--e-global-color-primary, #C61F26);
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── List wrapper (scrollable on narrow containers) ──────────────────────── */

.tvfl-tp-list {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ── Row ─────────────────────────────────────────────────────────────────── */

.tvfl-tp-row {
	display: grid;
	grid-template-columns: 44px 1fr 64px 64px;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	transition: background-color 0.15s;
	min-width: 300px;
}
.tvfl-tp-row:last-child { border-bottom: none; }
.tvfl-tp-row:hover { background-color: rgba(255, 255, 255, 0.04); }

.tvfl-tp-row--hidden {
	display: none !important;
}

/* ── Avatar ──────────────────────────────────────────────────────────────── */

.tvfl-tp-avatar-wrap {
	padding: 8px 6px 8px 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.tvfl-tp-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}

.tvfl-tp-avatar--placeholder {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
}

/* ── Player info ─────────────────────────────────────────────────────────── */

.tvfl-tp-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 8px 10px;
	min-width: 0;
	overflow: hidden;
}

.tvfl-tp-name {
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--e-global-color-secondary, #fff);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.tvfl-tp-meta {
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 11px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.4);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

/* ── Stat columns ────────────────────────────────────────────────────────── */

.tvfl-tp-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 8px 6px;
	text-align: center;
}

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

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

/* ── Footer / View More ──────────────────────────────────────────────────── */

.tvfl-tp-footer {
	display: flex;
	justify-content: center;
	padding-top: 14px;
}

.tvfl-tp-btn-more {
	background: transparent;
	border: 1px solid var(--e-global-color-c31cee6, rgba(255, 255, 255, 0.15));
	border-radius: 3px;
	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;
	padding: 8px 28px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.2s, border-color 0.2s;
}
.tvfl-tp-btn-more:hover {
	background-color: var(--e-global-color-primary, #C61F26);
	border-color: var(--e-global-color-primary, #C61F26);
	color: #fff;
}
.tvfl-tp-btn-more[hidden] {
	display: none !important;
}

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

@media (max-width: 480px) {
	.tvfl-tp-row          { grid-template-columns: 38px 1fr 56px 56px; }
	.tvfl-tp-avatar,
	.tvfl-tp-avatar--placeholder { width: 32px; height: 32px; }
	.tvfl-tp-name         { font-size: 12px; }
	.tvfl-tp-meta         { font-size: 10px; }
	.tvfl-tp-stat-val     { font-size: 17px; }
	.tvfl-tp-stat         { padding: 7px 4px; }
}

/* ── Elementor editor: lock desktop layout ───────────────────────────────── */

.elementor-editor-active .tvfl-tp-row {
	grid-template-columns: 44px 1fr 64px 64px !important;
}
