/* Hallmark · component: toolbar · genre: atmospheric · theme: BallHD orange
 * audience: Thai football fans · use: switch day/live/program + date + search
 * tone: utilitarian sport
 * states: default · hover · focus · active · disabled · loading · error · success
 * contrast: pass (white selected on dark track)
 */
.bhd-sl {
	--bhd-ink: #fff;
	--bhd-ink-mute: rgb(255 255 255 / 62%);
	--bhd-paper: rgb(8 6 4 / 88%);
	--bhd-track: rgb(0 0 0 / 48%);
	--bhd-line: rgb(255 255 255 / 14%);
	--bhd-accent: #ff7800;
	--bhd-accent-hot: #ffcc66;
	--bhd-on: #140a00;
	--bhd-focus: #ffcc66;
	--bhd-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--bhd-dur: 160ms;
	color: #fff !important;
	font-family: Mitr, Arial, sans-serif;
	font-size: 14px;
	clear: both;
	float: none !important;
	overflow: hidden;
	background: rgb(0 0 0 / 32%);
	border: 1px solid rgb(255 255 255 / 8%);
	border-radius: 12px;
	padding: 10px 10px 6px;
}

.bhd-sl-home {
	margin: 8px 0 18px;
}

.bhd-sl ul,
.bhd-sl .bhd-sl-list {
	float: none !important;
	clear: both !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	text-align: left !important;
}

.bhd-sl li {
	float: none !important;
	width: 100% !important;
	list-style: none !important;
	margin: 0 !important;
}

.bhd-sl img,
.bhd-sl svg,
.bhd-sl .bhd-sl-crest,
.bhd-sl .bhd-sl-lg {
	float: none !important;
	display: block !important;
}

.bhd-sl-vh {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bhd-sl-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	align-items: stretch;
	margin: -10px -10px 10px;
	padding: 10px;
	background: var(--bhd-paper);
	border-bottom: 1px solid var(--bhd-line);
	position: sticky;
	top: 0;
	z-index: 4;
}

.bhd-sl[aria-busy="true"] .bhd-sl-toolbar {
	opacity: 0.78;
}

.bhd-sl-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2px;
	padding: 3px;
	background: var(--bhd-track);
	border: 1px solid var(--bhd-line);
	border-radius: 999px;
	width: 100%;
	max-width: 22rem;
	justify-self: stretch;
}

.bhd-sl-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	min-width: 0;
	padding: 0 8px;
	background: transparent;
	color: var(--bhd-ink-mute) !important;
	border: 1px solid transparent;
	border-radius: 999px;
	text-decoration: none !important;
	font-weight: 500;
	font-style: normal;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background-color var(--bhd-dur) var(--bhd-ease-out), color var(--bhd-dur) var(--bhd-ease-out);
}

@media (hover: hover) {
	.bhd-sl-tab:hover,
	.bhd-sl-tab.is-hover {
		color: var(--bhd-ink) !important;
		background: rgb(255 255 255 / 6%);
	}
	.bhd-sl-date-btn:hover,
	.bhd-sl-date-btn.is-hover,
	.bhd-sl-today-jump:hover,
	.bhd-sl-today-jump.is-hover {
		background: rgb(255 255 255 / 10%);
		color: var(--bhd-ink) !important;
	}
}

.bhd-sl-tab:focus-visible,
.bhd-sl-tab.is-focus,
.bhd-sl-date-btn:focus-visible,
.bhd-sl-date-btn.is-focus,
.bhd-sl-q:focus-visible,
.bhd-sl-q.is-focus,
.bhd-sl-day:focus-within,
.bhd-sl-today-jump:focus-visible,
.bhd-sl-today-jump.is-focus {
	outline: 2px solid var(--bhd-focus);
	outline-offset: 2px;
}

.bhd-sl-tab:active,
.bhd-sl-tab.is-active,
.bhd-sl-date-btn:active,
.bhd-sl-date-btn.is-active {
	transform: translateY(1px);
}

.bhd-sl-tab.is-on {
	background: var(--bhd-ink);
	color: var(--bhd-on) !important;
	font-weight: 700;
}

.bhd-sl-tab[aria-disabled="true"],
.bhd-sl-date-btn.is-disabled {
	opacity: 0.45;
	pointer-events: none;
	cursor: not-allowed;
}

