/* ── TVFL Recruiting Widget ───────────────────────────────────────────────── */

.tvfl-recruiting-widget {
	width: 100%;
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */

.tvfl-rc-tabs {
	display: flex;
	gap: 0;
	overflow-x: auto;
	border: 1px solid var(--e-global-color-c31cee6);
	margin-bottom: 20px;
	scrollbar-width: none;
}
.tvfl-rc-tabs::-webkit-scrollbar { display: none; }

.tvfl-rc-tab {
	flex-shrink: 0;
	padding: 8px 30px;
	border: none;
	border-right: 1px solid var(--e-global-color-c31cee6);
	background: transparent;
	color: var(--e-global-color-secondary, #fff);
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 1.1rem;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}
.tvfl-rc-tab:last-child { border-right: none; }
.tvfl-rc-tab:hover,
.tvfl-rc-tab.is-active {
	background-color: var(--e-global-color-primary, #C61F26);
	color: var(--e-global-color-secondary, #fff);
}

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

.tvfl-rc-header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}

.tvfl-rc-title {
	margin: 0;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-weight: 500;
	font-size: 2rem;
	line-height: 1.1;
	color: var(--e-global-color-secondary, #fff);
}

.tvfl-rc-selects {
	display: inline-flex;
	gap: 8px;
	align-self: flex-start;
}

.tvfl-rc-select {
	padding: 7px 28px 7px 10px;
	border: 1px solid var(--e-global-color-c31cee6);
	border-radius: 4px;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23ffffff' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 8px;
	color: var(--e-global-color-secondary, #fff);
	font-size: 0.82rem;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s;
	min-width: 110px;
}
.tvfl-rc-select:focus { outline: none; border-color: var(--e-global-color-secondary, #fff); }
.tvfl-rc-select option { background-color: #1a1a1a; color: #fff; }

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

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

.tvfl-rc-table {
	width: 100%;
	border-collapse: collapse;
}

.tvfl-rc-table > * { min-width: 0; }

.tvfl-rc-table thead tr {
	border-bottom: 2px solid var(--e-global-color-c31cee6);
}
.tvfl-rc-table thead th {
	padding: 10px 12px;
	text-align: left;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.07em;
	color: #fff;
	white-space: nowrap;
}
.tvfl-rc-th-rank,
.tvfl-rc-th-pos,
.tvfl-rc-th-hw,
.tvfl-rc-th-rating,
.tvfl-rc-th-offers { text-align: center; }

.tvfl-rc-table tbody tr {
	border-bottom: 1px solid var(--e-global-color-c31cee6);
	transition: background-color 0.15s;
}
.tvfl-rc-table tbody tr:hover {
	background-color: var(--e-global-color-c31cee6);
}
.tvfl-rc-table tbody td {
	padding: 12px;
	vertical-align: middle;
	color: var(--e-global-color-secondary, #fff);
	font-size: 0.9rem;
}

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

.tvfl-rc-td-rank {
	text-align: center;
	width: 52px;
}
.tvfl-rc-rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 6px;
	background-color: var(--e-global-color-primary, #C61F26);
	color: #fff;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 25px;
	line-height: 1;
	border-radius: 3px;
}

/* ── Player cell ─────────────────────────────────────────────────────────── */

.tvfl-rc-player-cell {
	display: flex;
	align-items: center;
	gap: 10px;
}
.tvfl-rc-player-img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 5px !important;
	flex-shrink: 0;
}
.tvfl-rc-player-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tvfl-rc-player-name {
	font-weight: 600;
	color: var(--e-global-color-secondary, #fff);
	font-size: 0.9rem;
	white-space: nowrap;
}
.tvfl-rc-player-loc {
	font-size: 0.72rem;
	color: var(--e-global-color-secondary, #fff);
}

/* ── Position / Ht-Wt / Location cells ───────────────────────────────────── */

.tvfl-rc-td-pos,
.tvfl-rc-td-hw { text-align: center; }

.tvfl-rc-td-location { white-space: nowrap; }

/* ── Rating cell ─────────────────────────────────────────────────────────── */

.tvfl-rc-td-rating {
	text-align: center;
	white-space: nowrap;
}
.tvfl-rc-rating-num {
	display: block;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 1.1rem;
	color: var(--e-global-color-secondary, #fff);
	line-height: 1.2;
}
.tvfl-rc-stars {
	display: inline-flex;
	gap: 1px;
}
.tvfl-rc-star {
	font-size: 13px;
	line-height: 1;
}
.tvfl-rc-star-on  { color: #FFD700; }
.tvfl-rc-star-off { color: var(--e-global-color-c31cee6); }

/* ── Offers cell ─────────────────────────────────────────────────────────── */

.tvfl-rc-td-offers { text-align: center; }
.tvfl-rc-offers {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}
.tvfl-rc-offer-logo {
	width: 40px;
	height: 40px;
	object-fit: contain;
	flex-shrink: 0;
}
.tvfl-rc-offer-count {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 1rem;
	color: var(--e-global-color-secondary, #fff);
	white-space: nowrap;
}

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

.tvfl-rc-more-wrap {
	margin-top: 20px;
}
.tvfl-rc-view-more {
	width: 100%;
	padding: 10px 36px;
	background-color: transparent;
	color: #fff;
	border: 1px solid var(--e-global-color-c31cee6);
	border-radius: 5px;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 1rem;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: opacity 0.2s;
	-webkit-appearance: none;
	appearance: none;
}
.tvfl-rc-view-more:hover    { opacity: 0.7; }
.tvfl-rc-view-more:disabled { opacity: 0.4; cursor: not-allowed; }

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

@media (max-width: 1024px) {
	.tvfl-rc-selects {
		justify-content: flex-start;
	}
}

@media (max-width: 767px) {
	.tvfl-rc-title { font-size: 1.5rem; }
	.tvfl-rc-selects { flex-wrap: wrap; }
	.tvfl-rc-select { flex: 1; min-width: 0; }
}

@media (max-width: 480px) {
	.tvfl-rc-table { min-width: 640px; }
	.tvfl-rc-player-img { width: 32px; height: 32px; }
	.tvfl-rc-offer-logo { width: 30px; height: 30px; }
	.tvfl-rc-table tbody td { padding: 10px 8px; }
}
