:root {
  --navy: #092b63;
  --navy-2: #123d78;
  --gold: #ffb81c;
  --ink: #172033;
  --muted: #627086;
  --line: #d8dee8;
  --panel: #ffffff;
  --surface: #f5f7fb;
  --danger: #b42318;
  --ok: #16724b;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* Oculta el selector de inicio si se navega directo a un tab (evita flash) */
[data-tab] #stageSelector {
  display: none !important;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
}

/* ── PAGE HERO (Partidos / Posiciones) ──────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: clamp(240px, 32vw, 300px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(122deg, transparent 0 18%, rgba(255,255,255,.035) 18% 28%, transparent 28% 100%),
    linear-gradient(62deg, transparent 0 68%, rgba(255,255,255,.03) 68% 76%, transparent 76% 100%),
    radial-gradient(circle at 56% 20%, rgba(24, 73, 120, .45), transparent 34%),
    linear-gradient(145deg, #092c5a 0%, #071f42 48%, #031224 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: -20%;
  right: -20%;
  bottom: -90px;
  height: 180px;
  background: var(--surface);
  border-top: 6px solid var(--gold);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.page-hero-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  min-height: clamp(240px, 32vw, 300px);
  margin: 0 auto;
  padding: 20px 0 50px;
}

.page-hero-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 64px);
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  letter-spacing: .08em;
  text-shadow: 0 3px 10px rgba(0,0,0,.26);
}

.page-hero-logo {
  align-self: center;
  width: clamp(130px, 20vw, 240px);
  height: clamp(130px, 20vw, 240px);
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
}

.page-hero-right {
  justify-self: end;
  display: flex;
  align-items: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 10px clamp(14px, 4vw, 44px);
  color: #fff;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #d7e5ff;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.topbar-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.back-button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.back-button:hover {
  background: rgba(255,255,255,0.22);
}

.sync {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 13px;
  color: #d7e5ff;
}

.active-phase-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 184, 28, 0.16);
}

.sync-dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(22, 114, 75, 0.18);
}

.sync-dot.error {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.18);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 21px;
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 0;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* ── BOTTOM NAV ───────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(760px, 100%);
  z-index: 30;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: rgba(4, 22, 48, .94);
  border-top: 1px solid rgba(255,255,255,.16);
  border-radius: 26px 26px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -14px 34px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bn-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 10px;
  border: none;
  background: none;
  color: rgba(255,255,255,.65);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.bn-tab svg {
  width: 22px;
  height: 22px;
  transition: stroke-width 0.15s;
}

.bn-tab.bn-active {
  color: var(--gold);
}

.bn-tab.bn-active svg {
  stroke-width: 2.4;
}

.notice-bar {
  padding: 10px 18px;
  margin-bottom: 22px;
  background: #fff8e1;
  border: 1.5px solid #ffb81c;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #7a4f00;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 2fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.search-block,
.filter-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-block input,
.filter-row select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-transform: none;
}

.search-block input:focus,
.filter-row select:focus {
  outline: 3px solid rgba(255, 184, 28, 0.35);
  border-color: var(--gold);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.status-panel {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #f1b2ac;
  border-radius: 8px;
  color: #7a271a;
  background: #fff5f4;
  font-weight: 650;
}

.status-panel a {
  color: #7a271a;
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.stage-selector {
  display: grid;
  gap: 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 44px 24px 40px;
  border-radius: 16px;
  background: linear-gradient(160deg, #0a2350 0%, #092b63 55%, #051830 100%);
  border: 1px solid rgba(255,184,28,0.18);
  box-shadow: 0 8px 40px rgba(9,43,99,0.25);
}

.hero-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,184,28,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 4px;
}

.hero-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 8vw, 64px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero-year {
  color: var(--gold);
}

.hero-dates {
  margin: 4px 0 0;
  color: rgba(200, 215, 255, 0.85);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-sports {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 215, 255, 0.65);
  margin-top: 2px;
}

.hero-location {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(200,215,255,0.75);
}

.hero-sync {
  margin: 0;
  font-size: 12px;
  color: rgba(200,215,255,0.5);
  font-weight: 500;
}

/* ── STATS STRIP ──────────────────────────────────────────────────────────── */
.stats-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 14px;
  background: var(--gold);
}

/* Mitad izquierda navy con corte diagonal */
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  clip-path: polygon(0 0, 54% 0, 46% 100%, 0 100%);
  z-index: 0;
}

