/* ESPN Live Events — front-end styles. Scoped under .espnle so themes stay untouched. */

.espnle {
	--espnle-accent: #e11d48;
	--e-bg: #ffffff;
	--e-surface: #ffffff;
	--e-surface-2: #f4f6f9;
	--e-surface-3: #eaeef3;
	--e-text: #0f172a;
	--e-muted: #64748b;
	--e-border: rgba(15, 23, 42, .09);
	--e-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .06);
	--e-shadow-hover: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 34px rgba(15, 23, 42, .12);
	--e-radius: 16px;
	--e-radius-sm: 10px;
	--e-win: #16a34a;
	--e-loss: #dc2626;
	--e-draw: #94a3b8;
	--e-live: #ef4444;
	color: var(--e-text);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.espnle[data-theme="dark"] {
	--e-bg: #0b1020;
	--e-surface: #111827;
	--e-surface-2: #172033;
	--e-surface-3: #1f2a40;
	--e-text: #e5e9f0;
	--e-muted: #94a3b8;
	--e-border: rgba(255, 255, 255, .08);
	--e-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	--e-shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 36px rgba(0, 0, 0, .4);
}

@media (prefers-color-scheme: dark) {
	.espnle[data-theme="auto"] {
		--e-bg: #0b1020;
		--e-surface: #111827;
		--e-surface-2: #172033;
		--e-surface-3: #1f2a40;
		--e-text: #e5e9f0;
		--e-muted: #94a3b8;
		--e-border: rgba(255, 255, 255, .08);
		--e-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
		--e-shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 36px rgba(0, 0, 0, .4);
	}
}

.espnle *, .espnle *::before, .espnle *::after { box-sizing: border-box; }
.espnle img { max-width: 100%; height: auto; border: 0; box-shadow: none; margin: 0; border-radius: 0; }
.espnle ul, .espnle ol { margin: 0; padding: 0; list-style: none; }
.espnle h2, .espnle h3, .espnle h4 { margin: 0; line-height: 1.25; color: inherit; letter-spacing: -.01em; }
.espnle p { margin: 0 0 .75em; }
.espnle a { color: inherit; }
.espnle button { font: inherit; cursor: pointer; }
.espnle [hidden] { display: none !important; }

/* ------------------------------------------------------------------ */
/* Shared bits                                                          */
/* ------------------------------------------------------------------ */

.espnle-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 3px 10px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
	background: var(--e-surface-3); color: var(--e-muted);
}
.espnle-pill b { font-weight: 600; opacity: .9; }
.espnle-pill.is-live { background: var(--e-live); color: #fff; }
.espnle-pill.is-post { background: var(--e-surface-3); color: var(--e-text); }
.espnle-pill.is-pre { background: color-mix(in srgb, var(--espnle-accent) 12%, transparent); color: var(--espnle-accent); }
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
	.espnle-pill.is-pre { background: var(--e-surface-3); }
}

.espnle-dot {
	width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block;
	animation: espnle-pulse 1.4s ease-in-out infinite;
}
@keyframes espnle-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

.espnle-logo { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.espnle-logo--xs { width: 20px; height: 20px; }
.espnle-logo--sm { width: 28px; height: 28px; }
.espnle-logo--lg { width: 56px; height: 56px; }
.espnle-logo--xl { width: 88px; height: 88px; }
.espnle-logo.is-empty {
	display: inline-grid; place-items: center; border-radius: 50%;
	background: var(--e-surface-3); color: var(--e-muted); font-weight: 800; font-size: 11px;
}
.espnle-logo--xl.is-empty { font-size: 24px; background: rgba(255,255,255,.15); color: #fff; }
.espnle-logo--xs.is-empty { font-size: 8px; }

.espnle-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px; border: 0;
	background: var(--espnle-accent); color: #fff !important; text-decoration: none !important;
	font-weight: 700; font-size: 15px; line-height: 1;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--espnle-accent) 35%, transparent);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.espnle-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.espnle-btn--lg { padding: 14px 26px; font-size: 16px; }