.bhd-sl-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgb(255 255 255 / 28%);
	flex: 0 0 auto;
}

.bhd-sl-live-n {
	min-width: 1.25em;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--bhd-accent);
	color: var(--bhd-on);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

.bhd-sl-tab-live.is-on .bhd-sl-live-n {
	background: var(--bhd-on);
	color: var(--bhd-ink);
}

.bhd-sl-tools {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	min-width: 0;
}

.bhd-sl-search {
	position: relative;
	display: block;
	min-width: 0;
}

.bhd-sl-search-ico {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--bhd-ink-mute);
	pointer-events: none;
}

.bhd-sl-q {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	background: var(--bhd-track);
	border: 1px solid var(--bhd-line);
	border-radius: 999px;
	color: var(--bhd-ink);
	font: inherit;
	padding: 8px 14px 8px 36px;
}

.bhd-sl-q::placeholder {
	color: rgb(255 255 255 / 42%);
}

.bhd-sl-q:hover,
.bhd-sl-q.is-hover {
	border-color: rgb(255 255 255 / 28%);
}

.bhd-sl-q[aria-invalid="true"],
.bhd-sl-q.is-error {
	border-color: #f07167;
}

.bhd-sl-search.is-success .bhd-sl-q {
	border-color: #6ee7a8;
}

.bhd-sl-dates {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	gap: 6px;
	align-items: stretch;
}

.bhd-sl-date-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	background: var(--bhd-track);
	color: var(--bhd-ink) !important;
	border: 1px solid var(--bhd-line);
	border-radius: 12px;
	text-decoration: none !important;
	font-size: 22px;
	line-height: 1;
	font-weight: 500;
}

.bhd-sl-day {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1px;
	min-width: 0;
	min-height: 44px;
	padding: 4px 10px;
	background: var(--bhd-track);
	border: 1px solid var(--bhd-line);
	border-radius: 12px;
	cursor: pointer;
}

.bhd-sl-day-kicker {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--bhd-accent-hot);
	line-height: 1.2;
}

.bhd-sl-day-txt {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bhd-sl-day-n {
	font-size: 11px;
	color: var(--bhd-ink-mute);
	font-variant-numeric: tabular-nums;
}

.bhd-sl-day-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	border: 0;
}

