/* ─────────────────────────────────────────
   TRES PALOS v11
   Mezcla final:
   - v7 = estética app / oscuro / mobile first
   - v10 = estructura funcional / zonas / playoffs / fecha
───────────────────────────────────────── */

:root {
  --bg:       #151516;
  --bg2:      #1d1d20;
  --card:     #242428;
  --card2:    #2c2c31;
  --border:   #3a3a42;
  --border2:  #4a4a54;

  --white:    #ffffff;
  --text:     #dedee5;
  --muted:    #a3a3af;

  --red:      #f3192b;
  --red-lo:   rgba(243,25,43,.1);
  --blue:     #55a7ff;
  --win:      #35c77a;
  --draw:     #f4b942;
  --loss:     #ef5b67;
  --zone1:    #f3192b;
  --zone2:    #3d8ef0;
  --zone3:    #8b5cf6;
  --shield-bg: #ededed;
  --shield-border: rgba(255,255,255,.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: #060607;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
}

/* APP SHELL */

.app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 520px) {
  .app {
    box-shadow: 0 0 80px rgba(0,0,0,0.75);
  }
}

@media (min-width: 980px) {
  .app {
    max-width: 1280px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 330px 1fr;
    box-shadow: none;
  }

  .desktop-sidebar {
    display: flex !important;
  }

  .mobile-bottom-nav {
    display: none !important;
  }

  .main-column {
    min-height: 100vh;
    border-right: 1px solid var(--border);
  }

  .top-bar {
    justify-content: flex-end;
  }

  .top-bar .logo {
    display: none;
  }
}

/* SIDEBAR DESKTOP */

.desktop-sidebar {
  display: none;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 1.4rem 1.2rem;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-brand-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
}

.sb-brand + .sb-desc {
  margin-top: 1rem;
}

.logo-gp {
  width: 26px;
  height: 23px;
  position: relative;
  flex-shrink: 0;
}

.logo-gp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  border-radius: 1px;
}

.logo-gp::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
  border-radius: 0 0 1px 1px;
}

.logo-gp-r {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
  border-radius: 0 0 1px 1px;
}

.sb-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1;
}