.espnle-btn--ghost {
	background: var(--e-surface-2); color: var(--e-text) !important; box-shadow: none;
	border: 1px solid var(--e-border);
}

.espnle-chip {
	display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
	background: var(--e-surface-3); font-size: 12px; font-weight: 600; color: var(--e-text);
}
.espnle-chip--tv { background: var(--e-surface); border: 1px solid var(--e-border); }

.espnle-muted { color: var(--e-muted); }
.espnle-note { color: var(--e-muted); font-size: 14px; padding: 14px 16px; border-radius: var(--e-radius-sm); background: var(--e-surface-2); }
.espnle-hint { color: var(--e-muted); font-size: 12px; margin: 10px 0 0; }

.espnle-form { display: inline-flex; gap: 4px; }
.espnle-res {
	display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
	font-size: 11px; font-weight: 800; color: #fff; background: var(--e-draw); flex: 0 0 auto;
}
.espnle-res.is-W { background: var(--e-win); }
.espnle-res.is-L { background: var(--e-loss); }

/* ------------------------------------------------------------------ */
/* Cards & grid                                                         */
/* ------------------------------------------------------------------ */

.espnle-grid-title { font-size: 22px; font-weight: 800; margin: 0 0 14px; }

.espnle-filters {
	display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 0 4px;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.espnle-filters::-webkit-scrollbar { display: none; }
.espnle-filters button {
	display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	padding: 8px 14px; border-radius: 999px; border: 1px solid var(--e-border);
	background: var(--e-surface); color: var(--e-text); font-size: 14px; font-weight: 600;
	transition: background .15s, color .15s, border-color .15s;
}
.espnle-filters button:hover { border-color: var(--espnle-accent); }
.espnle-filters button.is-active { background: var(--e-text); color: var(--e-surface); border-color: var(--e-text); }
.espnle-filters button[data-filter="live"] .espnle-dot { color: var(--e-live); }
.espnle-count { font-size: 12px; opacity: .7; }

.espnle-grid {
	display: grid; gap: 16px;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
@media (max-width: 1024px) { .espnle-grid { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px)  { .espnle-grid { grid-template-columns: 1fr; gap: 12px; } }

.espnle-card {
	position: relative; background: var(--e-surface); border: 1px solid var(--e-border);
	border-radius: var(--e-radius); box-shadow: var(--e-shadow);
	transition: transform .18s ease, box-shadow .18s ease, opacity .4s ease;
	overflow: hidden;
}
.espnle-card:hover { transform: translateY(-2px); box-shadow: var(--e-shadow-hover); }
.espnle-card.is-in::before {
	content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--e-live);
}
.espnle-card.is-leaving { opacity: 0; transform: scale(.97); }
.espnle-card-link { display: block; padding: 14px 16px; text-decoration: none !important; color: inherit !important; }
.espnle-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.espnle-card-league {
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--e-muted);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.espnle-card-teams { display: grid; gap: 8px; }
.espnle-card-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.espnle-card-name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.espnle-card-score { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.espnle-card-record { font-size: 12px; color: var(--e-muted); }
.espnle-card.is-post .espnle-card-team:not(.is-winner) { opacity: .6; }
.espnle-card-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--e-border);
	font-size: 13px; color: var(--e-muted);
}
.espnle-card-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.espnle-card-watch {
	display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
	color: var(--espnle-accent); font-weight: 700;
}
.espnle-empty { text-align: center; color: var(--e-muted); padding: 30px 10px; }

.espnle-inline { margin: 8px 0 4px; max-width: 520px; }

/* ------------------------------------------------------------------ */
/* Single event                                                         */
/* ------------------------------------------------------------------ */

.espnle-single { display: grid; gap: 18px; margin: 0 0 2em; }

.espnle-hero {
	position: relative; overflow: hidden; color: #fff;
	border-radius: calc(var(--e-radius) + 4px);
	padding: 18px 20px 20px;
	background:
		radial-gradient(120% 140% at 0% 0%, var(--c1) 0%, transparent 55%),
		radial-gradient(120% 140% at 100% 100%, var(--c2) 0%, transparent 55%),
		#0b1220;
	box-shadow: 0 18px 40px rgba(2, 6, 23, .25);
}
.espnle-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35));
}
.espnle-hero > * { position: relative; z-index: 1; }
.espnle-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.espnle-hero-league { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.espnle-hero .espnle-pill.is-pre, .espnle-hero .espnle-pill.is-post { background: rgba(255,255,255,.16); color: #fff; }

.espnle-matchup {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
	padding: 22px 0 12px;
}
.espnle-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; min-width: 0; }
.espnle-team .espnle-logo--xl { filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.espnle-team-name { font-weight: 800; font-size: 20px; line-height: 1.2; }
.espnle-team-rec { font-size: 13px; opacity: .75; }
.espnle-hero.is-post .espnle-team:not(.is-winner) { opacity: .7; }

.espnle-center { text-align: center; min-width: 120px; }
.espnle-score { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 56px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.espnle-score em { font-style: normal; opacity: .5; font-weight: 400; font-size: .6em; }
.espnle-hero.is-post .espnle-score span:not(.is-winner) { opacity: .65; }
.espnle-kickoff { font-size: 36px; font-weight: 900; line-height: 1.05; }
.espnle-sub { font-size: 13px; opacity: .85; margin-top: 6px; }
.espnle-countdown {
	display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 999px;
	background: rgba(255,255,255,.14); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.espnle-countdown:empty { display: none; }
.espnle-hero-meta {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
	font-size: 13px; opacity: .85; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12);
}
.espnle-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.espnle-hero.is-flash .espnle-score { animation: espnle-flash 1.2s ease; }
@keyframes espnle-flash { 0% { transform: scale(1); } 30% { transform: scale(1.12); color: #fde047; } 100% { transform: scale(1); } }

.espnle-ended { padding: 12px 16px; border-radius: var(--e-radius-sm); background: var(--e-surface-2); font-weight: 600; text-align: center; }

.espnle-player {
	border-radius: var(--e-radius); overflow: hidden; background: #000;
	box-shadow: var(--e-shadow);
}
.espnle-ratio { position: relative; width: 100%; aspect-ratio: 16 / 9; }
@supports not (aspect-ratio: 16 / 9) { .espnle-ratio { padding-top: 56.25%; } }
.espnle-ratio > iframe, .espnle-ratio > video, .espnle-ratio > div, .espnle-ratio > object, .espnle-ratio > embed {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; margin: 0;
}

.espnle-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Tabs */
.espnle-tabs {
	position: sticky; top: var(--espnle-sticky, 0px); z-index: 5;
	display: flex; gap: 4px; padding: 5px; overflow-x: auto;
	background: var(--e-surface-2); border: 1px solid var(--e-border); border-radius: 999px;
	scrollbar-width: none;
}
.espnle-tabs::-webkit-scrollbar { display: none; }
.espnle-tabs button {
	flex: 1 0 auto; padding: 10px 16px; border: 0; border-radius: 999px;
	background: transparent; color: var(--e-muted); font-weight: 700; font-size: 14px; white-space: nowrap;
	transition: background .15s, color .15s;
}
.espnle-tabs button:hover { color: var(--e-text); }
.espnle-tabs button[aria-selected="true"] { background: var(--e-surface); color: var(--e-text); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.espnle-tabs button:focus-visible, .espnle-switch button:focus-visible, .espnle-filters button:focus-visible { outline: 2px solid var(--espnle-accent); outline-offset: 2px; }

.espnle-panel { display: grid; gap: 16px; animation: espnle-fade .25s ease; }
@keyframes espnle-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.espnle-section {
	background: var(--e-surface); border: 1px solid var(--e-border); border-radius: var(--e-radius);
	padding: 18px; box-shadow: var(--e-shadow);
}
.espnle-h { font-size: 13px !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .07em; color: var(--e-muted) !important; margin: 0 0 14px !important; }
.espnle-lead { font-size: 17px; line-height: 1.6; margin: 0; padding: 0 2px; }

/* Info grid */
.espnle-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.espnle-info > div { background: var(--e-surface-2); border-radius: var(--e-radius-sm); padding: 10px 12px; }
.espnle-info dt { font-size: 12px; color: var(--e-muted); font-weight: 600; margin: 0 0 2px; }
.espnle-info dd { margin: 0; font-weight: 600; font-size: 14px; }

/* Timeline */
.espnle-timeline { display: grid; gap: 6px; }
.espnle-ke {
	display: grid; grid-template-columns: 54px 22px 1fr; align-items: center; gap: 8px;
	padding: 8px 10px; border-radius: var(--e-radius-sm); background: var(--e-surface-2); font-size: 14px;
}
.espnle-ke.is-right { border-right: 3px solid var(--e-muted); }
.espnle-ke.is-left { border-left: 3px solid var(--espnle-accent); }
.espnle-ke-clock { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--e-muted); font-size: 13px; }
.espnle-ke-icon { width: 16px; height: 16px; border-radius: 50%; background: var(--e-muted); justify-self: center; }
.espnle-ke.kind-goal .espnle-ke-icon, .espnle-ke.kind-score .espnle-ke-icon { background: var(--e-win); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-win) 25%, transparent); }
.espnle-ke.kind-yellow .espnle-ke-icon { width: 12px; height: 16px; border-radius: 2px; background: #facc15; }
.espnle-ke.kind-red .espnle-ke-icon { width: 12px; height: 16px; border-radius: 2px; background: #ef4444; }
.espnle-ke.kind-sub .espnle-ke-icon { background: transparent; border: 2px solid var(--e-muted); width: 12px; height: 12px; }

/* Stats bars */
.espnle-stats { display: grid; gap: 12px; }
.espnle-stats-head { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.espnle-stat-row { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; font-size: 14px; margin-bottom: 4px; }
.espnle-stat-row span { text-align: center; color: var(--e-muted); font-size: 13px; }
.espnle-stat-row b:last-child { text-align: right; }
.espnle-bar { height: 6px; border-radius: 999px; background: var(--rc); overflow: hidden; }
.espnle-bar i { display: block; height: 100%; background: var(--lc); border-right: 2px solid var(--e-surface); transition: width .6s ease; }

/* Columns */
.espnle-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .espnle-cols { grid-template-columns: 1fr; } }
.espnle-col h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 10px; }

.espnle-leaders li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--e-border); }
.espnle-leaders li:last-child { border-bottom: 0; }
.espnle-leaders img, .espnle-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--e-surface-3); display: block; }
.espnle-leaders small { display: block; color: var(--e-muted); font-size: 12px; }
.espnle-leaders strong { font-size: 14px; }
.espnle-leaders b { font-size: 14px; }