.bhd-sl-today-jump {
	justify-self: start;
	min-height: 36px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid var(--bhd-line);
	color: var(--bhd-ink) !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

@media (min-width: 40rem) {
	.bhd-sl-toolbar {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
	}
	.bhd-sl-tabs {
		width: 19.5rem;
		max-width: none;
	}
	.bhd-sl-today-jump {
		grid-column: 1 / -1;
	}
	.bhd-sl-tools {
		grid-template-columns: minmax(0, 1fr) minmax(16rem, 18rem);
		align-items: center;
	}
	.bhd-sl-dates {
		width: auto;
	}
}

@keyframes bhd-sl-live-pulse {
	50% { opacity: 0.35; }
}

.bhd-sl-tab-live.has-live .bhd-sl-live-dot {
	background: var(--bhd-accent);
	animation: bhd-sl-live-pulse 1.6s var(--bhd-ease-out) infinite;
}

.bhd-sl-tab-live.is-on.has-live .bhd-sl-live-dot {
	background: #d23b16;
}

@media (prefers-reduced-motion: reduce) {
	.bhd-sl-tab,
	.bhd-sl-date-btn {
		transition: none;
	}
	.bhd-sl-tab-live.has-live .bhd-sl-live-dot {
		animation: none;
	}
}

.bhd-sl-note,
.bhd-sl-empty {
	background: rgb(255 255 255 / 9%);
	padding: 12px;
	border-radius: 8px;
	margin: 0 0 12px;
}

.bhd-sl-league {
	margin-bottom: 12px;
}

.bhd-sl-league-h {
	display: flex !important;
	align-items: center;
	gap: 8px;
	background: rgb(0 0 0 / 38%);
	border-radius: 8px;
	padding: 8px 10px;
	margin: 0 0 2px;
}

.bhd-sl-lg {
	width: 22px !important;
	height: 22px !important;
	max-width: 22px !important;
	object-fit: contain;
	flex: 0 0 22px;
}

.bhd-sl-league-h .st-l {
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700;
	float: none !important;
	margin: 0 !important;
	line-height: 1.2;
}

.bhd-sl-sub {
	display: block;
	color: rgb(255 255 255 / 55%);
	font-size: 11px;
	font-weight: 400;
	margin-top: 2px;
}

.bhd-sl-list li {
	border-bottom: 0 !important;
	padding: 0 !important;
}

.bhd-sl li.bhd-sl-row,
.bhd-sl .bhd-sl-row,
a.bhd-sl-link {
	display: grid !important;
	grid-template-columns: 58px minmax(0, 1fr) 44px !important;
	gap: 10px !important;
	align-items: center !important;
	color: #fff !important;
	text-decoration: none !important;
	padding: 9px 8px !important;
	border-bottom: 1px solid rgb(255 255 255 / 8%) !important;
	border-radius: 0;
}

.bhd-sl-row.is-live {
	background: rgb(255 120 0 / 12%);
	box-shadow: inset 3px 0 0 #ff7800;
}

.bhd-sl-row.is-goal {
	background: rgb(255 120 0 / 32%);
	box-shadow: inset 3px 0 0 #ffcc66;
}

.bhd-sl-row.is-goal .bhd-sl-goals {
	color: #ffcc66;
	animation: bhd-sl-goal-score 0.7s ease-in-out 4;
}

.bhd-sl-goal-tag {
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
	background: #ff9a3c;
	border-radius: 4px;
	padding: 2px 5px;
	white-space: nowrap;
}

@keyframes bhd-sl-goal-score {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhd-sl-row.is-goal .bhd-sl-goals {
		animation: none;
	}
}

.bhd-sl-row.is-dead {
	opacity: .72;
}

.bhd-sl-time {
	display: flex;
	flex-direction: column;
	gap: 3px;
	line-height: 1.15;
}

.bhd-sl-kick {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 14px;
}

.bhd-sl-status {
	color: #c8c8c8;
	font-size: 11px;
}

.bhd-sl-row.is-live .bhd-sl-status {
	color: #ff9a3c;
	font-weight: 700;
}

.bhd-sl-row.is-dead .bhd-sl-status {
	color: #f07167;
}

.bhd-sl-fixture {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.bhd-sl-side {
	display: flex !important;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: #fff !important;
}

.bhd-sl-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 15px;
	line-height: 1.2;
}

.bhd-sl-row.is-win-home .is-home .bhd-sl-name,
.bhd-sl-row.is-win-away .is-away .bhd-sl-name {
	font-weight: 700;
}

.bhd-sl-crest,
.bhd-sl-badge {
	width: 22px !important;
	height: 22px !important;
	max-width: 22px !important;
	max-height: 22px !important;
	border-radius: 50%;
	flex: 0 0 22px;
	object-fit: cover;
}

.bhd-sl-badge {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-size: 8px;
	font-weight: 700;
	color: #fff;
}

.bhd-sl-red {
	flex: 0 0 auto;
	width: 8px;
	height: 12px;
	border-radius: 1px;
	background: #e23d2a;
	box-shadow: 0 0 0 1px rgb(0 0 0 / 35%);
	font-size: 9px;
	font-weight: 700;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bhd-sl-red[data-n="1"] {
	font-size: 0;
}

.bhd-sl-scoreblock {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 7px;
	font-variant-numeric: tabular-nums;
}

.bhd-sl-goals {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: right;
	min-width: 1.2em;
}

.bhd-sl-goals span {
	display: block;
	min-height: 22px;
	line-height: 22px;
}

.bhd-sl-ht,
.bhd-sl-pen {
	font-size: 10px;
	font-weight: 500;
	color: rgb(255 255 255 / 55%);
	white-space: nowrap;
}

.bhd-sl-row.is-live .bhd-sl-goals {
	color: #ff9a3c;
}

.bhd-sl-vs {
	display: none;
}

@media (max-width: 640px) {
	.bhd-sl li.bhd-sl-row,
	.bhd-sl .bhd-sl-row,
	a.bhd-sl-link {
		grid-template-columns: 50px minmax(0, 1fr) 36px !important;
		gap: 8px !important;
		padding: 8px 6px !important;
	}
	.bhd-sl-name {
		font-size: 14px;
	}
	.bhd-sl-goals {
		font-size: 15px;
	}
}
