.tfh-board,
.tfh-board * {
	box-sizing: border-box;
}

.tfh-board {
	--tfh-bg: #07100d;
	--tfh-panel: #101a17;
	--tfh-panel-2: #14221d;
	--tfh-line: rgba(255, 255, 255, 0.1);
	--tfh-text: #f6fff9;
	--tfh-muted: #96a9a0;
	--tfh-green: #52d91f;
	--tfh-green-2: #139c2f;
	--tfh-blue: #2da9ff;
	--tfh-red: #ff5d5d;
	--tfh-yellow: #ffcc42;
	background:
		radial-gradient(circle at 50% -20%, rgba(82, 217, 31, 0.12), transparent 24rem),
		linear-gradient(180deg, #0e1714, var(--tfh-bg));
	border: 1px solid var(--tfh-line);
	border-radius: 8px;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
	color: var(--tfh-text);
	overflow: hidden;
	width: 100%;
}

.tfh-board__header {
	align-items: center;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
	border-bottom: 1px solid var(--tfh-line);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	padding: 18px 20px;
}

.tfh-board__header h2 {
	color: var(--tfh-text);
	font-size: clamp(1.35rem, 2.4vw, 1.95rem);
	font-weight: 950;
	letter-spacing: 0;
	line-height: 1.12;
	margin: 0;
}

.tfh-kicker {
	color: var(--tfh-green);
	font-size: 0.75rem;
	font-weight: 950;
	letter-spacing: 0.08em;
	margin: 0 0 7px;
	text-transform: uppercase;
}

.tfh-board__meta {
	color: var(--tfh-muted);
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1.45;
	margin: 8px 0 0;
}

.tfh-board__action {
	flex: 0 0 auto;
	min-width: 0;
}

.tfh-board .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.tfh-live-strip {
	align-items: center;
	border-bottom: 1px solid var(--tfh-line);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 12px 18px 0;
}

.tfh-live-strip__status {
	align-items: center;
	color: #dce9e1;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.84rem;
	font-weight: 850;
	gap: 8px;
	line-height: 1.35;
	min-width: 0;
}

.tfh-live-strip__status strong {
	color: var(--tfh-text);
	font-weight: 950;
}

.tfh-live-strip__status small {
	color: var(--tfh-muted);
	font-size: 0.78rem;
	font-weight: 760;
}

.tfh-live-dot {
	background: var(--tfh-green);
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(82, 217, 31, 0.5);
	height: 9px;
	width: 9px;
}

.tfh-live-strip__status.is-live .tfh-live-dot {
	animation: tfh-live-pulse 1.35s ease-out infinite;
}

.tfh-next-kickoff {
	background: rgba(82, 217, 31, 0.1);
	border: 1px solid rgba(82, 217, 31, 0.22);
	border-radius: 999px;
	color: #c8ffb5;
	font-size: 0.78rem;
	font-weight: 900;
	padding: 6px 10px;
	white-space: nowrap;
}

.tfh-controls {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	min-width: 0;
	padding: 12px 18px;
}

.tfh-tabs {
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--tfh-line);
	border-radius: 8px;
	display: flex;
	gap: 4px;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	padding: 5px;
}

.tfh-tab,
.tfh-favorites-toggle,
.tfh-soon-toggle,
.tfh-copy-visible,
.tfh-favorite {
	appearance: none;
	border: 0;
	cursor: pointer;
	font: inherit;
}

.tfh-tab {
	background: transparent;
	border-radius: 7px;
	color: var(--tfh-muted);
	flex: 0 0 auto;
	font-size: 0.9rem;
	font-weight: 850;
	min-height: 38px;
	padding: 9px 14px;
	transition: background 160ms ease, color 160ms ease;
	white-space: nowrap;
}

.tfh-tab span {
	color: inherit;
	font-weight: 950;
	margin-left: 4px;
}

