:root {
	--league-red: #8c2126;
	--league-red-dark: #71181d;
	--league-red-pale: #f7ecec;
	--league-ink: #202020;
	--league-muted: #686868;
	--league-line: #dedede;
	--league-bg: #f5f5f3;
}

.league-schedule-page {
	min-height: 70vh;
	background: var(--league-bg);
	color: var(--league-ink);
}

.league-schedule-detail {
	padding: 56px 0 88px;
}

.league-schedule-header,
.league-schedule-dashboard,
.league-schedule-supplemental,
.league-schedule-empty {
	width: min(1420px, calc(100% - 64px));
	margin-inline: auto;
}

.league-schedule-header {
	margin-bottom: 30px;
	padding-left: 22px;
	border-left: 6px solid var(--league-red);
}

.league-schedule-header p {
	margin: 0;
}

.league-schedule-header .league-schedule-kicker {
	color: var(--league-red);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .16em;
}

.league-schedule-header h1 {
	margin: 5px 0 2px;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.22;
}

.league-schedule-header > p:last-child {
	color: var(--league-muted);
	font-weight: 800;
}

.league-schedule-controls {
	display: grid;
	grid-template-columns: 150px minmax(380px, 1fr) 160px 160px 283px;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--league-line);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 5px 18px rgb(0 0 0 / 5%);
}

.league-filter {
	position: relative;
	display: block;
}

.league-filter > span {
	position: absolute;
	z-index: 1;
	top: 7px;
	left: 13px;
	color: var(--league-muted);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .06em;
	pointer-events: none;
}

.league-filter::after {
	position: absolute;
	z-index: 2;
	top: 50%;
	right: 14px;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	color: var(--league-ink);
	content: "";
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
}

