.wsyb-standings-page {
	margin: 28px 0 40px;
}

.wsyb-standings-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* move everything left */
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.wsyb-season-control {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.wsyb-season-select-label {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #475569;
	line-height: 1;
}

.wsyb-season-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	display: inline-block;
	width: 96px;
	min-width: 96px;
	max-width: 96px;
	padding: 8px 32px 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background-color: #ffffff;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='%2364758b' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5H5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px 14px;
	box-sizing: border-box;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	color: #0f172a;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	flex: 0 0 auto;
}

.wsyb-season-select:hover {
	border-color: #94a3b8;
}

.wsyb-season-select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wsyb-standings-title {
	margin: 0 0 18px;
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	line-height: 1.15;
	font-weight: 800;
	color: #0f172a;
}

.wsyb-standings-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.wsyb-standings-switcher__button {
	appearance: none;
	border: 1px solid #d1d5db;
	background: #ffffff;
	color: #334155;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wsyb-standings-switcher__button:hover {
	border-color: #94a3b8;
	color: #0f172a;
}

.wsyb-standings-switcher__button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
	border-color: #2563eb;
}

.wsyb-standings-switcher__button.is-active {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff;
}

.wsyb-standings-panel[hidden] {
	display: none !important;
}

.wsyb-standings-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	padding: 18px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
	overflow-x: auto;
}

.wsyb-division-title {
	margin: 0 0 14px;
	font-size: 1.15rem;
	line-height: 1.2;
	font-weight: 800;
	color: #0f172a;
}

.wsyb-standings-card .sp-template,
.wsyb-standings-card .sp-table-wrapper,
.wsyb-standings-card .sp-league-table {
	margin: 0;
}

.wsyb-standings-card table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
}

.wsyb-standings-card table thead th {
	padding: 11px 10px;
	background: #f8fafc;
	border-bottom: 1px solid #e5e7eb;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #334155;
}

.wsyb-standings-card table tbody td {
	padding: 11px 10px;
	border-bottom: 1px solid #eef2f7;
	font-size: 0.95rem;
	color: #0f172a;
	vertical-align: middle;
}

.wsyb-standings-card table tbody tr:last-child td {
	border-bottom: 0;
}

.wsyb-standings-card table tbody tr:nth-child(even) {
	background: #fcfdff;
}

.wsyb-standings-card table tbody tr:hover {
	background: #f8fbff;
}

.wsyb-standings-card table a {
	font-weight: 600;
	text-decoration: none;
}

.wsyb-standings-card table a:hover {
	text-decoration: underline;
}

.wsyb-standings-card img {
	max-width: 28px;
	height: auto;
	vertical-align: middle;
}

@media (max-width: 640px) {
	.wsyb-standings-toolbar {
		justify-content: flex-start;
		align-items: flex-start;
	}

	.wsyb-season-select {
		width: 92px;
		min-width: 92px;
		max-width: 92px;
	}

	.wsyb-standings-card {
		padding: 14px;
	}

	.wsyb-standings-card table thead th,
	.wsyb-standings-card table tbody td {
		padding: 10px 8px;
		font-size: 0.9rem;
	}
}
