/* FootStacks — estilos compartidos, sin dependencias externas. */
:root {
  color-scheme: dark;
  --bg: #090e22; --panel: #11172e; --panel-2: #171e38; --panel-hover: #1c2545;
  --text: #f4f5ff; --muted: #a8b1cd; --line: #28314d; --accent: #a996ff;
  --green: #83e5b5; --green-bg: #17372f; --header: #0b1024; --input: #0c1228;
  --shadow: 0 16px 48px #00000020;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f3fa; --panel: #fff; --panel-2: #eceef8; --panel-hover: #e6e9f6;
  --text: #1b2240; --muted: #58627e; --line: #d5daea; --accent: #6450ce;
  --green: #19714d; --green-bg: #e1f5eb; --header: #ffffff; --input: #f9faff;
  --shadow: 0 12px 35px #29345909;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--panel); border: 2px solid var(--accent); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.header { min-height: 84px; padding: 0 max(4%, calc((100% - 1320px)/2)); display: flex; align-items: center; gap: 32px; background: var(--header); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 850; letter-spacing: -.9px; white-space: nowrap; }
.brand-mark { display: block; width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand-dot { color: var(--accent); margin-left: -8px; }
.header nav { display: flex; align-items: stretch; align-self: stretch; justify-content: center; gap: 28px; margin-left: auto; }
.header nav a { display: flex; align-items: center; gap: 7px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; color: var(--muted); font-size: 14px; font-weight: 650; }
.header nav a:hover { color: var(--text); }
.header nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.nav-count { background: var(--panel-2); border-radius: 7px; padding: 1px 6px; font-size: 11px; color: var(--muted); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 24px; }
.icon-button:hover, .small-button:hover { background: var(--panel-hover); }
.shell { width: min(1320px, 92%); margin: 32px auto 70px; outline: none; }
.hero { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 45px; padding: 44px 48px; border: 1px solid #4a4178; border-radius: 24px; background: radial-gradient(ellipse at 100% 0%, #6331a76b, transparent 62%), linear-gradient(120deg, #132e73, #161837 57%, #291547); color: #f4f5ff; overflow: hidden; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.hero .eyebrow { color: #d1d6f1; }
.green-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.hero .green-dot { background: #83e5b5; box-shadow: 0 0 12px #83e5b560; }
.hero h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -2.4px; margin: 20px 0 18px; font-weight: 800; }
.hero h1 span { color: #b7a5ff; }
.hero-copy > p { color: #c1c8e2; font-size: 14px; line-height: 1.8; max-width: 405px; margin: 0 0 25px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 43px; padding: 10px 19px; border: 0; border-radius: 10px; background: #b3a2ff; color: #17112f; font-size: 13px; font-weight: 750; }
.primary-button:hover { background: #c3b5ff; }
.hero-feature { border: 1px solid #ffffff24; background: #0d14266e; border-radius: 18px; padding: 22px 25px 0; min-width: 0; }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature-label { color: #b2b6d3; font-size: 8px; font-weight: 750; letter-spacing: .7px; }
.feature-league { color: #b6beda; font-size: 12px; margin: 13px 0 22px; }
.feature-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.feature-teams > div { text-align: center; }
.feature-teams strong { display: block; margin-top: 11px; font-size: 13px; }
.feature-score { font-size: 38px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.feature-score > span { color: #727999; }
.feature-score small { display: block; color: #92e1be; font-size: 10px; font-weight: 500; letter-spacing: 0; margin-top: 5px; }
.feature-link { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-top: 1px solid #ffffff20; margin-top: 22px; font-size: 12px; color: #d9daf1; }
.feature-link:hover { color: #fff; }
.team-badge { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 40px; border: 1px solid color-mix(in srgb, var(--team-color) 55%, transparent); border-radius: 10px 10px 14px 14px; background: color-mix(in srgb, var(--team-color) 14%, var(--panel)); color: var(--team-color); font-size: 10px; font-weight: 900; flex-shrink: 0; letter-spacing: -.2px; }
.team-badge.large { width: 62px; height: 70px; font-size: 17px; border-radius: 14px 14px 23px 23px; }
[data-theme="light"] .team-badge { background: color-mix(in srgb, var(--team-color) 35%, white); color: #25304b; }
.demo-notice { display: flex; align-items: center; gap: 12px; padding: 15px 4px; margin-bottom: 16px; color: var(--muted); font-size: 11px; }
.demo-notice p { margin: 0; flex: 1; }
.demo-notice p > span { display: block; margin-top: 3px; }
.demo-pill { display: inline-block; border: 1px solid var(--line); padding: 3px 6px; border-radius: 5px; font-size: 8px; letter-spacing: 1px; font-weight: 800; color: var(--muted); }
.text-button { border: 0; background: none; color: var(--accent); font-size: 11px; padding: 8px 0; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.storage-warning { padding: 12px 16px; background: var(--panel-2); border-left: 3px solid #f0b95f; font-size: 12px; }
.dashboard { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 30px; }
.sidebar { border-right: 1px solid var(--line); padding-right: 24px; }
.sidebar-heading { padding: 4px 10px 20px; }
.sidebar-heading .eyebrow { color: var(--muted); font-size: 9px; }
.sidebar-heading h2 { font-size: 16px; margin: 5px 0 0; }
.league-list { display: flex; flex-direction: column; gap: 5px; }
.league-button { border: 1px solid transparent; background: none; display: flex; align-items: center; gap: 9px; padding: 12px 10px; width: 100%; text-align: left; border-radius: 10px; color: var(--muted); font-size: 12px; }
.league-button > span:nth-child(2) { flex: 1; }
.league-button small { font-size: 10px; }
.league-button:hover { background: var(--panel); color: var(--text); }
.league-button.selected { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.league-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--league-color); background: color-mix(in srgb, var(--league-color) 12%, var(--panel)); border-radius: 8px; width: 27px; height: 29px; flex-shrink: 0; font-size: 9px; font-weight: 900; }
[data-theme="light"] .league-icon { color: #344263; background: color-mix(in srgb, var(--league-color) 25%, white); }
.sidebar-tip { padding: 20px 16px; margin: 32px 0 0; border: 1px solid var(--line); background: linear-gradient(140deg, var(--panel-2), var(--panel)); border-radius: 14px; }
.sidebar-tip > span { font-size: 28px; color: var(--accent); }
.sidebar-tip h3 { font-size: 13px; margin: 8px 0; }
.sidebar-tip p { color: var(--muted); font-size: 11px; margin: 0; line-height: 1.8; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 0 21px; }
.section-heading .eyebrow { color: var(--muted); font-size: 9px; }
.section-heading h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.7px; }
.timezone { font-size: 10px; color: var(--muted); padding-bottom: 4px; }
.date-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.date-navigation { display: flex; align-items: center; gap: 14px; }
.date-caption { min-width: 180px; text-align: center; }
.date-caption strong { display: block; font-size: 14px; text-transform: capitalize; }
.date-caption span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.date-actions { display: flex; align-items: center; gap: 9px; }
.small-button { padding: 10px 14px; min-height: 41px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; font-weight: 600; white-space: nowrap; }
.calendar-control { display: flex; flex-direction: column; gap: 2px; font-size: 9px; color: var(--muted); }
.calendar-control input { color: var(--text); background: var(--input); border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; font-size: 11px; min-width: 0; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.day-button { display: flex; align-items: center; flex-direction: column; gap: 3px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 11px; padding: 10px 3px 8px; }
.day-button > span { font-size: 10px; text-transform: capitalize; }
.day-button strong { font-size: 18px; color: var(--text); }
.day-button i { width: 4px; height: 4px; border-radius: 50%; background: transparent; margin-top: 3px; }
.day-button i.has-games { background: var(--muted); }
.day-button:hover { background: var(--panel-hover); }
.day-button.selected { border-color: #a48af6; background: #ab93ff1f; color: var(--accent); }
.day-button.selected strong { color: var(--accent); }
.day-button.selected i { background: var(--accent); }
.tools { display: flex; gap: 9px; }
.search-field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--input); padding: 0 13px; }
.search-field > span:first-child { color: var(--muted); font-size: 24px; }
.search-field:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-field input { width: 100%; min-width: 0; padding: 12px 0; border: 0; background: transparent; color: var(--text); font-size: 12px; outline: none; }
.search-field input::placeholder { color: var(--muted); }
.filter-field { min-width: 0; }
.filter-field select { height: 100%; min-height: 44px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px; padding: 10px; font-size: 11px; max-width: 100%; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.summary > div { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 7px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.summary strong { font-size: 17px; }
.summary span:last-child { color: var(--muted); font-size: 10px; }
.summary-icon { color: var(--accent); font-size: 13px; }
.results-count { color: var(--muted); font-size: 11px; margin: 21px 0 12px; }
.match-group { margin-bottom: 18px; }
.group-heading { display: flex; align-items: center; gap: 9px; padding: 9px 2px; }
.group-heading h3 { font-size: 13px; font-weight: 750; margin: 0; flex: 1; }
.group-heading h3 small { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.group-heading > span:last-child { color: var(--muted); font-size: 10px; }
.match-card { display: flex; align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; transition: background .15s, border-color .15s; }
.match-card:hover { background: var(--panel-hover); border-color: #726093; }
.match-link { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; padding: 19px 16px; }
.match-link:focus-visible { outline-offset: -4px; }
.match-time { min-width: 77px; display: flex; flex-direction: column; gap: 4px; }
.match-time > strong { font-size: 12px; font-weight: 650; }
.status { font-size: 9px; font-weight: 650; color: var(--muted); }
.status.directo { color: var(--green); }
.status.finalizado { color: var(--accent); }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); align-items: center; gap: 14px; flex: 1; min-width: 0; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; font-weight: 650; }
.team > span:not(.team-badge) { overflow-wrap: anywhere; }
.team.home { justify-content: flex-end; text-align: right; }
.score { text-align: center; font-size: 19px; white-space: nowrap; letter-spacing: .5px; }
.score-dash { color: var(--muted); margin: 0 6px; font-weight: 400; }
.versus { font-size: 11px; font-weight: 500; color: var(--muted); }
.match-arrow { color: var(--muted); font-size: 15px; }
.favorite-button { background: transparent; border: 0; border-left: 1px solid var(--line); padding: 0 16px; color: var(--muted); font-size: 24px; }
.favorite-button:hover { color: #e9c66f; background: #e9c66f08; }
.favorite-button.saved { color: #e9c66f; }
[data-theme="light"] .favorite-button.saved { color: #886211; }
.empty-state { padding: 50px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; background: var(--panel); }
.empty-state > span { font-size: 35px; color: var(--accent); }
.empty-state h3 { font-size: 19px; margin: 12px 0; }
.empty-state p { font-size: 13px; color: var(--muted); max-width: 480px; margin: 0 auto 20px; }
.empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.competition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.competition-card { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.competition-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.league-icon.big { width: 47px; height: 50px; font-size: 14px; border-radius: 12px; }
.competition-card > .eyebrow { color: var(--muted); font-size: 9px; }
.competition-card h3 { font-size: 21px; margin: 4px 0 10px; }
.competition-card > p:not(.eyebrow) { color: var(--muted); font-size: 11px; }
.team-stack { display: flex; gap: 6px; margin: 20px 0; }
.competition-link { display: flex; justify-content: space-between; font-size: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 650; }
.detail-view { max-width: 1000px; margin: 0 auto; }
.detail-toolbar { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin: 22px 0; }
.back-link { color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--text); }
.favorite-detail { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 14px; background: var(--panel); }
.favorite-detail span { font-size: 12px; }
.scoreboard { padding: 30px 35px; background: linear-gradient(140deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.scoreboard-league { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.scoreboard > .status { display: inline-block; margin: 20px 0 0; font-size: 11px; background: var(--panel); border: 1px solid var(--line); padding: 4px 10px; border-radius: 20px; }
.scoreboard-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 25px; margin: 20px 0 30px; }
.scoreboard-teams .team-badge { width: 78px; height: 90px; font-size: 21px; }
.scoreboard-teams h2 { font-size: 19px; margin: 13px 0 3px; overflow-wrap: anywhere; }
.scoreboard-teams > div > span:not(.team-badge) { font-size: 11px; color: var(--muted); }
.big-score { font-size: 48px; font-weight: 800; white-space: nowrap; }
.big-score small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; }
.match-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 11px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.detail-box { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 25px; }
.detail-box h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 24px; }
.muted { color: var(--muted); }
.detail-box > p { font-size: 13px; }
.stat-row { margin-bottom: 20px; }
.stat-row > div:first-child { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 7px; }
.stat-row > div > span { color: var(--muted); }
.stat-track { height: 5px; border-radius: 5px; background: #7c9ce5; overflow: hidden; }
.stat-track > span { display: block; height: 100%; background: #ae8feb; border-right: 3px solid var(--panel); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border: 0; }
.timeline time { font-size: 11px; color: var(--muted); min-width: 24px; }
.timeline strong { display: block; font-size: 12px; }
.timeline div span { color: var(--muted); display: block; font-size: 10px; margin-top: 2px; }
.detail-disclaimer { text-align: center; font-size: 11px; color: var(--muted); margin: 22px 0; }
footer { width: min(1320px, 92%); display: flex; align-items: center; gap: 25px; margin: 0 auto; padding: 27px 0; border-top: 1px solid var(--line); }
footer .logo { font-size: 19px; }
footer p { font-size: 11px; color: var(--muted); }
footer small { margin-left: auto; font-size: 10px; color: var(--muted); }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); border-radius: 12px; padding: 13px 20px; max-width: min(500px, 90%); font-size: 13px; box-shadow: var(--shadow); transition: opacity .15s, transform .15s; z-index: 100; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1500px) { .hero { min-height: 350px; } }
@media (max-width: 1100px) {
  .header { gap: 20px; padding: 0 4%; }
  .header nav { gap: 18px; }
  .hero { gap: 25px; padding: 32px; }
  .dashboard { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .sidebar { padding-right: 14px; }
  .league-button { padding: 10px 6px; font-size: 11px; }
  .date-toolbar { flex-wrap: wrap; }
  .date-actions { margin-left: auto; }
  .match-link { gap: 10px; padding: 15px 10px; }
  .match-teams { gap: 8px; }
  .team { gap: 7px; font-size: 11px; }
  .match-arrow { display: none; }
  .favorite-button { padding: 0 12px; }
  .favorite-detail { padding: 7px 14px; }
  .summary > div { gap: 5px; }
  .summary span:last-child { font-size: 9px; }
}
@media (max-width: 820px) {
  .header { flex-wrap: wrap; padding-top: 14px; gap: 8px 20px; }
  .header .logo { font-size: 22px; }
  .header > .icon-button { margin-left: auto; }
  .header nav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 12px; min-height: 52px; }
  .header nav a { font-size: 12px; }
  .shell { margin-top: 22px; }
  .hero { grid-template-columns: 1fr 1fr; padding: 28px; gap: 20px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
  .hero-copy > p { font-size: 12px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .hero-feature { padding: 18px 14px 0; }
  .feature-label { display: none; }
  .feature-teams { gap: 8px; }
  .feature-teams .large { width: 45px; height: 54px; font-size: 12px; }
  .feature-score { font-size: 28px; }
  .feature-teams strong { font-size: 11px; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { border: 0; padding: 0; min-width: 0; }
  .sidebar-heading, .sidebar-tip { display: none; }
  .league-list { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .league-button { width: auto; white-space: nowrap; padding: 9px; background: var(--panel); }
  .league-button small { display: none; }
  .date-toolbar { flex-wrap: nowrap; }
  .summary span:last-child { font-size: 10px; }
  .match-link { padding: 18px 14px; }
  .team { font-size: 12px; }
}
@media (max-width: 560px) {
  .header nav { gap: 8px; }
  .header nav a { font-size: 11px; }
  .shell { width: 92%; margin-bottom: 40px; }
  .hero { grid-template-columns: 1fr; padding: 28px 22px; gap: 25px; border-radius: 18px; }
  .hero h1 { font-size: 43px; margin-top: 15px; }
  .hero-copy > p { max-width: 320px; font-size: 13px; }
  .hero-feature { padding: 18px 20px 0; }
  .feature-label { display: inline; }
  .feature-teams .large { width: 48px; height: 55px; }
  .feature-score { font-size: 33px; }
  .feature-league { margin: 9px 0 16px; }
  .feature-link { margin-top: 17px; }
  .demo-notice { flex-wrap: wrap; gap: 8px; padding: 14px 0; }
  .demo-notice p { font-size: 10px; min-width: 220px; }
  .demo-notice .text-button { padding: 0; margin-left: 44px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 23px; }
  .timezone { max-width: 85px; text-align: right; font-size: 9px; margin-top: 8px; }
  .date-toolbar { flex-wrap: wrap; justify-content: center; }
  .date-navigation { width: 100%; justify-content: space-between; }
  .date-caption { min-width: 0; }
  .date-actions { margin: 0; width: 100%; justify-content: space-between; }
  .calendar-control { flex-direction: row; align-items: center; gap: 8px; font-size: 10px; }
  .calendar-control input { max-width: 144px; min-height: 37px; }
  .week-strip { gap: 5px; margin: 15px 0; }
  .day-button { padding-top: 8px; }
  .day-button strong { font-size: 16px; }
  .tools { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .filter-field { flex: 1; }
  .filter-field select { width: 100%; }
  .summary { gap: 6px; }
  .summary > div { flex-wrap: wrap; gap: 4px 6px; padding: 10px 5px; }
  .summary span:last-child { width: 100%; text-align: center; font-size: 9px; }
  .match-link { padding: 13px 10px; flex-direction: column; align-items: stretch; gap: 10px; }
  .match-time { flex-direction: row; justify-content: space-between; align-items: center; }
  .match-time > strong { font-size: 10px; }
  .match-teams { grid-template-columns: minmax(0, 1fr) 43px minmax(0, 1fr); gap: 6px; }
  .team { font-size: 10px; gap: 6px; }
  .team-badge { width: 25px; height: 30px; font-size: 8px; border-radius: 7px 7px 11px 11px; }
  .score { font-size: 17px; }
  .score-dash { margin: 0 4px; }
  .favorite-button { padding: 0 10px; }
  .favorite-detail { padding: 7px 10px; }
  .group-heading h3 small { display: none; }
  .competition-grid { grid-template-columns: 1fr; }
  .team-stack .team-badge { width: 35px; height: 40px; font-size: 10px; }
  .detail-toolbar { gap: 9px; }
  .back-link { font-size: 11px; }
  .favorite-detail span { font-size: 10px; }
  .scoreboard { padding: 23px 13px; }
  .scoreboard-teams { gap: 10px; }
  .scoreboard-teams .team-badge { width: 48px; height: 60px; font-size: 13px; }
  .scoreboard-teams h2 { font-size: 13px; }
  .big-score { font-size: 30px; }
  .big-score small { font-size: 8px; white-space: normal; max-width: 90px; }
  .match-facts { gap: 8px; }
  .detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .detail-box { padding: 22px; }
  footer { flex-wrap: wrap; gap: 10px; }
  footer p { margin-left: auto; }
  footer small { width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
/* Agenda de selecciones: partidos primero, controles compactos. */
.header { min-height:66px; }
.shell { margin-top:18px; }
.hero.compact-hero { display:flex; align-items:center; justify-content:space-between; min-height:0; gap:15px; padding:0 2px 14px; border:0; border-radius:0; background:none; color:var(--text); }
.compact-hero .eyebrow { color:var(--accent); font-size:9px; letter-spacing:1.5px; }
.hero.compact-hero h1 { margin:3px 0 0; font-size:23px; line-height:1.2; letter-spacing:-.7px; }
.compact-hero > p { margin:0; font-size:11px; color:var(--muted); }
.highlights { margin-bottom:10px; }
.highlights-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 9px; }
.highlights-heading h2 { margin:0; font-size:12px; font-weight:650; color:var(--muted); }
.highlights-heading > span { font-size:11px; color:var(--muted); }
.highlight-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.highlight-card { min-width:0; border:1px solid #534679; border-radius:14px; background:linear-gradient(140deg,var(--panel-2),var(--panel)); overflow:hidden; }
.highlight-card:hover { border-color:var(--accent); }
.highlight-meta { display:flex; align-items:center; justify-content:space-between; padding:6px 12px 0; gap:5px; }
.highlight-meta > span { font-size:10px; color:var(--muted); }
.highlight-meta .favorite-button { font-size:23px; border:0; padding:0 3px; min-width:30px; min-height:30px; }
.highlight-link { display:block; padding:7px 14px 10px; }
.highlight-link:focus-visible { outline-offset:-4px; }
.highlight-card .feature-teams { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:7px; }
.highlight-card .feature-score { color:var(--text); font-size:36px; line-height:1.15; letter-spacing:-1px; }
.highlight-card .feature-score small { color:var(--muted); font-size:9px; font-weight:400; max-width:110px; white-space:normal; line-height:1.4; }
.highlight-card .feature-teams strong { margin-top:6px; font-size:11px; font-weight:600; min-height:30px; }
.highlight-bottom { display:flex; justify-content:space-between; gap:8px; padding-top:8px; margin-top:6px; border-top:1px solid var(--line); color:var(--muted); font-size:9px; }
.highlight-bottom > span:last-child { color:var(--accent); }
.highlight-empty { grid-column:1/-1; margin:0; padding:15px; border:1px dashed var(--line); border-radius:10px; color:var(--muted); font-size:12px; }
.national-crest.team-badge { flex-direction:column; justify-content:center; gap:2px; height:40px; width:34px; overflow:hidden; border-radius:7px 7px 13px 13px; }
.national-crest > img { display:block; width:24px; height:16px; object-fit:contain; }
.national-crest > span { font-size:8px; line-height:1; }
.national-crest.team-badge.large { width:49px; height:55px; border-radius:10px 10px 18px 18px; gap:5px; }
.national-crest.large > img { width:34px; height:23px; }
.national-crest.large > span { font-size:9px; }
.flag-name { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-width:0; }
.flag-name img { display:inline-block; width:18px; height:12px; object-fit:contain; flex-shrink:0; }
.flag-name > span { overflow-wrap:anywhere; }
.demo-notice { margin-bottom:12px; padding:8px 0; font-size:10px; }
.demo-notice p > span { display:inline; margin:0 0 0 6px; }
.demo-notice .text-button { font-size:10px; white-space:nowrap; }
.dashboard { gap:24px; }
.section-heading { margin-bottom:10px; }
.section-heading h2 { font-size:21px; }
.section-heading .eyebrow { display:none; }
.date-toolbar { gap:9px; padding:7px 10px; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.date-navigation { gap:9px; }
.date-navigation .icon-button { width:32px; height:32px; font-size:21px; border:0; background:var(--panel-2); border-radius:7px; }
.date-caption { min-width:157px; }
.date-caption strong { font-size:12px; }
.date-caption span { font-size:10px; margin:0; }
.date-actions { gap:7px; }
.date-actions .small-button { min-height:32px; padding:5px 11px; font-size:11px; }
.calendar-control { flex-direction:row; align-items:center; gap:6px; }
.calendar-control input { max-width:140px; min-height:30px; padding:4px 5px; font-size:10px; }
.quick-days { display:flex; gap:6px; margin:8px 0; }
.quick-days .day-button { display:inline-block; padding:4px 12px; font-size:10px; border-radius:6px; }
.tools { gap:7px; }
.search-field input { padding:9px 0; font-size:11px; }
.filter-field select { min-height:37px; padding:7px; }
.tools > .small-button { min-height:37px; padding:7px 12px; font-size:11px; }
.summary { display:flex; flex-wrap:wrap; gap:14px; margin:8px 0; }
.summary > div { padding:0; border:0; border-radius:0; background:none; gap:5px; }
.summary strong { font-size:12px; }
.summary span:last-child { font-size:10px; }
.summary .green-dot { background:var(--muted); width:5px; height:5px; }
.results-count { margin:10px 0 3px; }
.match-link { padding-top:13px; padding-bottom:13px; }
.match-teams .score { font-size:24px; }
.match-teams .versus { font-size:22px; }
.detail-disclaimer a { color:var(--accent); text-decoration:underline; }
.scoreboard-teams .national-crest { width:70px; height:82px; }
.scoreboard-teams .national-crest img { width:49px; height:33px; }
.scoreboard-teams .national-crest > span { font-size:13px; }
@media(max-width:1100px) {
 .highlight-card .feature-score { font-size:29px; }
 .highlight-card .feature-teams { gap:5px; }
 .highlight-link { padding-left:10px; padding-right:10px; }
 .date-toolbar { flex-wrap:wrap; }
}
@media(max-width:820px) {
 .header { min-height:60px; }
 .hero.compact-hero { padding-bottom:12px; }
 .highlight-grid { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(285px,47%); overflow-x:auto; padding-bottom:5px; scroll-snap-type:x proximity; }
 .highlight-card { scroll-snap-align:start; }
 .highlight-card .feature-score { font-size:34px; }
 .demo-notice p > span { display:block; margin-left:0; }
 .dashboard { gap:8px; }
 .league-button { padding:6px 9px; }
 .date-toolbar { flex-wrap:nowrap; }
}
@media(max-width:560px) {
 .shell { margin-top:12px; }
 .hero.compact-hero { padding:0 0 10px; }
 .hero.compact-hero h1 { font-size:18px; }
 .compact-hero .eyebrow { font-size:8px; }
 .compact-hero > p { display:none; }
 .highlight-grid { grid-auto-columns:88%; }
 .highlight-card .feature-score { font-size:32px; }
 .highlight-card .flag-name { flex-wrap:wrap; }
 .demo-notice { gap:6px; margin:0 0 8px; }
 .demo-notice p { min-width:180px; font-size:9px; }
 .demo-notice .text-button { margin-left:0; padding:0; }
 .date-toolbar { padding:6px 8px; flex-wrap:wrap; gap:5px; }
 .date-navigation { width:auto; flex:1; gap:6px; }
 .date-caption { min-width:0; }
 .date-actions { width:auto; margin:0; gap:6px; }
 .calendar-control { font-size:0; }
 .calendar-control input { width:112px; min-height:30px; font-size:10px; }
 .quick-days { margin:6px 0; gap:5px; }
 .quick-days .day-button { flex:1; font-size:9px; padding:4px 6px; }
 .tools { flex-wrap:nowrap; }
 .search-field { flex-basis:auto; padding:0 8px; gap:5px; }
 .filter-field { flex:0 1 116px; }
 .filter-field select { font-size:9px; padding:5px; }
 .tools > .small-button { padding:5px 7px; font-size:10px; }
 .summary { gap:8px; margin:7px 0; }
 .summary > div { flex-wrap:nowrap; gap:3px; }
 .summary span:last-child { width:auto; font-size:8px; }
 .summary-icon { font-size:10px; }
 .match-teams .flag-name { flex-direction:column; gap:3px; }
 .match-teams .national-crest { width:25px; height:32px; }
 .match-teams .national-crest img { width:19px; height:13px; }
 .match-teams .national-crest > span { font-size:6px; }
 .scoreboard-teams .national-crest { width:48px; height:60px; }
 .scoreboard-teams .national-crest img { width:34px; height:23px; }
 .scoreboard-teams .national-crest > span { font-size:9px; }
}