.stat-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 8px;
  gap: 4px;
}

/* Los dos primeros sobre navy → texto blanco */
.stat-item:nth-child(1),
.stat-item:nth-child(2) {
  color: #fff;
}

/* Los dos últimos sobre dorado → texto navy */
.stat-item:nth-child(3),
.stat-item:nth-child(4) {
  color: var(--navy);
}

.stat-num {
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: clamp(10px, 2.5vw, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* ── PICK LABEL ───────────────────────────────────────────────────────────── */
.pick-label {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── STAGE CARDS ──────────────────────────────────────────────────────────── */
.stage-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stage-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(9,43,99,0.06);
}

.stage-card:hover,
.stage-card:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(9,43,99,0.13), 0 0 0 3px rgba(255,184,28,0.2);
  transform: translateY(-2px);
}

.sc-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--navy);
}

.sc-icon svg {
  width: 26px;
  height: 26px;
}

.sc-body {
  display: grid;
  gap: 5px;
}

.sc-title {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.sc-desc {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}

.sc-count {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  background: rgba(255,184,28,0.12);
  border: 1px solid rgba(255,184,28,0.3);
  border-radius: 100px;
  color: #7a4f00;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── HOME DASHBOARD ───────────────────────────────────────────────────────── */
.home-shell {
  gap: 18px;
}

.home-hero-card {
  padding: 48px 24px 44px;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(9, 43, 99, 0.18);
}

.home-stats {
  min-height: 122px;
  box-shadow: 0 8px 22px rgba(9, 43, 99, 0.10);
}

.home-matchboard,
.home-featured {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(9, 43, 99, 0.06);
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-section-head h3,
.home-upcoming-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.1;
}

.home-section-head.compact h3 {
  font-size: 20px;
}

.home-section-kicker {
  display: block;
  margin-bottom: 3px;
  color: #8a5d00;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.home-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 184, 28, 0.48);
  border-radius: 999px;
  color: #714900;
  background: rgba(255, 184, 28, 0.12);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.home-next-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 130px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(9, 43, 99, 0.18);
  border-radius: 16px;
  color: var(--navy);
  background:
    linear-gradient(110deg, rgba(255,255,255,.96), rgba(255,255,255,.86)),
    linear-gradient(135deg, rgba(9,43,99,.10), rgba(255,184,28,.14));
}

.home-next-label {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 170px;
  transform: translateX(-50%);
  padding: 6px 18px 7px;
  border-radius: 0 0 18px 18px;
  color: var(--navy);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-next-time {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.home-next-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.home-team {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.home-team .school-logo,
.home-team-logo {
  width: 54px !important;
  height: 54px !important;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.empty-logo {
  display: inline-block;
  background: linear-gradient(135deg, #eef3fb, #dfe7f2);
}

.home-vs {
  color: #8a5d00;
  font-size: 26px;
  font-weight: 900;
}

.home-next-details {
  display: grid;
  gap: 8px;
  min-width: 190px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.home-next-details span {
  display: block;
}

.home-detail-row {
  display: flex !important;
  align-items: flex-start;
  gap: 5px;
}

.home-detail-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.65;
}

.home-upcoming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.home-upcoming-list {
  display: grid;
  gap: 8px;
}

.home-upcoming-item {
  display: grid;
  grid-template-columns: 72px 1fr 150px 22px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-upcoming-item:hover,
.home-upcoming-item:focus-visible {
  outline: none;
  border-color: rgba(255, 184, 28, 0.68);
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.14);
}

.home-upcoming-time {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.home-upcoming-teams {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-upcoming-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.home-upcoming-arrow {
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.home-upcoming-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #f9fbff;
  font-weight: 700;
  text-align: center;
}

.home-actions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-featured {
  padding-bottom: 18px;
}

.home-photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-photo-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 132px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  background: #0b234a;
  box-shadow: 0 3px 12px rgba(9, 43, 99, 0.12);
}

.home-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  display: block;
}

.home-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,12,28,0.05), rgba(3,12,28,0.68));
}

.home-photo-card span {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 10px;
  font-size: 16px;
  font-weight: 850;
}

.home-shell .info-section,
.home-shell .canchas-section,
.home-shell .cancha-lightbox {
  display: none !important;
}

.phase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  background: var(--panel);
}

.phase-bar div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.phase-bar strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
}

.phase-bar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.secondary-button {
  flex: 0 0 auto;
  height: 34px;
  border: 1px solid var(--navy);
  border-radius: 7px;
  padding: 0 12px;
  color: #fff;
  background: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.summary div {
  min-height: 72px;
  padding: 14px 16px;
  background: var(--panel);
}

.summary strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: var(--navy);
}

.summary span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 12px;
}

h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.results-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.results {
  display: grid;
  gap: 10px;
}

.day-group {
  display: grid;
  gap: 8px;
}

.day-title {
  margin: 18px 0 2px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-card {
  display: grid;
  grid-template-columns: 82px 1.4fr 1fr 1.15fr;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--panel);
}

.time {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
}

.teams {
  min-width: 0;
  font-weight: 850;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.team-chip.selected {
  color: var(--navy);
}

.team-chip.selected span {
  background: rgba(255, 184, 28, 0.34);
  border-radius: 3px;
  padding: 0 2px;
}

.school-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  background: #fff;
  padding: 2px;
}

.meta,
.court {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.court strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  text-align: center;
  font-weight: 750;
}

@media (max-width: 860px) {
  .stage-actions {
    grid-template-columns: 1fr;
  }

  .stage-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .sc-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sync {
    justify-content: flex-start;
    min-width: 0;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-card {
    grid-template-columns: 72px 1fr;
  }

  .time {
    align-self: start;
    grid-row: 1 / span 3;
  }

  .meta,
  .court {
    grid-column: 2;
  }
}

@media (max-width: 540px) {
  .topbar {
    min-height: auto;
    gap: 8px;
    padding: 10px 12px;
    border-bottom-width: 3px;
  }

  .brand {
    gap: 10px;
  }

  main {
    width: min(100% - 16px, 1180px);
    margin: 10px auto 28px;
  }

  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    padding: 3px;
  }

  .eyebrow {
    font-size: 10px;
    line-height: 1.1;
  }

  h1 {
    font-size: 23px;
  }

  .sync {
    width: 100%;
    gap: 8px;
    font-size: 12px;
  }

  #syncText {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .icon-button {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .controls {
    gap: 10px;
    margin-bottom: 10px;
  }

  .stage-selector {
    gap: 12px;
  }

  .hero {
    padding: 32px 16px 28px;
    gap: 8px;
    border-radius: 12px;
  }

  .hero-logo {
    width: 70px;
    height: 70px;
  }

  .hero-title {
    font-size: 46px;
  }

  .hero-dates {
    font-size: 13px;
    padding: 7px 16px;
  }

  .hero-sports {
    font-size: 22px;
  }

  .stage-actions {
    gap: 10px;
  }

  .stage-card {
    padding: 16px;
    border-radius: 12px;
  }

  .sc-title {
    font-size: 16px;
  }

  .phase-bar {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .phase-bar strong {
    font-size: 14px;
  }

  .phase-bar span {
    font-size: 12px;
    line-height: 1.25;
  }

  .secondary-button {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .search-block,
  .filter-row label {
    gap: 5px;
    font-size: 10.5px;
  }

  .search-block input,
  .filter-row select {
    height: 38px;
    border-radius: 7px;
    padding: 0 10px;
    font-size: 13px;
  }

  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0 16px;
    border-radius: 7px;
  }

  .summary div {
    min-height: 54px;
    padding: 10px;
  }

  .summary strong {
    font-size: 20px;
  }

  .summary span {
    margin-top: 4px;
    font-size: 10px;
  }

  .results-head {
    gap: 4px;
    margin: 4px 0 8px;
  }

  h2 {
    font-size: 20px;
  }

  .results-head p {
    font-size: 13px;
    line-height: 1.35;
  }

  .results {
    gap: 8px;
  }

  .day-group {
    gap: 7px;
  }

  .day-title {
    margin: 12px 0 2px;
    font-size: 13px;
  }

  .match-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 6px 10px;
    min-height: auto;
    padding: 10px;
    border-left-width: 4px;
  }

  .time {
    font-size: 18px;
  }

  .teams {
    font-size: 14.5px;
    line-height: 1.25;
  }

  .meta,
  .court {
    grid-column: 2;
    font-size: 12px;
    line-height: 1.25;
  }

  .court strong {
    font-size: 13px;
  }

  .empty {
    padding: 18px;
    font-size: 13px;
  }
}

