/* ================================================================
   Maranatha SC — Elementor Widgets
   ================================================================ */

/* ── Register a custom category label ──────────────────────────── */
/* (visual only — handled in PHP) */

/* ================================================================
   MSC: Competition Cards
   ================================================================ */

.msc-competition-cards {
	width: 100%;
}

/* Section header */
.msc-section-header {
	margin-bottom: 1.5rem;
}

.msc-section-title {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 1.375rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #111;
	margin: 0 0 0.4rem;
	line-height: 1.2;
	text-decoration: none;
}

.msc-section-title a {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.msc-section-title__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid currentColor;
	flex-shrink: 0;
}

.msc-section-title__icon svg {
	width: 14px;
	height: 14px;
}

.msc-section-subtitle {
	font-size: 0.9rem;
	color: #555;
	margin: 0;
	line-height: 1.5;
}

/* ── Grid ───────────────────────────────────────────────────────── */
.msc-cards-grid {
	display: grid;
	gap: 16px;
}

.msc-cards-grid--cols-2 { grid-template-columns: repeat( 2, 1fr ); }
.msc-cards-grid--cols-3 { grid-template-columns: repeat( 3, 1fr ); }
.msc-cards-grid--cols-4 { grid-template-columns: repeat( 4, 1fr ); }

/* ── Card ───────────────────────────────────────────────────────── */
.msc-card {
	display: flex;
	flex-direction: column;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #111;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	cursor: pointer;
}

.msc-card:hover {
	transform: translateY( -4px );
	box-shadow: 0 12px 32px rgba( 0, 0, 0, 0.2 );
	color: inherit;
}

/* Image wrapper */
.msc-card__image-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.msc-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.4s ease;
}

.msc-card:hover .msc-card__image-wrap img {
	transform: scale( 1.04 );
}

.msc-card__image-placeholder {
	width: 100%;
	height: 100%;
	background: #2a2a2a;
}

