/* Match Centre: front-end styles. Override the variables in Elementor > Site Settings > Custom CSS. */
.mc-part {
	--mc-red: #c6222a;
	--mc-bg: #f3f4f6;
	--mc-card: #fff;
	--mc-text: #111;
	--mc-muted: #5b6068;
	--mc-yellow: #f7c92b;
	--mc-redcard: #ff1a1a;
	--mc-up: #2eb84b;
	--mc-down: #e5262b;
	--mc-radius: 12px;
	--mc-gap: 14px;
	color: var(--mc-text);
	box-sizing: border-box;
}
.mc-part *, .mc-part *::before, .mc-part *::after { box-sizing: inherit; }
.mc-part img { max-width: 100%; height: auto; display: block; }
.mc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.mc-header { text-align: center; padding: 8px 12px 20px; }
.mc-matchday {
	color: var(--mc-red); font-weight: 900; font-style: italic; text-transform: uppercase;
	letter-spacing: -0.02em; line-height: 1; font-size: clamp(2.6rem, 9vw, 5rem);
}
.mc-competition { color: var(--mc-red); font-weight: 700; margin-top: 6px; }
.mc-meta { color: var(--mc-red); font-size: .95rem; margin-top: 2px; }
.mc-meta span + span::before { content: "|"; margin: 0 .6em; opacity: .7; }

.mc-pill {
	display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 10px;
	border-radius: 999px; background: var(--mc-red); color: #fff; font-size: .75rem;
	font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle;
}
.mc-pill--ht { background: var(--mc-muted); }
.mc-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: mcpulse 1.4s infinite; }
@keyframes mcpulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* Scoreboard: proportions measured from the approved design. 1em = score font size. */
.mc-sb { max-width: 880px; margin: 0 auto 8px; container-type: inline-size; }
.mc-sb-card {
	--mc-sb-red: #b93430;
	--mc-sb-grey: #a19898;
	font-size: clamp(34px, 15vw, 150px);
	display: flex; align-items: center; justify-content: center; gap: .6em;
	background: var(--mc-card); border-radius: var(--mc-radius);
	padding: .26em .12em .3em; line-height: 1;
}
@supports (width: 1cqw) { .mc-sb-card { font-size: clamp(30px, 17.5cqw, 160px); } }

.mc-team { display: flex; align-items: center; justify-content: center; flex: none; position: relative; top: -.045em; }
.mc-part .mc-sb .mc-team img { height: .94em !important; max-height: .94em !important; width: auto !important; max-width: none !important; object-fit: contain; }
.mc-team-name { font-size: .2em; font-weight: 800; text-align: center; max-width: 3em; }

.mc-center {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	width: 1.55em; flex: none; align-items: center; justify-items: center;
	color: var(--mc-sb-red);
}
.mc-status {
	grid-column: 1 / -1; font-size: max(11px, .162em); font-weight: 400; line-height: 1;
	letter-spacing: -.01em; white-space: nowrap; text-align: center;
	color: var(--mc-sb-grey); margin-bottom: .6em;
}
.mc-status--blink { animation: mcblink 1.2s ease-in-out infinite; }
@keyframes mcblink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

.mc-sc, .mc-colon { font-weight: 900; line-height: .86; letter-spacing: -.03em; }
.mc-sc--home { justify-self: end; }
.mc-sc--away { justify-self: start; }

/* Scorer rows: football sits under the colon, name follows on the scoring side */
.mc-sx, .mc-ballcell {
	font-size: max(10px, .165em); line-height: 1.15; margin-top: .45em;
	color: var(--mc-sb-red); font-weight: 400; letter-spacing: -.01em; white-space: nowrap;
}
.mc-sx { display: flex; align-items: center; gap: .3em; min-width: 0; width: 100%; }
.mc-sx--home { justify-content: flex-end; padding-right: .25em; }
.mc-sx--away { justify-content: flex-start; padding-left: .25em; }
.mc-sx--other { grid-column: 1 / -1; justify-content: center; width: auto; justify-self: center; }
.mc-ballcell { justify-self: center; }
.mc-ball { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1em; line-height: 1; }

