/* 5.17.221 — restored original header; hidden branches never enter its row. */
body.tessirve-theme .ms-site-header [hidden]{display:none!important;}
@media(min-width:1181px){body.tessirve-theme .ms-site-header .ms-mobile-submenu{display:none!important;}}

/* Identidad elegida por el visitante. Se mantiene neutral si no hay equipos. */
:root {
	--theme-primary: #175cd3;
	--theme-secondary: #14213d;
	--theme-blue: var(--theme-primary);
}

.ms-site-header {
	background: linear-gradient(115deg, color-mix(in srgb, var(--theme-primary), #000 46%), color-mix(in srgb, var(--theme-secondary), #000 54%));
	border-bottom: 1px solid color-mix(in srgb, var(--theme-primary), #000 18%);
	border-top: 5px solid var(--theme-primary);
}

.ms-site-header-inner {
	gap: 12px;
	height: 68px;
}

.ms-brand-mark {
	background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
	box-shadow: 0 0 0 2px rgba(255,255,255,.28);
}

.ms-brand,
.ms-site-menu a { color: #fff; }

.ms-menu-toggle > span:not(.screen-reader-text) { background: #fff; }

.ms-site-menu a:hover,
.ms-site-menu .current-menu-item > a {
	background: rgba(255,255,255,.18);
	color: #fff;
}

.ms-theme-picker {
	margin-left: auto;
	max-width: 190px;
}

.ms-theme-picker select {
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--theme-primary), #d0d5dd 62%);
	border-radius: 9px;
	color: #344054;
	font: inherit;
	font-size: .78rem;
	font-weight: 720;
	max-width: 190px;
	padding: 9px 10px;
	width: 100%;
}

.ms-theme-button { background: var(--theme-primary); }
.ms-theme-eyebrow { color: var(--theme-primary); }

@media (max-width: 1040px) {
	.ms-site-menu a { padding: 8px 7px; }
	.ms-theme-picker,
	.ms-theme-picker select { max-width: 150px; }
}

@media (max-width: 782px) {
	.ms-site-header-inner { height: 68px; }
	.ms-theme-picker { margin-left: auto; max-width: 145px; }
	.ms-primary-nav { top: 68px; }
	.ms-primary-nav .ms-site-menu a { color: #344054; }
	.ms-primary-nav .ms-site-menu a:hover,
	.ms-primary-nav .ms-site-menu .current-menu-item > a {
		background: color-mix(in srgb, var(--theme-primary), #fff 90%);
		color: var(--theme-primary);
	}
}


/* 4.6: mismo borde fino arriba/abajo y altura compacta. */
.ms-site-header{border-top:1px solid color-mix(in srgb,var(--theme-primary),#000 18%)!important;border-bottom:1px solid color-mix(in srgb,var(--theme-primary),#000 18%)!important}
.ms-site-header-inner{height:58px!important}
@media(max-width:782px){.ms-site-header-inner{height:58px!important}.ms-primary-nav{top:58px!important}}


/* 4.8: header realmente fijo, selector abajo y la identidad elegida tiñe todo el sitio. */
:root{--ms-admin-offset:0px}
body.tessirve-theme{padding-top:58px!important;background:linear-gradient(180deg,color-mix(in srgb,var(--theme-primary),#fff 97%) 0,#f5f7fb 520px)!important}
.ms-site-header{position:fixed!important;left:0;right:0;top:var(--ms-admin-offset)!important;z-index:1000!important}
.ms-site-header-inner{height:58px!important}
.ms-brand-name{display:inline-block!important;font-family:Impact,Haettenschweiler,"Arial Narrow Bold","Arial Black",sans-serif!important;font-size:1.12rem!important;font-style:italic;font-weight:900!important;letter-spacing:.075em!important;line-height:1;transform:skew(-5deg);white-space:nowrap}
.ms-header-theme-crest{align-items:center;display:flex;height:42px;justify-content:center;margin-left:10px;overflow:hidden;width:42px}
.ms-header-theme-crest img{filter:saturate(.9);height:34px;max-width:34px;object-fit:contain;opacity:.46;transform:rotate(4deg);transition:opacity .18s ease,transform .18s ease;width:34px}
.ms-header-theme-crest img:hover{opacity:.66;transform:rotate(0deg) scale(1.04)}
.ms-primary-nav{margin-left:auto}

/* El cambio de club no se limita al header. */
.ms-app .ms-button{background:var(--theme-primary)!important}
.ms-app .ms-eyebrow,.ms-app .ms-section-heading a,.ms-back{color:var(--theme-primary)!important}
.ms-profile-nav button[aria-selected="true"],.ms-profile-nav a[aria-current="page"],.ms-profile-nav a:hover{background:color-mix(in srgb,var(--theme-primary),#fff 88%)!important;color:color-mix(in srgb,var(--theme-primary),#000 15%)!important}
.ms-competition-title,.ms-round-toolbar,.ms-standing-detail td{background:color-mix(in srgb,var(--theme-primary),#fff 96%)!important}
.ms-competition-block,.ms-standing-card,.ms-panel,.ms-team-card,.ms-media-card,.ms-h2h-form{border-color:color-mix(in srgb,var(--theme-primary),#e4e7ec 82%)!important}
.ms-site-footer{background:linear-gradient(120deg,color-mix(in srgb,var(--theme-secondary),#000 32%),color-mix(in srgb,var(--theme-primary),#000 58%))!important}

/* Selector de tema: barra inferior del sitio, no compite con la navegación. */
.ms-theme-footer-strip{border-bottom:1px solid rgba(255,255,255,.12);border-top:1px solid color-mix(in srgb,var(--theme-primary),#fff 50%);background:color-mix(in srgb,var(--theme-secondary),#000 24%)}
.ms-theme-footer-strip-inner{align-items:center;display:flex;gap:18px;justify-content:flex-end;margin:auto;max-width:1180px;padding:12px 20px}
.ms-theme-footer-strip-inner>span{display:flex;flex-direction:column;margin-right:auto}
.ms-theme-footer-strip-inner>span strong{color:#fff;font-family:Impact,Haettenschweiler,"Arial Narrow Bold","Arial Black",sans-serif;font-size:.95rem;font-style:italic;letter-spacing:.04em}
.ms-theme-footer-strip-inner>span small{color:rgba(255,255,255,.62);font-size:.68rem}
.ms-theme-picker{align-items:center;display:flex;gap:8px;margin:0!important;max-width:260px!important}
.ms-theme-picker-label{color:rgba(255,255,255,.7);font-size:.68rem;font-weight:800;text-transform:uppercase}
.ms-theme-picker select{background:rgba(255,255,255,.96)!important;border:1px solid rgba(255,255,255,.4)!important;max-width:210px!important;min-width:160px}

@media(max-width:782px){
 body.tessirve-theme{padding-top:58px!important}
 .ms-site-header-inner{gap:7px!important;padding:0 12px!important}
 .ms-brand{gap:7px!important}
 .ms-brand-mark{height:32px!important;width:32px!important}
 .ms-brand-name{font-size:.98rem!important;letter-spacing:.055em!important}
 .ms-menu-toggle{margin-left:auto!important}
 .ms-header-theme-crest{height:38px;margin-left:2px;width:38px}
 .ms-header-theme-crest img{height:31px;max-width:31px;width:31px}
 .ms-primary-nav{top:58px!important}
 .ms-theme-footer-strip-inner{align-items:stretch;flex-direction:column;gap:8px;padding:12px 16px}
 .ms-theme-footer-strip-inner>span{align-items:center;margin:0;text-align:center}
 .ms-theme-picker{justify-content:center;max-width:none!important;width:100%}
 .ms-theme-picker select{max-width:240px!important;width:100%}
}

/* 4.8: sin doble hueco de la barra de administración en navegadores modernos. */
html:has(body.admin-bar){margin-top:0!important}

/* Más identidad visual al cambiar de club, sin teñir todo de forma agresiva. */
.ms-home-day-nav,.ms-filter-bar,.ms-empty,.ms-stat,.ms-card-grid>article{border-color:color-mix(in srgb,var(--theme-primary),#d0d5dd 78%)!important}
.ms-home-day-nav>a{background:color-mix(in srgb,var(--theme-primary),#fff 92%)!important;color:color-mix(in srgb,var(--theme-primary),#000 18%)!important}
.ms-empty{background:linear-gradient(120deg,color-mix(in srgb,var(--theme-primary),#fff 98%),#fff)!important}
.ms-data-table thead th{background:color-mix(in srgb,var(--theme-primary),#fff 96%)!important}
.ms-brand-name{text-shadow:1px 1px 0 color-mix(in srgb,var(--theme-primary),#000 55%)}
:root{--ms-admin-space:0px}
body.tessirve-theme{padding-top:calc(58px + var(--ms-admin-space,0px))!important}


/* 4.9: selector del tema sin copy extra; sólo el control. */
.ms-theme-footer-strip-inner{justify-content:center!important;padding:10px 20px!important}.ms-theme-footer-strip-inner>span{display:none!important}.ms-theme-picker{justify-content:center!important;margin:0 auto!important;max-width:230px!important;width:auto!important}.ms-theme-picker-label{display:none!important}.ms-theme-picker select{max-width:230px!important;min-width:180px!important}
@media(max-width:782px){.ms-theme-footer-strip-inner{padding:10px 14px!important}.ms-theme-picker{width:100%!important}.ms-theme-picker select{max-width:250px!important;width:100%!important}}

/* 5.1: selector visual pegado a la derecha, también en celular. */
.ms-theme-footer-strip-inner{justify-content:flex-end!important}
.ms-theme-picker{justify-content:flex-end!important;margin-left:auto!important;margin-right:0!important;max-width:230px!important;width:auto!important}
.ms-theme-picker select{max-width:230px!important;min-width:180px!important;width:auto!important}
@media(max-width:782px){.ms-theme-footer-strip-inner{justify-content:flex-end!important}.ms-theme-picker{margin-left:auto!important;margin-right:0!important;width:auto!important}.ms-theme-picker select{max-width:220px!important;min-width:170px!important;width:auto!important}}


/* 5.6 — claro/oscuro independiente del club y controles compactos. */
:root{--ms-title-font:Haettenschweiler,"Arial Narrow Bold","Arial Black","Arial Narrow",sans-serif}
.ms-theme-controls{align-items:center;display:flex;gap:10px;justify-content:flex-end;margin-left:auto}
.ms-color-mode{align-items:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:999px;display:flex;gap:2px;padding:3px}
.ms-color-mode-button{align-items:center;appearance:none;background:transparent;border:0;border-radius:50%;color:rgba(255,255,255,.72);cursor:pointer;display:flex;height:32px;justify-content:center;padding:0;width:32px}
.ms-color-mode-button svg{fill:none;height:17px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:17px}.ms-color-mode-button svg circle{fill:none}.ms-color-mode-button.is-active{background:#fff;color:#101828;box-shadow:0 1px 4px rgba(0,0,0,.16)}
.ms-theme-footer-strip-inner{display:flex!important}.ms-theme-picker{margin:0!important}
body.tessirve-theme h1,body.tessirve-theme h2,body.tessirve-theme h3,.ms-content-header h1{font-family:var(--ms-title-font)!important;font-style:normal!important;font-weight:900!important;letter-spacing:.015em!important}

html[data-tessirve-color-mode="dark"]{--theme-ink:#f2f4f7;--theme-muted:#98a2b3;--theme-line:#303947;--theme-bg:#0d1219;--ms-ink:#f2f4f7;--ms-muted:#98a2b3;--ms-line:#303947;--ms-bg:#0d1219;--ms-card:#161d27}
html[data-tessirve-color-mode="dark"] body.tessirve-theme{background:linear-gradient(180deg,color-mix(in srgb,var(--theme-primary),#0d1219 92%) 0,#0d1219 520px)!important;color:var(--theme-ink)}
html[data-tessirve-color-mode="dark"] .ms-entry-content,html[data-tessirve-color-mode="dark"] .ms-post-card{background:#161d27!important;border-color:#303947!important;color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-app{color:var(--ms-ink)!important}
html[data-tessirve-color-mode="dark"] .ms-app :is(.ms-panel,.ms-profile-nav,.ms-competition-block,.ms-standing-card,.ms-team-card,.ms-media-card,.ms-honors-list,.ms-h2h-form,.ms-match-group,.ms-result-card,.ms-match-hero,.ms-top-stat,.ms-summary-pitch,.ms-full-lineups,.ms-stat-comparisons,.ms-centered-timeline,.ms-event-teams,.ms-empty,.ms-date-nav a,.ms-date-nav input){background:var(--ms-card)!important;border-color:var(--ms-line)!important;color:var(--ms-ink)!important}
html[data-tessirve-color-mode="dark"] .ms-app :is(.ms-competition-title,.ms-match-group-title,.ms-result-meta,.ms-score,.ms-score span,.ms-split-record>div,.ms-scoreline-list span,.ms-goal-intervals>div:last-of-type>span,.ms-h2h-mini>span,.ms-stat-compare>i,.ms-match-detail .ms-score-main span,.ms-match-detail .ms-event-node time,.ms-pitch-team-caption>strong){background:#202936!important;color:#d0d5dd!important}
html[data-tessirve-color-mode="dark"] .ms-app :is(a,strong,b,h1,h2,h3,dt,dd){color:inherit}
html[data-tessirve-color-mode="dark"] .ms-app :is(.ms-match-row,.ms-compact-match){background:var(--ms-card)!important;border-color:var(--ms-line)!important}
html[data-tessirve-color-mode="dark"] .ms-app :is(.ms-match-row:hover,.ms-compact-match:hover){background:#1b2532!important}
html[data-tessirve-color-mode="dark"] .ms-app .ms-profile-nav button{color:#cbd5e1!important}
html[data-tessirve-color-mode="dark"] .ms-app .ms-profile-nav button[aria-selected="true"]{background:color-mix(in srgb,var(--theme-primary),#111827 70%)!important;color:#fff!important}
html[data-tessirve-color-mode="dark"] .ms-primary-nav{background:#151c26!important;border-color:#303947!important}
html[data-tessirve-color-mode="dark"] .ms-primary-nav .ms-site-menu a{color:#e5e7eb!important}

@media(max-width:782px){.ms-theme-controls{gap:7px}.ms-theme-picker select{min-width:150px!important;max-width:190px!important}.ms-color-mode-button{height:30px;width:30px}}


/* 5.7 — modo oscuro consistente en Home, competiciones, tablas y tarjetas. */
html[data-tessirve-color-mode="dark"] .ms-home-day-nav{background:#161d27!important;border-color:#303947!important;color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-home-day-nav strong{color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-home-day-nav a{background:#202936!important;border:1px solid #344054!important;color:#e5e7eb!important}
html[data-tessirve-color-mode="dark"] .ms-home-day-nav a:hover{background:color-mix(in srgb,var(--theme-primary),#202936 70%)!important;color:#fff!important}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta time{color:#98a2b3!important}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta>span{background:#202936!important;color:#cbd5e1!important}
html[data-tessirve-color-mode="dark"] .ms-match-group-title strong,html[data-tessirve-color-mode="dark"] .ms-competition-title strong{color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-match-group-title>span,html[data-tessirve-color-mode="dark"] .ms-competition-title>span{color:#98a2b3!important}
html[data-tessirve-color-mode="dark"] .ms-compact-scoreline strong,html[data-tessirve-color-mode="dark"] .ms-compact-scoreline>b{color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-compact-venue{color:#98a2b3!important}
html[data-tessirve-color-mode="dark"] .ms-section-heading :is(h1,h2,h3,strong){color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-section-heading :is(span,small){color:#98a2b3!important}
html[data-tessirve-color-mode="dark"] .ms-competition-headliners article{background:#161d27!important;border-color:#303947!important;color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-competition-headliners article.is-champion{background:linear-gradient(145deg,#211d12,#161d27)!important;border-color:#8a6b17!important}
html[data-tessirve-color-mode="dark"] .ms-competition-headliners article.is-champion.is-pending{background:#161d27!important;border-color:#303947!important}
html[data-tessirve-color-mode="dark"] .ms-competition-headliners article.is-relegated{background:transparent!important;border-color:transparent!important}
html[data-tessirve-color-mode="dark"] .ms-competition-headliners :is(small,span){color:#98a2b3!important}
html[data-tessirve-color-mode="dark"] .ms-competition-headliners :is(strong,a){color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-competition-scorer-strip{background:linear-gradient(90deg,#211d12,#161d27)!important;border-color:#6f5b20!important}
html[data-tessirve-color-mode="dark"] .ms-competition-scorer-strip small{color:#e4c769!important}
html[data-tessirve-color-mode="dark"] .ms-competition-scorer-strip strong,html[data-tessirve-color-mode="dark"] .ms-competition-scorer-strip strong a{color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-competition-scorer-strip>span{color:#98a2b3!important}
html[data-tessirve-color-mode="dark"] .ms-standing-card,html[data-tessirve-color-mode="dark"] .ms-table-wrap,html[data-tessirve-color-mode="dark"] .ms-standing-table{background:#161d27!important;color:#f2f4f7!important;border-color:#303947!important}
html[data-tessirve-color-mode="dark"] .ms-standing-table :is(th,td){border-color:#303947!important;color:#e5e7eb!important}
html[data-tessirve-color-mode="dark"] .ms-standing-table thead th{background:#202936!important;color:#cbd5e1!important}
html[data-tessirve-color-mode="dark"] .ms-standing-table tbody tr:hover td{background:#1b2532!important}
html[data-tessirve-color-mode="dark"] .ms-phase-annual{border-color:#303947!important}
html[data-tessirve-color-mode="dark"] .ms-empty span{color:#cbd5e1!important}


/* 5.9 — navegación moderna + contraste oscuro real */
.ms-primary-nav{background:transparent!important;border:0!important}.ms-site-menu{background:rgba(16,24,40,.10);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:3px;gap:2px!important}.ms-site-menu a{border:1px solid transparent;border-radius:9px!important;padding:7px 11px!important;transition:background .15s,border-color .15s,color .15s,transform .15s}.ms-site-menu a:hover{background:color-mix(in srgb,var(--theme-primary),#fff 88%)!important;border-color:color-mix(in srgb,var(--theme-primary),transparent 70%)!important;color:color-mix(in srgb,var(--theme-primary),#111827 22%)!important;transform:translateY(-1px)}.ms-site-menu .current-menu-item>a{background:color-mix(in srgb,var(--theme-primary),#fff 84%)!important;border-color:color-mix(in srgb,var(--theme-primary),transparent 62%)!important;color:color-mix(in srgb,var(--theme-primary),#111827 18%)!important}
html[data-tessirve-color-mode="dark"] .ms-site-menu{background:#111923!important;border-color:#303b4b!important}html[data-tessirve-color-mode="dark"] .ms-site-menu a{color:#e8edf4!important}html[data-tessirve-color-mode="dark"] .ms-site-menu a:hover{background:#263244!important;border-color:#405169!important;color:#fff!important;transform:translateY(-1px)}html[data-tessirve-color-mode="dark"] .ms-site-menu .current-menu-item>a{background:color-mix(in srgb,var(--theme-primary),#182230 65%)!important;border-color:color-mix(in srgb,var(--theme-primary),#64748b 48%)!important;color:#fff!important}
html[data-tessirve-color-mode="dark"] body.tessirve-theme{background:#0c121b!important;color:#f3f5f8!important}html[data-tessirve-color-mode="dark"] .ms-site-header{border-color:#344054!important}html[data-tessirve-color-mode="dark"] .ms-site-main{background:#0c121b!important}
@media(max-width:782px){.ms-primary-nav{background:#111923!important;border:1px solid #303b4b!important;border-radius:0 0 14px 14px!important;padding:8px 10px!important}.ms-site-menu{border:0!important;background:transparent!important;padding:0}.ms-site-menu a{padding:9px 11px!important}}


/* 5.9.1 — menú como bloque redondeado y playoffs oscuros legibles */
.ms-site-menu{border-radius:14px!important;gap:0!important;overflow:hidden!important;padding:3px!important}.ms-site-menu li{margin:0!important}.ms-site-menu a{border-radius:9px!important;margin:0!important}
html[data-tessirve-color-mode="dark"] .ms-knockout-phase,html[data-tessirve-color-mode="dark"] .ms-knockout-mirror,html[data-tessirve-color-mode="dark"] .ms-bracket-round,html[data-tessirve-color-mode="dark"] .ms-bracket-final-center,html[data-tessirve-color-mode="dark"] .ms-planned-octavos .ms-knockout-match{background:#151d28!important;border-color:#344054!important;color:#f3f5f8!important;box-shadow:none!important}html[data-tessirve-color-mode="dark"] .ms-knockout-mirror{background:linear-gradient(180deg,#121a24,#151d28 52%,#121a24)!important}html[data-tessirve-color-mode="dark"] .ms-bracket-final-center{background:linear-gradient(180deg,color-mix(in srgb,var(--theme-primary),#151d28 78%),#151d28 50%,color-mix(in srgb,var(--theme-primary),#151d28 78%))!important}html[data-tessirve-color-mode="dark"] .ms-knockout-match,html[data-tessirve-color-mode="dark"] .ms-knockout-mirror .ms-knockout-match{background:#101823!important;border-color:#334155!important;color:#f3f5f8!important}html[data-tessirve-color-mode="dark"] .ms-knockout-team,html[data-tessirve-color-mode="dark"] .ms-knockout-team b,html[data-tessirve-color-mode="dark"] .ms-bracket-champion,html[data-tessirve-color-mode="dark"] .ms-bracket-final-card>h3,html[data-tessirve-color-mode="dark"] .ms-knockout-phase>header h2,html[data-tessirve-color-mode="dark"] .ms-bracket-round>h3{color:#f3f5f8!important}html[data-tessirve-color-mode="dark"] .ms-knockout-match-detail,html[data-tessirve-color-mode="dark"] .ms-knockout-intro span,html[data-tessirve-color-mode="dark"] .ms-bracket-champion small{color:#aeb8c6!important}html[data-tessirve-color-mode="dark"] .ms-bracket-side.is-left .ms-bracket-round:not(:last-child):after,html[data-tessirve-color-mode="dark"] .ms-bracket-side.is-right .ms-bracket-round:not(:first-child):before{border-color:#42526a!important}html[data-tessirve-color-mode="dark"] .ms-knockout-champion-path{background:#151d28!important;border-color:#344054!important;color:#f3f5f8!important}

/* 5.9.2 — header limpio, escudo entero y ganadores de playoffs ligados al theme. */
.ms-site-menu{
  border-color:transparent!important;
  box-shadow:none!important;
  clip-path:inset(0 round 12px);
  overflow:hidden!important;
}
.ms-site-menu li:first-child>a{border-top-left-radius:9px!important;border-bottom-left-radius:9px!important}
.ms-site-menu li:last-child>a{border-top-right-radius:9px!important;border-bottom-right-radius:9px!important}
.ms-header-theme-crest{
  overflow:visible!important;
  padding:3px!important;
}
.ms-header-theme-crest img{
  box-sizing:border-box!important;
  height:36px!important;
  max-height:36px!important;
  max-width:36px!important;
  object-fit:contain!important;
  object-position:center!important;
  width:36px!important;
}
@media(max-width:782px){
  .ms-header-theme-crest{padding:4px!important}
  .ms-header-theme-crest img{height:30px!important;max-height:30px!important;max-width:30px!important;width:30px!important}
}

/* El que avanza de ronda se marca con el club elegido, sin competir con el campeón. */
.ms-knockout-team.is-winner{
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--theme-primary,#175cd3),#fff 84%) 0%,
    color-mix(in srgb,var(--theme-primary,#175cd3),#fff 94%) 70%,
    transparent 100%)!important;
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--theme-primary,#175cd3),#fff 22%)!important;
}
.ms-knockout-team.is-winner b,.ms-knockout-team.is-winner strong{
  color:color-mix(in srgb,var(--theme-primary,#175cd3),#101828 30%)!important;
}
html[data-tessirve-color-mode="dark"] .ms-knockout-team.is-winner{
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--theme-primary,#175cd3),#101823 67%) 0%,
    color-mix(in srgb,var(--theme-primary,#175cd3),#101823 83%) 72%,
    #101823 100%)!important;
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--theme-primary,#175cd3),#fff 18%)!important;
}
html[data-tessirve-color-mode="dark"] .ms-knockout-team.is-winner b,
html[data-tessirve-color-mode="dark"] .ms-knockout-team.is-winner strong{color:#fff!important}

/* Camino del campeón: nada blanco en modo oscuro. */
html[data-tessirve-color-mode="dark"] .ms-knockout-champion-path>div>a{
  background:#101823!important;
  border-color:#39475a!important;
  color:#f3f5f8!important;
}
html[data-tessirve-color-mode="dark"] .ms-knockout-champion-path>div>a:hover{
  background:color-mix(in srgb,var(--theme-primary,#175cd3),#101823 82%)!important;
  border-color:color-mix(in srgb,var(--theme-primary,#175cd3),#64748b 52%)!important;
}
html[data-tessirve-color-mode="dark"] .ms-knockout-champion-path>div>a b{color:#f3f5f8!important}
html[data-tessirve-color-mode="dark"] .ms-knockout-champion-path>div>a small{color:#aeb8c6!important}

/* 5.9.3 — navegación sin sobrantes en las cuatro esquinas + superficie oscura común. */
:root{--ms-surface:#f8fafc}
html[data-tessirve-color-mode="dark"]{--ms-surface:#202936}
@media(min-width:783px){
 .ms-primary-nav{background:transparent!important;border:0!important;border-radius:14px!important;box-shadow:none!important;overflow:visible!important;padding:0!important}
 .ms-site-menu{background:rgba(16,24,40,.28)!important;border-radius:14px!important;clip-path:inset(0 round 14px);isolation:isolate;overflow:hidden!important;padding:3px!important}
 html[data-tessirve-color-mode="dark"] .ms-site-menu{background:#111923!important}
}

/* ==========================================================
   TESSIRVE 5.9.5 — compactación de competencia + historial dark
   ========================================================== */
/* Destacados de competencia: sin altura sobrante. */
.ms-competition-headliners{
  align-items:stretch!important;
  gap:9px!important;
  margin:11px 0 9px!important;
}
.ms-competition-headliners article{
  align-content:center!important;
  gap:3px!important;
  height:auto!important;
  min-height:0!important;
  padding:9px 10px!important;
}
.ms-competition-headliners article>small{
  line-height:1.1!important;
  margin:0 0 2px!important;
  min-height:0!important;
}
.ms-competition-headliners .is-champion .ms-champion-crest{
  margin:2px 0!important;
}
.ms-competition-headliners .is-champion .ms-champion-crest .ms-crest,
.ms-competition-headliners .is-champion .ms-champion-crest .ms-crest-fallback{
  height:44px!important;
  max-width:44px!important;
  width:44px!important;
}
.ms-competition-headliners .ms-pending-champion-mark{
  height:38px!important;
  margin:1px auto!important;
  width:38px!important;
}
.ms-competition-headliners .ms-pending-champion-mark svg{
  height:36px!important;
  width:32px!important;
}
.ms-competition-headliners .ms-relegated-list.is-crests-only .ms-crest,
.ms-competition-headliners .ms-relegated-list.is-crests-only .ms-crest-fallback{
  height:44px!important;
  max-width:44px!important;
  width:44px!important;
}
.ms-competition-headliners article.is-pending>strong{
  margin:0!important;
}
.ms-competition-headliners article.is-pending>span:not(.ms-pending-champion-mark){
  margin:0!important;
}

/* Goleador: pieza compacta, centrada y visualmente separada. */
.ms-competition-scorer-strip{
  align-items:center!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--theme-primary),#fff 94%),color-mix(in srgb,var(--theme-primary),#fff 98%))!important;
  border-color:color-mix(in srgb,var(--theme-primary),#d0d5dd 72%)!important;
  display:flex!important;
  gap:10px!important;
  justify-content:center!important;
  margin:0 0 13px!important;
  min-height:42px!important;
  padding:7px 12px!important;
  text-align:center!important;
}
.ms-scorer-ball{
  align-items:center;
  background:color-mix(in srgb,var(--theme-primary),#fff 88%);
  border:1px solid color-mix(in srgb,var(--theme-primary),#d0d5dd 70%);
  border-radius:50%;
  display:inline-flex;
  flex:0 0 28px;
  font-family:"Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-size:15px!important;
  height:28px;
  justify-content:center;
  line-height:1;
  width:28px;
}
.ms-scorer-copy{align-items:baseline;display:flex;gap:8px;min-width:0}
.ms-scorer-copy small{font-size:.61rem!important;margin:0!important}
.ms-scorer-copy strong,.ms-scorer-copy strong a{font-size:.84rem!important}
.ms-scorer-total{
  align-items:baseline;
  background:color-mix(in srgb,var(--theme-primary),#fff 91%);
  border:1px solid color-mix(in srgb,var(--theme-primary),#d0d5dd 72%);
  border-radius:999px;
  display:inline-flex;
  gap:4px;
  padding:4px 8px;
}
.ms-scorer-total b{color:var(--ms-ink)!important;font-size:.8rem;line-height:1}
.ms-scorer-total small{color:var(--ms-muted)!important;font-size:.58rem!important;letter-spacing:0!important;text-transform:none!important}

/* Historial del club: los tonos de resultado respetan el modo oscuro. */
html[data-tessirve-color-mode="dark"] .ms-rival-history-grid>a{
  color:var(--ms-ink)!important;
}
html[data-tessirve-color-mode="dark"] .ms-rival-history-grid>a.is-leading{
  background:#14271f!important;
  border-color:#35664d!important;
}
html[data-tessirve-color-mode="dark"] .ms-rival-history-grid>a.is-level{
  background:#282313!important;
  border-color:#6f602a!important;
}
html[data-tessirve-color-mode="dark"] .ms-rival-history-grid>a.is-trailing{
  background:#2a181a!important;
  border-color:#714046!important;
}
html[data-tessirve-color-mode="dark"] .ms-rival-record-grid i{
  background:var(--ms-surface)!important;
  border-color:var(--ms-line)!important;
}
html[data-tessirve-color-mode="dark"] .ms-rival-record-grid i b,
html[data-tessirve-color-mode="dark"] .ms-rival-name{
  color:var(--ms-ink)!important;
}
html[data-tessirve-color-mode="dark"] .ms-rival-record-grid i small{
  background:var(--ms-surface-strong)!important;
  color:#cbd5e1!important;
}
html[data-tessirve-color-mode="dark"] .ms-rival-pj{
  color:var(--ms-muted)!important;
}
html[data-tessirve-color-mode="dark"] .ms-competition-scorer-strip{
  background:linear-gradient(90deg,color-mix(in srgb,var(--theme-primary),#161d27 86%),#161d27)!important;
  border-color:color-mix(in srgb,var(--theme-primary),#405169 58%)!important;
}
html[data-tessirve-color-mode="dark"] .ms-scorer-ball,
html[data-tessirve-color-mode="dark"] .ms-scorer-total{
  background:var(--ms-surface)!important;
  border-color:var(--ms-line)!important;
}
html[data-tessirve-color-mode="dark"] .ms-scorer-copy small{color:#d8bf67!important}
html[data-tessirve-color-mode="dark"] .ms-scorer-copy strong,
html[data-tessirve-color-mode="dark"] .ms-scorer-copy strong a,
html[data-tessirve-color-mode="dark"] .ms-scorer-total b{color:var(--ms-ink)!important}
html[data-tessirve-color-mode="dark"] .ms-badge-documentation-note{color:var(--ms-muted)!important}

@media(max-width:680px){
  .ms-competition-headliners article{padding:8px!important}
  .ms-competition-headliners .is-champion .ms-champion-crest .ms-crest,
  .ms-competition-headliners .is-champion .ms-champion-crest .ms-crest-fallback,
  .ms-competition-headliners .ms-relegated-list.is-crests-only .ms-crest,
  .ms-competition-headliners .ms-relegated-list.is-crests-only .ms-crest-fallback{height:38px!important;max-width:38px!important;width:38px!important}
  .ms-competition-scorer-strip{gap:7px!important;min-height:40px!important;padding:6px 8px!important}
  .ms-scorer-copy{align-items:center;flex-direction:column;gap:0}
  .ms-scorer-copy small{line-height:1.05}
}

/* ==========================================================
   TESSIRVE 5.9.5 — cara a cara con contraste correcto + tarjetas de partidos más útiles
   ========================================================== */
/* Destacados de competencia todavía más compactos. */
.ms-competition-headliners{gap:8px!important;margin:8px 0 8px!important}
.ms-competition-headliners article{min-height:88px!important;padding:8px 9px!important}
.ms-competition-headliners article>small{font-size:.66rem!important}
.ms-competition-headliners article>strong{font-size:1.02rem!important;line-height:1.02!important}
.ms-competition-headliners .is-relegated .ms-relegated-list.is-crests-only .ms-crest,
.ms-competition-headliners .is-relegated .ms-relegated-list.is-crests-only .ms-crest-fallback{height:52px!important;max-width:52px!important;width:52px!important}

.ms-competition-scorer-strip{
  border-radius:14px!important;
  box-shadow:0 1px 0 rgba(16,24,40,.04),inset 0 1px 0 rgba(255,255,255,.35)!important;
  gap:11px!important;
}
.ms-scorer-copy{display:grid;gap:1px;min-width:0;text-align:left}
.ms-scorer-copy small{margin:0!important}
.ms-scorer-total{
  align-items:center;
  background:rgba(255,255,255,.56);
  border:1px solid color-mix(in srgb,var(--theme-primary),#d0d5dd 68%);
  border-radius:999px;
  display:inline-flex;
  gap:6px;
  justify-content:center;
  padding:4px 10px;
}
.ms-scorer-total b{color:#101828;font-size:1rem;line-height:1}
.ms-scorer-total small{font-size:.62rem!important;line-height:1}

/* Historial / cara a cara: sin piezas lavadas en modo oscuro. */
html[data-tessirve-color-mode="dark"] .ms-h2h-result{color:#f3f5f8!important}
html[data-tessirve-color-mode="dark"] .ms-h2h-goals-card{
  background:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-team-a,#175cd3),#111923 84%),#1a2230 50%,color-mix(in srgb,var(--ms-h2h-team-b,#d92d20),#111923 84%))!important;
  border-color:#42546a!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html[data-tessirve-color-mode="dark"] .ms-h2h-goals-card>small{color:#cbd5e1!important}
html[data-tessirve-color-mode="dark"] .ms-h2h-goals strong,
html[data-tessirve-color-mode="dark"] .ms-h2h-goals i{color:#f8fafc!important}
html[data-tessirve-color-mode="dark"] .ms-rival-history-grid>a{
  background:#18202c!important;
  border-color:#334155!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
}
html[data-tessirve-color-mode="dark"] .ms-rival-history-grid>a:hover,
html[data-tessirve-color-mode="dark"] .ms-rival-history-grid>a:focus-visible{background:#1d2734!important}
html[data-tessirve-color-mode="dark"] .ms-rival-record-grid i{background:#202936!important;border-color:#3b4859!important}
html[data-tessirve-color-mode="dark"] .ms-rival-record-grid i b{color:#f8fafc!important}
html[data-tessirve-color-mode="dark"] .ms-rival-record-grid i small{background:#141b25!important;color:#cbd5e1!important}
html[data-tessirve-color-mode="dark"] .ms-rival-name{color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-rival-pj{color:#98a2b3!important}
html[data-tessirve-color-mode="dark"] .ms-classic-rival-card{box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important}
html[data-tessirve-color-mode="dark"] .ms-classic-full-link{color:#f8fafc!important}

/* Fixture/resultados: tarjeta tipo Promiedos pero más prolija. */
.ms-compact-match-grid{background:var(--ms-line)!important;gap:1px!important}
.is-two-columns .ms-compact-match-grid{gap:1px!important}
.ms-compact-match{
  background:linear-gradient(180deg,#ffffff,#fbfcfe)!important;
  gap:10px!important;
  min-height:0!important;
  padding:14px 16px!important;
}
.ms-compact-match+.ms-compact-match{border-top:0!important}
.ms-compact-match:hover{background:#f7fbff!important;box-shadow:inset 4px 0 var(--ms-blue)!important}
.ms-compact-scoreline{align-items:center!important;gap:16px!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}
.ms-compact-scoreline>span{align-items:center!important;display:flex!important;gap:10px!important;min-width:0!important}
.ms-compact-scoreline .is-home{justify-content:flex-end!important;text-align:right!important}
.ms-compact-scoreline .is-away{justify-content:flex-start!important;text-align:left!important}
.ms-compact-scoreline .ms-crest,.ms-compact-scoreline .ms-crest-fallback{height:32px!important;max-width:32px!important;width:32px!important}
.ms-compact-scoreline strong{align-items:center;display:flex;flex-wrap:wrap;font-size:.95rem!important;font-weight:900!important;gap:6px;line-height:1.16;white-space:normal!important}
.ms-compact-scoreline strong .ms-country-flag{font-size:.8rem;line-height:1}
.ms-compact-center{align-items:center;display:flex;flex-direction:column;gap:6px;min-width:118px;text-align:center}
.ms-compact-score-pill{align-items:center;display:flex;gap:8px;justify-content:center;min-height:36px}
.ms-compact-score-pill>b{color:#101828;font-family:var(--ms-title-font)!important;font-size:1.45rem!important;letter-spacing:.02em;line-height:1}
.ms-compact-score-pill>span{color:#344054;font-size:1rem;font-weight:900;line-height:1}
.ms-compact-score-pill>b:only-child{font-size:1.08rem!important;letter-spacing:.05em}
.ms-match-status-chip{
  background:#f8fafc;
  border:1px solid #d0d5dd;
  border-radius:999px;
  color:#344054;
  display:inline-flex;
  font-size:.64rem;
  font-style:normal;
  font-weight:900;
  letter-spacing:.06em;
  line-height:1;
  padding:5px 10px;
  text-transform:uppercase;
}
.ms-match-status-chip.is-scheduled{background:#eef4ff;border-color:#bfd1ff;color:#175cd3}
.ms-match-status-chip.is-live{background:#ecfdf3;border-color:#86efac;color:#067647}
.ms-match-status-chip.is-final{background:#f4f4f5;border-color:#d4d4d8;color:#3f3f46}
.ms-match-status-chip.is-penalties{background:#fff7ed;border-color:#fdba74;color:#c2410c}
.ms-match-status-chip.is-postponed{background:#fef2f2;border-color:#fecaca;color:#b42318}
.ms-match-status-chip.is-neutral{background:#f8fafc;border-color:#d0d5dd;color:#475467}
.ms-compact-substatus{color:#667085;font-size:.66rem;font-style:normal;font-weight:700;line-height:1.15}
.ms-compact-red-card{align-items:center;display:inline-flex;gap:4px;margin-left:2px;vertical-align:middle}
.ms-compact-red-card i{background:#d92d20;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08);display:inline-block;height:10px;width:7px}
.ms-compact-red-card em{color:#b42318;font-size:.68rem;font-style:normal;font-weight:900;line-height:1}
.ms-compact-footer{display:grid;gap:6px!important}
.ms-compact-venue{color:#667085!important;display:block;font-size:.71rem!important;font-weight:700;line-height:1.2;text-align:center}
.ms-compact-events{display:grid;gap:10px;grid-template-columns:1fr 1fr}
.ms-compact-events>span{color:#475467;display:block;font-size:.67rem;font-weight:700;line-height:1.25;min-width:0}
.ms-compact-events>.is-home{text-align:right}
.ms-compact-events>.is-away{text-align:left}

html[data-tessirve-color-mode="dark"] .ms-compact-match{
  background:linear-gradient(180deg,#121b28,#101823)!important;
  border-color:#334155!important;
}
html[data-tessirve-color-mode="dark"] .ms-compact-match:hover{background:#172231!important}
html[data-tessirve-color-mode="dark"] .ms-compact-scoreline strong,
html[data-tessirve-color-mode="dark"] .ms-compact-score-pill>b,
html[data-tessirve-color-mode="dark"] .ms-compact-score-pill>span{color:#f8fafc!important}
html[data-tessirve-color-mode="dark"] .ms-compact-venue{color:#98a2b3!important}
html[data-tessirve-color-mode="dark"] .ms-compact-events>span{color:#d0d5dd!important}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-scheduled{background:#182b4d!important;border-color:#2a4b7e!important;color:#dbeafe!important}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-live{background:#113125!important;border-color:#1a7f4d!important;color:#d1fadf!important}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-final{background:#202936!important;border-color:#475467!important;color:#e4e7ec!important}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-penalties{background:#3a2612!important;border-color:#9a6700!important;color:#fedf89!important}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-postponed{background:#3a1517!important;border-color:#912018!important;color:#fecdca!important}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-neutral{background:#202936!important;border-color:#475467!important;color:#d0d5dd!important}
html[data-tessirve-color-mode="dark"] .ms-compact-substatus{color:#98a2b3!important}

@media(max-width:680px){
  .ms-competition-headliners article{min-height:82px!important;padding:8px!important}
  .ms-competition-scorer-strip{gap:8px!important;padding:7px 9px!important}
  .ms-scorer-total{padding:4px 8px}
  .ms-compact-match{padding:12px 9px!important}
  .ms-compact-scoreline{gap:7px!important;grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr)!important}
  .ms-compact-scoreline .ms-crest,.ms-compact-scoreline .ms-crest-fallback{height:26px!important;max-width:26px!important;width:26px!important}
  .ms-compact-scoreline strong{font-size:.78rem!important;gap:4px}
  .ms-compact-center{gap:5px;min-width:88px}
  .ms-compact-score-pill>b{font-size:1.2rem!important}
  .ms-compact-score-pill>b:only-child{font-size:.92rem!important}
  .ms-match-status-chip{font-size:.58rem;padding:4px 8px}
  .ms-compact-substatus{font-size:.6rem}
  .ms-compact-events{gap:4px;grid-template-columns:1fr}
  .ms-compact-events>.is-home,.ms-compact-events>.is-away{text-align:left}
}

/* 5.9.5 — Cara a Cara oscuro + marcador compacto con estado real. */
.ms-h2h-goals-card{
  background:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-team-a,#175cd3),var(--ms-card) 91%),var(--ms-card) 50%,color-mix(in srgb,var(--ms-h2h-team-b,#d92d20),var(--ms-card) 91%))!important;
  border-color:var(--ms-line)!important;
  color:var(--ms-ink)!important;
}
.ms-h2h-goals-card>small{color:var(--ms-muted)!important}
.ms-h2h-goals-card .ms-h2h-goals strong,.ms-h2h-goals-card .ms-h2h-goals i{color:var(--ms-ink)!important}
html[data-tessirve-color-mode="dark"] .ms-h2h-goals-card{
  background:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-team-a,#175cd3),#151d28 86%),#151d28 50%,color-mix(in srgb,var(--ms-h2h-team-b,#d92d20),#151d28 86%))!important;
  border-color:#3b4b60!important;
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] .ms-h2h-goals-card>small{color:#aeb8c6!important}
html[data-tessirve-color-mode="dark"] .ms-h2h-goals-card .ms-h2h-goals strong,
html[data-tessirve-color-mode="dark"] .ms-h2h-goals-card .ms-h2h-goals i{color:#f8fafc!important}

.ms-compact-scoreline .ms-crest,.ms-compact-scoreline .ms-crest-fallback{height:36px!important;max-width:36px!important;width:36px!important}
.ms-compact-scoreline .is-home{justify-content:flex-end!important}
.ms-compact-scoreline .is-away{justify-content:flex-start!important}
.ms-compact-center{gap:5px!important;min-width:112px!important}
.ms-compact-score-pill{min-height:31px!important}
.ms-compact-score-pill>b{font-size:1.58rem!important}
.ms-compact-score-pill>b:only-child{font-size:1.12rem!important}
.ms-match-status-chip{font-size:.62rem!important;padding:5px 10px!important}
.ms-compact-events{margin:1px auto 0;max-width:720px;width:100%}
.ms-compact-events>span{font-size:.66rem!important;line-height:1.3!important}
.ms-compact-venue{font-size:.66rem!important;font-weight:650!important;margin-top:1px}
.ms-compact-red-card i{height:9px!important;width:6px!important}
.ms-compact-red-card em{font-size:.61rem!important}
.ms-compact-scoreline strong .ms-country-flag{font-size:.76rem!important;margin-left:1px}

@media(max-width:680px){
  .ms-compact-scoreline{grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr)!important}
  .ms-compact-scoreline .ms-crest,.ms-compact-scoreline .ms-crest-fallback{height:29px!important;max-width:29px!important;width:29px!important}
  .ms-compact-center{min-width:76px!important}
  .ms-compact-score-pill>b{font-size:1.3rem!important}
  .ms-compact-score-pill>b:only-child{font-size:.94rem!important}
  .ms-match-status-chip{font-size:.55rem!important;padding:4px 7px!important}
  .ms-compact-events{grid-template-columns:1fr 1fr!important}
  .ms-compact-events>.is-home{text-align:right!important}
  .ms-compact-events>.is-away{text-align:left!important}
}


/* 5.9.6 — escudos de equipos sin fondo/cuadro artificial, también en dark mode. */
.ms-team-card img.ms-crest{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;object-fit:contain!important}
html[data-tessirve-color-mode="dark"] .ms-team-card img.ms-crest{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}


/* 5.9.7 — header sin recorte + ficha institucional consistente. */
.ms-site-header,.ms-site-header-inner{overflow:visible!important}
.ms-site-header-inner{box-sizing:border-box!important;padding-right:24px!important}
.ms-primary-nav{flex:0 1 auto!important;min-width:0!important}
.ms-header-theme-crest{align-items:center!important;box-sizing:border-box!important;display:flex!important;flex:0 0 46px!important;height:46px!important;justify-content:center!important;margin-left:10px!important;overflow:visible!important;padding:3px!important;width:46px!important}
.ms-header-theme-crest img{display:block!important;height:40px!important;max-height:40px!important;max-width:40px!important;object-fit:contain!important;object-position:center!important;opacity:.58!important;transform:none!important;width:40px!important}
.ms-header-theme-crest img:hover{opacity:.72!important;transform:none!important}
html[data-tessirve-color-mode="dark"] .ms-club-identity>.ms-definition-list dt{color:#b4c2d3!important}
html[data-tessirve-color-mode="dark"] .ms-club-identity .ms-social-links.is-compact a{background:#202936!important;border-color:#475467!important;color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-club-identity .ms-social-links.is-compact a:hover,
html[data-tessirve-color-mode="dark"] .ms-club-identity .ms-social-links.is-compact a:focus-visible{background:#2a3545!important;border-color:#667085!important;color:#fff!important}
@media(max-width:782px){
 .ms-site-header-inner{padding-right:12px!important}
 .ms-header-theme-crest{flex-basis:38px!important;height:38px!important;margin-left:4px!important;padding:3px!important;width:38px!important}
 .ms-header-theme-crest img{height:32px!important;max-height:32px!important;max-width:32px!important;width:32px!important}
}

/* 5.9.8 — header con escudo entero/inclinado + contraste de fixture/estadísticas. */
.ms-site-header,.ms-site-header-inner,.ms-header-theme-crest{overflow:visible!important}
.ms-header-theme-crest{
  clip-path:none!important;
  contain:none!important;
  flex:0 0 52px!important;
  height:50px!important;
  margin-left:8px!important;
  padding:7px!important;
  width:52px!important;
}
.ms-header-theme-crest img{
  clip-path:none!important;
  contain:none!important;
  display:block!important;
  height:auto!important;
  max-height:36px!important;
  max-width:36px!important;
  object-fit:contain!important;
  overflow:visible!important;
  transform:rotate(5deg) scale(.94)!important;
  transform-origin:center!important;
  transition:opacity .18s ease,transform .2s ease!important;
  width:auto!important;
}
.ms-header-theme-crest img:hover{opacity:.78!important;transform:rotate(0deg) scale(1.04)!important}
html[data-tessirve-color-mode="dark"] .ms-round-carousel,
html[data-tessirve-color-mode="dark"] .ms-round-panel,
html[data-tessirve-color-mode="dark"] .ms-round-matches{
  background:var(--ms-card,#161d27)!important;
  border-color:var(--ms-line,#303947)!important;
  color:var(--ms-ink,#f2f4f7)!important;
}
html[data-tessirve-color-mode="dark"] .ms-round-toolbar{background:#1b2532!important;border-color:#344054!important;color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-round-toolbar button,
html[data-tessirve-color-mode="dark"] .ms-round-toolbar select{background:#111923!important;border-color:#405169!important;color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-fixture-match{background:#161d27!important;border-color:#303947!important;color:#f2f4f7!important}
html[data-tessirve-color-mode="dark"] .ms-fixture-match:hover{background:#1b2532!important}
html[data-tessirve-color-mode="dark"] .ms-fixture-match>time,
html[data-tessirve-color-mode="dark"] .ms-fixture-scoreline>small{color:#aeb8c6!important}
html[data-tessirve-color-mode="dark"] .ms-fixture-scoreline strong,
html[data-tessirve-color-mode="dark"] .ms-fixture-scoreline>b{color:#f8fafc!important}
html[data-tessirve-color-mode="dark"] .ms-competition-stat-card h3,
html[data-tessirve-color-mode="dark"] .ms-stat-card-list :is(a,b),
html[data-tessirve-color-mode="dark"] .ms-player-stat-line,
html[data-tessirve-color-mode="dark"] .ms-player-stat-line a{color:#f3f5f8!important}
html[data-tessirve-color-mode="dark"] .ms-stat-card-list strong{background:#202936!important;border:1px solid #3b4b60!important;color:#dbe7f5!important}
html[data-tessirve-color-mode="dark"] .ms-stat-card-list li.is-leader strong{background:var(--theme-primary,#175cd3)!important;border-color:color-mix(in srgb,var(--theme-primary,#175cd3),#fff 24%)!important;color:#fff!important}
html[data-tessirve-color-mode="dark"] .ms-stat-card-empty,
html[data-tessirve-color-mode="dark"] .ms-competition-stats-heading>span{color:#aeb8c6!important}
@media(max-width:782px){
 .ms-header-theme-crest{flex-basis:46px!important;height:46px!important;margin-left:3px!important;padding:7px!important;width:46px!important}
 .ms-header-theme-crest img{height:auto!important;max-height:32px!important;max-width:32px!important;transform:rotate(5deg) scale(.93)!important;width:auto!important}
 .ms-header-theme-crest img:hover{transform:rotate(0deg) scale(1.03)!important}
}

/* 5.9.9 — ajustes visuales finales de fixture y estadios. */
.ms-fixture-scoreline strong{font-size:.9rem!important}
.ms-fixture-center{align-items:center;display:flex!important;flex-direction:column;gap:4px;justify-content:center;text-align:center}
.ms-fixture-result{font-size:1.28rem!important;font-weight:900!important;line-height:1!important}
.ms-fixture-versus{color:var(--ms-muted)!important;font-size:.72rem!important;font-weight:900!important;line-height:1!important}
.ms-fixture-center .ms-match-status-chip{font-size:.56rem!important;line-height:1!important;padding:4px 7px!important}
html[data-tessirve-color-mode="dark"] .ms-stadium-data-grid>span{background:var(--ms-surface,#202936)!important;border-color:var(--ms-line,#3b4b60)!important;color:var(--ms-ink,#f3f5f8)!important}
html[data-tessirve-color-mode="dark"] .ms-stadium-data-grid small,
html[data-tessirve-color-mode="dark"] .ms-stadium-sample{color:var(--ms-muted,#aeb8c6)!important}
html[data-tessirve-color-mode="dark"] .ms-stadium-data-grid b{color:var(--ms-ink,#f3f5f8)!important}
html[data-tessirve-color-mode="dark"] .ms-mini-percent .is-win{background:#14352a!important;border:1px solid #285b49!important;color:#7ee2b8!important}
html[data-tessirve-color-mode="dark"] .ms-mini-percent .is-draw{background:#3b3016!important;border:1px solid #6f5b25!important;color:#f5cf72!important}
html[data-tessirve-color-mode="dark"] .ms-mini-percent .is-loss{background:#3a1d20!important;border:1px solid #6f3439!important;color:#ffaaa4!important}
.ms-entity-venue #entidad-ficha>.ms-info-grid{margin-bottom:24px!important}
.ms-entity-venue .ms-entity-kpis{gap:12px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:0 0 30px!important}
.ms-entity-venue .ms-entity-kpis+.ms-section-heading{margin-top:8px!important;margin-bottom:16px!important}
@media(max-width:780px){.ms-entity-venue .ms-entity-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-bottom:24px!important}.ms-fixture-scoreline strong{font-size:.76rem!important}.ms-fixture-result{font-size:1.08rem!important}.ms-fixture-versus{font-size:.62rem!important}.ms-fixture-center .ms-match-status-chip{font-size:.5rem!important;padding:3px 5px!important}}

/* 5.9.18 — la navegación diaria de la home hereda el color de identidad activo. */
.ms-home-day-nav{--ms-day-nav-accent:var(--theme-primary,#175cd3)}
.ms-home-day-nav .ms-home-day-arrow:hover{border-color:color-mix(in srgb,var(--ms-day-nav-accent),var(--theme-line,#d0d5dd) 48%)!important}

/* 5.9.21 — bracket vertical móvil: contraste coherente con el modo oscuro. */
@media(max-width:720px){
  html[data-tessirve-color-mode="dark"] .ms-knockout-mobile-tree{
    background:linear-gradient(180deg,#121a24 0%,#151d28 48%,#121a24 100%)!important;
    border-color:#344054!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-mobile-bracket-center{
    background:linear-gradient(180deg,color-mix(in srgb,var(--theme-primary),#151d28 78%),#151d28 50%,color-mix(in srgb,var(--theme-primary),#151d28 78%))!important;
    border-color:#42526a!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-mobile-bracket-stage>h3{color:#aeb8c6!important}
  html[data-tessirve-color-mode="dark"] .ms-mobile-bracket-center .ms-mobile-bracket-stage>h3{color:#f3f5f8!important}
  html[data-tessirve-color-mode="dark"] .ms-mobile-bracket-branch .ms-knockout-match,
  html[data-tessirve-color-mode="dark"] .ms-mobile-bracket-center .ms-knockout-match{background:#101823!important;border-color:#334155!important;color:#f3f5f8!important}
  html[data-tessirve-color-mode="dark"] .ms-mobile-bracket-branch .ms-knockout-team,
  html[data-tessirve-color-mode="dark"] .ms-mobile-bracket-center .ms-knockout-team,
  html[data-tessirve-color-mode="dark"] .ms-mobile-bracket-branch .ms-knockout-team b,
  html[data-tessirve-color-mode="dark"] .ms-mobile-bracket-center .ms-knockout-team b{color:#f3f5f8!important}
}

/* 5.9.22 — bracket móvil tipo árbol: dark mode con tarjetas flotantes y líneas del theme. */
@media(max-width:720px){
  html[data-tessirve-color-mode="dark"] .ms-knockout-mobile-fotmob{
    --ms-fm-line:color-mix(in srgb,var(--theme-primary,#4f86ff),#6f7f99 36%);
  }
  html[data-tessirve-color-mode="dark"] .ms-knockout-mobile-fotmob .ms-knockout-match{
    background:#151d28!important;
    border-color:#344054!important;
    box-shadow:0 6px 16px rgba(0,0,0,.18)!important;
    color:#f3f5f8!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-knockout-mobile-fotmob .ms-knockout-team,
  html[data-tessirve-color-mode="dark"] .ms-knockout-mobile-fotmob .ms-knockout-team b{color:#f3f5f8!important}
  html[data-tessirve-color-mode="dark"] .ms-knockout-mobile-fotmob .ms-knockout-team.is-winner{
    background:linear-gradient(90deg,color-mix(in srgb,var(--theme-primary,#4f86ff),#151d28 64%),transparent)!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-fm-round-label{color:#9eabba!important}
  html[data-tessirve-color-mode="dark"] .ms-fm-round-label:before,
  html[data-tessirve-color-mode="dark"] .ms-fm-round-label:after{background:#344054!important}
  html[data-tessirve-color-mode="dark"] .ms-fm-final-match .ms-knockout-match{border-color:#786729!important}
  html[data-tessirve-color-mode="dark"] .ms-fm-champion{
    background:linear-gradient(110deg,#262414,#1a2029)!important;
    border-color:#6f6028!important;
    color:#f3f5f8!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-fm-champion strong{color:#f3f5f8!important}
  html[data-tessirve-color-mode="dark"] .ms-fm-champion small{color:#d8bd55!important}
}


/* 5.9.23 — eliminados legibles en el nuevo playoff compacto. */
html[data-tessirve-color-mode="dark"] .ms-knockout-match .ms-knockout-team.is-eliminated{
  color:#98a2b3!important;
}
html[data-tessirve-color-mode="dark"] .ms-knockout-mobile-fotmob .ms-knockout-team.is-eliminated:after{
  background:#98a2b3!important;
}

/* 5.9.24 — remate visual del fixture en móvil. La estructura vive en Core. */
@media(max-width:720px){
  .ms-competition-season-tabs .ms-round-toolbar{margin-inline:auto!important}
  .ms-competition-season-tabs .ms-fixture-scoreline .ms-crest,
  .ms-competition-season-tabs .ms-fixture-scoreline .ms-crest-fallback{filter:none!important}
  html[data-tessirve-color-mode="dark"] .ms-phase-headliner-slot .ms-competition-headliners:has(>article:only-child){background:transparent!important}
}


/* 5.9.25 — el selector de fecha mantiene el centro óptico en móvil. */
@media(max-width:720px){
  .ms-competition-season-tabs .ms-round-select{margin-inline:auto!important}
  .ms-competition-season-tabs .ms-fixture-kickoff{font-family:var(--ms-ui-font)!important}
}

/* 5.12.1 — Identidad TESSIRVE prolija: azul profundo en oscuro y azul claro en claro. */
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-site-header{
  background:linear-gradient(115deg,#f8fbff 0%,#e9f2ff 48%,#d7e8ff 100%)!important;
  border-color:#b8cff0!important;
  box-shadow:0 5px 18px rgba(21,71,133,.08)!important;
}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-brand,
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-brand-name{color:#0d2747!important;text-shadow:none!important}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-brand-mark{
  background:linear-gradient(135deg,#edf5ff,#cfe2fb)!important;
  box-shadow:0 0 0 1px #9ebee8!important;
  color:#12345d!important;
}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-site-menu{background:rgba(13,39,71,.055)!important;border-color:rgba(13,39,71,.10)!important}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-site-menu a{color:#173554!important}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-site-menu a:hover,
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-site-menu .current-menu-item>a{background:#fff!important;border-color:#b8cff0!important;color:#0d3a72!important}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-menu-toggle>span:not(.screen-reader-text){background:#173554!important}

html[data-tessirve-theme="neutral"][data-tessirve-color-mode="dark"] .ms-site-header{
  background:linear-gradient(115deg,#102f63 0%,#10264b 52%,#0b1d38 100%)!important;
  border-color:#294f81!important;
}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="dark"] .ms-brand,
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="dark"] .ms-brand-name{color:#fff!important;text-shadow:1px 1px 0 rgba(0,0,0,.26)!important}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="dark"] .ms-brand-mark{background:linear-gradient(135deg,#1d63b8,#102a52)!important;color:#fff!important}

@media(max-width:782px){
 html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-primary-nav{background:#f4f8fe!important;border-color:#b8cff0!important}
 html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-primary-nav .ms-site-menu a{color:#173554!important}
}


/* 5.12.2 — header: buscador global separado + identidad neutral restaurada. */
.ms-header-search{flex:0 0 auto;margin-left:8px;position:relative}
.ms-header-search-toggle{
  align-items:center;
  appearance:none;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);
  border-radius:10px;
  color:#fff;
  cursor:pointer;
  display:flex;
  height:38px;
  justify-content:center;
  padding:0;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
  width:40px;
}
.ms-header-search-toggle:hover,.ms-header-search-toggle:focus-visible,.ms-header-search.is-open .ms-header-search-toggle{
  background:rgba(255,255,255,.19);
  border-color:rgba(255,255,255,.42);
  outline:0;
  transform:translateY(-1px);
}
.ms-header-search-toggle svg{fill:none;height:18px;stroke:currentColor;stroke-linecap:round;stroke-width:2;width:18px}
.ms-header-search-panel{
  background:transparent;
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:min(560px,calc(100vw - 24px));
  z-index:1300;
}
.ms-header-search-panel .ms-public-match-search{margin:0!important;max-width:none!important;width:100%}
.ms-header-search-panel .ms-public-match-search>label{box-shadow:0 12px 32px rgba(15,23,42,.18)}
.ms-header-search-panel .ms-public-match-search-results{top:51px}

/* En modo claro, TESSIRVE vuelve al header azul original y neutral. */
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-site-header{
  background:linear-gradient(115deg,color-mix(in srgb,#175cd3,#000 46%),color-mix(in srgb,#14213d,#000 54%))!important;
  border-color:rgba(255,255,255,.12)!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-brand,
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-brand-name{color:#fff!important;text-shadow:1px 1px 0 rgba(0,0,0,.28)!important}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-brand-mark{
  background:linear-gradient(135deg,#175cd3,#14213d)!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.28)!important;
  color:#fff!important;
}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-site-menu{background:rgba(16,24,40,.22)!important;border-color:rgba(255,255,255,.10)!important}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-site-menu a{color:#fff!important}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-site-menu a:hover,
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-site-menu .current-menu-item>a{
  background:rgba(255,255,255,.17)!important;
  border-color:rgba(255,255,255,.20)!important;
  color:#fff!important;
}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-menu-toggle>span:not(.screen-reader-text){background:#fff!important}

/* En oscuro, la identidad neutral no tiñe el header: negro/azul carbón. */
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="dark"] .ms-site-header{
  background:linear-gradient(115deg,#080d14 0%,#0d141e 58%,#111923 100%)!important;
  border-color:#273444!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="dark"] .ms-brand-mark{
  background:linear-gradient(135deg,#172334,#0d1622)!important;
  box-shadow:0 0 0 1px #3b4b60!important;
  color:#fff!important;
}

@media(max-width:782px){
  .ms-header-search{margin-left:2px}
  .ms-header-search-toggle{border-radius:9px;height:36px;width:36px}
  .ms-header-search-panel{
    left:10px;
    position:fixed;
    right:10px;
    top:calc(var(--ms-admin-offset,0px) + 66px);
    width:auto;
  }
  html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-primary-nav{
    background:#0d2445!important;
    border-color:#28486f!important;
  }
  html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-primary-nav .ms-site-menu a{color:#fff!important}
}

/* 5.15.13 — Cara a Cara: mantener goleada / goles / goleada en tres columnas también en móvil. */
@media (max-width:560px){
  .ms-h2h-page .ms-h2h-insight-grid{grid-template-columns:minmax(0,1fr) minmax(96px,1.08fr) minmax(0,1fr)!important;gap:6px!important}
  .ms-h2h-page .ms-h2h-side-card,.ms-h2h-page .ms-h2h-goals-card{min-width:0!important}
}

/* 5.15.14 — Historial móvil: goleadas siempre en orden Local → Visitante. */
@media (max-width:560px){
  .ms-h2h-page .ms-h2h-big-win-scoreline{grid-template-columns:minmax(20px,1fr) auto minmax(20px,1fr)!important;gap:2px!important}
  .ms-h2h-page .ms-h2h-big-win-id b{display:none!important}
  .ms-h2h-page .ms-h2h-big-win-scoreline .ms-role-long{display:none!important}
  .ms-h2h-page .ms-h2h-big-win-scoreline .ms-role-short{display:inline!important}
}


/* 5.15.15 — Historial móvil: dos goleadas arriba y goles completos centrados debajo. */
@media (max-width:560px){
  .ms-h2h-page .ms-h2h-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .ms-h2h-page .ms-h2h-side-card.is-team-a{grid-column:1!important;grid-row:1!important}
  .ms-h2h-page .ms-h2h-side-card.is-team-b{grid-column:2!important;grid-row:1!important}
  .ms-h2h-page .ms-h2h-goals-card{grid-column:1 / -1!important;grid-row:2!important;justify-self:center!important;margin:0 auto!important;width:min(100%,250px)!important;min-height:74px!important}
  .ms-h2h-page .ms-h2h-goals .ms-crest,.ms-h2h-page .ms-h2h-goals .ms-crest-fallback{height:28px!important;max-width:28px!important;width:28px!important}
  .ms-h2h-page .ms-h2h-goals strong{font-size:1.08rem!important}
}

/* 5.15.16 — Historial: la mayor goleada replica la sintaxis visual del bloque Goles. */
.ms-h2h-page .ms-h2h-big-win-scoreline{grid-template-columns:34px auto 34px!important;justify-content:center!important}
@media(max-width:560px){
  .ms-h2h-page .ms-h2h-big-win-scoreline{grid-template-columns:27px auto 27px!important;gap:6px!important;max-width:none!important}
}


/* 5.16.4 — Copa Argentina puede usar un lienzo más ancho sin alterar el resto del sitio. */
body.single-ms_competition:has(.ms-ca-profile) .site-main,
body.single-ms_competition:has(.ms-ca-profile) main.site-main,
body.single-ms_competition:has(.ms-ca-profile) .ms-site-main{max-width:1680px!important}
body.single-ms_competition:has(.ms-ca-profile){background-image:radial-gradient(circle at 50% -120px,rgba(34,104,205,.055),transparent 440px)}
html[data-tessirve-color-mode="dark"] body.single-ms_competition:has(.ms-ca-profile){background-image:radial-gradient(circle at 50% -120px,rgba(82,144,240,.08),transparent 440px)}
@media(max-width:900px){
  body.single-ms_competition:has(.ms-ca-profile) .site-main,
  body.single-ms_competition:has(.ms-ca-profile) main.site-main,
  body.single-ms_competition:has(.ms-ca-profile) .ms-site-main{max-width:100%!important}
}


/* 5.16.16 — descenso oscuro: identidad roja dentro de cada club, exterior limpio. */
html[data-tessirve-color-mode="dark"] .ms-competition-headliners > article.is-relegated{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-tessirve-color-mode="dark"] .ms-competition-headliners > article.is-relegated .ms-relegated-team{background:linear-gradient(135deg,#2b191d 0%,#251a1e 52%,#1b2029 100%)!important;border:1px solid #744046!important;border-left:4px solid #f97066!important}

/* 5.16.41 — menú responsive extendido a tablet. */
@media(min-width:783px) and (max-width:1120px){
 html[data-tessirve-color-mode="dark"] .ms-primary-nav{background:#111923!important;border-color:#303b4b!important}
}

/* 5.16.43 — el menú desplegable oscuro acompaña el nuevo breakpoint del header. */
@media(min-width:783px) and (max-width:1360px){
  html[data-tessirve-color-mode="dark"] .ms-primary-nav{background:#111923!important;border-color:#303b4b!important}
  html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-primary-nav{background:#0d2445!important;border-color:#28486f!important}
  html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-primary-nav .ms-site-menu a{color:#fff!important}
}

/* ========================================================================
   5.16.45 — HEADER EDITORIAL CENTRADO + MENÚS HOVER + BUSCADOR CON VIDA
   ======================================================================== */
@media(min-width:1181px){
  .ms-site-header-inner{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:150px minmax(0,1fr) 150px!important;
    gap:12px!important;
    margin-inline:auto!important;
    max-width:1180px!important;
    padding-inline:0!important;
    width:calc(100% - 40px)!important;
  }
  .ms-brand{justify-self:start!important;min-width:0!important}
  .ms-primary-nav{display:block!important;justify-self:center!important;margin-left:0!important;min-width:0!important;width:auto!important}
  .ms-site-menu{justify-content:center!important;gap:1px!important;overflow:visible!important}
  .ms-site-menu>li{position:relative}
  .ms-site-menu>li>a{font-size:.69rem!important;padding:7px 5px!important;white-space:nowrap!important}
  .ms-header-search{justify-self:end!important;margin-left:0!important}
  .ms-header-theme-crest{display:none!important}
  .ms-menu-toggle{display:none!important}
}
@media(min-width:1320px){
  .ms-site-menu>li>a{font-size:.72rem!important;padding-inline:6px!important}
}
@media(min-width:783px) and (max-width:1180px){
  .ms-site-header-inner{
    box-sizing:border-box!important;
    margin-inline:auto!important;
    max-width:980px!important;
    padding-inline:16px!important;
    width:100%!important;
  }
  .ms-header-theme-crest{display:none!important}
  .ms-menu-toggle{display:block!important;margin-left:auto!important}
  .ms-primary-nav{
    background:#111923!important;
    border:1px solid #303b4b!important;
    border-radius:0 0 14px 14px!important;
    display:none!important;
    left:50%!important;
    max-width:980px!important;
    padding:9px 14px!important;
    right:auto!important;
    top:58px!important;
    transform:translateX(-50%)!important;
    width:calc(100% - 32px)!important;
  }
  .ms-primary-nav.is-open{display:block!important}
  .ms-site-menu{align-items:stretch!important;background:transparent!important;border:0!important;flex-direction:column!important;padding:0!important}
}

/* Dropdowns de escritorio: abrir al posar el mouse, sin click obligatorio. */
.ms-menu-dropdown{position:relative}
.ms-menu-dropdown-trigger{align-items:center!important;display:flex!important;gap:4px!important}
.ms-menu-dropdown-trigger>svg{fill:none;height:7px!important;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:10px!important;transition:transform .16s ease}
.ms-menu-dropdown-panel{
  left:50%;
  opacity:0;
  padding-top:8px;
  pointer-events:none;
  position:absolute;
  top:100%;
  transform:translate(-50%,-5px);
  transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
  visibility:hidden;
  width:max-content;
  z-index:1500;
}
.ms-menu-dropdown-panel:before{content:"";height:10px;left:0;position:absolute;right:0;top:0}
.ms-menu-dropdown-inner{
  background:linear-gradient(180deg,#101a28,#0d1520);
  border:1px solid #34465d;
  border-radius:12px;
  box-shadow:0 16px 36px rgba(0,0,0,.28);
  min-width:205px;
  overflow:hidden;
  padding:5px;
}
.ms-menu-dropdown-inner>a{
  align-items:center!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  color:#f4f7fb!important;
  display:flex!important;
  font-size:.72rem!important;
  font-weight:800!important;
  gap:14px!important;
  justify-content:space-between!important;
  padding:9px 10px!important;
  text-decoration:none!important;
  transform:none!important;
}
.ms-menu-dropdown-inner>a+ a{margin-top:2px}
.ms-menu-dropdown-inner>a>svg{fill:none;height:14px!important;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7;width:14px!important}
.ms-menu-dropdown-inner>a:hover,.ms-menu-dropdown-inner>a:focus-visible{background:#18345d!important;border-color:#3467a5!important;color:#fff!important;outline:0!important}
.ms-menu-dropdown:hover>.ms-menu-dropdown-panel,
.ms-menu-dropdown:focus-within>.ms-menu-dropdown-panel{opacity:1;pointer-events:auto;transform:translate(-50%,0);visibility:visible}
.ms-menu-dropdown:hover>.ms-menu-dropdown-trigger>svg,
.ms-menu-dropdown:focus-within>.ms-menu-dropdown-trigger>svg{transform:rotate(180deg)}

/* Buscador: microanimación futbolera/IA, llamativa pero sin convertirse en un banner. */
.ms-search-ai{
  background:radial-gradient(circle at 35% 30%,rgba(94,180,255,.22),rgba(255,255,255,.08) 52%,rgba(255,255,255,.04))!important;
  border-color:rgba(120,194,255,.48)!important;
  box-shadow:0 0 0 1px rgba(83,166,255,.08),0 0 15px rgba(52,132,255,.14)!important;
  overflow:hidden!important;
  position:relative!important;
}
.ms-search-ai:after{
  background:linear-gradient(115deg,transparent 25%,rgba(255,255,255,.6) 48%,transparent 68%);
  content:"";
  height:140%;
  left:-85%;
  position:absolute;
  top:-20%;
  transform:skewX(-18deg);
  width:40%;
  animation:ms-search-shine 3.4s ease-in-out infinite;
}
.ms-search-ai-orbit{animation:ms-search-orbit 5s linear infinite;inset:3px;pointer-events:none;position:absolute}
.ms-search-ai-orbit i{background:#7dd3fc;border-radius:50%;box-shadow:0 0 7px #60a5fa;display:block;height:3px;position:absolute;width:3px}
.ms-search-ai-orbit i:nth-child(1){left:2px;top:9px}
.ms-search-ai-orbit i:nth-child(2){right:3px;top:5px;background:#facc15;box-shadow:0 0 7px #facc15}
.ms-search-ai-orbit i:nth-child(3){bottom:3px;right:8px;background:#a78bfa;box-shadow:0 0 7px #a78bfa}
.ms-search-ai-ball{align-items:center;animation:ms-search-ball 2.2s ease-in-out infinite;display:flex;height:22px;justify-content:center;position:absolute;width:22px}
.ms-search-ai-ball>svg{fill:none!important;height:22px!important;stroke:#d9efff!important;stroke-linecap:round!important;stroke-linejoin:round!important;stroke-width:1.25!important;width:22px!important}
.ms-search-ai-ball>svg circle{fill:rgba(53,122,200,.22)}
.ms-search-ai-glass{height:14px!important;opacity:.88;position:absolute;right:5px!important;stroke:#fff!important;top:5px!important;width:14px!important}
.ms-search-ai:hover,.ms-search-ai:focus-visible,.ms-header-search.is-open .ms-search-ai{box-shadow:0 0 0 1px rgba(91,182,255,.26),0 0 22px rgba(63,150,255,.36)!important}
.ms-search-ai:hover .ms-search-ai-ball,.ms-search-ai:focus-visible .ms-search-ai-ball{animation-duration:1.05s}
@keyframes ms-search-orbit{to{transform:rotate(360deg)}}
@keyframes ms-search-ball{0%,100%{transform:translateY(1px) rotate(-4deg)}50%{transform:translateY(-2px) rotate(5deg)}}
@keyframes ms-search-shine{0%,58%{left:-85%;opacity:0}68%{opacity:.8}82%,100%{left:145%;opacity:0}}

@media(max-width:1180px){
  .ms-menu-dropdown-panel{display:block!important;left:auto!important;opacity:1!important;padding:2px 0 5px 14px!important;pointer-events:auto!important;position:static!important;transform:none!important;visibility:visible!important;width:auto!important}
  .ms-menu-dropdown-panel:before{display:none}
  .ms-menu-dropdown-inner{background:rgba(255,255,255,.035)!important;border-color:#2f4054!important;border-radius:9px!important;box-shadow:none!important;min-width:0!important;padding:3px!important}
  .ms-menu-dropdown-inner>a{font-size:.72rem!important;padding:8px 10px!important}
  .ms-menu-dropdown-trigger>svg{display:none!important}
}
@media(max-width:782px){
  .ms-site-header-inner{max-width:none!important;width:100%!important}
  .ms-header-theme-crest{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  .ms-search-ai:after,.ms-search-ai-orbit,.ms-search-ai-ball{animation:none!important}
}

/* ========================================================================
   5.16.46 — DROPDOWNS REALES + LUPA/FÚTBOL/TESSIRVE + BUSCADOR IA
   ======================================================================== */
@media(min-width:1181px){
  /* 5.16.45 dejó overflow visible, pero el clip-path histórico seguía cortando
     el panel. Acá se libera por completo el viewport del menú. */
  .ms-primary-nav,.ms-site-menu{overflow:visible!important;clip-path:none!important}
  .ms-menu-dropdown{z-index:3!important}
  .ms-menu-dropdown:hover,.ms-menu-dropdown:focus-within,.ms-menu-dropdown.is-open{z-index:1602!important}
  .ms-menu-dropdown.is-open>.ms-menu-dropdown-panel,
  .ms-menu-dropdown:hover>.ms-menu-dropdown-panel,
  .ms-menu-dropdown:focus-within>.ms-menu-dropdown-panel{
    opacity:1!important;pointer-events:auto!important;transform:translate(-50%,0)!important;visibility:visible!important
  }
  .ms-menu-dropdown.is-open>.ms-menu-dropdown-trigger>svg{transform:rotate(180deg)!important}
}

/* Dropdown con vida: aurora sutil, borde respirando y entradas con barrido. */
.ms-menu-dropdown-inner{position:relative!important;isolation:isolate!important;overflow:hidden!important}
.ms-menu-dropdown-inner:before{
  animation:ms-dropdown-aurora 5.8s linear infinite;
  background:conic-gradient(from 90deg at 50% 50%,transparent 0 24%,rgba(83,177,255,.16) 31%,transparent 40% 62%,rgba(160,126,255,.12) 70%,transparent 78%);
  content:"";inset:-70%;pointer-events:none;position:absolute;z-index:-2
}
.ms-menu-dropdown-inner:after{
  background:linear-gradient(115deg,transparent 24%,rgba(255,255,255,.13) 48%,transparent 72%);
  content:"";height:170%;left:-90%;pointer-events:none;position:absolute;top:-35%;transform:skewX(-16deg);width:42%;z-index:-1
}
.ms-menu-dropdown:hover .ms-menu-dropdown-inner:after,
.ms-menu-dropdown.is-open .ms-menu-dropdown-inner:after{animation:ms-dropdown-scan 2.8s ease-in-out infinite}
.ms-menu-dropdown-inner>a{position:relative!important;z-index:1!important}
.ms-menu-dropdown-inner>a:before{
  background:radial-gradient(circle,#7dd3fc 0 32%,transparent 38%);
  content:"";height:9px;left:7px;opacity:0;position:absolute;top:50%;transform:translate(-5px,-50%) scale(.4);transition:opacity .16s ease,transform .16s ease;width:9px
}
.ms-menu-dropdown-inner>a:hover{padding-left:17px!important;text-shadow:0 0 14px rgba(111,194,255,.22)}
.ms-menu-dropdown-inner>a:hover:before{opacity:1;transform:translate(0,-50%) scale(1)}
@keyframes ms-dropdown-aurora{to{transform:rotate(360deg)}}
@keyframes ms-dropdown-scan{0%,55%{left:-90%;opacity:0}65%{opacity:.85}82%,100%{left:150%;opacity:0}}

/* Icono de búsqueda: una sola lupa propia. El lente ES la pelota y el mini
   escudo TESSIRVE queda montado sobre el borde inferior izquierdo. */
.ms-search-ai{display:grid!important;place-items:center!important}
.ms-search-ai .ms-search-ai-ball,.ms-search-ai .ms-search-ai-glass{display:none!important}
.ms-search-fusion-icon{height:31px!important;overflow:visible!important;width:31px!important;z-index:3}
.ms-search-fusion-ring{fill:rgba(24,64,112,.34);stroke:url(#ms-search-lens-gradient);stroke-width:2.2}
.ms-search-fusion-ball{fill:none;stroke:#edf8ff;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.15;transform-box:fill-box;transform-origin:center;animation:ms-search-soccer-spin 8s linear infinite}
.ms-search-fusion-handle{fill:none;stroke:#eef8ff;stroke-linecap:round;stroke-width:3.4;filter:drop-shadow(0 0 3px rgba(98,183,255,.42))}
.ms-search-fusion-brand path:first-child{fill:#0d2445;stroke:#b9e7ff;stroke-width:4}
.ms-search-fusion-brand path:last-child{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:5.8}
.ms-search-fusion-brand{filter:drop-shadow(0 0 5px rgba(83,177,255,.8));transform-box:fill-box;transform-origin:center;animation:ms-search-brand-pulse 2.4s ease-in-out infinite}
.ms-search-fusion-spark{animation:ms-search-spark 1.9s ease-in-out infinite;fill:#ffd84d;filter:drop-shadow(0 0 4px #ffd84d)}
.ms-search-fusion-lens{transform-box:fill-box;transform-origin:center;animation:ms-search-lens-breathe 2.8s ease-in-out infinite}
.ms-search-ai-orbit i:nth-child(4){background:#5eead4;box-shadow:0 0 7px #5eead4;left:7px;bottom:2px}
@keyframes ms-search-soccer-spin{to{transform:rotate(360deg)}}
@keyframes ms-search-brand-pulse{0%,100%{opacity:.82;transform:scale(.96)}50%{opacity:1;transform:scale(1.08)}}
@keyframes ms-search-spark{0%,100%{opacity:.25;transform:scale(.55)}45%{opacity:1;transform:scale(1.15)}}
@keyframes ms-search-lens-breathe{0%,100%{filter:drop-shadow(0 0 2px rgba(76,167,255,.25))}50%{filter:drop-shadow(0 0 7px rgba(76,167,255,.55))}}

/* El panel que baja del buscador también respira: entrada suave, aurora y
   resultados que aparecen con micro-slide. */
.ms-search-ai-panel{isolation:isolate!important;overflow:visible!important}
.ms-search-ai-panel:not([hidden]){animation:ms-search-panel-in .23s cubic-bezier(.2,.8,.2,1) both}
.ms-search-ai-panel:before{
  animation:ms-search-panel-aurora 6.5s linear infinite;
  background:conic-gradient(from 160deg,rgba(63,143,255,.0),rgba(63,143,255,.20),rgba(151,104,255,.12),rgba(53,214,190,.12),rgba(63,143,255,0) 72%);
  border-radius:18px;content:"";filter:blur(14px);inset:-7px;opacity:.7;pointer-events:none;position:absolute;z-index:-2
}
.ms-search-ai-panel:after{
  background:linear-gradient(105deg,transparent 24%,rgba(255,255,255,.12) 48%,transparent 72%);
  content:"";height:calc(100% + 20px);left:-45%;pointer-events:none;position:absolute;top:-10px;transform:skewX(-16deg);width:26%;z-index:-1;animation:ms-search-panel-scan 4.2s ease-in-out infinite
}
.ms-search-ai-panel .ms-public-global-search>label{
  backdrop-filter:blur(18px);background:linear-gradient(180deg,rgba(20,34,52,.96),rgba(12,23,37,.98))!important;
  border-color:rgba(93,174,255,.46)!important;box-shadow:0 14px 38px rgba(3,10,22,.32),0 0 0 1px rgba(111,190,255,.05),inset 0 1px 0 rgba(255,255,255,.06)!important
}
.ms-search-ai-panel .ms-public-global-search>label:focus-within{border-color:#78c4ff!important;box-shadow:0 14px 42px rgba(3,10,22,.38),0 0 22px rgba(63,150,255,.18)!important}
.ms-search-ai-panel .ms-public-global-search-results:not([hidden])>*{animation:ms-search-hit-in .22s ease both}
.ms-search-ai-panel .ms-public-global-search-results:not([hidden])>*:nth-child(2){animation-delay:.025s}
.ms-search-ai-panel .ms-public-global-search-results:not([hidden])>*:nth-child(3){animation-delay:.05s}
.ms-search-ai-panel .ms-public-global-search-results:not([hidden])>*:nth-child(4){animation-delay:.075s}
.ms-search-ai-panel .ms-public-global-search-results:not([hidden])>*:nth-child(5){animation-delay:.1s}
@keyframes ms-search-panel-in{from{opacity:0;transform:translateY(-6px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes ms-search-panel-aurora{to{transform:rotate(360deg)}}
@keyframes ms-search-panel-scan{0%,62%{left:-45%;opacity:0}69%{opacity:.7}86%,100%{left:125%;opacity:0}}
@keyframes ms-search-hit-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}

@media(prefers-reduced-motion:reduce){
  .ms-menu-dropdown-inner:before,.ms-menu-dropdown-inner:after,.ms-search-fusion-ball,.ms-search-fusion-brand,.ms-search-fusion-spark,.ms-search-fusion-lens,.ms-search-ai-panel:before,.ms-search-ai-panel:after,.ms-search-ai-panel:not([hidden]),.ms-search-ai-panel .ms-public-global-search-results:not([hidden])>*{animation:none!important}
}

/* La búsqueda abierta repite el lenguaje pelota + M, ya sin lupa genérica. */
.ms-search-ai-panel .ms-search-field-football{fill:rgba(72,153,236,.13)!important;stroke:#8fd2ff!important;stroke-linecap:round!important;stroke-linejoin:round!important;stroke-width:1.35!important;filter:drop-shadow(0 0 4px rgba(79,165,255,.28));animation:ms-search-field-ball 6s linear infinite}
.ms-search-ai-panel .ms-search-field-football .ms-search-field-m{fill:none!important;stroke:#fff!important;stroke-width:1.55!important}
@keyframes ms-search-field-ball{0%,100%{filter:drop-shadow(0 0 3px rgba(79,165,255,.22))}50%{filter:drop-shadow(0 0 7px rgba(120,101,255,.42))}}
@media(prefers-reduced-motion:reduce){.ms-search-ai-panel .ms-search-field-football{animation:none!important}}

/* ========================================================================
   5.16.47 — BUSCADOR MORPH: LUPA → PELOTA → TESSIRVE
   Tres estados reales y excluyentes. Ya no se superponen lupa/pelota/logo.
   ======================================================================== */
.ms-search-fusion-icon{display:none!important}
.ms-search-morph-icon{
  display:block!important;height:31px!important;overflow:visible!important;width:31px!important;z-index:3
}
.ms-search-morph-phase{
  opacity:0;transform-box:fill-box;transform-origin:center;will-change:opacity,transform,filter
}
.ms-search-morph-glass{
  animation:ms-search-morph-glass 6.6s cubic-bezier(.4,0,.2,1) infinite;
  fill:none;stroke:url(#ms-search-morph-gradient);stroke-linecap:round;stroke-width:2.6;
  filter:drop-shadow(0 0 4px rgba(91,168,255,.55))
}
.ms-search-morph-glint{fill:#fff;stroke:none!important;filter:drop-shadow(0 0 4px rgba(255,255,255,.85))}
.ms-search-morph-ball{
  animation:ms-search-morph-ball 6.6s cubic-bezier(.4,0,.2,1) infinite;
  fill:rgba(23,62,108,.48);stroke:#edf8ff;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.45;
  filter:drop-shadow(0 0 5px rgba(83,177,255,.58))
}
.ms-search-morph-brand{
  animation:ms-search-morph-brand 6.6s cubic-bezier(.4,0,.2,1) infinite;
  filter:drop-shadow(0 0 7px rgba(83,177,255,.72))
}
.ms-search-morph-shield{fill:#102e57;stroke:url(#ms-search-morph-gradient);stroke-linejoin:round;stroke-width:2}
.ms-search-morph-t{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:3}.ms-search-morph-ball-dot{fill:#fff;stroke:none}
.ms-search-morph-spark{fill:#77d8ff;filter:drop-shadow(0 0 5px currentColor);opacity:.3;transform-box:fill-box;transform-origin:center}
.ms-search-morph-spark.is-one{animation:ms-search-morph-spark 2.2s ease-in-out infinite;color:#77d8ff}
.ms-search-morph-spark.is-two{animation:ms-search-morph-spark 2.2s .85s ease-in-out infinite;color:#9b8cff;fill:#9b8cff}
.ms-header-search.is-open .ms-search-morph-icon,.ms-search-ai:hover .ms-search-morph-icon{filter:drop-shadow(0 0 7px rgba(91,177,255,.28))}
.ms-header-search.is-open .ms-search-morph-phase,.ms-search-ai:hover .ms-search-morph-phase{animation-duration:4.9s}

/* 0–28% lupa; 33–61% pelota; 66–94% escudo. En cada cruce el estado
   saliente se contrae y el siguiente nace desde el mismo centro. */
@keyframes ms-search-morph-glass{
  0%,23%{opacity:1;transform:scale(1) rotate(0deg)}
  28%{opacity:0;transform:scale(.55) rotate(22deg)}
  29%,94%{opacity:0;transform:scale(.55) rotate(-18deg)}
  100%{opacity:1;transform:scale(1) rotate(0deg)}
}
@keyframes ms-search-morph-ball{
  0%,27%{opacity:0;transform:scale(.52) rotate(-36deg)}
  33%{opacity:1;transform:scale(1) rotate(0deg)}
  55%{opacity:1;transform:scale(1) rotate(18deg)}
  61%{opacity:0;transform:scale(.56) rotate(52deg)}
  62%,100%{opacity:0;transform:scale(.52) rotate(-30deg)}
}
@keyframes ms-search-morph-brand{
  0%,60%{opacity:0;transform:scale(.58) rotate(-8deg)}
  66%{opacity:1;transform:scale(1.02) rotate(0deg)}
  88%{opacity:1;transform:scale(1) rotate(0deg)}
  94%{opacity:0;transform:scale(.66) rotate(8deg)}
  95%,100%{opacity:0;transform:scale(.58) rotate(-8deg)}
}
@keyframes ms-search-morph-spark{0%,100%{opacity:.18;transform:scale(.55)}45%{opacity:1;transform:scale(1.18)}}

/* El mismo lenguaje dentro del panel, en miniatura. */
.ms-search-ai-panel .ms-search-field-football{display:none!important}
.ms-search-field-morph{
  fill:none!important;height:20px!important;overflow:visible!important;stroke:none!important;width:20px!important
}
.ms-search-field-phase{opacity:0;transform-box:fill-box;transform-origin:center}
.ms-search-field-glass{animation:ms-search-field-glass 6.6s ease-in-out infinite;fill:none;stroke:#8fd2ff;stroke-linecap:round;stroke-width:1.55}
.ms-search-field-ball{animation:ms-search-field-ball-morph 6.6s ease-in-out infinite;fill:rgba(76,153,236,.10);stroke:#9edcff;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.1}
.ms-search-field-brand{animation:ms-search-field-brand 6.6s ease-in-out infinite;filter:drop-shadow(0 0 3px rgba(79,165,255,.30))}
.ms-search-field-brand path:first-child{fill:#17375f;stroke:#9edcff;stroke-width:1.05}
.ms-search-field-brand path:last-child{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.35}
@keyframes ms-search-field-glass{0%,23%{opacity:1;transform:scale(1)}28%,94%{opacity:0;transform:scale(.62)}100%{opacity:1;transform:scale(1)}}
@keyframes ms-search-field-ball-morph{0%,28%{opacity:0;transform:scale(.62) rotate(-25deg)}34%,55%{opacity:1;transform:scale(1) rotate(0)}61%,100%{opacity:0;transform:scale(.62) rotate(28deg)}}
@keyframes ms-search-field-brand{0%,61%{opacity:0;transform:scale(.65)}67%,88%{opacity:1;transform:scale(1)}94%,100%{opacity:0;transform:scale(.65)}}

@media(prefers-reduced-motion:reduce){
  .ms-search-morph-phase,.ms-search-morph-spark,.ms-search-field-phase{animation:none!important}
  .ms-search-morph-glass,.ms-search-field-glass{opacity:1!important;transform:none!important}
  .ms-search-morph-ball,.ms-search-morph-brand,.ms-search-field-ball,.ms-search-field-brand{opacity:0!important}
}

/* ========================================================================
   5.16.48 — BUSCADOR VIVO: LUPA → PELOTA → TROFEO → HISTORIAL → TESSIRVE
   Cinco estados limpios, sin superposición y con contraste por tema.
   ======================================================================== */
.ms-search-morph-phase,.ms-search-field-phase{animation-duration:10s!important;animation-timing-function:cubic-bezier(.4,0,.2,1)!important;animation-iteration-count:infinite!important}
.ms-search-morph-glass{animation-name:ms-search-548-glass!important}
.ms-search-morph-ball{animation-name:ms-search-548-ball!important;fill:none!important;stroke:none!important}
.ms-search-morph-trophy{animation-name:ms-search-548-trophy!important;fill:none;stroke:#ffd65a;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.15;filter:drop-shadow(0 0 6px rgba(255,201,63,.48))}
.ms-search-morph-history{animation-name:ms-search-548-history!important;fill:none;stroke:#75e6d2;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.35;filter:drop-shadow(0 0 6px rgba(71,214,190,.42))}
.ms-search-morph-brand{animation-name:ms-search-548-brand!important}
.ms-search-ball-shell{fill:#f8fbff!important;stroke:#82c8ff!important;stroke-width:1.5!important}
.ms-search-ball-patch{fill:#172b46!important;stroke:#172b46!important;stroke-width:1!important}
.ms-search-ball-seams{fill:none!important;stroke:#35658f!important;stroke-linecap:round!important;stroke-linejoin:round!important;stroke-width:1.25!important}
.ms-search-trophy-cup{fill:rgba(255,205,75,.10)}
.ms-search-trophy-star{fill:#ffe688;stroke:none!important}
@keyframes ms-search-548-glass{0%,14%{opacity:1;transform:scale(1)}18%,96%{opacity:0;transform:scale(.62) rotate(12deg)}100%{opacity:1;transform:scale(1)}}
@keyframes ms-search-548-ball{0%,16%{opacity:0;transform:scale(.62)}20%,34%{opacity:1;transform:scale(1)}38%,100%{opacity:0;transform:scale(.62) rotate(8deg)}}
@keyframes ms-search-548-trophy{0%,36%{opacity:0;transform:scale(.62)}40%,54%{opacity:1;transform:scale(1)}58%,100%{opacity:0;transform:scale(.62)}}
@keyframes ms-search-548-history{0%,56%{opacity:0;transform:scale(.62)}60%,74%{opacity:1;transform:scale(1)}78%,100%{opacity:0;transform:scale(.62) rotate(-7deg)}}
@keyframes ms-search-548-brand{0%,76%{opacity:0;transform:scale(.64)}80%,94%{opacity:1;transform:scale(1)}98%,100%{opacity:0;transform:scale(.64)}}

.ms-search-field-glass{animation-name:ms-search-548-glass!important}
.ms-search-field-ball{animation-name:ms-search-548-ball!important;fill:none!important;stroke:none!important}
.ms-search-field-trophy{animation-name:ms-search-548-trophy!important;fill:none;stroke:#e5ad22;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.25}
.ms-search-field-history{animation-name:ms-search-548-history!important;fill:none;stroke:#2cae99;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.35}
.ms-search-field-brand{animation-name:ms-search-548-brand!important}

/* Claro: panel claro y tipografía oscura. */
html:not([data-tessirve-color-mode="dark"]) .ms-search-ai-panel .ms-public-global-search>label{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(242,247,253,.99))!important;border-color:rgba(36,121,211,.34)!important}
html:not([data-tessirve-color-mode="dark"]) .ms-search-ai-panel .ms-public-global-search input{color:#10243f!important}
html:not([data-tessirve-color-mode="dark"]) .ms-search-ai-panel .ms-public-global-search input::placeholder{color:#65758a!important;opacity:1}
html:not([data-tessirve-color-mode="dark"]) .ms-search-ai-panel .ms-public-global-search-results{background:#fff!important;border-color:#cfd9e6!important;color:#10243f!important}
html:not([data-tessirve-color-mode="dark"]) .ms-search-ai-panel .ms-public-match-hit,html:not([data-tessirve-color-mode="dark"]) .ms-search-ai-panel .ms-public-match-hit b,html:not([data-tessirve-color-mode="dark"]) .ms-search-ai-panel .ms-public-match-hit strong{color:#10243f!important}
html:not([data-tessirve-color-mode="dark"]) .ms-search-ai-panel .ms-public-match-hit small,.ms-search-ai-panel .ms-public-match-search-state{color:#617086!important}
html:not([data-tessirve-color-mode="dark"]) .ms-search-ai-panel kbd{background:#eaf1f8!important;border-color:#cbd7e5!important;color:#304760!important}
/* Oscuro: panel azul oscuro y toda la lectura clara. */
html[data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-global-search>label{background:linear-gradient(180deg,rgba(15,31,50,.98),rgba(8,20,34,.99))!important;border-color:rgba(100,188,255,.50)!important}
html[data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-global-search input{color:#f5fbff!important;-webkit-text-fill-color:#f5fbff!important}
html[data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-global-search input::placeholder{color:#a8b9cb!important;opacity:1}
html[data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-global-search-results{background:#0d1c2d!important;border-color:#34516e!important;color:#f4f8fc!important}
html[data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-match-hit,html[data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-match-hit b,html[data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-match-hit strong{color:#f4f8fc!important}
html[data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-match-hit small,html[data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-match-search-state{color:#aec0d2!important}
html[data-tessirve-color-mode="dark"] .ms-search-ai-panel kbd{background:#edf7ff!important;border-color:#c7e6ff!important;color:#17324d!important}
@media(prefers-reduced-motion:reduce){.ms-search-morph-trophy,.ms-search-morph-history,.ms-search-field-trophy,.ms-search-field-history{opacity:0!important}.ms-search-morph-glass,.ms-search-field-glass{opacity:1!important}}


/* ========================================================================
   5.16.55 — HEADER EXPANDIBLE / SUBMENÚS COMO TABS
   ======================================================================== */
body.tessirve-theme{
  padding-top:calc(58px + var(--ms-admin-space,0px) + var(--ms-header-extra,0px))!important;
  transition:padding-top .28s cubic-bezier(.2,.8,.2,1)!important;
}
.ms-site-header{transition:box-shadow .22s ease,border-color .22s ease!important}
.ms-site-header.has-submenu-open{box-shadow:0 14px 30px rgba(15,23,42,.12)!important}
.ms-menu-parent{align-items:stretch!important;display:flex!important;position:relative!important}
.ms-menu-parent-link{border-radius:9px 3px 3px 9px!important;padding-right:5px!important}
.ms-menu-child-toggle{
  align-items:center;background:transparent;border:1px solid transparent;border-left:0;border-radius:3px 9px 9px 3px;color:inherit;cursor:pointer;display:flex;justify-content:center;margin:0;padding:0 6px;transition:background .18s ease,border-color .18s ease,color .18s ease
}
.ms-menu-child-toggle svg{fill:none;height:7px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;transition:transform .24s cubic-bezier(.2,.8,.2,1);width:10px}
.ms-menu-parent:hover>.ms-menu-parent-link,.ms-menu-parent.is-open>.ms-menu-parent-link{background:color-mix(in srgb,var(--theme-primary),#fff 88%)!important;border-color:color-mix(in srgb,var(--theme-primary),transparent 70%)!important;color:color-mix(in srgb,var(--theme-primary),#111827 22%)!important}
.ms-menu-parent:hover>.ms-menu-child-toggle,.ms-menu-parent.is-open>.ms-menu-child-toggle{background:color-mix(in srgb,var(--theme-primary),#fff 88%)!important;border-color:color-mix(in srgb,var(--theme-primary),transparent 70%)!important;color:color-mix(in srgb,var(--theme-primary),#111827 22%)!important}
.ms-menu-parent.is-open>.ms-menu-child-toggle svg{transform:rotate(180deg)}
html[data-tessirve-color-mode="dark"] .ms-menu-parent:hover>.ms-menu-parent-link,
html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-link,
html[data-tessirve-color-mode="dark"] .ms-menu-parent:hover>.ms-menu-child-toggle,
html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-child-toggle{background:#263244!important;border-color:#405169!important;color:#fff!important}
/* anulamos el desplegable viejo: desde acá todo hijo vive en la fila del header */
.ms-menu-dropdown-panel{display:none!important}
.ms-header-submenus{
  background:linear-gradient(180deg,rgba(10,25,49,.98),rgba(12,29,53,.96));
  border-top:1px solid rgba(115,170,235,0);
  box-sizing:border-box;
  max-height:0;
  opacity:0;
  overflow:hidden;
  pointer-events:none;
  transform:translateY(-4px);
  transition:max-height .30s cubic-bezier(.2,.8,.2,1),opacity .18s ease,transform .30s cubic-bezier(.2,.8,.2,1),border-color .20s ease;
  width:100%;
}
.ms-header-submenus.is-open{border-top-color:rgba(115,170,235,.22);max-height:190px;opacity:1;pointer-events:auto;transform:translateY(0)}
.ms-header-submenu[hidden]{display:none!important}
.ms-header-submenu.is-active{display:block!important;animation:ms-header-tabs-in .26s cubic-bezier(.2,.8,.2,1) both}
.ms-header-submenu-inner{
  align-items:center;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0 auto;max-width:1180px;padding:7px 20px 9px
}
.ms-header-submenu-tab{
  align-items:center;background:rgba(255,255,255,.055);border:1px solid rgba(129,176,230,.22);border-radius:9px;color:#eef6ff!important;display:inline-flex;font-size:.72rem;font-weight:800;letter-spacing:-.01em;min-height:29px;padding:5px 11px;text-decoration:none!important;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease
}
.ms-header-submenu-tab:hover,.ms-header-submenu-tab:focus-visible{background:linear-gradient(135deg,rgba(38,115,207,.32),rgba(82,71,180,.24));border-color:rgba(104,183,255,.58);box-shadow:0 0 0 1px rgba(94,179,255,.08),0 5px 18px rgba(28,97,185,.18);color:#fff!important;outline:0;transform:translateY(-1px)}
@keyframes ms-header-tabs-in{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:1180px){
  .ms-menu-parent{display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important}
  .ms-menu-parent-link{border-radius:9px 0 0 9px!important}
  .ms-menu-child-toggle{border:1px solid rgba(255,255,255,.08)!important;border-left:0!important;border-radius:0 9px 9px 0!important;color:#e8edf4!important}
  .ms-header-submenu-inner{justify-content:flex-start!important;max-width:980px!important;padding-inline:16px!important}
  .ms-primary-nav{top:calc(58px + var(--ms-header-extra,0px))!important;transition:top .28s cubic-bezier(.2,.8,.2,1)!important}
}
@media(max-width:782px){
  .ms-header-submenu-inner{gap:5px!important;padding:6px 10px 8px!important}
  .ms-header-submenu-tab{font-size:.7rem!important;min-height:28px!important;padding:5px 9px!important}
}
@media(prefers-reduced-motion:reduce){
  body.tessirve-theme,.ms-header-submenus,.ms-header-submenu.is-active,.ms-menu-child-toggle svg{animation:none!important;transition:none!important}
}


/* 5.16.55 — los cuatro puestos de descenso de una competencia por zonas
   permanecen en una sola línea en escritorio. */
@media(min-width:900px){
  .ms-competition-headliners>article.is-relegated .ms-relegated-detailed{display:flex!important;flex-wrap:nowrap!important;gap:7px!important;max-width:none!important;width:100%!important}
  .ms-competition-headliners>article.is-relegated .ms-relegated-team{flex:1 1 0!important;min-width:0!important}
}


/* ========================================================================
   5.16.56 — HEADER: padre/toggle como una sola cápsula + tabs homogéneas
   ======================================================================== */
@media(min-width:1181px){
  .ms-menu-parent{
    align-items:center!important;
    border:1px solid transparent!important;
    border-radius:9px!important;
    display:flex!important;
    overflow:hidden!important;
    transition:background .16s ease,border-color .16s ease,box-shadow .16s ease!important;
  }
  .ms-menu-parent>.ms-menu-parent-link{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    padding-right:3px!important;
  }
  .ms-menu-parent>.ms-menu-child-toggle{
    align-self:stretch!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    min-width:22px!important;
    padding:0 6px 0 2px!important;
  }
  .ms-menu-parent:hover,.ms-menu-parent.is-open{
    background:color-mix(in srgb,var(--theme-primary),#fff 88%)!important;
    border-color:color-mix(in srgb,var(--theme-primary),transparent 66%)!important;
  }
  .ms-menu-parent:hover>.ms-menu-parent-link,.ms-menu-parent.is-open>.ms-menu-parent-link,
  .ms-menu-parent:hover>.ms-menu-child-toggle,.ms-menu-parent.is-open>.ms-menu-child-toggle{
    background:transparent!important;border-color:transparent!important;color:color-mix(in srgb,var(--theme-primary),#111827 22%)!important
  }
  html[data-tessirve-color-mode="dark"] .ms-menu-parent:hover,
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open{background:#263244!important;border-color:#405169!important}
  html[data-tessirve-color-mode="dark"] .ms-menu-parent:hover>.ms-menu-parent-link,
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-link,
  html[data-tessirve-color-mode="dark"] .ms-menu-parent:hover>.ms-menu-child-toggle,
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-child-toggle{color:#fff!important}
}
.ms-menu-child-toggle svg{height:6px!important;width:9px!important;transform-origin:center!important}
.ms-header-submenus{
  background:linear-gradient(115deg,color-mix(in srgb,var(--theme-primary),#000 46%),color-mix(in srgb,var(--theme-secondary),#000 54%))!important;
  border-top-color:color-mix(in srgb,var(--theme-primary),#fff 74%)!important;
}
.ms-header-submenu-inner{gap:4px!important;padding:6px 20px 7px!important}
.ms-header-submenu-tab{
  box-sizing:border-box!important;
  font-size:clamp(.66rem,.62vw,.78rem)!important;
  line-height:1!important;
  min-height:0!important;
  height:30px!important;
  padding:7px clamp(6px,.42vw,8px)!important;
}
@media(max-width:1180px){
  .ms-menu-parent{grid-template-columns:minmax(0,1fr) 30px!important}
  .ms-menu-child-toggle{padding:0 7px!important}
  .ms-header-submenu-tab{font-size:.72rem!important;height:30px!important;padding:7px 8px!important}
}
@media(max-width:782px){
  .ms-header-submenu-inner{padding:6px 10px 7px!important}
  .ms-header-submenu-tab{font-size:.7rem!important;height:29px!important;padding:6px 8px!important}
}

/* ========================================================================
   5.16.57 — HEADER RESPONSIVE: SUBMENÚ INLINE EN MÓVIL + IDENTIDAD DEL SWITCH
   En escritorio conserva la segunda fila expandible. En móvil los hijos viven
   debajo de su padre, dentro del propio menú, sin saltar arriba de la cabecera.
   ======================================================================== */
.ms-menu-parent-head{
  align-items:stretch;
  display:flex;
  min-width:0;
}
.ms-menu-parent-head>.ms-menu-parent-link{min-width:0}
.ms-mobile-submenu{display:none}

@media(min-width:783px){
  .ms-menu-parent{
    align-items:center!important;
    display:block!important;
    overflow:visible!important;
    position:relative!important;
  }
  .ms-menu-parent-head{
    align-items:stretch!important;
    border:1px solid transparent!important;
    border-radius:9px!important;
    display:flex!important;
    overflow:hidden!important;
    transition:background .16s ease,border-color .16s ease,box-shadow .16s ease!important;
  }
  .ms-menu-parent-head>.ms-menu-parent-link{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    padding-right:3px!important;
  }
  .ms-menu-parent-head>.ms-menu-child-toggle{
    align-self:stretch!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    min-width:22px!important;
    padding:0 6px 0 2px!important;
  }
  .ms-menu-parent:hover>.ms-menu-parent-head,
  .ms-menu-parent.is-open>.ms-menu-parent-head{
    background:color-mix(in srgb,var(--theme-primary),#fff 88%)!important;
    border-color:color-mix(in srgb,var(--theme-primary),transparent 66%)!important;
  }
  .ms-menu-parent:hover>.ms-menu-parent-head>.ms-menu-parent-link,
  .ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-parent-link,
  .ms-menu-parent:hover>.ms-menu-parent-head>.ms-menu-child-toggle,
  .ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-child-toggle{
    background:transparent!important;
    border-color:transparent!important;
    color:color-mix(in srgb,var(--theme-primary),#111827 22%)!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-menu-parent:hover>.ms-menu-parent-head,
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-head{
    background:color-mix(in srgb,var(--theme-primary),#182230 66%)!important;
    border-color:color-mix(in srgb,var(--theme-primary),#64748b 46%)!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-menu-parent:hover>.ms-menu-parent-head>a,
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-head>a,
  html[data-tessirve-color-mode="dark"] .ms-menu-parent:hover>.ms-menu-parent-head>button,
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-head>button{color:#fff!important}
}

@media(max-width:782px){
  body.tessirve-theme{padding-top:calc(58px + var(--ms-admin-space,0px))!important}
  .ms-site-header.has-submenu-open{box-shadow:none!important}
  .ms-header-submenus{display:none!important;max-height:0!important;opacity:0!important;pointer-events:none!important}
  .ms-primary-nav{
    background:linear-gradient(160deg,
      color-mix(in srgb,var(--theme-primary),#0d1724 82%),
      color-mix(in srgb,var(--theme-secondary),#0d1724 88%))!important;
    border:1px solid color-mix(in srgb,var(--theme-primary),#334155 62%)!important;
    border-radius:0 0 14px 14px!important;
    box-shadow:0 16px 34px rgba(3,12,25,.22)!important;
    max-height:calc(100vh - 74px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    padding:9px 10px 11px!important;
    top:58px!important;
  }
  .ms-site-menu{gap:2px!important}
  .ms-site-menu>li{display:block!important;width:100%!important}
  .ms-site-menu>li>a{
    border:1px solid transparent!important;
    color:#e9f1fa!important;
    font-size:.76rem!important;
    padding:9px 11px!important;
  }
  .ms-site-menu>li>a:hover,.ms-site-menu>li>a:focus-visible{
    background:rgba(255,255,255,.07)!important;
    border-color:rgba(255,255,255,.10)!important;
    color:#fff!important;
    transform:none!important;
  }
  .ms-menu-parent{
    display:block!important;
    overflow:visible!important;
    position:relative!important;
  }
  .ms-menu-parent-head{
    align-items:stretch!important;
    background:rgba(255,255,255,.035)!important;
    border:1px solid rgba(255,255,255,.075)!important;
    border-radius:10px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 34px!important;
    overflow:hidden!important;
    transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  }
  .ms-menu-parent-head>.ms-menu-parent-link{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    color:#e9f1fa!important;
    font-size:.76rem!important;
    min-height:34px!important;
    padding:9px 7px 9px 11px!important;
  }
  .ms-menu-parent-head>.ms-menu-child-toggle{
    align-items:center!important;
    align-self:stretch!important;
    background:transparent!important;
    border:0!important;
    border-left:1px solid rgba(255,255,255,.08)!important;
    border-radius:0!important;
    color:#d9e8f7!important;
    display:flex!important;
    justify-content:center!important;
    min-height:34px!important;
    min-width:34px!important;
    padding:0!important;
  }
  .ms-menu-parent-head>.ms-menu-child-toggle svg{height:7px!important;width:10px!important}
  .ms-menu-parent.is-open>.ms-menu-parent-head{
    background:linear-gradient(120deg,
      color-mix(in srgb,var(--theme-primary),#f8fbff 76%),
      color-mix(in srgb,var(--theme-secondary),#f8fbff 88%))!important;
    border-color:color-mix(in srgb,var(--theme-primary),#fff 45%)!important;
    box-shadow:0 5px 16px color-mix(in srgb,var(--theme-primary),transparent 86%)!important;
  }
  .ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-parent-link,
  .ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-child-toggle{
    color:color-mix(in srgb,var(--theme-primary),#07111f 35%)!important;
  }
  .ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-child-toggle{
    border-left-color:color-mix(in srgb,var(--theme-primary),transparent 72%)!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-head{
    background:linear-gradient(120deg,
      color-mix(in srgb,var(--theme-primary),#162131 65%),
      color-mix(in srgb,var(--theme-secondary),#162131 74%))!important;
    border-color:color-mix(in srgb,var(--theme-primary),#718096 44%)!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-head>a,
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-head>button{color:#fff!important}

  .ms-mobile-submenu{
    box-sizing:border-box;
    display:block;
    max-height:0;
    opacity:0;
    overflow:hidden;
    transform:translateY(-5px);
    transition:max-height .22s cubic-bezier(.2,.8,.2,1),opacity .16s ease,transform .22s cubic-bezier(.2,.8,.2,1),padding .22s ease;
  }
  .ms-mobile-submenu[hidden]{display:none!important}
  .ms-mobile-submenu.is-active{
    max-height:260px;
    opacity:1;
    transform:translateY(0);
  }
  .ms-mobile-submenu-inner{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    padding:6px 3px 5px;
  }
  .ms-mobile-submenu-tab{
    align-items:center;
    background:color-mix(in srgb,var(--theme-primary),#102033 84%);
    border:1px solid color-mix(in srgb,var(--theme-primary),#8195ad 68%);
    border-radius:8px;
    color:#f5f9fd!important;
    display:inline-flex;
    font-size:.69rem!important;
    font-weight:800;
    line-height:1;
    min-height:29px;
    padding:7px 9px!important;
    text-decoration:none!important;
    transition:background .16s ease,border-color .16s ease,transform .16s ease;
  }
  .ms-mobile-submenu-tab:hover,.ms-mobile-submenu-tab:focus-visible{
    background:linear-gradient(120deg,color-mix(in srgb,var(--theme-primary),#fff 72%),color-mix(in srgb,var(--theme-secondary),#fff 82%));
    border-color:color-mix(in srgb,var(--theme-primary),#fff 38%);
    color:color-mix(in srgb,var(--theme-primary),#07111f 36%)!important;
    outline:0;
    transform:translateY(-1px);
  }
  html[data-tessirve-color-mode="dark"] .ms-mobile-submenu-tab:hover,
  html[data-tessirve-color-mode="dark"] .ms-mobile-submenu-tab:focus-visible{color:#fff!important}
}

.ms-before-footer-ephemerides{box-sizing:border-box;margin:0 auto;max-width:1180px;padding:0 20px}
.ms-site-footer-inner{row-gap:20px!important}
.ms-site-footer-note{line-height:1.55;max-width:1000px}

@media(prefers-reduced-motion:reduce){
  .ms-mobile-submenu,.ms-menu-parent-head{transition:none!important}
}

/* 5.16.57b — todo breakpoint que usa hamburguesa recibe el submenú inline. */
.ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-child-toggle svg{transform:rotate(180deg)!important}
@media(min-width:783px) and (max-width:1180px){
  body.tessirve-theme{padding-top:calc(58px + var(--ms-admin-space,0px))!important}
  .ms-header-submenus{display:none!important;max-height:0!important;opacity:0!important;pointer-events:none!important}
  .ms-menu-parent{display:block!important;overflow:visible!important}
  .ms-menu-parent-head{
    align-items:stretch!important;
    background:rgba(255,255,255,.035)!important;
    border:1px solid rgba(255,255,255,.075)!important;
    border-radius:9px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 34px!important;
    overflow:hidden!important;
  }
  .ms-menu-parent-head>.ms-menu-parent-link{background:transparent!important;border:0!important;border-radius:0!important;color:#e9f1fa!important;padding-right:7px!important}
  .ms-menu-parent-head>.ms-menu-child-toggle{background:transparent!important;border:0!important;border-left:1px solid rgba(255,255,255,.08)!important;border-radius:0!important;color:#e9f1fa!important;min-width:34px!important;padding:0!important}
  .ms-menu-parent.is-open>.ms-menu-parent-head{
    background:linear-gradient(120deg,color-mix(in srgb,var(--theme-primary),#f8fbff 76%),color-mix(in srgb,var(--theme-secondary),#f8fbff 88%))!important;
    border-color:color-mix(in srgb,var(--theme-primary),#fff 45%)!important;
  }
  .ms-menu-parent.is-open>.ms-menu-parent-head>a,.ms-menu-parent.is-open>.ms-menu-parent-head>button{color:color-mix(in srgb,var(--theme-primary),#07111f 35%)!important}
  .ms-mobile-submenu{display:block;max-height:0;opacity:0;overflow:hidden;transform:translateY(-5px);transition:max-height .22s cubic-bezier(.2,.8,.2,1),opacity .16s ease,transform .22s cubic-bezier(.2,.8,.2,1)}
  .ms-mobile-submenu[hidden]{display:none!important}
  .ms-mobile-submenu.is-active{max-height:260px;opacity:1;transform:translateY(0)}
  .ms-mobile-submenu-inner{display:flex;flex-wrap:wrap;gap:5px;padding:6px 3px 5px}
  .ms-mobile-submenu-tab{align-items:center;background:color-mix(in srgb,var(--theme-primary),#102033 84%);border:1px solid color-mix(in srgb,var(--theme-primary),#8195ad 68%);border-radius:8px;color:#f5f9fd!important;display:inline-flex;font-size:.7rem!important;font-weight:800;line-height:1;min-height:29px;padding:7px 9px!important;text-decoration:none!important}
  .ms-mobile-submenu-tab:hover,.ms-mobile-submenu-tab:focus-visible{background:linear-gradient(120deg,color-mix(in srgb,var(--theme-primary),#fff 72%),color-mix(in srgb,var(--theme-secondary),#fff 82%));border-color:color-mix(in srgb,var(--theme-primary),#fff 38%);color:color-mix(in srgb,var(--theme-primary),#07111f 36%)!important;outline:0}
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-head{background:linear-gradient(120deg,color-mix(in srgb,var(--theme-primary),#162131 65%),color-mix(in srgb,var(--theme-secondary),#162131 74%))!important;border-color:color-mix(in srgb,var(--theme-primary),#718096 44%)!important}
  html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-head>a,html[data-tessirve-color-mode="dark"] .ms-menu-parent.is-open>.ms-menu-parent-head>button,html[data-tessirve-color-mode="dark"] .ms-mobile-submenu-tab:hover{color:#fff!important}
}

/* ========================================================================
   5.16.59 — MÓVIL: navegación compacta tipo acordeón, sin panel gigante
   ======================================================================== */
@media(max-width:782px){
  .ms-primary-nav{
    background:linear-gradient(155deg,
      color-mix(in srgb,var(--theme-primary),#0c1624 86%),
      color-mix(in srgb,var(--theme-secondary),#0c1624 91%))!important;
    border:1px solid color-mix(in srgb,var(--theme-primary),#64748b 70%)!important;
    border-radius:0 0 16px 16px!important;
    box-shadow:0 18px 38px rgba(3,12,25,.28)!important;
    max-height:calc(100dvh - 68px)!important;
    padding:10px!important;
  }
  .ms-site-menu{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .ms-site-menu>li{min-width:0!important;width:auto!important}
  .ms-site-menu>.ms-menu-parent{grid-column:1/-1!important}
  .ms-site-menu>li>a{
    align-items:center!important;
    background:rgba(255,255,255,.038)!important;
    border:1px solid rgba(255,255,255,.075)!important;
    border-radius:10px!important;
    color:#eef5fb!important;
    display:flex!important;
    font-size:.72rem!important;
    font-weight:780!important;
    justify-content:flex-start!important;
    line-height:1.1!important;
    min-height:35px!important;
    padding:8px 10px!important;
  }
  .ms-site-menu>li>a:hover,.ms-site-menu>li>a:focus-visible{
    background:color-mix(in srgb,var(--theme-primary),#162232 80%)!important;
    border-color:color-mix(in srgb,var(--theme-primary),#94a3b8 62%)!important;
  }
  .ms-menu-parent-head{
    background:rgba(255,255,255,.045)!important;
    border:1px solid rgba(255,255,255,.09)!important;
    border-radius:11px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 30px!important;
    min-height:37px!important;
    overflow:hidden!important;
  }
  .ms-menu-parent-head>.ms-menu-parent-link{
    align-items:center!important;
    color:#f2f7fc!important;
    display:flex!important;
    font-size:.73rem!important;
    font-weight:820!important;
    min-height:37px!important;
    padding:8px 4px 8px 11px!important;
  }
  .ms-menu-parent-head>.ms-menu-child-toggle{
    align-items:center!important;
    background:transparent!important;
    border:0!important;
    color:#dce9f5!important;
    display:flex!important;
    justify-content:center!important;
    min-height:37px!important;
    min-width:30px!important;
    padding:0!important;
  }
  .ms-menu-parent-head>.ms-menu-child-toggle:before{
    background:rgba(255,255,255,.075);
    border-radius:50%;
    content:'';
    height:22px;
    position:absolute;
    width:22px;
  }
  .ms-menu-parent-head>.ms-menu-child-toggle svg{height:6px!important;position:relative;width:9px!important;z-index:1}
  .ms-menu-parent.is-open>.ms-menu-parent-head{
    background:linear-gradient(120deg,
      color-mix(in srgb,var(--theme-primary),#162233 70%),
      color-mix(in srgb,var(--theme-secondary),#162233 78%))!important;
    border-color:color-mix(in srgb,var(--theme-primary),#dbeafe 48%)!important;
    box-shadow:inset 3px 0 0 color-mix(in srgb,var(--theme-primary),#fff 20%),0 6px 18px rgba(0,0,0,.13)!important;
  }
  .ms-menu-parent.is-open>.ms-menu-parent-head>a,
  .ms-menu-parent.is-open>.ms-menu-parent-head>button{color:#fff!important}
  .ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-child-toggle:before{
    background:color-mix(in srgb,var(--theme-primary),#fff 78%);
    box-shadow:0 0 0 1px color-mix(in srgb,var(--theme-primary),transparent 60%);
  }
  .ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-child-toggle{color:color-mix(in srgb,var(--theme-primary),#0a1422 28%)!important}
  .ms-mobile-submenu-inner{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
    padding:6px 2px 2px!important;
  }
  .ms-mobile-submenu-tab{
    background:rgba(255,255,255,.045)!important;
    border:1px solid rgba(255,255,255,.085)!important;
    border-radius:9px!important;
    box-shadow:inset 2px 0 0 color-mix(in srgb,var(--theme-primary),#fff 14%)!important;
    color:#f4f8fc!important;
    font-size:.68rem!important;
    justify-content:flex-start!important;
    min-height:31px!important;
    padding:7px 8px 7px 10px!important;
    width:100%!important;
  }
  .ms-mobile-submenu-tab:hover,.ms-mobile-submenu-tab:focus-visible{
    background:color-mix(in srgb,var(--theme-primary),#1a2737 72%)!important;
    border-color:color-mix(in srgb,var(--theme-primary),#fff 55%)!important;
    color:#fff!important;
    transform:none!important;
  }
}
@media(max-width:390px){
  .ms-primary-nav{padding:8px!important}
  .ms-site-menu{gap:5px!important}
  .ms-site-menu>li>a{font-size:.69rem!important;min-height:33px!important;padding:7px 8px!important}
  .ms-mobile-submenu-tab{font-size:.65rem!important;min-height:29px!important;padding:6px 7px 6px 9px!important}
}

/* 5.16.59 — contenedor editorial sólo de portada. */
.ms-before-footer-editorial{box-sizing:border-box;margin:0 auto;max-width:1020px;padding:0 20px}
@media(max-width:720px){.ms-before-footer-editorial{padding:0 12px}}
@media(max-width:782px){.ms-menu-parent-head>.ms-menu-child-toggle{position:relative!important}}

/* ========================================================================
   5.16.60 — MÓVIL: acordeón limpio, sin solapamientos y cierre robusto
   ======================================================================== */
@media(max-width:782px){
  .ms-primary-nav{
    padding:9px!important;
    border-radius:0 0 15px 15px!important;
  }
  .ms-site-menu{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:7px!important;
    row-gap:7px!important;
  }
  .ms-site-menu>li,
  .ms-menu-parent,
  .ms-mobile-submenu,
  .ms-mobile-submenu-inner,
  .ms-mobile-submenu-tab{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
  .ms-site-menu>.ms-menu-parent{grid-column:1/-1!important}

  .ms-menu-parent-head{
    background:rgba(255,255,255,.045)!important;
    border:1px solid rgba(255,255,255,.10)!important;
    border-radius:9px!important;
    box-shadow:none!important;
    grid-template-columns:minmax(0,1fr) 34px!important;
    min-height:36px!important;
  }
  .ms-menu-parent-head>.ms-menu-parent-link{
    color:#f4f8fc!important;
    font-size:.72rem!important;
    font-weight:820!important;
    line-height:1!important;
    min-height:36px!important;
    padding:9px 8px 9px 11px!important;
  }
  .ms-menu-parent-head>.ms-menu-child-toggle{
    border-left:1px solid rgba(255,255,255,.08)!important;
    color:#dbe7f3!important;
    min-height:36px!important;
    min-width:34px!important;
  }
  .ms-menu-parent-head>.ms-menu-child-toggle:before{
    background:rgba(255,255,255,.07)!important;
    border:1px solid rgba(255,255,255,.08)!important;
    box-shadow:none!important;
    height:20px!important;
    width:20px!important;
  }
  .ms-menu-parent.is-open>.ms-menu-parent-head{
    background:linear-gradient(110deg,
      color-mix(in srgb,var(--theme-primary),#17263a 72%),
      color-mix(in srgb,var(--theme-secondary),#17263a 82%))!important;
    border-color:color-mix(in srgb,var(--theme-primary),#cbd5e1 54%)!important;
    box-shadow:inset 2px 0 0 color-mix(in srgb,var(--theme-primary),#fff 22%)!important;
  }
  .ms-menu-parent.is-open>.ms-menu-parent-head>a,
  .ms-menu-parent.is-open>.ms-menu-parent-head>button{color:#fff!important}
  .ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-child-toggle:before{
    background:rgba(255,255,255,.10)!important;
    border-color:rgba(255,255,255,.14)!important;
  }
  .ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-child-toggle{color:#fff!important}

  .ms-mobile-submenu{
    width:100%!important;
    transform:none!important;
    transition:max-height .24s cubic-bezier(.2,.8,.2,1),opacity .16s ease!important;
  }
  .ms-mobile-submenu.is-active{max-height:340px!important}
  .ms-mobile-submenu-inner{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    padding:7px 0 1px!important;
    width:100%!important;
  }
  .ms-mobile-submenu-tab{
    align-items:center!important;
    background:rgba(255,255,255,.045)!important;
    border:1px solid rgba(255,255,255,.09)!important;
    border-radius:8px!important;
    box-shadow:none!important;
    color:#f3f7fb!important;
    display:flex!important;
    font-size:.67rem!important;
    font-weight:790!important;
    justify-content:flex-start!important;
    line-height:1.08!important;
    min-height:33px!important;
    overflow:hidden!important;
    padding:7px 9px!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    width:100%!important;
  }
  .ms-mobile-submenu-tab:hover,
  .ms-mobile-submenu-tab:focus-visible{
    background:color-mix(in srgb,var(--theme-primary),#203047 76%)!important;
    border-color:color-mix(in srgb,var(--theme-primary),#dbeafe 54%)!important;
    box-shadow:inset 2px 0 0 color-mix(in srgb,var(--theme-primary),#fff 18%)!important;
    color:#fff!important;
  }
  .ms-site-menu>li>a{
    box-sizing:border-box!important;
    min-width:0!important;
    width:100%!important;
  }
}
@media(max-width:360px){
  .ms-site-menu{column-gap:5px!important;row-gap:6px!important}
  .ms-mobile-submenu-inner{gap:5px!important}
  .ms-mobile-submenu-tab{font-size:.64rem!important;padding-left:8px!important;padding-right:8px!important}
}

/* ========================================================================
   5.16.61 — MÓVIL: NAVEGACIÓN CENTRADA + GRUPO DE SUBBOTONES
   ======================================================================== */
@media(max-width:782px){
  .ms-site-menu>li>a,
  .ms-menu-parent-head>.ms-menu-parent-link,
  .ms-mobile-submenu-tab{
    justify-content:center!important;
    text-align:center!important;
  }
  .ms-menu-parent-head{
    display:block!important;
    position:relative!important;
  }
  .ms-menu-parent-head>.ms-menu-parent-link{
    align-items:center!important;
    display:flex!important;
    min-height:36px!important;
    padding:9px 42px!important;
    width:100%!important;
  }
  .ms-menu-parent-head>.ms-menu-child-toggle{
    border-left:0!important;
    min-height:28px!important;
    min-width:28px!important;
    position:absolute!important;
    right:4px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
  }
  .ms-menu-parent{
    border:1px solid transparent!important;
    border-radius:12px!important;
    padding:0!important;
    transition:background .18s ease,border-color .18s ease,padding .18s ease!important;
  }
  .ms-menu-parent.is-open{
    background:linear-gradient(135deg,
      color-mix(in srgb,var(--theme-primary),#101b2b 88%),
      color-mix(in srgb,var(--theme-secondary),#101b2b 91%))!important;
    border-color:color-mix(in srgb,var(--theme-primary),rgba(255,255,255,.18) 58%)!important;
    box-shadow:0 8px 22px rgba(5,15,30,.16)!important;
    padding:4px!important;
  }
  .ms-menu-parent.is-open>.ms-menu-parent-head{
    border-color:color-mix(in srgb,var(--theme-primary),#ffffff 58%)!important;
  }
  .ms-menu-parent.is-open>.ms-mobile-submenu{
    border:1px solid color-mix(in srgb,var(--theme-primary),rgba(255,255,255,.12) 70%)!important;
    border-radius:10px!important;
    margin-top:5px!important;
    overflow:hidden!important;
    padding:5px!important;
  }
  .ms-mobile-submenu-inner{
    gap:5px!important;
    padding:0!important;
  }
  .ms-mobile-submenu-tab{
    min-height:34px!important;
    padding:7px 8px!important;
  }
}


/* ========================================================================
   5.16.62 — IDENTIDAD DEL HINCHA: BANDERA FINA + ESCUDO
   ======================================================================== */
.ms-site-header .ms-brand{position:relative!important}
.ms-brand-team-flag{display:none;left:41px;pointer-events:none;position:absolute;top:-7px;width:88px;z-index:4}
.has-team-identity .ms-brand-team-flag{display:block}
.ms-brand-team-flag-cloth{background:linear-gradient(90deg,var(--ms-team-flag-primary,var(--theme-primary)) 0 49%,var(--ms-team-flag-secondary,var(--theme-secondary)) 51% 100%);border:1px solid rgba(255,255,255,.32);border-radius:5px 7px 7px 4px;box-shadow:0 3px 9px color-mix(in srgb,var(--ms-team-flag-primary),transparent 78%);clip-path:polygon(0 12%,12% 5%,25% 13%,38% 5%,51% 13%,64% 5%,77% 13%,90% 6%,100% 13%,100% 88%,89% 82%,77% 91%,64% 83%,51% 92%,38% 84%,25% 93%,12% 85%,0 92%);display:block;height:9px;opacity:.92;transform-origin:left center;animation:msTeamFlagWave 2.6s ease-in-out infinite}
.ms-brand-team-flag-cloth:after{background:linear-gradient(105deg,transparent 5%,rgba(255,255,255,.42) 38%,transparent 58%);content:"";inset:0;position:absolute;transform:translateX(-120%);animation:msTeamFlagShine 4.8s ease-in-out infinite}
@keyframes msTeamFlagWave{0%,100%{transform:perspective(70px) rotateY(0deg) skewY(-.4deg) translateY(0)}35%{transform:perspective(70px) rotateY(-7deg) skewY(.7deg) translateY(-1px)}68%{transform:perspective(70px) rotateY(6deg) skewY(-.6deg) translateY(.5px)}}
@keyframes msTeamFlagShine{0%,64%{transform:translateX(-120%)}78%,100%{transform:translateX(130%)}}
.ms-site-header:not(.has-team-identity) .ms-header-theme-crest{display:none!important}
.ms-site-header.has-team-identity .ms-header-theme-crest{align-items:center!important;display:flex!important;flex:0 0 40px!important;height:40px!important;justify-content:center!important;margin-left:5px!important;overflow:visible!important;width:40px!important}
.ms-site-header.has-team-identity .ms-header-theme-crest img{display:block!important;height:34px!important;max-height:34px!important;max-width:34px!important;object-fit:contain!important;opacity:.86!important;width:34px!important}
.ms-header-theme-crest-fallback{align-items:center;background:linear-gradient(145deg,color-mix(in srgb,var(--theme-primary),#fff 80%),color-mix(in srgb,var(--theme-secondary),#fff 88%));border:1px solid color-mix(in srgb,var(--theme-primary),#fff 48%);border-radius:10px;color:color-mix(in srgb,var(--theme-primary),#07111f 32%);display:flex;font-family:system-ui,"Segoe UI Emoji",sans-serif;font-size:.72rem;font-weight:900;height:31px;justify-content:center;letter-spacing:-.02em;line-height:1;text-align:center;width:31px}
.ms-header-theme-crest-fallback[hidden]{display:none!important}
@media(max-width:720px){
  .ms-brand-team-flag{left:39px;top:-6px;width:75px}.ms-brand-team-flag-cloth{height:8px}
  .ms-site-header.has-team-identity .ms-header-theme-crest{flex-basis:34px!important;height:34px!important;margin-left:2px!important;width:34px!important}
  .ms-site-header.has-team-identity .ms-header-theme-crest img{height:29px!important;max-height:29px!important;max-width:29px!important;width:29px!important}
  .ms-header-theme-crest-fallback{height:28px;width:28px;font-size:.66rem}
}
@media(prefers-reduced-motion:reduce){.ms-brand-team-flag-cloth,.ms-brand-team-flag-cloth:after{animation:none!important}}

.ms-site-header.has-team-identity .ms-header-theme-crest img{transition:transform .2s ease,opacity .2s ease!important}
.ms-site-header.has-team-identity .ms-header-theme-crest:hover img{opacity:1!important;transform:translateY(-1px) rotate(-3deg) scale(1.07)!important}

/* ========================================================================
   5.16.63 — IDENTIDAD FINA: ESCUDO FANTASMA EN MAIN + BANDERA SOBRE MARCA
   ======================================================================== */
.ms-site-main{position:relative!important;isolation:isolate}
body.has-team-background-crest .ms-site-main:before{
  background-image:var(--ms-team-background-crest,none);
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  content:"";
  height:clamp(190px,25vw,330px);
  opacity:.045;
  pointer-events:none;
  position:absolute;
  right:clamp(12px,4vw,72px);
  top:clamp(18px,3vw,42px);
  transform:rotate(-5deg);
  width:clamp(190px,25vw,330px);
  z-index:0;
}
body.has-team-background-crest .ms-site-main>*{position:relative;z-index:1}
html[data-tessirve-color-mode="dark"] body.has-team-background-crest .ms-site-main:before{filter:brightness(1.2) saturate(.9);opacity:.055}

/* El buscador recupera el extremo derecho: no hay escudo mini en el header. */
.ms-header-theme-crest{display:none!important}
.ms-header-search{flex:0 0 auto!important}

/* Bandera: larga, fina y con una punta que flamea sobre la parte alta de TESSIRVE. */
.ms-site-header .ms-brand{isolation:isolate;overflow:visible!important;position:relative!important}
.ms-site-header .ms-brand-name{position:relative;z-index:3}
.ms-brand-team-flag{
  display:none;
  height:13px;
  left:43px;
  pointer-events:none;
  position:absolute;
  top:12px;
  width:96px;
  z-index:5;
}
.has-team-identity .ms-brand-team-flag{display:block}
.ms-brand-team-flag-cloth{
  animation:msTeamFlagWaveFine 2.9s ease-in-out infinite;
  background:
    linear-gradient(105deg,rgba(255,255,255,.20),transparent 24% 76%,rgba(255,255,255,.10)),
    linear-gradient(90deg,
      var(--ms-team-flag-primary,var(--theme-primary)) 0 43%,
      var(--ms-team-flag-secondary,var(--theme-secondary)) 43% 58%,
      var(--ms-team-flag-primary,var(--theme-primary)) 58% 100%);
  border:1px solid rgba(255,255,255,.22);
  border-radius:6px 42% 48% 6px / 55% 42% 58% 55%;
  box-shadow:0 3px 8px rgba(0,0,0,.12);
  clip-path:polygon(0 10%,74% 10%,81% 16%,88% 8%,94% 15%,100% 10%,100% 86%,94% 80%,88% 91%,81% 83%,74% 90%,0 90%);
  display:block;
  height:11px;
  opacity:.84;
  overflow:hidden;
  transform-origin:2% 50%;
  width:100%;
}
.ms-brand-team-flag-cloth:before{
  background:linear-gradient(180deg,rgba(255,255,255,.30),transparent 42%,rgba(0,0,0,.10));
  content:"";
  inset:0;
  position:absolute;
}
.ms-brand-team-flag-cloth:after{
  animation:msTeamFlagShineFine 5.6s ease-in-out infinite;
  background:linear-gradient(105deg,transparent 10%,rgba(255,255,255,.40) 46%,transparent 62%);
  content:"";
  inset:-2px 0;
  position:absolute;
  transform:translateX(-130%);
  width:44%;
}
@keyframes msTeamFlagWaveFine{
  0%,100%{transform:perspective(100px) rotateY(0deg) rotateZ(-.2deg) translateY(0)}
  28%{transform:perspective(100px) rotateY(-5deg) rotateZ(.35deg) translateY(-.6px)}
  58%{transform:perspective(100px) rotateY(5deg) rotateZ(-.3deg) translateY(.45px)}
  78%{transform:perspective(100px) rotateY(-2deg) rotateZ(.15deg) translateY(-.2px)}
}
@keyframes msTeamFlagShineFine{0%,68%{transform:translateX(-130%)}82%,100%{transform:translateX(255%)}}

/* Perfil de equipo: cuarta tarjeta con la mayor goleada histórica cargada. */
.ms-team-profile .ms-last-ten-context{grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:1180px!important}
.ms-team-profile .ms-last-ten-context>div{min-height:68px!important}

@media(max-width:900px) and (min-width:681px){
  .ms-team-profile .ms-last-ten-context{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:680px){
  body.has-team-background-crest .ms-site-main:before{
    height:170px;
    opacity:.042;
    right:-18px;
    top:24px;
    width:170px;
  }
  .ms-brand-team-flag{height:12px;left:38px;top:12px;width:80px}
  .ms-brand-team-flag-cloth{height:10px}
  .ms-team-profile .ms-last-ten-context{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){.ms-brand-team-flag-cloth,.ms-brand-team-flag-cloth:after{animation:none!important}}


/* ========================================================================
   5.16.64 — BANDERÍN FLAMEANTE FINO CON ESCUDO INTEGRADO
   ======================================================================== */
.ms-site-header .ms-brand{
  isolation:isolate;
  overflow:visible!important;
  position:relative!important;
}
.ms-site-header .ms-brand-name{
  position:relative;
  z-index:3;
}
.ms-brand-team-flag,
.ms-brand-team-flag *,
.ms-brand-team-flag *:before,
.ms-brand-team-flag *:after{box-sizing:border-box}
.ms-brand-team-flag{
  display:none;
  pointer-events:none;
  position:absolute;
  left:48px;
  top:3px;
  width:118px;
  height:18px;
  z-index:4;
  filter:drop-shadow(0 1px 4px rgba(0,0,0,.18));
}
.has-team-identity .ms-brand-team-flag{display:block}
.ms-brand-team-flag-cloth,
.ms-brand-team-flag-crest{
  position:absolute;
}
.ms-brand-team-flag-cloth{
  inset:0;
  overflow:hidden;
  opacity:0;
  border-radius:999px 18px 22px 999px / 56% 45% 55% 52%;
  background:
    linear-gradient(105deg,transparent 0 8%,rgba(255,255,255,.22) 18%,transparent 32%,rgba(255,255,255,.18) 56%,transparent 74%,rgba(255,255,255,.12) 88%,transparent 100%),
    linear-gradient(90deg,
      var(--ms-team-flag-primary,var(--theme-primary)) 0 46%,
      color-mix(in srgb,var(--ms-team-flag-primary,var(--theme-primary)),#fff 26%) 46% 49%,
      var(--ms-team-flag-secondary,var(--theme-secondary)) 49% 100%);
  clip-path:polygon(0 20%,6% 11%,14% 17%,22% 9%,31% 14%,40% 8%,50% 14%,60% 8%,71% 13%,81% 10%,91% 18%,100% 26%,100% 77%,90% 68%,82% 84%,72% 76%,60% 86%,50% 78%,39% 86%,28% 79%,18% 84%,9% 74%,0 82%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.24),
    inset 0 1px 0 rgba(255,255,255,.15),
    0 1px 4px rgba(0,0,0,.08);
  transform-origin:0% 50%;
  animation:msTeamRibbonSweep 5.7s cubic-bezier(.45,.02,.27,1) infinite;
}
.ms-brand-team-flag-cloth:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(255,255,255,.24),transparent 34%,rgba(0,0,0,.09) 100%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 6px,transparent 6px 13px);
  mix-blend-mode:screen;
}
.ms-brand-team-flag-cloth:after{
  content:"";
  position:absolute;
  left:-24%;
  top:-10%;
  width:44%;
  height:120%;
  background:linear-gradient(105deg,transparent 0 12%,rgba(255,255,255,.52) 48%,transparent 84%);
  transform:skewX(-18deg);
  animation:msTeamRibbonShine 5.7s ease-in-out infinite;
}
.ms-brand-team-flag-crest{
  top:50%;
  right:7px;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle at 30% 28%,rgba(255,255,255,.62),rgba(255,255,255,.08) 40%,rgba(0,0,0,.12) 100%);
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 0 0 1px rgba(15,23,42,.10),0 3px 8px rgba(0,0,0,.16);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  overflow:hidden;
  opacity:0;
  animation:msTeamRibbonSweep 5.7s cubic-bezier(.45,.02,.27,1) infinite;
}
.ms-brand-team-flag-crest img{
  display:block;
  width:14px;
  height:14px;
  object-fit:contain;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.18));
}
.ms-brand-team-flag-crest-fallback{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  font-size:.5rem;
  font-weight:900;
  line-height:1;
  color:#fff;
}
.ms-brand-team-flag-crest-fallback[hidden],
.ms-brand-team-flag-crest-image[hidden]{display:none!important}
@keyframes msTeamRibbonSweep{
  0%,10%{opacity:0;transform:translateX(-12px) scaleX(.84) perspective(110px) rotateY(10deg) rotateZ(-1.2deg)}
  18%{opacity:.98}
  34%{opacity:.98;transform:translateX(-3px) scaleX(.95) perspective(110px) rotateY(-6deg) rotateZ(.35deg)}
  52%{opacity:.96;transform:translateX(1px) scaleX(1) perspective(110px) rotateY(5deg) rotateZ(-.25deg)}
  74%{opacity:.92;transform:translateX(5px) scaleX(1.02) perspective(110px) rotateY(-3deg) rotateZ(.15deg)}
  88%{opacity:.82}
  100%{opacity:0;transform:translateX(12px) scaleX(1.06) perspective(110px) rotateY(8deg) rotateZ(.8deg)}
}
@keyframes msTeamRibbonShine{
  0%,22%{transform:translateX(-140%) skewX(-18deg)}
  40%{transform:translateX(28%) skewX(-18deg)}
  62%,100%{transform:translateX(230%) skewX(-18deg)}
}
html[data-tessirve-color-mode="dark"] .ms-brand-team-flag{
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.32));
}
@media(max-width:782px){
  .ms-brand-team-flag{
    left:44px;
    top:4px;
    width:96px;
    height:16px;
  }
  .ms-brand-team-flag-crest{
    width:16px;
    height:16px;
    right:6px;
  }
  .ms-brand-team-flag-crest img{width:12px;height:12px}
}
@media(max-width:430px){
  .ms-brand-team-flag{
    left:42px;
    top:4px;
    width:92px;
    height:15px;
  }
}
@media(prefers-reduced-motion:reduce){
  .ms-brand-team-flag-cloth,
  .ms-brand-team-flag-crest,
  .ms-brand-team-flag-cloth:after{animation:none!important;opacity:.95}
}


/* 5.16.65 — bandera retirada por completo; se conserva sólo escudo de fondo. */
.ms-brand-team-flag,.ms-brand-team-flag-cloth,.ms-brand-team-flag-crest{display:none!important;animation:none!important}


/* ========================================================================
   5.16.67 — CONTRASTE AUTOMÁTICO DEL HEADER SEGÚN PALETA DEL SWITCH
   ======================================================================== */
html:not([data-tessirve-color-mode="dark"]) .ms-menu-parent:hover>.ms-menu-parent-head,
html:not([data-tessirve-color-mode="dark"]) .ms-menu-parent.is-open>.ms-menu-parent-head{
  background:linear-gradient(135deg,color-mix(in srgb,var(--ms-theme-control-bg,#24415f),#fff 8%),var(--ms-theme-control-bg,#24415f))!important;
  border-color:color-mix(in srgb,var(--ms-theme-control-bg,#24415f),#000 12%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 0 0 1px color-mix(in srgb,var(--ms-theme-control-bg,#24415f),transparent 75%)!important;
}
html:not([data-tessirve-color-mode="dark"]) .ms-menu-parent:hover>.ms-menu-parent-head :is(a,button,span),
html:not([data-tessirve-color-mode="dark"]) .ms-menu-parent.is-open>.ms-menu-parent-head :is(a,button,span){color:var(--ms-theme-control-ink,#fff)!important}
html:not([data-tessirve-color-mode="dark"]) .ms-menu-parent:hover>.ms-menu-parent-head svg,
html:not([data-tessirve-color-mode="dark"]) .ms-menu-parent.is-open>.ms-menu-parent-head svg{stroke:var(--ms-theme-control-ink,#fff)!important}
@media(max-width:1360px){
  html:not([data-tessirve-color-mode="dark"]) .ms-menu-parent.is-open>.ms-menu-parent-head{
    background:linear-gradient(135deg,color-mix(in srgb,var(--ms-theme-control-bg,#24415f),#fff 10%),var(--ms-theme-control-bg,#24415f))!important;
  }
}

/* ========================================================================
   5.16.68 — IDENTIDAD DE COMPETICIÓN EN TABS DEL HEADER
   ======================================================================== */
.ms-header-submenu-tab,.ms-mobile-submenu-tab{align-items:center!important;display:inline-flex!important;gap:7px!important;justify-content:center!important}
.ms-header-tab-icon{align-items:center;display:inline-flex;flex:0 0 auto;height:18px;justify-content:center;line-height:1;width:18px}
.ms-header-tab-icon.is-flag{font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif;font-size:.86rem;filter:saturate(.92);transform:translateY(-.5px)}
.ms-header-tab-icon.is-logo img{display:block;height:17px;max-height:17px;max-width:17px;object-fit:contain;width:17px}
@media(max-width:782px){
  .ms-mobile-submenu-tab{gap:6px!important}
  .ms-header-tab-icon{height:17px;width:17px}
  .ms-header-tab-icon.is-flag{font-size:.82rem}
  .ms-header-tab-icon.is-logo img{height:16px;max-height:16px;max-width:16px;width:16px}
}


/* 5.16.69 — H2H de cinco hitos y tarjetas clickeables. */
html[data-tessirve-color-mode="dark"] a.ms-h2h-side-card:hover,
html[data-tessirve-color-mode="dark"] a.ms-h2h-side-card:focus-visible{
  box-shadow:0 7px 20px rgba(0,0,0,.24)!important;
  border-color:color-mix(in srgb,var(--theme-primary),#64748b 42%)!important;
}


/* 5.16.70 — los hitos H2H clickeables no se mueven ni cambian de tarjeta al hover. */
html[data-tessirve-color-mode="dark"] .ms-h2h-page .ms-h2h-insight-grid.is-five-cards a.ms-h2h-side-card:hover,
html[data-tessirve-color-mode="dark"] .ms-h2h-page .ms-h2h-insight-grid.is-five-cards a.ms-h2h-side-card:focus-visible{
  transform:none!important;
  box-shadow:none!important;
}


/* ========================================================================
   5.16.72 — HEADER: PADRES SON CONTROLES + MÓVIL COMPACTO EN FLUJO
   ======================================================================== */
.ms-menu-parent-head{
  display:block!important;
}
.ms-menu-parent-toggle{
  align-items:center!important;
  appearance:none!important;
  background:transparent!important;
  border:0!important;
  border-radius:9px!important;
  color:inherit!important;
  cursor:pointer!important;
  display:flex!important;
  font:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  gap:7px!important;
  justify-content:center!important;
  line-height:1!important;
  margin:0!important;
  min-height:32px!important;
  padding:7px 9px!important;
  width:100%!important;
}
.ms-menu-parent-toggle>span{display:block;min-width:0;white-space:nowrap}
.ms-menu-parent-toggle>svg{
  flex:0 0 auto!important;
  height:6px!important;
  margin-left:1px!important;
  position:static!important;
  stroke:currentColor!important;
  transform-origin:center!important;
  transition:transform .24s cubic-bezier(.2,.8,.2,1)!important;
  width:9px!important;
}
.ms-menu-parent.is-open .ms-menu-parent-toggle>svg{transform:rotate(180deg)!important}
.ms-menu-parent-head>.ms-menu-parent-toggle:before{display:none!important}

@media(min-width:1181px){
  .ms-menu-parent-head{
    border:1px solid transparent!important;
    border-radius:9px!important;
    min-height:32px!important;
  }
  .ms-menu-parent-toggle{
    color:inherit!important;
    min-width:0!important;
    padding:7px 8px!important;
  }
  .ms-menu-parent:hover>.ms-menu-parent-head,
  .ms-menu-parent.is-open>.ms-menu-parent-head{
    transition:background .16s ease,border-color .16s ease!important;
  }
}

/* En móvil/tablet el menú deja de flotar sobre la página: el propio header
 * crece y empuja el contenido hacia abajo con una apertura suave. */
@media(max-width:1180px){
  .ms-site-header-inner{
    align-content:flex-start!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    height:auto!important;
    min-height:58px!important;
    padding-bottom:0!important;
  }
  .ms-brand{order:1!important}
  .ms-menu-toggle{order:2!important;margin-left:auto!important}
  .ms-header-search{order:3!important}
  .ms-primary-nav{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-sizing:border-box!important;
    display:block!important;
    flex:0 0 100%!important;
    left:auto!important;
    margin:0!important;
    max-height:0!important;
    opacity:0!important;
    overflow:hidden!important;
    padding:0 6px!important;
    position:static!important;
    right:auto!important;
    top:auto!important;
    transform:translateY(-6px)!important;
    transition:max-height .34s cubic-bezier(.2,.8,.2,1),opacity .18s ease,transform .34s cubic-bezier(.2,.8,.2,1),padding .34s cubic-bezier(.2,.8,.2,1)!important;
    width:100%!important;
  }
  .ms-primary-nav.is-open{
    max-height:min(72vh,720px)!important;
    opacity:1!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    padding:8px 6px 11px!important;
    transform:translateY(0)!important;
  }
  .ms-site-menu{
    background:color-mix(in srgb,var(--theme-secondary,#14213d),#0f1825 86%)!important;
    border:1px solid rgba(255,255,255,.08)!important;
    border-radius:14px!important;
    box-shadow:0 10px 28px rgba(4,12,24,.16)!important;
    display:grid!important;
    gap:5px 6px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    overflow:visible!important;
    padding:7px!important;
  }
  .ms-site-menu>li{min-width:0!important}
  .ms-site-menu>.ms-menu-parent{
    background:transparent!important;
    border:0!important;
    border-radius:10px!important;
    box-shadow:none!important;
    grid-column:1/-1!important;
    padding:0!important;
  }
  .ms-menu-parent-head{
    background:rgba(255,255,255,.035)!important;
    border:1px solid rgba(255,255,255,.075)!important;
    border-radius:9px!important;
    box-shadow:none!important;
    min-height:35px!important;
  }
  .ms-menu-parent-toggle{
    color:#edf3f9!important;
    font-size:.69rem!important;
    font-weight:800!important;
    justify-content:center!important;
    min-height:35px!important;
    padding:8px 30px!important;
    position:relative!important;
  }
  .ms-menu-parent-toggle>svg{
    position:absolute!important;
    right:10px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
  }
  .ms-menu-parent.is-open .ms-menu-parent-toggle>svg{transform:translateY(-50%) rotate(180deg)!important}
  .ms-menu-parent.is-open>.ms-menu-parent-head{
    background:linear-gradient(110deg,
      color-mix(in srgb,var(--theme-primary),#182638 76%),
      color-mix(in srgb,var(--theme-secondary),#182638 84%))!important;
    border-color:color-mix(in srgb,var(--theme-primary),#a9bad0 58%)!important;
    box-shadow:inset 2px 0 0 color-mix(in srgb,var(--theme-primary),#fff 22%)!important;
  }
  .ms-mobile-submenu{
    border:0!important;
    border-radius:0!important;
    box-sizing:border-box!important;
    display:block!important;
    margin:0!important;
    max-height:0!important;
    opacity:0!important;
    overflow:hidden!important;
    padding:0 3px!important;
    transform:translateY(-4px)!important;
    transition:max-height .28s cubic-bezier(.2,.8,.2,1),opacity .17s ease,transform .28s cubic-bezier(.2,.8,.2,1),padding .28s cubic-bezier(.2,.8,.2,1)!important;
    width:100%!important;
  }
  .ms-mobile-submenu[hidden]{display:none!important}
  .ms-mobile-submenu.is-active{
    border:1px solid color-mix(in srgb,var(--theme-primary),rgba(255,255,255,.09) 72%)!important;
    border-radius:10px!important;
    margin-top:5px!important;
    max-height:390px!important;
    opacity:1!important;
    padding:5px!important;
    transform:translateY(0)!important;
  }
  .ms-mobile-submenu-inner{
    display:grid!important;
    gap:5px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    padding:0!important;
  }
  .ms-mobile-submenu-tab{
    align-items:center!important;
    background:rgba(255,255,255,.038)!important;
    border:1px solid rgba(255,255,255,.075)!important;
    border-radius:7px!important;
    box-shadow:none!important;
    color:#edf3f9!important;
    display:flex!important;
    font-size:.65rem!important;
    font-weight:760!important;
    gap:5px!important;
    justify-content:center!important;
    line-height:1.08!important;
    min-height:30px!important;
    padding:6px 7px!important;
    text-align:center!important;
    white-space:normal!important;
  }
  .ms-mobile-submenu-tab:hover,.ms-mobile-submenu-tab:focus-visible{
    background:color-mix(in srgb,var(--theme-primary),#203047 80%)!important;
    border-color:color-mix(in srgb,var(--theme-primary),#b8c9dd 62%)!important;
    color:#fff!important;
    outline:0!important;
  }
  .ms-site-menu>li:not(.ms-menu-parent)>a{
    align-items:center!important;
    background:rgba(255,255,255,.03)!important;
    border:1px solid rgba(255,255,255,.065)!important;
    border-radius:8px!important;
    color:#eaf1f8!important;
    display:flex!important;
    font-size:.66rem!important;
    font-weight:760!important;
    justify-content:center!important;
    min-height:31px!important;
    padding:6px 7px!important;
    text-align:center!important;
  }
}
@media(max-width:420px){
  .ms-primary-nav{padding-left:3px!important;padding-right:3px!important}
  .ms-primary-nav.is-open{padding-top:7px!important;padding-bottom:9px!important}
  .ms-site-menu{gap:4px 5px!important;padding:6px!important}
  .ms-menu-parent-toggle{font-size:.67rem!important;min-height:34px!important}
  .ms-mobile-submenu-tab{font-size:.63rem!important;min-height:29px!important;padding:6px!important}
  .ms-site-menu>li:not(.ms-menu-parent)>a{font-size:.64rem!important;min-height:30px!important}
}


/* 5.16.72b — reset definitivo del viejo botón partido y desplazamiento real del contenido móvil. */
@media(max-width:1180px){
  body.tessirve-theme{
    padding-top:calc(58px + var(--ms-admin-space,0px) + var(--ms-header-extra,0px))!important;
    transition:padding-top .34s cubic-bezier(.2,.8,.2,1)!important;
  }
  .ms-menu-parent-head>.ms-menu-parent-toggle.ms-menu-child-toggle{
    align-items:center!important;
    align-self:auto!important;
    background:transparent!important;
    border:0!important;
    border-left:0!important;
    border-radius:9px!important;
    color:#edf3f9!important;
    display:flex!important;
    grid-column:auto!important;
    justify-content:center!important;
    min-height:35px!important;
    min-width:0!important;
    padding:8px 30px!important;
    position:relative!important;
    right:auto!important;
    top:auto!important;
    transform:none!important;
    width:100%!important;
  }
  .ms-menu-parent.is-open>.ms-menu-parent-head>.ms-menu-parent-toggle.ms-menu-child-toggle{
    border-left:0!important;
    color:#fff!important;
  }
}
@media(min-width:1181px){
  .ms-menu-parent-head>.ms-menu-parent-toggle.ms-menu-child-toggle{
    align-self:auto!important;
    background:transparent!important;
    border:0!important;
    border-radius:9px!important;
    min-width:0!important;
    padding:7px 8px!important;
    width:100%!important;
  }
}


/* ========================================================================
   5.16.73 — TIPOGRAFÍA HOMOGÉNEA + SUBMENÚS SÓLO POR CLICK
   ======================================================================== */
/* Una sola voz tipográfica para toda la navegación. Franklin Gothic aporta
 * una lectura compacta/editorial sin tocar la marca TESSIRVE ni los títulos. */
.ms-primary-nav,
.ms-site-menu,
.ms-site-menu a,
.ms-site-menu button,
.ms-menu-parent-toggle,
.ms-header-submenu-tab,
.ms-mobile-submenu-tab{
  font-family:var(--ms-ui-font)!important;
  font-style:normal!important;
  letter-spacing:.008em!important;
}
.ms-site-menu a,
.ms-menu-parent-toggle{
  font-weight:600!important;
}
.ms-header-submenu-tab,
.ms-mobile-submenu-tab{
  font-weight:600!important;
}
/* El hover queda como feedback visual, jamás como disparador del despliegue. */
.ms-menu-parent-head,
.ms-menu-parent-toggle{
  transition:background-color .16s ease,border-color .16s ease,color .16s ease!important;
}


/* ========================================================================
   5.16.74 — HEADER: PADRES DEL MISMO TAMAÑO QUE LOS LINKS DIRECTOS
   ======================================================================== */
/* En desktop, los controles con despliegue (Argentina, Europa, etc.) deben
 * tener exactamente la misma escala visual que Agenda, Historiales, Rankings... */
@media(min-width:1361px){
  .ms-site-menu>li>a,
  .ms-site-menu>.ms-menu-parent .ms-menu-parent-toggle{
    font-size:clamp(.66rem,.62vw,.78rem)!important;
    font-weight:600!important;
    line-height:1!important;
    min-height:32px!important;
    padding:7px clamp(4px,.42vw,7px)!important;
  }
  .ms-site-menu>.ms-menu-parent .ms-menu-parent-toggle>svg{
    height:5px!important;
    width:8px!important;
    margin-left:2px!important;
  }
}


/* ========================================================================
   5.16.75 — HEADER: ALINEACIÓN REAL DE PADRES Y LINKS DIRECTOS
   ======================================================================== */
@media(min-width:1361px){
  .ms-primary-nav{display:flex!important;align-items:center!important}
  .ms-site-menu{
    align-items:center!important;
    display:flex!important;
  }
  .ms-site-menu>li{
    align-items:center!important;
    display:flex!important;
    height:32px!important;
    margin:0!important;
  }
  .ms-site-menu>.ms-menu-parent{
    align-items:center!important;
    display:flex!important;
    height:32px!important;
  }
  .ms-site-menu>.ms-menu-parent>.ms-menu-parent-head{
    align-items:center!important;
    display:flex!important;
    height:32px!important;
    min-height:32px!important;
    margin:0!important;
    padding:0!important;
  }
  .ms-site-menu>li>a,
  .ms-site-menu>.ms-menu-parent .ms-menu-parent-toggle{
    align-items:center!important;
    box-sizing:border-box!important;
    display:inline-flex!important;
    height:32px!important;
    justify-content:center!important;
    line-height:1!important;
    margin:0!important;
    min-height:32px!important;
    vertical-align:middle!important;
  }
  .ms-site-menu>.ms-menu-parent .ms-menu-parent-toggle>span,
  .ms-site-menu>li>a{
    transform:none!important;
  }
  .ms-site-menu>.ms-menu-parent .ms-menu-parent-toggle>svg{
    align-self:center!important;
    flex:0 0 auto!important;
    margin:0 0 0 4px!important;
    position:static!important;
    transform:none!important;
  }
  .ms-site-menu>.ms-menu-parent.is-open .ms-menu-parent-toggle>svg{
    transform:rotate(180deg)!important;
  }
}


/* ========================================================================
   5.16.76 — BOTONES DEL THEME EN EL MISMO LENGUAJE DEL HEADER
   ======================================================================== */
.ms-theme-button{
  align-items:center!important;
  background:color-mix(in srgb,var(--theme-primary,#175cd3),#fff 90%)!important;
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3),#d0d5dd 58%)!important;
  border-radius:9px!important;
  box-shadow:none!important;
  color:color-mix(in srgb,var(--theme-primary,#175cd3),#101828 30%)!important;
  display:inline-flex!important;
  font-family:var(--ms-ui-font)!important;
  font-size:.72rem!important;
  font-style:normal!important;
  font-weight:650!important;
  justify-content:center!important;
  line-height:1!important;
  min-height:34px!important;
  padding:8px 12px!important;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease!important;
  transform:none!important;
}
.ms-theme-button:hover,.ms-theme-button:focus-visible{
  background:color-mix(in srgb,var(--theme-primary,#175cd3),#fff 84%)!important;
  border-color:color-mix(in srgb,var(--theme-primary,#175cd3),#d0d5dd 36%)!important;
  transform:none!important;
}
html[data-tessirve-color-mode="dark"] .ms-theme-button{
  background:#1a2431!important;
  border-color:#3a495c!important;
  color:#f3f6fa!important;
}
@media(max-width:680px){.ms-theme-button{min-height:34px!important;padding:7px 11px!important}}

/* ========================================================================
   5.16.77 — HEADER CLARO: PADRES CON EL MISMO CONTRASTE QUE LOS LINKS
   ======================================================================== */
@media(min-width:1181px){
  html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent>.ms-menu-parent-head{
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
  }
  html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent .ms-menu-parent-toggle,
  html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent .ms-menu-parent-toggle>span,
  html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent .ms-menu-parent-toggle>svg{
    color:#fff!important;
    stroke:#fff!important;
  }
  html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent:hover>.ms-menu-parent-head,
  html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent.is-open>.ms-menu-parent-head{
    background:rgba(255,255,255,.15)!important;
    border-color:rgba(255,255,255,.20)!important;
    box-shadow:none!important;
  }
  html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent:hover .ms-menu-parent-toggle,
  html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent.is-open .ms-menu-parent-toggle,
  html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent:hover .ms-menu-parent-toggle>span,
  html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent.is-open .ms-menu-parent-toggle>span{
    color:#fff!important;
  }
}

/* ========================================================================
   5.16.79 — HISTORIAL: 50/50 de identidad en TODO el fondo del contenido.
   Los patrones respetan la lectura visual más reconocible de la camiseta.
   ======================================================================== */
body.ms-h2h-active{
  --ms-h2h-page-a:#60708a;
  --ms-h2h-page-a2:#d8dee9;
  --ms-h2h-page-b:#60708a;
  --ms-h2h-page-b2:#d8dee9;
  --ms-h2h-left-pattern:linear-gradient(145deg,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 38%),color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 48%));
  --ms-h2h-right-pattern:linear-gradient(215deg,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 38%),color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 48%));
}
body.ms-h2h-active[data-ms-h2h-left-pattern="river-sash"]{--ms-h2h-left-pattern:linear-gradient(125deg,#f7f8fb 0 35%,color-mix(in srgb,var(--ms-h2h-page-a2),#e31937 14%) 36% 49%,#f7f8fb 50% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="river-sash"]{--ms-h2h-right-pattern:linear-gradient(125deg,#f7f8fb 0 35%,color-mix(in srgb,var(--ms-h2h-page-b2),#e31937 14%) 36% 49%,#f7f8fb 50% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="boca-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#071c45 12%) 0 37%,color-mix(in srgb,var(--ms-h2h-page-a2),#f5c518 8%) 37% 60%,color-mix(in srgb,var(--ms-h2h-page-a),#071c45 12%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="boca-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#071c45 12%) 0 37%,color-mix(in srgb,var(--ms-h2h-page-b2),#f5c518 8%) 37% 60%,color-mix(in srgb,var(--ms-h2h-page-b),#071c45 12%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="vertical-stripes"]{--ms-h2h-left-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 40%) 0 76px,color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 32%) 76px 152px)}
body.ms-h2h-active[data-ms-h2h-right-pattern="vertical-stripes"]{--ms-h2h-right-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 40%) 0 76px,color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 32%) 76px 152px)}
body.ms-h2h-active[data-ms-h2h-left-pattern="halves"]{--ms-h2h-left-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 32%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 32%) 50% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="halves"]{--ms-h2h-right-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 32%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 32%) 50% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="horizontal-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 27%) 0 35%,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 28%) 35% 60%,color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 27%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="horizontal-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 27%) 0 35%,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 28%) 35% 60%,color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 27%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="white-accent"]{--ms-h2h-left-pattern:linear-gradient(135deg,#f7f8fb 0 68%,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 26%) 68% 76%,#f7f8fb 76% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="white-accent"]{--ms-h2h-right-pattern:linear-gradient(135deg,#f7f8fb 0 68%,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 26%) 68% 76%,#f7f8fb 76% 100%)}
body.ms-h2h-active .ms-site-main{
  background-color:#f5f7fb!important;
  background-image:var(--ms-h2h-left-pattern),var(--ms-h2h-right-pattern)!important;
  background-position:left top,right top!important;
  background-repeat:no-repeat,no-repeat!important;
  background-size:50% 100%,50% 100%!important;
  transition:background-image .2s ease!important;
}
/* Una línea central mínima marca el 50/50 sin convertir la página en un bracket. */
body.ms-h2h-active .ms-site-main{box-shadow:inset 1px 0 0 rgba(255,255,255,.28),inset -1px 0 0 rgba(15,23,42,.035)}

html[data-tessirve-color-mode="dark"] body.ms-h2h-active{
  --ms-h2h-left-pattern:linear-gradient(145deg,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 48%),color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 62%));
  --ms-h2h-right-pattern:linear-gradient(215deg,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 48%),color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 62%));
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main{background-color:#0c121b!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="river-sash"]{--ms-h2h-left-pattern:linear-gradient(125deg,#151a22 0 35%,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 36%) 36% 49%,#151a22 50% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="river-sash"]{--ms-h2h-right-pattern:linear-gradient(125deg,#151a22 0 35%,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 36%) 36% 49%,#151a22 50% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="boca-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 30%) 0 37%,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 24%) 37% 60%,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 30%) 60% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="boca-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 30%) 0 37%,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 24%) 37% 60%,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 30%) 60% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="vertical-stripes"]{--ms-h2h-left-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 44%) 0 76px,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 48%) 76px 152px)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="vertical-stripes"]{--ms-h2h-right-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 44%) 0 76px,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 48%) 76px 152px)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="halves"]{--ms-h2h-left-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 42%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 42%) 50% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="halves"]{--ms-h2h-right-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 42%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 42%) 50% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="horizontal-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 52%) 0 35%,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 38%) 35% 60%,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 52%) 60% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="horizontal-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 52%) 0 35%,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 38%) 35% 60%,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 52%) 60% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="white-accent"]{--ms-h2h-left-pattern:linear-gradient(135deg,#151a22 0 68%,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 38%) 68% 76%,#151a22 76% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="white-accent"]{--ms-h2h-right-pattern:linear-gradient(135deg,#151a22 0 68%,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 38%) 68% 76%,#151a22 76% 100%)}

@media(max-width:720px){
  body.ms-h2h-active .ms-site-main{background-size:50% 100%,50% 100%!important}
}
body.ms-h2h-active[data-ms-h2h-left-pattern="solid"]{--ms-h2h-left-pattern:linear-gradient(145deg,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 20%),color-mix(in srgb,var(--ms-h2h-page-a),var(--ms-h2h-page-a2) 24%))}
body.ms-h2h-active[data-ms-h2h-right-pattern="solid"]{--ms-h2h-right-pattern:linear-gradient(215deg,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 20%),color-mix(in srgb,var(--ms-h2h-page-b),var(--ms-h2h-page-b2) 24%))}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="solid"]{--ms-h2h-left-pattern:linear-gradient(145deg,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 32%),color-mix(in srgb,var(--ms-h2h-page-a),var(--ms-h2h-page-a2) 28%))}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="solid"]{--ms-h2h-right-pattern:linear-gradient(215deg,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 32%),color-mix(in srgb,var(--ms-h2h-page-b),var(--ms-h2h-page-b2) 28%))}


/* ========================================================================
   5.16.80 — HISTORIAL: 50/50 suave dentro del contenedor fluido centrado.
   El fondo ya no pinta todo el viewport ni duplica color dentro de cada escudo.
   ======================================================================== */
body.ms-h2h-active{
  --ms-h2h-left-pattern:linear-gradient(145deg,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 90%),color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 93%));
  --ms-h2h-right-pattern:linear-gradient(215deg,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 90%),color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 93%));
}
body.ms-h2h-active[data-ms-h2h-left-pattern="river-sash"]{--ms-h2h-left-pattern:linear-gradient(125deg,#f7f8fb 0 35%,color-mix(in srgb,var(--ms-h2h-page-a2),#f7f8fb 84%) 36% 49%,#f7f8fb 50% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="river-sash"]{--ms-h2h-right-pattern:linear-gradient(125deg,#f7f8fb 0 35%,color-mix(in srgb,var(--ms-h2h-page-b2),#f7f8fb 84%) 36% 49%,#f7f8fb 50% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="boca-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 88%) 0 37%,color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 84%) 37% 60%,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 88%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="boca-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 88%) 0 37%,color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 84%) 37% 60%,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 88%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="vertical-stripes"]{--ms-h2h-left-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 88%) 0 76px,color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 90%) 76px 152px)}
body.ms-h2h-active[data-ms-h2h-right-pattern="vertical-stripes"]{--ms-h2h-right-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 88%) 0 76px,color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 90%) 76px 152px)}
body.ms-h2h-active[data-ms-h2h-left-pattern="halves"]{--ms-h2h-left-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 88%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 88%) 50% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="halves"]{--ms-h2h-right-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 88%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 88%) 50% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="horizontal-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 90%) 0 35%,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 86%) 35% 60%,color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 90%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="horizontal-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 90%) 0 35%,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 86%) 35% 60%,color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 90%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="white-accent"]{--ms-h2h-left-pattern:linear-gradient(135deg,#f7f8fb 0 68%,color-mix(in srgb,var(--ms-h2h-page-a),#f7f8fb 86%) 68% 76%,#f7f8fb 76% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="white-accent"]{--ms-h2h-right-pattern:linear-gradient(135deg,#f7f8fb 0 68%,color-mix(in srgb,var(--ms-h2h-page-b),#f7f8fb 86%) 68% 76%,#f7f8fb 76% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="solid"]{--ms-h2h-left-pattern:linear-gradient(145deg,color-mix(in srgb,var(--ms-h2h-page-a),#f5f7fb 86%),color-mix(in srgb,var(--ms-h2h-page-a2),#f5f7fb 92%))}
body.ms-h2h-active[data-ms-h2h-right-pattern="solid"]{--ms-h2h-right-pattern:linear-gradient(215deg,color-mix(in srgb,var(--ms-h2h-page-b),#f5f7fb 86%),color-mix(in srgb,var(--ms-h2h-page-b2),#f5f7fb 92%))}

body.ms-h2h-active .ms-site-main{background:transparent!important;box-shadow:none!important}
body.ms-h2h-active .ms-content:has(.ms-h2h-page){
  background-color:#f5f7fb!important;
  background-image:var(--ms-h2h-left-pattern),var(--ms-h2h-right-pattern)!important;
  background-position:left top,right top!important;
  background-repeat:no-repeat,no-repeat!important;
  background-size:50% 100%,50% 100%!important;
  box-sizing:border-box!important;
  margin-inline:auto!important;
  max-width:1180px!important;
  width:calc(100% - 40px)!important;
}

html[data-tessirve-color-mode="dark"] body.ms-h2h-active{
  --ms-h2h-left-pattern:linear-gradient(145deg,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 84%),color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 90%));
  --ms-h2h-right-pattern:linear-gradient(215deg,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 84%),color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 90%));
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="solid"]{--ms-h2h-left-pattern:linear-gradient(145deg,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 80%),color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 89%))}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="solid"]{--ms-h2h-right-pattern:linear-gradient(215deg,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 80%),color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 89%))}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page){background-color:#0c121b!important}

@media(min-width:783px) and (max-width:1180px){
  body.ms-h2h-active .ms-content:has(.ms-h2h-page){max-width:980px!important;width:calc(100% - 32px)!important}
}
@media(max-width:782px){
  body.ms-h2h-active .ms-content:has(.ms-h2h-page){max-width:none!important;width:100%!important}
}

/* 5.16.80 — equivalentes suaves de camiseta también en modo oscuro. */
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="river-sash"]{--ms-h2h-left-pattern:linear-gradient(125deg,#111923 0 35%,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 82%) 36% 49%,#111923 50% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="river-sash"]{--ms-h2h-right-pattern:linear-gradient(125deg,#111923 0 35%,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 82%) 36% 49%,#111923 50% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="boca-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 80%) 0 37%,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 78%) 37% 60%,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 80%) 60% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="boca-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 80%) 0 37%,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 78%) 37% 60%,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 80%) 60% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="vertical-stripes"]{--ms-h2h-left-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 82%) 0 76px,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 86%) 76px 152px)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="vertical-stripes"]{--ms-h2h-right-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 82%) 0 76px,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 86%) 76px 152px)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="halves"]{--ms-h2h-left-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 82%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 82%) 50% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="halves"]{--ms-h2h-right-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 82%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 82%) 50% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="horizontal-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 87%) 0 35%,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 80%) 35% 60%,color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 87%) 60% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="horizontal-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 87%) 0 35%,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 80%) 35% 60%,color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 87%) 60% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="white-accent"]{--ms-h2h-left-pattern:linear-gradient(135deg,#111923 0 68%,color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 82%) 68% 76%,#111923 76% 100%)}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="white-accent"]{--ms-h2h-right-pattern:linear-gradient(135deg,#111923 0 68%,color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 82%) 68% 76%,#111923 76% 100%)}

/* ========================================================================
   5.16.81 — HISTORIAL: identidad de camiseta suave, orgánica y sin corte 50/50.
   ======================================================================== */
body.ms-h2h-active .ms-site-main{background:transparent!important}
body.ms-h2h-active .ms-content:has(.ms-h2h-page){
  background:#f5f7fb!important;
  background-image:none!important;
  box-sizing:border-box!important;
  isolation:isolate!important;
  margin-inline:auto!important;
  max-width:1180px!important;
  overflow:hidden!important;
  position:relative!important;
  width:calc(100% - 40px)!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  bottom:-4%;
  content:"";
  pointer-events:none;
  position:absolute;
  top:-4%;
  width:66%;
  z-index:0;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before{
  left:-6%;
  background:
    radial-gradient(80% 62% at 18% 18%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 82%) 0 32%,transparent 72%),
    radial-gradient(78% 66% at 28% 82%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 88%) 0 28%,transparent 74%),
    var(--ms-h2h-left-pattern)!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
  filter:blur(9px) saturate(.9);
  opacity:.96;
  -webkit-mask-image:linear-gradient(90deg,#000 0 62%,rgba(0,0,0,.88) 72%,rgba(0,0,0,.34) 88%,transparent 100%);
  mask-image:linear-gradient(90deg,#000 0 62%,rgba(0,0,0,.88) 72%,rgba(0,0,0,.34) 88%,transparent 100%);
  transform:scale(1.035);
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  right:-6%;
  background:
    radial-gradient(80% 62% at 82% 18%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 82%) 0 32%,transparent 72%),
    radial-gradient(78% 66% at 72% 82%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 88%) 0 28%,transparent 74%),
    var(--ms-h2h-right-pattern)!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
  filter:blur(9px) saturate(.9);
  opacity:.96;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.34) 12%,rgba(0,0,0,.88) 28%,#000 38% 100%);
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.34) 12%,rgba(0,0,0,.88) 28%,#000 38% 100%);
  transform:scale(1.035);
}
body.ms-h2h-active .ms-h2h-page{position:relative!important;z-index:1!important}
body.ms-h2h-active .ms-h2h-page::before{
  background:radial-gradient(ellipse at center,rgba(255,255,255,.22),transparent 62%);
  content:"";
  inset:0;
  pointer-events:none;
  position:absolute;
  z-index:-1;
}

/* Patrones inspirados en la camiseta: visibles como identidad, no como bloques. */
body.ms-h2h-active[data-ms-h2h-left-pattern="river-sash"]{--ms-h2h-left-pattern:linear-gradient(126deg,rgba(255,255,255,.88) 0 37%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 72%) 38% 50%,rgba(255,255,255,.88) 51% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="river-sash"]{--ms-h2h-right-pattern:linear-gradient(126deg,rgba(255,255,255,.88) 0 37%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 72%) 38% 50%,rgba(255,255,255,.88) 51% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="boca-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 76%) 0 36%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 70%) 36% 60%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 76%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="boca-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 76%) 0 36%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 70%) 36% 60%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 76%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="vertical-stripes"]{--ms-h2h-left-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 79%) 0 70px,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 83%) 70px 140px)}
body.ms-h2h-active[data-ms-h2h-right-pattern="vertical-stripes"]{--ms-h2h-right-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 79%) 0 70px,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 83%) 70px 140px)}
body.ms-h2h-active[data-ms-h2h-left-pattern="halves"]{--ms-h2h-left-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 78%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 80%) 50% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="halves"]{--ms-h2h-right-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 78%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 80%) 50% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="horizontal-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 84%) 0 34%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 72%) 34% 61%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 84%) 61% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="horizontal-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 84%) 0 34%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 72%) 34% 61%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 84%) 61% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="white-accent"]{--ms-h2h-left-pattern:linear-gradient(135deg,rgba(255,255,255,.9) 0 67%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 72%) 67% 75%,rgba(255,255,255,.9) 75% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="white-accent"]{--ms-h2h-right-pattern:linear-gradient(135deg,rgba(255,255,255,.9) 0 67%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 72%) 67% 75%,rgba(255,255,255,.9) 75% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="chevron"]{--ms-h2h-left-pattern:linear-gradient(135deg,transparent 0 42%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 72%) 42% 49%,transparent 49% 100%),linear-gradient(225deg,transparent 0 42%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 72%) 42% 49%,transparent 49% 100%),linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 88%),color-mix(in srgb,var(--ms-h2h-page-a),#fff 92%))}
body.ms-h2h-active[data-ms-h2h-right-pattern="chevron"]{--ms-h2h-right-pattern:linear-gradient(135deg,transparent 0 42%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 72%) 42% 49%,transparent 49% 100%),linear-gradient(225deg,transparent 0 42%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 72%) 42% 49%,transparent 49% 100%),linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 88%),color-mix(in srgb,var(--ms-h2h-page-b),#fff 92%))}
body.ms-h2h-active[data-ms-h2h-left-pattern="solid"]{--ms-h2h-left-pattern:radial-gradient(ellipse at 35% 42%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 75%),color-mix(in srgb,var(--ms-h2h-page-a2),#fff 89%) 72%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="solid"]{--ms-h2h-right-pattern:radial-gradient(ellipse at 65% 42%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 75%),color-mix(in srgb,var(--ms-h2h-page-b2),#fff 89%) 72%)}

/* El equipo flota sobre el fondo general: no hay “tarjeta de color” detrás. */
.ms-h2h-team-panel,
.ms-h2h-team-panel.has-team,
.ms-h2h-team-panel[data-ms-h2h-pattern]{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.ms-h2h-team-panel[data-ms-h2h-pattern] .ms-h2h-team-preview,
.ms-h2h-team-preview{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:220px!important;padding:16px!important}
.ms-h2h-team-preview::before,.ms-h2h-team-preview::after{display:none!important}
.ms-h2h-team-preview-crest{height:126px!important;width:126px!important}
.ms-h2h-team-preview-crest img{height:116px!important;max-width:116px!important;width:116px!important}
.ms-h2h-team-preview>strong{font-size:1rem!important;text-shadow:0 1px 0 rgba(255,255,255,.3)}
.ms-h2h-team-picker-button{background:rgba(255,255,255,.78)!important;border-color:rgba(196,208,224,.72)!important;box-shadow:0 7px 18px rgba(17,31,53,.065)!important;backdrop-filter:blur(10px)}
.ms-h2h-context-control{backdrop-filter:blur(10px)}

html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page){background:#0c121b!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before{filter:blur(9px) saturate(.82);opacity:.8}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{filter:blur(9px) saturate(.82);opacity:.8}
html[data-tessirve-color-mode="dark"] .ms-h2h-team-preview>strong{text-shadow:none}
html[data-tessirve-color-mode="dark"] .ms-h2h-team-picker-button{background:rgba(17,25,35,.72)!important;border-color:rgba(58,70,87,.82)!important}

@media(min-width:783px) and (max-width:1180px){body.ms-h2h-active .ms-content:has(.ms-h2h-page){width:calc(100% - 32px)!important}}
@media(max-width:782px){
  body.ms-h2h-active .ms-content:has(.ms-h2h-page){max-width:none!important;width:100%!important}
  body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{width:74%}
  .ms-h2h-team-panel[data-ms-h2h-pattern] .ms-h2h-team-preview,.ms-h2h-team-preview{min-height:170px!important;padding:10px!important}
  .ms-h2h-team-preview-crest{height:94px!important;width:94px!important}
  .ms-h2h-team-preview-crest img{height:88px!important;max-width:88px!important;width:88px!important}
}

/* ========================================================================
   5.16.81 — ESTADIOS: categorías tipo control del sitio, no “caja desplegable”.
   ======================================================================== */
.ms-venue-category-list{gap:10px!important}
.ms-venue-category-section{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
.ms-venue-category-toggle{
  align-items:center!important;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(247,250,253,.96))!important;
  border:1px solid #d8e1ec!important;
  border-radius:14px!important;
  box-shadow:0 5px 14px rgba(16,24,40,.04)!important;
  min-height:54px!important;
  padding:9px 11px 9px 13px!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
}
.ms-venue-category-toggle:hover{border-color:color-mix(in srgb,var(--theme-primary,#175cd3),#cad5e3 58%)!important;box-shadow:0 7px 18px rgba(16,24,40,.065)!important}
.ms-venue-category-section[open] .ms-venue-category-toggle{background:color-mix(in srgb,var(--theme-primary,#175cd3),#fff 96%)!important;border-color:color-mix(in srgb,var(--theme-primary,#175cd3),#cad5e3 48%)!important;box-shadow:0 7px 18px rgba(16,24,40,.065)!important}
.ms-venue-category-title .ms-crest,.ms-venue-category-title .ms-crest-fallback{height:29px!important;max-width:29px!important;width:29px!important}
.ms-venue-category-title>b{font-size:.82rem!important;letter-spacing:.005em}
.ms-venue-category-meta{gap:8px!important}
.ms-venue-category-meta>small{background:#f1f5f9;border-radius:999px;color:#64748b!important;font-size:.62rem!important;font-weight:900!important;padding:5px 8px!important}
.ms-venue-category-meta>i{
  align-items:center!important;
  background:color-mix(in srgb,var(--theme-primary,#175cd3),#fff 92%)!important;
  border:0!important;
  border-radius:999px!important;
  color:var(--theme-primary,#175cd3)!important;
  display:flex!important;
  font-size:.82rem!important;
  height:30px!important;
  justify-content:center!important;
  width:30px!important;
}
.ms-venue-category-section[open] .ms-venue-category-meta>i{background:var(--theme-primary,#175cd3)!important;color:#fff!important;transform:rotate(180deg)!important}
.ms-venue-category-body{background:transparent!important;border:0!important;padding:12px 0 2px!important}
.ms-venue-catalog-card{min-height:112px!important}
.ms-venue-catalog-copy{gap:4px!important;padding:11px 12px!important}
.ms-venue-catalog-place{display:block!important;font-size:.64rem!important;line-height:1.18!important}
.ms-venue-catalog-capacity{color:var(--ms-ink,#17233a)!important;display:block!important;font-size:.64rem!important;font-weight:820!important;line-height:1.18!important}
.ms-venue-catalog-team-crests{margin-top:5px!important}
.ms-venue-catalog-team-crests .ms-crest,.ms-venue-catalog-team-crests .ms-crest-fallback{height:27px!important;max-width:27px!important;width:27px!important}
html[data-tessirve-color-mode="dark"] .ms-venue-category-toggle{background:linear-gradient(180deg,#111923,#121c29)!important;border-color:#344054!important}
html[data-tessirve-color-mode="dark"] .ms-venue-category-section[open] .ms-venue-category-toggle{background:#172130!important;border-color:#42526a!important}
html[data-tessirve-color-mode="dark"] .ms-venue-category-meta>small{background:#1c2939!important;color:#98a2b3!important}
html[data-tessirve-color-mode="dark"] .ms-venue-category-meta>i{background:#1c2939!important;color:#d0d5dd!important}
html[data-tessirve-color-mode="dark"] .ms-venue-category-section[open] .ms-venue-category-meta>i{background:var(--theme-primary,#175cd3)!important;color:#fff!important}
html[data-tessirve-color-mode="dark"] .ms-venue-catalog-capacity{color:#f2f4f7!important}
@media(max-width:680px){
  .ms-venue-category-toggle{min-height:50px!important;padding:8px 9px 8px 10px!important}
  .ms-venue-category-meta>small{font-size:.58rem!important;padding:4px 7px!important}
  .ms-venue-category-meta>i{height:28px!important;width:28px!important}
  .ms-venue-category-body{padding-top:9px!important}
}


/* ========================================================================
   5.16.82 — HISTORIAL: identidad más presente, difuminado 360° y fondo hasta
   el final del área útil. Conserva el contenedor fluido centrado con max-width.
   ======================================================================== */
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page){
  background:transparent!important;
  min-height:calc(100vh - 58px)!important;
  min-height:calc(100dvh - 58px)!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page){
  background:transparent!important;
  min-height:calc(100vh - 58px)!important;
  min-height:calc(100dvh - 58px)!important;
  overflow:hidden!important;
  padding-bottom:96px!important;
}
body.ms-h2h-active .ms-site-footer{margin-top:0!important}

body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  bottom:-8%!important;
  top:-8%!important;
  width:72%!important;
  filter:blur(15px) saturate(1.04)!important;
  opacity:.99!important;
  transform:scale(1.065)!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before{
  left:0!important;
  background:
    radial-gradient(88% 70% at 18% 17%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 75%) 0 34%,transparent 74%),
    radial-gradient(84% 72% at 24% 84%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 82%) 0 30%,transparent 76%),
    radial-gradient(64% 56% at 72% 54%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 90%) 0 18%,transparent 68%),
    var(--ms-h2h-left-pattern)!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.28) 5%,rgba(0,0,0,.82) 14%,#000 23% 66%,rgba(0,0,0,.78) 76%,rgba(0,0,0,.28) 90%,transparent 100%)!important;
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.28) 5%,rgba(0,0,0,.82) 14%,#000 23% 66%,rgba(0,0,0,.78) 76%,rgba(0,0,0,.28) 90%,transparent 100%)!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  right:0!important;
  background:
    radial-gradient(88% 70% at 82% 17%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 75%) 0 34%,transparent 74%),
    radial-gradient(84% 72% at 76% 84%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 82%) 0 30%,transparent 76%),
    radial-gradient(64% 56% at 28% 54%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 90%) 0 18%,transparent 68%),
    var(--ms-h2h-right-pattern)!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.28) 10%,rgba(0,0,0,.78) 24%,#000 34% 77%,rgba(0,0,0,.82) 86%,rgba(0,0,0,.28) 95%,transparent 100%)!important;
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.28) 10%,rgba(0,0,0,.78) 24%,#000 34% 77%,rgba(0,0,0,.82) 86%,rgba(0,0,0,.28) 95%,transparent 100%)!important;
}
body.ms-h2h-active .ms-h2h-page::before{
  background:radial-gradient(ellipse at center,rgba(255,255,255,.11),transparent 66%)!important;
}

/* Un punto más de intensidad que 5.16.81, sin volver al bloque saturado inicial. */
body.ms-h2h-active[data-ms-h2h-left-pattern="river-sash"]{--ms-h2h-left-pattern:linear-gradient(126deg,rgba(255,255,255,.84) 0 37%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 64%) 38% 50%,rgba(255,255,255,.84) 51% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="river-sash"]{--ms-h2h-right-pattern:linear-gradient(126deg,rgba(255,255,255,.84) 0 37%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 64%) 38% 50%,rgba(255,255,255,.84) 51% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="boca-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 68%) 0 36%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 63%) 36% 60%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 68%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="boca-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 68%) 0 36%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 63%) 36% 60%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 68%) 60% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="vertical-stripes"]{--ms-h2h-left-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 71%) 0 70px,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 77%) 70px 140px)}
body.ms-h2h-active[data-ms-h2h-right-pattern="vertical-stripes"]{--ms-h2h-right-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 71%) 0 70px,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 77%) 70px 140px)}
body.ms-h2h-active[data-ms-h2h-left-pattern="halves"]{--ms-h2h-left-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 70%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 74%) 50% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="halves"]{--ms-h2h-right-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 70%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 74%) 50% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="horizontal-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 76%) 0 34%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 64%) 34% 61%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 76%) 61% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="horizontal-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 76%) 0 34%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 64%) 34% 61%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 76%) 61% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="white-accent"]{--ms-h2h-left-pattern:linear-gradient(135deg,rgba(255,255,255,.86) 0 67%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 64%) 67% 75%,rgba(255,255,255,.86) 75% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="white-accent"]{--ms-h2h-right-pattern:linear-gradient(135deg,rgba(255,255,255,.86) 0 67%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 64%) 67% 75%,rgba(255,255,255,.86) 75% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="chevron"]{--ms-h2h-left-pattern:linear-gradient(135deg,transparent 0 42%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 64%) 42% 49%,transparent 49% 100%),linear-gradient(225deg,transparent 0 42%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 64%) 42% 49%,transparent 49% 100%),linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 83%),color-mix(in srgb,var(--ms-h2h-page-a),#fff 89%))}
body.ms-h2h-active[data-ms-h2h-right-pattern="chevron"]{--ms-h2h-right-pattern:linear-gradient(135deg,transparent 0 42%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 64%) 42% 49%,transparent 49% 100%),linear-gradient(225deg,transparent 0 42%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 64%) 42% 49%,transparent 49% 100%),linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 83%),color-mix(in srgb,var(--ms-h2h-page-b),#fff 89%))}
body.ms-h2h-active[data-ms-h2h-left-pattern="solid"]{--ms-h2h-left-pattern:radial-gradient(ellipse at 35% 42%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 68%),color-mix(in srgb,var(--ms-h2h-page-a2),#fff 84%) 74%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="solid"]{--ms-h2h-right-pattern:radial-gradient(ellipse at 65% 42%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 68%),color-mix(in srgb,var(--ms-h2h-page-b2),#fff 84%) 74%)}

html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  filter:blur(15px) saturate(.94)!important;
  opacity:.88!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-page::before{
  background:radial-gradient(ellipse at center,rgba(12,18,27,.12),transparent 66%)!important;
}

@media(max-width:782px){
  body.ms-h2h-active .ms-site-main:has(.ms-h2h-page),
  body.ms-h2h-active .ms-content:has(.ms-h2h-page){min-height:calc(100dvh - 58px)!important}
  body.ms-h2h-active .ms-content:has(.ms-h2h-page){padding-bottom:72px!important}
  body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
  body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{width:80%!important;filter:blur(13px) saturate(1.02)!important}
}

/* ========================================================================
   5.16.83 — HISTORIAL: vuelve la camiseta, sin bordes duros ni blur destructivo.
   ======================================================================== */
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page){
  background:transparent!important;
  overflow:visible!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page){
  background:transparent!important;
  isolation:isolate!important;
  overflow:visible!important;
  position:relative!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  bottom:-9%!important;
  top:-7%!important;
  width:72%!important;
  filter:saturate(1.08)!important;
  opacity:.97!important;
  transform:none!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before{
  left:-92px!important;
  background:var(--ms-h2h-left-pattern)!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.2) 5%,rgba(0,0,0,.72) 12%,#000 20% 63%,rgba(0,0,0,.82) 72%,rgba(0,0,0,.38) 87%,transparent 100%)!important;
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.2) 5%,rgba(0,0,0,.72) 12%,#000 20% 63%,rgba(0,0,0,.82) 72%,rgba(0,0,0,.38) 87%,transparent 100%)!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  right:-92px!important;
  background:var(--ms-h2h-right-pattern)!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.38) 13%,rgba(0,0,0,.82) 28%,#000 37% 80%,rgba(0,0,0,.72) 88%,rgba(0,0,0,.2) 95%,transparent 100%)!important;
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.38) 13%,rgba(0,0,0,.82) 28%,#000 37% 80%,rgba(0,0,0,.72) 88%,rgba(0,0,0,.2) 95%,transparent 100%)!important;
}
body.ms-h2h-active .ms-h2h-page::before{
  background:radial-gradient(ellipse at center,rgba(255,255,255,.08),transparent 62%)!important;
}

/* Intensidad intermedia: la camiseta se reconoce, sin volver al bloque chillón. */
body.ms-h2h-active[data-ms-h2h-left-pattern="river-sash"]{--ms-h2h-left-pattern:linear-gradient(126deg,rgba(255,255,255,.82) 0 36%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 54%) 37% 51%,rgba(255,255,255,.82) 52% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="river-sash"]{--ms-h2h-right-pattern:linear-gradient(126deg,rgba(255,255,255,.82) 0 36%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 54%) 37% 51%,rgba(255,255,255,.82) 52% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="boca-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 58%) 0 35%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 53%) 35% 61%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 58%) 61% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="boca-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 58%) 0 35%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 53%) 35% 61%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 58%) 61% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="vertical-stripes"]{--ms-h2h-left-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 62%) 0 68px,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 70%) 68px 136px)}
body.ms-h2h-active[data-ms-h2h-right-pattern="vertical-stripes"]{--ms-h2h-right-pattern:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 62%) 0 68px,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 70%) 68px 136px)}
body.ms-h2h-active[data-ms-h2h-left-pattern="halves"]{--ms-h2h-left-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 60%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 66%) 50% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="halves"]{--ms-h2h-right-pattern:linear-gradient(90deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 60%) 0 50%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 66%) 50% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="horizontal-band"]{--ms-h2h-left-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 69%) 0 34%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 55%) 34% 61%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 69%) 61% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="horizontal-band"]{--ms-h2h-right-pattern:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 69%) 0 34%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 55%) 34% 61%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 69%) 61% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="white-accent"]{--ms-h2h-left-pattern:linear-gradient(135deg,rgba(255,255,255,.86) 0 66%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 55%) 66% 76%,rgba(255,255,255,.86) 76% 100%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="white-accent"]{--ms-h2h-right-pattern:linear-gradient(135deg,rgba(255,255,255,.86) 0 66%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 55%) 66% 76%,rgba(255,255,255,.86) 76% 100%)}
body.ms-h2h-active[data-ms-h2h-left-pattern="chevron"]{--ms-h2h-left-pattern:linear-gradient(135deg,transparent 0 41%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 55%) 41% 49%,transparent 49% 100%),linear-gradient(225deg,transparent 0 41%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 55%) 41% 49%,transparent 49% 100%),linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-a),#fff 77%),color-mix(in srgb,var(--ms-h2h-page-a),#fff 84%))}
body.ms-h2h-active[data-ms-h2h-right-pattern="chevron"]{--ms-h2h-right-pattern:linear-gradient(135deg,transparent 0 41%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 55%) 41% 49%,transparent 49% 100%),linear-gradient(225deg,transparent 0 41%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 55%) 41% 49%,transparent 49% 100%),linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-page-b),#fff 77%),color-mix(in srgb,var(--ms-h2h-page-b),#fff 84%))}
body.ms-h2h-active[data-ms-h2h-left-pattern="solid"]{--ms-h2h-left-pattern:radial-gradient(ellipse at 34% 42%,color-mix(in srgb,var(--ms-h2h-page-a),#fff 58%) 0 34%,color-mix(in srgb,var(--ms-h2h-page-a2),#fff 77%) 78%)}
body.ms-h2h-active[data-ms-h2h-right-pattern="solid"]{--ms-h2h-right-pattern:radial-gradient(ellipse at 66% 42%,color-mix(in srgb,var(--ms-h2h-page-b),#fff 58%) 0 34%,color-mix(in srgb,var(--ms-h2h-page-b2),#fff 77%) 78%)}

.ms-h2h-context-control select option.ms-h2h-selection-option{font-style:italic;font-weight:800;color:#667085}
html[data-tessirve-color-mode="dark"] .ms-h2h-context-control select option.ms-h2h-selection-option{color:#cbd5e1}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{filter:saturate(.98)!important;opacity:.9!important}
@media(max-width:782px){
  body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before{left:-64px!important;width:84%!important}
  body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{right:-64px!important;width:84%!important}
}

/* 5.16.84 — paquete alineado con optimizaciones del editor administrativo. */


/* ========================================================================
   5.16.85 — HISTORIAL: 50/50 REAL A TODO EL MAIN.
   El dibujo de camiseta ya no depende del max-width del contenido. Cada club
   ocupa media página, ambos lados se funden en el centro y se apagan en los
   bordes exteriores sin rectángulos visibles. El fondo termina ANTES del footer.
   ======================================================================== */
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  content:none!important;
  display:none!important;
}
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page){
  background:var(--theme-bg,#f5f7fb)!important;
  isolation:isolate!important;
  min-height:calc(100vh - 58px)!important;
  min-height:calc(100dvh - 58px)!important;
  overflow:hidden!important;
  position:relative!important;
}
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::after{
  bottom:0!important;
  content:""!important;
  display:block!important;
  filter:saturate(1.06)!important;
  height:auto!important;
  opacity:.98!important;
  pointer-events:none!important;
  position:absolute!important;
  top:0!important;
  transform:none!important;
  width:60%!important;
  z-index:0!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
}
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::before{
  background:var(--ms-h2h-left-pattern)!important;
  left:0!important;
  right:auto!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.42) 1.5%,#000 5% 72%,rgba(0,0,0,.94) 78%,rgba(0,0,0,.68) 86%,rgba(0,0,0,.28) 96%,transparent 100%)!important;
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.42) 1.5%,#000 5% 72%,rgba(0,0,0,.94) 78%,rgba(0,0,0,.68) 86%,rgba(0,0,0,.28) 96%,transparent 100%)!important;
}
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::after{
  background:var(--ms-h2h-right-pattern)!important;
  left:auto!important;
  right:0!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.28) 4%,rgba(0,0,0,.68) 14%,rgba(0,0,0,.94) 22%,#000 28% 95%,rgba(0,0,0,.42) 98.5%,transparent 100%)!important;
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.28) 4%,rgba(0,0,0,.68) 14%,rgba(0,0,0,.94) 22%,#000 28% 95%,rgba(0,0,0,.42) 98.5%,transparent 100%)!important;
}
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content{
  background:transparent!important;
  min-height:calc(100vh - 58px)!important;
  min-height:calc(100dvh - 58px)!important;
  overflow:visible!important;
  position:relative!important;
  z-index:1!important;
}
body.ms-h2h-active .ms-site-footer{
  margin-top:0!important;
  position:relative!important;
  z-index:2!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page){background:#0c121b!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::before,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::after{filter:saturate(.98) brightness(.86)!important;opacity:.92!important}
@media(max-width:782px){
  body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::before,
  body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::after{width:66%!important}
  body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content{padding-bottom:72px!important}
}


/* ========================================================================
   5.16.86 — HISTORIAL: layout FLUIDO centrado + 50/50 simétrico real.
   Corrige 5.16.85: el fondo vuelve al ancho fluido de la página (no al main
   completo), sin max-width fijo; cada identidad ocupa exactamente media área.
   Los bordes exteriores y el encuentro central se apagan gradualmente.
   ======================================================================== */
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page){
  background:var(--theme-bg,#f5f7fb)!important;
  min-height:calc(100vh - 58px)!important;
  min-height:calc(100dvh - 58px)!important;
  overflow:visible!important;
  position:relative!important;
}
/* Anula el fondo full-viewport de 5.16.85. */
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::after{
  content:none!important;
  display:none!important;
}
/* "No fixed": ancho proporcional al viewport, centrado y SIN max-width. */
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
body.ms-h2h-active .ms-content:has(.ms-h2h-page){
  background:var(--theme-bg,#f5f7fb)!important;
  box-sizing:border-box!important;
  isolation:isolate!important;
  margin-inline:auto!important;
  max-width:none!important;
  min-height:calc(100vh - 58px)!important;
  min-height:calc(100dvh - 58px)!important;
  overflow:hidden!important;
  padding:0!important;
  position:relative!important;
  width:calc(100% - clamp(32px,8vw,144px))!important;
  z-index:1!important;
}
body.ms-h2h-active .ms-h2h-page{
  box-sizing:border-box!important;
  margin-inline:auto!important;
  max-width:none!important;
  min-height:inherit!important;
  padding:28px clamp(14px,2.2vw,34px) 96px!important;
  position:relative!important;
  width:100%!important;
  z-index:2!important;
}
/* Dos mitades matemáticamente iguales: 50% + 50%. */
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  bottom:0!important;
  content:""!important;
  display:block!important;
  filter:saturate(1.07)!important;
  opacity:.98!important;
  pointer-events:none!important;
  position:absolute!important;
  top:0!important;
  transform:none!important;
  width:50%!important;
  z-index:0!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before{
  background:var(--ms-h2h-left-pattern)!important;
  left:0!important;
  right:auto!important;
  -webkit-mask-image:linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,.34) 2.2%,
    rgba(0,0,0,.82) 5.2%,
    #000 8% 88%,
    rgba(0,0,0,.82) 92%,
    rgba(0,0,0,.34) 97%,
    transparent 100%)!important;
  mask-image:linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,.34) 2.2%,
    rgba(0,0,0,.82) 5.2%,
    #000 8% 88%,
    rgba(0,0,0,.82) 92%,
    rgba(0,0,0,.34) 97%,
    transparent 100%)!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  background:var(--ms-h2h-right-pattern)!important;
  left:auto!important;
  right:0!important;
  -webkit-mask-image:linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,.34) 3%,
    rgba(0,0,0,.82) 8%,
    #000 12% 92%,
    rgba(0,0,0,.82) 94.8%,
    rgba(0,0,0,.34) 97.8%,
    transparent 100%)!important;
  mask-image:linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,.34) 3%,
    rgba(0,0,0,.82) 8%,
    #000 12% 92%,
    rgba(0,0,0,.82) 94.8%,
    rgba(0,0,0,.34) 97.8%,
    transparent 100%)!important;
}
/* Velo central mínimo: sólo suaviza el encuentro, no cambia el 50/50. */
body.ms-h2h-active .ms-h2h-page::before{
  background:linear-gradient(90deg,
    transparent 43%,
    color-mix(in srgb,var(--theme-bg,#f5f7fb),transparent 42%) 48.5%,
    color-mix(in srgb,var(--theme-bg,#f5f7fb),transparent 42%) 51.5%,
    transparent 57%)!important;
  content:""!important;
  inset:0!important;
  pointer-events:none!important;
  position:absolute!important;
  z-index:-1!important;
}
body.ms-h2h-active .ms-site-footer{margin-top:0!important;position:relative!important;z-index:3!important}

html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page),
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page){background:#0c121b!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  filter:saturate(.98) brightness(.88)!important;
  opacity:.92!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-page::before{
  background:linear-gradient(90deg,transparent 43%,rgba(12,18,27,.52) 48.5% 51.5%,transparent 57%)!important;
}
@media(max-width:782px){
  body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
  body.ms-h2h-active .ms-content:has(.ms-h2h-page){
    width:100%!important;
  }
  body.ms-h2h-active .ms-h2h-page{padding:20px 10px 72px!important}
  body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
  body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{width:50%!important}
}


/* ========================================================================
   5.16.87 — HISTORIAL: MISMO ANCHO EDITORIAL DEL SITIO + 50/50 + DARK REAL.
   - Vuelve al contenedor responsive estándar (max-width editorial, NO width fixed).
   - Cada camiseta ocupa exactamente 50% del fondo disponible.
   - El fondo se desvanece antes del footer para eliminar el corte horizontal.
   - En dark mode, el wrapper de WordPress queda transparente para no tapar colores.
   ======================================================================== */
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page){
  background:var(--theme-bg,#f5f7fb)!important;
  overflow:visible!important;
}
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::after{
  content:none!important;
  display:none!important;
}
/* Mismo criterio que .ms-content del resto de TESSIRVE: centrado, responsive,
   crece hasta un máximo editorial. No es un ancho fijo. */
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
body.ms-h2h-active .ms-content:has(.ms-h2h-page){
  background:transparent!important;
  box-sizing:content-box!important;
  isolation:isolate!important;
  margin-inline:auto!important;
  max-width:980px!important;
  min-height:calc(100vh - 58px)!important;
  min-height:calc(100dvh - 58px)!important;
  overflow:hidden!important;
  padding:0 20px!important;
  position:relative!important;
  width:auto!important;
  z-index:1!important;
}
body.ms-h2h-active .ms-entry-content:has(.ms-h2h-page){
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
}
body.ms-h2h-active .ms-h2h-page{
  background:linear-gradient(180deg,
    transparent 0,
    transparent calc(100% - 118px),
    color-mix(in srgb,var(--theme-bg,#f5f7fb),transparent 35%) calc(100% - 62px),
    var(--theme-bg,#f5f7fb) 100%)!important;
  box-sizing:border-box!important;
  margin:0!important;
  max-width:none!important;
  min-height:inherit!important;
  padding:28px 20px 96px!important;
  position:relative!important;
  width:100%!important;
  z-index:2!important;
}
/* 50/50 matemático. Misma opacidad/filtro en ambos lados. */
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  bottom:0!important;
  content:""!important;
  display:block!important;
  filter:saturate(1.07)!important;
  opacity:.98!important;
  pointer-events:none!important;
  position:absolute!important;
  top:0!important;
  transform:none!important;
  width:50%!important;
  z-index:0!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before{
  background:var(--ms-h2h-left-pattern)!important;
  left:0!important;
  right:auto!important;
  -webkit-mask-image:linear-gradient(90deg,
    transparent 0,
    rgba(0,0,0,.30) 2%,
    rgba(0,0,0,.78) 5%,
    #000 8% 88%,
    rgba(0,0,0,.76) 93%,
    rgba(0,0,0,.28) 97%,
    transparent 100%)!important;
  mask-image:linear-gradient(90deg,
    transparent 0,
    rgba(0,0,0,.30) 2%,
    rgba(0,0,0,.78) 5%,
    #000 8% 88%,
    rgba(0,0,0,.76) 93%,
    rgba(0,0,0,.28) 97%,
    transparent 100%)!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  background:var(--ms-h2h-right-pattern)!important;
  left:auto!important;
  right:0!important;
  -webkit-mask-image:linear-gradient(90deg,
    transparent 0,
    rgba(0,0,0,.28) 3%,
    rgba(0,0,0,.76) 7%,
    #000 12% 92%,
    rgba(0,0,0,.78) 95%,
    rgba(0,0,0,.30) 98%,
    transparent 100%)!important;
  mask-image:linear-gradient(90deg,
    transparent 0,
    rgba(0,0,0,.28) 3%,
    rgba(0,0,0,.76) 7%,
    #000 12% 92%,
    rgba(0,0,0,.78) 95%,
    rgba(0,0,0,.30) 98%,
    transparent 100%)!important;
}
/* El encuentro central sigue suave sin ensanchar ninguna mitad. */
body.ms-h2h-active .ms-h2h-page::before{
  background:linear-gradient(90deg,
    transparent 42.5%,
    color-mix(in srgb,var(--theme-bg,#f5f7fb),transparent 58%) 47.5%,
    color-mix(in srgb,var(--theme-bg,#f5f7fb),transparent 44%) 50%,
    color-mix(in srgb,var(--theme-bg,#f5f7fb),transparent 58%) 52.5%,
    transparent 57.5%)!important;
  content:""!important;
  inset:0!important;
  pointer-events:none!important;
  position:absolute!important;
  z-index:-1!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page),
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page),
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-entry-content:has(.ms-h2h-page){
  background:transparent!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page){background:#0c121b!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  filter:saturate(1.02) brightness(.94)!important;
  opacity:.94!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-page{
  background:linear-gradient(180deg,
    transparent 0,
    transparent calc(100% - 118px),
    rgba(12,18,27,.54) calc(100% - 62px),
    #0c121b 100%)!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-page::before{
  background:linear-gradient(90deg,transparent 42.5%,rgba(12,18,27,.34) 47.5%,rgba(12,18,27,.46) 50%,rgba(12,18,27,.34) 52.5%,transparent 57.5%)!important;
}
body.ms-h2h-active .ms-site-footer{margin-top:0!important}
@media(min-width:783px) and (max-width:1060px){
  body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
  body.ms-h2h-active .ms-content:has(.ms-h2h-page){
    box-sizing:border-box!important;
    max-width:980px!important;
    padding-inline:16px!important;
    width:calc(100% - 32px)!important;
  }
}
@media(max-width:782px){
  body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
  body.ms-h2h-active .ms-content:has(.ms-h2h-page){
    box-sizing:border-box!important;
    max-width:none!important;
    padding-inline:0!important;
    width:100%!important;
  }
  body.ms-h2h-active .ms-h2h-page{padding:20px 10px 72px!important}
  body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
  body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{width:50%!important}
}


/* ========================================================================
   5.16.88 — HISTORIAL: fondo continuo sin bloque inferior/dark + móvil compacto.
   - Mantiene el ancho editorial responsive de 5.16.87.
   - El color vive únicamente en las dos capas 50/50 del contenedor.
   - Los laterales y el pie se desvanecen por máscara: no hay rectángulo de cierre.
   - Dark mode no puede volver a pintar un panel opaco sobre las camisetas.
   - En móvil: selector 1, selector 2 y luego escudos + VS en una misma fila.
   ======================================================================== */
body.ms-h2h-active .ms-h2h-page,
body.ms-h2h-active .ms-h2h-page>.ms-h2h-form.has-country,
body.ms-h2h-active .ms-h2h-form.has-country,
body.ms-h2h-active .ms-h2h-form .ms-h2h-matchup-picker,
body.ms-h2h-active .ms-h2h-modern-matchup{
  background:transparent!important;
  box-shadow:none!important;
}
body.ms-h2h-active .ms-h2h-page{
  border:0!important;
}
/* El viejo velo vertical era el rectángulo claro/oscuro que aparecía debajo. */
body.ms-h2h-active .ms-h2h-page::before{
  content:none!important;
  display:none!important;
  background:none!important;
}

/* Mantenemos exactamente el mismo contenedor editorial de 5.16.87. */
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
body.ms-h2h-active .ms-content:has(.ms-h2h-page){
  max-width:980px!important;
  overflow:hidden!important;
}

/* 50/50 real: misma altura, opacidad y filtro. El fade inferior forma parte
   de la máscara de cada camiseta, por lo que ya no existe un corte horizontal. */
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  bottom:0!important;
  top:0!important;
  width:50%!important;
  filter:saturate(1.07)!important;
  opacity:.98!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before{
  left:0!important;
  right:auto!important;
  -webkit-mask-image:
    linear-gradient(90deg,transparent 0,rgba(0,0,0,.30) 2%,rgba(0,0,0,.78) 5%,#000 8% 88%,rgba(0,0,0,.76) 93%,rgba(0,0,0,.28) 97%,transparent 100%),
    linear-gradient(180deg,#000 0 82%,rgba(0,0,0,.92) 88%,rgba(0,0,0,.64) 93%,rgba(0,0,0,.24) 97%,transparent 100%)!important;
  -webkit-mask-composite:source-in!important;
  mask-image:
    linear-gradient(90deg,transparent 0,rgba(0,0,0,.30) 2%,rgba(0,0,0,.78) 5%,#000 8% 88%,rgba(0,0,0,.76) 93%,rgba(0,0,0,.28) 97%,transparent 100%),
    linear-gradient(180deg,#000 0 82%,rgba(0,0,0,.92) 88%,rgba(0,0,0,.64) 93%,rgba(0,0,0,.24) 97%,transparent 100%)!important;
  mask-composite:intersect!important;
}
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  left:auto!important;
  right:0!important;
  -webkit-mask-image:
    linear-gradient(90deg,transparent 0,rgba(0,0,0,.28) 3%,rgba(0,0,0,.76) 7%,#000 12% 92%,rgba(0,0,0,.78) 95%,rgba(0,0,0,.30) 98%,transparent 100%),
    linear-gradient(180deg,#000 0 82%,rgba(0,0,0,.92) 88%,rgba(0,0,0,.64) 93%,rgba(0,0,0,.24) 97%,transparent 100%)!important;
  -webkit-mask-composite:source-in!important;
  mask-image:
    linear-gradient(90deg,transparent 0,rgba(0,0,0,.28) 3%,rgba(0,0,0,.76) 7%,#000 12% 92%,rgba(0,0,0,.78) 95%,rgba(0,0,0,.30) 98%,transparent 100%),
    linear-gradient(180deg,#000 0 82%,rgba(0,0,0,.92) 88%,rgba(0,0,0,.64) 93%,rgba(0,0,0,.24) 97%,transparent 100%)!important;
  mask-composite:intersect!important;
}

/* Dark real: anulamos el estilo global de tarjetas que intentaba convertir
   el formulario H2H en un rectángulo #151d28. Sólo controles individuales
   conservan su superficie oscura para seguir siendo legibles. */
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-page,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-page>.ms-h2h-form.has-country,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-form.has-country,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-matchup-picker,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-modern-matchup,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-entry-content:has(.ms-h2h-page),
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page){
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after{
  filter:saturate(1.02) brightness(.94)!important;
  opacity:.94!important;
}

/* Móvil: dos selectores juntos y después el cara-a-cara visual compacto. */
@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-page{padding:18px 10px 68px!important}
  .ms-h2h-form .ms-h2h-context-filters{margin-bottom:10px!important}
  .ms-h2h-modern-matchup{
    align-items:center!important;
    display:grid!important;
    gap:8px 7px!important;
    grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr)!important;
    grid-template-areas:
      "pick1 pick1 pick1"
      "pick2 pick2 pick2"
      "prev1 versus prev2"!important;
    width:100%!important;
  }
  .ms-h2h-team-panel{
    display:contents!important;
  }
  .ms-h2h-team-panel.is-team-one .ms-h2h-team-picker{grid-area:pick1!important}
  .ms-h2h-team-panel.is-team-two .ms-h2h-team-picker{grid-area:pick2!important}
  .ms-h2h-team-panel.is-team-one .ms-h2h-team-preview{grid-area:prev1!important}
  .ms-h2h-team-panel.is-team-two .ms-h2h-team-preview{grid-area:prev2!important}
  .ms-h2h-form .ms-h2h-vs{
    grid-area:versus!important;
    align-self:center!important;
    height:48px!important;
    min-height:48px!important;
    margin:0 auto!important;
    width:54px!important;
  }
  .ms-h2h-team-picker{min-width:0!important;position:relative!important;width:100%!important;z-index:20!important}
  .ms-h2h-team-picker-button{min-height:46px!important;width:100%!important}
  .ms-h2h-team-preview{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    gap:6px!important;
    min-height:132px!important;
    padding:6px 2px!important;
  }
  .ms-h2h-team-preview-crest{height:80px!important;width:80px!important}
  .ms-h2h-team-preview-crest img{height:74px!important;max-width:74px!important;width:74px!important}
  .ms-h2h-team-preview>strong{font-size:.78rem!important;line-height:1.15!important}
  .ms-h2h-form .ms-h2h-compare{
    margin-top:10px!important;
    min-height:42px!important;
    width:100%!important;
  }
  /* Los patrones ya están en el fondo general: no duplicarlos dentro de los previews. */
  .ms-h2h-team-panel[data-ms-h2h-pattern] .ms-h2h-team-preview{background:transparent!important}
}


/* ========================================================================
   5.16.89 — HISTORIAL: auditoría de camisetas 2026 + patrones tricolor.
   ======================================================================== */
body.ms-h2h-active{--ms-h2h-page-a3:var(--ms-h2h-page-a2);--ms-h2h-page-b3:var(--ms-h2h-page-b2)}
body.ms-h2h-active[data-ms-h2h-left-pattern="vertical-tricolor"]{
  --ms-h2h-left-pattern:repeating-linear-gradient(90deg,
    color-mix(in srgb,var(--ms-h2h-page-a),#fff 58%) 0 46px,
    color-mix(in srgb,var(--ms-h2h-page-a2),#fff 62%) 46px 92px,
    color-mix(in srgb,var(--ms-h2h-page-a3),#fff 64%) 92px 138px);
}
body.ms-h2h-active[data-ms-h2h-right-pattern="vertical-tricolor"]{
  --ms-h2h-right-pattern:repeating-linear-gradient(90deg,
    color-mix(in srgb,var(--ms-h2h-page-b),#fff 58%) 0 46px,
    color-mix(in srgb,var(--ms-h2h-page-b2),#fff 62%) 46px 92px,
    color-mix(in srgb,var(--ms-h2h-page-b3),#fff 64%) 92px 138px);
}
body.ms-h2h-active[data-ms-h2h-left-pattern="halves-strong"]{
  --ms-h2h-left-pattern:linear-gradient(90deg,
    color-mix(in srgb,var(--ms-h2h-page-a),#fff 46%) 0 50%,
    color-mix(in srgb,var(--ms-h2h-page-a2),#fff 48%) 50% 100%);
}
body.ms-h2h-active[data-ms-h2h-right-pattern="halves-strong"]{
  --ms-h2h-right-pattern:linear-gradient(90deg,
    color-mix(in srgb,var(--ms-h2h-page-b),#fff 46%) 0 50%,
    color-mix(in srgb,var(--ms-h2h-page-b2),#fff 48%) 50% 100%);
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="vertical-tricolor"]{
  --ms-h2h-left-pattern:repeating-linear-gradient(90deg,
    color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 42%) 0 46px,
    color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 46%) 46px 92px,
    color-mix(in srgb,var(--ms-h2h-page-a3),#0c121b 50%) 92px 138px);
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="vertical-tricolor"]{
  --ms-h2h-right-pattern:repeating-linear-gradient(90deg,
    color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 42%) 0 46px,
    color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 46%) 46px 92px,
    color-mix(in srgb,var(--ms-h2h-page-b3),#0c121b 50%) 92px 138px);
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="halves-strong"]{
  --ms-h2h-left-pattern:linear-gradient(90deg,
    color-mix(in srgb,var(--ms-h2h-page-a),#0c121b 30%) 0 50%,
    color-mix(in srgb,var(--ms-h2h-page-a2),#0c121b 32%) 50% 100%);
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="halves-strong"]{
  --ms-h2h-right-pattern:linear-gradient(90deg,
    color-mix(in srgb,var(--ms-h2h-page-b),#0c121b 30%) 0 50%,
    color-mix(in srgb,var(--ms-h2h-page-b2),#0c121b 32%) 50% 100%);
}


/* ========================================================================
   5.16.91 — Newell's: mitad roja / mitad negra EXACTA como el escudo.
   Patrón dedicado para evitar que reglas genéricas "halves" lo laven o pisen.
   ======================================================================== */
body.ms-h2h-active[data-ms-h2h-left-pattern="newells-halves"]{
  --ms-h2h-left-pattern:linear-gradient(90deg,
    color-mix(in srgb,#d71920,#fff 58%) 0 50%,
    color-mix(in srgb,#111111,#fff 68%) 50% 100%)!important;
}
body.ms-h2h-active[data-ms-h2h-right-pattern="newells-halves"]{
  --ms-h2h-right-pattern:linear-gradient(90deg,
    color-mix(in srgb,#d71920,#fff 58%) 0 50%,
    color-mix(in srgb,#111111,#fff 68%) 50% 100%)!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="newells-halves"]{
  --ms-h2h-left-pattern:linear-gradient(90deg,
    color-mix(in srgb,#d71920,#0c121b 38%) 0 50%,
    color-mix(in srgb,#111111,#0c121b 22%) 50% 100%)!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="newells-halves"]{
  --ms-h2h-right-pattern:linear-gradient(90deg,
    color-mix(in srgb,#d71920,#0c121b 38%) 0 50%,
    color-mix(in srgb,#111111,#0c121b 22%) 50% 100%)!important;
}


/* ========================================================================
   5.16.92 — NEWELL'S: fallback absoluto rojo | negro.
   Se activa por data-pattern aunque el título use apóstrofo recto/curvo.
   ======================================================================== */
body.ms-h2h-active[data-ms-h2h-left-pattern="newells-halves"]{
  --ms-h2h-left-pattern:linear-gradient(90deg,
    color-mix(in srgb,#d71920,#fff 34%) 0 50%,
    color-mix(in srgb,#111111,#fff 42%) 50% 100%)!important;
}
body.ms-h2h-active[data-ms-h2h-right-pattern="newells-halves"]{
  --ms-h2h-right-pattern:linear-gradient(90deg,
    color-mix(in srgb,#d71920,#fff 34%) 0 50%,
    color-mix(in srgb,#111111,#fff 42%) 50% 100%)!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-left-pattern="newells-halves"]{
  --ms-h2h-left-pattern:linear-gradient(90deg,
    color-mix(in srgb,#d71920,#0c121b 22%) 0 50%,
    color-mix(in srgb,#111111,#0c121b 8%) 50% 100%)!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active[data-ms-h2h-right-pattern="newells-halves"]{
  --ms-h2h-right-pattern:linear-gradient(90deg,
    color-mix(in srgb,#d71920,#0c121b 22%) 0 50%,
    color-mix(in srgb,#111111,#0c121b 8%) 50% 100%)!important;
}


/* ========================================================================
   5.16.94 — DARK MODE: contraste del selector de Historial + limpieza Rankings.
   ======================================================================== */
html[data-tessirve-color-mode="dark"] .ms-h2h-team-picker-option.is-search-best{
  background:#243447!important;
  color:#ffffff!important;
  outline:1px solid #6b7f99!important;
}
html[data-tessirve-color-mode="dark"] .ms-h2h-team-picker-option.is-search-best>b{color:#ffffff!important}
html[data-tessirve-color-mode="dark"] .ms-h2h-team-picker-option:hover{
  background:#1e2d3e!important;
  color:#ffffff!important;
}
html[data-tessirve-color-mode="dark"] .ms-h2h-team-search input{
  background:#1b2939!important;
  border-color:#6b7f99!important;
  color:#ffffff!important;
  caret-color:#ffffff!important;
}
html[data-tessirve-color-mode="dark"] .ms-h2h-team-search input::placeholder{color:#aebdce!important}
html[data-tessirve-color-mode="dark"] .ms-rankings-note{
  background:#182230!important;
  border:1px solid #475467!important;
  color:#d0d5dd!important;
}
.ms-ranking-card.is-total-card>header{display:none!important}


/* ========================================================================
   5.16.95 — H2H: tarjetas de hitos sin comerse la tarjeta central de Goles.
   ======================================================================== */
.ms-h2h-page .ms-h2h-insight-grid.is-five-cards{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(180px,1.12fr) minmax(0,1fr) minmax(0,1fr)!important;
  gap:9px!important;
}
.ms-h2h-page .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals-card{
  min-width:0!important;
  overflow:hidden!important;
  padding-inline:8px!important;
}
.ms-h2h-page .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:4px!important;
  margin:6px 0 0!important;
  min-width:0!important;
  width:100%!important;
}
.ms-h2h-page .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals>span{
  display:grid!important;
  grid-template-columns:25px minmax(0,auto)!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  min-width:0!important;
}
.ms-h2h-page .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals>span:last-child{
  grid-template-columns:25px minmax(0,auto)!important;
}
.ms-h2h-page .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals strong{
  font-size:clamp(.86rem,1.3vw,1rem)!important;
  line-height:1!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
.ms-h2h-page .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals i{
  font-size:.82rem!important;
  line-height:1!important;
  margin:0!important;
}

/* Antes de que cinco tarjetas empiecen a apretarse, pasamos a una composición
   2 + Goles al centro + 2. Evita solapes en notebook y zoom intermedio. */
@media(max-width:1080px){
  .ms-h2h-page .ms-h2h-insight-grid.is-five-cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .ms-h2h-page .ms-h2h-insight-grid.is-five-cards .is-latest-a{grid-column:1!important;grid-row:1!important}
  .ms-h2h-page .ms-h2h-insight-grid.is-five-cards .is-biggest-a{grid-column:2!important;grid-row:1!important}
  .ms-h2h-page .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals-card{
    grid-column:1/-1!important;
    grid-row:2!important;
    justify-self:center!important;
    width:min(100%,320px)!important;
    min-height:84px!important;
  }
  .ms-h2h-page .ms-h2h-insight-grid.is-five-cards .is-biggest-b{grid-column:1!important;grid-row:3!important}
  .ms-h2h-page .ms-h2h-insight-grid.is-five-cards .is-latest-b{grid-column:2!important;grid-row:3!important}
}


/* ========================================================================
   5.16.96 — Cara a Cara: cinco tarjetas sin solapamientos reales.
   El bloque de GOLES ya no puede invadir las tarjetas vecinas.
   ======================================================================== */
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:10px!important;
  width:100%!important;
  max-width:1180px!important;
  margin:14px auto 20px!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards > *{
  box-sizing:border-box!important;
  grid-column:auto!important;
  grid-row:auto!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  margin:0!important;
  min-width:0!important;
  max-width:100%!important;
  width:auto!important;
  overflow:hidden!important;
  contain:layout paint!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-side-card,
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals-card{
  min-height:96px!important;
  padding:9px 7px!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr)!important;
  align-items:center!important;
  justify-items:center!important;
  gap:2px!important;
  width:100%!important;
  min-width:0!important;
  margin:7px 0 0!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals > span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals .ms-crest,
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals .ms-crest-fallback{
  flex:0 0 23px!important;
  height:23px!important;
  max-width:23px!important;
  width:23px!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals strong{
  flex:0 1 auto!important;
  font-size:clamp(.86rem,1vw,1.02rem)!important;
  line-height:1!important;
  min-width:0!important;
  white-space:nowrap!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals i{
  font-size:.78rem!important;
  line-height:1!important;
  margin:0!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-big-win-scoreline{
  display:grid!important;
  grid-template-columns:24px minmax(0,auto) 24px!important;
  justify-content:center!important;
  gap:4px!important;
  min-width:0!important;
  max-width:100%!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-big-win-crest .ms-crest,
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-big-win-crest .ms-crest-fallback{
  height:23px!important;
  max-width:23px!important;
  width:23px!important;
}
.ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-big-win-scoreline > strong{
  font-size:clamp(.88rem,1vw,1.02rem)!important;
  min-width:0!important;
  white-space:nowrap!important;
}

/* Sólo cuando realmente deja de entrar pasamos a 2 + 2 + goles.
   En escritorio/notebook se conserva la fila de cinco tarjetas. */
@media(max-width:760px){
  .ms-h2h-result .ms-h2h-insight-grid.is-five-cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .ms-h2h-result .ms-h2h-insight-grid.is-five-cards .is-latest-a{grid-column:1!important;grid-row:1!important}
  .ms-h2h-result .ms-h2h-insight-grid.is-five-cards .is-latest-b{grid-column:2!important;grid-row:1!important}
  .ms-h2h-result .ms-h2h-insight-grid.is-five-cards .is-biggest-a{grid-column:1!important;grid-row:2!important}
  .ms-h2h-result .ms-h2h-insight-grid.is-five-cards .is-biggest-b{grid-column:2!important;grid-row:2!important}
  .ms-h2h-result .ms-h2h-insight-grid.is-five-cards .ms-h2h-goals-card{
    grid-column:1/-1!important;
    grid-row:3!important;
    justify-self:center!important;
    width:min(100%,290px)!important;
    min-height:82px!important;
  }
}

/* 5.17.10 — variables administrables desde TESSIRVE > Configuración. */
body.tessirve-theme{font-size:var(--ms-base-font-size,16px)!important;padding-top:calc(var(--ms-header-height,58px) + var(--ms-admin-space,0px))!important}
.ms-site-header-inner{height:var(--ms-header-height,58px)!important;max-width:var(--ms-site-max-width,1240px)!important;padding-left:var(--ms-page-padding,22px)!important;padding-right:var(--ms-page-padding,22px)!important}
.ms-site-main,.ms-site-footer-inner,.ms-theme-footer-strip-inner{max-width:var(--ms-site-max-width,1240px)!important}
.ms-brand-name{font-size:var(--ms-brand-font-size,18px)!important}.ms-site-menu a{font-size:var(--ms-nav-font-size,13px)!important}
.ms-primary-nav{top:var(--ms-header-height,58px)!important}
@media(max-width:782px){body.tessirve-theme{padding-top:calc(var(--ms-header-mobile-height,54px) + var(--ms-admin-space,0px))!important}.ms-site-header-inner{height:var(--ms-header-mobile-height,54px)!important;padding-left:min(var(--ms-page-padding,22px),16px)!important;padding-right:min(var(--ms-page-padding,22px),16px)!important}.ms-primary-nav{top:var(--ms-header-mobile-height,54px)!important}}


/* 5.17.11 — el ancho configurable siempre queda centrado. Evita que perfiles y
   competiciones se peguen al borde izquierdo cuando max-width es menor al viewport. */
body.tessirve-theme .ms-site-main,
body.tessirve-theme .ms-site-footer-inner,
body.tessirve-theme .ms-theme-footer-strip-inner{
  box-sizing:border-box!important;
  margin-left:auto!important;
  margin-right:auto!important;
  width:100%!important;
}
body.tessirve-theme .ms-site-main>.ms-app,
body.tessirve-theme .ms-site-main>.ms-content,
body.tessirve-theme .ms-site-main>.ms-competition-profile,
body.tessirve-theme .ms-site-main>.ms-team-profile{
  box-sizing:border-box!important;
  margin-left:auto!important;
  margin-right:auto!important;
  width:100%!important;
}


/* ========================================================================
   5.17.15 — HEADER: DESTACADOS + CONTRASTE REAL
   ======================================================================== */
:root{--ms-featured-height:40px}
body.tessirve-theme{
  padding-top:calc(var(--ms-header-height,58px) + var(--ms-featured-height,40px) + var(--ms-admin-space,0px) + var(--ms-header-extra,0px))!important;
}
.ms-header-featured{
  background:linear-gradient(115deg,color-mix(in srgb,var(--theme-primary),#061326 54%),color-mix(in srgb,var(--theme-secondary),#061326 64%));
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(110,171,239,.16);
  box-sizing:border-box;
  height:var(--ms-featured-height,40px);
  overflow:hidden;
  width:100%;
}
.ms-header-featured-inner{
  align-items:center;
  box-sizing:border-box;
  display:flex;
  gap:13px;
  height:100%;
  margin:0 auto;
  max-width:1520px;
  padding:0 18px;
  width:98vw;
}
.ms-header-featured-label{
  align-items:center;
  color:#8fc5ff;
  display:inline-flex;
  flex:0 0 auto;
  font-size:.58rem;
  font-weight:950;
  gap:5px;
  letter-spacing:.12em;
  text-transform:uppercase;
  white-space:nowrap;
}
.ms-header-featured-label i{color:#ffd166;font-size:.62rem;font-style:normal}
.ms-header-featured-links{
  align-items:center;
  display:flex;
  flex:1 1 auto;
  gap:8px;
  justify-content:center;
  min-width:0;
  overflow:hidden;
}
.ms-header-featured-links>a{
  align-items:center;
  border-radius:7px;
  color:#f7fbff!important;
  display:inline-flex;
  flex:0 0 auto;
  font-size:clamp(.60rem,.58vw,.70rem);
  font-weight:820;
  gap:5px;
  line-height:1;
  min-height:27px;
  padding:4px 5px;
  text-decoration:none!important;
  transition:background .15s ease,color .15s ease,transform .15s ease;
  white-space:nowrap;
}
.ms-header-featured-links>a:hover,.ms-header-featured-links>a:focus-visible{
  background:rgba(255,255,255,.11);
  color:#fff!important;
  outline:0;
  transform:translateY(-1px);
}
.ms-header-featured-links img{height:18px;max-width:22px;object-fit:contain;width:18px}
.ms-header-featured-dot{color:rgba(190,218,248,.52);flex:0 0 auto;font-size:.72rem}
.ms-header-featured-links .is-short{display:none}
.ms-header-featured-fallback{color:#8fc5ff;font-style:normal}

/* El padre abierto queda claro CON texto oscuro. Evita blanco sobre blanco. */
html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent.is-open>.ms-menu-parent-head,
html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent:hover>.ms-menu-parent-head{
  background:#eaf3ff!important;
  border-color:#b7d2f3!important;
  box-shadow:inset 0 0 0 1px rgba(23,92,211,.05)!important;
}
html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent.is-open>.ms-menu-parent-head .ms-menu-parent-toggle,
html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent:hover>.ms-menu-parent-head .ms-menu-parent-toggle,
html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent.is-open>.ms-menu-parent-head .ms-menu-parent-toggle>span,
html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent:hover>.ms-menu-parent-head .ms-menu-parent-toggle>span{
  color:#102f52!important;
  text-shadow:none!important;
}
html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent.is-open>.ms-menu-parent-head svg,
html:not([data-tessirve-color-mode="dark"]) .ms-site-menu>.ms-menu-parent:hover>.ms-menu-parent-head svg{stroke:#102f52!important}

/* El buscador y el menú desplegable nacen por debajo de la nueva franja. */
.ms-header-search-panel{top:calc(100% + var(--ms-featured-height,40px) + 8px)!important}
@media(max-width:1180px){
  .ms-primary-nav{top:calc(var(--ms-header-height,58px) + var(--ms-featured-height,40px))!important}
  .ms-header-featured-inner{gap:9px;max-width:none;padding:0 10px;width:100%}
  .ms-header-featured-links{justify-content:flex-start;overflow-x:auto;overscroll-behavior-inline:contain;padding-right:12px;scrollbar-width:none}
  .ms-header-featured-links::-webkit-scrollbar{display:none}
  .ms-header-featured-links .is-full{display:none}
  .ms-header-featured-links .is-short{display:inline}
}
@media(max-width:782px){
  :root{--ms-featured-height:36px}
  body.tessirve-theme{padding-top:calc(var(--ms-header-mobile-height,54px) + var(--ms-featured-height,36px) + var(--ms-admin-space,0px) + var(--ms-header-extra,0px))!important}
  .ms-primary-nav{top:calc(var(--ms-header-mobile-height,54px) + var(--ms-featured-height,36px))!important}
  .ms-header-featured-label{font-size:.52rem;letter-spacing:.09em}
  .ms-header-featured-inner{gap:7px;padding:0 8px}
  .ms-header-featured-links{gap:5px}
  .ms-header-featured-links>a{font-size:.62rem;gap:4px;min-height:25px;padding:3px 4px}
  .ms-header-featured-links img{height:16px;max-width:19px;width:16px}
  .ms-header-featured-dot{font-size:.62rem}
  .ms-header-search-panel{top:calc(var(--ms-admin-offset,0px) + var(--ms-header-mobile-height,54px) + var(--ms-featured-height,36px) + 8px)!important}
}


/* ========================================================================
   5.17.16 — HEADER / FOOTER
   ======================================================================== */
/* El submenú vuelve a vivir inmediatamente debajo de la fila principal. La
   franja de accesos destacados queda después, no entre el botón y su menú. */
.ms-header-submenus{order:2}
.ms-header-featured{order:3}

/* Sin la palabra “Destacados”: estrellas discretas delimitan la franja. */
.ms-header-featured-inner{gap:10px!important}
.ms-header-featured-star{color:#ffd166;display:inline-flex;flex:0 0 auto;font-size:.62rem;filter:drop-shadow(0 0 5px rgba(255,209,102,.18));line-height:1}
.ms-header-featured-links{gap:7px!important}
.ms-header-featured-dot{animation:ms-featured-dot-colors 5.6s linear infinite;background:#ffd166;border-radius:50%;display:inline-block!important;height:4px;min-width:4px;width:4px;font-size:0!important;box-shadow:0 0 5px currentColor;animation-delay:var(--ms-dot-delay,0s)}
@keyframes ms-featured-dot-colors{
  0%{background:#ffd166;box-shadow:0 0 5px #ffd166}
  17%{background:#ff6b6b;box-shadow:0 0 5px #ff6b6b}
  34%{background:#55d98a;box-shadow:0 0 5px #55d98a}
  51%{background:#54b8ff;box-shadow:0 0 5px #54b8ff}
  68%{background:#b48cff;box-shadow:0 0 5px #b48cff}
  85%{background:#53e0da;box-shadow:0 0 5px #53e0da}
  100%{background:#ffd166;box-shadow:0 0 5px #ffd166}
}

/* LPF compacta en destacados y tabs; marca completa sigue en la ficha. */
.ms-header-featured-lpf-icon,.ms-header-lpf-icon{display:inline-block!important;overflow:hidden!important;position:relative!important;flex:0 0 auto!important}
.ms-header-featured-lpf-icon{height:18px!important;width:18px!important}
.ms-header-featured-lpf-icon>img{height:27px!important;max-width:none!important;position:absolute!important;left:-3px!important;top:50%!important;transform:translateY(-50%)!important;width:auto!important}
.ms-header-lpf-icon{height:17px!important;width:17px!important}
.ms-header-lpf-icon>img{height:25px!important;max-width:none!important;position:absolute!important;left:-3px!important;top:50%!important;transform:translateY(-50%)!important;width:auto!important}

/* Botón de volver arriba a la izquierda del footer. */
.ms-theme-footer-strip-inner{justify-content:flex-start!important}
.ms-back-to-top{align-items:center;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.18);border-radius:9px;color:#f7fbff;cursor:pointer;display:inline-flex;font:inherit;font-size:.68rem;font-weight:850;gap:6px;min-height:32px;padding:6px 10px;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.ms-back-to-top svg{fill:none;height:15px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;width:15px}
.ms-back-to-top:hover,.ms-back-to-top:focus-visible{background:rgba(255,255,255,.11);border-color:rgba(143,197,255,.55);outline:0;transform:translateY(-1px)}
.ms-theme-controls{margin-left:auto!important}

@media(max-width:1180px){
  .ms-header-featured-star{font-size:.56rem}
}
@media(max-width:782px){
  .ms-back-to-top span{display:none}
  .ms-back-to-top{height:32px;justify-content:center;padding:6px;width:34px}
  .ms-header-featured-star{font-size:.52rem}
}
@media(prefers-reduced-motion:reduce){.ms-header-featured-dot{animation:none!important}}


/* ========================================================================
   5.17.18 — DESTACADOS / CABECERAS DE AGENDA
   ======================================================================== */
/* Las estrellas forman parte de la misma tira que los accesos: quedan al
   mismo paso visual que los puntitos, no clavadas contra los bordes. */
.ms-header-featured-inner{gap:0!important}
.ms-header-featured-star{
  color:#fff!important;
  filter:none!important;
  text-shadow:0 0 5px rgba(255,255,255,.16);
}

/* Al mover la bandera del país a la cabecera de la liga, la regla histórica
   `.ms-match-group-title>span{margin-left:auto}` podía mandar bandera + nombre
   a la derecha. En la agenda todo el bloque vuelve a arrancar a la izquierda. */
.ms-home-today .ms-match-group-title{
  justify-content:flex-start!important;
  text-align:left!important;
}
.ms-home-today .ms-match-group-title>.ms-match-group-country{
  margin-left:0!important;
  margin-right:0!important;
}
.ms-home-today .ms-match-group-title>.ms-match-group-link,
.ms-home-today .ms-match-group-title>strong{
  margin-left:0!important;
  margin-right:0!important;
  text-align:left!important;
}

/* ========================================================================
   5.17.20 — CABECERAS, BANDERAS Y TIPOGRAFÍA DE DATOS
   ======================================================================== */
:root{
  --ms-ui-font:"Aptos","Segoe UI Variable Text","Segoe UI",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}

/* Toda cabecera de competencia en agenda/fixtures queda: logo · nombre · país.
   Anula el margin-left:auto histórico que también alcanzaba al logo LPF porque
   ese logo compacto es un <span>. */
.ms-match-group-title{
  justify-content:flex-start!important;
  text-align:left!important;
}
.ms-match-group-title>*{
  margin-left:0!important;
  margin-right:0!important;
}
.ms-match-group-title>.ms-crest,
.ms-match-group-title>.ms-crest-fallback{order:1!important}
.ms-match-group-title>.ms-match-group-link,
.ms-match-group-title>strong{order:2!important}
.ms-match-group-title>.ms-match-group-country{order:3!important}
.ms-match-group-title .ms-match-group-link{
  align-items:center!important;
  display:inline-flex!important;
  flex:0 1 auto!important;
  min-width:0!important;
}

/* Banderas chicas: visibles pero discretas, con el mismo lenguaje redondeado
   que los botones. El estilo se limita a contextos compactos para no alterar
   las banderas grandes de páginas de países/confederaciones. */
.ms-match-group-country{
  align-items:center!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  line-height:1!important;
  margin-left:1px!important;
}
.ms-match-group-country .ms-country-flag,
.ms-compact-scoreline strong .ms-country-flag{
  align-items:center!important;
  background:rgba(255,255,255,.78)!important;
  border:1px solid rgba(15,43,76,.12)!important;
  border-radius:4px!important;
  box-shadow:0 1px 2px rgba(15,43,76,.05)!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  filter:saturate(.82) brightness(1.04)!important;
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif!important;
  font-size:.66rem!important;
  height:13px!important;
  justify-content:center!important;
  line-height:11px!important;
  max-width:19px!important;
  min-width:19px!important;
  opacity:.94!important;
  overflow:hidden!important;
  padding:0!important;
  vertical-align:middle!important;
  width:19px!important;
}
.ms-match-group-country .ms-country-flag.ms-flag-england,
.ms-compact-scoreline strong .ms-country-flag.ms-flag-england{
  height:13px!important;
  max-width:19px!important;
  min-width:19px!important;
  width:19px!important;
}
.ms-match-group-country .ms-country-flag.ms-flag-england:before,
.ms-compact-scoreline strong .ms-country-flag.ms-flag-england:before{height:3px!important;top:4px!important}
.ms-match-group-country .ms-country-flag.ms-flag-england:after,
.ms-compact-scoreline strong .ms-country-flag.ms-flag-england:after{left:8px!important;width:3px!important}
html[data-tessirve-color-mode="dark"] .ms-match-group-country .ms-country-flag,
html[data-tessirve-color-mode="dark"] .ms-compact-scoreline strong .ms-country-flag{
  background:rgba(255,255,255,.9)!important;
  border-color:rgba(255,255,255,.18)!important;
}

/* Tipografía de lectura deportiva: moderna y menos pesada. Aptos se aprovecha
   si está disponible (muy común en Office/Windows) y cae a Segoe UI sin red. */
.ms-app{
  font-family:var(--ms-ui-font)!important;
  font-kerning:normal;
  text-rendering:optimizeLegibility;
}
.ms-match-group-title,
.ms-compact-scoreline,
.ms-standing-table,
.ms-average-table,
.ms-data-table,
.ms-standing-card{
  font-family:var(--ms-ui-font)!important;
}
.ms-match-group-title strong{
  font-family:var(--ms-ui-font)!important;
  font-weight:750!important;
  letter-spacing:-.006em!important;
  line-height:1.22!important;
}
.ms-compact-scoreline strong{
  font-family:var(--ms-ui-font)!important;
  font-weight:750!important;
  letter-spacing:-.008em!important;
  line-height:1.24!important;
  overflow:visible!important;
}
.ms-compact-team-name{
  display:inline-block!important;
  line-height:1.24!important;
  overflow:visible!important;
  padding:1px 0 2px!important;
}
.ms-standing-table td,
.ms-average-table td,
.ms-data-table td{
  font-family:var(--ms-ui-font)!important;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.004em;
}
.ms-standing-table td:nth-child(2) strong,
.ms-average-table td:nth-child(2) strong,
.ms-data-table td a,
.ms-data-table td strong{
  font-family:var(--ms-ui-font)!important;
  font-weight:700!important;
  letter-spacing:-.006em!important;
  line-height:1.25!important;
}

@media(max-width:560px){
  .ms-match-group-country .ms-country-flag,
  .ms-compact-scoreline strong .ms-country-flag{
    border-radius:3px!important;
    font-size:.61rem!important;
    height:12px!important;
    line-height:10px!important;
    max-width:18px!important;
    min-width:18px!important;
    width:18px!important;
  }
  .ms-compact-scoreline strong{line-height:1.22!important}
}

/* ========================================================================
   5.17.22 — AGENDA MÓVIL: BANDERAS LIMPIAS + COMPETENCIAS MÁS COMPACTAS
   ======================================================================== */
/* La bandera va directa, sin cápsula/recuadro extra. */
.ms-match-group-country .ms-country-flag,
.ms-compact-scoreline strong .ms-country-flag{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
  font-size:.72rem!important;
  height:auto!important;
  line-height:1!important;
  max-width:none!important;
  min-width:0!important;
  opacity:1!important;
  overflow:visible!important;
  padding:0!important;
  width:auto!important;
}
/* Inglaterra necesita su paño blanco para dibujar la cruz: no es una caja decorativa. */
.ms-match-group-country .ms-country-flag.ms-flag-england,
.ms-compact-scoreline strong .ms-country-flag.ms-flag-england{
  background:#fff!important;
  border:0!important;
  border-radius:1px!important;
  height:10px!important;
  min-width:15px!important;
  overflow:hidden!important;
  width:15px!important;
}
.ms-match-group-country .ms-country-flag.ms-flag-england:before,
.ms-compact-scoreline strong .ms-country-flag.ms-flag-england:before{height:3px!important;top:3.5px!important}
.ms-match-group-country .ms-country-flag.ms-flag-england:after,
.ms-compact-scoreline strong .ms-country-flag.ms-flag-england:after{left:6px!important;width:3px!important}
html[data-tessirve-color-mode="dark"] .ms-match-group-country .ms-country-flag,
html[data-tessirve-color-mode="dark"] .ms-compact-scoreline strong .ms-country-flag{
  border:0!important;
  box-shadow:none!important;
}

/* Agenda: menos aire entre competiciones y un divisor de 1 px, sutil e inset. */
.ms-home-today .ms-match-groups{
  gap:10px!important;
}
.ms-home-today .ms-match-group{
  overflow:visible!important;
  position:relative!important;
}
.ms-home-today .ms-match-group-title{
  border-radius:var(--ms-radius) var(--ms-radius) 0 0!important;
}
.ms-home-today .ms-match-group + .ms-match-group:before{
  background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--ms-line,#d0d5dd),transparent 10%) 12%,color-mix(in srgb,var(--ms-line,#d0d5dd),transparent 10%) 88%,transparent 100%);
  content:"";
  height:1px;
  left:16px;
  pointer-events:none;
  position:absolute;
  right:16px;
  top:-6px;
}
@media(max-width:560px){
  .ms-home-today .ms-match-groups{gap:8px!important}
  .ms-home-today .ms-match-group + .ms-match-group:before{left:12px;right:12px;top:-5px}
}


/* ========================================================================
   5.17.23 — AGENDA: BLOQUES REALMENTE JUNTOS + DIVISOR HAIRLINE
   ======================================================================== */
/* En móvil existía una regla genérica `.ms-app section{margin:24px 0!important}`
   que volvía a separar cada competición aunque el grid tuviera poco gap.
   Acá la anulamos únicamente dentro de la agenda diaria. */
.ms-home-today .ms-match-groups{
  gap:5px!important;
}
.ms-home-today .ms-match-groups>.ms-match-group{
  margin:0!important;
}

/* Separador corto, centrado y con desvanecido suave: no es una barra entre tarjetas. */
.ms-home-today .ms-match-group + .ms-match-group:before{
  background:linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb,var(--theme-primary,#175cd3),transparent 91%) 18%,
    color-mix(in srgb,var(--theme-primary,#175cd3),transparent 79%) 50%,
    color-mix(in srgb,var(--theme-primary,#175cd3),transparent 91%) 82%,
    transparent 100%)!important;
  border-radius:999px!important;
  height:1px!important;
  left:28%!important;
  opacity:.82!important;
  right:28%!important;
  top:-3px!important;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-match-group + .ms-match-group:before{
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.035) 18%,
    rgba(255,255,255,.16) 50%,
    rgba(255,255,255,.035) 82%,
    transparent 100%)!important;
  opacity:1!important;
}

@media(max-width:560px){
  .ms-home-today .ms-match-groups{gap:4px!important}
  .ms-home-today .ms-match-groups>.ms-match-group{margin:0!important}
  .ms-home-today .ms-match-group + .ms-match-group:before{
    left:23%!important;
    right:23%!important;
    top:-2.5px!important;
  }
}

/* ========================================================================
   5.17.24 — HEADER MÓVIL RECONSTRUIDO + AGENDA REDONDEADA
   ======================================================================== */
/* En escritorio la tira editorial se conserva. En celular desaparece por
   completo: los nueve accesos pasan al menú hamburguesa y entran todos sin
   desplazamiento horizontal. */
.ms-mobile-quicklinks{display:none}

@media(max-width:782px){
  :root{--ms-featured-height:0px!important}
  .ms-header-featured{display:none!important}
  body.tessirve-theme{
    padding-top:calc(var(--ms-header-mobile-height,54px) + var(--ms-admin-space,0px) + var(--ms-header-extra,0px))!important;
  }
  .ms-primary-nav{top:var(--ms-header-mobile-height,54px)!important}
  .ms-header-search-panel{top:calc(var(--ms-admin-offset,0px) + var(--ms-header-mobile-height,54px) + 8px)!important}

  /* Hamburguesa: al abrir deja de ser tres rayas sueltas y se convierte en
     una X limpia dentro de una cápsula apenas iluminada. */
  .ms-menu-toggle{
    border:1px solid transparent!important;
    border-radius:10px!important;
    height:38px!important;
    position:relative!important;
    transition:background .18s ease,border-color .18s ease!important;
    width:40px!important;
  }
  .ms-menu-toggle>span:not(.screen-reader-text){
    margin:4px auto!important;
    transform-origin:center!important;
    transition:transform .2s cubic-bezier(.2,.8,.2,1),opacity .14s ease,width .18s ease!important;
    width:21px!important;
  }
  .ms-menu-toggle[aria-expanded="true"]{
    background:rgba(255,255,255,.055)!important;
    border-color:rgba(143,197,255,.22)!important;
  }
  .ms-menu-toggle[aria-expanded="true"]>span:nth-child(1){transform:translateY(6px) rotate(45deg)!important}
  .ms-menu-toggle[aria-expanded="true"]>span:nth-child(2){opacity:0!important;width:8px!important}
  .ms-menu-toggle[aria-expanded="true"]>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)!important}

  /* Contenedor del menú móvil: compacto y sin barra horizontal. */
  .ms-primary-nav{
    overflow-x:hidden!important;
    scrollbar-width:thin;
  }
  .ms-primary-nav.is-open{
    max-height:min(78vh,760px)!important;
    padding:7px 4px 10px!important;
  }

  /* Accesos rápidos: 3 x 3. Los nueve quedan a la vista en un teléfono
     normal, sin carrusel ni scroll lateral. */
  .ms-mobile-quicklinks{
    background:
      radial-gradient(circle at 12% 0%,rgba(76,168,255,.12),transparent 31%),
      linear-gradient(145deg,rgba(8,28,55,.98),rgba(9,22,43,.98));
    border:1px solid rgba(138,183,232,.17);
    border-radius:16px;
    box-shadow:0 10px 28px rgba(3,11,24,.16),inset 0 1px 0 rgba(255,255,255,.035);
    box-sizing:border-box;
    display:block;
    margin:0 0 6px;
    overflow:hidden;
    padding:8px;
    width:100%;
  }
  .ms-mobile-quicklinks-kicker{
    align-items:center;
    color:#9fc8f4;
    display:flex;
    font-size:.55rem;
    font-weight:850;
    gap:6px;
    letter-spacing:.09em;
    line-height:1;
    padding:1px 2px 7px;
    text-transform:uppercase;
  }
  .ms-mobile-quicklinks-kicker>span{color:#fff;font-size:.56rem;text-shadow:0 0 8px rgba(120,197,255,.55)}
  .ms-mobile-quicklinks-kicker>i{
    background:linear-gradient(90deg,rgba(108,171,239,.32),transparent);
    border-radius:999px;
    flex:1 1 auto;
    height:1px;
  }
  .ms-mobile-quicklinks-grid{
    display:grid;
    gap:5px;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
  }
  .ms-mobile-quicklink{
    align-items:center;
    background:linear-gradient(160deg,rgba(255,255,255,.055),rgba(255,255,255,.022));
    border:1px solid rgba(255,255,255,.075);
    border-radius:11px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.022);
    color:#f4f8fd!important;
    display:flex;
    flex-direction:column;
    font-size:.61rem;
    font-weight:780;
    gap:4px;
    justify-content:center;
    line-height:1.08;
    min-height:48px;
    min-width:0;
    padding:5px 3px;
    text-align:center;
    text-decoration:none!important;
    transition:background .16s ease,border-color .16s ease,transform .16s ease;
  }
  .ms-mobile-quicklink:hover,.ms-mobile-quicklink:focus-visible{
    background:linear-gradient(150deg,rgba(76,168,255,.16),rgba(99,240,208,.065));
    border-color:rgba(135,202,255,.36);
    outline:0;
    transform:translateY(-1px);
  }
  .ms-mobile-quicklink-icon{
    align-items:center;
    display:flex;
    height:21px;
    justify-content:center;
    min-width:0;
    width:26px;
  }
  .ms-mobile-quicklink-icon>img{
    display:block;
    height:20px;
    max-height:20px;
    max-width:25px;
    object-fit:contain;
    width:auto;
  }
  .ms-mobile-quicklink-lpf-icon{
    display:block;
    height:21px;
    overflow:hidden;
    position:relative;
    width:22px;
  }
  .ms-mobile-quicklink-lpf-icon>img{
    height:31px!important;
    left:-3px;
    max-width:none!important;
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:auto!important;
  }
  .ms-mobile-quicklink>span:last-child{
    display:-webkit-box;
    max-width:100%;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }

  /* El menú general queda como segundo bloque de la misma pieza, no como un
     panel enorme separado del header. */
  .ms-site-menu{
    border-radius:16px!important;
    box-shadow:0 8px 24px rgba(3,11,24,.12)!important;
    margin-top:0!important;
  }
}

@media(max-width:360px){
  .ms-mobile-quicklinks{padding:7px}
  .ms-mobile-quicklinks-grid{gap:4px}
  .ms-mobile-quicklink{font-size:.57rem;min-height:46px;padding:4px 2px}
}

/* Agenda diaria: las tarjetas vuelven a ser cápsulas completas. La separación
   vive únicamente en el pequeño hueco ENTRE tarjetas y nunca toca sus bordes. */
.ms-home-today .ms-match-groups{
  gap:7px!important;
}
.ms-home-today .ms-match-groups>.ms-match-group{
  border-radius:14px!important;
  box-shadow:0 4px 14px rgba(15,43,76,.035)!important;
  clip-path:inset(0 round 14px);
  margin:0!important;
  overflow:hidden!important;
  position:relative!important;
}
.ms-home-today .ms-match-group-title{
  border-radius:0!important;
}

/* Se anulan los divisores anteriores y se reemplazan por una micro-línea
   central, redondeada y difuminada: 36 px, sin cortes cuadrados. */
.ms-home-today .ms-match-group + .ms-match-group:before{
  background:linear-gradient(90deg,transparent 0%,rgba(95,151,215,.12) 20%,rgba(72,137,211,.34) 50%,rgba(95,151,215,.12) 80%,transparent 100%)!important;
  border-radius:999px!important;
  content:""!important;
  height:1px!important;
  left:50%!important;
  opacity:.7!important;
  pointer-events:none!important;
  position:absolute!important;
  right:auto!important;
  top:-4px!important;
  transform:translateX(-50%)!important;
  width:36px!important;
}
.ms-home-today .ms-match-group + .ms-match-group:after{
  background:color-mix(in srgb,var(--theme-primary,#175cd3),#fff 52%);
  border:1px solid rgba(255,255,255,.82);
  border-radius:50%;
  box-shadow:0 0 5px rgba(64,135,215,.24);
  content:"";
  height:3px;
  left:50%;
  pointer-events:none;
  position:absolute;
  top:-5px;
  transform:translateX(-50%);
  width:3px;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-match-group + .ms-match-group:before{
  background:linear-gradient(90deg,transparent 0%,rgba(180,210,241,.06) 20%,rgba(180,210,241,.22) 50%,rgba(180,210,241,.06) 80%,transparent 100%)!important;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-match-group + .ms-match-group:after{
  background:#8cc7ff;
  border-color:rgba(10,25,45,.82);
  box-shadow:0 0 6px rgba(112,185,255,.28);
}

@media(max-width:560px){
  .ms-home-today .ms-match-groups{gap:6px!important}
  .ms-home-today .ms-match-groups>.ms-match-group{
    border-radius:13px!important;
    clip-path:inset(0 round 13px);
  }
  .ms-home-today .ms-match-group + .ms-match-group:before{top:-3.5px!important;width:30px!important}
  .ms-home-today .ms-match-group + .ms-match-group:after{top:-4.5px!important}
}

@media(prefers-reduced-motion:reduce){
  .ms-menu-toggle>span:not(.screen-reader-text),.ms-mobile-quicklink{transition:none!important}
}


/* ========================================================================
   5.17.25 — HEADER MÓVIL: SECCIONES EDITORIALES CON ESTRELLAS
   ======================================================================== */
/* En desktop esta etiqueta extra no existe visualmente. */
.ms-mobile-menu-kicker{display:none}

@media(max-width:782px){
  /* DESTACADOS / MÁS COMPETENCIAS comparten exactamente el mismo lenguaje:
     texto centrado, dos estrellas blancas y cero iconografía extra. */
  .ms-mobile-quicklinks-kicker,
  .ms-mobile-menu-kicker{
    align-items:center!important;
    color:#b9d5f3!important;
    display:flex!important;
    font-size:.57rem!important;
    font-weight:850!important;
    gap:7px!important;
    justify-content:center!important;
    letter-spacing:.11em!important;
    line-height:1!important;
    min-height:16px!important;
    padding:1px 3px 7px!important;
    text-align:center!important;
    text-transform:uppercase!important;
  }
  .ms-mobile-quicklinks-kicker>strong,
  .ms-mobile-menu-kicker>strong{
    color:#a9c8e9!important;
    font:inherit!important;
    letter-spacing:inherit!important;
    text-transform:inherit!important;
  }
  .ms-mobile-nav-star{
    color:#fff!important;
    display:inline-block!important;
    flex:0 0 auto!important;
    font-size:.58rem!important;
    line-height:1!important;
    opacity:.98!important;
    text-shadow:0 0 7px rgba(255,255,255,.22),0 0 12px rgba(76,168,255,.18)!important;
    transform:translateY(-.2px)!important;
  }
  /* Anula el viejo rombo y la línea ornamental del kicker 5.17.24. */
  .ms-mobile-quicklinks-kicker>i{display:none!important}
  .ms-mobile-quicklinks-kicker>span:not(.ms-mobile-nav-star){display:none!important}

  /* El segundo rótulo queda justo en la entrada del menú general, con el
     mismo ancho editorial del bloque Destacados y sin crear otro panel. */
  .ms-mobile-menu-kicker{
    margin:4px 4px 2px!important;
    padding-bottom:6px!important;
  }
}


/* ========================================================================
   5.17.26 — HEADER MÓVIL: RÓTULOS EDITORIALES + DESTACADOS MÁS COMPACTOS
   ======================================================================== */
@media(max-width:782px){
  .ms-mobile-quicklinks-kicker,
  .ms-mobile-menu-kicker{
    align-items:center!important;
    color:#b9d5f3!important;
    display:flex!important;
    font-size:.56rem!important;
    font-weight:850!important;
    gap:6px!important;
    justify-content:flex-start!important;
    letter-spacing:.105em!important;
    line-height:1!important;
    min-height:15px!important;
    padding:2px 1px 7px!important;
    text-align:left!important;
    text-transform:uppercase!important;
  }
  .ms-mobile-quicklinks-kicker>strong,
  .ms-mobile-menu-kicker>strong{
    color:#b8d3ef!important;
    flex:0 0 auto!important;
    font:inherit!important;
    letter-spacing:inherit!important;
    text-transform:inherit!important;
  }
  .ms-mobile-quicklinks-kicker>.ms-mobile-nav-star,
  .ms-mobile-menu-kicker>.ms-mobile-nav-star{
    color:#fff!important;
    display:inline-block!important;
    flex:0 0 auto!important;
    font-size:.59rem!important;
    line-height:1!important;
    opacity:1!important;
    text-shadow:0 0 7px rgba(255,255,255,.24),0 0 12px rgba(76,168,255,.18)!important;
    transform:translateY(-.2px)!important;
  }
  .ms-mobile-quicklinks-kicker>i,
  .ms-mobile-menu-kicker>i{
    background:linear-gradient(90deg,rgba(132,183,236,.34) 0%,rgba(132,183,236,.13) 48%,transparent 100%)!important;
    border:0!important;
    border-radius:999px!important;
    display:block!important;
    flex:1 1 auto!important;
    height:1px!important;
    margin-left:2px!important;
    min-width:18px!important;
    opacity:.9!important;
  }
  .ms-mobile-menu-kicker{margin:3px 5px 2px!important;padding:3px 1px 6px!important}

  /* La grilla sigue 3x3, pero respira menos y no domina todo el desplegable. */
  .ms-mobile-quicklinks{padding:7px!important}
  .ms-mobile-quicklinks-grid{gap:4px!important}
  .ms-mobile-quicklink{
    border-radius:10px!important;
    font-size:.58rem!important;
    gap:2px!important;
    min-height:43px!important;
    padding:3px 2px!important;
  }
  .ms-mobile-quicklink-icon{height:18px!important;width:23px!important}
  .ms-mobile-quicklink-icon>img{height:17px!important;max-height:17px!important;max-width:22px!important}
  .ms-mobile-quicklink-lpf-icon{height:18px!important;width:20px!important}
  .ms-mobile-quicklink-lpf-icon>img{height:27px!important;left:-3px!important}
}
@media(max-width:360px){
  .ms-mobile-quicklink{font-size:.55rem!important;min-height:41px!important}
}


/* 5.17.27 — Todas las banderas son SVG: sin emoji, sin cápsula del SO. */
.ms-match-group-country svg.ms-country-flag,
.ms-compact-scoreline strong svg.ms-country-flag{
  display:inline-block!important;
  width:15px!important;
  height:10px!important;
  min-width:15px!important;
  flex:0 0 15px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:1.5px!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  overflow:hidden!important;
  vertical-align:-1px!important;
}
.ms-header-tab-icon.is-flag{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  min-width:18px!important;
  height:12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.ms-header-tab-icon.is-flag svg.ms-menu-country-flag{
  display:block!important;
  width:18px!important;
  height:11px!important;
  border:0!important;
  border-radius:1.5px!important;
  overflow:hidden!important;
  background:transparent!important;
  box-shadow:none!important;
}


/* 5.17.28 — Los escudos usan siempre canvas transparente; el borde/fondo debe
 * pertenecer al propio archivo del club, nunca al componente de Tessirve. */
.ms-app img.ms-crest{background-color:transparent!important;box-shadow:none!important}
.ms-competition-headliners .ms-relegated-team.is-unlinked{cursor:default;text-decoration:none}

/* ========================================================================== 
   5.17.30 — Competencias compactas, palmarés visible, banderas y descensos
   ========================================================================== */

/* Header de competición: mucho más corto y sin subtítulos redundantes. */
.ms-competition-profile .ms-competition-hero,
.ms-competition-empty-profile .ms-competition-hero{
  align-items:center!important;
  border-radius:15px!important;
  gap:11px!important;
  grid-template-columns:50px minmax(0,1fr) auto!important;
  min-height:82px!important;
  overflow:visible!important;
  padding:11px 14px!important;
}
.ms-competition-profile .ms-competition-hero:after,
.ms-competition-empty-profile .ms-competition-hero:after{height:190px!important;right:-62px!important;top:-95px!important;width:190px!important}
.ms-competition-profile .ms-competition-hero>div:first-child .ms-crest,
.ms-competition-profile .ms-competition-hero>div:first-child .ms-crest-fallback,
.ms-competition-empty-profile .ms-competition-hero>div:first-child .ms-crest,
.ms-competition-empty-profile .ms-competition-hero>div:first-child .ms-crest-fallback,
.ms-competition-profile .ms-ca-hero-logo .ms-crest,
.ms-competition-profile .ms-ca-hero-logo .ms-crest-fallback{
  height:46px!important;max-height:46px!important;max-width:46px!important;width:46px!important;padding:0!important;
}
.ms-competition-profile .ms-competition-hero .ms-eyebrow,
.ms-competition-empty-profile .ms-competition-hero .ms-eyebrow{
  display:block!important;font-size:.49rem!important;font-weight:850!important;letter-spacing:.085em!important;line-height:1!important;margin:0 0 2px!important;opacity:.76!important;text-transform:uppercase!important;
}
.ms-competition-profile .ms-competition-hero h1,
.ms-competition-empty-profile .ms-competition-hero h1{
  font-size:clamp(.96rem,1.3vw,1.13rem)!important;letter-spacing:-.018em!important;line-height:1.06!important;margin:0!important;max-width:760px!important;
}
.ms-competition-profile .ms-competition-hero p,
.ms-competition-empty-profile .ms-competition-hero p{display:none!important}
.ms-competition-profile .ms-competition-hero form,
.ms-competition-empty-profile .ms-competition-hero form{margin:0!important;width:auto!important}
.ms-competition-profile .ms-competition-hero label,
.ms-competition-empty-profile .ms-competition-hero label{font-size:.48rem!important;gap:2px!important;letter-spacing:.04em!important;line-height:1!important}
.ms-competition-profile .ms-competition-hero select,
.ms-competition-empty-profile .ms-competition-hero select{
  border-radius:8px!important;font-size:.69rem!important;min-height:31px!important;min-width:88px!important;padding:5px 24px 5px 8px!important;width:auto!important;
}

/* Acceso al ranking y récord de títulos dentro del propio header. */
.ms-competition-hero-tools{align-items:center;display:flex;flex-wrap:wrap;gap:5px;margin-top:5px;position:relative;z-index:8}
.ms-competition-ranking-link,
.ms-competition-record-holder>summary{
  align-items:center;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.17);border-radius:999px;color:#fff!important;display:inline-flex;font-size:.54rem;font-weight:850;gap:4px;line-height:1;min-height:23px;padding:3px 7px;text-decoration:none!important;
}
.ms-competition-ranking-link:hover,
.ms-competition-record-holder>summary:hover{background:rgba(255,255,255,.17)}
.ms-competition-ranking-link svg{fill:none;height:12px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:12px}
.ms-competition-record-holder{display:inline-block;position:relative}
.ms-competition-record-holder>summary{cursor:pointer;list-style:none;max-width:190px}
.ms-competition-record-holder>summary::-webkit-details-marker{display:none}
.ms-competition-record-holder>summary>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-competition-trophy{fill:#f7c948;filter:drop-shadow(0 1px 1px rgba(0,0,0,.32));height:15px;min-width:14px;stroke:#fff1a8;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.05;width:14px}
.ms-competition-trophy.is-large{height:56px;width:54px;stroke-width:.7}
.ms-competition-record-popover{
  background:var(--ms-card,#fff);border:1px solid var(--ms-line);border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.24);color:var(--ms-ink);display:grid;gap:8px;left:0;min-width:270px;padding:13px;position:absolute;top:calc(100% + 7px);width:290px;z-index:999;
}
.ms-competition-record-popover:before{background:var(--ms-card,#fff);border-left:1px solid var(--ms-line);border-top:1px solid var(--ms-line);content:"";height:9px;left:18px;position:absolute;top:-5px;transform:rotate(45deg);width:9px}
.ms-record-trophy{align-items:center;display:flex;justify-content:center;margin-top:1px}
.ms-record-competition-logo{align-items:center;display:flex;justify-content:center}
.ms-record-competition-logo .ms-crest,.ms-record-competition-logo .ms-crest-fallback{height:38px!important;max-height:38px!important;max-width:54px!important;width:54px!important;object-fit:contain!important}
.ms-competition-federation-badge{align-items:center;color:var(--ms-muted);display:flex;font-size:.52rem;font-weight:900;gap:4px;justify-content:center;letter-spacing:.05em;text-transform:uppercase}
.ms-competition-federation-badge svg{fill:none;height:18px;stroke:currentColor;stroke-width:1.4;width:18px}
.ms-competition-federation-badge i{display:none}
.ms-record-team{align-items:center;color:var(--ms-ink)!important;display:flex;font-size:.78rem;gap:7px;justify-content:center;text-decoration:none!important}
.ms-record-team .ms-crest,.ms-record-team .ms-crest-fallback{height:27px!important;max-height:27px!important;max-width:27px!important;width:27px!important}
.ms-record-team-name{text-align:center}
.ms-competition-record-popover p{color:var(--ms-ink)!important;display:block!important;font-size:.7rem!important;font-weight:750;line-height:1.3;margin:0!important;text-align:center}
.ms-record-ranking-link{color:var(--ms-blue)!important;font-size:.62rem;font-weight:900;text-align:center;text-decoration:none!important}
html[data-tessirve-color-mode="dark"] .ms-competition-record-popover{background:#17212e!important;border-color:#344054!important;color:#f8fafc!important}
html[data-tessirve-color-mode="dark"] .ms-competition-record-popover:before{background:#17212e!important;border-color:#344054!important}
html[data-tessirve-color-mode="dark"] .ms-record-team,
html[data-tessirve-color-mode="dark"] .ms-competition-record-popover p{color:#f8fafc!important}

/* Ranking enfocado de una competencia. */
.ms-ranking-focus-head{background:var(--ms-card,#fff);border:1px solid var(--ms-line);border-radius:14px;display:grid;gap:3px;margin:0 0 12px;padding:12px 14px}
.ms-ranking-focus-head>a{color:var(--ms-blue);font-size:.62rem;font-weight:850;text-decoration:none}
.ms-ranking-focus-head>span{color:var(--ms-muted);font-size:.56rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.ms-ranking-focus-head h1{font-size:1.14rem;line-height:1.08;margin:0}
.ms-ranking-focus-head small{color:var(--ms-muted);font-size:.64rem}
html[data-tessirve-color-mode="dark"] .ms-ranking-focus-head{background:#17212e!important;border-color:#344054!important}

/* Tabla internacional: nombre completo + bandera debajo, sin códigos de 3 letras. */
.ms-standing-team-copy{display:flex!important;flex-direction:column!important;min-width:0!important}
.ms-standing-team-copy>strong{display:block!important;line-height:1.08!important;min-width:0!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important}
.ms-standing-team-country{align-items:center!important;display:flex!important;height:10px!important;line-height:1!important;margin-top:2px!important;min-height:10px!important}
.ms-standing-team-country svg.ms-country-flag{border:0!important;border-radius:1px!important;box-shadow:0 0 0 1px rgba(15,23,42,.08)!important;display:block!important;height:8px!important;margin:0!important;min-width:13px!important;width:13px!important}
.ms-standing-team-country>span{display:none!important}
html[data-tessirve-color-mode="dark"] .ms-standing-team-country svg.ms-country-flag{box-shadow:0 0 0 1px rgba(255,255,255,.12)!important}

/* Agenda: más espacio para los nombres y bandera debajo, al borde exterior. */
.ms-compact-scoreline{gap:5px!important;grid-template-columns:minmax(0,1.2fr) 68px minmax(0,1.2fr)!important}
.ms-compact-scoreline>.is-home,.ms-compact-scoreline>.is-away{gap:6px!important;min-width:0!important}
.ms-compact-team-copy{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important}
.ms-compact-scoreline .is-home .ms-compact-team-copy{align-items:stretch!important;text-align:right!important}
.ms-compact-scoreline .is-away .ms-compact-team-copy{align-items:stretch!important;text-align:left!important}
.ms-compact-team-copy>strong{display:flex!important;min-width:0!important}
.ms-compact-scoreline .is-home .ms-compact-team-copy>strong{justify-content:flex-end!important}
.ms-compact-scoreline .is-away .ms-compact-team-copy>strong{justify-content:flex-start!important}
.ms-compact-team-name{display:-webkit-box!important;line-height:1.12!important;max-width:100%!important;overflow:hidden!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;white-space:normal!important}
.ms-compact-team-country{display:flex!important;height:10px!important;margin-top:2px!important;width:100%!important}
.ms-compact-team-country.is-home-country{justify-content:flex-start!important}
.ms-compact-team-country.is-away-country{justify-content:flex-end!important}
.ms-compact-team-country svg.ms-country-flag{border:0!important;border-radius:1px!important;box-shadow:0 0 0 1px rgba(15,23,42,.09)!important;display:block!important;height:8px!important;margin:0!important;min-width:13px!important;width:13px!important}
html[data-tessirve-color-mode="dark"] .ms-compact-team-country svg.ms-country-flag{box-shadow:0 0 0 1px rgba(255,255,255,.12)!important}

/* Cupo de descenso todavía no confirmado: escudo Tessirve, nunca un club ficticio. */
.ms-relegated-team.is-pending{cursor:default!important;text-decoration:none!important}
.ms-relegated-pending-mark{align-items:center;background:color-mix(in srgb,var(--ms-blue),transparent 92%);border:1px solid color-mix(in srgb,var(--ms-blue),var(--ms-line) 55%);border-radius:9px;display:inline-flex;height:31px;justify-content:center;min-width:31px;width:31px}
.ms-relegated-pending-mark svg{fill:none;height:25px;stroke:var(--ms-blue);stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:22px}
html[data-tessirve-color-mode="dark"] .ms-relegated-pending-mark{background:#1d2a3a;border-color:#42526a}
html[data-tessirve-color-mode="dark"] .ms-relegated-pending-mark svg{stroke:#9ec5ff}

@media(max-width:720px){
  .ms-competition-profile .ms-competition-hero,
  .ms-competition-empty-profile .ms-competition-hero{
    align-items:center!important;gap:7px!important;grid-template-columns:38px minmax(0,1fr) auto!important;min-height:69px!important;padding:8px 9px!important;
  }
  .ms-competition-profile .ms-competition-hero>div:first-child .ms-crest,
  .ms-competition-profile .ms-competition-hero>div:first-child .ms-crest-fallback,
  .ms-competition-empty-profile .ms-competition-hero>div:first-child .ms-crest,
  .ms-competition-empty-profile .ms-competition-hero>div:first-child .ms-crest-fallback,
  .ms-competition-profile .ms-ca-hero-logo .ms-crest,
  .ms-competition-profile .ms-ca-hero-logo .ms-crest-fallback{height:34px!important;max-height:34px!important;max-width:34px!important;width:34px!important}
  .ms-competition-profile .ms-competition-hero h1,
  .ms-competition-empty-profile .ms-competition-hero h1{font-size:clamp(.82rem,3.5vw,.98rem)!important;line-height:1.04!important}
  .ms-competition-profile .ms-competition-hero .ms-eyebrow,
  .ms-competition-empty-profile .ms-competition-hero .ms-eyebrow{font-size:.43rem!important;margin-bottom:1px!important}
  .ms-competition-profile .ms-competition-hero>form,
  .ms-competition-empty-profile .ms-competition-hero>form{grid-column:auto!important;grid-row:auto!important;margin:0!important;width:auto!important}
  .ms-competition-profile .ms-competition-hero label,
  .ms-competition-empty-profile .ms-competition-hero label{font-size:.40rem!important;gap:1px!important}
  .ms-competition-profile .ms-competition-hero select,
  .ms-competition-empty-profile .ms-competition-hero select{font-size:.58rem!important;min-height:27px!important;min-width:69px!important;padding:4px 18px 4px 5px!important;width:69px!important}
  .ms-competition-hero-tools{gap:3px;margin-top:3px}
  .ms-competition-ranking-link,.ms-competition-record-holder>summary{font-size:.46rem;min-height:19px;padding:2px 5px}
  .ms-competition-ranking-link svg{height:10px;width:10px}
  .ms-competition-trophy{height:12px;min-width:11px;width:11px}
  .ms-competition-record-holder>summary{max-width:116px}
  .ms-competition-record-popover{left:auto;position:fixed;right:10px;top:92px;width:min(290px,calc(100vw - 20px));z-index:10000}
  .ms-competition-record-popover:before{display:none}
  .ms-standing-compact .ms-standing-table td:nth-child(2) a{gap:4px!important}
  .ms-standing-team-copy>strong{display:-webkit-box!important;font-size:.67rem!important;line-height:1.04!important;overflow:hidden!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;white-space:normal!important}
  .ms-standing-team-country{margin-top:1px!important}
  .ms-standing-team-country svg.ms-country-flag{height:7px!important;min-width:11px!important;width:11px!important}
  .ms-compact-scoreline{gap:4px!important;grid-template-columns:minmax(0,1.28fr) 58px minmax(0,1.28fr)!important}
  .ms-compact-scoreline>.is-home,.ms-compact-scoreline>.is-away{gap:4px!important}
  .ms-compact-scoreline .ms-crest,.ms-compact-scoreline .ms-crest-fallback{height:24px!important;max-width:24px!important;width:24px!important}
  .ms-compact-scoreline .ms-compact-team-copy>strong{font-size:.72rem!important;line-height:1.05!important}
  .ms-compact-team-country{height:8px!important;margin-top:1px!important}
  .ms-compact-team-country svg.ms-country-flag{height:7px!important;min-width:11px!important;width:11px!important}
}

@media(max-width:390px){
  .ms-competition-profile .ms-competition-hero,
  .ms-competition-empty-profile .ms-competition-hero{grid-template-columns:34px minmax(0,1fr) 64px!important;padding:7px 8px!important}
  .ms-competition-profile .ms-competition-hero select,
  .ms-competition-empty-profile .ms-competition-hero select{min-width:64px!important;width:64px!important}
  .ms-competition-record-holder>summary{max-width:100px}
  .ms-competition-record-holder>summary>span{max-width:75px}
  .ms-compact-scoreline{grid-template-columns:minmax(0,1.3fr) 52px minmax(0,1.3fr)!important}
  .ms-compact-scoreline .ms-compact-team-copy>strong{font-size:.67rem!important}
}

/* 5.17.30 — logo real de la federación dentro del récord histórico. */
.ms-competition-federation-badge.has-logo{align-items:center;display:flex;gap:5px;justify-content:center}
.ms-competition-federation-badge.has-logo img{background:transparent!important;border:0!important;box-shadow:none!important;height:18px!important;max-height:18px!important;max-width:52px!important;object-fit:contain!important;width:auto!important}
.ms-competition-federation-badge.has-logo b{font-size:.52rem;font-weight:850;letter-spacing:.035em}
html[data-tessirve-color-mode="dark"] .ms-competition-federation-badge.has-logo img{filter:drop-shadow(0 1px 1px rgba(255,255,255,.12))}
@media(max-width:720px){.ms-competition-federation-badge.has-logo img{height:16px!important;max-height:16px!important;max-width:46px!important}.ms-competition-federation-badge.has-logo b{font-size:.48rem}}

/* ========================================================================== 
   5.17.32 — Tabla/fixture inline, modales históricos, menú y partido
   ========================================================================== */

/* El header conserva sólo el acceso sutil al ranking. El récord vive junto al
 * club dentro de tablas/fixtures, como corresponde. */
.ms-competition-hero-tools{margin-top:4px!important}
.ms-competition-ranking-link{
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
  font:inherit!important;
  line-height:1!important;
  margin:0!important;
}

/* Tabla internacional: nombre + trofeo (si es récord) + bandera EN UNA LÍNEA.
 * La bandera ya no consume un renglón entero. */
.ms-standing-team-copy{
  align-items:center!important;
  display:inline-flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  max-width:100%!important;
  min-width:0!important;
  vertical-align:middle!important;
}
.ms-standing-team-copy>strong{
  display:block!important;
  line-height:1.08!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.ms-inline-record-trophy,
.ms-inline-team-flag{
  align-items:center!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  justify-content:center!important;
  line-height:1!important;
  margin:0!important;
  vertical-align:middle!important;
}
.ms-inline-record-trophy{
  border-radius:5px!important;
  cursor:pointer!important;
  outline:none!important;
  padding:1px!important;
}
.ms-inline-record-trophy:hover,
.ms-inline-record-trophy:focus-visible{
  background:rgba(218,166,23,.12)!important;
  box-shadow:0 0 0 1px rgba(218,166,23,.32)!important;
}
.ms-inline-record-trophy .ms-competition-trophy{
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.22))!important;
  height:14px!important;
  min-width:13px!important;
  width:13px!important;
}
.ms-inline-team-flag svg.ms-country-flag{
  background:transparent!important;
  border:0!important;
  border-radius:1.5px!important;
  box-shadow:0 0 0 1px rgba(15,23,42,.10)!important;
  display:block!important;
  height:9px!important;
  margin:0!important;
  min-width:15px!important;
  padding:0!important;
  width:15px!important;
}
html[data-tessirve-color-mode="dark"] .ms-inline-team-flag svg.ms-country-flag{
  box-shadow:0 0 0 1px rgba(255,255,255,.14)!important;
}

/* Fixtures de competencia: mismo criterio inline. La home principal conserva
 * el criterio distinto pedido: bandera debajo del nombre. */
.ms-fixture-team-copy,
.ms-conmebol-team-copy{
  align-items:center!important;
  display:inline-flex!important;
  flex:1 1 auto!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  max-width:100%!important;
  min-width:0!important;
}
.ms-fixture-team-copy>strong,
.ms-conmebol-team-copy>strong{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* El modal de ranking y el modal del récord SIEMPRE quedan centrados, incluso
 * en celular (no se convierten en bottom-sheet). */
html.ms-history-modal-open{overflow:hidden!important}
.ms-history-modal{
  align-items:center!important;
  display:grid!important;
  justify-items:center!important;
  padding:14px!important;
  place-items:center!important;
}
.ms-history-modal .ms-series-modal-backdrop{background:rgba(2,8,18,.78)!important;backdrop-filter:blur(3px)!important}
.ms-history-modal-dialog{
  background:var(--ms-card,#fff)!important;
  border:1px solid var(--ms-line)!important;
  border-radius:19px!important;
  color:var(--ms-ink)!important;
  max-height:min(82vh,680px)!important;
  overflow:auto!important;
  width:min(470px,calc(100vw - 28px))!important;
}
.ms-history-modal .ms-series-modal-close{
  align-items:center!important;
  background:var(--ms-soft,#f5f7fa)!important;
  border:1px solid var(--ms-line)!important;
  border-radius:999px!important;
  color:var(--ms-ink)!important;
  display:flex!important;
  font-size:1.15rem!important;
  font-weight:900!important;
  height:32px!important;
  justify-content:center!important;
  line-height:1!important;
  right:11px!important;
  top:10px!important;
  width:32px!important;
}
.ms-history-modal-content{padding:0 17px 18px!important;text-align:center!important}
.ms-history-modal-content>header{
  align-items:center!important;
  border-bottom:1px solid var(--ms-line)!important;
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  justify-content:center!important;
  margin:0 -17px 13px!important;
  padding:17px 48px 13px!important;
  text-align:center!important;
}
.ms-history-modal-content>header .ms-crest,
.ms-history-modal-content>header .ms-crest-fallback{
  height:36px!important;
  max-height:36px!important;
  max-width:52px!important;
  object-fit:contain!important;
  width:52px!important;
}
.ms-history-modal-content>header small{
  color:var(--ms-muted)!important;
  font-size:.56rem!important;
  font-weight:900!important;
  letter-spacing:.07em!important;
  text-transform:uppercase!important;
}
.ms-history-modal-content>header strong{font-size:1rem!important;line-height:1.08!important}
.ms-history-ranking-list{
  display:grid!important;
  gap:5px!important;
  list-style:none!important;
  margin:0 auto!important;
  max-width:405px!important;
  padding:0!important;
}
.ms-history-ranking-list>li{
  align-items:center!important;
  background:color-mix(in srgb,var(--ms-blue),transparent 96%)!important;
  border:1px solid color-mix(in srgb,var(--ms-line),transparent 10%)!important;
  border-radius:10px!important;
  display:grid!important;
  gap:7px!important;
  grid-template-columns:26px 28px minmax(0,1fr) auto!important;
  min-height:39px!important;
  padding:5px 9px!important;
  text-align:left!important;
}
.ms-history-ranking-pos{color:var(--ms-muted)!important;font-size:.68rem!important;font-weight:950!important;text-align:center!important}
.ms-history-ranking-list .ms-crest,
.ms-history-ranking-list .ms-crest-fallback{height:24px!important;max-height:24px!important;max-width:24px!important;width:24px!important}
.ms-history-ranking-team{color:var(--ms-ink)!important;font-size:.72rem!important;font-weight:850!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.ms-history-ranking-titles{color:var(--ms-blue)!important;font-size:.66rem!important;font-weight:950!important;white-space:nowrap!important}
.ms-history-record-body{align-items:center!important;display:grid!important;gap:9px!important;justify-items:center!important;padding:3px 0 1px!important}
.ms-history-record-body .ms-record-trophy .ms-competition-trophy.is-large{height:68px!important;width:64px!important}
.ms-history-record-leaders{align-items:center!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:center!important}
.ms-history-record-leader{align-items:center!important;color:var(--ms-ink)!important;display:flex!important;font-size:.78rem!important;font-weight:900!important;gap:6px!important;text-decoration:none!important}
.ms-history-record-leader .ms-crest,
.ms-history-record-leader .ms-crest-fallback{height:29px!important;max-height:29px!important;max-width:29px!important;width:29px!important}
.ms-history-record-phrase{font-size:.72rem!important;font-weight:800!important;line-height:1.32!important;margin:0!important;max-width:360px!important;text-align:center!important}
.ms-history-empty{color:var(--ms-muted)!important;font-size:.72rem!important;margin:18px 0 4px!important}
html[data-tessirve-color-mode="dark"] .ms-history-modal-dialog{background:#17212e!important;border-color:#344054!important;color:#f8fafc!important}
html[data-tessirve-color-mode="dark"] .ms-history-modal .ms-series-modal-close{background:#111827!important;border-color:#42526a!important;color:#f8fafc!important}
html[data-tessirve-color-mode="dark"] .ms-history-ranking-list>li{background:#111b29!important;border-color:#344054!important}
html[data-tessirve-color-mode="dark"] .ms-history-ranking-team,
html[data-tessirve-color-mode="dark"] .ms-history-record-leader,
html[data-tessirve-color-mode="dark"] .ms-history-record-phrase{color:#f8fafc!important}

/* Tabs principales de copas: Playoffs / Fase Liga / Partidos / Estadísticas
 * forman una sola barra, sin el segundo bloque redundante. */
.ms-cup-main-tabs>.ms-profile-nav{
  align-items:center!important;
  display:flex!important;
  gap:5px!important;
  overflow-x:auto!important;
  padding:4px!important;
  scrollbar-width:none!important;
}
.ms-cup-main-tabs>.ms-profile-nav::-webkit-scrollbar{display:none!important}
.ms-cup-main-tabs>.ms-profile-nav>button{flex:0 0 auto!important;white-space:nowrap!important}

/* 5.17.38 — Partido: fondo MANUAL por competición.
 * No hay foto automática, emoji, trofeo ni URL externa impuesta por TESSIRVE.
 * La imagen elegida en Competiciones cubre TODO el recuadro superior. */
.ms-match-detail .ms-match-hero{
  isolation:isolate!important;
  overflow:hidden!important;
  position:relative!important;
}
.ms-match-detail .ms-match-hero.has-custom-match-background::before{
  background-image:var(--ms-match-bg-image)!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  content:""!important;
  filter:saturate(.86) contrast(.96)!important;
  inset:-2px!important;
  opacity:.22!important;
  pointer-events:none!important;
  position:absolute!important;
  transform:scale(1.012)!important;
  z-index:0!important;
}
.ms-match-detail .ms-match-hero.has-custom-match-background::after{
  background:linear-gradient(90deg,rgba(255,255,255,.70),rgba(255,255,255,.58) 50%,rgba(255,255,255,.70))!important;
  content:""!important;
  inset:0!important;
  pointer-events:none!important;
  position:absolute!important;
  z-index:1!important;
}
.ms-match-detail .ms-match-hero-top,
.ms-match-detail .ms-scoreboard{position:relative!important;z-index:2!important}
html[data-tessirve-color-mode="dark"] .ms-match-detail .ms-match-hero.has-custom-match-background::before{
  filter:saturate(.78) brightness(.88) contrast(1.02)!important;
  opacity:.25!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-detail .ms-match-hero.has-custom-match-background::after{
  background:linear-gradient(90deg,rgba(13,18,25,.73),rgba(13,18,25,.59) 50%,rgba(13,18,25,.73))!important;
}

/* +0,5 pt aprox. para la sede/estadio del cronograma principal. */
.ms-home-today .ms-compact-venue{font-size:.59rem!important;line-height:1.05!important}

/* Menú móvil abierto: en vez de una X lavada, muestra chevron ^ bien visible.
 * Al cerrarse vuelven automáticamente las tres líneas originales. */
@media(max-width:782px){
  .ms-menu-toggle[aria-expanded="true"]>span{
    background:currentColor!important;
    height:2px!important;
    opacity:1!important;
    transform-origin:center!important;
  }
  .ms-menu-toggle[aria-expanded="true"]>span:nth-child(1){
    margin-left:auto!important;
    margin-right:auto!important;
    transform:translate(-4px,4px) rotate(-38deg)!important;
    width:14px!important;
  }
  .ms-menu-toggle[aria-expanded="true"]>span:nth-child(2){opacity:0!important;transform:none!important;width:6px!important}
  .ms-menu-toggle[aria-expanded="true"]>span:nth-child(3){
    margin-left:auto!important;
    margin-right:auto!important;
    transform:translate(4px,-4px) rotate(38deg)!important;
    width:14px!important;
  }
}

@media(max-width:720px){
  .ms-standing-team-copy{gap:3px!important;max-width:100%!important}
  .ms-standing-team-copy>strong{
    display:block!important;
    font-size:.67rem!important;
    line-height:1.04!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .ms-inline-record-trophy .ms-competition-trophy{height:11px!important;min-width:10px!important;width:10px!important}
  .ms-inline-team-flag svg.ms-country-flag{height:7px!important;min-width:12px!important;width:12px!important}
  .ms-fixture-team-copy,.ms-conmebol-team-copy{gap:3px!important}
  .ms-fixture-team-copy>strong,.ms-conmebol-team-copy>strong{font-size:.68rem!important}
  .ms-history-modal{align-items:center!important;padding:10px!important;place-items:center!important}
  .ms-history-modal-dialog{border-radius:17px!important;max-height:84vh!important;width:min(430px,calc(100vw - 20px))!important}
  .ms-history-modal-content{padding:0 12px 14px!important}
  .ms-history-modal-content>header{margin:0 -12px 10px!important;padding:15px 44px 11px!important}
  .ms-history-ranking-list>li{gap:5px!important;grid-template-columns:22px 24px minmax(0,1fr) auto!important;min-height:35px!important;padding:4px 7px!important}
  .ms-history-ranking-list .ms-crest,.ms-history-ranking-list .ms-crest-fallback{height:21px!important;max-height:21px!important;max-width:21px!important;width:21px!important}
  .ms-history-ranking-team{font-size:.67rem!important}
  .ms-history-ranking-titles{font-size:.61rem!important}
  .ms-history-record-body .ms-record-trophy .ms-competition-trophy.is-large{height:57px!important;width:54px!important}
  .ms-home-today .ms-compact-venue{font-size:.54rem!important}
}
.ms-history-ranking-club{align-items:center!important;display:flex!important;gap:7px!important;min-width:0!important}
.ms-history-record-body .ms-history-record-trophy .ms-competition-trophy.is-large{height:68px!important;width:64px!important}
@media(max-width:720px){.ms-history-record-body .ms-history-record-trophy .ms-competition-trophy.is-large{height:57px!important;width:54px!important}}

/* ========================================================================== 
   5.17.32 — Ranking histórico: nombres, títulos por año y modal limpio
   ========================================================================== */

/* El acceso del header queda realmente sutil. */
.ms-competition-ranking-link{
  font-size:.49rem!important;
  gap:3px!important;
  min-height:20px!important;
  padding:2px 6px!important;
}
.ms-competition-ranking-link svg{height:10px!important;width:10px!important}

/* Header del modal: logo de competencia + única leyenda. El nombre de la
 * competencia se omite porque ya está representado por el logo. */
.ms-history-modal-content>header{
  gap:5px!important;
  padding-bottom:11px!important;
}
.ms-history-modal-content>header .ms-crest,
.ms-history-modal-content>header .ms-crest-fallback{
  display:block!important;
  height:34px!important;
  max-height:34px!important;
  max-width:54px!important;
  object-fit:contain!important;
  width:54px!important;
}
.ms-history-modal-content>header small{
  display:block!important;
  font-size:.58rem!important;
  line-height:1!important;
  text-align:center!important;
}

/* FIX real del nombre invisible: el bloque club ya no cae dentro de una
 * columna reservada sólo para el escudo. */
.ms-history-ranking-list>li{
  align-items:center!important;
  grid-template-columns:26px minmax(0,1fr) auto!important;
  row-gap:4px!important;
}
.ms-history-ranking-entry{
  display:grid!important;
  gap:5px!important;
  min-width:0!important;
}
.ms-history-ranking-club{
  align-items:center!important;
  color:var(--ms-ink)!important;
  display:flex!important;
  gap:8px!important;
  min-width:0!important;
  text-decoration:none!important;
}
.ms-history-ranking-club:visited,
.ms-history-ranking-club:hover,
.ms-history-ranking-club:focus{color:var(--ms-ink)!important;text-decoration:none!important}
.ms-history-ranking-crest{
  align-items:center!important;
  display:inline-flex!important;
  flex:0 0 28px!important;
  height:28px!important;
  justify-content:center!important;
  overflow:visible!important;
  width:28px!important;
}
.ms-history-ranking-crest .ms-crest,
.ms-history-ranking-crest .ms-crest-fallback{
  display:block!important;
  height:28px!important;
  max-height:28px!important;
  max-width:28px!important;
  object-fit:contain!important;
  width:28px!important;
}
.ms-history-ranking-team{
  display:block!important;
  flex:1 1 auto!important;
  font-size:.73rem!important;
  line-height:1.08!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.ms-history-ranking-titles{align-self:start!important;margin-top:5px!important}

/* Cada título histórico es navegable a esa temporada concreta. */
.ms-history-title-years{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:3px!important;
  padding-left:36px!important;
}
.ms-history-title-year{
  align-items:center!important;
  background:color-mix(in srgb,var(--ms-blue),transparent 93%)!important;
  border:1px solid color-mix(in srgb,var(--ms-blue),transparent 72%)!important;
  border-radius:999px!important;
  color:var(--ms-blue)!important;
  display:inline-flex!important;
  font-size:.49rem!important;
  font-weight:900!important;
  line-height:1!important;
  min-height:17px!important;
  padding:2px 5px!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.ms-history-title-year:hover,
.ms-history-title-year:focus-visible{
  background:color-mix(in srgb,var(--ms-blue),transparent 85%)!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--ms-blue),transparent 58%)!important;
  color:var(--ms-blue)!important;
  outline:none!important;
}

/* Récord: sólo logo de confederación/federación; sin repetir “UEFA”, “AFA”, etc. */
.ms-competition-federation-badge{gap:0!important}
.ms-competition-federation-badge.has-logo img{
  display:block!important;
  height:20px!important;
  max-height:20px!important;
  max-width:58px!important;
  object-fit:contain!important;
  width:auto!important;
}
.ms-competition-federation-badge.has-logo b,
.ms-competition-federation-badge.is-generic b{display:none!important}

/* Escudo + nombre del récord son un único enlace al perfil, sin aspecto de link. */
.ms-history-record-leader{
  color:var(--ms-ink)!important;
  text-decoration:none!important;
}
.ms-history-record-leader:visited,
.ms-history-record-leader:hover,
.ms-history-record-leader:focus{color:var(--ms-ink)!important;text-decoration:none!important}
.ms-history-record-crest{
  align-items:center!important;
  display:inline-flex!important;
  height:30px!important;
  justify-content:center!important;
  width:30px!important;
}
.ms-history-record-crest .ms-crest,
.ms-history-record-crest .ms-crest-fallback{
  display:block!important;
  height:30px!important;
  max-height:30px!important;
  max-width:30px!important;
  object-fit:contain!important;
  width:30px!important;
}

html[data-tessirve-color-mode="dark"] .ms-history-ranking-club,
html[data-tessirve-color-mode="dark"] .ms-history-ranking-club:visited,
html[data-tessirve-color-mode="dark"] .ms-history-record-leader,
html[data-tessirve-color-mode="dark"] .ms-history-record-leader:visited{color:#f8fafc!important}

@media(max-width:720px){
  .ms-competition-ranking-link{font-size:.44rem!important;min-height:18px!important;padding:2px 5px!important}
  .ms-history-ranking-list>li{grid-template-columns:22px minmax(0,1fr) auto!important;min-height:38px!important;padding:5px 7px!important}
  .ms-history-ranking-crest{flex-basis:24px!important;height:24px!important;width:24px!important}
  .ms-history-ranking-crest .ms-crest,.ms-history-ranking-crest .ms-crest-fallback{height:24px!important;max-height:24px!important;max-width:24px!important;width:24px!important}
  .ms-history-ranking-club{gap:6px!important}
  .ms-history-ranking-team{font-size:.68rem!important}
  .ms-history-title-years{gap:2px!important;padding-left:30px!important}
  .ms-history-title-year{font-size:.45rem!important;min-height:15px!important;padding:2px 4px!important}
  .ms-history-ranking-titles{font-size:.60rem!important}
  .ms-history-record-crest,.ms-history-record-crest .ms-crest,.ms-history-record-crest .ms-crest-fallback{height:28px!important;max-height:28px!important;max-width:28px!important;width:28px!important}
  .ms-competition-federation-badge.has-logo img{height:18px!important;max-height:18px!important;max-width:52px!important}
}

/* ========================================================================
   5.17.36 — FIXTURE ÚNICO Y COMPACTO
   Champions / CONMEBOL / copas / ligas usan exactamente la misma tarjeta.
   ======================================================================== */
.ms-match-groups.is-competition-fixture{
  display:block!important;
  margin:0!important;
}
.ms-match-groups.is-competition-fixture .ms-match-group{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-match-grid{
  background:transparent!important;
  display:grid!important;
  grid-template-columns:1fr!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-match{
  background:var(--ms-surface,#fff)!important;
  box-sizing:border-box!important;
  gap:2px!important;
  min-height:0!important;
  padding:7px 12px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-match-meta{
  justify-content:center!important;
  line-height:1!important;
  min-height:12px!important;
  text-align:center!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-match-meta time{
  color:var(--ms-muted,#667085)!important;
  font-size:.66rem!important;
  font-weight:850!important;
  letter-spacing:.01em!important;
  line-height:1!important;
  text-align:center!important;
  width:100%!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-scoreline{
  gap:6px!important;
  grid-template-columns:minmax(0,1fr) 80px minmax(0,1fr)!important;
  min-height:29px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-scoreline>span{gap:6px!important}
.ms-match-groups.is-competition-fixture .ms-compact-team-copy>strong{
  align-items:center!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  line-height:1.05!important;
  min-width:0!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-team-name{
  display:block!important;
  font-size:.76rem!important;
  line-height:1.05!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-scoreline .ms-crest,
.ms-match-groups.is-competition-fixture .ms-compact-scoreline .ms-crest-fallback{
  height:23px!important;
  max-height:23px!important;
  max-width:23px!important;
  object-fit:contain!important;
  width:23px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-center{
  align-items:center!important;
  display:grid!important;
  gap:1px!important;
  justify-items:center!important;
  min-width:76px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill{
  align-items:center!important;
  display:flex!important;
  gap:5px!important;
  justify-content:center!important;
  line-height:1!important;
  min-height:17px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill>b{font-size:1.04rem!important;line-height:1!important}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill>span{font-size:.72rem!important;line-height:1!important}
.ms-match-groups.is-competition-fixture .ms-match-status-chip{font-size:.46rem!important;line-height:1!important;padding:2px 6px!important}
.ms-match-groups.is-competition-fixture .ms-compact-footer{display:grid!important;gap:0!important;line-height:1!important;min-height:11px!important}
.ms-match-groups.is-competition-fixture .ms-compact-venue{
  font-size:.59rem!important;
  line-height:1.05!important;
  margin:0!important;
}
/* El trofeo récord y la bandera son metadata inline: nunca reservan una columna. */
.ms-match-groups.is-competition-fixture .ms-inline-record-trophy,
.ms-match-groups.is-competition-fixture .ms-inline-team-flag{flex:0 0 auto!important}
.ms-match-groups.is-competition-fixture .ms-inline-record-trophy .ms-competition-trophy{
  height:11px!important;min-width:10px!important;width:10px!important;
}
.ms-match-groups.is-competition-fixture .ms-inline-team-flag svg.ms-country-flag{
  height:8px!important;min-width:13px!important;width:13px!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-groups.is-competition-fixture .ms-compact-match{
  background:var(--ms-card,#111827)!important;
}
@media(max-width:560px){
  .ms-match-groups.is-competition-fixture .ms-compact-match{padding:6px 7px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-match-meta time{font-size:.61rem!important}
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline{
    gap:4px!important;
    grid-template-columns:minmax(0,1fr) 66px minmax(0,1fr)!important;
    min-height:27px!important;
  }
  .ms-match-groups.is-competition-fixture .ms-compact-team-name{font-size:.68rem!important}
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline .ms-crest,
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline .ms-crest-fallback{
    height:20px!important;max-height:20px!important;max-width:20px!important;width:20px!important;
  }
  .ms-match-groups.is-competition-fixture .ms-compact-center{min-width:62px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-score-pill>b{font-size:.96rem!important}
  .ms-match-groups.is-competition-fixture .ms-compact-venue{font-size:.54rem!important}
  .ms-match-groups.is-competition-fixture .ms-inline-record-trophy .ms-competition-trophy{height:9px!important;min-width:9px!important;width:9px!important}
  .ms-match-groups.is-competition-fixture .ms-inline-team-flag svg.ms-country-flag{height:7px!important;min-width:12px!important;width:12px!important}
}


/* ==========================================================================
   5.17.38 — Bordes visibles + controles con contraste
   ========================================================================== */
/* Cada partido es una tarjeta completa: no se depende de una línea fantasma del grid. */
.ms-compact-match-grid,.is-two-columns .ms-compact-match-grid{background:transparent!important;gap:5px!important}
.ms-compact-match,
.ms-fixture-match,
.ms-conmebol-match{
  border:1pt solid #111827!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
html[data-tessirve-color-mode="dark"] .ms-compact-match,
html[data-tessirve-color-mode="dark"] .ms-fixture-match,
html[data-tessirve-color-mode="dark"] .ms-conmebol-match{
  border-color:#d8dee8!important;
}

/* Selector/switch de identidad de equipo y selector de H2H: siempre se distingue del tema. */
html:not([data-tessirve-color-mode="dark"]) .ms-theme-picker select,
html:not([data-tessirve-color-mode="dark"]) .ms-h2h-team-picker-button{
  border:1pt solid #111827!important;
}
html[data-tessirve-color-mode="dark"] .ms-theme-picker select,
html[data-tessirve-color-mode="dark"] .ms-h2h-team-picker-button{
  border:1pt solid #e2e8f0!important;
}
.ms-theme-picker select:focus,
.ms-h2h-team-picker-button:focus-visible{
  outline:2px solid color-mix(in srgb,var(--theme-primary,#175cd3),#fff 28%)!important;
  outline-offset:2px!important;
}
@media(max-width:680px){
  .ms-compact-match-grid,.is-two-columns .ms-compact-match-grid{gap:4px!important}
  .ms-compact-match{border-radius:7px!important}
  .ms-match-detail .ms-match-hero.has-custom-match-background::before{opacity:.19!important}
  html[data-tessirve-color-mode="dark"] .ms-match-detail .ms-match-hero.has-custom-match-background::before{opacity:.22!important}
}

/* ==========================================================================
   5.17.39 — bordes del fixture: mismo lenguaje del selector de fecha.
   Se anula el border-top:0 histórico que dejaba esquinas abiertas.
   ========================================================================== */
.ms-compact-match,
.ms-fixture-match,
.ms-conmebol-match{
  border:1pt solid color-mix(in srgb,var(--theme-primary,#175cd3),#d0d5dd 78%)!important;
  border-radius:9px!important;
  background-clip:padding-box!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.ms-compact-match+.ms-compact-match,
.ms-fixture-match+.ms-fixture-match,
.ms-conmebol-match+.ms-conmebol-match{
  border-top:1pt solid color-mix(in srgb,var(--theme-primary,#175cd3),#d0d5dd 78%)!important;
}
html[data-tessirve-color-mode="dark"] .ms-compact-match,
html[data-tessirve-color-mode="dark"] .ms-fixture-match,
html[data-tessirve-color-mode="dark"] .ms-conmebol-match{
  border-color:#d8dee8!important;
}
html[data-tessirve-color-mode="dark"] .ms-compact-match+.ms-compact-match,
html[data-tessirve-color-mode="dark"] .ms-fixture-match+.ms-fixture-match,
html[data-tessirve-color-mode="dark"] .ms-conmebol-match+.ms-conmebol-match{
  border-top-color:#d8dee8!important;
}
@media(max-width:680px){
  .ms-compact-match,.ms-fixture-match,.ms-conmebol-match{border-radius:8px!important}
}


/* ========================================================================
   5.17.40 — DOS REGLAS DEFINITIVAS
   1) TODOS los Playoffs usan exactamente la geometría CA/CONMEBOL.
   2) La agenda no recorta ninguna esquina del borde de cada partido.
   ======================================================================== */

/* La ficha de Playoffs de Champions ya no queda bajo reglas visuales del
   antiguo cup-overview. Estas clases comparten el mismo bloque que
   Libertadores/Sudamericana/Copa Argentina. */
.ms-cup-playoffs-phase.ms-ca-knockout-phase,
.ms-conmebol-knockout-phase.ms-ca-knockout-phase{
  width:100%!important;
}

/* Tamaño legible y homogéneo del botón de serie, en cualquier copa. */
.ms-ca-knockout-mirror .ms-knockout-series-detail,
.ms-ca-mobile-fotmob .ms-knockout-series-detail{
  font-size:.68rem!important;
  min-height:28px!important;
  padding:6px 11px!important;
}
@media(max-width:720px){
  .ms-ca-mobile-fotmob .ms-knockout-series-detail{
    font-size:.70rem!important;
    min-height:30px!important;
    padding:7px 12px!important;
  }
}

/* AGENDA: mismo borde del control/selector de fecha y 4 esquinas completas.
   El wrapper de competición NO puede recortar el borde de sus hijos. */
.ms-home-today .ms-match-groups>.ms-match-group{
  clip-path:none!important;
  overflow:visible!important;
}
.ms-home-today .ms-compact-match-grid,
.ms-home-today .is-two-columns .ms-compact-match-grid{
  overflow:visible!important;
  padding-inline:1px!important;
}
.ms-home-today .ms-compact-match,
.ms-home-today .ms-fixture-match,
.ms-home-today .ms-conmebol-match{
  border:1px solid var(--ms-control-border)!important;
  border-radius:9px!important;
  background-clip:padding-box!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  position:relative!important;
  width:100%!important;
}
.ms-home-today .ms-compact-match+.ms-compact-match,
.ms-home-today .ms-fixture-match+.ms-fixture-match,
.ms-home-today .ms-conmebol-match+.ms-conmebol-match{
  border-top:1px solid var(--ms-control-border)!important;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-match,
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-fixture-match,
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-conmebol-match{
  border-color:#d8dee8!important;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-match+.ms-compact-match,
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-fixture-match+.ms-fixture-match,
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-conmebol-match+.ms-conmebol-match{
  border-top-color:#d8dee8!important;
}
@media(max-width:680px){
  .ms-home-today .ms-compact-match-grid,
  .ms-home-today .is-two-columns .ms-compact-match-grid{padding-inline:1px!important}
  .ms-home-today .ms-compact-match,
  .ms-home-today .ms-fixture-match,
  .ms-home-today .ms-conmebol-match{border-radius:8px!important}
}


/* ========================================================================
   5.17.41 — AGENDA: huecos 100% transparentes + tarjetas cerradas.
   ======================================================================== */
.ms-home-today .ms-match-groups,
.ms-home-today .ms-match-groups>.ms-match-group,
.ms-home-today .ms-compact-match-grid,
.ms-home-today .is-two-columns .ms-compact-match-grid{
  background:transparent!important;
}
.ms-home-today .ms-match-groups>.ms-match-group{
  box-shadow:none!important;
}
.ms-home-today .ms-compact-match-grid,
.ms-home-today .is-two-columns .ms-compact-match-grid{
  gap:6px!important;
  padding:0!important;
}
.ms-home-today .ms-compact-match,
.ms-home-today .ms-fixture-match,
.ms-home-today .ms-conmebol-match{
  border:1px solid var(--ms-control-border)!important;
  border-radius:9px!important;
  margin:0!important;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-match,
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-fixture-match,
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-conmebol-match{
  border-color:#d8dee8!important;
}
@media(max-width:680px){
  .ms-home-today .ms-compact-match-grid,
  .ms-home-today .is-two-columns .ms-compact-match-grid{gap:5px!important;padding:0!important}
}

/* ========================================================================
   5.17.42 — fondo de partidos editable por competencia.
   Los sliders del plugin controlan blur, presencia, color y veladura.
   ======================================================================== */
.ms-match-detail .ms-match-hero.has-custom-match-background::before{
  filter:blur(var(--ms-match-bg-blur,2px)) saturate(var(--ms-match-bg-saturation,1.12)) contrast(.98)!important;
  inset:-14px!important;
  opacity:var(--ms-match-bg-opacity,.42)!important;
  transform:scale(1.04)!important;
}
.ms-match-detail .ms-match-hero.has-custom-match-background::after{
  background:rgba(255,255,255,var(--ms-match-bg-overlay,.38))!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-detail .ms-match-hero.has-custom-match-background::before{
  filter:blur(var(--ms-match-bg-blur,2px)) saturate(var(--ms-match-bg-saturation,1.12)) brightness(.90) contrast(1.03)!important;
  opacity:var(--ms-match-bg-opacity,.42)!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-detail .ms-match-hero.has-custom-match-background::after{
  background:rgba(13,18,25,var(--ms-match-bg-overlay,.38))!important;
}
@media(max-width:720px){
  .ms-match-detail .ms-match-hero.has-custom-match-background::before,
  html[data-tessirve-color-mode="dark"] .ms-match-detail .ms-match-hero.has-custom-match-background::before{opacity:var(--ms-match-bg-opacity,.42)!important}
}

/* ========================================================================
   5.17.43 — AGENDA PRINCIPAL: ESCUDOS +2 PX SIN AUMENTAR LA TARJETA
   SOLO .ms-home-today (Partidos de hoy / mañana / fecha elegida).
   No afecta fixtures internos, playoffs ni fichas individuales.
   ======================================================================== */
.ms-home-today .ms-compact-scoreline .ms-crest,
.ms-home-today .ms-compact-scoreline .ms-crest-fallback{
  height:24px!important;
  max-height:24px!important;
  max-width:24px!important;
  width:24px!important;
  object-fit:contain!important;
}
/* La línea ya reservaba 28 px: el escudo crece dentro del espacio existente. */
.ms-home-today .ms-compact-scoreline{
  min-height:28px!important;
}
/* Recupera aire horizontal sin tocar la altura total. */
.ms-home-today .ms-compact-scoreline>span{
  gap:5px!important;
}
@media(max-width:560px){
  .ms-home-today .ms-compact-scoreline .ms-crest,
  .ms-home-today .ms-compact-scoreline .ms-crest-fallback{
    height:22px!important;
    max-height:22px!important;
    max-width:22px!important;
    width:22px!important;
  }
  .ms-home-today .ms-compact-scoreline{
    min-height:28px!important;
  }
  .ms-home-today .ms-compact-scoreline>span{
    gap:3px!important;
  }
}

/* 5.17.43 — Agenda principal: nombre alineado al centro del escudo (estilo Promiedos).
 * La bandera queda fuera del flujo para NO sumar altura a la tarjeta. */
.ms-home-today .ms-compact-scoreline>.is-home,
.ms-home-today .ms-compact-scoreline>.is-away{
  align-items:center!important;
  position:relative!important;
}
.ms-home-today .ms-compact-team-copy{
  align-items:stretch!important;
  display:flex!important;
  flex-direction:column!important;
  height:28px!important;
  justify-content:flex-start!important;
  overflow:visible!important;
  position:relative!important;
}
.ms-home-today .ms-compact-team-copy>strong{
  align-items:center!important;
  display:flex!important;
  height:24px!important;
  min-height:24px!important;
  margin:0!important;
  padding:0!important;
}
.ms-home-today .ms-compact-scoreline .is-home .ms-compact-team-copy>strong{justify-content:flex-end!important}
.ms-home-today .ms-compact-scoreline .is-away .ms-compact-team-copy>strong{justify-content:flex-start!important}
.ms-home-today .ms-compact-team-country{
  bottom:0!important;
  height:8px!important;
  margin:0!important;
  position:absolute!important;
  width:100%!important;
}
.ms-home-today .ms-compact-team-country.is-home-country{left:0!important;justify-content:flex-start!important}
.ms-home-today .ms-compact-team-country.is-away-country{right:0!important;justify-content:flex-end!important}
@media(max-width:560px){
  .ms-home-today .ms-compact-team-copy{height:28px!important}
  .ms-home-today .ms-compact-team-copy>strong{height:22px!important;min-height:22px!important}
  .ms-home-today .ms-compact-team-country{bottom:0!important;height:7px!important}
}


/* ========================================================================
   5.17.44 — AGENDA PRINCIPAL: BLOQUES UNIFICADOS + ESCUDOS GRANDES
   SOLO Partidos de hoy / mañana / fecha elegida.
   ======================================================================== */

/* Escritorio: el fixture respira respecto del header general. Cada competencia
   ocupa ~80% del ancho útil y queda perfectamente centrada. */
.ms-home-today .ms-match-groups{
  margin-inline:auto!important;
  width:min(80%,1080px)!important;
}

/* Competencia + partidos forman UNA sola pieza visual. El borde exterior es
   el mismo del selector de fecha y ya no depende de esquinas de los hijos. */
.ms-home-today .ms-match-groups>.ms-match-group{
  background:transparent!important;
  border:1px solid var(--ms-control-border)!important;
  border-radius:12px!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
  clip-path:none!important;
  margin:0!important;
  overflow:hidden!important;
  width:100%!important;
}
.ms-home-today .ms-match-group-title{
  background:var(--ms-surface,#f8fafc)!important;
  border:0!important;
  border-bottom:1px solid var(--ms-control-border)!important;
  border-radius:0!important;
  box-sizing:border-box!important;
  margin:0!important;
  min-height:42px!important;
  padding:8px 13px!important;
  width:100%!important;
}
.ms-home-today .ms-compact-match-grid,
.ms-home-today .is-two-columns .ms-compact-match-grid{
  background:transparent!important;
  gap:0!important;
  overflow:visible!important;
  padding:0!important;
}

/* Las tarjetas internas ya no dibujan cajas rivales: el marco lo aporta la
   competencia y cada partido se separa con una única línea homogénea. */
.ms-home-today .ms-compact-match,
.ms-home-today .ms-fixture-match,
.ms-home-today .ms-conmebol-match{
  border:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
  margin:0!important;
  overflow:visible!important;
  width:100%!important;
}
.ms-home-today .ms-compact-match+.ms-compact-match,
.ms-home-today .ms-fixture-match+.ms-fixture-match,
.ms-home-today .ms-conmebol-match+.ms-conmebol-match{
  border-top:1px solid var(--ms-control-border)!important;
}

/* Escudos grandes, sin inflar la fila. Conservamos la caja lógica de 28 px y
   dejamos que el escudo sobresalga apenas dentro del aire vertical existente. */
.ms-home-today .ms-compact-scoreline{
  min-height:28px!important;
}
.ms-home-today .ms-compact-scoreline .ms-crest,
.ms-home-today .ms-compact-scoreline .ms-crest-fallback{
  height:34px!important;
  max-height:34px!important;
  max-width:34px!important;
  width:34px!important;
  margin-block:-3px!important;
  object-fit:contain!important;
  flex:0 0 34px!important;
}
.ms-home-today .ms-compact-team-copy,
.ms-home-today .ms-compact-team-copy>strong{
  align-self:center!important;
}

/* Recuperamos el espacio consumido por el escudo sin alterar la altura global. */
.ms-home-today .ms-compact-match{
  padding-block:3px!important;
}
.ms-home-today .ms-compact-scoreline>span{
  gap:6px!important;
}

html[data-tessirve-color-mode="dark"] .ms-home-today .ms-match-groups>.ms-match-group{
  border-color:var(--ms-control-border)!important;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-match-group-title{
  background:var(--ms-surface,#202936)!important;
  border-bottom-color:var(--ms-control-border)!important;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-match+.ms-compact-match,
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-fixture-match+.ms-fixture-match,
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-conmebol-match+.ms-conmebol-match{
  border-top-color:var(--ms-control-border)!important;
}

@media(max-width:760px){
  /* En celular no desperdiciamos 20%: usamos todo el ancho disponible. */
  .ms-home-today .ms-match-groups{
    width:100%!important;
  }
  .ms-home-today .ms-match-groups>.ms-match-group{
    border-radius:10px!important;
  }
  .ms-home-today .ms-match-group-title{
    min-height:39px!important;
    padding:7px 10px!important;
  }
  .ms-home-today .ms-compact-match{
    padding-block:3px!important;
  }
  .ms-home-today .ms-compact-scoreline .ms-crest,
  .ms-home-today .ms-compact-scoreline .ms-crest-fallback{
    height:30px!important;
    max-height:30px!important;
    max-width:30px!important;
    width:30px!important;
    margin-block:-1px!important;
    flex-basis:30px!important;
  }
  .ms-home-today .ms-compact-scoreline>span{
    gap:4px!important;
  }
}

/* ========================================================================
   5.17.45 — AGENDA + TEMA “CANCHERO”
   ======================================================================== */

/* Agenda principal (PC): las flechas/fecha comparten exactamente el mismo
   ancho y eje horizontal que los bloques de competencias. En móvil se mantiene
   el ancho completo que ya estaba bien. */
@media(min-width:761px){
  .ms-home-today .ms-home-day-nav{
    margin-left:auto!important;
    margin-right:auto!important;
    width:min(80%,1080px)!important;
  }
}

/* Sólo agenda principal: +2 px en los nombres sin aumentar la altura de fila. */
.ms-home-today .ms-compact-scoreline .ms-compact-team-copy>strong,
.ms-home-today .ms-compact-scoreline .ms-compact-team-name{
  font-size:calc(.76rem + 2px)!important;
  line-height:1!important;
}
@media(max-width:760px){
  .ms-home-today .ms-compact-scoreline .ms-compact-team-copy>strong,
  .ms-home-today .ms-compact-scoreline .ms-compact-team-name{
    font-size:calc(.68rem + 2px)!important;
    line-height:1!important;
  }
}

/* El preset especial queda visualmente separado de Tessirve en el selector. */
#ms-theme-team option.ms-theme-separator{color:#98a2b3!important}
#ms-theme-team option.ms-theme-canchero-option{color:#147a43!important;font-weight:900!important}
html[data-tessirve-theme="canchero"] #ms-theme-team{
  color:#116b3a!important;
  font-weight:900!important;
  border-color:#16884a!important;
}

/* CANCHERO: identidad de cancha elegante. El modo claro y oscuro siguen
   existiendo, pero ambos permanecen dentro de una paleta de césped. */
html[data-tessirve-theme="canchero"]{
  --theme-primary:#16884a!important;
  --theme-secondary:#0a5b35!important;
  --theme-ink:#f8fff9!important;
  --theme-muted:#d5eadc!important;
  --theme-line:rgba(255,255,255,.42)!important;
  --theme-bg:#0b6b3d!important;
  --ms-ink:#f8fff9!important;
  --ms-muted:#d5eadc!important;
  --ms-line:rgba(255,255,255,.42)!important;
  --ms-bg:#0b6b3d!important;
  --ms-card:#0b5d37!important;
  --ms-blue:#f1fff5!important;
  --ms-navy:#073d27!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]{
  --theme-ink:#f7fff9!important;
  --theme-muted:#cde5d5!important;
  --theme-line:rgba(255,255,255,.38)!important;
  --theme-bg:#074d2e!important;
  --ms-ink:#f7fff9!important;
  --ms-muted:#cde5d5!important;
  --ms-line:rgba(255,255,255,.38)!important;
  --ms-bg:#074d2e!important;
  --ms-card:#083f28!important;
}

/* Césped con franjas de corte y marcas de cancha muy sutiles. */
html[data-tessirve-theme="canchero"] body.tessirve-theme{
  background-color:#0b6b3d!important;
  background-image:
    radial-gradient(circle at 50% 48%,transparent 0 72px,rgba(255,255,255,.075) 73px 74px,transparent 75px),
    linear-gradient(90deg,transparent calc(50% - .6px),rgba(255,255,255,.085) calc(50% - .6px) calc(50% + .6px),transparent calc(50% + .6px)),
    repeating-linear-gradient(90deg,#0d7542 0 115px,#0a693b 115px 230px)!important;
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body.tessirve-theme{
  background-color:#074d2e!important;
  background-image:
    radial-gradient(circle at 50% 48%,transparent 0 72px,rgba(255,255,255,.065) 73px 74px,transparent 75px),
    linear-gradient(90deg,transparent calc(50% - .6px),rgba(255,255,255,.075) calc(50% - .6px) calc(50% + .6px),transparent calc(50% + .6px)),
    repeating-linear-gradient(90deg,#095632 0 115px,#074b2d 115px 230px)!important;
}
html[data-tessirve-theme="canchero"] .ms-site-main{background:transparent!important}

/* Header/footer: verde profundo, sobrio, con línea de cal. */
html[data-tessirve-theme="canchero"] .ms-site-header{
  background:linear-gradient(115deg,#08472c,#0b6138)!important;
  border-color:rgba(255,255,255,.58)!important;
}
html[data-tessirve-theme="canchero"] .ms-theme-footer-strip,
html[data-tessirve-theme="canchero"] .ms-site-footer{
  background:linear-gradient(120deg,#073c27,#095432)!important;
  border-color:rgba(255,255,255,.42)!important;
}

/* Superficies: tarjetas verdes translúcidas y contornos blancos como cal.
   Se hace con una lista acotada de componentes para no convertirlo en un
   “skin de videojuego” pesado. */
html[data-tessirve-theme="canchero"] .ms-app{
  --ms-control-bg:rgba(8,77,46,.92)!important;
  --ms-control-bg-hover:rgba(16,111,62,.96)!important;
  --ms-control-border:rgba(255,255,255,.72)!important;
  --ms-control-border-hover:#fff!important;
  --ms-control-ink:#fff!important;
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-panel,.ms-profile-nav,.ms-competition-block,.ms-standing-card,.ms-team-card,
  .ms-media-card,.ms-honors-list,.ms-h2h-form,.ms-match-group,.ms-result-card,
  .ms-match-hero,.ms-top-stat,.ms-summary-pitch,.ms-full-lineups,.ms-stat-comparisons,
  .ms-centered-timeline,.ms-event-teams,.ms-empty,.ms-filter-bar,.ms-home-day-nav,
  .ms-table-wrap,.ms-calendar,.ms-ranking-card,.ms-snapshot-data,.ms-team-calendar
){
  background:rgba(7,72,43,.88)!important;
  border-color:rgba(255,255,255,.48)!important;
  box-shadow:0 10px 28px rgba(0,30,16,.12)!important;
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(
  .ms-panel,.ms-profile-nav,.ms-competition-block,.ms-standing-card,.ms-team-card,
  .ms-media-card,.ms-honors-list,.ms-h2h-form,.ms-match-group,.ms-result-card,
  .ms-match-hero,.ms-top-stat,.ms-summary-pitch,.ms-full-lineups,.ms-stat-comparisons,
  .ms-centered-timeline,.ms-event-teams,.ms-empty,.ms-filter-bar,.ms-home-day-nav,
  .ms-table-wrap,.ms-calendar,.ms-ranking-card,.ms-snapshot-data,.ms-team-calendar
){
  background:rgba(5,56,34,.92)!important;
  border-color:rgba(255,255,255,.42)!important;
}

html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-competition-title,.ms-match-group-title,.ms-data-table thead th,.ms-standing-table thead th,
  .ms-round-toolbar,.ms-result-meta,.ms-score span
){
  background:rgba(11,95,55,.92)!important;
  border-color:rgba(255,255,255,.42)!important;
  color:#f8fff9!important;
}

/* Líneas internas de tablas/partidos: blancas pero finas, como líneas de cal. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-match-row,.ms-compact-match,.ms-data-table th,.ms-data-table td,
  .ms-standing-table th,.ms-standing-table td,.ms-definition-list>div
){
  border-color:rgba(255,255,255,.28)!important;
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-match-row:hover,.ms-compact-match:hover){
  background:rgba(20,123,68,.34)!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(a,strong,b,h1,h2,h3,dt,dd){color:inherit}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-muted,small,.ms-compact-venue,.ms-match-group-title>span){color:#d5eadc!important}

/* La agenda principal es la pieza que mejor vende el concepto: borde exterior
   blanco limpio y separadores internos más suaves. */
html[data-tessirve-theme="canchero"] .ms-home-today .ms-match-groups>.ms-match-group{
  border-color:rgba(255,255,255,.76)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-match-group-title{
  background:rgba(6,77,45,.84)!important;
  border-bottom-color:rgba(255,255,255,.58)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-match+.ms-compact-match{
  border-top-color:rgba(255,255,255,.30)!important;
}

/* Tabs/controles: blanco-cal y verde, sin aspecto chillón. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-profile-nav button,.ms-profile-nav a,.ms-phase-tabs button,.ms-ca-tabs button,.ms-ca-tabs a,
  .ms-lib-tabs button,.ms-lib-tabs a,.ms-cup-secondary-tabs button,.ms-cup-secondary-tabs a
){
  color:#f6fff8!important;
  border-color:rgba(255,255,255,.34)!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-profile-nav button[aria-selected="true"],.ms-profile-nav a[aria-current="page"],
  .ms-phase-tabs button.is-active,.ms-ca-tabs .is-active,.ms-lib-tabs .is-active
){
  background:#f7fff9!important;
  color:#0a5b35!important;
}

/* ========================================================================
   5.17.46 — CANCHERO: CONTRASTE COMPLETO + CÉSPED/LINEAS DE CAL + SIN GLOW
   ======================================================================== */

/* El resplandor circular de la derecha no pertenece a ninguna identidad.
   Se elimina globalmente, no sólo en Canchero. */
.ms-competition-hero::after,
.ms-team-hero::after{
  content:none!important;
  display:none!important;
}

/* Canchero no es una identidad de club: usa la marca Tessirve como watermark
   sutil, en el mismo sector/tamaño conceptual donde aparecen los escudos. */
html[data-tessirve-theme="canchero"] body.has-canchero-watermark .ms-site-main{
  isolation:isolate!important;
  position:relative!important;
}
html[data-tessirve-theme="canchero"] body.has-canchero-watermark .ms-site-main::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 56'%3E%3Cpath d='M24 3 43 9v17c0 12.8-7.2 22.2-19 27C12.2 48.2 5 38.8 5 26V9L24 3Z' fill='none' stroke='%23ffffff' stroke-width='2.4'/%3E%3Cpath d='M12 17h24M24 17v21' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-width='3.2'/%3E%3Ccircle cx='24' cy='42' r='3.15' fill='%23ffffff'/%3E%3C/svg%3E")!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:contain!important;
  content:""!important;
  display:block!important;
  filter:none!important;
  height:clamp(150px,19vw,245px)!important;
  opacity:.055!important;
  pointer-events:none!important;
  position:absolute!important;
  right:clamp(18px,3.5vw,58px)!important;
  top:clamp(18px,2.4vw,34px)!important;
  transform:rotate(-4deg)!important;
  width:clamp(150px,19vw,245px)!important;
  z-index:0!important;
}
html[data-tessirve-theme="canchero"] body.has-canchero-watermark .ms-site-main>*{
  position:relative!important;
  z-index:1!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body.has-canchero-watermark .ms-site-main::before{
  opacity:.065!important;
}

/* Paleta: nunca negro. Claro = césped vivo/profundo; oscuro = césped nocturno. */
html[data-tessirve-theme="canchero"]{
  --theme-primary:#18a158!important;
  --theme-secondary:#08643a!important;
  --theme-ink:#f8fff9!important;
  --theme-muted:#d7eddf!important;
  --theme-line:rgba(247,255,249,.66)!important;
  --theme-bg:#0a7440!important;
  --ms-ink:#f8fff9!important;
  --ms-muted:#d7eddf!important;
  --ms-line:rgba(247,255,249,.66)!important;
  --ms-bg:#0a7440!important;
  --ms-card:#0a5d37!important;
  --ms-blue:#f7fff9!important;
  --ms-navy:#06492d!important;
  --ms-pitch-surface:#0a5d37!important;
  --ms-pitch-surface-2:#0c6840!important;
  --ms-pitch-surface-deep:#074d2f!important;
  --ms-pitch-line:rgba(249,255,250,.78)!important;
  --ms-pitch-line-soft:rgba(249,255,250,.42)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]{
  --theme-primary:#159653!important;
  --theme-secondary:#063d28!important;
  --theme-ink:#f7fff9!important;
  --theme-muted:#cce7d5!important;
  --theme-line:rgba(244,255,247,.58)!important;
  --theme-bg:#06482c!important;
  --ms-ink:#f7fff9!important;
  --ms-muted:#cce7d5!important;
  --ms-line:rgba(244,255,247,.58)!important;
  --ms-bg:#06482c!important;
  --ms-card:#073f28!important;
  --ms-navy:#052f20!important;
  --ms-pitch-surface:#07452b!important;
  --ms-pitch-surface-2:#085033!important;
  --ms-pitch-surface-deep:#053722!important;
  --ms-pitch-line:rgba(248,255,249,.72)!important;
  --ms-pitch-line-soft:rgba(248,255,249,.34)!important;
}

/* Textura de césped: franjas amplias + fibra fina. No hay imagen ni peso extra. */
html[data-tessirve-theme="canchero"] body.tessirve-theme{
  background-color:var(--theme-bg)!important;
  background-image:
    radial-gradient(circle at 50% 47%,transparent 0 72px,rgba(250,255,251,.12) 72.5px 74px,transparent 74.5px),
    linear-gradient(90deg,transparent calc(50% - .8px),rgba(250,255,251,.13) calc(50% - .8px) calc(50% + .8px),transparent calc(50% + .8px)),
    repeating-linear-gradient(0deg,rgba(255,255,255,.017) 0 1px,rgba(0,0,0,.012) 1px 3px,transparent 3px 6px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.012) 0 2px,rgba(0,0,0,.014) 2px 5px,transparent 5px 9px),
    repeating-linear-gradient(90deg,#0d7c45 0 112px,#0a6d3d 112px 224px)!important;
  color:var(--theme-ink)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body.tessirve-theme{
  background-image:
    radial-gradient(circle at 50% 47%,transparent 0 72px,rgba(250,255,251,.095) 72.5px 74px,transparent 74.5px),
    linear-gradient(90deg,transparent calc(50% - .8px),rgba(250,255,251,.105) calc(50% - .8px) calc(50% + .8px),transparent calc(50% + .8px)),
    repeating-linear-gradient(0deg,rgba(255,255,255,.014) 0 1px,rgba(0,0,0,.018) 1px 3px,transparent 3px 6px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.01) 0 2px,rgba(0,0,0,.018) 2px 5px,transparent 5px 9px),
    repeating-linear-gradient(90deg,#085432 0 112px,#06492d 112px 224px)!important;
}

html[data-tessirve-theme="canchero"] .ms-site-main{background:transparent!important}

/* Header/featured/footer: verdes, sin halo y con línea de cal. */
html[data-tessirve-theme="canchero"] :is(.ms-site-header,.ms-header-featured,.ms-site-footer,.ms-theme-footer-strip){
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-site-header{
  background:linear-gradient(115deg,#075033,#086b3d)!important;
  border-bottom:1px solid var(--ms-pitch-line)!important;
}
html[data-tessirve-theme="canchero"] .ms-header-featured{
  background:linear-gradient(115deg,#063f29,#075735)!important;
  border-bottom:1px solid var(--ms-pitch-line-soft)!important;
  border-top:1px solid rgba(255,255,255,.12)!important;
}
html[data-tessirve-theme="canchero"] :is(.ms-site-footer,.ms-theme-footer-strip){
  background:linear-gradient(120deg,#053b27,#075333)!important;
  border-color:var(--ms-pitch-line-soft)!important;
}

/* El hero deja de mezclar colores del club/competencia con Canchero. */
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-team-hero,.ms-competition-hero,.ms-home-heading,.ms-federation-hero){
  background:linear-gradient(120deg,rgba(5,59,38,.97),rgba(8,87,51,.94))!important;
  border:1px solid var(--ms-pitch-line-soft)!important;
  box-shadow:none!important;
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-team-hero,.ms-competition-hero) :is(h1,h2,strong,p,.ms-eyebrow,small){
  color:#f8fff9!important;
}

/* Superficies completas. El borde tiene un doble tono minúsculo que recuerda
   una línea de cal asentada sobre el césped, sin verse rústico. */
html[data-tessirve-theme="canchero"] .ms-app{
  --ms-control-bg:rgba(6,76,45,.96)!important;
  --ms-control-bg-hover:rgba(13,111,62,.98)!important;
  --ms-control-border:var(--ms-pitch-line)!important;
  --ms-control-border-hover:#fff!important;
  --ms-control-ink:#fff!important;
  color:var(--ms-ink)!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-panel,.ms-profile-nav,.ms-competition-block,.ms-standing-card,.ms-team-card,
  .ms-media-card,.ms-honors-list,.ms-h2h-form,.ms-match-group,.ms-result-card,
  .ms-match-hero,.ms-top-stat,.ms-summary-pitch,.ms-full-lineups,.ms-stat-comparisons,
  .ms-centered-timeline,.ms-event-teams,.ms-empty,.ms-filter-bar,.ms-home-day-nav,
  .ms-table-wrap,.ms-calendar,.ms-ranking-card,.ms-snapshot-data,.ms-team-calendar,
  .ms-stat,.ms-last-ten-context>div,.ms-current-badge,.ms-badge-timeline>article,
  .ms-scoreline-list>span,.ms-split-record>div,.ms-goal-interval-grid>span,
  .ms-event-counters>span,.ms-competition-stat-card,.ms-round-carousel
){
  background:linear-gradient(180deg,var(--ms-pitch-surface-2),var(--ms-pitch-surface))!important;
  border-color:var(--ms-pitch-line-soft)!important;
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.10)!important;
  color:var(--ms-ink)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(
  .ms-panel,.ms-profile-nav,.ms-competition-block,.ms-standing-card,.ms-team-card,
  .ms-media-card,.ms-honors-list,.ms-h2h-form,.ms-match-group,.ms-result-card,
  .ms-match-hero,.ms-top-stat,.ms-summary-pitch,.ms-full-lineups,.ms-stat-comparisons,
  .ms-centered-timeline,.ms-event-teams,.ms-empty,.ms-filter-bar,.ms-home-day-nav,
  .ms-table-wrap,.ms-calendar,.ms-ranking-card,.ms-snapshot-data,.ms-team-calendar,
  .ms-stat,.ms-last-ten-context>div,.ms-current-badge,.ms-badge-timeline>article,
  .ms-scoreline-list>span,.ms-split-record>div,.ms-goal-interval-grid>span,
  .ms-event-counters>span,.ms-competition-stat-card,.ms-round-carousel
){
  background:linear-gradient(180deg,var(--ms-pitch-surface-2),var(--ms-pitch-surface-deep))!important;
}

/* Contraste tipográfico: nada de texto blanco sobre tarjeta blanca ni gris fantasma. */
html[data-tessirve-theme="canchero"] .ms-app :is(h1,h2,h3,h4,strong,b,dt,dd,.ms-section-heading,.ms-score,.ms-standing-team,.ms-team-card){
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-muted,small,.ms-stat span,.ms-definition-list dt,.ms-media-card p,.ms-calendar-count,.ms-sources){
  color:#cfe8d7!important;
}

/* TABLAS: nunca blanco ni negro. Dos verdes de césped y líneas de cal suaves. */
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table){
  background:var(--ms-pitch-surface)!important;
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) thead th{
  background:#075535!important;
  border-color:var(--ms-pitch-line-soft)!important;
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr,
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:nth-child(odd){
  background:var(--ms-pitch-surface)!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:nth-child(even){
  background:var(--ms-pitch-surface-2)!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:hover{
  background:#117847!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) :is(td,th,a,strong,span,b){
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) td{
  border-color:rgba(249,255,250,.30)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-standing-detail td{
  background:#06482d!important;
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:nth-child(odd){
  background:#07442b!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:nth-child(even){
  background:#085033!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:hover{
  background:#0d6740!important;
}

/* Tabs: selección inequívoca. Blanco-cal + verde oscuro, sin perder texto. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-profile-nav button,.ms-profile-nav a,.ms-phase-tabs button,.ms-ca-tabs button,.ms-ca-tabs a,
  .ms-lib-tabs button,.ms-lib-tabs a,.ms-cup-secondary-tabs button,.ms-cup-secondary-tabs a,
  .ms-competition-season-tabs button,.ms-match-tabs button
){
  background:transparent!important;
  border-color:rgba(249,255,250,.34)!important;
  color:#f5fff7!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-profile-nav button[aria-selected="true"],.ms-profile-nav a[aria-current="page"],
  .ms-phase-tabs button.is-active,.ms-ca-tabs .is-active,.ms-lib-tabs .is-active,
  .ms-cup-secondary-tabs .is-active,.ms-competition-season-tabs button.is-active,
  .ms-match-tabs button[aria-selected="true"]
){
  background:#f5fff7!important;
  border-color:#fff!important;
  color:#07512f!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-profile-nav button,.ms-profile-nav a):hover{
  background:rgba(255,255,255,.13)!important;
  color:#fff!important;
}

/* Calendario de equipos: toda la grilla respeta el verde y las líneas de cal. */
html[data-tessirve-theme="canchero"] .ms-app .ms-calendar>header{
  background:#075535!important;
  border-color:var(--ms-pitch-line-soft)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-calendar>header :is(a,strong){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-calendar>header a{
  background:#0a6b40!important;
  border-color:var(--ms-pitch-line)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-calendar-grid{
  background:var(--ms-pitch-surface-deep)!important;
  border-color:var(--ms-pitch-line-soft)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-calendar-grid :is(.ms-calendar-label,.no-matches,.has-matches){
  border-color:rgba(249,255,250,.26)!important;
  color:#f7fff9!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-calendar-grid .no-matches{
  background:rgba(7,73,44,.72)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-calendar-grid .no-matches>b{
  color:#d7eddf!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-calendar-grid .has-matches{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)!important;
}

/* KPIs y tarjetas del perfil: verdes reales, no bloques blancos con copy blanco. */
html[data-tessirve-theme="canchero"] .ms-app .ms-stat{
  background:linear-gradient(180deg,#0d6f42,#095b36)!important;
  border-color:var(--ms-pitch-line-soft)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-stat :is(strong,span){color:#f8fff9!important}

/* Controles/selects: contraste estable en claro y oscuro. */
html[data-tessirve-theme="canchero"] .ms-app :is(select,input,textarea){
  background:#f5fff7!important;
  border-color:rgba(255,255,255,.9)!important;
  color:#06472b!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(select,input,textarea)::placeholder{color:#47715a!important}

/* “Cal con césped”: bordes finos con una segunda línea interna apenas irregular. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-panel,.ms-profile-nav,.ms-standing-card,.ms-table-wrap,.ms-calendar,.ms-match-group,
  .ms-team-card,.ms-media-card,.ms-filter-bar,.ms-home-day-nav,.ms-competition-block
){
  border-color:var(--ms-pitch-line-soft)!important;
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.16)!important;
}

@media(max-width:760px){
  html[data-tessirve-theme="canchero"] body.has-canchero-watermark .ms-site-main::before{
    height:150px!important;
    opacity:.045!important;
    right:10px!important;
    top:16px!important;
    width:150px!important;
  }
}

/* ========================================================================
   5.17.47 — CANCHERO: CONTRASTE FINAL + WATERMARK LATERAL + CAL SUAVE
   Estas reglas viven al final del archivo para ganar a los estilos base.
   ======================================================================== */

/* El césped conserva franjas pero suma una fibra mucho más fina y natural. */
html[data-tessirve-theme="canchero"] body.tessirve-theme{
  background-image:
    radial-gradient(circle at 50% 47%,transparent 0 72px,rgba(248,255,250,.105) 72.5px 74px,transparent 74.5px),
    linear-gradient(90deg,transparent calc(50% - .75px),rgba(248,255,250,.12) calc(50% - .75px) calc(50% + .75px),transparent calc(50% + .75px)),
    repeating-linear-gradient(7deg,rgba(255,255,255,.018) 0 1px,transparent 1px 4px),
    repeating-linear-gradient(173deg,rgba(0,35,18,.022) 0 1px,transparent 1px 5px),
    repeating-linear-gradient(90deg,#0d7c45 0 112px,#0a6d3d 112px 224px)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body.tessirve-theme{
  background-image:
    radial-gradient(circle at 50% 47%,transparent 0 72px,rgba(248,255,250,.085) 72.5px 74px,transparent 74.5px),
    linear-gradient(90deg,transparent calc(50% - .75px),rgba(248,255,250,.095) calc(50% - .75px) calc(50% + .75px),transparent calc(50% + .75px)),
    repeating-linear-gradient(7deg,rgba(255,255,255,.014) 0 1px,transparent 1px 4px),
    repeating-linear-gradient(173deg,rgba(0,20,12,.028) 0 1px,transparent 1px 5px),
    repeating-linear-gradient(90deg,#085432 0 112px,#06492d 112px 224px)!important;
}

/* Marca Tessirve: en desktop vive en el margen derecho, fuera de la columna útil. */
html[data-tessirve-theme="canchero"] body.has-canchero-watermark{overflow-x:hidden!important}
@media(min-width:1000px){
  html[data-tessirve-theme="canchero"] body.has-canchero-watermark .ms-site-main::before{
    height:clamp(155px,14vw,215px)!important;
    opacity:.07!important;
    right:clamp(-165px,-9vw,-95px)!important;
    top:clamp(34px,4vw,62px)!important;
    transform:rotate(-4deg)!important;
    width:clamp(155px,14vw,215px)!important;
  }
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body.has-canchero-watermark .ms-site-main::before{
    opacity:.08!important;
  }
}
@media(max-width:999px){
  html[data-tessirve-theme="canchero"] body.has-canchero-watermark .ms-site-main::before{
    height:138px!important;
    opacity:.045!important;
    right:8px!important;
    top:18px!important;
    width:138px!important;
  }
}

/* Tokens definitivos de superficie. */
html[data-tessirve-theme="canchero"]{
  --ms-pitch-card:#08663b!important;
  --ms-pitch-card-alt:#0a7040!important;
  --ms-pitch-card-deep:#075735!important;
  --ms-pitch-copy:#f8fff9!important;
  --ms-pitch-copy-muted:#d6ebdd!important;
  --ms-pitch-chalk:rgba(248,255,250,.72)!important;
  --ms-pitch-chalk-soft:rgba(248,255,250,.34)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]{
  --ms-pitch-card:#084a30!important;
  --ms-pitch-card-alt:#095438!important;
  --ms-pitch-card-deep:#063c29!important;
  --ms-pitch-copy:#f7fff9!important;
  --ms-pitch-copy-muted:#cce4d4!important;
  --ms-pitch-chalk:rgba(248,255,250,.64)!important;
  --ms-pitch-chalk-soft:rgba(248,255,250,.28)!important;
}

/* AGENDA PRINCIPAL: jamás blanco ni azul-negro en Canchero. */
html[data-tessirve-theme="canchero"] .ms-home-today .ms-match-groups>.ms-match-group{
  background:var(--ms-pitch-card-deep)!important;
  border:1px solid var(--ms-pitch-chalk)!important;
  box-shadow:inset 0 0 0 .6px rgba(255,255,255,.10)!important;
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-match-group-title{
  background:linear-gradient(180deg,var(--ms-pitch-card-alt),var(--ms-pitch-card))!important;
  border-bottom:1px solid var(--ms-pitch-chalk-soft)!important;
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-match,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-match{
  background:linear-gradient(180deg,var(--ms-pitch-card-alt),var(--ms-pitch-card))!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-match+.ms-compact-match,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-match+.ms-compact-match{
  border-top:1px solid var(--ms-pitch-chalk-soft)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-match:hover{
  background:linear-gradient(180deg,#118050,#0d7145)!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-match:hover{
  background:linear-gradient(180deg,#0d6342,#0a5639)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-match :is(a,strong,b,time,.ms-compact-team,.ms-compact-team-name,.ms-score,.ms-score span){
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-match :is(small,.ms-compact-venue,.ms-compact-match-meta){
  color:var(--ms-pitch-copy-muted)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-match-meta>span{
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.32)!important;
  color:#f7fff9!important;
}

/* Perfiles/equipos: superficies verdes explícitas para ganarle a reglas blancas/azules base. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-team-hero-calendar,.ms-stat,.ms-last-ten-context>div,.ms-club-identity,
  .ms-stadium-detail-item,.ms-team-last-ten .ms-compact-match,.ms-history-rival-card,
  .ms-rival-history-card,.ms-probability,.ms-competition-stat-card,.ms-competition-stat-summary>span
){
  background:linear-gradient(180deg,var(--ms-pitch-card-alt),var(--ms-pitch-card))!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.08)!important;
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(
  .ms-team-hero-calendar,.ms-stat,.ms-last-ten-context>div,.ms-club-identity,
  .ms-stadium-detail-item,.ms-team-last-ten .ms-compact-match,.ms-history-rival-card,
  .ms-rival-history-card,.ms-probability,.ms-competition-stat-card,.ms-competition-stat-summary>span
){
  background:linear-gradient(180deg,var(--ms-pitch-card-alt),var(--ms-pitch-card-deep))!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-team-hero-calendar,.ms-stat,.ms-last-ten-context>div,.ms-club-identity,
  .ms-stadium-detail-item,.ms-team-last-ten .ms-compact-match,.ms-history-rival-card,
  .ms-rival-history-card,.ms-probability,.ms-competition-stat-card,.ms-competition-stat-summary>span
) :is(a,strong,b,h2,h3,h4,dd){color:var(--ms-pitch-copy)!important}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-stat span,.ms-last-ten-context>div>span,.ms-last-ten-context em,.ms-club-identity dt,
  .ms-stadium-detail-item small,.ms-team-last-ten small,.ms-probability small
){color:var(--ms-pitch-copy-muted)!important}

/* TABLAS: incluso si el modo oscuro base intenta usar #151d28, aquí siempre gana el verde. */
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table){
  background:var(--ms-pitch-card-deep)!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) thead th{
  background:#075b38!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr,
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:nth-child(odd),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:nth-child(odd){
  background:var(--ms-pitch-card)!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:nth-child(even),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:nth-child(even){
  background:var(--ms-pitch-card-alt)!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:hover,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(.ms-data-table,.ms-standing-table) tbody tr:hover{
  background:#117847!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) :is(td,th,a,strong,b,span){
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-data-table,.ms-standing-table) td{
  border-color:var(--ms-pitch-chalk-soft)!important;
}

/* TABS: estado normal y activo siempre legibles. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-profile-nav button,.ms-profile-nav a,.ms-phase-tabs button,.ms-ca-tabs button,.ms-ca-tabs a,
  .ms-lib-tabs button,.ms-lib-tabs a,.ms-cup-secondary-tabs button,.ms-cup-secondary-tabs a,
  .ms-competition-season-tabs button,.ms-match-tabs button
){
  background:rgba(4,66,40,.40)!important;
  border:1px solid var(--ms-pitch-chalk-soft)!important;
  color:#f7fff9!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-profile-nav button[aria-selected="true"],.ms-profile-nav a[aria-current="page"],
  .ms-profile-nav .is-active,.ms-phase-tabs button.is-active,.ms-ca-tabs .is-active,
  .ms-lib-tabs .is-active,.ms-cup-secondary-tabs .is-active,
  .ms-competition-season-tabs button.is-active,.ms-match-tabs button[aria-selected="true"]
){
  background:#f6fff8!important;
  border-color:#fff!important;
  color:#07512f!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-profile-nav button,.ms-profile-nav a,.ms-phase-tabs button,.ms-ca-tabs button,.ms-ca-tabs a,
  .ms-lib-tabs button,.ms-lib-tabs a,.ms-cup-secondary-tabs button,.ms-cup-secondary-tabs a
):hover{
  background:rgba(255,255,255,.13)!important;
  border-color:var(--ms-pitch-chalk)!important;
  color:#fff!important;
}

/* CALENDARIO del hero: no deja entrar el fondo blanco del componente base. */
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar{
  background:linear-gradient(180deg,var(--ms-pitch-card-alt),var(--ms-pitch-card-deep))!important;
  border:1px solid var(--ms-pitch-chalk)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar,
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar-grid{
  background:transparent!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar>header{
  background:transparent!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar-grid .no-matches{
  background:rgba(5,73,44,.76)!important;
  color:var(--ms-pitch-copy-muted)!important;
}

/* Borde de cal: una línea exterior limpia + una segunda pasada casi imperceptible. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-panel,.ms-profile-nav,.ms-standing-card,.ms-table-wrap,.ms-calendar,.ms-match-group,
  .ms-team-card,.ms-media-card,.ms-filter-bar,.ms-home-day-nav,.ms-competition-block,
  .ms-team-hero-calendar,.ms-last-ten-context>div,.ms-stadium-detail-item
){
  border-color:var(--ms-pitch-chalk)!important;
  box-shadow:inset 0 0 0 .7px rgba(255,255,255,.10)!important;
}

/* ========================================================================== 
   5.17.48 — Títulos en perfiles + contraste definitivo del preset Canchero
   ========================================================================== */

/* Resumen de títulos dentro del hero de cada club. */
.ms-team-title-summary{
  align-items:stretch;
  background:color-mix(in srgb,var(--ms-hero-ink,#fff),transparent 91%);
  border:1px solid var(--ms-hero-border,rgba(255,255,255,.38));
  border-radius:11px;
  color:var(--ms-hero-ink,#fff);
  display:grid;
  gap:0;
  grid-template-columns:auto auto;
  margin-top:12px;
  max-width:260px;
  overflow:hidden;
  width:max-content;
}
.ms-team-title-total{align-items:center;display:flex;gap:6px;padding:7px 10px}
.ms-team-title-total small{font-size:.6rem;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.ms-team-title-total strong{font-size:1.08rem;line-height:1}
.ms-team-title-split{border-left:1px solid var(--ms-hero-border,rgba(255,255,255,.38));display:grid;grid-template-columns:repeat(2,1fr)}
.ms-team-title-split>span{align-items:center;display:flex;flex-direction:column;justify-content:center;min-width:54px;padding:5px 8px}
.ms-team-title-split>span+span{border-left:1px solid var(--ms-hero-border,rgba(255,255,255,.28))}
.ms-team-title-split b{font-size:.78rem;line-height:1}
.ms-team-title-split small{font-size:.48rem;font-weight:900;letter-spacing:.05em;margin-top:2px}
.ms-team-title-summary>em{border-top:1px solid var(--ms-hero-border,rgba(255,255,255,.28));font-size:.53rem;font-style:normal;font-weight:800;grid-column:1/-1;padding:4px 9px;text-align:center}

/* Tab Títulos. */
.ms-team-titles{margin-top:22px!important}
.ms-team-titles-overview{align-items:center;background:var(--ms-card);border:1px solid var(--ms-line);border-radius:14px;display:grid;gap:10px;grid-template-columns:auto minmax(0,1fr) auto;margin-bottom:14px;padding:15px 18px}
.ms-team-titles-overview>strong{font-size:2rem;letter-spacing:-.05em;line-height:1}
.ms-team-titles-overview>span:not(.ms-team-title-rank){display:flex;gap:8px;flex-wrap:wrap}
.ms-team-titles-overview>span:not(.ms-team-title-rank)>b{background:var(--ms-soft,#f2f4f7);border:1px solid var(--ms-line);border-radius:999px;font-size:.72rem;padding:5px 9px}
.ms-team-title-rank{color:var(--ms-muted);font-size:.72rem;font-weight:750;text-align:right}
.ms-team-title-rank b{color:var(--ms-ink);font-size:.9rem}
.ms-team-titles-groups{display:grid;gap:12px}
.ms-team-titles-group{background:var(--ms-card);border:1px solid var(--ms-line);border-radius:14px;overflow:hidden}
.ms-team-titles-group>summary{align-items:center;cursor:pointer;display:grid;gap:10px;grid-template-columns:minmax(0,1fr) auto 20px;list-style:none;padding:13px 16px;user-select:none}
.ms-team-titles-group>summary::-webkit-details-marker{display:none}
.ms-team-titles-group>summary span{font-size:.92rem;font-weight:900}
.ms-team-titles-group>summary strong{align-items:center;background:var(--ms-soft,#f2f4f7);border:1px solid var(--ms-line);border-radius:999px;display:inline-flex;font-size:.72rem;justify-content:center;min-width:32px;padding:4px 8px}
.ms-team-titles-group>summary i{font-size:1rem;font-style:normal;text-align:center;transition:transform .18s ease}
.ms-team-titles-group[open]>summary i{transform:rotate(180deg)}
.ms-team-titles-list{border-top:1px solid var(--ms-line)}
.ms-team-title-row{align-items:center;border-bottom:1px solid var(--ms-line);display:grid;gap:10px;grid-template-columns:30px minmax(0,1fr) auto 14px;padding:10px 14px}
.ms-team-title-row:last-child{border-bottom:0}
.ms-team-title-icon{align-items:center;display:flex;justify-content:center}
.ms-team-title-icon svg{fill:none;height:24px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.45;width:24px}
.ms-team-title-copy{display:flex;flex-direction:column;min-width:0}
.ms-team-title-copy b{font-size:.82rem}
.ms-team-title-copy b a,.ms-team-title-copy b span{color:inherit!important;text-decoration:none!important}
.ms-team-title-copy small{color:var(--ms-muted);font-size:.62rem;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-team-title-count{font-size:.9rem;min-width:24px;text-align:right}
.ms-team-title-arrow{color:var(--ms-muted);font-size:1.05rem;font-style:normal;text-align:right}
.ms-team-title-row:has(.ms-team-title-copy a){cursor:pointer}
.ms-team-title-row:has(.ms-team-title-copy a):hover{background:var(--ms-soft,#f8fafc)}

/* CANCHERO — páginas de catálogo que todavía heredaban tarjetas blancas. */
html[data-tessirve-theme="canchero"] .ms-app.ms-competition-catalog :is(.ms-competition-catalog-section,.ms-competition-catalog-card),
html[data-tessirve-theme="canchero"] .ms-app.ms-team-directory :is(.ms-team-country,.ms-team-country-body,.ms-argentina-category-tabs,.ms-argentina-category-panel),
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-history-grid>[data-ms-rival-card],
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-history-grid>a{
  background:linear-gradient(180deg,var(--ms-pitch-card-alt),var(--ms-pitch-card))!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:var(--ms-pitch-copy)!important;
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.07)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app.ms-competition-catalog :is(.ms-competition-catalog-section,.ms-competition-catalog-card),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app.ms-team-directory :is(.ms-team-country,.ms-team-country-body,.ms-argentina-category-tabs,.ms-argentina-category-panel),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>[data-ms-rival-card],
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>a{
  background:linear-gradient(180deg,var(--ms-pitch-card-alt),var(--ms-pitch-card-deep))!important;
}
html[data-tessirve-theme="canchero"] .ms-app.ms-competition-catalog :is(.ms-competition-catalog-section,.ms-competition-catalog-card) :is(h1,h2,h3,strong,b,span,a),
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-history-grid>a :is(strong,b,span){color:var(--ms-pitch-copy)!important}
html[data-tessirve-theme="canchero"] .ms-app.ms-competition-catalog :is(.ms-competition-catalog-section,.ms-competition-catalog-card) :is(p,small),
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-history-grid>a :is(small){color:var(--ms-pitch-copy-muted)!important}
html[data-tessirve-theme="canchero"] .ms-app.ms-competition-catalog .ms-competition-catalog-card em{color:#bff7d2!important}
html[data-tessirve-theme="canchero"] .ms-app.ms-competition-catalog .ms-competition-catalog-section>header{border-color:var(--ms-pitch-chalk-soft)!important}

/* CANCHERO — chips de estado legibles en claro y oscuro. */
html[data-tessirve-theme="canchero"] .ms-match-status-chip{box-shadow:none!important;font-weight:950!important}
html[data-tessirve-theme="canchero"] .ms-match-status-chip.is-scheduled{background:#ecfff3!important;border-color:#8ee2ac!important;color:#075a34!important}
html[data-tessirve-theme="canchero"] .ms-match-status-chip.is-live{background:#d9ffe7!important;border-color:#45d47a!important;color:#064d2e!important}
html[data-tessirve-theme="canchero"] .ms-match-status-chip.is-final{background:#f3fff7!important;border-color:#b8d9c4!important;color:#184c32!important}
html[data-tessirve-theme="canchero"] .ms-match-status-chip.is-penalties{background:#fff6d9!important;border-color:#e5c264!important;color:#654900!important}
html[data-tessirve-theme="canchero"] .ms-match-status-chip.is-postponed{background:#ffe8e8!important;border-color:#e28d8d!important;color:#8c2222!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-match-status-chip.is-scheduled{background:#dff9e9!important;border-color:#69c58e!important;color:#07482d!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-match-status-chip.is-live{background:#bff5d2!important;border-color:#39bf70!important;color:#043f27!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-match-status-chip.is-final{background:#e0eee5!important;border-color:#8fb7a0!important;color:#123e29!important}

/* CANCHERO — la nueva tab Títulos también respeta el césped. */
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-team-titles-overview,.ms-team-titles-group){
  background:linear-gradient(180deg,var(--ms-pitch-card-alt),var(--ms-pitch-card))!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(.ms-team-titles-overview,.ms-team-titles-group){background:linear-gradient(180deg,var(--ms-pitch-card-alt),var(--ms-pitch-card-deep))!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-titles :is(a,b,strong,span,summary,i){color:var(--ms-pitch-copy)!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-titles :is(small,.ms-team-title-rank,.ms-team-title-arrow){color:var(--ms-pitch-copy-muted)!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-titles :is(.ms-team-titles-list,.ms-team-title-row){border-color:var(--ms-pitch-chalk-soft)!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-titles :is(.ms-team-titles-group>summary strong,.ms-team-titles-overview>span:not(.ms-team-title-rank)>b){background:rgba(255,255,255,.10)!important;border-color:var(--ms-pitch-chalk-soft)!important;color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-title-row:hover{background:rgba(255,255,255,.07)!important}

@media(max-width:900px){
  .ms-team-title-summary{max-width:230px}
  .ms-team-titles-overview{grid-template-columns:auto 1fr}
  .ms-team-title-rank{grid-column:1/-1;text-align:left}
}
@media(max-width:680px){
  .ms-team-title-summary{margin-top:8px;max-width:100%;width:100%}
  .ms-team-title-total{padding:6px 8px}
  .ms-team-title-split>span{min-width:46px;padding:4px 6px}
  .ms-team-titles-overview{padding:12px 13px}
  .ms-team-titles-overview>strong{font-size:1.65rem}
  .ms-team-titles-group>summary{padding:11px 12px}
  .ms-team-title-row{grid-template-columns:27px minmax(0,1fr) auto 12px;padding:9px 11px}
}

/* ========================================================================== 
   5.17.49 — Títulos navegables + Canchero: calendario/contraste final
   ========================================================================== */

/* El resumen de títulos queda debajo del escudo en escritorio, como parte del
   hero pero sin empujar nombre, datos ni calendario. */
@media(min-width:901px){
  .ms-team-profile .ms-team-hero{position:relative!important}
  .ms-team-profile .ms-team-title-summary{
    bottom:14px!important;
    left:14px!important;
    margin:0!important;
    position:absolute!important;
    z-index:4!important;
  }
}
@media(max-width:900px){
  .ms-team-profile .ms-team-title-summary{position:static!important}
}

/* Ranking del país: banderita + puesto, sin repetir el nombre del país. */
.ms-team-title-country-rank,
.ms-team-title-rank{
  align-items:center!important;
  display:flex!important;
  gap:5px!important;
  justify-content:center!important;
}
.ms-team-title-country-rank{font-size:.62rem!important}
.ms-team-title-rank{font-size:.80rem!important;white-space:nowrap!important}
.ms-team-title-country-rank>b,.ms-team-title-rank>b{font-size:1em!important}
.ms-team-title-rank-flag{align-items:center;display:inline-flex!important;flex:0 0 auto!important;justify-content:center!important}
.ms-team-title-rank-flag svg,.ms-team-title-country-rank svg{
  height:12px!important;
  max-width:19px!important;
  width:19px!important;
}

/* Los años de cada copa/liga usan los mismos chips navegables del ranking
   histórico de Champions. */
.ms-team-title-years{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  margin-top:5px!important;
  padding:0!important;
}
.ms-team-title-year{font-size:.53rem!important;min-height:18px!important;padding:2px 6px!important}
.ms-team-title-year.is-static{cursor:default!important;opacity:.82!important}

/* CANCHERO — calendario del hero sin “placa” que tape apodos/identidad. */
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar{
  background:transparent!important;
  backdrop-filter:none!important;
  border:1px solid rgba(255,255,255,.46)!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar,
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar>header,
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar-grid{
  background:transparent!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar-grid :is(.no-matches,.has-matches){
  background:rgba(4,70,41,.22)!important;
  border:1px solid rgba(255,255,255,.34)!important;
  border-radius:7px!important;
  box-shadow:inset 0 0 0 .6px rgba(255,255,255,.16)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar-grid .no-matches>b{
  color:#fff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.32)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar-grid .has-matches{
  border-color:rgba(255,255,255,.54)!important;
}

/* CANCHERO — años de títulos sobre verde, visibles pero discretos. */
html[data-tessirve-theme="canchero"] .ms-app .ms-team-title-year{
  background:rgba(255,255,255,.12)!important;
  border-color:rgba(255,255,255,.38)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-team-title-year:hover,
html[data-tessirve-theme="canchero"] .ms-app .ms-team-title-year:focus-visible{
  background:rgba(255,255,255,.21)!important;
  border-color:rgba(255,255,255,.62)!important;
  box-shadow:none!important;
  color:#fff!important;
}

/* CANCHERO — cualquier renderer compacto (agenda, últimos partidos, historial)
   usa césped; nunca tarjeta blanca con copy blanco. */
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match{
  background:linear-gradient(180deg,var(--ms-pitch-card-alt),var(--ms-pitch-card-deep))!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match:hover{
  background:linear-gradient(180deg,#117a49,#0a5f3b)!important;
  box-shadow:inset 3px 0 rgba(255,255,255,.72)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match :is(
  .ms-compact-team-name,.ms-compact-match-meta time,.ms-compact-score-pill b,
  .ms-compact-score-pill>span,.ms-compact-substatus
){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match :is(.ms-compact-venue,.ms-compact-events,small:not(.ms-match-status-chip)){
  color:#d7f0df!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-compact-match-meta>span{
  background:rgba(255,255,255,.11)!important;
  border:1px solid rgba(255,255,255,.30)!important;
  color:#fff!important;
}
/* Los estados ganan incluso a reglas antiguas más específicas. */
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-scheduled{background:#ecfff3!important;border-color:#8ee2ac!important;color:#075a34!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-live{background:#d9ffe7!important;border-color:#45d47a!important;color:#064d2e!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-final{background:#effaf3!important;border-color:#a6d5b7!important;color:#16482f!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-penalties{background:#fff4cf!important;border-color:#e1bd55!important;color:#5b4200!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-postponed{background:#ffe5e5!important;border-color:#df8585!important;color:#842020!important}

/* CANCHERO — Historial: se conserva identidad de equipos vía escudos, pero el
   fondo del modo ya no se mezcla con dos placas pastel que destruyen contraste. */
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page),
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-content:has(.ms-h2h-page),
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-entry-content:has(.ms-h2h-page){
  background:transparent!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::before,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::after,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-page::before{
  display:none!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-page :is(.ms-h2h-heading h1,.ms-h2h-context-filter>span,.ms-h2h-team-preview>strong){
  color:#fff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.24)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-help{
  background:rgba(246,255,248,.94)!important;
  border-left-color:#21a763!important;
  color:#07512f!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-button,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-context-control{
  background:#f5fff7!important;
  border-color:rgba(255,255,255,.82)!important;
  box-shadow:0 5px 16px rgba(1,41,23,.12)!important;
  color:#06472b!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-button :is(b,i,span){color:#06472b!important}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-context-control select{background:#f5fff7!important;color:#06472b!important}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-vs{
  background:#f5fff7!important;
  border-color:#fff!important;
  color:#07512f!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-compare{
  background:#16a45e!important;
  border:1px solid rgba(255,255,255,.55)!important;
  color:#fff!important;
}

@media(max-width:680px){
  .ms-team-title-country-rank{font-size:.59rem!important}
  .ms-team-title-rank{font-size:.74rem!important;justify-content:flex-start!important}
  .ms-team-title-years{gap:3px!important}
}

/* ========================================================================== 
   5.17.50 — HERO DE EQUIPO: TÍTULOS FINOS + CALENDARIO REENCUADRADO
   ========================================================================== */

/* Resumen de títulos: compacto, pegado al borde inferior y sin invadir el escudo. */
.ms-team-profile .ms-team-title-summary{
  background:color-mix(in srgb,var(--ms-hero-ink,#fff),transparent 93%)!important;
  border-color:var(--ms-hero-border,rgba(255,255,255,.40))!important;
  border-radius:9px!important;
  box-shadow:none!important;
  grid-template-columns:auto repeat(2,minmax(38px,1fr))!important;
  max-width:none!important;
  overflow:hidden!important;
  width:154px!important;
}
.ms-team-profile .ms-team-title-total{
  gap:3px!important;
  justify-content:center!important;
  padding:4px 6px!important;
}
.ms-team-profile .ms-team-title-total small{font-size:.48rem!important;letter-spacing:.035em!important}
.ms-team-profile .ms-team-title-total strong{font-size:.92rem!important}
.ms-team-profile .ms-team-title-split{display:contents!important}
.ms-team-profile .ms-team-title-split>span{
  border-left:1px solid var(--ms-hero-border,rgba(255,255,255,.28))!important;
  min-width:0!important;
  padding:4px 5px!important;
}
.ms-team-profile .ms-team-title-split>span+span{border-left:1px solid var(--ms-hero-border,rgba(255,255,255,.28))!important}
.ms-team-profile .ms-team-title-split b{font-size:.68rem!important}
.ms-team-profile .ms-team-title-split small{font-size:.42rem!important;margin-top:1px!important}
.ms-team-profile .ms-team-title-summary>em{
  align-items:center!important;
  border-top:1px solid var(--ms-hero-border,rgba(255,255,255,.28))!important;
  display:flex!important;
  font-size:.54rem!important;
  gap:5px!important;
  grid-column:1/-1!important;
  justify-content:center!important;
  min-height:18px!important;
  padding:2px 6px!important;
  white-space:nowrap!important;
}
.ms-team-profile .ms-team-title-country-rank>b{font-size:.58rem!important;line-height:1!important}
.ms-team-profile .ms-team-title-rank-flag svg,
.ms-team-profile .ms-team-title-country-rank svg{
  height:10px!important;
  max-width:16px!important;
  width:16px!important;
}

@media(min-width:901px){
  .ms-team-profile .ms-team-title-summary{
    bottom:7px!important;
    left:7px!important;
    margin:0!important;
    position:absolute!important;
    z-index:4!important;
  }
}

/* Móvil/tablet: franja fina y centrada; nunca ocupa todo el ancho ni queda corrida. */
@media(max-width:900px){
  .ms-team-profile .ms-team-title-summary{
    align-self:center!important;
    justify-self:center!important;
    margin:0 auto!important;
    position:static!important;
    width:178px!important;
  }
}
@media(max-width:520px){
  .ms-team-profile .ms-team-title-summary{width:168px!important}
  .ms-team-profile .ms-team-title-total{padding:3px 5px!important}
  .ms-team-profile .ms-team-title-split>span{padding:3px 4px!important}
}

/* Calendario del hero: caja estable y siete columnas reales en todos los themes/switches. */
.ms-team-profile .ms-team-hero-calendar{
  align-self:center!important;
  box-sizing:border-box!important;
  max-width:300px!important;
  min-width:278px!important;
  padding:7px!important;
  width:100%!important;
}
.ms-team-profile .ms-team-hero-calendar .ms-calendar{max-width:none!important;width:100%!important}
.ms-team-profile .ms-team-hero-calendar .ms-calendar>header{
  align-items:center!important;
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) 28px!important;
  margin:0 0 5px!important;
  min-height:28px!important;
}
.ms-team-profile .ms-team-hero-calendar .ms-calendar>header strong{
  font-size:.67rem!important;
  justify-self:center!important;
  line-height:1.1!important;
  text-align:center!important;
}
/* Flechas: transparentes de verdad; sólo el glyph queda visible. */
.ms-team-profile .ms-team-hero-calendar .ms-calendar>header a,
.ms-team-profile .ms-team-hero-calendar .ms-calendar>header a:hover,
.ms-team-profile .ms-team-hero-calendar .ms-calendar>header a:active{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:var(--ms-hero-ink,#fff)!important;
  height:28px!important;
  min-width:28px!important;
  padding:0!important;
  width:28px!important;
}
.ms-team-profile .ms-team-hero-calendar .ms-calendar>header a:first-child{justify-self:start!important}
.ms-team-profile .ms-team-hero-calendar .ms-calendar>header a:last-child{justify-self:end!important}
.ms-team-profile .ms-team-hero-calendar .ms-calendar>header a span{
  display:block!important;
  font-size:1.15rem!important;
  font-weight:800!important;
  line-height:1!important;
}
.ms-team-profile .ms-team-hero-calendar .ms-calendar-grid{
  display:grid!important;
  gap:2px!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  width:100%!important;
}
.ms-team-profile .ms-team-hero-calendar .ms-calendar-grid>*{min-width:0!important;width:100%!important}
.ms-team-profile .ms-team-hero-calendar .ms-calendar-label{
  align-items:center!important;
  display:flex!important;
  font-size:.48rem!important;
  justify-content:center!important;
  min-height:12px!important;
  padding:0!important;
}
.ms-team-profile .ms-team-hero-calendar .ms-calendar-grid .no-matches,
.ms-team-profile .ms-team-hero-calendar .ms-calendar-grid .has-matches{
  height:25px!important;
  min-height:25px!important;
  overflow:visible!important;
}
.ms-team-profile .ms-team-hero-calendar .ms-calendar-events{
  gap:0!important;
  min-height:0!important;
  overflow:visible!important;
  width:100%!important;
}
/* Dos partidos deben caber dentro de un día sin desbordar el marco. */
.ms-team-profile .ms-team-hero-calendar .ms-calendar-event{
  height:19px!important;
  min-width:19px!important;
  width:19px!important;
}
.ms-team-profile .ms-team-hero-calendar .ms-calendar-event>.ms-crest,
.ms-team-profile .ms-team-hero-calendar .ms-calendar-event>.ms-crest-fallback{
  height:17px!important;
  max-width:17px!important;
  width:17px!important;
}
.ms-team-profile .ms-team-hero-calendar .ms-calendar-competition{
  bottom:-1px!important;
  height:9px!important;
  right:-1px!important;
  width:9px!important;
}
.ms-team-profile .ms-team-hero-calendar .ms-calendar-competition .ms-crest,
.ms-team-profile .ms-team-hero-calendar .ms-calendar-competition .ms-crest-fallback{
  height:7px!important;
  max-width:7px!important;
  width:7px!important;
}

@media(max-width:900px){
  .ms-team-profile .ms-team-hero-calendar{max-width:292px!important;min-width:270px!important}
}
@media(max-width:520px){
  .ms-team-profile .ms-team-hero-calendar{max-width:284px!important;min-width:0!important;padding:6px!important}
  .ms-team-profile .ms-team-hero-calendar .ms-calendar-grid .no-matches,
  .ms-team-profile .ms-team-hero-calendar .ms-calendar-grid .has-matches{height:24px!important;min-height:24px!important}
  .ms-team-profile .ms-team-hero-calendar .ms-calendar-event{height:18px!important;min-width:18px!important;width:18px!important}
  .ms-team-profile .ms-team-hero-calendar .ms-calendar-event>.ms-crest,
  .ms-team-profile .ms-team-hero-calendar .ms-calendar-event>.ms-crest-fallback{height:16px!important;max-width:16px!important;width:16px!important}
}

/* Canchero conserva la caja verde limpia; las flechas no vuelven a tomar fondo. */
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar>header a,
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar>header a:hover,
html[data-tessirve-theme="canchero"] .ms-app .ms-team-hero-calendar .ms-calendar>header a:active{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
}

/* Integración fina del resumen con el borde inferior izquierdo del hero en desktop. */
@media(min-width:901px){
  .ms-team-profile .ms-team-title-summary{
    bottom:0!important;
    left:0!important;
    width:140px!important;
    border-left:0!important;
    border-bottom:0!important;
    border-radius:0 10px 0 22px!important;
  }
}

/* ========================================================================== 
   5.17.51 — CANCHERO: CIERRE GLOBAL DE CONTRASTE / CERO PLACAS BLANCAS
   ========================================================================== */

/* La identidad Canchero es una cancha completa: incluso el modo claro conserva
   superficies verdes. El modo oscuro sólo profundiza el césped; nunca vira a
   blanco, gris puro, azul-negro ni negro. */
html[data-tessirve-theme="canchero"]{
  --ms-pitch-page:#0b7a47!important;
  --ms-pitch-surface:#08663b!important;
  --ms-pitch-surface-2:#0a7040!important;
  --ms-pitch-surface-3:#0c7b48!important;
  --ms-pitch-deep:#064f31!important;
  --ms-pitch-deeper:#043e28!important;
  --ms-pitch-soft:#bfe8ce!important;
  --ms-pitch-soft-2:#a8ddb9!important;
  --ms-pitch-copy:#f8fff9!important;
  --ms-pitch-copy-muted:#d2ecd9!important;
  --ms-pitch-chalk:rgba(250,255,251,.78)!important;
  --ms-pitch-chalk-soft:rgba(250,255,251,.34)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]{
  --ms-pitch-page:#064f33!important;
  --ms-pitch-surface:#07482f!important;
  --ms-pitch-surface-2:#08563a!important;
  --ms-pitch-surface-3:#0a6240!important;
  --ms-pitch-deep:#043b29!important;
  --ms-pitch-deeper:#032f22!important;
  --ms-pitch-soft:#91caa6!important;
  --ms-pitch-soft-2:#7dbb94!important;
  --ms-pitch-copy:#f7fff9!important;
  --ms-pitch-copy-muted:#c8e2d1!important;
}

/* Superficies estructurales generales. No se toca el hero de club ni imágenes:
   sólo cajas/paneles que en el tema base podían quedar blancas o negras. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-panel,.ms-competition-block,.ms-standing-card,.ms-table-wrap,.ms-team-card,
  .ms-media-card,.ms-honors-list,.ms-result-card,.ms-round-carousel,.ms-round-panel,
  .ms-round-matches,.ms-filter-bar,.ms-empty,.ms-competition-stat-card,
  .ms-season-rulebook,.ms-team-country,.ms-team-country-body,.ms-argentina-category-tabs,
  .ms-argentina-category-panel,.ms-competition-catalog-section,.ms-competition-catalog-card
){
  background:linear-gradient(180deg,var(--ms-pitch-surface-2),var(--ms-pitch-surface))!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:var(--ms-pitch-copy)!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(
  .ms-panel,.ms-competition-block,.ms-standing-card,.ms-table-wrap,.ms-team-card,
  .ms-media-card,.ms-honors-list,.ms-result-card,.ms-round-carousel,.ms-round-panel,
  .ms-round-matches,.ms-filter-bar,.ms-empty,.ms-competition-stat-card,
  .ms-season-rulebook,.ms-team-country,.ms-team-country-body,.ms-argentina-category-tabs,
  .ms-argentina-category-panel,.ms-competition-catalog-section,.ms-competition-catalog-card
){
  background:linear-gradient(180deg,var(--ms-pitch-surface),var(--ms-pitch-deep))!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-panel,.ms-competition-block,.ms-standing-card,.ms-table-wrap,.ms-team-card,
  .ms-media-card,.ms-honors-list,.ms-result-card,.ms-round-carousel,.ms-round-panel,
  .ms-round-matches,.ms-filter-bar,.ms-empty,.ms-competition-stat-card,
  .ms-season-rulebook,.ms-team-country,.ms-team-country-body,.ms-argentina-category-panel
) :is(h1,h2,h3,h4,strong,b,a,span,label,legend){color:var(--ms-pitch-copy)!important}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-panel,.ms-competition-block,.ms-standing-card,.ms-table-wrap,.ms-team-card,
  .ms-media-card,.ms-honors-list,.ms-result-card,.ms-round-carousel,.ms-round-panel,
  .ms-round-matches,.ms-filter-bar,.ms-empty,.ms-competition-stat-card,
  .ms-season-rulebook,.ms-team-country,.ms-team-country-body,.ms-argentina-category-panel
) :is(p,small,em){color:var(--ms-pitch-copy-muted)!important}

/* PLAYOFFS UNIVERSALES: el cuadro entero, columnas, centro y tarjetas viven en
   césped. Con esto ninguna competencia/temporada puede reintroducir el lienzo
   blanco del renderer base. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-ca-playoffs-like-league,.ms-knockout-phase,.ms-ca-knockout-phase,
  .ms-knockout-mirror,.ms-ca-knockout-mirror,.ms-shared-cup-knockout,
  .ms-bracket-side,.ms-bracket-round,.ms-bracket-final-center,
  .ms-knockout-mobile-fotmob,.ms-ca-mobile-fotmob,.ms-fm-round,.ms-fm-final-zone
){
  background:linear-gradient(180deg,var(--ms-pitch-surface),var(--ms-pitch-deep))!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:var(--ms-pitch-copy)!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-mirror{
  background-image:
    linear-gradient(rgba(255,255,255,.025),rgba(255,255,255,.025)),
    repeating-linear-gradient(90deg,transparent 0,transparent 70px,rgba(255,255,255,.018) 70px,rgba(255,255,255,.018) 140px)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-bracket-final-center{
  background:linear-gradient(180deg,var(--ms-pitch-surface-2),var(--ms-pitch-deeper))!important;
  border-left-color:var(--ms-pitch-chalk-soft)!important;
  border-right-color:var(--ms-pitch-chalk-soft)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-match,
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-mirror .ms-knockout-match,
html[data-tessirve-theme="canchero"] .ms-app .ms-mobile-bracket-branch .ms-knockout-match,
html[data-tessirve-theme="canchero"] .ms-app .ms-mobile-bracket-center .ms-knockout-match{
  background:linear-gradient(180deg,var(--ms-pitch-surface-3),var(--ms-pitch-surface))!important;
  border:1px solid var(--ms-pitch-chalk)!important;
  color:var(--ms-pitch-copy)!important;
  box-shadow:0 5px 14px rgba(2,48,29,.12)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-match :is(
  .ms-knockout-team,.ms-knockout-team b,.ms-knockout-team strong,.ms-knockout-team-code,
  .ms-knockout-series-summary b,.ms-knockout-series-summary small,.ms-knockout-match-detail
){color:var(--ms-pitch-copy)!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-series-summary{
  background:var(--ms-pitch-deep)!important;
  border-top:1px solid var(--ms-pitch-chalk-soft)!important;
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-team.is-winner{
  background:rgba(127,226,161,.13)!important;
  border-color:rgba(255,255,255,.62)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-team.is-eliminated{
  background:rgba(2,44,27,.26)!important;
  color:#bfd6c7!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-bracket-round>h3,.ms-knockout-phase>header h2,.ms-bracket-final-card>h3,.ms-bracket-champion,.ms-bracket-champion strong){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-ca-neutral-mark{color:rgba(255,255,255,.78)!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-bracket-side.is-left .ms-bracket-round:not(:last-child):after,
html[data-tessirve-theme="canchero"] .ms-app .ms-bracket-side.is-right .ms-bracket-round:not(:first-child):before{border-color:var(--ms-pitch-chalk-soft)!important}

/* TABLAS: se eliminan para siempre las filas blancas. La alternancia se logra
   con dos tonos de césped y conserva los colores laterales de clasificación. */
html[data-tessirve-theme="canchero"] .ms-app .ms-standing-card,
html[data-tessirve-theme="canchero"] .ms-app .ms-standing-compact,
html[data-tessirve-theme="canchero"] .ms-app .ms-table-wrap,
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table{
  background:var(--ms-pitch-deep)!important;
  border-color:var(--ms-pitch-chalk)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table thead,
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table thead tr,
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table thead th{
  background:#075c37!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table tbody tr,
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table tbody tr:nth-child(odd){background:var(--ms-pitch-surface)!important}
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table tbody tr:nth-child(even){background:var(--ms-pitch-surface-2)!important}
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table tbody tr:hover{background:var(--ms-pitch-surface-3)!important}
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table :is(td,th,a,b,strong,span){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table td{border-color:var(--ms-pitch-chalk-soft)!important}

/* ESTADÍSTICAS: las cabeceras blancas de cada ranking y los vacíos se vuelven
   césped. Los badges de valores siguen diferenciándose sin usar blanco puro. */
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-stat-cards{background:transparent!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-stat-card{
  background:linear-gradient(180deg,var(--ms-pitch-surface-2),var(--ms-pitch-surface))!important;
  border:1px solid var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-stat-card>header{
  background:var(--ms-pitch-deep)!important;
  border-bottom:1px solid var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-stat-card>header :is(h3,small){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-stat-card-list,
html[data-tessirve-theme="canchero"] .ms-app .ms-stat-card-list li{
  background:transparent!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-stat-card-list :is(a,b,span,small){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-stat-card-list strong{
  background:#0b8750!important;
  border:1px solid rgba(255,255,255,.32)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-stat-card-list li.is-leader strong{
  background:#12a861!important;
  border-color:rgba(255,255,255,.62)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-stat-card-empty{
  background:var(--ms-pitch-surface)!important;
  color:var(--ms-pitch-copy-muted)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-stat-summary>span{
  background:var(--ms-pitch-deep)!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-stat-summary>span :is(strong,small){color:#fff!important}

/* Reglamentos/avisos inferiores de competencias: no vuelven a ser tiras blancas. */
html[data-tessirve-theme="canchero"] .ms-app .ms-season-rulebook{background:transparent!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-season-rule{
  background:linear-gradient(90deg,var(--ms-pitch-deep),var(--ms-pitch-surface))!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-season-rule :is(span,p,strong,b){color:#fff!important}

/* HISTORIAL: filtros, pickers, ayuda, VS y estados vacíos también son verdes. */
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-page :is(
  .ms-h2h-help,.ms-h2h-team-picker-button,.ms-h2h-context-control,.ms-h2h-context-control select,
  .ms-h2h-vs,.ms-h2h-form,.ms-h2h-team-preview,.ms-h2h-empty,.ms-h2h-placeholder
){
  background:linear-gradient(180deg,var(--ms-pitch-surface-2),var(--ms-pitch-surface))!important;
  border-color:var(--ms-pitch-chalk)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-page :is(
  .ms-h2h-help,.ms-h2h-team-picker-button,.ms-h2h-context-control,.ms-h2h-context-control select,
  .ms-h2h-vs,.ms-h2h-form,.ms-h2h-team-preview,.ms-h2h-empty,.ms-h2h-placeholder
) :is(b,strong,span,i,small,label){color:#fff!important}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-context-control option{background:var(--ms-pitch-deep)!important;color:#fff!important}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-compare{
  background:#11a760!important;
  border:1px solid rgba(255,255,255,.64)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-compare:disabled{
  background:#0b7044!important;
  color:#b9d9c5!important;
  opacity:1!important;
}

/* Controles comunes de competencia: incluso el activo es verde, no blanco. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-profile-nav button,.ms-profile-nav a,.ms-phase-tabs button,.ms-ca-tabs button,.ms-ca-tabs a,
  .ms-lib-tabs button,.ms-lib-tabs a,.ms-cup-secondary-tabs button,.ms-cup-secondary-tabs a,
  .ms-competition-season-tabs button,.ms-match-tabs button
){
  background:var(--ms-pitch-deep)!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-profile-nav button[aria-selected="true"],.ms-profile-nav a[aria-current="page"],
  .ms-profile-nav .is-active,.ms-phase-tabs button.is-active,.ms-ca-tabs .is-active,
  .ms-lib-tabs .is-active,.ms-cup-secondary-tabs .is-active,
  .ms-competition-season-tabs button.is-active,.ms-match-tabs button[aria-selected="true"]
){
  background:#24a867!important;
  border-color:rgba(255,255,255,.82)!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)!important;
}

/* Form controls/inputs que aparecen dentro de Canchero: verde legible, no caja blanca. */
html[data-tessirve-theme="canchero"] .ms-app :is(select,input[type="text"],input[type="search"],input[type="date"]){
  background:var(--ms-pitch-deep)!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(select,input)::placeholder{color:#c8e4d2!important;opacity:1!important}
html[data-tessirve-theme="canchero"] .ms-app select option{background:var(--ms-pitch-deep)!important;color:#fff!important}

/* Si aparece una caja base que no está en las listas anteriores, al menos sus
   fondos utilitarios más comunes quedan dentro de la paleta. */
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-card,.ms-surface,.ms-info-card,.ms-summary-card,.ms-rule-card){
  background:var(--ms-pitch-surface)!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}

/* ========================================================================== 
   5.17.53 — CANCHERO: PODIOS / DESCENSOS / CELDAS DE TABLA SIN HERENCIAS BLANCAS
   ========================================================================== */

/* Los headliners usan clases propias del Core y por eso no estaban entrando en
   el cierre genérico de 5.17.51. En Canchero todos viven dentro del césped. */
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article{
  background:linear-gradient(180deg,var(--ms-pitch-surface-2),var(--ms-pitch-surface))!important;
  border:1px solid var(--ms-pitch-chalk-soft)!important;
  color:var(--ms-pitch-copy)!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article :is(a,strong,b,span){
  color:var(--ms-pitch-copy)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article > small{
  color:var(--ms-pitch-copy-muted)!important;
}

/* Campeón: verde profundo + borde oro, sin placa amarilla/blanca. */
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article.is-champion{
  background:linear-gradient(145deg,#0a6b3f,var(--ms-pitch-deep))!important;
  border-color:#d9b83f!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article.is-champion > small{
  color:#ffe79a!important;
}

/* Subcampeón: mismo lenguaje de cancha con acento plata/cal. */
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article.is-runner-up{
  background:linear-gradient(145deg,var(--ms-pitch-surface-2),var(--ms-pitch-deep))!important;
  border-color:rgba(245,255,248,.68)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article.is-runner-up > small{
  color:#e2f2e8!important;
}

/* Descensos: el artículo exterior sigue liviano, pero las tarjetas internas no
   vuelven a #fff/#fffafa ni al negro del modo oscuro base. */
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article.is-relegated{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article.is-relegated > small{
  color:#ffd0cb!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article.is-relegated .ms-relegated-team,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app .ms-competition-headliners > article.is-relegated .ms-relegated-team{
  background:linear-gradient(135deg,var(--ms-pitch-surface-2),var(--ms-pitch-deep))!important;
  border:1px solid rgba(255,209,204,.52)!important;
  border-left:4px solid #ff746c!important;
  box-shadow:none!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article.is-relegated .ms-relegated-team :is(b,strong,a,span){
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article.is-relegated .ms-relegated-team small{
  color:#ffd0cb!important;
}

/* La alternancia de la tabla se pintaba en <tr>, pero el Core pinta también
   cada <td> (especialmente en oscuro). Se fuerza la celda a heredar la fila. */
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table tbody tr.ms-standing-main:nth-child(odd) > td{
  background:var(--ms-pitch-surface)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table tbody tr.ms-standing-main:nth-child(even) > td{
  background:var(--ms-pitch-surface-2)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table tbody tr.ms-standing-main:hover > td{
  background:var(--ms-pitch-surface-3)!important;
}
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table tbody tr.ms-standing-detail > td{
  background:var(--ms-pitch-deep)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app table.ms-standing-table tbody td :is(a,strong,b,span,small){
  color:inherit!important;
}

/* También cubre tablas genéricas que usan .ms-data-table sin la clase específica. */
html[data-tessirve-theme="canchero"] .ms-app .ms-data-table tbody tr:nth-child(odd) > td{
  background:var(--ms-pitch-surface)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-data-table tbody tr:nth-child(even) > td{
  background:var(--ms-pitch-surface-2)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-data-table tbody tr:hover > td{
  background:var(--ms-pitch-surface-3)!important;
}

/* Headliners secundarios que pueden aparecer en otras ligas/copas. */
html[data-tessirve-theme="canchero"] .ms-app .ms-competition-headliners > article:is(.is-scorer,.is-assist,.is-never-champion,.is-pending){
  background:linear-gradient(180deg,var(--ms-pitch-surface-2),var(--ms-pitch-deep))!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
}

/* ========================================================================== 
   5.17.53 — CANCHERO: UEFA / H2H / RESUMEN TÍTULOS SIN HERENCIAS BLANCAS
   ========================================================================== */

/* UEFA Fase Liga y Fase Previa: ningún wrapper de copa vuelve a blanco. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-cup-overview-groups,.ms-champions-league-table,.ms-cup-preliminary-rounds,
  .ms-cup-overview-stage,.ms-tab-panel>.ms-cup-overview-groups,
  .ms-tab-panel>.ms-cup-preliminary-rounds
){
  background:linear-gradient(180deg,var(--ms-pitch-surface-2),var(--ms-pitch-surface))!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-cup-overview-groups,.ms-champions-league-table,.ms-cup-preliminary-rounds,.ms-cup-overview-stage
) :is(h2,h3,strong,b,span,small,p){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-cup-overview-groups,.ms-champions-league-table) .ms-section-heading{
  background:transparent!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
}

/* El Camino del campeón era otra franja blanca aislada en copas históricas. */
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-champion-path{
  background:linear-gradient(90deg,var(--ms-pitch-deep),var(--ms-pitch-surface-2))!important;
  border:1px solid var(--ms-pitch-chalk-soft)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-champion-path :is(a,span,strong,b,small){
  background:transparent!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-champion-path a{
  border-color:var(--ms-pitch-chalk-soft)!important;
}

/* Resumen de títulos: misma caja, pero respirando dentro del hero. */
@media(min-width:901px){
  .ms-team-profile .ms-team-title-summary{
    bottom:10px!important;
    left:10px!important;
    border:1px solid var(--ms-hero-border,rgba(255,255,255,.40))!important;
    border-radius:10px!important;
    width:140px!important;
  }
}

/* Historiales en perfiles: favorable = verde suave, desfavorable = rojo suave,
   empate = césped neutro. Se conserva la identidad del theme sin perder el dato. */
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-history-grid>[data-ms-rival-card].is-leading{
  background:linear-gradient(145deg,rgba(36,168,103,.26),rgba(4,74,44,.88))!important;
  border-color:rgba(132,235,167,.68)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-history-grid>[data-ms-rival-card].is-trailing{
  background:linear-gradient(145deg,rgba(190,62,62,.24),rgba(65,55,37,.46),rgba(4,74,44,.86))!important;
  border-color:rgba(255,145,145,.62)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-history-grid>[data-ms-rival-card].is-level{
  background:linear-gradient(145deg,var(--ms-pitch-surface-2),var(--ms-pitch-surface))!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-history-grid>[data-ms-rival-card] :is(.ms-rival-name,.ms-rival-pj,b,strong){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-record-grid i{
  border:1px solid rgba(255,255,255,.52)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-record-grid i:nth-child(1){background:rgba(31,177,94,.38)!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-record-grid i:nth-child(2){background:rgba(25,104,70,.54)!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-record-grid i:nth-child(3){background:rgba(194,66,66,.32)!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-record-grid i :is(b,small){
  background:transparent!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-rival-lead-pill{
  background:rgba(232,255,240,.96)!important;
  border-color:rgba(255,255,255,.72)!important;
  color:#07512f!important;
}
html[data-tessirve-theme="canchero"] .ms-app .is-trailing .ms-rival-lead-pill{
  background:rgba(255,232,232,.96)!important;
  color:#7a2222!important;
}

/* Estados de partido: también cubre chips que el componente base vuelve pálidos. */
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip{
  opacity:1!important;
  text-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-final{
  background:#d9f3e2!important;border-color:#88cda0!important;color:#07512f!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-scheduled{
  background:#dff6ff!important;border-color:#86c4df!important;color:#164b64!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-live{
  background:#d8ffe4!important;border-color:#54cf7b!important;color:#07512f!important;
}

/* En oscuro Canchero se profundiza el césped, pero no se cambia la semántica. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(
  .ms-cup-overview-groups,.ms-champions-league-table,.ms-cup-preliminary-rounds,.ms-cup-overview-stage
){background:linear-gradient(180deg,var(--ms-pitch-surface),var(--ms-pitch-deep))!important}

/* ========================================================================== 
   5.17.54 — CANCHERO: CIERRE TOTAL DE CONTRASTE + RANKINGS/ESTADIOS/CALENDARIO
   ========================================================================== */

/* Rankings no usa .ms-app: se estiliza la raíz real para que no aparezca la
   “hoja blanca” gigante ni tarjetas grises fuera de la cancha. */
html[data-tessirve-theme="canchero"] .ms-rankings-page{
  color:#f8fff9!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page :is(
  .ms-rankings-hero,.ms-ranking-primary-tabs,.ms-ranking-card,.ms-ranking-archive-item,
  .ms-ranking-note,.ms-ranking-country-filters,.ms-ranking-era-tabs,.ms-ranking-primary-tabs
){
  background:linear-gradient(180deg,var(--ms-pitch-surface-2,#0c6840),var(--ms-pitch-surface,#0a5d37))!important;
  border-color:rgba(255,255,255,.48)!important;
  color:#f8fff9!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page :is(
  .ms-rankings-hero,.ms-ranking-primary-tabs,.ms-ranking-card,.ms-ranking-archive-item,
  .ms-ranking-note,.ms-ranking-country-filters,.ms-ranking-era-tabs,.ms-ranking-primary-tabs
){
  background:linear-gradient(180deg,var(--ms-pitch-surface-2,#085033),var(--ms-pitch-surface-deep,#053722))!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page :is(h1,h2,h3,strong,b,a,span){color:#f8fff9!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page :is(p,small,.ms-ranking-panel-head p,.ms-ranking-titles small,.ms-ranking-period){color:#cfe8d7!important}
html[data-tessirve-theme="canchero"] .ms-ranking-primary-tab,
html[data-tessirve-theme="canchero"] .ms-ranking-secondary-tab,
html[data-tessirve-theme="canchero"] .ms-ranking-era-tabs button,
html[data-tessirve-theme="canchero"] .ms-ranking-country-filter-button{
  background:rgba(4,66,40,.58)!important;
  border:1px solid rgba(255,255,255,.35)!important;
  color:#f8fff9!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-ranking-primary-tab.is-active,
html[data-tessirve-theme="canchero"] .ms-ranking-secondary-tab.is-active,
html[data-tessirve-theme="canchero"] .ms-ranking-era-tabs button.is-active,
html[data-tessirve-theme="canchero"] .ms-ranking-country-filter-button.is-active{
  background:#20a260!important;
  border-color:#fff!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-list li{
  background:var(--ms-pitch-surface,#0a5d37)!important;
  border-color:rgba(255,255,255,.26)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-list li:nth-child(even){background:var(--ms-pitch-surface-2,#0c6840)!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-list li{background:var(--ms-pitch-surface,#07452b)!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-list li:nth-child(even){background:var(--ms-pitch-surface-2,#085033)!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-list li.is-podium-gold{background:linear-gradient(90deg,rgba(194,154,23,.22),var(--ms-pitch-surface,#0a5d37))!important;box-shadow:inset 3px 0 #e4bd42!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-list li.is-podium-silver{background:linear-gradient(90deg,rgba(196,207,215,.14),var(--ms-pitch-surface-2,#0c6840))!important;box-shadow:inset 3px 0 #c4cfd7!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-list li.is-podium-bronze{background:linear-gradient(90deg,rgba(190,117,67,.16),var(--ms-pitch-surface,#0a5d37))!important;box-shadow:inset 3px 0 #bd7a4c!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-position,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-initials{
  background:rgba(255,255,255,.09)!important;
  border-color:rgba(255,255,255,.35)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-breakdown-chips>span{
  background:rgba(255,255,255,.09)!important;
  border-color:rgba(255,255,255,.28)!important;
  color:#e8f8ee!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-titles b{color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .is-podium-gold .ms-ranking-titles b{color:#ffe27b!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .is-podium-silver .ms-ranking-titles b{color:#e4edf2!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .is-podium-bronze .ms-ranking-titles b{color:#efb58f!important}

/* Catálogo de Estadios: los summaries tenían background #fff directo. */
html[data-tessirve-theme="canchero"] .ms-app.ms-venue-catalog :is(
  .ms-venue-filter-bar,.ms-venue-category-toggle,.ms-venue-category-section[open] .ms-venue-category-toggle,
  .ms-venue-category-empty,.ms-venue-catalog-card
){
  background:linear-gradient(180deg,var(--ms-pitch-surface-2,#0c6840),var(--ms-pitch-surface,#0a5d37))!important;
  border-color:rgba(255,255,255,.48)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app.ms-venue-catalog :is(
  .ms-venue-filter-bar,.ms-venue-category-toggle,.ms-venue-category-section[open] .ms-venue-category-toggle,
  .ms-venue-category-empty,.ms-venue-catalog-card
){background:linear-gradient(180deg,var(--ms-pitch-surface-2,#085033),var(--ms-pitch-surface-deep,#053722))!important}
html[data-tessirve-theme="canchero"] .ms-app.ms-venue-catalog .ms-venue-category-toggle :is(b,small,i),
html[data-tessirve-theme="canchero"] .ms-app.ms-venue-catalog .ms-venue-catalog-card :is(b,strong,span,a){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app.ms-venue-catalog .ms-venue-category-meta>small,
html[data-tessirve-theme="canchero"] .ms-app.ms-venue-catalog .ms-venue-category-meta>i{
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.30)!important;
  color:#e4f5ea!important;
}
html[data-tessirve-theme="canchero"] .ms-app.ms-venue-catalog .ms-venue-filter-control{
  background:var(--ms-pitch-surface-deep,#074d2f)!important;
  border-color:rgba(255,255,255,.50)!important;
}

/* Calendario del hero: realmente transparente. Sólo quedan números/escudos y
   líneas de cal finas; ninguna placa tapa apodos como Xeneize/Rojo. */
html[data-tessirve-theme="canchero"] .ms-team-profile .ms-team-hero-calendar,
html[data-tessirve-theme="canchero"] .ms-team-profile .ms-team-hero-calendar .ms-calendar,
html[data-tessirve-theme="canchero"] .ms-team-profile .ms-team-hero-calendar .ms-calendar>header,
html[data-tessirve-theme="canchero"] .ms-team-profile .ms-team-hero-calendar .ms-calendar-grid,
html[data-tessirve-theme="canchero"] .ms-team-profile .ms-team-hero-calendar .ms-calendar-grid>*{
  background:transparent!important;
  backdrop-filter:none!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-team-profile .ms-team-hero-calendar{border:1px solid rgba(255,255,255,.54)!important}
html[data-tessirve-theme="canchero"] .ms-team-profile .ms-team-hero-calendar .ms-calendar-grid :is(.no-matches,.has-matches){
  border:1px solid rgba(255,255,255,.30)!important;
  border-radius:7px!important;
}
html[data-tessirve-theme="canchero"] .ms-team-profile .ms-team-hero-calendar .ms-calendar-grid :is(.no-matches,.has-matches)>b,
html[data-tessirve-theme="canchero"] .ms-team-profile .ms-team-hero-calendar .ms-calendar-label{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.34)!important}
html[data-tessirve-theme="canchero"] .ms-team-profile .ms-team-hero-calendar .ms-calendar>header a{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
}

/* Resumen Títulos: más chico, más abajo y con aire respecto al borde. */
.ms-team-profile .ms-team-title-summary{border-radius:9px!important}
.ms-team-profile .ms-team-title-total{padding:4px 6px!important}
.ms-team-profile .ms-team-title-total small{font-size:.50rem!important}
.ms-team-profile .ms-team-title-total strong{font-size:.92rem!important}
.ms-team-profile .ms-team-title-split>span{min-width:42px!important;padding:3px 5px!important}
.ms-team-profile .ms-team-title-split b{font-size:.66rem!important}
.ms-team-profile .ms-team-title-split small{font-size:.42rem!important}
.ms-team-profile .ms-team-title-summary>em{font-size:.50rem!important;padding:2px 6px!important}
@media(min-width:901px){
  .ms-team-profile .ms-team-title-summary{
    bottom:6px!important;
    left:16px!important;
    width:124px!important;
  }
}
@media(max-width:900px){
  .ms-team-profile .ms-team-title-summary{
    margin:6px auto 2px!important;
    max-width:174px!important;
    width:174px!important;
  }
}

/* Último cierre: superficies conocidas que todavía podrían venir con #fff/#111
   desde Core. Se limitan a Canchero para no afectar los demás presets. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-ranking-main-panel,.ms-stat-leader-card,.ms-leaderboard-card,.ms-competition-stats-card,
  .ms-regulation-card,.ms-data-notice,.ms-standing-legend,.ms-competition-rule,.ms-qualification-note,
  .ms-history-filter-panel,.ms-history-team-selector,.ms-history-compare-stage,.ms-venue-performance-grid>span
){
  background:var(--ms-pitch-surface,#0a5d37)!important;
  border-color:rgba(255,255,255,.40)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app :is(
  .ms-ranking-main-panel,.ms-stat-leader-card,.ms-leaderboard-card,.ms-competition-stats-card,
  .ms-regulation-card,.ms-data-notice,.ms-standing-legend,.ms-competition-rule,.ms-qualification-note,
  .ms-history-filter-panel,.ms-history-team-selector,.ms-history-compare-stage,.ms-venue-performance-grid>span
){background:var(--ms-pitch-surface-deep,#053722)!important}
html[data-tessirve-theme="canchero"] .ms-app :is(.ms-venue-performance-grid>span,.ms-data-notice,.ms-standing-legend) :is(b,strong,span,small){color:inherit!important}

/* ========================================================================
   5.17.55 — CANCHERO: CALENDARIO REALMENTE TRANSPARENTE + BUSCADOR + TÍTULOS
   ======================================================================== */
/* El calendario del hero no debe crear una placa que tape el apodo/marca del club. */
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-team-hero-calendar,
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar,
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar>header,
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar-grid,
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar-grid>*{
  background:none!important;background-color:transparent!important;background-image:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;filter:none!important;
}
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-team-hero-calendar{
  border:1px solid rgba(255,255,255,.58)!important;border-radius:14px!important;
}
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-calendar>header a{
  background:transparent!important;background-color:transparent!important;
  border:1px solid rgba(255,255,255,.72)!important;border-radius:8px!important;
  box-shadow:none!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-calendar>header a:hover{
  background:rgba(255,255,255,.10)!important;border-color:#fff!important;
}
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-calendar-grid :is(.no-matches,.has-matches,.is-win,.is-draw,.is-loss,.is-selected,.is-today){
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  border:1px solid rgba(255,255,255,.34)!important;box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-calendar-grid .is-selected,
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-calendar-grid .is-today{
  border-color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.42)!important;
}
html[data-tessirve-theme="canchero"] body .ms-app.ms-team-profile .ms-team-hero .ms-calendar-competition{
  background:rgba(5,71,42,.78)!important;border-color:rgba(255,255,255,.72)!important;
}

/* Desktop: títulos forman parte de los datos del hero, no una caja flotante. */
@media(min-width:901px){
  .ms-team-profile .ms-team-title-summary{display:none!important}
  .ms-team-profile .ms-team-facts .is-title-fact{display:flex!important}
  .ms-team-profile .ms-team-facts{align-items:flex-start;column-gap:22px;row-gap:10px;flex-wrap:wrap}
  .ms-team-profile .ms-team-facts .is-title-fact strong{display:inline-flex;align-items:center;gap:4px}
  .ms-team-profile .ms-team-facts .is-title-fact .ms-flag{transform:translateY(1px)}
}
/* Mobile conserva exactamente el resumen compacto existente. */
@media(max-width:900px){
  .ms-team-profile .ms-team-facts .is-title-fact{display:none!important}
  .ms-team-profile .ms-team-title-summary{display:grid!important}
}

/* Buscador global dentro de Canchero: nunca panel azul/negro ajeno al césped. */
html[data-tessirve-theme="canchero"] .ms-header-search-panel,
html[data-tessirve-theme="canchero"] .ms-search-ai-panel,
html[data-tessirve-theme="canchero"] .ms-search-ai-panel .ms-public-global-search-results{
  background:linear-gradient(180deg,rgba(7,77,45,.985),rgba(4,59,35,.99))!important;
  border-color:rgba(255,255,255,.42)!important;color:#f7fff9!important;
  box-shadow:0 16px 40px rgba(0,34,19,.24)!important;
}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel .ms-public-global-search>label{
  background:rgba(8,91,52,.94)!important;border:1px solid rgba(255,255,255,.48)!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel .ms-public-global-search input{
  background:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel .ms-public-global-search input::placeholder{color:#cce8d6!important;opacity:1!important}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel :is(.ms-public-match-hit,.ms-public-global-search-result,.ms-public-search-result){
  background:transparent!important;border-color:rgba(255,255,255,.16)!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel :is(.ms-public-match-hit,.ms-public-global-search-result,.ms-public-search-result):hover{
  background:rgba(32,158,91,.26)!important;
}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel :is(.ms-public-match-hit,.ms-public-global-search-result,.ms-public-search-result) :is(b,strong,a,span){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel :is(.ms-public-match-hit,.ms-public-global-search-result,.ms-public-search-result) small,
html[data-tessirve-theme="canchero"] .ms-search-ai-panel .ms-public-match-search-state{color:#c8e7d3!important}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel kbd{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.45)!important;color:#fff!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-header-search-panel,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-search-ai-panel,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-global-search-results{
  background:linear-gradient(180deg,rgba(4,57,33,.99),rgba(2,42,25,.995))!important;
}

/* ==========================================================================\n   5.17.56 — PERFIL: TÍTULOS VISIBLES Y ALINEADOS CON LOS DATOS DEL CLUB\n   ========================================================================== */
@media (min-width:901px){
  /* Dos filas de tres datos: Fundación/Sede/Apodos y Títulos/NAC-INT/Puesto. */
  .ms-team-profile .ms-team-identity-copy{min-width:0!important;flex:1 1 auto!important}
  .ms-team-profile .ms-team-facts{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:start!important;
    column-gap:18px!important;
    row-gap:9px!important;
    width:100%!important;
    max-width:700px!important;
  }
  .ms-team-profile .ms-team-facts>span{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    text-align:center!important;
  }
  .ms-team-profile .ms-team-facts .is-title-fact{display:flex!important}
  .ms-team-profile .ms-team-facts .is-title-fact small{
    font-size:.70rem!important;
    letter-spacing:.02em!important;
  }
  .ms-team-profile .ms-team-facts .is-title-fact strong{
    font-size:.90rem!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
  }
  .ms-team-profile .ms-team-title-summary{display:none!important}
}
@media (max-width:900px){
  .ms-team-profile .ms-team-facts .is-title-fact{display:none!important}
  .ms-team-profile .ms-team-title-summary{display:grid!important}
}


/* ==========================================================================
   5.17.58 — CIERRE: CALENDARIO / BUSCADOR / TÍTULOS / RANKING MUNDIAL
   ========================================================================== */
/* Calendario del hero: cero placa opaca. Las flechas conservan BORDE visible
   con interior transparente, tal como se pidió. Se aplica a todos los presets. */
.ms-team-profile .ms-team-hero .ms-team-hero-calendar,
.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar,
.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar>header,
.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar-grid,
.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar-grid>*{
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;filter:none!important;
}
.ms-team-profile .ms-team-hero .ms-team-hero-calendar{
  border:1px solid var(--ms-hero-border,rgba(255,255,255,.52))!important;border-radius:14px!important;
}
.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar>header a,
.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar>header a:hover,
.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar>header a:active{
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  border:1px solid var(--ms-hero-border,rgba(255,255,255,.72))!important;border-radius:8px!important;
  box-shadow:none!important;color:var(--ms-hero-ink,#fff)!important;
}
.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar>header a:hover{
  border-color:var(--ms-hero-ink,#fff)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ms-hero-ink,#fff) 20%,transparent)!important;
}
.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar-grid :is(.no-matches,.has-matches,.is-win,.is-draw,.is-loss,.is-selected,.is-today){
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  border:1px solid color-mix(in srgb,var(--ms-hero-ink,#fff) 32%,transparent)!important;box-shadow:none!important;
}
.ms-team-profile .ms-team-hero .ms-team-hero-calendar .ms-calendar-grid :is(.is-selected,.is-today){
  border-color:var(--ms-hero-ink,#fff)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ms-hero-ink,#fff) 34%,transparent)!important;
}
.ms-team-profile .ms-team-hero-nickname{z-index:0!important;pointer-events:none!important}
.ms-team-profile .ms-team-identity,.ms-team-profile .ms-team-hero-calendar{position:relative;z-index:2!important}

/* Desktop: los títulos son datos del club, nunca una caja superpuesta. */
@media(min-width:901px){
  .ms-team-profile .ms-team-title-summary{display:none!important}
  .ms-team-profile .ms-team-facts .is-title-fact{display:flex!important}
}
@media(max-width:900px){
  .ms-team-profile .ms-team-facts .is-title-fact{display:none!important}
  .ms-team-profile .ms-team-title-summary{display:grid!important}
}

/* Buscador Canchero: limpio, verde, contrastado; se eliminan las placas navy y
   las capas decorativas que ensuciaban la lectura del panel. */
html[data-tessirve-theme="canchero"] .ms-search-ai-panel:before,
html[data-tessirve-theme="canchero"] .ms-search-ai-panel:after{display:none!important}
html[data-tessirve-theme="canchero"] .ms-header-search-panel,
html[data-tessirve-theme="canchero"] .ms-search-ai-panel,
html[data-tessirve-theme="canchero"] .ms-search-ai-panel .ms-public-global-search-results{
  background:#075a35!important;background-image:none!important;border:1px solid rgba(255,255,255,.52)!important;
  color:#fff!important;box-shadow:0 14px 30px rgba(0,42,24,.22)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-header-search-panel,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-search-ai-panel,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-search-ai-panel .ms-public-global-search-results{background:#043d25!important}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel .ms-public-global-search>label{
  background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.58)!important;box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel .ms-public-global-search>label:focus-within{
  border-color:#fff!important;box-shadow:0 0 0 2px rgba(255,255,255,.16)!important;
}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel :is(.ms-public-match-hit,.ms-public-global-search-result,.ms-public-search-result){
  background:rgba(0,0,0,.06)!important;border-color:rgba(255,255,255,.18)!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-search-ai-panel :is(.ms-public-match-hit,.ms-public-global-search-result,.ms-public-search-result):hover{
  background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.42)!important;
}

/* Alcance mundial del Ranking. Argentina sigue siendo la vista inicial. */
.ms-ranking-scope-tabs{
  display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0 auto 10px;padding:0;max-width:100%;
}
.ms-ranking-scope-tabs button{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 9px;
  border:1px solid var(--ms-border,#d5dbe4);border-radius:9px;background:var(--ms-surface,#fff);color:var(--ms-text,#172033);
  font:inherit;cursor:pointer;box-shadow:none;
}
.ms-ranking-scope-tabs button b{font-size:.68rem;letter-spacing:.02em}
.ms-ranking-scope-tabs button.is-active{border-color:currentColor;box-shadow:inset 0 0 0 1px currentColor}
.ms-ranking-scope-mark{display:inline-flex;align-items:center;justify-content:center;min-width:18px;font-size:.9rem;line-height:1}
.ms-ranking-scope-mark.is-confed{min-width:20px;height:19px}
.ms-ranking-scope-mark.is-confed img{display:block;background:transparent!important;border:0!important;box-shadow:none!important;width:auto!important;height:18px!important;max-width:26px!important;object-fit:contain!important}
[data-ms-ranking-world-panel][hidden]{display:none!important}
.ms-ranking-world-panel .ms-ranking-card.is-total-card{max-width:920px;margin-inline:auto}
[data-ms-ranking-local-control][hidden]{display:none!important}
.ms-ranking-list li.is-confederation-filtered-out{display:none!important}
html[data-tessirve-theme="canchero"] .ms-ranking-scope-tabs button{
  background:rgba(6,86,50,.82)!important;border-color:rgba(255,255,255,.42)!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-ranking-scope-tabs button.is-active{
  background:rgba(255,255,255,.14)!important;border-color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)!important;
}
@media(max-width:720px){
  .ms-ranking-scope-tabs{gap:4px;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}
  .ms-ranking-scope-tabs button{flex:0 0 auto;min-height:29px;padding:4px 7px}
  .ms-ranking-scope-tabs button b{font-size:.60rem}
}

/* ==========================================================================
   5.17.59 — CANCHERO: Ranking legible, jerárquico y sin sopa de botones
   ========================================================================== */
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-toolbar{
  background:#f7fbf8!important;border-color:#bdd7c7!important;box-shadow:0 4px 14px rgba(5,79,45,.08)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-toolbar :is(p,label,select,span,b,strong){color:#164c36!important;text-shadow:none!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button{
  background:#fff!important;border-color:#b7d2c2!important;color:#174b36!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button :is(span,b){color:#174b36!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button.is-active,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button.is-active{
  background:#087443!important;border-color:#087443!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button.is-active :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button.is-active :is(span,b){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-country-select select{
  background:#fff!important;border-color:#a8c9b5!important;color:#103d2c!important;box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-filter-row{border-color:#cfdfd5!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs{
  background:#e8f2ec!important;border:1px solid #b9d3c3!important;box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button{
  background:transparent!important;border-color:transparent!important;color:#174b36!important;box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button :is(span,b){color:#174b36!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button.is-active,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button.is-active{
  background:#087443!important;border-color:#087443!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button.is-active :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button.is-active :is(span,b){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-scope-note{color:#4c6f5f!important}

html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-world-panel .ms-ranking-dynamic-head :is(h2,p,strong){color:#f7fff9!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li{
  border-color:rgba(255,255,255,.23)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-name{color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.16)!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-breakdown-chips>span{
  background:rgba(0,0,0,.10)!important;border-color:rgba(255,255,255,.34)!important;color:#e9f7ee!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-breakdown-chips>span small{color:#cde7d6!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-breakdown-chips>span b{color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles{
  background:rgba(3,55,32,.46)!important;border-color:rgba(255,255,255,.58)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles-caption{color:#cce7d5!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles>b{color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles-unit{color:#dbeee2!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-gold .ms-ranking-titles{
  border-color:#f1ce61!important;background:rgba(91,69,9,.34)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-gold .ms-ranking-titles>b{color:#ffe884!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-silver .ms-ranking-titles{border-color:#d8e1e6!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-bronze .ms-ranking-titles{border-color:#d7956c!important}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-toolbar{
  background:#082f20!important;border-color:#285c43!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-toolbar :is(p,label,span,b,strong){color:#d8eee1!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-country-select select{
  background:#0d3e2b!important;border-color:#397158!important;color:#f4fff7!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-geo-tabs button,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-confed-context button{
  background:#0d3e2b!important;border-color:#397158!important;color:#d8eee1!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-geo-tabs button :is(span,b),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-confed-context button :is(span,b){color:#d8eee1!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-geo-tabs button.is-active,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-confed-context button.is-active{background:#14915a!important;border-color:#64bd8b!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-geo-tabs button.is-active :is(span,b),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-confed-context button.is-active :is(span,b){color:#fff!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-era-tabs,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-primary-tabs{background:#0d3e2b!important;border-color:#397158!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-era-tabs button,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-primary-tabs button{color:#d8eee1!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-era-tabs button :is(span,b),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-primary-tabs button :is(span,b){color:#d8eee1!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-era-tabs button.is-active,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-primary-tabs button.is-active{background:#14915a!important;color:#fff!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-era-tabs button.is-active :is(span,b),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-primary-tabs button.is-active :is(span,b){color:#fff!important}

/* ========================================================================== 
   5.17.60 — CANCHERO / MODO CLARO: Rankings realmente claros
   ========================================================================== */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page{
  color:#173e2f!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-rankings-hero{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:4px 0 10px!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-rankings-hero h1{
  color:#0b6540!important;
  text-shadow:none!important;
  text-align:center!important;
  font-size:clamp(1.65rem,2.8vw,2.35rem)!important;
  letter-spacing:-.035em!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-toolbar{
  width:min(100%,920px)!important;
  background:#ffffff!important;
  border:1px solid #bfd4c6!important;
  box-shadow:0 8px 24px rgba(16,70,47,.07)!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-toolbar :is(p,label,span,b,strong){
  color:#174b36!important;
  text-shadow:none!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-geo-tabs button,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-confed-context button{
  background:#f7fbf8!important;
  border-color:#b8d0c1!important;
  color:#174b36!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-geo-tabs button.is-active,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-confed-context button.is-active{
  background:#0a7548!important;
  border-color:#0a7548!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-country-select select{
  background:#fff!important;
  border-color:#aac7b5!important;
  color:#123e2d!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-era-tabs,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-primary-tabs{
  background:#eef6f1!important;
  border-color:#bfd4c6!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-era-tabs button,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-primary-tabs button{
  background:transparent!important;
  border-color:transparent!important;
  color:#174b36!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-era-tabs button.is-active,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-primary-tabs button.is-active{
  background:#0a7548!important;
  border-color:#0a7548!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-era-tabs button.is-active :is(span,b),
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-primary-tabs button.is-active :is(span,b){color:#fff!important}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-scope-note{
  color:#5b7468!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-panel-head,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-world-panel .ms-ranking-dynamic-head{
  background:transparent!important;
  border:0!important;
  color:#153f2f!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-panel-head :is(h2,h3,p,strong,span),
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-world-panel .ms-ranking-dynamic-head :is(h2,p,strong){
  color:#153f2f!important;
  text-shadow:none!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-panel-head p,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-world-panel .ms-ranking-dynamic-head p{
  color:#657b70!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card{
  background:#fff!important;
  border-color:#c6d9cd!important;
  box-shadow:0 8px 24px rgba(16,70,47,.055)!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li{
  background:#ffffff!important;
  border-color:#dce8e1!important;
  color:#153f2f!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li:nth-child(even){
  background:#f4f9f6!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li.is-podium-gold{
  background:linear-gradient(90deg,#fff8df 0,#fff 42%)!important;
  box-shadow:inset 4px 0 #d7aa18!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li.is-podium-silver{
  background:linear-gradient(90deg,#f3f6f7 0,#fff 42%)!important;
  box-shadow:inset 4px 0 #9eabb3!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li.is-podium-bronze{
  background:linear-gradient(90deg,#fbf1ea 0,#fff 42%)!important;
  box-shadow:inset 4px 0 #b9784d!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-name,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-name-link,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-team{
  color:#123e2d!important;
  text-shadow:none!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-position,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-initials{
  background:#eaf4ee!important;
  border-color:#b6d0c0!important;
  color:#145136!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-breakdown-chips>span{
  background:#eef6f1!important;
  border-color:#c4dacd!important;
  color:#174b36!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-breakdown-chips>span small{color:#537060!important}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-breakdown-chips>span b{color:#123e2d!important}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles{
  background:#0b6842!important;
  border-color:#0b6842!important;
  box-shadow:0 3px 9px rgba(11,104,66,.14)!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles :is(.ms-ranking-titles-caption,b,.ms-ranking-titles-unit){
  color:#fff!important;
  text-shadow:none!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-gold .ms-ranking-titles{
  background:#0b6842!important;
  border-color:#d7aa18!important;
  box-shadow:0 0 0 1px #f2d36d inset!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-gold .ms-ranking-titles>b{color:#fff4b7!important}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-empty-scope{
  background:#f7fbf8!important;
  border-color:#bcd3c4!important;
  color:#173e2f!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-empty-scope strong{color:#173e2f!important}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-empty-scope span{color:#60786b!important}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-secondary-tab{
  background:#f6faf7!important;
  border-color:#c5d9cc!important;
  color:#174b36!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-secondary-tab :is(b,span){color:#174b36!important}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-secondary-tab.is-active{
  background:#0a7548!important;
  border-color:#0a7548!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-secondary-tab.is-active :is(b,span){color:#fff!important}

/* Estado de feed vencido: no disfrazarlo de PROG. */
.ms-match-status-chip.is-stale{background:#fff7df!important;border-color:#e2bd57!important;color:#725300!important}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-stale{background:#3b2d10!important;border-color:#9f7a26!important;color:#ffe8a3!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-stale{background:#fff3c9!important;border-color:#dfb948!important;color:#684b00!important}

/* 5.17.60 — cierre de modo claro Rankings: superficie propia, aire y notas legibles. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page{
  width:100%!important;
  padding:18px 18px 24px!important;
  border:1px solid #d7e5dc!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#f7faf8 0%,#f1f7f3 100%)!important;
  box-shadow:0 10px 30px rgba(16,70,47,.055)!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-toolbar{
  margin-bottom:18px!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-feature-grid.is-single.is-total-ranking,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-world-panel .ms-ranking-feature-grid{
  width:min(100%,920px)!important;
  margin-inline:auto!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-rankings-note{
  background:#edf6f0!important;
  border:1px solid #c9ddd0!important;
  color:#486557!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-rankings-note :is(strong,b,a,span){color:#214f39!important}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page .ms-ranking-world-panel [data-ms-ranking-visible-count]{
  color:#526f60!important;
}
@media(max-width:680px){
  html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-rankings-page{padding:11px 9px 18px!important;border-radius:14px!important}
}

/* En Canchero oscuro el estado vencido conserva contraste nocturno. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app .ms-compact-match .ms-match-status-chip.is-stale{
  background:#3b2d10!important;border-color:#a78331!important;color:#ffe7a0!important;
}

/* ==========================================================================
   5.17.61 — CANCHERO / RANKINGS: superficie de cancha y podio por NÚMERO
   ========================================================================== */
html[data-tessirve-theme="canchero"] .ms-rankings-page{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  width:100%!important;padding:16px 18px 22px!important;border:1px solid rgba(206,242,221,.48)!important;border-radius:18px!important;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.030) 0,rgba(255,255,255,.030) 12.5%,rgba(0,0,0,.018) 12.5%,rgba(0,0,0,.018) 25%),
    linear-gradient(180deg,#0b7448 0%,#08683f 48%,#075d39 100%)!important;
  color:#f7fff9!important;box-shadow:0 12px 32px rgba(2,48,29,.14)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page:before{
  content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;pointer-events:none!important;
  background:linear-gradient(180deg,rgba(255,255,255,.028),transparent 24%,transparent 76%,rgba(0,0,0,.035))!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-rankings-hero{
  background:transparent!important;border:0!important;box-shadow:none!important;padding:2px 0 10px!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-rankings-hero h1{
  color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.18)!important;font-weight:950!important;
}

html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-toolbar{
  max-width:920px!important;margin:0 auto 14px!important;padding:11px 12px!important;
  background:rgba(4,77,48,.70)!important;border:1px solid rgba(196,235,212,.55)!important;border-radius:14px!important;
  box-shadow:0 5px 16px rgba(2,45,27,.12)!important;backdrop-filter:none!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button{
  background:#e5f2ea!important;border-color:#a7cdb7!important;color:#0b4d31!important;text-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button :is(span,b){color:#0b4d31!important;text-shadow:none!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button.is-active,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button.is-active{
  background:#11935a!important;border-color:#6fd09a!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button.is-active :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button.is-active :is(span,b){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-country-select>span{
  color:#e8f7ee!important;text-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-country-select select{
  background:#f2f8f4!important;border-color:#a8cbb6!important;color:#0a4930!important;box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-country-select select option{background:#fff!important;color:#102f24!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-filter-row{border-color:rgba(213,242,225,.35)!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs{
  background:rgba(225,242,232,.94)!important;border:1px solid #a8cdb8!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button{
  background:transparent!important;border-color:transparent!important;color:#0a4a30!important;text-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button :is(span,b){color:#0a4a30!important;text-shadow:none!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button.is-active,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button.is-active{
  background:#087f4c!important;border-color:#087f4c!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button.is-active :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button.is-active :is(span,b){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-scope-note,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-world-context{color:#d9efe3!important}

html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-panel-head,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-world-panel .ms-ranking-dynamic-head{
  background:transparent!important;border:0!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-panel-head :is(h2,h3,strong,span),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-world-panel .ms-ranking-dynamic-head :is(h2,strong,span){color:#fff!important;text-shadow:none!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-panel-head p,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-world-panel .ms-ranking-dynamic-head p,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-world-panel [data-ms-ranking-visible-count]{color:#d7eee1!important;text-shadow:none!important}

/* Subcompetencias: botones bajos, compactos y en una sola línea desplazable. */
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab{
  background:#e4f1e8!important;border-color:#a5cbb4!important;color:#0b4a31!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab :is(b,span){color:#0b4a31!important;text-shadow:none!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab .ms-ranking-nav-icon{
  background:#d2e8da!important;color:#0b5b39!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab.is-active{
  background:#0b8b54!important;border-color:#79d09f!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab.is-active :is(b,span){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab.is-active .ms-ranking-nav-icon{
  background:rgba(255,255,255,.15)!important;color:#fff!important;
}

/* Ranking: sigue siendo cancha; no vuelve a tarjetas blancas en modo claro. */
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card{
  background:#075c3a!important;border-color:rgba(185,229,204,.58)!important;box-shadow:0 7px 18px rgba(2,45,27,.13)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li{
  background:#0d7047!important;border-color:rgba(203,238,217,.24)!important;color:#fff!important;box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li:nth-child(even){background:#0a6541!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li.is-podium-gold{
  background:linear-gradient(90deg,rgba(246,201,69,.12),rgba(13,112,71,1) 35%)!important;box-shadow:inset 4px 0 #f6c945!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li.is-podium-silver{
  background:linear-gradient(90deg,rgba(222,230,236,.11),rgba(10,101,65,1) 35%)!important;box-shadow:inset 4px 0 #dce4e9!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li.is-podium-bronze{
  background:linear-gradient(90deg,rgba(211,132,78,.13),rgba(13,112,71,1) 35%)!important;box-shadow:inset 4px 0 #d98b55!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-name,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-name-link,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-team{color:#fff!important;text-shadow:none!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-position,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-initials{
  background:rgba(235,248,240,.12)!important;border-color:rgba(214,241,225,.45)!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-breakdown-chips>span{
  background:rgba(236,248,241,.12)!important;border-color:rgba(214,241,225,.34)!important;color:#f3fff7!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-breakdown-chips>span :is(small,b){color:#f3fff7!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles{
  background:#064d32!important;border-color:#91c8aa!important;box-shadow:0 3px 10px rgba(0,38,23,.18)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles :is(.ms-ranking-titles-caption,.ms-ranking-titles-unit){color:#f4fff8!important;text-shadow:none!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles>b{color:#fff!important;text-shadow:none!important}
/* El podio colorea solamente el NÚMERO de títulos, no el fondo del recuadro. */
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-gold .ms-ranking-titles>b{color:#f6c945!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-silver .ms-ranking-titles>b{color:#dce4e9!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-bronze .ms-ranking-titles>b{color:#df9665!important}

html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-empty-scope{
  background:rgba(4,74,46,.66)!important;border:1px dashed rgba(199,235,214,.58)!important;color:#fff!important;
  border-radius:12px!important;padding:14px 16px!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-empty-scope strong{color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-empty-scope span{color:#d6ebdf!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-rankings-note{
  background:rgba(4,72,45,.58)!important;border-color:rgba(193,232,209,.42)!important;color:#d9eee2!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-rankings-note :is(strong,b,a,span){color:#f3fff7!important}

/* Títulos del perfil: nombre enlazable sólo si la competición ya existe; si no,
 * el mismo texto queda sin link y se enlazará automáticamente al crearla. */
html[data-tessirve-theme="canchero"] .ms-honor-detail .ms-honor-competition{color:inherit!important;text-decoration:none!important}
html[data-tessirve-theme="canchero"] .ms-honor-detail .ms-honor-competition:hover{text-decoration:underline!important;text-underline-offset:2px!important}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page{
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.018) 0,rgba(255,255,255,.018) 12.5%,rgba(0,0,0,.025) 12.5%,rgba(0,0,0,.025) 25%),
    linear-gradient(180deg,#07583a 0%,#064b32 52%,#043d29 100%)!important;
}

@media(max-width:680px){
  html[data-tessirve-theme="canchero"] .ms-rankings-page{padding:11px 9px 17px!important;border-radius:14px!important}
  html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-toolbar{padding:9px!important;margin-bottom:10px!important}
  html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button{font-size:.59rem!important}
  html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab{font-size:.53rem!important}
  html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li{
    grid-template-columns:27px minmax(0,1fr) 65px!important;gap:6px!important;padding:7px 6px!important;min-height:60px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-name{font-size:.67rem!important}
  html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles{
    min-width:61px!important;min-height:48px!important;padding:4px 5px!important;border-radius:9px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles>b{font-size:1rem!important}
  html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-breakdown-chips>span{padding:2px 4px!important}
}

/* ==========================================================================
   5.17.62 — CANCHERO / RANKINGS: verde liso, claro/oscuro coherentes y compacto
   ========================================================================== */
/* El shortcode de Rankings no debe heredar la gran tarjeta blanca de page.php. */
html[data-tessirve-theme="canchero"] .ms-content.is-tessirve-screen:has(.ms-rankings-page){
  padding-top:14px!important;
  padding-bottom:36px!important;
}
html[data-tessirve-theme="canchero"] .ms-entry-content:has(.ms-rankings-page){
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
}

/* No dibujamos otra cancha adentro: el patrón global del sitio queda único y sincronizado. */
html[data-tessirve-theme="canchero"] .ms-rankings-page{
  padding:7px 12px 14px!important;
  border:1px solid rgba(215,247,228,.52)!important;
  border-radius:16px!important;
  background:#0b7448!important;
  background-image:none!important;
  color:#f8fff9!important;
  box-shadow:0 10px 26px rgba(1,45,27,.12)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page:before{display:none!important;content:none!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page{
  background:#06482f!important;
  background-image:none!important;
  border-color:rgba(191,231,208,.38)!important;
  box-shadow:0 10px 28px rgba(0,24,15,.22)!important;
}

html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-rankings-hero{
  padding:0 0 3px!important;
  background:transparent!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-rankings-hero h1{
  color:#fff!important;
  font-size:clamp(1.65rem,3vw,2.15rem)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.18)!important;
}

/* Claro: césped vivo. Oscuro: césped nocturno. Sin lienzos blancos. */
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-toolbar{
  background:#075f3b!important;
  border-color:rgba(212,244,225,.48)!important;
  box-shadow:0 4px 12px rgba(0,42,25,.10)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-toolbar{
  background:#033b27!important;
  border-color:rgba(192,230,207,.32)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-filter-row{border-color:rgba(216,244,227,.30)!important}

/* Controles: verdes claros en modo claro, más contenidos en oscuro; misma geometría. */
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs{
  background:#dcefe4!important;
  border-color:#9fc8b0!important;
  color:#073f29!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button :is(span,b){
  color:#073f29!important;text-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button{color:#073f29!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button.is-active,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button.is-active,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button.is-active,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button.is-active{
  background:#11965b!important;border-color:#79d3a2!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-geo-tabs button.is-active :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-confed-context button.is-active :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-era-tabs button.is-active :is(span,b),
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-primary-tabs button.is-active :is(span,b){color:#fff!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-geo-tabs button,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-confed-context button,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-era-tabs,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-primary-tabs{
  background:#0b5135!important;border-color:#4e8b69!important;color:#eefbf3!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-geo-tabs button :is(span,b),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-confed-context button :is(span,b),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-era-tabs button,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-era-tabs button :is(span,b),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-primary-tabs button,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-primary-tabs button :is(span,b){color:#eefbf3!important}

html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-country-select>span{color:#e9f8ef!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-country-select select{
  background:#eaf5ee!important;border-color:#a6cbb5!important;color:#073f29!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-country-select select{
  background:#0b5135!important;border-color:#578e6d!important;color:#f4fff8!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-country-select select option{
  background:#0a432d!important;color:#f4fff8!important;
}

/* Nacionales/Internacionales: cabecera y accesos pegados al ranking, sin huecos gigantes. */
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-panel-stable-slot .ms-ranking-panel-head :is(h2,h3,strong,span){color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab{
  background:#d9ece1!important;border-color:#9ec6ae!important;color:#073f29!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab :is(b,span){color:#073f29!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab .ms-ranking-nav-icon{background:#c5e0d0!important;color:#075536!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab.is-active{
  background:#109259!important;border-color:#78d0a0!important;color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-secondary-tab.is-active :is(b,span){color:#fff!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-secondary-tab{
  background:#0a5134!important;border-color:#4c8767!important;color:#eefbf3!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-secondary-tab :is(b,span){color:#eefbf3!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-secondary-tab .ms-ranking-nav-icon{background:#0e6541!important;color:#fff!important}

/* Tarjetas verdes en ambos modos; cambia profundidad para que claro/oscuro se distingan. */
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card,
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card{
  background:#075d3a!important;border-color:rgba(205,240,219,.50)!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li{background:#0d7549!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li:nth-child(even){background:#0a6b43!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card{background:#033a27!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li{background:#075338!important}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li:nth-child(even){background:#064a32!important}

/* Podio: sólo el valor numérico toma metal; el recuadro conserva el mismo verde. */
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles{
  background:#064d32!important;border-color:#8fc5a7!important;
}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-gold .ms-ranking-titles>b{color:#f4c542!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-silver .ms-ranking-titles>b{color:#c9d0d7!important}
html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-bronze .ms-ranking-titles>b{color:#cd7f32!important}

@media(max-width:680px){
  html[data-tessirve-theme="canchero"] .ms-content.is-tessirve-screen:has(.ms-rankings-page){padding-top:8px!important;padding-bottom:24px!important}
  html[data-tessirve-theme="canchero"] .ms-rankings-page{padding:6px 7px 10px!important;border-radius:13px!important}
  html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-rankings-hero{padding-bottom:2px!important}
  html[data-tessirve-theme="canchero"] .ms-rankings-page .ms-rankings-hero h1{font-size:1.55rem!important}
}


/* ========================================================================== 
   5.17.63 — Ranking histórico universal + escudos limpios
   ========================================================================== */
.ms-history-modal-dialog{max-width:560px!important;width:min(560px,calc(100vw - 28px))!important}
.ms-history-modal-content.is-ranking{--ms-hist-surface:#eef8f1;--ms-hist-row:#f7fbf8;--ms-hist-border:rgba(5,86,51,.28);--ms-hist-ink:#083f2c;--ms-hist-badge:#0b7049;--ms-hist-badge-ink:#fff}
html[data-tessirve-theme="canchero"][data-theme="dark"] .ms-history-modal-content.is-ranking,
html[data-tessirve-theme="canchero"].dark .ms-history-modal-content.is-ranking{--ms-hist-surface:#075336;--ms-hist-row:#0b6844;--ms-hist-border:rgba(219,255,235,.46);--ms-hist-ink:#fff;--ms-hist-badge:#064c34;--ms-hist-badge-ink:#fff}
.ms-history-modal-content.is-ranking{background:var(--ms-hist-surface)!important;color:var(--ms-hist-ink)!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-list{display:grid!important;gap:7px!important;margin:0!important;padding:0!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-row{align-items:center!important;background:var(--ms-hist-row)!important;border:1px solid var(--ms-hist-border)!important;border-radius:12px!important;display:grid!important;grid-template-columns:34px minmax(0,1fr) 66px!important;gap:9px!important;min-height:70px!important;padding:8px 10px!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-pos{align-items:center!important;background:rgba(255,255,255,.13)!important;border:1px solid var(--ms-hist-border)!important;border-radius:8px!important;color:var(--ms-hist-ink)!important;display:flex!important;font-size:.78rem!important;height:30px!important;justify-content:center!important;line-height:1!important;width:30px!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-club,
.ms-history-modal-content.is-ranking .ms-history-ranking-club:visited,
.ms-history-modal-content.is-ranking .ms-history-ranking-team{color:var(--ms-hist-ink)!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-team{font-size:.82rem!important;font-weight:900!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-crest{flex-basis:34px!important;height:34px!important;width:34px!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest,
.ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest-fallback{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;height:34px!important;max-height:34px!important;max-width:34px!important;object-fit:contain!important;padding:0!important;width:34px!important}
.ms-history-modal-content.is-ranking .ms-history-title-years{gap:4px!important}
.ms-history-modal-content.is-ranking .ms-history-title-year{border-radius:999px!important;font-size:.56rem!important;line-height:1!important;padding:4px 7px!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-titles{align-items:center!important;background:var(--ms-hist-badge)!important;border:1px solid var(--ms-hist-border)!important;border-radius:10px!important;color:var(--ms-hist-badge-ink)!important;display:flex!important;flex-direction:column!important;height:54px!important;justify-content:center!important;line-height:1!important;min-width:64px!important;padding:4px 6px!important;text-align:center!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-titles small{color:inherit!important;font-size:.44rem!important;font-style:normal!important;font-weight:800!important;letter-spacing:.04em!important;margin-bottom:3px!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-titles strong{color:inherit!important;font-size:1.05rem!important;font-style:normal!important;font-weight:950!important}
.ms-history-modal-content.is-ranking .is-podium-gold .ms-history-ranking-titles strong{color:#d8aa19!important}
.ms-history-modal-content.is-ranking .is-podium-silver .ms-history-ranking-titles strong{color:#b8c0c8!important}
.ms-history-modal-content.is-ranking .is-podium-bronze .ms-history-ranking-titles strong{color:#c9824b!important}
.ms-history-modal-content.is-ranking .is-podium-gold .ms-history-ranking-pos{border-color:#d8aa19!important}
.ms-history-modal-content.is-ranking .is-podium-silver .ms-history-ranking-pos{border-color:#b8c0c8!important}
.ms-history-modal-content.is-ranking .is-podium-bronze .ms-history-ranking-pos{border-color:#c9824b!important}

/* Nunca agregar placa blanca alrededor de escudos de clubes. */
.ms-app img.ms-crest,
.ms-app .ms-ranking-crest img,
.ms-app .ms-history-ranking-crest img{background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;object-fit:contain!important}

@media(max-width:640px){
  .ms-history-modal-dialog{width:min(94vw,520px)!important}
  .ms-history-modal-content.is-ranking .ms-history-ranking-row{grid-template-columns:30px minmax(0,1fr) 58px!important;gap:7px!important;min-height:64px!important;padding:7px 8px!important}
  .ms-history-modal-content.is-ranking .ms-history-ranking-pos{font-size:.72rem!important;height:27px!important;width:27px!important}
  .ms-history-modal-content.is-ranking .ms-history-ranking-team{font-size:.74rem!important}
  .ms-history-modal-content.is-ranking .ms-history-ranking-crest,
  .ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest,
  .ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest-fallback{height:30px!important;max-height:30px!important;max-width:30px!important;width:30px!important}
  .ms-history-modal-content.is-ranking .ms-history-ranking-titles{height:48px!important;min-width:56px!important}
  .ms-history-modal-content.is-ranking .ms-history-ranking-titles strong{font-size:.92rem!important}
}


/* ========================================================================== 
   5.17.64 — Ranking histórico: mismo lenguaje visual que Rankings general
   ========================================================================== */
html[data-tessirve-theme="canchero"] .ms-history-modal .ms-history-modal-dialog{
  box-sizing:border-box!important;
  width:min(520px,calc(100vw - 24px))!important;
  max-width:520px!important;
  overflow:hidden!important;
  border:1px solid rgba(207,244,223,.62)!important;
  border-radius:18px!important;
  background:#075c3a!important;
  color:#fff!important;
  box-shadow:0 22px 58px rgba(0,42,27,.34)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-history-modal .ms-history-modal-dialog{
  background:#043b29!important;
  border-color:rgba(193,232,210,.40)!important;
  box-shadow:0 24px 64px rgba(0,18,12,.52)!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal .ms-series-modal-close{
  top:10px!important;
  right:10px!important;
  width:30px!important;
  height:30px!important;
  border:1px solid rgba(233,255,242,.56)!important;
  background:#0d7b4d!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal .ms-series-modal-close:hover,
html[data-tessirve-theme="canchero"] .ms-history-modal .ms-series-modal-close:focus-visible{
  background:#12905a!important;
  border-color:#e8fff1!important;
  outline:2px solid rgba(255,255,255,.24)!important;
  outline-offset:2px!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-history-modal .ms-series-modal-close{
  background:#075c3d!important;
  border-color:rgba(222,249,234,.42)!important;
}

html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking{
  --ms-hist-row:#0d7549;
  --ms-hist-row-alt:#0b6b43;
  --ms-hist-border:rgba(218,248,230,.52);
  --ms-hist-ink:#fff;
  --ms-hist-muted:#d8f1e2;
  --ms-hist-chip:#08613d;
  --ms-hist-badge:#064b32;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  padding:0 14px 14px!important;
  background:#075c3a!important;
  color:var(--ms-hist-ink)!important;
  text-align:left!important;
  overflow:hidden!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-history-modal-content.is-ranking{
  --ms-hist-row:#07543a;
  --ms-hist-row-alt:#064c35;
  --ms-hist-border:rgba(207,239,221,.34);
  --ms-hist-ink:#f7fff9;
  --ms-hist-muted:#c5e6d2;
  --ms-hist-chip:#043d2a;
  --ms-hist-badge:#022f22;
  background:#043b29!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking>header{
  box-sizing:border-box!important;
  min-height:76px!important;
  margin:0 -14px 11px!important;
  padding:11px 46px 10px!important;
  gap:4px!important;
  border-bottom:1px solid rgba(221,250,233,.36)!important;
  background:#064c32!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-history-modal-content.is-ranking>header{
  background:#022f22!important;
  border-bottom-color:rgba(207,239,221,.26)!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking>header .ms-crest,
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking>header .ms-crest-fallback{
  width:48px!important;
  max-width:48px!important;
  height:38px!important;
  max-height:38px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  object-fit:contain!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking>header small{
  color:#fff!important;
  font-size:.62rem!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
  line-height:1!important;
  opacity:1!important;
  text-shadow:0 1px 1px rgba(0,0,0,.16)!important;
}

html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-list{
  box-sizing:border-box!important;
  display:grid!important;
  width:100%!important;
  max-width:none!important;
  gap:6px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-row{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 68px!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-width:0!important;
  min-height:62px!important;
  margin:0!important;
  padding:7px 8px!important;
  border:1px solid var(--ms-hist-border)!important;
  border-radius:11px!important;
  background:var(--ms-hist-row)!important;
  color:var(--ms-hist-ink)!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-row:nth-child(even){
  background:var(--ms-hist-row-alt)!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-pos{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:30px!important;
  height:30px!important;
  margin:0!important;
  border:1px solid rgba(231,252,240,.58)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.07)!important;
  color:#fff!important;
  font-size:.73rem!important;
  font-weight:950!important;
  line-height:1!important;
  text-align:center!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-entry{
  display:grid!important;
  min-width:0!important;
  gap:4px!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-club{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  gap:8px!important;
  color:#fff!important;
  text-decoration:none!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-club:visited,
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-club:hover,
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-club:focus{
  color:#fff!important;
  text-decoration:none!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-crest{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 34px!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  overflow:visible!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest{
  display:block!important;
  width:34px!important;
  max-width:34px!important;
  height:34px!important;
  max-height:34px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  object-fit:contain!important;
}
/* Si aún falta la imagen real, al menos no dejamos letras sueltas flotando. */
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest-fallback{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:32px!important;
  max-width:32px!important;
  height:32px!important;
  max-height:32px!important;
  padding:0 3px!important;
  border:1px solid rgba(235,255,243,.55)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:.50rem!important;
  font-weight:950!important;
  line-height:1!important;
  text-align:center!important;
  overflow:hidden!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-team{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  color:#fff!important;
  font-size:.78rem!important;
  font-weight:900!important;
  line-height:1.08!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-shadow:0 1px 1px rgba(0,0,0,.10)!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-title-years{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:3px!important;
  min-width:0!important;
  padding-left:42px!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-title-year{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:18px!important;
  padding:3px 6px!important;
  border:1px solid rgba(225,251,236,.34)!important;
  border-radius:999px!important;
  background:var(--ms-hist-chip)!important;
  color:#f5fff8!important;
  font-size:.50rem!important;
  font-weight:850!important;
  line-height:1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  opacity:1!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-title-year:hover,
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-title-year:focus-visible{
  background:#118153!important;
  border-color:#dff8e9!important;
  color:#fff!important;
  outline:0!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-titles{
  box-sizing:border-box!important;
  align-self:center!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:66px!important;
  min-width:66px!important;
  height:48px!important;
  margin:0!important;
  padding:4px 5px!important;
  border:1px solid rgba(226,251,236,.58)!important;
  border-radius:9px!important;
  background:var(--ms-hist-badge)!important;
  color:#fff!important;
  line-height:1!important;
  text-align:center!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-titles small{
  display:block!important;
  margin:0 0 2px!important;
  color:#eaf8ef!important;
  font-size:.42rem!important;
  font-style:normal!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
  line-height:1!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-titles strong{
  display:block!important;
  color:#fff!important;
  font-size:1rem!important;
  font-style:normal!important;
  font-weight:950!important;
  line-height:1!important;
}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .is-podium-gold .ms-history-ranking-titles strong{color:#f4c542!important}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .is-podium-silver .ms-history-ranking-titles strong{color:#d7dde2!important}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .is-podium-bronze .ms-history-ranking-titles strong{color:#d58a4a!important}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .is-podium-gold .ms-history-ranking-pos{border-color:#f4c542!important;color:#ffe783!important}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .is-podium-silver .ms-history-ranking-pos{border-color:#cbd3da!important;color:#eef2f4!important}
html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .is-podium-bronze .ms-history-ranking-pos{border-color:#d58a4a!important;color:#f0b07e!important}

@media(max-width:640px){
  html[data-tessirve-theme="canchero"] .ms-history-modal .ms-history-modal-dialog{
    width:min(94vw,500px)!important;
    max-height:calc(100dvh - 18px)!important;
    overflow:auto!important;
    border-radius:15px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking{
    padding:0 9px 10px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking>header{
    min-height:66px!important;
    margin:0 -9px 8px!important;
    padding:9px 40px 8px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking>header .ms-crest,
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking>header .ms-crest-fallback{
    width:43px!important;
    max-width:43px!important;
    height:32px!important;
    max-height:32px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking>header small{font-size:.56rem!important}
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-list{gap:5px!important}
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-row{
    grid-template-columns:29px minmax(0,1fr) 58px!important;
    gap:6px!important;
    min-height:56px!important;
    padding:6px!important;
    border-radius:10px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-pos{
    width:27px!important;height:27px!important;font-size:.66rem!important;border-radius:7px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-club{gap:6px!important}
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-crest{
    flex-basis:29px!important;width:29px!important;height:29px!important;min-width:29px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest{
    width:29px!important;max-width:29px!important;height:29px!important;max-height:29px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest-fallback{
    width:28px!important;max-width:28px!important;height:28px!important;max-height:28px!important;font-size:.44rem!important;
  }
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-team{font-size:.70rem!important}
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-title-years{padding-left:35px!important;gap:2px!important}
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-title-year{min-height:16px!important;padding:2px 5px!important;font-size:.44rem!important}
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-titles{
    width:56px!important;min-width:56px!important;height:43px!important;border-radius:8px!important;
  }
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-titles strong{font-size:.88rem!important}
  html[data-tessirve-theme="canchero"] .ms-history-modal-content.is-ranking .ms-history-ranking-titles small{font-size:.37rem!important}
}


/* 5.17.66 — PC: el escudo fantasma del equipo vuelve al lateral DERECHO. */
@media(min-width:1000px){
  body.has-team-background-crest .ms-site-main:before{
    right:clamp(-58px,-3vw,-28px)!important;
    left:auto!important;
    top:clamp(28px,3vw,48px)!important;
    transform:rotate(-5deg)!important;
  }
}


/* 5.17.67 — Canchero PC: watermark realmente visible en el lateral derecho. */
@media(min-width:1000px){
  html[data-tessirve-theme="canchero"] body.has-canchero-watermark .ms-site-main::before{
    height:clamp(175px,16vw,245px)!important;
    width:clamp(175px,16vw,245px)!important;
    right:clamp(14px,2.2vw,38px)!important;
    top:clamp(34px,4vw,64px)!important;
    opacity:.075!important;
    transform:rotate(-4deg)!important;
  }
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body.has-canchero-watermark .ms-site-main::before{opacity:.085!important}
}

/* ==========================================================================
   5.17.69 — LIVE / CALENDARIO / ESTADIOS / LAZY PROFILE
   ========================================================================== */

/* El marcador LIVE lo gobierna Tessirve Core desde tessirve-live.css. */
/* Compatibilidad del contenedor de fecha; el calendario actual es el picker propio TESSIRVE. */
.ms-home-date-jump{align-items:center;display:flex;justify-content:center;position:relative}
.ms-home-date-trigger{align-items:center;appearance:none;background:transparent!important;border:0!important;color:inherit!important;cursor:pointer;display:inline-flex;gap:7px;font:inherit;padding:6px 12px}
.ms-home-date-trigger strong{font-size:.92rem!important}
.ms-home-date-input{height:1px!important;left:50%!important;opacity:0!important;pointer-events:none!important;position:absolute!important;top:50%!important;width:1px!important}

/* Pestañas pesadas del perfil se resuelven al abrirlas. */
.ms-lazy-tab-loading{align-items:center;color:var(--ms-muted);display:flex;font-size:.8rem;font-weight:850;gap:9px;justify-content:center;min-height:150px}
.ms-lazy-tab-loading:before{animation:ms-lazy-spin .75s linear infinite;border:2px solid color-mix(in srgb,var(--ms-line),transparent 20%);border-top-color:var(--theme-primary,var(--ms-blue));border-radius:50%;content:"";height:18px;width:18px}
@keyframes ms-lazy-spin{to{transform:rotate(360deg)}}

/* En perfil de estadio, cada lado reserva una columna fija para el escudo. */
.ms-entity-venue .ms-compact-scoreline>span.is-home,.ms-entity-venue .ms-compact-scoreline>span.is-away{display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;grid-template-rows:auto auto!important;column-gap:7px!important;row-gap:2px!important}
.ms-entity-venue .ms-compact-scoreline>span.is-home .ms-compact-team-copy{grid-column:1;grid-row:1}
.ms-entity-venue .ms-compact-scoreline>span.is-home .ms-compact-crest-wrap{grid-column:2;grid-row:1;justify-self:center}
.ms-entity-venue .ms-compact-scoreline>span.is-away{grid-template-columns:38px minmax(0,1fr)!important}
.ms-entity-venue .ms-compact-scoreline>span.is-away .ms-compact-crest-wrap{grid-column:1;grid-row:1;justify-self:center}
.ms-entity-venue .ms-compact-scoreline>span.is-away .ms-compact-team-copy{grid-column:2;grid-row:1}
.ms-entity-venue .ms-compact-scoreline>span.is-home>.ms-compact-team-goals,.ms-entity-venue .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{grid-column:1/-1;grid-row:2;margin-top:1px!important}
.ms-entity-venue .ms-compact-scoreline>span.is-home>.ms-compact-team-goals{justify-content:flex-end!important}.ms-entity-venue .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{justify-content:flex-start!important}

/* Google Maps + Street View sin exigir login/API key. */
.ms-venue-maps{margin-top:22px!important}.ms-venue-maps .ms-section-heading>a{font-size:.68rem;font-weight:900;text-decoration:none}
.ms-venue-map-grid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.ms-venue-map-grid.has-single-map{grid-template-columns:1fr}
.ms-venue-map-grid>article{background:var(--ms-card,#fff);border:1px solid var(--ms-line);border-radius:10px;overflow:hidden}
.ms-venue-map-grid>article>header{align-items:center;display:flex;justify-content:space-between;padding:8px 10px}.ms-venue-map-grid>article>header strong{font-size:.76rem}.ms-venue-map-grid>article>header small{color:var(--ms-muted);font-size:.58rem}
.ms-venue-map-grid iframe{border:0;display:block;height:330px;width:100%}
html[data-tessirve-color-mode="dark"] .ms-venue-map-grid>article{background:#161d27!important;border-color:#303947!important}

/* Confirmador de sedes históricas. */
.ms-venue-confirm-box{border:1px solid var(--ms-line);border-radius:10px;margin-top:18px;overflow:hidden}.ms-venue-confirm-box>summary{cursor:pointer;font-size:.78rem;font-weight:950;padding:10px 12px}
.ms-venue-confirm-form{padding:0 10px 12px}.ms-venue-confirm-toolbar{align-items:end;display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.ms-venue-confirm-toolbar label{display:grid;font-size:.58rem;font-weight:900;gap:3px;text-transform:uppercase}.ms-venue-confirm-toolbar select{min-width:210px}.ms-venue-confirm-toolbar>[data-ms-selected-count]{color:var(--ms-muted);font-size:.66rem;font-weight:850;margin-left:auto}
.ms-venue-confirm-grid{display:grid;gap:6px;grid-template-columns:repeat(2,minmax(0,1fr));max-height:560px;overflow:auto;padding:2px}
.ms-venue-confirm-row{align-items:center;background:var(--ms-card,#fff);border:1px solid var(--ms-line);border-radius:8px;cursor:pointer;display:grid;gap:7px;grid-template-columns:auto 82px minmax(0,1fr);padding:7px 8px}.ms-venue-confirm-row:hover{border-color:color-mix(in srgb,var(--theme-primary,var(--ms-blue)),var(--ms-line) 35%)}
.ms-venue-confirm-row>input{height:16px;width:16px}.ms-venue-confirm-date{display:flex;flex-direction:column;font-size:.66rem;font-weight:900}.ms-venue-confirm-date small{color:var(--ms-muted);font-size:.51rem;font-weight:750}.ms-venue-confirm-teams{align-items:center;display:grid;gap:4px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);min-width:0}.ms-venue-confirm-teams>span{align-items:center;display:flex;gap:4px;min-width:0}.ms-venue-confirm-teams>span:last-child{flex-direction:row-reverse;text-align:right}.ms-venue-confirm-teams .ms-crest,.ms-venue-confirm-teams .ms-crest-fallback{height:22px!important;max-width:22px!important;width:22px!important}.ms-venue-confirm-teams b{font-size:.64rem;line-height:1.05}.ms-venue-confirm-teams em{font-size:.58rem;font-style:normal;font-weight:950}.ms-venue-confirm-row[hidden]{display:none!important}
html[data-tessirve-color-mode="dark"] .ms-venue-confirm-row{background:#161d27!important;border-color:#303947!important}

@media(max-width:720px){.ms-venue-map-grid,.ms-venue-confirm-grid{grid-template-columns:1fr}.ms-venue-map-grid iframe{height:280px}.ms-venue-confirm-toolbar>[data-ms-selected-count]{margin-left:0;width:100%}.ms-entity-venue .ms-compact-scoreline>span.is-home{grid-template-columns:minmax(0,1fr) 30px!important}.ms-entity-venue .ms-compact-scoreline>span.is-away{grid-template-columns:30px minmax(0,1fr)!important}}



/* ==========================================================================
   5.17.70 — LIVE + GOLEADORES SIEMPRE VISIBLES EN PC
   ========================================================================== */
@media(min-width:561px){
  .ms-home-today .ms-compact-team-goals,
  .ms-home-today .ms-compact-match:hover .ms-compact-team-goals{
    display:flex!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  }
  .ms-home-today .ms-compact-goal-item,
  .ms-home-today .ms-compact-goal-item b,
  .ms-home-today .ms-compact-goal-item a{color:var(--ms-ink)!important;opacity:1!important;visibility:visible!important}
  .ms-home-today .ms-compact-goal-item small{color:var(--ms-muted)!important;opacity:1!important;visibility:visible!important}
  html[data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-goal-item :is(b,a){color:#f8fafc!important}
  html[data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-goal-item small{color:#cbd5e1!important}
  html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-goal-item :is(b,a){color:var(--ms-pitch-copy,#fff)!important}
  html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-goal-item small{color:var(--ms-pitch-copy-muted,#d7f0df)!important}
}


/* ==========================================================================
   5.17.71 — CALENDARIO TESSIRVE + STATUS + GOLEADORES EN AGENDA
   ========================================================================== */

/* Calendario propio: la fecha central deja de depender del input nativo. */
.ms-home-date-jump{align-items:center;display:flex;justify-content:center;position:relative;z-index:30}
.ms-home-date-trigger{
  align-items:center!important;appearance:none!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-primary,#175cd3),#fff 96%),color-mix(in srgb,var(--theme-primary,#175cd3),#fff 91%))!important;
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3),#cbd5e1 70%)!important;
  border-radius:999px!important;
  box-shadow:0 3px 10px color-mix(in srgb,var(--theme-primary,#175cd3),transparent 91%)!important;
  color:var(--ms-ink)!important;cursor:pointer;display:inline-flex!important;gap:7px!important;
  min-height:34px;padding:5px 12px!important;transition:background .17s ease,border-color .17s ease,box-shadow .17s ease,transform .17s ease!important
}
.ms-home-date-trigger:hover,.ms-home-date-jump.is-open .ms-home-date-trigger{
  background:color-mix(in srgb,var(--theme-primary,#175cd3),#fff 88%)!important;
  border-color:color-mix(in srgb,var(--theme-primary,#175cd3),#cbd5e1 40%)!important;
  box-shadow:0 5px 16px color-mix(in srgb,var(--theme-primary,#175cd3),transparent 84%)!important;
  transform:translateY(-1px)
}
.ms-home-date-trigger strong{font-size:.92rem!important;font-variant-numeric:tabular-nums;letter-spacing:.01em!important}
.ms-home-date-trigger-chevron{align-items:center;color:color-mix(in srgb,var(--theme-primary,#175cd3),var(--ms-ink,#111827) 12%);display:inline-flex!important;height:16px;justify-content:center;opacity:.92!important;transform-origin:center;transition:color .17s ease,transform .18s ease!important;width:16px}
.ms-home-date-trigger-chevron svg{fill:none;height:15px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.35;width:15px}
.ms-home-date-trigger:hover .ms-home-date-trigger-chevron,.ms-home-date-jump.is-open .ms-home-date-trigger-chevron{color:var(--theme-primary,#175cd3)}
.ms-home-date-jump.is-open .ms-home-date-trigger-chevron{transform:rotate(180deg)!important}

.ms-home-calendar-popover{
  background:color-mix(in srgb,var(--ms-card,#fff),#fff 88%);
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3),#d0d5dd 68%);
  border-radius:18px;box-shadow:0 22px 55px rgba(15,23,42,.18),0 4px 14px color-mix(in srgb,var(--theme-primary,#175cd3),transparent 86%);
  left:50%;opacity:0;padding:8px 10px 9px;position:absolute;top:calc(100% + 9px);
  transform:translate(-50%,-7px) scale(.975);transform-origin:50% 0;
  transition:opacity .17s ease,transform .17s ease,visibility .17s ease;visibility:hidden;width:min(334px,calc(100vw - 28px));z-index:1600
}
.ms-home-calendar-popover[hidden]{display:none!important}
.ms-home-date-jump.is-open .ms-home-calendar-popover{opacity:1;transform:translate(-50%,0) scale(1);visibility:visible}
.ms-home-calendar-popover-head{
  align-items:center;background:linear-gradient(112deg,color-mix(in srgb,var(--theme-primary,#175cd3),#10243f 20%),color-mix(in srgb,var(--theme-secondary,#173253),#0b1729 14%));
  border-radius:13px;color:#fff;display:grid;grid-template-columns:24px 34px minmax(0,1fr) 34px 24px;min-height:48px;padding:5px 6px;position:relative;overflow:hidden
}
.ms-home-calendar-popover-head:after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.13),transparent);content:"";height:140%;left:-45%;pointer-events:none;position:absolute;top:-20%;transform:skewX(-20deg);width:34%}
.ms-home-date-jump.is-open .ms-home-calendar-popover-head:after{animation:ms-calendar-sheen 1.05s .08s ease both}
@keyframes ms-calendar-sheen{to{left:125%}}
.ms-home-calendar-popover-head>strong{font-size:.78rem!important;font-weight:950!important;letter-spacing:.02em;text-align:center;text-transform:capitalize;white-space:nowrap;z-index:1}
.ms-home-calendar-star{animation:ms-calendar-star 1.7s ease-in-out infinite alternate;color:#fff4b8;font-size:.62rem;font-style:normal;justify-self:center;line-height:1;opacity:.86;text-shadow:0 0 8px rgba(255,238,146,.7);z-index:1}
.ms-home-calendar-star.is-right{animation-delay:.7s}
@keyframes ms-calendar-star{from{opacity:.48;transform:scale(.86) rotate(-8deg)}to{opacity:1;transform:scale(1.12) rotate(8deg)}}
.ms-home-calendar-month-arrow{align-items:center;appearance:none;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.22);border-radius:9px;color:#fff;cursor:pointer;display:flex;height:30px;justify-content:center;justify-self:center;padding:0;transition:background .15s ease,transform .15s ease;width:30px;z-index:1}
.ms-home-calendar-month-arrow:hover{background:rgba(255,255,255,.18);transform:translateY(-1px)}
.ms-home-calendar-month-arrow span{font-family:Arial,sans-serif;font-size:1.35rem;font-weight:800;line-height:.7;transform:translateY(-1px)}
.ms-home-calendar-weekdays,.ms-home-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.ms-home-calendar-weekdays{margin:9px 1px 4px}
.ms-home-calendar-weekdays span{color:var(--ms-muted);font-size:.53rem;font-weight:950;letter-spacing:.035em;text-align:center;text-transform:uppercase}
.ms-home-calendar-day{align-items:center;appearance:none;background:transparent;border:1px solid transparent;border-radius:9px;color:var(--ms-ink);cursor:pointer;display:flex;font-size:.72rem;font-weight:880;height:34px;justify-content:center;padding:0;position:relative;transition:background .14s ease,border-color .14s ease,color .14s ease,transform .14s ease}
.ms-home-calendar-day.is-blank{cursor:default;pointer-events:none}
.ms-home-calendar-day:not(.is-blank):hover{background:color-mix(in srgb,var(--theme-primary,#175cd3),#fff 89%);border-color:color-mix(in srgb,var(--theme-primary,#175cd3),#d0d5dd 55%);transform:translateY(-1px)}
.ms-home-calendar-day.is-weekend:not(.is-selected){color:color-mix(in srgb,var(--theme-primary,#175cd3),var(--ms-ink) 42%)}
.ms-home-calendar-day.is-today:not(.is-selected):after{background:var(--theme-primary,#175cd3);border-radius:999px;bottom:3px;content:"";height:3px;left:50%;position:absolute;transform:translateX(-50%);width:3px}
.ms-home-calendar-day.is-selected{background:linear-gradient(145deg,var(--theme-primary,#175cd3),color-mix(in srgb,var(--theme-primary,#175cd3),#06172e 30%));border-color:transparent;color:#fff!important;box-shadow:0 5px 12px color-mix(in srgb,var(--theme-primary,#175cd3),transparent 72%);transform:translateY(-1px)}
.ms-home-calendar-footer{align-items:center;border-top:1px solid color-mix(in srgb,var(--theme-primary,#175cd3),#d0d5dd 78%);display:flex;gap:9px;justify-content:center;margin-top:7px;padding-top:8px}
.ms-home-calendar-footer button{appearance:none;background:transparent;border:0;color:color-mix(in srgb,var(--theme-primary,#175cd3),var(--ms-ink) 20%);cursor:pointer;font:inherit;font-size:.66rem;font-weight:950;padding:3px 5px;transition:color .14s ease,transform .14s ease}
.ms-home-calendar-footer button:hover{color:var(--theme-primary,#175cd3);transform:translateY(-1px)}
.ms-home-calendar-footer i{color:var(--theme-primary,#175cd3);font-size:.58rem;font-style:normal;opacity:.65}

html[data-tessirve-color-mode="dark"] .ms-home-date-trigger{background:linear-gradient(180deg,#1d2a3a,#192433)!important;border-color:#40516a!important;color:#f8fafc!important;box-shadow:0 4px 13px rgba(0,0,0,.18)!important}
html[data-tessirve-color-mode="dark"] .ms-home-date-trigger:hover,html[data-tessirve-color-mode="dark"] .ms-home-date-jump.is-open .ms-home-date-trigger{background:#22334a!important;border-color:color-mix(in srgb,var(--theme-primary,#4f8ff7),#64748b 42%)!important}
html[data-tessirve-color-mode="dark"] .ms-home-date-trigger-chevron{color:color-mix(in srgb,var(--theme-primary,#4f8ff7),#fff 32%)}
html[data-tessirve-theme="canchero"] .ms-home-date-trigger-chevron{color:var(--ms-pitch-copy,#f8fff9)}
html[data-tessirve-color-mode="dark"] .ms-home-calendar-popover{background:#121b27;border-color:#3a4b62;box-shadow:0 24px 60px rgba(0,0,0,.45),0 4px 18px color-mix(in srgb,var(--theme-primary,#4f8ff7),transparent 86%)}
html[data-tessirve-color-mode="dark"] .ms-home-calendar-day{color:#f8fafc}
html[data-tessirve-color-mode="dark"] .ms-home-calendar-day:not(.is-blank):hover{background:#223149;border-color:#40516a}
html[data-tessirve-color-mode="dark"] .ms-home-calendar-day.is-weekend:not(.is-selected){color:#b9d1f7}
html[data-tessirve-color-mode="dark"] .ms-home-calendar-footer{border-top-color:#314156}
html[data-tessirve-color-mode="dark"] .ms-home-calendar-footer button{color:#c9d8ec}
html[data-tessirve-theme="canchero"] .ms-home-calendar-popover-head{background:linear-gradient(112deg,color-mix(in srgb,var(--theme-primary,#1f7443),#0d321f 16%),#0b3b24)}
html[data-tessirve-theme="canchero"] .ms-home-calendar-star{color:#ffe57f;text-shadow:0 0 8px rgba(255,229,127,.72)}

/* Estados FINAL / PROG. / LIVE: definidos únicamente por Tessirve Core. */

/* En PC los goleadores conocidos ocupan SIEMPRE la segunda línea de su equipo. */
@media(min-width:561px){
  .ms-home-today .ms-compact-scoreline>span.is-home,.ms-home-today .ms-compact-scoreline>span.is-away{grid-template-rows:minmax(28px,auto) auto!important;row-gap:1px!important}
  .ms-home-today .ms-compact-scoreline>span.is-home>.ms-compact-team-goals{display:flex!important;grid-column:1!important;grid-row:2!important;justify-self:end!important;margin:1px 0 0!important;opacity:1!important;position:static!important;transform:none!important;visibility:visible!important}
  .ms-home-today .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{display:flex!important;grid-column:2!important;grid-row:2!important;justify-self:start!important;margin:1px 0 0!important;opacity:1!important;position:static!important;transform:none!important;visibility:visible!important}
  .ms-home-today .ms-compact-goal-row{display:flex!important;min-height:11px!important}
}

@media(max-width:560px){
  .ms-home-calendar-popover{padding:7px 8px 8px;width:min(318px,calc(100vw - 20px))}
  .ms-home-calendar-popover-head{grid-template-columns:22px 32px minmax(0,1fr) 32px 22px;min-height:45px}
  .ms-home-calendar-month-arrow{height:28px;width:28px}
  .ms-home-calendar-day{font-size:.69rem;height:32px}
  .ms-home-calendar-weekdays span{font-size:.49rem}
  .ms-home-date-trigger{min-height:32px;padding:4px 10px!important}
  .ms-home-date-trigger strong{font-size:.87rem!important}
}


/* Global del marcador: definido únicamente por Tessirve Core. */

/* =============================================================
 * 5.17.75 — buscador restaurado + logo retocado + tarjetas solo en perfiles
 * ============================================================= */
.ms-brand{gap:10px!important}
.ms-brand-mark{align-items:center;display:inline-flex!important;height:38px!important;justify-content:center;position:relative!important;width:38px!important}
.ms-brand-badge{align-items:center;display:inline-flex;height:38px;justify-content:center;width:38px}
.ms-brand-shield{display:block;height:38px;width:38px}
.ms-brand-ball{background:url("goal-ball.png") center/contain no-repeat;bottom:-2px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.22));height:16px;position:absolute;right:-3px;width:16px}
.ms-brand-name{letter-spacing:.06em!important;text-shadow:1px 1px 0 color-mix(in srgb,var(--theme-primary),#000 55%)!important}
.ms-brand:hover .ms-brand-ball{transform:translateY(-1px) scale(1.04)}

.ms-header-search-toggle{overflow:hidden!important}
.ms-header-search-toggle-icon{align-items:center;display:inline-flex;height:26px;justify-content:center;position:relative;width:26px}
.ms-header-search-toggle-ball,.ms-search-field-ball-icon{background:url("goal-ball.png") center/contain no-repeat;display:inline-block;filter:drop-shadow(0 2px 3px rgba(0,0,0,.18))}
.ms-header-search-toggle-ball{height:24px;width:24px}
.ms-header-search-toggle-loupe{bottom:-1px;display:block;height:12px;position:absolute;right:-1px;width:12px}
.ms-header-search-toggle-loupe circle,.ms-header-search-toggle-loupe path{fill:none;stroke:#f8fafc;stroke-linecap:round;stroke-width:2.2}
.ms-header-search-panel .ms-public-global-search>label{align-items:center;display:grid;grid-template-columns:18px minmax(0,1fr) auto;column-gap:10px}
.ms-search-field-ball-icon{height:16px;width:16px}
/* limpiamos la versión morph vieja si quedó cacheada */
.ms-search-morph-icon,.ms-search-ai-orbit,.ms-search-field-morph{display:block!important}

/* Tarjetas compactas: SOLO para perfiles/jugadores. El main vuelve al layout original. */
body.single-ms_team .ms-compact-match-grid,
body.single-ms_player .ms-compact-match-grid{ }
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline{gap:10px!important;grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr)!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-center,
body.single-ms_player .ms-compact-match-grid .ms-compact-center{align-items:center!important;display:grid!important;gap:3px!important;justify-items:center!important;min-width:96px!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-home,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-home,
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-away,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-away{align-items:center!important;display:grid!important;min-width:0!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-home,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-home{column-gap:8px!important;grid-template-columns:minmax(88px,1fr) minmax(0,1fr) 34px!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-away,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-away{column-gap:8px!important;grid-template-columns:34px minmax(0,1fr) minmax(88px,1fr)!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-team-goals,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-team-goals{align-items:flex-start!important;grid-column:1!important;justify-self:start!important;text-align:left!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-team-copy,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-team-copy{align-items:flex-end!important;grid-column:2!important;justify-self:end!important;text-align:right!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-crest-wrap,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-crest-wrap{grid-column:3!important;justify-self:center!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-crest-wrap,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-crest-wrap{grid-column:1!important;justify-self:center!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-team-copy,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-team-copy{align-items:flex-start!important;grid-column:2!important;justify-self:start!important;text-align:left!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-team-goals,
body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{align-items:flex-end!important;grid-column:3!important;justify-self:end!important;text-align:right!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-team-copy>strong,
body.single-ms_player .ms-compact-match-grid .ms-compact-team-copy>strong{display:flex;line-height:1.08!important;min-width:0!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-team-copy>strong .ms-compact-team-name,
body.single-ms_player .ms-compact-match-grid .ms-compact-team-copy>strong .ms-compact-team-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.single-ms_team .ms-compact-match-grid .ms-compact-crest-wrap,
body.single-ms_player .ms-compact-match-grid .ms-compact-crest-wrap{align-items:center!important;display:flex!important;justify-content:center!important;min-width:34px!important;width:34px!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-crest-wrap .ms-crest,
body.single-ms_team .ms-compact-match-grid .ms-compact-crest-wrap .ms-crest-fallback,
body.single-ms_team .ms-compact-match-grid .ms-compact-crest-wrap img,
body.single-ms_player .ms-compact-match-grid .ms-compact-crest-wrap .ms-crest,
body.single-ms_player .ms-compact-match-grid .ms-compact-crest-wrap .ms-crest-fallback,
body.single-ms_player .ms-compact-match-grid .ms-compact-crest-wrap img{height:28px!important;max-height:28px!important;max-width:28px!important;width:28px!important}

/* Goleadores en vertical y homogéneos: sólo en perfiles/jugadores. */
body.single-ms_team .ms-compact-match-grid .ms-compact-team-goals,
body.single-ms_player .ms-compact-match-grid .ms-compact-team-goals{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;gap:2px!important;line-height:1.04!important;margin-top:0!important;row-gap:2px!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-team-goals.is-home,
body.single-ms_player .ms-compact-match-grid .ms-compact-team-goals.is-home{align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-team-goals.is-away,
body.single-ms_player .ms-compact-match-grid .ms-compact-team-goals.is-away{align-items:flex-end!important;justify-content:flex-start!important;text-align:right!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-goal-item,
body.single-ms_player .ms-compact-match-grid .ms-compact-goal-item{align-items:baseline!important;display:inline-flex!important;gap:2px!important;max-width:100%!important;white-space:nowrap!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-team-goals.is-home .ms-compact-goal-item,
body.single-ms_player .ms-compact-match-grid .ms-compact-team-goals.is-home .ms-compact-goal-item{flex-direction:row!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-team-goals.is-away .ms-compact-goal-item,
body.single-ms_player .ms-compact-match-grid .ms-compact-team-goals.is-away .ms-compact-goal-item{flex-direction:row-reverse!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-goal-item b,
body.single-ms_player .ms-compact-match-grid .ms-compact-goal-item b{font-size:.57rem!important;font-weight:900!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-goal-item small,
body.single-ms_player .ms-compact-match-grid .ms-compact-goal-item small{font-size:.53rem!important;font-weight:850!important;line-height:1!important}
body.single-ms_team .ms-compact-match-grid .ms-compact-goal-item>i,
body.single-ms_player .ms-compact-match-grid .ms-compact-goal-item>i,
body.single-ms_team .ms-compact-match-grid .ms-compact-goal-icon,
body.single-ms_player .ms-compact-match-grid .ms-compact-goal-icon{display:none!important}

@media(max-width:780px){
  body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline,
  body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline{gap:7px!important;grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr)!important}
  body.single-ms_team .ms-compact-match-grid .ms-compact-center,
  body.single-ms_player .ms-compact-match-grid .ms-compact-center{min-width:78px!important}
  body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-home,
  body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-home{grid-template-columns:minmax(72px,1fr) minmax(0,1fr) 28px!important}
  body.single-ms_team .ms-compact-match-grid .ms-compact-scoreline>span.is-away,
  body.single-ms_player .ms-compact-match-grid .ms-compact-scoreline>span.is-away{grid-template-columns:28px minmax(0,1fr) minmax(72px,1fr)!important}
  body.single-ms_team .ms-compact-match-grid .ms-compact-crest-wrap,
  body.single-ms_player .ms-compact-match-grid .ms-compact-crest-wrap{min-width:28px!important;width:28px!important}
  body.single-ms_team .ms-compact-match-grid .ms-compact-crest-wrap .ms-crest,
  body.single-ms_team .ms-compact-match-grid .ms-compact-crest-wrap .ms-crest-fallback,
  body.single-ms_team .ms-compact-match-grid .ms-compact-crest-wrap img,
  body.single-ms_player .ms-compact-match-grid .ms-compact-crest-wrap .ms-crest,
  body.single-ms_player .ms-compact-match-grid .ms-compact-crest-wrap .ms-crest-fallback,
  body.single-ms_player .ms-compact-match-grid .ms-compact-crest-wrap img{height:24px!important;max-height:24px!important;max-width:24px!important;width:24px!important}
  body.single-ms_team .ms-compact-match-grid .ms-compact-goal-item b,
  body.single-ms_player .ms-compact-match-grid .ms-compact-goal-item b{font-size:.52rem!important}
  body.single-ms_team .ms-compact-match-grid .ms-compact-goal-item small,
  body.single-ms_player .ms-compact-match-grid .ms-compact-goal-item small{font-size:.49rem!important}
}

/* 5.17.75 — reactivar el buscador IA completo */
.ms-search-morph-icon,.ms-search-ai-orbit,.ms-search-field-morph{display:block!important}
.ms-header-search-toggle-icon,.ms-search-field-ball-icon{display:none!important}
.ms-search-ai .ms-search-morph-ball .ms-search-ball-shell,
.ms-search-field-morph .ms-search-field-ball .ms-search-ball-shell{fill:#f8fbff!important;stroke:#8ecfff!important;stroke-width:1.45!important}
.ms-search-ai .ms-search-morph-ball .ms-search-ball-patch,
.ms-search-field-morph .ms-search-field-ball .ms-search-ball-patch{fill:#e6eef8!important;stroke:#8ecfff!important;stroke-width:1.05!important}
.ms-search-ai .ms-search-morph-ball .ms-search-ball-seams,
.ms-search-field-morph .ms-search-field-ball .ms-search-ball-seams{stroke:#6aa8dd!important;stroke-width:1.2!important}

/* =============================================================
 * 5.17.76 — logo fútbol real + buscador IA conserva todos sus estados
 * ============================================================= */
.ms-brand-mark{height:40px!important;width:40px!important}
.ms-brand-badge,.ms-brand-shield{height:40px!important;width:40px!important}
.ms-brand-ball{
  background:url("goal-ball.png") center/contain no-repeat!important;
  bottom:1px!important;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.28))!important;
  height:17px!important;
  left:50%!important;
  right:auto!important;
  top:auto!important;
  transform:translateX(-50%)!important;
  width:17px!important;
}
.ms-brand:hover .ms-brand-ball{transform:translateX(-50%) translateY(-1px) scale(1.05)!important}

/* La secuencia sigue siendo: lupa → pelota → trofeo → historial → marca.
   Sólo reemplazamos el dibujo de la pelota por la misma PNG usada en el logo/goles. */
.ms-header-search-toggle{position:relative!important}
.ms-search-morph-ball{animation:none!important;opacity:0!important}
.ms-search-real-ball-phase{
  animation:ms-search-real-ball-five 10s cubic-bezier(.4,0,.2,1) infinite;
  background:url("goal-ball.png") center/contain no-repeat;
  filter:drop-shadow(0 0 5px rgba(112,190,255,.48));
  height:27px;
  left:50%;
  opacity:0;
  pointer-events:none;
  position:absolute;
  top:50%;
  transform:translate(-50%,-50%) scale(.62);
  transform-origin:center;
  width:27px;
  z-index:4;
}
@keyframes ms-search-real-ball-five{
  0%,16%{opacity:0;transform:translate(-50%,-50%) scale(.62) rotate(-18deg)}
  20%,34%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0deg)}
  38%,100%{opacity:0;transform:translate(-50%,-50%) scale(.62) rotate(18deg)}
}
.ms-search-field-icon-wrap{align-items:center;display:inline-flex;height:20px;justify-content:center;position:relative;width:20px}
.ms-search-field-morph{display:block!important;grid-column:auto!important}
.ms-search-field-ball{animation:none!important;opacity:0!important}
.ms-search-field-real-ball{
  animation:ms-search-field-real-ball-five 10s cubic-bezier(.4,0,.2,1) infinite;
  background:url("goal-ball.png") center/contain no-repeat;
  height:18px;
  left:50%;
  opacity:0;
  pointer-events:none;
  position:absolute;
  top:50%;
  transform:translate(-50%,-50%) scale(.62);
  width:18px;
  z-index:3;
}
@keyframes ms-search-field-real-ball-five{
  0%,16%{opacity:0;transform:translate(-50%,-50%) scale(.62)}
  20%,34%{opacity:1;transform:translate(-50%,-50%) scale(1)}
  38%,100%{opacity:0;transform:translate(-50%,-50%) scale(.62)}
}
.ms-search-ai-panel .ms-public-global-search>label{grid-template-columns:20px minmax(0,1fr) auto!important}
.ms-header-search-toggle-icon,.ms-search-field-ball-icon{display:none!important}
@media(prefers-reduced-motion:reduce){
  .ms-search-real-ball-phase,.ms-search-field-real-ball{animation:none!important;opacity:0!important}
}


/* 5.17.77 — logo real: pelota lateral + arco con animación de gol en hover. */
.ms-brand-mark{
  align-items:center!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--theme-primary),#fff 10%),color-mix(in srgb,var(--theme-secondary),#000 10%))!important;
  border-radius:11px!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.24)!important,inset 0 1px 0 rgba(255,255,255,.14)!important;
  display:inline-flex!important;
  height:34px!important;
  justify-content:center!important;
  overflow:hidden!important;
  position:relative!important;
  width:34px!important;
}
.ms-brand-emblem{display:block!important;height:100%!important;position:relative!important;width:100%!important}
.ms-brand-goal{display:block!important;height:100%!important;overflow:visible!important;width:100%!important}
.ms-brand-goal-frame,
.ms-brand-goal-net,
.ms-brand-goal-ground,
.ms-brand-flight{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round}
.ms-brand-goal-frame{stroke-width:2.6;opacity:.96}
.ms-brand-goal-net{opacity:.28;stroke-width:1.4}
.ms-brand-goal-ground{opacity:.24;stroke-width:2}
.ms-brand-flight{opacity:.18;stroke-dasharray:24;stroke-dashoffset:24;stroke-width:1.8;transition:stroke-dashoffset .28s ease,opacity .28s ease}
.ms-brand-ball{
  align-items:center!important;
  display:flex!important;
  height:12px!important;
  justify-content:center!important;
  left:10px!important;
  position:absolute!important;
  top:36px!important;
  transform:translate(0,0)!important;
  transition:transform .28s cubic-bezier(.34,1.45,.64,1),filter .28s ease!important;
  width:12px!important;
  z-index:2!important;
}
.ms-brand-ball-core{
  background:radial-gradient(circle at 35% 32%,#fff 0 48%,#d9e6f6 82%,#9bb8d8 100%);
  border:1px solid rgba(7,18,35,.26);
  border-radius:50%;
  box-shadow:0 1px 3px rgba(2,8,18,.28);
  display:block;
  height:12px;
  position:relative;
  width:12px;
}
.ms-brand-ball-core:before,
.ms-brand-ball-core:after{
  border:1.4px solid rgba(11,31,54,.62);
  border-color:rgba(11,31,54,.62) transparent transparent transparent;
  border-radius:50%;
  content:"";
  inset:2px;
  position:absolute;
  transform:rotate(25deg);
}
.ms-brand-ball-core:after{inset:1px 3px 5px 1px;transform:rotate(-32deg)}
.ms-brand:hover .ms-brand-ball,
.ms-brand-footer:hover .ms-brand-ball{filter:drop-shadow(0 0 4px rgba(255,255,255,.35));transform:translate(17px,-13px) scale(.97)!important}
.ms-brand:hover .ms-brand-flight,
.ms-brand-footer:hover .ms-brand-flight{opacity:.82;stroke-dashoffset:0}
html[data-tessirve-color-mode="dark"] .ms-brand-mark{box-shadow:0 0 0 1px rgba(255,255,255,.18)!important,inset 0 1px 0 rgba(255,255,255,.08)!important}

/* 5.17.77 — ranking histórico de competencias: usa el tema elegido, no el canchero por defecto. */
.ms-history-modal-content.is-ranking{
  --ms-hist-surface:color-mix(in srgb,var(--theme-primary),#fff 95%);
  --ms-hist-row:#ffffff;
  --ms-hist-border:color-mix(in srgb,var(--theme-primary),#d0d5dd 72%);
  --ms-hist-ink:color-mix(in srgb,var(--theme-secondary),#101828 20%);
  --ms-hist-badge:linear-gradient(145deg,color-mix(in srgb,var(--theme-primary),#0b1320 10%),color-mix(in srgb,var(--theme-secondary),#000 6%));
  --ms-hist-badge-ink:#fff;
}
html[data-tessirve-color-mode="dark"] .ms-history-modal-content.is-ranking{
  --ms-hist-surface:color-mix(in srgb,var(--theme-secondary),#0b1320 60%);
  --ms-hist-row:color-mix(in srgb,var(--theme-secondary),#111827 68%);
  --ms-hist-border:color-mix(in srgb,var(--theme-primary),#344054 56%);
  --ms-hist-ink:#f5f7fb;
  --ms-hist-badge:linear-gradient(145deg,color-mix(in srgb,var(--theme-primary),#0b1320 34%),color-mix(in srgb,var(--theme-secondary),#000 28%));
  --ms-hist-badge-ink:#fff;
}
.ms-history-modal-content.is-ranking>header{
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-primary),#fff 86%),color-mix(in srgb,var(--theme-primary),#fff 94%))!important;
  border-bottom:1px solid var(--ms-hist-border)!important;
}
html[data-tessirve-color-mode="dark"] .ms-history-modal-content.is-ranking>header{
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-primary),#0f1723 58%),color-mix(in srgb,var(--theme-secondary),#0b1320 72%))!important;
}
.ms-history-modal-content.is-ranking .ms-history-ranking-row:nth-child(even){background:color-mix(in srgb,var(--ms-hist-row),var(--theme-primary) 3%)!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-pos{background:color-mix(in srgb,var(--theme-primary),#fff 86%)!important}
html[data-tessirve-color-mode="dark"] .ms-history-modal-content.is-ranking .ms-history-ranking-pos{background:color-mix(in srgb,var(--theme-primary),#17212e 78%)!important}
.ms-history-modal-content.is-ranking .ms-history-ranking-titles{box-shadow:inset 0 1px 0 rgba(255,255,255,.12)!important}


/* =============================================================
 * 5.17.78 — reloj LIVE compacto “AI glass”, sin tocar la fuente ni JS
 * ============================================================= */
.ms-home-today .ms-match-status-chip[data-ms-live-status-label]{
  align-items:center!important;
  border-radius:999px!important;
  display:inline-flex!important;
  font-size:.51rem!important;
  font-weight:950!important;
  gap:4px!important;
  letter-spacing:.025em!important;
  line-height:1!important;
  min-height:17px!important;
  padding:3px 7px!important;
  position:relative!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  background:linear-gradient(135deg,
    color-mix(in srgb,#ff365f,#fff 91%) 0%,
    color-mix(in srgb,var(--theme-primary,#175cd3),#fff 94%) 100%)!important;
  border:1px solid color-mix(in srgb,#ff365f,var(--theme-primary,#175cd3) 22%)!important;
  box-shadow:0 1px 5px rgba(238,44,82,.12),inset 0 1px 0 rgba(255,255,255,.85)!important;
  color:#d51f46!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:before{
  background:#ff365f;
  border-radius:50%;
  box-shadow:0 0 0 2px rgba(255,54,95,.12),0 0 6px rgba(255,54,95,.35);
  content:"";
  display:inline-block;
  height:4px;
  width:4px;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:after{
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent);
  content:"";
  inset:0;
  opacity:.36;
  pointer-events:none;
  position:absolute;
  transform:translateX(-115%);
  animation:ms-live-chip-scan 3.2s ease-in-out infinite;
}
@keyframes ms-live-chip-scan{
  0%,58%{transform:translateX(-115%)}
  78%,100%{transform:translateX(115%)}
}
/* Entretiempo y penales mantienen el mismo lenguaje visual, pero distinguidos. */
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-penalties{
  background:linear-gradient(135deg,#fff8e8,color-mix(in srgb,var(--theme-primary,#175cd3),#fff 95%))!important;
  border-color:#e7b84a!important;
  color:#9a6500!important;
  box-shadow:0 1px 5px rgba(154,101,0,.10),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  background:linear-gradient(135deg,rgba(91,24,42,.88),color-mix(in srgb,var(--theme-primary,#4f86ff),#101827 76%))!important;
  border-color:rgba(255,94,127,.62)!important;
  color:#ffd7e0!important;
  box-shadow:0 0 8px rgba(255,54,95,.16),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  background:linear-gradient(135deg,#f2fff7,#e8fff2)!important;
  border-color:#53cf86!important;
  color:#07633b!important;
  box-shadow:0 1px 5px rgba(7,99,59,.10),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:before{
  background:#19b765;
  box-shadow:0 0 0 2px rgba(25,183,101,.12),0 0 6px rgba(25,183,101,.30);
}
@media(prefers-reduced-motion:reduce){
  .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:after{animation:none!important;display:none!important}
}


/* =============================================================
 * 5.17.79 — isotipo arco+pelota + estados finos con iconografía propia
 * ============================================================= */
.ms-brand-mark{
  align-items:center!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--theme-primary),#fff 7%),color-mix(in srgb,var(--theme-secondary),#000 12%))!important;
  border:1px solid rgba(255,255,255,.36)!important;
  border-radius:10px!important;
  box-shadow:0 2px 8px rgba(1,15,35,.20),inset 0 1px 0 rgba(255,255,255,.16)!important;
  display:inline-flex!important;
  height:34px!important;
  justify-content:center!important;
  overflow:hidden!important;
  position:relative!important;
  width:44px!important;
}
.ms-brand-emblem{display:block!important;height:100%!important;position:relative!important;width:100%!important}
.ms-brand-goal{display:block!important;height:100%!important;width:100%!important}
.ms-brand-ground,.ms-brand-flight,.ms-brand-goal-depth,.ms-brand-goal-frame,.ms-brand-goal-net{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round}
.ms-brand-ground{opacity:.28;stroke-width:1.25}
.ms-brand-spot{fill:#fff;opacity:.72}
.ms-brand-goal-frame{stroke-width:2.25}
.ms-brand-goal-depth{opacity:.52;stroke-width:1.35}
.ms-brand-goal-net{opacity:.25;stroke-width:.82;transform-origin:52px 23px;transition:transform .24s ease,opacity .24s ease}
.ms-brand-flight{opacity:0;stroke-dasharray:38;stroke-dashoffset:38;stroke-width:1.2;transition:opacity .18s ease,stroke-dashoffset .28s ease}
.ms-brand-ball{
  background:url("goal-ball.png") center/contain no-repeat!important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.26));
  height:13px!important;
  left:7px!important;
  position:absolute!important;
  top:22px!important;
  transform:translate(0,0) rotate(0)!important;
  transform-origin:center!important;
  transition:transform .32s cubic-bezier(.3,1.32,.55,1),filter .2s ease!important;
  width:13px!important;
  z-index:3!important;
}
.ms-brand-ball-core{display:none!important}
.ms-brand:hover .ms-brand-ball,.ms-brand-footer:hover .ms-brand-ball{filter:drop-shadow(0 0 4px rgba(255,255,255,.48));transform:translate(25px,-8px) rotate(220deg) scale(.92)!important}
.ms-brand:hover .ms-brand-flight,.ms-brand-footer:hover .ms-brand-flight{opacity:.62;stroke-dashoffset:0}
.ms-brand:hover .ms-brand-goal-net,.ms-brand-footer:hover .ms-brand-goal-net{opacity:.42;transform:scaleX(1.035)}
@media(max-width:782px){.ms-brand-mark{height:32px!important;width:41px!important}.ms-brand-ball{height:12px!important;width:12px!important;top:21px!important}}

/* Status chips: misma lógica/fuente, sólo presentación. Los iconos son masks SVG
   monocromos para heredar exactamente el color de cada estado/theme. */
.ms-home-today .ms-match-status-chip[data-ms-live-status-label]{
  gap:4px!important;
  min-height:18px!important;
  overflow:hidden!important;
  padding:3px 7px!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label]:before{
  background:currentColor!important;
  border-radius:0!important;
  box-shadow:none!important;
  content:""!important;
  display:inline-block!important;
  flex:0 0 10px!important;
  height:10px!important;
  width:10px!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 2h6v2h-2v1.1a8 8 0 1 1-2 0V4H9V2Zm3 5a6 6 0 1 0 6 6 6 6 0 0 0-6-6Zm1 2v3.4l2.4 1.4-1 1.7-3.4-2V9h2Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 2h6v2h-2v1.1a8 8 0 1 1-2 0V4H9V2Zm3 5a6 6 0 1 0 6 6 6 6 0 0 0-6-6Zm1 2v3.4l2.4 1.4-1 1.7-3.4-2V9h2Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-penalties:before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5h18v12h-2V7H5v10H3V5Zm4 5h10v7h-2v-5H9v5H7v-7Zm5 7.2a2.4 2.4 0 1 1 0 4.8 2.4 2.4 0 0 1 0-4.8Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5h18v12h-2V7H5v10H3V5Zm4 5h10v7h-2v-5H9v5H7v-7Zm5 7.2a2.4 2.4 0 1 1 0 4.8 2.4 2.4 0 0 1 0-4.8Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-final:before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 3h2v18H5V3Zm3 2h11l-2.2 4L19 13H8V5Zm2 2v4h5.6l-1-2 1.1-2H10Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 3h2v18H5V3Zm3 2h11l-2.2 4L19 13H8V5Zm2 2v4h5.6l-1-2 1.1-2H10Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-scheduled:before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2h2v2h6V2h2v2h3v17H4V4h3V2Zm11 8H6v9h12v-9Zm-6 1h2v3.6l2.2 1.3-1 1.7-3.2-1.9V11Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2h2v2h6V2h2v2h3v17H4V4h3V2Zm11 8H6v9h12v-9Zm-6 1h2v3.6l2.2 1.3-1 1.7-3.2-1.9V11Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:after{opacity:.22!important}
.ms-home-today .ms-compact-pen-score{
  color:#ad7600!important;
  display:block!important;
  font-size:.55rem!important;
  font-style:normal!important;
  font-weight:950!important;
  letter-spacing:.03em!important;
  line-height:1!important;
  margin:1px 0 0!important;
  min-height:0!important;
  white-space:nowrap!important;
}
.ms-home-today .ms-compact-pen-score.is-empty{display:none!important}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-pen-score{color:#ffd76b!important}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-pen-score{color:#ffe784!important;text-shadow:0 1px 2px rgba(3,45,27,.48)!important}
.ms-score-penalty-result{color:#a56d00;display:block;font-size:.76rem;font-weight:950;margin-top:4px}.ms-score-penalty-result.is-empty{display:none}
html[data-tessirve-color-mode="dark"] .ms-score-penalty-result{color:#ffd76b}

@media(prefers-reduced-motion:reduce){.ms-brand-ball,.ms-brand-flight,.ms-brand-goal-net{transition:none!important}.ms-brand:hover .ms-brand-ball,.ms-brand-footer:hover .ms-brand-ball{transform:none!important}}

/* 5.17.80 — wordmark TESSIRVE con pelotita diagonal, más limpio y sin arco raro. */
.ms-brand,
.ms-brand-footer{position:relative!important;gap:8px!important;overflow:visible!important}
.ms-brand-name{display:inline-block!important;font-weight:900!important;letter-spacing:-.055em!important;line-height:1!important;position:relative!important;z-index:2}
.ms-brand-mark{
  align-self:flex-end!important;
  background:transparent!important;
  border:0!important;
  border-radius:999px!important;
  box-shadow:none!important;
  display:inline-flex!important;
  flex:0 0 15px!important;
  height:15px!important;
  justify-content:center!important;
  margin-right:-2px!important;
  position:relative!important;
  transform:translateY(7px)!important;
  width:15px!important;
  z-index:3!important;
}
.ms-brand-ball-core,
.ms-brand-mark::before{
  background:
    radial-gradient(circle at 35% 33%,#fff 0 20%,#edf2f8 20% 36%,transparent 37%),
    radial-gradient(circle at 52% 50%,#172033 0 20%,transparent 21%),
    radial-gradient(circle at 70% 29%,#172033 0 10%,transparent 11%),
    radial-gradient(circle at 28% 73%,#172033 0 11%,transparent 12%),
    radial-gradient(circle at 73% 74%,#172033 0 11%,transparent 12%),
    #fff;
  border:1px solid rgba(16,24,40,.22)!important;
  border-radius:999px!important;
  box-shadow:0 1px 3px rgba(16,24,40,.22),0 0 0 1px rgba(255,255,255,.72) inset!important;
  content:"";
  display:block!important;
  height:100%!important;
  inset:0!important;
  position:absolute!important;
  width:100%!important;
}
.ms-brand-ball-core{display:none!important}
.ms-brand-mark::after{
  background:linear-gradient(90deg,rgba(23,92,211,0),rgba(23,92,211,.24) 44%,rgba(23,92,211,.62));
  border-radius:999px!important;
  content:"";
  height:3px!important;
  opacity:0!important;
  position:absolute!important;
  right:100%!important;
  top:50%!important;
  transform:translateY(-50%) scaleX(.12)!important;
  transform-origin:right center!important;
  width:30px!important;
}
.ms-brand:hover .ms-brand-mark,
.ms-brand-footer:hover .ms-brand-mark{
  filter:drop-shadow(0 1px 5px rgba(23,92,211,.35));
  transform:translate(96px,-11px) rotate(300deg)!important;
}
.ms-brand:hover .ms-brand-mark::after,
.ms-brand-footer:hover .ms-brand-mark::after{opacity:1!important;transform:translateY(-50%) scaleX(1)!important}
html[data-tessirve-color-mode="dark"] .ms-brand,
html[data-tessirve-color-mode="dark"] .ms-brand-footer{color:#fff!important}
html[data-tessirve-color-mode="dark"] .ms-brand-mark::before{border-color:rgba(255,255,255,.22)!important;box-shadow:0 1px 4px rgba(0,0,0,.32),0 0 0 1px rgba(255,255,255,.18) inset!important}
@media(max-width:782px){
  .ms-brand{gap:6px!important}
  .ms-brand-name{font-size:1.02rem!important}
  .ms-brand-mark{flex-basis:13px!important;height:13px!important;transform:translateY(6px)!important;width:13px!important}
  .ms-brand:hover .ms-brand-mark,
  .ms-brand-footer:hover .ms-brand-mark{transform:translate(72px,-9px) rotate(300deg)!important}
}
@media(prefers-reduced-motion:reduce){
  .ms-brand-mark,.ms-brand-mark::after{transition:none!important}
  .ms-brand:hover .ms-brand-mark,
  .ms-brand-footer:hover .ms-brand-mark{transform:translateY(7px)!important;filter:none!important}
}
@media(prefers-reduced-motion:reduce) and (max-width:782px){
  .ms-brand:hover .ms-brand-mark,
  .ms-brand-footer:hover .ms-brand-mark{transform:translateY(6px)!important}
}


/* 5.17.81 — chip EN VIVO con borde animado fino, sin tono rojo pesado */
.ms-home-today .ms-match-status-chip[data-ms-live-status-label]{
  isolation:isolate!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  background:linear-gradient(180deg,#f7fffb 0%,#effcf6 100%)!important;
  border:1px solid rgba(17,121,99,.22)!important;
  box-shadow:0 1px 6px rgba(6,95,70,.10), inset 0 1px 0 rgba(255,255,255,.92)!important;
  color:#0f766e!important;
  position:relative!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:before{
  background:currentColor!important;
  box-shadow:0 0 0 2px rgba(15,118,110,.10)!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:after{
  content:""!important;
  position:absolute!important;
  inset:-1px!important;
  border-radius:999px!important;
  padding:1.25px!important;
  background:conic-gradient(from var(--ms-live-angle,0deg), rgba(45,212,191,0) 0deg, rgba(45,212,191,.16) 42deg, rgba(20,184,166,.92) 98deg, rgba(56,189,248,.92) 156deg, rgba(45,212,191,.16) 214deg, rgba(45,212,191,0) 360deg)!important;
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)!important;
  -webkit-mask-composite:xor!important;
  mask-composite:exclude!important;
  opacity:.98!important;
  pointer-events:none!important;
  animation:ms-live-border-orbit 2.4s linear infinite!important;
}
@keyframes ms-live-border-orbit{
  from{--ms-live-angle:0deg}
  to{--ms-live-angle:360deg}
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  background:linear-gradient(180deg,#0d1f1c 0%,#102825 100%)!important;
  border-color:rgba(45,212,191,.28)!important;
  box-shadow:0 1px 8px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.05)!important;
  color:#8ef2e2!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  background:linear-gradient(180deg,#f4fff8 0%,#ebfff3 100%)!important;
  border-color:rgba(18,163,84,.24)!important;
  box-shadow:0 1px 6px rgba(18,163,84,.08), inset 0 1px 0 rgba(255,255,255,.94)!important;
  color:#15803d!important;
}
html[data-tessirve-theme="canchero"] .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:before{
  box-shadow:0 0 0 2px rgba(21,128,61,.10)!important;
}
@media(prefers-reduced-motion:reduce){
  .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:after{animation:none!important;opacity:.72!important}
}


/* 5.17.82 — MAIN desktop: goleadores horizontales, separados por ";". */
@media(min-width:561px){
  .ms-home-today .ms-compact-team-goals{
    align-items:baseline!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    gap:0!important;
    line-height:1.08!important;
    max-width:100%!important;
    width:100%!important;
  }
  .ms-home-today .ms-compact-team-goals.is-home{justify-content:flex-end!important;text-align:right!important}
  .ms-home-today .ms-compact-team-goals.is-away{justify-content:flex-start!important;text-align:left!important}
  .ms-home-today .ms-compact-team-goals .ms-compact-goal-row{
    align-items:baseline!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    white-space:nowrap!important;
  }
  .ms-home-today .ms-compact-team-goals .ms-compact-goal-row:not(:last-child)::after{
    color:color-mix(in srgb,currentColor,transparent 28%)!important;
    content:";"!important;
    display:inline-block!important;
    font-size:.54rem!important;
    font-weight:900!important;
    margin:0 4px 0 1px!important;
  }
  .ms-home-today .ms-compact-team-goals .ms-compact-goal-item{
    display:inline-flex!important;
    flex-direction:row!important;
    gap:0!important;
    white-space:nowrap!important;
  }
  .ms-home-today .ms-compact-team-goals .ms-compact-goal-item b,
  .ms-home-today .ms-compact-team-goals .ms-compact-goal-item small{
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }
}
/* La tanda tiene que verse sí o sí cuando hay dato persistido. */
.ms-home-today .ms-compact-pen-score:not(.is-empty){
  display:block!important;
  color:#a66b00!important;
  font-size:.56rem!important;
  font-style:normal!important;
  font-weight:950!important;
  letter-spacing:.02em!important;
  line-height:1!important;
  margin-top:1px!important;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-pen-score:not(.is-empty){color:#f7c85e!important}


/* =============================================================
 * 5.17.83 — estados semánticos definitivos
 * PROG azul · LIVE teal con borde orbitando · PEN naranja ·
 * FINAL rojizo · FINAL por penales bordó distinto.
 * ============================================================= */
.ms-match-status-chip.is-scheduled,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-scheduled{
  background:linear-gradient(180deg,#f4f8ff 0%,#edf4ff 100%)!important;
  border:1px solid #9fc0ff!important;
  box-shadow:0 1px 4px rgba(37,99,235,.08),inset 0 1px 0 rgba(255,255,255,.92)!important;
  color:#175cd3!important;
}

.ms-match-status-chip.is-final,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-final{
  background:linear-gradient(180deg,#fff5f3 0%,#fff0ed 100%)!important;
  border:1px solid #f3a69d!important;
  box-shadow:0 1px 4px rgba(180,35,24,.08),inset 0 1px 0 rgba(255,255,255,.9)!important;
  color:#b42318!important;
}

.ms-match-status-chip.is-penalties,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-penalties{
  background:linear-gradient(180deg,#fffaf0 0%,#fff3dc 100%)!important;
  border:1px solid #efb857!important;
  box-shadow:0 1px 5px rgba(202,114,0,.09),inset 0 1px 0 rgba(255,255,255,.92)!important;
  color:#b35f00!important;
}

/* La tanda terminó: sigue diciendo FINAL, pero visualmente no es el FINAL normal. */
.ms-match-status-chip.is-final-penalties,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-final-penalties{
  background:linear-gradient(180deg,#fff3f6 0%,#ffe9ef 100%)!important;
  border:1px solid #e49aaa!important;
  box-shadow:0 1px 5px rgba(139,30,63,.10),inset 0 1px 0 rgba(255,255,255,.9)!important;
  color:#8b1e3f!important;
}

/* LIVE: fondo casi neutro; el movimiento vive en el borde, no en un rojo gritón. */
.ms-match-status-chip.is-live,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  --ms-live-ring-angle:0deg;
  background:
    linear-gradient(180deg,#f5fffd 0%,#ecfbf8 100%) padding-box,
    conic-gradient(from var(--ms-live-ring-angle),
      rgba(13,148,136,.16) 0deg,
      rgba(13,148,136,.16) 42deg,
      #14b8a6 78deg,
      #38bdf8 108deg,
      #7dd3fc 128deg,
      rgba(13,148,136,.14) 164deg,
      rgba(13,148,136,.14) 360deg) border-box!important;
  border:1.5px solid transparent!important;
  box-shadow:0 1px 5px rgba(13,148,136,.09),0 0 0 1px rgba(255,255,255,.65) inset!important;
  color:#087f78!important;
  overflow:visible!important;
  animation:ms-live-ring-spin 2.15s linear infinite!important;
}
@property --ms-live-ring-angle{
  syntax:"<angle>";
  initial-value:0deg;
  inherits:false;
}
@keyframes ms-live-ring-spin{to{--ms-live-ring-angle:360deg}}

/* Desactivo el viejo barrido rojo/scan: ahora el borde es el indicador vivo. */
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:after{
  animation:none!important;
  background:none!important;
  content:none!important;
  display:none!important;
}
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:before{
  color:currentColor!important;
  box-shadow:0 0 0 2px rgba(13,148,136,.10)!important;
}

/* Icono de final por penales: bandera/check de cierre, distinto de PEN en curso. */
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-final-penalties:before{
  background:currentColor!important;
  border-radius:0!important;
  box-shadow:none!important;
  content:""!important;
  display:inline-block!important;
  flex:0 0 10px!important;
  height:10px!important;
  width:10px!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.2-5.6 6.4-3.5-3.1 1.3-1.5 2 1.8 4.3-4.9 1.5 1.3Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.2-5.6 6.4-3.5-3.1 1.3-1.5 2 1.8 4.3-4.9 1.5 1.3Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
}

/* El [x-y] acompaña el estado final por penales con el mismo bordó. */
.ms-compact-match.is-status-final-penalties .ms-compact-pen-score:not(.is-empty),
.ms-home-today .ms-compact-match.is-status-final-penalties .ms-compact-pen-score:not(.is-empty){
  color:#8b1e3f!important;
}

html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-scheduled{
  background:#14294a!important;border-color:#3569b8!important;color:#dbeafe!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-final{
  background:#3b1d1d!important;border-color:#9f4c43!important;color:#ffd6d1!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-penalties{
  background:#38280f!important;border-color:#9e6b20!important;color:#ffe0a3!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-final-penalties{
  background:#351823!important;border-color:#8f4059!important;color:#ffd2df!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-status-chip.is-live,
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  background:
    linear-gradient(180deg,#102522 0%,#0c1f1d 100%) padding-box,
    conic-gradient(from var(--ms-live-ring-angle),rgba(45,212,191,.12),#2dd4bf,#38bdf8,#67e8f9,rgba(45,212,191,.12)) border-box!important;
  color:#a7f3e7!important;
  box-shadow:0 1px 7px rgba(0,0,0,.24),0 0 9px rgba(45,212,191,.07)!important;
}

@media(prefers-reduced-motion:reduce){
  .ms-match-status-chip.is-live,
  .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{animation:none!important}
}

/* 5.17.83 — los estados semánticos mandan también sobre Canchero. */
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-scheduled{
  background:#eef5ff!important;border-color:#8fb5f7!important;color:#164eaa!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-final{
  background:#fff3ef!important;border-color:#ec9a8f!important;color:#a82e22!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-penalties{
  background:#fff5df!important;border-color:#e8ad43!important;color:#a45b00!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-final-penalties{
  background:#fff0f4!important;border-color:#df8ea2!important;color:#841f3d!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-compact-match .ms-match-status-chip.is-live{
  background:
    linear-gradient(180deg,#f2fff8 0%,#eafff2 100%) padding-box,
    conic-gradient(from var(--ms-live-ring-angle),rgba(22,163,74,.12),#22c55e,#14b8a6,#38bdf8,rgba(22,163,74,.12)) border-box!important;
  border:1.5px solid transparent!important;
  color:#13743c!important;
  animation:ms-live-ring-spin 2.15s linear infinite!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app .ms-compact-match .ms-match-status-chip.is-final{
  background:#351d1a!important;border-color:#8f473e!important;color:#ffd2cc!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app .ms-compact-match .ms-match-status-chip.is-penalties{
  background:#39270d!important;border-color:#8e651f!important;color:#ffdda0!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-app .ms-compact-match .ms-match-status-chip.is-final-penalties{
  background:#321820!important;border-color:#804055!important;color:#ffd1dc!important;
}
\n\n/* =============================================================
 * 5.17.84 / Core 5.17.137 — estados visibles + marcador reforzado
 * PROG azul · LIVE teal con cometa en el borde · PEN naranja ·
 * FINAL coral sin bandera · FINAL por penales bordó.
 * ============================================================= */
.ms-home-today .ms-match-status-chip[data-ms-live-status-label],
.ms-match-status-chip{position:relative!important}

/* PROG */
.ms-match-status-chip.is-scheduled,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-scheduled{
  background:linear-gradient(180deg,#f4f8ff,#eaf2ff)!important;
  border:1px solid #8fb5f7!important;
  color:#1456b8!important;
  box-shadow:0 1px 4px rgba(20,86,184,.10),inset 0 1px 0 rgba(255,255,255,.92)!important;
}

/* FINAL normal: coral/rojizo y SIN la bandera vieja. */
.ms-match-status-chip.is-final,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-final{
  background:linear-gradient(180deg,#fff2ef,#ffe7e2)!important;
  border:1px solid #ec8f83!important;
  color:#a93226!important;
  box-shadow:0 1px 5px rgba(169,50,38,.10),inset 0 1px 0 rgba(255,255,255,.88)!important;
}
.ms-match-status-chip.is-final:before,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-final:before,
.ms-match-status-chip.is-final-penalties:before,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-final-penalties:before{
  content:none!important;display:none!important;
}

/* PEN en curso */
.ms-match-status-chip.is-penalties,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-penalties{
  background:linear-gradient(180deg,#fff9eb,#ffefcf)!important;
  border:1px solid #e9a93d!important;
  color:#a75700!important;
  box-shadow:0 1px 5px rgba(167,87,0,.10),inset 0 1px 0 rgba(255,255,255,.92)!important;
}

/* FINAL por penales: rojo/bordó distinto al final normal. */
.ms-match-status-chip.is-final-penalties,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-final-penalties{
  background:linear-gradient(180deg,#fff0f4,#ffe1e8)!important;
  border:1px solid #d87c96!important;
  color:#801f3b!important;
  box-shadow:0 1px 5px rgba(128,31,59,.11),inset 0 1px 0 rgba(255,255,255,.9)!important;
}

/* LIVE: no depende de @property. Una pequeña luz recorre físicamente el borde. */
.ms-match-status-chip.is-live,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  background:linear-gradient(180deg,#f3fffc,#e9fbf7)!important;
  border:1px solid rgba(13,148,136,.42)!important;
  color:#087c75!important;
  box-shadow:0 1px 5px rgba(13,148,136,.10),0 0 0 1px rgba(255,255,255,.62) inset!important;
  overflow:visible!important;
  animation:none!important;
}
.ms-match-status-chip.is-live:after,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:after{
  animation:ms-live-border-comet 1.55s linear infinite!important;
  background:linear-gradient(90deg,#2dd4bf,#38bdf8)!important;
  border-radius:99px!important;
  box-shadow:0 0 4px rgba(45,212,191,.85),0 0 7px rgba(56,189,248,.44)!important;
  content:\"\"!important;
  display:block!important;
  height:2px!important;
  inset:auto!important;
  left:10%!important;
  opacity:1!important;
  pointer-events:none!important;
  position:absolute!important;
  top:-1.5px!important;
  transform:none!important;
  width:8px!important;
  z-index:4!important;
}
@keyframes ms-live-border-comet{
  0%{left:10%;top:-1.5px;transform:rotate(0deg)}
  24%{left:calc(90% - 8px);top:-1.5px;transform:rotate(0deg)}
  31%{left:calc(100% - 4px);top:25%;transform:rotate(90deg)}
  43%{left:calc(100% - 4px);top:75%;transform:rotate(90deg)}
  50%{left:calc(90% - 8px);top:calc(100% - .5px);transform:rotate(180deg)}
  74%{left:10%;top:calc(100% - .5px);transform:rotate(180deg)}
  81%{left:-4px;top:75%;transform:rotate(270deg)}
  93%{left:-4px;top:25%;transform:rotate(270deg)}
  100%{left:10%;top:-1.5px;transform:rotate(360deg)}
}

/* Marcador: mucho más legible, pesado y con sombra sutil adaptada al modo. */
.ms-home-today .ms-compact-score-pill{gap:6px!important;min-height:30px!important}
.ms-home-today .ms-compact-score-pill>b{
  color:var(--ms-ink,#0a1a33)!important;
  font-family:var(--ms-title-font),Inter,Arial,sans-serif!important;
  font-size:1.58rem!important;
  font-weight:1000!important;
  letter-spacing:-.045em!important;
  line-height:.92!important;
  text-shadow:0 1px 0 rgba(255,255,255,.82),0 2px 3px rgba(10,26,51,.18)!important;
}
.ms-home-today .ms-compact-score-pill>span{
  color:color-mix(in srgb,var(--ms-ink,#0a1a33),transparent 12%)!important;
  font-size:.92rem!important;
  font-weight:1000!important;
  line-height:1!important;
  text-shadow:0 1px 0 rgba(255,255,255,.72)!important;
}
html[data-tessirve-color-mode=\"dark\"] .ms-home-today .ms-compact-score-pill>b{
  color:#f8fbff!important;
  text-shadow:0 1px 0 #000,0 2px 4px rgba(0,0,0,.58)!important;
}
html[data-tessirve-color-mode=\"dark\"] .ms-home-today .ms-compact-score-pill>span{
  color:#e6edf7!important;text-shadow:0 1px 2px rgba(0,0,0,.65)!important;
}
html[data-tessirve-theme=\"canchero\"] .ms-home-today .ms-compact-score-pill>b{
  color:var(--ms-ink,#09291c)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.76),0 2px 3px rgba(3,58,35,.18)!important;
}
html[data-tessirve-theme=\"canchero\"][data-tessirve-color-mode=\"dark\"] .ms-home-today .ms-compact-score-pill>b{
  color:#f6fff9!important;text-shadow:0 1px 0 #042318,0 2px 4px rgba(0,0,0,.62)!important;
}

@media(max-width:560px){
  .ms-home-today .ms-compact-score-pill>b{font-size:1.38rem!important}
  .ms-home-today .ms-compact-score-pill>span{font-size:.82rem!important}
}
@media(prefers-reduced-motion:reduce){
  .ms-match-status-chip.is-live:after,
  .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:after{animation:none!important;left:calc(50% - 4px)!important;top:-1.5px!important}
}


/* =============================================================
 * 5.17.85 — estados SIN ICONOS + marcador realmente rediseñado
 * ============================================================= */

/* Ningún estado temporal lleva icono: PROG, minuto LIVE, PEN, FINAL.
   El único movimiento del LIVE es la luz del borde. */
.ms-match-status-chip::before,
.ms-match-status-chip:before,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label]::before,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label]:before{
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  flex:0 0 0!important;
  margin:0!important;
  padding:0!important;
  mask:none!important;
  -webkit-mask:none!important;
  background:none!important;
  box-shadow:none!important;
}
.ms-match-status-chip,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label]{
  gap:0!important;
}

/* LIVE conserva ÚNICAMENTE la animación del perímetro. */
.ms-match-status-chip.is-live::after,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live::after{
  animation:ms-live-border-comet 1.55s linear infinite!important;
  content:""!important;
  display:block!important;
}

/* Marcador principal del partido: cambio real de tipografía, no sólo tamaño.
   Arial Black/Segoe UI Black dan números mucho más limpios y compactos en Windows. */
.ms-home-today .ms-compact-score-pill{
  align-items:center!important;
  display:flex!important;
  gap:5px!important;
  justify-content:center!important;
  min-height:34px!important;
}
.ms-home-today .ms-compact-score-pill > b{
  color:#071a34!important;
  font-family:var(--ms-ui-font)!important;
  font-size:1.74rem!important;
  font-stretch:condensed!important;
  font-style:normal!important;
  font-variant-numeric:tabular-nums lining-nums!important;
  font-weight:900!important;
  letter-spacing:-.055em!important;
  line-height:.9!important;
  -webkit-font-smoothing:antialiased!important;
  text-rendering:geometricPrecision!important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.96),
    0 2px 2px rgba(5,22,43,.16)!important;
}
.ms-home-today .ms-compact-score-pill > span{
  color:#53647b!important;
  font-family:var(--ms-ui-font)!important;
  font-size:1.05rem!important;
  font-weight:800!important;
  letter-spacing:-.04em!important;
  line-height:1!important;
  margin:0 1px!important;
  text-shadow:0 1px 0 rgba(255,255,255,.82)!important;
}

/* Dark: luz arriba + sombra negra, para que el 1–0 no se pierda. */
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-score-pill > b{
  color:#f7fbff!important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.10),
    0 2px 3px rgba(0,0,0,.78)!important;
}
html[data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-score-pill > span{
  color:#cbd6e4!important;
  text-shadow:0 1px 2px rgba(0,0,0,.72)!important;
}

/* Canchero claro/oscuro mantiene el mismo peso pero toma contraste del theme. */
html[data-tessirve-theme="canchero"] .ms-home-today .ms-compact-score-pill > b{
  color:#08291c!important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.90),
    0 2px 2px rgba(3,58,35,.16)!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-score-pill > b{
  color:#f7fff9!important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.08),
    0 2px 3px rgba(0,0,0,.76)!important;
}

/* Mobile: misma familia; sólo baja un poco el cuerpo. */
@media(max-width:560px){
  .ms-home-today .ms-compact-score-pill{min-height:30px!important;gap:4px!important}
  .ms-home-today .ms-compact-score-pill > b{font-size:1.48rem!important}
  .ms-home-today .ms-compact-score-pill > span{font-size:.92rem!important}
}


/* =============================================================
 * 5.17.86 — LIVE visible aun con "reduced motion" + score más chico
 * ============================================================= */

/* El pequeño guion turquesa que quedaba quieto arriba era el fallback de
   prefers-reduced-motion. Se elimina por completo: la animación va en el
   propio borde, sin pseudo-elementos ni iconos. */
.ms-match-status-chip.is-live::after,
.ms-match-status-chip.is-live:after,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live::after,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live:after{
  content:none!important;
  display:none!important;
  animation:none!important;
}

/* Borde LIVE: el brillo rota TOP → RIGHT → BOTTOM → LEFT.
   No agrega ningún objeto dentro del chip. */
.ms-match-status-chip.is-live,
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  border:1px solid rgba(13,148,136,.48)!important;
  box-shadow:
    inset 0 1.5px 0 rgba(45,212,191,.86),
    0 1px 5px rgba(13,148,136,.10)!important;
  animation:ms-live-border-chase 1.45s linear infinite!important;
  will-change:box-shadow,border-color!important;
}

@keyframes ms-live-border-chase{
  0%,100%{
    border-color:rgba(45,212,191,.50);
    box-shadow:
      inset 0 1.8px 0 rgba(45,212,191,.98),
      inset 0 0 0 rgba(56,189,248,0),
      0 0 6px rgba(45,212,191,.13);
  }
  25%{
    border-color:rgba(56,189,248,.54);
    box-shadow:
      inset -1.8px 0 0 rgba(56,189,248,.98),
      inset 0 0 0 rgba(45,212,191,0),
      0 0 6px rgba(56,189,248,.14);
  }
  50%{
    border-color:rgba(45,212,191,.50);
    box-shadow:
      inset 0 -1.8px 0 rgba(45,212,191,.98),
      inset 0 0 0 rgba(56,189,248,0),
      0 0 6px rgba(45,212,191,.13);
  }
  75%{
    border-color:rgba(56,189,248,.54);
    box-shadow:
      inset 1.8px 0 0 rgba(56,189,248,.98),
      inset 0 0 0 rgba(45,212,191,0),
      0 0 6px rgba(56,189,248,.14);
  }
}

/* Si el sistema pide reducir movimiento, no lo congelamos en un "palito".
   Sólo hacemos la órbita más lenta y suave. */
@media(prefers-reduced-motion:reduce){
  .ms-match-status-chip.is-live,
  .ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
    animation:ms-live-border-chase 3.2s linear infinite!important;
  }
}

/* Marcador: misma fuente pesada/limpia, bastante más chico. */
.ms-home-today .ms-compact-score-pill{
  min-height:29px!important;
  gap:4px!important;
}
.ms-home-today .ms-compact-score-pill > b{
  font-size:1.34rem!important;
  letter-spacing:-.045em!important;
  line-height:.94!important;
}
.ms-home-today .ms-compact-score-pill > span{
  font-size:.82rem!important;
  margin:0!important;
}

@media(max-width:560px){
  .ms-home-today .ms-compact-score-pill{
    min-height:27px!important;
    gap:3px!important;
  }
  .ms-home-today .ms-compact-score-pill > b{font-size:1.22rem!important}
  .ms-home-today .ms-compact-score-pill > span{font-size:.76rem!important}
}


/* ==========================================================================
 * 5.17.88 — contraste fino de Canchero claro + tipografía del header
 * ========================================================================== */

/* En Canchero claro la tarjeta "Siguiente partido" es clara, por lo tanto
   NO puede heredar --ms-ink blanco del césped. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-team-profile .ms-team-snapshot-v51788>.ms-team-snapshot-next{
  background:#f7fff9!important;
  border-color:rgba(6,100,58,.34)!important;
  color:#073d27!important;
  box-shadow:0 4px 12px rgba(4,74,42,.08)!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-team-profile .ms-team-snapshot-next :is(strong,b,time){
  color:#073d27!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-team-profile .ms-team-snapshot-next :is(small,.ms-next-match-card-head>span){
  color:#44715b!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-team-profile .ms-next-match-card-head>a{
  color:#0b7541!important;
}

/* Fecha central: fondo claro = tinta verde oscura. Antes heredaba blanco. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-home-date-trigger{
  background:linear-gradient(180deg,#fbfffc,#eefbf3)!important;
  border-color:#8ac9a7!important;
  color:#073d27!important;
  box-shadow:0 3px 10px rgba(4,74,42,.10)!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-home-date-trigger:hover,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-home-date-jump.is-open .ms-home-date-trigger{
  background:#e8f8ef!important;
  border-color:#55ac7b!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-home-date-trigger-chevron{
  color:#0b7541!important;
}

/* Barra superior de competiciones: blanco limpio con un filo negro mínimo y
   una sombra negra corta. Se aplica igual con cualquier switch/theme. */
.ms-header-featured-label,
.ms-header-featured-links>a{
  color:#fff!important;
  -webkit-text-stroke:.16px rgba(0,0,0,.62);
  text-shadow:0 1px 1px rgba(0,0,0,.48),0 0 1px rgba(0,0,0,.34)!important;
}
.ms-header-featured-links>a:hover,
.ms-header-featured-links>a:focus-visible{
  color:#fff!important;
  -webkit-text-stroke:.16px rgba(0,0,0,.66);
  text-shadow:0 1px 1px rgba(0,0,0,.52),0 0 1px rgba(0,0,0,.38)!important;
}

/* Misma terminación fina para el título grande de la agenda cuando está sobre
   una superficie de identidad/césped. */
html[data-tessirve-theme="canchero"] .ms-home-today>.ms-section-heading :is(h1,h2,strong),
html[data-tessirve-theme="canchero"] .ms-home-today>.ms-home-date-heading{
  color:#fff!important;
  -webkit-text-stroke:.18px rgba(0,0,0,.55);
  text-shadow:0 1px 1px rgba(0,0,0,.42)!important;
}


/* ==========================================================================
 * 5.17.89 — tipografía, Canchero y logo "gol al ángulo"
 * ========================================================================== */

:root{
  --ms-title-font:"Segoe UI",Inter,Arial,sans-serif!important;
}
body.tessirve-theme h1,
body.tessirve-theme h2,
body.tessirve-theme h3,
.ms-content-header h1{
  font-family:var(--ms-title-font)!important;
  font-weight:900!important;
  letter-spacing:-.025em!important;
}

/* En superficies de identidad oscuras: blanco + filo negro mínimo + sombra corta. */
html[data-tessirve-theme="canchero"] .ms-app :is(
  .ms-upcoming-page-heading h1,
  .ms-team-section-banner h2,
  .ms-home-today-head h1
){
  color:#fff!important;
  -webkit-text-stroke:.16px rgba(0,0,0,.60)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.52),0 0 1px rgba(0,0,0,.28)!important;
}

/* Página Próximos Partidos — Canchero claro: todo legible sobre césped. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page{
  color:#f7fff9!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-back{
  color:#c9f7d9!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-page-team .ms-eyebrow{
  color:#6ee7a5!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-summary>div{
  background:#15201d!important;
  border-color:#375149!important;
  color:#f8fff9!important;
  box-shadow:0 4px 12px rgba(0,0,0,.16)!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-summary span{
  color:#b8d9c5!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-match-card{
  background:#111b18!important;
  border-color:#3d5d52!important;
  color:#f7fff9!important;
  box-shadow:0 7px 18px rgba(0,0,0,.18)!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-compact-top{
  background:#173129!important;
  border-color:#42675a!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page :is(
  .ms-upcoming-date>span,
  .ms-upcoming-date>strong,
  .ms-upcoming-rival strong,
  .ms-upcoming-competition strong,
  .ms-upcoming-venue strong,
  .ms-upcoming-last-meeting strong,
  .ms-upcoming-h2h-summary strong,
  .ms-upcoming-h2h-summary b,
  .ms-upcoming-recent-h2h b
){
  color:#f7fff9!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page :is(
  .ms-upcoming-date>em,
  .ms-upcoming-rival small,
  .ms-upcoming-competition small,
  .ms-upcoming-last-meeting small,
  .ms-upcoming-recent-h2h small,
  .ms-upcoming-compact-details>div>span
){
  color:#b8d9c5!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-compact-details>div+div,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-match-card>footer{
  border-color:#38564c!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-match-card>footer{
  background:#0d1714!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-history-link{
  color:#67e49d!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-recent-h2h a{
  background:#1b2b25!important;
  color:#f7fff9!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-team-upcoming-page .ms-upcoming-h2h-summary b{
  background:#20372f!important;
}

/* Formato Copa Diego Maradona / flujos históricos: contraste corregido en Canchero.
   Los bloques claros siempre usan tinta oscura; las finales verdes, tinta blanca. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-app .ms-maradona-story{
  background:#f9fbfa!important;
  border-color:#bfd1c7!important;
  color:#173a2c!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-app :is(.ms-maradona-step,.ms-maradona-branch){
  background:#f3f6f4!important;
  border-color:#d0ddd6!important;
  color:#173a2c!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-app .ms-maradona-branch:first-child{
  background:#eef5ff!important;
  border-color:#c5d5ef!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-app .ms-maradona-branch.is-complement{
  background:#f6f5f2!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-app :is(.ms-maradona-step,.ms-maradona-branch) :is(strong,span,small){
  color:#173a2c!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-app .ms-maradona-finals>div>small{
  color:#28764d!important;
  text-shadow:none!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-app .ms-maradona-finals .ms-knockout-match{
  background:#096540!important;
  border-color:#238b5d!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"]) .ms-app .ms-maradona-finals .ms-knockout-match :is(a,strong,b,span,small){
  color:#fff!important;
}

/* --------------------------------------------------------------------------
 * Logo: arco + pelota al ángulo, UNA SOLA VEZ por carga.
 * -------------------------------------------------------------------------- */
.ms-brand-mark.ms-brand-goalshot{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:currentColor!important;
  display:inline-flex!important;
  flex:0 0 48px!important;
  height:31px!important;
  justify-content:center!important;
  overflow:visible!important;
  position:relative!important;
  transform:none!important;
  width:48px!important;
}
.ms-brand-mark.ms-brand-goalshot::before,
.ms-brand-mark.ms-brand-goalshot::after{
  content:none!important;
  display:none!important;
}
.ms-brand-goalshot-svg{
  display:block!important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.30))!important;
  height:31px!important;
  overflow:visible!important;
  width:48px!important;
}
.ms-brand-goalshot-frame,
.ms-brand-goalshot-net{
  fill:none!important;
  stroke:currentColor!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.ms-brand-goalshot-frame{
  opacity:.96!important;
  stroke-width:2.15!important;
}
.ms-brand-goalshot-net{
  opacity:.26!important;
  stroke-width:.82!important;
  transform-box:fill-box!important;
  transform-origin:85% 24%!important;
  animation:ms-brand-net-hit .42s ease-out 1.02s 1 both!important;
}
.ms-brand-goalshot-ball{
  background:url("goal-ball.png") center/contain no-repeat!important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))!important;
  height:9px!important;
  left:0!important;
  position:absolute!important;
  top:0!important;
  width:9px!important;
  z-index:4!important;
  animation:ms-brand-goal-shot .95s cubic-bezier(.18,.76,.22,1) .18s 1 both!important;
}
@keyframes ms-brand-goal-shot{
  0%{transform:translate(-4px,25px) rotate(0deg) scale(.86)}
  22%{transform:translate(7px,21px) rotate(150deg) scale(.94)}
  52%{transform:translate(22px,13px) rotate(360deg) scale(1)}
  78%{transform:translate(33px,5px) rotate(570deg) scale(1)}
  90%{transform:translate(35px,6px) rotate(635deg) scale(.92)}
  100%{transform:translate(34px,7px) rotate(660deg) scale(.94)}
}
@keyframes ms-brand-net-hit{
  0%,52%{transform:scale(1,1);opacity:.26}
  72%{transform:scale(1.045,.94);opacity:.46}
  100%{transform:scale(1,1);opacity:.30}
}
.ms-brand:hover .ms-brand-mark.ms-brand-goalshot,
.ms-brand-footer:hover .ms-brand-mark.ms-brand-goalshot{
  filter:none!important;
  transform:none!important;
}
@media(max-width:782px){
  .ms-brand-mark.ms-brand-goalshot{
    flex-basis:42px!important;
    height:28px!important;
    width:42px!important;
  }
  .ms-brand-goalshot-svg{height:28px!important;width:42px!important}
  .ms-brand-goalshot-ball{height:8px!important;width:8px!important}
}
@media(prefers-reduced-motion:reduce){
  .ms-brand-goalshot-ball{
    animation:none!important;
    transform:translate(34px,7px) rotate(660deg) scale(.94)!important;
  }
  .ms-brand-goalshot-net{animation:none!important;opacity:.30!important}
}


/* ==========================================================================
 * 5.17.90 — títulos + botón de ficha con contraste garantizado en todos los themes
 * ========================================================================== */

:root{
  --ms-title-font:"Bahnschrift","Segoe UI Variable Display","Trebuchet MS",Arial,sans-serif!important;
}

.ms-upcoming-page-team h1{
  font-family:var(--ms-ui-font)!important;
}

/* Botón "Ver ficha del partido":
   fondo siempre suficientemente oscuro + borde del theme + texto blanco.
   Evita texto apagado en Canchero, claro, oscuro o themes de clubes. */
.ms-team-upcoming-page .ms-upcoming-match-card>footer .ms-button{
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb,var(--theme-primary,#175cd3),#111827 42%),
      color-mix(in srgb,var(--theme-primary,#175cd3),#020617 56%)
    )!important;
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3),#fff 34%)!important;
  border-radius:8px!important;
  box-shadow:
    0 2px 7px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.14)!important;
  color:#fff!important;
  font-family:var(--ms-ui-font)!important;
  font-weight:800!important;
  letter-spacing:.005em!important;
  text-shadow:0 1px 1px rgba(0,0,0,.72)!important;
}

.ms-team-upcoming-page .ms-upcoming-match-card>footer .ms-button:hover,
.ms-team-upcoming-page .ms-upcoming-match-card>footer .ms-button:focus-visible{
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb,var(--theme-primary,#175cd3),#111827 30%),
      color-mix(in srgb,var(--theme-primary,#175cd3),#020617 46%)
    )!important;
  border-color:color-mix(in srgb,var(--theme-primary,#175cd3),#fff 48%)!important;
  box-shadow:
    0 3px 9px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.18)!important;
  color:#fff!important;
  transform:translateY(-1px)!important;
}

/* El título conserva contraste fino en fondos con identidad. */
html[data-tessirve-theme="canchero"] .ms-upcoming-page-team h1{
  color:#fff!important;
  -webkit-text-stroke:.14px rgba(0,0,0,.58)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.52),0 0 1px rgba(0,0,0,.25)!important;
}


/* ========================================================================== 
 * 5.17.92 — LOGO PRINCIPAL TESSIRVE
 * Wordmark dentro del arco + gol animado UNA vez + rayo del color del theme.
 * Estas reglas están en theme-dynamic.css porque es la hoja final del header.
 * ========================================================================== */

.ms-site-header .ms-brand{
  --ms-logo-accent:var(--theme-primary,#2f80ed);
  --ms-logo-accent-hi:color-mix(in srgb,var(--ms-logo-accent) 66%,#fff 34%);
  align-items:center!important;
  display:inline-flex!important;
  gap:0!important;
  isolation:isolate!important;
  overflow:visible!important;
  position:relative!important;
  white-space:nowrap!important;
}

/* La palabra es el logo, no un texto secundario. */
.ms-site-header .ms-brand-name{
  color:#fff!important;
  display:inline-block!important;
  font-family:var(--ms-ui-font)!important;
  font-size:1.18rem!important;
  font-style:italic!important;
  font-weight:900!important;
  letter-spacing:.025em!important;
  line-height:.9!important;
  order:1!important;
  position:relative!important;
  transform:skew(-7deg)!important;
  -webkit-text-stroke:.34px rgba(5,22,45,.92)!important;
  text-shadow:
    1px 1px 0 rgba(4,20,42,.90),
    2px 2px 0 rgba(4,20,42,.52),
    0 2px 4px rgba(0,0,0,.26)!important;
  z-index:3!important;
}

/* El arco pisa apenas la última parte del wordmark: TESSIRVE "entra" al arco. */
.ms-site-header .ms-brand-mark.ms-brand-goalshot{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#fff!important;
  display:inline-flex!important;
  flex:0 0 48px!important;
  height:31px!important;
  justify-content:center!important;
  margin-left:-9px!important;
  order:2!important;
  overflow:visible!important;
  position:relative!important;
  transform:none!important;
  width:48px!important;
  z-index:2!important;
}
.ms-site-header .ms-brand-mark.ms-brand-goalshot::before,
.ms-site-header .ms-brand-mark.ms-brand-goalshot::after{
  content:none!important;
  display:none!important;
}

.ms-brand-goalshot-svg{
  display:block!important;
  height:31px!important;
  left:0!important;
  overflow:visible!important;
  pointer-events:none!important;
  position:absolute!important;
  top:0!important;
  width:48px!important;
}
.ms-brand-goalshot-back{z-index:1!important}
.ms-brand-goalshot-front{z-index:6!important}

/* Perspectiva realista: frente recto, profundidad hacia atrás, red contenida. */
.ms-brand-goalshot-depth,
.ms-brand-goalshot-net,
.ms-brand-goalshot-frame,
.ms-brand-goalshot-base,
.ms-brand-goalshot-side{
  fill:none!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
}
.ms-brand-goalshot-depth{
  stroke:rgba(255,255,255,.50)!important;
  stroke-width:1.15!important;
}
.ms-brand-goalshot-net{
  stroke:rgba(255,255,255,.36)!important;
  stroke-width:.72!important;
}
.ms-brand-goalshot-frame,
.ms-brand-goalshot-base{
  stroke:#fff!important;
  stroke-width:2.6!important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.28))!important;
}
.ms-brand-goalshot-side{
  stroke:rgba(255,255,255,.80)!important;
  stroke-width:1.75!important;
}

/* Rayo: sigue la diagonal palabra -> ángulo y SIEMPRE usa el theme activo. */
.ms-brand-goalshot-trail{
  animation:msTessirveGoalTrail 1.28s cubic-bezier(.18,.76,.22,1) .34s 1 both!important;
  background:
    linear-gradient(90deg,
      transparent 0%,
      color-mix(in srgb,var(--ms-logo-accent) 28%,transparent 72%) 8%,
      var(--ms-logo-accent) 38%,
      var(--ms-logo-accent-hi) 67%,
      #fff 79%,
      color-mix(in srgb,var(--ms-logo-accent) 88%,#fff 12%) 91%,
      transparent 100%)!important;
  border-radius:999px!important;
  box-shadow:
    0 0 5px color-mix(in srgb,var(--ms-logo-accent) 72%,transparent 28%),
    0 0 10px color-mix(in srgb,var(--ms-logo-accent) 42%,transparent 58%)!important;
  clip-path:inset(0 100% 0 0)!important;
  height:2.5px!important;
  left:-91px!important;
  opacity:0!important;
  pointer-events:none!important;
  position:absolute!important;
  top:25px!important;
  transform:rotate(-9.5deg)!important;
  transform-origin:left center!important;
  width:137px!important;
  z-index:4!important;
}
.ms-brand-goalshot-trail::after{
  background:linear-gradient(90deg,transparent,var(--ms-logo-accent),transparent)!important;
  border-radius:999px!important;
  content:""!important;
  height:1px!important;
  left:12%!important;
  opacity:.74!important;
  position:absolute!important;
  top:-3px!important;
  width:82%!important;
}

/* Pelota real del theme. Recorre TODA la palabra y termina detrás del palo. */
.ms-brand-goalshot-ball{
  animation:msTessirveGoalBall 1.28s cubic-bezier(.18,.76,.22,1) .34s 1 both!important;
  background:url("goal-ball.png") center/contain no-repeat!important;
  border:0!important;
  border-radius:50%!important;
  filter:
    drop-shadow(0 1px 1px rgba(0,0,0,.42))
    drop-shadow(0 0 4px color-mix(in srgb,var(--ms-logo-accent) 36%,transparent 64%))!important;
  height:10px!important;
  left:-83px!important;
  opacity:0!important;
  pointer-events:none!important;
  position:absolute!important;
  top:23px!important;
  transform:rotate(0deg) scale(.84)!important;
  width:10px!important;
  z-index:5!important; /* detrás del SVG frontal (z6) al finalizar */
}

@keyframes msTessirveGoalTrail{
  0%{clip-path:inset(0 100% 0 0);opacity:0}
  7%{opacity:.96}
  68%{clip-path:inset(0 0 0 0);opacity:1}
  86%{clip-path:inset(0 0 0 0);opacity:.72}
  100%{clip-path:inset(0 0 0 0);opacity:0}
}

@keyframes msTessirveGoalBall{
  0%{left:-83px;top:23px;opacity:0;transform:rotate(0deg) scale(.78)}
  6%{left:-78px;top:22px;opacity:1;transform:rotate(45deg) scale(.86)}
  24%{left:-54px;top:19px;opacity:1;transform:rotate(225deg) scale(.94)}
  47%{left:-23px;top:15px;opacity:1;transform:rotate(455deg) scale(1)}
  69%{left:8px;top:11px;opacity:1;transform:rotate(690deg) scale(1)}
  84%{left:29px;top:7px;opacity:1;transform:rotate(860deg) scale(.98)}
  92%{left:35px;top:6px;opacity:1;transform:rotate(930deg) scale(.94)}
  100%{left:34px;top:7px;opacity:1;transform:rotate(950deg) scale(.94)}
}

/* No hover-loop: el gol ocurre una vez y la pelota queda en la red. */
.ms-site-header .ms-brand:hover .ms-brand-goalshot-ball,
.ms-site-header .ms-brand:focus .ms-brand-goalshot-ball,
.ms-site-header .ms-brand:hover .ms-brand-goalshot-trail,
.ms-site-header .ms-brand:focus .ms-brand-goalshot-trail{
  animation-play-state:running!important;
}

@media(max-width:782px){
  .ms-site-header .ms-brand-name{
    font-size:1.03rem!important;
    letter-spacing:.018em!important;
  }
  .ms-site-header .ms-brand-mark.ms-brand-goalshot{
    flex-basis:43px!important;
    height:28px!important;
    margin-left:-8px!important;
    width:43px!important;
  }
  .ms-brand-goalshot-svg{height:28px!important;width:43px!important}
  .ms-brand-goalshot-trail{
    left:-78px!important;
    top:22px!important;
    width:119px!important;
  }
  .ms-brand-goalshot-ball{height:9px!important;width:9px!important}
  @keyframes msTessirveGoalBall{
    0%{left:-72px;top:21px;opacity:0;transform:rotate(0deg) scale(.78)}
    6%{left:-68px;top:20px;opacity:1;transform:rotate(45deg) scale(.86)}
    24%{left:-48px;top:18px;opacity:1;transform:rotate(225deg) scale(.94)}
    47%{left:-20px;top:14px;opacity:1;transform:rotate(455deg) scale(1)}
    69%{left:7px;top:10px;opacity:1;transform:rotate(690deg) scale(1)}
    84%{left:25px;top:7px;opacity:1;transform:rotate(860deg) scale(.98)}
    92%{left:31px;top:6px;opacity:1;transform:rotate(930deg) scale(.94)}
    100%{left:30px;top:7px;opacity:1;transform:rotate(950deg) scale(.94)}
  }
}

@media(prefers-reduced-motion:reduce){
  .ms-brand-goalshot-trail{animation:none!important;opacity:0!important}
  .ms-brand-goalshot-ball{
    animation:none!important;
    left:34px!important;
    opacity:1!important;
    top:7px!important;
    transform:rotate(950deg) scale(.94)!important;
  }
}


/* ========================================================================== 
 * 5.17.93 — LOGO HEADER TESSIRVE: usar el wordmark plano y animarlo de verdad.
 * ========================================================================== */
.ms-site-header .ms-brand{
  align-items:center!important;
  display:inline-flex!important;
  gap:0!important;
  overflow:visible!important;
  position:relative!important;
}
.ms-site-header .ms-brand-name{
  border:0!important;
  clip:rect(1px,1px,1px,1px)!important;
  clip-path:inset(50%)!important;
  height:1px!important;
  margin:-1px!important;
  overflow:hidden!important;
  padding:0!important;
  position:absolute!important;
  white-space:nowrap!important;
  width:1px!important;
}
.ms-site-header .ms-brand-mark.ms-brand-logo-animated{
  display:inline-flex!important;
  flex:0 0 168px!important;
  height:34px!important;
  margin:0!important;
  overflow:visible!important;
  position:relative!important;
  width:168px!important;
}
.ms-site-header .ms-brand-logo-svg{
  display:block!important;
  height:34px!important;
  overflow:visible!important;
  width:168px!important;
}
.ms-site-header .ms-logo-word-text{
  fill:#fff!important;
  font-family:var(--ms-ui-font)!important;
  font-size:34px!important;
  font-style:italic!important;
  font-weight:900!important;
  letter-spacing:1px!important;
  paint-order:stroke fill!important;
  stroke:#0a2c60!important;
  stroke-width:2.35px!important;
  stroke-linejoin:round!important;
  text-rendering:geometricPrecision!important;
  transform:skewX(-10deg)!important;
  transform-origin:50% 50%!important;
  filter:drop-shadow(1px 2px 0 rgba(7,24,54,.85)) drop-shadow(0 3px 5px rgba(0,0,0,.22))!important;
}
.ms-site-header .ms-logo-goal-back{opacity:1!important}
.ms-site-header .ms-logo-goal-front{opacity:1!important}
.ms-site-header .ms-logo-goal-depth,
.ms-site-header .ms-logo-goal-net,
.ms-site-header .ms-logo-goal-frame,
.ms-site-header .ms-logo-goal-base,
.ms-site-header .ms-logo-goal-side{
  fill:none!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
}
.ms-site-header .ms-logo-goal-depth{
  stroke:rgba(255,255,255,.55)!important;
  stroke-width:1.05!important;
}
.ms-site-header .ms-logo-goal-net{
  stroke:rgba(255,255,255,.35)!important;
  stroke-width:.8!important;
  transform-box:fill-box!important;
  transform-origin:68% 35%!important;
  animation:msBrandGoalNet .28s ease-out 1.05s 1 both!important;
}
.ms-site-header .ms-logo-goal-frame,
.ms-site-header .ms-logo-goal-base{
  stroke:#fff!important;
  stroke-width:2.35!important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.26))!important;
}
.ms-site-header .ms-logo-goal-side{
  stroke:rgba(255,255,255,.88)!important;
  stroke-width:1.7!important;
}
.ms-site-header .ms-logo-trail{
  fill:none!important;
  opacity:0!important;
  stroke:var(--theme-primary,#34d399)!important;
  stroke-linecap:round!important;
  stroke-width:4.15!important;
  stroke-dasharray:100!important;
  stroke-dashoffset:100!important;
  filter:drop-shadow(0 0 3px color-mix(in srgb,var(--theme-primary,#34d399) 70%, transparent 30%)) drop-shadow(0 0 8px color-mix(in srgb,var(--theme-primary,#34d399) 40%, transparent 60%))!important;
  animation:msBrandGoalTrail 1.15s cubic-bezier(.22,.74,.2,1) .12s 1 both!important;
}
.ms-site-header .ms-logo-ball{
  opacity:0!important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.45)) drop-shadow(0 0 4px color-mix(in srgb,var(--theme-primary,#34d399) 26%, transparent 74%))!important;
}
@keyframes msBrandGoalTrail{
  0%{stroke-dashoffset:100;opacity:0}
  8%{opacity:1}
  72%{stroke-dashoffset:0;opacity:1}
  100%{stroke-dashoffset:0;opacity:0}
}
@keyframes msBrandGoalNet{
  0%,72%{transform:scale(1,1)}
  84%{transform:scale(1.035,.95)}
  100%{transform:scale(1,1)}
}
@media(max-width:782px){
  .ms-site-header .ms-brand-mark.ms-brand-logo-animated{
    flex-basis:140px!important;
    height:28px!important;
    width:140px!important;
  }
  .ms-site-header .ms-brand-logo-svg{height:28px!important;width:140px!important}
  .ms-site-header .ms-logo-word-text{font-size:33px!important;stroke-width:2.25px!important}
}
@media(prefers-reduced-motion:reduce){
  .ms-site-header .ms-logo-trail{animation:none!important;opacity:0!important}
  .ms-site-header .ms-logo-goal-net{animation:none!important}
}


/* ========================================================================== 
 * 5.17.94 — LOGO HEADER definitivo: estable, compacto y animado una sola vez.
 * ========================================================================== */
.ms-site-header .ms-brand{
  align-items:center!important;
  display:inline-flex!important;
  gap:0!important;
  overflow:visible!important;
}
.ms-site-header .ms-brand > .ms-brand-name{display:none!important}
.ms-site-header .ms-brand-mark.ms-brand-logo-animated{
  display:block!important;
  position:relative!important;
  width:150px!important;
  height:28px!important;
  overflow:visible!important;
  flex:0 0 150px!important;
}
.ms-site-header .ms-brand-word{
  position:absolute!important;
  left:18px!important;
  top:3px!important;
  z-index:2!important;
  color:#fff!important;
  font-family:var(--ms-ui-font)!important;
  font-size:22px!important;
  font-style:italic!important;
  font-weight:900!important;
  letter-spacing:.7px!important;
  line-height:1!important;
  white-space:nowrap!important;
  transform:skewX(-10deg)!important;
  text-shadow:-1.6px 0 #0b2f67,0 1.6px #0b2f67,1.6px 0 #0b2f67,0 -1.6px #0b2f67,1px 2px 0 rgba(8,21,48,.75)!important;
}
.ms-site-header .ms-brand-shot-layer{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  pointer-events:none!important;
}
.ms-site-header .ms-brand-goal-back,
.ms-site-header .ms-brand-goal-front{
  position:absolute!important;
  right:0!important;
  top:0!important;
  width:34px!important;
  height:28px!important;
  overflow:visible!important;
}
.ms-site-header .ms-brand-goal-depth,
.ms-site-header .ms-brand-goal-net,
.ms-site-header .ms-brand-goal-frame,
.ms-site-header .ms-brand-goal-base,
.ms-site-header .ms-brand-goal-side{
  fill:none!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
}
.ms-site-header .ms-brand-goal-depth{stroke:rgba(255,255,255,.55)!important;stroke-width:1!important}
.ms-site-header .ms-brand-goal-net{stroke:rgba(255,255,255,.34)!important;stroke-width:.8!important;animation:msBrandNetKick .22s ease-out 1.0s 1 both!important;transform-origin:68% 34%!important;transform-box:fill-box!important}
.ms-site-header .ms-brand-goal-frame,
.ms-site-header .ms-brand-goal-base{stroke:#fff!important;stroke-width:2.25!important;filter:drop-shadow(0 1px 1px rgba(0,0,0,.28))!important}
.ms-site-header .ms-brand-goal-side{stroke:rgba(255,255,255,.86)!important;stroke-width:1.65!important}
.ms-site-header .ms-brand-shot-trail{
  position:absolute!important;
  left:10px!important;
  top:16px!important;
  width:122px!important;
  height:4px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--theme-primary,#35d39b) 8%, transparent 92%) 0%,color-mix(in srgb,var(--theme-primary,#35d39b) 55%, #ffffff 45%) 34%,#ffffff 62%,var(--theme-primary,#35d39b) 100%)!important;
  transform-origin:left center!important;
  transform:rotate(-17deg) scaleX(.02)!important;
  opacity:0!important;
  filter:drop-shadow(0 0 2px color-mix(in srgb,var(--theme-primary,#35d39b) 70%, transparent 30%)) drop-shadow(0 0 7px color-mix(in srgb,var(--theme-primary,#35d39b) 45%, transparent 55%))!important;
  animation:msBrandShotTrail 1.0s cubic-bezier(.2,.8,.2,1) .08s 1 both!important;
}
.ms-site-header .ms-brand-shot-ball{
  position:absolute!important;
  left:8px!important;
  top:14px!important;
  width:11px!important;
  height:11px!important;
  z-index:3!important;
  border-radius:50%!important;
  background:url("../assets/goal-ball.png") center/contain no-repeat!important;
  opacity:0!important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.42))!important;
  animation:msBrandShotBall 1.0s cubic-bezier(.2,.8,.2,1) .08s 1 both!important;
}
@keyframes msBrandShotTrail{
  0%{opacity:0;transform:rotate(-17deg) scaleX(.02)}
  10%{opacity:1}
  70%{opacity:1;transform:rotate(-17deg) scaleX(1)}
  100%{opacity:.16;transform:rotate(-17deg) scaleX(1)}
}
@keyframes msBrandShotBall{
  0%{opacity:0;transform:translate(0,0) scale(.72)}
  6%{opacity:1}
  100%{opacity:1;transform:translate(118px,-14px) scale(1)}
}
@keyframes msBrandNetKick{
  0%,80%{transform:scale(1,1)}
  90%{transform:scale(1.04,.94)}
  100%{transform:scale(1,1)}
}
@media(max-width:782px){
  .ms-site-header .ms-brand-mark.ms-brand-logo-animated{width:120px!important;height:24px!important;flex-basis:120px!important}
  .ms-site-header .ms-brand-word{left:14px!important;top:2px!important;font-size:18px!important}
  .ms-site-header .ms-brand-goal-back,.ms-site-header .ms-brand-goal-front{width:28px!important;height:24px!important}
  .ms-site-header .ms-brand-shot-trail{left:8px!important;top:13px!important;width:98px!important;height:3px!important}
  .ms-site-header .ms-brand-shot-ball{left:6px!important;top:11px!important;width:10px!important;height:10px!important;animation-name:msBrandShotBallMobile!important}
}
@keyframes msBrandShotBallMobile{
  0%{opacity:0;transform:translate(0,0) scale(.72)}
  6%{opacity:1}
  100%{opacity:1;transform:translate(96px,-12px) scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .ms-site-header .ms-brand-shot-trail,.ms-site-header .ms-brand-shot-ball,.ms-site-header .ms-brand-goal-net{animation:none!important}
  .ms-site-header .ms-brand-shot-trail{opacity:.2!important;transform:rotate(-17deg) scaleX(1)!important}
  .ms-site-header .ms-brand-shot-ball{opacity:1!important;transform:translate(118px,-14px) scale(1)!important}
}


/* ========================================================================== 
 * 5.17.95 — LOGO HEADER definitivo rehecho desde cero (sin clases viejas).
 * ========================================================================== */
.ms-site-header .ms-brand > .ms-brand-name{display:none!important}
.ms-site-header .ms-brand{
  display:inline-flex!important;
  align-items:center!important;
  min-height:34px!important;
  overflow:visible!important;
}
.ms-site-header .tsv-hlogo{
  --tsv-shot: var(--theme-primary,#4ecdc4);
  --tsv-shot-soft: color-mix(in srgb,var(--theme-primary,#4ecdc4) 55%, #ffffff 45%);
  position:relative!important;
  display:block!important;
  width:156px!important;
  height:30px!important;
  flex:0 0 156px!important;
  overflow:visible!important;
}
.ms-site-header .tsv-hlogo-word{
  position:absolute!important;
  left:0!important;
  top:3px!important;
  z-index:2!important;
  color:#ffffff!important;
  font-family:var(--ms-ui-font)!important;
  font-size:24px!important;
  font-style:italic!important;
  font-weight:900!important;
  letter-spacing:.6px!important;
  line-height:1!important;
  white-space:nowrap!important;
  transform:skewX(-10deg)!important;
  text-shadow:
    -1.5px 0 #17386f,
    0 1.5px #17386f,
    1.5px 0 #17386f,
    0 -1.5px #17386f,
    1px 2px 0 rgba(9,24,50,.78)!important;
}
.ms-site-header .tsv-hlogo-goal{
  position:absolute!important;
  top:0!important;
  right:0!important;
  width:39px!important;
  height:30px!important;
  overflow:visible!important;
  pointer-events:none!important;
}
.ms-site-header .tsv-hlogo-goal-back{z-index:1!important}
.ms-site-header .tsv-hlogo-goal-front{z-index:5!important}
.ms-site-header .tsv-hlogo-depth,
.ms-site-header .tsv-hlogo-net,
.ms-site-header .tsv-hlogo-frame,
.ms-site-header .tsv-hlogo-base,
.ms-site-header .tsv-hlogo-side{
  fill:none!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
}
.ms-site-header .tsv-hlogo-depth{stroke:rgba(255,255,255,.55)!important;stroke-width:1!important}
.ms-site-header .tsv-hlogo-net{stroke:rgba(255,255,255,.34)!important;stroke-width:.8!important;transform-origin:70% 34%!important;transform-box:fill-box!important;animation:tsvLogoNet .22s ease-out 1.02s 1 both!important}
.ms-site-header .tsv-hlogo-frame,
.ms-site-header .tsv-hlogo-base{stroke:#ffffff!important;stroke-width:2.2!important;filter:drop-shadow(0 1px 1px rgba(0,0,0,.28))!important}
.ms-site-header .tsv-hlogo-side{stroke:rgba(255,255,255,.84)!important;stroke-width:1.6!important}
.ms-site-header .tsv-hlogo-shot{
  position:absolute!important;
  left:18px!important;
  top:20px!important;
  z-index:4!important;
  width:118px!important;
  height:4px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,transparent 0%, color-mix(in srgb,var(--tsv-shot) 20%, transparent 80%) 8%, var(--tsv-shot) 42%, #ffffff 71%, var(--tsv-shot-soft) 88%, transparent 100%)!important;
  transform:rotate(-16deg) scaleX(.02)!important;
  transform-origin:left center!important;
  opacity:0!important;
  filter:drop-shadow(0 0 3px color-mix(in srgb,var(--tsv-shot) 55%, transparent 45%)) drop-shadow(0 0 8px color-mix(in srgb,var(--tsv-shot) 35%, transparent 65%))!important;
  animation:tsvLogoTrail 1.0s cubic-bezier(.2,.82,.2,1) .08s 1 both!important;
}
.ms-site-header .tsv-hlogo-ball{
  position:absolute!important;
  left:16px!important;
  top:17px!important;
  z-index:4!important;
  width:11px!important;
  height:11px!important;
  border-radius:50%!important;
  background:url("../assets/goal-ball.png") center/contain no-repeat!important;
  opacity:0!important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.45))!important;
  animation:tsvLogoBall 1.0s cubic-bezier(.2,.82,.2,1) .08s 1 both!important;
}
@keyframes tsvLogoTrail{
  0%{opacity:0;transform:rotate(-16deg) scaleX(.02)}
  8%{opacity:1}
  72%{opacity:1;transform:rotate(-16deg) scaleX(1)}
  100%{opacity:.12;transform:rotate(-16deg) scaleX(1)}
}
@keyframes tsvLogoBall{
  0%{opacity:0;transform:translate(0,0) rotate(0deg) scale(.72)}
  6%{opacity:1}
  100%{opacity:1;transform:translate(116px,-14px) rotate(820deg) scale(.98)}
}
@keyframes tsvLogoNet{
  0%,80%{transform:scale(1,1)}
  90%{transform:scale(1.04,.95)}
  100%{transform:scale(1,1)}
}
@media(max-width:782px){
  .ms-site-header .tsv-hlogo{width:124px!important;height:24px!important;flex-basis:124px!important}
  .ms-site-header .tsv-hlogo-word{font-size:19px!important;top:2px!important}
  .ms-site-header .tsv-hlogo-goal{width:30px!important;height:24px!important}
  .ms-site-header .tsv-hlogo-shot{left:14px!important;top:16px!important;width:92px!important;height:3px!important}
  .ms-site-header .tsv-hlogo-ball{left:12px!important;top:13px!important;width:9px!important;height:9px!important;animation-name:tsvLogoBallMobile!important}
}
@keyframes tsvLogoBallMobile{
  0%{opacity:0;transform:translate(0,0) rotate(0deg) scale(.72)}
  6%{opacity:1}
  100%{opacity:1;transform:translate(91px,-11px) rotate(820deg) scale(.98)}
}
@media(prefers-reduced-motion:reduce){
  .ms-site-header .tsv-hlogo-shot,.ms-site-header .tsv-hlogo-ball,.ms-site-header .tsv-hlogo-net{animation:none!important}
  .ms-site-header .tsv-hlogo-shot{opacity:.12!important;transform:rotate(-16deg) scaleX(1)!important}
  .ms-site-header .tsv-hlogo-ball{opacity:1!important;transform:translate(116px,-14px) rotate(820deg) scale(.98)!important}
}


/* ========================================================================== 
 * 5.17.97 — LOGO PNG FIJO + COLOR SELECTIVO REAL
 * El PNG base nunca se tiñe entero. JS sólo modifica píxeles cuya cromaticidad
 * original es azul/celeste; blancos, grises, pelota, arco y red quedan intactos.
 * ========================================================================== */
.ms-site-header .ms-brand > .ms-brand-name{display:none!important}
.ms-site-header .ms-brand{
  align-items:center!important;display:inline-flex!important;min-height:48px!important;
  overflow:visible!important;padding:0!important;
}
.ms-site-header .tsv-hlogo.tsv-hlogo-static{
  display:block!important;flex:0 0 162px!important;height:54px!important;
  overflow:visible!important;position:relative!important;width:162px!important;
}
.ms-site-header .tsv-hlogo-static>.tsv-hlogo-img,
.ms-site-header .tsv-hlogo-static>.tsv-hlogo-canvas{
  display:block!important;height:100%!important;inset:0!important;margin:0!important;
  max-height:none!important;max-width:none!important;object-fit:contain!important;
  object-position:left center!important;padding:0!important;position:absolute!important;
  width:100%!important;
}
.ms-site-header .tsv-hlogo-static>.tsv-hlogo-img{opacity:1!important;z-index:1!important}
.ms-site-header .tsv-hlogo-static>.tsv-hlogo-canvas{opacity:0!important;pointer-events:none!important;z-index:2!important}
.ms-site-header .tsv-hlogo-static.is-recolored>.tsv-hlogo-img{opacity:0!important}
.ms-site-header .tsv-hlogo-static.is-recolored>.tsv-hlogo-canvas{opacity:1!important}
@media(max-width:782px){
  .ms-site-header .ms-brand{min-height:40px!important}
  .ms-site-header .tsv-hlogo.tsv-hlogo-static{flex-basis:126px!important;height:42px!important;width:126px!important}
}
@media(max-width:430px){
  .ms-site-header .tsv-hlogo.tsv-hlogo-static{flex-basis:112px!important;height:38px!important;width:112px!important}
}

/* ========================================================================== 
 * 5.17.97 — FIXTURE DE TODAS LAS COMPETENCIAS = MISMO LENGUAJE DEL MAIN
 * Mismo alto, escudos, tipografía, score y separadores. El carrusel/selector
 * de fecha sigue siendo propio de la competición, sólo cambia la tarjeta.
 * ========================================================================== */
.ms-match-groups.is-competition-fixture{
  background:transparent!important;display:block!important;margin:0!important;width:100%!important;
}
.ms-match-groups.is-competition-fixture>.ms-match-group{
  background:transparent!important;border:1px solid var(--ms-control-border)!important;
  border-radius:12px!important;box-shadow:none!important;clip-path:none!important;
  margin:0!important;overflow:hidden!important;width:100%!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-match-grid{
  background:transparent!important;display:grid!important;gap:0!important;
  grid-template-columns:1fr!important;overflow:visible!important;padding:0!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-match{
  background:var(--ms-card,#fff)!important;border:0!important;border-radius:0!important;
  box-sizing:border-box!important;gap:2px!important;margin:0!important;min-height:0!important;
  overflow:visible!important;padding:3px 12px!important;width:100%!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-match+.ms-compact-match{
  border-top:1px solid var(--ms-control-border)!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-match-meta{
  justify-content:center!important;line-height:1!important;min-height:11px!important;text-align:center!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-match-meta time{
  color:var(--ms-muted,#667085)!important;font-size:.66rem!important;font-weight:850!important;
  letter-spacing:.01em!important;line-height:1!important;text-align:center!important;width:100%!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-scoreline{
  align-items:center!important;gap:10px!important;grid-template-columns:minmax(0,1fr) 108px minmax(0,1fr)!important;
  min-height:28px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-scoreline>span{gap:6px!important}
.ms-match-groups.is-competition-fixture .ms-compact-team-copy{align-self:center!important}
.ms-match-groups.is-competition-fixture .ms-compact-team-copy>strong,
.ms-match-groups.is-competition-fixture .ms-compact-team-name{
  font-size:calc(.76rem + 2px)!important;font-weight:900!important;line-height:1!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-scoreline .ms-crest,
.ms-match-groups.is-competition-fixture .ms-compact-scoreline .ms-crest-fallback{
  flex:0 0 34px!important;height:34px!important;margin-block:-3px!important;
  max-height:34px!important;max-width:34px!important;object-fit:contain!important;width:34px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-center{
  align-items:center!important;display:grid!important;gap:1px!important;justify-items:center!important;min-width:108px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-center-stack{width:68px!important}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill{
  align-items:center!important;display:flex!important;gap:5px!important;justify-content:center!important;
  line-height:1!important;min-height:17px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill>b{font-size:1.08rem!important;line-height:1!important}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill>span{font-size:.75rem!important;line-height:1!important}
.ms-match-groups.is-competition-fixture .ms-match-status-chip{font-size:.47rem!important;line-height:1!important;padding:2px 6px!important}
.ms-match-groups.is-competition-fixture .ms-compact-footer{display:grid!important;gap:1px!important;line-height:1!important;min-height:10px!important}
.ms-match-groups.is-competition-fixture .ms-compact-venue{font-size:.55rem!important;line-height:1!important;margin:0!important}
.ms-match-groups.is-competition-fixture .ms-compact-team-goals{font-size:.52rem!important;line-height:1.05!important}
.ms-match-groups.is-competition-fixture .ms-compact-score-row{
  align-items:center!important;display:inline-flex!important;justify-content:center!important;min-height:30px!important;
  position:relative!important;width:max-content!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-score-row .ms-compact-red-rail{
  align-items:center!important;display:flex!important;flex-direction:column!important;gap:1px!important;
  justify-content:center!important;pointer-events:none!important;position:absolute!important;top:50%!important;
  transform:translateY(-50%)!important;width:7px!important;z-index:3!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-score-row .ms-compact-red-rail.is-home{right:calc(100% + 3px)!important;left:auto!important}
.ms-match-groups.is-competition-fixture .ms-compact-score-row .ms-compact-red-rail.is-away{left:calc(100% + 3px)!important;right:auto!important}
.ms-match-groups.is-competition-fixture .ms-compact-score-row .ms-compact-red-rail:not(.has-cards){display:none!important}
.ms-match-groups.is-competition-fixture .ms-compact-score-row .ms-compact-red-rail>i{
  background:#e52b33!important;border:1px solid rgba(255,255,255,.96)!important;border-radius:1px!important;
  box-shadow:0 1px 1px rgba(130,22,28,.12)!important;box-sizing:border-box!important;display:block!important;
  flex:0 0 9px!important;height:9px!important;margin:0!important;transform:none!important;width:7px!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-groups.is-competition-fixture>.ms-match-group{border-color:var(--ms-control-border)!important}
html[data-tessirve-color-mode="dark"] .ms-match-groups.is-competition-fixture .ms-compact-match+.ms-compact-match{border-top-color:var(--ms-control-border)!important}
@media(max-width:760px){
  .ms-match-groups.is-competition-fixture>.ms-match-group{border-radius:10px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-match{padding:3px 7px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline{gap:4px!important;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr)!important;min-height:28px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-team-copy>strong,
  .ms-match-groups.is-competition-fixture .ms-compact-team-name{font-size:calc(.68rem + 2px)!important}
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline .ms-crest,
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline .ms-crest-fallback{
    flex-basis:30px!important;height:30px!important;margin-block:-1px!important;max-height:30px!important;max-width:30px!important;width:30px!important;
  }
  .ms-match-groups.is-competition-fixture .ms-compact-center{min-width:72px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-center-stack{width:58px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-score-pill>b{font-size:1rem!important}
  .ms-match-groups.is-competition-fixture .ms-compact-venue{font-size:.5rem!important}
  .ms-match-groups.is-competition-fixture .ms-compact-score-row{min-height:27px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-score-row .ms-compact-red-rail{width:5px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-score-row .ms-compact-red-rail.is-home{right:calc(100% + 2px)!important}
  .ms-match-groups.is-competition-fixture .ms-compact-score-row .ms-compact-red-rail.is-away{left:calc(100% + 2px)!important}
  .ms-match-groups.is-competition-fixture .ms-compact-score-row .ms-compact-red-rail>i{flex-basis:7px!important;height:7px!important;width:5px!important}
}


/* ========================================================================== 
 * 5.17.98 — FOOTER LOGO + EJE ÚNICO DE PARTIDOS
 * El logo del footer vuelve a su caja compacta. MAIN y Fixture comparten
 * exactamente la misma geometría horizontal para nombre/escudo/score/goles.
 * ========================================================================== */

/* FOOTER: el PNG nunca puede usar su tamaño natural de 2172 px. */
.ms-site-footer .ms-brand-footer{
  align-items:center!important;
  display:inline-flex!important;
  gap:0!important;
  min-height:58px!important;
  overflow:visible!important;
}
.ms-site-footer .ms-brand-footer>.tsv-hlogo.tsv-hlogo-static{
  display:inline-block!important;
  flex:0 0 172px!important;
  height:58px!important;
  max-height:58px!important;
  max-width:172px!important;
  min-height:58px!important;
  min-width:172px!important;
  overflow:hidden!important;
  position:relative!important;
  width:172px!important;
}
.ms-site-footer .ms-brand-footer>.tsv-hlogo-static>.tsv-hlogo-img,
.ms-site-footer .ms-brand-footer>.tsv-hlogo-static>.tsv-hlogo-canvas{
  display:block!important;
  height:100%!important;
  inset:0!important;
  margin:0!important;
  max-height:100%!important;
  max-width:100%!important;
  object-fit:contain!important;
  object-position:left center!important;
  padding:0!important;
  position:absolute!important;
  width:100%!important;
}
.ms-site-footer .ms-brand-footer>.tsv-hlogo-static>.tsv-hlogo-img{opacity:1!important;z-index:1!important}
.ms-site-footer .ms-brand-footer>.tsv-hlogo-static>.tsv-hlogo-canvas{opacity:0!important;pointer-events:none!important;z-index:2!important}
.ms-site-footer .ms-brand-footer>.tsv-hlogo-static.is-recolored>.tsv-hlogo-img{opacity:0!important}
.ms-site-footer .ms-brand-footer>.tsv-hlogo-static.is-recolored>.tsv-hlogo-canvas{opacity:1!important}
.ms-site-footer .ms-brand-footer>.ms-brand-name{display:none!important}
@media(max-width:782px){
  .ms-site-footer .ms-brand-footer>.tsv-hlogo.tsv-hlogo-static{
    flex-basis:148px!important;height:50px!important;max-height:50px!important;max-width:148px!important;min-height:50px!important;min-width:148px!important;width:148px!important;
  }
}

/* MAIN + FIXTURE: un solo eje visual. */
@media(min-width:681px){
  .ms-home-today .ms-compact-scoreline,
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline,
  .ms-home-today .ms-compact-scoreline:has(.ms-compact-center.has-red-cards),
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    align-items:start!important;
    column-gap:16px!important;
    grid-template-columns:minmax(0,1fr) 124px minmax(0,1fr)!important;
    min-height:34px!important;
    row-gap:0!important;
  }
  .ms-home-today .ms-compact-scoreline>span.is-home,
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline>span.is-home{
    align-content:start!important;
    align-items:start!important;
    column-gap:8px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 34px!important;
    grid-template-rows:30px auto!important;
    justify-content:stretch!important;
    min-width:0!important;
    row-gap:3px!important;
    width:100%!important;
  }
  .ms-home-today .ms-compact-scoreline>span.is-away,
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline>span.is-away{
    align-content:start!important;
    align-items:start!important;
    column-gap:8px!important;
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    grid-template-rows:30px auto!important;
    justify-content:stretch!important;
    min-width:0!important;
    row-gap:3px!important;
    width:100%!important;
  }
  .ms-home-today .is-home>.ms-compact-team-copy,
  .ms-match-groups.is-competition-fixture .is-home>.ms-compact-team-copy{
    align-items:flex-end!important;align-self:center!important;grid-column:1!important;grid-row:1!important;justify-self:stretch!important;text-align:right!important;width:100%!important;
  }
  .ms-home-today .is-home>.ms-compact-crest-wrap,
  .ms-match-groups.is-competition-fixture .is-home>.ms-compact-crest-wrap{
    align-self:center!important;grid-column:2!important;grid-row:1!important;justify-self:center!important;
  }
  .ms-home-today .is-home>.ms-compact-team-goals,
  .ms-match-groups.is-competition-fixture .is-home>.ms-compact-team-goals{
    align-items:flex-end!important;grid-column:1!important;grid-row:2!important;justify-self:end!important;margin:0!important;text-align:right!important;width:100%!important;
  }
  .ms-home-today .is-away>.ms-compact-crest-wrap,
  .ms-match-groups.is-competition-fixture .is-away>.ms-compact-crest-wrap{
    align-self:center!important;grid-column:1!important;grid-row:1!important;justify-self:center!important;
  }
  .ms-home-today .is-away>.ms-compact-team-copy,
  .ms-match-groups.is-competition-fixture .is-away>.ms-compact-team-copy{
    align-items:flex-start!important;align-self:center!important;grid-column:2!important;grid-row:1!important;justify-self:stretch!important;text-align:left!important;width:100%!important;
  }
  .ms-home-today .is-away>.ms-compact-team-goals,
  .ms-match-groups.is-competition-fixture .is-away>.ms-compact-team-goals{
    align-items:flex-start!important;grid-column:2!important;grid-row:2!important;justify-self:start!important;margin:0!important;text-align:left!important;width:100%!important;
  }
  .ms-home-today .ms-compact-team-copy>strong,
  .ms-match-groups.is-competition-fixture .ms-compact-team-copy>strong{
    align-items:center!important;
    display:flex!important;
    font-size:.76rem!important;
    font-weight:900!important;
    line-height:1.05!important;
    min-height:30px!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    width:100%!important;
  }
  .ms-home-today .is-home .ms-compact-team-copy>strong,
  .ms-match-groups.is-competition-fixture .is-home .ms-compact-team-copy>strong{justify-content:flex-end!important}
  .ms-home-today .is-away .ms-compact-team-copy>strong,
  .ms-match-groups.is-competition-fixture .is-away .ms-compact-team-copy>strong{justify-content:flex-start!important}
  .ms-home-today .ms-compact-crest-wrap,
  .ms-match-groups.is-competition-fixture .ms-compact-crest-wrap{
    align-items:center!important;
    display:flex!important;
    height:30px!important;
    justify-content:center!important;
    min-height:30px!important;
    min-width:34px!important;
    padding:0!important;
    transform:none!important;
    width:34px!important;
  }
  .ms-home-today .ms-compact-crest-wrap :is(.ms-crest,.ms-crest-fallback,img),
  .ms-match-groups.is-competition-fixture .ms-compact-crest-wrap :is(.ms-crest,.ms-crest-fallback,img){
    display:block!important;
    height:28px!important;
    max-height:28px!important;
    max-width:28px!important;
    object-fit:contain!important;
    width:28px!important;
  }
  .ms-home-today .ms-compact-center,
  .ms-home-today .ms-compact-center.has-red-cards,
  .ms-match-groups.is-competition-fixture .ms-compact-center,
  .ms-match-groups.is-competition-fixture .ms-compact-center.has-red-cards{
    align-items:flex-start!important;
    align-self:start!important;
    display:flex!important;
    justify-content:center!important;
    justify-self:center!important;
    min-width:124px!important;
    padding:0!important;
    width:124px!important;
  }
  .ms-home-today .ms-compact-center-stack,
  .ms-home-today .ms-compact-center.has-red-cards .ms-compact-center-stack,
  .ms-match-groups.is-competition-fixture .ms-compact-center-stack,
  .ms-match-groups.is-competition-fixture .ms-compact-center.has-red-cards .ms-compact-center-stack{
    align-items:center!important;
    display:grid!important;
    justify-items:center!important;
    min-width:76px!important;
    width:76px!important;
  }
  .ms-home-today .ms-compact-score-row,
  .ms-match-groups.is-competition-fixture .ms-compact-score-row{
    align-items:center!important;
    display:inline-flex!important;
    justify-content:center!important;
    min-height:30px!important;
    position:relative!important;
    width:max-content!important;
  }
  .ms-home-today .ms-compact-team-goals,
  .ms-match-groups.is-competition-fixture .ms-compact-team-goals{
    box-sizing:border-box!important;
    min-height:12px!important;
    padding:0!important;
  }
}

/* Fixture = exactamente la escala tipográfica del Main, no una versión mini. */
.ms-match-groups.is-competition-fixture .ms-compact-match{
  gap:2px!important;
  padding:5px 12px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-match-meta{line-height:1!important;min-height:11px!important}
.ms-match-groups.is-competition-fixture .ms-compact-match-meta time{font-size:.66rem!important;line-height:1!important}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill{gap:6px!important;min-height:30px!important}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill>b{
  color:var(--ms-ink,#0a1a33)!important;
  font-family:var(--ms-title-font),Inter,Arial,sans-serif!important;
  font-size:1.58rem!important;
  font-weight:1000!important;
  letter-spacing:-.045em!important;
  line-height:.92!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill>span{
  color:var(--ms-ink,#0a1a33)!important;
  font-size:.92rem!important;
  font-weight:1000!important;
  line-height:1!important;
}
.ms-match-groups.is-competition-fixture .ms-match-status-chip{font-size:.47rem!important;line-height:1!important;padding:2px 6px!important}
.ms-match-groups.is-competition-fixture .ms-compact-team-goals{font-size:.52rem!important;line-height:1.05!important}
.ms-match-groups.is-competition-fixture .ms-compact-footer{display:grid!important;gap:1px!important;line-height:1!important;min-height:10px!important}
.ms-match-groups.is-competition-fixture .ms-compact-venue{font-size:.55rem!important;line-height:1!important;margin:0!important}
html[data-tessirve-color-mode="dark"] .ms-match-groups.is-competition-fixture .ms-compact-score-pill>b,
html[data-tessirve-color-mode="dark"] .ms-match-groups.is-competition-fixture .ms-compact-score-pill>span{color:#f8fbff!important}

/* Tablet/celular: mismos ejes, reducidos juntos. */
@media(max-width:680px){
  .ms-home-today .ms-compact-scoreline,
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline,
  .ms-home-today .ms-compact-scoreline:has(.ms-compact-center.has-red-cards),
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    column-gap:6px!important;
    grid-template-columns:minmax(0,1fr) 84px minmax(0,1fr)!important;
  }
  .ms-home-today .ms-compact-center,
  .ms-home-today .ms-compact-center.has-red-cards,
  .ms-match-groups.is-competition-fixture .ms-compact-center,
  .ms-match-groups.is-competition-fixture .ms-compact-center.has-red-cards{min-width:84px!important;width:84px!important}
  .ms-home-today .ms-compact-center-stack,
  .ms-match-groups.is-competition-fixture .ms-compact-center-stack{min-width:62px!important;width:62px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-match{padding:5px 7px!important}
  .ms-match-groups.is-competition-fixture .ms-compact-score-pill>b{font-size:1.38rem!important}
  .ms-match-groups.is-competition-fixture .ms-compact-score-pill>span{font-size:.82rem!important}
}


/* ========================================================================== 
 * 5.17.99 — EJE REAL DE PARTIDO + PERFIL SIN RECORTES
 * Corrige el desplazamiento del centro introducido por 5.17.98 y deja MAIN,
 * Fixture y últimos partidos con una geometría estable y nombres completos.
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * MAIN + FIXTURE: hora / resultado / estado / estadio comparten EL MISMO eje.
 * -------------------------------------------------------------------------- */
.ms-home-today .ms-compact-match-meta,
.ms-match-groups.is-competition-fixture .ms-compact-match-meta{
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  text-align:center!important;
  width:100%!important;
}
.ms-home-today .ms-compact-match-meta time,
.ms-match-groups.is-competition-fixture .ms-compact-match-meta time{
  display:block!important;
  margin-inline:auto!important;
  text-align:center!important;
}
.ms-home-today .ms-compact-match-meta>span,
.ms-match-groups.is-competition-fixture .ms-compact-match-meta>span{
  position:absolute!important;
  right:0!important;
  top:50%!important;
  transform:translateY(-50%)!important;
}

@media(min-width:681px){
  .ms-home-today .ms-compact-scoreline,
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline,
  .ms-home-today .ms-compact-scoreline:has(.ms-compact-center.has-red-cards),
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    align-items:start!important;
    column-gap:12px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr)!important;
    min-height:34px!important;
    width:100%!important;
  }
  .ms-home-today .ms-compact-center,
  .ms-home-today .ms-compact-center.has-red-cards,
  .ms-match-groups.is-competition-fixture .ms-compact-center,
  .ms-match-groups.is-competition-fixture .ms-compact-center.has-red-cards{
    align-items:center!important;
    align-self:start!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    justify-self:center!important;
    min-width:96px!important;
    width:96px!important;
  }
  .ms-home-today .ms-compact-center-stack,
  .ms-home-today .ms-compact-center.has-red-cards .ms-compact-center-stack,
  .ms-match-groups.is-competition-fixture .ms-compact-center-stack,
  .ms-match-groups.is-competition-fixture .ms-compact-center.has-red-cards .ms-compact-center-stack{
    align-items:center!important;
    justify-items:center!important;
    margin-inline:auto!important;
    min-width:76px!important;
    width:76px!important;
  }
  .ms-home-today .ms-compact-score-row,
  .ms-match-groups.is-competition-fixture .ms-compact-score-row{
    margin-inline:auto!important;
  }
}

.ms-home-today .ms-compact-footer,
.ms-match-groups.is-competition-fixture .ms-compact-footer{
  align-items:center!important;
  justify-items:center!important;
  text-align:center!important;
  width:100%!important;
}
.ms-home-today .ms-compact-venue,
.ms-match-groups.is-competition-fixture .ms-compact-venue{
  margin-inline:auto!important;
  text-align:center!important;
  width:100%!important;
}

/* Fixture: MISMA lectura que Main; no hay versión mini. */
.ms-match-groups.is-competition-fixture .ms-compact-match{
  gap:2px!important;
  padding:4px 10px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-team-copy>strong,
.ms-match-groups.is-competition-fixture .ms-compact-team-name{
  font-family:var(--ms-ui-font)!important;
  font-size:.76rem!important;
  font-weight:900!important;
  letter-spacing:-.008em!important;
  line-height:1.05!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill{
  align-items:center!important;
  display:flex!important;
  gap:4px!important;
  justify-content:center!important;
  min-height:29px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill>b{
  color:#071a34!important;
  font-family:var(--ms-ui-font)!important;
  font-size:1.34rem!important;
  font-stretch:condensed!important;
  font-style:normal!important;
  font-variant-numeric:tabular-nums lining-nums!important;
  font-weight:900!important;
  letter-spacing:-.045em!important;
  line-height:.94!important;
  -webkit-font-smoothing:antialiased!important;
  text-rendering:geometricPrecision!important;
  text-shadow:0 1px 0 rgba(255,255,255,.96),0 2px 2px rgba(5,22,43,.16)!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-score-pill>span{
  color:#53647b!important;
  font-family:var(--ms-ui-font)!important;
  font-size:.82rem!important;
  font-weight:800!important;
  letter-spacing:-.04em!important;
  line-height:1!important;
  margin:0!important;
}
.ms-match-groups.is-competition-fixture .ms-match-status-chip{
  font-size:.62rem!important;
  line-height:1!important;
  padding:5px 10px!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-team-goals{
  font-size:.66rem!important;
  line-height:1.08!important;
}
.ms-match-groups.is-competition-fixture .ms-compact-venue{
  font-size:.66rem!important;
  font-weight:650!important;
  line-height:1.1!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-groups.is-competition-fixture .ms-compact-score-pill>b{
  color:#f7fbff!important;
  text-shadow:0 1px 0 rgba(255,255,255,.10),0 2px 3px rgba(0,0,0,.78)!important;
}
html[data-tessirve-color-mode="dark"] .ms-match-groups.is-competition-fixture .ms-compact-score-pill>span{
  color:#cbd6e4!important;
}

/* --------------------------------------------------------------------------
 * PERFIL DE CLUB — últimos 10 partidos: ejes simétricos en PC.
 * -------------------------------------------------------------------------- */
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline{
  align-items:start!important;
  column-gap:8px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr)!important;
  min-height:48px!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home,
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away{
  align-content:start!important;
  align-items:start!important;
  display:grid!important;
  min-width:0!important;
  row-gap:3px!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home{
  column-gap:6px!important;
  grid-template-columns:minmax(0,1fr) 32px!important;
  grid-template-rows:auto auto!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away{
  column-gap:6px!important;
  grid-template-columns:32px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
}
.ms-team-profile .ms-team-last-ten .is-home>.ms-compact-team-copy{
  align-items:flex-end!important;
  grid-column:1!important;
  grid-row:1!important;
  justify-self:stretch!important;
  text-align:right!important;
}
.ms-team-profile .ms-team-last-ten .is-home>.ms-compact-crest-wrap{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:center!important;
}
.ms-team-profile .ms-team-last-ten .is-away>.ms-compact-crest-wrap{
  grid-column:1!important;
  grid-row:1!important;
  justify-self:center!important;
}
.ms-team-profile .ms-team-last-ten .is-away>.ms-compact-team-copy{
  align-items:flex-start!important;
  grid-column:2!important;
  grid-row:1!important;
  justify-self:stretch!important;
  text-align:left!important;
}
.ms-team-profile .ms-team-last-ten .is-home>.ms-compact-team-goals{
  grid-column:1 / span 2!important;
  grid-row:2!important;
  justify-self:end!important;
  text-align:right!important;
}
.ms-team-profile .ms-team-last-ten .is-away>.ms-compact-team-goals{
  grid-column:1 / span 2!important;
  grid-row:2!important;
  justify-self:start!important;
  text-align:left!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-team-copy,
.ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong,
.ms-team-profile .ms-team-last-ten .ms-compact-team-name{
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong{
  align-items:center!important;
  display:flex!important;
  font-size:.82rem!important;
  font-weight:900!important;
  line-height:1.08!important;
  min-height:32px!important;
  white-space:normal!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-team-name{
  display:block!important;
  overflow-wrap:normal!important;
  white-space:normal!important;
  word-break:normal!important;
  -webkit-box-orient:initial!important;
  -webkit-line-clamp:unset!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-center,
.ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{
  align-items:center!important;
  align-self:start!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  justify-self:center!important;
  min-width:78px!important;
  width:78px!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-center-stack{
  align-items:center!important;
  justify-items:center!important;
  margin-inline:auto!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-match-meta{
  position:relative!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-footer{
  align-items:center!important;
  justify-items:center!important;
  text-align:center!important;
}

/* Celular: nombres completos, sin A… / sin desaparición. Las tarjetas pueden
 * crecer lo necesario; nunca sacrificamos el nombre del club por ahorrar alto. */
@media(max-width:680px){
  .ms-home-today .ms-compact-scoreline,
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline,
  .ms-home-today .ms-compact-scoreline:has(.ms-compact-center.has-red-cards),
  .ms-match-groups.is-competition-fixture .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    column-gap:5px!important;
    grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr)!important;
  }
  .ms-home-today .ms-compact-center,
  .ms-home-today .ms-compact-center.has-red-cards,
  .ms-match-groups.is-competition-fixture .ms-compact-center,
  .ms-match-groups.is-competition-fixture .ms-compact-center.has-red-cards{
    align-items:center!important;
    min-width:70px!important;
    width:70px!important;
  }
  .ms-home-today .ms-compact-center-stack,
  .ms-match-groups.is-competition-fixture .ms-compact-center-stack{
    margin-inline:auto!important;
    min-width:58px!important;
    width:58px!important;
  }
  .ms-match-groups.is-competition-fixture .ms-compact-score-pill>b{font-size:1.22rem!important}
  .ms-match-groups.is-competition-fixture .ms-compact-score-pill>span{font-size:.76rem!important}
  .ms-match-groups.is-competition-fixture .ms-match-status-chip{font-size:.55rem!important;padding:4px 7px!important}

  .ms-team-profile .ms-team-last-ten .ms-compact-match{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    padding:8px 7px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline{
    align-items:start!important;
    column-gap:4px!important;
    grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)!important;
    min-height:54px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home{
    column-gap:4px!important;
    grid-template-columns:minmax(0,1fr) 30px!important;
    grid-template-rows:auto auto!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away{
    column-gap:4px!important;
    grid-template-columns:30px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-copy{
    display:flex!important;
    min-height:0!important;
    overflow:visible!important;
    visibility:visible!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong{
    display:flex!important;
    font-size:.72rem!important;
    line-height:1.08!important;
    min-height:30px!important;
    overflow:visible!important;
    text-overflow:clip!important;
    visibility:visible!important;
    white-space:normal!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-name{
    display:block!important;
    max-height:none!important;
    opacity:1!important;
    overflow:visible!important;
    overflow-wrap:normal!important;
    text-overflow:clip!important;
    visibility:visible!important;
    white-space:normal!important;
    word-break:normal!important;
    -webkit-box-orient:initial!important;
    -webkit-line-clamp:unset!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap{
    height:30px!important;
    min-height:30px!important;
    min-width:30px!important;
    transform:none!important;
    width:30px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap :is(.ms-crest,.ms-crest-fallback,img){
    height:27px!important;
    max-height:27px!important;
    max-width:27px!important;
    object-fit:contain!important;
    width:27px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{
    align-items:center!important;
    min-width:64px!important;
    width:64px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center-stack{
    margin-inline:auto!important;
  }
}

@media(max-width:390px){
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline{
    grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{
    min-width:58px!important;
    width:58px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong{font-size:.69rem!important}
}

/* ========================================================================== 
 * 5.17.100 — CANON VISUAL ÚNICO DE PARTIDO · PERFIL ÚLTIMOS 10
 * El Main sigue siendo la referencia. Estas tarjetas reutilizan su escala
 * (nombre/escudo/score/estado/goleadores/estadio) y eliminan alturas heredadas.
 * ========================================================================== */

.ms-team-profile .ms-team-last-ten .ms-match-groups,
.ms-team-profile .ms-team-last-ten .ms-match-group,
.ms-team-profile .ms-team-last-ten .ms-compact-match-grid{
  min-height:0!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-match-grid{
  align-items:start!important;
  grid-auto-rows:auto!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-match{
  align-content:start!important;
  align-self:start!important;
  box-sizing:border-box!important;
  gap:2px!important;
  grid-template-rows:auto auto auto!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:6px 10px!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-match-meta{
  align-items:center!important;
  line-height:1!important;
  min-height:12px!important;
  padding:0!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-match-meta time{
  font-size:.66rem!important;
  line-height:1!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-match-meta>span{
  font-size:.56rem!important;
  line-height:1!important;
  padding:2px 5px!important;
}

/* Mismo esqueleto visual que el Main: equipo | centro | equipo. */
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline,
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
  align-items:start!important;
  column-gap:6px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr)!important;
  min-height:0!important;
  row-gap:0!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home,
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away{
  align-content:start!important;
  align-items:start!important;
  display:grid!important;
  min-height:0!important;
  min-width:0!important;
  row-gap:1px!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home{
  column-gap:5px!important;
  grid-template-columns:minmax(0,1fr) 30px!important;
  grid-template-rows:28px auto!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away{
  column-gap:5px!important;
  grid-template-columns:30px minmax(0,1fr)!important;
  grid-template-rows:28px auto!important;
}

.ms-team-profile .ms-team-last-ten .is-home>.ms-compact-team-copy{
  align-items:flex-end!important;
  align-self:center!important;
  grid-column:1!important;
  grid-row:1!important;
  justify-self:stretch!important;
  text-align:right!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .is-home>.ms-compact-crest-wrap{
  grid-column:2!important;
  grid-row:1!important;
}
.ms-team-profile .ms-team-last-ten .is-home>.ms-compact-team-goals{
  grid-column:1 / span 2!important;
  grid-row:2!important;
  justify-self:end!important;
  text-align:right!important;
}
.ms-team-profile .ms-team-last-ten .is-away>.ms-compact-crest-wrap{
  grid-column:1!important;
  grid-row:1!important;
}
.ms-team-profile .ms-team-last-ten .is-away>.ms-compact-team-copy{
  align-items:flex-start!important;
  align-self:center!important;
  grid-column:2!important;
  grid-row:1!important;
  justify-self:stretch!important;
  text-align:left!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .is-away>.ms-compact-team-goals{
  grid-column:1 / span 2!important;
  grid-row:2!important;
  justify-self:start!important;
  text-align:left!important;
}

/* Exactamente la escala tipográfica del Main. */
.ms-team-profile .ms-team-last-ten .ms-compact-team-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-height:0!important;
  min-width:0!important;
  overflow:visible!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong,
.ms-team-profile .ms-team-last-ten .ms-compact-team-name{
  font-family:var(--ms-ui-font)!important;
  font-size:.76rem!important;
  font-weight:900!important;
  letter-spacing:-.008em!important;
  line-height:1.05!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong{
  align-items:center!important;
  display:flex!important;
  min-height:28px!important;
  min-width:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .is-home .ms-compact-team-copy>strong{justify-content:flex-end!important}
.ms-team-profile .ms-team-last-ten .is-away .ms-compact-team-copy>strong{justify-content:flex-start!important}
.ms-team-profile .ms-team-last-ten .ms-compact-team-name{
  display:block!important;
  max-height:none!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
  overflow-wrap:normal!important;
  text-overflow:clip!important;
  white-space:normal!important;
  word-break:normal!important;
  -webkit-box-orient:initial!important;
  -webkit-line-clamp:unset!important;
}

.ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap{
  align-items:center!important;
  align-self:center!important;
  display:flex!important;
  height:28px!important;
  justify-content:center!important;
  justify-self:center!important;
  margin:0!important;
  min-height:28px!important;
  min-width:30px!important;
  padding:0!important;
  transform:none!important;
  width:30px!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap :is(.ms-crest,.ms-crest-fallback,img){
  display:block!important;
  height:28px!important;
  margin:0!important;
  max-height:28px!important;
  max-width:28px!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0!important;
  transform:none!important;
  width:28px!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-team-goals{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  font-size:.66rem!important;
  gap:1px!important;
  line-height:1.08!important;
  margin:0!important;
  min-height:0!important;
  min-width:0!important;
  padding:0!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-team-goals .ms-compact-goal-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:3px!important;
  justify-content:inherit!important;
  max-width:100%!important;
  width:100%!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-team-goals .ms-compact-goal-item{
  max-width:100%!important;
  white-space:nowrap!important;
}

.ms-team-profile .ms-team-last-ten .ms-compact-center,
.ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{
  align-items:center!important;
  align-self:start!important;
  display:flex!important;
  flex-direction:column!important;
  gap:1px!important;
  justify-content:flex-start!important;
  justify-self:center!important;
  min-width:68px!important;
  padding:0!important;
  width:68px!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-center-stack,
.ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards .ms-compact-center-stack{
  align-items:center!important;
  display:grid!important;
  justify-items:center!important;
  margin:0 auto!important;
  min-width:62px!important;
  width:62px!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-score-row{
  align-items:center!important;
  display:inline-flex!important;
  justify-content:center!important;
  min-height:29px!important;
  position:relative!important;
  width:max-content!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-score-pill{
  align-items:center!important;
  display:flex!important;
  gap:4px!important;
  justify-content:center!important;
  min-height:29px!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-score-pill>b{
  color:#071a34!important;
  font-family:var(--ms-ui-font)!important;
  font-size:1.34rem!important;
  font-variant-numeric:tabular-nums lining-nums!important;
  font-weight:900!important;
  letter-spacing:-.045em!important;
  line-height:.94!important;
  text-rendering:geometricPrecision!important;
  text-shadow:0 1px 0 rgba(255,255,255,.96),0 2px 2px rgba(5,22,43,.16)!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-score-pill>span{
  color:#53647b!important;
  font-family:var(--ms-ui-font)!important;
  font-size:.82rem!important;
  font-weight:800!important;
  letter-spacing:-.04em!important;
  line-height:1!important;
  margin:0!important;
}
.ms-team-profile .ms-team-last-ten .ms-match-status-chip{
  font-size:.62rem!important;
  line-height:1!important;
  margin:0!important;
  padding:5px 10px!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-footer{
  align-items:center!important;
  display:grid!important;
  gap:0!important;
  justify-items:center!important;
  line-height:1!important;
  margin:0!important;
  min-height:10px!important;
  text-align:center!important;
}
.ms-team-profile .ms-team-last-ten .ms-compact-venue{
  font-size:.66rem!important;
  font-weight:650!important;
  line-height:1.1!important;
  margin:0!important;
  text-align:center!important;
  width:100%!important;
}
html[data-tessirve-color-mode="dark"] .ms-team-profile .ms-team-last-ten .ms-compact-score-pill>b{
  color:#f7fbff!important;
  text-shadow:0 1px 0 rgba(255,255,255,.10),0 2px 3px rgba(0,0,0,.78)!important;
}
html[data-tessirve-color-mode="dark"] .ms-team-profile .ms-team-last-ten .ms-compact-score-pill>span{color:#cbd6e4!important}

/* Teléfono: misma composición del Main, sólo reducida proporcionalmente. */
@media(max-width:780px){
  .ms-team-profile .ms-team-last-ten .ms-compact-match-grid{
    grid-template-columns:1fr!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-match{
    gap:2px!important;
    padding:6px 7px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline,
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    column-gap:4px!important;
    grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr)!important;
    min-height:0!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home{
    column-gap:3px!important;
    grid-template-columns:minmax(0,1fr) 26px!important;
    grid-template-rows:26px auto!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away{
    column-gap:3px!important;
    grid-template-columns:26px minmax(0,1fr)!important;
    grid-template-rows:26px auto!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong,
  .ms-team-profile .ms-team-last-ten .ms-compact-team-name{
    font-size:.68rem!important;
    line-height:1.05!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong{
    min-height:26px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap{
    height:26px!important;
    min-height:26px!important;
    min-width:26px!important;
    width:26px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap :is(.ms-crest,.ms-crest-fallback,img){
    height:24px!important;
    max-height:24px!important;
    max-width:24px!important;
    width:24px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-goals{
    font-size:.52rem!important;
    line-height:1.04!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{
    min-width:56px!important;
    width:56px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center-stack{
    min-width:54px!important;
    width:54px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-score-row,
  .ms-team-profile .ms-team-last-ten .ms-compact-score-pill{min-height:26px!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-score-pill>b{font-size:1.16rem!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-score-pill>span{font-size:.74rem!important}
  .ms-team-profile .ms-team-last-ten .ms-match-status-chip{font-size:.55rem!important;padding:4px 7px!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-venue{font-size:.54rem!important;line-height:1.05!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-match-meta time{font-size:.61rem!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-match-meta>span{font-size:.52rem!important;padding:2px 4px!important}
}

@media(max-width:390px){
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline,
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    column-gap:3px!important;
    grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr)!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{min-width:52px!important;width:52px!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-center-stack{min-width:50px!important;width:50px!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-score-pill>b{font-size:1.10rem!important}
}


/* ========================================================================== 
 * 5.17.101 — PERFIL · ÚLTIMOS 10 / MÓVIL FINAL
 * En móvil mantenemos el mismo lenguaje del Main pero reservando ancho REAL
 * para los nombres. La cabecera también pasa a una sola fila limpia.
 * ========================================================================== */
@media(max-width:560px){
  /* Banner: título a la izquierda + CTA a la derecha, ambos centrados verticalmente. */
  .ms-team-profile .ms-team-section-banner{
    align-items:center!important;
    display:flex!important;
    gap:8px!important;
    justify-content:space-between!important;
    min-height:44px!important;
    overflow:hidden!important;
    padding:7px 10px!important;
  }
  .ms-team-profile .ms-team-section-banner h2{
    flex:1 1 auto!important;
    font-size:.82rem!important;
    line-height:1!important;
    margin:0!important;
    min-width:0!important;
    white-space:nowrap!important;
  }
  .ms-team-profile .ms-team-section-banner-action{
    align-items:center!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    font-size:.48rem!important;
    justify-content:center!important;
    line-height:1.05!important;
    margin:0!important;
    min-height:30px!important;
    padding:5px 9px!important;
    white-space:nowrap!important;
  }
  /* En teléfono el watermark competía con el CTA y forzaba el título a dos líneas. */
  .ms-team-profile .ms-team-section-banner-crest{display:none!important}

  /* Tarjeta compacta: meta / partido / estadio. Sin colchones verticales. */
  .ms-team-profile .ms-team-last-ten .ms-compact-match{
    align-content:start!important;
    gap:3px!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
    padding:6px 7px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-match-meta{
    align-items:center!important;
    line-height:1!important;
    min-height:13px!important;
    padding:0!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-match-meta time{
    font-size:.61rem!important;
    line-height:1!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-match-meta>span{
    font-size:.51rem!important;
    line-height:1!important;
    padding:2px 4px!important;
  }

  /* Tres zonas simétricas. Cada equipo conserva ~100 px útiles para su nombre. */
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline,
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    align-items:start!important;
    column-gap:4px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr)!important;
    min-height:0!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home,
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away{
    align-content:start!important;
    align-items:start!important;
    display:grid!important;
    min-height:0!important;
    min-width:0!important;
    row-gap:2px!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home{
    column-gap:3px!important;
    grid-template-columns:minmax(0,1fr) 24px!important;
    grid-template-rows:auto auto!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away{
    column-gap:3px!important;
    grid-template-columns:24px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
  }

  .ms-team-profile .ms-team-last-ten .is-home>.ms-compact-team-copy{
    align-items:flex-end!important;
    align-self:start!important;
    grid-column:1!important;
    grid-row:1!important;
    text-align:right!important;
  }
  .ms-team-profile .ms-team-last-ten .is-home>.ms-compact-crest-wrap{
    grid-column:2!important;
    grid-row:1!important;
  }
  .ms-team-profile .ms-team-last-ten .is-away>.ms-compact-crest-wrap{
    grid-column:1!important;
    grid-row:1!important;
  }
  .ms-team-profile .ms-team-last-ten .is-away>.ms-compact-team-copy{
    align-items:flex-start!important;
    align-self:start!important;
    grid-column:2!important;
    grid-row:1!important;
    text-align:left!important;
  }

  /* Nombres: ancho completo del lado, sin ellipsis ni palabra por renglón. */
  .ms-team-profile .ms-team-last-ten .ms-compact-team-copy{
    display:flex!important;
    justify-content:flex-start!important;
    min-height:24px!important;
    min-width:0!important;
    overflow:visible!important;
    padding:0!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong,
  .ms-team-profile .ms-team-last-ten .ms-compact-team-name{
    font-family:var(--ms-ui-font)!important;
    font-size:.67rem!important;
    font-weight:900!important;
    letter-spacing:-.008em!important;
    line-height:1.06!important;
    max-height:none!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    overflow-wrap:normal!important;
    text-overflow:clip!important;
    white-space:normal!important;
    word-break:normal!important;
    -webkit-box-orient:initial!important;
    -webkit-line-clamp:unset!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong{
    align-items:flex-start!important;
    display:flex!important;
    min-height:24px!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-name{
    display:block!important;
    text-wrap:balance!important;
  }
  .ms-team-profile .ms-team-last-ten .is-home .ms-compact-team-copy>strong{justify-content:flex-end!important}
  .ms-team-profile .ms-team-last-ten .is-away .ms-compact-team-copy>strong{justify-content:flex-start!important}

  /* Escudos a escala Main, sin robar ancho a los nombres. */
  .ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap{
    align-items:flex-start!important;
    display:flex!important;
    height:24px!important;
    justify-content:center!important;
    margin:0!important;
    min-height:24px!important;
    min-width:24px!important;
    padding:0!important;
    transform:none!important;
    width:24px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap :is(.ms-crest,.ms-crest-fallback,img){
    height:22px!important;
    margin:0!important;
    max-height:22px!important;
    max-width:22px!important;
    object-fit:contain!important;
    padding:0!important;
    transform:none!important;
    width:22px!important;
  }

  /* Goleadores debajo de cada lado. */
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline .ms-compact-team-goals{
    display:flex!important;
    flex-direction:column!important;
    font-size:.49rem!important;
    gap:1px!important;
    line-height:1.04!important;
    margin:0!important;
    min-height:0!important;
    min-width:0!important;
    padding-top:1px!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home>.ms-compact-team-goals{
    grid-column:1 / span 2!important;
    grid-row:2!important;
    justify-self:end!important;
    text-align:right!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{
    grid-column:1 / span 2!important;
    grid-row:2!important;
    justify-self:start!important;
    text-align:left!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-goals .ms-compact-goal-row{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:2px 3px!important;
    max-width:100%!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .is-home .ms-compact-goal-row{justify-content:flex-end!important}
  .ms-team-profile .ms-team-last-ten .is-away .ms-compact-goal-row{justify-content:flex-start!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-team-goals .ms-compact-goal-item{
    max-width:100%!important;
    white-space:nowrap!important;
  }

  /* Centro: misma presencia del Main, pero sin empujar los equipos. */
  .ms-team-profile .ms-team-last-ten .ms-compact-center,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{
    align-items:center!important;
    align-self:start!important;
    display:flex!important;
    flex-direction:column!important;
    gap:2px!important;
    justify-content:flex-start!important;
    justify-self:center!important;
    min-width:48px!important;
    padding-top:1px!important;
    width:48px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center-stack,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards .ms-compact-center-stack{
    margin:0 auto!important;
    min-width:46px!important;
    width:46px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-score-row,
  .ms-team-profile .ms-team-last-ten .ms-compact-score-pill{min-height:24px!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-score-pill{gap:3px!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-score-pill>b{
    font-size:1.22rem!important;
    line-height:.95!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-score-pill>span{
    font-size:.70rem!important;
    line-height:1!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-match-status-chip{
    font-size:.53rem!important;
    line-height:1!important;
    padding:4px 7px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-footer{
    margin:0!important;
    min-height:10px!important;
    padding:0!important;
    text-align:center!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-venue{
    font-size:.52rem!important;
    line-height:1.05!important;
    margin:0!important;
  }
}

@media(max-width:390px){
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline,
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    column-gap:3px!important;
    grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr)!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{min-width:46px!important;width:46px!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-center-stack,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards .ms-compact-center-stack{min-width:44px!important;width:44px!important}
  .ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong,
  .ms-team-profile .ms-team-last-ten .ms-compact-team-name{font-size:.65rem!important}
}


/* ==========================================================================\n   5.17.102 — RANKING HISTÓRICO: MODAL APROVECHADO DE VERDAD\n   El listado ocupa toda la ventana emergente. En móvil, club/podio/títulos\n   comparten la primera fila y los años usan TODO el ancho de la tarjeta.\n   ========================================================================== */
html[data-tessirve-theme] .ms-history-modal .ms-history-modal-dialog:has(.ms-history-modal-content.is-ranking){
  box-sizing:border-box!important;
  width:min(760px,calc(100vw - 28px))!important;
  max-width:760px!important;
  max-height:min(88vh,760px)!important;
  overflow:auto!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  padding:0 14px 14px!important;
  text-align:left!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking>header{
  box-sizing:border-box!important;
  width:auto!important;
  min-height:72px!important;
  margin:0 -14px 12px!important;
  padding:12px 52px 10px!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-list{
  box-sizing:border-box!important;
  display:grid!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  gap:7px!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-row{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) 70px!important;
  align-items:center!important;
  column-gap:10px!important;
  row-gap:5px!important;
  width:100%!important;
  min-height:68px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-pos{
  box-sizing:border-box!important;
  align-self:center!important;
  justify-self:center!important;
  width:31px!important;
  height:31px!important;
  margin:0!important;
  font-size:.76rem!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-entry{
  box-sizing:border-box!important;
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  gap:5px!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-club{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  gap:8px!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-crest{
  flex:0 0 34px!important;
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest,
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest-fallback{
  width:34px!important;
  max-width:34px!important;
  height:34px!important;
  max-height:34px!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-team{
  display:block!important;
  min-width:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  font-size:.80rem!important;
  line-height:1.08!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-title-years{
  box-sizing:border-box!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  gap:4px!important;
  padding-left:0!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-title-year{
  min-height:19px!important;
  padding:3px 6px!important;
  font-size:.53rem!important;
  line-height:1!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-titles{
  box-sizing:border-box!important;
  align-self:center!important;
  justify-self:end!important;
  width:68px!important;
  min-width:68px!important;
  height:50px!important;
  margin:0!important;
  padding:4px 5px!important;
  border-radius:10px!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-titles small{
  margin:0 0 3px!important;
  font-size:.42rem!important;
}
html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-titles strong{
  font-size:1rem!important;
}

@media(max-width:640px){
  html[data-tessirve-theme] .ms-history-modal{
    padding:5px!important;
  }
  html[data-tessirve-theme] .ms-history-modal .ms-history-modal-dialog:has(.ms-history-modal-content.is-ranking){
    width:calc(100vw - 10px)!important;
    max-width:calc(100vw - 10px)!important;
    max-height:calc(100dvh - 10px)!important;
    border-radius:15px!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking{
    padding:0 7px 8px!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking>header{
    min-height:62px!important;
    margin:0 -7px 7px!important;
    padding:8px 42px 7px!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking>header .ms-crest,
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking>header .ms-crest-fallback{
    width:44px!important;
    max-width:44px!important;
    height:31px!important;
    max-height:31px!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-list{
    gap:5px!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-row{
    grid-template-columns:28px minmax(0,1fr) 52px!important;
    grid-template-rows:auto auto!important;
    column-gap:5px!important;
    row-gap:5px!important;
    min-height:0!important;
    padding:6px!important;
    border-radius:10px!important;
  }
  /* En móvil liberamos el contenido anidado para que los años puedan ocupar
     la tarjeta completa, no sólo la angosta columna central. */
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-entry{
    display:contents!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-pos{
    grid-column:1!important;
    grid-row:1!important;
    width:26px!important;
    height:26px!important;
    font-size:.64rem!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-club{
    grid-column:2!important;
    grid-row:1!important;
    align-self:center!important;
    gap:6px!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-crest{
    flex-basis:28px!important;
    width:28px!important;
    min-width:28px!important;
    height:28px!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest,
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-crest .ms-crest-fallback{
    width:28px!important;
    max-width:28px!important;
    height:28px!important;
    max-height:28px!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-team{
    font-size:.70rem!important;
    line-height:1.06!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-titles{
    grid-column:3!important;
    grid-row:1!important;
    width:52px!important;
    min-width:52px!important;
    height:42px!important;
    border-radius:8px!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-titles strong{
    font-size:.86rem!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-ranking-titles small{
    font-size:.35rem!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-title-years{
    grid-column:1 / -1!important;
    grid-row:2!important;
    justify-content:center!important;
    width:100%!important;
    padding:0!important;
    gap:3px!important;
  }
  html[data-tessirve-theme] .ms-history-modal-content.is-ranking .ms-history-title-year{
    min-height:16px!important;
    padding:2px 4px!important;
    font-size:.43rem!important;
  }
}


/* ==========================================================================
   5.17.103 — PERFIL / ÚLTIMOS 10 · MÓVIL SIN SUPERPOSICIONES
   En teléfono cada lado reserva una fila exclusiva para el nombre y otra para
   el escudo. Así ningún nombre puede quedar debajo del escudo, ni siquiera
   con nombres largos. PC queda intacto.
   ========================================================================== */
@media(max-width:560px){
  .ms-team-profile .ms-team-last-ten .ms-compact-match{
    padding:7px 8px!important;
    gap:3px!important;
  }

  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline,
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    align-items:start!important;
    column-gap:5px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr)!important;
    width:100%!important;
  }

  /* Cada equipo: nombre arriba, escudo debajo, goleadores al final. */
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home,
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away{
    align-content:start!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto 28px auto!important;
    justify-items:center!important;
    min-width:0!important;
    row-gap:2px!important;
    width:100%!important;
  }

  .ms-team-profile .ms-team-last-ten .is-home>.ms-compact-team-copy,
  .ms-team-profile .ms-team-last-ten .is-away>.ms-compact-team-copy{
    align-items:center!important;
    align-self:start!important;
    grid-column:1!important;
    grid-row:1!important;
    justify-self:stretch!important;
    min-height:26px!important;
    overflow:visible!important;
    padding:0 2px!important;
    text-align:center!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong{
    align-items:flex-start!important;
    display:flex!important;
    justify-content:center!important;
    min-height:26px!important;
    overflow:visible!important;
    text-align:center!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-name{
    display:block!important;
    font-size:.70rem!important;
    font-weight:900!important;
    line-height:1.04!important;
    max-height:none!important;
    max-width:100%!important;
    overflow:visible!important;
    overflow-wrap:normal!important;
    text-align:center!important;
    text-overflow:clip!important;
    white-space:normal!important;
    word-break:normal!important;
    -webkit-box-orient:initial!important;
    -webkit-line-clamp:unset!important;
  }

  .ms-team-profile .ms-team-last-ten .is-home>.ms-compact-crest-wrap,
  .ms-team-profile .ms-team-last-ten .is-away>.ms-compact-crest-wrap{
    align-self:center!important;
    grid-column:1!important;
    grid-row:2!important;
    justify-self:center!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap{
    height:28px!important;
    margin:0!important;
    min-height:28px!important;
    min-width:28px!important;
    padding:0!important;
    transform:none!important;
    width:28px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap :is(.ms-crest,.ms-crest-fallback,img){
    height:25px!important;
    max-height:25px!important;
    max-width:25px!important;
    object-fit:contain!important;
    width:25px!important;
  }

  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home>.ms-compact-team-goals,
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{
    grid-column:1!important;
    grid-row:3!important;
    justify-self:stretch!important;
    padding-top:1px!important;
    text-align:center!important;
    width:100%!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-goals .ms-compact-goal-row,
  .ms-team-profile .ms-team-last-ten .is-home .ms-compact-goal-row,
  .ms-team-profile .ms-team-last-ten .is-away .ms-compact-goal-row{
    justify-content:center!important;
    text-align:center!important;
  }

  /* El score se alinea con la fila de escudos, nunca con la del nombre. */
  .ms-team-profile .ms-team-last-ten .ms-compact-center,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{
    align-self:start!important;
    justify-self:center!important;
    min-width:54px!important;
    padding-top:28px!important;
    width:54px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center-stack,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards .ms-compact-center-stack{
    min-width:52px!important;
    width:52px!important;
  }

  .ms-team-profile .ms-team-last-ten .ms-compact-score-pill>b{
    font-size:1.20rem!important;
    line-height:.95!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-score-pill>span{
    font-size:.72rem!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-match-status-chip{
    font-size:.54rem!important;
    padding:4px 7px!important;
  }

  .ms-team-profile .ms-team-last-ten .ms-compact-footer{
    margin-top:1px!important;
    text-align:center!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-venue{
    font-size:.53rem!important;
    line-height:1.05!important;
  }
}

@media(max-width:380px){
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline,
  .ms-team-profile .ms-team-last-ten .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    column-gap:3px!important;
    grid-template-columns:minmax(0,1fr) 50px minmax(0,1fr)!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{
    min-width:50px!important;
    width:50px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-center-stack,
  .ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards .ms-compact-center-stack{
    min-width:48px!important;
    width:48px!important;
  }
  .ms-team-profile .ms-team-last-ten .ms-compact-team-name{font-size:.67rem!important}
}

/* ========================================================================== 
 * 5.17.104 — PERFIL / ÚLTIMOS 10 · MÓVIL: GEOMETRÍA ÚNICA SIN SOLAPES
 * Solución estructural: los contenedores local/visitante pasan a display:contents
 * y sus piezas ocupan filas reales del grid exterior. Así nombre y escudo NUNCA
 * pueden compartir la misma celda, independientemente de reglas heredadas.
 * ========================================================================== */
@media(max-width:560px){
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    align-items:center!important;
    column-gap:4px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr)!important;
    grid-template-rows:auto 28px auto!important;
    row-gap:2px!important;
    min-height:0!important;
    width:100%!important;
  }

  /* Importante: elimina cualquier grid interno anterior y deja que cada pieza
     se coloque directamente en el grid principal del partido. */
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away{
    display:contents!important;
  }

  /* Fila 1: nombres, cada uno en su tercio. */
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home>.ms-compact-team-copy{
    align-items:center!important;
    align-self:end!important;
    grid-column:1!important;
    grid-row:1!important;
    justify-self:stretch!important;
    min-width:0!important;
    padding:0 3px 1px!important;
    text-align:center!important;
    width:auto!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away>.ms-compact-team-copy{
    align-items:center!important;
    align-self:end!important;
    grid-column:3!important;
    grid-row:1!important;
    justify-self:stretch!important;
    min-width:0!important;
    padding:0 3px 1px!important;
    text-align:center!important;
    width:auto!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-team-copy>strong{
    align-items:flex-end!important;
    display:flex!important;
    justify-content:center!important;
    min-height:0!important;
    min-width:0!important;
    text-align:center!important;
    width:100%!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-team-name{
    display:block!important;
    font-size:.70rem!important;
    font-weight:900!important;
    line-height:1.05!important;
    max-height:none!important;
    max-width:100%!important;
    overflow:visible!important;
    overflow-wrap:break-word!important;
    text-align:center!important;
    text-overflow:clip!important;
    white-space:normal!important;
    word-break:normal!important;
    -webkit-box-orient:initial!important;
    -webkit-line-clamp:unset!important;
  }

  /* Fila 2: escudo | resultado | escudo. */
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home>.ms-compact-crest-wrap{
    grid-column:1!important;
    grid-row:2!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away>.ms-compact-crest-wrap{
    grid-column:3!important;
    grid-row:2!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap{
    align-items:center!important;
    align-self:center!important;
    display:flex!important;
    height:28px!important;
    justify-content:center!important;
    justify-self:center!important;
    margin:0!important;
    min-height:28px!important;
    min-width:28px!important;
    padding:0!important;
    transform:none!important;
    width:28px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-crest-wrap :is(.ms-crest,.ms-crest-fallback,img){
    display:block!important;
    height:25px!important;
    margin:0!important;
    max-height:25px!important;
    max-width:25px!important;
    object-fit:contain!important;
    object-position:center!important;
    padding:0!important;
    transform:none!important;
    width:25px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-center,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{
    align-self:start!important;
    grid-column:2!important;
    grid-row:2 / span 2!important;
    justify-self:center!important;
    margin:0!important;
    min-width:54px!important;
    padding:0!important;
    width:54px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-center-stack,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards .ms-compact-center-stack{
    margin:0 auto!important;
    min-width:52px!important;
    width:52px!important;
  }

  /* Fila 3: goleadores debajo del equipo correspondiente. */
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-home>.ms-compact-team-goals{
    align-items:center!important;
    grid-column:1!important;
    grid-row:3!important;
    justify-self:stretch!important;
    text-align:center!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{
    align-items:center!important;
    grid-column:3!important;
    grid-row:3!important;
    justify-self:stretch!important;
    text-align:center!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-team-goals{
    display:flex!important;
    flex-direction:column!important;
    font-size:.50rem!important;
    gap:1px!important;
    line-height:1.05!important;
    margin:0!important;
    min-height:0!important;
    min-width:0!important;
    padding:1px 2px 0!important;
    width:auto!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-team-goals .ms-compact-goal-row,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .is-home .ms-compact-goal-row,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .is-away .ms-compact-goal-row{
    justify-content:center!important;
    text-align:center!important;
    width:100%!important;
  }

  /* Compactación final de la tarjeta. */
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-match{
    gap:3px!important;
    min-height:0!important;
    padding:6px 7px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-footer{
    margin-top:1px!important;
    min-height:9px!important;
    text-align:center!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-venue{
    font-size:.53rem!important;
    line-height:1.05!important;
  }
}

@media(max-width:380px){
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    column-gap:3px!important;
    grid-template-columns:minmax(0,1fr) 50px minmax(0,1fr)!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-center,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards{
    min-width:50px!important;
    width:50px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-center-stack,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-center.has-red-cards .ms-compact-center-stack{
    min-width:48px!important;
    width:48px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-last-ten .ms-compact-team-name{font-size:.67rem!important}
}


/* ========================================================================== 
   5.17.105 — PERFIL / ÚLTIMOS 10 · BANNER CON ESCUDO-WATERMARK + CTA LINK
   El CTA deja de parecer botón. El escudo vuelve a ocupar el costado derecho,
   como marca de agua por detrás del link, también en móvil.
   ========================================================================== */
.ms-team-profile .ms-team-section-banner{
  isolation:isolate!important;
  position:relative!important;
}
.ms-team-profile .ms-team-section-banner h2{
  position:relative!important;
  z-index:3!important;
}
.ms-team-profile .ms-team-section-banner-action{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:inherit!important;
  display:inline-flex!important;
  font-size:.62rem!important;
  font-weight:900!important;
  gap:3px!important;
  justify-content:center!important;
  line-height:1!important;
  margin-left:auto!important;
  margin-right:6px!important;
  min-height:0!important;
  padding:5px 2px!important;
  position:relative!important;
  text-decoration:none!important;
  text-shadow:0 1px 1px rgba(0,0,0,.20)!important;
  transition:opacity .16s ease,transform .16s ease!important;
  white-space:nowrap!important;
  z-index:4!important;
}
.ms-team-profile .ms-team-section-banner-action::after{
  content:"→";
  display:inline-block;
  font-size:.92em;
  margin-left:2px;
}
.ms-team-profile .ms-team-section-banner-action:hover,
.ms-team-profile .ms-team-section-banner-action:focus-visible{
  background:transparent!important;
  color:inherit!important;
  opacity:.84!important;
  text-decoration:none!important;
  transform:translateX(1px)!important;
}
.ms-team-profile .ms-team-section-banner-crest{
  align-items:center!important;
  display:flex!important;
  height:78px!important;
  justify-content:center!important;
  opacity:.16!important;
  pointer-events:none!important;
  position:absolute!important;
  right:-1px!important;
  top:50%!important;
  transform:translateY(-50%) rotate(-7deg)!important;
  width:78px!important;
  z-index:1!important;
}
.ms-team-profile .ms-team-section-banner-crest .ms-crest,
.ms-team-profile .ms-team-section-banner-crest .ms-crest-fallback,
.ms-team-profile .ms-team-section-banner-crest img{
  background:transparent!important;
  border:0!important;
  height:70px!important;
  max-height:70px!important;
  max-width:70px!important;
  object-fit:contain!important;
  padding:0!important;
  width:70px!important;
}
@media(max-width:560px){
  .ms-team-profile .ms-team-section-banner{
    gap:8px!important;
    min-height:44px!important;
    padding:7px 10px!important;
  }
  .ms-team-profile .ms-team-section-banner h2{
    flex:1 1 auto!important;
    font-size:.82rem!important;
    line-height:1!important;
    margin:0!important;
    min-width:0!important;
    white-space:nowrap!important;
  }
  .ms-team-profile .ms-team-section-banner-action{
    flex:0 0 auto!important;
    font-size:.56rem!important;
    margin-right:2px!important;
    padding:4px 1px!important;
  }
  .ms-team-profile .ms-team-section-banner-crest{
    display:flex!important;
    height:68px!important;
    opacity:.15!important;
    right:-5px!important;
    top:50%!important;
    width:68px!important;
  }
  .ms-team-profile .ms-team-section-banner-crest .ms-crest,
  .ms-team-profile .ms-team-section-banner-crest .ms-crest-fallback,
  .ms-team-profile .ms-team-section-banner-crest img{
    height:60px!important;
    max-height:60px!important;
    max-width:60px!important;
    width:60px!important;
  }
}

/* ========================================================================
   5.17.106 — PERFIL · SNAPSHOT 5/5 HASTA EL BORDE + NOMBRES COMPLETOS
   ======================================================================== */
@media (min-width:900px){
  /* El Theme arrastraba un max-width:1180px antiguo que recortaba la quinta
     tarjeta respecto de los contadores y de la barra "Últimos 10 partidos". */
  body.tessirve-theme .ms-app.ms-team-profile .ms-last-ten-context.ms-team-snapshot-v51788{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }

  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-v51788 > .ms-team-snapshot-biggest{
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
  }

  /* En “Máxima goleada” no cortamos nombres largos con ellipsis. Pueden usar
     dos líneas naturales dentro de la misma tarjeta sin alterar su altura. */
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-biggest a>small>span{
    min-width:0!important;
    max-width:100%!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-biggest a>small strong{
    display:block!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    max-width:100%!important;
  }
}


/* ========================================================================
   5.17.107 — PERFIL · MÁS COMPACTO + FILA SNAPSHOT RECTA + 5 CRUCES MÓVIL
   ======================================================================== */

/* Los seis contadores superiores deben ocupar menos alto: son KPIs, no cards
   de contenido. Mantener el número legible pero recuperar espacio vertical. */
body.tessirve-theme .ms-app.ms-team-profile .ms-summary-compact{
  margin-bottom:7px!important;
}
body.tessirve-theme .ms-app.ms-team-profile .ms-summary-stats{
  gap:6px!important;
}
body.tessirve-theme .ms-app.ms-team-profile .ms-summary-stats .ms-stat{
  border-radius:8px!important;
  box-sizing:border-box!important;
  min-height:40px!important;
  padding:3px 5px 2px!important;
}
body.tessirve-theme .ms-app.ms-team-profile .ms-summary-stats .ms-stat strong{
  font-size:1.08rem!important;
  line-height:.98!important;
}
body.tessirve-theme .ms-app.ms-team-profile .ms-summary-stats .ms-stat span{
  font-size:.53rem!important;
  line-height:1!important;
  margin-top:1px!important;
}

/* Desktop: las cinco cards del snapshot comparten EXACTAMENTE el mismo alto y
   la misma línea de base. Ninguna puede crecer por contenido propio. */
@media(min-width:900px){
  body.tessirve-theme .ms-app.ms-team-profile .ms-last-ten-context.ms-team-snapshot-v51788{
    align-items:stretch!important;
    grid-auto-rows:98px!important;
    grid-template-rows:98px!important;
    margin-bottom:9px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-v51788 > *,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-v51788 > div,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-v51788 > .ms-team-snapshot-next,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-v51788 > .ms-team-form-card,
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-v51788 > .ms-team-snapshot-biggest{
    box-sizing:border-box!important;
    height:98px!important;
    max-height:98px!important;
    min-height:98px!important;
    align-self:stretch!important;
    overflow:hidden!important;
  }

  /* Siguiente partido también entra en el mismo alto, sin perder la línea CTA. */
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-next{
    padding:5px 8px 4px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-next .ms-next-match-card-head{
    margin-bottom:1px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-next-match-main.ms-next-match-showcase{
    grid-template-columns:48px minmax(0,1fr) 24px!important;
    grid-template-rows:27px 25px!important;
    min-height:54px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-next-match-showcase .ms-next-match-rival{
    height:50px!important;
    min-width:48px!important;
    width:48px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-next-match-showcase .ms-next-match-rival :is(.ms-crest,.ms-crest-fallback){
    height:42px!important;
    max-height:42px!important;
    max-width:42px!important;
    width:42px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-next-match-showcase time{
    font-size:.64rem!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-next-match-history-line{
    min-height:23px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-snapshot-next .ms-next-match-more{
    font-size:.57rem!important;
    margin-top:2px!important;
    min-height:11px!important;
  }

  /* Forma reciente: mismas cinco mini cards, apenas más bajas para respetar
     la nueva fila de 98px. */
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-form-card{
    padding:5px 6px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-form-card>span:first-child{
    margin-bottom:3px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-last-five-form .ms-team-form-node{
    min-height:54px!important;
    padding:3px 1px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-last-five-form .ms-team-form-opponent,
  body.tessirve-theme .ms-app.ms-team-profile .ms-last-five-form .ms-team-form-opponent :is(.ms-crest,.ms-crest-fallback){
    height:23px!important;
    max-height:23px!important;
    max-width:23px!important;
    width:23px!important;
  }
}

@media(max-width:680px){
  /* Los KPIs en móvil también bajan un poco de alto. */
  body.tessirve-theme .ms-app.ms-team-profile .ms-summary-stats .ms-stat{
    min-height:38px!important;
    padding:3px 4px 2px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-summary-stats .ms-stat strong{
    font-size:1rem!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-summary-stats .ms-stat span{
    font-size:.51rem!important;
  }

  /* Forma reciente del perfil: SIEMPRE cinco en una sola fila. */
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-form-card{
    padding-left:6px!important;
    padding-right:6px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-team-form-timeline{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:2px!important;
    overflow:visible!important;
    width:100%!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-last-five-form .ms-team-form-node{
    min-height:49px!important;
    min-width:0!important;
    padding:3px 0!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-last-five-form .ms-team-form-opponent,
  body.tessirve-theme .ms-app.ms-team-profile .ms-last-five-form .ms-team-form-opponent :is(.ms-crest,.ms-crest-fallback){
    height:20px!important;
    max-height:20px!important;
    max-width:20px!important;
    width:20px!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-last-five-form .ms-team-form-date{
    font-size:.42rem!important;
  }
  body.tessirve-theme .ms-app.ms-team-profile .ms-last-five-form .ms-team-form-score{
    font-size:.57rem!important;
  }

  /* /proximos · “Últimos 5 cruces”: también una sola fila. Antes el Core
     permitía wrap a dos líneas para evitar overflow. Acá los cinco reparten el
     ancho disponible y se compactan, sin scroll horizontal. */
  body.tessirve-theme .ms-app.ms-team-upcoming-page .ms-upcoming-recent-h2h>div{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:2px!important;
    justify-content:stretch!important;
    overflow:visible!important;
    width:100%!important;
  }
  body.tessirve-theme .ms-app.ms-team-upcoming-page .ms-upcoming-recent-h2h a{
    box-sizing:border-box!important;
    flex:1 1 0!important;
    min-width:0!important;
    padding:3px 1px!important;
    white-space:nowrap!important;
  }
  body.tessirve-theme .ms-app.ms-team-upcoming-page .ms-upcoming-recent-h2h small{
    font-size:.43rem!important;
    line-height:1!important;
  }
  body.tessirve-theme .ms-app.ms-team-upcoming-page .ms-upcoming-recent-h2h b{
    font-size:.53rem!important;
    line-height:1!important;
  }
}
\n\n/* ========================================================================\n   5.17.108 — ARCHIVO DE PARTIDOS = MISMO LENGUAJE VISUAL DEL MAIN\n   Partidos / Victorias / Empates / Derrotas desde el perfil usan el mismo\n   renderer compacto de la agenda principal, sin tarjetas gigantes a 2 columnas.\n   ======================================================================== */\n.ms-team-archive .ms-back,\n.ms-team-archive .ms-page-heading,\n.ms-team-archive .ms-team-matches-filter{\n  box-sizing:border-box!important;\n  margin-left:auto!important;\n  margin-right:auto!important;\n  width:min(80%,1080px)!important;\n}\n.ms-team-archive .ms-back{\n  margin-bottom:7px!important;\n}\n.ms-team-archive .ms-page-heading{\n  margin-bottom:12px!important;\n}\n.ms-team-archive .ms-page-heading h1{\n  margin:0!important;\n}\n.ms-team-archive .ms-team-matches-filter{\n  align-items:end!important;\n  display:grid!important;\n  gap:9px!important;\n  grid-template-columns:minmax(150px,190px) minmax(150px,190px) auto auto!important;\n  margin-bottom:14px!important;\n  padding:10px 12px!important;\n}\n.ms-team-archive .ms-team-matches-filter label{\n  gap:3px!important;\n}\n.ms-team-archive .ms-team-matches-filter select{\n  height:36px!important;\n  min-width:0!important;\n  padding:6px 10px!important;\n  width:100%!important;\n}\n.ms-team-archive .ms-team-matches-filter .ms-button,\n.ms-team-archive .ms-team-matches-filter>a{\n  align-items:center!important;\n  box-sizing:border-box!important;\n  display:inline-flex!important;\n  height:36px!important;\n  justify-content:center!important;\n  margin:0!important;\n  padding:6px 12px!important;\n}\n\n/* El wrapper sólo activa la geometría del Main. La lista interna conserva\n   agrupación por competencia y cada partido ocupa una fila completa. */\n.ms-team-archive .ms-team-archive-main-style{\n  margin:0!important;\n  padding:0!important;\n  width:100%!important;\n}\n.ms-team-archive .ms-team-archive-main-style .ms-match-groups{\n  grid-template-columns:1fr!important;\n}\n.ms-team-archive .ms-team-archive-main-style .ms-compact-match-grid{\n  grid-template-columns:1fr!important;\n}\n.ms-team-archive .ms-team-archive-main-style .ms-compact-match-meta{\n  align-items:center!important;\n  justify-content:center!important;\n  text-align:center!important;\n}\n.ms-team-archive .ms-team-archive-main-style .ms-compact-match-meta time{\n  text-align:center!important;\n}\n.ms-team-archive .ms-team-archive-main-style .ms-pagination{\n  width:100%!important;\n}\n\n@media(max-width:760px){\n  .ms-team-archive .ms-back,\n  .ms-team-archive .ms-page-heading,\n  .ms-team-archive .ms-team-matches-filter{\n    width:100%!important;\n  }\n  .ms-team-archive .ms-page-heading h1{\n    font-size:1.72rem!important;\n  }\n  .ms-team-archive .ms-team-matches-filter{\n    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;\n    padding:9px!important;\n  }\n  .ms-team-archive .ms-team-matches-filter .ms-button,\n  .ms-team-archive .ms-team-matches-filter>a{\n    width:100%!important;\n  }\n}\n
/* ========================================================================== 
   5.17.109 — PLAYOFFS UNIVERSALES / FINAL CON IDENTIDAD DE LA COMPETICIÓN
   Una única geometría para Sudamericana, Libertadores, Champions, Copa
   Argentina y cualquier otro cuadro de eliminación directa.
   ========================================================================== */
.ms-app .ms-unified-playoffs .ms-knockout-phase,
.ms-app .ms-ca-playoffs-like-league .ms-knockout-phase{
  overflow:visible!important;
}

/* La Final deja de ser una franja vertical maciza. El centro queda integrado
   al cuadro y la identidad visual la da el trofeo/logo oficial. */
.ms-app .ms-knockout-mirror .ms-bracket-final-center,
.ms-app .ms-ca-knockout-mirror .ms-bracket-final-center{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  margin:0!important;
  padding:14px 7px!important;
  justify-content:center!important;
}
.ms-app .ms-bracket-competition-logo{
  align-items:center!important;
  display:flex!important;
  justify-content:center!important;
  margin:0 auto 10px!important;
  min-height:66px!important;
  width:100%!important;
}
.ms-app .ms-bracket-competition-logo .ms-crest,
.ms-app .ms-bracket-competition-logo .ms-crest-fallback{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  height:64px!important;
  max-height:64px!important;
  max-width:100%!important;
  object-fit:contain!important;
  padding:0!important;
  width:min(84px,100%)!important;
}
.ms-app .ms-bracket-final-card>h3{
  font-size:.66rem!important;
  font-weight:1000!important;
  letter-spacing:.08em!important;
  margin:0 0 7px!important;
  text-align:center!important;
  text-transform:uppercase!important;
}

/* En modo oscuro/Canchero el centro tampoco vuelve a convertirse en una placa. */
html[data-tessirve-color-mode="dark"] .ms-app .ms-knockout-mirror .ms-bracket-final-center,
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-mirror .ms-bracket-final-center,
html[data-tessirve-theme="canchero"] .ms-app .ms-ca-knockout-mirror .ms-bracket-final-center{
  background:transparent!important;
  border:0!important;
}

/* Móvil: la Final conserva el mismo lenguaje cronológico y muestra el logo
   de la copa por encima del rótulo FINAL. */
.ms-app .ms-fm-competition-logo{
  align-items:center!important;
  display:flex!important;
  justify-content:center!important;
  margin:0 auto 5px!important;
}
.ms-app .ms-fm-competition-logo .ms-crest,
.ms-app .ms-fm-competition-logo .ms-crest-fallback{
  background:transparent!important;
  border:0!important;
  height:50px!important;
  max-width:68px!important;
  object-fit:contain!important;
  padding:0!important;
  width:68px!important;
}

@media(max-width:720px){
  .ms-app .ms-knockout-mirror .ms-bracket-final-center,
  .ms-app .ms-ca-knockout-mirror .ms-bracket-final-center{
    margin:0!important;
    padding:10px 6px!important;
  }
  .ms-app .ms-bracket-competition-logo{min-height:54px!important;margin-bottom:7px!important}
  .ms-app .ms-bracket-competition-logo .ms-crest,
  .ms-app .ms-bracket-competition-logo .ms-crest-fallback{height:52px!important;max-height:52px!important;max-width:100%!important;width:min(72px,100%)!important}
  .ms-app .ms-fm-competition-logo .ms-crest,
  .ms-app .ms-fm-competition-logo .ms-crest-fallback{height:46px!important;max-width:62px!important;width:62px!important}
}


/* ==========================================================================
   5.17.110 — PLAYOFFS MÓVILES HORIZONTALES + MISMA IDENTIDAD EN TODOS LOS THEMES
   ========================================================================== */
html[data-tessirve-color-mode="dark"] .ms-app .ms-mh-scroll{
  background:#121a24!important;
  border-color:#344054!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-mh-stage-column>h3,
html[data-tessirve-color-mode="dark"] .ms-app .ms-mh-final-column>h3{color:#d0d5dd!important}
html[data-tessirve-color-mode="dark"] .ms-app .ms-knockout-mobile-horizontal .ms-knockout-match{
  background:#101823!important;
  border-color:#334155!important;
  color:#f3f5f8!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-knockout-mobile-horizontal .ms-knockout-team,
html[data-tessirve-color-mode="dark"] .ms-app .ms-knockout-mobile-horizontal .ms-knockout-team b,
html[data-tessirve-color-mode="dark"] .ms-app .ms-knockout-mobile-horizontal .ms-knockout-team strong,
html[data-tessirve-color-mode="dark"] .ms-app .ms-mh-champion{color:#f3f5f8!important}
html[data-tessirve-color-mode="dark"] .ms-app .ms-mh-empty,
html[data-tessirve-color-mode="dark"] .ms-app .ms-mh-final-pending{
  background:#101823!important;
  border-color:#42526a!important;
  color:#aeb8c6!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-mh-midline{opacity:.55!important}

html[data-tessirve-theme="canchero"] .ms-app .ms-mh-scroll{
  background:color-mix(in srgb,var(--ms-pitch-dark),#000 12%)!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-mh-stage-column>h3,
html[data-tessirve-theme="canchero"] .ms-app .ms-mh-final-column>h3,
html[data-tessirve-theme="canchero"] .ms-app .ms-mh-champion,
html[data-tessirve-theme="canchero"] .ms-app .ms-mh-champion b{color:#fff!important}
html[data-tessirve-theme="canchero"] .ms-app .ms-knockout-mobile-horizontal .ms-knockout-match{
  background:color-mix(in srgb,var(--ms-pitch-dark),#000 8%)!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-mh-empty,
html[data-tessirve-theme="canchero"] .ms-app .ms-mh-final-pending{
  background:rgba(0,0,0,.11)!important;
  border-color:var(--ms-pitch-chalk-soft)!important;
  color:rgba(255,255,255,.78)!important;
}
html[data-tessirve-theme="canchero"] .ms-app .ms-mh-midline{
  background:linear-gradient(90deg,transparent,var(--ms-pitch-chalk-soft),transparent)!important;
}

/* Desktop: el centro de la final no vuelve a ensancharse por reglas heredadas
   del skin; el logo de competición sigue siendo el protagonista. */
@media(min-width:721px){
  body.tessirve-theme .ms-app .ms-ca-knockout-mirror .ms-bracket-final-center{
    max-width:112px!important;
    min-width:94px!important;
  }
}


/* ==========================================================================
   5.17.115 — ALINEACIÓN: COLORES SEMÁNTICOS FIJOS
   Los nombres neutrales NO heredan jamás el color del theme/equipo.
   ========================================================================== */

/* Cabeceras de cada equipo, DT y suplentes normales: tinta neutral del modo. */
.ms-match-lineup-compact .ms-lineup-bench h3,
.ms-match-lineup-compact .ms-lineup-bench h3 > a,
.ms-match-lineup-compact .ms-lineup-bench h3 > a :is(b,strong,span),
.ms-match-lineup-compact .ms-lineup-coach,
.ms-match-lineup-compact .ms-lineup-coach > a,
.ms-match-lineup-compact .ms-lineup-coach :is(b,strong,span),
.ms-match-lineup-compact .ms-roster-player:not(.is-entered) strong,
.ms-match-lineup-compact .ms-roster-player:not(.is-entered) strong > a,
.ms-match-lineup-compact .ms-roster-player:not(.is-entered) strong > span,
.ms-match-lineup-compact .ms-roster-number,
.ms-match-lineup-compact .ms-pitch-team-caption b,
.ms-match-lineup-compact .ms-pitch-team-caption > span > b{
  color:var(--ms-ink,#101828)!important;
}

/* Metadata neutral, también independiente del theme. */
.ms-match-lineup-compact .ms-lineup-bench h3 small,
.ms-match-lineup-compact .ms-roster-player small,
.ms-match-lineup-compact .ms-lineup-coach small{
  color:var(--ms-muted,#667085)!important;
}

/* Semántica fija: estos colores significan estado, no identidad visual. */
.ms-match-lineup-compact .ms-roster-player.is-entered strong,
.ms-match-lineup-compact .ms-roster-player.is-entered strong > a,
.ms-match-lineup-compact .ms-roster-player.is-entered strong > span,
.ms-match-lineup-compact .ms-roster-sub-in,
.ms-match-lineup-compact .ms-roster-sub-in :is(b,small,span){
  color:#079455!important;
}

.ms-match-lineup-compact .ms-pitch-player-name.has-yellow-card > a,
.ms-match-lineup-compact .ms-pitch-player-name.has-yellow-card > span{
  color:#ffd43b!important;
}

.ms-match-lineup-compact .ms-pitch-player-name.has-red-card > a,
.ms-match-lineup-compact .ms-pitch-player-name.has-red-card > span,
.ms-match-lineup-compact .ms-pitch-player-name.has-yellow-card.has-red-card > a,
.ms-match-lineup-compact .ms-pitch-player-name.has-yellow-card.has-red-card > span{
  color:#ff515b!important;
}

/* En dark/canchero sólo cambia la tinta neutral; los estados mantienen color. */
html[data-tessirve-color-mode="dark"] .ms-match-lineup-compact .ms-roster-player.is-entered strong,
html[data-tessirve-color-mode="dark"] .ms-match-lineup-compact .ms-roster-player.is-entered strong > a,
html[data-tessirve-color-mode="dark"] .ms-match-lineup-compact .ms-roster-player.is-entered strong > span,
html[data-tessirve-color-mode="dark"] .ms-match-lineup-compact .ms-roster-sub-in,
html[data-tessirve-theme="canchero"] .ms-match-lineup-compact .ms-roster-player.is-entered strong,
html[data-tessirve-theme="canchero"] .ms-match-lineup-compact .ms-roster-player.is-entered strong > a,
html[data-tessirve-theme="canchero"] .ms-match-lineup-compact .ms-roster-player.is-entered strong > span,
html[data-tessirve-theme="canchero"] .ms-match-lineup-compact .ms-roster-sub-in{
  color:#6ce9a6!important;
}

/* 5.17.118 — Core 5.17.193: no reintroducir los rieles laterales dobles en tablas. */
body.tessirve-theme .ms-app.ms-competition-profile .ms-table-grid>.ms-standing-card{
  border-left:0!important;
  border-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
}
body.tessirve-theme .ms-app.ms-competition-profile .ms-table-grid>.ms-standing-card .ms-table-wrap{
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
}
/* La iconografía de stats la define el Core; el Theme sólo respeta su color semántico. */
body.tessirve-theme .ms-app .ms-stat-soccer-icon{color:color-mix(in srgb,var(--ms-ink,#102a56),var(--theme-primary,#175cd3) 30%)!important}
body.tessirve-theme .ms-app .ms-stat-soccer-icon.is-yellow-cards{color:#d99a00!important}
body.tessirve-theme .ms-app .ms-stat-soccer-icon.is-red-cards{color:#d92d20!important}

/* ========================================================================
   5.17.120 — HEADER JERÁRQUICO: CONTINENTE > PAÍS > COMPETICIÓN
   ======================================================================== */
.ms-country-toggle{cursor:pointer!important;font-family:var(--ms-ui-font)!important}
.ms-country-toggle svg:last-child{fill:none;height:7px;margin-left:3px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;transition:transform .18s ease;width:10px}
.ms-country-toggle.is-open svg:last-child{transform:rotate(180deg)}
.ms-country-competitions{
  align-items:center;background:rgba(255,255,255,.04);border:1px solid rgba(129,176,230,.16);border-radius:9px;box-sizing:border-box;display:flex;flex-wrap:wrap;gap:5px;margin:2px 0;padding:5px 7px;width:100%
}
.ms-country-competitions[hidden]{display:none!important}
.ms-country-competitions.is-active{animation:ms-header-tabs-in .2s cubic-bezier(.2,.8,.2,1) both}
.ms-country-competition-link{
  align-items:center;background:rgba(255,255,255,.065);border:1px solid rgba(129,176,230,.18);border-radius:7px;color:#f4f8fd!important;display:inline-flex;font-size:.68rem;font-weight:800;gap:5px;min-height:27px;padding:5px 8px;text-decoration:none!important
}
.ms-country-competition-link:hover,.ms-country-competition-link:focus-visible{background:rgba(90,158,235,.2);border-color:rgba(104,183,255,.5);color:#fff!important;outline:0}
.ms-country-competition-link .ms-header-tab-icon{height:16px!important;width:23px!important}
.ms-header-submenu-inner>.ms-country-competitions{flex-basis:100%;justify-content:center}
.ms-header-submenus.is-open{max-height:260px}
@media(max-width:1180px){
  .ms-mobile-submenu-inner>.ms-country-competitions{flex-basis:100%;margin:0 0 4px;padding:6px}
  .ms-country-competition-link{font-size:.66rem;min-height:28px;padding:6px 8px}
  .ms-mobile-submenu.is-active{max-height:620px!important}
}


/* ========================================================================
   5.17.121 — HEADER FINO: RESTAURACIÓN + POPOVER PAÍS > COMPETICIÓN
   ======================================================================== */
/* Las banderas quedan planas: sin marco, sin fondo, sin radio ni sombra. */
.ms-header-tab-icon.is-flag,
.ms-header-tab-icon.is-flag svg.ms-menu-country-flag{
  background:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
  outline:0!important;
  overflow:visible!important;
}
.ms-header-tab-icon.is-flag svg.ms-menu-country-flag{shape-rendering:crispEdges}

/* Cada país conserva su lugar; Liga/Copa aparecen en un popover compacto y
   NO empujan ni hacen desaparecer a los demás países. */
@media(min-width:1181px){
  .ms-header-submenus.is-open{overflow:visible!important}
  .ms-header-submenu-inner{overflow:visible!important}
  .ms-country-group{display:inline-flex!important;position:relative!important;z-index:1}
  .ms-country-group.is-open{z-index:30}
  .ms-country-group>.ms-country-toggle{width:auto!important}
  .ms-country-competitions{
    align-items:stretch!important;
    background:linear-gradient(180deg,#10213a,#0c1b30)!important;
    border:1px solid rgba(116,174,238,.26)!important;
    border-radius:9px!important;
    box-shadow:0 12px 28px rgba(2,12,28,.28)!important;
    display:flex!important;
    flex-direction:column!important;
    gap:3px!important;
    left:0!important;
    margin:4px 0 0!important;
    min-width:100%!important;
    padding:4px!important;
    position:absolute!important;
    top:100%!important;
    width:max-content!important;
    max-width:230px!important;
  }
  .ms-country-competitions[hidden]{display:none!important}
  .ms-country-competition-link{
    align-items:center!important;
    background:rgba(255,255,255,.045)!important;
    border:1px solid transparent!important;
    border-radius:7px!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
    color:#f3f8ff!important;
    display:flex!important;
    font-size:.70rem!important;
    font-weight:800!important;
    justify-content:flex-start!important;
    min-height:29px!important;
    padding:5px 9px!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    width:100%!important;
  }
  .ms-country-competition-link:hover,.ms-country-competition-link:focus-visible{
    background:rgba(86,153,235,.18)!important;
    border-color:rgba(112,184,255,.35)!important;
    transform:none!important;
  }
  /* Recuperamos todos los accesos superiores sin que la navegación invada el
     control derecho en resoluciones de escritorio angostas. */
  .ms-site-header-inner{grid-template-columns:142px minmax(0,1fr) 72px!important;max-width:1240px!important}
  .ms-site-menu{gap:0!important;justify-content:center!important;overflow:visible!important}
  .ms-site-menu>li>a,.ms-menu-parent-toggle{font-size:.66rem!important;padding-left:5px!important;padding-right:5px!important}
  .ms-menu-parent-toggle{gap:4px!important}
}
@media(min-width:1360px){
  .ms-site-header-inner{grid-template-columns:150px minmax(0,1fr) 105px!important}
  .ms-site-menu>li>a,.ms-menu-parent-toggle{font-size:.70rem!important;padding-left:6px!important;padding-right:6px!important}
}

/* En tablet/móvil el segundo nivel sigue en flujo, compacto y legible. */
@media(max-width:1180px){
  .ms-country-group{display:block!important;width:100%!important}
  .ms-country-group>.ms-country-toggle{width:100%!important}
  .ms-country-competitions{
    align-items:stretch!important;
    background:rgba(255,255,255,.035)!important;
    border:0!important;
    border-left:2px solid rgba(103,171,245,.32)!important;
    border-radius:0!important;
    box-shadow:none!important;
    display:flex!important;
    flex-direction:column!important;
    gap:3px!important;
    margin:2px 0 5px 12px!important;
    padding:3px 0 3px 7px!important;
    width:calc(100% - 12px)!important;
  }
  .ms-country-competitions[hidden]{display:none!important}
  .ms-country-competition-link{justify-content:flex-start!important;width:auto!important}
}

/* ========================================================================
   5.17.122 — HEADER: POPOVER REAL + BANDERAS LIMPIAS
   ======================================================================== */
@media(min-width:1181px){
  .ms-site-header,.ms-site-header-inner,.ms-header-submenus,.ms-header-submenu,
  .ms-header-submenu-inner{overflow:visible!important}
  .ms-header-submenus{position:relative!important;z-index:80!important}
  .ms-header-submenu{overflow:visible!important}
  .ms-header-submenu-inner{position:relative!important;min-height:38px!important}
  .ms-country-group{position:relative!important}
  .ms-country-competitions{
    position:absolute!important;
    inset:auto auto auto 0!important;
    top:calc(100% + 4px)!important;
    z-index:999!important;
    width:max-content!important;
    min-width:100%!important;
    max-width:190px!important;
    margin:0!important;
    padding:4px!important;
  }
  .ms-country-competition-link{
    width:auto!important;
    min-width:100%!important;
    min-height:27px!important;
    padding:4px 8px!important;
    font-size:.68rem!important;
  }
}
.ms-header-tab-icon.is-flag{
  width:15px!important;min-width:15px!important;height:10px!important;
  margin-right:1px!important;padding:0!important;background:transparent!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important
}
.ms-header-tab-icon.is-flag svg.ms-menu-country-flag{
  display:block!important;width:15px!important;height:9px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  outline:0!important;box-shadow:none!important;filter:none!important;overflow:visible!important
}

/* 5.17.122 — TV verificada (Argentina). Mini wordmark, sin ocupar la ficha. */
.ms-broadcasts{display:inline-flex;align-items:center;gap:4px;margin-left:4px;vertical-align:middle}
.ms-broadcast-badge{display:inline-flex;align-items:center;gap:5px;color:inherit!important;text-decoration:none!important;line-height:1}
.ms-broadcast-logo{
  display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:14px;
  padding:0 4px;border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3),transparent 52%);
  border-radius:4px;background:color-mix(in srgb,var(--theme-primary,#175cd3),transparent 91%);
  color:var(--ms-ink,#102a56);font-size:7px;font-weight:950;letter-spacing:-.15px;white-space:nowrap
}
.ms-broadcasts.is-detailed{margin:3px 0 0;display:flex;justify-content:center;flex-wrap:wrap}
.ms-broadcasts.is-detailed .ms-broadcast-badge{padding:3px 6px;border-radius:6px;background:rgba(255,255,255,.5)}
.ms-broadcast-name{font-size:.72rem;font-weight:800}
.ms-match-hero .ms-broadcast-logo{color:inherit;border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.10)}
@media(max-width:640px){
  .ms-broadcast-logo{min-width:21px;height:13px;font-size:6.5px;padding:0 3px}
  .ms-broadcast-name{font-size:.68rem}
}


/* ========================================================================
   5.17.123 — BANDERAS NACIONALES REALES + POPOVER SIN SALTO
   Assets SVG locales 3:2: sin emoji, sin cápsula y sin dibujo inline simplificado.
   ======================================================================== */
.ms-header-tab-icon.is-flag{
  width:22px!important;min-width:22px!important;height:15px!important;
  margin-right:3px!important;padding:0!important;background:transparent!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;
  flex:0 0 22px!important
}
.ms-header-tab-icon.is-flag .ms-menu-country-flag{
  display:block!important;width:22px!important;height:15px!important;object-fit:cover!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  outline:0!important;box-shadow:none!important;filter:none!important
}
@media(max-width:1180px){
  .ms-header-tab-icon.is-flag{width:21px!important;min-width:21px!important;height:14px!important;flex-basis:21px!important}
  .ms-header-tab-icon.is-flag .ms-menu-country-flag{width:21px!important;height:14px!important}
}


/* =========================================================
   5.17.124 — BANDERAS: MISMO DISEÑO REAL, TAMAÑO COMPACTO
   ========================================================= */
.ms-header-tab-icon.is-flag{
  width:15px!important;
  min-width:15px!important;
  height:10px!important;
  margin-right:2px!important;
  flex:0 0 15px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.ms-header-tab-icon.is-flag .ms-menu-country-flag{
  width:15px!important;
  height:10px!important;
  max-width:15px!important;
  max-height:10px!important;
  object-fit:cover!important;
}
@media(max-width:1180px){
  .ms-header-tab-icon.is-flag{width:15px!important;min-width:15px!important;height:10px!important;flex-basis:15px!important}
  .ms-header-tab-icon.is-flag .ms-menu-country-flag{width:15px!important;height:10px!important;max-width:15px!important;max-height:10px!important}
}

/* ==========================================================================
   5.17.125 — PERFIL / TÍTULOS: CONTRASTE REAL EN DARK + ESTADO ACTIVO LIMPIO
   Evita cápsulas blancas con números invisibles y filas hover blancas dentro
   de Títulos Nacionales / Internacionales. Mantiene el lenguaje del theme.
   ========================================================================== */

/* Contadores de los acordeones: superficie del propio theme, no blanco fijo. */
.ms-team-titles-group>summary strong,
.ms-team-titles-overview>span:not(.ms-team-title-rank)>b{
  background:color-mix(in srgb,var(--ms-card,#ffffff) 88%,var(--theme-primary,#175cd3) 12%)!important;
  border-color:color-mix(in srgb,var(--ms-line,#d0d5dd) 78%,var(--theme-primary,#175cd3) 22%)!important;
  color:var(--ms-ink,#101828)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 14%,transparent)!important;
}
.ms-team-titles-group>summary strong{
  min-width:34px!important;
  min-height:24px!important;
  line-height:1!important;
  font-weight:950!important;
}

/* La cabecera del grupo y su número siempre comparten contraste. */
.ms-team-titles-group>summary,
.ms-team-titles-group>summary span,
.ms-team-titles-group>summary i{
  color:var(--ms-ink,#101828)!important;
}

/* Una fila enlazable nunca cambia a una superficie clara ajena al theme. */
.ms-team-title-row:has(.ms-team-title-copy a):hover,
.ms-team-title-row:has(.ms-team-title-copy a):focus-within{
  background:color-mix(in srgb,var(--ms-card,#ffffff) 90%,var(--theme-primary,#175cd3) 10%)!important;
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--theme-primary,#175cd3) 84%,#fff 16%)!important;
  color:var(--ms-ink,#101828)!important;
}
.ms-team-title-row:has(.ms-team-title-copy a):hover .ms-team-title-copy b,
.ms-team-title-row:has(.ms-team-title-copy a):focus-within .ms-team-title-copy b,
.ms-team-title-row:has(.ms-team-title-copy a):hover .ms-team-title-count,
.ms-team-title-row:has(.ms-team-title-copy a):focus-within .ms-team-title-count{
  color:var(--ms-ink,#101828)!important;
}
.ms-team-title-row:has(.ms-team-title-copy a):hover .ms-team-title-arrow,
.ms-team-title-row:has(.ms-team-title-copy a):focus-within .ms-team-title-arrow{
  color:color-mix(in srgb,var(--ms-ink,#101828) 70%,var(--theme-primary,#175cd3) 30%)!important;
}

/* Dark: refuerzo explícito para que ningún --ms-soft heredado vuelva a blanquear
   el contador o el hover, incluso con identidades de clubes. */
html[data-tessirve-color-mode="dark"] .ms-app .ms-team-titles-group>summary strong,
html[data-tessirve-color-mode="dark"] .ms-app .ms-team-titles-overview>span:not(.ms-team-title-rank)>b{
  background:color-mix(in srgb,var(--ms-card,#141e2b) 82%,var(--theme-primary,#2583ff) 18%)!important;
  border-color:color-mix(in srgb,var(--ms-line,#324153) 70%,var(--theme-primary,#2583ff) 30%)!important;
  color:#fff!important;
  text-shadow:0 1px 1px rgba(0,0,0,.32)!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-team-titles-group>summary,
html[data-tessirve-color-mode="dark"] .ms-app .ms-team-titles-group>summary span,
html[data-tessirve-color-mode="dark"] .ms-app .ms-team-titles-group>summary i,
html[data-tessirve-color-mode="dark"] .ms-app .ms-team-title-copy b,
html[data-tessirve-color-mode="dark"] .ms-app .ms-team-title-count{
  color:var(--ms-ink,#f8fafc)!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-team-title-row:has(.ms-team-title-copy a):hover,
html[data-tessirve-color-mode="dark"] .ms-app .ms-team-title-row:has(.ms-team-title-copy a):focus-within{
  background:color-mix(in srgb,var(--ms-card,#141e2b) 84%,var(--theme-primary,#2583ff) 16%)!important;
  box-shadow:inset 3px 0 0 var(--theme-primary,#2583ff)!important;
}

/* Canchero conserva su tratamiento propio de césped; sólo garantizamos que el
   número siga visible si alguna regla global intenta pisarlo. */
html[data-tessirve-theme="canchero"] .ms-app .ms-team-titles-group>summary strong{
  color:#fff!important;
}


/* ========================================================================
   5.17.126 — HISTORIAL / CLÁSICOS: DARK MODE REAL EN TARJETAS Y RESUMEN.
   - El bloque principal deja de verse “lavado”.
   - Las tarjetas rivales ya no quedan blancas/rosadas en dark.
   - Se mantiene identidad por acentos, pero con superficies realmente oscuras.
   ======================================================================== */
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-result{
  background:
    linear-gradient(135deg,
      color-mix(in srgb,var(--ms-h2h-team-a,#175cd3),#0f1724 62%) 0%,
      #131d2b 46%,
      color-mix(in srgb,var(--ms-h2h-team-b,#d92d20),#0f1724 66%) 100%)!important;
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3),#475467 58%)!important;
  box-shadow:
    0 18px 34px rgba(2,6,23,.32),
    inset 0 1px 0 rgba(255,255,255,.06)!important;
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-result :is(h1,h2,h3,h4,strong,b,a){
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-result small,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-result span{
  color:#dbe4ef!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-result .ms-h2h-vs{
  background:rgba(15,23,36,.78)!important;
  border-color:#40506a!important;
  color:#f8fafc!important;
}

html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card){
  background:linear-gradient(180deg,#172130 0%,#121a27 100%)!important;
  border:1px solid #334155!important;
  box-shadow:
    0 10px 24px rgba(2,6,23,.18),
    inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card):hover,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card):focus-visible{
  background:linear-gradient(180deg,#1a2637 0%,#142031 100%)!important;
  border-color:#42526a!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-leading{
  background:linear-gradient(180deg,#152535 0%,#11231b 100%)!important;
  border-color:#2f6a50!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-level{
  background:linear-gradient(180deg,#1a2331 0%,#231f12 100%)!important;
  border-color:#796027!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-trailing{
  background:linear-gradient(180deg,#1a2230 0%,#29161a 100%)!important;
  border-color:#7a4048!important;
}

html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card) :is(.ms-rival-name,b,strong,.ms-classic-full-link){
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card) :is(.ms-rival-pj,small){
  color:#c5d0dd!important;
}

html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-rival-record-grid i{
  background:linear-gradient(180deg,#0f1724 0%,#162132 100%)!important;
  border:1px solid #314156!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-rival-record-grid i b{
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-rival-record-grid i small{
  background:#1b2737!important;
  border-top:1px solid rgba(255,255,255,.04)!important;
  color:#e2e8f0!important;
}

html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card) :is(.ms-result-meta,.ms-score span,.ms-h2h-mini>span,.ms-split-record>div){
  background:#182537!important;
  border-color:#324154!important;
  color:#f8fafc!important;
}

html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-rival-lead-pill{
  background:#183154!important;
  border:1px solid #3566a3!important;
  box-shadow:none!important;
  color:#fff!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .is-leading .ms-rival-lead-pill{
  background:#163726!important;
  border-color:#2f6f4e!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .is-level .ms-rival-lead-pill{
  background:#3a2b10!important;
  border-color:#8f6a20!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .is-trailing .ms-rival-lead-pill{
  background:#462028!important;
  border-color:#934956!important;
}


/* ========================================================================
   5.17.127 — HISTORIAL / CLÁSICOS: DIFERENCIA VISUAL REAL + NOMBRE VISIBLE.
   - Verde/rojo/neutral más notorios a simple vista.
   - El nombre del club arriba de “X enfrentamientos” vuelve a ser legible.
   - Mejora en light y dark sin romper la estructura existente.
   ======================================================================== */

/* Base: el nombre del club y la línea de enfrentamientos deben leerse SIEMPRE. */
.ms-rival-history-grid>[data-ms-rival-card] :is(.ms-rival-name),
.ms-rival-history-grid>a :is(.ms-rival-name),
.ms-history-rival-card :is(.ms-rival-name),
.ms-classic-rival-card :is(.ms-rival-name){
  color:#334155!important;
  display:block!important;
  font-size:.95rem!important;
  font-weight:850!important;
  letter-spacing:-.01em!important;
  line-height:1.1!important;
  opacity:1!important;
  text-shadow:none!important;
}
.ms-rival-history-grid>[data-ms-rival-card] :is(.ms-rival-pj),
.ms-rival-history-grid>a :is(.ms-rival-pj),
.ms-history-rival-card :is(.ms-rival-pj),
.ms-classic-rival-card :is(.ms-rival-pj){
  color:#64748b!important;
  font-size:.88rem!important;
  font-weight:800!important;
  opacity:1!important;
}

/* Light/default mode: estados mucho más reconocibles de un vistazo. */
body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card){
  border-width:1px!important;
  border-style:solid!important;
  box-shadow:0 8px 18px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.55)!important;
}
body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-leading{
  background:linear-gradient(180deg,#eef8f2 0%,#e2f1e7 100%)!important;
  border-color:#5c9b73!important;
}
body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-level{
  background:linear-gradient(180deg,#fbf6e8 0%,#f3ebd2 100%)!important;
  border-color:#c3a04a!important;
}
body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-trailing{
  background:linear-gradient(180deg,#faeaec 0%,#f4dde1 100%)!important;
  border-color:#cd6878!important;
}
body.ms-h2h-active .ms-rival-record-grid i{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6)!important;
}
body.ms-h2h-active .is-leading .ms-rival-lead-pill{
  background:#2f7a52!important;
  border:1px solid #276645!important;
  color:#fff!important;
}
body.ms-h2h-active .is-level .ms-rival-lead-pill{
  background:#b18423!important;
  border:1px solid #956f1e!important;
  color:#fff!important;
}
body.ms-h2h-active .is-trailing .ms-rival-lead-pill{
  background:#b14a5a!important;
  border:1px solid #953b49!important;
  color:#fff!important;
}
body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card) :is(.ms-rival-name,b,strong,.ms-classic-full-link){
  color:#243142!important;
}
body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card) :is(.ms-rival-pj,small){
  color:#66758b!important;
}

/* Dark: misma idea, pero con superficies oscuras e identidad visible. */
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-leading{
  background:linear-gradient(180deg,#183026 0%,#12271e 100%)!important;
  border-color:#4f936d!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-level{
  background:linear-gradient(180deg,#33290f 0%,#241d0d 100%)!important;
  border-color:#b38a2f!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-trailing{
  background:linear-gradient(180deg,#391b22 0%,#29141a 100%)!important;
  border-color:#bb5a6a!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card) :is(.ms-rival-name,b,strong,.ms-classic-full-link){
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card) :is(.ms-rival-pj,small){
  color:#d6dee8!important;
}


/* ========================================================================
   5.17.128 — HISTORIAL / CLÁSICOS: revertir aumento de fuente (+ ajustar dark).
   - Se baja ~1 pt lo tocado en nombres/contador de rival.
   - Dark mode diferencia mejor ganar/perder, sin pasarse de rosca.
   ======================================================================== */

/* Revertimos el agrande innecesario: -1 pt aprox respecto a 5.17.127. */
.ms-rival-history-grid>[data-ms-rival-card] :is(.ms-rival-name),
.ms-rival-history-grid>a :is(.ms-rival-name),
.ms-history-rival-card :is(.ms-rival-name),
.ms-classic-rival-card :is(.ms-rival-name){
  font-size:.87rem!important;
  line-height:1.08!important;
}
.ms-rival-history-grid>[data-ms-rival-card] :is(.ms-rival-pj),
.ms-rival-history-grid>a :is(.ms-rival-pj),
.ms-history-rival-card :is(.ms-rival-pj),
.ms-classic-rival-card :is(.ms-rival-pj){
  font-size:.80rem!important;
}

/* Dark: más contraste entre favorable / neutro / desfavorable,
   pero manteniendo una estética sobria. */
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-leading{
  background:linear-gradient(180deg,#173328 0%,#12291f 100%)!important;
  border-color:#5aa378!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-level{
  background:linear-gradient(180deg,#31280f 0%,#251e0d 100%)!important;
  border-color:#a88936!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active :is(.ms-rival-history-grid>[data-ms-rival-card],.ms-rival-history-grid>a,.ms-history-rival-card,.ms-classic-rival-card).is-trailing{
  background:linear-gradient(180deg,#3f1c24 0%,#2e151c 100%)!important;
  border-color:#c26374!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .is-leading .ms-rival-lead-pill{
  background:#1f4e37!important;
  border-color:#4b946e!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .is-level .ms-rival-lead-pill{
  background:#5d4616!important;
  border-color:#a88936!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .is-trailing .ms-rival-lead-pill{
  background:#5d2630!important;
  border-color:#bb5d6d!important;
}


/* ========================================================================
   5.17.129 — PERFIL / HISTORIAL DE RIVALES: FIX REAL DE SELECTOR + DARK.
   El bloque vive en el perfil de equipo, no dentro de body.ms-h2h-active.
   Por eso los ajustes 5.17.127/128 de color no alcanzaban estas tarjetas.
   ======================================================================== */

/* Tamaños: exactamente 1pt menos que los valores introducidos en 5.17.127. */
.ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-name{
  font-size:calc(.95rem - 1pt)!important;
  line-height:1.10!important;
}
.ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-pj{
  font-size:calc(.88rem - 1pt)!important;
  line-height:1.15!important;
}

/* Nombre y cantidad siempre legibles. */
.ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-name{
  color:#243142!important;
  opacity:1!important;
}
.ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-pj{
  color:#66758b!important;
  opacity:1!important;
}

/* DARK REAL para las tarjetas del PERFIL.
   Se nota ganar/perder sin convertir la grilla en un semáforo. */
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card{
  background:linear-gradient(180deg,#182231 0%,#141d29 100%)!important;
  border-color:#34445a!important;
  box-shadow:0 7px 18px rgba(2,6,23,.20),inset 0 1px 0 rgba(255,255,255,.035)!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card.is-leading{
  background:linear-gradient(180deg,#1b3228 0%,#16271f 100%)!important;
  border-color:#568d6d!important;
  box-shadow:0 7px 18px rgba(2,6,23,.20),inset 3px 0 0 #4f8a68,inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card.is-level{
  background:linear-gradient(180deg,#302914 0%,#262111 100%)!important;
  border-color:#8f793b!important;
  box-shadow:0 7px 18px rgba(2,6,23,.20),inset 3px 0 0 #927a36,inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card.is-trailing{
  background:linear-gradient(180deg,#392128 0%,#2c1a20 100%)!important;
  border-color:#9a5965!important;
  box-shadow:0 7px 18px rgba(2,6,23,.20),inset 3px 0 0 #a45663,inset 0 1px 0 rgba(255,255,255,.04)!important;
}

html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-card-main,
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-name{
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-pj{
  color:#cbd5e1!important;
}

/* Pill: acompaña el estado, pero en un tono más apagado que el fondo. */
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card.is-leading .ms-rival-lead-pill{
  background:#234d38!important;
  border-color:#4c8363!important;
  color:#f7fff9!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card.is-level .ms-rival-lead-pill,
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-lead-pill.is-level{
  background:#554619!important;
  border-color:#8f793b!important;
  color:#fffaf0!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card.is-trailing .ms-rival-lead-pill{
  background:#562932!important;
  border-color:#94505d!important;
  color:#fff7f8!important;
}

/* Los cuadros G/E/P y últimas victorias/derrotas permanecen oscuros
   para que el estado de la TARJETA sea lo que diferencia visualmente. */
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-record-grid i{
  background:#111b28!important;
  border-color:#34445a!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-record-grid i b{
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] .ms-app .ms-rival-history-grid>.ms-rival-card .ms-rival-record-grid i small{
  background:#172435!important;
  color:#d9e2ee!important;
}


/* ========================================================================
   5.17.130 — RANKINGS: contraste real en el badge de títulos (dark mode).
   El recuadro de la derecha ya no queda gris/blanco lavado con texto pálido.
   ======================================================================== */
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles{
  background:linear-gradient(180deg,#1a2433 0%,#131c29 100%)!important;
  border:1px solid #3d4d64!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 0 rgba(0,0,0,.18)!important;
}
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles :is(.ms-ranking-titles-caption,.ms-ranking-titles-unit){
  color:#9fb0c6!important;
  text-shadow:none!important;
}
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-titles>b{
  color:#f8fafc!important;
  text-shadow:none!important;
}

/* Podio: el número toma el metal, pero el contraste general sigue oscuro. */
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-gold .ms-ranking-titles{
  border-color:#9f8140!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 0 1px rgba(201,155,54,.16)!important;
}
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-gold .ms-ranking-titles>b{color:#f2c94c!important}
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-silver .ms-ranking-titles{
  border-color:#7c8898!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 0 1px rgba(205,213,223,.11)!important;
}
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-silver .ms-ranking-titles>b{color:#d7dee6!important}
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-bronze .ms-ranking-titles{
  border-color:#956748!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 0 1px rgba(205,127,50,.12)!important;
}
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .is-podium-bronze .ms-ranking-titles>b{color:#d58a52!important}

/* Refuerzo de lectura en la fila completa del ranking. */
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-name,
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-name-link,
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-team{
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] .ms-rankings-page .ms-ranking-card.is-total-card .ms-ranking-list li{
  border-color:#344054!important;
}


/* ========================================================================
   5.17.131 — TV EN AGENDA/FIXTURE: badge compacto junto a la hora.
   - La TV deja de flotar en el extremo derecho de la fila.
   - Hora + TV forman un único eje centrado.
   - Mini icono de televisor + wordmark compacto del canal.
   - Responsive: no invade escudos/nombres y admite más de una señal.
   ======================================================================== */

/* Hora + señales forman un único bloque visual centrado. */
.ms-home-today .ms-compact-match-meta:has(>.ms-broadcasts),
.ms-match-groups.is-competition-fixture .ms-compact-match-meta:has(>.ms-broadcasts){
  align-items:center!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  justify-content:center!important;
  min-height:15px!important;
  padding-inline:34px!important; /* reserva para código de competición si existe */
}
.ms-home-today .ms-compact-match-meta:has(>.ms-broadcasts) time,
.ms-match-groups.is-competition-fixture .ms-compact-match-meta:has(>.ms-broadcasts) time{
  flex:0 0 auto!important;
  margin:0!important;
  width:auto!important;
}

/* Mata la regla histórica que mandaba TODO span directo al borde derecho. */
.ms-home-today .ms-compact-match-meta>.ms-broadcasts,
.ms-match-groups.is-competition-fixture .ms-compact-match-meta>.ms-broadcasts{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  gap:3px!important;
  margin:0!important;
  max-width:min(46%,150px)!important;
  overflow:visible!important;
  padding:0!important;
  position:static!important;
  right:auto!important;
  top:auto!important;
  transform:none!important;
  vertical-align:middle!important;
}

/* Si además existe código de competición, ese sí conserva el extremo derecho. */
.ms-home-today .ms-compact-match-meta>span:not(.ms-broadcasts),
.ms-match-groups.is-competition-fixture .ms-compact-match-meta>span:not(.ms-broadcasts){
  position:absolute!important;
  right:0!important;
  top:50%!important;
  transform:translateY(-50%)!important;
}

/* Badge TV: compacto, sin pastilla gigante. */
.ms-compact-match-meta .ms-broadcast-badge{
  align-items:center!important;
  background:rgba(15,23,42,.06)!important;
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3),transparent 62%)!important;
  border-radius:5px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42)!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  gap:2px!important;
  height:15px!important;
  justify-content:center!important;
  min-width:30px!important;
  padding:1px 4px 1px 3px!important;
  white-space:nowrap!important;
}
.ms-compact-match-meta .ms-broadcast-badge::before{
  content:"📺"!important;
  display:inline-block!important;
  flex:0 0 auto!important;
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif!important;
  font-size:8px!important;
  line-height:1!important;
  transform:translateY(-.2px)!important;
}

/* El texto existente pasa a funcionar como mini wordmark del canal. */
.ms-compact-match-meta .ms-broadcast-logo{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  color:var(--ms-ink,#102a56)!important;
  display:inline-flex!important;
  font-size:6.5px!important;
  font-weight:1000!important;
  height:auto!important;
  justify-content:center!important;
  letter-spacing:-.18px!important;
  line-height:1!important;
  min-width:0!important;
  padding:0!important;
  text-transform:none!important;
}

/* Identidad de señales: logo/wordmark chico, no una etiqueta textual genérica. */
.ms-compact-match-meta .ms-broadcast-badge[title*="ESPN"] .ms-broadcast-logo{color:#d71920!important;font-style:italic!important;letter-spacing:-.35px!important}
.ms-compact-match-meta .ms-broadcast-badge[title*="TNT"] .ms-broadcast-logo{background:#141414!important;border-radius:999px!important;color:#fff!important;font-size:5.8px!important;padding:2px 3px!important}
.ms-compact-match-meta .ms-broadcast-badge[title*="TyC"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="TYC"] .ms-broadcast-logo{color:#1366a5!important;letter-spacing:-.3px!important}
.ms-compact-match-meta .ms-broadcast-badge[title*="DSPORTS"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="DSports"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="DIRECTV"] .ms-broadcast-logo{color:#ef6c00!important;font-size:7px!important}
.ms-compact-match-meta .ms-broadcast-badge[title*="FOX"] .ms-broadcast-logo{color:#173b7a!important;letter-spacing:-.3px!important}
.ms-compact-match-meta .ms-broadcast-badge[title*="Apple"] .ms-broadcast-logo{font-size:7px!important;letter-spacing:-.25px!important}
.ms-compact-match-meta .ms-broadcast-badge[title*="LPF"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="Liga Profesional"] .ms-broadcast-logo{
  background:#123f86!important;
  border-radius:3px!important;
  color:#fff!important;
  font-size:5.7px!important;
  letter-spacing:-.18px!important;
  padding:2px 3px!important;
}

/* Dark: TV clara y discreta, sin volver a ser una pastilla perdida. */
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge{
  background:#101a28!important;
  border-color:#3c5270!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-logo{color:#edf4ff!important}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge[title*="ESPN"] .ms-broadcast-logo{color:#ff5a5f!important}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge[title*="TyC"] .ms-broadcast-logo,
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge[title*="TYC"] .ms-broadcast-logo{color:#7fc8ff!important}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge[title*="DSPORTS"] .ms-broadcast-logo,
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge[title*="DSports"] .ms-broadcast-logo,
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge[title*="DIRECTV"] .ms-broadcast-logo{color:#ffad58!important}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge[title*="FOX"] .ms-broadcast-logo{color:#a9c8ff!important}

/* Responsive: mantiene hora + TV juntos, achica sólo el badge. */
@media(max-width:680px){
  .ms-home-today .ms-compact-match-meta:has(>.ms-broadcasts),
  .ms-match-groups.is-competition-fixture .ms-compact-match-meta:has(>.ms-broadcasts){
    gap:3px!important;
    min-height:14px!important;
    padding-inline:28px!important;
  }
  .ms-home-today .ms-compact-match-meta>.ms-broadcasts,
  .ms-match-groups.is-competition-fixture .ms-compact-match-meta>.ms-broadcasts{
    gap:2px!important;
    max-width:min(48%,118px)!important;
  }
  .ms-compact-match-meta .ms-broadcast-badge{
    border-radius:4px!important;
    gap:1px!important;
    height:13px!important;
    min-width:27px!important;
    padding:1px 3px 1px 2px!important;
  }
  .ms-compact-match-meta .ms-broadcast-badge::before{font-size:7px!important}
  .ms-compact-match-meta .ms-broadcast-logo{font-size:5.7px!important}
  .ms-compact-match-meta .ms-broadcast-badge[title*="LPF"] .ms-broadcast-logo,
  .ms-compact-match-meta .ms-broadcast-badge[title*="Liga Profesional"] .ms-broadcast-logo{font-size:5px!important;padding:1px 2px!important}
}


/* ========================================================================
   5.17.132 — TV agenda/fixture: monitor moderno con canal DENTRO.
   - Ya no usa emoji de TV retro al costado.
   - El badge completo parece una pantalla tipo monitor/VAR.
   - El nombre del canal vive dentro de la “pantalla”.
   - Tipografía +1 pt respecto al ajuste anterior.
   ======================================================================== */

/* El badge entero pasa a ser la pantalla. */
.ms-compact-match-meta .ms-broadcast-badge{
  position:relative!important;
  align-items:center!important;
  background:linear-gradient(180deg,#193b70 0%,#102b54 100%)!important;
  border:1px solid #5f8ccb!important;
  border-radius:4px!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 1px 0 rgba(7,15,29,.18)!important;
  display:inline-flex!important;
  justify-content:center!important;
  gap:0!important;
  height:16px!important;
  min-width:34px!important;
  padding:1px 5px!important;
  white-space:nowrap!important;
}

/* Sacamos la TV retro del costado. */
.ms-compact-match-meta .ms-broadcast-badge::before{
  content:none!important;
  display:none!important;
}

/* Base/soporte del monitor, estilo VAR moderno. */
.ms-compact-match-meta .ms-broadcast-badge::after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  bottom:-3px!important;
  width:10px!important;
  height:3px!important;
  transform:translateX(-50%)!important;
  border-radius:0 0 3px 3px!important;
  background:linear-gradient(180deg,#7ea4d8 0%,#4f6f9f 100%)!important;
  box-shadow:0 1px 0 rgba(0,0,0,.12)!important;
  pointer-events:none!important;
}

/* Wordmark del canal ahora va dentro de la pantalla. */
.ms-compact-match-meta .ms-broadcast-logo{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  color:#f7fbff!important;
  display:inline-flex!important;
  font-size:7.5px!important; /* +1 pt aprox respecto a 6.5 */
  font-weight:1000!important;
  justify-content:center!important;
  letter-spacing:-.12px!important;
  line-height:1!important;
  min-width:0!important;
  padding:0!important;
  text-shadow:none!important;
  text-transform:none!important;
}

/* Ajustes por señal, manteniendo el concepto “canal dentro del monitor”. */
.ms-compact-match-meta .ms-broadcast-badge[title*="ESPN"]{
  background:linear-gradient(180deg,#4a1217 0%,#2b0e12 100%)!important;
  border-color:#cf5961!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="ESPN"] .ms-broadcast-logo{
  color:#fff!important;
  font-size:7.4px!important;
  font-style:italic!important;
  letter-spacing:-.22px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="TNT"]{
  background:linear-gradient(180deg,#22262d 0%,#11151b 100%)!important;
  border-color:#5d697c!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="TNT"] .ms-broadcast-logo{
  color:#fff!important;
  font-size:6.8px!important;
  letter-spacing:-.08px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="TyC"],
.ms-compact-match-meta .ms-broadcast-badge[title*="TYC"]{
  background:linear-gradient(180deg,#1b4f7a 0%,#123a5a 100%)!important;
  border-color:#69a7db!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="TyC"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="TYC"] .ms-broadcast-logo{
  color:#fff!important;
  font-size:7.2px!important;
  letter-spacing:-.18px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="DSPORTS"],
.ms-compact-match-meta .ms-broadcast-badge[title*="DSports"],
.ms-compact-match-meta .ms-broadcast-badge[title*="DIRECTV"]{
  background:linear-gradient(180deg,#70401a 0%,#4f2c11 100%)!important;
  border-color:#f0a157!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="DSPORTS"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="DSports"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="DIRECTV"] .ms-broadcast-logo{
  color:#fff!important;
  font-size:7.1px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="FOX"]{
  background:linear-gradient(180deg,#1e386f 0%,#15284f 100%)!important;
  border-color:#7ca1de!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="FOX"] .ms-broadcast-logo{
  color:#fff!important;
  font-size:7.2px!important;
  letter-spacing:-.16px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="Apple"]{
  background:linear-gradient(180deg,#39424d 0%,#212833 100%)!important;
  border-color:#8d99a8!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="Apple"] .ms-broadcast-logo{
  color:#fff!important;
  font-size:7px!important;
  letter-spacing:-.15px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="LPF"],
.ms-compact-match-meta .ms-broadcast-badge[title*="Liga Profesional"]{
  background:linear-gradient(180deg,#1850a0 0%,#123c79 100%)!important;
  border-color:#6aa1f0!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="LPF"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="Liga Profesional"] .ms-broadcast-logo{
  color:#fff!important;
  font-size:6.7px!important;
  letter-spacing:-.1px!important;
}

/* Dark: más integrado al theme, pero sigue siendo monitor moderno. */
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge{
  background:linear-gradient(180deg,#183962 0%,#102947 100%)!important;
  border-color:#557ab3!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 1px 0 rgba(0,0,0,.20)!important;
}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge::after{
  background:linear-gradient(180deg,#6689bd 0%,#486792 100%)!important;
}

/* Responsive: mantiene lectura y el canal adentro del monitor. */
@media(max-width:680px){
  .ms-compact-match-meta .ms-broadcast-badge{
    height:14px!important;
    min-width:30px!important;
    padding:1px 4px!important;
    border-radius:4px!important;
  }
  .ms-compact-match-meta .ms-broadcast-badge::after{
    bottom:-3px!important;
    width:9px!important;
    height:3px!important;
  }
  .ms-compact-match-meta .ms-broadcast-logo{
    font-size:6.7px!important; /* +1 pt aprox sobre el móvil anterior (5.7) */
    letter-spacing:-.1px!important;
  }
  .ms-compact-match-meta .ms-broadcast-badge[title*="TNT"] .ms-broadcast-logo{font-size:6.2px!important}
  .ms-compact-match-meta .ms-broadcast-badge[title*="LPF"] .ms-broadcast-logo,
  .ms-compact-match-meta .ms-broadcast-badge[title*="Liga Profesional"] .ms-broadcast-logo{font-size:6.1px!important}
}


/* ========================================================================
   5.17.133 — TV agenda/fixture: monitor refinado, menos tosco.
   - Se suaviza el marco externo y la “patita”.
   - El canal vive como pantalla interna, más limpio y más parecido al badge VAR.
   - Mejor balance con la hora y mejor lectura en responsive.
   ======================================================================== */

.ms-home-today .ms-compact-match-meta:has(>.ms-broadcasts),
.ms-match-groups.is-competition-fixture .ms-compact-match-meta:has(>.ms-broadcasts){
  gap:6px!important;
}

/* Marco del monitor: más fino, más prolijo, sin ese bloque pesado. */
.ms-compact-match-meta .ms-broadcast-badge{
  position:relative!important;
  align-items:center!important;
  background:linear-gradient(180deg,#214a85 0%,#173863 100%)!important;
  border:1px solid #6b94cf!important;
  border-radius:8px!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 1px 0 rgba(8,15,28,.20)!important;
  display:inline-flex!important;
  justify-content:center!important;
  gap:0!important;
  height:18px!important;
  min-width:41px!important;
  padding:2px 5px!important;
}

/* Pantallita/monitor: patita mínima, no un ladrillo. */
.ms-compact-match-meta .ms-broadcast-badge::after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  bottom:-2px!important;
  width:8px!important;
  height:2px!important;
  transform:translateX(-50%)!important;
  border-radius:0 0 4px 4px!important;
  background:#587ab0!important;
  box-shadow:none!important;
  opacity:.95!important;
  pointer-events:none!important;
}

/* La “pantalla” donde vive el nombre del canal. */
.ms-compact-match-meta .ms-broadcast-logo{
  align-items:center!important;
  background:linear-gradient(180deg,rgba(8,20,38,.18),rgba(5,16,32,.34))!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:5px!important;
  color:#f7fbff!important;
  display:inline-flex!important;
  font-size:7.4px!important;
  font-weight:1000!important;
  height:12px!important;
  justify-content:center!important;
  letter-spacing:-.10px!important;
  line-height:1!important;
  min-width:24px!important;
  padding:0 5px!important;
  text-shadow:none!important;
}

/* Canales: el marco sigue siendo monitor; varía sutilmente la pantalla interna. */
.ms-compact-match-meta .ms-broadcast-badge[title*="LPF"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="Liga Profesional"] .ms-broadcast-logo{
  background:linear-gradient(180deg,#174890 0%,#133a73 100%)!important;
  border-color:rgba(141,188,255,.32)!important;
  color:#fff!important;
  font-size:7px!important;
  min-width:25px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="ESPN"] .ms-broadcast-logo{
  background:linear-gradient(180deg,#7c1e28 0%,#5b151d 100%)!important;
  border-color:rgba(255,167,174,.18)!important;
  color:#fff!important;
  font-size:7.2px!important;
  font-style:italic!important;
  letter-spacing:-.18px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="TNT"] .ms-broadcast-logo{
  background:linear-gradient(180deg,#2d3643 0%,#1c232d 100%)!important;
  border-color:rgba(255,255,255,.12)!important;
  color:#fff!important;
  font-size:6.5px!important;
  min-width:22px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="TyC"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="TYC"] .ms-broadcast-logo{
  background:linear-gradient(180deg,#2a6b98 0%,#1c4d70 100%)!important;
  border-color:rgba(157,221,255,.18)!important;
  color:#fff!important;
  font-size:7px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="DSPORTS"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="DSports"] .ms-broadcast-logo,
.ms-compact-match-meta .ms-broadcast-badge[title*="DIRECTV"] .ms-broadcast-logo{
  background:linear-gradient(180deg,#9b5a24 0%,#744019 100%)!important;
  border-color:rgba(255,211,171,.18)!important;
  color:#fff!important;
  font-size:6.9px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="FOX"] .ms-broadcast-logo{
  background:linear-gradient(180deg,#30549b 0%,#213b6f 100%)!important;
  border-color:rgba(182,206,255,.18)!important;
  color:#fff!important;
  font-size:7px!important;
}
.ms-compact-match-meta .ms-broadcast-badge[title*="Apple"] .ms-broadcast-logo{
  background:linear-gradient(180deg,#4d5763 0%,#333c46 100%)!important;
  border-color:rgba(255,255,255,.14)!important;
  color:#fff!important;
  font-size:6.8px!important;
}

html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge{
  background:linear-gradient(180deg,#1f426f 0%,#173352 100%)!important;
  border-color:#5e83bb!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 1px 0 rgba(0,0,0,.22)!important;
}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-badge::after{
  background:#4b6998!important;
}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcast-logo{
  background:linear-gradient(180deg,rgba(4,13,25,.28),rgba(6,14,26,.44))!important;
  border-color:rgba(255,255,255,.10)!important;
}

@media(max-width:680px){
  .ms-home-today .ms-compact-match-meta:has(>.ms-broadcasts),
  .ms-match-groups.is-competition-fixture .ms-compact-match-meta:has(>.ms-broadcasts){
    gap:4px!important;
  }
  .ms-compact-match-meta .ms-broadcast-badge{
    height:16px!important;
    min-width:36px!important;
    padding:1px 4px!important;
    border-radius:7px!important;
  }
  .ms-compact-match-meta .ms-broadcast-badge::after{
    width:7px!important;
    height:2px!important;
    bottom:-2px!important;
  }
  .ms-compact-match-meta .ms-broadcast-logo{
    font-size:6.5px!important;
    height:11px!important;
    min-width:22px!important;
    padding:0 4px!important;
  }
  .ms-compact-match-meta .ms-broadcast-badge[title*="LPF"] .ms-broadcast-logo,
  .ms-compact-match-meta .ms-broadcast-badge[title*="Liga Profesional"] .ms-broadcast-logo{font-size:6.2px!important}
  .ms-compact-match-meta .ms-broadcast-badge[title*="TNT"] .ms-broadcast-logo{font-size:5.9px!important}
}


/* ========================================================================
   5.17.134 — TV: volver a badge simple de canal, conservando la nueva posición.
   - Sin monitor, sin pantalla interna, sin patita.
   - Sólo nombre del canal dentro de un recuadro compacto.
   - Sigue ubicado junto a la hora y mantiene responsive.
   ======================================================================== */

/* Badge simple: limpio y discreto. */
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge{
  position:static!important;
  align-items:center!important;
  background:color-mix(in srgb,var(--theme-primary,#175cd3),#0f172a 62%)!important;
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3),#94a3b8 46%)!important;
  border-radius:5px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
  display:inline-flex!important;
  justify-content:center!important;
  height:17px!important;
  min-width:31px!important;
  padding:1px 6px!important;
  white-space:nowrap!important;
}
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge::before,
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge::after{
  content:none!important;
  display:none!important;
}

/* Nombre del canal: sin “pantalla dentro de pantalla”. */
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge .ms-broadcast-logo{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#fff!important;
  display:inline-flex!important;
  font-size:8px!important;
  font-style:normal!important;
  font-weight:950!important;
  height:auto!important;
  justify-content:center!important;
  letter-spacing:.01em!important;
  line-height:1!important;
  min-width:0!important;
  padding:0!important;
  text-shadow:none!important;
}

/* Dark: mismo concepto, apenas más integrado al fondo. */
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge{
  background:#17345d!important;
  border-color:#41658f!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge .ms-broadcast-logo{
  color:#f8fbff!important;
}

/* Responsive: mantiene la posición al lado de la hora sin apretar nombres/escudos. */
@media(max-width:680px){
  .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge{
    height:15px!important;
    min-width:28px!important;
    padding:1px 5px!important;
    border-radius:4px!important;
  }
  .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge .ms-broadcast-logo{
    font-size:7.2px!important;
  }
}


/* ========================================================================
   5.17.135 — TARJETAS DE PARTIDOS EN PERFILES · ORDEN ESTRUCTURAL
   Corrige la geometría compartida de jugador / DT / árbitro / estadio.
   Evita que escudos, nombres, marcador e incidencias compitan por la misma
   celda. El perfil de equipo conserva su renderer específico de Últimos 10.
   ======================================================================== */

/* Perfiles de entidades: layout estable también en escritorio/tablet. */
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-match{
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline{
  align-items:start!important;
  column-gap:10px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 90px minmax(0,1fr)!important;
  width:100%!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-home,
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-away{
  align-content:start!important;
  align-items:start!important;
  display:grid!important;
  min-width:0!important;
  row-gap:4px!important;
  width:100%!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-home{
  grid-template-columns:minmax(0,1fr) 38px!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-away{
  grid-template-columns:38px minmax(0,1fr)!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .is-home>.ms-compact-team-copy{
  grid-column:1!important;
  grid-row:1!important;
  justify-self:stretch!important;
  min-width:0!important;
  text-align:right!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .is-away>.ms-compact-team-copy{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:stretch!important;
  min-width:0!important;
  text-align:left!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-team-copy>strong{
  display:flex!important;
  min-width:0!important;
  width:100%!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .is-home>.ms-compact-team-copy>strong{justify-content:flex-end!important}
.ms-app.ms-entity-profile .ms-compact-match-grid .is-away>.ms-compact-team-copy>strong{justify-content:flex-start!important}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-team-name{
  display:block!important;
  max-width:100%!important;
  overflow:visible!important;
  overflow-wrap:break-word!important;
  text-overflow:clip!important;
  white-space:normal!important;
  word-break:normal!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .is-home>.ms-compact-crest-wrap{
  grid-column:2!important;
  grid-row:1!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .is-away>.ms-compact-crest-wrap{
  grid-column:1!important;
  grid-row:1!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-crest-wrap{
  align-items:center!important;
  align-self:center!important;
  display:flex!important;
  height:36px!important;
  justify-content:center!important;
  justify-self:center!important;
  margin:0!important;
  min-height:36px!important;
  min-width:38px!important;
  padding:0!important;
  transform:none!important;
  width:38px!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-crest-wrap :is(.ms-crest,.ms-crest-fallback,img){
  display:block!important;
  height:32px!important;
  margin:0!important;
  max-height:32px!important;
  max-width:32px!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0!important;
  transform:none!important;
  width:32px!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-team-goals,
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{
  grid-column:1 / -1!important;
  grid-row:2!important;
  margin:0!important;
  min-width:0!important;
  padding-top:1px!important;
  width:100%!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-team-goals{
  align-items:flex-end!important;
  justify-self:stretch!important;
  text-align:right!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{
  align-items:flex-start!important;
  justify-self:stretch!important;
  text-align:left!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center,
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center.has-red-cards{
  align-self:start!important;
  justify-self:center!important;
  margin:0!important;
  min-width:90px!important;
  padding:0!important;
  width:90px!important;
}
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center-stack,
.ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center.has-red-cards .ms-compact-center-stack{
  margin:0 auto!important;
  max-width:90px!important;
  min-width:0!important;
  width:100%!important;
}

/* Teléfono: nombre / escudo + resultado / incidencias. Cada elemento tiene
   su celda real; no hay posiciones superpuestas ni anchos mínimos imposibles. */
@media(max-width:680px){
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-match{
    gap:4px!important;
    min-height:0!important;
    padding:9px 9px 8px!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-match-meta{
    margin-bottom:2px!important;
    min-width:0!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline,
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    align-items:center!important;
    column-gap:5px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)!important;
    grid-template-rows:auto 34px auto!important;
    min-height:0!important;
    row-gap:3px!important;
    width:100%!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-home,
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-away{
    display:contents!important;
  }

  /* Fila 1: nombres. */
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-team-copy{
    align-self:end!important;
    grid-column:1!important;
    grid-row:1!important;
    justify-self:stretch!important;
    padding:0 2px!important;
    text-align:center!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-team-copy{
    align-self:end!important;
    grid-column:3!important;
    grid-row:1!important;
    justify-self:stretch!important;
    padding:0 2px!important;
    text-align:center!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-team-copy>strong,
  .ms-app.ms-entity-profile .ms-compact-match-grid .is-home>.ms-compact-team-copy>strong,
  .ms-app.ms-entity-profile .ms-compact-match-grid .is-away>.ms-compact-team-copy>strong{
    align-items:flex-end!important;
    justify-content:center!important;
    min-width:0!important;
    text-align:center!important;
    width:100%!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-team-name{
    font-size:.75rem!important;
    font-weight:900!important;
    line-height:1.07!important;
    max-width:100%!important;
    overflow:visible!important;
    overflow-wrap:break-word!important;
    text-align:center!important;
    text-overflow:clip!important;
    white-space:normal!important;
    word-break:normal!important;
  }

  /* Fila 2: escudo | resultado | escudo. */
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-crest-wrap{
    grid-column:1!important;
    grid-row:2!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-crest-wrap{
    grid-column:3!important;
    grid-row:2!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-crest-wrap{
    height:34px!important;
    min-height:34px!important;
    min-width:34px!important;
    width:34px!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-crest-wrap :is(.ms-crest,.ms-crest-fallback,img){
    height:30px!important;
    max-height:30px!important;
    max-width:30px!important;
    width:30px!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center,
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center.has-red-cards{
    align-self:start!important;
    grid-column:2!important;
    grid-row:2 / span 2!important;
    justify-self:center!important;
    min-width:58px!important;
    padding:0!important;
    width:58px!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center-stack,
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center.has-red-cards .ms-compact-center-stack{
    max-width:58px!important;
    min-width:56px!important;
    width:56px!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-score-pill{
    gap:5px!important;
    justify-content:center!important;
    min-height:32px!important;
    white-space:nowrap!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-score-pill>b{
    font-size:1.35rem!important;
    line-height:1!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-score-pill>span{
    font-size:.82rem!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-match-status-chip{
    font-size:.55rem!important;
    padding:4px 7px!important;
    white-space:nowrap!important;
  }

  /* Fila 3: goleadores / incidencias debajo de SU equipo. */
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-home>.ms-compact-team-goals{
    align-items:center!important;
    grid-column:1!important;
    grid-row:3!important;
    justify-self:stretch!important;
    padding:1px 1px 0!important;
    text-align:center!important;
    width:auto!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{
    align-items:center!important;
    grid-column:3!important;
    grid-row:3!important;
    justify-self:stretch!important;
    padding:1px 1px 0!important;
    text-align:center!important;
    width:auto!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-team-goals{
    display:flex!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    gap:2px!important;
    line-height:1.05!important;
    min-width:0!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-team-goals .ms-compact-goal-row,
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-home .ms-compact-goal-row,
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline>span.is-away .ms-compact-goal-row{
    justify-content:center!important;
    text-align:center!important;
    width:100%!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-goal-item{
    max-width:100%!important;
    white-space:normal!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-goal-item b{
    font-size:.57rem!important;
    max-width:100%!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:normal!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-goal-item small{
    font-size:.52rem!important;
    white-space:nowrap!important;
  }

  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-footer{
    margin-top:2px!important;
    min-width:0!important;
    text-align:center!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-venue{
    font-size:.56rem!important;
    line-height:1.08!important;
  }
}

@media(max-width:380px){
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline,
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    column-gap:3px!important;
    grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr)!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center,
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center.has-red-cards{
    min-width:54px!important;
    width:54px!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center-stack,
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-center.has-red-cards .ms-compact-center-stack{
    max-width:54px!important;
    min-width:52px!important;
    width:52px!important;
  }
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-team-name{font-size:.70rem!important}
  .ms-app.ms-entity-profile .ms-compact-match-grid .ms-compact-score-pill>b{font-size:1.26rem!important}
}


/* 5.17.136 — Cara a Cara: el Theme no vuelve a inflar el índice compacto. */
body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-match{
  min-height:58px!important;padding:4px 10px!important;gap:2px!important;border-radius:10px!important;
}
body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline{
  min-height:34px!important;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr)!important;gap:6px!important;
}
body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-match-meta{min-height:11px!important}
body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-team-name{font-size:.77rem!important;line-height:1!important}
body.ms-h2h-active .ms-h2h-match-history-list .ms-match-status-chip{font-size:.48rem!important;padding:2px 6px!important}
@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-match{min-height:52px!important;padding:4px 6px!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline{min-height:31px!important;grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr)!important;gap:3px!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-team-name{font-size:.66rem!important}
}


/* ==========================================================================
   5.17.145 — H2H sin marcos exteriores ni fondos borrosos.
   Sólo sobreviven los cards redondeados del contenido.
   ========================================================================== */
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page),
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
body.ms-h2h-active .ms-content:has(.ms-h2h-page),
body.ms-h2h-active .ms-entry-content:has(.ms-h2h-page),
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page),
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page){
  background:var(--theme-bg,#f5f7fb)!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page),
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)>.ms-content,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-content:has(.ms-h2h-page){background:#0c121b!important}
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-site-main:has(.ms-h2h-page)::after,
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::before,
body.ms-h2h-active .ms-content:has(.ms-h2h-page)::after,
body.ms-h2h-active .ms-h2h-page::before,
body.ms-h2h-active .ms-h2h-page::after{content:none!important;display:none!important;background:none!important;border:0!important;box-shadow:none!important}
body.ms-h2h-active .ms-h2h-page{background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important}


/* ==========================================================================
   5.17.148 — H2H VS centrado y con color + corona visible del líder.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-vs-stack{
  align-items:center!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  justify-content:center!important;
  justify-self:center!important;
}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs{
  align-items:center!important;
  align-self:center!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(241,245,249,.96))!important;
  border:1px solid #cbd6e5!important;
  border-radius:19px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.92)!important;
  color:#163b73!important;
  display:flex!important;
  height:56px!important;
  justify-content:center!important;
  justify-self:center!important;
  margin:0 auto!important;
  min-height:56px!important;
  overflow:visible!important;
  padding:0!important;
  position:relative!important;
  width:68px!important;
  z-index:2!important;
}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs::before,
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs::after{
  content:""!important;
  position:absolute!important;
  top:5px!important;
  bottom:5px!important;
  width:20px!important;
  border:3px solid transparent!important;
  border-radius:999px!important;
  pointer-events:none!important;
}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs::before{
  left:-9px!important;
  border-right:0!important;
  border-color:color-mix(in srgb,var(--ms-h2h-page-a2,var(--ms-h2h-team-a,#2563eb)),#ffffff 18%)!important;
}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs::after{
  right:-9px!important;
  border-left:0!important;
  border-color:color-mix(in srgb,var(--ms-h2h-page-b2,var(--ms-h2h-team-b,#ef4444)),#ffffff 18%)!important;
}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs>b{
  align-items:center!important;
  background:linear-gradient(180deg,#ffffff,#eef3f9)!important;
  border:1px solid #cfd8e6!important;
  border-radius:13px!important;
  box-shadow:0 3px 8px rgba(15,23,42,.08)!important;
  color:#163b73!important;
  display:inline-flex!important;
  font-size:1.04rem!important;
  font-weight:950!important;
  height:36px!important;
  justify-content:center!important;
  letter-spacing:.04em!important;
  min-width:36px!important;
  padding:0 10px!important;
  position:relative!important;
  z-index:2!important;
}
body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label{
  align-items:center!important;
  background:linear-gradient(180deg,#ffffff,#eef3f9)!important;
  border:1px solid #d2dce9!important;
  border-radius:12px!important;
  box-shadow:0 2px 7px rgba(15,23,42,.06)!important;
  color:#163b73!important;
  display:inline-flex!important;
  font-weight:950!important;
  justify-content:center!important;
  justify-self:center!important;
  margin:0 auto!important;
  min-height:30px!important;
  min-width:38px!important;
  padding:0 10px!important;
  position:relative!important;
}
body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label::before,
body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label::after{
  content:""!important;
  position:absolute!important;
  top:4px!important;
  bottom:4px!important;
  width:11px!important;
  border:2px solid transparent!important;
  border-radius:999px!important;
  pointer-events:none!important;
}
body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label::before{
  left:-6px!important;
  border-right:0!important;
  border-color:#3b82f6!important;
}
body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label::after{
  right:-6px!important;
  border-left:0!important;
  border-color:#ef4444!important;
}
body.ms-h2h-active .ms-h2h-lead-stat:not(.is-level)>div{
  padding-top:10px!important;
  position:relative!important;
}
body.ms-h2h-active .ms-h2h-lead-stat:not(.is-level)>div::before{
  align-items:center!important;
  background:linear-gradient(180deg,#fff4b0,#f2c94c)!important;
  border:1px solid rgba(146,92,15,.28)!important;
  border-radius:999px!important;
  box-shadow:0 4px 10px rgba(146,92,15,.18)!important;
  color:#8a5a00!important;
  content:"♛"!important;
  display:inline-flex!important;
  font-family:Georgia,serif!important;
  font-size:.86rem!important;
  font-weight:900!important;
  height:18px!important;
  justify-content:center!important;
  left:50%!important;
  line-height:1!important;
  position:absolute!important;
  top:-11px!important;
  transform:translateX(-50%)!important;
  width:18px!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-form .ms-h2h-vs{
  background:linear-gradient(180deg,#1b2533,#151e2b)!important;
  border-color:#445468!important;
  box-shadow:0 8px 18px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.04)!important;
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-form .ms-h2h-vs>b,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label{
  background:linear-gradient(180deg,#233043,#1b2533)!important;
  border-color:#4c6078!important;
  box-shadow:0 2px 8px rgba(0,0,0,.18)!important;
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-lead-stat:not(.is-level)>div::before{
  background:linear-gradient(180deg,#f5d96a,#c99a1a)!important;
  border-color:rgba(255,255,255,.14)!important;
  box-shadow:0 4px 10px rgba(0,0,0,.22)!important;
  color:#5c3c00!important;
}
@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-vs-stack{gap:7px!important}
  body.ms-h2h-active .ms-h2h-form .ms-h2h-vs{height:58px!important;min-height:58px!important;width:72px!important}
  body.ms-h2h-active .ms-h2h-form .ms-h2h-vs>b{font-size:1.08rem!important;height:37px!important;min-width:38px!important}
}


/* ==========================================================================
   5.17.149 — H2H “Seleccionar Clásico” con la misma jerarquía del cintillo.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-classic-picker-shell{
  margin:12px auto 16px!important;
}
body.ms-h2h-active .ms-h2h-classic-filter{
  align-items:center!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  position:relative!important;
}
body.ms-h2h-active .ms-h2h-classic-filter>span:first-child{
  align-items:center!important;
  align-self:center!important;
  background:linear-gradient(180deg,rgba(110,24,67,.96),rgba(88,19,53,.96))!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:4px!important;
  box-shadow:0 6px 14px rgba(15,23,42,.12)!important;
  color:#fff!important;
  display:inline-flex!important;
  font-size:.92rem!important;
  font-weight:950!important;
  justify-content:center!important;
  letter-spacing:.055em!important;
  line-height:1!important;
  margin:0 auto -14px!important;
  padding:6px 14px 5px!important;
  position:relative!important;
  text-align:center!important;
  text-shadow:0 2px 0 rgba(0,0,0,.78),0 0 6px rgba(0,0,0,.36)!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  z-index:40!important;
}
body.ms-h2h-active .ms-h2h-classic-filter .ms-h2h-classic-picker{
  width:100%!important;
}
body.ms-h2h-active .ms-h2h-classic-picker-button{
  padding-top:16px!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-classic-filter>span:first-child{
  background:linear-gradient(180deg,rgba(128,30,79,.94),rgba(95,22,59,.94))!important;
  border-color:rgba(255,255,255,.22)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.24)!important;
  color:#fff!important;
}
@media(max-width:760px){
  body.ms-h2h-active .ms-h2h-classic-filter>span:first-child{
    font-size:.78rem!important;
    letter-spacing:.045em!important;
    margin:0 auto -12px!important;
    padding:5px 10px 4px!important;
  }
  body.ms-h2h-active .ms-h2h-classic-picker-button{
    padding-top:14px!important;
  }
}


/* ==========================================================================
   5.17.150 — Selector de clásico exacto + guion + chevron + corona en escudo.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-classic-filter>span:first-child{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#0b0f14!important;
  display:block!important;
  font-size:1.02rem!important;
  font-weight:1000!important;
  letter-spacing:.03em!important;
  line-height:1!important;
  margin:0 auto 10px!important;
  padding:0!important;
  text-align:center!important;
  text-shadow:3px 5px 0 rgba(0,0,0,.28), 0 0 6px rgba(255,255,255,.42)!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  z-index:40!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-classic-filter>span:first-child{
  color:#ffffff!important;
  text-shadow:3px 5px 0 rgba(0,0,0,.52), 0 0 6px rgba(0,0,0,.16)!important;
}
body.ms-h2h-active .ms-h2h-classic-picker-button{padding-top:4px!important}
body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label,
body.ms-h2h-active .ms-h2h-classic-picker-option>b{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#101828!important;
  font-size:1.22rem!important;
  font-weight:1000!important;
  letter-spacing:-.02em!important;
  min-height:auto!important;
  min-width:20px!important;
  padding:0 2px!important;
}
body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label::before,
body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label::after{content:none!important;display:none!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-classic-picker-option>b{color:#f8fafc!important}
body.ms-h2h-active .ms-h2h-classic-caret{
  align-items:center!important;
  color:#173a6f!important;
  display:inline-flex!important;
  font-size:0!important;
  height:18px!important;
  justify-content:center!important;
  line-height:1!important;
  width:18px!important;
}
body.ms-h2h-active .ms-h2h-classic-caret::before{
  content:""!important;
  border-right:2.5px solid currentColor!important;
  border-bottom:2.5px solid currentColor!important;
  display:block!important;
  height:7px!important;
  margin-top:-3px!important;
  transform:rotate(45deg)!important;
  width:7px!important;
}
body.ms-h2h-active .ms-h2h-classic-picker-button[aria-expanded="true"] .ms-h2h-classic-caret{transform:rotate(180deg)!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-classic-caret{color:#f8fafc!important}
body.ms-h2h-active .ms-h2h-lead-stat:not(.is-level)>div::before{content:none!important;display:none!important}
body.ms-h2h-active .ms-h2h-summary-team.is-leader>a{position:relative!important}
body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{
  content:"♛"!important;
  color:#d5a11e!important;
  font-family:Georgia,serif!important;
  font-size:1.06rem!important;
  font-weight:900!important;
  line-height:1!important;
  position:absolute!important;
  left:50%!important;
  top:-12px!important;
  transform:translateX(-50%)!important;
  z-index:5!important;
  text-shadow:0 1px 0 rgba(255,255,255,.7),0 0 5px rgba(214,162,29,.32)!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{
  color:#f1ca55!important;
  text-shadow:0 1px 0 rgba(0,0,0,.35),0 0 6px rgba(241,202,85,.32)!important;
}
@media(max-width:760px){
  body.ms-h2h-active .ms-h2h-classic-filter>span:first-child{
    font-size:.92rem!important;
    margin-bottom:8px!important;
  }
  body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{top:-10px!important}
}


/* ==========================================================================
   5.17.151 — H2H fine tune final: clásico centrado, corona premium, VS/swap.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-classic-filter>span:first-child{
  color:#111827!important;
  font-size:1rem!important;
  font-weight:1000!important;
  letter-spacing:.025em!important;
  margin:0 auto 8px!important;
  text-shadow:1px 2px 0 rgba(0,0,0,.28)!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-classic-filter>span:first-child{
  color:#fff!important;
  text-shadow:1px 2px 0 rgba(0,0,0,.74)!important;
}
body.ms-h2h-active .ms-h2h-vs-stack{
  align-items:center!important;
  display:flex!important;
  flex-direction:column-reverse!important;
  gap:10px!important;
  justify-content:center!important;
  min-width:72px!important;
}
body.ms-h2h-active .ms-h2h-swap{order:1!important;height:48px!important;width:56px!important;border-radius:18px!important}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs{
  order:2!important;
  align-items:center!important;
  align-self:center!important;
  background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(239,244,250,.95))!important;
  border:1px solid #cbd6e5!important;
  border-radius:18px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.92)!important;
  color:#153b73!important;
  display:flex!important;
  height:56px!important;
  justify-content:center!important;
  margin:0 auto!important;
  min-height:56px!important;
  padding:0!important;
  position:relative!important;
  width:68px!important;
}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs::before,
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs::after{
  content:""!important;
  position:absolute!important;
  top:5px!important;
  bottom:5px!important;
  width:20px!important;
  border:3px solid transparent!important;
  border-radius:999px!important;
  pointer-events:none!important;
}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs::before{left:-9px!important;border-right:0!important;border-color:color-mix(in srgb,var(--ms-h2h-page-a2,var(--ms-h2h-team-a,#2563eb)),#fff 18%)!important}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs::after{right:-9px!important;border-left:0!important;border-color:color-mix(in srgb,var(--ms-h2h-page-b2,var(--ms-h2h-team-b,#ef4444)),#fff 18%)!important}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs>b{
  align-items:center!important;
  background:linear-gradient(180deg,#ffffff,#eef3f9)!important;
  border:1px solid #cfd8e6!important;
  border-radius:13px!important;
  box-shadow:0 3px 8px rgba(15,23,42,.08)!important;
  color:#163b73!important;
  display:inline-flex!important;
  font-size:1.03rem!important;
  font-weight:950!important;
  height:36px!important;
  justify-content:center!important;
  letter-spacing:.04em!important;
  min-width:36px!important;
  padding:0 10px!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-form .ms-h2h-vs{
  background:linear-gradient(180deg,#1b2533,#151e2b)!important;
  border-color:#445468!important;
  box-shadow:0 8px 18px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.04)!important;
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-form .ms-h2h-vs>b{background:linear-gradient(180deg,#233043,#1b2533)!important;border-color:#4c6078!important;color:#f8fafc!important}
body.ms-h2h-active .ms-h2h-showcase-classic{left:50%!important;right:auto!important;top:10px!important;transform:translateX(-50%)!important;text-align:center!important;white-space:nowrap!important}
body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{
  color:#e0ae22!important;
  font-size:1.45rem!important;
  font-weight:900!important;
  left:50%!important;
  top:-18px!important;
  text-shadow:0 1px 0 rgba(255,255,255,.82),0 0 8px rgba(224,174,34,.46),0 2px 4px rgba(0,0,0,.16)!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{color:#f3c84e!important;text-shadow:0 1px 0 rgba(0,0,0,.45),0 0 10px rgba(243,200,78,.42),0 2px 4px rgba(0,0,0,.26)!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-showcase-summary .ms-h2h-lead-stat{align-items:center!important;justify-content:center!important;margin-left:auto!important;margin-right:auto!important;text-align:center!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-showcase-summary .ms-h2h-lead-stat>span{color:#fff!important;margin:0 auto 4px!important;text-align:center!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-showcase-summary .ms-h2h-lead-stat>div{align-items:center!important;background:linear-gradient(180deg,color-mix(in srgb,var(--ms-h2h-leader,#0f6bff),#fff 10%),color-mix(in srgb,var(--ms-h2h-leader,#0f6bff),#06172e 18%))!important;border:1px solid color-mix(in srgb,var(--ms-h2h-leader-accent,#fff),transparent 18%)!important;border-radius:10px!important;box-shadow:0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 18px rgba(7,14,25,.16)!important;display:inline-flex!important;gap:7px!important;justify-content:center!important;margin:0 auto!important;min-width:0!important;padding:6px 12px!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-showcase-summary .ms-h2h-lead-stat>div>strong,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-showcase-summary .ms-h2h-lead-stat>div>small{color:var(--ms-h2h-leader-accent,#fff)!important}
@media(max-width:760px){body.ms-h2h-active .ms-h2h-showcase-classic{top:8px!important;font-size:.78rem!important}}
@media(max-width:680px){body.ms-h2h-active .ms-h2h-vs-stack{gap:8px!important}body.ms-h2h-active .ms-h2h-swap{height:46px!important;width:54px!important}body.ms-h2h-active .ms-h2h-form .ms-h2h-vs{height:54px!important;min-height:54px!important;width:66px!important}body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{top:-15px!important;font-size:1.28rem!important}}


/* ==========================================================================
   5.17.152 — corona real + VS showcase con colores de ambos lados.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{
  content:""!important;
  background:url('ms-crown-gold.png') center/contain no-repeat!important;
  width:36px!important;
  height:26px!important;
  left:50%!important;
  top:-20px!important;
  transform:translateX(-50%)!important;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.42)) drop-shadow(0 3px 5px rgba(0,0,0,.18))!important;
}
@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{width:31px!important;height:22px!important;top:-17px!important}
}
.ms-history-modal .ms-history-ranking-row.is-podium-gold .ms-history-ranking-crest::before,
.ms-series-modal .ms-history-ranking-row.is-podium-gold .ms-history-ranking-crest::before{
  content:""!important;
  background:url('ms-crown-gold.png') center/contain no-repeat!important;
  width:22px!important;
  height:16px!important;
  position:absolute!important;
  left:50%!important;
  top:-10px!important;
  transform:translateX(-50%)!important;
  z-index:5!important;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.34)) drop-shadow(0 2px 4px rgba(0,0,0,.14))!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{
  align-items:center!important;
  align-self:center!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(239,244,250,.96))!important;
  border:1px solid rgba(255,255,255,.55)!important;
  border-radius:18px!important;
  box-shadow:0 8px 16px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.95)!important;
  color:#153b73!important;
  display:flex!important;
  font-size:1.02rem!important;
  font-style:normal!important;
  font-weight:950!important;
  height:56px!important;
  justify-content:center!important;
  line-height:1!important;
  margin:0 auto!important;
  min-width:68px!important;
  position:relative!important;
  text-shadow:none!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{
  content:""!important;
  position:absolute!important;
  top:5px!important;
  bottom:5px!important;
  width:20px!important;
  border:3px solid transparent!important;
  border-radius:999px!important;
  pointer-events:none!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before{left:-9px!important;border-right:0!important;border-color:color-mix(in srgb,var(--ms-h2h-team-a),#fff 18%)!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{right:-9px!important;border-left:0!important;border-color:color-mix(in srgb,var(--ms-h2h-team-b),#fff 18%)!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{
  background:linear-gradient(180deg,#1b2533,#151e2b)!important;
  border-color:#445468!important;
  box-shadow:0 8px 18px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.04)!important;
  color:#f8fafc!important;
}
@media(max-width:760px){
  body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{height:50px!important;min-width:62px!important;font-size:.96rem!important}
}


/* ==========================================================================
   5.17.153 — H2H final cleanup: sin VS en selector, swap al centro, corona PNG limpia.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-vs-stack{
  align-items:center!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  justify-content:center!important;
  min-width:60px!important;
}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs{display:none!important}
body.ms-h2h-active .ms-h2h-swap{
  align-items:center!important;
  align-self:center!important;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(238,243,249,.94))!important;
  border:1px solid #c8d4e3!important;
  border-radius:18px!important;
  box-shadow:0 7px 16px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.9)!important;
  color:#173a6f!important;
  display:inline-flex!important;
  height:56px!important;
  justify-content:center!important;
  margin:0 auto!important;
  width:56px!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-swap{
  background:linear-gradient(180deg,#1b2533,#151e2b)!important;
  border-color:#445468!important;
  box-shadow:0 8px 18px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.04)!important;
  color:#f8fafc!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{
  align-items:center!important;
  align-self:center!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(239,244,250,.96))!important;
  border:1px solid #d2dce9!important;
  border-radius:18px!important;
  box-shadow:0 7px 16px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.95)!important;
  color:#153b73!important;
  display:inline-flex!important;
  font-size:1.02rem!important;
  font-style:normal!important;
  font-weight:950!important;
  height:52px!important;
  justify-content:center!important;
  line-height:1!important;
  margin:0 auto!important;
  min-width:64px!important;
  padding:0!important;
  position:relative!important;
  text-shadow:none!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{
  content:""!important;
  position:absolute!important;
  top:5px!important;
  bottom:5px!important;
  width:18px!important;
  border:3px solid transparent!important;
  border-radius:999px!important;
  pointer-events:none!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before{left:-8px!important;border-right:0!important;border-color:color-mix(in srgb,var(--ms-h2h-team-a,#2563eb),#fff 18%)!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{right:-8px!important;border-left:0!important;border-color:color-mix(in srgb,var(--ms-h2h-team-b,#ef4444),#fff 18%)!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{
  background:linear-gradient(180deg,#243042,#1a2433)!important;
  border-color:#4b6078!important;
  color:#f8fafc!important;
  box-shadow:0 8px 18px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.04)!important;
}
body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{
  background:url('ms-crown-gold.png') center/contain no-repeat!important;
  content:""!important;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.14))!important;
  height:20px!important;
  left:50%!important;
  position:absolute!important;
  top:-14px!important;
  transform:translateX(-50%)!important;
  width:28px!important;
  z-index:5!important;
}
.ms-history-modal .ms-history-ranking-row.is-podium-gold .ms-history-ranking-crest::before,
.ms-series-modal .ms-history-ranking-row.is-podium-gold .ms-history-ranking-crest::before{
  background:url('ms-crown-gold.png') center/contain no-repeat!important;
  content:""!important;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.14))!important;
  height:12px!important;
  left:50%!important;
  position:absolute!important;
  top:-7px!important;
  transform:translateX(-50%)!important;
  width:18px!important;
  z-index:5!important;
}
@media(max-width:760px){body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{height:48px!important;min-width:60px!important;font-size:.96rem!important}}
@media(max-width:680px){body.ms-h2h-active .ms-h2h-swap{height:52px!important;width:52px!important}body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{height:18px!important;width:25px!important;top:-12px!important}}


/* ==========================================================================
   5.17.154 — H2H polish: logo limpio, corona separada, VS elegante, swap homogéneo.
   ========================================================================== */
.ms-history-modal .ms-history-modal-competition-badge,
.ms-series-modal .ms-history-modal-competition-badge{
  width:64px!important;
  height:64px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
}
.ms-history-modal .ms-history-modal-competition-badge .ms-crest,
.ms-history-modal .ms-history-modal-competition-badge .ms-crest-fallback,
.ms-series-modal .ms-history-modal-competition-badge .ms-crest,
.ms-series-modal .ms-history-modal-competition-badge .ms-crest-fallback{
  width:46px!important;
  height:46px!important;
  max-width:46px!important;
  max-height:46px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  object-fit:contain!important;
}
body.ms-h2h-active .ms-h2h-swap{
  background:linear-gradient(180deg,#ffffff,#f7faff)!important;
  border:1px solid #c5d2e4!important;
  border-radius:16px!important;
  box-shadow:0 6px 14px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.96)!important;
  color:#18386c!important;
  height:52px!important;
  width:52px!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-swap{
  background:linear-gradient(180deg,#182333,#121b28)!important;
  border-color:#44566e!important;
  color:#f8fafc!important;
}
body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{
  width:32px!important;
  height:23px!important;
  top:-21px!important;
}
.ms-history-modal .ms-history-ranking-row.is-podium-gold .ms-history-ranking-crest::before,
.ms-series-modal .ms-history-ranking-row.is-podium-gold .ms-history-ranking-crest::before{
  width:20px!important;
  height:14px!important;
  top:-10px!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{
  background:
    linear-gradient(90deg,
      color-mix(in srgb,var(--ms-h2h-team-a,#2563eb),#fff 28%) 0 5px,
      transparent 5px calc(100% - 5px),
      color-mix(in srgb,var(--ms-h2h-team-b,#ef4444),#fff 28%) calc(100% - 5px) 100%),
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(239,244,250,.96))!important;
  border:1px solid #d1dae7!important;
  border-radius:18px!important;
  box-shadow:0 7px 16px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.95)!important;
  min-width:66px!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{content:none!important;display:none!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{
  background:
    linear-gradient(90deg,
      color-mix(in srgb,var(--ms-h2h-team-a,#2563eb),#fff 14%) 0 5px,
      transparent 5px calc(100% - 5px),
      color-mix(in srgb,var(--ms-h2h-team-b,#ef4444),#fff 14%) calc(100% - 5px) 100%),
    linear-gradient(180deg,#243042,#1a2433)!important;
  border-color:#4b6078!important;
}
@media(max-width:680px){body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{width:29px!important;height:21px!important;top:-18px!important}}


/* ==========================================================================
   5.17.155 — H2H final polish mirror.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{
  position:relative!important;overflow:hidden!important;border:1px solid #d4deea!important;border-radius:18px!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{
  content:""!important;display:block!important;position:absolute!important;top:5px!important;bottom:5px!important;width:28px!important;border:3px solid transparent!important;border-radius:999px!important;pointer-events:none!important;z-index:0!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before{left:5px!important;border-left-color:color-mix(in srgb,var(--ms-h2h-team-a,#ef4444),#fff 12%)!important;border-top-color:color-mix(in srgb,var(--ms-h2h-team-a,#ef4444),#fff 12%)!important;border-bottom-color:color-mix(in srgb,var(--ms-h2h-team-a,#ef4444),#fff 12%)!important;border-right:0!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{right:5px!important;border-right-color:color-mix(in srgb,var(--ms-h2h-team-b,#38bdf8),#fff 12%)!important;border-top-color:color-mix(in srgb,var(--ms-h2h-team-b,#38bdf8),#fff 12%)!important;border-bottom-color:color-mix(in srgb,var(--ms-h2h-team-b,#38bdf8),#fff 12%)!important;border-left:0!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i>b,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i>span,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i>strong{position:relative!important;z-index:1!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{border-color:#495c74!important;box-shadow:0 10px 20px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.04)!important}

body.ms-h2h-active .ms-h2h-match-history-list.ms-home-today{max-width:100%!important;width:100%!important;margin:10px 0 0!important}
body.ms-h2h-active .ms-h2h-match-history-list.ms-home-today .ms-match-groups,
body.ms-h2h-active .ms-h2h-match-history-list.ms-home-today .ms-match-group,
body.ms-h2h-active .ms-h2h-match-history-list.ms-home-today .ms-compact-match-grid{max-width:100%!important;width:100%!important}

body.ms-h2h-active .ms-h2h-summary-card.ms-h2h-showcase-card,
body.ms-h2h-active .ms-versus-section-banner,
body.ms-h2h-active .ms-h2h-decades,
body.ms-h2h-active .ms-h2h-match-history-list.ms-home-today .ms-match-group,
body.ms-h2h-active .ms-h2h-side-card,
body.ms-h2h-active .ms-h2h-goals-card,
body.ms-h2h-active .ms-h2h-decade-card{border:0!important;outline:0!important}
body.ms-h2h-active .ms-h2h-summary-card.ms-h2h-showcase-card,
body.ms-h2h-active .ms-versus-section-banner,
body.ms-h2h-active .ms-h2h-decades,
body.ms-h2h-active .ms-h2h-match-history-list.ms-home-today .ms-match-group{box-shadow:0 10px 24px rgba(15,23,42,.08)!important}
body.ms-h2h-active .ms-h2h-match-history-list.ms-home-today .ms-match-group,
body.ms-h2h-active .ms-h2h-decades,
body.ms-h2h-active .ms-versus-section-banner,
body.ms-h2h-active .ms-h2h-summary-card.ms-h2h-showcase-card{border-radius:18px!important;overflow:hidden!important}
body.ms-h2h-active .ms-h2h-side-card,
body.ms-h2h-active .ms-h2h-goals-card,
body.ms-h2h-active .ms-h2h-decade-card{border-radius:16px!important}
body.ms-h2h-active .ms-h2h-match-history-list.ms-home-today .ms-compact-match{border-radius:0!important}
body.ms-h2h-active .ms-h2h-match-history-list.ms-home-today .ms-compact-match + .ms-compact-match{border-top:1px solid color-mix(in srgb,var(--ms-line,#d0d5dd),transparent 18%)!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-summary-card.ms-h2h-showcase-card,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-versus-section-banner,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-decades,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-match-history-list.ms-home-today .ms-match-group{box-shadow:0 14px 28px rgba(0,0,0,.24)!important}


/* ==========================================================================
   5.17.313 — VS plata, dos “C” internas enfrentadas hasta el centro.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(238,243,249,.97))!important;
  border:1px solid #c9d2df!important;
  border-radius:18px!important;
  box-shadow:0 7px 16px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.96)!important;
  color:#153b73!important;
  overflow:hidden!important;
  position:relative!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:5px!important;
  bottom:5px!important;
  width:29px!important;
  border:3px solid #aeb9c8!important;
  border-radius:999px!important;
  pointer-events:none!important;
  z-index:0!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before{
  left:5px!important;
  border-right:0!important;
}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{
  right:5px!important;
  border-left:0!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{
  background:linear-gradient(180deg,#243042,#1a2433)!important;
  border-color:#53657b!important;
  color:#f8fafc!important;
}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{
  border-color:#aab5c4!important;
}


/* ==========================================================================
   5.17.157 — H2H/UI microfix mirror.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-match-history-list,
body.ms-h2h-active .ms-h2h-match-history-list .ms-match-groups,
body.ms-h2h-active .ms-h2h-match-history-list .ms-match-group,
body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-match-grid,
body.ms-h2h-active .ms-h2h-result,
body.ms-h2h-active .ms-h2h-result-host,
body.ms-h2h-active .ms-h2h-page,
body.ms-h2h-active .ms-h2h-page section,
body.ms-h2h-active .ms-h2h-decades,
body.ms-h2h-active .ms-versus-section-banner{outline:0!important}
body.ms-h2h-active .ms-h2h-match-history-list,
body.ms-h2h-active .ms-h2h-match-history-list .ms-match-groups,
body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-match-grid{border:0!important;box-shadow:none!important}
body.ms-h2h-active .ms-h2h-match-history-list .ms-match-group{border:0!important;border-radius:18px!important;box-shadow:0 10px 24px rgba(15,23,42,.08)!important;overflow:hidden!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-match-history-list .ms-match-group{box-shadow:0 14px 28px rgba(0,0,0,.24)!important}

body.ms-h2h-active .ms-button.ms-h2h-load-more,
body.ms-h2h-active .ms-h2h-load-more{background:linear-gradient(180deg,#1f5ecf,#1749a8)!important;border:1px solid #1a4fad!important;border-radius:14px!important;box-shadow:0 8px 18px rgba(23,73,168,.18)!important;color:#fff!important}
body.ms-h2h-active .ms-h2h-load-more strong,
body.ms-h2h-active .ms-h2h-load-more small{color:#fff!important;opacity:1!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-button.ms-h2h-load-more,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-load-more{background:linear-gradient(180deg,#1c4ea8,#143b84)!important;border-color:#2257b3!important;box-shadow:0 10px 20px rgba(0,0,0,.24)!important}

body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{align-items:center!important;background:linear-gradient(180deg,#ffffff,#eef2f7)!important;border:1px solid #cfd8e4!important;border-radius:18px!important;box-shadow:0 7px 16px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.95)!important;color:#163b73!important;display:inline-flex!important;font-size:1.16rem!important;font-style:normal!important;font-weight:950!important;height:52px!important;justify-content:center!important;min-width:66px!important;overflow:hidden!important;position:relative!important;text-shadow:none!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{content:""!important;position:absolute!important;top:6px!important;bottom:6px!important;width:14px!important;border:2px solid #b6c0cf!important;border-radius:999px!important;opacity:.95!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before{left:6px!important;border-right:0!important}
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{right:6px!important;border-left:0!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i{background:linear-gradient(180deg,#ffffff,#edf2f8)!important;border-color:#cfd8e4!important;color:#163b73!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::before,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams>i::after{border-color:#aeb8c7!important}

body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{top:-26px!important;width:30px!important;height:21px!important}
.ms-history-modal .ms-history-ranking-row.is-podium-gold .ms-history-ranking-crest::before,
.ms-series-modal .ms-history-ranking-row.is-podium-gold .ms-history-ranking-crest::before{top:-12px!important}
@media(max-width:680px){body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{top:-22px!important;width:28px!important;height:20px!important}}


/* ==========================================================================
   5.17.158 — mirror de móvil H2H ordenado.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-classic-filter{align-items:center!important;text-align:center!important}
body.ms-h2h-active .ms-h2h-classic-filter>span:first-child,
body.ms-h2h-active .ms-h2h-classic-filter .ms-h2h-classic-title,
body.ms-h2h-active .ms-h2h-classic-filter .ms-h2h-classic-label{background:transparent!important;border:0!important;box-shadow:none!important;color:#1f2b40!important;display:block!important;font-size:.72rem!important;font-weight:950!important;letter-spacing:.02em!important;margin:0 auto 6px!important;padding:0!important;text-align:center!important;text-shadow:0 1px 0 rgba(255,255,255,.42)!important;text-transform:uppercase!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-classic-filter>span:first-child,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-classic-filter .ms-h2h-classic-title,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-classic-filter .ms-h2h-classic-label{background:transparent!important;color:#f8fafc!important;text-shadow:0 1px 2px rgba(0,0,0,.45)!important}

@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-classic-picker-shell{max-width:292px!important;margin:4px auto 10px!important}
  body.ms-h2h-active .ms-h2h-classic-picker-button{min-height:50px!important;padding:4px 10px!important}
  body.ms-h2h-active .ms-h2h-classic-picker-button>b.ms-h2h-classic-vs-label,
  body.ms-h2h-active .ms-h2h-classic-picker-button>b{font-size:.88rem!important;text-align:center!important}
  body.ms-h2h-active .ms-h2h-form .ms-h2h-matchup-picker{padding:0!important}
  body.ms-h2h-active .ms-h2h-modern-matchup{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;justify-items:center!important;align-items:center!important;max-width:100%!important}
  body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel:first-of-type{order:1!important;width:100%!important}
  body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-vs-stack{order:2!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;margin:0 auto!important}
  body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel:last-of-type{order:3!important;width:100%!important}
  body.ms-h2h-active .ms-h2h-vs-stack .ms-h2h-vs{display:none!important}
  body.ms-h2h-active .ms-h2h-swap{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0 auto!important}
  body.ms-h2h-active .ms-h2h-team-panel,
  body.ms-h2h-active .ms-h2h-team-picker,
  body.ms-h2h-active .ms-h2h-team-picker-button{width:100%!important}
  body.ms-h2h-active .ms-h2h-team-picker-button{justify-content:center!important;text-align:center!important;min-height:44px!important}
  body.ms-h2h-active .ms-h2h-team-picker-copy,
  body.ms-h2h-active .ms-h2h-team-picker-button strong,
  body.ms-h2h-active .ms-h2h-team-picker-button span{text-align:center!important}
}

@media(max-width:560px){
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-match{padding:6px 8px!important;gap:4px!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline{align-items:center!important;grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr)!important;gap:4px!important;min-height:38px!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline>span.is-home,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline>span.is-away{align-items:center!important;min-width:0!important;overflow:hidden!important;width:100%!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline>span.is-home{grid-template-columns:minmax(0,1fr) 18px!important;gap:3px!important;padding-right:2px!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline>span.is-away{grid-template-columns:18px minmax(0,1fr)!important;gap:3px!important;padding-left:2px!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-crest-wrap{height:18px!important;min-width:18px!important;width:18px!important;justify-self:center!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-crest-wrap .ms-crest,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-crest-wrap .ms-crest-fallback,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-crest-wrap img{height:17px!important;max-height:17px!important;max-width:17px!important;width:17px!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-center{min-width:68px!important;width:68px!important;position:relative!important;z-index:2!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-score-pill{min-width:52px!important;width:52px!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-score-pill>b{font-size:.9rem!important}
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-team-copy,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-team-copy>strong,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-team-name{font-size:.63rem!important;line-height:1.02!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
}


/* ==========================================================================
   5.17.159 — mirror de H2H mobile hard fix.
   ========================================================================== */
@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-modern-matchup{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important}
  body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-team-panel.is-team-one{order:1!important;width:100%!important}
  body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-vs-stack{order:2!important;width:auto!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;margin:0 auto!important}
  body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-team-panel.is-team-two{order:3!important;width:100%!important}
  body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-vs-stack .ms-h2h-vs{display:none!important}
  body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-vs-stack .ms-h2h-swap{margin:0 auto!important}
}
@media(max-width:560px){
  body.ms-h2h-active .ms-home-today .ms-compact-match,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-match{padding:8px 6px!important;overflow:hidden!important}
  body.ms-h2h-active .ms-home-today .ms-compact-match .ms-compact-match-meta,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-match .ms-compact-match-meta{margin-bottom:2px!important}
  body.ms-h2h-active .ms-home-today .ms-compact-scoreline,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline{grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr)!important;column-gap:4px!important;align-items:center!important}
  body.ms-h2h-active .ms-home-today .ms-compact-scoreline > span.is-home,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline > span.is-home{display:grid!important;grid-template-columns:minmax(0,1fr) 16px!important;align-items:center!important;gap:3px!important;min-width:0!important;width:100%!important}
  body.ms-h2h-active .ms-home-today .ms-compact-scoreline > span.is-away,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline > span.is-away{display:grid!important;grid-template-columns:16px minmax(0,1fr)!important;align-items:center!important;gap:3px!important;min-width:0!important;width:100%!important}
  body.ms-h2h-active .ms-home-today .ms-compact-scoreline .ms-compact-team-copy,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline .ms-compact-team-copy{min-width:0!important;overflow:hidden!important}
  body.ms-h2h-active .ms-home-today .ms-compact-scoreline .ms-compact-team-copy > strong,
  body.ms-h2h-active .ms-home-today .ms-compact-scoreline .ms-compact-team-name,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline .ms-compact-team-copy > strong,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline .ms-compact-team-name{font-size:.66rem!important;line-height:1.06!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body.ms-h2h-active .ms-home-today .ms-compact-scoreline .ms-compact-crest-wrap,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline .ms-compact-crest-wrap{height:16px!important;min-width:16px!important;width:16px!important;justify-self:center!important;align-self:center!important;transform:none!important;position:static!important}
  body.ms-h2h-active .ms-home-today .ms-compact-scoreline .ms-compact-crest-wrap :is(img,.ms-crest,.ms-crest-fallback),
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-scoreline .ms-compact-crest-wrap :is(img,.ms-crest,.ms-crest-fallback){height:16px!important;max-height:16px!important;max-width:16px!important;width:16px!important}
  body.ms-h2h-active .ms-home-today .ms-compact-center,
  body.ms-h2h-active .ms-home-today .ms-compact-center.has-red-cards,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-center,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-center.has-red-cards{min-width:74px!important;width:74px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important}
  body.ms-h2h-active .ms-home-today .ms-compact-center-stack,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-center-stack{width:auto!important}
  body.ms-h2h-active .ms-home-today .ms-compact-score-pill,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-score-pill{min-width:54px!important;width:54px!important}
  body.ms-h2h-active .ms-home-today .ms-compact-score-pill b,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-score-pill b{font-size:1rem!important}
  body.ms-h2h-active .ms-home-today .ms-compact-red-rail,
  body.ms-h2h-active .ms-home-today .ms-compact-team-goals,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-red-rail,
  body.ms-h2h-active .ms-h2h-match-history-list .ms-compact-team-goals{display:none!important}
}
@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-classic-picker-popover{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;overflow-x:hidden!important;max-width:100%!important;width:100%!important;padding:6px 4px!important}
  body.ms-h2h-active .ms-h2h-classic-picker-option{grid-template-columns:32px 16px 32px!important;min-height:48px!important;min-width:0!important;max-width:100%!important;gap:4px!important;padding:4px!important}
  body.ms-h2h-active .ms-h2h-classic-picker-option>span{height:28px!important;width:28px!important}
  body.ms-h2h-active .ms-h2h-classic-picker-option .ms-crest,
  body.ms-h2h-active .ms-h2h-classic-picker-option .ms-crest-fallback{height:26px!important;max-width:26px!important;width:26px!important}
  body.ms-h2h-active .ms-h2h-classic-picker-option>b{font-size:.92rem!important;min-width:12px!important;padding:0!important}
}


/* ==========================================================================
   5.17.160 — H2H definitivo móvil + intro editorial mirror.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-intro{max-width:760px!important;margin:4px auto 22px!important;padding:0 16px!important;text-align:center!important}
body.ms-h2h-active .ms-h2h-intro h1{color:#12233f!important;font-size:clamp(1.35rem,2.4vw,1.82rem)!important;font-weight:950!important;letter-spacing:-.025em!important;line-height:1.05!important;margin:0 0 8px!important;text-wrap:balance!important}
body.ms-h2h-active .ms-h2h-intro p{color:#5a6980!important;font-size:.78rem!important;font-weight:650!important;line-height:1.5!important;margin:0 auto!important;max-width:660px!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-intro h1{color:#f7f9fc!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-intro p{color:#b9c5d4!important}
@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-intro{margin:2px auto 18px!important;padding:0 12px!important}
  body.ms-h2h-active .ms-h2h-intro h1{font-size:1.2rem!important;margin-bottom:7px!important}
  body.ms-h2h-active .ms-h2h-intro p{font-size:.7rem!important;line-height:1.42!important;max-width:320px!important}
  html body.ms-h2h-active .ms-h2h-form .ms-h2h-matchup-picker{width:100%!important;max-width:100%!important;margin:0 auto!important;padding:0!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;max-width:320px!important;margin:0 auto!important;gap:9px!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup > :nth-child(1){order:1!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup > :nth-child(2){order:2!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup > :nth-child(3){order:3!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-team-panel{width:100%!important;max-width:320px!important;margin:0 auto!important;padding:0!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup .ms-h2h-team-picker,
  html body.ms-h2h-active .ms-h2h-modern-matchup .ms-h2h-team-picker-button{width:100%!important;max-width:320px!important;margin:0 auto!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup .ms-h2h-team-picker-button{min-height:46px!important;border-radius:13px!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-vs-stack{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:320px!important;height:auto!important;min-width:0!important;margin:0 auto!important;padding:0!important;gap:0!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-vs-stack .ms-h2h-vs{display:none!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-vs-stack .ms-h2h-swap{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0 auto!important;height:50px!important;width:50px!important}
}


/* ==========================================================================
   5.17.161 — MOBILE DEFINITIVO: Equipo 1 / SWAP / Equipo 2 + picker sin scroll.
   ========================================================================== */
@media(max-width:680px){
  /* Borra de raíz el viejo grid-area/display:contents de 5.17.302. */
  html body.ms-h2h-active .ms-h2h-modern-matchup{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    grid-template-areas:"team-one" "swap" "team-two"!important;
    align-items:center!important;
    justify-items:center!important;
    gap:9px!important;
    width:100%!important;
    max-width:320px!important;
    margin:0 auto!important;
  }
  html body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel{
    display:block!important;
    width:100%!important;
    max-width:320px!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    order:initial!important;
  }
  html body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel.is-team-one{grid-area:team-one!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel.is-team-two{grid-area:team-two!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel .ms-h2h-team-picker{
    grid-area:auto!important;
    width:100%!important;
    max-width:320px!important;
  }
  html body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-vs-stack{
    grid-area:swap!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:320px!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    order:initial!important;
  }
  html body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-vs-stack .ms-h2h-vs{display:none!important;grid-area:auto!important}
  html body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-vs-stack .ms-h2h-swap{
    grid-area:auto!important;
    display:inline-flex!important;
    margin:0 auto!important;
    align-self:center!important;
  }

  /* Clásicos: dos pares por fila, compactos, sin un solo píxel horizontal sobrante. */
  html body.ms-h2h-active .ms-h2h-classic-picker-popover{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:4px!important;
    row-gap:5px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:6px 5px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-x:none!important;
  }
  html body.ms-h2h-active .ms-h2h-classic-picker-option{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:24px 12px 24px!important;
    justify-content:center!important;
    justify-items:center!important;
    align-items:center!important;
    gap:3px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    padding:3px 2px!important;
    overflow:hidden!important;
  }
  html body.ms-h2h-active .ms-h2h-classic-picker-option>span{height:24px!important;width:24px!important;min-width:0!important}
  html body.ms-h2h-active .ms-h2h-classic-picker-option .ms-crest,
  html body.ms-h2h-active .ms-h2h-classic-picker-option .ms-crest-fallback{height:23px!important;max-width:23px!important;width:23px!important}
  html body.ms-h2h-active .ms-h2h-classic-picker-option>b{font-size:.8rem!important;min-width:0!important;width:12px!important;padding:0!important}
  html body.ms-h2h-active .ms-h2h-classic-picker-option.is-featured{
    grid-column:1 / -1!important;
    justify-self:center!important;
    width:min(164px,100%)!important;
  }
}

/* 5.17.161 — Inglaterra/España: el clásico principal ocupa una fila completa. */
body.ms-h2h-active .ms-h2h-classic-picker-option.is-featured{
  grid-column:1 / -1!important;
  justify-self:center!important;
  width:min(176px,100%)!important;
}


/* 5.17.162 — mirror del fix móvil definitivo. */
.ms-h2h-classic-picker-popover[hidden]{display:none!important;visibility:hidden!important}
@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-modern-matchup,
  .ms-h2h-modern-matchup{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;width:100%!important;max-width:320px!important;margin:0 auto!important;grid-template:none!important;grid-template-areas:none!important}
  body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-team-panel,
  .ms-h2h-modern-matchup > .ms-h2h-team-panel{display:block!important;flex:0 0 auto!important;width:100%!important;max-width:320px!important;margin:0 auto!important;padding:0!important;grid-area:auto!important;order:initial!important}
  body.ms-h2h-active .ms-h2h-modern-matchup > .ms-h2h-vs-stack,
  .ms-h2h-modern-matchup > .ms-h2h-vs-stack{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;margin:0 auto!important;padding:0!important;grid-area:auto!important;order:initial!important}
  .ms-h2h-modern-matchup > .ms-h2h-vs-stack .ms-h2h-vs{display:none!important}
  .ms-h2h-modern-matchup > .ms-h2h-vs-stack .ms-h2h-swap{display:inline-flex!important;margin:0 auto!important}
  .ms-h2h-team-panel .ms-h2h-team-picker{grid-area:auto!important;width:100%!important}
  .ms-h2h-team-panel .ms-h2h-team-preview{display:none!important}
}


/* 5.17.163 — swap oculto hasta que existan dos equipos válidos. */
body.ms-h2h-active .ms-h2h-swap[hidden],
body.ms-h2h-active .ms-h2h-swap:disabled[hidden]{display:none!important}
body.ms-h2h-active .ms-h2h-vs-stack:has(.ms-h2h-swap[hidden]){display:none!important;width:0!important;min-width:0!important;margin:0!important;padding:0!important;gap:0!important}


/* ==========================================================================
   5.17.164 — mirror del swap gate refinado.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-modern-matchup{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:10px!important}
body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel.is-team-one{grid-column:1!important;width:100%!important}
body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-vs-stack{grid-column:2!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:62px!important;width:auto!important;margin:0 auto!important;gap:6px!important}
body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel.is-team-two{grid-column:3!important;width:100%!important}
body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel .ms-h2h-team-picker,
body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel .ms-h2h-team-picker-button{width:100%!important}
body.ms-h2h-active .ms-h2h-vs-stack:has(.ms-h2h-swap[hidden]){display:flex!important;width:auto!important;min-width:62px!important;margin:0 auto!important;padding:0!important;gap:6px!important}
body.ms-h2h-active .ms-h2h-vs-stack:has(.ms-h2h-swap[hidden]) .ms-h2h-vs{display:inline-flex!important}
body.ms-h2h-active .ms-h2h-vs-stack:has(.ms-h2h-swap[hidden]) .ms-h2h-swap{display:none!important}
body.ms-h2h-active .ms-h2h-vs-stack:not(:has(.ms-h2h-swap[hidden])) .ms-h2h-vs{display:none!important}
body.ms-h2h-active .ms-h2h-vs-stack:not(:has(.ms-h2h-swap[hidden])) .ms-h2h-swap{display:inline-flex!important}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs{align-items:center!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#183b73!important;display:inline-flex!important;height:auto!important;justify-content:center!important;margin:0!important;min-height:0!important;padding:0!important;width:auto!important}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs::before,
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs::after{display:none!important;content:none!important}
body.ms-h2h-active .ms-h2h-form .ms-h2h-vs>b{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#183b73!important;font-size:.96rem!important;font-style:normal!important;font-weight:950!important;letter-spacing:.03em!important;line-height:1!important;padding:0!important;text-shadow:none!important}
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-form .ms-h2h-vs,
html[data-tessirve-color-mode="dark"] body.ms-h2h-active .ms-h2h-form .ms-h2h-vs>b{color:#f8fafc!important}
@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-modern-matchup{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important}
  body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel.is-team-one{order:1!important;width:100%!important}
  body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-vs-stack{order:2!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:62px!important;width:auto!important;margin:0 auto!important;gap:6px!important}
  body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel.is-team-two{order:3!important;width:100%!important}
  body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel .ms-h2h-team-picker,
  body.ms-h2h-active .ms-h2h-modern-matchup>.ms-h2h-team-panel .ms-h2h-team-picker-button{width:100%!important}
}


/* ==========================================================================
   5.17.165 — mirror H2H gate definitivo.
   ========================================================================== */
.ms-h2h-modern-matchup{display:grid!important;grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;width:100%!important;max-width:1050px!important;margin:0 auto!important}
.ms-h2h-modern-matchup>.ms-h2h-team-panel{display:block!important;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;grid-area:auto!important}
.ms-h2h-modern-matchup>.ms-h2h-team-panel.is-team-one{grid-column:1!important;grid-row:1!important}
.ms-h2h-modern-matchup>.ms-h2h-vs-stack{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:62px!important;min-width:62px!important;margin:0 auto!important;padding:0!important;gap:0!important}
.ms-h2h-modern-matchup>.ms-h2h-team-panel.is-team-two{grid-column:3!important;grid-row:1!important}
.ms-h2h-modern-matchup .ms-h2h-team-picker,.ms-h2h-modern-matchup .ms-h2h-team-picker-button{width:100%!important;max-width:none!important}
.ms-h2h-modern-matchup:not(.is-ready)>.ms-h2h-vs-stack .ms-h2h-vs{display:inline-flex!important}
.ms-h2h-modern-matchup:not(.is-ready)>.ms-h2h-vs-stack .ms-h2h-swap{display:none!important}
.ms-h2h-modern-matchup.is-ready>.ms-h2h-vs-stack .ms-h2h-vs{display:none!important}
.ms-h2h-modern-matchup.is-ready>.ms-h2h-vs-stack .ms-h2h-swap:not([hidden]){display:inline-flex!important}
.ms-h2h-swap[hidden]{display:none!important}
.ms-h2h-modern-matchup .ms-h2h-vs{align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;box-shadow:none!important;height:auto!important;min-height:0!important;width:auto!important;margin:0!important;padding:0!important;color:#173a6f!important}
.ms-h2h-modern-matchup .ms-h2h-vs::before,.ms-h2h-modern-matchup .ms-h2h-vs::after{content:none!important;display:none!important}
.ms-h2h-modern-matchup .ms-h2h-vs>b{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;color:#173a6f!important;font-size:.96rem!important;font-weight:950!important;line-height:1!important;letter-spacing:.03em!important}
html[data-tessirve-color-mode="dark"] .ms-h2h-modern-matchup .ms-h2h-vs,
html[data-tessirve-color-mode="dark"] .ms-h2h-modern-matchup .ms-h2h-vs>b{color:#f8fafc!important}
@media(max-width:680px){
  .ms-h2h-modern-matchup{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;max-width:320px!important;margin:0 auto!important}
  .ms-h2h-modern-matchup>.ms-h2h-team-panel.is-team-one{order:1!important;width:100%!important}
  .ms-h2h-modern-matchup>.ms-h2h-vs-stack{order:2!important;width:62px!important;min-width:62px!important;margin:0 auto!important}
  .ms-h2h-modern-matchup>.ms-h2h-team-panel.is-team-two{order:3!important;width:100%!important}
}


/* ==========================================================================
   5.17.166 — corona H2H: misma altura con o sin título de clásico.
   ========================================================================== */
body.ms-h2h-active .ms-h2h-summary-card.ms-h2h-showcase-card,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-showcase-summary,
body.ms-h2h-active .ms-h2h-showcase-card .ms-h2h-summary-mini-teams{
  overflow:visible!important;
}
body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{
  top:-21px!important;
  width:30px!important;
  height:21px!important;
}
@media(max-width:680px){
  body.ms-h2h-active .ms-h2h-summary-team.is-leader>a::before{
    top:-20px!important;
    width:28px!important;
    height:20px!important;
  }
}

/* ========================================================================== 
   5.17.167 — MAIN ESTABLE + THEMES DE EQUIPO
   El Theme carga después del Core y esta sección es la autoridad visual final
   para la agenda principal (hoy / mañana / cualquier fecha elegida).
   ========================================================================== */

/* Nombres completos: nunca ellipsis. Si no entra, baja de renglón sin mover
   el eje del marcador ni achicar el escudo. */
.ms-home-today .ms-compact-scoreline .ms-compact-team-copy{
  box-sizing:border-box!important;
  height:auto!important;
  min-height:38px!important;
  min-width:0!important;
  overflow:visible!important;
  padding:0!important;
  justify-content:center!important;
}
.ms-home-today .ms-compact-scoreline .ms-compact-team-copy>strong{
  align-items:center!important;
  box-sizing:border-box!important;
  display:flex!important;
  height:auto!important;
  min-height:38px!important;
  min-width:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  width:100%!important;
}
.ms-home-today .ms-compact-scoreline .ms-compact-team-name{
  display:block!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
  overflow-wrap:normal!important;
  text-overflow:clip!important;
  white-space:normal!important;
  word-break:normal!important;
  -webkit-box-orient:initial!important;
  -webkit-line-clamp:unset!important;
}
.ms-home-today .ms-compact-scoreline>span.is-home .ms-compact-team-copy,
.ms-home-today .ms-compact-scoreline>span.is-home .ms-compact-team-copy>strong,
.ms-home-today .ms-compact-scoreline>span.is-home .ms-compact-team-name{text-align:right!important;justify-content:flex-end!important}
.ms-home-today .ms-compact-scoreline>span.is-away .ms-compact-team-copy,
.ms-home-today .ms-compact-scoreline>span.is-away .ms-compact-team-copy>strong,
.ms-home-today .ms-compact-scoreline>span.is-away .ms-compact-team-name{text-align:left!important;justify-content:flex-start!important}

/* Escudos: recuperan presencia sin ensanchar el centro. */
@media(min-width:681px){
  .ms-home-today .ms-compact-scoreline,
  .ms-home-today .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    align-items:start!important;
    column-gap:10px!important;
    grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr)!important;
  }
  .ms-home-today .ms-compact-scoreline>span.is-home{
    column-gap:7px!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
    grid-template-rows:auto auto!important;
  }
  .ms-home-today .ms-compact-scoreline>span.is-away{
    column-gap:7px!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
  }
  .ms-home-today .ms-compact-crest-wrap{
    align-items:center!important;
    display:flex!important;
    height:42px!important;
    justify-content:center!important;
    min-height:42px!important;
    min-width:42px!important;
    padding:0!important;
    transform:none!important;
    width:42px!important;
  }
  .ms-home-today .ms-compact-crest-wrap :is(img,.ms-crest,.ms-crest-fallback){
    display:block!important;
    height:36px!important;
    max-height:36px!important;
    max-width:36px!important;
    object-fit:contain!important;
    width:36px!important;
  }
  .ms-home-today .ms-compact-center,
  .ms-home-today .ms-compact-center.has-red-cards{min-width:92px!important;width:92px!important}
}

@media(max-width:680px){
  .ms-home-today .ms-compact-scoreline,
  .ms-home-today .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    align-items:start!important;
    column-gap:4px!important;
    grid-template-columns:minmax(0,1fr) 66px minmax(0,1fr)!important;
    min-height:36px!important;
  }
  .ms-home-today .ms-compact-scoreline>span.is-home{
    align-items:start!important;
    column-gap:4px!important;
    grid-template-columns:minmax(0,1fr) 36px!important;
    grid-template-rows:auto auto!important;
  }
  .ms-home-today .ms-compact-scoreline>span.is-away{
    align-items:start!important;
    column-gap:4px!important;
    grid-template-columns:36px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
  }
  .ms-home-today .ms-compact-scoreline .ms-compact-team-copy,
  .ms-home-today .ms-compact-scoreline .ms-compact-team-copy>strong{
    min-height:34px!important;
  }
  .ms-home-today .ms-compact-scoreline .ms-compact-team-copy>strong,
  .ms-home-today .ms-compact-scoreline .ms-compact-team-name{
    font-size:calc(.68rem + 2px)!important;
    line-height:1.08!important;
  }
  .ms-home-today .ms-compact-crest-wrap{
    align-items:center!important;
    box-sizing:border-box!important;
    display:flex!important;
    height:36px!important;
    justify-content:center!important;
    min-height:36px!important;
    min-width:36px!important;
    padding:0!important;
    transform:none!important;
    width:36px!important;
  }
  .ms-home-today .ms-compact-crest-wrap :is(img,.ms-crest,.ms-crest-fallback){
    display:block!important;
    height:32px!important;
    max-height:32px!important;
    max-width:32px!important;
    object-fit:contain!important;
    width:32px!important;
  }
  .ms-home-today .ms-compact-center,
  .ms-home-today .ms-compact-center.has-red-cards{min-width:66px!important;width:66px!important}
  .ms-home-today .ms-compact-center-stack{min-width:58px!important;width:58px!important}
}

/* El escudo/imagen de identidad vuelve a ser parte visible del theme seleccionado. */
body.has-team-background-crest .ms-site-main{isolation:isolate!important;overflow:visible!important;position:relative!important}
body.has-team-background-crest .ms-site-main::before{
  background-image:var(--ms-team-background-crest,none)!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:contain!important;
  content:""!important;
  display:block!important;
  height:clamp(210px,24vw,340px)!important;
  opacity:.065!important;
  pointer-events:none!important;
  position:absolute!important;
  right:clamp(-34px,1vw,18px)!important;
  top:clamp(18px,3vw,46px)!important;
  transform:rotate(-5deg)!important;
  width:clamp(210px,24vw,340px)!important;
  z-index:0!important;
}
body.has-team-background-crest .ms-site-main>*{position:relative!important;z-index:1!important}
html[data-tessirve-color-mode="dark"] body.has-team-background-crest .ms-site-main::before{filter:brightness(1.22) saturate(.92)!important;opacity:.075!important}
@media(max-width:680px){
  body.has-team-background-crest .ms-site-main::before{
    height:185px!important;
    opacity:.055!important;
    right:-28px!important;
    top:18px!important;
    width:185px!important;
  }
  html[data-tessirve-color-mode="dark"] body.has-team-background-crest .ms-site-main::before{opacity:.065!important}
}

/* ========================================================================== 
   5.17.168 — WATERMARK COMPLETO + ESCUDOS MAIN MOBILE +15%
   ========================================================================== */

/* Theme de equipo: el watermark no puede quedar cortado por el borde derecho.
   Se corre hacia adentro conservando la imagen completa y el efecto de fondo. */
body.has-team-background-crest .ms-site-main::before{
  right:clamp(28px,4vw,72px)!important;
  background-position:center!important;
  background-size:contain!important;
  transform:rotate(-5deg)!important;
}

/* Main móvil: +15% real sobre los 32px de 5.17.167 = 36.8px.
   Redondeamos a 37px y ampliamos sólo el carril del escudo para no deformarlo. */
@media(max-width:680px){
  .ms-home-today .ms-compact-scoreline>span.is-home{
    grid-template-columns:minmax(0,1fr) 41px!important;
  }
  .ms-home-today .ms-compact-scoreline>span.is-away{
    grid-template-columns:41px minmax(0,1fr)!important;
  }
  .ms-home-today .ms-compact-crest-wrap{
    height:41px!important;
    min-height:41px!important;
    min-width:41px!important;
    width:41px!important;
  }
  .ms-home-today .ms-compact-crest-wrap :is(img,.ms-crest,.ms-crest-fallback){
    height:37px!important;
    max-height:37px!important;
    max-width:37px!important;
    width:37px!important;
  }
  body.has-team-background-crest .ms-site-main::before{
    right:18px!important;
  }
}


/* ==========================================================================
   5.17.170 — FIX REAL: WATERMARK + HOVER MAIN + ESCUDOS MOBILE
   Este bloque está en theme-dynamic.css, que es el CSS realmente encolado.
   ========================================================================== */

/* 1) Watermark: alineado con el borde derecho del contenido de 980px.
      Así queda ENTERO y no flotando medio afuera de la grilla. */
@media (min-width:681px){
  body.tessirve-theme.has-team-background-crest .ms-site-main::before{
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:contain!important;
    height:clamp(185px,19vw,245px)!important;
    width:clamp(185px,19vw,245px)!important;
    right:max(70px,calc((100% - 980px)/2 + 70px))!important;
    left:auto!important;
    top:22px!important;
    opacity:.058!important;
    transform:rotate(-4deg)!important;
  }
  html[data-tessirve-color-mode="dark"] body.tessirve-theme.has-team-background-crest .ms-site-main::before{
    opacity:.068!important;
  }
}
@media (max-width:680px){
  body.tessirve-theme.has-team-background-crest .ms-site-main::before{
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:contain!important;
    height:150px!important;
    width:150px!important;
    right:14px!important;
    left:auto!important;
    top:16px!important;
    opacity:.052!important;
    transform:rotate(-4deg)!important;
  }
  html[data-tessirve-color-mode="dark"] body.tessirve-theme.has-team-background-crest .ms-site-main::before{
    opacity:.062!important;
  }
}

/* 2) Main: pasar el mouse NO cambia ni lava el fondo de un partido normal. */
body.tessirve-theme .ms-home-today .ms-compact-match:not(.is-classic-match):hover,
body.tessirve-theme .ms-match-groups.is-competition-fixture .ms-compact-match:not(.is-classic-match):hover{
  background:var(--ms-card,#fff)!important;
  box-shadow:none!important;
  filter:none!important;
}

/* 3) Main móvil: tamaño efectivo +15%. Se pisa también la regla del Core
      que llevaba el wrapper hasta 16px en <=560px. */
@media (max-width:680px){
  body.tessirve-theme .ms-home-today .ms-compact-scoreline,
  body.tessirve-theme .ms-home-today .ms-compact-scoreline:has(.ms-compact-center.has-red-cards){
    grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr)!important;
    column-gap:4px!important;
  }

  body.tessirve-theme .ms-home-today .ms-compact-scoreline>span.is-home{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
    column-gap:4px!important;
    min-width:0!important;
    width:100%!important;
  }
  body.tessirve-theme .ms-home-today .ms-compact-scoreline>span.is-away{
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    column-gap:4px!important;
    min-width:0!important;
    width:100%!important;
  }

  body.tessirve-theme .ms-home-today .ms-compact-crest-wrap{
    align-self:center!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex:0 0 42px!important;
    height:42px!important;
    justify-content:center!important;
    min-height:42px!important;
    min-width:42px!important;
    position:static!important;
    transform:none!important;
    width:42px!important;
  }

  body.tessirve-theme .ms-home-today .ms-compact-crest-wrap :is(img,.ms-crest,.ms-crest-fallback),
  body.tessirve-theme .ms-home-today .ms-compact-scoreline img.ms-crest,
  body.tessirve-theme .ms-home-today .ms-compact-scoreline .ms-crest,
  body.tessirve-theme .ms-home-today .ms-compact-scoreline .ms-crest-fallback{
    display:block!important;
    flex:0 0 37px!important;
    height:37px!important;
    max-height:37px!important;
    max-width:37px!important;
    object-fit:contain!important;
    width:37px!important;
  }

  body.tessirve-theme .ms-home-today .ms-compact-team-copy,
  body.tessirve-theme .ms-home-today .ms-compact-team-copy>strong,
  body.tessirve-theme .ms-home-today .ms-compact-team-name{
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:normal!important;
    word-break:normal!important;
    -webkit-line-clamp:unset!important;
  }
}


/* ==========================================================================
   5.17.171 — WATERMARK DESKTOP FUERA DE LAS TARJETAS
   Mobile del Main NO se toca: mantiene escudos y alineación de 5.17.170.
   ========================================================================== */

/* Desktop ancho: el escudo fantasma vive en el aire libre a la derecha
   de la agenda. No pisa cards ni selector de fecha. */
@media (min-width:1180px){
  body.tessirve-theme.has-team-background-crest .ms-site-main::before{
    height:clamp(180px,15vw,225px)!important;
    width:clamp(180px,15vw,225px)!important;
    left:auto!important;
    right:clamp(34px,7vw,110px)!important;
    top:34px!important;
    opacity:.058!important;
    transform:rotate(-4deg)!important;
  }
  html[data-tessirve-color-mode="dark"] body.tessirve-theme.has-team-background-crest .ms-site-main::before{
    opacity:.068!important;
  }
}

/* Entre tablet y desktop angosto no hay espacio lateral suficiente:
   se conserva una posición interna segura, sin alterar mobile <=680. */
@media (min-width:681px) and (max-width:1179px){
  body.tessirve-theme.has-team-background-crest .ms-site-main::before{
    height:165px!important;
    width:165px!important;
    left:auto!important;
    right:18px!important;
    top:20px!important;
    opacity:.045!important;
    transform:rotate(-4deg)!important;
  }
}


/* ==========================================================================
   5.17.172 — WATERMARK ANCLADO AL BORDE DERECHO REAL DE LA AGENDA
   NO TOCAR MOBILE: conserva exactamente 5.17.170/171.
   ========================================================================== */

@media (min-width:761px){

  /* En HOME se apaga el watermark viejo anclado a todo el <main>.
     Ese era el problema: no sabía dónde terminaba la agenda del 80%. */
  body.tessirve-theme.home.has-team-background-crest .ms-site-main::before,
  body.tessirve-theme:has(.ms-home-today).has-team-background-crest .ms-site-main::before{
    content:none!important;
    display:none!important;
  }

  /* La agenda es el nuevo sistema de coordenadas. */
  body.tessirve-theme.has-team-background-crest .ms-home-today{
    overflow:visible!important;
    position:relative!important;
    isolation:isolate!important;
  }

  /* Los bloques y el selector miden 80% y están centrados.
     Por eso su borde derecho está en 90% del ancho de .ms-home-today.
     El escudo empieza DESPUÉS de ese 90%, nunca encima de las tarjetas. */
  body.tessirve-theme.has-team-background-crest .ms-home-today::after{
    background-image:var(--ms-team-background-crest,none)!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:contain!important;
    content:""!important;
    display:block!important;
    height:190px!important;
    left:calc(90% + 22px)!important;
    opacity:.06!important;
    pointer-events:none!important;
    position:absolute!important;
    top:18px!important;
    transform:rotate(-4deg)!important;
    width:190px!important;
    z-index:0!important;
  }

  body.tessirve-theme.has-team-background-crest .ms-home-today>*{
    position:relative;
    z-index:1;
  }

  html[data-tessirve-color-mode="dark"] body.tessirve-theme.has-team-background-crest .ms-home-today::after{
    filter:brightness(1.22) saturate(.92)!important;
    opacity:.07!important;
  }
}

/* Tablet/PC angosto: sigue afuera de la agenda; sólo baja un poco de tamaño
   para aprovechar el aire lateral disponible sin montarse en las cards. */
@media (min-width:761px) and (max-width:1100px){
  body.tessirve-theme.has-team-background-crest .ms-home-today::after{
    height:165px!important;
    width:165px!important;
    left:calc(90% + 16px)!important;
    top:20px!important;
  }
}


/* ==========================================================================
   5.17.173 — WATERMARK POR VIEWPORT: ENTERO EN EL AIRE DERECHO
   La coordenada horizontal deja de depender del ancho del main/home.
   Mobile <=760 NO se toca.
   ========================================================================== */

@media (min-width:761px){

  /* Apaga el intento de 5.17.172, que podía extender el dibujo fuera de su
     contenedor y terminar recortándolo. */
  body.tessirve-theme.has-team-background-crest .ms-home-today::after{
    content:none!important;
    display:none!important;
  }

  /* Recupera el pseudo del main, PERO su X se calcula con 100vw.
     Así siempre termina dentro del viewport y a la derecha de las cards,
     aunque .ms-site-main sea más angosto que la pantalla. */
  body.tessirve-theme.has-team-background-crest .ms-site-main::before,
  body.tessirve-theme.home.has-team-background-crest .ms-site-main::before,
  body.tessirve-theme:has(.ms-home-today).has-team-background-crest .ms-site-main::before{
    background-image:var(--ms-team-background-crest,none)!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:contain!important;
    content:""!important;
    display:block!important;
    height:180px!important;
    width:180px!important;
    left:calc(100vw - 210px)!important;
    right:auto!important;
    top:30px!important;
    opacity:.06!important;
    pointer-events:none!important;
    position:absolute!important;
    transform:rotate(-4deg)!important;
    z-index:0!important;
  }

  html[data-tessirve-color-mode="dark"] body.tessirve-theme.has-team-background-crest .ms-site-main::before{
    filter:brightness(1.22) saturate(.92)!important;
    opacity:.07!important;
  }
}

/* Desktop/tablet angosto: mismo criterio, sólo reduce el tamaño.
   Sigue usando viewport, por lo que jamás se corta por el ancho del main. */
@media (min-width:761px) and (max-width:1100px){
  body.tessirve-theme.has-team-background-crest .ms-site-main::before,
  body.tessirve-theme.home.has-team-background-crest .ms-site-main::before,
  body.tessirve-theme:has(.ms-home-today).has-team-background-crest .ms-site-main::before{
    height:150px!important;
    width:150px!important;
    left:calc(100vw - 170px)!important;
    top:28px!important;
  }
}


/* ==========================================================================
   5.17.174 — WATERMARK REAL (ELEMENTO DOM), NO MÁS PSEUDO-ELEMENTO EN DESKTOP
   ========================================================================== */

/* Desktop/tablet: mata TODOS los intentos previos de watermark en pseudo-elementos. */
@media (min-width:761px){
  body.has-team-background-crest .ms-site-main::before,
  body.tessirve-theme.has-team-background-crest .ms-site-main::before,
  body.tessirve-theme.home.has-team-background-crest .ms-site-main::before,
  body.tessirve-theme:has(.ms-home-today).has-team-background-crest .ms-site-main::before,
  body.tessirve-theme.has-team-background-crest .ms-home-today::after{
    content:none!important;
    display:none!important;
    background:none!important;
  }

  /* Elemento REAL, anclado al BODY/viewport documental.
     No depende del ancho de la agenda ni del main, por eso no puede recortarse
     por esos contenedores. */
  .ms-team-background-watermark{
    background-image:var(--ms-team-background-crest,none)!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:contain!important;
    display:none!important;
    height:180px!important;
    opacity:.072!important;
    pointer-events:none!important;
    position:absolute!important;
    right:28px!important;
    top:138px!important;
    transform:rotate(-4deg)!important;
    width:180px!important;
    z-index:2!important;
  }

  .ms-team-background-watermark.is-visible{
    display:block!important;
  }

  html[data-tessirve-color-mode="dark"] .ms-team-background-watermark.is-visible{
    filter:brightness(1.2) saturate(.92)!important;
    opacity:.082!important;
  }
}

/* Pantalla intermedia: sigue entero; sólo achica para entrar en el lateral. */
@media (min-width:761px) and (max-width:1100px){
  .ms-team-background-watermark{
    height:140px!important;
    right:18px!important;
    top:132px!important;
    width:140px!important;
  }
}

/* MOBILE NO SE TOCA: conserva 5.17.170+ (escudos 37px y alineación). */
@media (max-width:760px){
  .ms-team-background-watermark{display:none!important}
}


/* ==========================================================================
   5.17.175 — Watermark con más aire y ángulo en el lateral derecho
   ========================================================================== */
@media (min-width:761px){
  .ms-team-background-watermark{
    height:210px!important;
    width:210px!important;
    right:42px!important;
    top:108px!important;
    opacity:.064!important;
    transform:rotate(11deg)!important;
    transform-origin:center center!important;
    filter:saturate(.88)!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-team-background-watermark.is-visible{
    opacity:.074!important;
  }
}
@media (min-width:761px) and (max-width:1100px){
  .ms-team-background-watermark{
    height:165px!important;
    width:165px!important;
    right:18px!important;
    top:116px!important;
    transform:rotate(10deg)!important;
  }
}


/* ==========================================================================
   5.17.176 — Watermark más grande y un poco más abajo
   ========================================================================== */
@media (min-width:761px){
  .ms-team-background-watermark{
    height:250px!important;
    width:250px!important;
    right:40px!important;
    top:132px!important;
    opacity:.068!important;
    transform:rotate(11deg)!important;
    transform-origin:center center!important;
  }
  html[data-tessirve-color-mode="dark"] .ms-team-background-watermark.is-visible{
    opacity:.078!important;
  }
}
@media (min-width:761px) and (max-width:1100px){
  .ms-team-background-watermark{
    height:190px!important;
    width:190px!important;
    right:16px!important;
    top:138px!important;
    opacity:.064!important;
    transform:rotate(10deg)!important;
  }
}


/* ========================================================================
   5.17.177 — TV: logo real/imagen local en vez de texto dentro del badge
   ======================================================================== */
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge:has(.ms-broadcast-logo.has-image){
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  height:18px!important;
  min-width:0!important;
  padding:0 2px!important;
  overflow:visible!important;
}
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo.has-image{
  background:transparent!important;
  display:inline-flex!important;
  height:16px!important;
  max-width:48px!important;
  width:auto!important;
}
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo-img{
  display:block!important;
  height:16px!important;
  max-height:16px!important;
  max-width:48px!important;
  object-fit:contain!important;
  width:auto!important;
}
html[data-tessirve-color-mode="dark"] .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge:has(.ms-broadcast-logo.has-image){background:transparent!important;border:0!important}
@media(max-width:680px){
 .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge:has(.ms-broadcast-logo.has-image){height:16px!important;padding:0 1px!important}
 .ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo.has-image,
 .ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo-img{height:14px!important;max-height:14px!important;max-width:42px!important}
}


/* ========================================================================== 
   5.17.178 — mini logos TV reales: un cachín más chicos
   ========================================================================== */
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge:has(.ms-broadcast-logo.has-image){
  height:15px!important;
  min-height:15px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo.has-image,
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo-img{
  display:block!important;
  height:13px!important;
  max-height:13px!important;
  max-width:38px!important;
  object-fit:contain!important;
  width:auto!important;
}
@media(max-width:760px){
  .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge:has(.ms-broadcast-logo.has-image){height:13px!important;min-height:13px!important}
  .ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo.has-image,
  .ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo-img{height:11px!important;max-height:11px!important;max-width:34px!important}
}


/* ==========================================================================
   5.17.179 — HOTFIX TV EN DETALLE DE PARTIDO
   El SVG remoto nunca puede usar su tamaño intrínseco dentro del hero.
   ========================================================================== */

/* Freno de seguridad para CUALQUIER logo real de TV fuera del listado compacto. */
.ms-broadcasts.is-detailed{
  align-items:center!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  justify-content:center!important;
  margin:5px 0 0!important;
  max-width:100%!important;
}

.ms-broadcasts.is-detailed .ms-broadcast-badge{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  display:inline-flex!important;
  gap:0!important;
  height:20px!important;
  justify-content:center!important;
  max-width:76px!important;
  min-height:20px!important;
  min-width:0!important;
  overflow:hidden!important;
  padding:0!important;
}

.ms-broadcasts.is-detailed .ms-broadcast-badge::before,
.ms-broadcasts.is-detailed .ms-broadcast-badge::after{
  content:none!important;
  display:none!important;
}

.ms-broadcasts.is-detailed .ms-broadcast-logo.has-image{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  display:inline-flex!important;
  height:18px!important;
  justify-content:center!important;
  max-height:18px!important;
  max-width:64px!important;
  min-height:0!important;
  min-width:0!important;
  overflow:hidden!important;
  padding:0!important;
  width:auto!important;
}

.ms-broadcasts.is-detailed .ms-broadcast-logo-img{
  display:block!important;
  height:18px!important;
  max-height:18px!important;
  max-width:64px!important;
  min-height:0!important;
  object-fit:contain!important;
  object-position:center!important;
  width:auto!important;
}

/* Si ya hay logo real, no repetimos “ESPN Premium”, “TNT Sports”, etc. */
.ms-broadcasts.is-detailed .ms-broadcast-badge:has(.ms-broadcast-logo.has-image) .ms-broadcast-name{
  display:none!important;
}

/* Fallback textual: sólo cuando todavía no existe imagen mapeada. */
.ms-broadcasts.is-detailed .ms-broadcast-badge:not(:has(.ms-broadcast-logo.has-image)){
  background:color-mix(in srgb,var(--ms-card,#fff),var(--ms-blue,#1769e0) 5%)!important;
  border:1px solid var(--ms-line,#d0d5dd)!important;
  border-radius:6px!important;
  max-width:none!important;
  padding:2px 6px!important;
}
.ms-broadcasts.is-detailed .ms-broadcast-badge:not(:has(.ms-broadcast-logo.has-image)) .ms-broadcast-logo{
  display:none!important;
}
.ms-broadcasts.is-detailed .ms-broadcast-name{
  font-size:.64rem!important;
  font-weight:850!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* Reafirma que agenda/fixture sigue MINI, como ya estaba en 5.17.178. */
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo.has-image,
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo-img{
  height:13px!important;
  max-height:13px!important;
  max-width:38px!important;
  object-fit:contain!important;
  width:auto!important;
}

@media(max-width:760px){
  .ms-broadcasts.is-detailed .ms-broadcast-badge{
    height:18px!important;
    min-height:18px!important;
    max-width:66px!important;
  }
  .ms-broadcasts.is-detailed .ms-broadcast-logo.has-image,
  .ms-broadcasts.is-detailed .ms-broadcast-logo-img{
    height:16px!important;
    max-height:16px!important;
    max-width:56px!important;
  }

  .ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo.has-image,
  .ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo-img{
    height:11px!important;
    max-height:11px!important;
    max-width:34px!important;
  }
}


/* ==========================================================================
   5.17.180 — WORDPRESS ADMIN BAR / HEADER OFFSET REAL
   ========================================================================== */

/*
 * El theme anulaba el margin-top que WordPress agrega al <html>, pero dejaba
 * --ms-admin-offset y --ms-admin-space en 0. Resultado: el header fijo de
 * TESSIRVE se dibujaba DEBAJO de la admin bar y la primera fila quedaba tapada.
 *
 * Manejamos el offset nosotros para evitar doble espacio.
 */
body.tessirve-theme.admin-bar{
  --ms-admin-offset:32px!important;
  --ms-admin-space:32px!important;
}

/* La cabecera fija baja exactamente la altura de la toolbar. */
body.tessirve-theme.admin-bar .ms-site-header{
  top:32px!important;
}

/* La toolbar de WordPress siempre queda por encima del sitio. */
body.admin-bar #wpadminbar{
  position:fixed!important;
  top:0!important;
  z-index:999999!important;
}

/* WordPress usa 46px para la admin bar en viewport <=782px. */
@media(max-width:782px){
  body.tessirve-theme.admin-bar{
    --ms-admin-offset:46px!important;
    --ms-admin-space:46px!important;
  }
  body.tessirve-theme.admin-bar .ms-site-header{
    top:46px!important;
  }
}

/* Evita cualquier desplazamiento doble heredado del core de WordPress. */
html:has(body.tessirve-theme.admin-bar){
  margin-top:0!important;
}


/* ==========================================================================
   5.17.181 — CALENDARIO HOME PORTAL: NUNCA RECORTADO
   ========================================================================== */

/* Cuando Core lo porta a <body>, deja de depender del stacking context de la agenda. */
body > .ms-home-calendar-popover.is-portal-open{
  box-sizing:border-box!important;
  display:block!important;
  opacity:1!important;
  position:fixed!important;
  transform:none!important;
  transform-origin:center top!important;
  visibility:visible!important;
  z-index:2147483000!important;
}
body > .ms-home-calendar-popover.is-portal-open.opens-up{
  transform-origin:center bottom!important;
}

/* La navegación tampoco puede recortar nada mientras el portal se activa. */
.ms-home-today .ms-home-day-nav,
.ms-home-date-jump{
  overflow:visible!important;
}

/* Evita que los bloques de partidos compitan visualmente con el calendario. */
.ms-home-date-jump.is-open{z-index:2147482999!important}
.ms-home-date-jump.is-open .ms-home-date-trigger{position:relative!important;z-index:2!important}

/* Entrada suave del portal sin desplazar su coordenada calculada por JS. */
@keyframes msCalendarPortalIn{
  from{opacity:0;filter:blur(.4px)}
  to{opacity:1;filter:none}
}
body > .ms-home-calendar-popover.is-portal-open{
  animation:msCalendarPortalIn .14s ease both;
}


/* ==========================================================================
   5.17.182 — LPF PLAY REAL, MINI Y SIN "LPF" TEXTUAL
   ========================================================================== */

/* El asset real de LPF Play es cuadrado (perfil oficial de marca). El wrapper
   funciona como ventana y muestra la zona del wordmark LPF | PLAY. */
.ms-broadcast-logo.has-image.is-lpf-play{
  border-radius:2px!important;
  height:11px!important;
  max-height:11px!important;
  max-width:34px!important;
  overflow:hidden!important;
  position:relative!important;
  width:34px!important;
}
.ms-broadcast-logo.has-image.is-lpf-play .ms-broadcast-logo-img{
  height:34px!important;
  left:0!important;
  max-height:none!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:center!important;
  position:absolute!important;
  top:-11px!important;
  width:34px!important;
}

/* En detalle sigue siendo pequeño; no vuelve a explotar el hero. */
.ms-broadcasts.is-detailed .ms-broadcast-logo.has-image.is-lpf-play{
  height:14px!important;
  max-height:14px!important;
  max-width:44px!important;
  width:44px!important;
}
.ms-broadcasts.is-detailed .ms-broadcast-logo.has-image.is-lpf-play .ms-broadcast-logo-img{
  height:44px!important;
  top:-14px!important;
  width:44px!important;
}

@media(max-width:760px){
  .ms-broadcast-logo.has-image.is-lpf-play{
    height:10px!important;
    max-height:10px!important;
    max-width:31px!important;
    width:31px!important;
  }
  .ms-broadcast-logo.has-image.is-lpf-play .ms-broadcast-logo-img{
    height:31px!important;
    top:-10px!important;
    width:31px!important;
  }
}


/* ==========================================================================
   5.17.183 — HOME PROFESIONAL: CONTRASTE + SIN WATERMARK VIEJO + TV LIMPIA
   ========================================================================== */

/* BOLETEADO: el escudo/logo genérico viejo del modo Canchero no vuelve a
   dibujarse detrás del contenido. */
html[data-tessirve-theme="canchero"] body.has-canchero-watermark .ms-site-main::before{
  content:none!important;
  display:none!important;
  background:none!important;
}
html[data-tessirve-theme="canchero"] body.has-canchero-watermark{
  overflow-x:clip!important;
}

/* El césped puede quedar como identidad de fondo, pero las superficies útiles
   tienen contraste de aplicación real: tarjetas claras, texto oscuro. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today{
  --ms-ink:#101828!important;
  --ms-muted:#667085!important;
  --ms-line:#b8d8c6!important;
  color:#101828!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today :is(
  .ms-home-day-nav,
  .ms-match-group,
  .ms-home-calendar-popover
){
  background:rgba(255,255,255,.97)!important;
  border-color:#a8ceb9!important;
  color:#101828!important;
  box-shadow:0 5px 18px rgba(4,66,35,.08)!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today .ms-match-group-header{
  background:#f4faf6!important;
  border-color:#b8d8c6!important;
  color:#101828!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today .ms-compact-match{
  background:#fff!important;
  color:#101828!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today .ms-compact-match + .ms-compact-match{
  border-top-color:#c6ded0!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today :is(
  .ms-compact-team-name,
  .ms-compact-team-copy,
  .ms-compact-team-copy strong,
  .ms-compact-match-time,
  .ms-match-group-title,
  .ms-home-day-title
){
  color:#101828!important;
  text-shadow:none!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today :is(
  .ms-compact-venue,
  .ms-compact-match-meta,
  small
){
  color:#667085!important;
  text-shadow:none!important;
}

/* Selector de fecha: blanco real, texto legible, acento verde sólo en borde/iconos. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today :is(
  .ms-home-date-trigger,
  .ms-home-day-prev,
  .ms-home-day-next
){
  background:#fff!important;
  border-color:#74ba91!important;
  color:#123525!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today :is(
  .ms-home-date-trigger:hover,
  .ms-home-day-prev:hover,
  .ms-home-day-next:hover
){
  background:#eef8f2!important;
  color:#075b33!important;
}

/* TV: NUNCA badge/cuadradito inventado. Si hay imagen, sólo se ve la imagen.
   Si no existe imagen, texto limpio sin borde. */
.ms-broadcasts,
.ms-broadcasts .ms-broadcast-badge{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.ms-broadcasts .ms-broadcast-badge{
  border-radius:0!important;
  min-height:0!important;
  padding:0!important;
}
.ms-broadcasts .ms-broadcast-logo{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.ms-broadcasts .ms-broadcast-badge:not(:has(.ms-broadcast-logo.has-image)){
  background:transparent!important;
  border:0!important;
  color:currentColor!important;
  padding:0!important;
}

/* LPF Play: el Core usa el icono OFICIAL de la app. No se recorta como si fuera
   un wordmark: mini icono cuadrado real. */
.ms-broadcast-logo.has-image.is-lpf-play{
  border:0!important;
  border-radius:3px!important;
  height:13px!important;
  max-height:13px!important;
  max-width:13px!important;
  overflow:hidden!important;
  width:13px!important;
}
.ms-broadcast-logo.has-image.is-lpf-play .ms-broadcast-logo-img{
  display:block!important;
  height:13px!important;
  left:auto!important;
  max-height:13px!important;
  max-width:13px!important;
  object-fit:cover!important;
  object-position:center!important;
  position:static!important;
  top:auto!important;
  width:13px!important;
}

/* Todos los demás canales también un toque más chicos y sin caja. */
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo.has-image,
.ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo-img{
  height:12px!important;
  max-height:12px!important;
  max-width:35px!important;
}
.ms-compact-match-meta .ms-broadcasts{
  gap:3px!important;
}

/* En modo oscuro Canchero mantenemos contraste oscuro real: cards distintas
   al césped, no verde sobre verde. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-home-today :is(
  .ms-home-day-nav,
  .ms-match-group,
  .ms-home-calendar-popover
){
  background:#0f1d17!important;
  border-color:#527260!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-home-today .ms-match-group-header{
  background:#13271e!important;
  border-color:#527260!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-home-today .ms-compact-match{
  background:#101f18!important;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-home-today :is(
  .ms-home-date-trigger,.ms-home-day-prev,.ms-home-day-next
){
  background:#14251d!important;
  border-color:#638a70!important;
  color:#f5fff8!important;
}

@media(max-width:760px){
  .ms-broadcast-logo.has-image.is-lpf-play,
  .ms-broadcast-logo.has-image.is-lpf-play .ms-broadcast-logo-img{
    height:11px!important;
    max-height:11px!important;
    max-width:11px!important;
    width:11px!important;
  }
}


/* ==========================================================================
   5.17.184 — CANCHERO LIGHT: CONTRASTE EQUILIBRADO, SIN BLANCO QUEMADO
   Corrige el exceso de blanco de 5.17.183 y fuerza hora/estadio/fecha legibles.
   ========================================================================== */

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today{
  --ms-canchero-surface:#f3f8f5!important;
  --ms-canchero-surface-2:#eaf3ee!important;
  --ms-canchero-line:#9fc4ae!important;
  --ms-canchero-ink:#14231b!important;
  --ms-canchero-muted:#496457!important;
  --ms-canchero-head:#0b6842!important;
  --ms-canchero-head-2:#095c3a!important;
}

/* Navegación: clara pero no blanco puro; mantiene aire sobre el césped. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-home-day-nav{
  background:rgba(239,247,242,.97)!important;
  border:1px solid #82b99a!important;
  box-shadow:0 4px 14px rgba(3,74,43,.12)!important;
  color:var(--ms-canchero-ink)!important;
}

/* Grupo: una sola estética coherente. Header verde sólido + filas verde muy claro. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-groups>.ms-match-group{
  background:var(--ms-canchero-surface)!important;
  border:1px solid #82b99a!important;
  box-shadow:0 4px 14px rgba(3,74,43,.10)!important;
  color:var(--ms-canchero-ink)!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group-title{
  background:linear-gradient(180deg,var(--ms-canchero-head),var(--ms-canchero-head-2))!important;
  border-bottom:1px solid rgba(255,255,255,.28)!important;
  color:#fff!important;
  text-shadow:0 1px 1px rgba(0,0,0,.24)!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group-title :is(a,strong,b,span,small){
  color:#fff!important;
}

/* Filas: NO blanco puro. Hover apenas más oscuro, sin volver al verde saturado viejo. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match{
  background:var(--ms-canchero-surface)!important;
  border:0!important;
  color:var(--ms-canchero-ink)!important;
  text-shadow:none!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match+.ms-compact-match{
  border-top:1px solid #bfd7c9!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match:hover{
  background:#e8f2ec!important;
  box-shadow:none!important;
}

/* Tinta exacta: el renderer usa <time>, no .ms-compact-match-time.
   Esto corrige las horas prácticamente invisibles del screen. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match :is(
  a,strong,b,time,
  .ms-compact-team,
  .ms-compact-team-name,
  .ms-compact-team-copy,
  .ms-score,
  .ms-score span
){
  color:var(--ms-canchero-ink)!important;
  text-shadow:none!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match .ms-compact-match-meta time{
  color:#153a29!important;
  font-weight:900!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Estadio: gris-verde oscuro, no verde pastel sobre fondo claro. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match :is(
  small,
  .ms-compact-venue,
  .ms-compact-match-meta
){
  color:var(--ms-canchero-muted)!important;
  opacity:1!important;
  text-shadow:none!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-venue{
  color:#496457!important;
  font-weight:700!important;
}

/* No permitimos que reglas Canchero viejas conviertan meta/TV en badges verdes. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-compact-match-meta>.ms-broadcasts{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:inherit!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-broadcasts .ms-broadcast-badge,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-broadcasts .ms-broadcast-logo{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* Fecha central: texto oscuro SIEMPRE; el 03/10 no vuelve a quedar lavado. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-home-date-trigger{
  background:#eaf4ee!important;
  border:1px solid #65a984!important;
  color:#103d28!important;
  box-shadow:0 2px 7px rgba(3,74,43,.08)!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-home-date-trigger :is(strong,span,time){
  color:#103d28!important;
  opacity:1!important;
  text-shadow:none!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-home-date-trigger-chevron{
  color:#0b6842!important;
}

/* Flechas: quedan oscuras y claras de leer, sin mezclar blanco/blanco. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today :is(.ms-home-day-prev,.ms-home-day-next){
  background:#0b6842!important;
  border-color:#0b6842!important;
  color:#fff!important;
  box-shadow:none!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today :is(.ms-home-day-prev,.ms-home-day-next):hover{
  background:#084f33!important;
  border-color:#084f33!important;
  color:#fff!important;
}

/* El título de la página vive sobre césped: conserva blanco fuerte. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today>.ms-home-date-heading,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today>.ms-section-heading :is(h1,h2,strong){
  color:#fff!important;
  text-shadow:0 2px 4px rgba(0,0,0,.36)!important;
}

/* PROG. sigue azul semántico, pero el fondo claro no lo lava. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-status-chip.is-scheduled{
  background:#eef4ff!important;
  border-color:#84adff!important;
  color:#1849a9!important;
  text-shadow:none!important;
}

/* Mobile: mismas reglas; no cambia de paleta al achicar. */
@media(max-width:760px){
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
  .ms-home-today .ms-match-group .ms-compact-match{
    background:var(--ms-canchero-surface)!important;
  }
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
  .ms-home-today .ms-compact-match-meta time{
    color:#153a29!important;
    font-weight:900!important;
  }
}


/* ==========================================================================
   5.17.185 — HOME CANCHERO: CARDS DEL THEME, NO BLOQUES BLANCOS
   La competencia ya se ve bien; Home vuelve al lenguaje oscuro del theme.
   ========================================================================== */

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"] .ms-home-today{
  --ms-home-card:color-mix(in srgb,var(--theme-primary,#087443),#10251b 66%)!important;
  --ms-home-card-hover:color-mix(in srgb,var(--theme-primary,#087443),#10251b 58%)!important;
  --ms-home-card-head:color-mix(in srgb,var(--theme-primary,#087443),#071b12 48%)!important;
  --ms-home-card-line:color-mix(in srgb,var(--theme-primary,#087443),#d9f2e4 48%)!important;
  --ms-home-card-text:#f7fff9!important;
  --ms-home-card-muted:#c2dfcf!important;
}

/* Navegación arriba: integrada, no bloque blanco. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-home-day-nav{
  background:color-mix(in srgb,var(--theme-primary,#087443),#eef8f2 38%)!important;
  border-color:color-mix(in srgb,var(--theme-primary,#087443),#d8eadf 45%)!important;
  box-shadow:0 4px 15px rgba(0,35,20,.15)!important;
}

/* Cada competencia es una tarjeta oscura coherente con el theme. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-groups>.ms-match-group{
  background:var(--ms-home-card)!important;
  border:1px solid var(--ms-home-card-line)!important;
  box-shadow:0 4px 15px rgba(0,28,17,.16)!important;
  overflow:hidden!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group-title{
  background:var(--ms-home-card-head)!important;
  border-bottom:1px solid var(--ms-home-card-line)!important;
  color:var(--ms-home-card-text)!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group-title :is(a,strong,b,span,small){
  color:var(--ms-home-card-text)!important;
  text-shadow:none!important;
}

/* El cambio principal: NO MÁS FILAS BLANCAS. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match{
  background:var(--ms-home-card)!important;
  color:var(--ms-home-card-text)!important;
  box-shadow:none!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match+.ms-compact-match{
  border-top:1px solid var(--ms-home-card-line)!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match:hover{
  background:var(--ms-home-card-hover)!important;
  box-shadow:none!important;
}

/* Nombres, hora y marcador blancos/claros con contraste alto. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match :is(
  a,strong,b,time,
  .ms-compact-team,
  .ms-compact-team-name,
  .ms-compact-team-copy,
  .ms-compact-score-pill>b,
  .ms-compact-score-pill>span
){
  color:var(--ms-home-card-text)!important;
  text-shadow:none!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match .ms-compact-match-meta time{
  color:#fff!important;
  font-weight:950!important;
  opacity:1!important;
}

/* Estadio claramente secundario pero legible. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-group .ms-compact-match :is(
  small,.ms-compact-venue,.ms-compact-match-meta,.ms-compact-substatus
){
  color:var(--ms-home-card-muted)!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* PROG. conserva semántica azul y se separa del fondo oscuro. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-status-chip.is-scheduled{
  background:#edf4ff!important;
  border-color:#9ebcff!important;
  color:#174ea6!important;
}

/* TV sin borde/caja, inclusive si reglas viejas del theme intentan devolverlo. */
html[data-tessirve-theme="canchero"] .ms-home-today .ms-broadcasts,
html[data-tessirve-theme="canchero"] .ms-home-today .ms-broadcasts .ms-broadcast-badge,
html[data-tessirve-theme="canchero"] .ms-home-today .ms-broadcasts .ms-broadcast-logo{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  padding:0!important;
}

/* El fondo de césped queda atrás; no hay watermark/logo viejo. */
html[data-tessirve-theme="canchero"] body .ms-site-main::before,
html[data-tessirve-theme="canchero"] body.has-canchero-watermark .ms-site-main::before{
  content:none!important;
  display:none!important;
  background:none!important;
}

/* Evita filtros costosos en el Home: no blur/backdrop/filter en tarjetas. */
.ms-home-today .ms-home-day-nav,
.ms-home-today .ms-match-group,
.ms-home-today .ms-compact-match{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  filter:none!important;
}

@media(max-width:760px){
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
  .ms-home-today .ms-match-group .ms-compact-match{
    background:var(--ms-home-card)!important;
  }
}


/* ==========================================================================
   5.17.186 — BARRA DE FECHA = MISMO TONO QUE HEADER DE COMPETICIÓN
   ========================================================================== */

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-home-day-nav{
  background:var(--ms-home-card-head)!important;
  border-color:var(--ms-home-card-line)!important;
  box-shadow:0 4px 15px rgba(0,28,17,.16)!important;
}

/* El selector central ya no queda "pastel": se integra a la misma barra. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-home-date-trigger{
  background:var(--ms-home-card-head)!important;
  border-color:rgba(255,255,255,.34)!important;
  color:#fff!important;
  box-shadow:none!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-home-date-trigger :is(strong,span,time),
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-home-date-trigger-chevron{
  color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Flechas en el mismo lenguaje visual, apenas más oscuras para separarlas. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today :is(.ms-home-day-prev,.ms-home-day-next){
  background:color-mix(in srgb,var(--ms-home-card-head),#000 12%)!important;
  border-color:rgba(255,255,255,.30)!important;
  color:#fff!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today :is(.ms-home-day-prev,.ms-home-day-next):hover{
  background:color-mix(in srgb,var(--ms-home-card-head),#000 20%)!important;
  border-color:rgba(255,255,255,.42)!important;
  color:#fff!important;
}


/* ==========================================================================
   5.17.187 — MAIN / HOME LIGHT: CHIP "PROG." CON MUCHO MÁS CONTRASTE
   No toca modo oscuro. Sólo agenda principal/home en Canchero light.
   ========================================================================== */

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-status-chip.is-scheduled{
  background:linear-gradient(180deg,#f8fbff 0%, #dbe8ff 100%)!important;
  border:1px solid #5b8def!important;
  color:#0f3f97!important;
  box-shadow:0 1px 0 rgba(255,255,255,.55) inset, 0 1px 4px rgba(8,43,107,.18)!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  text-shadow:none!important;
  opacity:1!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-status-chip.is-scheduled :is(span,strong,b){
  color:#0f3f97!important;
  text-shadow:none!important;
  opacity:1!important;
}

/* Un pelín más de aire para que no parezca lavado entre score/estadio. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-status-chip.is-scheduled{
  min-height:22px!important;
  padding:2px 9px!important;
}

/* Si alguna variante usa data-status en vez de clase semántica. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-status-chip[data-status="scheduled"],
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
.ms-home-today .ms-match-status-chip[data-status="ns"]{
  background:linear-gradient(180deg,#f8fbff 0%, #dbe8ff 100%)!important;
  border:1px solid #5b8def!important;
  color:#0f3f97!important;
  box-shadow:0 1px 0 rgba(255,255,255,.55) inset, 0 1px 4px rgba(8,43,107,.18)!important;
  font-weight:900!important;
  text-shadow:none!important;
}

/* Mobile igual de legible. */
@media(max-width:760px){
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="light"]
  .ms-home-today .ms-match-status-chip.is-scheduled{
    min-height:21px!important;
    padding:2px 8px!important;
    font-size:11px!important;
  }
}


/* ==========================================================================
   5.17.188 — PROG. FIX REAL EN MODO CLARO/DEFAULT
   5.17.187 apuntaba sólo a [data-tessirve-color-mode="light"].
   En el modo claro por defecto ese atributo puede no existir, por eso Core
   seguía ganando con su chip Canchero verde pálido.
   ========================================================================== */

/* Claro explícito O claro por defecto (todo lo que NO sea dark). */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip.is-scheduled,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-scheduled{
  background:#e7f0ff!important;
  border:1px solid #5d8ee6!important;
  color:#103c8c!important;
  box-shadow:0 1px 3px rgba(8,47,115,.24)!important;
  font-weight:950!important;
  letter-spacing:.025em!important;
  opacity:1!important;
  text-shadow:none!important;
  min-height:21px!important;
  padding:2px 9px!important;
}

/* Por si el JS mete contenido interno. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip.is-scheduled :is(span,strong,b){
  color:#103c8c!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Hover de la fila no lava el estado. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-compact-match:hover .ms-match-status-chip.is-scheduled{
  background:#dce9ff!important;
  border-color:#467bd9!important;
  color:#0b347e!important;
}

/* El modo oscuro queda deliberadamente intacto. */


/* ==========================================================================
   5.17.189 — TODOS LOS ESTADOS CON CONTRASTE REAL EN HOME / CANCHERO CLARO
   PROG ya estaba bien. Ahora FINAL, LIVE/minuto, PEN y FINAL-PEN también.
   Modo oscuro queda intacto.
   ========================================================================== */

/* FINAL */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip.is-final,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-final{
  background:#ffe4df!important;
  border:1px solid #df7669!important;
  color:#7c241b!important;
  box-shadow:0 1px 3px rgba(124,36,27,.18)!important;
  font-weight:950!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* LIVE / minuto en curso (51', ET, etc.) */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip.is-live,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live{
  background:#dff7ec!important;
  border:1px solid #39a879!important;
  color:#075d3b!important;
  box-shadow:0 1px 3px rgba(7,93,59,.16)!important;
  font-weight:950!important;
  opacity:1!important;
  text-shadow:none!important;
  animation:none!important;
}

/* El cometa del borde no debe lavar un chip tan pequeño. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip.is-live::after,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-live::after{
  display:none!important;
  content:none!important;
  animation:none!important;
}

/* PEN en curso */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip.is-penalties,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-penalties{
  background:#fff0c7!important;
  border:1px solid #d89a24!important;
  color:#714400!important;
  box-shadow:0 1px 3px rgba(113,68,0,.16)!important;
  font-weight:950!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* FINAL por penales */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip.is-final-penalties,
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip[data-ms-live-status-label].is-final-penalties{
  background:#f8dfe7!important;
  border:1px solid #be7089!important;
  color:#681f39!important;
  box-shadow:0 1px 3px rgba(104,31,57,.16)!important;
  font-weight:950!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* STALE / pendiente de confirmar */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip.is-stale{
  background:#fff0c2!important;
  border:1px solid #cea33a!important;
  color:#684e00!important;
  box-shadow:0 1px 3px rgba(104,78,0,.14)!important;
  font-weight:950!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Tamaño/peso común para todos los estados del MAIN. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip{
  min-height:21px!important;
  padding:2px 8px!important;
  line-height:1!important;
}

/* Si el label vive en un nodo interno, hereda el contraste correcto. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip :is(span,strong,b){
  color:inherit!important;
  opacity:1!important;
  text-shadow:none!important;
}

@media(max-width:760px){
  html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
  .ms-home-today .ms-match-status-chip{
    min-height:20px!important;
    padding:2px 7px!important;
    font-size:10px!important;
  }
}


/* ==========================================================================
   5.17.190 — ESTADOS DEL MAIN +1pt
   PROG / ET / FINAL / minutos en juego: un punto más grandes.
   Sólo HOME/MAIN en Canchero no-dark. Modo oscuro intacto.
   ========================================================================== */

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip{
  font-size:12px!important;
}

@media(max-width:760px){
  html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
  .ms-home-today .ms-match-status-chip{
    font-size:11px!important;
  }
}


/* ==========================================================================
   5.17.191 — CANALES TV SIN RECUADROS EN NINGÚN MODO/THEME
   Quita badges, fondos, bordes, sombras y pseudo-elementos globalmente.
   La imagen/logo del canal queda sola. El fallback textual queda sin caja.
   ========================================================================== */

.ms-broadcasts,
.ms-broadcasts .ms-broadcast-badge,
.ms-broadcasts .ms-broadcast-logo,
.ms-broadcasts .ms-broadcast-logo.has-image{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}

.ms-broadcasts .ms-broadcast-badge{
  border-radius:0!important;
  min-height:0!important;
  min-width:0!important;
  overflow:visible!important;
  padding:0!important;
}

.ms-broadcasts .ms-broadcast-logo{
  border-radius:0!important;
  padding:0!important;
}

/* Algunos estilos viejos dibujaban la "chapita" con ::before / ::after. */
.ms-broadcasts .ms-broadcast-badge::before,
.ms-broadcasts .ms-broadcast-badge::after,
.ms-broadcasts .ms-broadcast-logo::before,
.ms-broadcasts .ms-broadcast-logo::after{
  content:none!important;
  display:none!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
}

/* La imagen misma tampoco recibe borde/sombra del modo oscuro. */
.ms-broadcasts .ms-broadcast-logo-img{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}

/* Fallback cuando todavía no hay logo mapeado: texto limpio, sin badge. */
.ms-broadcasts .ms-broadcast-badge:not(:has(.ms-broadcast-logo.has-image)){
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
}

/* Refuerzo específico para Canchero dark, que era donde todavía reaparecía. */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-broadcasts,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-broadcasts .ms-broadcast-badge,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-broadcasts .ms-broadcast-logo,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-broadcasts .ms-broadcast-logo-img{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}

/* También en detalle de partido: nada de chapita alrededor del canal. */
.ms-broadcasts.is-detailed .ms-broadcast-badge,
.ms-broadcasts.is-detailed .ms-broadcast-logo,
.ms-broadcasts.is-detailed .ms-broadcast-logo-img{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}


/* ==========================================================================
   5.17.192 — ESTADOS 0.5PT MENOS + TIPOGRAFÍA MÁS LIMPIA
   + TV SIN RECUADROS REALMENTE GLOBAL, INCLUSO DARK/MOBILE
   ========================================================================== */

/* Estados del MAIN/Home: medio punto menos que 5.17.190/191.
   Cambiamos a Segoe UI/system para que no se vea tan "gorda" ni arcade. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-match-status-chip{
  font-family:var(--ms-ui-font)!important;
  font-size:11.5px!important;
  font-weight:800!important;
  letter-spacing:.015em!important;
  line-height:1!important;
}

@media(max-width:760px){
  html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
  .ms-home-today .ms-match-status-chip{
    font-size:10.5px!important;
    font-weight:800!important;
  }
}

/* ==========================================================
   TV: override de ALTA especificidad.
   Había reglas históricas específicas por canal (TNT/ESPN/TyC/LPF...)
   que tenían más especificidad que el reset de 5.17.191.
   ========================================================== */

/* Wrapper / badge: jamás caja */
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge,
html body .ms-broadcasts.is-detailed .ms-broadcast-badge,
html[data-tessirve-color-mode="dark"] body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge,
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
  padding:0!important;
  min-height:0!important;
  min-width:0!important;
}

/* Canal con title específico: tampoco badge */
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title],
html[data-tessirve-color-mode="dark"] body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title]{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
  padding:0!important;
}

/* Logo interior: anula reglas viejas como TNT background:#141414 */
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="ESPN"] .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="TNT"] .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="TyC"] .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="TYC"] .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="DSPORTS"] .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="DSports"] .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="DIRECTV"] .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="FOX"] .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="Apple"] .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="LPF"] .ms-broadcast-logo,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge[title*="Liga Profesional"] .ms-broadcast-logo{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
}

/* Dark + mobile: refuerzo todavía más específico */
@media(max-width:760px){
  html[data-tessirve-color-mode="dark"] body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge,
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge,
  html[data-tessirve-color-mode="dark"] body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge .ms-broadcast-logo,
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge .ms-broadcast-logo{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    outline:0!important;
    padding:0!important;
  }
}

/* Pseudo-elementos viejos que podían reconstruir una chapita */
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge::before,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-badge::after,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo::before,
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo::after{
  content:none!important;
  display:none!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
}

/* La imagen real del canal queda sola. */
html body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo-img,
html[data-tessirve-color-mode="dark"] body .ms-compact-match-meta .ms-broadcasts .ms-broadcast-logo-img{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
}


/* ==========================================================================
   5.17.193 — ESTADOS MAIN: FUENTE REDONDEADA Y MÁS FINA
   Sólo cambia tipografía/tamaño de PROG, FINAL, ET, PEN, minutos, etc.
   ========================================================================== */

/* Selector deliberadamente fuerte y SIN excluir dark: debe verse igual de
   prolijo en PC y celular, claro u oscuro. */
html body .ms-home-today .ms-compact-match .ms-match-status-chip,
html body .ms-home-today .ms-compact-match .ms-match-status-chip[data-ms-live-status-label]{
  font-family:var(--ms-ui-font)!important;
  font-size:10.5px!important;
  font-style:normal!important;
  font-weight:700!important;
  letter-spacing:0!important;
  line-height:1!important;
  text-rendering:optimizeLegibility!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
  min-height:20px!important;
  padding:2px 8px!important;
}

/* En celular apenas más compacto; no vuelve a quedar microscópico. */
@media(max-width:760px){
  html body .ms-home-today .ms-compact-match .ms-match-status-chip,
  html body .ms-home-today .ms-compact-match .ms-match-status-chip[data-ms-live-status-label]{
    font-size:10px!important;
    font-weight:700!important;
    min-height:19px!important;
    padding:2px 7px!important;
  }
}

/* TV compacta 5.17.340: al no existir badge, dejamos el logo completamente desnudo. */
.ms-broadcasts.is-compact-clean{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  display:inline-flex!important;
  gap:3px!important;
  outline:0!important;
  padding:0!important;
}

.ms-broadcasts.is-compact-clean .ms-broadcast-logo,
.ms-broadcasts.is-compact-clean .ms-broadcast-logo.has-image,
.ms-broadcasts.is-compact-clean .ms-broadcast-logo-img{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
  padding:0!important;
}

@media(max-width:760px){
  html[data-tessirve-color-mode="dark"] .ms-broadcasts.is-compact-clean,
  html[data-tessirve-color-mode="dark"] .ms-broadcasts.is-compact-clean .ms-broadcast-logo,
  html[data-tessirve-color-mode="dark"] .ms-broadcasts.is-compact-clean .ms-broadcast-logo-img{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    outline:0!important;
    padding:0!important;
  }
}


/* ==========================================================================
   5.17.194 — ESTADOS: TREBUCHET REALMENTE VISIBLE + LPF PLAY WORDMARK
   ========================================================================== */

/* Trebuchet MS es estándar en Windows y tiene formas más redondeadas/suaves.
   La ponemos PRIMERA: Arial Rounded podía no existir y el fallback visual
   terminaba pareciéndose demasiado al estilo anterior. */
html body .ms-home-today .ms-compact-match .ms-match-status-chip,
html body .ms-home-today .ms-compact-match .ms-match-status-chip[data-ms-live-status-label]{
  font-family:var(--ms-ui-font)!important;
  font-size:10px!important;
  font-style:normal!important;
  font-weight:700!important;
  letter-spacing:-.01em!important;
  line-height:1!important;
  min-height:19px!important;
  padding:2px 7px!important;
  text-rendering:geometricPrecision!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
}

/* Mobile ya estaba bien de tamaño: sólo aseguramos la fuente nueva. */
@media(max-width:760px){
  html body .ms-home-today .ms-compact-match .ms-match-status-chip,
  html body .ms-home-today .ms-compact-match .ms-match-status-chip[data-ms-live-status-label]{
    font-family:var(--ms-ui-font)!important;
    font-size:10px!important;
    font-weight:700!important;
    min-height:19px!important;
    padding:2px 7px!important;
  }
}

/* LPF | PLAY: marca compacta, sin el horrible cuadrado de aplicación. */
.ms-broadcasts.is-compact-clean .ms-broadcast-wordmark.is-lpf-play,
.ms-broadcasts .ms-broadcast-wordmark.is-lpf-play{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:inline-flex!important;
  gap:2px!important;
  height:12px!important;
  line-height:1!important;
  outline:0!important;
  padding:0!important;
  white-space:nowrap!important;
}

.ms-broadcast-wordmark.is-lpf-play b,
.ms-broadcast-wordmark.is-lpf-play span{
  font-family:var(--ms-ui-font)!important;
  font-size:8px!important;
  font-style:normal!important;
  font-weight:900!important;
  letter-spacing:-.04em!important;
  line-height:1!important;
  text-shadow:none!important;
}

.ms-broadcast-wordmark.is-lpf-play b{
  color:#56c7ef!important;
}

.ms-broadcast-wordmark.is-lpf-play span{
  color:currentColor!important;
}

.ms-broadcast-wordmark.is-lpf-play i{
  background:currentColor!important;
  border:0!important;
  display:block!important;
  height:9px!important;
  opacity:.75!important;
  width:1px!important;
}

/* En cards oscuras, PLAY y divisor van blancos. */
html[data-tessirve-color-mode="dark"] .ms-broadcast-wordmark.is-lpf-play,
html[data-tessirve-theme="canchero"] .ms-home-today .ms-broadcast-wordmark.is-lpf-play{
  color:#fff!important;
}

/* En surfaces claras, PLAY/divisor oscuros. */
html:not([data-tessirve-color-mode="dark"]) .ms-broadcast-wordmark.is-lpf-play{
  color:#17324d!important;
}

/* Cero caja, también en celular dark. */
@media(max-width:760px){
  html[data-tessirve-color-mode="dark"] .ms-broadcasts.is-compact-clean .ms-broadcast-wordmark.is-lpf-play,
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] .ms-broadcasts.is-compact-clean .ms-broadcast-wordmark.is-lpf-play{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    outline:0!important;
  }
}


/* ==========================================================================
   5.17.195 — CALENDARIO PORTAL CON CONTRASTE REAL
   El calendario se porta a <body>, por eso los overrides anteriores bajo
   .ms-home-today NO le aplicaban. Estas reglas apuntan al nodo real.
   ========================================================================== */

/* CANCHERO CLARO / DEFAULT */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open{
  background:#eef6f1!important;
  border:1px solid #6ea98a!important;
  color:#173c2a!important;
  box-shadow:0 20px 50px rgba(0,45,26,.28)!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-popover-head{
  background:linear-gradient(180deg,#0b6842,#085b39)!important;
  color:#fff!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-weekdays span{
  color:#436957!important;
  opacity:1!important;
  font-weight:900!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day{
  color:#263c31!important;
  opacity:1!important;
  font-weight:850!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day.is-weekend:not(.is-selected){
  color:#178e5c!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day:not(.is-blank):hover{
  background:#d7ecdf!important;
  border-color:#8ec2a5!important;
  color:#0b5133!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day.is-selected{
  background:linear-gradient(180deg,#10a261,#07864d)!important;
  border-color:#07864d!important;
  color:#fff!important;
  box-shadow:0 5px 12px rgba(5,111,63,.30)!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-footer{
  border-top-color:#a9cdb9!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-footer button{
  color:#158354!important;
  font-weight:900!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-footer i{
  color:#437c60!important;
  opacity:1!important;
}

/* CANCHERO OSCURO */
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]
body > .ms-home-calendar-popover.is-portal-open{
  background:#101f18!important;
  border:1px solid #5f8e73!important;
  color:#f6fff9!important;
  box-shadow:0 22px 55px rgba(0,0,0,.55)!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-weekdays span{
  color:#a8c9b6!important;
  opacity:1!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day{
  color:#f2fff7!important;
  opacity:1!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day.is-weekend:not(.is-selected){
  color:#73d59f!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day:not(.is-blank):hover{
  background:#183425!important;
  border-color:#668e76!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-footer{
  border-top-color:#476957!important;
}

html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"]
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-footer button{
  color:#8fe0b1!important;
}

/* ==========================================================================
   5.17.195 — TV COMPACTA NUEVA: CERO CAJA POR CONSTRUCCIÓN
   ========================================================================== */

.ms-tv-clean{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  display:inline-flex!important;
  gap:3px!important;
  line-height:1!important;
  margin-left:4px!important;
  outline:0!important;
  padding:0!important;
  vertical-align:middle!important;
}

.ms-tv-logo-raw{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:block!important;
  height:12px!important;
  max-height:12px!important;
  max-width:35px!important;
  object-fit:contain!important;
  outline:0!important;
  padding:0!important;
  width:auto!important;
}

.ms-tv-text-raw{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:inherit!important;
  font-family:var(--ms-ui-font)!important;
  font-size:8px!important;
  font-weight:800!important;
  line-height:1!important;
  padding:0!important;
}

.ms-tv-wordmark.ms-tv-lpf{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:inherit!important;
  display:inline-flex!important;
  gap:2px!important;
  height:12px!important;
  line-height:1!important;
  outline:0!important;
  padding:0!important;
  white-space:nowrap!important;
}

.ms-tv-wordmark.ms-tv-lpf b,
.ms-tv-wordmark.ms-tv-lpf span{
  font-family:var(--ms-ui-font)!important;
  font-size:8px!important;
  font-weight:900!important;
  letter-spacing:-.04em!important;
  line-height:1!important;
}

.ms-tv-wordmark.ms-tv-lpf b{color:#56c7ef!important}
.ms-tv-wordmark.ms-tv-lpf i{
  background:currentColor!important;
  border:0!important;
  display:block!important;
  height:9px!important;
  opacity:.72!important;
  width:1px!important;
}

html[data-tessirve-theme="canchero"] .ms-home-today .ms-tv-wordmark.ms-tv-lpf{
  color:#fff!important;
}

@media(max-width:760px){
  .ms-tv-logo-raw{
    height:11px!important;
    max-height:11px!important;
    max-width:32px!important;
  }
  .ms-tv-clean{
    gap:2px!important;
    margin-left:3px!important;
  }
  .ms-tv-wordmark.ms-tv-lpf b,
  .ms-tv-wordmark.ms-tv-lpf span,
  .ms-tv-text-raw{
    font-size:7.5px!important;
  }
}


/* ==========================================================================
   5.17.196 — TV DEL MAIN: PEGADA A LA HORA Y SIN NINGÚN RECUADRO
   Corrige dos reglas históricas genéricas de .ms-compact-match-meta > span:
   1) mandaban la TV al extremo derecho;
   2) en Canchero le reconstruían fondo/borde aunque ms-tv-* fuera limpio.
   ========================================================================== */

/* MAIN: hora + TV forman una sola línea centrada. */
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-compact-match .ms-compact-match-meta{
  align-items:center!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  justify-content:center!important;
  position:relative!important;
  text-align:center!important;
  width:100%!important;
}

/* La hora deja de ocupar el 100%: así el canal puede quedar inmediatamente al lado. */
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-compact-match .ms-compact-match-meta>time{
  display:inline-block!important;
  flex:0 0 auto!important;
  margin:0!important;
  text-align:center!important;
  width:auto!important;
}

/* Esta es la corrección clave:
   ms-tv-clean NO es más "el span genérico de la derecha". */
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-compact-match .ms-compact-match-meta>.ms-tv-clean{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:inherit!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  gap:3px!important;
  height:auto!important;
  margin:0!important;
  min-height:0!important;
  min-width:0!important;
  outline:0!important;
  overflow:visible!important;
  padding:0!important;
  position:static!important;
  right:auto!important;
  top:auto!important;
  transform:none!important;
  vertical-align:middle!important;
  width:auto!important;
}

/* NINGÚN nivel interno puede dibujar una caja alrededor de la señal. */
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean,
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean>*,
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean .ms-tv-logo-raw,
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean .ms-tv-wordmark,
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean .ms-tv-text-raw{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
}

/* Si algún estilo viejo intenta dibujar algo por pseudo-elemento, también se anula. */
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean::before,
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean::after,
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean>*::before,
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean>*::after{
  background:none!important;
  border:0!important;
  box-shadow:none!important;
  content:none!important;
  display:none!important;
}

/* Imágenes de ESPN/TNT/etc.: sólo la imagen real, pequeña. */
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean .ms-tv-logo-raw{
  display:block!important;
  height:11px!important;
  max-height:11px!important;
  max-width:34px!important;
  object-fit:contain!important;
  padding:0!important;
  width:auto!important;
}

/* LPF | PLAY queda igual de limpio, sin cápsula. */
html[data-tessirve-theme="canchero"] body .ms-app
.ms-home-today .ms-tv-clean .ms-tv-wordmark.ms-tv-lpf{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:inline-flex!important;
  gap:2px!important;
  height:11px!important;
  padding:0!important;
}

/* Refuerzo específico para DARK + CELULAR, que era donde reaparecía la caja. */
@media(max-width:760px){
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body .ms-app
  .ms-home-today .ms-compact-match .ms-compact-match-meta{
    display:flex!important;
    gap:3px!important;
    justify-content:center!important;
  }

  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body .ms-app
  .ms-home-today .ms-compact-match .ms-compact-match-meta>.ms-tv-clean,
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body .ms-app
  .ms-home-today .ms-tv-clean,
  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body .ms-app
  .ms-home-today .ms-tv-clean>*{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    outline:0!important;
    padding:0!important;
    position:static!important;
    right:auto!important;
    top:auto!important;
    transform:none!important;
  }

  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body .ms-app
  .ms-home-today .ms-tv-clean .ms-tv-logo-raw{
    height:10px!important;
    max-height:10px!important;
    max-width:31px!important;
  }

  html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body .ms-app
  .ms-home-today .ms-tv-clean .ms-tv-wordmark.ms-tv-lpf{
    height:10px!important;
  }
}


/* ==========================================================================
   5.17.197 — GUTTER MÓVIL GLOBAL MÁS FINO Y CONSISTENTE
   Reduce sólo el aire exterior de las pantallas estándar.
   No toca padding interno de tarjetas, resultados, escudos ni headers.
   ========================================================================== */

@media(max-width:782px){
  :root{
    --ms-mobile-page-gutter:6px;
  }

  /* Todas las vistas estándar que usan .ms-app comparten EXACTAMENTE
     el mismo reborde lateral: Home, partido, equipo, rankings, estadios,
     competiciones, etc. */
  html body.tessirve-theme .ms-site-main>.ms-app,
  html body.tessirve-theme .ms-app.ms-competition-profile,
  html body.tessirve-theme .ms-app.ms-team-profile,
  html body.tessirve-theme .ms-app.ms-entity-profile{
    box-sizing:border-box!important;
    padding-left:var(--ms-mobile-page-gutter)!important;
    padding-right:var(--ms-mobile-page-gutter)!important;
  }

  /* Home: los bloques siguen ocupando el 100% del área útil;
     el único aire externo es ese gutter de 6px. */
  html body.tessirve-theme .ms-home-today,
  html body.tessirve-theme .ms-home-today .ms-home-day-nav,
  html body.tessirve-theme .ms-home-today .ms-match-groups{
    box-sizing:border-box!important;
    max-width:100%!important;
    width:100%!important;
  }
}


/* ==========================================================================
   5.17.198 — CALENDARIO CANCHERO INTEGRADO AL VERDE
   Mantiene contraste pero elimina el bloque gris/blanco que desentonaba.
   ========================================================================== */

/* Modo claro/default: el calendario pasa a una superficie verde suave,
   claramente separada del fondo, pero dentro de la misma paleta Canchero. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open{
  background:linear-gradient(180deg,#dcefe4 0%,#cfe6d8 100%)!important;
  border:1px solid #74aa8a!important;
  color:#173c2a!important;
  box-shadow:0 18px 44px rgba(0,45,26,.28)!important;
}

/* Cabezal más profundo, acorde a las barras de competencia/fecha. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-popover-head{
  background:linear-gradient(180deg,#0c6d45 0%,#085b39 100%)!important;
  border-bottom:1px solid rgba(255,255,255,.16)!important;
  color:#fff!important;
}

/* Días de semana: verde oscuro, visibles pero secundarios. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-weekdays span{
  color:#2d5b45!important;
  opacity:1!important;
  font-weight:900!important;
}

/* Días hábiles: oscuros y limpios. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day{
  color:#1d3b2d!important;
  opacity:1!important;
  font-weight:850!important;
}

/* Fin de semana: verde más vivo pero no fluorescente. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day.is-weekend:not(.is-selected){
  color:#178a57!important;
}

/* Hover integrado al fondo verde. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day:not(.is-blank):hover{
  background:#bfe0cb!important;
  border-color:#79b18f!important;
  color:#084b2d!important;
}

/* Día seleccionado: verde fuerte con blanco. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-day.is-selected{
  background:linear-gradient(180deg,#159e62 0%,#087f4b 100%)!important;
  border-color:#087f4b!important;
  color:#fff!important;
  box-shadow:0 5px 12px rgba(5,111,63,.30)!important;
}

/* Footer: misma paleta, sin volver al gris. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-footer{
  border-top:1px solid #9fc7ae!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-footer button{
  color:#0e7b4a!important;
  font-weight:900!important;
}

/* Flechas/estrella del header mantienen contraste sin cajitas grises. */
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-popover-head button{
  background:rgba(255,255,255,.08)!important;
  border-color:rgba(255,255,255,.28)!important;
  color:#fff!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
body > .ms-home-calendar-popover.is-portal-open .ms-home-calendar-popover-head button:hover{
  background:rgba(255,255,255,.15)!important;
  border-color:rgba(255,255,255,.42)!important;
}

/* Mobile: mismo verde, apenas más compacto visualmente. */
@media(max-width:760px){
  html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
  body > .ms-home-calendar-popover.is-portal-open{
    background:linear-gradient(180deg,#dcefe4 0%,#cfe6d8 100%)!important;
    border-color:#74aa8a!important;
  }
}


/* ==========================================================================
   5.17.199 — FECHA SELECCIONADA OSCURA EN CANCHERO
   El botón central de fecha deja de ser verde pálido.
   ========================================================================== */

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-home-date-trigger{
  background:linear-gradient(180deg,#0c6d45 0%,#085b39 100%)!important;
  border:1px solid #6fae8b!important;
  color:#fff!important;
  box-shadow:0 2px 8px rgba(0,43,25,.20)!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-home-date-trigger :is(strong,span,time),
html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-home-date-trigger-chevron{
  color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
}

html[data-tessirve-theme="canchero"]:not([data-tessirve-color-mode="dark"])
.ms-home-today .ms-home-date-trigger:hover{
  background:linear-gradient(180deg,#0a603d 0%,#074d31 100%)!important;
  border-color:#83bea0!important;
  color:#fff!important;
}


/* ==========================================================================
   5.17.200 — CANCHERO / HISTORIALES: CONTRASTE TOTAL + PICKERS LEGIBLES
   El H2H deja de heredar tarjetas blancas/pastel del tema base.
   ========================================================================== */

html[data-tessirve-theme="canchero"] body.ms-h2h-active{
  --ms-h2h-canchero-surface:#0d633e;
  --ms-h2h-canchero-surface-2:#0a5536;
  --ms-h2h-canchero-deep:#073f29;
  --ms-h2h-canchero-hover:#14794b;
  --ms-h2h-canchero-line:rgba(218,247,229,.34);
  --ms-h2h-canchero-ink:#f7fff9;
  --ms-h2h-canchero-muted:#c6e7d2;
}
html[data-tessirve-theme="canchero"][data-tessirve-color-mode="dark"] body.ms-h2h-active{
  --ms-h2h-canchero-surface:#0b4c31;
  --ms-h2h-canchero-surface-2:#083d29;
  --ms-h2h-canchero-deep:#052e20;
  --ms-h2h-canchero-hover:#116640;
  --ms-h2h-canchero-line:rgba(218,247,229,.27);
  --ms-h2h-canchero-ink:#f7fff9;
  --ms-h2h-canchero-muted:#bad8c5;
}

/* --------------------------------------------------------------------------
   Selector de clásico y selectores generales: nada blanco/pastel.
   -------------------------------------------------------------------------- */
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-picker-button,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-button,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-context-control,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-context-control select{
  background:linear-gradient(180deg,var(--ms-h2h-canchero-surface),var(--ms-h2h-canchero-surface-2))!important;
  border:1px solid var(--ms-h2h-canchero-line)!important;
  box-shadow:0 5px 14px rgba(0,35,21,.14)!important;
  color:var(--ms-h2h-canchero-ink)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-picker-button :is(b,strong,span,i),
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-button :is(b,strong,span,i),
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-context-control :is(b,strong,span,label){
  color:var(--ms-h2h-canchero-ink)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-caret{
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-context-control select option,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-native-classic-select option{
  background:#083d29!important;
  color:#fff!important;
}

/* --------------------------------------------------------------------------
   DESPLEGABLE DE EQUIPOS: fondo verde oscuro + nombres blancos REALES.
   Corrige el menú "todo blanco" donde no se leían los nombres.
   -------------------------------------------------------------------------- */
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-popover{
  background:linear-gradient(180deg,#0b5134,#073d29)!important;
  border:1px solid rgba(218,247,229,.38)!important;
  box-shadow:0 18px 38px rgba(0,28,17,.34)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-search input{
  background:#062f21!important;
  border:1px solid rgba(218,247,229,.28)!important;
  color:#fff!important;
  caret-color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-search input::placeholder{
  color:#a9cfb8!important;
  opacity:1!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-option{
  background:transparent!important;
  border:1px solid transparent!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-option:hover,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-option.is-search-best{
  background:#126f46!important;
  border-color:rgba(219,248,230,.28)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-option-copy>b,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-option>b{
  color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-option-copy>small{
  color:#b9ddc7!important;
  opacity:1!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-option-crest{
  background:rgba(255,255,255,.07)!important;
  border-color:rgba(255,255,255,.16)!important;
}

/* Selector de clásicos desplegado: misma lógica, cero tarjeta blanca. */
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-picker-popover{
  background:linear-gradient(180deg,#0b5134,#073d29)!important;
  border:1px solid rgba(218,247,229,.38)!important;
  box-shadow:0 18px 38px rgba(0,28,17,.34)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-picker-option{
  background:transparent!important;
  border:1px solid transparent!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-picker-option:hover,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-picker-option.is-featured:hover{
  background:#126f46!important;
  border-color:rgba(219,248,230,.28)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-picker-option>b{
  color:#fff!important;
}

/* --------------------------------------------------------------------------
   ÚLTIMA VICTORIA / MÁXIMA GOLEADA / GOLES:
   reemplaza las placas blancas/rosadas por superficies Canchero.
   -------------------------------------------------------------------------- */
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-side-card{
  border:1px solid var(--ms-h2h-canchero-line)!important;
  color:var(--ms-h2h-canchero-ink)!important;
  box-shadow:0 7px 16px rgba(0,38,23,.13)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-side-card.is-team-a{
  background:
    linear-gradient(135deg,
      color-mix(in srgb,var(--ms-h2h-team-a,#d71920) 22%,var(--ms-h2h-canchero-surface) 78%),
      var(--ms-h2h-canchero-surface-2))!important;
  box-shadow:inset 4px 0 0 color-mix(in srgb,var(--ms-h2h-team-a,#d71920) 72%,#fff 28%),0 7px 16px rgba(0,38,23,.13)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-side-card.is-team-b{
  background:
    linear-gradient(135deg,
      color-mix(in srgb,var(--ms-h2h-team-b,#175cd3) 22%,var(--ms-h2h-canchero-surface) 78%),
      var(--ms-h2h-canchero-surface-2))!important;
  box-shadow:inset -4px 0 0 color-mix(in srgb,var(--ms-h2h-team-b,#175cd3) 72%,#fff 28%),0 7px 16px rgba(0,38,23,.13)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-side-card :is(small,strong,b,span){
  color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-side-card em{
  color:var(--ms-h2h-canchero-muted)!important;
  opacity:1!important;
}

html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-goals-card{
  background:
    linear-gradient(90deg,
      color-mix(in srgb,var(--ms-h2h-team-a,#d71920) 14%,var(--ms-h2h-canchero-surface-2) 86%),
      var(--ms-h2h-canchero-deep) 48% 52%,
      color-mix(in srgb,var(--ms-h2h-team-b,#175cd3) 14%,var(--ms-h2h-canchero-surface-2) 86%))!important;
  border:1px solid var(--ms-h2h-canchero-line)!important;
  box-shadow:0 7px 16px rgba(0,38,23,.13)!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-goals-card>small{
  color:var(--ms-h2h-canchero-muted)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-goals-card .ms-h2h-goals :is(strong,i){
  color:#fff!important;
}

/* --------------------------------------------------------------------------
   DOMINIO POR DÉCADAS: se acabaron las tarjetas blancas con texto lavado.
   -------------------------------------------------------------------------- */
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decades{
  background:rgba(5,70,42,.78)!important;
  border:1px solid var(--ms-h2h-canchero-line)!important;
  box-shadow:0 8px 20px rgba(0,35,21,.10)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decades-title{
  color:#fff!important;
  text-shadow:none!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-totals>span{
  background:linear-gradient(180deg,var(--ms-h2h-canchero-surface),var(--ms-h2h-canchero-surface-2))!important;
  border:1px solid var(--ms-h2h-canchero-line)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-totals>span.is-team-a{
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--ms-h2h-team-a,#d71920) 74%,#fff 26%)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-totals>span.is-team-b{
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--ms-h2h-team-b,#175cd3) 74%,#fff 26%)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-totals :is(b,small){
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-totals small{
  color:var(--ms-h2h-canchero-muted)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-totals .is-tie i{
  background:#063a27!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#fff!important;
}

html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-card{
  background:linear-gradient(180deg,var(--ms-h2h-canchero-surface),var(--ms-h2h-canchero-surface-2))!important;
  border:1px solid var(--ms-h2h-canchero-line)!important;
  box-shadow:none!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-card>small{
  color:#ccebd7!important;
  opacity:1!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-leader>span,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-copy{
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-leader.is-tie i{
  background:#063a27!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#fff!important;
}
/* Empates ya no usan la pastilla blanca del Core. */
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-diff.is-level{
  background:#063a27!important;
  border-color:rgba(255,255,255,.20)!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-decade-diff.is-level :is(strong,small){
  color:#fff!important;
}

/* Hover de tarjetas enlazables: movimiento sutil, sin transformaciones raras. */
html[data-tessirve-theme="canchero"] body.ms-h2h-active a.ms-h2h-side-card:hover,
html[data-tessirve-theme="canchero"] body.ms-h2h-active a.ms-h2h-side-card:focus-visible{
  filter:brightness(1.08)!important;
  transform:none!important;
}

/* Scrollbar de los pickers acorde al verde. */
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-options::-webkit-scrollbar,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-picker-popover::-webkit-scrollbar{
  width:7px!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-options::-webkit-scrollbar-thumb,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-picker-popover::-webkit-scrollbar-thumb{
  background:#2b8b5b!important;
  border-radius:999px!important;
}
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-team-picker-options::-webkit-scrollbar-track,
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-classic-picker-popover::-webkit-scrollbar-track{
  background:#063a27!important;
}


/* ==========================================================================
   5.17.202 — CANCHERO / HISTORIALES: BAJADA BLANCA Y CON SOMBRA
   Mantiene exactamente el tamaño actual; sólo corrige color/contraste.
   ========================================================================== */
html[data-tessirve-theme="canchero"] body.ms-h2h-active .ms-h2h-intro p{
  color:#fff!important;
  opacity:1!important;
  text-shadow:0 1px 2px rgba(0,0,0,.34)!important;
}


/* ==========================================================================
   5.17.203 — ESCUDO DE FONDO = FONDO REAL, CERO LAYOUT SHIFT
   Se apagan TODOS los pseudo-watermarks viejos. Sólo vive el elemento DOM
   absoluto que crea theme.js; nunca ocupa espacio ni corre contenido.
   ========================================================================== */
body.has-team-background-crest .ms-site-main::before,
body.tessirve-theme.has-team-background-crest .ms-site-main::before,
body.tessirve-theme.home.has-team-background-crest .ms-site-main::before,
body.tessirve-theme:has(.ms-home-today).has-team-background-crest .ms-site-main::before,
body.tessirve-theme.has-team-background-crest .ms-home-today::after{
  content:none!important;
  display:none!important;
  background:none!important;
}

body.tessirve-theme .ms-team-background-watermark{
  background-image:var(--ms-team-background-crest,none)!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:contain!important;
  box-sizing:border-box!important;
  display:none!important;
  height:250px!important;
  margin:0!important;
  opacity:.065!important;
  padding:0!important;
  pointer-events:none!important;
  position:absolute!important;
  right:24px!important;
  top:128px!important;
  transform:rotate(10deg)!important;
  width:250px!important;
  z-index:0!important;
}
body.tessirve-theme .ms-team-background-watermark.is-visible{
  display:block!important;
}
body.tessirve-theme .ms-site-header,
body.tessirve-theme .ms-site-main,
body.tessirve-theme .ms-site-footer{
  position:relative;
  z-index:1;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-team-background-watermark.is-visible{
  filter:brightness(1.18) saturate(.92)!important;
  opacity:.075!important;
}

@media(max-width:760px){
  body.tessirve-theme .ms-team-background-watermark,
  body.tessirve-theme .ms-team-background-watermark.is-visible{
    display:block!important;
    height:170px!important;
    margin:0!important;
    opacity:.052!important;
    padding:0!important;
    position:absolute!important;
    right:-20px!important;
    top:126px!important;
    transform:rotate(9deg)!important;
    width:170px!important;
  }
  body.tessirve-theme:not(.has-team-background-crest) .ms-team-background-watermark{
    display:none!important;
  }
  html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-team-background-watermark.is-visible{
    opacity:.062!important;
  }
}

/* ==========================================================================
   5.17.203 — PERFIL SUTIL EN HEADER
   ========================================================================== */
.ms-community-desktop-entry{
  align-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  border-radius:10px;
  color:#fff!important;
  display:inline-flex;
  flex:0 0 auto;
  font-size:.68rem;
  font-weight:850;
  gap:6px;
  margin-left:7px;
  padding:7px 9px;
  text-decoration:none!important;
  white-space:nowrap;
}
.ms-community-desktop-entry:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.25);
}
.ms-community-user-dot{
  background:currentColor;
  border-radius:50%;
  height:6px;
  opacity:.72;
  width:6px;
}
.ms-community-mobile-entry{display:none}

@media(max-width:782px){
  .ms-community-desktop-entry{display:none!important}
  .ms-community-mobile-entry{
    align-items:center!important;
    background:rgba(255,255,255,.055)!important;
    border:1px solid rgba(255,255,255,.11)!important;
    border-radius:11px!important;
    display:grid!important;
    gap:7px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    margin:9px 0 2px!important;
    padding:6px!important;
  }
  .ms-community-mobile-main{
    align-items:center!important;
    color:#fff!important;
    display:flex!important;
    gap:9px!important;
    min-width:0!important;
    padding:5px 6px!important;
    text-decoration:none!important;
  }
  .ms-community-mobile-main>span:last-child{display:grid!important;gap:1px!important;min-width:0!important}
  .ms-community-mobile-main b{color:#fff!important;font-size:.72rem!important;line-height:1!important}
  .ms-community-mobile-main small{color:rgba(255,255,255,.62)!important;font-size:.56rem!important;line-height:1.15!important}
  .ms-community-user-icon{
    align-items:center!important;
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:9px!important;
    display:flex!important;
    flex:0 0 29px!important;
    height:29px!important;
    justify-content:center!important;
    width:29px!important;
  }
  .ms-community-user-icon svg{fill:none!important;height:16px!important;stroke:currentColor!important;stroke-width:1.8!important;width:16px!important}
  .ms-community-mobile-register{
    border:1px solid rgba(255,255,255,.20)!important;
    border-radius:8px!important;
    color:#fff!important;
    font-size:.60rem!important;
    font-weight:850!important;
    padding:7px 8px!important;
    text-decoration:none!important;
    white-space:nowrap!important;
  }
}

/* Neutral claro: el menú mobile sigue oscuro en TESSIRVE; la entrada acompaña. */
html[data-tessirve-theme="neutral"][data-tessirve-color-mode="light"] .ms-community-mobile-entry{
  background:rgba(255,255,255,.06)!important;
  border-color:rgba(255,255,255,.12)!important;
}

/* Perfil > Historial: refuerzo de corona moderna también desde Theme. */
.ms-team-history-tab .ms-classic-matchup>.ms-classic-team-link.is-classic-leader::before{
  content:""!important;
  background:url('ms-crown-gold.png') center/contain no-repeat!important;
  color:transparent!important;
  font-size:0!important;
  height:18px!important;
  left:50%!important;
  right:auto!important;
  top:-12px!important;
  transform:translateX(-50%)!important;
  width:25px!important;
}


/* ==========================================================================
   5.17.204 — CANCHERO / HISTORIALES:
   - SIN CAJA VERDE EXTERIOR
   - CONTROLES OSCUROS COHERENTES
   - DROPDOWN DE EQUIPOS OSCURO Y LEGIBLE
   Importante: NO depende de body.ms-h2h-active.
   ========================================================================== */

/* El formulario completo NO es una tarjeta. Sólo los controles individuales. */
html[data-tessirve-theme="canchero"] .ms-h2h-page>.ms-h2h-form,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-form.has-country,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-matchup-picker,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-modern-matchup,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-panel{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

html[data-tessirve-theme="canchero"] .ms-h2h-page>.ms-h2h-form{
  padding:0!important;
}

/* La explicación del encabezado: blanca y con sombra, sin depender de clase body. */
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-intro p{
  color:#fff!important;
  opacity:1!important;
  text-shadow:0 1px 2px rgba(0,0,0,.36)!important;
}

/* País / categoría: mantienen Canchero, pero sin bloque exterior. */
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-context-control,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-context-control select{
  background:#075d3a!important;
  border-color:rgba(255,255,255,.42)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-context-control :is(label,span,strong,b),
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-context-filter>span:first-child{
  color:#fff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.30)!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-context-control select option,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-native-classic-select option,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-native-team-select option{
  background:#073f29!important;
  color:#fff!important;
}

/* Selector de clásico: NO blanco. */
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-classic-picker-button{
  background:linear-gradient(180deg,#0b6842,#075737)!important;
  border:1px solid rgba(255,255,255,.34)!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(0,35,21,.12)!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-classic-picker-button :is(b,strong,span,i),
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-classic-caret{
  color:#fff!important;
}

/* Selectores de equipo: NO gris/blanco. */
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-button{
  background:linear-gradient(180deg,#0b6842,#075737)!important;
  border:1px solid rgba(255,255,255,.34)!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(0,35,21,.12)!important;
  backdrop-filter:none!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-button:hover{
  background:linear-gradient(180deg,#14794b,#0a6440)!important;
  border-color:rgba(255,255,255,.48)!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-button :is(b,strong,span,i){
  color:#fff!important;
}

/* VS / swap limpios, sin pastillas blanquecinas. */
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-vs,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-swap{
  background:#075d3a!important;
  border-color:rgba(255,255,255,.34)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-vs>b{
  background:#064b31!important;
  border-color:rgba(255,255,255,.24)!important;
  color:#fff!important;
}

/* ==========================================================================
   DROPDOWN DE EQUIPOS — FIX REAL:
   selector directo dentro de .ms-h2h-page, sin depender de body.ms-h2h-active.
   ========================================================================== */
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-popover{
  background:linear-gradient(180deg,#0a5134,#063b28)!important;
  border:1px solid rgba(220,248,230,.42)!important;
  box-shadow:0 18px 38px rgba(0,28,17,.34)!important;
  color:#fff!important;
}

html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-search input{
  background:#052f20!important;
  border:1px solid rgba(220,248,230,.30)!important;
  color:#fff!important;
  caret-color:#fff!important;
  box-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-search input::placeholder{
  color:#b9d9c5!important;
  opacity:1!important;
}

html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-options{
  background:transparent!important;
}

html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-option{
  background:transparent!important;
  border:1px solid transparent!important;
  color:#fff!important;
}

html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-option:hover,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-option.is-search-best{
  background:#126f46!important;
  border-color:rgba(220,248,230,.28)!important;
  color:#fff!important;
}

html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-option-copy>b,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-option>b{
  color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-option-copy>small{
  color:#b9ddc7!important;
  opacity:1!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-option-crest{
  background:rgba(255,255,255,.055)!important;
  border-color:rgba(255,255,255,.14)!important;
}

/* Selector de clásicos desplegado: misma paleta. */
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-classic-picker-popover{
  background:linear-gradient(180deg,#0a5134,#063b28)!important;
  border:1px solid rgba(220,248,230,.42)!important;
  box-shadow:0 18px 38px rgba(0,28,17,.34)!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-classic-picker-option{
  background:transparent!important;
  border:1px solid transparent!important;
  color:#fff!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-classic-picker-option:hover{
  background:#126f46!important;
  border-color:rgba(220,248,230,.28)!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-classic-picker-option>b{
  color:#fff!important;
}

/* Scrollbar acorde, no gris/blanca. */
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-options::-webkit-scrollbar,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-classic-picker-popover::-webkit-scrollbar{
  width:7px!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-options::-webkit-scrollbar-thumb,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-classic-picker-popover::-webkit-scrollbar-thumb{
  background:#2d8d5d!important;
  border-radius:999px!important;
}
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-options::-webkit-scrollbar-track,
html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-classic-picker-popover::-webkit-scrollbar-track{
  background:#063a27!important;
}

/* Mobile: misma lógica. */
@media(max-width:782px){
  html[data-tessirve-theme="canchero"] .ms-h2h-page>.ms-h2h-form{
    padding:0!important;
  }
  html[data-tessirve-theme="canchero"] .ms-h2h-page .ms-h2h-team-picker-popover{
    background:linear-gradient(180deg,#0a5134,#063b28)!important;
  }
}


/* ==========================================================================
   5.17.205 — HEADER: BUSCADOR + PERFIL EN SU LUGAR
   ========================================================================== */
@media(min-width:1181px){
  .ms-site-header-inner{
    grid-template-columns:150px minmax(0,1fr) auto!important;
  }
  .ms-header-actions{
    align-items:center!important;
    display:flex!important;
    flex:0 0 auto!important;
    gap:6px!important;
    justify-self:end!important;
    min-width:max-content!important;
  }
  .ms-header-actions .ms-header-search{
    margin-left:0!important;
    order:1!important;
  }
  .ms-header-actions .ms-community-desktop-entry{
    order:2!important;
  }
}
.ms-community-desktop-entry{
  align-items:center!important;
  border-radius:9px!important;
  display:inline-flex!important;
  height:36px!important;
  justify-content:center!important;
  margin-left:0!important;
  padding:0!important;
  width:36px!important;
}
.ms-community-desktop-entry svg{
  fill:none!important;
  height:17px!important;
  stroke:currentColor!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  stroke-width:1.8!important;
  width:17px!important;
}
.ms-community-user-dot{display:none!important}
@media(max-width:1180px){
  .ms-header-actions{display:contents!important}
  .ms-community-desktop-entry{display:none!important}
}

/* ==========================================================================
   5.17.205 — TESS: MINI ICONO INDEPENDIENTE DEL BUSCADOR
   ========================================================================== */
.ms-tess-shell{position:relative;z-index:1450}
.ms-tess-launch{
  align-items:center;
  background:linear-gradient(145deg,#14213d,#2257a6 58%,#6d5bd0);
  border:1px solid rgba(163,215,255,.45);
  border-radius:15px;
  bottom:86px;
  box-shadow:0 10px 28px rgba(4,18,42,.28),0 0 0 1px rgba(255,255,255,.06) inset;
  color:#fff;
  cursor:pointer;
  display:flex;
  height:44px;
  justify-content:center;
  padding:0;
  position:fixed;
  right:16px;
  width:44px;
  z-index:1451;
}
.ms-tess-launch:hover,.ms-tess-launch:focus-visible{
  box-shadow:0 12px 32px rgba(4,18,42,.36),0 0 20px rgba(87,171,255,.28);
  outline:0;
  transform:translateY(-1px);
}
.ms-tess-glyph{font-family:var(--ms-ui-font);font-size:20px;font-style:italic;font-weight:900;line-height:1}
.ms-tess-launch>i{color:#8fe9ff;font-size:9px;font-style:normal;position:absolute;right:6px;top:5px}
.ms-tess-panel{
  background:#0e1727;
  border:1px solid #30455f;
  border-radius:16px;
  bottom:140px;
  box-shadow:0 24px 60px rgba(0,0,0,.38);
  color:#edf6ff;
  max-height:min(600px,calc(100vh - 180px));
  overflow:hidden;
  position:fixed;
  right:16px;
  width:min(390px,calc(100vw - 28px));
  z-index:1452;
}
.ms-tess-panel>header{
  align-items:center;
  background:linear-gradient(115deg,#172b4b,#10213a);
  border-bottom:1px solid #2d425c;
  display:grid;
  gap:9px;
  grid-template-columns:34px 1fr 30px;
  padding:10px 11px;
}
.ms-tess-avatar{align-items:center;background:linear-gradient(145deg,#2c73c8,#775bd6);border-radius:10px;display:flex;font-size:18px;font-style:italic;font-weight:900;height:34px;justify-content:center;width:34px}
.ms-tess-panel>header span:nth-child(2){display:grid;gap:1px}
.ms-tess-panel>header b{font-size:.84rem}
.ms-tess-panel>header small{color:#9eb4ca;font-size:.64rem}
.ms-tess-panel>header button{background:transparent;border:0;color:#b9c8d7;cursor:pointer;font-size:22px;height:30px;padding:0}
.ms-tess-feed{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:340px;
  min-height:150px;
  overflow:auto;
  padding:12px;
}
.ms-tess-message{
  background:#172538;
  border:1px solid #2b3d54;
  border-radius:12px 12px 12px 4px;
  color:#eaf4ff;
  font-size:.75rem;
  line-height:1.45;
  max-width:91%;
  padding:9px 10px;
  white-space:pre-line;
}
.ms-tess-message.is-user{align-self:flex-end;background:#214d7c;border-color:#376d9f;border-radius:12px 12px 4px 12px}
.ms-tess-message.is-loading{color:#9fb4c9}
.ms-tess-links{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.ms-tess-links a{background:#21344b;border:1px solid #38516d;border-radius:999px;color:#dff2ff!important;font-size:.62rem;font-weight:800;padding:5px 8px;text-decoration:none!important}
.ms-tess-example{padding:0 12px 8px}
.ms-tess-example button{background:transparent;border:0;color:#83bff4;cursor:pointer;font-size:.64rem;padding:0}
.ms-tess-form{border-top:1px solid #2b3e55;display:grid;gap:7px;grid-template-columns:1fr 36px;padding:9px}
.ms-tess-form input{background:#0a1320;border:1px solid #344b66;border-radius:10px;color:#fff;font-size:.76rem;min-width:0;outline:0;padding:9px 10px}
.ms-tess-form input:focus{border-color:#5fa8e8;box-shadow:0 0 0 2px rgba(79,165,255,.10)}
.ms-tess-form button{background:#2563a6;border:0;border-radius:10px;color:#fff;cursor:pointer;font-size:17px}

@media(max-width:782px){
  .ms-tess-launch{bottom:76px;height:40px;right:10px;width:40px}
  .ms-tess-panel{bottom:126px;left:8px;right:8px;width:auto}
  .ms-tess-feed{max-height:44vh}
}

/* 5.17.206 — preserve incident colors after theme styling. */
.ms-tess-panel[hidden]{display:none!important}
.ms-match-lineup-compact .ms-roster-player.is-left strong>:is(a,span){color:#d34378!important}
.ms-match-lineup-compact .ms-roster-player.has-yellow-card strong>:is(a,span){color:#a36b00!important}
.ms-match-lineup-compact .ms-roster-player.has-red-card strong>:is(a,span),.ms-match-lineup-compact .ms-roster-player.has-yellow-card.has-red-card strong>:is(a,span){color:#d92d20!important}
.ms-match-lineup-compact .ms-pitch-player-name.is-left>:is(a,span){color:#ffc4d6!important}
.ms-match-lineup-compact .ms-pitch-player-name.has-yellow-card>:is(a,span){color:#ffe36b!important}
.ms-match-lineup-compact .ms-pitch-player-name.has-red-card>:is(a,span),.ms-match-lineup-compact .ms-pitch-player-name.has-yellow-card.has-red-card>:is(a,span){color:#ff626d!important}
html[data-tessirve-color-mode="dark"] .ms-match-lineup-compact .ms-roster-player.is-left strong>:is(a,span),html[data-tessirve-theme="canchero"] .ms-match-lineup-compact .ms-roster-player.is-left strong>:is(a,span){color:#ffb8cc!important}
html[data-tessirve-color-mode="dark"] .ms-match-lineup-compact .ms-roster-player.has-yellow-card strong>:is(a,span),html[data-tessirve-theme="canchero"] .ms-match-lineup-compact .ms-roster-player.has-yellow-card strong>:is(a,span){color:#ffe36b!important}
html[data-tessirve-color-mode="dark"] .ms-match-lineup-compact .ms-roster-player.has-red-card strong>:is(a,span),html[data-tessirve-theme="canchero"] .ms-match-lineup-compact .ms-roster-player.has-red-card strong>:is(a,span),html[data-tessirve-color-mode="dark"] .ms-match-lineup-compact .ms-roster-player.has-yellow-card.has-red-card strong>:is(a,span),html[data-tessirve-theme="canchero"] .ms-match-lineup-compact .ms-roster-player.has-yellow-card.has-red-card strong>:is(a,span){color:#ff626d!important}

/* 5.17.209 — compact mobile header: all controls share one centered row. */
@media(max-width:782px){
  :root{--ms-header-mobile-height:48px!important}
}
@media(max-width:1180px){
  body.tessirve-theme{padding-top:calc(var(--ms-header-mobile-height,54px) + var(--ms-featured-height,40px) + var(--ms-admin-space,0px) + 2px)!important}
  body.tessirve-theme .ms-site-header{left:0!important;right:0!important;width:100%!important;max-width:100vw!important;box-sizing:border-box!important;border-top-width:1px!important;border-bottom-width:1px!important}
  body.tessirve-theme .ms-site-header .ms-site-header-inner{display:grid!important;grid-template-columns:minmax(0,1fr) 40px 40px!important;grid-template-rows:1fr!important;align-content:center!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0 12px!important;height:var(--ms-header-mobile-height,54px)!important;min-height:0!important;box-sizing:border-box!important;position:relative!important}
  body.tessirve-theme .ms-site-header .ms-header-actions{display:contents!important}
  body.tessirve-theme .ms-site-header .ms-brand{grid-column:1!important;grid-row:1!important;justify-self:start!important;min-width:0!important;max-width:100%!important;width:auto!important;margin:0!important}
  body.tessirve-theme .ms-site-header .ms-brand img,body.tessirve-theme .ms-site-header .ms-brand .tsv-hlogo{max-width:100%!important}
  body.tessirve-theme .ms-site-header .ms-header-search{grid-column:2!important;grid-row:1!important;justify-self:end!important;position:static!important;margin:0!important;width:40px!important;min-width:0!important;max-width:40px!important}
  body.tessirve-theme .ms-site-header .ms-header-search-toggle{width:40px!important;height:40px!important;min-width:0!important;max-width:40px!important;margin:0!important;transform:none!important;box-sizing:border-box!important}
  body.tessirve-theme .ms-site-header .ms-menu-toggle{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;grid-column:3!important;grid-row:1!important;justify-self:end!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;width:40px!important;height:40px!important;min-width:0!important;max-width:40px!important;padding:7px!important;margin:0!important;box-sizing:border-box!important}
  body.tessirve-theme .ms-site-header .ms-menu-toggle>span:not(.screen-reader-text){flex:0 0 2px!important;height:2px!important;width:22px!important;max-width:100%!important;margin:0!important}
  body.tessirve-theme .ms-site-header .ms-primary-nav{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;position:absolute!important;top:100%!important;bottom:auto!important;left:12px!important;right:12px!important;width:auto!important;max-width:calc(100% - 24px)!important;box-sizing:border-box!important;min-width:0!important;padding:12px!important;transform:none!important;overflow-x:hidden!important;overflow-y:auto!important;max-height:calc(100dvh - var(--ms-header-mobile-height,54px) - var(--ms-admin-space,0px) - 20px)!important;grid-column:1/-1!important;touch-action:pan-y!important;overscroll-behavior-y:contain}
  body.tessirve-theme .ms-site-header .ms-primary-nav.is-open{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
  body.tessirve-theme .ms-site-header .ms-mobile-submenu,body.tessirve-theme .ms-site-header .ms-mobile-submenu-inner,body.tessirve-theme .ms-site-header .ms-country-competitions,body.tessirve-theme .ms-site-header .ms-site-menu,body.tessirve-theme .ms-site-header .ms-menu-parent{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  body.tessirve-theme .ms-site-header .ms-mobile-submenu-tab,body.tessirve-theme .ms-site-header .ms-country-competitions a,body.tessirve-theme .ms-site-header .ms-primary-nav .ms-site-menu a{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.tessirve-theme .ms-site-header .ms-header-search-panel{position:absolute!important;left:12px!important;right:12px!important;top:calc(100% + 8px)!important;width:auto!important;min-width:0!important;max-width:calc(100% - 24px)!important;box-sizing:border-box!important;margin:0!important}
  body.tessirve-theme .ms-site-header .ms-header-search-panel input,body.tessirve-theme .ms-site-header .ms-public-global-search-results{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  body.tessirve-theme .ms-site-header .ms-header-search-panel .ms-public-global-search{min-width:0!important;width:100%!important;box-sizing:border-box!important}
  body.tessirve-theme .ms-site-header .ms-header-search-panel .ms-public-global-search>label{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto!important;gap:8px!important;min-width:0!important;width:100%!important;box-sizing:border-box!important}
  body.tessirve-theme .ms-site-header .ms-header-search-panel .ms-public-global-search input{width:100%!important}
}

/* 5.17.210 — mobile team names align towards their own crest. */
@media(max-width:782px){
  body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline>span.is-home .ms-compact-team-copy,
  body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline>span.is-home .ms-compact-team-copy>strong,
  body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline>span.is-home .ms-compact-team-name{text-align:right!important;justify-content:flex-end!important}
  body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline>span.is-away .ms-compact-team-copy,
  body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline>span.is-away .ms-compact-team-copy>strong,
  body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline>span.is-away .ms-compact-team-name{text-align:left!important;justify-content:flex-start!important}
}
@media(max-width:360px){
  body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline .ms-compact-team-name{overflow-wrap:anywhere!important}
}

/* 5.17.211 — one vertical mobile page, without an oversized decoration. */
@media(max-width:782px){
  html:has(>body.tessirve-theme){
    overflow-x:clip!important;
    overscroll-behavior-x:none;
  }
  body.tessirve-theme{
    overflow-x:clip!important;
    overscroll-behavior-x:none;
  }
  body.tessirve-theme .ms-team-background-watermark,
  body.tessirve-theme .ms-team-background-watermark.is-visible,
  body.tessirve-theme.has-team-background-crest .ms-site-main::before,
  body.tessirve-theme.has-team-background-crest .ms-home-today::after{
    content:none!important;
    display:none!important;
    background:none!important;
  }
}

/* 5.17.211 — rounded, consistent reading type on every device. */
:root{
  --ms-ui-font:"Nunito Variable",ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --ms-title-font:var(--ms-ui-font);
}
body.tessirve-theme{
  font-family:var(--ms-ui-font)!important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-kerning:normal;
}
body.tessirve-theme :is(input,select,textarea,button){font-family:var(--ms-ui-font)!important}
body.tessirve-theme :is(time,.ms-fixture-kickoff){
  font-family:var(--ms-ui-font)!important;
  font-variant-numeric:tabular-nums;
}
body.tessirve-theme :is(.ms-app,.ms-before-footer-editorial) :is(h1,h2,h3,h4,h5,h6,p,a,strong,b,small,td,th,time),
body.tessirve-theme .ms-app .ms-team-hero-nickname,
body.tessirve-theme .ms-upcoming-page-team h1{
  font-family:var(--ms-ui-font)!important;
}

/* 5.17.214 — Main: misma sombra real, pero 1 punto más cerca del texto. */
body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline .ms-compact-team-name{
  width:fit-content!important;
  max-width:100%!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-shadow:0 0 1px rgba(0,0,0,.30),0 1px 2px rgba(0,0,0,.14)!important;
}
body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline>span.is-home .ms-compact-team-name{margin-left:auto!important;margin-right:0!important}
body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline>span.is-away .ms-compact-team-name{margin-left:0!important;margin-right:auto!important}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline .ms-compact-team-name{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  text-shadow:0 0 1px rgba(0,0,0,.68),0 1px 3px rgba(0,0,0,.38)!important;
}
html[data-tessirve-theme="canchero"] body.tessirve-theme .ms-home-today:not(.ms-h2h-match-history-list) .ms-compact-scoreline .ms-compact-team-name{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  text-shadow:0 0 1px rgba(0,0,0,.54),0 1px 2px rgba(0,0,0,.24)!important;
}

/* ========================================================================== 
   5.17.215 — PLAYOFFS ELIMINADOS EN GRIS + PODIO DE COMPETENCIA CENTRADO
   Global para todas las competiciones que reutilizan los renderers comunes.
   ========================================================================== */

/* Eliminados: conservar el tachado existente, pero el equipo completo pasa a
   gris (nombre, resultado y escudo) en cualquier árbol/llave compartida. */
body.tessirve-theme .ms-app .ms-knockout-team.is-eliminated{
  color:#98a2b3!important;
  opacity:.68!important;
}
body.tessirve-theme .ms-app .ms-knockout-team.is-eliminated :is(
  a,b,strong,span,.ms-knockout-team-name,.ms-knockout-team-code
){
  color:#98a2b3!important;
}
body.tessirve-theme .ms-app .ms-knockout-team.is-eliminated :is(
  .ms-crest,.ms-crest-fallback,img
){
  filter:grayscale(1) saturate(0) opacity(.58)!important;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-app .ms-knockout-team.is-eliminated,
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-app .ms-knockout-team.is-eliminated :is(
  a,b,strong,span,.ms-knockout-team-name,.ms-knockout-team-code
){
  color:#8f9aaa!important;
}
html[data-tessirve-theme="canchero"] body.tessirve-theme .ms-app .ms-knockout-team.is-eliminated,
html[data-tessirve-theme="canchero"] body.tessirve-theme .ms-app .ms-knockout-team.is-eliminated :is(
  a,b,strong,span,.ms-knockout-team-name,.ms-knockout-team-code
){
  color:#aab4b0!important;
}

/* Campeón + subcampeón + mejor(es) sin título: composición común, centrada y
   más limpia. Sólo actúa cuando existe el bloque violeta para no alterar otras
   cabeceras de ligas que además muestran ascensos/descensos u otros datos. */
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion):has(>article.is-champion){
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:12px 14px!important;
  justify-content:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
  width:100%!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion):has(>article.is-champion)>article.is-champion{
  grid-column:3 / span 4!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion):has(>article.is-runner-up)>article.is-runner-up{
  grid-column:7 / span 4!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion)>article.is-never-champion{
  grid-column:4 / span 6!important;
  min-height:88px!important;
  padding:10px 14px!important;
  justify-self:stretch!important;
}

/* Los dos protagonistas principales pesan más que el violeta. */
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion)>article:is(.is-champion,.is-runner-up){
  align-items:center!important;
  justify-content:center!important;
  min-height:112px!important;
  padding:12px 16px!important;
  text-align:center!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion)>article:is(.is-champion,.is-runner-up) a{
  align-items:center!important;
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  justify-content:center!important;
  text-align:center!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion)>article:is(.is-champion,.is-runner-up) :is(.ms-crest,.ms-crest-fallback){
  height:48px!important;
  max-height:48px!important;
  max-width:48px!important;
  width:48px!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion)>article:is(.is-champion,.is-runner-up) strong{
  font-size:.90rem!important;
  line-height:1.08!important;
}

/* Violeta secundario: escudos y nombres deliberadamente menores. */
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners)>article.is-never-champion .ms-never-champion-list{
  align-items:center!important;
  gap:8px 14px!important;
  justify-content:center!important;
  margin:4px auto 1px!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners)>article.is-never-champion .ms-never-champion-team{
  gap:3px!important;
  min-width:64px!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners)>article.is-never-champion .ms-never-champion-team :is(.ms-crest,.ms-crest-fallback){
  height:30px!important;
  max-height:30px!important;
  max-width:30px!important;
  width:30px!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners)>article.is-never-champion .ms-never-champion-team strong{
  font-size:.69rem!important;
  line-height:1.08!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners)>article.is-never-champion>small{
  font-size:.57rem!important;
}
body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners)>article.is-never-champion>.ms-ca-never-title-meta{
  font-size:.54rem!important;
  margin-top:3px!important;
}

@media(max-width:760px){
  body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion):has(>article.is-champion){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion)>article.is-champion{
    grid-column:1!important;
  }
  body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion)>article.is-runner-up{
    grid-column:2!important;
  }
  body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion)>article.is-never-champion{
    grid-column:1 / -1!important;
    min-height:72px!important;
    padding:8px 10px!important;
  }
  body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion)>article:is(.is-champion,.is-runner-up){
    min-height:96px!important;
    padding:9px 8px!important;
  }
  body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners):has(>article.is-never-champion)>article:is(.is-champion,.is-runner-up) :is(.ms-crest,.ms-crest-fallback){
    height:40px!important;
    max-height:40px!important;
    max-width:40px!important;
    width:40px!important;
  }
  body.tessirve-theme .ms-app :is(.ms-ca-headliners,.ms-competition-headliners)>article.is-never-champion .ms-never-champion-team :is(.ms-crest,.ms-crest-fallback){
    height:27px!important;
    max-height:27px!important;
    max-width:27px!important;
    width:27px!important;
  }
}



/* ========================================================================
   5.17.217 — TABLAS: datos extra inline en PC; expansión compacta en móvil.
   ======================================================================== */
@media(min-width:721px){
  body.tessirve-theme .ms-standing-table :is(.ms-standing-expand-head,.ms-standing-expand-cell){display:none!important}
  body.tessirve-theme .ms-standing-table .ms-standing-detail{display:none!important}
  body.tessirve-theme .ms-standing-table .ms-standing-team-layout{align-items:center!important;display:flex!important;gap:14px!important;min-width:0!important;width:100%!important}
  body.tessirve-theme .ms-standing-table .ms-standing-team-layout>a{flex:0 1 auto!important;min-width:150px!important;max-width:48%!important}
  body.tessirve-theme .ms-standing-table .ms-standing-inline-details{align-items:center!important;display:flex!important;flex:1 1 auto!important;gap:13px!important;justify-content:flex-end!important;min-width:0!important;white-space:nowrap!important}
  body.tessirve-theme .ms-standing-table .ms-standing-inline-details>span{align-items:center!important;display:inline-flex!important;flex:0 0 auto!important;gap:4px!important}
  body.tessirve-theme .ms-standing-table .ms-standing-inline-details small{font-size:.59rem!important;font-weight:750!important;letter-spacing:.025em!important;line-height:1!important;text-transform:uppercase!important}
  body.tessirve-theme .ms-standing-table .ms-standing-inline-details b{font-size:.71rem!important;font-variant-numeric:tabular-nums!important;line-height:1!important}
  body.tessirve-theme .ms-standing-table .ms-standing-inline-details .ms-form{flex-wrap:nowrap!important;gap:2px!important;justify-content:flex-start!important}
  body.tessirve-theme .ms-standing-table .ms-standing-inline-details .ms-form :is(i,a){font-size:.48rem!important;height:15px!important;min-height:15px!important;width:15px!important}
}
@media(max-width:720px){
  body.tessirve-theme .ms-standing-table .ms-standing-inline-details{display:none!important}
  body.tessirve-theme .ms-standing-table :is(.ms-standing-expand-head,.ms-standing-expand-cell){display:table-cell!important;width:22px!important}
  body.tessirve-theme .ms-standing-table .ms-standing-team-layout{display:block!important;min-width:0!important}
  body.tessirve-theme .ms-standing-table .ms-standing-detail td{padding:5px 4px!important}
  body.tessirve-theme .ms-standing-table .ms-standing-detail td>div{align-items:center!important;display:grid!important;gap:3px!important;grid-template-columns:auto auto auto minmax(0,1fr)!important;width:100%!important}
  body.tessirve-theme .ms-standing-table .ms-standing-detail td>div>span,
  body.tessirve-theme .ms-standing-table .ms-standing-detail td>div>span:last-child{align-items:center!important;display:flex!important;gap:3px!important;grid-column:auto!important;min-width:0!important;white-space:nowrap!important}
  body.tessirve-theme .ms-standing-table .ms-standing-detail small{font-size:.53rem!important;line-height:1!important}
  body.tessirve-theme .ms-standing-table .ms-standing-detail b{font-size:.61rem!important;line-height:1!important}
  body.tessirve-theme .ms-standing-table .ms-standing-detail .ms-form{flex-wrap:nowrap!important;gap:2px!important;justify-content:flex-start!important;min-width:0!important}
  body.tessirve-theme .ms-standing-table .ms-standing-detail .ms-form :is(i,a){font-size:.44rem!important;height:14px!important;min-height:14px!important;width:14px!important}
}

/* 5.17.361 Core / 5.17.218 Theme — real desktop stats columns; compact mobile expansion. */
body .ms-standing-table:not(.ms-average-table) .ms-standing-points{font-weight:800!important;border-left:.5px solid rgba(137,161,186,.32)!important;border-right:.5px solid rgba(137,161,186,.32)!important;text-align:center;}
body .ms-standing-table:not(.ms-average-table) .ms-standing-extra-col{text-align:center;white-space:nowrap;}
body .ms-standing-table:not(.ms-average-table) .ms-standing-points strong{font-weight:800!important;}
body .ms-standing-table:not(.ms-average-table) .ms-standing-form-col .ms-form{display:inline-flex;justify-content:center;gap:3px;white-space:nowrap;}
body .ms-standing-table:not(.ms-average-table) .ms-standing-team-layout{display:block!important;}
body .ms-standing-table:not(.ms-average-table) .ms-standing-inline-details{display:none!important;}
body .ms-standing-table:not(.ms-average-table) .ms-standing-team-layout>a{max-width:none!important;}
body .ms-standing-table:not(.ms-average-table) .ms-standing-form-col{min-width:104px;}
body .ms-standing-table:not(.ms-average-table) .ms-standing-form-col .ms-form i,body .ms-standing-table:not(.ms-average-table) .ms-standing-form-col .ms-form a{width:17px;height:19px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;flex:0 0 17px;}
body .ms-standing-table:not(.ms-average-table) tr.is-libertadores-pre{--ms-custom-row-color:#edaa48;}
body .ms-standing-table:not(.ms-average-table) tr.is-libertadores-pre>td:first-child{box-shadow:inset 3px 0 #edaa48;}
.ms-table-legend i.is-libertadores-pre{background:#edaa48;}
/* 5.17.219 — annual-final and continental legend markers share the public table colors. */
body .ms-standing-table:not(.ms-average-table) tr.is-annual-final>td:first-child{box-shadow:inset 3px 0 #06b6d4;}
.ms-table-legend i.is-annual-final{background:#06b6d4;}
@media(max-width:720px){
 .ms-competition-profile .ms-standing-table tr:is(.is-annual-final,.is-libertadores-pre)>td:first-child{box-shadow:none!important;position:relative!important;}
 .ms-competition-profile .ms-standing-table tr:is(.is-annual-final,.is-libertadores-pre)>td:first-child:before{border-radius:999px;bottom:7px;content:"";left:2px;position:absolute;top:7px;width:3px;}
 .ms-competition-profile .ms-standing-table tr.is-annual-final>td:first-child:before{background:#06b6d4;}
 .ms-competition-profile .ms-standing-table tr.is-libertadores-pre>td:first-child:before{background:#edaa48;}
}
.ms-table-zone-note{font-size:12px;line-height:1.6;margin:10px 0 0;color:var(--ms-muted,#667085);}
.ms-table-explanation{font-size:13px;line-height:1.55;margin:14px 0;color:var(--ms-text-muted,#a8b6c9);}
@media(min-width:801px){
 body .ms-standing-table:not(.ms-average-table) .ms-standing-extra-col{display:table-cell!important;width:36px;padding:8px 6px!important;}
 body .ms-standing-table:not(.ms-average-table) .ms-standing-form-col{width:112px;padding-right:10px!important;}
 body .ms-standing-table:not(.ms-average-table) .ms-standing-expand-head,body .ms-standing-table:not(.ms-average-table) .ms-standing-expand-cell,body .ms-standing-table:not(.ms-average-table) .ms-standing-detail{display:none!important;}
 body .ms-standing-table:not(.ms-average-table){table-layout:auto!important;}
}
@media(max-width:800px){
 body .ms-standing-table:not(.ms-average-table) .ms-standing-extra-col{display:none!important;}
 body .ms-standing-table:not(.ms-average-table) .ms-standing-expand-head,body .ms-standing-table:not(.ms-average-table) .ms-standing-expand-cell{display:table-cell!important;}
 body .ms-standing-table:not(.ms-average-table) .ms-row-expand{display:inline-flex!important;}
 body .ms-standing-table:not(.ms-average-table) .ms-standing-detail:not([hidden]){display:table-row!important;}
 body .ms-standing-table:not(.ms-average-table) .ms-standing-detail[hidden]{display:none!important;}
}