.tfh-tab.is-active {
	background: linear-gradient(135deg, rgba(82, 217, 31, 0.24), rgba(19, 156, 47, 0.18));
	color: var(--tfh-green);
}

.tfh-favorites-toggle,
.tfh-soon-toggle,
.tfh-copy-visible {
	align-items: center;
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid var(--tfh-line);
	border-radius: 8px;
	color: #d9e6df;
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 900;
	gap: 8px;
	min-height: 42px;
	padding: 9px 14px;
	white-space: nowrap;
}

.tfh-favorites-toggle span,
.tfh-soon-toggle span,
.tfh-copy-visible span {
	color: var(--tfh-yellow);
}

.tfh-favorites-toggle.is-active {
	background: rgba(255, 204, 66, 0.11);
	border-color: rgba(255, 204, 66, 0.34);
	color: #ffe28a;
}

.tfh-soon-toggle span {
	color: var(--tfh-blue);
}

.tfh-soon-toggle.is-active {
	background: rgba(45, 169, 255, 0.11);
	border-color: rgba(45, 169, 255, 0.34);
	color: #bfe8ff;
}

.tfh-copy-visible {
	background: rgba(82, 217, 31, 0.08);
	border-color: rgba(82, 217, 31, 0.24);
	color: #c8ffb5;
}

.tfh-copy-visible span {
	color: var(--tfh-green);
}

.tfh-tools {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	min-width: 0;
}

.tfh-search {
	display: block;
	min-width: 160px;
}

.tfh-search input {
	appearance: none;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--tfh-line);
	border-radius: 8px;
	color: var(--tfh-text);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 750;
	min-height: 42px;
	outline: 0;
	padding: 9px 12px;
	width: 100%;
}

.tfh-search input::placeholder {
	color: var(--tfh-muted);
}

.tfh-search input:focus {
	border-color: rgba(82, 217, 31, 0.5);
	box-shadow: 0 0 0 3px rgba(82, 217, 31, 0.12);
}

.tfh-copy-fallback {
	background: rgba(45, 169, 255, 0.08);
	border: 1px solid rgba(45, 169, 255, 0.22);
	border-radius: 8px;
	margin: 0 18px 14px;
	padding: 12px;
}

.tfh-copy-fallback[hidden] {
	display: none;
}

.tfh-copy-fallback > div {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 8px;
}

.tfh-copy-fallback strong {
	color: var(--tfh-text);
	font-size: 0.9rem;
	font-weight: 950;
}

.tfh-copy-fallback button {
	appearance: none;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--tfh-line);
	border-radius: 7px;
	color: var(--tfh-text);
	cursor: pointer;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 900;
	min-height: 32px;
	padding: 5px 10px;
}

.tfh-copy-fallback textarea {
	background: rgba(0, 0, 0, 0.32);
	border: 1px solid var(--tfh-line);
	border-radius: 7px;
	color: var(--tfh-text);
	font: inherit;
	font-size: 0.84rem;
	line-height: 1.5;
	min-height: 112px;
	padding: 10px;
	resize: vertical;
	width: 100%;
}

.tfh-notice,
.tfh-empty {
	background: rgba(255, 204, 66, 0.09);
	border: 1px solid rgba(255, 204, 66, 0.24);
	border-radius: 8px;
	color: #ffe6a3;
	margin: 0 18px 16px;
	padding: 14px 16px;
}

.tfh-empty {
	color: var(--tfh-text);
	text-align: center;
}

.tfh-empty h3 {
	color: var(--tfh-text);
	font-size: 1.1rem;
	font-weight: 900;
	margin: 0 0 6px;
}

.tfh-empty p {
	color: var(--tfh-muted);
	margin: 0 0 14px;
}

.tfh-filter-empty[hidden] {
	display: none;
}

.tfh-league-list {
	display: grid;
	gap: 6px;
	padding: 0 18px 18px;
}

.tfh-league {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid var(--tfh-line);
	border-radius: 8px;
	overflow: hidden;
}

