/* ── TVFL Team Standings Widget ─────────────────────────────────────────────── */

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

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

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

.tvfl-ts-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-ts-division {
	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;
}

/* ── Table ───────────────────────────────────────────────────────────────── */

.tvfl-ts-table {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tvfl-ts-thead,
.tvfl-ts-row {
	display: grid;
	grid-template-columns: 40px 1fr 70px 70px;
	align-items: center;
	min-width: 320px;
}

/* ── Table head ──────────────────────────────────────────────────────────── */

.tvfl-ts-thead {
	background-color: rgba(255, 255, 255, 0.06);
	border-radius: 4px;
	margin-bottom: 4px;
}

.tvfl-ts-th {
	padding: 8px 10px;
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.tvfl-ts-th.tvfl-ts-col--rank {
	text-align: center;
}

.tvfl-ts-th.tvfl-ts-col--overall,
.tvfl-ts-th.tvfl-ts-col--district {
	text-align: center;
}

/* ── Table rows ──────────────────────────────────────────────────────────── */

.tvfl-ts-row {
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	transition: background-color 0.15s;
}
.tvfl-ts-row:last-child { border-bottom: none; }
.tvfl-ts-row:hover { background-color: rgba(255, 255, 255, 0.04); }

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

.tvfl-ts-td {
	padding: 8px 10px;
	display: flex;
	align-items: center;
	min-width: 0;
}

.tvfl-ts-td.tvfl-ts-col--rank {
	justify-content: center;
}

.tvfl-ts-td.tvfl-ts-col--overall,
.tvfl-ts-td.tvfl-ts-col--district {
	justify-content: center;
}

/* ── Rank ────────────────────────────────────────────────────────────────── */

.tvfl-ts-rank {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	color: var(--e-global-color-secondary, #fff);
	letter-spacing: 0.02em;
	display: block;
	text-align: center;
	width: 100%;
}

/* ── Team cell ───────────────────────────────────────────────────────────── */

.tvfl-ts-td.tvfl-ts-col--team {
	gap: 10px;
	overflow: hidden;
}

.tvfl-ts-logo {
	width: 30px;
	height: 30px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 3px;
}

.tvfl-ts-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);
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex: 1;
}

/* ── Score cells ─────────────────────────────────────────────────────────── */

.tvfl-ts-score {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 15px;
	letter-spacing: 0.04em;
	color: var(--e-global-color-secondary, #fff);
}

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

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

.tvfl-ts-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-ts-btn-more:hover {
	background-color: var(--e-global-color-primary, #C61F26);
	border-color: var(--e-global-color-primary, #C61F26);
	color: #fff;
}
.tvfl-ts-btn-more[hidden] {
	display: none !important;
}

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

@media (max-width: 480px) {
	.tvfl-ts-thead,
	.tvfl-ts-row {
		grid-template-columns: 32px 1fr 58px 58px;
	}
	.tvfl-ts-name  { font-size: 12px; }
	.tvfl-ts-score { font-size: 13px; }
	.tvfl-ts-th    { padding: 7px 6px; font-size: 9px; }
	.tvfl-ts-td    { padding: 7px 6px; }
	.tvfl-ts-logo  { width: 24px; height: 24px; }
}

/* ── Elementor editor: always show desktop layout ────────────────────────── */

.elementor-editor-active .tvfl-ts-thead,
.elementor-editor-active .tvfl-ts-row {
	grid-template-columns: 40px 1fr 70px 70px !important;
}