/* Optional top overlay (colour controlled via Elementor) */
.msc-card__overlay-top {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Footer bar */
.msc-card__footer {
	position: relative;
	background: #111;
	flex-shrink: 0;
}

/* Accent bar — 3px top edge */
.msc-card__footer-bar {
	height: 3px;
	background: var(--color-accent,#c8102e);
	width: 100%;
}

.msc-card__footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 0.85rem 0.7rem 1rem;
	gap: 0.5rem;
}

.msc-card__title {
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
	flex: 1;
	transition: color 0.2s ease;
}

.msc-card:hover .msc-card__title {
	color: #fff;
}

/* Arrow button */
.msc-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid rgba( 255, 255, 255, 0.5 );
	flex-shrink: 0;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.msc-card__arrow svg {
	width: 14px;
	height: 14px;
	stroke: #fff;
	transition: stroke 0.2s ease;
}

.msc-card:hover .msc-card__arrow {
	background: var(--color-accent,#c8102e);
	border-color: var(--color-accent,#c8102e);
}

.msc-card:hover .msc-card__arrow svg {
	stroke: #fff;
}

/* ── Responsive grid ────────────────────────────────────────────── */
@media screen and ( max-width: 960px ) {
	.msc-cards-grid--cols-4 { grid-template-columns: repeat( 2, 1fr ); }
	.msc-cards-grid--cols-3 { grid-template-columns: repeat( 2, 1fr ); }
}

@media screen and ( max-width: 600px ) {
	.msc-cards-grid--cols-4,
	.msc-cards-grid--cols-3,
	.msc-cards-grid--cols-2 {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.msc-card__title {
		font-size: 0.8125rem;
	}

	.msc-card__arrow {
		width: 26px;
		height: 26px;
	}

	.msc-card__arrow svg {
		width: 12px;
		height: 12px;
	}
}

@media screen and ( max-width: 380px ) {
	.msc-cards-grid--cols-4,
	.msc-cards-grid--cols-3,
	.msc-cards-grid--cols-2 {
		grid-template-columns: 1fr;
	}
}

/* ================================================================
   MSC: Link List
   ================================================================ */

.msc-link-list {
	width: 100%;
}

.msc-link-list__title {
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #111;
	margin: 0 0 0.75rem;
}

.msc-link-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.msc-link-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0.25rem;
	border-bottom: 1px solid #e8e8e8;
	text-decoration: none;
	color: #222;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.msc-link-list__items li:first-child .msc-link-list__item {
	border-top: 1px solid #e8e8e8;
}

.msc-link-list__item:hover {
	color: var(--color-accent,#c8102e);
	padding-left: 0.4rem;
}

.msc-link-list__label {
	flex: 1;
}

.msc-link-list__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid var(--color-accent,#c8102e);
	flex-shrink: 0;
	transition: background 0.2s ease;
}

.msc-link-list__arrow svg {
	width: 13px;
	height: 13px;
	stroke: var(--color-accent,#c8102e);
	transition: stroke 0.2s ease;
}

.msc-link-list__item:hover .msc-link-list__arrow {
	background: var(--color-accent,#c8102e);
}

.msc-link-list__item:hover .msc-link-list__arrow svg {
	stroke: #fff;
}

/* ================================================================
   PLAYER CARDS SLIDER WIDGET
   ================================================================ */

.msc-player-cards {
	width: 100%;
}

/* Header row */
.msc-pc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	gap: 1rem;
}

.msc-pc__heading {
	font-size: clamp( 1.25rem, 3vw, 1.75rem );
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #111;
	margin: 0;
}

.msc-pc__controls {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

.msc-pc__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--color-accent,#c8102e);
	border-radius: 50%;
	background: transparent;
	color: var(--color-accent,#c8102e);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.msc-pc__arrow:hover {
	background: var(--color-accent,#c8102e);
	color: #fff;
}

.msc-pc__arrow:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.msc-pc__arrow svg {
	width: 16px;
	height: 16px;
}

/* Viewport + track */
.msc-pc__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.msc-pc__viewport::-webkit-scrollbar {
	display: none;
}

.msc-pc__track {
	display: flex;
	gap: 1rem;
}

/* Individual card */
.msc-pc-card {
	position: relative;
	flex: 0 0 calc( 25% - 0.75rem );
	aspect-ratio: 2/3;
	background: #0d0d0d;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	display: block;
	cursor: pointer;
	scroll-snap-align: start;
	flex-shrink: 0;
}

/* Responsive flex-basis based on visible count */
.msc-player-cards[data-visible="3"] .msc-pc-card {
	flex: 0 0 calc( 33.333% - 0.67rem );
}

.msc-player-cards[data-visible="5"] .msc-pc-card {
	flex: 0 0 calc( 20% - 0.8rem );
}

/* Photo */
.msc-pc-card__photo {
	position: absolute;
	inset: 0;
}

.msc-pc-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
	transition: transform 0.5s ease;
}

.msc-pc-card:hover .msc-pc-card__photo img {
	transform: scale( 1.05 );
}

.msc-pc-card__photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba( 255,255,255,0.15 );
	background: #1a1a2e;
}

.msc-pc-card__photo-placeholder svg {
	width: 48px;
	height: 48px;
}

/* Gradient overlay */
.msc-pc-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba( 0,0,0,0.72 ) 0%,
		rgba( 0,0,0,0.2 ) 45%,
		rgba( 0,0,0,0.5 ) 100%
	);
	pointer-events: none;
}

/* Player name — rotated on left edge */
.msc-pc-card__name {
	position: absolute;
	left: 0;
	bottom: 3rem;
	width: 2.25rem;
	height: auto;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transform: rotate( 180deg );
	font-size: clamp( 0.75rem, 1.2vw, 0.9rem );
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.75rem 0.6rem;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: 70%;
	z-index: 2;
}

/* Position — rotated on right edge */
.msc-pc-card__pos {
	position: absolute;
	right: 0;
	top: 3rem;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	font-size: 0.62rem;
	font-weight: 600;
	color: rgba( 255,255,255,0.55 );
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.75rem 0.6rem;
	z-index: 2;
	white-space: nowrap;
}

/* Jersey number — bottom left */
.msc-pc__number {
	position: absolute;
	bottom: 0.75rem;
	left: 0.6rem;
	font-size: clamp( 1.1rem, 2vw, 1.5rem );
	font-weight: 900;
	color: var(--color-accent,#c8102e);
	line-height: 1;
	z-index: 2;
	font-variant-numeric: tabular-nums;
}

/* ── Responsive (mobile-first) ──────────────────────────────── */

/* Mobile + tablet: 3 cards always visible, swipe/scroll for the rest */
@media screen and ( max-width: 959px ) {
	.msc-pc-card,
	.msc-player-cards[data-visible="3"] .msc-pc-card,
	.msc-player-cards[data-visible="4"] .msc-pc-card,
	.msc-player-cards[data-visible="5"] .msc-pc-card {
		flex: 0 0 calc( 33.333% - 0.67rem );
	}
}


/* ================================================================
   MSC: Page Hero
   ================================================================ */

.ph-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	background: #0f1117;
	overflow: hidden;
}

.ph-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ph-hero__bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 100%;
	background: var(--color-accent,#c8102e);
	z-index: 3;
}

.ph-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	margin: 0 auto;
	padding: 5rem 1.5rem 3.5rem;
}

/* Breadcrumb */
.ph-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: rgba(255,255,255,0.45);
	margin-bottom: 1rem;
}

.ph-breadcrumb a {
	color: rgba(255,255,255,0.5);
	text-decoration: none;
	transition: color 0.2s;
}

.ph-breadcrumb a:link,
.ph-breadcrumb a:visited {
	color: rgba(255,255,255,0.5);
}

.ph-breadcrumb a:hover { color: #fff; }

.ph-breadcrumb svg {
	opacity: 0.35;
	flex-shrink: 0;
}

/* Title */
.ph-hero__title {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 900;
	color: #fff;
	line-height: 1.1;
	margin: 0 0 0.75rem;
	letter-spacing: -0.01em;
}

/* Subtitle */
.ph-hero__subtitle {
	font-size: 1.05rem;
	color: rgba(255,255,255,0.65);
	line-height: 1.7;
	margin: 0;
	max-width: 600px;
}

.ph-hero__inner[style*="text-align:center"] .ph-hero__subtitle,
.ph-hero__inner[style*="text-align: center"] .ph-hero__subtitle {
	margin-left: auto;
	margin-right: auto;
}

/* CTA */
.ph-hero__cta {
	margin-top: 2rem;
}

.ph-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	border-radius: 6px;
	font-size: 0.88rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: opacity 0.2s, transform 0.15s;
	cursor: pointer;
}

.ph-cta-btn:link,
.ph-cta-btn:visited {
	color: inherit;
}

.ph-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.ph-cta-btn--solid {
	background: var(--ph-accent, var(--color-accent,#c8102e));
	color: #fff;
	border: 2px solid var(--ph-accent, var(--color-accent,#c8102e));
}

.ph-cta-btn--solid:link,
.ph-cta-btn--solid:visited { color: #fff; }

.ph-cta-btn--outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255,255,255,0.75);
}

.ph-cta-btn--outline:link,
.ph-cta-btn--outline:visited { color: #fff; }

.ph-cta-btn--outline:hover {
	border-color: #fff;
	background: rgba(255,255,255,0.08);
}

.ph-cta-btn--ghost {
	background: rgba(255,255,255,0.1);
	color: #fff;
	border: 2px solid transparent;
	backdrop-filter: blur(4px);
}

.ph-cta-btn--ghost:link,
.ph-cta-btn--ghost:visited { color: #fff; }

/* ── Responsive ── */
@media screen and (max-width: 600px) {
	.ph-hero__inner { padding: 4rem 1.25rem 2.5rem; }
	.ph-hero__title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
	.ph-hero__subtitle { font-size: 0.95rem; }
}


/* ================================================================
   MSC: SportsPress — Fixtures & Results
   ================================================================ */

.msc-sp-fixtures-wrap {
	--sp-accent: var(--color-accent,#c8102e);
	width: 100%;
}

.msc-sp-fixtures {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.msc-sp-fixtures--cards {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Single match row */
.msc-spf {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	background: #fff;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	box-shadow: 0 1px 8px rgba(0,0,0,0.07);
	transition: box-shadow 0.2s, transform 0.2s;
	overflow: hidden;
}

.msc-sp-fixtures--cards .msc-spf {
	flex: 1 1 260px;
}

.msc-spf:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.12); transform: translateY(-2px); }

.msc-spf--result::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
	background: var(--sp-accent);
	border-radius: 10px 0 0 10px;
}

.msc-spf--upcoming::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
	background: #e0e0e0;
	border-radius: 10px 0 0 10px;
}

/* Full-area link overlay */
.msc-spf__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* League badge */
.msc-spf__league {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--sp-accent);
	margin-bottom: 0.25rem;
}

/* Matchup row */
.msc-spf__matchup {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Team column */
.msc-spf__team {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	text-align: center;
	min-width: 0;
}

.msc-spf__team--home { flex-direction: column; }
.msc-spf__team--away { flex-direction: column; }

.msc-spf__crest {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
	background: #f5f5f7;
	flex-shrink: 0;
}

.msc-spf__crest img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4px;
}

.msc-spf__crest-initials {
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--sp-accent);
}

.msc-spf__name {
	font-size: 0.8rem;
	font-weight: 700;
	color: #111;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

/* Score / VS center block */
.msc-spf__score-wrap {
	flex-shrink: 0;
	text-align: center;
	min-width: 80px;
}

.msc-spf__score {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	font-size: 1.6rem;
	font-weight: 900;
	color: #111;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.msc-spf__score-sep {
	color: #bbb;
	font-weight: 400;
	font-size: 1.2rem;
}

.msc-spf__vs {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
}

.msc-spf__vs-text {
	font-size: 1rem;
	font-weight: 900;
	color: #ccc;
	letter-spacing: 0.05em;
}

.msc-spf__time {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--sp-accent);
}

.msc-spf__date {
	font-size: 0.68rem;
	color: #999;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-top: 0.35rem;
}

/* Notice / empty state */
.msc-sp-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 1rem 1.25rem;
	background: #fef5f5;
	border: 1.5px solid var(--sp-accent);
	border-radius: 8px;
	font-size: 0.85rem;
	color: #444;
	line-height: 1.5;
}

.msc-sp-empty {
	padding: 2rem;
	text-align: center;
	color: #999;
	font-size: 0.9rem;
}

@media screen and (max-width: 600px) {
	.msc-spf__crest { width: 36px; height: 36px; }
	.msc-spf__score { font-size: 1.3rem; }
	.msc-sp-fixtures--cards .msc-spf { flex: 1 1 100%; }
}


/* ================================================================
   MSC: SportsPress — Player Roster
   ================================================================ */

.msc-sp-roster {
	--sp-accent:  var(--color-accent,#c8102e);
	--sp-card-bg: #fff;
	--sp-cols:    4;
	width: 100%;
}

.msc-spr__grid {
	display: grid;
	grid-template-columns: repeat(var(--sp-cols), 1fr);
	gap: 1.25rem;
}

/* Card */
.msc-spr-card {
	display: flex;
	flex-direction: column;
	background: var(--sp-card-bg);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s, box-shadow 0.2s;
}

.msc-spr-card:link,
.msc-spr-card:visited { color: inherit; text-decoration: none; }

.msc-spr-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.msc-spr-card__img {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: #f0f0f0;
	overflow: hidden;
}

.msc-spr-card__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
	transition: transform 0.35s ease;
}

.msc-spr-card:hover .msc-spr-card__img img {
	transform: scale(1.04);
}

.msc-spr-card__no-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ccc;
}

.msc-spr-card__no-photo svg { width: 48px; height: 48px; }

/* Jersey number badge */
.msc-spr-card__number {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	background: var(--sp-accent);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 900;
	line-height: 1;
	padding: 0.3rem 0.45rem;
	border-radius: 5px;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

/* Info strip */
.msc-spr-card__info {
	padding: 0.7rem 0.8rem 0.85rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.msc-spr-card__name {
	font-size: 0.88rem;
	font-weight: 800;
	color: #111;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.msc-spr-card__pos {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--sp-accent);
}

.msc-spr-card__nat {
	font-size: 1.1rem;
	line-height: 1;
	margin-top: 0.1rem;
}

/* List variant */
.msc-sp-roster--list .msc-spr__grid {
	grid-template-columns: 1fr;
	gap: 0.6rem;
}

.msc-sp-roster--list .msc-spr-card {
	flex-direction: row;
	border-radius: 8px;
	align-items: center;
}

.msc-sp-roster--list .msc-spr-card__img {
	width: 64px;
	height: 64px;
	aspect-ratio: unset;
	flex-shrink: 0;
	border-radius: 0;
}

.msc-sp-roster--list .msc-spr-card__number {
	top: 0.3rem;
	right: 0.3rem;
	font-size: 0.6rem;
	padding: 0.2rem 0.3rem;
}

.msc-sp-roster--list .msc-spr-card__info {
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	padding: 0.6rem 1rem;
}

.msc-sp-roster--list .msc-spr-card__pos {
	margin-left: auto;
}

@media screen and (max-width: 900px) {
	.msc-spr__grid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 600px) {
	.msc-spr__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
	.msc-sp-roster--list .msc-spr__grid { grid-template-columns: 1fr; }
}


/* ================================================================
   MSC: SportsPress — League Table
   ================================================================ */

.msc-sp-league-table-wrap {
	--sp-accent: var(--color-accent,#c8102e);
	width: 100%;
}

/* Style the SportsPress default table output */
.msc-sp-lt .sp-table-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.msc-sp-lt table.sp-league-table,
.msc-sp-lt .sp-table-wrapper table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.msc-sp-lt table.sp-league-table th,
.msc-sp-lt .sp-table-wrapper table th {
	background: #0f1117;
	color: #fff;
	font-weight: 700;
	padding: 0.6rem 0.75rem;
	text-align: center;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.msc-sp-lt table.sp-league-table th:first-child,
.msc-sp-lt .sp-table-wrapper table th:first-child {
	text-align: left;
}

.msc-sp-lt table.sp-league-table td,
.msc-sp-lt .sp-table-wrapper table td {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid #f0f0f0;
	text-align: center;
	color: #333;
	vertical-align: middle;
}

.msc-sp-lt table.sp-league-table td:first-child,
.msc-sp-lt .sp-table-wrapper table td:first-child {
	text-align: left;
	font-weight: 700;
	color: #111;
}

.msc-sp-lt table.sp-league-table tr:nth-child(even) td,
.msc-sp-lt .sp-table-wrapper table tr:nth-child(even) td {
	background: #fafafa;
}

.msc-sp-lt table.sp-league-table tr:hover td,
.msc-sp-lt .sp-table-wrapper table tr:hover td {
	background: #f5f5f7;
}

/* Highlight team row */
.msc-sp-lt.msc-sp-lt--has-highlight tr[data-sp-team] {
	background: #fff8f8 !important;
}



/* ================================================================
   MSC: WooCommerce Product Cards
   ================================================================ */

.msc-product-cards {
	--pc-cols:          4;
	--pc-price-bg:      #2d2d2d;
	--pc-btn:           var(--color-accent,#c8102e);
	--pc-heading-color: #111;
	width: 100%;
	writing-mode: horizontal-tb; /* hard reset — prevents any parent writing-mode bleeding in */
}

/* ── Header ─────────────────────────────────────────────────────── */
.msc-product-cards .msc-pc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.msc-product-cards .msc-pc__header-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.msc-product-cards .msc-pc__heading {
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--pc-heading-color);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	writing-mode: horizontal-tb;
}

.msc-product-cards .msc-pc__view-all {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pc-btn);
	text-decoration: none;
}

.msc-product-cards .msc-pc__view-all:link,
.msc-product-cards .msc-pc__view-all:visited { color: var(--pc-btn); }

.msc-product-cards .msc-pc__view-all:hover { opacity: 0.75; }

.msc-product-cards .msc-pc__arrows {
	display: flex;
	gap: 0.35rem;
}

.msc-product-cards .msc-pc__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 0;                 /* override global button padding */
	box-sizing: border-box;
	border: 1.5px solid #d0d0d0;
	border-radius: 8px;
	background: #fff;
	color: #444;
	cursor: pointer;
	line-height: 1;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.msc-product-cards .msc-pc__arrow svg {
	width: 16px;
	height: 16px;
	display: block;
	flex-shrink: 0;
}

.msc-product-cards .msc-pc__arrow:hover:not(:disabled) {
	border-color: var(--pc-btn, var(--color-accent, #c8102e));
	background: var(--pc-btn, var(--color-accent, #c8102e));
	color: #fff;
}

.msc-product-cards .msc-pc__arrow:disabled { opacity: 0.35; cursor: default; }

/* ── Viewport / Track ───────────────────────────────────────────── */
.msc-product-cards .msc-pc__viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.msc-product-cards .msc-pc__viewport::-webkit-scrollbar { display: none; }

.msc-product-cards .msc-pc__track {
	display: flex;
	gap: 1rem;
}

/* ── Product Card ───────────────────────────────────────────────── */
.msc-prod-card {
	writing-mode: horizontal-tb;
	text-orientation: mixed;
	transform: none;
	position: relative;
	flex: 0 0 calc( (100% / var(--pc-cols)) - (var(--pc-cols) - 1) * 1rem / var(--pc-cols) );
	min-width: 150px;
	max-width: 280px;
	display: flex;
	flex-direction: column;
	background: #fff;

	border-radius: 10px;
	overflow: hidden;
	scroll-snap-align: start;
	transition: box-shadow 0.2s, transform 0.2s;
}

.msc-prod-card:hover {
	box-shadow: 0 6px 24px rgba(0,0,0,0.11);
	transform: translateY(-3px);
}

/* Sale badge */
.msc-prod-card__sale-badge {
	position: absolute;
	top: 0;
	right: 0;
	background: var(--pc-btn);
	color: #fff;
	font-size: 0.62rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	padding: 0.25rem 0.6rem;
	border-radius: 0 10px 0 6px;
	z-index: 2;
	writing-mode: horizontal-tb;
}

/* Image */
.msc-prod-card__img-link { display: block; text-decoration: none; }

.msc-prod-card__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f7f7f7;
}

.msc-prod-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.3s ease;
}

.msc-prod-card:hover .msc-prod-card__img img { transform: scale(1.05); }

.msc-prod-card__no-img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
}

/* Info */
.msc-prod-card__info {
	padding: 0.65rem 0.75rem 0.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	writing-mode: horizontal-tb;
}

.msc-prod-card__cat {
	font-size: 0.68rem;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	writing-mode: horizontal-tb;
}

.msc-prod-card__name {
	font-size: 0.82rem;
	font-weight: 800;
	color: #111;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	writing-mode: horizontal-tb;
	transform: none;
	position: static;
	width: auto;
	height: auto;
	white-space: normal;
}

.msc-prod-card__name:link,
.msc-prod-card__name:visited { color: #111; }

.msc-prod-card__name:hover { color: var(--pc-btn); }

/* Price bar */
.msc-prod-card__bar {
	display: flex;
	align-items: stretch;
	height: 44px;
	writing-mode: horizontal-tb;
}

.msc-prod-card__price {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0 0.75rem;
	background: var(--pc-price-bg);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 800;
	min-width: 0;
	writing-mode: horizontal-tb;
}

.msc-prod-card__price .woocommerce-Price-amount,
.msc-prod-card__price bdi { color: #fff; white-space: nowrap; }

.msc-prod-card__reg {
	font-size: 0.7rem;
	color: rgba(255,255,255,0.45);
	text-decoration: line-through;
	font-weight: 600;
}

.msc-prod-card__reg .woocommerce-Price-amount { color: rgba(255,255,255,0.45); font-size: 0.7rem; }

.msc-prod-card__cart {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	flex-shrink: 0;
	background: var(--pc-btn);
	color: #fff;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: filter 0.2s;
	writing-mode: horizontal-tb;
}

.msc-prod-card__cart:link,
.msc-prod-card__cart:visited { color: #fff; }

.msc-prod-card__cart:hover { filter: brightness(0.88); }

/* Notice / empty state */
.msc-wc-notice {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 2.5rem;
	text-align: center;
	background: #fafafa;
	border: 2px dashed #ddd;
	border-radius: 8px;
	color: #888;
	font-size: 0.9rem;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media screen and (max-width: 900px) {
	.msc-prod-card { flex: 0 0 calc(50% - 0.5rem); max-width: none; }
}

@media screen and (max-width: 520px) {
	.msc-prod-card { flex: 0 0 calc(72vw - 1rem); }
	.msc-product-cards .msc-pc__heading { font-size: 1.2rem; }
}

/* ================================================================
   SP: Player List Grid Widget  (.msc-pl-*)
   ================================================================ */

.msc-pl-wrap { width: 100%; }

/* Filter tabs */
.msc-pl-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
}

.msc-pl-filter {
	padding: 0.45rem 1rem;
	background: #f5f5f7;
	border: 1.5px solid #e8e8e8;
	border-radius: 100px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #777;
	cursor: pointer;
	transition: all 0.18s;
	white-space: nowrap;
}

.msc-pl-filter:hover { background: #eee; color: #333; }

.msc-pl-filter--active {
	background: var(--sp-accent, var(--color-accent, #c8102e));
	border-color: var(--sp-accent, var(--color-accent, #c8102e));
	color: #fff;
}

/* Grid */
.msc-pl-grid {
	display: grid;
	grid-template-columns: repeat(var(--msc-pl-cols, 4), 1fr);
	gap: 1.25rem;
}

/* Card */
.msc-pl-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.07);
	transition: transform 0.25s, box-shadow 0.25s;
	position: relative;
}

.msc-pl-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}

/* Full-card clickable overlay */
.msc-pl-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Photo area */
.msc-pl-card__photo-wrap {
	position: relative;
	width: 100%;
	padding-top: 115%;
	background: #0f1117;
	overflow: hidden;
}

.msc-pl-card__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.4s ease;
}

.msc-pl-card:hover .msc-pl-card__photo { transform: scale(1.04); }

.msc-pl-card__photo-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.08) 45%, transparent 65%);
	pointer-events: none;
}

/* Silhouette fallback */
.msc-pl-card__silhouette {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.msc-pl-card__silhouette svg { width: 55%; height: 55%; opacity: 0.5; }

/* Position-tinted backgrounds (no photo) */
.msc-pos--goalkeeper  { background: linear-gradient(145deg, #1a1200, #332000); }
.msc-pos--defender    { background: linear-gradient(145deg, #001024, #001f40); }
.msc-pos--midfielder  { background: linear-gradient(145deg, #001a0e, #003020); }
.msc-pos--forward     { background: linear-gradient(145deg, #1a0008, #2d0014); }

/* Jersey number badge */
.msc-pl-card__number {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--sp-accent, var(--color-accent, #c8102e));
	color: #fff;
	font-size: 0.78rem;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Position badge */
.msc-pl-card__pos-badge {
	position: absolute;
	bottom: 0.8rem;
	left: 0.8rem;
	z-index: 2;
	padding: 0.2rem 0.6rem;
	border-radius: 5px;
	font-size: 0.63rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
}

.msc-pos-badge--goalkeeper { background: rgba(245,158,11,0.88); }
.msc-pos-badge--defender   { background: rgba(59,130,246,0.88); }
.msc-pos-badge--midfielder { background: rgba(16,185,129,0.88); }
.msc-pos-badge--forward    { background: rgba(200,16,46,0.88); }
.msc-pl-card__pos-badge:not([class*="msc-pos-badge--"]) { background: rgba(100,100,100,0.75); }

/* Card body */
.msc-pl-card__body { padding: 0.85rem 0.95rem 1rem; }

.msc-pl-card__name {
	font-size: 0.92rem;
	font-weight: 800;
	color: #111;
	margin: 0 0 0.45rem;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.msc-pl-card__name a {
	color: inherit;
	text-decoration: none;
	position: relative;
	z-index: 2;
}

.msc-pl-card__name a:hover { color: var(--sp-accent, var(--color-accent, #c8102e)); }

.msc-pl-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
}

.msc-pl-card__nat {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	font-size: 0.7rem;
	color: #777;
}

.msc-pl-card__nat img,
.msc-pl-card__nat .flag-icon { width: 16px; border-radius: 2px; }

.msc-pl-card__nat-name { font-weight: 600; }

.msc-pl-card__team {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.7rem;
	font-weight: 600;
	color: #aaa;
}

.msc-pl-card__team-logo {
	width: 14px;
	height: 14px;
	object-fit: contain;
	border-radius: 50%;
}

/* Responsive */
@media (max-width: 900px) {
	.msc-pl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
	.msc-pl-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