.league-filter select {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	min-height: 52px;
	padding: 20px 34px 6px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
	background: #fff;
	color: var(--league-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
}

.league-filter select:focus-visible,
.league-schedule-controls button:focus-visible,
.league-calendar-panel button:focus-visible {
	outline: 3px solid rgb(140 33 38 / 25%);
	outline-offset: 2px;
}

.league-tabs,
.league-segment,
.league-view-switch {
	display: flex;
	align-items: stretch;
}

.league-tabs {
	gap: 3px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.league-tabs button,
.league-segment button,
.league-view-switch button {
	min-height: 48px;
	border: 1px solid transparent;
	background: #fff;
	color: #292929;
	font: inherit;
	font-size: 13px;
	font-weight: 900;
	white-space: nowrap;
	cursor: pointer;
}

.league-tabs button {
	flex: 1 0 auto;
	padding: 8px 10px;
	border-radius: 3px;
}

.league-tabs button[aria-pressed="true"],
.league-segment button.is-active,
.league-view-switch button[aria-pressed="true"] {
	border-color: var(--league-red);
	background: var(--league-red);
	color: #fff;
}

.league-segment {
	grid-column: 5;
	justify-self: end;
	border: 1px solid var(--league-red);
	border-radius: 4px;
	overflow: hidden;
}

.league-segment button {
	padding: 8px 20px;
	border-right: 1px solid #dedede;
}

.league-segment button:last-child {
	border-right: 0;
}

.league-view-switch {
	grid-column: 1 / 3;
	width: max-content;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
	overflow: hidden;
}

.league-view-switch button {
	padding: 8px 22px;
}

.league-schedule-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	gap: 20px;
	margin-top: 20px;
	align-items: start;
}

.league-schedule-main,
.league-table-view {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.league-card-view {
	display: grid;
	gap: 18px;
}

.league-schedule-dashboard [data-view-panel][hidden] {
	display: none !important;
}

.league-date-group {
	overflow: hidden;
	border: 1px solid var(--league-line);
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 4px 15px rgb(0 0 0 / 4%);
	scroll-margin-top: 96px;
}

.league-date-heading {
	min-height: 58px;
	padding: 10px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-bottom: 1px solid var(--league-line);
	background: var(--league-red);
	color: #fff;
}

.league-date-heading strong {
	font-size: 22px;
}

.league-date-summary {
	display: flex;
	align-items: center;
	gap: 10px;
}

.league-date-summary span {
	font-size: 12px;
	font-weight: 800;
}

.league-venue-group {
	padding: 0 18px 18px;
}

.league-venue-group + .league-venue-group {
	border-top: 1px solid var(--league-line);
}

.league-venue-group h2 {
	margin: 0;
	padding: 13px 0 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #3f3f3f;
	font-size: 14px;
}

.league-venue-group h2 span {
	color: var(--league-red);
	font-size: 11px;
}

.league-match-stack {
	display: grid;
	gap: 8px;
}

.league-match-card {
	overflow: hidden;
	border: 1px solid var(--league-line);
	border-radius: 0;
	background: #fff;
}

.league-match-card.has-detail-link {
	cursor: pointer;
}

.league-match-card.has-detail-link:hover,
.league-match-card.has-detail-link:focus-visible {
	border-color: rgb(140 33 38 / 55%);
	box-shadow: 0 0 0 2px rgb(140 33 38 / 10%);
	outline: 0;
}

.league-match-meta {
	min-height: 30px;
	padding: 5px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #f7f7f6;
	color: var(--league-muted);
	font-size: 11px;
}

.league-match-meta span {
	color: var(--league-red);
	font-weight: 900;
}

.league-match-meta strong {
	font-size: 11px;
}

.league-match-fixture {
	min-height: 92px;
	padding: 14px 22px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
}

.league-match-time {
	display: none;
}

.league-team {
	min-width: 0;
}

.league-team-name,
.league-table-team-name {
	display: flex;
	align-items: center;
	gap: 8px;
}

.league-team-home .league-team-name {
	justify-content: flex-end;
}

.league-team-away .league-team-name {
	justify-content: flex-start;
}

.league-team-logo {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	object-fit: contain;
}

.league-team strong,
.league-team small {
	display: block;
}

.league-team strong {
	font-size: clamp(14px, 1.35vw, 18px);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.league-team small {
	margin-top: 3px;
	color: var(--league-muted);
	font-size: 11px;
}

.league-team-home {
	text-align: right;
}

.league-team-away {
	text-align: left;
}

.league-kickoff-score {
	text-align: center;
}

.league-kickoff-score strong,
.league-kickoff-score span {
	display: block;
}

.league-kickoff-score strong {
	color: var(--league-ink);
	font-size: 24px;
	line-height: 1;
	white-space: nowrap;
}

.league-kickoff-score strong i {
	margin-inline: 10px;
	color: var(--league-red);
	font-style: normal;
	font-weight: 500;
}

.league-kickoff-score span {
	margin-top: 7px;
	color: var(--league-muted);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .1em;
}

.league-match-actions {
	min-height: 48px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: 0;
	border-top: 1px solid #ededed;
	background: #fff;
}

.league-match-actions > a,
.league-match-actions > span {
	min-width: 0;
	min-height: 48px;
	padding: 6px 4px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--league-red);
	font-size: 10px;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
}

.league-match-actions > a:not(:first-child),
.league-match-actions > span:not(:first-child) {
	border-left: 1px solid var(--league-line);
}

.league-match-actions > a::before,
.league-match-actions > span::before {
	display: block;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
}

.league-match-actions .is-official::before {
	content: "▤";
}

.league-match-actions .is-report::before {
	content: "✎";
}

.league-match-actions .is-stream::before {
	content: "▶";
}

.league-match-actions .is-ticket::before {
	width: 18px;
	height: 14px;
	background: currentColor;
	content: "";
	-webkit-mask: url("../images/ticket-icon.png") center / contain no-repeat;
	mask: url("../images/ticket-icon.png") center / contain no-repeat;
}

.league-match-actions > a:hover,
.league-match-actions > a:focus-visible {
	background: #faf3f3;
	color: #721a1f;
	outline: 0;
}

.league-match-actions > span[aria-disabled="true"] {
	background: transparent;
	color: #b8b8b8;
	cursor: default;
}

.league-schedule-aside {
	position: sticky;
	top: 92px;
	display: grid;
	gap: 16px;
}

.league-calendar-panel,
.league-schedule-guide {
	border: 1px solid var(--league-line);
	border-radius: 5px;
	background: #fff;
}

.league-calendar-panel summary {
	padding: 16px;
	font-size: 16px;
	font-weight: 900;
	cursor: pointer;
}

.league-calendar-panel > div {
	padding: 0 14px 15px;
}

.league-calendar-head {
	margin-bottom: 10px;
	display: grid;
	grid-template-columns: 34px 1fr 34px;
	align-items: center;
}

.league-calendar-head strong {
	text-align: center;
	font-size: 14px;
}

.league-calendar-head button {
	width: 34px;
	height: 34px;
	border: 1px solid var(--league-line);
	border-radius: 3px;
	background: #fff;
	color: var(--league-ink);
	cursor: pointer;
}

.league-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
	text-align: center;
}

.league-calendar-grid > span {
	min-height: 32px;
	display: grid;
	place-items: center;
	color: #777;
	font-size: 11px;
}

.league-calendar-grid > span.is-weekday {
	min-height: 24px;
	font-weight: 900;
}

.league-calendar-grid button {
	width: 30px;
	height: 30px;
	margin: auto;
	border: 0;
	border-radius: 50%;
	background: var(--league-red);
	color: #fff;
	font: inherit;
	font-size: 11px;
	font-weight: 900;
	cursor: pointer;
}

.league-schedule-guide {
	padding: 16px;
}

.league-schedule-guide strong {
	color: var(--league-red);
	font-size: 13px;
}

.league-schedule-guide p {
	margin: 7px 0 0;
	color: var(--league-muted);
	font-size: 12px;
	line-height: 1.7;
}

.league-table-view .competition-schedule-scroll {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	border-top-color: var(--league-red);
	border-radius: 4px;
}

.league-table-view .competition-schedule {
	min-width: 1080px;
}

.league-table-view .competition-schedule th {
	background: var(--league-red);
}

.league-table-view .competition-schedule td {
	border-color: #e2e2e2;
	background: #fff;
}

.league-table-team-name {
	white-space: nowrap;
}

.league-table-team-logo {
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	object-fit: contain;
}

.league-table-view .competition-schedule tr:nth-child(even) td {
	background: #f5f5f3;
}

.league-table-swipe {
	display: none;
	margin: 0 0 7px;
	color: var(--league-muted);
	font-size: 11px;
	font-weight: 800;
}

.league-empty-filter,
.league-schedule-empty {
	padding: 36px;
	border: 1px solid var(--league-line);
	background: #fff;
	text-align: center;
}

.league-schedule-supplemental {
	margin-top: 58px;
	padding: 34px;
	border-top: 4px solid var(--league-red);
	background: #fff;
}

.league-schedule-supplemental-inline {
	width: 100%;
	margin: 20px 0 0;
	padding: 0;
	border: 1px solid var(--league-border);
	border-top: 4px solid var(--league-red);
}

.league-schedule-supplemental-inline > summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 62px;
	padding: 15px 62px 15px 22px;
	cursor: pointer;
	list-style: none;
	font-size: 20px;
	font-weight: 800;
}

