.sports-results-page{padding-bottom:calc(var(--bottom-nav-height) + 2rem)}
.sports-results-hero{margin-bottom:.7rem}
.sports-results-page .rh-hero__watermark,
.sports-results-page .rh-hero__watermark *{display:none!important;visibility:hidden!important;width:0!important;height:0!important;opacity:0!important;overflow:hidden!important}
.sports-results-hero .rh-hero__icon svg,.sports-results-hero .rh-refresh svg{width:20px;height:20px}
.sports-results-hero .rh-hero__icon{position:relative;overflow:hidden;color:#b9e5ff;background:linear-gradient(145deg,rgba(112,190,239,.2),rgba(44,107,170,.12) 55%,rgba(25,75,132,.28));border:1px solid rgba(112,185,255,.68);box-shadow:inset 0 1px 0 rgba(255,255,255,.46),0 4px 12px rgba(0,35,91,.2);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.sports-results-hero .rh-hero__icon svg{stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px rgba(12,55,110,.18))}
.sports-results-hero .rh-field>svg{width:13px!important;height:13px!important;min-width:13px;max-width:13px}
.sports-results-summary{display:flex}
.results-switcher{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;padding:4px;margin:0 0 .7rem;border:1px solid var(--srh-border);border-radius:12px;background:var(--srh-card)}
.results-switcher a{padding:.55rem;border-radius:9px;color:var(--srh-muted);font-size:.72rem;font-weight:800;text-align:center;text-decoration:none;transition:.18s ease}
.results-switcher a:hover{color:var(--srh-text);background:rgba(100,181,246,.08)}
.results-switcher .results-switcher__active{color:var(--srh-ink-on-brand,#080c14);background:var(--srh-gold);box-shadow:0 3px 10px rgba(190, 210, 234, .2)}
/* Modo oscuro: --srh-ink-on-brand solo existe en el tema claro; sin ella el texto heredaba blanco. */
html:not([data-theme="light"]) .results-switcher .results-switcher__active,html:not([data-theme="light"]) .results-switcher .results-switcher__active:hover{background:var(--srh-gold-2, #b7c9df);color:#080c14}
.sports-results-filters{display:flex;gap:6px;overflow-x:auto;padding:0 0 .7rem;scrollbar-width:none}
.sports-results-filters::-webkit-scrollbar{display:none}
.sports-results-filter{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:7px 10px;border:1px solid var(--srh-border);border-radius:999px;background:var(--srh-card);color:var(--srh-muted);font-family:inherit;font-size:.65rem;font-weight:700;cursor:pointer}
.sports-results-filter span{display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:rgba(148,163,184,.12);font-size:.55rem}
.sports-results-filter--active{border-color:rgba(190, 210, 234, .5);background:rgba(190, 210, 234, .1);color:var(--srh-gold)}
.sports-results-list{display:flex;flex-direction:column;gap:.65rem}
.sports-result-league{overflow:hidden;border:1px solid var(--srh-border);border-radius:15px;background:var(--srh-card);box-shadow:0 5px 18px rgba(0,0,0,.16)}
.sports-result-league__head{display:flex;align-items:center;gap:9px;padding:.65rem .75rem;border-bottom:1px solid var(--srh-border);background:rgba(15,23,42,.48)}
.sports-result-league__logo{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;box-sizing:border-box;padding:4px;border:1px solid #30445f;border-radius:9px;background:#17263a;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);overflow:hidden}
.sports-result-league__logo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.sports-result-league__logo img[src$="/nba.svg"]{width:auto;height:24px}
.sports-result-league__logo img[src$="/euroleague.svg"]{filter:invert(1) grayscale(1) brightness(1.3)}
.sports-result-league__info{display:flex;flex:1;min-width:0;flex-direction:column}
.sports-result-league__info strong{overflow:hidden;color:var(--srh-text);font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}
.sports-result-league__info small{color:var(--srh-muted);font-size:.55rem}
.sports-result-league__status{display:inline-flex;align-items:center;gap:5px;color:#6ee7b7;font-size:.56rem;font-weight:800}
.sports-result-league__status i{width:6px;height:6px;border-radius:50%;background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.12)}
.sports-result-league__matches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--srh-border)}
.sports-result-match{display:grid;grid-template-columns:48px minmax(0,1fr);min-width:0;background:rgba(8,12,20,.38)}
.sports-result-match__meta{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border-right:1px solid var(--srh-border);color:var(--srh-muted);font:700 .56rem 'Courier New',monospace}
.sports-result-match__meta span{padding:2px 5px;border-radius:5px;background:rgba(52,211,153,.1);color:#6ee7b7;font-family:inherit;font-size:.48rem;font-weight:800;text-transform:uppercase}
.sports-result-match__teams{display:flex;min-width:0;flex-direction:column;padding:7px 8px}
.sports-result-team{display:grid;grid-template-columns:24px minmax(0,1fr) 24px;align-items:center;gap:7px;min-height:31px;color:var(--srh-muted)}
.sports-result-team img{display:block;width:24px;height:24px;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(0,0,0,.45))}
.sports-result-team span{overflow:hidden;font-size:.62rem;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.sports-result-team strong{font:800 .78rem 'Courier New',monospace;text-align:center}
.sports-result-team--winner{color:var(--srh-text)}
.sports-result-team--winner strong{color:var(--srh-gold)}
.sports-results-empty{padding:2.5rem 1rem;border:1px dashed var(--srh-border);border-radius:14px;color:var(--srh-muted);font-size:.75rem;text-align:center}
.sports-results-refreshing svg{animation:sports-results-spin .55s ease}
@keyframes sports-results-spin{to{transform:rotate(360deg)}}
@media(max-width:560px){.sports-result-league__matches{grid-template-columns:minmax(0,1fr)}.sports-results-hero .rh-hero__toolbar{flex-direction:column}.sports-result-match{grid-template-columns:52px minmax(0,1fr)}.sports-result-team{grid-template-columns:26px minmax(0,1fr) 28px}.sports-result-team img{width:26px;height:26px}.sports-result-team span{font-size:.66rem}}
html[data-theme="light"] .sports-results-hero .rh-hero__icon{color:#154a94;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(125,207,239,.4) 54%,rgba(99,173,221,.28));border-color:rgba(20,94,255,.6);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 4px 12px rgba(25,87,151,.14)}
html[data-theme="light"] .sports-results-hero .rh-hero__icon svg{filter:drop-shadow(0 1px 1px rgba(255,255,255,.85))}
html[data-theme="light"] .sports-result-league{background:#fff;border-color:#cbd5e1;box-shadow:0 5px 16px rgba(41,46,56,.09)}
html[data-theme="light"] .sports-result-league__head{background:#f6f8fc;border-color:#d5d9e1}
html[data-theme="light"] .sports-result-league__matches{background:#d5d9e1}
html[data-theme="light"] .sports-result-match{background:#fff}
html[data-theme="light"] .sports-result-match__meta{border-color:#e2e8f0}
html[data-theme="light"] .sports-result-team--winner{color:var(--srh-text)}
html[data-theme="light"] .sports-result-league__logo{background:#fff;border-color:#e2e8f0;box-shadow:none}
html[data-theme="light"] .sports-result-league__logo img[src$="/euroleague.svg"]{filter:grayscale(1) brightness(0)}
html[data-theme="light"] .sports-result-team img{filter:drop-shadow(0 1px 1px rgba(15,23,42,.14))}
html[data-theme="light"] .results-switcher,html[data-theme="light"] .sports-results-filter{background:#fff;border-color:#cbd5e1}
html[data-theme="light"] .results-switcher .results-switcher__active{background:var(--srh-gold);color:var(--srh-ink-on-brand)}

/* Vista general de resultados: un selector y una sección por tipo en la misma página */
.resultados-switcher{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
[data-resultados-panel][hidden]{display:none!important}
.app-results-section [data-resultados-panel].sports-results-page{padding-bottom:0}

/* Resultados reales: estado del evento, detalle y parciales */
.sports-results-filters[hidden],.sports-results-loading[hidden],#sports-results-loading[hidden]{display:none}
.sports-results-error:empty{display:none}
.sports-results-filter__live{width:6px;height:6px;border-radius:50%;background:var(--srh-red)}
.sports-result-league__mark{font-size:1rem;line-height:1}
.sports-result-league__status--live{color:#fca5a5}
.sports-result-league__status--live i{background:var(--srh-red);box-shadow:0 0 0 3px rgba(239,68,68,.16);animation:sports-results-pulse 1.4s ease-in-out infinite}
@keyframes sports-results-pulse{50%{opacity:.35}}
.sports-result-match__meta{padding:4px 2px}
.sports-result-match__meta span{max-width:46px;line-height:1.2;text-align:center}
.sports-results-list,.sports-result-league{min-width:0}
/* Con datos reales una competición suele tener un número impar de partidos: el último ocupa toda la fila. */
.sports-result-match:last-child:nth-child(odd){grid-column:1/-1}
.sports-result-league__logo img[src$="/copa-libertadores.svg"]{filter:invert(1) grayscale(1) brightness(1.35)}
.sports-result-league__logo img[src$="/champions-league.svg"]{filter:grayscale(1) brightness(0) invert(1)}
html[data-theme="light"] .sports-result-league__logo img[src$="/copa-libertadores.svg"],html[data-theme="light"] .sports-result-league__logo img[src$="/champions-league.svg"]{filter:grayscale(1) brightness(0)}
.sports-result-match--vivo .sports-result-match__meta span{background:rgba(239,68,68,.12);color:#fca5a5}
.sports-result-match--otro .sports-result-match__meta span{background:rgba(148,163,184,.12);color:var(--srh-muted)}
.sports-result-match--vivo .sports-result-team strong{color:var(--srh-text)}
.sports-result-team__mark{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(148,163,184,.14);color:var(--srh-muted);font-size:.5rem;font-weight:800}
.sports-result-match__detail{grid-column:1/-1;display:grid;gap:5px;min-width:0;padding:6px 8px 8px;border-top:1px solid var(--srh-border)}
.sports-result-match__lines{display:flex;flex-wrap:wrap;gap:3px 10px;color:var(--srh-muted);font-size:.56rem;font-weight:700}
.sports-result-match__live{color:#fca5a5}
.sports-result-match__note{color:var(--srh-gold)}
.sports-result-partials summary{color:var(--srh-gold);font-size:.58rem;font-weight:800;cursor:pointer}
.sports-result-partials__scroll{margin-top:5px;overflow-x:auto}
.sports-result-partials table{width:100%;border-collapse:collapse;color:var(--srh-muted);font:700 .56rem 'Courier New',monospace}
.sports-result-partials th,.sports-result-partials td{padding:3px 4px;border-bottom:1px solid var(--srh-border);text-align:center;white-space:nowrap}
.sports-result-partials tbody th{max-width:96px;overflow:hidden;color:var(--srh-text);font-family:inherit;text-align:left;text-overflow:ellipsis}
.sports-result-partials .is-total{color:var(--srh-gold)}
.sports-result-partials .is-pending{opacity:.45}
@media(prefers-reduced-motion:reduce){.sports-result-league__status--live i{animation:none}}
html[data-theme="light"] .sports-result-league__status--live,html[data-theme="light"] .sports-result-match__live,html[data-theme="light"] .sports-result-match--vivo .sports-result-match__meta span{color:var(--srh-red-ink)}
html[data-theme="light"] .sports-result-match__note,html[data-theme="light"] .sports-result-partials summary,html[data-theme="light"] .sports-result-partials .is-total{color:var(--srh-gold-ink)}