/* ── HOME OSCURO TIPO APP ────────────────────────────────────────────────── */
body.home-mode {
  color: #fff;
  background:
    linear-gradient(128deg, transparent 0 16%, rgba(255,255,255,.045) 16% 25%, transparent 25% 100%),
    linear-gradient(58deg, transparent 0 70%, rgba(255,255,255,.04) 70% 76%, transparent 76% 100%),
    radial-gradient(circle at 50% 0, rgba(31, 80, 136, .58), transparent 46%),
    linear-gradient(160deg, #06244b 0%, #051b38 50%, #020d1d 100%);
}

body.home-mode main {
  width: min(760px, calc(100% - 22px));
  margin-top: 0;
  padding-top: 22px;
}

body.home-mode .home-shell {
  gap: 18px;
}

body.home-mode .home-hero-card {
  min-height: 330px;
  padding: 24px 16px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.home-mode .hero-glow {
  top: 20px;
  width: 360px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(255,184,28,.16), transparent 70%);
}

body.home-mode .hero-logo {
  width: 168px;
  height: 168px;
  margin: 0 0 8px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.42));
}

body.home-mode .hero-eyebrow {
  color: #fff;
  font-size: 27px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.08;
}

body.home-mode .hero-title {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0;
}

body.home-mode .hero-dates {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 650;
}