.league-schedule-supplemental-inline > summary::-webkit-details-marker {
	display: none;
}

.league-schedule-supplemental-inline > summary small {
	font-size: 12px;
	font-weight: 500;
	color: var(--league-muted);
}

.league-schedule-supplemental-inline > summary::after {
	position: absolute;
	top: 50%;
	right: 22px;
	content: "+";
	transform: translateY(-50%);
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	color: var(--league-red);
}

.league-schedule-supplemental-inline[open] > summary::after {
	content: "−";
}

.league-schedule-supplemental-inline > .league-supplemental-content {
	padding: 26px 30px 32px;
	border-top: 1px solid var(--league-border);
}

.league-schedule-supplemental-inline[hidden],
.league-supplemental-panel[hidden] {
	display: none !important;
}

.league-supplemental-intro:empty {
	display: none;
}

.league-supplemental-intro {
	margin-bottom: 24px;
}

.league-supplemental-panel > h4.daiji:first-child {
	margin-top: 0;
}

.league-schedule-supplemental > h2 {
	margin: 0 0 26px;
	font-size: 26px;
}

.league-supplemental-content {
	max-width: 1100px;
	line-height: 1.85;
}

.league-supplemental-content .Dmenu_grid,
.league-supplemental-content select[name="tw_selectyear"],
.league-supplemental-content .scroller:empty {
	display: none !important;
}

