:root {
	--to-green: #22c55e;
	--to-green-dark: #16a34a;
	--to-ink: #111111;
	--to-ink-2: #1a1a1a;
	--to-muted: #6b7280;
	--to-line: #e5e7eb;
	--to-bg: #f3f4f6;
	--to-red: #dc2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.to-home {
	font-family: "Segoe UI", Arial, Helvetica, sans-serif;
	background: var(--to-bg);
	color: #111827;
	line-height: 1.45;
}

.to-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.to-top-meta {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
	margin-left: auto;
	font-size: 13px;
}
.to-tz { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; }
.to-clock { color: #d1d5db; white-space: nowrap; }
.to-tz-select {
	max-width: 260px;
	background: #1f1f1f;
	color: #fff;
	border: 1px solid #374151;
	border-radius: 6px;
	padding: 3px 6px;
	font: inherit;
	font-size: 12px;
}
.to-lang {
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.to-search {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--to-line);
	border-radius: 8px;
	padding: 7px 12px;
	width: min(360px, 100%);
}
.to-search input {
	background: transparent;
	border: 0;
	color: #111827;
	width: 100%;
	outline: none;
	font: inherit;
}
.to-search input::placeholder { color: #9ca3af; }
.to-search button {
	background: none;
	border: 0;
	color: #6b7280;
	cursor: pointer;
}

.to-nav {
	background: var(--to-ink);
	color: #fff;
}
.to-nav-in {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 28px;
	min-height: 64px;
}
.to-logo {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
	text-decoration: none;
	font-weight: 800;
	letter-spacing: 0.5px;
	font-size: 22px;
}
.to-logo span { color: #fff; }
.to-logo em {
	display: inline-block;
	font-style: normal;
	background: var(--to-red);
	color: #fff;
	padding: 2px 7px;
	margin-left: 6px;
	border-radius: 2px;
}
.to-menu { display: flex; flex-direction: row; flex-wrap: nowrap; list-style: none; gap: 8px; flex: 1; min-width: 0; }
.to-menu a, .to-menu .is-off {
	color: #d1d5db;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .3px;
}
.to-menu a:hover, .to-menu a.is-on { color: #fff; }
.to-menu .is-off {
	color: #6b7280;
	cursor: not-allowed;
	opacity: .55;
}
.to-more { position: relative; }
.to-more summary {
	list-style: none;
	cursor: pointer;
	padding: 8px 12px;
	font-weight: 600;
	font-size: 14px;
}
.to-more summary::-webkit-details-marker { display: none; }
.to-more-list {
	position: absolute;
	top: 100%;
	left: 0;
	background: #1f1f1f;
	min-width: 180px;
	border-radius: 8px;
	padding: 8px 0;
	z-index: 20;
	box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.to-more-list a {
	display: block;
	padding: 8px 14px;
	border-radius: 0;
}

.to-filters {
	position: relative;
	z-index: 1;
	background: rgba(6, 8, 10, .42);
	border-top: 1px solid rgba(255, 255, 255, .08);
}
.to-filters-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 52px;
	padding: 10px 0;
	flex-wrap: wrap;
}
.to-days, .to-markets { display: flex; gap: 8px; flex-wrap: wrap; }
.to-days a, .to-markets a {
	text-decoration: none;
	color: #d1d5db;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .4px;
	padding: 7px 12px;
	border-radius: 999px;
}
.to-days a.is-on { background: var(--to-green); color: #052e16; }
.to-markets a { border: 1px solid #374151; }
.to-markets a.is-on { background: var(--to-green); border-color: var(--to-green); color: #052e16; }

.to-hero {
	position: relative;
	background:
		linear-gradient(90deg, rgba(6,8,10,.88) 0%, rgba(6,8,10,.55) 42%, rgba(6,8,10,.18) 100%),
		url('../images/home-hero.jpg') center right / cover no-repeat #0b1220;
	color: #fff;
	overflow: hidden;
}
.to-hero-in { position: relative; z-index: 1; padding: 2px 0 24px; }
.to-hero h1 {
	font-size: 46px;
	line-height: 1.05;
	letter-spacing: .5px;
	max-width: 640px;
}
.to-hero h1 b { color: var(--to-green); font-weight: 800; }
.to-hero p { margin-top: 12px; color: #d1d5db; font-size: 16px; }

.to-section { padding: 28px 0; }
.to-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.to-head h2 { font-size: 20px; letter-spacing: .4px; }
.to-head a { color: var(--to-green-dark); text-decoration: none; font-weight: 700; font-size: 14px; }
.to-head-leagues {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}
.to-head-leagues h2 { justify-self: start; }
.to-head-leagues .to-search { justify-self: center; }
.to-head-leagues a { justify-self: end; }

.to-leagues {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 12px;
}
.to-leagues .to-league {
	background: #fff;
	border: 1px solid var(--to-line);
	border-radius: 10px;
	padding: 14px 10px 12px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	min-height: 132px;
}
.to-leagues .to-league:hover { border-color: #86efac; box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.to-leagues .to-league img, .to-crest {
	width: 42px;
	height: 42px;
	object-fit: contain;
	margin: 0 auto 8px;
	display: block;
}
.to-crest {
	border-radius: 50%;
	background: #f3f4f6;
	color: #111;
	font-weight: 800;
	font-size: 12px;
	line-height: 42px;
	text-align: center;
}
.to-leagues .to-league strong { display: block; font-size: 13px; }
.to-leagues .to-league em { display: block; font-style: normal; color: var(--to-muted); font-size: 12px; margin: 2px 0 6px; }
.to-leagues .to-league b { color: var(--to-green-dark); font-size: 12px; }

.to-note {
	background: #fff7d6;
	border: 1px solid #e8d48a;
	color: #5c4b00;
	padding: 10px 12px;
	border-radius: 8px;
	margin-bottom: 14px;
	font-size: 13px;
}

.to-group {
	background: #fff;
	border: 1px solid var(--to-line);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 16px;
}
.to-group-h {
	background: var(--to-ink);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	font-size: 14px;
}
.to-group-h a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.to-group-h img { width: 18px; height: 12px; object-fit: cover; }
.to-group-h span { color: #9ca3af; font-size: 12px; }
.to-table { width: 100%; border-collapse: collapse; }
.to-table th {
	text-align: left;
	font-size: 11px;
	letter-spacing: .4px;
	color: var(--to-muted);
	padding: 10px 12px;
	border-bottom: 1px solid var(--to-line);
	background: #fafafa;
}
.to-table td { padding: 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.to-table tr:last-child td { border-bottom: 0; }
.to-table tr:hover td { background: #f9fafb; }
.to-time { font-weight: 700; width: 72px; white-space: nowrap; }
.to-live { color: var(--to-red); font-size: 11px; display: block; }
.to-match { min-width: 280px; }
.to-match a {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	font-weight: 700;
}
.to-side { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.to-side img, .to-side .to-crest { width: 22px; height: 22px; line-height: 22px; font-size: 9px; margin: 0; }
.to-side b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to-vs { color: var(--to-muted); font-size: 11px; font-weight: 800; }
.to-odds { width: 72px; text-align: center; font-weight: 700; }
.to-odds.is-best { color: var(--to-green-dark); }
.to-bm { width: 150px; }
.to-bm-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 78px;
	height: 22px;
	padding: 0 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 800;
	background: #111;
	color: #fff;
	text-transform: none;
}
.to-bm-bet365 { background: #f4d000; color: #111; }
.to-bm-1xbet, .to-bm-1xBet { background: #1d4ed8; }
.to-bm-betway { background: #052e16; color: #86efac; }
.to-bm-pinnacle { background: #111827; }
.to-bm-williamhill { background: #1e3a5f; }
.to-more-link { text-align: right; width: 36px; }
.to-more-link a { color: #9ca3af; text-decoration: none; font-size: 18px; }
.to-group-f { padding: 10px 14px 14px; }
.to-group-f a { color: var(--to-green-dark); font-weight: 700; text-decoration: none; font-size: 13px; }

.to-empty { background: #fff; border: 1px solid var(--to-line); border-radius: 10px; padding: 28px; color: var(--to-muted); }

.to-tools {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.to-tool {
	background: #fff;
	border: 1px solid var(--to-line);
	border-radius: 10px;
	padding: 22px 20px;
}
.to-tool h3 { font-size: 18px; margin-bottom: 8px; }
.to-tool p, .to-tool li { color: var(--to-muted); font-size: 14px; }
.to-tool ul { margin: 8px 0 14px 18px; }
.to-tool a {
	display: inline-block;
	margin-top: 10px;
	background: var(--to-green);
	color: #052e16;
	text-decoration: none;
	font-weight: 800;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
}

.to-news {
	background: #102216;
	color: #fff;
}
.to-news-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 28px 0;
	flex-wrap: wrap;
}
.to-news h2 { font-size: 22px; }
.to-news form { display: flex; gap: 8px; }
.to-news input {
	width: 280px;
	border: 0;
	border-radius: 6px;
	padding: 10px 12px;
	font: inherit;
}
.to-news button {
	background: var(--to-green);
	border: 0;
	border-radius: 6px;
	padding: 10px 16px;
	font-weight: 800;
	cursor: pointer;
}

.to-footer { background: var(--to-ink); color: #d1d5db; padding: 36px 0 0; }
.to-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 24px;
	padding-bottom: 24px;
}
.to-footer p { color: #9ca3af; font-size: 13px; margin: 12px 0; }
.to-soc { display: flex; gap: 10px; }
.to-soc a { color: #fff; text-decoration: none; border: 1px solid #374151; padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.to-footer h4 { color: #fff; margin-bottom: 10px; font-size: 13px; letter-spacing: .4px; }
.to-footer ul { list-style: none; }
.to-footer li { margin: 6px 0; }
.to-footer li a { color: #9ca3af; text-decoration: none; font-size: 13px; }
.to-copy {
	border-top: 1px solid #2a2a2a;
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	font-size: 12px;
	color: #6b7280;
}

@media (max-width: 980px) {
	.to-leagues { grid-template-columns: repeat(4, 1fr); }
	.to-tools, .to-footer-grid { grid-template-columns: 1fr 1fr; }
	.to-hero h1 { font-size: 34px; }
	.to-head-leagues { grid-template-columns: 1fr auto; }
	.to-head-leagues .to-search { grid-column: 1 / -1; order: 3; width: 100%; }
	.to-nav-in { gap: 14px; }
	.to-menu { flex: 0 1 auto; }
	.to-clock { white-space: nowrap; }
}
@media (max-width: 720px) {
	.to-leagues, .to-tools, .to-footer-grid { grid-template-columns: 1fr 1fr; }
	.to-match a { flex-direction: column; align-items: flex-start; gap: 4px; }
	.to-bm { display: none; }

	.to-nav-in {
		flex-wrap: nowrap;
		gap: 8px;
		min-height: 50px;
	}
	.to-logo { font-size: 18px; flex-shrink: 0; }
	.to-menu { flex: 1 1 auto; gap: 2px; min-width: 0; }
	.to-menu a, .to-menu .is-off { padding: 6px 8px; font-size: 13px; }
	.to-top-meta { gap: 0; margin-left: 4px; }
	.to-clock, .to-lang-name { display: none; }

	.to-hero {
		background:
			linear-gradient(180deg, rgba(6,8,10,.9) 0%, rgba(6,8,10,.72) 55%, rgba(6,8,10,.55) 100%),
			url('../images/home-hero.jpg') 72% center / cover no-repeat #0b1220;
	}
	.to-hero-in { padding: 12px 0 12px; }
	.to-hero h1 { font-size: 26px; max-width: none; }
	.to-hero p { margin-top: 6px; font-size: 13px; line-height: 1.35; }

	.to-filters { background: rgba(6, 8, 10, .55); }
	.to-filters-in {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 8px;
		min-height: 0;
		padding: 8px 0 10px;
	}
	.to-days, .to-markets {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 6px;
	}
	.to-days::-webkit-scrollbar,
	.to-markets::-webkit-scrollbar { display: none; }
	.to-days a, .to-markets a {
		flex: 0 0 auto;
		padding: 6px 10px;
		font-size: 11px;
	}

	.to-section { padding: 18px 0; }
	.to-head-leagues { gap: 8px; margin-bottom: 12px; }
	.to-head h2 { font-size: 16px; }
	.to-head a { font-size: 12px; }
}
