/* Tarjeta de partido: cabecera de su página y bloque dentro de las noticias. */
.cd-match-card {
	position: relative;
	display: block;
	overflow: hidden;
	color: #071b3d;
	background: #fff;
	border: 1px solid #dce3ee;
	border-top: 5px solid var(--cd-yellow, #e4a709);
	border-radius: 16px;
	box-shadow: 0 14px 34px rgba(7, 27, 61, .1);
}

.cd-match-card--article {
	margin: 40px 0 34px;
}

.cd-match-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px 0;
}

.cd-match-card__competition {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #535d6d;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cd-match-card__competition-logo {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.cd-match-card__status {
	padding: 5px 10px;
	border-radius: 999px;
	color: #fff;
	background: #071b3d;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cd-match-card--live .cd-match-card__status {
	background: #d61f33;
}

.cd-match-card--postponed .cd-match-card__status,
.cd-match-card--cancelled .cd-match-card__status {
	color: #071b3d;
	background: var(--cd-yellow, #e4a709);
}

.cd-match-card__teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 22px 22px 18px;
}

.cd-match-card__team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-align: center;
}

.cd-match-card__crest {
	display: grid;
	place-items: center;
	width: 86px;
	height: 86px;
	object-fit: contain;
}

.cd-match-card__crest--empty,
.cd-match-card__competition-logo.cd-match-card__competition-logo--empty {
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(145deg, #0e2a5c, #234c9c);
	font-weight: 900;
}

.cd-match-card__crest--empty {
	font-size: 26px;
}

.cd-match-card__competition-logo--empty {
	font-size: 12px;
}

.cd-match-card__name {
	margin: 0;
	overflow-wrap: anywhere;
	color: #071b3d;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.1;
}

.cd-match-card__center {
	text-align: center;
}

.cd-match-card__time,
.cd-match-card__score {
	display: block;
	min-width: 92px;
	padding: 10px 14px;
	border-radius: 12px;
	color: #fff;
	background: #071b3d;
	font-size: 28px;
	font-weight: 900;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.cd-match-card__score {
	color: #071b3d;
	background: var(--cd-yellow, #e4a709);
}

.cd-match-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #dce3ee;
	border-top: 1px solid #dce3ee;
}

.cd-match-card__facts li {
	display: flex;
	flex: 1 1 200px;
	flex-direction: column;
	gap: 4px;
	padding: 14px 22px;
	background: #f7f8fb;
	font-size: 15px;
	font-weight: 700;
}

.cd-match-card__facts b {
	color: #6d788c;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.cd-match-card__tv span {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.cd-match-card__tv-logo {
	width: auto;
	max-width: 110px;
	height: 30px;
	padding: 4px 8px;
	background: #fff;
	border: 1px solid #dce3ee;
	border-radius: 8px;
	object-fit: contain;
}

.cd-match-card__tv-name {
	padding: 5px 10px;
	background: #fff;
	border: 1px solid #dce3ee;
	border-radius: 8px;
	font-style: normal;
}

.cd-match-card__link {
	display: block;
	padding: 14px 22px;
	color: #1d4189;
	background: #fff;
	border-top: 1px solid #dce3ee;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
}

.cd-match-card__link:hover,
.cd-match-card__link:focus {
	color: #071b3d;
	background: #f7f8fb;
}

/* Página del partido */
.cd-match-page__hero {
	padding: 34px 0 54px;
	background: linear-gradient(125deg, #05142e 0%, #0e2a5c 60%, #071b3d 100%);
	border-bottom: 5px solid var(--cd-yellow, #e4a709);
}

.cd-match-page__hero .cd-breadcrumbs {
	margin-bottom: 22px;
}

.cd-match-card--page .cd-match-card__crest {
	width: 132px;
	height: 132px;
}

.cd-match-card--page .cd-match-card__crest--empty {
	font-size: 38px;
}

.cd-match-card--page .cd-match-card__name {
	font-size: clamp(22px, 3vw, 36px);
	letter-spacing: -.02em;
}

.cd-match-card--page .cd-match-card__time,
.cd-match-card--page .cd-match-card__score {
	min-width: 120px;
	font-size: 42px;
}

.cd-match-page__live {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	padding: 12px 22px;
	border-radius: 999px;
	color: #fff;
	background: #d61f33;
	font-weight: 900;
	text-decoration: none;
}

.cd-match-page__live i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	animation: cd-match-pulse 1.4s ease-in-out infinite;
}

@keyframes cd-match-pulse {
	50% { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
	.cd-match-page__live i { animation: none; }
}

.cd-match-page__news {
	padding-block: 48px 70px;
}

.cd-match-page__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 26px;
	font-size: 28px;
	font-weight: 900;
	text-transform: uppercase;
}

.cd-match-page__title::after {
	content: "";
	flex: 1;
	height: 3px;
	background: var(--cd-yellow, #e4a709);
}

.cd-match-page .cd-archive-card h3 {
	margin: 0;
	color: #05142e;
	font-size: clamp(20px, 1.8vw, 25px);
	font-weight: 900;
	letter-spacing: -.03em;
	line-height: 1.06;
}

.cd-match-page .cd-archive-card h3 a {
	text-decoration: none;
}

/* Próximo partido en la portada */
.cd-next-match__competition {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: -4px 0 14px;
	color: #dce3f0;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cd-next-match__competition-logo {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	padding: 2px;
	border-radius: 6px;
	background: #fff;
	object-fit: contain;
}

.cd-next-match__crest-image--empty {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: #071b3d;
	font-size: 22px;
	font-weight: 900;
}

.cd-next-match__competition-logo--empty {
	color: #071b3d;
	font-size: 10px;
	font-weight: 900;
}

.cd-next-match__tv {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.cd-next-match__tv-logo {
	width: auto;
	max-width: 72px;
	height: 22px;
	padding: 2px 6px;
	border-radius: 5px;
	background: #fff;
	object-fit: contain;
}

.cd-next-match__tv em {
	font-style: normal;
}

.cd-next-match__empty a {
	color: inherit;
}

@media (max-width: 640px) {
	.cd-match-card__top {
		padding: 14px 16px 0;
	}

	.cd-match-card__teams {
		gap: 8px;
		padding: 18px 12px 14px;
	}

	.cd-match-card__crest,
	.cd-match-card--page .cd-match-card__crest {
		width: 64px;
		height: 64px;
	}

	.cd-match-card__name,
	.cd-match-card--page .cd-match-card__name {
		font-size: 16px;
	}

	.cd-match-card__time,
	.cd-match-card__score,
	.cd-match-card--page .cd-match-card__time,
	.cd-match-card--page .cd-match-card__score {
		min-width: 0;
		padding: 8px 10px;
		font-size: 22px;
	}

	.cd-match-card__facts li {
		flex-basis: 100%;
		padding: 12px 16px;
	}

	.cd-match-page__title {
		font-size: 22px;
	}
}

/* Pieza «Dónde ver»: el partido arriba, destacado */
.cd-match-card--where {
	margin: 0 0 36px;
	border-top-width: 6px;
}

.cd-match-card--where .cd-match-card__crest {
	width: 104px;
	height: 104px;
}

.cd-match-card--where .cd-match-card__tv-logo {
	max-width: 150px;
	height: 44px;
	padding: 6px 12px;
}

.cd-match-card--where .cd-match-card__tv {
	flex-basis: 100%;
	order: -1;
	background: #fff;
}

.cd-match-card--where .cd-match-card__tv b {
	color: #071b3d;
	font-size: 12px;
}

/* Horario y televisión por países */
.cd-broadcasts-block {
	margin: 44px 0 36px;
}

.cd-broadcasts-block__title {
	margin: 0 0 8px;
	color: #071b3d;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 900;
	line-height: 1.15;
}

.cd-broadcasts-block__local {
	margin: 0 0 18px;
	color: #535d6d;
	font-size: 15px;
}

.cd-broadcasts-block__local strong {
	color: #071b3d;
}

.cd-world-map {
	position: relative;
	margin: 0 0 22px;
	padding: 14px;
	background: #f7f8fb;
	border: 1px solid #dce3ee;
	border-radius: 16px;
}

.cd-world-map__canvas {
	aspect-ratio: 1000 / 419;
}

.cd-world-map__canvas svg {
	display: block;
	width: 100%;
	height: auto;
}

.cd-world-map__canvas path {
	fill: #d5dce7;
	stroke: #fff;
	stroke-width: .5;
}

.cd-world-map__canvas path.is-active {
	cursor: pointer;
	fill: var(--cd-yellow, #e4a709);
	transition: fill .15s ease;
}

.cd-world-map__canvas path.is-home {
	fill: #1d4189;
}

.cd-world-map__canvas path.is-active:hover,
.cd-world-map__canvas path.is-active:focus {
	fill: #c8920a;
	outline: none;
}

.cd-world-map__canvas path.is-home:hover,
.cd-world-map__canvas path.is-home:focus {
	fill: #0e2a5c;
}

.cd-world-map__canvas path.is-selected,
.cd-world-map__canvas path.is-selected:hover {
	fill: #071b3d;
	stroke: #e4a709;
	stroke-width: 1.2;
}

.cd-world-map__panel {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.cd-world-map__item {
	display: grid;
	flex: 1 1 220px;
	gap: 2px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #dce3ee;
	border-left: 4px solid var(--cd-yellow, #e4a709);
	border-radius: 10px;
}

.cd-world-map__item strong {
	color: #071b3d;
	font-size: 15px;
}

.cd-world-map__time {
	color: #071b3d;
	font-size: 26px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

.cd-world-map__time small {
	color: #535d6d;
	font-size: 13px;
	font-weight: 700;
}

.cd-world-map__channels {
	color: #535d6d;
	font-size: 14px;
	font-weight: 700;
}

.cd-world-map__hint {
	margin: 10px 0 0;
	color: #6d788c;
	font-size: 13px;
}

.cd-broadcasts-table__wrap {
	overflow-x: auto;
	border: 1px solid #dce3ee;
	border-radius: 12px;
}

.cd-broadcasts-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.cd-broadcasts-table th,
.cd-broadcasts-table td {
	padding: 11px 16px;
	text-align: left;
	border-bottom: 1px solid #e9ecf2;
}

.cd-broadcasts-table thead th {
	color: #fff;
	background: #071b3d;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.cd-broadcasts-table tbody th {
	color: #071b3d;
	font-weight: 900;
}

.cd-broadcasts-table tbody tr:first-child {
	background: #f7f8fb;
}

.cd-broadcasts-table tbody tr.is-selected {
	background: #fdf3d8;
}

.cd-broadcasts-table__time {
	white-space: nowrap;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

.cd-broadcasts-table__time small {
	margin-left: 6px;
	color: #6d788c;
	font-weight: 700;
}

.cd-match-page__broadcasts {
	padding-top: 44px;
}

.cd-match-page .cd-broadcasts-block {
	margin: 0;
}

@media (max-width: 640px) {
	.cd-match-card--where .cd-match-card__crest {
		width: 72px;
		height: 72px;
	}

	.cd-match-card--where .cd-match-card__tv-logo {
		max-width: 120px;
		height: 36px;
	}

	.cd-world-map {
		padding: 8px;
	}

	.cd-broadcasts-table th,
	.cd-broadcasts-table td {
		padding: 10px 12px;
		font-size: 14px;
	}
}

/* Calendario y resultados */
.cd-calendar__content {
	padding-block: 44px 70px;
}

.cd-calendar__group + .cd-calendar__group {
	margin-top: 48px;
}

.cd-calendar__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	color: #071b3d;
	font-size: 26px;
	font-weight: 900;
	text-transform: uppercase;
}

.cd-calendar__title::after {
	content: "";
	flex: 1;
	height: 3px;
	background: var(--cd-yellow, #e4a709);
}

.cd-calendar__group--live .cd-calendar__title {
	color: #d61f33;
}

.cd-calendar__list {
	display: grid;
	gap: 12px;
}

.cd-calendar .cd-archive-card h3 {
	margin: 0;
	color: #05142e;
	font-size: clamp(20px, 1.8vw, 25px);
	font-weight: 900;
	letter-spacing: -.03em;
	line-height: 1.06;
}

.cd-calendar .cd-archive-card h3 a {
	text-decoration: none;
}

.cd-fixture {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr) 250px;
	align-items: center;
	gap: 20px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #dce3ee;
	border-left: 5px solid #dce3ee;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(7, 27, 61, .06);
}

.cd-fixture--scheduled {
	border-left-color: var(--cd-yellow, #e4a709);
}

.cd-fixture--live {
	border-color: #f2b8bf;
	border-left-color: #d61f33;
	box-shadow: 0 10px 26px rgba(214, 31, 51, .14);
}

.cd-fixture--finished {
	border-left-color: #071b3d;
}

.cd-fixture__meta {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 4px 10px;
}

.cd-fixture__meta > span {
	display: grid;
	min-width: 0;
}

.cd-fixture__meta strong {
	overflow: hidden;
	color: #071b3d;
	font-size: 13px;
	font-weight: 900;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cd-fixture__meta small {
	color: #6d788c;
	font-size: 12px;
}

.cd-fixture__meta time {
	grid-column: 1 / -1;
	color: #535d6d;
	font-size: 13px;
	font-weight: 900;
	text-transform: capitalize;
}

.cd-fixture__competition-logo {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.cd-fixture__competition-logo--empty {
	border-radius: 50%;
	color: #fff;
	background: #0e2a5c;
	font-size: 11px;
	font-weight: 900;
}

.cd-fixture__teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 14px;
}

.cd-fixture__team {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.cd-fixture__team--home {
	justify-content: flex-end;
	text-align: right;
}

.cd-fixture__team strong {
	overflow-wrap: anywhere;
	color: #071b3d;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.15;
}

.cd-fixture__crest {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.cd-fixture__crest--empty {
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(145deg, #0e2a5c, #234c9c);
	font-size: 15px;
	font-weight: 900;
}

.cd-fixture__center {
	display: grid;
	justify-items: center;
	gap: 5px;
	min-width: 96px;
	text-align: center;
}

.cd-fixture__time,
.cd-fixture__score {
	display: block;
	padding: 7px 12px;
	border-radius: 9px;
	color: #fff;
	background: #071b3d;
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.cd-fixture__time {
	font-size: 18px;
}

.cd-fixture--live .cd-fixture__score {
	background: #d61f33;
}

.cd-fixture__score--pending {
	color: #071b3d;
	background: #e9ecf2;
}

.cd-fixture__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #535d6d;
	font-size: 10px;
	font-style: normal;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.cd-fixture__badge--live {
	color: #d61f33;
}

.cd-fixture__badge--live i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d61f33;
	animation: cd-match-pulse 1.4s ease-in-out infinite;
}

.cd-fixture__badge--alert {
	padding: 6px 10px;
	border-radius: 999px;
	color: #071b3d;
	background: var(--cd-yellow, #e4a709);
}

.cd-fixture__info {
	display: grid;
	justify-items: end;
	gap: 6px;
	text-align: right;
}

.cd-fixture__tv {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.cd-fixture__tv-logo {
	width: auto;
	max-width: 84px;
	height: 26px;
	padding: 3px 7px;
	background: #fff;
	border: 1px solid #dce3ee;
	border-radius: 6px;
	object-fit: contain;
}

.cd-fixture__tv em {
	padding: 4px 8px;
	border: 1px solid #dce3ee;
	border-radius: 6px;
	color: #071b3d;
	font-size: 12px;
	font-style: normal;
	font-weight: 900;
}

.cd-fixture__stadium {
	color: #535d6d;
	font-size: 13px;
	font-weight: 700;
}

.cd-fixture__link {
	color: #1d4189;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
}

.cd-fixture--live .cd-fixture__link {
	padding: 8px 14px;
	border-radius: 999px;
	color: #fff;
	background: #d61f33;
}

.cd-fixture__link:hover,
.cd-fixture__link:focus {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.cd-fixture__badge--live i { animation: none; }
}

@media (max-width: 960px) {
	.cd-fixture {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 14px 14px 12px;
	}

	.cd-fixture__meta {
		grid-template-columns: auto 1fr auto;
	}

	.cd-fixture__meta time {
		grid-column: auto;
	}

	.cd-fixture__info {
		grid-template-columns: 1fr auto;
		align-items: center;
		justify-items: start;
		padding-top: 10px;
		border-top: 1px solid #e9ecf2;
		text-align: left;
	}

	.cd-fixture__tv {
		justify-content: flex-start;
	}

	.cd-fixture__stadium {
		grid-column: 1;
	}

	.cd-fixture__link {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

@media (max-width: 520px) {
	.cd-calendar__title {
		font-size: 21px;
	}

	.cd-fixture__teams {
		gap: 8px;
	}

	/* Escudo arriba y nombre debajo en los dos equipos. */
	.cd-fixture__team {
		flex-direction: column;
		gap: 6px;
		text-align: center;
	}

	.cd-fixture__team--home {
		flex-direction: column-reverse;
		justify-content: flex-start;
		text-align: center;
	}

	.cd-fixture__team strong {
		font-size: 14px;
	}

	.cd-fixture__crest {
		width: 40px;
		height: 40px;
	}

	.cd-fixture__center {
		min-width: 76px;
	}
}

/* Logos de televisión: admiten cuadrados (512×512) y apaisados */
.cd-fixture__tv-logo {
	max-width: 110px;
	height: 42px;
	padding: 2px;
}

.cd-match-card__tv-logo {
	max-width: 140px;
	height: 46px;
	padding: 3px;
}

.cd-match-card--where .cd-match-card__tv-logo {
	max-width: 180px;
	height: 64px;
	padding: 4px;
}

.cd-next-match__tv-logo {
	max-width: 90px;
	height: 32px;
	padding: 1px;
}

@media (max-width: 640px) {
	.cd-match-card--where .cd-match-card__tv-logo {
		height: 52px;
	}

	.cd-fixture__tv-logo {
		height: 38px;
	}
}

/* Botón «Ver comentarios en directo» */
.cd-fixture__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 14px;
}

.cd-fixture__live-button,
.cd-match-card__live-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	color: #fff;
	background: #d61f33;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.1;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(214, 31, 51, .25);
}

.cd-fixture__live-button:hover,
.cd-fixture__live-button:focus,
.cd-match-card__live-button:hover,
.cd-match-card__live-button:focus {
	color: #fff;
	background: #b3172a;
}

.cd-fixture__live-button i,
.cd-match-card__live-button i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	animation: cd-match-pulse 1.4s ease-in-out infinite;
}

.cd-fixture--live .cd-fixture__link {
	padding: 0;
	color: #1d4189;
	background: none;
}

.cd-fixture__link--secondary {
	color: #6d788c;
	font-weight: 700;
}

.cd-match-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	background: #fff;
	border-top: 1px solid #dce3ee;
}

.cd-match-card__actions:empty {
	display: none;
}

.cd-match-card__actions .cd-match-card__live-button {
	margin: 12px 22px;
}

.cd-match-card__actions .cd-match-card__link {
	flex: 1 1 auto;
	border-top: 0;
}

@media (prefers-reduced-motion: reduce) {
	.cd-fixture__live-button i,
	.cd-match-card__live-button i { animation: none; }
}

@media (max-width: 960px) {
	.cd-fixture__links {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

@media (max-width: 520px) {
	.cd-fixture__info {
		grid-template-columns: 1fr;
	}

	.cd-fixture__links {
		grid-column: 1;
		grid-row: auto;
		justify-content: space-between;
		width: 100%;
	}

	.cd-match-card__actions .cd-match-card__live-button {
		margin: 12px 16px 0;
	}
}