.league-supplemental-content img {
	max-width: 100%;
	height: auto;
}

.league-supplemental-content h4.daiji {
	margin-top: 48px;
	padding-left: 14px;
	border-left: 4px solid var(--league-red);
	font-size: 21px;
}

@media (max-width: 640px) {
	.league-schedule-supplemental-inline > summary {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
		padding: 13px 52px 13px 16px;
		font-size: 17px;
	}

	.league-schedule-supplemental-inline > summary::after {
		right: 16px;
	}

	.league-schedule-supplemental-inline > .league-supplemental-content {
		padding: 20px 16px 24px;
	}
}

[data-schedule-match][hidden],
[data-date-group][hidden],
[data-venue-group][hidden] {
	display: none !important;
}

@media (min-width: 901px) {
	.league-card-view {
		gap: 22px;
	}

	.league-date-group {
		overflow: visible;
		display: grid;
		grid-template-columns: 126px minmax(0, 1fr);
		gap: 10px 20px;
		align-items: start;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.league-date-heading {
		grid-column: 1;
		grid-row: 1;
		min-height: 0;
		padding: 0;
		display: block;
		border: 0;
		background: transparent;
		color: var(--league-ink);
	}

	.league-date-heading > div:first-child {
		padding: 13px 8px;
		border: 1px solid var(--league-red);
		border-radius: 3px 3px 0 0;
		background: var(--league-red);
		color: #fff;
		text-align: center;
		white-space: nowrap;
	}

	.league-date-heading strong {
		font-size: 18px;
	}

	.league-date-heading > div:first-child span {
		font-size: 11px;
	}

	.league-date-summary {
		min-height: 38px;
		padding: 6px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 1px;
		border: 1px solid var(--league-red);
		border-top: 0;
		border-radius: 0 0 3px 3px;
		background: #fff;
		text-align: center;
	}

	.league-date-summary [data-visible-round] {
		color: var(--league-ink);
		font-size: 16px;
	}

	.league-date-summary [data-visible-count] {
		color: var(--league-muted);
		font-size: 9px;
	}

	.league-venue-group {
		grid-column: 2;
		padding: 0 16px 14px;
		border: 1px solid var(--league-line);
		border-radius: 4px;
		background: #fff;
		box-shadow: 0 3px 12px rgb(0 0 0 / 3%);
	}

	.league-venue-group + .league-venue-group {
		border-top: 1px solid var(--league-line);
	}

	.league-venue-group h2 {
		padding: 11px 0 9px;
		font-size: 12px;
	}

	.league-match-stack {
		overflow: hidden;
		gap: 0;
		border-top: 1px solid var(--league-line);
		border-bottom: 1px solid var(--league-line);
		border-radius: 0;
	}

	.league-match-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		border: 0;
		border-radius: 0;
	}

	.league-match-card + .league-match-card {
		border-top: 1px solid var(--league-line);
	}

	.league-match-meta {
		display: none;
	}

	.league-match-fixture {
		min-height: 58px;
		padding: 6px 14px;
		grid-template-columns: 66px 32px 190px 6px 82px 32px 190px;
		column-gap: 0;
		justify-content: center;
	}

	.league-match-time {
		display: block;
		grid-column: 1;
		font-size: 15px;
		font-weight: 900;
		white-space: nowrap;
	}

	.league-team-home {
		grid-column: 3;
	}

	.league-kickoff-score {
		grid-column: 5;
	}

	.league-team-away {
		grid-column: 7;
	}

	.league-team-home,
	.league-team-away {
		text-align: left;
	}

	.league-team-home .league-team-name,
	.league-team-away .league-team-name {
		justify-content: flex-start;
	}

	.league-team strong {
		font-size: 14px;
		white-space: nowrap;
	}

	.league-kickoff-score strong {
		font-size: 18px;
	}

	.league-kickoff-score span {
		margin-top: 4px;
		font-size: 8px;
	}

	.league-match-actions {
		width: 264px;
		min-width: 264px;
		min-height: 58px;
		padding: 0;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		align-items: stretch;
		gap: 0;
		border-top: 0;
		border-left: 1px solid var(--league-line);
	}

	.league-match-actions > a,
	.league-match-actions > span {
		min-height: 58px;
		padding: 5px 3px;
		font-size: 9px;
	}
}

