.afd-schedule {
	--afd-schedule-accent: #0b2d52;
	background: #fff;
	border: 1px solid #eef0f3;
	border-radius: 30px;
	color: #626262;
	padding: clamp(28px, 4.5vw, 50px);
}

.afd-schedule button,
.afd-schedule select {
	font: inherit;
}

.afd-schedule__header {
	align-items: center;
	display: flex;
	gap: 28px;
	justify-content: space-between;
	margin-bottom: 20px !important;
}

.afd-schedule__club {
	align-items: center;
	color: var(--afd-schedule-accent);
	display: flex;
	font-size: clamp(20px, 2vw, 22px);
	gap: 15px;
}

.afd-schedule__club strong {
	font-weight: 600 !important;
}

.afd-schedule__club-badge {
	align-items: center;
	display: inline-flex;
	height: 60px;
	justify-content: center;
	width: 60px;
}

.afd-schedule__club-badge img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.afd-schedule__club-badge>span {
	align-items: center;
	background: #f2f4f6;
	border-radius: 50%;
	display: flex;
	font-weight: 800;
	height: 60px;
	justify-content: center;
	width: 60px;
}

.afd-schedule__sync {
	align-items: center;
	background: transparent !important;
	border: 0;
	color: var(--afd-schedule-accent) !important;
	cursor: pointer;
	display: inline-flex;
	font-size: 18px;
	font-weight: 600 !important;
	gap: 7px;
	letter-spacing: .01em;
	padding: 12px 0 !important;
	text-transform: uppercase;
}

.afd-schedule__sync svg {
	fill: none;
	height: 24px;
	width: 24px;
}

.afd-schedule__sync:disabled {
	cursor: not-allowed;
	opacity: .45;
}

.afd-schedule__notice {
	background: #fff9dc;
	border-left: 4px solid #f2cf18;
	border-radius: 8px;
	color: #5e5525;
	font-size: 13px;
	margin: 0 0 24px;
	padding: 12px 16px;
}

.afd-schedule__controls {
	align-items: center;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(220px, .78fr) minmax(420px, 1.42fr) minmax(150px, .45fr) auto;
	margin-bottom: 48px;
}

.afd-schedule__league select,
.afd-schedule__branch select {
	appearance: none;
	background-color: #F3F3F3 !important;
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNC4xNDIiIGhlaWdodD0iMTQuMTQyIiB2aWV3Qm94PSIwIDAgMTQuMTQyIDE0LjE0MiI+PHBhdGggZD0iTS0xMjEwMCwxMFYwaDNWN2g3djNaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg4NTU1Ljk5MiAtODU0OC45MjIpIHJvdGF0ZSgtNDUpIiBmaWxsPSIjNjY2Ii8+PC9zdmc+");
	background-repeat: no-repeat;
	background-position: right 15px bottom 55%;
	border: 0 !important;
	border-radius: 5px;
	color: #666;
	cursor: pointer;
	font-weight: 700;
	min-height: 40px;
	padding: 0 20px 0 20px;
	width: 100%;
	font-weight: 600 !important;
}

.afd-schedule__branch {
	min-width: 150px;
}

.afd-schedule__branch select {
	padding-right: 44px;
}

.afd-schedule__league select:focus-visible,
.afd-schedule__branch select:focus-visible,
.afd-schedule button:focus-visible {
	outline: 3px solid rgba(11, 45, 82, .2);
	outline-offset: 3px;
}

.afd-schedule__months-wrap {
	align-items: center;
	display: flex;
	gap: 24px;
	min-width: 0;
}

.afd-schedule__months {
	display: flex;
	flex: 1;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	position: relative;
	margin-top: -1px;
	gap: 30px;
	border-bottom: 1px solid #CCCCCC;
}

.afd-schedule__venue:after {
	content: '';
	width: 100%;
	height: 1px;
	background-color: #CCCCCC;
	position: absolute;
	left: 0;
	bottom: 0;
}

