/* ESPN+ browse rows — Splide-based, fixed-aspect cards (no image-load race) */
.espn-browse {
	--espn-card-radius: 10px;
	background: #1a1d21;
	color: #fff;
	padding: 1.5rem 0 3rem;
}

.espn-row {
	margin: 0 0 2.75rem;
	padding: 0 1rem;
}

.espn-row__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1rem 0.5rem;
}

.espn-row__title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.espn-row__see-all {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
}

.espn-row__see-all:hover,
a.espn-row__see-all:hover {
	color: #fff;
	text-decoration: none;
}

.espn-carousel {
	padding: 0 0.5rem;
}

.espn-carousel .splide__track {
	overflow: hidden;
	padding: 0.5rem 0 0.85rem;
}

.espn-carousel .splide__list {
	align-items: stretch;
}

.espn-carousel .splide__arrow {
	background: rgba(0, 0, 0, 0.72);
	opacity: 1;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.espn-carousel .splide__arrow:hover:not(:disabled) {
	background: rgba(0, 0, 0, 0.9);
}

.espn-carousel .splide__arrow svg {
	fill: #fff;
}

.espn-carousel .splide__arrow:disabled {
	opacity: 0.25;
}

.espn-carousel .splide__arrow--prev {
	left: 0.15rem;
}

.espn-carousel .splide__arrow--next {
	right: 0.15rem;
}

.espn-carousel .splide__slide {
	height: auto;
	padding: 0.25rem 0;
}

/* Override global head.php `.splide__slide img { width: 200px }` */
.espn-browse .splide__slide img,
.espn-catalog .splide__slide img,
.espn-carousel .splide__slide img {
	width: 100% !important;
	max-width: none;
}

.espn-card {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none !important;
	color: inherit;
	border-radius: var(--espn-card-radius);
	overflow: hidden;
	background: #2a2f36;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.espn-card:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
	color: inherit;
	text-decoration: none !important;
}

.espn-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #2a2f36 0%, #1a1d21 100%);
	overflow: hidden;
}

.espn-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.espn-card__title {
	display: block;
	padding: 0.75rem 0.85rem 0.95rem;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	min-height: 3.2em;
	color: rgba(255, 255, 255, 0.92);
}

.espn-card__meta {
	display: block;
	padding: 0 0.85rem 0.85rem;
	margin-top: -0.35rem;
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
}

/* Portrait posters (Films Spotlight — 2x3) */
.espn-carousel--portrait .espn-card__media {
	aspect-ratio: 2 / 3;
	background: #111418;
}

.espn-carousel--portrait .espn-card__media img {
	object-fit: cover;
	object-position: center top;
}

.espn-carousel--portrait .espn-card {
	background: transparent;
	box-shadow: none;
}