/* Timeline */
.mc-timeline { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--mc-gap); padding: 0 8px; }
.mc-phase { color: var(--mc-red); text-align: center; font-weight: 800; margin: 26px 0 4px; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.mc-empty { text-align: center; color: var(--mc-muted); margin: 24px 0; }

.mc-card {
	display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
	background: var(--mc-card); border-left: 6px solid var(--mc-red); border-radius: var(--mc-radius);
	padding: 16px 20px;
}
.mc-minute { color: var(--mc-red); font-weight: 700; font-size: 1.15rem; align-self: start; }
.mc-title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.mc-desc { margin: 0; color: var(--mc-text); font-size: .95rem; line-height: 1.4; }
.mc-photo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; }

/* Cards */
.mc-cardicon { display: block; width: 18px; height: 26px; border-radius: 3px; margin-top: 10px; }
.mc-cardicon--yellow { background: var(--mc-yellow); }
.mc-cardicon--red { background: var(--mc-redcard); }

/* Substitutions */
.mc-sub { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.mc-sub img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.mc-arrow { font-weight: 700; font-size: 1.2rem; }
.mc-sub--off .mc-arrow { color: var(--mc-down); }
.mc-sub--on .mc-arrow { color: var(--mc-up); }
.mc-sub-name { font-size: 1.05rem; }

/* Goal */
.mc-card--goal { align-items: end; padding-bottom: 0; padding-top: 18px; overflow: hidden; }
.mc-card--goal .mc-minute { align-self: start; }
.mc-card--goal .mc-body { padding-bottom: 18px; align-self: center; }
.mc-goal-player { color: var(--mc-red); font-weight: 700; font-size: 1.3rem; }
.mc-goal-label { color: var(--mc-red); font-weight: 900; line-height: 1; font-size: clamp(2.6rem, 9vw, 4.6rem); margin: 4px 0; }
.mc-goal-score { color: var(--mc-red); font-weight: 800; line-height: 1; font-size: clamp(2rem, 7vw, 3.4rem); }
.mc-card--goal .mc-photo img { width: clamp(110px, 24vw, 200px); height: auto; border-radius: 0; object-fit: contain; }

/* Photo card */
.mc-feature { margin: 0; position: relative; border-left: 6px solid var(--mc-red); border-radius: var(--mc-radius); overflow: hidden; background: var(--mc-card); }
.mc-feature img { width: 100%; height: auto; }
.mc-feature figcaption { padding: 10px 16px; font-size: .9rem; color: var(--mc-muted); }

/* New event highlight (live updates) */
.mc-new { animation: mcflash 2.2s ease-out; }
@keyframes mcflash { from { background: #fde8e9; transform: translateY(-6px); opacity: .4; } to { background: var(--mc-card); transform: none; opacity: 1; } }

/* Smartphones: smaller cards */
@media (max-width: 767px) {
	.mc-header { padding-bottom: 14px; }
	.mc-meta { font-size: .8rem; }
	.mc-timeline { gap: 10px; padding: 0 8px; }
	.mc-card { grid-template-columns: 46px 1fr auto; gap: 8px; padding: 12px 12px; border-left-width: 5px; }
	.mc-minute { font-size: 1rem; }
	.mc-title { font-size: .95rem; }
	.mc-desc { font-size: .85rem; }
	.mc-photo img { width: 48px; height: 48px; }
	.mc-sub { gap: 8px; margin: 6px 0; }
	.mc-sub img { width: 36px; height: 36px; }
	.mc-sub-name { font-size: .95rem; }
	.mc-phase { margin: 18px 0 2px; }
	.mc-goal-player { font-size: 1rem; }
	.mc-card--goal .mc-photo img { width: 96px; }
	.mc-cardicon { width: 14px; height: 20px; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) { .mc-new, .mc-dot, .mc-status--blink { animation: none; } }