.espnle-lineup li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--e-border); }
.espnle-lineup li small { margin-left: auto; color: var(--e-muted); }
.espnle-lineup li.is-on { font-weight: 600; }
.espnle-num {
	display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 8px;
	background: var(--e-surface-3); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.espnle-num--lg { width: 44px; height: 44px; border-radius: 50%; font-size: 15px; }
.espnle-subs { margin-top: 8px; }
.espnle-subs summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--e-muted); padding: 6px 0; }

/* Probability */
.espnle-prob-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.espnle-prob { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--e-surface-3); gap: 2px; }
.espnle-prob i { display: block; height: 100%; background: var(--lc); }
.espnle-prob i.is-draw { background: var(--e-draw); }
.espnle-prob i.is-right { background: var(--rc); }

.espnle-form-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 600; }
.espnle-form-row > span:not(.espnle-form) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.espnle-article { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.espnle-article img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--e-radius-sm); }
.espnle-article h4 { font-size: 18px; margin: 0 0 6px; }
.espnle-article a { color: var(--espnle-accent); font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .espnle-article { grid-template-columns: 1fr; } }

.espnle-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.espnle-news a, .espnle-news li > span { display: flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px; border-radius: var(--e-radius-sm); background: var(--e-surface-2); }
.espnle-news img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }

/* Fixtures */
.espnle-fixtures { display: grid; gap: 2px; }
.espnle-section .espnle-form + .espnle-fixtures { margin-top: 12px; }
.espnle-fixtures li {
	display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 14px;
	border-bottom: 1px solid var(--e-border);
}
.espnle-fixtures li:last-child { border-bottom: 0; }
.espnle-fx-date { color: var(--e-muted); font-size: 13px; min-width: 58px; font-variant-numeric: tabular-nums; }
.espnle-fx-at { color: var(--e-muted); font-size: 12px; width: 18px; text-align: center; }
.espnle-fx-opp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.espnle-fx-opp small { font-weight: 500; color: var(--e-muted); }
.espnle-fx-score { font-variant-numeric: tabular-nums; }

/* Team overview */
.espnle-teams { display: grid; gap: 16px; }
.espnle-switch {
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px;
	background: var(--e-surface-2); border: 1px solid var(--e-border); border-radius: 999px;
}
.espnle-switch button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
	padding: 10px 14px; border: 0; border-radius: 999px; background: transparent;
	font-weight: 700; color: var(--e-muted);
}
.espnle-switch button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.espnle-switch button[aria-selected="true"] { background: var(--e-surface); color: var(--e-text); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.espnle-team-panel { display: grid; gap: 16px; }
.espnle-team-head { display: flex; align-items: center; gap: 14px; }
.espnle-team-head h3 { font-size: 22px; font-weight: 800; }
.espnle-team-head p { margin: 2px 0 0; color: var(--e-muted); font-size: 14px; }

.espnle-squad-group { border-top: 1px solid var(--e-border); }
.espnle-squad-group:first-of-type { border-top: 0; }
.espnle-squad-group summary {
	cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
	padding: 10px 0; font-weight: 800; font-size: 14px;
}
.espnle-squad-group summary::-webkit-details-marker { display: none; }
.espnle-squad-group summary::after { content: "▾"; color: var(--e-muted); transition: transform .2s; }
.espnle-squad-group:not([open]) summary::after { transform: rotate(-90deg); }
.espnle-squad-group summary span { margin-left: 8px; margin-right: auto; font-size: 12px; color: var(--e-muted); font-weight: 600; }
.espnle-squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; padding-bottom: 12px; }
.espnle-squad li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--e-radius-sm); background: var(--e-surface-2); min-width: 0; }
.espnle-squad img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--e-surface-3); flex: 0 0 auto; }
.espnle-squad div { min-width: 0; }
.espnle-squad strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.espnle-squad small { display: block; color: var(--e-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* League table */
.espnle-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.espnle-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; margin: 0; border: 0; background: none; }
.espnle-table th, .espnle-table td { padding: 9px 8px; border: 0; border-bottom: 1px solid var(--e-border); text-align: left; white-space: nowrap; background: none; vertical-align: middle; }
.espnle-table thead th { font-size: 12px; font-weight: 700; color: var(--e-muted); text-transform: uppercase; letter-spacing: .04em; }
.espnle-table tbody tr:last-child td { border-bottom: 0; }
.espnle-table tbody tr:hover td { background: var(--e-surface-2); }
.espnle-table .c-num { text-align: center; min-width: 34px; }
.espnle-table .c-num.is-b { font-weight: 800; }
.espnle-table .c-rank { width: 38px; text-align: center; position: relative; }
.espnle-table td.c-rank span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 7px; font-weight: 700; font-size: 13px; }
.espnle-table td.c-rank[style]::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--n); }
.espnle-table .c-team { width: 100%; font-weight: 600; }
.espnle-table .t-wrap { display: flex; align-items: center; gap: 10px; }
.espnle-table .t-short { display: none; }
.espnle-table tr.is-hl td { background: color-mix(in srgb, var(--espnle-accent) 10%, transparent); }
.espnle-table tr.is-hl td.c-rank span { background: var(--espnle-accent); color: #fff; }
.espnle-table tr.is-hl td.c-team { font-weight: 800; }
.espnle-table-group { border-top: 1px solid var(--e-border); }
.espnle-table-group:first-of-type { border-top: 0; }
.espnle-table-group summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; padding: 12px 0; font-weight: 800; font-size: 15px; }
.espnle-table-group summary::-webkit-details-marker { display: none; }
.espnle-table-group summary::after { content: "▾"; color: var(--e-muted); transition: transform .2s; }
.espnle-table-group:not([open]) summary::after { transform: rotate(-90deg); }
.espnle-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px !important; font-size: 12px; color: var(--e-muted); }
.espnle-legend li { display: inline-flex; align-items: center; gap: 6px; }
.espnle-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.espnle-table-wrap { margin: 0 0 1.5em; }