body.home-mode .hero-dates::before,
body.home-mode .hero-dates::after {
  content: "";
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

body.home-mode .hero-dates::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

body.home-mode .home-stats {
  min-height: 94px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(5, 31, 66, .72);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
}

body.home-mode .home-stats::before {
  display: none;
}

body.home-mode .stat-item {
  color: #fff !important;
  padding: 16px 8px;
  border-left: 1px solid rgba(255,255,255,.10);
}

body.home-mode .stat-item:first-child {
  border-left: 0;
}

body.home-mode .stat-num {
  color: var(--gold);
  font-size: 31px;
  letter-spacing: 0;
}

body.home-mode .stat-label {
  color: rgba(255,255,255,.82);
  font-size: 11px;
  letter-spacing: .04em;
}

body.home-mode .home-matchboard,
body.home-mode .home-featured,
body.home-mode .info-section,
body.home-mode .canchas-section {
  display: grid !important;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

body.home-mode .home-section-head h3,
body.home-mode .home-upcoming-head h3,
body.home-mode .info-section-title {
  color: #fff;
  font-size: 24px;
  font-weight: 850;
}

body.home-mode .home-section-kicker {
  color: var(--gold);
}

body.home-mode .home-journey-date {
  margin: 5px 0 0;
  color: var(--gold);
  font-size: 18px;
  font-weight: 650;
  text-transform: capitalize;
}

body.home-mode .home-link-button {
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 15px;
}

body.home-mode .home-next-card {
  grid-template-columns: 110px 1fr 190px;
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 8px 24px rgba(9,43,99,.12);
}

body.home-mode .home-next-label {
  min-width: 210px;
  border-radius: 0 0 16px 16px;
  color: #071b37;
  background: var(--gold);
}

body.home-mode .home-next-time {
  color: var(--navy);
}

body.home-mode .home-next-teams {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0 18px;
}

body.home-mode .home-team {
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
}

body.home-mode .home-team .school-logo,
body.home-mode .home-team-logo {
  width: 120px !important;
  height: 120px !important;
  background: none;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
}

body.home-mode .home-vs {
  color: var(--gold);
  font-size: 28px;
}

body.home-mode .home-next-details {
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
}

body.home-mode .home-next-details span:last-child {
  color: var(--muted);
}

body.home-mode .home-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.home-mode .stage-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 14px;
  color: #fff;
  background: rgba(5, 31, 66, .68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

body.home-mode .stage-card:hover,
body.home-mode .stage-card:focus-visible {
  border-color: rgba(255,184,28,.72);
  transform: none;
  box-shadow: 0 0 0 3px rgba(255,184,28,.18);
}

body.home-mode .sc-icon {
  width: 52px;
  height: 52px;
  border: 0;
  color: var(--gold);
  background: transparent;
}

body.home-mode .sc-title {
  color: #fff;
  font-size: 20px;
  font-weight: 780;
}

body.home-mode .sc-desc {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 500;
}

body.home-mode .sc-count {
  margin-top: 2px;
  padding: 0;
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 12px;
}

body.home-mode .home-upcoming-list {
  gap: 8px;
}

body.home-mode .home-upcoming-item {
  grid-template-columns: 78px 1fr 185px 22px;
  min-height: 82px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  color: #fff;
  background: rgba(5, 31, 66, .68);
}

body.home-mode .home-upcoming-time,
body.home-mode .home-upcoming-teams {
  color: #fff;
}

body.home-mode .home-upcoming-meta {
  color: rgba(255,255,255,.82);
}

body.home-mode .home-upcoming-arrow {
  color: #fff;
}

body.home-mode .home-photo-card {
  min-height: 116px;
  border: 1px solid rgba(255,255,255,.18);
}

body.home-mode .home-photo-card img {
  min-height: 116px;
}

body.home-mode .info-section,
body.home-mode .canchas-section {
  scroll-margin-top: 18px;
  padding: 18px 0 0;
}

body.home-mode .info-section-title svg {
  color: var(--gold);
}

body.home-mode .info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home-mode .info-card,
body.home-mode .cancha-card {
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  background: rgba(5, 31, 66, .68);
}

body.home-mode .info-card-icon {
  color: var(--gold);
}

body.home-mode .info-card-icon svg {
  width: 54px;
  height: 54px;
}

body.home-mode .emergency-btn {
  border: 1px solid rgba(255,184,28,.45);
  background: rgba(255,184,28,.12);
}

body.home-mode .cancha-name {
  color: #fff;
}


@media (max-width: 760px) {
  body.home-mode main {
    width: min(100% - 20px, 760px);
    padding-top: 12px;
  }

  body.home-mode .home-hero-card {
    min-height: 295px;
    padding-top: 18px;
  }

  body.home-mode .hero-logo {
    width: 140px;
    height: 140px;
  }

  body.home-mode .hero-eyebrow {
    font-size: 23px;
  }

  body.home-mode .hero-title {
    font-size: 38px;
  }

  body.home-mode .hero-dates {
    font-size: 19px;
  }

  body.home-mode .hero-dates::before,
  body.home-mode .hero-dates::after {
    width: 42px;
  }

  body.home-mode .home-next-card {
    grid-template-columns: 72px 1fr auto;
    gap: 10px;
    padding: 40px 12px 14px;
  }

  body.home-mode .home-next-details {
    grid-column: auto;
    grid-template-columns: 1fr;
    min-width: 0;
    text-align: left;
  }

  body.home-mode .home-next-teams {
    padding: 0;
    border-right: 0;
    border-left: 0;
  }

  body.home-mode .home-team .school-logo,
  body.home-mode .home-team-logo {
    width: 54px !important;
    height: 54px !important;
  }

  body.home-mode .home-actions-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.home-mode .stage-card {
    min-height: 86px;
    padding: 12px;
  }

  body.home-mode .sc-icon {
    width: 40px;
    height: 40px;
  }

  body.home-mode .sc-title {
    font-size: 16px;
  }

  body.home-mode .sc-desc {
    font-size: 12px;
  }

  body.home-mode .home-upcoming-item {
    grid-template-columns: 58px 1fr 18px;
  }

  body.home-mode .home-upcoming-meta {
    grid-column: 2 / span 1;
  }

  body.home-mode .home-upcoming-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 430px) {
  body.home-mode .home-hero-card {
    min-height: 270px;
  }

  body.home-mode .hero-logo {
    width: 118px;
    height: 118px;
  }

  body.home-mode .hero-eyebrow {
    font-size: 18px;
  }

  body.home-mode .hero-title {
    font-size: 33px;
  }

  body.home-mode .hero-dates {
    font-size: 16px;
  }

  body.home-mode .stat-num {
    font-size: 24px;
  }

  body.home-mode .stat-label {
    font-size: 9px;
  }

  body.home-mode .home-next-card {
    grid-template-columns: 60px 1fr auto;
    gap: 8px;
    padding: 36px 10px 12px;
  }

  body.home-mode .home-next-time {
    text-align: left;
    font-size: 20px;
  }

  body.home-mode .home-next-teams {
    padding: 0;
    border-left: 0;
    gap: 6px;
  }

  body.home-mode .home-next-details {
    grid-column: auto;
    text-align: left;
    min-width: 0;
    max-width: none;
    font-size: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  body.home-mode .home-team .school-logo,
  body.home-mode .home-team-logo {
    width: 30px !important;
    height: 30px !important;
  }

  body.home-mode .home-team {
    font-size: 10px;
  }

  body.home-mode .home-vs {
    font-size: 14px;
  }

  body.home-mode .home-actions-grid {
    gap: 9px;
  }

  body.home-mode .stage-card {
    align-items: flex-start;
    gap: 8px;
  }

  body.home-mode .sc-icon {
    width: 34px;
    height: 34px;
  }

  body.home-mode .sc-icon svg {
    width: 26px;
    height: 26px;
  }

  body.home-mode .sc-title {
    font-size: 15px;
  }

  body.home-mode .sc-desc {
    font-size: 11px;
  }

  body.home-mode .home-photo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.home-mode .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-mode .cancha-card {
    align-items: center;
  }

  body.home-mode .cancha-img {
    width: 108px;
    height: 72px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN INFORMACIÓN (HOME)
   ══════════════════════════════════════════════════════════════════════════ */

.info-section {
  display: grid;
  gap: 14px;
}

.info-section-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
}

.info-section-title svg {
  color: var(--navy);
  flex-shrink: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 12px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: box-shadow 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.info-card:hover,
.info-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(9,43,99,0.1);
  outline: none;
}

.info-card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.info-card-icon svg {
  width: 68px;
  height: 68px;
}

.emergency-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--navy);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.emergency-btn:hover {
  opacity: 0.9;
}

.emergency-btn svg {
  flex-shrink: 0;
  color: var(--gold);
}

.emergency-btn div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emergency-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.01em;
}

.emergency-number {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN CANCHAS (HOME)
   ══════════════════════════════════════════════════════════════════════════ */

.canchas-section {
  display: grid;
  gap: 14px;
}

.canchas-list {
  display: grid;
  gap: 10px;
}

.cancha-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cancha-img {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
  border-radius: 10px;
  background-color: var(--line);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cancha-img:active {
  opacity: 0.8;
}

.cancha-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

/* ── MODAL IMAGEN CANCHA ─────────────────────────────────────────────────── */
.cancha-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 15, 35, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cancha-lightbox.open {
  display: flex;
  opacity: 1;
}

.cancha-lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.cancha-lightbox.open .cancha-lightbox-inner {
  transform: scale(1);
}

.cancha-lightbox img {
  max-width: min(680px, 92vw);
  max-height: 72vh;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

.cancha-lightbox-name {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cancha-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cancha-lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

/* ══════════════════════════════════════════════════════════════════════════
   PARTIDOS — NUEVO LAYOUT (TEMA CLARO)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── FILTROS ──────────────────────────────────────────────────────────────── */
.filters-dark {
  display: grid;
  gap: 12px;
  padding: 16px 0 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
}

/* ── PILL ROWS ────────────────────────────────────────────────────────────── */
.pill-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.pill-row::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.pill-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.pill-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ── CHIP DROPDOWNS ───────────────────────────────────────────────────────── */
.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.chip-select svg {
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  opacity: 0.6;
}

.chip-select select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 16px;
}

.chip-select.has-value {
  background: rgba(255,184,28,0.12);
  border-color: rgba(255,184,28,0.5);
  color: #7a4f00;
}

/* ── ACTIVE FILTER CHIPS ──────────────────────────────────────────────────── */
.active-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.filter-chip .chip-icon {
  font-size: 12px;
  opacity: 0.7;
}

.placeholder-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.chip-school-logo {
  width: 18px !important;
  height: 18px !important;
  border-radius: 3px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.filter-chip .chip-remove {
  font-size: 16px;
  line-height: 1;
  opacity: 0.4;
  margin-left: 2px;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
  -webkit-tap-highlight-color: transparent;
}

/* ── MATCH CARD V2 ────────────────────────────────────────────────────────── */
.match-card-v2 {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: stretch;
  min-height: 88px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.15s;
}

.match-card-v2:hover {
  box-shadow: 0 4px 16px rgba(9,43,99,0.1);
}

.mc2-time {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  border-right: 1px solid var(--line);
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.mc2-teams {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 12px;
  flex: 1;
  min-width: 0;
}

.mc2-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.mc2-team .school-logo {
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  object-fit: contain;
  background: #fff;
  padding: 3px;
}

.mc2-team-name {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: center;
  max-width: 80px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  display: block;
}

.mc2-vs {
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.mc2-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 14px 12px 6px;
  min-width: 110px;
  max-width: 140px;
}

.mc2-sport {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.mc2-sport .mc2-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}

.mc2-venue {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.mc2-venue-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mc2-venue svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Marcador en finales */
.mc2-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.mc2-score-nums {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mc2-score-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--muted);
  line-height: 1;
  min-width: 22px;
  text-align: center;
}

.mc2-score-num.win {
  color: var(--navy);
}

.mc2-score-sep {
  font-size: 16px;
  color: var(--line);
  font-weight: 700;
}

.mc2-penalties {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.mc2-winner .mc2-team-name {
  color: var(--navy);
}

/* Badges de estado */
.mc2-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.mc2-status.en-vivo {
  background: #dc2626;
  color: #fff;
}

.mc2-status.finalizado {
  background: #d97706;
  color: #fff;
}

/* Day title en modo claro */
.day-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 20px 0 8px;
}

.results {
  gap: 8px;
}

.day-group {
  gap: 8px;
}

/* ── RESPONSIVE PARTIDOS ──────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .filters-dark {
    gap: 10px;
    padding: 12px 0 10px;
  }

  .pill-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }

  .chip-select {
    height: 34px;
    font-size: 13px;
    padding: 0 12px;
  }

  .mc2-time {
    font-size: 16px;
    padding: 0 6px;
  }

  .match-card-v2 {
    grid-template-columns: 58px 1fr auto;
    min-height: 80px;
    border-radius: 10px;
  }

  .mc2-team .school-logo {
    width: 32px !important;
    height: 32px !important;
  }

  .mc2-team-name {
    font-size: 9.5px;
    max-width: 60px;
  }

  .mc2-info {
    min-width: 90px;
    max-width: 110px;
    padding: 10px 10px 10px 4px;
  }

  .mc2-sport {
    font-size: 12px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
  .sync {
    font-size: 11px;
  }

  .summary div {
    padding: 8px;
  }

  .summary strong {
    font-size: 18px;
  }

  .stage-card {
    padding: 9px;
  }

  .stage-card span {
    font-size: 14px;
  }

  .match-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .time {
    font-size: 17px;
  }

  .teams {
    font-size: 13.5px;
  }
}

@media (max-width: 900px) {
  .home-next-card {
    grid-template-columns: 92px 1fr;
  }

  .home-next-details {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(9, 43, 99, 0.10);
  }

  .home-upcoming-item {
    grid-template-columns: 64px 1fr 22px;
  }

  .home-upcoming-meta {
    grid-column: 2 / span 1;
  }

  .home-upcoming-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .home-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .home-hero-card {
    padding: 34px 16px 30px;
  }

  .home-stats {
    min-height: 88px;
  }

  .home-stats .stat-item {
    padding: 16px 5px;
  }

  .home-matchboard,
  .home-featured {
    padding: 14px;
    border-radius: 14px;
  }

  .home-section-head h3,
  .home-upcoming-head h3 {
    font-size: 19px;
  }

  .home-link-button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .home-next-card {
    grid-template-columns: 68px 1fr auto;
    gap: 8px;
    min-height: 0;
    padding: 38px 12px 14px;
  }

  .home-next-label {
    min-width: 150px;
    font-size: 11px;
  }

  .home-next-time {
    text-align: left;
    font-size: 22px;
  }

  .home-next-teams {
    gap: 6px;
  }

  .home-team .school-logo,
  .home-team-logo {
    width: 36px !important;
    height: 36px !important;
  }

  .home-team {
    font-size: 11px;
  }

  .home-vs {
    font-size: 16px;
  }

  .home-next-details {
    grid-template-columns: 1fr;
    text-align: left;
    font-size: 11px;
    min-width: 0;
    max-width: none;
    word-break: break-word;
  }

  .home-upcoming-item {
    grid-template-columns: 54px 1fr 18px;
    gap: 9px;
    padding: 10px;
  }

  .home-upcoming-time {
    font-size: 16px;
  }

  .home-upcoming-teams {
    font-size: 13px;
  }

  .home-upcoming-meta {
    font-size: 11px;
  }

  .home-photo-row {
    gap: 8px;
  }

  .home-photo-card,
  .home-photo-card img {
    min-height: 92px;
  }

  .home-photo-card span {
    left: 9px;
    right: 9px;
    bottom: 8px;
    font-size: 13px;
  }
}
