/* ── TVFL Scores Widget ────────────────────────────────────────────────────── */

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

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

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

.tvfl-sc-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-sc-tab:last-child { border-right: none; }
.tvfl-sc-tab:hover,
.tvfl-sc-tab.is-active {
	background-color: var(--e-global-color-primary, #C61F26);
	color: var(--e-global-color-secondary, #fff);
}

/* ── Week Filter ─────────────────────────────────────────────────────────── */

.tvfl-sc-week-filter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	border: 1px solid var(--e-global-color-c31cee6);
	margin-bottom: 20px;
	border-radius: 5px;
}

.tvfl-sc-week-nav-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tvfl-sc-cal-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.tvfl-sc-week-icon {
	font-size: 0.95rem;
	opacity: 0.7;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	transition: opacity 0.2s;
}
.tvfl-sc-week-icon:hover { opacity: 1; }

/* ── Year Picker ─────────────────────────────────────────────────────────── */

.tvfl-sc-year-picker {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--e-global-color-9b6255b, #121212);
	border: 1px solid var(--e-global-color-c31cee6);
	border-radius: 5px;
	min-width: 90px;
	z-index: 999;
	padding: 4px 0;
	overflow: hidden;
}
.tvfl-sc-year-picker[hidden] { display: none !important; }

.tvfl-sc-year-btn {
	display: block;
	width: 100%;
	padding: 9px 18px;
	background: transparent;
	border: none;
	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;
	text-align: center;
	transition: background-color 0.15s;
	-webkit-appearance: none;
	appearance: none;
}
.tvfl-sc-year-btn:hover {
	background-color: var(--e-global-color-primary, #C61F26);
}

.tvfl-sc-week-label {
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 0.88rem;
	color: var(--e-global-color-secondary, #fff);
	white-space: nowrap;
	min-width: 160px;
}

.tvfl-sc-week-nav {
	background: transparent;
	border: none;
	color: var(--e-global-color-secondary, #fff);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}
.tvfl-sc-week-nav:hover {
	color: var(--e-global-color-primary, #C61F26);
}

.tvfl-sc-all-scores-btn {
	padding: 6px 18px;
	background: transparent;
	border: 1px solid var(--e-global-color-c31cee6);
	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: 0.9rem;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
	-webkit-appearance: none;
	appearance: none;
	white-space: nowrap;
}
.tvfl-sc-all-scores-btn:hover,
.tvfl-sc-all-scores-btn.is-active {
	background-color: var(--e-global-color-primary, #C61F26);
	border-color: var(--e-global-color-primary, #C61F26);
	color: #fff;
}

/* ── Section Title ───────────────────────────────────────────────────────── */

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

/* ── List ────────────────────────────────────────────────────────────────── */

.tvfl-sc-list {
	display: flex;
	flex-direction: column;
}

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

.tvfl-sc-row {
	padding: 15px;
	border: 1px solid var(--e-global-color-c31cee6);
	border-radius: 5px;
	margin-bottom: 5px;
}

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

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

.tvfl-sc-row-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.tvfl-sc-row-date {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 13px;
	letter-spacing: 0.06em;
	color: var(--e-global-color-secondary, #fff);
	text-transform: uppercase;
}

.tvfl-sc-row-division {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--e-global-color-secondary, #fff);
	text-align: right;
	padding: 0 7px;
	border-radius: 5px;
}

/* Division badge — 14-colour cycling palette */
.tvfl-sc-row:nth-child(14n+1)  .tvfl-sc-row-division { background-color: #C61F26; }
.tvfl-sc-row:nth-child(14n+2)  .tvfl-sc-row-division { background-color: #A05806; }
.tvfl-sc-row:nth-child(14n+3)  .tvfl-sc-row-division { background-color: #532376; }
.tvfl-sc-row:nth-child(14n+4)  .tvfl-sc-row-division { background-color: #04462C; }
.tvfl-sc-row:nth-child(14n+5)  .tvfl-sc-row-division { background-color: #1A5276; }
.tvfl-sc-row:nth-child(14n+6)  .tvfl-sc-row-division { background-color: #7B241C; }
.tvfl-sc-row:nth-child(14n+7)  .tvfl-sc-row-division { background-color: #1E8449; }
.tvfl-sc-row:nth-child(14n+8)  .tvfl-sc-row-division { background-color: #7D6608; }
.tvfl-sc-row:nth-child(14n+9)  .tvfl-sc-row-division { background-color: #6C3483; }
.tvfl-sc-row:nth-child(14n+10) .tvfl-sc-row-division { background-color: #117A65; }
.tvfl-sc-row:nth-child(14n+11) .tvfl-sc-row-division { background-color: #B7950B; }
.tvfl-sc-row:nth-child(14n+12) .tvfl-sc-row-division { background-color: #1B4F72; }
.tvfl-sc-row:nth-child(14n+13) .tvfl-sc-row-division { background-color: #CB4335; }
.tvfl-sc-row:nth-child(14n+14) .tvfl-sc-row-division { background-color: #196F3D; }

/* ── Matchup ─────────────────────────────────────────────────────────────── */

.tvfl-sc-matchup {
	display: flex;
	align-items: center;
	gap: 12px;
}

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

.tvfl-sc-team {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.tvfl-sc-team-second {
	justify-content: flex-end;
}

.tvfl-sc-team-logo {
	width: 70px;
	height: 70px;
	object-fit: contain;
	flex-shrink: 0;
}

.tvfl-sc-team-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tvfl-sc-team-second .tvfl-sc-team-info {
	align-items: flex-end;
	text-align: right;
}

.tvfl-sc-team-name {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 20px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: var(--e-global-color-secondary, #fff);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tvfl-sc-team-sub {
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 12px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.4);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tvfl-sc-team-nums {
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 12px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Score Area ──────────────────────────────────────────────────────────── */

.tvfl-sc-score-area {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-shrink: 0;
	min-width: 140px;
}

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

.tvfl-sc-step {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 13px;
	letter-spacing: 0.06em;
	color: var(--e-global-color-secondary, #fff) !important;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	line-height: 1.2;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 5px;
	padding: 2px 8px;
}

/* ── Location ────────────────────────────────────────────────────────────── */

.tvfl-sc-location {
	text-align: center;
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.35);
}

/* ── Empty / No Results ──────────────────────────────────────────────────── */

.tvfl-sc-empty,
.tvfl-sc-no-results {
	color: rgba(255, 255, 255, 0.4);
	text-align: center;
	padding: 32px 20px;
	font-family: var(--e-global-typography-secondary-font-family, "Roboto"), sans-serif;
	font-size: 0.9rem;
	margin: 0;
}

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

.tvfl-sc-more-wrap {
	margin-top: 20px;
}

.tvfl-sc-view-more {
	width: 100%;
	padding: 10px 36px;
	background-color: transparent;
	color: var(--e-global-color-secondary, #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: background-color 0.2s, border-color 0.2s, color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}
.tvfl-sc-view-more:hover {
	background-color: var(--e-global-color-primary, #C61F26);
	border-color: var(--e-global-color-primary, #C61F26);
	color: #fff;
}
.tvfl-sc-view-more:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

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

@media (max-width: 1024px) {
	.tvfl-sc-score-area { min-width: 120px; }
}

@media (max-width: 767px) {
	.tvfl-sc-week-filter {
		flex-wrap: wrap;
		gap: 10px;
	}
	.tvfl-sc-week-nav-group {
		flex: 1;
		justify-content: center;
	}
	.tvfl-sc-all-scores-btn {
		flex: 0 0 auto;
	}
	.tvfl-sc-matchup { gap: 8px; }
	.tvfl-sc-score-num { font-size: 32px; }
	.tvfl-sc-team-name { font-size: 16px; }
	.tvfl-sc-score-area { min-width: 90px; gap: 6px; }
}

@media (max-width: 480px) {
	.tvfl-sc-team-logo { width: 40px; height: 40px; }
	.tvfl-sc-score-num { font-size: 24px; }
	.tvfl-sc-team-name { font-size: 13px; }
	.tvfl-sc-score-area { min-width: 70px; gap: 4px; }
	.tvfl-sc-step { font-size: 12px; }
	.tvfl-sc-tab { padding: 8px 16px; font-size: 1rem; }
	.tvfl-sc-row-header { margin-bottom: 12px; }
	.tvfl-sc-location { margin-top: 12px; }
}