.espn-carousel--portrait .espn-card:hover {
	transform: translateY(-4px) scale(1.03);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.espn-carousel--portrait .espn-card__title {
	padding: 0.65rem 0.2rem 0.35rem;
	min-height: 2.8em;
	font-size: 0.82rem;
	text-align: center;
}

/* Square / circular tiles (Leagues, Original Series) */
.espn-carousel--square .espn-card__media {
	aspect-ratio: 1 / 1;
	background: #111418;
}

.espn-carousel--square .espn-card__media img {
	object-fit: contain;
	object-position: center;
	padding: 0.35rem;
}

.espn-carousel--square.espn-carousel--circle .espn-card__media {
	border-radius: 50%;
	overflow: hidden;
	background: #1a1d21;
}

.espn-carousel--square.espn-carousel--circle .espn-card__media img {
	padding: 8%;
	object-fit: contain;
}

.espn-carousel--square .espn-card {
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.espn-carousel--square .espn-card:hover {
	transform: translateY(-4px) scale(1.03);
	box-shadow: none;
}

.espn-carousel--square .espn-card__title {
	padding: 0.65rem 0.2rem 0.35rem;
	min-height: 2.8em;
	font-size: 0.82rem;
	text-align: center;
}

/* 4x3 show posters (Browse by Shows & Originals) */
.espn-carousel--poster .espn-card__media {
	aspect-ratio: 4 / 3;
	background: #111418;
}

.espn-carousel--poster .espn-card__media img {
	object-fit: cover;
	object-position: center;
}

.espn-carousel--poster .espn-card {
	background: transparent;
	box-shadow: none;
}

.espn-carousel--poster .espn-card:hover {
	transform: translateY(-4px) scale(1.03);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.espn-carousel--poster .espn-card__title {
	padding: 0.65rem 0.2rem 0.35rem;
	min-height: 2.8em;
	font-size: 0.82rem;
	text-align: center;
}

/* Inline header promo rails from /home */
.espn-promo {
	margin: 0 1rem 2.25rem;
}

.espn-promo__link {
	position: relative;
	display: block;
	text-decoration: none !important;
	color: inherit;
	border-radius: 14px;
	overflow: hidden;
	min-height: clamp(180px, 28vw, 320px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background-color: #242a33;
	background-size: cover;
	background-position: center;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.espn-promo__link::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(10, 12, 16, 0.88) 0%, rgba(10, 12, 16, 0.45) 48%, rgba(10, 12, 16, 0.2) 100%),
		linear-gradient(0deg, rgba(10, 12, 16, 0.75) 0%, rgba(10, 12, 16, 0.1) 55%);
}

.espn-promo__link:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.22);
	color: inherit;
	text-decoration: none !important;
}

.espn-promo__copy {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	min-height: inherit;
	padding: 1.5rem 1.6rem;
}

.espn-promo__text {
	max-width: 40rem;
}

.espn-promo__eyebrow {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.espn-promo__title {
	margin: 0 0 0.45rem;
	font-size: clamp(1.35rem, 3vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.espn-promo__desc {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}

.espn-promo__cta {
	display: inline-block;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 0.85rem;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Watch player page */
.espn-watch {
	position: relative;
	background: #1a1d21;
	color: #fff;
	min-height: 70vh;
	padding: 0 0 3rem;
	overflow: hidden;
}

.espn-watch__backdrop {
	position: absolute;
	inset: 0 0 auto 0;
	height: 55vh;
	background-size: cover;
	background-position: center top;
	filter: saturate(1.05);
	opacity: 0.45;
}

.espn-watch__backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(26, 29, 33, 0.35) 0%, rgba(26, 29, 33, 0.92) 70%, #1a1d21 100%);
}

.espn-watch__inner {
	position: relative;
	z-index: 1;
	max-width: 1120px;
	margin: 0 auto;
	padding: 1.25rem 1rem 0;
}

.espn-watch__back {
	display: inline-block;
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.espn-watch__back:hover {
	color: #fff;
	text-decoration: none;
}

.espn-watch__player-shell {
	border-radius: 14px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.espn-watch__player-shell #player {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.espn-watch__player-shell video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	background: #000;
	object-fit: contain;
}

.espn-watch__meta {
	padding: 1.35rem 0.15rem 0;
}

.espn-watch__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 0.75rem;
}

.espn-watch__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

.espn-watch__chip--live {
	background: rgba(220, 38, 38, 0.25);
	border-color: rgba(248, 113, 113, 0.45);
	color: #fecaca;
}

.espn-watch__title {
	margin: 0 0 0.55rem;
	font-size: clamp(1.5rem, 3.5vw, 2.35rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.espn-watch__subtitle {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
}

.espn-watch__desc {
	margin: 0;
	max-width: 46rem;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
}

.espn-watch__error {
	padding: 1.25rem 1.35rem;
	margin: 0;
	background: rgba(127, 29, 29, 0.35);
	border-top: 1px solid rgba(248, 113, 113, 0.25);
	color: #fecaca;
}

/* Catalog / film-series detail pages */
.espn-catalog {
	background: #1a1d21;
	color: #fff;
	min-height: 60vh;
	padding-bottom: 3rem;
}

.espn-catalog__hero {
	position: relative;
	width: 100%;
	min-height: 220px;
	background-size: cover;
	background-position: center;
	background-color: #111418;
}

.espn-catalog__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(26, 29, 33, 0.25) 0%, rgba(26, 29, 33, 0.92) 100%);
}

.espn-catalog__hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	padding: 3.5rem 1.5rem 2rem;
}

.espn-catalog__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}

.espn-catalog__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.espn-catalog__desc {
	margin: 0;
	max-width: 42rem;
	font-size: 1.05rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.espn-catalog__section {
	padding: 1.5rem 1rem 0;
}

.espn-catalog__section-title {
	margin: 0 0 1rem 0.35rem;
	font-size: 1.35rem;
	font-weight: 700;
}

.espn-catalog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.35rem 1.15rem;
	padding: 0 0.35rem 1.5rem;
}

.espn-catalog__grid--portrait {
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.espn-catalog__grid--poster {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.espn-catalog__grid--square {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.espn-catalog__grid .espn-card__media {
	aspect-ratio: 16 / 9;
}

.espn-catalog__grid--portrait .espn-card__media {
	aspect-ratio: 2 / 3;
}

.espn-catalog__grid--poster .espn-card__media {
	aspect-ratio: 4 / 3;
}

.espn-catalog__grid--square .espn-card__media {
	aspect-ratio: 1 / 1;
}

.espn-catalog__grid--square .espn-card__media img {
	object-fit: contain;
	padding: 0.35rem;
}

.espn-catalog__empty {
	padding: 2rem 1.5rem;
	color: rgba(255, 255, 255, 0.7);
}

/* Search bar + results */
.espn-search-bar {
	background: #1a1d21;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding: 0.85rem 1rem 1rem;
}

.espn-search-bar__form {
	max-width: 1120px;
	margin: 0 auto;
}

.espn-search-bar__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.espn-search-bar__field {
	display: flex;
	gap: 0.65rem;
	align-items: stretch;
}

.espn-search-bar__input {
	flex: 1;
	min-width: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: #111418;
	color: #fff;
	padding: 0.7rem 1.1rem;
	font-size: 0.98rem;
	outline: none;
}

.espn-search-bar__input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.espn-search-bar__input:focus {
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.espn-search-bar__btn {
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 0 1.15rem;
	cursor: pointer;
	white-space: nowrap;
}

.espn-search-bar__btn:hover {
	background: #f2f2f2;
}

.espn-search__count {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
}

.espn-card__media .espn-search__badge {
	position: absolute;
	left: 0.55rem;
	top: 0.55rem;
	z-index: 1;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.espn-search__badge--live {
	background: rgba(220, 38, 38, 0.92);
	color: #fff;
}

/* Multi-feed picker */
.espn-picker__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0 0.35rem 1.75rem;
	max-width: 900px;
}

.espn-picker__option {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.espn-picker__option:hover {
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.07);
	color: inherit;
	text-decoration: none !important;
}

.espn-picker__thumb {
	flex: 0 0 148px;
	width: 148px;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #111418;
}

.espn-picker__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.espn-picker__copy {
	flex: 1;
	min-width: 0;
}

.espn-picker__name {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.25rem;
}

.espn-picker__meta {
	display: block;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.35;
}

.espn-picker__cta {
	flex: 0 0 auto;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 0.82rem;
	font-weight: 700;
}

@media (max-width: 640px) {
	.espn-picker__option {
		flex-wrap: wrap;
	}
	.espn-picker__thumb {
		flex-basis: 100%;
		width: 100%;
	}
	.espn-picker__cta {
		margin-left: auto;
	}
	.espn-watch {
		overflow: visible;
		min-height: 0;
		padding-bottom: 2rem;
	}
	.espn-watch__backdrop {
		height: 38vh;
	}
	.espn-watch__inner {
		padding: 0.85rem 0.75rem 0;
	}
	.espn-watch__player-shell {
		border-radius: 8px;
	}
	.espn-watch__player-shell #player,
	.espn-watch__player-shell video {
		min-height: 180px;
	}
	.espn-watch__title {
		font-size: 1.35rem;
	}
	.espn-watch__error {
		font-size: 0.9rem;
		line-height: 1.4;
	}
}