/* How to watch */
.espnle-watch-text { font-size: 16px; line-height: 1.65; }
.espnle-watch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.espnle-steps { counter-reset: s; display: grid; gap: 10px; }
.espnle-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.espnle-steps li::before {
	content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--espnle-accent); color: #fff; font-weight: 800; font-size: 13px;
}
#espnle-panel-watch { background: var(--e-surface); border: 1px solid var(--e-border); border-radius: var(--e-radius); padding: 20px; box-shadow: var(--e-shadow); }
#espnle-panel-watch .espnle-cta { justify-content: flex-start; }

/* Loading */
.espnle-loading { display: flex; justify-content: center; gap: 6px; padding: 40px 0; }
.espnle-loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--e-muted); animation: espnle-bounce 1s infinite ease-in-out; }
.espnle-loading span:nth-child(2) { animation-delay: .15s; }
.espnle-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes espnle-bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* ------------------------------------------------------------------ */
/* Mobile                                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 640px) {
	.espnle-hero { padding: 14px 14px 16px; border-radius: var(--e-radius); }
	.espnle-matchup { gap: 6px; padding: 16px 0 10px; }
	.espnle-logo--xl { width: 56px; height: 56px; }
	.espnle-team-name { font-size: 15px; }
	.espnle-team-rec { font-size: 12px; }
	.espnle-score { font-size: 38px; gap: 8px; }
	.espnle-kickoff { font-size: 24px; }
	.espnle-center { min-width: 92px; }
	.espnle-tabs { border-radius: 14px; display: flex; flex-wrap: wrap; position: static; }
	.espnle-tabs button { border-radius: 10px; flex: 1 1 30%; padding: 9px 6px; font-size: 12.5px; }
	.espnle-table { font-size: 13px; }
	.espnle-table th, .espnle-table td { padding: 8px 5px; }
	.espnle-table .is-hm { display: none; }
	.espnle-table .t-full { display: none; }
	.espnle-table .t-short { display: inline; }
	.espnle-section { padding: 14px; }
	.espnle-lead { font-size: 15px; }
	.espnle-info { grid-template-columns: 1fr 1fr; gap: 8px; }
	.espnle-ke { grid-template-columns: 44px 18px 1fr; font-size: 13px; }
	.espnle-btn--lg { width: 100%; }
	.espnle-cta .espnle-btn--ghost { width: 100%; }
	.espnle-squad { grid-template-columns: 1fr; }
	#espnle-panel-watch { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.espnle *, .espnle *::before { animation: none !important; transition: none !important; }
}