.tfh-league[hidden] {
	display: none;
}

.tfh-league__header {
	align-items: center;
	background: rgba(255, 255, 255, 0.042);
	display: flex;
	justify-content: space-between;
	padding: 11px 14px;
}

.tfh-league__name {
	align-items: center;
	color: var(--tfh-text);
	display: flex;
	font-size: 0.98rem;
	font-weight: 950;
	gap: 10px;
	line-height: 1.3;
}

.tfh-league__name img {
	background: #fff;
	border-radius: 50%;
	height: 24px;
	object-fit: contain;
	padding: 2px;
	width: 24px;
}

.tfh-league__count {
	color: var(--tfh-green);
	font-size: 0.84rem;
	font-weight: 900;
	white-space: nowrap;
}

.tfh-league__count::after {
	content: " ›";
}

.tfh-match-list {
	display: grid;
}

.tfh-match {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.075);
	display: grid;
	gap: 13px;
	grid-template-columns: minmax(70px, 0.55fr) minmax(140px, 1.35fr) minmax(64px, 0.45fr) minmax(140px, 1.35fr) minmax(132px, 0.82fr) 34px;
	min-height: 62px;
	padding: 10px 14px;
}

.tfh-match:first-child {
	border-top: 0;
}

.tfh-match[hidden] {
	display: none;
}

.tfh-match__time {
	align-items: center;
	display: flex;
	gap: 8px;
	min-width: 0;
}

.tfh-match__time strong {
	color: #e6f4ed;
	font-size: 0.96rem;
	font-weight: 850;
	line-height: 1;
}

.tfh-match__time strong::before {
	color: var(--tfh-green);
	content: "•";
	font-size: 1.05rem;
	margin-right: 8px;
}

.tfh-status {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.68rem;
	font-weight: 950;
	justify-content: center;
	line-height: 1.1;
	min-height: 22px;
	padding: 4px 7px;
	white-space: nowrap;
	width: max-content;
}

.tfh-status--scheduled {
	background: rgba(0, 0, 0, 0.54);
	color: #d4ddd8;
}

.tfh-status--live {
	background: linear-gradient(135deg, var(--tfh-green), var(--tfh-green-2));
	color: #04120d;
}

.tfh-status--done {
	background: rgba(82, 217, 31, 0.16);
	color: #b7ff9a;
}

.tfh-team {
	align-items: center;
	color: #eef9f3;
	display: flex;
	font-size: 0.94rem;
	font-weight: 750;
	gap: 9px;
	min-width: 0;
}

.tfh-team span:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tfh-team__logo,
.tfh-team__initial {
	flex: 0 0 auto;
	height: 30px;
	width: 30px;
}

.tfh-team__logo {
	background: #fff;
	border-radius: 50%;
	object-fit: contain;
	padding: 3px;
}

.tfh-team__initial {
	align-items: center;
	background: linear-gradient(135deg, rgba(82, 217, 31, 0.24), rgba(45, 169, 255, 0.14));
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 50%;
	color: var(--tfh-text);
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 950;
	justify-content: center;
}

.tfh-score {
	background: #050908;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 7px;
	color: var(--tfh-text);
	font-size: 1rem;
	font-weight: 950;
	line-height: 1;
	min-width: 58px;
	padding: 9px 8px;
	text-align: center;
}

.tfh-match__cta {
	display: flex;
	justify-content: flex-end;
}

.tfh-btn {
	align-items: center;
	border-radius: 8px;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 950;
	justify-content: center;
	line-height: 1.2;
	min-height: 36px;
	padding: 8px 12px;
	text-decoration: none;
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
	white-space: nowrap;
}

.tfh-btn:hover,
.tfh-btn:focus {
	text-decoration: none;
	transform: translateY(-1px);
}