.sb-tag {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.sb-desc {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.sb-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.sb-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.sb-eye {
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.sb-team {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
}

.sb-stats {
  display: flex;
  gap: 1rem;
  margin-top: 10px;
}

.sb-stat-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1;
}

.sb-stat-l {
  font-family: 'DM Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.sb-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
}

.sb-link {
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 10px;
  border-radius: 7px;
  transition: all .2s;
}

.sb-link:hover {
  background: var(--card);
  color: var(--text);
}

.sb-link.on {
  background: var(--red-lo);
  color: var(--red);
}

/* HEADER */

.main-column {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.league-strip {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 1rem;
  gap: 6px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.league-strip::-webkit-scrollbar {
  display: none;
}

.ls-chip {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.ls-chip.on {
  color: var(--white);
  border-bottom-color: var(--red);
}

.ls-chip.soon {
  opacity: 0.3;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.header-brand-mark {
  display: block;
  width: 42px;
  height: 38px;
  object-fit: contain;
}

.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.logo-name span {
  color: var(--red);
}

.category-select-wrap {
  position: relative;
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-label {
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  white-space: nowrap;
}

.ctx-dot {
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
}

/* HERO */

.hero {
  height: 170px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1540747913346-19212a4cf528?w=900&q=80&auto=format&fit=crop&crop=center');
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.34) saturate(0.65);
}

.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.05rem 1.25rem;
}

.hero-copy {
  min-width: 0;
  margin-right: auto;
  text-align: left;
}

.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.45rem;
  line-height: 0.9;
  color: var(--white);
  letter-spacing: 0.03em;
}

.hero-title em {
  color: var(--red);
  font-style: normal;
}

/* TABS */

.tab-nav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .tab-nav {
    display: none;
  }
}

.tab {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 13px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  user-select: none;
  cursor: pointer;
  flex-shrink: 0;
}

.tab:hover {
  color: var(--text);
}

.tab.on {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* CONTENT */

.app-main {
  flex: 1;
  min-height: calc(100vh - 310px);
  min-height: calc(100svh - 310px);
  overflow-y: auto;
  padding-bottom: 72px;
}

@media(min-width:980px) {
  .top-bar {
    justify-content: flex-end;
  }

  .app-main {
    padding-bottom: 0;
  }
}

.tab-content {
  display: none;
}

.tab-content.on {
  display: block;
}

.sec {
  padding: 1.25rem 1rem 0;
}

.sec-head {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.sec-title {
  margin: 0;
  font-weight: 500;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.sec-title::before {
  content: '';
  width: 2px;
  height: 11px;
  background: var(--red);
  display: block;
}

.sec-link {
  margin-left: auto;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* DATOS */

.datos-heading {
  padding-bottom: 0.85rem;
}

.datos-heading .sec-head {
  margin-bottom: 0.45rem;
}

.datos-intro {
  max-width: 610px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.datos-scope {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 1rem 1rem;
  padding: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.datos-scope button {
  min-width: 0;
  border: 0;
  border-radius: 7px;
  padding: 9px 5px;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.datos-scope button.on {
  background: var(--card2);
  color: var(--white);
  box-shadow: inset 0 -2px 0 var(--red);
}

.datos-block {
  margin: 0 1rem 1rem;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.datos-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.datos-block-head span,
.datos-readings-label {
  display: block;
  color: var(--red);
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.datos-block-head h2 {
  margin-top: 3px;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.datos-block-head small {
  max-width: 170px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.datos-method-note {
  margin: -3px 0 13px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.45;
}

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

.datos-leader-card {
  position: relative;
  min-width: 0;
  min-height: 145px;
  padding: 13px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.datos-leader-card.featured {
  background:
    linear-gradient(145deg, var(--red-lo), transparent 70%),
    var(--bg2);
  border-color: rgba(243,25,43,.35);
}

.datos-leader-card.unavailable {
  border-style: dashed;
  opacity: .72;
}

.datos-leader-label {
  display: block;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.datos-leader-value {
  display: block;
  margin-top: 10px;
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1;
}

.datos-leader-team {
  margin-top: 7px;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.datos-leader-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.35;
}

.datos-sample-note {
  margin-top: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: .52rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.datos-compare {
  margin-bottom: 1.5rem;
}

.datos-selectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  margin-bottom: 18px;
}

.datos-selectors label {
  min-width: 0;
}

.datos-selectors label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.datos-selectors select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border2);
  border-radius: 7px;
  background: var(--bg2);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-overflow: ellipsis;
}

.datos-selector-meta {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.46rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.datos-versus {
  padding-bottom: 12px;
  color: var(--red);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
}

.datos-compare-list {
  border-top: 1px solid var(--border);
}

.datos-compare-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.datos-compare-row-head,
.datos-compare-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.datos-compare-row-head strong {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
}

.datos-compare-row-head strong:first-child {
  text-align: right;
}

.datos-compare-row-head strong.winner,
.datos-compare-row-head strong.tie {
  color: var(--white);
}

.datos-compare-row-head strong.neutral {
  color: var(--text);
}

.datos-compare-row-head span {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.datos-compare-bars {
  margin-top: 6px;
}

.datos-compare-bars::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: 5px;
  margin: auto;
  background: var(--border2);
}

.datos-bar-track {
  grid-column: 3;
  height: 4px;
  overflow: hidden;
  background: var(--border);
  border-radius: 4px;
}

.datos-bar-track.left {
  grid-column: 1;
  display: flex;
  justify-content: flex-end;
}

.datos-bar-track span {
  display: block;
  height: 100%;
  background: #66666f;
  border-radius: inherit;
}

.datos-bar-track span.winner,
.datos-bar-track span.tie {
  background: var(--white);
}

.datos-bar-track span.neutral {
  background: #66666f;
}

.datos-readings {
  margin-top: 15px;
  padding: 14px;
  background: var(--bg2);
  border-left: 2px solid var(--red);
  border-radius: 0 8px 8px 0;
}

.datos-readings ul {
  margin-top: 9px;
  padding-left: 16px;
}

.datos-readings li {
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.55;
}

.datos-readings li + li {
  margin-top: 6px;
}

.datos-empty,
.datos-loading {
  margin: 0 1rem 1.5rem;
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (min-width: 700px) {
  .datos-leaders-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .datos-leader-card {
    min-height: 155px;
  }

  .datos-block {
    padding: 18px;
  }
}

/* HOME */

.next-card {
  width: calc(100% - 2rem);
  max-width: calc(100% - 2rem);
  margin: 0 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.next-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.home-champion {
  width: calc(100% - 2rem);
  margin: 0 1rem 1.25rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(244, 185, 66, .32);
  border-radius: 12px;
}

.home-champion-main {
  min-width: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 3px solid var(--draw);
}

.home-champion-shield .home-shield {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  padding: 8px;
}

.home-champion-copy {
  min-width: 0;
}

.home-champion-copy > span {
  color: var(--draw);
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-champion-copy h2 {
  margin-top: 5px;
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: .03em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.home-champion-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
}

.home-champion-final {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.home-champion-final > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--border);
}

.home-champion-final > div:last-child {
  border-right: 0;
}

.home-champion-final > div:nth-child(3) {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  border-right: 0;
}

.home-champion-final span,
.home-champion-final strong {
  display: block;
}

.home-champion-final span {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: .52rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-champion-final strong {
  margin-top: 4px;
  color: var(--text);
  font-size: .82rem;
  line-height: 1.25;
}

.home-champion > button {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  color: var(--red);
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  letter-spacing: .06em;
  text-align: right;
}

.nc-top,
.nc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
}

.nc-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nc-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.75); }
}

.nc-round,
.nc-footer-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nc-footer {
  border-top: 1px solid var(--border);
}

.nc-footer-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem;
  color: var(--red);
  background: none;
  border: 0;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.home-match-list {
  border-top: 1px solid var(--border);
}

.home-match-row {
  min-width: 0;
  width: 100%;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(58,58,66,.7);
  cursor: pointer;
  transition: background-color 120ms ease;
}

.home-match-row:active {
  background-color: rgba(255,255,255,.06);
}

.home-match-row:last-child {
  border-bottom: 0;
}

.home-match-row.today,
.match-row.today {
  background:
    linear-gradient(90deg, rgba(243,25,43,.14), transparent 65%);
  box-shadow: inset 3px 0 0 var(--red);
}

.home-match-row.live,
.match-row.live {
  background:
    linear-gradient(90deg, rgba(243,25,43,.2), transparent 72%);
  box-shadow: inset 3px 0 0 var(--red);
}

.home-match-row.waiting,
.match-row.waiting {
  background:
    linear-gradient(90deg, rgba(244,185,66,.12), transparent 72%);
  box-shadow: inset 3px 0 0 var(--draw);
}

.home-match-row.suspended,
.match-row.suspended,
.home-match-row.postponed,
.match-row.postponed {
  background:
    linear-gradient(90deg, rgba(255,255,255,.07), transparent 72%);
  box-shadow: inset 3px 0 0 var(--border2);
}

.home-match-row.today .home-match-center strong,
.match-row.today .mr-time {
  color: var(--white);
}

.home-moment {
  color: var(--blue);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
}

.home-moment.live {
  color: var(--red);
}

.home-moment.waiting {
  color: var(--draw);
}

.home-moment.suspended,
.home-moment.postponed,
.mr-time.suspended,
.mr-time.postponed {
  color: var(--muted);
}

.home-moment small,
.mr-time small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 400;
  text-transform: uppercase;
}

.live-indicator {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(243,25,43,.13);
  animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .45;
    transform: scale(.72);
  }
}

.match-row.today .mr-time {
  border-color: rgba(243,25,43,.6);
  background: rgba(243,25,43,.12);
}

.home-team {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
}

.home-team.local {
  justify-content: flex-end;
  text-align: right;
}

.home-team span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shield {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  padding: 3px;
  background: var(--shield-bg);
  color: var(--bg);
  font-size: 0.36rem;
  font-weight: 800;
}

.home-shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-match-center {
  min-width: 88px;
  text-align: center;
}

.home-match-center strong,
.home-match-center small {
  display: block;
  font-family: 'DM Mono', monospace;
}

.home-match-center strong {
  color: var(--blue);
  font-size: 0.55rem;
}

.home-match-center small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.43rem;
  text-transform: uppercase;
}

.home-empty {
  padding: 2rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.75rem;
}

.home-empty strong,
.home-empty span {
  display: block;
}

.home-empty strong {
  margin-bottom: 5px;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-empty span {
  line-height: 1.5;
}

.nc-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  padding: 12px 14px 16px;
  align-items: center;
}

.nc-team {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.nc-shield {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
}

.nc-role {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  text-transform: uppercase;
  color: var(--muted);
}

.nc-center {
  text-align: center;
}

.nc-vs {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--border2);
}

.nc-time,
.nc-venue {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem;
}

.nc-time {
  color: var(--blue);
  margin-top: 2px;
}

.nc-venue {
  color: var(--muted);
  margin-top: 3px;
}

/* MATCHES BY ZONE */

.date-nav {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dn-btn {
  width: 52px;
  height: 46px;
  background: var(--card);
  color: var(--text);
  border: none;
  border-right: 1px solid var(--border);
}

.dn-btn:last-child {
  border-right: none;
  border-left: 1px solid var(--border);
}

.dn-btn:disabled {
  opacity: .3;
  pointer-events: none;
}

.dn-label-wrap {
  flex: 1;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dn-label-wrap::after {
  content: "⌄";
  position: absolute;
  right: 1rem;
  color: var(--muted);
  pointer-events: none;
}

.dn-select {
  width: 100%;
  height: 100%;
  appearance: none;
  border: 0;
  outline: 0;
  background: var(--card);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  text-align-last: center;
  padding: 0 2.5rem;
  cursor: pointer;
}

.dn-select:disabled {
  color: var(--muted);
  cursor: default;
}

.dn-select option {
  background: var(--card);
  color: var(--white);
}

.zona-block {
  margin: 14px 1rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.zona-block + .zona-block {
  margin-top: 20px;
}

.zona-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 1rem;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--zona-color) 18%, var(--bg2)),
      var(--bg2) 72%
    );
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--zona-color);
}

.zona-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zona-color);
  box-shadow: 0 0 9px var(--zona-color);
}

.zona-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.zona-count {
  margin-left: auto;
  font-size: 0.6rem;
  color: var(--muted);
}

.match-row {
  width: 100%;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 12px;
  gap: 7px;
  align-items: center;
  padding: 11px 1rem;
  border-bottom: 1px solid rgba(40,40,46,0.8);
  cursor: pointer;
  transition: background-color 120ms ease;
}

.match-row:hover {
  background: var(--card);
}

.match-row:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.match-row:active {
  background-color: rgba(255,255,255,.06);
}

.match-row:last-child {
  border-bottom: none;
}

.mr-team {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mr-team.away {
  flex-direction: row-reverse;
}

.mr-team.loser {
  color: var(--muted);
  font-weight: 400;
}

.mr-team .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shield,
.badge,
.sm-badge,
.po-tshield,
.tr-shield,
.uc-b,
.rb {
  border-radius: 50%;
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* .shield {
  width: 18px;
  height: 18px;
  font-size: 0.34rem;
} */

/* .shield {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
} */

.shield {
  width: 28px;
  height: 28px;

  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: var(--shield-bg);
  border-radius: 50%;
  padding: 2px;
  box-sizing: border-box;
}

.shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mr-team {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.mr-team:not(.away) {
  justify-content: flex-end;
}

.mr-team.away {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.mr-team .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mr-score,
.mr-time {
  width: 64px;
  min-width: 64px;
  height: 48px;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.mr-time {
  color: var(--blue);
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem;
  background: transparent;
  border-color: transparent;
}

.mr-time.live {
  color: var(--red);
  border-color: rgba(243,25,43,.55);
  background: rgba(243,25,43,.12);
}

.mr-time.waiting {
  color: var(--draw);
  border-color: rgba(244,185,66,.4);
  background: rgba(244,185,66,.08);
}

.mr-penales {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.44rem;
  letter-spacing: 0;
}

.playoff-pip {
  background: var(--red);
}

.playoff-block {
  --zona-color: var(--red);
}

.mr-chev {
  color: var(--border2);
}

.match-libre {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px 1rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.match-libre::before,
.match-libre::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--border);
}

.libre-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.libre-team {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.76rem;
}

.libre-shield {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  padding: 2px;
  background: var(--shield-bg);
  color: var(--bg);
  font-size: 0.34rem;
  font-weight: 800;
}

.libre-shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* RESULTS LIST HOME */

.results-list,
.scorers,
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 1rem 1.25rem;
}

.result,
.scorer,
.uc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.result {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px;
  position: relative;
}

.result-meta {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.rt {
  margin-top: 10px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rt.r {
  flex-direction: row-reverse;
  text-align: right;
}

.rb,
.uc-b {
  width: 18px;
  height: 18px;
  font-size: 0.36rem;
}

.rs {
  margin-top: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  color: var(--white);
  white-space: nowrap;
}

/* TABLE */

.cat-row,
.zona-tab-bar {
  display: flex;
  gap: 6px;
  padding: 0 1rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.zona-tab-bar {
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tabla-main-tabs {
  padding-bottom: .55rem;
}

.cp,
.zt {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.cp.on {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.cp.dim {
  opacity: .35;
}

.zt {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
}

.zt.on {
  color: var(--white);
  border-bottom-color: var(--red);
}

.zt-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.zt-pip-general {
  background: var(--muted);
}

.tabla-wrap {
  overflow-x: auto;
  padding: 0 1rem 1.5rem;
}

.horizontal-scroll-cue:not(.is-at-scroll-end) {
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - 26px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - 26px),
    transparent 100%
  );
}

@keyframes table-scroll-nudge {
  0%, 100% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(-12px);
  }
}

.tabla-wrap.scroll-nudge > .tabla {
  animation: table-scroll-nudge 720ms cubic-bezier(.2,.8,.2,1) 180ms 1;
}

.tabla-referencias {
  display: flex;
  gap: 8px;
  padding: 12px 1rem 6px;
  flex-wrap: wrap;
}

.tabla-ref {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tabla-ref-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ref-cuartos,
.t-pos-cuartos {
  background: rgba(46, 204, 113, .25);
  color: #70e6a2;
}

.ref-octavos,
.t-pos-octavos {
  background: rgba(244, 185, 66, .24);
  color: #f4c968;
}

.tabla {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}

.tabla th {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 7px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.tabla th:nth-child(-n+2) {
  text-align: left;
}

.tabla td {
  padding: 10px 7px;
  text-align: right;
  color: var(--text);
  font-size: 0.77rem;
  border-bottom: 1px solid rgba(40,40,46,0.75);
}

.tabla td:first-child {
  text-align: center;
}

.tabla td:nth-child(2) {
  text-align: left;
}

.t-pos {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  font-weight: 700;
  border-radius: 5px;
}

.t-name {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}

.t-pts {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #ff6575;
  background: rgba(255, 48, 69, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 48, 69, .13);
}

.tabla th:nth-child(3) {
  color: rgba(255, 101, 117, .82);
}

.tabla-general {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.tabla-general--standalone {
  margin-top: 0;
  border-top: 0;
}

.tabla-general-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 1rem 8px;
}

.tabla-general-head h3 {
  margin: 1px 0 0;
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.tabla-general-head span,
.tabla-general-kicker,
.t-zone {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.tabla-wrap-general {
  padding-bottom: 1.75rem;
}

.tabla-general-table {
  min-width: 510px;
}

.tabla-general-table th:nth-child(3) {
  color: var(--muted);
}

.tabla-general-table th:nth-child(4) {
  color: rgba(255, 101, 117, .82);
}

.tabla-scorers {
  padding-bottom: 1.6rem;
}

.tabla-scorers-list {
  margin: 0 1rem;
  overflow: hidden;
  background: rgba(18, 18, 21, .78);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.tabla-scorer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(40,40,46,0.75);
}

.tabla-scorer:last-child {
  border-bottom: 0;
}

.tabla-scorer-player {
  min-width: 0;
}

.tabla-scorer-player strong,
.tabla-scorer-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tabla-scorer-player strong {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.tabla-scorer-player small {
  margin-top: 1px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: .52rem;
  letter-spacing: .08em;
}

.tabla-scorer > b {
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
}

.tabla-scorer > b.leader {
  color: var(--red);
  font-size: 1.56rem;
}

.tabla-scorer > b small {
  margin-left: 3px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 420px) {
  .tabla-scorers-list {
    margin-inline: .75rem;
  }

  .tabla-scorer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 10px;
  }

  .tabla-scorer-player strong {
    font-size: .9rem;
  }

  .tabla-scorer > b {
    font-size: 1.22rem;
  }

  .tabla-scorer > b.leader {
    font-size: 1.34rem;
  }
}

.t-dg {
  color: var(--win);
}

.sm-badge {
  width: 17px;
  height: 17px;
  font-size: 0.34rem;
  background: var(--shield-bg);
  padding: 2px;
  overflow: hidden;
  box-sizing: border-box;
}

.sm-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.form-row {
  display: flex;
  gap: 3px;
  justify-content: flex-end;
}

.fd {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.fw { background: var(--win); }
.fe { background: var(--draw); }
.fl { background: var(--loss); }

/* SCORERS */

.scorer {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-pos {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  min-width: 20px;
  text-align: center;
  color: var(--muted);
}

.sc-pos.gold {
  color: var(--red);
}

.sc-info {
  flex: 1;
}

.sc-name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}

.sc-club {
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.sc-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.sc-n small {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  color: var(--muted);
}

/* PLAYOFFS */

.po-banner {
  margin: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.po-banner::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.po-banner-icon {
  font-size: 2rem;
  margin-bottom: 5px;
}

.po-banner-tournament {
  margin-bottom: 5px;
  color: var(--red);
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.po-banner-title {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--white);
  font-size: 1.8rem;
  letter-spacing: 0;
  line-height: 1.05;
}

.po-banner-sub {
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 4px;
}

.po-tournament-switch {
  min-height: 48px;
  margin: 0 1rem .75rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.po-tournament-switch > span {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.po-tournament-switch select {
  min-width: 0;
  flex: 1;
  height: 34px;
  padding: 0 30px 0 10px;
  color: var(--text);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
}

.po-empty-state {
  margin: .5rem 0 1.5rem;
  padding: 2.25rem 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.po-empty-state > span {
  color: var(--red);
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.po-empty-state > strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.po-empty-state p {
  max-width: 420px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.po-empty-state button {
  margin-top: 18px;
  padding: 9px 14px;
  color: var(--red);
  background: transparent;
  border: 1px solid rgba(255, 48, 69, .45);
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  text-transform: uppercase;
}

.po-stage-tabs {
  display: flex;
  gap: 4px;
  padding: 0 1rem 0.75rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.po-stage-tab {
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 9px;
  text-align: left;
  white-space: nowrap;
  min-width: 84px;
}

.po-stage-tab span,
.po-stage-tab small {
  display: block;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
}

.po-stage-tab span {
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: inherit;
}

.po-stage-tab small {
  margin-top: 2px;
  font-size: 0.42rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.po-stage-tab.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.po-stage-tab.current small {
  color: var(--draw);
}

.po-phase {
  padding: 1.25rem 1rem 0.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.po-phase-title {
  font-family: 'DM Mono', monospace;
  color: var(--text);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.po-phase-tag {
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.po-qualified {
  margin: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.po-q-head {
  padding: 8px 12px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.po-q-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(40,40,46,.75);
}

.po-q-row:last-child {
  border-bottom: none;
}

.po-q-pos {
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  width: 14px;
  text-align: center;
  font-size: 0.55rem;
}

.po-q-name {
  flex: 1;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
}

.po-q-name span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.po-q-pts {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--white);
}

.po-q-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 20px;
}

.po-q-tag.direct {
  background: var(--red-lo);
  color: var(--red);
  border: 1px solid rgba(232,25,44,0.2);
}

.po-q-tag.octavos {
  background: rgba(61,142,240,0.1);
  color: var(--blue);
  border: 1px solid rgba(61,142,240,0.2);
}

.po-bracket {
  padding: 0.75rem 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 7px;
}

.po-progress-block {
  margin: .65rem 1rem .2rem;
}

.po-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.po-progress-label strong {
  color: var(--text);
  font-weight: 500;
}

.po-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--card2);
}

.po-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--draw));
  transition: width 0.4s ease;
}

.po-stage.current {
  background: linear-gradient(
    180deg,
    rgba(243,25,43,.045),
    transparent
  );
}

.po-stage.current .po-phase-title {
  color: var(--red);
}

.po-series-summary {
  margin: .2rem 1rem .75rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.po-series-head {
  min-height: 38px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.po-series-head span {
  color: var(--muted);
}

.po-series-head strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.po-series-score {
  min-height: 92px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.po-series-team {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
}

.po-series-team.away {
  flex-direction: row-reverse;
  text-align: right;
}

.po-series-team strong {
  min-width: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  letter-spacing: 0;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.po-series-shield {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4px;
  color: var(--bg);
  background: var(--shield-bg);
  border: 1px solid var(--shield-border);
  border-radius: 50%;
  font-size: .48rem;
  font-weight: 800;
}

.po-series-shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.po-series-total {
  text-align: center;
}

.po-series-total strong,
.po-series-total span {
  display: block;
}

.po-series-total strong {
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.po-series-total span {
  margin-top: 3px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: .54rem;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 390px) {
  .po-series-score {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 5px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .po-series-team {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .po-series-team.away {
    flex-direction: column;
    text-align: center;
  }

  .po-series-team strong {
    font-size: .82rem;
  }

  .po-series-shield {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

/* KEYBOARD ACCESSIBILITY */

a:focus-visible,
button:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.po-match {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease;
}

.po-match.pending {
  opacity: .62;
}

.po-match:hover,
.po-match:focus-visible {
  border-color: var(--border2);
  background: var(--card2);
  outline: none;
}

.po-match:not(:disabled):active {
  transform: scale(.985);
  border-color: var(--border2);
  background: var(--card2);
}

.po-match-hd {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.po-match-id,
.po-st {
  font-family: 'DM Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.po-match-id span {
  margin-left: 6px;
  color: var(--muted);
  letter-spacing: 0;
}

.po-st {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 7px;
}

.po-st.done {
  color: #70e6a2;
  border-color: rgba(46,204,113,.25);
  background: rgba(46,204,113,.1);
}

.po-trow,
.po-tbd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(40,40,46,.75);
  position: relative;
}

.po-trow:last-child,
.po-tbd-row:last-child {
  border-bottom: none;
}

.po-seed {
  font-family: 'DM Mono', monospace;
  font-size: 0.48rem;
  color: var(--muted);
  width: 14px;
  text-align: center;
}

.po-tshield {
  width: 18px;
  height: 18px;
  font-size: 0.34rem;
  background: var(--shield-bg);
  padding: 2px;
  overflow: hidden;
  box-sizing: border-box;
}

.po-tshield img,
.po-q-row .shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.po-tn {
  flex: 1;
  color: var(--text);
  font-size: 0.82rem;
}

.po-trow.winner .po-tn {
  color: var(--white);
  font-weight: 600;
}

.po-trow.winner::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: var(--win);
}

.po-trow.loser .po-tn {
  color: var(--muted);
}

.po-ts {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--white);
}

.po-result {
  min-width: 28px;
  text-align: right;
}

.po-pen {
  font-family: 'DM Mono', monospace;
  font-size: 0.42rem;
  color: var(--muted);
  white-space: nowrap;
}

.po-ts.tbd {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
}

.po-tbd-sh {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px dashed var(--border2);
  background: var(--card2);
}

.po-tbd-n {
  flex: 1;
  color: var(--muted);
  font-style: italic;
  font-size: 0.78rem;
}

.po-paths {
  border-top: 1px solid var(--border);
}

.po-path-grid {
  padding: 0.75rem 1rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.po-path-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.po-path-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.po-match-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.po-match-chev,
.po-path-chev {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.po-path-head span,
.po-path-step span,
.po-path-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.po-path-step .po-path-chev {
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.po-path-head strong {
  color: var(--white);
  font-size: 0.78rem;
  text-align: right;
}

.po-path-step {
  width: 100%;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(40,40,46,.75);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 8px;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  text-align: left;
}

button.po-path-step {
  cursor: pointer;
  transition: background-color 120ms ease;
}

button.po-path-step:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

button.po-path-step:active {
  background-color: rgba(255,255,255,.06);
}

.po-path-step:last-child {
  border-bottom: none;
}

.po-path-step strong {
  color: var(--text);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.po-path-badge {
  padding: 3px 7px;
  border-radius: 20px;
  font-style: normal;
  white-space: nowrap;
  background: var(--card2);
  border: 1px solid var(--border);
}

.po-path-badge.win,
.po-path-badge.direct {
  color: var(--win);
  background: rgba(53, 199, 122, .08);
  border-color: rgba(53, 199, 122, .28);
}

.po-path-badge.draw,
.po-path-badge.pending {
  color: var(--draw);
  background: rgba(244, 185, 66, .08);
  border-color: rgba(244, 185, 66, .28);
}

.po-path-badge.loss {
  color: var(--muted);
}

/* TEAMS */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 1rem 1.25rem;
}

.team-card {
  position: relative;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  padding: 14px 8px;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease;
}

.tc-chev {
  position: absolute;
  top: 8px;
  right: 9px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.team-card:active {
  transform: scale(.97);
  border-color: var(--border2);
  background: var(--card2);
}

.tc-shield {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.54rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  margin: 0 auto 8px;
  background: var(--shield-bg);
  padding: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

.tc-shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tc-name {
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.2;
}

.tc-city {
  min-height: 1.2em;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.2;
}

.tc-pts {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  color: var(--muted);
  margin-top: 4px;
}

/* DETAIL VIEWS */

.detail-view {
  min-height: 60vh;
  padding-bottom: 2rem;
}

body.detail-mode .hero,
body.detail-mode .tab-nav {
  display: none;
}

body.detail-mode .app-main {
  min-height: calc(100vh - 94px);
  min-height: calc(100svh - 94px);
}

.detail-topbar {
  min-height: 58px;
  padding: 10px 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-back {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--white);
  padding: 8px 12px;
  font-size: 0.78rem;
}

.detail-back:hover,
.detail-back:focus-visible {
  border-color: var(--red);
}

.detail-context {
  margin-left: auto;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.match-detail-card,
.team-detail-card,
.detail-section {
  margin: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.match-detail-status {
  padding: 10px 1rem;
  color: var(--blue);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.match-detail-status.live {
  color: var(--red);
  background: rgba(243,25,43,.08);
}

.match-detail-status.waiting {
  color: var(--draw);
  background: rgba(244,185,66,.08);
}

.match-detail-status.suspended,
.match-detail-status.postponed {
  color: var(--muted);
  background: rgba(255,255,255,.045);
}

.match-detail-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 1.6rem 1rem;
}

.match-detail-team {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.match-detail-team:disabled {
  cursor: default;
}

.match-detail-team strong {
  font-size: 1rem;
}

.match-detail-team small {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-detail-shield,
.team-detail-shield {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--shield-bg);
  color: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7px;
  font-weight: 800;
}

.match-detail-shield img,
.team-detail-shield img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.match-detail-result {
  min-width: 86px;
  text-align: center;
}

.match-detail-result strong {
  display: block;
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.match-detail-result span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
}

.match-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.match-detail-meta > div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--border);
}

.match-detail-meta > div:last-child {
  border-right: 0;
}

.match-detail-meta span,
.team-detail-head span {
  display: block;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-detail-meta strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.3;
}

.detail-section-head {
  min-height: 50px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.detail-section-head h2 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.detail-section-head > span {
  margin-left: auto;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.detail-empty {
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.scorer-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scorer-summary-team {
  min-width: 0;
  padding: 14px;
}

.scorer-summary-team + .scorer-summary-team {
  border-left: 1px solid rgba(58,58,66,.65);
}

.scorer-summary-team h3 {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.scorer-summary-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.scorer-summary-list li {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.25;
}

.scorer-summary-list li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.scorer-summary-list em {
  color: var(--draw);
  font-style: normal;
  white-space: nowrap;
}

.scorer-summary-list strong {
  flex: 0 0 auto;
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  font-weight: 500;
}

.scorer-summary-empty {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

@media (max-width: 390px) {
  .scorer-summary {
    grid-template-columns: 1fr;
  }

  .scorer-summary-team + .scorer-summary-team {
    border-top: 1px solid rgba(58,58,66,.65);
    border-left: 0;
  }
}

.detail-history-summary {
  padding: 11px 14px;
  color: var(--text);
  background: rgba(0, 0, 0, .16);
  border-bottom: 1px solid rgba(58,58,66,.65);
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-history-list {
  display: grid;
}

.detail-history-row {
  width: 100%;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(58,58,66,.65);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 11px 14px;
  text-align: left;
}

.detail-history-row:last-child {
  border-bottom: 0;
}

.detail-history-row span {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-history-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-history-row strong:last-child {
  text-align: right;
}

.detail-history-row strong.winner {
  color: var(--white);
}

.detail-history-row b {
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.event-team-head {
  padding: 10px 14px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(58,58,66,.65);
}

.event-team-head strong {
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-team-head strong:last-child {
  text-align: left;
}

.event-team-head strong:first-child {
  text-align: right;
}

.event-team-head span {
  color: var(--border2);
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem;
  text-align: center;
  text-transform: uppercase;
}

.event-list {
  padding: 0 14px 5px;
}

.event-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(58,58,66,.65);
}

.event-row:last-child {
  border-bottom: 0;
}

.event-side {
  min-width: 0;
}

.event-side-local {
  text-align: right;
}

.event-side-away {
  text-align: left;
}

.event-axis {
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(243,25,43,.65);
  border-right: 1px solid rgba(85,167,255,.65);
  background: rgba(255,255,255,.015);
}

.event-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.event-score {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 12px 1fr;
  align-items: center;
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.event-score i {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.event-gol {
  background: var(--win);
}

.event-gol-penal {
  border: 2px solid var(--win);
  background: transparent;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

.event-gol-contra {
  border: 2px solid var(--loss);
  background: transparent;
}

.event-amarilla {
  border-radius: 2px;
  background: var(--draw);
}

.event-doble-amarilla {
  border: 1px solid var(--loss);
  border-radius: 2px;
  background: var(--draw);
}

.event-roja {
  border-radius: 2px;
  background: var(--loss);
}

.event-cambio {
  background: var(--blue);
}

.event-side > strong,
.event-side small,
.event-side small span {
  display: block;
}

.event-side > strong {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.event-side small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.event-side small .event-type-gol-penal {
  width: max-content;
  margin-top: 3px;
  padding: 2px 6px;
  color: var(--win);
  border: 1px solid rgba(34, 197, 94, .28);
  border-radius: 999px;
  background: rgba(34, 197, 94, .08);
  font-weight: 700;
}

.event-side small .event-type-doble-amarilla {
  color: var(--loss);
  font-weight: 700;
}

.event-side small b {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.event-local .event-side small b {
  color: var(--red);
}

.event-away .event-side small b {
  color: var(--blue);
}

.team-detail-head {
  padding: 1.3rem;
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-detail-head h1 {
  margin-top: 3px;
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.team-detail-nickname {
  margin-top: 5px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.team-detail-origin {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.team-stage-badge {
  width: fit-content;
  margin-top: 9px;
  padding: 5px 9px;
  border: 1px solid rgba(53, 199, 122, .35);
  border-radius: 999px;
  background: rgba(53, 199, 122, .1);
  color: var(--win);
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-stage-badge.champion {
  border-color: rgba(244, 185, 66, .4);
  background: rgba(244, 185, 66, .1);
  color: var(--draw);
}

.team-stage-badge.eliminated,
.team-stage-badge.not-qualified {
  border-color: rgba(239, 91, 103, .4);
  background: rgba(239, 91, 103, .1);
  color: var(--loss);
}

.team-stage-badge.runner-up {
  border-color: var(--border2);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
}

.team-stage-badge.pending {
  border-color: rgba(85, 167, 255, .35);
  background: rgba(85, 167, 255, .09);
  color: var(--blue);
}

.team-season-switch {
  min-height: 44px;
  padding: 7px 1rem 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-season-switch > span {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-season-switch select {
  min-width: 0;
  flex: 1;
  height: 34px;
  padding: 0 30px 0 10px;
  color: var(--text);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
}

.team-season-switch select:disabled {
  color: var(--muted);
}

.team-season-outcome {
  padding: 0 1rem 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.team-season-outcome span {
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.35;
}

.team-season-campaign {
  margin: 2px 1rem 0;
  padding: 12px 0 10px;
  border-top: 1px solid rgba(58, 58, 66, .65);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.team-season-campaign > div,
.team-season-note {
  min-width: 0;
}

.team-season-campaign span,
.team-season-note span {
  display: block;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0;
}

.team-season-campaign strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.15;
}

.team-season-campaign small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
}

.team-season-notes {
  margin: 0 1rem;
  padding: 10px 0 4px;
  border-top: 1px solid rgba(58, 58, 66, .45);
  display: grid;
  gap: 9px;
}

.team-season-note {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: baseline;
}

.team-season-note span {
  grid-row: 1 / span 2;
}

.team-season-note strong {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.team-season-note small {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.35;
}

.team-form {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.team-form span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.64rem;
  font-weight: 700;
}

.team-form-g {
  background: var(--win);
}

.team-form-e {
  background: var(--draw);
}

.team-form-p {
  background: var(--loss);
}

.team-match-row {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(58,58,66,.65);
  background: transparent;
  color: var(--muted);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 0.8rem;
  text-align: center;
}

.team-match-row:last-child {
  border-bottom: 0;
}

.team-match-row:hover,
.team-match-row:focus-visible {
  background: var(--card2);
}

.team-match-row strong {
  min-width: 64px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--bg2);
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 0.74rem;
}

.team-match-row.next strong {
  color: var(--blue);
}

.team-match-row.next span:not(.focus-team) {
  color: var(--white);
  font-style: italic;
}

.team-activity-free {
  cursor: default;
  background: rgba(255, 255, 255, .018);
}

.team-activity-free:hover {
  background: rgba(255, 255, 255, .018);
}

.team-activity-free strong {
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
  text-transform: uppercase;
}

.team-next-match .team-match-row {
  border-bottom: 1px solid var(--border);
}

.team-next-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.team-next-meta > div {
  min-width: 0;
  padding: 11px 8px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.team-next-meta > div:last-child {
  border-right: 0;
}

.team-next-meta span,
.team-next-meta strong {
  display: block;
}

.team-next-meta span {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-next-meta strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 500;
  text-overflow: ellipsis;
}

.team-match-row .focus-team {
  color: var(--white);
  font-weight: 600;
}

.team-match-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
}

/* LOADING SKELETONS */

@keyframes skeletonShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.skeleton-shell {
  position: relative;
  pointer-events: none;
}

.skeleton-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skeleton {
  display: block;
  background:
    linear-gradient(
      90deg,
      var(--card2) 25%,
      var(--border2) 50%,
      var(--card2) 75%
    );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s linear infinite;
}

.skeleton-line {
  height: 10px;
  border-radius: 4px;
}

.skeleton-line-xs { width: 62px; }
.skeleton-line-sm { width: 96px; }
.skeleton-line-md { width: 148px; }

.skeleton-card-head,
.skeleton-card-footer,
.skeleton-zone-head,
.skeleton-playoffs-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
}

.skeleton-card-footer {
  border-top: 1px solid var(--border);
}

.skeleton-match-list {
  border-top: 1px solid var(--border);
}

.skeleton-match-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(46px, 1fr) 30px 64px 30px minmax(46px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(58,58,66,.7);
}

.skeleton-match-row:last-child {
  border-bottom: 0;
}

.skeleton-shield {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.skeleton-score {
  width: 64px;
  height: 30px;
  border-radius: 6px;
}

.skeleton-team-name {
  width: 88%;
}

.skeleton-match-row-1 .skeleton-team-name:first-child,
.skeleton-match-row-2 .skeleton-team-name:last-child {
  width: 68%;
}

.skeleton-match-row .skeleton-team-name:first-child {
  justify-self: end;
}

.skeleton-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.skeleton-zone-head {
  justify-content: flex-start;
  min-height: 49px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.skeleton-zone-head .skeleton-line:last-child {
  margin-left: auto;
}

.skeleton-table-wrap {
  margin: 12px 1rem 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
}

.skeleton-table-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.skeleton-table-row {
  min-height: 53px;
  display: grid;
  grid-template-columns: 18px 30px minmax(90px, 1fr) repeat(3, 24px);
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

.skeleton-table-row:last-child {
  border-bottom: 0;
}

.skeleton-table-pos,
.skeleton-table-stat {
  width: 100%;
  height: 10px;
  border-radius: 3px;
}

.skeleton-table-team {
  width: 82%;
}

.skeleton-table-row-1 .skeleton-table-team { width: 64%; }
.skeleton-table-row-2 .skeleton-table-team { width: 72%; }

.skeleton-playoffs {
  margin: 0 1rem 1.5rem;
}

.skeleton-playoffs-title {
  padding-right: 0;
  padding-left: 0;
}

.skeleton-playoff-grid {
  display: grid;
  gap: 10px;
}

.skeleton-playoff-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.skeleton-playoff-head,
.skeleton-playoff-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.skeleton-playoff-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.skeleton-playoff-team + .skeleton-playoff-team {
  border-top: 1px solid var(--border);
}

.skeleton-playoff-team .skeleton-table-stat {
  width: 22px;
  margin-left: auto;
}

/* CONTROLLED VIEW STATES */

.view-state {
  width: calc(100% - 2rem);
  min-height: 180px;
  margin: 0 1rem 1.5rem;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  text-align: center;
}

.teams-grid > .view-state {
  width: 100%;
  margin: 0;
  grid-column: 1 / -1;
}

.view-state strong {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.view-state p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

.view-state button {
  min-height: 42px;
  margin-top: 8px;
  padding: 9px 18px;
  border: 1px solid var(--red);
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.view-state-error {
  border-color: rgba(255, 48, 69, .35);
}

.view-state-spinner {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  border: 2px solid var(--border2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: view-state-spin .8s linear infinite;
}

@keyframes view-state-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }

  .view-state-spinner {
    animation: none;
  }

  .tabla-wrap.scroll-nudge > .tabla {
    animation: none;
  }
}

/* HOME: PULSO DEL TORNEO */

.home-live {
  --live-bg: #0a0a0a;
  --live-surface: #19191b;
  --live-surface-2: #212124;
  --live-border: #303034;
  --live-muted: #7b7b83;
  padding: 4px 1rem 2rem;
}

.home-live__hero {
  overflow: hidden;
  position: relative;
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 12px;
}

.home-live__hero-accent {
  height: 3px;
  background:
    linear-gradient(
      90deg,
      var(--red),
      rgba(255, 48, 69, .22) 70%,
      transparent
    );
}

.home-live__hero-body {
  overflow: hidden;
  position: relative;
  padding: 20px 20px 22px;
}

.home-live__hero-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -50deg,
      transparent,
      transparent 4px,
      rgba(255, 255, 255, .012) 4px,
      rgba(255, 255, 255, .012) 5px
    );
  pointer-events: none;
}

.home-live__chips {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.home-live__chip {
  width: fit-content;
  padding: 3px 8px;
  color: var(--live-muted);
  border: 1px solid var(--live-border);
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-live__chip--red {
  color: var(--red);
  background: var(--red-lo);
  border-color: rgba(255, 48, 69, .25);
}

.home-live__hero-title {
  position: relative;
  margin-bottom: 10px;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: .95;
  text-transform: uppercase;
}

.home-live__hero-title em {
  color: var(--red);
  font-style: inherit;
}

.home-live__hero-copy {
  position: relative;
  max-width: 650px;
  color: #a1a1a9;
  font-size: .82rem;
  line-height: 1.65;
}

.home-live__hero-copy strong {
  color: var(--white);
  font-weight: 600;
}

.home-live__section {
  padding-top: 28px;
}

.home-live__section-head {
  min-height: 32px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--live-border);
}

.home-live__section-head h2,
.home-live__section-head span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-live__section-head h2 {
  color: var(--live-muted);
  font-size: .75rem;
}

.home-live__section-head span {
  color: #505057;
  font-size: .66rem;
  text-align: right;
}

.home-live__semi-grid {
  display: grid;
  gap: 10px;
}

.home-live__results-grid {
  display: grid;
  gap: 10px;
}

.home-live__result-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 10px;
  font: inherit;
  text-align: left;
}

.home-live__result-card:hover,
.home-live__result-card:focus-visible {
  border-color: var(--border2);
  outline: none;
}

.home-live__result-meta {
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--live-muted);
  border-bottom: 1px solid var(--live-border);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-live__result-meta strong {
  color: var(--red);
  font-weight: 700;
}

.home-live__result-score {
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.home-live__result-score > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--live-muted);
}

.home-live__result-score > div:last-child {
  flex-direction: row-reverse;
  text-align: right;
}

.home-live__result-score > div.winner {
  color: var(--white);
}

.home-live__result-score .home-live__shield {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 3px;
}

.home-live__result-score > div > span {
  min-width: 0;
  display: block;
  overflow: hidden;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-live__result-score > strong {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}

.home-live__result-score > strong small {
  margin-top: 2px;
  display: block;
  color: var(--live-muted);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-live__result-events {
  padding: 9px 12px;
  display: grid;
  gap: 4px;
  color: var(--live-muted);
  background: rgba(0, 0, 0, .18);
  border-top: 1px solid var(--live-border);
  font-size: .66rem;
  line-height: 1.4;
}

.home-live__result-events b {
  color: var(--text);
  font-weight: 600;
}

.home-live__semi-card {
  overflow: hidden;
  position: relative;
  width: 100%;
  color: inherit;
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 12px;
  font: inherit;
  text-align: left;
  transition: border-color .2s ease, transform .2s ease;
}

.home-live__semi-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 80%);
}

.home-live__semi-card:hover,
.home-live__semi-card:focus-visible {
  border-color: var(--border2);
  outline: none;
  transform: translateY(-1px);
}

.home-live__semi-top {
  padding: 14px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-live__semi-top span,
.home-live__semi-top small {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-live__semi-top span {
  color: var(--red);
}

.home-live__semi-top small {
  color: var(--live-muted);
}

.home-live__match {
  padding: 14px 12px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  align-items: start;
}

.home-live__team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.home-live__shield {
  width: 48px;
  height: 48px;
  padding: 5px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--bg);
  background: var(--shield-bg);
  border: 1px solid var(--shield-border);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
}

.home-live__shield img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.home-live__shield > span {
  font-size: .6rem;
  font-weight: 800;
}

.home-live__team-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-live__team-meta {
  min-height: 24px;
  color: var(--live-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.home-live__form {
  display: flex;
  gap: 4px;
}

.home-live__form span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.home-live__form span.form-g {
  background: var(--win);
}

.home-live__form span.form-e {
  background: var(--draw);
}

.home-live__form span.form-p {
  background: var(--loss);
}

.home-live__form--empty {
  color: var(--live-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-live__versus {
  min-width: 0;
  padding: 10px 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-live__versus strong {
  color: #46464d;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
}

.home-live__versus span {
  margin-top: 6px;
  color: var(--live-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.45;
}

.home-live__semi-footer {
  min-height: 42px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, .2);
  border-top: 1px solid var(--live-border);
}

.home-live__match-time {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--live-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-live__match-time svg,
.home-live__data-card svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-live__match-time svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.home-live__semi-footer > strong {
  flex-shrink: 0;
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-live__data-grid,
.home-live__arrival-grid,
.home-live__path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-live__data-card,
.home-live__arrival-card,
.home-live__path-card {
  min-width: 0;
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 10px;
}

.home-live__data-card {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-live__data-card.wide {
  grid-column: 1 / -1;
}

.home-live__data-card svg {
  width: 17px;
  height: 17px;
  margin-bottom: 2px;
  color: var(--live-muted);
}

.home-live__data-card > span {
  color: var(--live-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-live__data-card > strong {
  overflow: hidden;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.data-pending {
  color: var(--muted);
  font-style: italic;
  font-weight: 600;
}

.home-live__data-card > strong.data-pending {
  color: var(--live-muted);
}

.data-missing {
  color: var(--muted);
  font-weight: 600;
}

.home-live__data-card > strong.data-missing {
  color: var(--live-muted);
}

.data-incomplete,
.home-live__data-card > strong.data-incomplete {
  color: var(--draw);
  font-weight: 600;
}

.home-live__data-help {
  margin-top: 10px;
  color: var(--live-muted);
  font-size: .68rem;
  line-height: 1.5;
}

.home-live__missing {
  min-height: 86px;
  padding: 18px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: var(--live-surface);
  border: 1px dashed var(--live-border);
  border-radius: 10px;
  text-align: center;
}

.home-live__missing strong,
.home-live__missing span {
  display: block;
}

.home-live__missing strong {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-live__missing span {
  color: var(--live-muted);
  font-size: .72rem;
  line-height: 1.5;
}

.home-live__note {
  padding: 18px 18px 18px 20px;
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
}

.home-live__note-eyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-live__note-title {
  margin-bottom: 10px;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-live__note-copy {
  color: #a1a1a9;
  font-size: .82rem;
  line-height: 1.7;
}

.home-live__note-copy strong {
  color: var(--white);
  font-weight: 600;
}

.home-live__note-copy p + p {
  margin-top: .85rem;
}

.home-live__arrival-card {
  padding: 14px;
}

.home-live__arrival-team {
  min-width: 0;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-live__arrival-team .home-live__shield {
  width: 30px;
  height: 30px;
  padding: 3px;
  flex: 0 0 30px;
}

.home-live__arrival-team h3,
.home-live__path-card h3 {
  overflow: hidden;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-live__stat {
  margin-bottom: 5px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.home-live__stat strong {
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.home-live__stat strong.neutral {
  color: var(--white);
}

.home-live__stat span {
  color: var(--live-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-live__arrival-card > p {
  margin-top: 8px;
  padding-top: 8px;
  color: var(--live-muted);
  border-top: 1px solid var(--live-border);
  font-size: .7rem;
  line-height: 1.5;
}

.home-live__head-to-head {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 10px 10px 0 0;
}

.home-live__compare-team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.home-live__compare-team .home-live__shield {
  width: 42px;
  height: 42px;
  padding: 4px;
}

.home-live__compare-team > strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-live__compare-seed {
  color: var(--live-muted);
  font-family: 'DM Mono', monospace;
  font-size: .48rem;
  letter-spacing: .04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-live__compare-title {
  color: var(--red);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  text-align: center;
}

.home-live__compare-list {
  background: var(--live-surface);
  border-right: 1px solid var(--live-border);
  border-left: 1px solid var(--live-border);
}

.home-live__compare-row {
  min-height: 42px;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 135px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--live-border);
}

.home-live__compare-row > strong {
  color: var(--live-muted);
  font-family: 'DM Mono', monospace;
  font-size: .74rem;
  text-align: right;
}

.home-live__compare-row > strong:last-child {
  text-align: left;
}

.home-live__compare-row > strong.winner,
.home-live__compare-row > strong.tie {
  color: var(--white);
}

.home-live__compare-row > span {
  color: var(--live-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.home-live__compare-note {
  padding: 12px 14px;
  display: grid;
  gap: 3px;
  background: rgba(0, 0, 0, .2);
  border: 1px solid var(--live-border);
  border-radius: 0 0 10px 10px;
}

.home-live__compare-note span,
.home-live__compare-note small {
  color: var(--live-muted);
  font-size: .62rem;
}

.home-live__compare-note span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-live__compare-note strong {
  color: var(--text);
  font-size: .73rem;
  font-weight: 600;
}

.home-live__qualified-list {
  display: grid;
  gap: 6px;
}

.home-live__qualified-row {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--live-muted);
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 8px;
  font: inherit;
  text-align: left;
}

.home-live__qualified-row:hover,
.home-live__qualified-row:focus-visible {
  border-color: var(--border2);
  outline: none;
}

.home-live__qualified-row > span {
  overflow: hidden;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-live__qualified-row > span.right {
  text-align: right;
}

.home-live__qualified-row > span.winner {
  color: var(--white);
}

.home-live__qualified-row > strong {
  padding: 3px 8px;
  color: var(--white);
  background: var(--live-surface-2);
  border: 1px solid var(--live-border);
  border-radius: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .05em;
  white-space: nowrap;
}

.home-live__qualified-row > small {
  padding: 3px 7px;
  color: var(--live-muted);
  border: 1px solid var(--live-border);
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-live__qualified-row > small.classified {
  color: var(--win);
  background: rgba(53, 199, 122, .08);
  border-color: rgba(53, 199, 122, .22);
}

.home-live__path-card {
  padding: 13px 14px;
}

.home-live__path-card h3 {
  margin-bottom: 9px;
  color: var(--red);
}

.home-live__path-card > div {
  display: grid;
  gap: 6px;
}

.home-live__path-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.home-live__path-item span {
  color: var(--live-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-live__path-item strong {
  overflow: hidden;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-live__scorers {
  overflow: hidden;
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 10px;
}

.home-live__scorer {
  min-width: 0;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--live-border);
}

.home-live__scorer:last-child {
  border-bottom: 0;
}

.home-live__scorer > span {
  color: var(--live-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

.home-live__scorer > span.top {
  color: var(--red);
}

.home-live__scorer > div {
  min-width: 0;
}

.home-live__scorer > div strong,
.home-live__scorer > div small {
  display: block;
  overflow: hidden;
  font-family: 'Barlow Condensed', sans-serif;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-live__scorer > div strong {
  color: var(--white);
  font-size: .92rem;
  letter-spacing: .02em;
}

.home-live__scorer > div small {
  margin-top: 1px;
  color: var(--live-muted);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.home-live__scorer > b {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  line-height: 1;
}

.home-live__scorer > b.leader {
  color: var(--red);
  font-size: 1.55rem;
}

.home-live__scorer > b small {
  margin-left: 3px;
  color: var(--live-muted);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-live__updated {
  padding: 28px 12px 0;
  color: #48484e;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 700px) {
  .home-live__hero-body {
    padding: 26px 28px 30px;
  }

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

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

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

  .home-live__arrival-grid,
  .home-live__path-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .home-live__result-score {
    padding-left: 8px;
    padding-right: 8px;
    gap: 5px;
  }

  .home-live__result-score .home-live__shield {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .home-live__result-score > div {
    gap: 5px;
  }

  .home-live__result-score > div > span {
    font-size: .76rem;
  }

  .home-live__match {
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
    padding-left: 8px;
    padding-right: 8px;
  }

  .home-live__team-name {
    font-size: .86rem;
  }

  .home-live__team-meta {
    font-size: .56rem;
  }

  .home-live__qualified-row {
    gap: 5px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .home-live__qualified-row > small {
    padding-left: 5px;
    padding-right: 5px;
  }

  .home-live__compare-row {
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  }
}

/* HOME: DEFINITIVE STRUCTURE */

.home-match-row {
  min-height: 0;
  padding: 0;
  display: block;
}

.home-match-primary {
  min-height: 70px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 8px;
  align-items: center;
  gap: 9px;
}

.home-match-chev {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.home-live__section:first-child {
  padding-top: 8px;
}

.home-live__arrival-card > .home-live__form {
  min-height: 8px;
  margin: -3px 0 12px 38px;
}

.home-live__arrival-empty {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--live-border);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem;
  letter-spacing: .05em;
  line-height: 1.4;
  text-align: center;
}

.home-live__section-link {
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  color: var(--red);
  background: transparent;
  border: 1px solid var(--live-border);
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-live__section-link:hover,
.home-live__section-link:focus-visible {
  background: var(--red-lo);
  border-color: rgba(255, 48, 69, .35);
  outline: none;
}

.nc-badge.state-live,
.po-phase-tag.state-live,
.po-st.state-live {
  color: var(--red);
}

.nc-badge.state-live .nc-pulse {
  background: var(--red);
}

.nc-badge.state-waiting,
.po-phase-tag.state-waiting,
.po-st.state-waiting {
  color: var(--draw);
}

.nc-badge.state-waiting .nc-pulse {
  background: var(--draw);
}

.nc-badge.state-disrupted,
.nc-badge.state-pending,
.po-phase-tag.state-disrupted,
.po-phase-tag.state-pending,
.po-st.state-suspended,
.po-st.state-postponed,
.po-st.state-tbd {
  color: var(--muted);
}

.nc-badge.state-active,
.nc-badge.state-scheduled,
.po-phase-tag.state-active,
.po-phase-tag.state-scheduled,
.po-st.state-scheduled,
.po-st.state-today {
  color: var(--blue);
}

.nc-badge.state-completed,
.po-phase-tag.state-completed,
.po-st.state-final {
  color: var(--win);
}

.zona-count.state-live {
  color: var(--red);
}

.zona-count.state-waiting {
  color: var(--draw);
}

.zona-count.state-active,
.zona-count.state-scheduled {
  color: var(--blue);
}

.zona-count.state-completed {
  color: var(--win);
}

.po-phase-tag.state-live,
.po-st.state-live {
  background: var(--red-lo);
  border-color: rgba(255, 48, 69, .3);
}

.po-phase-tag.state-waiting,
.po-st.state-waiting {
  background: rgba(244, 185, 66, .08);
  border-color: rgba(244, 185, 66, .3);
}

.po-phase-tag.state-active,
.po-phase-tag.state-scheduled,
.po-st.state-scheduled,
.po-st.state-today {
  background: rgba(61, 142, 240, .08);
  border-color: rgba(61, 142, 240, .28);
}

.po-phase-tag.state-completed,
.po-st.state-final {
  background: rgba(53, 199, 122, .08);
  border-color: rgba(53, 199, 122, .28);
}

.po-stage.state-live {
  background: linear-gradient(
    180deg,
    rgba(255, 48, 69, .055),
    transparent
  );
}

@media (max-width: 520px) {
  .home-match-primary {
    padding-right: 10px;
    padding-left: 10px;
    gap: 5px;
  }

}

/* FOOTER */

.tp-footer {
  margin-top: 28px;
  background: #0a0a0a;
  color: #f0f0f0;
}

.tp-footer__content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}

.tp-footer__divider {
  max-width: 748px;
  height: 1px;
  margin: 0 auto 32px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #2e2e2e 20%,
      #2e2e2e 80%,
      transparent
    );
}

.tp-footer__grid {
  display: grid;
  gap: 28px;
}

.tp-footer__about {
  padding: 0 4px;
}

.tp-footer__eyebrow,
.tp-footer__contact-label,
.tp-footer__contact-link,
.tp-footer__meta-key,
.tp-footer__meta-value,
.tp-footer__signature-text,
.tp-footer__signature-mark {
  font-family: 'Barlow Condensed', sans-serif;
}

.tp-footer__eyebrow {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tp-footer__brand-logo {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin-bottom: 16px;
}

.tp-footer__signature-mark span {
  color: var(--red);
}

.tp-footer__text {
  max-width: 390px;
  color: #999;
  font-size: 0.95rem;
  line-height: 1.7;
}

.tp-footer__text strong {
  color: #c2c2c2;
  font-weight: 600;
}

.tp-footer__about-link {
  min-height: 42px;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d0d0d0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.tp-footer__about-link span {
  color: var(--red);
  transition: transform .2s ease;
}

.tp-footer__about-link:hover span,
.tp-footer__about-link:focus-visible span {
  transform: translateX(3px);
}

.tp-footer__details {
  display: grid;
  gap: 24px;
}

.tp-footer__contact {
  min-width: 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #141414;
  border: 1px solid #232323;
  border-radius: 10px;
}

.tp-footer__contact-label {
  margin-bottom: 4px;
  color: #858585;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tp-footer__contact-text {
  color: #999;
  font-size: 0.85rem;
  line-height: 1.5;
}

.tp-footer__contact-link {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  color: var(--red);
  background: rgba(255, 48, 69, .08);
  border: 1px solid rgba(255, 48, 69, .2);
  border-radius: 7px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.tp-footer__contact-link:hover,
.tp-footer__contact-link:focus-visible {
  background: rgba(255, 48, 69, .14);
  border-color: rgba(255, 48, 69, .38);
  outline: none;
}

.tp-footer__contact-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-footer__contact-link span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tp-footer__meta {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-footer__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tp-footer__meta-key,
.tp-footer__meta-value {
  font-size: 0.8rem;
  font-weight: 700;
}

.tp-footer__meta-key {
  color: #858585;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tp-footer__meta-value {
  color: #929292;
  letter-spacing: 0.08em;
  text-align: right;
}

.tp-footer__meta-divider {
  height: 1px;
  background: #232323;
}

.tp-footer__signature {
  margin-top: 24px;
  padding: 18px 4px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #232323;
}

.tp-footer__signature-text {
  max-width: 430px;
  color: #7d7d7d;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.tp-footer__signature-mark {
  flex-shrink: 0;
  color: #7d7d7d;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 700px) {
  .tp-footer {
    margin-top: 40px;
  }

  .tp-footer__content {
    padding: 0 28px;
  }

  .tp-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr);
    gap: 44px;
  }

  .tp-footer__signature {
    margin-top: 32px;
  }
}

/* MOBILE BOTTOM NAV */

.mobile-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  display: flex;
  background: rgba(29,29,32,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  z-index: 100;
}

@media (max-width: 768px) {
  .main-column {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .app-main {
    padding-bottom: 0;
  }
}

.bn-item {
  position: relative;
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  padding: 9px 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bn-item.on {
  color: var(--red);
}

.bn-item.on::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--red);
  transform: translateX(-50%);
}

.bn-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.bn-item.on .bn-icon {
  transform: translateY(-1px);
}

.bn-item:active .bn-icon {
  transform: scale(.92);
}

/* SHIELD COLORS */

.s-porvenir{background:#2d6a2d}.s-sportsman{background:#1a1a1a}
.s-campana{background:#c0392b}.s-carcarana{background:#c0392b}
.s-cosmo{background:#1a3a8a}.s-sanjeronimo{background:#1a5a8a}
.s-correa{background:#8a1a1a}.s-newells{background:#c0392b}
.s-barraca{background:#8a3a1a}.s-america{background:#1a3a8a}
.s-adeo{background:#1a5a3a}.s-sportclub{background:#1a5a30}
.s-almafuerte{background:#8a1a1a}.s-union{background:#1a3a6a}
.s-argentino{background:#1a3e88}.s-belgrano{background:#1a3e88}
.s-montesdeoca{background:#484818}.s-independiente{background:#c0392b}
.s-atletico{background:#8a3a1a}.s-racing{background:#1a1a8a}
.s-victoria{background:#2d6a2d}

/* ANIMATION */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tab-content.on > * {
  animation: fadeIn .25s ease both;
}

/* LEGIBILITY */

.sb-tag,
.sb-stat-l,
.sb-eye,
.ls-chip,
.category-select-wrap,
.hero-label,
.nc-badge,
.nc-round,
.nc-footer-label,
.nc-footer-link,
.home-match-center strong,
.home-match-center small,
.nc-role,
.nc-time,
.nc-venue,
.zona-name,
.zona-count,
.mr-time,
.mr-penales,
.libre-tag,
.result-meta,
.cp,
.zt,
.tabla-ref,
.tabla th,
.t-pos,
.sc-club,
.sc-n small,
.po-phase-title,
.po-phase-tag,
.po-q-head,
.po-q-pos,
.po-q-tag,
.po-match-id,
.po-st,
.po-seed,
.po-pen,
.po-ts.tbd,
.tc-pts {
  font-size: 0.7rem;
}

.sb-link,
.tab,
.sec-title,
.sec-link,
.dn-select {
  font-size: 0.75rem;
}

.sb-desc,
.home-team,
.nc-name,
.libre-team,
.rt,
.tabla td,
.sc-name,
.po-banner-sub,
.po-q-name,
.po-q-name span,
.po-tn,
.po-tbd-n,
.tc-name {
  font-size: 0.9rem;
}

.mr-team,
.t-name {
  font-size: 0.94rem;
}

.sb-title {
  font-size: 1.75rem;
}

.logo-name {
  font-size: 1.35rem;
}

.hero-title {
  font-size: 2.75rem;
}

.top-bar {
  height: 62px;
}

.hero {
  height: 170px;
}

.hero-content {
  justify-content: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.tab {
  padding: 14px 15px;
}

.sec {
  padding-top: 1.5rem;
}

.sec-title::before {
  height: 14px;
}

.nc-top,
.nc-footer {
  padding: 13px 16px;
}

.home-match-row {
  min-height: 70px;
  padding: 12px 14px;
}

.home-shield {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 0.58rem;
}

.home-match-center {
  min-width: 100px;
}

@media (max-width: 520px) {
  .home-match-center {
    width: 88px;
    min-width: 88px;
  }

  .home-team {
    font-size: .75rem;
  }
}

@media (max-width: 768px) {
  .category-select-wrap,
  .hero-label,
  .sec-title,
  .sec-link {
    font-size: .78rem;
  }

  .home-live__section-head h2 {
    font-size: .8rem;
  }

  .home-live__section-head span {
    font-size: .72rem;
  }

  .mr-score .mr-penales {
    margin-top: 3px;
    font-size: .62rem;
    line-height: 1;
  }
}

.date-nav,
.dn-label-wrap,
.dn-btn {
  min-height: 52px;
}

.dn-btn {
  font-size: 1.15rem;
}

.zona-head {
  padding-top: 13px;
  padding-bottom: 13px;
}

.match-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.mr-score,
.rs,
.po-ts {
  font-size: 1.3rem;
}

.mr-time {
  min-width: 64px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.match-libre {
  padding-top: 12px;
  padding-bottom: 12px;
}

.tabla {
  min-width: 440px;
}

.tabla th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.tabla td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.t-pts {
  font-size: 1.15rem;
}

.fd {
  width: 7px;
  height: 7px;
}

.po-match-hd {
  padding: 9px 12px;
}

.po-trow,
.po-tbd-row {
  padding: 12px;
}

.team-card {
  padding-top: 17px;
  padding-bottom: 17px;
}

.team-card:hover,
.team-card:focus-visible {
  border-color: var(--border2);
  background: var(--card2);
}

.tc-shield {
  width: 44px;
  height: 44px;
  font-size: 0.68rem;
}

.bn-item {
  min-height: 58px;
  padding: 10px 0 8px;
  font-size: 0.7rem;
}

.bn-icon {
  width: 22px;
  height: 22px;
}

.tab,
.sec-title,
.nc-round,
.nc-footer-label,
.po-match-id,
.po-st {
  font-size: 0.75rem;
}

.mr-team,
.rt,
.po-tn,
.po-q-name,
.t-name {
  font-size: 0.94rem;
}

.shield,
.rb,
.uc-b,
.sm-badge,
.po-tshield {
  width: 26px;
  height: 26px;
  font-size: 0.5rem;
}

.nc-shield {
  width: 54px;
  height: 54px;
}

.po-match.pending {
  opacity: 0.78;
}

.match-row .shield {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  aspect-ratio: 1 / 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--shield-bg);
  border-radius: 50%;
  padding: 3px;
  box-sizing: border-box;
  overflow: hidden;
}

.match-row .shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nc-shield,
.libre-shield {
  font-size: 0.58rem;
}

.home-shield,
.shield,
.match-row .shield,
.po-q-row .shield,
.sm-badge,
.po-tshield,
.libre-shield,
.tc-shield,
.match-detail-shield,
.team-detail-shield {
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--shield-border);
  border-radius: 50%;
  background: var(--shield-bg);
  color: var(--bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .26);
}

.home-shield img,
.shield img,
.match-row .shield img,
.po-q-row .shield img,
.sm-badge img,
.po-tshield img,
.libre-shield img,
.tc-shield img,
.match-detail-shield img,
.team-detail-shield img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 390px) {
  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .match-detail-scoreboard {
    gap: 7px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .match-detail-shield {
    width: 62px;
    height: 62px;
  }

  .match-detail-team strong {
    font-size: 0.88rem;
  }

  .match-detail-team small {
    display: none;
  }

  .match-detail-result {
    min-width: 70px;
  }

  .match-detail-result strong {
    font-size: 2rem;
  }

  .match-detail-meta {
    grid-template-columns: 1fr 1fr;
  }

  .match-detail-meta > div:nth-child(2) {
    border-right: 0;
  }

  .match-detail-meta > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .match-detail-meta > div:nth-child(4) {
    border-right: 0;
  }

  .team-detail-head {
    padding: 1rem;
  }

  .team-detail-shield {
    width: 66px;
    height: 66px;
  }

  .team-season-switch {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .team-season-switch select {
    width: 100%;
  }

  .team-season-campaign {
    grid-template-columns: .7fr 1.35fr 1fr;
    gap: 8px;
  }

  .team-season-campaign strong {
    font-size: 0.84rem;
  }

  .team-season-campaign small {
    font-size: 0.58rem;
  }

  .team-season-note {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .team-season-note span {
    grid-row: auto;
  }

  .team-next-meta {
    grid-template-columns: 1fr 1fr;
  }

  .team-next-meta > div:nth-child(2) {
    border-right: 0;
  }

  .team-next-meta > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
  }

  .match-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 10px;
    gap: 5px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .mr-chev {
    display: block;
    font-size: 1rem;
    line-height: 1;
    text-align: right;
  }

  .mr-team {
    font-size: 0.88rem;
  }

  .match-row .shield {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    min-height: 28px;
    max-height: 28px;
  }

  .mr-score,
  .mr-time {
    min-width: 52px;
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 768px) {
  .sec-title,
  .sec-link {
    font-size: .8rem;
  }
}

/* HOME: FEATURED MATCH */

.home-featured-match {
  width: 100%;
  display: block;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.home-featured-match:hover,
.home-featured-match:focus-visible {
  background: rgba(255, 255, 255, .025);
  outline: none;
}

.home-featured-match:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(85, 167, 255, .55);
}

.home-featured-context {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
}

.home-featured-context-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: .66rem;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.home-featured-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--red);
}

.home-featured-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
}

.home-featured-matchup {
  min-height: 174px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(58px, 72px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 18px 18px 22px;
}

.home-featured-team,
.home-featured-center,
.home-featured-first-leg,
.home-featured-meta,
.home-featured-venue,
.home-featured-time {
  display: flex;
}

.home-featured-team {
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.home-featured-team .home-shield {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 7px;
  border: 1px solid var(--shield-border);
  background: var(--shield-bg);
  font-size: .72rem;
}

.home-featured-team > strong {
  width: 100%;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.home-featured-center {
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.home-featured-vs,
.home-featured-score {
  color: var(--red);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.home-featured-first-leg {
  min-width: 50px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card2);
}

.home-featured-first-leg small,
.home-featured-penalties,
.home-featured-venue small,
.home-featured-time small {
  font-family: 'DM Mono', monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-featured-first-leg small {
  color: var(--muted);
  font-size: .56rem;
}

.home-featured-first-leg strong {
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.home-featured-penalties {
  color: var(--muted);
  font-size: .62rem;
  white-space: nowrap;
}

.home-featured-meta {
  min-height: 74px;
  align-items: stretch;
  border-top: 1px solid var(--border);
}

.home-featured-venue,
.home-featured-time {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.home-featured-venue {
  min-width: 0;
  flex: 1;
  padding: 12px 16px;
}

.home-featured-time {
  width: 112px;
  flex: 0 0 112px;
  align-items: flex-end;
  padding: 10px 16px;
  border-left: 1px solid var(--border);
  text-align: right;
}

.home-featured-venue small,
.home-featured-time small {
  color: var(--muted);
  font-size: .6rem;
  line-height: 1;
}

.home-featured-venue strong {
  max-width: 100%;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.home-featured-time strong {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: .9;
  white-space: nowrap;
}

.home-featured-match.live .home-featured-dot {
  box-shadow: 0 0 0 4px rgba(255, 48, 69, .13);
  animation: livePulse 1.4s ease-in-out infinite;
}

.home-featured-match.waiting .home-featured-dot {
  background: var(--draw);
}

.home-featured-match.final .home-featured-dot {
  background: var(--win);
}

@media (max-width: 390px) {
  .home-featured-matchup {
    min-height: 160px;
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 5px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-featured-team .home-shield {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .home-featured-team > strong {
    font-size: .95rem;
  }

  .home-featured-vs,
  .home-featured-score {
    font-size: 1.75rem;
  }

  .home-featured-time {
    width: 100px;
    flex-basis: 100px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-featured-time strong {
    font-size: 1.8rem;
  }
}

/* MATCH DETAIL: FEATURED CARD */

.match-detail-card-featured .match-detail-featured-context {
  min-height: 46px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.match-detail-featured-state {
  flex: 0 0 auto;
  color: var(--blue);
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.match-detail-featured-state.live {
  color: var(--red);
}

.match-detail-featured-state.waiting {
  color: var(--draw);
}

.match-detail-featured-state.final {
  color: var(--win);
}

.match-detail-featured-state.suspended,
.match-detail-featured-state.postponed,
.match-detail-featured-state.tbd {
  color: var(--muted);
}

.match-detail-card-featured .match-detail-scoreboard {
  min-height: 174px;
  grid-template-columns: minmax(0, 1fr) minmax(58px, 86px) minmax(0, 1fr);
  gap: 8px;
  padding: 18px 18px 22px;
}

.match-detail-card-featured .match-detail-team {
  gap: 10px;
}

.match-detail-card-featured .match-detail-shield {
  width: 72px;
  height: 72px;
  padding: 8px;
}

.match-detail-card-featured .match-detail-team strong {
  width: 100%;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.match-detail-card-featured .match-detail-result {
  min-width: 0;
}

.match-detail-card-featured .match-detail-result .home-featured-first-leg,
.match-detail-card-featured .match-detail-result .home-featured-penalties {
  margin-top: 0;
}

.match-detail-featured-meta {
  min-height: 74px;
}

.match-detail-support {
  display: grid;
  grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr);
  border-top: 1px solid var(--border);
}

.match-detail-support > div {
  min-width: 0;
  padding: 11px 16px;
  border-right: 1px solid var(--border);
}

.match-detail-support > div:last-child {
  border-right: 0;
}

.match-detail-support span {
  display: block;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.match-detail-support strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: .82rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.match-detail-card-featured.live .home-featured-dot {
  box-shadow: 0 0 0 4px rgba(255, 48, 69, .13);
  animation: livePulse 1.4s ease-in-out infinite;
}

.match-detail-card-featured.waiting .home-featured-dot {
  background: var(--draw);
}

.match-detail-card-featured.final .home-featured-dot {
  background: var(--win);
}

.match-detail-card-featured.suspended .home-featured-dot,
.match-detail-card-featured.postponed .home-featured-dot,
.match-detail-card-featured.tbd .home-featured-dot {
  background: var(--muted);
}

@media (max-width: 390px) {
  .match-detail-card-featured .match-detail-scoreboard {
    min-height: 160px;
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 5px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .match-detail-card-featured .match-detail-shield {
    width: 64px;
    height: 64px;
  }

  .match-detail-card-featured .match-detail-team strong {
    font-size: .95rem;
  }

  .match-detail-featured-state {
    max-width: 112px;
  }

  .match-detail-support {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .match-detail-support > div {
    padding-left: 12px;
    padding-right: 12px;
  }
}