@media (min-width: 1261px) {
	.league-tabs button {
		flex: 1 1 0;
		padding-inline: 6px;
	}
}

@media (max-width: 1260px) {
	.league-schedule-controls {
		grid-template-columns: 150px 1fr 1fr;
	}

	.league-tabs {
		grid-column: 2 / 4;
	}

	.league-segment {
		grid-column: 2 / 4;
	}

	.league-view-switch {
		grid-column: 1 / 2;
		grid-row: 3;
	}
}

@media (min-width: 901px) and (max-width: 1440px) {
	.league-schedule-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.league-schedule-aside {
		position: static;
		grid-row: auto;
	}
}

@media (max-width: 900px) {
	.league-schedule-header,
	.league-schedule-dashboard,
	.league-schedule-supplemental,
	.league-schedule-empty {
		width: min(100% - 36px, 760px);
	}

	.league-schedule-controls {
		grid-template-columns: 1fr 1fr;
	}

	.league-filter-year {
		grid-column: 1 / 2;
	}

	.league-tabs {
		grid-column: 1 / -1;
		grid-row: 2;
		order: 2;
	}

	.league-segment {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.league-segment button {
		flex: 1;
		padding-inline: 10px;
	}

	.league-view-switch {
		grid-column: 2 / 3;
		grid-row: 1;
		width: 100%;
	}

	.league-view-switch button {
		flex: 1;
		padding-inline: 10px;
	}

	.league-schedule-layout {
		grid-template-columns: 1fr;
	}

	.league-schedule-aside {
		position: static;
		grid-row: 1;
	}

	.league-calendar-panel:not([open]) > div {
		display: none;
	}
}

@media (max-width: 640px) {
	.league-schedule-detail {
		padding: 34px 0 60px;
	}

	.league-schedule-header {
		margin-bottom: 20px;
		padding-left: 15px;
	}

	.league-schedule-controls {
		grid-template-columns: 1fr;
		padding: 12px;
	}

	.league-filter-year,
	.league-filter,
	.league-tabs,
	.league-segment,
	.league-view-switch {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.league-tabs {
		margin-inline: -12px;
		padding-inline: 12px;
	}

	.league-tabs button {
		min-height: 44px;
		padding-inline: 15px;
	}

	.league-filter select {
		height: 50px;
		min-height: 50px;
	}

	.league-date-heading {
		min-height: 52px;
		padding: 9px 13px;
	}

	.league-date-heading strong {
		font-size: 19px;
	}

	.league-venue-group {
		padding: 0 10px 10px;
	}

	.league-match-stack {
		gap: 10px;
	}

	.league-match-fixture {
		min-height: 118px;
		padding: 15px 10px;
		grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
		gap: 7px;
	}

	.league-team strong {
		font-size: 13px;
	}

	.league-kickoff-score strong {
		font-size: 19px;
	}

	.league-kickoff-score strong i {
		margin-inline: 5px;
	}

	.league-match-actions {
		width: 100%;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.league-match-actions > a,
	.league-match-actions > span {
		min-height: 38px;
		padding: 9px 10px;
	}

	.league-table-swipe {
		display: block;
	}

	.league-schedule-supplemental {
		margin-top: 42px;
		padding: 24px 18px;
	}
}
