.kotk-fixtures {
	--kotk-red: #d60000;
	--kotk-red-dark: #b50000;
	--kotk-text: #202020;
	--kotk-muted: #6f6f6f;
	--kotk-line: #ece7e3;
	--kotk-soft: #f8f6f4;
	margin: 0 0 26px;
	color: var(--kotk-text);
	font-family: inherit;
}

.kotk-fixtures__title-wrap {
	margin: 0 0 12px;
}

.kotk-fixtures__title {
	margin: 0;
	padding: 0;
	color: #222;
	font-size: 17px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: .01em;
	text-transform: uppercase;
}

.kotk-fixtures__title-line {
	display: block;
	width: 100%;
	height: 3px;
	margin-top: 9px;
	background: var(--kotk-red);
}

.kotk-fixtures__list {
	display: grid;
	gap: 9px;
}

.kotk-fixtures__card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--kotk-line);
	border-radius: 5px;
}

.kotk-fixtures__card--next {
	border-top: 4px solid var(--kotk-red);
	box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.kotk-fixtures__card--compact {
	border-left: 4px solid var(--kotk-red);
	background: linear-gradient(90deg, #fff 0%, #fff 72%, #fbf8f7 100%);
}

.kotk-fixtures__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 11px 7px;
	font-size: 11px;
	line-height: 1.25;
}

.kotk-fixtures__competition {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	color: var(--kotk-red);
	font-weight: 800;
}

.kotk-fixtures__next {
	align-self: flex-start;
	padding: 2px 5px;
	border-radius: 2px;
	background: var(--kotk-red);
	color: #fff;
	font-size: 8px;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.kotk-fixtures__kickoff {
	flex: 0 0 auto;
	color: var(--kotk-muted);
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.kotk-fixtures__match {
	display: grid;
	grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr);
	align-items: center;
	gap: 7px;
	padding: 6px 11px 13px;
}

.kotk-fixtures__team {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.kotk-fixtures__team--away {
	flex-direction: row-reverse;
	text-align: right;
}

.kotk-fixtures__crest {
	display: block;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.kotk-fixtures__crest-fallback {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 1px solid #ecd1d1;
	border-radius: 50%;
	background: #fff4f4;
	color: var(--kotk-red);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .02em;
}

.kotk-fixtures__team-name {
	min-width: 0;
	font-size: 15px;
	line-height: 1.08;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.kotk-fixtures__versus {
	color: var(--kotk-red);
	font-size: 15px;
	line-height: 1;
	font-weight: 900;
	text-align: center;
}

.kotk-fixtures__card--compact .kotk-fixtures__meta {
	padding: 8px 10px 4px;
	font-size: 10.5px;
}

.kotk-fixtures__card--compact .kotk-fixtures__match {
	padding: 5px 10px 9px;
}

.kotk-fixtures__card--compact .kotk-fixtures__crest {
	width: 28px;
	height: 28px;
}

.kotk-fixtures__card--compact .kotk-fixtures__crest-fallback {
	width: 27px;
	height: 27px;
	font-size: 9px;
}

.kotk-fixtures__card--compact .kotk-fixtures__team-name {
	font-size: 13px;
}

.kotk-fixtures__card--compact .kotk-fixtures__versus {
	font-size: 13px;
}

.kotk-fixtures__attribution {
	margin: 7px 1px 0;
	padding: 0;
	font-size: 10px;
	line-height: 1.25;
	text-align: right;
}

.kotk-fixtures__attribution a {
	color: #999;
	text-decoration: none;
}

.kotk-fixtures__attribution a:hover,
.kotk-fixtures__attribution a:focus {
	color: #666;
	text-decoration: underline;
}

.kotk-fixtures-admin-note {
	padding: 10px 12px;
	border-left: 4px solid #dba617;
	background: #fff8d8;
	color: #333;
	font-size: 13px;
}

@media (max-width: 360px) {
	.kotk-fixtures__meta {
		flex-direction: column;
		gap: 5px;
	}

	.kotk-fixtures__kickoff {
		text-align: left;
		white-space: normal;
	}

	.kotk-fixtures__match {
		padding-left: 8px;
		padding-right: 8px;
		gap: 5px;
	}

	.kotk-fixtures__team {
		flex-direction: column;
		text-align: center;
	}

	.kotk-fixtures__team--away {
		flex-direction: column;
		text-align: center;
	}
}


/* WordPress admin preview */
.settings_page_kotk-fixtures .kotk-fixtures {
	max-width: 360px;
}


/* League table widget */
.kotk-league-table {
	--kotk-red: #d60000;
	--kotk-red-dark: #b50000;
	--kotk-text: #202020;
	--kotk-muted: #6f6f6f;
	--kotk-line: #ece7e3;
	margin: 0 0 26px;
	color: var(--kotk-text);
	font-family: inherit;
}

.kotk-league-table__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
	margin: 0 0 9px;
}

.kotk-league-table__tab {
	min-height: 34px;
	padding: 7px 8px;
	border: 1px solid #efcaca;
	border-radius: 18px;
	background: #fff;
	color: var(--kotk-red);
	font: inherit;
	font-size: 10px;
	line-height: 1.15;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
}

.kotk-league-table__tab.is-active {
	border-color: var(--kotk-red);
	background: var(--kotk-red);
	color: #fff;
}

.kotk-league-table__tab:focus-visible {
	outline: 2px solid #222;
	outline-offset: 2px;
}

.kotk-league-table__panel[hidden] {
	display: none !important;
}

.kotk-league-table__grid {
	overflow: hidden;
	border: 1px solid var(--kotk-line);
	border-top: 4px solid var(--kotk-red);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.kotk-league-table__row {
	display: grid;
	grid-template-columns: 34px minmax(0,1fr) 38px 38px;
	align-items: center;
	min-height: 43px;
	border-top: 1px solid #efefef;
	font-size: 12px;
	line-height: 1.15;
}

.kotk-league-table__row:first-child {
	border-top: 0;
}

.kotk-league-table__row--head {
	min-height: 29px;
	background: var(--kotk-red);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
}

.kotk-league-table__row--lfc {
	position: relative;
	background: #fff0f0;
	font-weight: 800;
}

.kotk-league-table__row--lfc::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: var(--kotk-red);
}

.kotk-league-table__pos,
.kotk-league-table__num {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.kotk-league-table__club {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	padding: 0 5px 0 1px;
}

.kotk-league-table__crest {
	display: block;
	flex: 0 0 auto;
	width: 23px;
	height: 23px;
	object-fit: contain;
}

.kotk-league-table__crest-fallback {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff3f3;
	color: var(--kotk-red);
	font-size: 8px;
	font-weight: 900;
}

.kotk-league-table__club-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 700;
}

.kotk-league-table__points {
	color: var(--kotk-red);
	font-weight: 900;
}

.kotk-league-table__attribution {
	margin-top: 6px;
	font-size: 9px;
}

@media (max-width: 360px) {
	.kotk-league-table__row {
		grid-template-columns: 30px minmax(0,1fr) 34px 34px;
		font-size: 11px;
	}

	.kotk-league-table__tab {
		font-size: 9px;
	}
}


.kotk-league-table__empty {
	padding: 18px 12px;
	border: 1px solid var(--kotk-line);
	border-top: 4px solid var(--kotk-red);
	border-radius: 6px;
	background: #fff;
	color: var(--kotk-muted);
	font-size: 11px;
	line-height: 1.4;
	text-align: center;
}


/* Links from compact widgets to full reference pages */
.kotk-fixtures__more {
	margin: 9px 1px 0;
	padding: 0;
	font-size: 11px;
	line-height: 1.3;
	font-weight: 800;
	text-align: right;
}

.kotk-fixtures__more a {
	color: var(--kotk-red, #d60000);
	text-decoration: none;
}

.kotk-fixtures__more a:hover,
.kotk-fixtures__more a:focus {
	text-decoration: underline;
}


/* Full Liverpool fixtures and tables pages */
.kotk-full-page {
	--kotk-red: #d60000;
	--kotk-red-dark: #b50000;
	--kotk-text: #202020;
	--kotk-muted: #6f6f6f;
	--kotk-line: #ece7e3;
	--kotk-soft: #f8f6f4;
	margin: 8px 0 34px;
	color: var(--kotk-text);
	font-family: inherit;
}

.kotk-full-page__intro {
	margin: 0 0 18px;
	color: #555;
	font-size: 15px;
	line-height: 1.55;
}

.kotk-full-fixtures__day {
	margin: 0 0 20px;
}

.kotk-full-fixtures__day h2 {
	margin: 0;
	padding: 10px 13px;
	background: var(--kotk-red);
	color: #fff;
	font-size: 15px;
	line-height: 1.2;
	font-weight: 800;
}

.kotk-full-fixtures__row {
	display: grid;
	grid-template-columns: 145px minmax(0, 1fr);
	align-items: center;
	min-height: 66px;
	border: 1px solid var(--kotk-line);
	border-top: 0;
	background: #fff;
}

.kotk-full-fixtures__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border-right: 1px solid var(--kotk-line);
}

.kotk-full-fixtures__competition {
	color: var(--kotk-red);
	font-size: 11px;
	line-height: 1.2;
	font-weight: 800;
}

.kotk-full-fixtures__meta time {
	color: var(--kotk-muted);
	font-size: 13px;
	font-weight: 800;
}

.kotk-full-fixtures__match {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
	padding: 8px 14px;
}

.kotk-full-fixtures__team {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	font-size: 14px;
	font-weight: 800;
}

.kotk-full-fixtures__team--home {
	justify-content: flex-end;
	text-align: right;
}

.kotk-full-fixtures__team--away {
	justify-content: flex-start;
}

.kotk-full-fixtures__team img {
	display: block;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.kotk-full-fixtures__crest-fallback {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border: 1px solid #ecd1d1;
	border-radius: 50%;
	background: #fff4f4;
	color: var(--kotk-red);
	font-size: 10px;
	font-weight: 900;
}

.kotk-full-fixtures__match > strong {
	color: var(--kotk-red);
	text-align: center;
	font-size: 14px;
}

.kotk-full-tables .kotk-league-table__tabs {
	max-width: 520px;
	margin-bottom: 12px;
}

.kotk-full-table__wrap {
	overflow-x: auto;
	border: 1px solid var(--kotk-line);
	border-top: 4px solid var(--kotk-red);
	border-radius: 6px;
	background: #fff;
}

.kotk-full-table {
	width: 100%;
	min-width: 650px;
	border-collapse: collapse;
}

.kotk-full-table th {
	padding: 9px 8px;
	background: var(--kotk-red);
	color: #fff;
	font-size: 10px;
	line-height: 1.2;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
}

.kotk-full-table th:nth-child(2) {
	text-align: left;
}

.kotk-full-table td {
	padding: 9px 8px;
	border-top: 1px solid #efefef;
	font-size: 13px;
	line-height: 1.2;
	text-align: center;
}

.kotk-full-table__club {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 220px;
	text-align: left !important;
	font-weight: 700;
}

.kotk-full-table__club img {
	display: block;
	flex: 0 0 auto;
	width: 25px;
	height: 25px;
	object-fit: contain;
}

.kotk-full-table__lfc {
	background: #fff0f0;
	font-weight: 800;
}

.kotk-full-table__lfc td:first-child {
	box-shadow: inset 3px 0 0 var(--kotk-red);
}

.kotk-full-table td strong {
	color: var(--kotk-red);
	font-weight: 900;
}

.kotk-full-table__qualification td {
	padding: 6px 8px !important;
	background: var(--kotk-soft);
	color: var(--kotk-red);
	font-size: 10px !important;
	line-height: 1.25;
	font-weight: 800;
	text-align: center !important;
}

@media (max-width: 600px) {
	.kotk-full-fixtures__row {
		grid-template-columns: 1fr;
	}

	.kotk-full-fixtures__meta {
		flex-direction: row;
		justify-content: space-between;
		gap: 10px;
		border-right: 0;
		border-bottom: 1px solid var(--kotk-line);
	}

	.kotk-full-fixtures__match {
		grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
		padding-left: 8px;
		padding-right: 8px;
	}

	.kotk-full-fixtures__team {
		font-size: 12px;
		gap: 6px;
	}

	.kotk-full-fixtures__team img {
		width: 30px;
		height: 30px;
	}

	.kotk-full-fixtures__crest-fallback {
		width: 30px;
		height: 30px;
		font-size: 9px;
	}
}