.afd-schedule__months::-webkit-scrollbar {
	display: none;
}

.afd-schedule__venue {
	position: relative;
	grid-column: 4;
}

.afd-schedule__months button,
.afd-schedule__venue button {
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	color: #747474;
	cursor: pointer;
	font-size: 16px;
	padding: 6px 0 !important;
	white-space: nowrap;
	border-radius: 0 !important;
}

.afd-schedule__months button:hover,
.afd-schedule__venue button:hover,
.afd-schedule__months button:focus,
.afd-schedule__venue button:focus {
	border-bottom: 2px solid transparent;
	background-color: transparent;
	color: #000;
}

.afd-schedule__months button.is-active,
.afd-schedule__venue button.is-active {
	border-color: var(--afd-schedule-accent);
	color: var(--afd-schedule-accent);
	font-weight: 800;
}

.afd-schedule__month-arrow {
	align-items: center;
	background: transparent !important;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 30px;
	height: 30px;
	justify-content: center;
	line-height: 1;
	padding: 0 !important;
	width: 30px;
}

.afd-schedule__month-arrow svg {
	width: 30px;
	height: 30px;
}

.afd-schedule__months button {
	margin-bottom: -1px;
	position: relative;
	z-index: 9;
}

.afd-schedule__venue {
	display: flex;
	gap: 30px;
	justify-content: flex-end;
}

.afd-schedule__month-group>h3 {
	color: var(--afd-schedule-accent);
	font-size: 17px;
	font-weight: 600;
	margin: 0;
	padding-bottom: 20px;
}

.afd-schedule__matches {
	border-top: 1px solid #d6d6d6;
}

.afd-schedule-match {
	border-bottom: 1px solid #d6d6d6;
}

.afd-schedule-match[hidden],
.afd-schedule__month-group[hidden] {
	display: none !important;
}

.afd-schedule-match__main {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: 150px minmax(170px, .8fr) minmax(430px, 2fr) 50px;
	min-height: 60px;
}

.afd-schedule-match time {
	align-items: baseline;
	display: flex;
	font-size: 14px;
	gap: 5px;
	white-space: nowrap;
}

.afd-schedule-match__league {
	font-size: 14px;
	font-weight: 700;
}

.afd-schedule-match__teams {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(150px, 1fr) 50px minmax(150px, 1fr);
}

.afd-schedule-match__team {
	align-items: center;
	color: var(--afd-schedule-accent);
	display: flex;
	font-size: 14px;
	font-weight: 800;
	gap: 10px;
	min-width: 0;
}

.afd-schedule-match__team:first-child {
	justify-content: flex-end;
	text-align: right;
}