.tfh-btn--telegram {
	background: linear-gradient(135deg, #f7fff3, #dffed8);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
	color: #12752a;
}

.tfh-btn--official {
	background: linear-gradient(135deg, var(--tfh-green), var(--tfh-green-2));
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #04120d;
}

.tfh-btn--disabled {
	cursor: not-allowed;
	filter: grayscale(0.6);
	opacity: 0.62;
}

.tfh-favorite {
	align-items: center;
	background: transparent;
	color: #8e9ea0;
	display: inline-flex;
	font-size: 1.45rem;
	height: 34px;
	justify-content: center;
	line-height: 1;
	width: 34px;
}

.tfh-favorite.is-active {
	color: var(--tfh-yellow);
}

.tfh-toast {
	background:
		linear-gradient(135deg, rgba(82, 217, 31, 0.18), rgba(45, 169, 255, 0.08)),
		#08110f;
	border: 1px solid rgba(82, 217, 31, 0.38);
	border-radius: 8px;
	bottom: 22px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
	color: var(--tfh-text);
	font-size: 0.92rem;
	font-weight: 850;
	left: 50%;
	max-width: min(520px, calc(100vw - 32px));
	opacity: 0;
	padding: 13px 16px;
	pointer-events: none;
	position: fixed;
	transform: translate(-50%, 18px);
	transition: opacity 180ms ease, transform 180ms ease;
	z-index: 9999;
}

.tfh-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@keyframes tfh-live-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(82, 217, 31, 0.52);
	}
	100% {
		box-shadow: 0 0 0 10px rgba(82, 217, 31, 0);
	}
}

@media (max-width: 980px) {
	.tfh-controls {
		align-items: stretch;
		flex-direction: column;
	}

	.tfh-live-strip {
		align-items: stretch;
		flex-direction: column;
	}

	.tfh-next-kickoff {
		text-align: center;
		white-space: normal;
	}

	.tfh-tabs {
		overflow-x: auto;
	}

	.tfh-tools {
		align-items: stretch;
		flex-direction: column;
	}

	.tfh-search {
		min-width: 0;
		width: 100%;
	}

	.tfh-favorites-toggle,
	.tfh-soon-toggle,
	.tfh-copy-visible {
		justify-content: center;
		width: 100%;
	}

	.tfh-match {
		grid-template-columns: 70px 1fr minmax(58px, auto) 34px;
		grid-template-areas:
			"time home score fav"
			"time away cta fav";
	}

	.tfh-match__time {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
		grid-area: time;
	}

	.tfh-team--home {
		grid-area: home;
	}

	.tfh-score {
		grid-area: score;
	}

	.tfh-team--away {
		grid-area: away;
	}

	.tfh-match__cta {
		grid-area: cta;
		justify-content: flex-end;
	}

	.tfh-favorite {
		grid-area: fav;
	}
}

@media (max-width: 620px) {
	.tfh-board__header {
		align-items: flex-start;
		flex-direction: column;
		padding: 16px;
	}

	.tfh-board__action,
	.tfh-board__action .tfh-btn {
		width: 100%;
	}

	.tfh-board__action .tfh-btn,
	.tfh-match__cta .tfh-btn {
		text-align: center;
		white-space: normal;
	}

	.tfh-controls,
	.tfh-copy-fallback,
	.tfh-league-list {
		padding-left: 12px;
		padding-right: 12px;
	}

	.tfh-copy-fallback {
		margin-left: 12px;
		margin-right: 12px;
	}

	.tfh-tab {
		font-size: 0.78rem;
		padding: 8px 9px;
	}

	.tfh-match {
		gap: 9px;
		grid-template-columns: 62px minmax(0, 1fr) 34px;
		grid-template-areas:
			"time home fav"
			"time away fav"
			"score cta cta";
		min-height: 82px;
		padding: 11px 12px;
	}

	.tfh-match__cta,
	.tfh-match__cta .tfh-btn {
		justify-content: center;
		width: 100%;
	}

	.tfh-score {
		justify-self: start;
	}

	.tfh-team {
		font-size: 0.9rem;
	}
}