.afd-schedule-match__team:last-child {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.afd-schedule-match__badge {
	align-items: center;
	display: inline-flex;
	flex: 0 0 38px;
	height: 38px;
	justify-content: center;
}

.afd-schedule-match__badge img {
	height: 34px;
	object-fit: contain;
	width: 34px;
}

.afd-schedule-match__badge>span {
	align-items: center;
	background: #f1f3f5;
	border-radius: 50%;
	display: flex;
	font-size: 10px;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.afd-schedule-match__score {
	color: var(--afd-schedule-accent);
	font-size: 17px;
	text-align: center;
	white-space: nowrap;
}

.afd-schedule-match__result {
	color: var(--afd-schedule-accent);
	font-size: 14px;
	font-weight: 800;
	text-align: center;
}

.afd-schedule-match__toggle {
	background: transparent !important;
	border: 0 !important;
	color: #6b6b6b;
	cursor: pointer;
	font-size: 28px;
	padding: 5px !important;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.afd-schedule-match__toggle.is-open {
	transform: rotate(180deg);
}

.afd-schedule-match__details {
	background: #f7f8fa;
	border: 1px solid #e7eaee;
	border-radius: 14px;
	display: block;
	font-size: 13px;
	margin: 4px 0 16px;
	padding: clamp(18px, 2.5vw, 30px);
}

.afd-schedule-match__details[hidden] {
	display: none;
}

.afd-schedule-match__media {
	border-radius: 12px;
	margin-bottom: 18px;
	max-height: 210px;
	overflow: hidden;
}

.afd-schedule-match__media img {
	display: block;
	height: 100%;
	max-height: 210px;
	object-fit: cover;
	width: 100%;
}

.afd-schedule-match__details-head {
	align-items: center;
	border-bottom: 1px solid #dde2e7;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 18px;
}

.afd-schedule-match__details-head>div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.afd-schedule-match__details-head>div>span {
	color: #777;
	font-size: 12px;
}

.afd-schedule-match__details-head>div>strong {
	color: var(--afd-schedule-accent);
	font-size: 17px;
}

.afd-schedule-match__details-head>div>small {
	color: #858585;
	font-size: 12px;
	line-height: 1.35;
}

.afd-schedule-match__league-badge {
	align-items: center;
	display: inline-flex;
	flex: 0 0 42px;
	height: 42px;
	justify-content: center;
	margin-left: auto;
	width: 42px;
}

.afd-schedule-match__league-badge img {
	height: 38px;
	object-fit: contain;
	width: 38px;
}

.afd-schedule-match__status {
	background: #e9eef4;
	border-radius: 999px;
	color: var(--afd-schedule-accent);
	font-size: 11px;
	font-weight: 800;
	padding: 7px 12px;
}

.afd-schedule-match__detail-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.afd-schedule-match__detail-item {
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 70px;
	padding: 13px 15px;
}

.afd-schedule-match__detail-item span {
	color: #858585;
	font-size: 11px;
}

.afd-schedule-match__detail-item strong {
	color: var(--afd-schedule-accent);
	font-size: 13px;
	line-height: 1.35;
}

.afd-schedule-match__score-breakdown,
.afd-schedule-match__incidents,
.afd-schedule-match__summary,
.afd-schedule-match__extra-section {
	border-top: 1px solid #dde2e7;
	margin-top: 20px;
	padding-top: 18px;
}

.afd-schedule-match__score-breakdown>strong,
.afd-schedule-match__incidents>strong,
.afd-schedule-match__summary>strong,
.afd-schedule-match__extra-section>strong {
	color: var(--afd-schedule-accent);
	display: block;
	font-size: 14px;
	margin-bottom: 12px;
}

.afd-schedule-match__score-breakdown>div {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.afd-schedule-match__score-breakdown>div>span {
	align-items: center;
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 9px;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	min-width: 145px;
	padding: 10px 12px;
}

.afd-schedule-match__score-breakdown small {
	color: #777;
	font-size: 11px;
}

.afd-schedule-match__score-breakdown strong {
	color: var(--afd-schedule-accent);
}

.afd-schedule-match__incident-teams {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afd-schedule-match__incident-team {
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 10px;
	padding: 14px 16px;
}

.afd-schedule-match__incident-team>strong {
	color: var(--afd-schedule-accent);
	display: block;
	margin-bottom: 10px;
}

.afd-schedule-match__incident-team>div {
	align-items: center;
	display: flex;
	gap: 9px;
	line-height: 1.4;
	margin-top: 7px;
}

.afd-schedule-match__incident-icon {
	border-radius: 50%;
	display: inline-block;
	flex: 0 0 10px;
	height: 10px;
	width: 10px;
}

.afd-schedule-match__incident-icon--goal {
	background: var(--afd-schedule-accent);
	box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--afd-schedule-accent);
}

.afd-schedule-match__incident-icon--yellow {
	background: #f4c430;
	border-radius: 2px;
	height: 13px;
	width: 9px;
}

.afd-schedule-match__incident-icon--red {
	background: #d52b35;
	border-radius: 2px;
	height: 13px;
	width: 9px;
}

.afd-schedule-match__incident-icon--substitution {
	background: #5d8fd8;
}

.afd-schedule-match__incident-icon--other {
	background: #9aa4af;
}

.afd-schedule-match__advanced-state {
	background: #fff;
	border: 1px dashed #cbd1d7;
	border-radius: 10px;
	color: #69727d;
	margin-top: 20px;
	padding: 14px 16px;
	text-align: center;
}

.afd-schedule-match__timeline>div {
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 10px;
	padding: 10px 14px;
}

.afd-schedule-match__timeline-item {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: 44px 14px 1fr;
	line-height: 1.4;
	padding: 8px 0;
}

.afd-schedule-match__timeline-item + .afd-schedule-match__timeline-item {
	border-top: 1px solid #edf0f3;
}

.afd-schedule-match__timeline-minute {
	color: var(--afd-schedule-accent);
	font-weight: 800;
}

.afd-schedule-match__load-more {
	background: #f3f3f3 !important;
	border: 0;
	border-radius: 5px;
	color: var(--afd-schedule-accent) !important;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700 !important;
	margin-top: 12px;
	min-height: 36px;
	padding: 0 18px !important;
}

.afd-schedule-match__load-more:hover,
.afd-schedule-match__load-more:focus {
	background: #e9edf1 !important;
	color: var(--afd-schedule-accent) !important;
}

.afd-schedule-match__stats-table {
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 10px;
	overflow: hidden;
}

.afd-schedule-match__stats-table>div {
	align-items: center;
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr 70px 70px;
	padding: 10px 14px;
}

.afd-schedule-match__stats-table>div + div {
	border-top: 1px solid #edf0f3;
}

.afd-schedule-match__stats-head {
	background: #f7f8fa;
	font-size: 11px;
	text-transform: uppercase;
}

.afd-schedule-match__stats-table span {
	color: #5f6670;
}

.afd-schedule-match__stats-table strong {
	color: var(--afd-schedule-accent);
	text-align: right;
}

.afd-schedule-match__stats-compact {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.afd-schedule-match__stat-chip {
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 9px 10px;
}

.afd-schedule-match__stat-chip>span {
	color: #66707a;
	font-size: 12px;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.afd-schedule-match__stat-chip>strong {
	align-items: baseline;
	color: var(--afd-schedule-accent);
	display: flex;
	font-size: 15px;
	gap: 5px;
	line-height: 1.15;
}

.afd-schedule-match__stat-chip small {
	color: #8b949e;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.afd-schedule-match__stat-chip i {
	color: #a3acb5;
	font-style: normal;
	font-weight: 600;
}

.afd-schedule-match__lineup-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afd-schedule-match__lineup-group {
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 10px;
	padding: 14px 16px;
}

.afd-schedule-match__lineup-group>strong {
	color: var(--afd-schedule-accent);
	display: block;
	margin-bottom: 10px;
}

.afd-schedule-match__lineup-group>div {
	align-items: flex-start;
	display: grid;
	gap: 10px;
	grid-template-columns: 32px 42px 1fr;
	padding: 7px 0;
}

.afd-schedule-match__lineup-group>div + div {
	border-top: 1px solid #edf0f3;
}

.afd-schedule-match__lineup-group>div>span {
	color: var(--afd-schedule-accent);
	font-weight: 800;
}

.afd-schedule-match__lineup-group img,
.afd-schedule-match__lineup-group i {
	background: #eef2f5;
	border-radius: 50%;
	display: block;
	height: 32px;
	object-fit: cover;
	width: 32px;
}

.afd-schedule-match__lineup-group p {
	margin: 0;
}

.afd-schedule-match__lineup-group p>strong,
.afd-schedule-match__lineup-group p>small {
	display: block;
	line-height: 1.35;
}

.afd-schedule-match__lineup-group p>small {
	color: #858585;
	margin-top: 2px;
}

.afd-schedule-match__tv>div {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afd-schedule-match__tv-item {
	align-items: center;
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 10px;
	display: flex;
	gap: 10px;
	padding: 12px 14px;
}

.afd-schedule-match__tv-item img {
	flex: 0 0 34px;
	height: 34px;
	object-fit: contain;
	width: 34px;
}

.afd-schedule-match__tv-item span,
.afd-schedule-match__tv-item small {
	display: block;
	line-height: 1.35;
}

.afd-schedule-match__tv-item strong {
	color: var(--afd-schedule-accent);
}

.afd-schedule-match__tv-item small {
	color: #858585;
	margin-top: 2px;
}

.afd-schedule-match__summary p {
	color: #5f6670;
	line-height: 1.6;
	margin: 6px 0 0;
}

.afd-schedule-match__video {
	align-items: center;
	background: var(--afd-schedule-accent);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	gap: 9px;
	margin-top: 20px;
	padding: 10px 16px;
}

.afd-schedule-match__video:hover {
	color: #fff;
	opacity: .9;
}

.afd-schedule-match__map {
	background: #fff;
	border: 1px solid var(--afd-schedule-accent);
	color: var(--afd-schedule-accent);
	margin-left: 10px;
}

.afd-schedule-match__map:hover {
	color: var(--afd-schedule-accent);
}

.afd-schedule__empty {
	align-items: center;
	background: #f7f8fa;
	border: 1px dashed #cbd1d7;
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 34px;
	text-align: center;
}

.afd-schedule__empty strong {
	color: var(--afd-schedule-accent);
}

.afd-schedule__empty--filtered {
	margin-top: 20px;
}

@media (max-width: 1199px) {
	.afd-schedule__controls {
		grid-template-columns: minmax(220px, .8fr) minmax(420px, 1.5fr);
	}

	.afd-schedule__branch {
		grid-column: 1;
	}

	.afd-schedule__venue {
		grid-column: 2;
		justify-content: flex-end;
	}

	.afd-schedule-match__main {
		grid-template-columns: 135px minmax(140px, .7fr) minmax(390px, 2fr) 34px;
	}

	.afd-schedule-match__result {
		display: none;
	}

	.afd-schedule-match__lineup-grid,
	.afd-schedule-match__tv>div {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.afd-schedule {
		border-radius: 20px;
	}

	.afd-schedule__controls {
		grid-template-columns: 1fr;
	}

	.afd-schedule__venue {
		grid-column: auto;
		justify-content: flex-start;
	}

	.afd-schedule__branch {
		grid-column: auto;
	}

	.afd-schedule-match__main {
		gap: 10px;
		grid-template-columns: 1fr 34px;
		padding: 18px 0;
	}

	.afd-schedule-match time,
	.afd-schedule-match__league,
	.afd-schedule-match__teams {
		grid-column: 1;
	}

	.afd-schedule-match__toggle {
		grid-column: 2;
		grid-row: 1 / 4;
	}

	.afd-schedule-match__teams {
		grid-template-columns: minmax(110px, 1fr) 44px minmax(110px, 1fr);
	}

	.afd-schedule-match__detail-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.afd-schedule {
		padding: 24px 18px;
	}

	.afd-schedule__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.afd-schedule__club-badge {
		height: 68px;
		width: 68px;
	}

	.afd-schedule__sync {
		font-size: 12px;
	}

	.afd-schedule__months {
		gap: 24px;
	}

	.afd-schedule__venue {
		gap: 24px;
	}

	.afd-schedule-match__team {
		font-size: 12px;
	}

	.afd-schedule-match__badge {
		flex-basis: 30px;
		height: 30px;
	}

	.afd-schedule-match__badge img {
		height: 28px;
		width: 28px;
	}

	.afd-schedule-match__details-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.afd-schedule-match__detail-grid,
	.afd-schedule-match__incident-teams {
		grid-template-columns: 1fr;
	}

	.afd-schedule-match__score-breakdown>div {
		flex-direction: column;
	}
}
